diff --git a/stage0/src/Lean/Elab/Do.lean b/stage0/src/Lean/Elab/Do.lean index cad0617977..e9a7f709a4 100644 --- a/stage0/src/Lean/Elab/Do.lean +++ b/stage0/src/Lean/Elab/Do.lean @@ -87,24 +87,24 @@ private partial def hasLiftMethod : Syntax → Bool structure ExtractMonadResult where m : Expr - α : Expr + returnType : Expr expectedType : Expr private def mkUnknownMonadResult : MetaM ExtractMonadResult := do let u ← mkFreshLevelMVar let v ← mkFreshLevelMVar let m ← mkFreshExprMVar (← mkArrow (mkSort (mkLevelSucc u)) (mkSort (mkLevelSucc v))) - let α ← mkFreshExprMVar (mkSort (mkLevelSucc u)) - return { m, α, expectedType := mkApp m α } + let returnType ← mkFreshExprMVar (mkSort (mkLevelSucc u)) + return { m, returnType, expectedType := mkApp m returnType } private partial def extractBind (expectedType? : Option Expr) : TermElabM ExtractMonadResult := do let some expectedType := expectedType? | mkUnknownMonadResult let extractStep? (type : Expr) : MetaM (Option ExtractMonadResult) := do - let .app m α _ := type | return none + let .app m returnType _ := type | return none try let bindInstType ← mkAppM ``Bind #[m] discard <| Meta.synthInstance bindInstType - return some { m, α, expectedType } + return some { m, returnType, expectedType } catch _ => return none let rec extract? (type : Expr) : MetaM (Option ExtractMonadResult) := do @@ -863,9 +863,12 @@ def Kind.isRegular : Kind → Bool | _ => false structure Context where - m : Syntax -- Syntax to reference the monad associated with the do notation. - uvars : Array Var - kind : Kind + /-- Syntax to reference the monad associated with the do notation. -/ + m : Syntax + /-- Syntax to reference the result of the monadic computation performed by the do notation. -/ + returnType : Syntax + uvars : Array Var + kind : Kind abbrev M := ReaderT Context MacroM @@ -1031,8 +1034,8 @@ partial def toTerm (c : Code) : M Syntax := do let termMatchAlts := mkNode `Lean.Parser.Term.matchAlts #[mkNullNode termAlts] return mkNode `Lean.Parser.Term.«match» #[mkAtomFrom ref "match", genParam, optMotive, discrs, mkAtomFrom ref "with", termMatchAlts] -def run (code : Code) (m : Syntax) (uvars : Array Var := #[]) (kind := Kind.regular) : MacroM Syntax := - toTerm code { m := m, kind := kind, uvars := uvars } +def run (code : Code) (m : Syntax) (returnType : Syntax) (uvars : Array Var := #[]) (kind := Kind.regular) : MacroM Syntax := + toTerm code { m, returnType, kind, uvars } /- Given - `a` is true if the code block has a `Code.action _` exit point @@ -1051,8 +1054,8 @@ def mkNestedKind (a r bc : Bool) : Kind := | true, true, true => .nestedPRBC | false, false, false => unreachable! -def mkNestedTerm (code : Code) (m : Syntax) (uvars : Array Var) (a r bc : Bool) : MacroM Syntax := do - ToTerm.run code m uvars (mkNestedKind a r bc) +def mkNestedTerm (code : Code) (m : Syntax) (returnType : Syntax) (uvars : Array Var) (a r bc : Bool) : MacroM Syntax := do + ToTerm.run code m returnType uvars (mkNestedKind a r bc) /- Given a term `term` produced by `ToTerm.run`, pattern match on its result. See comment at the beginning of the `ToTerm` namespace. @@ -1119,7 +1122,10 @@ namespace ToCodeBlock structure Context where ref : Syntax - m : Syntax -- Syntax representing the monad associated with the do notation. + /-- Syntax representing the monad associated with the do notation. -/ + m : Syntax + /-- Syntax to reference the result of the monadic computation performed by the do notation. -/ + returnType : Syntax mutableVars : VarSet := {} insideFor : Bool := false @@ -1155,7 +1161,7 @@ def mkForInBody (_ : Syntax) (forInBody : CodeBlock) : M ToForInTermResult := d let ctx ← read let uvars := forInBody.uvars let uvars := varSetToArray uvars - let term ← liftMacroM <| ToTerm.run forInBody.code ctx.m uvars (if hasReturn forInBody.code then ToTerm.Kind.forInWithReturn else ToTerm.Kind.forIn) + let term ← liftMacroM <| ToTerm.run forInBody.code ctx.m ctx.returnType uvars (if hasReturn forInBody.code then ToTerm.Kind.forInWithReturn else ToTerm.Kind.forIn) return ⟨uvars, term⟩ def ensureInsideFor : M Unit := @@ -1413,10 +1419,11 @@ mutual let uvarsTuple ← liftMacroM do mkTuple uvars if hasReturn forInBodyCodeBlock.code then let forInBody ← liftMacroM <| destructTuple uvars (← `(r)) forInBody + let optType ← `(Option $((← read).returnType)) let forInTerm ← if let some h := h? then - `(for_in'% $(xs) (MProd.mk none $uvarsTuple) fun $x $h r => let r := r.2; $forInBody) + `(for_in'% $(xs) (MProd.mk (none : $optType) $uvarsTuple) fun $x $h (r : MProd $optType _) => let r := r.2; $forInBody) else - `(for_in% $(xs) (MProd.mk none $uvarsTuple) fun $x r => let r := r.2; $forInBody) + `(for_in% $(xs) (MProd.mk (none : $optType) $uvarsTuple) fun $x (r : MProd $optType _) => let r := r.2; $forInBody) let auxDo ← `(do let r ← $forInTerm:term; $uvarsTuple:term := r.2; match r.1 with @@ -1495,7 +1502,7 @@ mutual let bc := tryCatchPred tryCode catches finallyCode? hasBreakContinue let toTerm (codeBlock : CodeBlock) : M Syntax := do let codeBlock ← liftM $ extendUpdatedVars codeBlock ws - liftMacroM <| ToTerm.mkNestedTerm codeBlock.code ctx.m uvars a r bc + liftMacroM <| ToTerm.mkNestedTerm codeBlock.code ctx.m ctx.returnType uvars a r bc let term ← toTerm tryCode let term ← catches.foldlM (init := term) fun term «catch» => do let catchTerm ← toTerm «catch».codeBlock @@ -1511,7 +1518,7 @@ mutual throwError "'finally' currently does not support reassignments" if hasBreakContinueReturn finallyCode.code then throwError "'finally' currently does 'return', 'break', nor 'continue'" - let finallyTerm ← liftMacroM <| ToTerm.run finallyCode.code ctx.m {} ToTerm.Kind.regular + let finallyTerm ← liftMacroM <| ToTerm.run finallyCode.code ctx.m ctx.returnType {} ToTerm.Kind.regular ``(tryFinally $term $finallyTerm) let doElemsNew ← liftMacroM <| ToTerm.matchNestedTermResult term uvars a r bc doSeqToCode (doElemsNew ++ doElems) @@ -1592,8 +1599,8 @@ mutual throwError "unexpected do-element of kind {doElem.getKind}:\n{doElem}" end -def run (doStx : Syntax) (m : Syntax) : TermElabM CodeBlock := - (doSeqToCode <| getDoSeqElems <| getDoSeq doStx).run { ref := doStx, m } +def run (doStx : Syntax) (m : Syntax) (returnType : Syntax) : TermElabM CodeBlock := + (doSeqToCode <| getDoSeqElems <| getDoSeq doStx).run { ref := doStx, m, returnType } end ToCodeBlock @@ -1601,8 +1608,9 @@ end ToCodeBlock tryPostponeIfNoneOrMVar expectedType? let bindInfo ← extractBind expectedType? let m ← Term.exprToSyntax bindInfo.m - let codeBlock ← ToCodeBlock.run stx m - let stxNew ← liftMacroM <| ToTerm.run codeBlock.code m + let returnType ← Term.exprToSyntax bindInfo.returnType + let codeBlock ← ToCodeBlock.run stx m returnType + let stxNew ← liftMacroM <| ToTerm.run codeBlock.code m returnType trace[Elab.do] stxNew withMacroExpansion stx stxNew <| elabTermEnsuringType stxNew bindInfo.expectedType diff --git a/stage0/src/Lean/Elab/Term.lean b/stage0/src/Lean/Elab/Term.lean index c26fe95cca..7c7819d461 100644 --- a/stage0/src/Lean/Elab/Term.lean +++ b/stage0/src/Lean/Elab/Term.lean @@ -1797,7 +1797,7 @@ def expandDeclId (currNamespace : Name) (currLevelNames : List Name) (declId : S `(Nat.succ $(← exprToSyntax e)) ``` -/ -def exprToSyntax (e : Expr) : TermElabM Term := do +def exprToSyntax (e : Expr) : TermElabM Term := withFreshMacroScope do let result ← `(?m) let eType ← inferType e let mvar ← elabTerm result eType diff --git a/stage0/stdlib/Lean/Elab/Do.c b/stage0/stdlib/Lean/Elab/Do.c index 135772d231..e0af46859c 100644 --- a/stage0/stdlib/Lean/Elab/Do.c +++ b/stage0/stdlib/Lean/Elab/Do.c @@ -102,7 +102,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabLiftMethod___closed__5; static lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__15; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_convertTerminalActionIntoJmp_loop___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_seqToTerm___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_concat___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__4___boxed(lean_object*, lean_object*, lean_object*); @@ -168,7 +168,7 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_pullExitPointsAux___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_extendUpdatedVarsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_run(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_run(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___closed__4; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___spec__1(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__1; @@ -202,7 +202,7 @@ static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_CodeBlocl_t LEAN_EXPORT uint8_t l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclHasBinders(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkDoIfView___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___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_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doLetArrowToCode___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__13; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__3(size_t, size_t, lean_object*); @@ -275,6 +275,7 @@ lean_object* l_Lean_MessageData_ofList(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_hasBreakContinueReturn___lambda__1___boxed(lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRange___closed__7; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__9; +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__10; LEAN_EXPORT lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_mkJmp___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_toTerm___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_getDoLetRecVars___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -330,6 +331,7 @@ static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varsToMessageD static lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__7; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_mkJmp___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimiter___closed__10; +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__12; lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__3; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__6; @@ -359,7 +361,7 @@ LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_ToCode static lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___closed__6; static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3___closed__4; static lean_object* l_Lean_Elab_Term_elabLiftMethod___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_run___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_run___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_hasLiftMethod___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doMatchToCode___spec__6(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -378,7 +380,7 @@ static lean_object* l_Lean_Elab_Term_Do_ToTerm_mkJoinPoint___closed__1; LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Elab_Term_Do_insertVars___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__3; static lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__42; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Term_elabLiftMethod___closed__8; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__2___closed__6; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__19; @@ -435,6 +437,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_elabLiftMethod___boxed(lean_object*, l LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_mkJoinPoint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__38; static lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__21; +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2___boxed(lean_object**); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__11; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__10; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimiter___closed__3; @@ -504,7 +507,7 @@ static lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__22; LEAN_EXPORT lean_object* l_Lean_mkIdentFromRef___at_Lean_Elab_Term_Do_ToTerm_mkJoinPoint___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___spec__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___lambda__2___closed__3; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___closed__4; static lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__14; static lean_object* l___regBuiltin_Lean_Elab_Term_elabLiftMethod___closed__4; @@ -556,6 +559,7 @@ static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__3___closed__3; static lean_object* l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__6; +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_doIfToCode___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1___closed__1; LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Do_extendUpdatedVarsAux_update___spec__4(lean_object*, lean_object*, size_t, size_t); @@ -636,7 +640,7 @@ static lean_object* l_Lean_Elab_Term_Do_CodeBlocl_toMessageData_loop___closed__5 LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_insertVars___spec__3(lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__25; lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__4; @@ -666,6 +670,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_elabLiftMethod___closed__3; static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___closed__3; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_tryCatchPred___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__11; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__14; lean_object* l_Array_back___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forM___at_Lean_Elab_Term_Do_mkJmp___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -727,6 +732,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Term_ lean_object* l_Array_reverse___rarg(lean_object*); static lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__12; static lean_object* l_Lean_Elab_Term_Do_getDoLetArrowVars___closed__4; +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__16; uint8_t l_Array_isEmpty___rarg(lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_seqToTerm___closed__5; LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); @@ -866,7 +872,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_toDoElem(lea LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___spec__5(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__15; -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30793_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_31171_(lean_object*); static lean_object* l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__9; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode___closed__3; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___closed__3; @@ -939,7 +945,7 @@ static lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__31; static lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__26; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_reassignToTerm(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___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_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___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*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__44; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_mkMatch___spec__2(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__40; @@ -951,6 +957,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1 uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_convertTerminalActionIntoJmp_loop___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_sequenceMap___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__1___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__13; lean_object* l_Lean_mkApp(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_ensureEOS(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_Do_mkReassignCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1278,6 +1285,7 @@ static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doReturnToCode___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___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*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__25; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__14; +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__15; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_mkTerminalAction(lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3___closed__2; static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__5; @@ -1332,7 +1340,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple(l LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_Do_ToCodeBlock_doMatchToCode___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__17; static lean_object* l___regBuiltin_Lean_Elab_Term_elabLiftMethod_declRange___closed__6; -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at_Lean_Elab_Term_Do_mkJmp___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_Kind_noConfusion(lean_object*); static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__10; @@ -1357,9 +1365,10 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange(lean_object*); static lean_object* l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__13; static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToCodeBlock_checkReassignable___spec__2___closed__4; +static lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14; LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isIdent(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_ToCodeBlock_expandLiftMethodAux___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_EXPORT lean_object* l_Lean_Elab_Term_expandTermTry(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Elab_Term_Do_ToTerm_instInhabitedKind; @@ -17548,7 +17557,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_mkUVarTuple(lean_object* x_1 _start: { lean_object* x_4; lean_object* x_5; -x_4 = lean_ctor_get(x_1, 1); +x_4 = lean_ctor_get(x_1, 2); lean_inc(x_4); lean_dec(x_1); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple(x_4, x_2, x_3); @@ -17819,7 +17828,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__21; -x_3 = lean_unsigned_to_nat(883u); +x_3 = lean_unsigned_to_nat(886u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -18098,7 +18107,7 @@ lean_object* x_5; uint8_t x_6; lean_inc(x_3); lean_inc(x_2); x_5 = l_Lean_Elab_Term_Do_ToTerm_mkUVarTuple(x_2, x_3, x_4); -x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); +x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); switch (x_6) { case 0: { @@ -18108,7 +18117,7 @@ lean_inc(x_7); x_8 = lean_ctor_get(x_5, 1); lean_inc(x_8); lean_dec(x_5); -x_9 = lean_ctor_get(x_2, 1); +x_9 = lean_ctor_get(x_2, 2); lean_inc(x_9); lean_dec(x_2); x_10 = l_Array_isEmpty___rarg(x_9); @@ -18871,7 +18880,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__1; -x_3 = lean_unsigned_to_nat(892u); +x_3 = lean_unsigned_to_nat(895u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -19123,7 +19132,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__1; -x_3 = lean_unsigned_to_nat(896u); +x_3 = lean_unsigned_to_nat(899u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -19267,7 +19276,7 @@ lean_object* x_4; uint8_t x_5; lean_inc(x_2); lean_inc(x_1); x_4 = l_Lean_Elab_Term_Do_ToTerm_mkUVarTuple(x_1, x_2, x_3); -x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); switch (x_5) { case 0: { @@ -19856,7 +19865,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__1; -x_3 = lean_unsigned_to_nat(904u); +x_3 = lean_unsigned_to_nat(907u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -19942,7 +19951,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_breakToTerm___closed__1; -x_3 = lean_unsigned_to_nat(908u); +x_3 = lean_unsigned_to_nat(911u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -20086,7 +20095,7 @@ lean_object* x_4; uint8_t x_5; lean_inc(x_2); lean_inc(x_1); x_4 = l_Lean_Elab_Term_Do_ToTerm_mkUVarTuple(x_1, x_2, x_3); -x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*2); +x_5 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); switch (x_5) { case 0: { @@ -20800,7 +20809,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__13; -x_3 = lean_unsigned_to_nat(919u); +x_3 = lean_unsigned_to_nat(922u); x_4 = lean_unsigned_to_nat(28u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -20976,7 +20985,7 @@ lean_ctor_set(x_16, 5, x_10); lean_inc(x_16); lean_inc(x_2); x_17 = l_Lean_Elab_Term_Do_ToTerm_mkUVarTuple(x_2, x_16, x_15); -x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); +x_18 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); switch (x_18) { case 0: { @@ -20986,7 +20995,7 @@ 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_2, 1); +x_21 = lean_ctor_get(x_2, 2); lean_inc(x_21); lean_dec(x_2); x_22 = l_Array_isEmpty___rarg(x_21); @@ -24841,26 +24850,27 @@ lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_run(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_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_run(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_7; lean_object* x_8; -x_7 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_7, 0, x_2); -lean_ctor_set(x_7, 1, x_3); -lean_ctor_set_uint8(x_7, sizeof(void*)*2, x_4); -x_8 = l_Lean_Elab_Term_Do_ToTerm_toTerm(x_1, x_7, x_5, x_6); -return x_8; +lean_object* x_8; lean_object* x_9; +x_8 = lean_alloc_ctor(0, 3, 1); +lean_ctor_set(x_8, 0, x_2); +lean_ctor_set(x_8, 1, x_3); +lean_ctor_set(x_8, 2, x_4); +lean_ctor_set_uint8(x_8, sizeof(void*)*3, x_5); +x_9 = l_Lean_Elab_Term_Do_ToTerm_toTerm(x_1, x_8, x_6, x_7); +return x_9; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_run___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_run___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_4); -lean_dec(x_4); -x_8 = l_Lean_Elab_Term_Do_ToTerm_run(x_1, x_2, x_3, x_7, x_5, x_6); -return x_8; +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_5); +lean_dec(x_5); +x_9 = l_Lean_Elab_Term_Do_ToTerm_run(x_1, x_2, x_3, x_4, x_8, x_6, x_7); +return x_9; } } LEAN_EXPORT lean_object* l_panic___at_Lean_Elab_Term_Do_ToTerm_mkNestedKind___spec__1(lean_object* x_1) { @@ -24887,7 +24897,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_mkNestedKind___closed__1; -x_3 = lean_unsigned_to_nat(1052u); +x_3 = lean_unsigned_to_nat(1055u); x_4 = lean_unsigned_to_nat(27u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -24987,29 +24997,29 @@ x_7 = l_Lean_Elab_Term_Do_ToTerm_mkNestedKind(x_4, x_5, x_6); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_9 = l_Lean_Elab_Term_Do_ToTerm_mkNestedKind(x_4, x_5, x_6); -x_10 = lean_unbox(x_9); -lean_dec(x_9); -x_11 = l_Lean_Elab_Term_Do_ToTerm_run(x_1, x_2, x_3, x_10, x_7, x_8); -return x_11; +lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_10 = l_Lean_Elab_Term_Do_ToTerm_mkNestedKind(x_5, x_6, x_7); +x_11 = lean_unbox(x_10); +lean_dec(x_10); +x_12 = l_Lean_Elab_Term_Do_ToTerm_run(x_1, x_2, x_3, x_4, x_11, x_8, x_9); +return x_12; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -uint8_t x_9; uint8_t x_10; uint8_t x_11; lean_object* x_12; -x_9 = lean_unbox(x_4); -lean_dec(x_4); +uint8_t x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; x_10 = lean_unbox(x_5); lean_dec(x_5); x_11 = lean_unbox(x_6); lean_dec(x_6); -x_12 = l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm(x_1, x_2, x_3, x_9, x_10, x_11, x_7, x_8); -return x_12; +x_12 = lean_unbox(x_7); +lean_dec(x_7); +x_13 = l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm(x_1, x_2, x_3, x_4, x_10, x_11, x_12, x_8, x_9); +return x_13; } } static lean_object* _init_l_panic___at_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___spec__1___closed__1() { @@ -25056,7 +25066,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__1; x_2 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__1; -x_3 = lean_unsigned_to_nat(1108u); +x_3 = lean_unsigned_to_nat(1111u); x_4 = lean_unsigned_to_nat(27u); x_5 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -28347,23 +28357,26 @@ return x_12; } else { -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_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; x_13 = lean_ctor_get(x_4, 0); lean_inc(x_13); x_14 = lean_ctor_get(x_4, 1); lean_inc(x_14); x_15 = lean_ctor_get(x_4, 2); lean_inc(x_15); -x_16 = lean_ctor_get_uint8(x_4, sizeof(void*)*3); +x_16 = lean_ctor_get(x_4, 3); +lean_inc(x_16); +x_17 = lean_ctor_get_uint8(x_4, sizeof(void*)*4); lean_dec(x_4); -x_17 = l_Lean_Elab_Term_Do_insertVars(x_15, x_1); -x_18 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_18, 0, x_13); -lean_ctor_set(x_18, 1, x_14); -lean_ctor_set(x_18, 2, x_17); -lean_ctor_set_uint8(x_18, sizeof(void*)*3, x_16); -x_19 = lean_apply_8(x_3, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -return x_19; +x_18 = l_Lean_Elab_Term_Do_insertVars(x_16, x_1); +x_19 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_19, 0, x_13); +lean_ctor_set(x_19, 1, x_14); +lean_ctor_set(x_19, 2, x_15); +lean_ctor_set(x_19, 3, x_18); +lean_ctor_set_uint8(x_19, sizeof(void*)*4, x_17); +x_20 = lean_apply_8(x_3, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_20; } } } @@ -28458,7 +28471,7 @@ else lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_5); x_16 = lean_array_uget(x_2, x_4); -x_17 = lean_ctor_get(x_1, 2); +x_17 = lean_ctor_get(x_1, 3); x_18 = l_Lean_Syntax_getId(x_16); lean_dec(x_16); x_19 = l_Std_RBNode_find___at_Lean_Elab_Term_Do_extendUpdatedVarsAux_update___spec__1(x_17, x_18); @@ -28642,7 +28655,7 @@ else lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_dec(x_5); x_16 = lean_array_uget(x_2, x_4); -x_17 = lean_ctor_get(x_1, 2); +x_17 = lean_ctor_get(x_1, 3); x_18 = l_Lean_Syntax_getId(x_16); lean_dec(x_16); x_19 = l_Std_RBNode_find___at_Lean_Elab_Term_Do_extendUpdatedVarsAux_update___spec__1(x_17, x_18); @@ -28762,21 +28775,24 @@ return x_10; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_withFor___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_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; +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_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 = 1; +x_13 = lean_ctor_get(x_2, 3); +x_14 = 1; +lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); -x_14 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_14, 0, x_10); -lean_ctor_set(x_14, 1, x_11); -lean_ctor_set(x_14, 2, x_12); -lean_ctor_set_uint8(x_14, sizeof(void*)*3, x_13); -x_15 = lean_apply_8(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_15; +x_15 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_15, 0, x_10); +lean_ctor_set(x_15, 1, x_11); +lean_ctor_set(x_15, 2, x_12); +lean_ctor_set(x_15, 3, x_13); +lean_ctor_set_uint8(x_15, sizeof(void*)*4, x_14); +x_16 = lean_apply_8(x_1, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_16; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_withFor(lean_object* x_1) { @@ -29282,7 +29298,7 @@ return x_63; LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___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_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_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_1, 1); lean_inc(x_10); x_11 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_varSetToArray(x_10); @@ -29291,95 +29307,99 @@ lean_inc(x_12); lean_dec(x_1); x_13 = lean_ctor_get(x_2, 1); lean_inc(x_13); -x_14 = l_Lean_Elab_Term_Do_hasReturn___closed__1; +x_14 = lean_ctor_get(x_2, 2); +lean_inc(x_14); +x_15 = l_Lean_Elab_Term_Do_hasReturn___closed__1; lean_inc(x_12); -x_15 = l_Lean_Elab_Term_Do_hasExitPointPred_loop(x_14, x_12); -x_16 = lean_unbox(x_15); -lean_dec(x_15); -if (x_16 == 0) +x_16 = l_Lean_Elab_Term_Do_hasExitPointPred_loop(x_15, x_12); +x_17 = lean_unbox(x_16); +lean_dec(x_16); +if (x_17 == 0) { -uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = 1; -x_18 = lean_box(x_17); +uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = 1; +x_19 = lean_box(x_18); lean_inc(x_11); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_run___boxed), 6, 4); -lean_closure_set(x_19, 0, x_12); -lean_closure_set(x_19, 1, x_13); -lean_closure_set(x_19, 2, x_11); -lean_closure_set(x_19, 3, x_18); -x_20 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_20) == 0) +x_20 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_run___boxed), 7, 5); +lean_closure_set(x_20, 0, x_12); +lean_closure_set(x_20, 1, x_13); +lean_closure_set(x_20, 2, x_14); +lean_closure_set(x_20, 3, x_11); +lean_closure_set(x_20, 4, x_19); +x_21 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(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_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_11); -lean_ctor_set(x_23, 1, x_21); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 0, x_11); lean_ctor_set(x_24, 1, x_22); -return x_24; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_dec(x_11); -x_25 = lean_ctor_get(x_20, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_20, 1); +x_26 = lean_ctor_get(x_21, 0); lean_inc(x_26); -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; +x_27 = lean_ctor_get(x_21, 1); +lean_inc(x_27); +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; } } else { -uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_28 = 2; -x_29 = lean_box(x_28); +uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = 2; +x_30 = lean_box(x_29); lean_inc(x_11); -x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_run___boxed), 6, 4); -lean_closure_set(x_30, 0, x_12); -lean_closure_set(x_30, 1, x_13); -lean_closure_set(x_30, 2, x_11); -lean_closure_set(x_30, 3, x_29); -x_31 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_31) == 0) +x_31 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_run___boxed), 7, 5); +lean_closure_set(x_31, 0, x_12); +lean_closure_set(x_31, 1, x_13); +lean_closure_set(x_31, 2, x_14); +lean_closure_set(x_31, 3, x_11); +lean_closure_set(x_31, 4, x_30); +x_32 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(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_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +x_33 = lean_ctor_get(x_32, 0); lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_11); -lean_ctor_set(x_34, 1, x_32); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 0, x_11); lean_ctor_set(x_35, 1, x_33); -return x_35; +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 { -lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_dec(x_11); -x_36 = lean_ctor_get(x_31, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_31, 1); +x_37 = lean_ctor_get(x_32, 0); lean_inc(x_37); -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; +x_38 = lean_ctor_get(x_32, 1); +lean_inc(x_38); +lean_dec(x_32); +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; } } } @@ -29512,7 +29532,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_ensureInsideFor(lean_ob _start: { uint8_t x_9; -x_9 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); +x_9 = lean_ctor_get_uint8(x_1, sizeof(void*)*4); if (x_9 == 0) { lean_object* x_10; lean_object* x_11; @@ -34993,303 +35013,306 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, size_t x_8, size_t x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, size_t x_9, size_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) { _start: { -uint8_t x_19; -x_19 = lean_usize_dec_eq(x_8, x_9); -if (x_19 == 0) +uint8_t x_20; +x_20 = lean_usize_dec_eq(x_9, x_10); +if (x_20 == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_27; lean_object* x_28; -x_20 = lean_array_uget(x_7, x_8); -x_27 = lean_ctor_get(x_20, 2); -lean_inc(x_27); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_28; lean_object* x_29; +x_21 = lean_array_uget(x_8, x_9); +x_28 = lean_ctor_get(x_21, 2); +lean_inc(x_28); +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_1); -x_28 = l_Lean_Elab_Term_Do_extendUpdatedVars(x_27, x_1, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -if (lean_obj_tag(x_28) == 0) +x_29 = l_Lean_Elab_Term_Do_extendUpdatedVars(x_28, x_1, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +if (lean_obj_tag(x_29) == 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_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_30 = lean_ctor_get(x_29, 0); lean_inc(x_30); -lean_dec(x_28); -x_31 = lean_ctor_get(x_29, 0); +x_31 = lean_ctor_get(x_29, 1); lean_inc(x_31); lean_dec(x_29); -x_32 = lean_box(x_3); -x_33 = lean_box(x_4); -x_34 = lean_box(x_5); +x_32 = lean_ctor_get(x_30, 0); +lean_inc(x_32); +lean_dec(x_30); +x_33 = lean_box(x_3); +x_34 = lean_box(x_4); +x_35 = lean_box(x_5); lean_inc(x_2); +lean_inc(x_7); lean_inc(x_6); -x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm___boxed), 8, 6); -lean_closure_set(x_35, 0, x_31); -lean_closure_set(x_35, 1, x_6); -lean_closure_set(x_35, 2, x_2); -lean_closure_set(x_35, 3, x_32); -lean_closure_set(x_35, 4, x_33); -lean_closure_set(x_35, 5, x_34); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm___boxed), 9, 7); +lean_closure_set(x_36, 0, x_32); +lean_closure_set(x_36, 1, x_6); +lean_closure_set(x_36, 2, x_7); +lean_closure_set(x_36, 3, x_2); +lean_closure_set(x_36, 4, x_33); +lean_closure_set(x_36, 5, x_34); +lean_closure_set(x_36, 6, x_35); +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); -x_36 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_35, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_30); -if (lean_obj_tag(x_36) == 0) +x_37 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_36, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_31); +if (lean_obj_tag(x_37) == 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_36, 1); +lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_38 = lean_ctor_get(x_37, 0); lean_inc(x_38); -lean_dec(x_36); -x_39 = lean_ctor_get(x_20, 1); +x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); -x_40 = l_Lean_Syntax_isNone(x_39); -if (x_40 == 0) +lean_dec(x_37); +x_40 = lean_ctor_get(x_21, 1); +lean_inc(x_40); +x_41 = l_Lean_Syntax_isNone(x_40); +if (x_41 == 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; 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; 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; -x_41 = lean_unsigned_to_nat(1u); -x_42 = l_Lean_Syntax_getArg(x_39, x_41); -lean_dec(x_39); -lean_inc(x_16); -x_43 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_16, x_17, x_38); -x_44 = lean_ctor_get(x_43, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_43, 1); +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; 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_42 = lean_unsigned_to_nat(1u); +x_43 = l_Lean_Syntax_getArg(x_40, x_42); +lean_dec(x_40); +lean_inc(x_17); +x_44 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_17, x_18, x_39); +x_45 = lean_ctor_get(x_44, 0); lean_inc(x_45); -lean_dec(x_43); -x_46 = lean_ctor_get(x_16, 10); +x_46 = lean_ctor_get(x_44, 1); lean_inc(x_46); -x_47 = lean_st_ref_get(x_17, x_45); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); +lean_dec(x_44); +x_47 = lean_ctor_get(x_17, 10); +lean_inc(x_47); +x_48 = lean_st_ref_get(x_18, x_46); +x_49 = lean_ctor_get(x_48, 0); lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_ctor_get(x_48, 0); +x_50 = lean_ctor_get(x_48, 1); lean_inc(x_50); lean_dec(x_48); -x_51 = lean_environment_main_module(x_50); -x_52 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__4; -x_53 = l_Lean_addMacroScope(x_51, x_52, x_46); -x_54 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__3; -x_55 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__6; -lean_inc(x_44); -x_56 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_56, 0, x_44); -lean_ctor_set(x_56, 1, x_54); -lean_ctor_set(x_56, 2, x_53); -lean_ctor_set(x_56, 3, x_55); -x_57 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; -lean_inc(x_44); -x_58 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_58, 0, x_44); -lean_ctor_set(x_58, 1, x_57); -x_59 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; -lean_inc(x_44); -x_60 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_60, 0, x_44); -lean_ctor_set(x_60, 1, x_59); -x_61 = lean_ctor_get(x_20, 0); -lean_inc(x_61); -lean_dec(x_20); -x_62 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; -x_63 = lean_array_push(x_62, x_61); -x_64 = lean_box(2); -x_65 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; -x_66 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -lean_ctor_set(x_66, 2, x_63); -x_67 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; -lean_inc(x_44); -x_68 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_68, 0, x_44); -lean_ctor_set(x_68, 1, x_67); -x_69 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; -x_70 = lean_array_push(x_69, x_66); -x_71 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; -x_72 = lean_array_push(x_70, x_71); -x_73 = lean_array_push(x_72, x_68); -x_74 = lean_array_push(x_73, x_37); -x_75 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__9; -x_76 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_76, 0, x_64); -lean_ctor_set(x_76, 1, x_75); -lean_ctor_set(x_76, 2, x_74); -x_77 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; -x_78 = lean_array_push(x_77, x_60); -x_79 = lean_array_push(x_78, x_76); -x_80 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; -x_81 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_81, 0, x_64); -lean_ctor_set(x_81, 1, x_80); -lean_ctor_set(x_81, 2, x_79); -x_82 = lean_array_push(x_77, x_81); -x_83 = lean_array_push(x_82, x_71); -x_84 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_84, 0, x_64); -lean_ctor_set(x_84, 1, x_65); -lean_ctor_set(x_84, 2, x_83); -x_85 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; -x_86 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_86, 0, x_44); -lean_ctor_set(x_86, 1, x_85); -x_87 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; -x_88 = lean_array_push(x_87, x_58); -x_89 = lean_array_push(x_88, x_84); -x_90 = lean_array_push(x_89, x_86); -x_91 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; -x_92 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_92, 0, x_64); -lean_ctor_set(x_92, 1, x_91); -lean_ctor_set(x_92, 2, x_90); -x_93 = lean_array_push(x_87, x_42); -x_94 = lean_array_push(x_93, x_10); -x_95 = lean_array_push(x_94, x_92); -x_96 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_96, 0, x_64); -lean_ctor_set(x_96, 1, x_65); -lean_ctor_set(x_96, 2, x_95); -x_97 = lean_array_push(x_77, x_56); -x_98 = lean_array_push(x_97, x_96); -x_99 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; -x_100 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_100, 0, x_64); -lean_ctor_set(x_100, 1, x_99); -lean_ctor_set(x_100, 2, x_98); -x_21 = x_100; -x_22 = x_49; -goto block_26; +x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_51); +lean_dec(x_49); +x_52 = lean_environment_main_module(x_51); +x_53 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__4; +x_54 = l_Lean_addMacroScope(x_52, x_53, x_47); +x_55 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__3; +x_56 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__6; +lean_inc(x_45); +x_57 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_57, 0, x_45); +lean_ctor_set(x_57, 1, x_55); +lean_ctor_set(x_57, 2, x_54); +lean_ctor_set(x_57, 3, x_56); +x_58 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; +lean_inc(x_45); +x_59 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_59, 0, x_45); +lean_ctor_set(x_59, 1, x_58); +x_60 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; +lean_inc(x_45); +x_61 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_61, 0, x_45); +lean_ctor_set(x_61, 1, x_60); +x_62 = lean_ctor_get(x_21, 0); +lean_inc(x_62); +lean_dec(x_21); +x_63 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; +x_64 = lean_array_push(x_63, x_62); +x_65 = lean_box(2); +x_66 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; +x_67 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +lean_ctor_set(x_67, 2, x_64); +x_68 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; +lean_inc(x_45); +x_69 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_69, 0, x_45); +lean_ctor_set(x_69, 1, x_68); +x_70 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; +x_71 = lean_array_push(x_70, x_67); +x_72 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; +x_73 = lean_array_push(x_71, x_72); +x_74 = lean_array_push(x_73, x_69); +x_75 = lean_array_push(x_74, x_38); +x_76 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__9; +x_77 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_77, 0, x_65); +lean_ctor_set(x_77, 1, x_76); +lean_ctor_set(x_77, 2, x_75); +x_78 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; +x_79 = lean_array_push(x_78, x_61); +x_80 = lean_array_push(x_79, x_77); +x_81 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; +x_82 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_82, 0, x_65); +lean_ctor_set(x_82, 1, x_81); +lean_ctor_set(x_82, 2, x_80); +x_83 = lean_array_push(x_78, x_82); +x_84 = lean_array_push(x_83, x_72); +x_85 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_85, 0, x_65); +lean_ctor_set(x_85, 1, x_66); +lean_ctor_set(x_85, 2, x_84); +x_86 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; +x_87 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_87, 0, x_45); +lean_ctor_set(x_87, 1, x_86); +x_88 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; +x_89 = lean_array_push(x_88, x_59); +x_90 = lean_array_push(x_89, x_85); +x_91 = lean_array_push(x_90, x_87); +x_92 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; +x_93 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_93, 0, x_65); +lean_ctor_set(x_93, 1, x_92); +lean_ctor_set(x_93, 2, x_91); +x_94 = lean_array_push(x_88, x_43); +x_95 = lean_array_push(x_94, x_11); +x_96 = lean_array_push(x_95, x_93); +x_97 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_97, 0, x_65); +lean_ctor_set(x_97, 1, x_66); +lean_ctor_set(x_97, 2, x_96); +x_98 = lean_array_push(x_78, x_57); +x_99 = lean_array_push(x_98, x_97); +x_100 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; +x_101 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_101, 0, x_65); +lean_ctor_set(x_101, 1, x_100); +lean_ctor_set(x_101, 2, x_99); +x_22 = x_101; +x_23 = x_50; +goto block_27; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_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; lean_object* x_155; lean_object* x_156; lean_object* x_157; -lean_dec(x_39); -lean_inc(x_16); -x_101 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_16, x_17, x_38); -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; 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; 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_40); +lean_inc(x_17); +x_102 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_17, x_18, x_39); +x_103 = lean_ctor_get(x_102, 0); lean_inc(x_103); -lean_dec(x_101); -x_104 = lean_ctor_get(x_16, 10); +x_104 = lean_ctor_get(x_102, 1); lean_inc(x_104); -x_105 = lean_st_ref_get(x_17, x_103); -x_106 = lean_ctor_get(x_105, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_105, 1); +lean_dec(x_102); +x_105 = lean_ctor_get(x_17, 10); +lean_inc(x_105); +x_106 = lean_st_ref_get(x_18, x_104); +x_107 = lean_ctor_get(x_106, 0); lean_inc(x_107); -lean_dec(x_105); -x_108 = lean_ctor_get(x_106, 0); +x_108 = lean_ctor_get(x_106, 1); lean_inc(x_108); lean_dec(x_106); -x_109 = lean_environment_main_module(x_108); -x_110 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__13; -x_111 = l_Lean_addMacroScope(x_109, x_110, x_104); -x_112 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__9; -x_113 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__15; -lean_inc(x_102); -x_114 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_114, 0, x_102); -lean_ctor_set(x_114, 1, x_112); -lean_ctor_set(x_114, 2, x_111); -lean_ctor_set(x_114, 3, x_113); -x_115 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; -lean_inc(x_102); -x_116 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_116, 0, x_102); -lean_ctor_set(x_116, 1, x_115); -x_117 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; -lean_inc(x_102); -x_118 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_118, 0, x_102); -lean_ctor_set(x_118, 1, x_117); -x_119 = lean_ctor_get(x_20, 0); -lean_inc(x_119); -lean_dec(x_20); -x_120 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; -x_121 = lean_array_push(x_120, x_119); -x_122 = lean_box(2); -x_123 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; -x_124 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -lean_ctor_set(x_124, 2, x_121); -x_125 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; -lean_inc(x_102); -x_126 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_126, 0, x_102); -lean_ctor_set(x_126, 1, x_125); -x_127 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; -x_128 = lean_array_push(x_127, x_124); -x_129 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; -x_130 = lean_array_push(x_128, x_129); -x_131 = lean_array_push(x_130, x_126); -x_132 = lean_array_push(x_131, x_37); -x_133 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__9; -x_134 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_134, 0, x_122); -lean_ctor_set(x_134, 1, x_133); -lean_ctor_set(x_134, 2, x_132); -x_135 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; -x_136 = lean_array_push(x_135, x_118); -x_137 = lean_array_push(x_136, x_134); -x_138 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; -x_139 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_139, 0, x_122); -lean_ctor_set(x_139, 1, x_138); -lean_ctor_set(x_139, 2, x_137); -x_140 = lean_array_push(x_135, x_139); -x_141 = lean_array_push(x_140, x_129); -x_142 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_142, 0, x_122); -lean_ctor_set(x_142, 1, x_123); -lean_ctor_set(x_142, 2, x_141); -x_143 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; -x_144 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_144, 0, x_102); -lean_ctor_set(x_144, 1, x_143); -x_145 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; -x_146 = lean_array_push(x_145, x_116); -x_147 = lean_array_push(x_146, x_142); -x_148 = lean_array_push(x_147, x_144); -x_149 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; -x_150 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_150, 0, x_122); -lean_ctor_set(x_150, 1, x_149); -lean_ctor_set(x_150, 2, x_148); -x_151 = lean_array_push(x_135, x_10); -x_152 = lean_array_push(x_151, x_150); -x_153 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_153, 0, x_122); -lean_ctor_set(x_153, 1, x_123); -lean_ctor_set(x_153, 2, x_152); -x_154 = lean_array_push(x_135, x_114); -x_155 = lean_array_push(x_154, x_153); -x_156 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; -x_157 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_157, 0, x_122); -lean_ctor_set(x_157, 1, x_156); -lean_ctor_set(x_157, 2, x_155); -x_21 = x_157; -x_22 = x_107; -goto block_26; +x_109 = lean_ctor_get(x_107, 0); +lean_inc(x_109); +lean_dec(x_107); +x_110 = lean_environment_main_module(x_109); +x_111 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__13; +x_112 = l_Lean_addMacroScope(x_110, x_111, x_105); +x_113 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__9; +x_114 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10___closed__15; +lean_inc(x_103); +x_115 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_115, 0, x_103); +lean_ctor_set(x_115, 1, x_113); +lean_ctor_set(x_115, 2, x_112); +lean_ctor_set(x_115, 3, x_114); +x_116 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; +lean_inc(x_103); +x_117 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_117, 0, x_103); +lean_ctor_set(x_117, 1, x_116); +x_118 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; +lean_inc(x_103); +x_119 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_119, 0, x_103); +lean_ctor_set(x_119, 1, x_118); +x_120 = lean_ctor_get(x_21, 0); +lean_inc(x_120); +lean_dec(x_21); +x_121 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; +x_122 = lean_array_push(x_121, x_120); +x_123 = lean_box(2); +x_124 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; +x_125 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_125, 0, x_123); +lean_ctor_set(x_125, 1, x_124); +lean_ctor_set(x_125, 2, x_122); +x_126 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; +lean_inc(x_103); +x_127 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_127, 0, x_103); +lean_ctor_set(x_127, 1, x_126); +x_128 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; +x_129 = lean_array_push(x_128, x_125); +x_130 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; +x_131 = lean_array_push(x_129, x_130); +x_132 = lean_array_push(x_131, x_127); +x_133 = lean_array_push(x_132, x_38); +x_134 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__9; +x_135 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_135, 0, x_123); +lean_ctor_set(x_135, 1, x_134); +lean_ctor_set(x_135, 2, x_133); +x_136 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; +x_137 = lean_array_push(x_136, x_119); +x_138 = lean_array_push(x_137, x_135); +x_139 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; +x_140 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_140, 0, x_123); +lean_ctor_set(x_140, 1, x_139); +lean_ctor_set(x_140, 2, x_138); +x_141 = lean_array_push(x_136, x_140); +x_142 = lean_array_push(x_141, x_130); +x_143 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_143, 0, x_123); +lean_ctor_set(x_143, 1, x_124); +lean_ctor_set(x_143, 2, x_142); +x_144 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; +x_145 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_145, 0, x_103); +lean_ctor_set(x_145, 1, x_144); +x_146 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; +x_147 = lean_array_push(x_146, x_117); +x_148 = lean_array_push(x_147, x_143); +x_149 = lean_array_push(x_148, x_145); +x_150 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; +x_151 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_151, 0, x_123); +lean_ctor_set(x_151, 1, x_150); +lean_ctor_set(x_151, 2, x_149); +x_152 = lean_array_push(x_136, x_11); +x_153 = lean_array_push(x_152, x_151); +x_154 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_154, 0, x_123); +lean_ctor_set(x_154, 1, x_124); +lean_ctor_set(x_154, 2, x_153); +x_155 = lean_array_push(x_136, x_115); +x_156 = lean_array_push(x_155, x_154); +x_157 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; +x_158 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_158, 0, x_123); +lean_ctor_set(x_158, 1, x_157); +lean_ctor_set(x_158, 2, x_156); +x_22 = x_158; +x_23 = x_108; +goto block_27; } } else { -lean_object* x_158; lean_object* x_159; lean_object* x_160; -lean_dec(x_20); +lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_dec(x_21); +lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -35297,25 +35320,26 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_158 = lean_ctor_get(x_36, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_36, 1); +x_159 = lean_ctor_get(x_37, 0); lean_inc(x_159); -lean_dec(x_36); -x_160 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_160, 0, x_158); -lean_ctor_set(x_160, 1, x_159); -return x_160; +x_160 = lean_ctor_get(x_37, 1); +lean_inc(x_160); +lean_dec(x_37); +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_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_20); +lean_object* x_162; lean_object* x_163; lean_object* x_164; +lean_dec(x_21); +lean_dec(x_18); lean_dec(x_17); lean_dec(x_16); lean_dec(x_15); @@ -35323,48 +35347,49 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); +lean_dec(x_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_161 = lean_ctor_get(x_28, 0); -lean_inc(x_161); -x_162 = lean_ctor_get(x_28, 1); +x_162 = lean_ctor_get(x_29, 0); lean_inc(x_162); -lean_dec(x_28); -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_161); -lean_ctor_set(x_163, 1, x_162); -return x_163; +x_163 = lean_ctor_get(x_29, 1); +lean_inc(x_163); +lean_dec(x_29); +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; } -block_26: +block_27: { -size_t x_23; size_t x_24; -x_23 = 1; -x_24 = lean_usize_add(x_8, x_23); -x_8 = x_24; -x_10 = x_21; -x_18 = x_22; +size_t x_24; size_t x_25; +x_24 = 1; +x_25 = lean_usize_add(x_9, x_24); +x_9 = x_25; +x_11 = x_22; +x_19 = x_23; goto _start; } } else { -lean_object* x_164; +lean_object* x_165; +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_7); lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); -x_164 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_164, 0, x_10); -lean_ctor_set(x_164, 1, x_18); -return x_164; +x_165 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_165, 0, x_11); +lean_ctor_set(x_165, 1, x_19); +return x_165; } } } @@ -35489,98 +35514,99 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___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_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_13 = lean_ctor_get(x_1, 0); -lean_inc(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; +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); lean_dec(x_1); -x_14 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; -x_15 = 0; -x_16 = lean_box(x_15); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_run___boxed), 6, 4); -lean_closure_set(x_17, 0, x_13); -lean_closure_set(x_17, 1, x_2); -lean_closure_set(x_17, 2, x_14); -lean_closure_set(x_17, 3, x_16); +x_15 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; +x_16 = 0; +x_17 = lean_box(x_16); +x_18 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_run___boxed), 7, 5); +lean_closure_set(x_18, 0, x_14); +lean_closure_set(x_18, 1, x_2); +lean_closure_set(x_18, 2, x_3); +lean_closure_set(x_18, 3, x_15); +lean_closure_set(x_18, 4, x_17); +lean_inc(x_12); lean_inc(x_11); -lean_inc(x_10); -x_18 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_18) == 0) +x_19 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(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; 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; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 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; 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; +x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); -lean_dec(x_18); -lean_inc(x_10); -x_21 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_10, x_11, x_20); -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +lean_inc(x_11); +x_22 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_11, x_12, x_21); +x_23 = lean_ctor_get(x_22, 0); lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_ctor_get(x_10, 10); +x_24 = lean_ctor_get(x_22, 1); lean_inc(x_24); -lean_dec(x_10); -x_25 = lean_st_ref_get(x_11, x_23); +lean_dec(x_22); +x_25 = lean_ctor_get(x_11, 10); +lean_inc(x_25); lean_dec(x_11); -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); +x_26 = lean_st_ref_get(x_12, x_24); +lean_dec(x_12); +x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); -lean_dec(x_25); -x_28 = lean_ctor_get(x_26, 0); +x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = lean_environment_main_module(x_28); -x_30 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__4; -x_31 = l_Lean_addMacroScope(x_29, x_30, x_24); -x_32 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__3; -x_33 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__6; -x_34 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_34, 0, x_22); -lean_ctor_set(x_34, 1, x_32); -lean_ctor_set(x_34, 2, x_31); -lean_ctor_set(x_34, 3, x_33); -x_35 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; -x_36 = lean_array_push(x_35, x_3); -x_37 = lean_array_push(x_36, x_19); -x_38 = lean_box(2); -x_39 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; -x_40 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_40, 2, x_37); -x_41 = lean_array_push(x_35, x_34); -x_42 = lean_array_push(x_41, x_40); -x_43 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; -x_44 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_44, 0, x_38); -lean_ctor_set(x_44, 1, x_43); -lean_ctor_set(x_44, 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_27); -return x_45; +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_environment_main_module(x_29); +x_31 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__4; +x_32 = l_Lean_addMacroScope(x_30, x_31, x_25); +x_33 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__3; +x_34 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2___closed__6; +x_35 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_35, 0, x_23); +lean_ctor_set(x_35, 1, x_33); +lean_ctor_set(x_35, 2, x_32); +lean_ctor_set(x_35, 3, x_34); +x_36 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; +x_37 = lean_array_push(x_36, x_4); +x_38 = lean_array_push(x_37, x_20); +x_39 = lean_box(2); +x_40 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; +x_41 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_41, 2, x_38); +x_42 = lean_array_push(x_36, x_35); +x_43 = lean_array_push(x_42, x_41); +x_44 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; +x_45 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_45, 0, x_39); +lean_ctor_set(x_45, 1, x_44); +lean_ctor_set(x_45, 2, x_43); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_28); +return x_46; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_object* x_47; lean_object* x_48; lean_object* x_49; +lean_dec(x_12); lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_3); -x_46 = lean_ctor_get(x_18, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_18, 1); +lean_dec(x_4); +x_47 = lean_ctor_get(x_19, 0); lean_inc(x_47); -lean_dec(x_18); -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; +x_48 = lean_ctor_get(x_19, 1); +lean_inc(x_48); +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; } } } @@ -35601,48 +35627,49 @@ x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; -lean_dec(x_4); -x_13 = lean_ctor_get(x_1, 0); -lean_inc(x_13); -x_14 = l_Lean_Elab_Term_Do_hasBreakContinueReturn___closed__1; -x_15 = l_Lean_Elab_Term_Do_hasExitPointPred_loop(x_14, x_13); -x_16 = lean_unbox(x_15); -lean_dec(x_15); -if (x_16 == 0) +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +lean_dec(x_5); +x_14 = lean_ctor_get(x_1, 0); +lean_inc(x_14); +x_15 = l_Lean_Elab_Term_Do_hasBreakContinueReturn___closed__1; +x_16 = l_Lean_Elab_Term_Do_hasExitPointPred_loop(x_15, x_14); +x_17 = lean_unbox(x_16); +lean_dec(x_16); +if (x_17 == 0) { -lean_object* x_17; lean_object* x_18; -x_17 = lean_box(0); -x_18 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2(x_1, x_2, x_3, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_18; +lean_object* x_18; lean_object* x_19; +x_18 = lean_box(0); +x_19 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__2(x_1, x_2, x_3, x_4, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_19; } else { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_19 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3___closed__2; -x_20 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__9(x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_20 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3___closed__2; +x_21 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__9(x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12, 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_6); -lean_dec(x_5); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); +x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); -lean_dec(x_20); -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_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +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; } } } @@ -35725,7 +35752,7 @@ lean_inc(x_16); x_27 = l_Lean_Elab_Term_Do_extendUpdatedVars(x_1, x_16, x_9, x_10, x_11, x_12, x_13, x_14, x_15); if (lean_obj_tag(x_27) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; +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_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); @@ -35736,18 +35763,22 @@ lean_inc(x_30); lean_dec(x_28); x_31 = lean_ctor_get(x_8, 1); lean_inc(x_31); -x_32 = lean_box(x_20); -x_33 = lean_box(x_23); -x_34 = lean_box(x_26); +x_32 = lean_ctor_get(x_8, 2); +lean_inc(x_32); +x_33 = lean_box(x_20); +x_34 = lean_box(x_23); +x_35 = lean_box(x_26); lean_inc(x_17); +lean_inc(x_32); lean_inc(x_31); -x_35 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm___boxed), 8, 6); -lean_closure_set(x_35, 0, x_30); -lean_closure_set(x_35, 1, x_31); -lean_closure_set(x_35, 2, x_17); -lean_closure_set(x_35, 3, x_32); -lean_closure_set(x_35, 4, x_33); -lean_closure_set(x_35, 5, x_34); +x_36 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_mkNestedTerm___boxed), 9, 7); +lean_closure_set(x_36, 0, x_30); +lean_closure_set(x_36, 1, x_31); +lean_closure_set(x_36, 2, x_32); +lean_closure_set(x_36, 3, x_17); +lean_closure_set(x_36, 4, x_33); +lean_closure_set(x_36, 5, x_34); +lean_closure_set(x_36, 6, x_35); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -35755,45 +35786,45 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_36 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_35, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_29); -if (lean_obj_tag(x_36) == 0) +x_37 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_36, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_29); +if (lean_obj_tag(x_37) == 0) { -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_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); +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_37, 0); lean_inc(x_38); -lean_dec(x_36); -x_39 = lean_array_get_size(x_2); -x_40 = lean_unsigned_to_nat(0u); -x_41 = lean_nat_dec_lt(x_40, x_39); -if (x_41 == 0) +x_39 = lean_ctor_get(x_37, 1); +lean_inc(x_39); +lean_dec(x_37); +x_40 = lean_array_get_size(x_2); +x_41 = lean_unsigned_to_nat(0u); +x_42 = lean_nat_dec_lt(x_41, x_40); +if (x_42 == 0) { -lean_dec(x_39); +lean_dec(x_40); lean_dec(x_16); lean_dec(x_2); -x_42 = x_37; x_43 = x_38; -goto block_81; +x_44 = x_39; +goto block_82; } else { -uint8_t x_82; -x_82 = lean_nat_dec_le(x_39, x_39); -if (x_82 == 0) +uint8_t x_83; +x_83 = lean_nat_dec_le(x_40, x_40); +if (x_83 == 0) { -lean_dec(x_39); +lean_dec(x_40); lean_dec(x_16); lean_dec(x_2); -x_42 = x_37; x_43 = x_38; -goto block_81; +x_44 = x_39; +goto block_82; } else { -size_t x_83; lean_object* x_84; -x_83 = lean_usize_of_nat(x_39); -lean_dec(x_39); +size_t x_84; lean_object* x_85; +x_84 = lean_usize_of_nat(x_40); +lean_dec(x_40); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); @@ -35801,25 +35832,27 @@ lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); +lean_inc(x_32); lean_inc(x_31); lean_inc(x_17); -x_84 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10(x_16, x_17, x_20, x_23, x_26, x_31, x_2, x_6, x_83, x_37, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_38); +x_85 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10(x_16, x_17, x_20, x_23, x_26, x_31, x_32, x_2, x_6, x_84, x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_39); lean_dec(x_2); -if (lean_obj_tag(x_84) == 0) +if (lean_obj_tag(x_85) == 0) { -lean_object* x_85; lean_object* x_86; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_85, 0); lean_inc(x_86); -lean_dec(x_84); -x_42 = x_85; +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); x_43 = x_86; -goto block_81; +x_44 = x_87; +goto block_82; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_object* x_88; lean_object* x_89; lean_object* x_90; +lean_dec(x_32); lean_dec(x_31); lean_dec(x_17); lean_dec(x_14); @@ -35832,161 +35865,163 @@ lean_dec(x_8); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -x_87 = lean_ctor_get(x_84, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_84, 1); +x_88 = lean_ctor_get(x_85, 0); lean_inc(x_88); -lean_dec(x_84); -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_89 = lean_ctor_get(x_85, 1); +lean_inc(x_89); +lean_dec(x_85); +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; } } } -block_81: +block_82: { if (lean_obj_tag(x_3) == 0) { -lean_object* x_44; +lean_object* x_45; +lean_dec(x_32); lean_dec(x_31); lean_dec(x_5); -x_44 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1(x_17, x_20, x_23, x_26, x_4, x_42, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_43); -return x_44; +x_45 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1(x_17, x_20, x_23, x_26, x_4, x_43, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_44); +return x_45; } else { -lean_object* x_45; uint8_t x_46; lean_object* x_78; -x_45 = lean_ctor_get(x_3, 0); -lean_inc(x_45); +lean_object* x_46; uint8_t x_47; lean_object* x_79; +x_46 = lean_ctor_get(x_3, 0); +lean_inc(x_46); lean_dec(x_3); -x_78 = lean_ctor_get(x_45, 1); -lean_inc(x_78); -if (lean_obj_tag(x_78) == 0) -{ -uint8_t x_79; -x_79 = 1; -x_46 = x_79; -goto block_77; -} -else +x_79 = lean_ctor_get(x_46, 1); +lean_inc(x_79); +if (lean_obj_tag(x_79) == 0) { uint8_t x_80; -lean_dec(x_78); -x_80 = 0; -x_46 = x_80; -goto block_77; -} -block_77: -{ -uint8_t x_47; -if (x_46 == 0) -{ -uint8_t x_75; -x_75 = 0; -x_47 = x_75; -goto block_74; +x_80 = 1; +x_47 = x_80; +goto block_78; } else { -uint8_t x_76; -x_76 = 1; -x_47 = x_76; -goto block_74; +uint8_t x_81; +lean_dec(x_79); +x_81 = 0; +x_47 = x_81; +goto block_78; } -block_74: +block_78: { -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; -x_48 = lean_ctor_get(x_13, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_13, 1); -lean_inc(x_49); -x_50 = lean_ctor_get(x_13, 2); -lean_inc(x_50); -x_51 = lean_ctor_get(x_13, 3); -lean_inc(x_51); -x_52 = lean_ctor_get(x_13, 4); -lean_inc(x_52); -x_53 = lean_ctor_get(x_13, 5); -lean_inc(x_53); -x_54 = lean_ctor_get(x_13, 6); -lean_inc(x_54); -x_55 = lean_ctor_get(x_13, 7); -lean_inc(x_55); -x_56 = lean_ctor_get(x_13, 8); -lean_inc(x_56); -x_57 = lean_ctor_get(x_13, 9); -lean_inc(x_57); -x_58 = lean_ctor_get(x_13, 10); -lean_inc(x_58); -x_59 = l_Lean_replaceRef(x_5, x_53); -lean_dec(x_53); -lean_dec(x_5); -x_60 = lean_alloc_ctor(0, 11, 0); -lean_ctor_set(x_60, 0, x_48); -lean_ctor_set(x_60, 1, x_49); -lean_ctor_set(x_60, 2, x_50); -lean_ctor_set(x_60, 3, x_51); -lean_ctor_set(x_60, 4, x_52); -lean_ctor_set(x_60, 5, x_59); -lean_ctor_set(x_60, 6, x_54); -lean_ctor_set(x_60, 7, x_55); -lean_ctor_set(x_60, 8, x_56); -lean_ctor_set(x_60, 9, x_57); -lean_ctor_set(x_60, 10, x_58); +uint8_t x_48; if (x_47 == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_45); -lean_dec(x_42); +uint8_t x_76; +x_76 = 0; +x_48 = x_76; +goto block_75; +} +else +{ +uint8_t x_77; +x_77 = 1; +x_48 = x_77; +goto block_75; +} +block_75: +{ +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; +x_49 = lean_ctor_get(x_13, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_13, 1); +lean_inc(x_50); +x_51 = lean_ctor_get(x_13, 2); +lean_inc(x_51); +x_52 = lean_ctor_get(x_13, 3); +lean_inc(x_52); +x_53 = lean_ctor_get(x_13, 4); +lean_inc(x_53); +x_54 = lean_ctor_get(x_13, 5); +lean_inc(x_54); +x_55 = lean_ctor_get(x_13, 6); +lean_inc(x_55); +x_56 = lean_ctor_get(x_13, 7); +lean_inc(x_56); +x_57 = lean_ctor_get(x_13, 8); +lean_inc(x_57); +x_58 = lean_ctor_get(x_13, 9); +lean_inc(x_58); +x_59 = lean_ctor_get(x_13, 10); +lean_inc(x_59); +x_60 = l_Lean_replaceRef(x_5, x_54); +lean_dec(x_54); +lean_dec(x_5); +x_61 = lean_alloc_ctor(0, 11, 0); +lean_ctor_set(x_61, 0, x_49); +lean_ctor_set(x_61, 1, x_50); +lean_ctor_set(x_61, 2, x_51); +lean_ctor_set(x_61, 3, x_52); +lean_ctor_set(x_61, 4, x_53); +lean_ctor_set(x_61, 5, x_60); +lean_ctor_set(x_61, 6, x_55); +lean_ctor_set(x_61, 7, x_56); +lean_ctor_set(x_61, 8, x_57); +lean_ctor_set(x_61, 9, x_58); +lean_ctor_set(x_61, 10, x_59); +if (x_48 == 0) +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_46); +lean_dec(x_43); +lean_dec(x_32); lean_dec(x_31); lean_dec(x_17); lean_dec(x_13); lean_dec(x_4); -x_61 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__4___closed__5; -x_62 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__9(x_61, x_8, x_9, x_10, x_11, x_12, x_60, x_14, x_43); +x_62 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__4___closed__5; +x_63 = l_Lean_throwError___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__9(x_62, x_8, x_9, x_10, x_11, x_12, x_61, x_14, x_44); lean_dec(x_14); -lean_dec(x_60); +lean_dec(x_61); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_63 = lean_ctor_get(x_62, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_62, 1); +x_64 = lean_ctor_get(x_63, 0); lean_inc(x_64); -lean_dec(x_62); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +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_66; lean_object* x_67; -x_66 = lean_box(0); +lean_object* x_67; lean_object* x_68; +x_67 = lean_box(0); lean_inc(x_14); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -x_67 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3(x_45, x_31, x_42, x_66, x_8, x_9, x_10, x_11, x_12, x_60, x_14, x_43); -if (lean_obj_tag(x_67) == 0) +x_68 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__3(x_46, x_31, x_32, x_43, x_67, x_8, x_9, x_10, x_11, x_12, x_61, x_14, x_44); +if (lean_obj_tag(x_68) == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_68, 0); lean_inc(x_69); -lean_dec(x_67); -x_70 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1(x_17, x_20, x_23, x_26, x_4, x_68, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_69); -return x_70; +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +x_71 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1(x_17, x_20, x_23, x_26, x_4, x_69, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_70); +return x_71; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_dec(x_17); lean_dec(x_14); lean_dec(x_13); @@ -35996,15 +36031,15 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_4); -x_71 = lean_ctor_get(x_67, 0); -lean_inc(x_71); -x_72 = lean_ctor_get(x_67, 1); +x_72 = lean_ctor_get(x_68, 0); lean_inc(x_72); -lean_dec(x_67); -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; +x_73 = lean_ctor_get(x_68, 1); +lean_inc(x_73); +lean_dec(x_68); +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; } } } @@ -36014,7 +36049,8 @@ return x_73; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_32); lean_dec(x_31); lean_dec(x_17); lean_dec(x_16); @@ -36029,20 +36065,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_90 = lean_ctor_get(x_36, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_36, 1); +x_91 = lean_ctor_get(x_37, 0); lean_inc(x_91); -lean_dec(x_36); -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; +x_92 = lean_ctor_get(x_37, 1); +lean_inc(x_92); +lean_dec(x_37); +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 { -lean_object* x_93; lean_object* x_94; lean_object* x_95; +lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_dec(x_17); lean_dec(x_16); lean_dec(x_14); @@ -36056,15 +36092,15 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_93 = lean_ctor_get(x_27, 0); -lean_inc(x_93); -x_94 = lean_ctor_get(x_27, 1); +x_94 = lean_ctor_get(x_27, 0); lean_inc(x_94); +x_95 = lean_ctor_get(x_27, 1); +lean_inc(x_95); lean_dec(x_27); -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; +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +return x_96; } } } @@ -37069,7 +37105,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_uget(x_4, x_3); x_7 = lean_unsigned_to_nat(0u); x_8 = lean_array_uset(x_4, x_3, x_7); -x_9 = lean_ctor_get(x_1, 2); +x_9 = lean_ctor_get(x_1, 3); x_10 = l_Lean_Syntax_getId(x_6); x_11 = 1; x_12 = lean_usize_add(x_3, x_11); @@ -37569,516 +37605,615 @@ return x_216; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* 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) { _start: { -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; 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; 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_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; 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; 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_inc(x_12); -x_15 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_12, x_13, 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); -lean_dec(x_15); -x_18 = lean_ctor_get(x_12, 10); +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; 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; 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_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; 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; 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; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_inc(x_18); -x_19 = lean_st_ref_get(x_13, x_17); -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_ctor_get(x_20, 0); +x_21 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_18, x_19, x_20); +x_22 = lean_ctor_get(x_21, 0); lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_environment_main_module(x_22); -x_24 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimiter___closed__1; -lean_inc(x_16); -x_25 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_25, 0, x_16); -lean_ctor_set(x_25, 1, x_24); -x_26 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; -lean_inc(x_16); -x_27 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_27, 0, x_16); -lean_ctor_set(x_27, 1, x_26); -lean_inc(x_18); +x_23 = lean_ctor_get(x_21, 1); lean_inc(x_23); -x_28 = l_Lean_addMacroScope(x_23, x_1, x_18); -lean_inc(x_3); -lean_inc(x_16); -x_29 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_29, 0, x_16); -lean_ctor_set(x_29, 1, x_2); -lean_ctor_set(x_29, 2, x_28); -lean_ctor_set(x_29, 3, x_3); -x_30 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__6; -lean_inc(x_16); -x_31 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_31, 0, x_16); -lean_ctor_set(x_31, 1, x_30); -x_32 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; -x_33 = lean_array_push(x_32, x_6); -x_34 = lean_box(2); -x_35 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__8; -x_36 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -lean_ctor_set(x_36, 2, x_33); -x_37 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; +lean_dec(x_21); +x_24 = lean_ctor_get(x_18, 10); +lean_inc(x_24); +x_25 = lean_st_ref_get(x_19, 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); +lean_dec(x_26); +x_29 = lean_environment_main_module(x_28); +x_30 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimiter___closed__1; +lean_inc(x_1); +x_31 = lean_name_mk_string(x_1, x_30); +lean_inc(x_22); +x_32 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_32, 0, x_22); +lean_ctor_set(x_32, 1, x_30); +x_33 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__9; +lean_inc(x_1); +x_34 = lean_name_mk_string(x_1, x_33); +x_35 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___lambda__2___closed__2; +lean_inc(x_1); +x_36 = lean_name_mk_string(x_1, x_35); +x_37 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__13; +lean_inc(x_1); +x_38 = lean_name_mk_string(x_1, x_37); +x_39 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; +lean_inc(x_22); +x_40 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_40, 0, x_22); +lean_ctor_set(x_40, 1, x_39); +x_41 = lean_box(2); +x_42 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; +lean_inc(x_2); +x_43 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_2); +lean_ctor_set(x_43, 2, x_42); +x_44 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__4; +lean_inc(x_1); +x_45 = lean_name_mk_string(x_1, x_44); +lean_inc(x_24); lean_inc(x_29); -x_38 = lean_array_push(x_37, x_29); -x_39 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; -x_40 = lean_array_push(x_38, x_39); -x_41 = lean_array_push(x_40, x_31); -x_42 = lean_array_push(x_41, x_36); -x_43 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__5; -x_44 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_44, 0, x_34); -lean_ctor_set(x_44, 1, x_43); -lean_ctor_set(x_44, 2, x_42); -x_45 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; -x_46 = lean_array_push(x_45, x_27); -x_47 = lean_array_push(x_46, x_39); -x_48 = lean_array_push(x_47, x_44); -x_49 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__14; -x_50 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_50, 0, x_34); -lean_ctor_set(x_50, 1, x_49); -lean_ctor_set(x_50, 2, x_48); -x_51 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__19; -lean_inc(x_16); -x_52 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_52, 0, x_16); -lean_ctor_set(x_52, 1, x_51); -x_53 = lean_array_push(x_32, x_52); -x_54 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; -x_55 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_55, 0, x_34); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set(x_55, 2, x_53); -x_56 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; -x_57 = lean_array_push(x_56, x_50); -lean_inc(x_55); -x_58 = lean_array_push(x_57, x_55); -x_59 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__3; -x_60 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_60, 0, x_34); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set(x_60, 2, x_58); -x_61 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; -lean_inc(x_16); -x_62 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_62, 0, x_16); -lean_ctor_set(x_62, 1, x_61); -x_63 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__14; -lean_inc(x_16); -x_64 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_64, 0, x_16); -lean_ctor_set(x_64, 1, x_63); -x_65 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__20; -lean_inc(x_16); +x_46 = l_Lean_addMacroScope(x_29, x_3, x_24); +lean_inc(x_5); +lean_inc(x_22); +x_47 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_47, 0, x_22); +lean_ctor_set(x_47, 1, x_4); +lean_ctor_set(x_47, 2, x_46); +lean_ctor_set(x_47, 3, x_5); +x_48 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__6; +lean_inc(x_22); +x_49 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_49, 0, x_22); +lean_ctor_set(x_49, 1, x_48); +x_50 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__7; +lean_inc(x_1); +x_51 = lean_name_mk_string(x_1, x_50); +lean_inc(x_6); +x_52 = lean_array_push(x_6, x_12); +lean_inc(x_51); +x_53 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_53, 0, x_41); +lean_ctor_set(x_53, 1, x_51); +lean_ctor_set(x_53, 2, x_52); +x_54 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; +lean_inc(x_47); +x_55 = lean_array_push(x_54, x_47); +lean_inc(x_43); +x_56 = lean_array_push(x_55, x_43); +x_57 = lean_array_push(x_56, x_49); +x_58 = lean_array_push(x_57, x_53); +x_59 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_59, 0, x_41); +lean_ctor_set(x_59, 1, x_45); +lean_ctor_set(x_59, 2, x_58); +x_60 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; +x_61 = lean_array_push(x_60, x_40); +lean_inc(x_43); +x_62 = lean_array_push(x_61, x_43); +x_63 = lean_array_push(x_62, x_59); +x_64 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_64, 0, x_41); +lean_ctor_set(x_64, 1, x_38); +lean_ctor_set(x_64, 2, x_63); +x_65 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__19; +lean_inc(x_22); x_66 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_66, 0, x_16); +lean_ctor_set(x_66, 0, x_22); lean_ctor_set(x_66, 1, x_65); -x_67 = lean_array_push(x_32, x_66); -x_68 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__16; -x_69 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_69, 0, x_34); -lean_ctor_set(x_69, 1, x_68); -lean_ctor_set(x_69, 2, x_67); -x_70 = lean_array_push(x_45, x_29); -x_71 = lean_array_push(x_70, x_64); -lean_inc(x_71); -x_72 = lean_array_push(x_71, x_69); -x_73 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__13; -x_74 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_74, 0, x_34); -lean_ctor_set(x_74, 1, x_73); -lean_ctor_set(x_74, 2, x_72); -x_75 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__18; -x_76 = lean_array_push(x_75, x_4); -x_77 = lean_array_push(x_76, x_39); -x_78 = lean_array_push(x_77, x_39); -x_79 = lean_array_push(x_78, x_62); -x_80 = lean_array_push(x_79, x_74); -x_81 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__2; -x_82 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_82, 0, x_34); -lean_ctor_set(x_82, 1, x_81); -lean_ctor_set(x_82, 2, x_80); -x_83 = lean_array_push(x_32, x_82); -x_84 = l_Lean_Elab_Term_Do_ToTerm_reassignToTerm___closed__2; -x_85 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_85, 0, x_34); -lean_ctor_set(x_85, 1, x_84); -lean_ctor_set(x_85, 2, x_83); -x_86 = lean_array_push(x_56, x_85); -x_87 = lean_array_push(x_86, x_55); -x_88 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_88, 0, x_34); -lean_ctor_set(x_88, 1, x_59); -lean_ctor_set(x_88, 2, x_87); -x_89 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__16; -lean_inc(x_16); -x_90 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_90, 0, x_16); -lean_ctor_set(x_90, 1, x_89); -x_91 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__17; -lean_inc(x_16); -x_92 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_92, 0, x_16); -lean_ctor_set(x_92, 1, x_91); -x_93 = lean_array_push(x_32, x_92); -x_94 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_94, 0, x_34); -lean_ctor_set(x_94, 1, x_68); -lean_ctor_set(x_94, 2, x_93); -x_95 = lean_array_push(x_71, x_94); -x_96 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_96, 0, x_34); -lean_ctor_set(x_96, 1, x_73); -lean_ctor_set(x_96, 2, x_95); -x_97 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__10; -x_98 = lean_array_push(x_97, x_96); -x_99 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__9; -x_100 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_100, 0, x_34); -lean_ctor_set(x_100, 1, x_99); -lean_ctor_set(x_100, 2, x_98); -x_101 = lean_array_push(x_32, x_100); +lean_inc(x_6); +x_67 = lean_array_push(x_6, x_66); +lean_inc(x_2); +x_68 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_68, 0, x_41); +lean_ctor_set(x_68, 1, x_2); +lean_ctor_set(x_68, 2, x_67); +lean_inc(x_7); +x_69 = lean_array_push(x_7, x_64); +lean_inc(x_68); +x_70 = lean_array_push(x_69, x_68); +lean_inc(x_36); +x_71 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_71, 0, x_41); +lean_ctor_set(x_71, 1, x_36); +lean_ctor_set(x_71, 2, x_70); +x_72 = l_Lean_Elab_Term_Do_ToTerm_reassignToTerm___closed__1; +lean_inc(x_1); +x_73 = lean_name_mk_string(x_1, x_72); +x_74 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__1; +lean_inc(x_1); +x_75 = lean_name_mk_string(x_1, x_74); +x_76 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; +lean_inc(x_22); +x_77 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_77, 0, x_22); +lean_ctor_set(x_77, 1, x_76); +x_78 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__12; +lean_inc(x_1); +x_79 = lean_name_mk_string(x_1, x_78); +x_80 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__14; +lean_inc(x_22); +x_81 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_81, 0, x_22); +lean_ctor_set(x_81, 1, x_80); +x_82 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__20; +lean_inc(x_22); +x_83 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_83, 0, x_22); +lean_ctor_set(x_83, 1, x_82); +lean_inc(x_6); +x_84 = lean_array_push(x_6, x_83); +x_85 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__16; +x_86 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_86, 0, x_41); +lean_ctor_set(x_86, 1, x_85); +lean_ctor_set(x_86, 2, x_84); +x_87 = lean_array_push(x_60, x_47); +x_88 = lean_array_push(x_87, x_81); +lean_inc(x_88); +x_89 = lean_array_push(x_88, x_86); +lean_inc(x_79); +x_90 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_90, 0, x_41); +lean_ctor_set(x_90, 1, x_79); +lean_ctor_set(x_90, 2, x_89); +x_91 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__18; +x_92 = lean_array_push(x_91, x_8); +lean_inc(x_43); +x_93 = lean_array_push(x_92, x_43); +lean_inc(x_43); +x_94 = lean_array_push(x_93, x_43); +x_95 = lean_array_push(x_94, x_77); +x_96 = lean_array_push(x_95, x_90); +x_97 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_97, 0, x_41); +lean_ctor_set(x_97, 1, x_75); +lean_ctor_set(x_97, 2, x_96); +lean_inc(x_6); +x_98 = lean_array_push(x_6, x_97); +x_99 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_99, 0, x_41); +lean_ctor_set(x_99, 1, x_73); +lean_ctor_set(x_99, 2, x_98); +lean_inc(x_7); +x_100 = lean_array_push(x_7, x_99); +x_101 = lean_array_push(x_100, x_68); +lean_inc(x_36); x_102 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_102, 0, x_34); -lean_ctor_set(x_102, 1, x_54); +lean_ctor_set(x_102, 0, x_41); +lean_ctor_set(x_102, 1, x_36); lean_ctor_set(x_102, 2, x_101); -x_103 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__10; -lean_inc(x_16); -x_104 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_104, 0, x_16); -lean_ctor_set(x_104, 1, x_103); -x_105 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__12; -lean_inc(x_16); +x_103 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__8; +lean_inc(x_1); +x_104 = lean_name_mk_string(x_1, x_103); +x_105 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__16; +lean_inc(x_22); x_106 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_106, 0, x_16); +lean_ctor_set(x_106, 0, x_22); lean_ctor_set(x_106, 1, x_105); -x_107 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; -lean_inc(x_18); -lean_inc(x_23); -x_108 = l_Lean_addMacroScope(x_23, x_107, x_18); -x_109 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__14; -lean_inc(x_3); -x_110 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_110, 0, x_109); -lean_ctor_set(x_110, 1, x_3); -lean_inc(x_3); -x_111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_3); -x_112 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; -lean_inc(x_16); -x_113 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_113, 0, x_16); -lean_ctor_set(x_113, 1, x_112); -lean_ctor_set(x_113, 2, x_108); -lean_ctor_set(x_113, 3, x_111); -x_114 = lean_array_push(x_32, x_113); -x_115 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_115, 0, x_34); -lean_ctor_set(x_115, 1, x_54); -lean_ctor_set(x_115, 2, x_114); -x_116 = lean_array_push(x_32, x_115); +x_107 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__9; +lean_inc(x_1); +x_108 = lean_name_mk_string(x_1, x_107); +x_109 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__17; +lean_inc(x_22); +x_110 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_110, 0, x_22); +lean_ctor_set(x_110, 1, x_109); +lean_inc(x_6); +x_111 = lean_array_push(x_6, x_110); +x_112 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_112, 0, x_41); +lean_ctor_set(x_112, 1, x_85); +lean_ctor_set(x_112, 2, x_111); +x_113 = lean_array_push(x_88, x_112); +x_114 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_114, 0, x_41); +lean_ctor_set(x_114, 1, x_79); +lean_ctor_set(x_114, 2, x_113); +lean_inc(x_43); +lean_inc(x_7); +x_115 = lean_array_push(x_7, x_43); +x_116 = lean_array_push(x_115, x_114); x_117 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_117, 0, x_34); -lean_ctor_set(x_117, 1, x_54); +lean_ctor_set(x_117, 0, x_41); +lean_ctor_set(x_117, 1, x_108); lean_ctor_set(x_117, 2, x_116); -x_118 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; -lean_inc(x_16); -x_119 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_119, 0, x_16); -lean_ctor_set(x_119, 1, x_118); -x_120 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__9; -lean_inc(x_18); -lean_inc(x_23); -x_121 = l_Lean_addMacroScope(x_23, x_120, x_18); -lean_inc(x_3); -x_122 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_122, 0, x_120); -lean_ctor_set(x_122, 1, x_3); -lean_inc(x_3); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_122); -lean_ctor_set(x_123, 1, x_3); -x_124 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__5; -lean_inc(x_16); -x_125 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_125, 0, x_16); -lean_ctor_set(x_125, 1, x_124); -lean_ctor_set(x_125, 2, x_121); -lean_ctor_set(x_125, 3, x_123); -x_126 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; -lean_inc(x_16); +lean_inc(x_6); +x_118 = lean_array_push(x_6, x_117); +lean_inc(x_2); +x_119 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_119, 0, x_41); +lean_ctor_set(x_119, 1, x_2); +lean_ctor_set(x_119, 2, x_118); +x_120 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__10; +lean_inc(x_22); +x_121 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_121, 0, x_22); +lean_ctor_set(x_121, 1, x_120); +x_122 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__3; +lean_inc(x_1); +x_123 = lean_name_mk_string(x_1, x_122); +x_124 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__11; +lean_inc(x_1); +x_125 = lean_name_mk_string(x_1, x_124); +x_126 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__12; +lean_inc(x_22); x_127 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_127, 0, x_16); +lean_ctor_set(x_127, 0, x_22); lean_ctor_set(x_127, 1, x_126); -x_128 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___closed__3; -lean_inc(x_16); -x_129 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_129, 0, x_16); -lean_ctor_set(x_129, 1, x_128); -x_130 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1___closed__1; -lean_inc(x_16); -x_131 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_131, 0, x_16); -lean_ctor_set(x_131, 1, x_130); -x_132 = lean_array_push(x_32, x_131); -x_133 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___closed__5; -x_134 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_134, 0, x_34); -lean_ctor_set(x_134, 1, x_133); -lean_ctor_set(x_134, 2, x_132); -x_135 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkPureUnit___closed__7; -lean_inc(x_18); -lean_inc(x_23); -x_136 = l_Lean_addMacroScope(x_23, x_135, x_18); -lean_inc(x_3); -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_3); -lean_inc(x_3); -x_138 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_3); -x_139 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkPureUnit___closed__6; -lean_inc(x_16); -x_140 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_140, 0, x_16); -lean_ctor_set(x_140, 1, x_139); -lean_ctor_set(x_140, 2, x_136); -lean_ctor_set(x_140, 3, x_138); -x_141 = lean_array_push(x_45, x_129); -x_142 = lean_array_push(x_141, x_134); -lean_inc(x_142); -x_143 = lean_array_push(x_142, x_140); -x_144 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___closed__2; -x_145 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_145, 0, x_34); -lean_ctor_set(x_145, 1, x_144); -lean_ctor_set(x_145, 2, x_143); -x_146 = lean_array_push(x_56, x_145); -x_147 = lean_array_push(x_146, x_39); -x_148 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_148, 0, x_34); -lean_ctor_set(x_148, 1, x_54); -lean_ctor_set(x_148, 2, x_147); -x_149 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; -lean_inc(x_16); -x_150 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_150, 0, x_16); -lean_ctor_set(x_150, 1, x_149); -x_151 = lean_array_push(x_45, x_127); -x_152 = lean_array_push(x_151, x_148); -x_153 = lean_array_push(x_152, x_150); -x_154 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; -x_155 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_155, 0, x_34); +x_128 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; +lean_inc(x_24); +lean_inc(x_29); +x_129 = l_Lean_addMacroScope(x_29, x_128, x_24); +x_130 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__10; +lean_inc(x_9); +x_131 = lean_name_mk_string(x_9, x_130); +lean_inc(x_5); +x_132 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_132, 0, x_131); +lean_ctor_set(x_132, 1, x_5); +lean_inc(x_5); +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_5); +x_134 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; +lean_inc(x_22); +x_135 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_135, 0, x_22); +lean_ctor_set(x_135, 1, x_134); +lean_ctor_set(x_135, 2, x_129); +lean_ctor_set(x_135, 3, x_133); +lean_inc(x_6); +x_136 = lean_array_push(x_6, x_135); +lean_inc(x_2); +x_137 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_137, 0, x_41); +lean_ctor_set(x_137, 1, x_2); +lean_ctor_set(x_137, 2, x_136); +lean_inc(x_6); +x_138 = lean_array_push(x_6, x_137); +lean_inc(x_2); +x_139 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_139, 0, x_41); +lean_ctor_set(x_139, 1, x_2); +lean_ctor_set(x_139, 2, x_138); +x_140 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; +lean_inc(x_22); +x_141 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_141, 0, x_22); +lean_ctor_set(x_141, 1, x_140); +x_142 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__9; +lean_inc(x_24); +lean_inc(x_29); +x_143 = l_Lean_addMacroScope(x_29, x_142, x_24); +lean_inc(x_5); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_5); +lean_inc(x_5); +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_5); +x_146 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__5; +lean_inc(x_22); +x_147 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_147, 0, x_22); +lean_ctor_set(x_147, 1, x_146); +lean_ctor_set(x_147, 2, x_143); +lean_ctor_set(x_147, 3, x_145); +x_148 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__1; +lean_inc(x_1); +x_149 = lean_name_mk_string(x_1, x_148); +x_150 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; +lean_inc(x_22); +x_151 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_151, 0, x_22); +lean_ctor_set(x_151, 1, x_150); +x_152 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___closed__1; +lean_inc(x_1); +x_153 = lean_name_mk_string(x_1, x_152); +x_154 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___closed__3; +lean_inc(x_22); +x_155 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_155, 0, x_22); lean_ctor_set(x_155, 1, x_154); -lean_ctor_set(x_155, 2, x_153); -x_156 = lean_array_push(x_32, x_155); -x_157 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_157, 0, x_34); -lean_ctor_set(x_157, 1, x_54); -lean_ctor_set(x_157, 2, x_156); -x_158 = lean_array_push(x_56, x_125); -x_159 = lean_array_push(x_158, x_157); -x_160 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; -x_161 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_161, 0, x_34); -lean_ctor_set(x_161, 1, x_160); -lean_ctor_set(x_161, 2, x_159); -x_162 = lean_array_push(x_32, x_161); -x_163 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_163, 0, x_34); -lean_ctor_set(x_163, 1, x_35); -lean_ctor_set(x_163, 2, x_162); -x_164 = lean_array_push(x_56, x_163); -x_165 = lean_array_push(x_164, x_39); -x_166 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_166, 0, x_34); -lean_ctor_set(x_166, 1, x_59); -lean_ctor_set(x_166, 2, x_165); -x_167 = lean_array_push(x_32, x_166); -x_168 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_168, 0, x_34); -lean_ctor_set(x_168, 1, x_54); -lean_ctor_set(x_168, 2, x_167); -x_169 = lean_array_push(x_32, x_168); -x_170 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__10; -x_171 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_171, 0, x_34); -lean_ctor_set(x_171, 1, x_170); -lean_ctor_set(x_171, 2, x_169); -x_172 = lean_array_push(x_37, x_106); -lean_inc(x_172); -x_173 = lean_array_push(x_172, x_117); -lean_inc(x_119); -x_174 = lean_array_push(x_173, x_119); -x_175 = lean_array_push(x_174, x_171); -x_176 = l_Array_forInUnsafe_loop___at_Lean_Elab_Term_Do_ToTerm_toTerm___spec__1___closed__1; -x_177 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_177, 0, x_34); -lean_ctor_set(x_177, 1, x_176); -lean_ctor_set(x_177, 2, x_175); -x_178 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__15; -lean_inc(x_18); -lean_inc(x_23); -x_179 = l_Lean_addMacroScope(x_23, x_178, x_18); -x_180 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__18; -lean_inc(x_3); -x_181 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_3); -lean_inc(x_3); -x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_181); -lean_ctor_set(x_182, 1, x_3); -x_183 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__14; -lean_inc(x_16); -x_184 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_184, 0, x_16); -lean_ctor_set(x_184, 1, x_183); -lean_ctor_set(x_184, 2, x_179); -lean_ctor_set(x_184, 3, x_182); -x_185 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__24; -x_186 = l_Lean_addMacroScope(x_23, x_185, x_18); -x_187 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__23; -lean_inc(x_16); -x_188 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_188, 0, x_16); -lean_ctor_set(x_188, 1, x_187); -lean_ctor_set(x_188, 2, x_186); -lean_ctor_set(x_188, 3, x_3); -lean_inc(x_188); -x_189 = lean_array_push(x_32, x_188); -x_190 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_190, 0, x_34); -lean_ctor_set(x_190, 1, x_54); -lean_ctor_set(x_190, 2, x_189); -x_191 = lean_array_push(x_56, x_184); -x_192 = lean_array_push(x_191, x_190); +x_156 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__1___closed__1; +lean_inc(x_22); +x_157 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_157, 0, x_22); +lean_ctor_set(x_157, 1, x_156); +lean_inc(x_6); +x_158 = lean_array_push(x_6, x_157); +x_159 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__7___closed__5; +x_160 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_160, 0, x_41); +lean_ctor_set(x_160, 1, x_159); +lean_ctor_set(x_160, 2, x_158); +x_161 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkPureUnit___closed__7; +lean_inc(x_24); +lean_inc(x_29); +x_162 = l_Lean_addMacroScope(x_29, x_161, x_24); +lean_inc(x_5); +x_163 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_163, 0, x_161); +lean_ctor_set(x_163, 1, x_5); +lean_inc(x_5); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_5); +x_165 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkPureUnit___closed__6; +lean_inc(x_22); +x_166 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_166, 0, x_22); +lean_ctor_set(x_166, 1, x_165); +lean_ctor_set(x_166, 2, x_162); +lean_ctor_set(x_166, 3, x_164); +x_167 = lean_array_push(x_60, x_155); +x_168 = lean_array_push(x_167, x_160); +lean_inc(x_168); +x_169 = lean_array_push(x_168, x_166); +lean_inc(x_153); +x_170 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_170, 0, x_41); +lean_ctor_set(x_170, 1, x_153); +lean_ctor_set(x_170, 2, x_169); +lean_inc(x_7); +x_171 = lean_array_push(x_7, x_170); +lean_inc(x_43); +x_172 = lean_array_push(x_171, x_43); +lean_inc(x_2); +x_173 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_173, 0, x_41); +lean_ctor_set(x_173, 1, x_2); +lean_ctor_set(x_173, 2, x_172); +x_174 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; +lean_inc(x_22); +x_175 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_175, 0, x_22); +lean_ctor_set(x_175, 1, x_174); +x_176 = lean_array_push(x_60, x_151); +x_177 = lean_array_push(x_176, x_173); +x_178 = lean_array_push(x_177, x_175); +x_179 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_179, 0, x_41); +lean_ctor_set(x_179, 1, x_149); +lean_ctor_set(x_179, 2, x_178); +lean_inc(x_6); +x_180 = lean_array_push(x_6, x_179); +lean_inc(x_2); +x_181 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_181, 0, x_41); +lean_ctor_set(x_181, 1, x_2); +lean_ctor_set(x_181, 2, x_180); +lean_inc(x_7); +x_182 = lean_array_push(x_7, x_147); +x_183 = lean_array_push(x_182, x_181); +lean_inc(x_10); +x_184 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_184, 0, x_41); +lean_ctor_set(x_184, 1, x_10); +lean_ctor_set(x_184, 2, x_183); +lean_inc(x_6); +x_185 = lean_array_push(x_6, x_184); +x_186 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_186, 0, x_41); +lean_ctor_set(x_186, 1, x_51); +lean_ctor_set(x_186, 2, x_185); +lean_inc(x_7); +x_187 = lean_array_push(x_7, x_186); +lean_inc(x_43); +x_188 = lean_array_push(x_187, x_43); +lean_inc(x_36); +x_189 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_189, 0, x_41); +lean_ctor_set(x_189, 1, x_36); +lean_ctor_set(x_189, 2, x_188); +lean_inc(x_6); +x_190 = lean_array_push(x_6, x_189); +lean_inc(x_2); +x_191 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_191, 0, x_41); +lean_ctor_set(x_191, 1, x_2); +lean_ctor_set(x_191, 2, x_190); +lean_inc(x_6); +x_192 = lean_array_push(x_6, x_191); +lean_inc(x_34); x_193 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_193, 0, x_34); -lean_ctor_set(x_193, 1, x_160); +lean_ctor_set(x_193, 0, x_41); +lean_ctor_set(x_193, 1, x_34); lean_ctor_set(x_193, 2, x_192); -x_194 = lean_array_push(x_32, x_193); -x_195 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_195, 0, x_34); -lean_ctor_set(x_195, 1, x_54); -lean_ctor_set(x_195, 2, x_194); -x_196 = lean_array_push(x_32, x_195); -x_197 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_197, 0, x_34); -lean_ctor_set(x_197, 1, x_54); -lean_ctor_set(x_197, 2, x_196); -x_198 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__28; -x_199 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_199, 0, x_16); -lean_ctor_set(x_199, 1, x_198); -x_200 = lean_array_push(x_142, x_188); -x_201 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_201, 0, x_34); -lean_ctor_set(x_201, 1, x_144); -lean_ctor_set(x_201, 2, x_200); -x_202 = lean_array_push(x_32, x_201); -x_203 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_203, 0, x_34); -lean_ctor_set(x_203, 1, x_54); -lean_ctor_set(x_203, 2, x_202); -x_204 = lean_array_push(x_56, x_199); -x_205 = lean_array_push(x_204, x_203); -x_206 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__20; -x_207 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_207, 0, x_34); -lean_ctor_set(x_207, 1, x_206); -lean_ctor_set(x_207, 2, x_205); -x_208 = lean_array_push(x_56, x_207); -x_209 = lean_array_push(x_208, x_39); -x_210 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_210, 0, x_34); -lean_ctor_set(x_210, 1, x_59); -lean_ctor_set(x_210, 2, x_209); -x_211 = lean_array_push(x_32, x_210); +x_194 = lean_array_push(x_54, x_127); +lean_inc(x_194); +x_195 = lean_array_push(x_194, x_139); +lean_inc(x_141); +x_196 = lean_array_push(x_195, x_141); +x_197 = lean_array_push(x_196, x_193); +lean_inc(x_125); +x_198 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_198, 0, x_41); +lean_ctor_set(x_198, 1, x_125); +lean_ctor_set(x_198, 2, x_197); +x_199 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__15; +lean_inc(x_24); +lean_inc(x_29); +x_200 = l_Lean_addMacroScope(x_29, x_199, x_24); +x_201 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__12; +x_202 = lean_name_mk_string(x_9, x_201); +lean_inc(x_5); +x_203 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_203, 0, x_202); +lean_ctor_set(x_203, 1, x_5); +lean_inc(x_5); +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_203); +lean_ctor_set(x_204, 1, x_5); +x_205 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__14; +lean_inc(x_22); +x_206 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_206, 0, x_22); +lean_ctor_set(x_206, 1, x_205); +lean_ctor_set(x_206, 2, x_200); +lean_ctor_set(x_206, 3, x_204); +x_207 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__24; +x_208 = l_Lean_addMacroScope(x_29, x_207, x_24); +x_209 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__23; +lean_inc(x_22); +x_210 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_210, 0, x_22); +lean_ctor_set(x_210, 1, x_209); +lean_ctor_set(x_210, 2, x_208); +lean_ctor_set(x_210, 3, x_5); +lean_inc(x_210); +lean_inc(x_6); +x_211 = lean_array_push(x_6, x_210); +lean_inc(x_2); x_212 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_212, 0, x_34); -lean_ctor_set(x_212, 1, x_54); +lean_ctor_set(x_212, 0, x_41); +lean_ctor_set(x_212, 1, x_2); lean_ctor_set(x_212, 2, x_211); -x_213 = lean_array_push(x_32, x_212); -x_214 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_214, 0, x_34); -lean_ctor_set(x_214, 1, x_170); -lean_ctor_set(x_214, 2, x_213); -x_215 = lean_array_push(x_172, x_197); -x_216 = lean_array_push(x_215, x_119); -x_217 = lean_array_push(x_216, x_214); -x_218 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_218, 0, x_34); -lean_ctor_set(x_218, 1, x_176); -lean_ctor_set(x_218, 2, x_217); -x_219 = lean_array_push(x_56, x_177); -x_220 = lean_array_push(x_219, x_218); -x_221 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_221, 0, x_34); -lean_ctor_set(x_221, 1, x_54); -lean_ctor_set(x_221, 2, x_220); -x_222 = lean_array_push(x_32, x_221); -x_223 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__4; -x_224 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_224, 0, x_34); -lean_ctor_set(x_224, 1, x_223); -lean_ctor_set(x_224, 2, x_222); -x_225 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__4; -x_226 = lean_array_push(x_225, x_90); -x_227 = lean_array_push(x_226, x_39); -x_228 = lean_array_push(x_227, x_39); -x_229 = lean_array_push(x_228, x_102); -x_230 = lean_array_push(x_229, x_104); -x_231 = lean_array_push(x_230, x_224); -x_232 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__8; +lean_inc(x_7); +x_213 = lean_array_push(x_7, x_206); +x_214 = lean_array_push(x_213, x_212); +x_215 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_215, 0, x_41); +lean_ctor_set(x_215, 1, x_10); +lean_ctor_set(x_215, 2, x_214); +lean_inc(x_6); +x_216 = lean_array_push(x_6, x_215); +lean_inc(x_2); +x_217 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_217, 0, x_41); +lean_ctor_set(x_217, 1, x_2); +lean_ctor_set(x_217, 2, x_216); +lean_inc(x_6); +x_218 = lean_array_push(x_6, x_217); +lean_inc(x_2); +x_219 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_219, 0, x_41); +lean_ctor_set(x_219, 1, x_2); +lean_ctor_set(x_219, 2, x_218); +x_220 = l_Lean_Elab_Term_Do_ToTerm_matchNestedTermResult___closed__19; +x_221 = lean_name_mk_string(x_1, x_220); +x_222 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__28; +x_223 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_223, 0, x_22); +lean_ctor_set(x_223, 1, x_222); +x_224 = lean_array_push(x_168, x_210); +x_225 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_225, 0, x_41); +lean_ctor_set(x_225, 1, x_153); +lean_ctor_set(x_225, 2, x_224); +lean_inc(x_6); +x_226 = lean_array_push(x_6, x_225); +lean_inc(x_2); +x_227 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_227, 0, x_41); +lean_ctor_set(x_227, 1, x_2); +lean_ctor_set(x_227, 2, x_226); +lean_inc(x_7); +x_228 = lean_array_push(x_7, x_223); +x_229 = lean_array_push(x_228, x_227); +x_230 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_230, 0, x_41); +lean_ctor_set(x_230, 1, x_221); +lean_ctor_set(x_230, 2, x_229); +lean_inc(x_7); +x_231 = lean_array_push(x_7, x_230); +lean_inc(x_43); +x_232 = lean_array_push(x_231, x_43); +lean_inc(x_36); x_233 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_233, 0, x_34); -lean_ctor_set(x_233, 1, x_232); -lean_ctor_set(x_233, 2, x_231); -x_234 = lean_array_push(x_56, x_233); -x_235 = lean_array_push(x_234, x_39); -x_236 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_236, 0, x_34); -lean_ctor_set(x_236, 1, x_59); -lean_ctor_set(x_236, 2, x_235); -x_237 = lean_array_push(x_45, x_60); -x_238 = lean_array_push(x_237, x_88); -x_239 = lean_array_push(x_238, x_236); -x_240 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_240, 0, x_34); -lean_ctor_set(x_240, 1, x_54); -lean_ctor_set(x_240, 2, x_239); -x_241 = lean_array_push(x_32, x_240); -x_242 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_242, 0, x_34); -lean_ctor_set(x_242, 1, x_170); -lean_ctor_set(x_242, 2, x_241); -x_243 = lean_array_push(x_56, x_25); -x_244 = lean_array_push(x_243, x_242); -x_245 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodDelimiter___closed__2; +lean_ctor_set(x_233, 0, x_41); +lean_ctor_set(x_233, 1, x_36); +lean_ctor_set(x_233, 2, x_232); +lean_inc(x_6); +x_234 = lean_array_push(x_6, x_233); +lean_inc(x_2); +x_235 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_235, 0, x_41); +lean_ctor_set(x_235, 1, x_2); +lean_ctor_set(x_235, 2, x_234); +lean_inc(x_6); +x_236 = lean_array_push(x_6, x_235); +lean_inc(x_34); +x_237 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_237, 0, x_41); +lean_ctor_set(x_237, 1, x_34); +lean_ctor_set(x_237, 2, x_236); +x_238 = lean_array_push(x_194, x_219); +x_239 = lean_array_push(x_238, x_141); +x_240 = lean_array_push(x_239, x_237); +x_241 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_241, 0, x_41); +lean_ctor_set(x_241, 1, x_125); +lean_ctor_set(x_241, 2, x_240); +lean_inc(x_7); +x_242 = lean_array_push(x_7, x_198); +x_243 = lean_array_push(x_242, x_241); +lean_inc(x_2); +x_244 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_244, 0, x_41); +lean_ctor_set(x_244, 1, x_2); +lean_ctor_set(x_244, 2, x_243); +lean_inc(x_6); +x_245 = lean_array_push(x_6, x_244); x_246 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_246, 0, x_34); -lean_ctor_set(x_246, 1, x_245); -lean_ctor_set(x_246, 2, x_244); -x_247 = lean_unsigned_to_nat(1u); -x_248 = l_Lean_Syntax_getArg(x_246, x_247); -lean_dec(x_246); -x_249 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_248); -x_250 = l_List_appendTR___rarg(x_249, x_5); -x_251 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_250, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_21); -return x_251; +lean_ctor_set(x_246, 0, x_41); +lean_ctor_set(x_246, 1, x_123); +lean_ctor_set(x_246, 2, x_245); +x_247 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__4; +x_248 = lean_array_push(x_247, x_106); +lean_inc(x_43); +x_249 = lean_array_push(x_248, x_43); +lean_inc(x_43); +x_250 = lean_array_push(x_249, x_43); +x_251 = lean_array_push(x_250, x_119); +x_252 = lean_array_push(x_251, x_121); +x_253 = lean_array_push(x_252, x_246); +x_254 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_254, 0, x_41); +lean_ctor_set(x_254, 1, x_104); +lean_ctor_set(x_254, 2, x_253); +lean_inc(x_7); +x_255 = lean_array_push(x_7, x_254); +x_256 = lean_array_push(x_255, x_43); +x_257 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_257, 0, x_41); +lean_ctor_set(x_257, 1, x_36); +lean_ctor_set(x_257, 2, x_256); +x_258 = lean_array_push(x_60, x_71); +x_259 = lean_array_push(x_258, x_102); +x_260 = lean_array_push(x_259, x_257); +x_261 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_261, 0, x_41); +lean_ctor_set(x_261, 1, x_2); +lean_ctor_set(x_261, 2, x_260); +x_262 = lean_array_push(x_6, x_261); +x_263 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_263, 0, x_41); +lean_ctor_set(x_263, 1, x_34); +lean_ctor_set(x_263, 2, x_262); +x_264 = lean_array_push(x_7, x_32); +x_265 = lean_array_push(x_264, x_263); +x_266 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_266, 0, x_41); +lean_ctor_set(x_266, 1, x_31); +lean_ctor_set(x_266, 2, x_265); +x_267 = lean_unsigned_to_nat(1u); +x_268 = l_Lean_Syntax_getArg(x_266, x_267); +lean_dec(x_266); +x_269 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_268); +x_270 = l_List_appendTR___rarg(x_269, x_11); +x_271 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_270, x_13, x_14, x_15, x_16, x_17, x_18, x_19, x_27); +return x_271; } } static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__3___closed__1() { @@ -39092,16 +39227,110 @@ return x_1; static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__7() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_from_bytes("the proof annotation here has not been implemented yet", 54); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__16; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__8() { _start: { +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__16; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__7; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__17; +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; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__9; +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; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__11() { +_start: +{ lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__7; +x_1 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__4; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__4; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__11; +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; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__13() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__5; +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; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__13; +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; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_from_bytes("the proof annotation here has not been implemented yet", 54); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__15; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -39187,24 +39416,24 @@ if (x_20 == 0) { if (lean_obj_tag(x_35) == 0) { -lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; -x_426 = lean_ctor_get(x_35, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_35, 1); -lean_inc(x_427); +lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; +x_520 = lean_ctor_get(x_35, 0); +lean_inc(x_520); +x_521 = lean_ctor_get(x_35, 1); +lean_inc(x_521); lean_dec(x_35); -x_428 = l_Lean_Syntax_getArg(x_19, x_17); +x_522 = l_Lean_Syntax_getArg(x_19, x_17); lean_dec(x_19); -x_429 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_429, 0, x_428); -x_36 = x_429; -x_37 = x_426; -x_38 = x_427; -goto block_425; +x_523 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_523, 0, x_522); +x_36 = x_523; +x_37 = x_520; +x_38 = x_521; +goto block_519; } else { -lean_object* x_430; lean_object* x_431; lean_object* x_432; +lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_dec(x_34); lean_dec(x_33); lean_dec(x_32); @@ -39228,15 +39457,15 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_430 = lean_ctor_get(x_35, 0); -lean_inc(x_430); -x_431 = lean_ctor_get(x_35, 1); -lean_inc(x_431); +x_524 = lean_ctor_get(x_35, 0); +lean_inc(x_524); +x_525 = lean_ctor_get(x_35, 1); +lean_inc(x_525); lean_dec(x_35); -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; +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 @@ -39244,21 +39473,21 @@ else lean_dec(x_19); if (lean_obj_tag(x_35) == 0) { -lean_object* x_433; lean_object* x_434; lean_object* x_435; -x_433 = lean_ctor_get(x_35, 0); -lean_inc(x_433); -x_434 = lean_ctor_get(x_35, 1); -lean_inc(x_434); +lean_object* x_527; lean_object* x_528; lean_object* x_529; +x_527 = lean_ctor_get(x_35, 0); +lean_inc(x_527); +x_528 = lean_ctor_get(x_35, 1); +lean_inc(x_528); lean_dec(x_35); -x_435 = lean_box(0); -x_36 = x_435; -x_37 = x_433; -x_38 = x_434; -goto block_425; +x_529 = lean_box(0); +x_36 = x_529; +x_37 = x_527; +x_38 = x_528; +goto block_519; } else { -lean_object* x_436; lean_object* x_437; lean_object* x_438; +lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_dec(x_34); lean_dec(x_33); lean_dec(x_32); @@ -39281,18 +39510,18 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_436 = lean_ctor_get(x_35, 0); -lean_inc(x_436); -x_437 = lean_ctor_get(x_35, 1); -lean_inc(x_437); +x_530 = lean_ctor_get(x_35, 0); +lean_inc(x_530); +x_531 = lean_ctor_get(x_35, 1); +lean_inc(x_531); lean_dec(x_35); -x_438 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_438, 0, x_436); -lean_ctor_set(x_438, 1, x_437); -return x_438; +x_532 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_532, 0, x_530); +lean_ctor_set(x_532, 1, x_531); +return x_532; } } -block_425: +block_519: { lean_object* x_39; lean_object* x_40; lean_object* x_41; x_39 = l_Lean_replaceRef(x_21, x_33); @@ -39688,9 +39917,7 @@ lean_inc(x_3); x_189 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Term_Do_ToCodeBlock_mkForInBody___spec__1(x_188, x_3, x_4, x_5, x_6, x_7, x_34, x_9, x_180); if (lean_obj_tag(x_189) == 0) { -if (lean_obj_tag(x_36) == 0) -{ -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_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; 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_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; x_190 = lean_ctor_get(x_189, 0); lean_inc(x_190); x_191 = lean_ctor_get(x_189, 1); @@ -39713,421 +39940,640 @@ x_198 = lean_ctor_get(x_196, 0); lean_inc(x_198); lean_dec(x_196); x_199 = lean_environment_main_module(x_198); -x_200 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__3; -lean_inc(x_193); -x_201 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_201, 0, x_193); -lean_ctor_set(x_201, 1, x_200); -x_202 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; -lean_inc(x_193); -x_203 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_203, 0, x_193); -lean_ctor_set(x_203, 1, x_202); -x_204 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__7; +x_200 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__17; lean_inc(x_32); -lean_inc(x_199); -x_205 = l_Lean_addMacroScope(x_199, x_204, x_32); -x_206 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__3; -x_207 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__2; -lean_inc(x_193); -x_208 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_208, 0, x_193); -lean_ctor_set(x_208, 1, x_206); -lean_ctor_set(x_208, 2, x_205); -lean_ctor_set(x_208, 3, x_207); -x_209 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; -lean_inc(x_32); -lean_inc(x_199); -x_210 = l_Lean_addMacroScope(x_199, x_209, x_32); -x_211 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; -x_212 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__16; -lean_inc(x_193); -x_213 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_213, 0, x_193); -lean_ctor_set(x_213, 1, x_211); -lean_ctor_set(x_213, 2, x_210); -lean_ctor_set(x_213, 3, x_212); -x_214 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; -x_215 = lean_array_push(x_214, x_213); -lean_inc(x_62); -x_216 = lean_array_push(x_215, x_62); -x_217 = lean_box(2); -x_218 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; -x_219 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_219, 0, x_217); -lean_ctor_set(x_219, 1, x_218); -lean_ctor_set(x_219, 2, x_216); -x_220 = lean_array_push(x_214, x_208); -x_221 = lean_array_push(x_220, x_219); -x_222 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; -x_223 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_223, 0, x_217); -lean_ctor_set(x_223, 1, x_222); -lean_ctor_set(x_223, 2, x_221); -x_224 = lean_array_push(x_214, x_223); -x_225 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; -x_226 = lean_array_push(x_224, x_225); -x_227 = lean_alloc_ctor(1, 3, 0); +x_201 = l_Lean_addMacroScope(x_199, x_200, x_32); +x_202 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__8; +x_203 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__10; +x_204 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_204, 0, x_193); +lean_ctor_set(x_204, 1, x_202); +lean_ctor_set(x_204, 2, x_201); +lean_ctor_set(x_204, 3, x_203); +x_205 = lean_ctor_get(x_3, 2); +lean_inc(x_205); +x_206 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; +x_207 = lean_array_push(x_206, x_205); +x_208 = lean_box(2); +x_209 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; +x_210 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_210, 0, x_208); +lean_ctor_set(x_210, 1, x_209); +lean_ctor_set(x_210, 2, x_207); +x_211 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; +x_212 = lean_array_push(x_211, x_204); +x_213 = lean_array_push(x_212, x_210); +x_214 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; +x_215 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_215, 0, x_208); +lean_ctor_set(x_215, 1, x_214); +lean_ctor_set(x_215, 2, x_213); +if (lean_obj_tag(x_36) == 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; 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; 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; 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_inc(x_34); +x_216 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_34, x_9, x_197); +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 = lean_st_ref_get(x_9, x_218); +x_220 = lean_ctor_get(x_219, 0); +lean_inc(x_220); +x_221 = lean_ctor_get(x_219, 1); +lean_inc(x_221); +lean_dec(x_219); +x_222 = lean_ctor_get(x_220, 0); +lean_inc(x_222); +lean_dec(x_220); +x_223 = lean_environment_main_module(x_222); +x_224 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__3; +lean_inc(x_217); +x_225 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_225, 0, x_217); +lean_ctor_set(x_225, 1, x_224); +x_226 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; +lean_inc(x_217); +x_227 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_227, 0, x_217); -lean_ctor_set(x_227, 1, x_218); -lean_ctor_set(x_227, 2, x_226); -x_228 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; -lean_inc(x_193); -x_229 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_229, 0, x_193); -lean_ctor_set(x_229, 1, x_228); -x_230 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; -x_231 = lean_array_push(x_230, x_203); -x_232 = lean_array_push(x_231, x_227); -x_233 = lean_array_push(x_232, x_229); -x_234 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; -x_235 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_235, 0, x_217); -lean_ctor_set(x_235, 1, x_234); -lean_ctor_set(x_235, 2, x_233); -x_236 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; -lean_inc(x_193); -x_237 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_237, 0, x_193); -lean_ctor_set(x_237, 1, x_236); -x_238 = l_Lean_addMacroScope(x_199, x_183, x_32); -lean_inc(x_193); -x_239 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_239, 0, x_193); -lean_ctor_set(x_239, 1, x_186); -lean_ctor_set(x_239, 2, x_238); -lean_ctor_set(x_239, 3, x_185); -x_240 = lean_array_push(x_214, x_21); -lean_inc(x_239); -x_241 = lean_array_push(x_240, x_239); -x_242 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_242, 0, x_217); -lean_ctor_set(x_242, 1, x_218); -lean_ctor_set(x_242, 2, x_241); -x_243 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; -lean_inc(x_193); -x_244 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_244, 0, x_193); -lean_ctor_set(x_244, 1, x_243); -x_245 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; -lean_inc(x_193); -x_246 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_246, 0, x_193); -lean_ctor_set(x_246, 1, x_245); -x_247 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; -lean_inc(x_193); -x_248 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_248, 0, x_193); -lean_ctor_set(x_248, 1, x_247); -x_249 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__14; -lean_inc(x_193); +lean_ctor_set(x_227, 1, x_226); +x_228 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__7; +lean_inc(x_32); +lean_inc(x_223); +x_229 = l_Lean_addMacroScope(x_223, x_228, x_32); +x_230 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__3; +x_231 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__2; +lean_inc(x_217); +x_232 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_232, 0, x_217); +lean_ctor_set(x_232, 1, x_230); +lean_ctor_set(x_232, 2, x_229); +lean_ctor_set(x_232, 3, x_231); +x_233 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; +lean_inc(x_32); +lean_inc(x_223); +x_234 = l_Lean_addMacroScope(x_223, x_233, x_32); +x_235 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; +x_236 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__16; +lean_inc(x_217); +x_237 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_237, 0, x_217); +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 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__10; +lean_inc(x_217); +x_239 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_239, 0, x_217); +lean_ctor_set(x_239, 1, x_238); +x_240 = lean_array_push(x_211, x_239); +lean_inc(x_215); +lean_inc(x_240); +x_241 = lean_array_push(x_240, x_215); +x_242 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__9; +x_243 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_243, 0, x_208); +lean_ctor_set(x_243, 1, x_242); +lean_ctor_set(x_243, 2, x_241); +x_244 = lean_array_push(x_206, x_243); +x_245 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_245, 0, x_208); +lean_ctor_set(x_245, 1, x_209); +lean_ctor_set(x_245, 2, x_244); +x_246 = lean_array_push(x_211, x_237); +x_247 = lean_array_push(x_246, x_245); +x_248 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_248, 0, x_208); +lean_ctor_set(x_248, 1, x_209); +lean_ctor_set(x_248, 2, x_247); +x_249 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; +lean_inc(x_217); x_250 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_250, 0, x_193); +lean_ctor_set(x_250, 0, x_217); lean_ctor_set(x_250, 1, x_249); -x_251 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__20; -lean_inc(x_193); -x_252 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_252, 0, x_193); -lean_ctor_set(x_252, 1, x_251); -x_253 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; -x_254 = lean_array_push(x_253, x_252); -x_255 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__16; +x_251 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; +x_252 = lean_array_push(x_251, x_227); +lean_inc(x_252); +x_253 = lean_array_push(x_252, x_248); +lean_inc(x_250); +x_254 = lean_array_push(x_253, x_250); +x_255 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; x_256 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_256, 0, x_217); +lean_ctor_set(x_256, 0, x_208); lean_ctor_set(x_256, 1, x_255); lean_ctor_set(x_256, 2, x_254); -lean_inc(x_239); -x_257 = lean_array_push(x_230, x_239); -x_258 = lean_array_push(x_257, x_250); -x_259 = lean_array_push(x_258, x_256); -x_260 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__13; -x_261 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_261, 0, x_217); -lean_ctor_set(x_261, 1, x_260); -lean_ctor_set(x_261, 2, x_259); -x_262 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__18; -x_263 = lean_array_push(x_262, x_239); -x_264 = lean_array_push(x_263, x_225); -x_265 = lean_array_push(x_264, x_225); -x_266 = lean_array_push(x_265, x_248); -x_267 = lean_array_push(x_266, x_261); -x_268 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__6; +x_257 = lean_array_push(x_211, x_256); +lean_inc(x_62); +x_258 = lean_array_push(x_257, x_62); +x_259 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_259, 0, x_208); +lean_ctor_set(x_259, 1, x_209); +lean_ctor_set(x_259, 2, x_258); +x_260 = lean_array_push(x_211, x_232); +x_261 = lean_array_push(x_260, x_259); +x_262 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_262, 0, x_208); +lean_ctor_set(x_262, 1, x_214); +lean_ctor_set(x_262, 2, x_261); +x_263 = lean_array_push(x_211, x_262); +x_264 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; +x_265 = lean_array_push(x_263, x_264); +x_266 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_266, 0, x_208); +lean_ctor_set(x_266, 1, x_209); +lean_ctor_set(x_266, 2, x_265); +lean_inc(x_252); +x_267 = lean_array_push(x_252, x_266); +lean_inc(x_250); +x_268 = lean_array_push(x_267, x_250); x_269 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_269, 0, x_217); -lean_ctor_set(x_269, 1, x_268); -lean_ctor_set(x_269, 2, x_267); -x_270 = lean_array_push(x_253, x_269); -x_271 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__10; -x_272 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_272, 0, x_217); -lean_ctor_set(x_272, 1, x_271); -lean_ctor_set(x_272, 2, x_270); -x_273 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__19; -x_274 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_274, 0, x_193); -lean_ctor_set(x_274, 1, x_273); -x_275 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; -x_276 = lean_array_push(x_275, x_246); -x_277 = lean_array_push(x_276, x_272); -x_278 = lean_array_push(x_277, x_274); -x_279 = lean_array_push(x_278, x_190); -x_280 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__10; -x_281 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_281, 0, x_217); -lean_ctor_set(x_281, 1, x_280); -lean_ctor_set(x_281, 2, x_279); -x_282 = lean_array_push(x_275, x_242); -x_283 = lean_array_push(x_282, x_225); -x_284 = lean_array_push(x_283, x_244); -x_285 = lean_array_push(x_284, x_281); -x_286 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__9; -x_287 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_287, 0, x_217); -lean_ctor_set(x_287, 1, x_286); -lean_ctor_set(x_287, 2, x_285); -x_288 = lean_array_push(x_214, x_237); -x_289 = lean_array_push(x_288, x_287); -x_290 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; +lean_ctor_set(x_269, 0, x_208); +lean_ctor_set(x_269, 1, x_255); +lean_ctor_set(x_269, 2, x_268); +x_270 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; +lean_inc(x_217); +x_271 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_271, 0, x_217); +lean_ctor_set(x_271, 1, x_270); +lean_inc(x_32); +lean_inc(x_223); +x_272 = l_Lean_addMacroScope(x_223, x_183, x_32); +lean_inc(x_217); +x_273 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_273, 0, x_217); +lean_ctor_set(x_273, 1, x_186); +lean_ctor_set(x_273, 2, x_272); +lean_ctor_set(x_273, 3, x_185); +x_274 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__5; +x_275 = l_Lean_addMacroScope(x_223, x_274, x_32); +x_276 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__12; +x_277 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14; +lean_inc(x_217); +x_278 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_278, 0, x_217); +lean_ctor_set(x_278, 1, x_276); +lean_ctor_set(x_278, 2, x_275); +lean_ctor_set(x_278, 3, x_277); +x_279 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__15; +lean_inc(x_217); +x_280 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_280, 0, x_217); +lean_ctor_set(x_280, 1, x_279); +x_281 = lean_array_push(x_206, x_280); +x_282 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__10; +x_283 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_283, 0, x_208); +lean_ctor_set(x_283, 1, x_282); +lean_ctor_set(x_283, 2, x_281); +x_284 = lean_array_push(x_211, x_215); +x_285 = lean_array_push(x_284, x_283); +x_286 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_286, 0, x_208); +lean_ctor_set(x_286, 1, x_209); +lean_ctor_set(x_286, 2, x_285); +x_287 = lean_array_push(x_211, x_278); +x_288 = lean_array_push(x_287, x_286); +x_289 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_289, 0, x_208); +lean_ctor_set(x_289, 1, x_214); +lean_ctor_set(x_289, 2, x_288); +x_290 = lean_array_push(x_240, x_289); x_291 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_291, 0, x_217); -lean_ctor_set(x_291, 1, x_290); -lean_ctor_set(x_291, 2, x_289); -x_292 = lean_array_push(x_275, x_201); -x_293 = lean_array_push(x_292, x_44); -x_294 = lean_array_push(x_293, x_235); -x_295 = lean_array_push(x_294, x_291); -x_296 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__2; -x_297 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_297, 0, x_217); -lean_ctor_set(x_297, 1, x_296); -lean_ctor_set(x_297, 2, x_295); -x_298 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(x_183, x_186, x_185, x_62, x_2, x_297, x_3, x_4, x_5, x_6, x_7, x_34, x_9, x_197); -return x_298; +lean_ctor_set(x_291, 0, x_208); +lean_ctor_set(x_291, 1, x_242); +lean_ctor_set(x_291, 2, x_290); +x_292 = lean_array_push(x_206, x_291); +x_293 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_293, 0, x_208); +lean_ctor_set(x_293, 1, x_209); +lean_ctor_set(x_293, 2, x_292); +lean_inc(x_273); +x_294 = lean_array_push(x_211, x_273); +x_295 = lean_array_push(x_294, x_293); +x_296 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_296, 0, x_208); +lean_ctor_set(x_296, 1, x_209); +lean_ctor_set(x_296, 2, x_295); +x_297 = lean_array_push(x_252, x_296); +x_298 = lean_array_push(x_297, x_250); +x_299 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_299, 0, x_208); +lean_ctor_set(x_299, 1, x_255); +lean_ctor_set(x_299, 2, x_298); +x_300 = lean_array_push(x_211, x_21); +x_301 = lean_array_push(x_300, x_299); +x_302 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_302, 0, x_208); +lean_ctor_set(x_302, 1, x_209); +lean_ctor_set(x_302, 2, x_301); +x_303 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; +lean_inc(x_217); +x_304 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_304, 0, x_217); +lean_ctor_set(x_304, 1, x_303); +x_305 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; +lean_inc(x_217); +x_306 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_306, 0, x_217); +lean_ctor_set(x_306, 1, x_305); +x_307 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; +lean_inc(x_217); +x_308 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_308, 0, x_217); +lean_ctor_set(x_308, 1, x_307); +x_309 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__14; +lean_inc(x_217); +x_310 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_310, 0, x_217); +lean_ctor_set(x_310, 1, x_309); +x_311 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__20; +lean_inc(x_217); +x_312 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_312, 0, x_217); +lean_ctor_set(x_312, 1, x_311); +x_313 = lean_array_push(x_206, x_312); +x_314 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__16; +x_315 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_315, 0, x_208); +lean_ctor_set(x_315, 1, x_314); +lean_ctor_set(x_315, 2, x_313); +lean_inc(x_273); +x_316 = lean_array_push(x_251, x_273); +x_317 = lean_array_push(x_316, x_310); +x_318 = lean_array_push(x_317, x_315); +x_319 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__13; +x_320 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_320, 0, x_208); +lean_ctor_set(x_320, 1, x_319); +lean_ctor_set(x_320, 2, x_318); +x_321 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__18; +x_322 = lean_array_push(x_321, x_273); +x_323 = lean_array_push(x_322, x_264); +x_324 = lean_array_push(x_323, x_264); +x_325 = lean_array_push(x_324, x_308); +x_326 = lean_array_push(x_325, x_320); +x_327 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__6; +x_328 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_328, 0, x_208); +lean_ctor_set(x_328, 1, x_327); +lean_ctor_set(x_328, 2, x_326); +x_329 = lean_array_push(x_206, x_328); +x_330 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__10; +x_331 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_331, 0, x_208); +lean_ctor_set(x_331, 1, x_330); +lean_ctor_set(x_331, 2, x_329); +x_332 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__19; +x_333 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_333, 0, x_217); +lean_ctor_set(x_333, 1, x_332); +x_334 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; +x_335 = lean_array_push(x_334, x_306); +x_336 = lean_array_push(x_335, x_331); +x_337 = lean_array_push(x_336, x_333); +x_338 = lean_array_push(x_337, x_190); +x_339 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__10; +x_340 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_340, 0, x_208); +lean_ctor_set(x_340, 1, x_339); +lean_ctor_set(x_340, 2, x_338); +x_341 = lean_array_push(x_334, x_302); +x_342 = lean_array_push(x_341, x_264); +x_343 = lean_array_push(x_342, x_304); +x_344 = lean_array_push(x_343, x_340); +x_345 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__9; +x_346 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_346, 0, x_208); +lean_ctor_set(x_346, 1, x_345); +lean_ctor_set(x_346, 2, x_344); +x_347 = lean_array_push(x_211, x_271); +x_348 = lean_array_push(x_347, x_346); +x_349 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; +x_350 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_350, 0, x_208); +lean_ctor_set(x_350, 1, x_349); +lean_ctor_set(x_350, 2, x_348); +x_351 = lean_array_push(x_334, x_225); +x_352 = lean_array_push(x_351, x_44); +x_353 = lean_array_push(x_352, x_269); +x_354 = lean_array_push(x_353, x_350); +x_355 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__2; +x_356 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_356, 0, x_208); +lean_ctor_set(x_356, 1, x_355); +lean_ctor_set(x_356, 2, x_354); +x_357 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__6; +x_358 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(x_357, x_209, x_183, x_186, x_185, x_206, x_211, x_62, x_200, x_214, x_2, x_356, x_3, x_4, x_5, x_6, x_7, x_34, x_9, x_221); +return x_358; } 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_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; 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; 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_object* x_408; lean_object* x_409; -x_299 = lean_ctor_get(x_189, 0); -lean_inc(x_299); -x_300 = lean_ctor_get(x_189, 1); -lean_inc(x_300); -lean_dec(x_189); -x_301 = lean_ctor_get(x_36, 0); -lean_inc(x_301); +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; 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_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; 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; +x_359 = lean_ctor_get(x_36, 0); +lean_inc(x_359); lean_dec(x_36); lean_inc(x_34); -x_302 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_34, x_9, x_300); -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 = lean_st_ref_get(x_9, x_304); -x_306 = lean_ctor_get(x_305, 0); -lean_inc(x_306); -x_307 = lean_ctor_get(x_305, 1); -lean_inc(x_307); -lean_dec(x_305); -x_308 = lean_ctor_get(x_306, 0); -lean_inc(x_308); -lean_dec(x_306); -x_309 = lean_environment_main_module(x_308); -x_310 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__6; -lean_inc(x_303); -x_311 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_311, 0, x_303); -lean_ctor_set(x_311, 1, x_310); -x_312 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; -lean_inc(x_303); -x_313 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_313, 0, x_303); -lean_ctor_set(x_313, 1, x_312); -x_314 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__7; +x_360 = l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__2___rarg(x_34, x_9, x_197); +x_361 = lean_ctor_get(x_360, 0); +lean_inc(x_361); +x_362 = lean_ctor_get(x_360, 1); +lean_inc(x_362); +lean_dec(x_360); +x_363 = lean_st_ref_get(x_9, x_362); +x_364 = lean_ctor_get(x_363, 0); +lean_inc(x_364); +x_365 = lean_ctor_get(x_363, 1); +lean_inc(x_365); +lean_dec(x_363); +x_366 = lean_ctor_get(x_364, 0); +lean_inc(x_366); +lean_dec(x_364); +x_367 = lean_environment_main_module(x_366); +x_368 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__6; +lean_inc(x_361); +x_369 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_369, 0, x_361); +lean_ctor_set(x_369, 1, x_368); +x_370 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__3; +lean_inc(x_361); +x_371 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_371, 0, x_361); +lean_ctor_set(x_371, 1, x_370); +x_372 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__7; lean_inc(x_32); -lean_inc(x_309); -x_315 = l_Lean_addMacroScope(x_309, x_314, x_32); -x_316 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__3; -x_317 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__2; -lean_inc(x_303); -x_318 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_318, 0, x_303); -lean_ctor_set(x_318, 1, x_316); -lean_ctor_set(x_318, 2, x_315); -lean_ctor_set(x_318, 3, x_317); -x_319 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; +lean_inc(x_367); +x_373 = l_Lean_addMacroScope(x_367, x_372, x_32); +x_374 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__3; +x_375 = l_Lean_Elab_Term_Do_ToTerm_returnToTerm___closed__2; +lean_inc(x_361); +x_376 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_376, 0, x_361); +lean_ctor_set(x_376, 1, x_374); +lean_ctor_set(x_376, 2, x_373); +lean_ctor_set(x_376, 3, x_375); +x_377 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__13; lean_inc(x_32); -lean_inc(x_309); -x_320 = l_Lean_addMacroScope(x_309, x_319, x_32); -x_321 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; -x_322 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__16; -lean_inc(x_303); -x_323 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_323, 0, x_303); -lean_ctor_set(x_323, 1, x_321); -lean_ctor_set(x_323, 2, x_320); -lean_ctor_set(x_323, 3, x_322); -x_324 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__12; -x_325 = lean_array_push(x_324, x_323); -lean_inc(x_62); -x_326 = lean_array_push(x_325, x_62); -x_327 = lean_box(2); -x_328 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__2; -x_329 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_329, 0, x_327); -lean_ctor_set(x_329, 1, x_328); -lean_ctor_set(x_329, 2, x_326); -x_330 = lean_array_push(x_324, x_318); -x_331 = lean_array_push(x_330, x_329); -x_332 = l_Lean_Elab_Term_Do_pullExitPointsAux___lambda__1___closed__2; -x_333 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_333, 0, x_327); -lean_ctor_set(x_333, 1, x_332); -lean_ctor_set(x_333, 2, x_331); -x_334 = lean_array_push(x_324, x_333); -x_335 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; -x_336 = lean_array_push(x_334, x_335); -x_337 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_337, 0, x_327); -lean_ctor_set(x_337, 1, x_328); -lean_ctor_set(x_337, 2, x_336); -x_338 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; -lean_inc(x_303); -x_339 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_339, 0, x_303); -lean_ctor_set(x_339, 1, x_338); -x_340 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; -x_341 = lean_array_push(x_340, x_313); -x_342 = lean_array_push(x_341, x_337); -x_343 = lean_array_push(x_342, x_339); -x_344 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; -x_345 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_345, 0, x_327); -lean_ctor_set(x_345, 1, x_344); -lean_ctor_set(x_345, 2, x_343); -x_346 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; -lean_inc(x_303); -x_347 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_347, 0, x_303); -lean_ctor_set(x_347, 1, x_346); -x_348 = l_Lean_addMacroScope(x_309, x_183, x_32); -lean_inc(x_303); -x_349 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_349, 0, x_303); -lean_ctor_set(x_349, 1, x_186); -lean_ctor_set(x_349, 2, x_348); -lean_ctor_set(x_349, 3, x_185); -x_350 = lean_array_push(x_340, x_21); -x_351 = lean_array_push(x_350, x_301); -lean_inc(x_349); -x_352 = lean_array_push(x_351, x_349); -x_353 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_353, 0, x_327); -lean_ctor_set(x_353, 1, x_328); -lean_ctor_set(x_353, 2, x_352); -x_354 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; -lean_inc(x_303); -x_355 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_355, 0, x_303); -lean_ctor_set(x_355, 1, x_354); -x_356 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; -lean_inc(x_303); -x_357 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_357, 0, x_303); -lean_ctor_set(x_357, 1, x_356); -x_358 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; -lean_inc(x_303); -x_359 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_359, 0, x_303); -lean_ctor_set(x_359, 1, x_358); -x_360 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__14; -lean_inc(x_303); -x_361 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_361, 0, x_303); -lean_ctor_set(x_361, 1, x_360); -x_362 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__20; -lean_inc(x_303); -x_363 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_363, 0, x_303); -lean_ctor_set(x_363, 1, x_362); -x_364 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_extractBind___lambda__1___closed__3; -x_365 = lean_array_push(x_364, x_363); -x_366 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__16; -x_367 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_367, 0, x_327); -lean_ctor_set(x_367, 1, x_366); -lean_ctor_set(x_367, 2, x_365); -lean_inc(x_349); -x_368 = lean_array_push(x_340, x_349); -x_369 = lean_array_push(x_368, x_361); -x_370 = lean_array_push(x_369, x_367); -x_371 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__13; -x_372 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_372, 0, x_327); -lean_ctor_set(x_372, 1, x_371); -lean_ctor_set(x_372, 2, x_370); -x_373 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__18; -x_374 = lean_array_push(x_373, x_349); -x_375 = lean_array_push(x_374, x_335); -x_376 = lean_array_push(x_375, x_335); -x_377 = lean_array_push(x_376, x_359); -x_378 = lean_array_push(x_377, x_372); -x_379 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__6; -x_380 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_380, 0, x_327); -lean_ctor_set(x_380, 1, x_379); -lean_ctor_set(x_380, 2, x_378); -x_381 = lean_array_push(x_364, x_380); -x_382 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__10; -x_383 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_383, 0, x_327); +lean_inc(x_367); +x_378 = l_Lean_addMacroScope(x_367, x_377, x_32); +x_379 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__12; +x_380 = l_Lean_Elab_Term_Do_ToTerm_continueToTerm___closed__16; +lean_inc(x_361); +x_381 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_381, 0, x_361); +lean_ctor_set(x_381, 1, x_379); +lean_ctor_set(x_381, 2, x_378); +lean_ctor_set(x_381, 3, x_380); +x_382 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__10; +lean_inc(x_361); +x_383 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_383, 0, x_361); lean_ctor_set(x_383, 1, x_382); -lean_ctor_set(x_383, 2, x_381); -x_384 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__19; -x_385 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_385, 0, x_303); -lean_ctor_set(x_385, 1, x_384); -x_386 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; -x_387 = lean_array_push(x_386, x_357); -x_388 = lean_array_push(x_387, x_383); -x_389 = lean_array_push(x_388, x_385); -x_390 = lean_array_push(x_389, x_299); -x_391 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__10; +x_384 = lean_array_push(x_211, x_383); +lean_inc(x_215); +lean_inc(x_384); +x_385 = lean_array_push(x_384, x_215); +x_386 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__9; +x_387 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_387, 0, x_208); +lean_ctor_set(x_387, 1, x_386); +lean_ctor_set(x_387, 2, x_385); +x_388 = lean_array_push(x_206, x_387); +x_389 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_389, 0, x_208); +lean_ctor_set(x_389, 1, x_209); +lean_ctor_set(x_389, 2, x_388); +x_390 = lean_array_push(x_211, x_381); +x_391 = lean_array_push(x_390, x_389); x_392 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_392, 0, x_327); -lean_ctor_set(x_392, 1, x_391); -lean_ctor_set(x_392, 2, x_390); -x_393 = lean_array_push(x_386, x_353); -x_394 = lean_array_push(x_393, x_335); -x_395 = lean_array_push(x_394, x_355); -x_396 = lean_array_push(x_395, x_392); -x_397 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__9; -x_398 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_398, 0, x_327); -lean_ctor_set(x_398, 1, x_397); -lean_ctor_set(x_398, 2, x_396); -x_399 = lean_array_push(x_324, x_347); -x_400 = lean_array_push(x_399, x_398); -x_401 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; -x_402 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_402, 0, x_327); -lean_ctor_set(x_402, 1, x_401); -lean_ctor_set(x_402, 2, x_400); -x_403 = lean_array_push(x_386, x_311); -x_404 = lean_array_push(x_403, x_44); -x_405 = lean_array_push(x_404, x_345); -x_406 = lean_array_push(x_405, x_402); -x_407 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__5; -x_408 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_408, 0, x_327); -lean_ctor_set(x_408, 1, x_407); -lean_ctor_set(x_408, 2, x_406); -x_409 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(x_183, x_186, x_185, x_62, x_2, x_408, x_3, x_4, x_5, x_6, x_7, x_34, x_9, x_307); -return x_409; +lean_ctor_set(x_392, 0, x_208); +lean_ctor_set(x_392, 1, x_209); +lean_ctor_set(x_392, 2, x_391); +x_393 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__17; +lean_inc(x_361); +x_394 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_394, 0, x_361); +lean_ctor_set(x_394, 1, x_393); +x_395 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__10; +x_396 = lean_array_push(x_395, x_371); +lean_inc(x_396); +x_397 = lean_array_push(x_396, x_392); +lean_inc(x_394); +x_398 = lean_array_push(x_397, x_394); +x_399 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkUnit___closed__2; +x_400 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_400, 0, x_208); +lean_ctor_set(x_400, 1, x_399); +lean_ctor_set(x_400, 2, x_398); +x_401 = lean_array_push(x_211, x_400); +lean_inc(x_62); +x_402 = lean_array_push(x_401, x_62); +x_403 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_403, 0, x_208); +lean_ctor_set(x_403, 1, x_209); +lean_ctor_set(x_403, 2, x_402); +x_404 = lean_array_push(x_211, x_376); +x_405 = lean_array_push(x_404, x_403); +x_406 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_406, 0, x_208); +lean_ctor_set(x_406, 1, x_214); +lean_ctor_set(x_406, 2, x_405); +x_407 = lean_array_push(x_211, x_406); +x_408 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__3; +x_409 = lean_array_push(x_407, x_408); +x_410 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_410, 0, x_208); +lean_ctor_set(x_410, 1, x_209); +lean_ctor_set(x_410, 2, x_409); +lean_inc(x_396); +x_411 = lean_array_push(x_396, x_410); +lean_inc(x_394); +x_412 = lean_array_push(x_411, x_394); +x_413 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_413, 0, x_208); +lean_ctor_set(x_413, 1, x_399); +lean_ctor_set(x_413, 2, x_412); +x_414 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__1; +lean_inc(x_361); +x_415 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_415, 0, x_361); +lean_ctor_set(x_415, 1, x_414); +lean_inc(x_32); +lean_inc(x_367); +x_416 = l_Lean_addMacroScope(x_367, x_183, x_32); +lean_inc(x_361); +x_417 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_417, 0, x_361); +lean_ctor_set(x_417, 1, x_186); +lean_ctor_set(x_417, 2, x_416); +lean_ctor_set(x_417, 3, x_185); +x_418 = l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_mkTuple___spec__1___closed__5; +x_419 = l_Lean_addMacroScope(x_367, x_418, x_32); +x_420 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__12; +x_421 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14; +lean_inc(x_361); +x_422 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_422, 0, x_361); +lean_ctor_set(x_422, 1, x_420); +lean_ctor_set(x_422, 2, x_419); +lean_ctor_set(x_422, 3, x_421); +x_423 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__15; +lean_inc(x_361); +x_424 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_424, 0, x_361); +lean_ctor_set(x_424, 1, x_423); +x_425 = lean_array_push(x_206, x_424); +x_426 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__10; +x_427 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_427, 0, x_208); +lean_ctor_set(x_427, 1, x_426); +lean_ctor_set(x_427, 2, x_425); +x_428 = lean_array_push(x_211, x_215); +x_429 = lean_array_push(x_428, x_427); +x_430 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_430, 0, x_208); +lean_ctor_set(x_430, 1, x_209); +lean_ctor_set(x_430, 2, x_429); +x_431 = lean_array_push(x_211, x_422); +x_432 = lean_array_push(x_431, x_430); +x_433 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_433, 0, x_208); +lean_ctor_set(x_433, 1, x_214); +lean_ctor_set(x_433, 2, x_432); +x_434 = lean_array_push(x_384, x_433); +x_435 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_435, 0, x_208); +lean_ctor_set(x_435, 1, x_386); +lean_ctor_set(x_435, 2, x_434); +x_436 = lean_array_push(x_206, x_435); +x_437 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_437, 0, x_208); +lean_ctor_set(x_437, 1, x_209); +lean_ctor_set(x_437, 2, x_436); +lean_inc(x_417); +x_438 = lean_array_push(x_211, x_417); +x_439 = lean_array_push(x_438, x_437); +x_440 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_440, 0, x_208); +lean_ctor_set(x_440, 1, x_209); +lean_ctor_set(x_440, 2, x_439); +x_441 = lean_array_push(x_396, x_440); +x_442 = lean_array_push(x_441, x_394); +x_443 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_443, 0, x_208); +lean_ctor_set(x_443, 1, x_399); +lean_ctor_set(x_443, 2, x_442); +x_444 = lean_array_push(x_395, x_21); +x_445 = lean_array_push(x_444, x_359); +x_446 = lean_array_push(x_445, x_443); +x_447 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_447, 0, x_208); +lean_ctor_set(x_447, 1, x_209); +lean_ctor_set(x_447, 2, x_446); +x_448 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_expandDoIf_x3f___spec__6___lambda__1___closed__13; +lean_inc(x_361); +x_449 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_449, 0, x_361); +lean_ctor_set(x_449, 1, x_448); +x_450 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__9; +lean_inc(x_361); +x_451 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_451, 0, x_361); +lean_ctor_set(x_451, 1, x_450); +x_452 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__11; +lean_inc(x_361); +x_453 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_453, 0, x_361); +lean_ctor_set(x_453, 1, x_452); +x_454 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__14; +lean_inc(x_361); +x_455 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_455, 0, x_361); +lean_ctor_set(x_455, 1, x_454); +x_456 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__20; +lean_inc(x_361); +x_457 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_457, 0, x_361); +lean_ctor_set(x_457, 1, x_456); +x_458 = lean_array_push(x_206, x_457); +x_459 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__16; +x_460 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_460, 0, x_208); +lean_ctor_set(x_460, 1, x_459); +lean_ctor_set(x_460, 2, x_458); +lean_inc(x_417); +x_461 = lean_array_push(x_395, x_417); +x_462 = lean_array_push(x_461, x_455); +x_463 = lean_array_push(x_462, x_460); +x_464 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__13; +x_465 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_465, 0, x_208); +lean_ctor_set(x_465, 1, x_464); +lean_ctor_set(x_465, 2, x_463); +x_466 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__18; +x_467 = lean_array_push(x_466, x_417); +x_468 = lean_array_push(x_467, x_408); +x_469 = lean_array_push(x_468, x_408); +x_470 = lean_array_push(x_469, x_453); +x_471 = lean_array_push(x_470, x_465); +x_472 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_letDeclArgHasBinders___closed__6; +x_473 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_473, 0, x_208); +lean_ctor_set(x_473, 1, x_472); +lean_ctor_set(x_473, 2, x_471); +x_474 = lean_array_push(x_206, x_473); +x_475 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__10; +x_476 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_476, 0, x_208); +lean_ctor_set(x_476, 1, x_475); +lean_ctor_set(x_476, 2, x_474); +x_477 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_Do_destructTuple_destruct___closed__19; +x_478 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_478, 0, x_361); +lean_ctor_set(x_478, 1, x_477); +x_479 = l_Lean_Elab_Term_Do_mkAuxDeclFor___rarg___lambda__4___closed__9; +x_480 = lean_array_push(x_479, x_451); +x_481 = lean_array_push(x_480, x_476); +x_482 = lean_array_push(x_481, x_478); +x_483 = lean_array_push(x_482, x_190); +x_484 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__10; +x_485 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_485, 0, x_208); +lean_ctor_set(x_485, 1, x_484); +lean_ctor_set(x_485, 2, x_483); +x_486 = lean_array_push(x_479, x_447); +x_487 = lean_array_push(x_486, x_408); +x_488 = lean_array_push(x_487, x_449); +x_489 = lean_array_push(x_488, x_485); +x_490 = l_Lean_Elab_Term_Do_ToTerm_actionTerminalToTerm___closed__9; +x_491 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_491, 0, x_208); +lean_ctor_set(x_491, 1, x_490); +lean_ctor_set(x_491, 2, x_489); +x_492 = lean_array_push(x_211, x_415); +x_493 = lean_array_push(x_492, x_491); +x_494 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_liftMethodForbiddenBinder___closed__2; +x_495 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_495, 0, x_208); +lean_ctor_set(x_495, 1, x_494); +lean_ctor_set(x_495, 2, x_493); +x_496 = lean_array_push(x_479, x_369); +x_497 = lean_array_push(x_496, x_44); +x_498 = lean_array_push(x_497, x_413); +x_499 = lean_array_push(x_498, x_495); +x_500 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__5; +x_501 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_501, 0, x_208); +lean_ctor_set(x_501, 1, x_500); +lean_ctor_set(x_501, 2, x_499); +x_502 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems___closed__6; +x_503 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2(x_502, x_209, x_183, x_186, x_185, x_206, x_211, x_62, x_200, x_214, x_2, x_501, x_3, x_4, x_5, x_6, x_7, x_34, x_9, x_365); +return x_503; } } else { -lean_object* x_410; lean_object* x_411; lean_object* x_412; +lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_dec(x_62); lean_dec(x_44); lean_dec(x_36); @@ -40141,21 +40587,21 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_410 = lean_ctor_get(x_189, 0); -lean_inc(x_410); -x_411 = lean_ctor_get(x_189, 1); -lean_inc(x_411); +x_504 = lean_ctor_get(x_189, 0); +lean_inc(x_504); +x_505 = lean_ctor_get(x_189, 1); +lean_inc(x_505); lean_dec(x_189); -x_412 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_412, 0, x_410); -lean_ctor_set(x_412, 1, x_411); -return x_412; +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; } } } else { -lean_object* x_413; lean_object* x_414; lean_object* x_415; +lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_dec(x_59); lean_dec(x_55); lean_dec(x_49); @@ -40171,20 +40617,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_413 = lean_ctor_get(x_61, 0); -lean_inc(x_413); -x_414 = lean_ctor_get(x_61, 1); -lean_inc(x_414); +x_507 = lean_ctor_get(x_61, 0); +lean_inc(x_507); +x_508 = lean_ctor_get(x_61, 1); +lean_inc(x_508); lean_dec(x_61); -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; +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; } } else { -lean_object* x_416; lean_object* x_417; lean_object* x_418; +lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_dec(x_49); lean_dec(x_44); lean_dec(x_36); @@ -40198,20 +40644,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_416 = lean_ctor_get(x_51, 0); -lean_inc(x_416); -x_417 = lean_ctor_get(x_51, 1); -lean_inc(x_417); +x_510 = lean_ctor_get(x_51, 0); +lean_inc(x_510); +x_511 = lean_ctor_get(x_51, 1); +lean_inc(x_511); lean_dec(x_51); -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; +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; } } else { -lean_object* x_419; lean_object* x_420; lean_object* x_421; +lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_dec(x_44); lean_dec(x_36); lean_dec(x_34); @@ -40224,20 +40670,20 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_419 = lean_ctor_get(x_48, 0); -lean_inc(x_419); -x_420 = lean_ctor_get(x_48, 1); -lean_inc(x_420); +x_513 = lean_ctor_get(x_48, 0); +lean_inc(x_513); +x_514 = lean_ctor_get(x_48, 1); +lean_inc(x_514); lean_dec(x_48); -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; +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_422; lean_object* x_423; lean_object* x_424; +lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_dec(x_36); lean_dec(x_34); lean_dec(x_32); @@ -40251,54 +40697,54 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_422 = lean_ctor_get(x_41, 0); -lean_inc(x_422); -x_423 = lean_ctor_get(x_41, 1); -lean_inc(x_423); +x_516 = lean_ctor_get(x_41, 0); +lean_inc(x_516); +x_517 = lean_ctor_get(x_41, 1); +lean_inc(x_517); lean_dec(x_41); -x_424 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_424, 0, x_422); -lean_ctor_set(x_424, 1, x_423); -return x_424; +x_518 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_518, 0, x_516); +lean_ctor_set(x_518, 1, x_517); +return x_518; } } } else { -lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; uint8_t x_443; -x_439 = l_Lean_instInhabitedSyntax; -x_440 = lean_array_get(x_439, x_13, x_11); -x_441 = lean_unsigned_to_nat(0u); -x_442 = l_Lean_Syntax_getArg(x_440, x_441); -x_443 = l_Lean_Syntax_isNone(x_442); -if (x_443 == 0) +lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; uint8_t x_537; +x_533 = l_Lean_instInhabitedSyntax; +x_534 = lean_array_get(x_533, x_13, x_11); +x_535 = lean_unsigned_to_nat(0u); +x_536 = l_Lean_Syntax_getArg(x_534, x_535); +x_537 = l_Lean_Syntax_isNone(x_536); +if (x_537 == 0) { -lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; -lean_dec(x_440); +lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; +lean_dec(x_534); lean_dec(x_13); lean_dec(x_2); lean_dec(x_1); -x_444 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__8; -x_445 = l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___spec__2(x_442, x_444, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_446 = lean_ctor_get(x_445, 0); -lean_inc(x_446); -x_447 = lean_ctor_get(x_445, 1); -lean_inc(x_447); -lean_dec(x_445); -x_448 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_448, 0, x_446); -lean_ctor_set(x_448, 1, x_447); -return x_448; +x_538 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__16; +x_539 = l_Lean_throwErrorAt___at_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___spec__2(x_536, x_538, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_540 = lean_ctor_get(x_539, 0); +lean_inc(x_540); +x_541 = lean_ctor_get(x_539, 1); +lean_inc(x_541); +lean_dec(x_539); +x_542 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_542, 0, x_540); +lean_ctor_set(x_542, 1, x_541); +return x_542; } else { -lean_object* x_449; lean_object* x_450; -lean_dec(x_442); -x_449 = lean_box(0); -x_450 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__4(x_440, x_13, x_1, x_2, x_449, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_object* x_543; lean_object* x_544; +lean_dec(x_536); +x_543 = lean_box(0); +x_544 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__4(x_534, x_13, x_1, x_2, x_543, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); -lean_dec(x_440); -return x_450; +lean_dec(x_534); +return x_544; } } } @@ -42828,22 +43274,23 @@ lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; _start: { -uint8_t x_19; uint8_t x_20; uint8_t x_21; size_t x_22; size_t x_23; lean_object* x_24; -x_19 = lean_unbox(x_3); +uint8_t x_20; uint8_t x_21; uint8_t x_22; size_t x_23; size_t x_24; lean_object* x_25; +x_20 = lean_unbox(x_3); lean_dec(x_3); -x_20 = lean_unbox(x_4); +x_21 = lean_unbox(x_4); lean_dec(x_4); -x_21 = lean_unbox(x_5); +x_22 = lean_unbox(x_5); lean_dec(x_5); -x_22 = lean_unbox_usize(x_8); -lean_dec(x_8); x_23 = lean_unbox_usize(x_9); lean_dec(x_9); -x_24 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10(x_1, x_2, x_19, x_20, x_21, x_6, x_7, x_22, x_23, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -lean_dec(x_7); -return x_24; +x_24 = lean_unbox_usize(x_10); +lean_dec(x_10); +x_25 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___spec__10(x_1, x_2, x_20, x_21, x_22, x_6, x_7, x_8, x_23, x_24, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_8); +return x_25; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { @@ -42860,13 +43307,13 @@ x_18 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___lambda__1(x_1, x_15, x_16, return x_18; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___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_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___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* x_13) { _start: { -lean_object* x_13; -x_13 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___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_4); -return x_13; +lean_object* x_14; +x_14 = l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___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); +lean_dec(x_5); +return x_14; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doTryToCode___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, 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) { @@ -42972,6 +43419,34 @@ lean_dec(x_1); return x_7; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___lambda__2___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +lean_object* x_20 = _args[19]; +_start: +{ +lean_object* x_21; +x_21 = l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___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, x_14, x_15, x_16, x_17, x_18, x_19, x_20); +return x_21; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___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, 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: { @@ -43028,22 +43503,23 @@ lean_dec(x_1); return x_8; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_run(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_ToCodeBlock_run(lean_object* x_1, lean_object* x_2, lean_object* 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_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; -x_10 = lean_unsigned_to_nat(1u); -x_11 = l_Lean_Syntax_getArg(x_1, x_10); -x_12 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_11); -x_13 = lean_box(0); -x_14 = 0; -x_15 = lean_alloc_ctor(0, 3, 1); -lean_ctor_set(x_15, 0, x_1); -lean_ctor_set(x_15, 1, x_2); -lean_ctor_set(x_15, 2, x_13); -lean_ctor_set_uint8(x_15, sizeof(void*)*3, x_14); -x_16 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_12, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_16; +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_11 = lean_unsigned_to_nat(1u); +x_12 = l_Lean_Syntax_getArg(x_1, x_11); +x_13 = l___private_Lean_Elab_Do_0__Lean_Elab_Term_getDoSeqElems(x_12); +x_14 = lean_box(0); +x_15 = 0; +x_16 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_16, 0, x_1); +lean_ctor_set(x_16, 1, x_2); +lean_ctor_set(x_16, 2, x_3); +lean_ctor_set(x_16, 3, x_14); +lean_ctor_set_uint8(x_16, sizeof(void*)*4, x_15); +x_17 = l_Lean_Elab_Term_Do_ToCodeBlock_doSeqToCode(x_13, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_17; } } LEAN_EXPORT lean_object* l_Lean_Elab_Term_Do_elabDo___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) { @@ -43131,125 +43607,144 @@ lean_inc(x_3); x_16 = l_Lean_Elab_Term_exprToSyntax(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_14); if (lean_obj_tag(x_16) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 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_13, 1); +lean_inc(x_19); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -lean_inc(x_17); -lean_inc(x_1); -x_19 = l_Lean_Elab_Term_Do_ToCodeBlock_run(x_1, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_18); -if (lean_obj_tag(x_19) == 0) +x_20 = l_Lean_Elab_Term_exprToSyntax(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_18); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -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; +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_ctor_get(x_20, 0); +x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -x_23 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; -x_24 = 0; -x_25 = lean_box(x_24); -x_26 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_run___boxed), 6, 4); -lean_closure_set(x_26, 0, x_22); -lean_closure_set(x_26, 1, x_17); -lean_closure_set(x_26, 2, x_23); -lean_closure_set(x_26, 3, x_25); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); -x_27 = l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__9(x_26, x_3, x_4, x_5, x_6, x_7, x_8, x_21); -if (lean_obj_tag(x_27) == 0) +lean_inc(x_21); +lean_inc(x_17); +lean_inc(x_1); +x_23 = l_Lean_Elab_Term_Do_ToCodeBlock_run(x_1, x_17, x_21, x_3, x_4, x_5, x_6, x_7, x_8, x_22); +if (lean_obj_tag(x_23) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -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 = l_Lean_Elab_Term_Do_elabDo___closed__2; -x_41 = lean_st_ref_get(x_8, x_29); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_42, 3); -lean_inc(x_43); -lean_dec(x_42); -x_44 = lean_ctor_get_uint8(x_43, sizeof(void*)*1); -lean_dec(x_43); -if (x_44 == 0) +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; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_24, 0); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_Elab_Term_Do_instInhabitedAlt___rarg___closed__1; +x_28 = 0; +x_29 = lean_box(x_28); +x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Term_Do_ToTerm_run___boxed), 7, 5); +lean_closure_set(x_30, 0, x_26); +lean_closure_set(x_30, 1, x_17); +lean_closure_set(x_30, 2, x_21); +lean_closure_set(x_30, 3, x_27); +lean_closure_set(x_30, 4, x_29); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +x_31 = l_Lean_Elab_liftMacroM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__9(x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_25); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_45; uint8_t x_46; -x_45 = lean_ctor_get(x_41, 1); -lean_inc(x_45); -lean_dec(x_41); -x_46 = 0; -x_31 = x_46; -x_32 = x_45; -goto block_40; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_47 = lean_ctor_get(x_41, 1); +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +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_Do_elabDo___closed__2; +x_45 = lean_st_ref_get(x_8, x_33); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_46, 3); lean_inc(x_47); -lean_dec(x_41); -x_48 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_47); -x_49 = lean_ctor_get(x_48, 0); +lean_dec(x_46); +x_48 = lean_ctor_get_uint8(x_47, sizeof(void*)*1); +lean_dec(x_47); +if (x_48 == 0) +{ +lean_object* x_49; uint8_t x_50; +x_49 = lean_ctor_get(x_45, 1); lean_inc(x_49); -x_50 = lean_ctor_get(x_48, 1); -lean_inc(x_50); -lean_dec(x_48); -x_51 = lean_unbox(x_49); -lean_dec(x_49); -x_31 = x_51; -x_32 = x_50; -goto block_40; -} -block_40: -{ -if (x_31 == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_box(0); -x_34 = l_Lean_Elab_Term_Do_elabDo___lambda__1(x_13, x_28, x_1, x_33, x_3, x_4, x_5, x_6, x_7, x_8, x_32); -lean_dec(x_13); -return x_34; +lean_dec(x_45); +x_50 = 0; +x_35 = x_50; +x_36 = x_49; +goto block_44; } else { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -lean_inc(x_28); -x_35 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_35, 0, x_28); -x_36 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_30, x_35, x_3, x_4, x_5, x_6, x_7, x_8, x_32); -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_Do_elabDo___lambda__1(x_13, x_28, x_1, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_38); -lean_dec(x_37); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; +x_51 = lean_ctor_get(x_45, 1); +lean_inc(x_51); +lean_dec(x_45); +x_52 = l___private_Lean_Util_Trace_0__Lean_checkTraceOptionM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__2(x_34, x_3, x_4, x_5, x_6, x_7, x_8, x_51); +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 = lean_unbox(x_53); +lean_dec(x_53); +x_35 = x_55; +x_36 = x_54; +goto block_44; +} +block_44: +{ +if (x_35 == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_box(0); +x_38 = l_Lean_Elab_Term_Do_elabDo___lambda__1(x_13, x_32, x_1, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_36); lean_dec(x_13); -return x_39; +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_inc(x_32); +x_39 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_39, 0, x_32); +x_40 = l_Lean_addTrace___at___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoe___spec__1(x_34, x_39, x_3, x_4, x_5, x_6, x_7, x_8, 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 = l_Lean_Elab_Term_Do_elabDo___lambda__1(x_13, x_32, x_1, x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_42); +lean_dec(x_41); +lean_dec(x_13); +return x_43; } } } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); @@ -43258,20 +43753,21 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_52 = lean_ctor_get(x_27, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_27, 1); -lean_inc(x_53); -lean_dec(x_27); -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; +x_56 = lean_ctor_get(x_31, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_31, 1); +lean_inc(x_57); +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 { -lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_object* x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_21); lean_dec(x_17); lean_dec(x_13); lean_dec(x_8); @@ -43281,20 +43777,21 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_55 = lean_ctor_get(x_19, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_19, 1); -lean_inc(x_56); -lean_dec(x_19); -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_59 = lean_ctor_get(x_23, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_23, 1); +lean_inc(x_60); +lean_dec(x_23); +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_58; lean_object* x_59; lean_object* x_60; +lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_17); lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); @@ -43303,20 +43800,21 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_58 = lean_ctor_get(x_16, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_16, 1); -lean_inc(x_59); -lean_dec(x_16); -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; +x_62 = lean_ctor_get(x_20, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_20, 1); +lean_inc(x_63); +lean_dec(x_20); +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_61; lean_object* x_62; lean_object* x_63; +lean_object* x_65; lean_object* x_66; lean_object* x_67; +lean_dec(x_13); lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -43324,20 +43822,41 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_61 = lean_ctor_get(x_12, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_12, 1); -lean_inc(x_62); -lean_dec(x_12); -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; +x_65 = lean_ctor_get(x_16, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_16, 1); +lean_inc(x_66); +lean_dec(x_16); +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_64; lean_object* x_65; lean_object* x_66; +lean_object* x_68; lean_object* x_69; lean_object* x_70; +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_68 = lean_ctor_get(x_12, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_12, 1); +lean_inc(x_69); +lean_dec(x_12); +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_object* x_73; lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); @@ -43346,15 +43865,15 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_64 = lean_ctor_get(x_10, 0); -lean_inc(x_64); -x_65 = lean_ctor_get(x_10, 1); -lean_inc(x_65); +x_71 = lean_ctor_get(x_10, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_10, 1); +lean_inc(x_72); 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; +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; } } } @@ -43428,7 +43947,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1600u); +x_1 = lean_unsigned_to_nat(1607u); x_2 = lean_unsigned_to_nat(24u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43440,7 +43959,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1607u); +x_1 = lean_unsigned_to_nat(1615u); x_2 = lean_unsigned_to_nat(84u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43468,7 +43987,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1600u); +x_1 = lean_unsigned_to_nat(1607u); x_2 = lean_unsigned_to_nat(28u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43480,7 +43999,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___cl _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1600u); +x_1 = lean_unsigned_to_nat(1607u); x_2 = lean_unsigned_to_nat(34u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43526,7 +44045,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1); return x_4; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30793_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_31171_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -43682,7 +44201,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1618u); +x_1 = lean_unsigned_to_nat(1626u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43694,7 +44213,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1618u); +x_1 = lean_unsigned_to_nat(1626u); x_2 = lean_unsigned_to_nat(62u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43722,7 +44241,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1618u); +x_1 = lean_unsigned_to_nat(1626u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43734,7 +44253,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermFor_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1618u); +x_1 = lean_unsigned_to_nat(1626u); x_2 = lean_unsigned_to_nat(17u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43840,7 +44359,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1621u); +x_1 = lean_unsigned_to_nat(1629u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43852,7 +44371,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1621u); +x_1 = lean_unsigned_to_nat(1629u); x_2 = lean_unsigned_to_nat(62u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43880,7 +44399,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1621u); +x_1 = lean_unsigned_to_nat(1629u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43892,7 +44411,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermTry_declRange_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1621u); +x_1 = lean_unsigned_to_nat(1629u); x_2 = lean_unsigned_to_nat(17u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -43998,7 +44517,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1624u); +x_1 = lean_unsigned_to_nat(1632u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44010,7 +44529,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1624u); +x_1 = lean_unsigned_to_nat(1632u); x_2 = lean_unsigned_to_nat(68u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44038,7 +44557,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1624u); +x_1 = lean_unsigned_to_nat(1632u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44050,7 +44569,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermUnless_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1624u); +x_1 = lean_unsigned_to_nat(1632u); x_2 = lean_unsigned_to_nat(20u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44156,7 +44675,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1627u); +x_1 = lean_unsigned_to_nat(1635u); x_2 = lean_unsigned_to_nat(0u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44168,7 +44687,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1627u); +x_1 = lean_unsigned_to_nat(1635u); x_2 = lean_unsigned_to_nat(68u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44196,7 +44715,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1627u); +x_1 = lean_unsigned_to_nat(1635u); x_2 = lean_unsigned_to_nat(4u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -44208,7 +44727,7 @@ static lean_object* _init_l___regBuiltin_Lean_Elab_Term_expandTermReturn_declRan _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(1627u); +x_1 = lean_unsigned_to_nat(1635u); x_2 = lean_unsigned_to_nat(20u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -45497,6 +46016,22 @@ l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__7 = _init_l_Lean_Elab_Term lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__7); l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__8 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__8(); lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__8); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__9 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__9(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__9); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__10 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__10(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__10); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__11 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__11(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__11); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__12 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__12(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__12); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__13 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__13); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__14); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__15 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__15(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__15); +l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__16 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__16(); +lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doForToCode___closed__16); l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___lambda__1___closed__1 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___lambda__1___closed__1); l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___lambda__1___closed__2 = _init_l_Lean_Elab_Term_Do_ToCodeBlock_doReassignArrowToCode___lambda__1___closed__2(); @@ -45549,7 +46084,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange___closed_ res = l___regBuiltin_Lean_Elab_Term_Do_elabDo_declRange(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_30793_(lean_io_mk_world()); +res = l_Lean_Elab_Term_initFn____x40_Lean_Elab_Do___hyg_31171_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__1 = _init_l___regBuiltin_Lean_Elab_Term_expandTermFor___closed__1(); diff --git a/stage0/stdlib/Lean/Elab/Term.c b/stage0/stdlib/Lean/Elab/Term.c index 8d5fb8ff5f..2ebb29109d 100644 --- a/stage0/stdlib/Lean/Elab/Term.c +++ b/stage0/stdlib/Lean/Elab/Term.c @@ -117,6 +117,7 @@ static lean_object* l_Lean_logTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__1_ LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveName___lambda__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_collectUnassignedMVars_go___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_postponeElabTerm___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Term_exprToSyntax___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__35(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_liftExcept___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__8(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwMaxRecDepthAt___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -155,6 +156,7 @@ static lean_object* l_Lean_getConstInfo___at_Lean_Elab_Term_mkConst___spec__1___ static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__5___closed__3; LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__13___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isTacticBlock___closed__5; +static lean_object* l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getDeclName_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__43(lean_object*, lean_object*, lean_object*); @@ -262,6 +264,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModif LEAN_EXPORT lean_object* l_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withDeclName(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_GetOpKind_noConfusion___rarg(uint8_t, uint8_t, lean_object*); +static lean_object* l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__4(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkAuxName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -289,6 +292,7 @@ LEAN_EXPORT lean_object* l_ReaderT_map___at_Lean_Elab_Term_instMetaEvalTermElabM static lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Term_expandDeclId___spec__6___lambda__1___closed__2; lean_object* l_Lean_Meta_isMonad_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_isNoImplicitLambda___closed__2; +static lean_object* l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Std_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__22(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMetaEvalTermElabM___rarg___closed__12; @@ -313,7 +317,6 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwMVarError___ lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getSyntheticMVarDecl_x3f___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_Std_RBNode_findCore___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__5(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_exprToSyntax___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Term_ensureType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__14___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_MessageData_ofList(lean_object*); @@ -344,7 +347,6 @@ lean_object* l_Std_mkHashSetImp___rarg(lean_object*); static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__1; static lean_object* l_Lean_Elab_Term_isLetRecAuxMVar___lambda__2___closed__2; static lean_object* l_Lean_Elab_Term_mkTermElabAttributeUnsafe___closed__7; -static lean_object* l_Lean_Elab_Term_exprToSyntax___closed__1; lean_object* l_Std_PersistentHashMap_insert___at_Lean_assignExprMVar___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_getLevelNames___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabUsingElabFnsAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -379,7 +381,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_collectUnassignedMVars_go___boxed(lean static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___lambda__5___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Term_resolveLocalName_go(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_instMonadMacroAdapterTermElabM___closed__2; -static lean_object* l_Lean_Elab_Term_exprToSyntax___closed__2; LEAN_EXPORT lean_object* l_Std_PersistentArray_anyM___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__29___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Term_ContainsPendingMVar_visit___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Term_instMetaEvalTermElabM___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -584,6 +585,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplic LEAN_EXPORT lean_object* l_Lean_logAt___at_Lean_Elab_Term_traceAtCmdPos___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_throwMVarError___spec__2___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAuxDecl___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_withMacroExpansionInfo___at_Lean_Elab_Term_withMacroExpansion___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_mkNoImplicitLambdaAnnotation(lean_object*); @@ -607,7 +609,6 @@ LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBound lean_object* l_Std_PersistentArray_get_x21___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_useImplicitLambda_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkConst___closed__2; -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__2; LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_mkSyntheticSorryFor___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_decorateErrorMessageWithLambdaImplicitVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___lambda__2___closed__3; @@ -635,6 +636,7 @@ lean_object* l_Lean_ResolveName_resolveNamespace(lean_object*, lean_object*, lea LEAN_EXPORT lean_object* l_Lean_markUsedAssignment___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Term_mkTypeMismatchError___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Term_levelMVarToParam___lambda__1___boxed(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__2; static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__21; static lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___closed__4; lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -684,7 +686,6 @@ lean_object* l_Nat_repr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_withAuxDecl(lean_object*); lean_object* l_Lean_Meta_getDecLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at___private_Lean_Elab_Term_0__Lean_Elab_Term_withoutModifyingStateWithInfoAndMessagesImpl___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_addCompletionInfo___at_Lean_Elab_Term_addDotCompletionInfo___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_GetOpKind_noConfusion___rarg___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__14___boxed(lean_object*, lean_object*); @@ -722,6 +723,7 @@ LEAN_EXPORT lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Elab_Term_addAu static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___lambda__1___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_mkDeclName___at_Lean_Elab_Term_expandDeclId___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getId(lean_object*); +static lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__22; static lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryCoeSort___lambda__1___closed__9; @@ -1015,7 +1017,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Elab_Term_0__Lean_Elab_Term_tryLiftAnd static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__15; static lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Term_addDotCompletionInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Term_exprToSyntax___closed__3; uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_getResetInfoTrees___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__2___boxed(lean_object*); static lean_object* l_Lean_Elab_Term_MVarErrorInfo_logError___closed__12; @@ -1277,7 +1278,7 @@ static lean_object* l_Lean_Elab_Tactic_instInhabitedSnapshot___closed__17; LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Term_addTermInfo___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_throwErrorIfErrors(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___at_Lean_Elab_Term_isLetRecAuxMVar___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914_(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915_(lean_object*); LEAN_EXPORT lean_object* l_Std_PersistentArray_mapM___at_Lean_Elab_Term_withoutModifyingElabMetaStateWithInfo___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_addAutoBoundImplicits_go___spec__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -63260,7 +63261,7 @@ return x_65; } } } -static lean_object* _init_l_Lean_Elab_Term_exprToSyntax___closed__1() { +static lean_object* _init_l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__1() { _start: { lean_object* x_1; @@ -63268,22 +63269,22 @@ x_1 = lean_mk_string_from_bytes("m", 1); return x_1; } } -static lean_object* _init_l_Lean_Elab_Term_exprToSyntax___closed__2() { +static lean_object* _init_l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_exprToSyntax___closed__1; +x_1 = l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Term_exprToSyntax___closed__3() { +static lean_object* _init_l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_exprToSyntax___closed__1; +x_1 = l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_exprToSyntax___closed__2; +x_3 = l_Lean_Elab_Term_exprToSyntax___lambda__1___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); @@ -63291,17 +63292,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Term_exprToSyntax___closed__4() { +static lean_object* _init_l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_exprToSyntax___closed__1; +x_2 = l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Term_exprToSyntax(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_Elab_Term_exprToSyntax___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_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; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; @@ -63329,10 +63330,10 @@ lean_inc(x_10); x_19 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_19, 0, x_10); lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_Elab_Term_exprToSyntax___closed__4; +x_20 = l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__4; x_21 = l_Lean_addMacroScope(x_17, x_20, x_12); x_22 = lean_box(0); -x_23 = l_Lean_Elab_Term_exprToSyntax___closed__3; +x_23 = l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__3; x_24 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_24, 0, x_10); lean_ctor_set(x_24, 1, x_23); @@ -63349,10 +63350,10 @@ lean_ctor_set(x_30, 1, x_29); lean_ctor_set(x_30, 2, x_27); lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); lean_inc(x_4); -lean_inc(x_1); -x_31 = lean_infer_type(x_1, x_4, x_5, x_6, x_7, x_15); +lean_inc(x_3); +lean_inc(x_5); +x_31 = lean_infer_type(x_5, x_3, x_4, x_6, x_7, x_15); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; @@ -63366,12 +63367,12 @@ lean_ctor_set(x_34, 0, x_32); x_35 = 1; lean_inc(x_7); lean_inc(x_6); -lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); +lean_inc(x_1); lean_inc(x_30); -x_36 = l_Lean_Elab_Term_elabTerm(x_30, x_34, x_35, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_33); +x_36 = l_Lean_Elab_Term_elabTerm(x_30, x_34, x_35, x_35, x_1, x_2, x_3, x_4, x_6, x_7, 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; uint8_t x_41; @@ -63382,13 +63383,13 @@ lean_inc(x_38); lean_dec(x_36); x_39 = l_Lean_Expr_mvarId_x21(x_37); lean_dec(x_37); -x_40 = l_Lean_assignExprMVar___at_Lean_Elab_Term_exprToSyntax___spec__2(x_39, x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_38); +x_40 = l_Lean_assignExprMVar___at_Lean_Elab_Term_exprToSyntax___spec__2(x_39, x_5, x_1, x_2, x_3, x_4, x_6, x_7, x_38); 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_41 = !lean_is_exclusive(x_40); if (x_41 == 0) { @@ -63473,6 +63474,20 @@ return x_52; } } } +LEAN_EXPORT lean_object* l_Lean_Elab_Term_exprToSyntax(lean_object* x_1, lean_object* x_2, 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_alloc_closure((void*)(l_Lean_Elab_Term_exprToSyntax___lambda__1), 8, 5); +lean_closure_set(x_9, 0, x_2); +lean_closure_set(x_9, 1, x_3); +lean_closure_set(x_9, 2, x_4); +lean_closure_set(x_9, 3, x_5); +lean_closure_set(x_9, 4, x_1); +x_10 = l_Lean_Core_withFreshMacroScope___rarg(x_9, x_6, x_7, x_8); +return x_10; +} +} LEAN_EXPORT lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at_Lean_Elab_Term_exprToSyntax___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -63545,7 +63560,7 @@ x_3 = lean_alloc_closure((void*)(l_Lean_Elab_withoutModifyingStateWithInfoAndMes return x_3; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__1() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__1() { _start: { lean_object* x_1; @@ -63553,17 +63568,17 @@ x_1 = lean_mk_string_from_bytes("debug", 5); return x_1; } } -static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__2() { +static lean_object* _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_MVarErrorInfo_logError___closed__11; -x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__1; +x_2 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -63583,7 +63598,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_6, 1); lean_inc(x_7); lean_dec(x_6); -x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__2; +x_8 = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__2; x_9 = l_Lean_registerTraceClass(x_8, x_7); return x_9; } @@ -64605,19 +64620,19 @@ l_Lean_Elab_Term_expandDeclId___closed__1 = _init_l_Lean_Elab_Term_expandDeclId_ lean_mark_persistent(l_Lean_Elab_Term_expandDeclId___closed__1); l_Lean_Elab_Term_expandDeclId___closed__2 = _init_l_Lean_Elab_Term_expandDeclId___closed__2(); lean_mark_persistent(l_Lean_Elab_Term_expandDeclId___closed__2); -l_Lean_Elab_Term_exprToSyntax___closed__1 = _init_l_Lean_Elab_Term_exprToSyntax___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___closed__1); -l_Lean_Elab_Term_exprToSyntax___closed__2 = _init_l_Lean_Elab_Term_exprToSyntax___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___closed__2); -l_Lean_Elab_Term_exprToSyntax___closed__3 = _init_l_Lean_Elab_Term_exprToSyntax___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___closed__3); -l_Lean_Elab_Term_exprToSyntax___closed__4 = _init_l_Lean_Elab_Term_exprToSyntax___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___closed__4); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__1(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__1); -l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__2(); -lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914____closed__2); -res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15914_(lean_io_mk_world()); +l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__1 = _init_l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__1); +l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__2 = _init_l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__2); +l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__3 = _init_l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__3); +l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__4 = _init_l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_exprToSyntax___lambda__1___closed__4); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__1 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__1(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__1); +l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__2 = _init_l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__2(); +lean_mark_persistent(l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915____closed__2); +res = l_Lean_Elab_initFn____x40_Lean_Elab_Term___hyg_15915_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_io_result_mk_ok(lean_box(0));