From 460dcfec19abf423aca2f0cd1250bac74e091781 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Sat, 1 Feb 2020 01:04:38 -0800 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Lean/Elab/Command.lean | 21 +- stage0/src/Init/Lean/Elab/DoNotation.lean | 21 +- stage0/src/Init/Lean/Elab/Term.lean | 25 +- stage0/src/Init/Lean/Elab/Util.lean | 11 +- stage0/src/Init/Lean/Hygiene.lean | 5 - stage0/src/Init/LeanInit.lean | 10 +- stage0/stdlib/Init/Lean/Elab/Command.c | 3819 ++++++------ stage0/stdlib/Init/Lean/Elab/DoNotation.c | 6229 +++++++------------ stage0/stdlib/Init/Lean/Elab/Tactic/Basic.c | 756 +-- stage0/stdlib/Init/Lean/Elab/Term.c | 2964 +++++---- stage0/stdlib/Init/Lean/Elab/Util.c | 174 +- stage0/stdlib/Init/Lean/Hygiene.c | 65 - stage0/stdlib/Init/LeanInit.c | 98 + 13 files changed, 6465 insertions(+), 7733 deletions(-) diff --git a/stage0/src/Init/Lean/Elab/Command.lean b/stage0/src/Init/Lean/Elab/Command.lean index 9e98690df6..6c2b9d409d 100644 --- a/stage0/src/Init/Lean/Elab/Command.lean +++ b/stage0/src/Init/Lean/Elab/Command.lean @@ -207,18 +207,19 @@ partial def elabCommand : Syntax → CommandElabM Unit else do trace `Elab.step stx $ fun _ => stx; s ← get; - let table := (commandElabAttribute.ext.getState s.env).table; - let k := stx.getKind; - match table.find? k with - | some elabFns => elabCommandUsing s stx elabFns - | none => do - env ← getEnv; - stx' ← catch - (adaptMacro (getMacros env) stx) + stxNew? ← catch + (do newStx ← adaptMacro (getMacros s.env) stx; pure (some newStx)) (fun ex => match ex with - | Exception.unsupportedSyntax => throwError stx ("elaboration function for '" ++ toString k ++ "' has not been implemented") + | Exception.unsupportedSyntax => pure none | _ => throw ex); - withMacroExpansion stx stx' $ elabCommand stx' + match stxNew? with + | some stxNew => withMacroExpansion stx stxNew $ elabCommand stxNew + | _ => do + let table := (commandElabAttribute.ext.getState s.env).table; + let k := stx.getKind; + match table.find? k with + | some elabFns => elabCommandUsing s stx elabFns + | none => throwError stx ("elaboration function for '" ++ toString k ++ "' has not been implemented") | _ => throwError stx "unexpected command" /-- Adapt a syntax transformation to a regular, command-producing elaborator. -/ diff --git a/stage0/src/Init/Lean/Elab/DoNotation.lean b/stage0/src/Init/Lean/Elab/DoNotation.lean index 2f582c72c6..8b800a82e4 100644 --- a/stage0/src/Init/Lean/Elab/DoNotation.lean +++ b/stage0/src/Init/Lean/Elab/DoNotation.lean @@ -50,7 +50,7 @@ private partial def hasLiftMethod : Syntax → Bool else args.any hasLiftMethod | _ => false -private partial def expandLiftMethodAux : Syntax → StateT (Array Syntax) TermElabM Syntax +private partial def expandLiftMethodAux : Syntax → StateT (Array Syntax) MacroM Syntax | stx@(Syntax.node k args) => if k == `Lean.Parser.Term.do then pure stx else if k == `Lean.Parser.Term.liftMethod then withFreshMacroScope $ do @@ -65,7 +65,7 @@ private partial def expandLiftMethodAux : Syntax → StateT (Array Syntax) TermE pure $ Syntax.node k args | stx => pure stx -private def expandLiftMethod (stx : Syntax) : TermElabM (Option (Array Syntax)) := +private def expandLiftMethod (stx : Syntax) : MacroM (Option (Array Syntax)) := if hasLiftMethod stx then do (stx, doElems) ← (expandLiftMethodAux stx).run #[]; let doElems := doElems.push stx; @@ -74,16 +74,16 @@ else pure none /- Expand `doLet`, `doPat`, nonterminal `doExpr`s, and `liftMethod` -/ -private partial def expandDoElems : Bool → Array Syntax → Nat → TermElabM (Option Syntax) +private partial def expandDoElemsAux : Bool → Array Syntax → Nat → MacroM (Option Syntax) | modified, doElems, i => - let mkRest : Unit → TermElabM Syntax := fun _ => do { + let mkRest : Unit → MacroM Syntax := fun _ => do { let restElems := doElems.extract (i+2) doElems.size; if restElems.size == 1 then pure $ (restElems.get! 0).getArg 0 else `(do { $restElems* }) }; - let addPrefix (rest : Syntax) : TermElabM (Option Syntax) := do { + let addPrefix (rest : Syntax) : MacroM (Option Syntax) := do { if i == 0 then pure rest else @@ -100,7 +100,7 @@ private partial def expandDoElems : Bool → Array Syntax → Nat → TermElabM let pre := doElems.extract 0 i; let doElems := pre ++ doElemsNew ++ post; tmp ← `(do { $doElems* }); - expandDoElems true doElems i + expandDoElemsAux true doElems i | none => if doElem.getKind == `Lean.Parser.Term.doLet then do let letDecl := doElem.getArg 1; @@ -126,14 +126,17 @@ private partial def expandDoElems : Bool → Array Syntax → Nat → TermElabM auxDo ← `(do x ← $term; $(Syntax.missing)); let doElemNew := (getDoElems auxDo).get! 0; let doElems := doElems.set! i doElemNew; - expandDoElems true doElems (i+2) + expandDoElemsAux true doElems (i+2) else - expandDoElems modified doElems (i+2) + expandDoElemsAux modified doElems (i+2) else if modified then `(do { $doElems* }) else pure none +private partial def expandDoElems (doElems : Array Syntax) : MacroM (Option Syntax) := +expandDoElemsAux false doElems 0 + private def ensureDoElemType (ref : Syntax) (expectedMonad : Expr) (expectedType : Expr) (val : Expr) : TermElabM Expr := do -- TODO: try MonadLift ensureHasType ref expectedType val @@ -215,7 +218,7 @@ fun stx expectedType? => do let ref := stx; tryPostponeIfNoneOrMVar expectedType?; let doElems := getDoElems stx; - stxNew? ← expandDoElems false doElems 0; + stxNew? ← liftMacroM $ expandDoElems doElems; match stxNew? with | some stxNew => withMacroExpansion stx stxNew $ elabTerm stxNew expectedType? | none => do diff --git a/stage0/src/Init/Lean/Elab/Term.lean b/stage0/src/Init/Lean/Elab/Term.lean index 3a34e3dd81..48b46e6f95 100644 --- a/stage0/src/Init/Lean/Elab/Term.lean +++ b/stage0/src/Init/Lean/Elab/Term.lean @@ -480,18 +480,19 @@ partial def elabTermAux (expectedType? : Option Expr) (catchExPostpone := true) | stx => withFreshMacroScope $ withIncRecDepth stx $ do trace `Elab.step stx $ fun _ => stx; s ← get; - let table := (termElabAttribute.ext.getState s.env).table; - let k := stx.getKind; - match table.find? k with - | some elabFns => elabTermUsing s stx expectedType? catchExPostpone elabFns - | none => do - env ← getEnv; - stx' ← catch - (adaptMacro (getMacros env) stx) - (fun ex => match ex with - | Exception.ex Elab.Exception.unsupportedSyntax => throwError stx ("elaboration function for '" ++ toString k ++ "' has not been implemented") - | _ => throw ex); - withMacroExpansion stx stx' $ elabTermAux stx' + stxNew? ← catch + (do newStx ← adaptMacro (getMacros s.env) stx; pure (some newStx)) + (fun ex => match ex with + | Exception.ex Elab.Exception.unsupportedSyntax => pure none + | _ => throw ex); + match stxNew? with + | some stxNew => withMacroExpansion stx stxNew $ elabTermAux stxNew + | _ => + let table := (termElabAttribute.ext.getState s.env).table; + let k := stx.getKind; + match table.find? k with + | some elabFns => elabTermUsing s stx expectedType? catchExPostpone elabFns + | none => throwError stx ("elaboration function for '" ++ toString k ++ "' has not been implemented") /-- Main function for elaborating terms. diff --git a/stage0/src/Init/Lean/Elab/Util.lean b/stage0/src/Init/Lean/Elab/Util.lean index c993556f57..4ddc1c76cc 100644 --- a/stage0/src/Init/Lean/Elab/Util.lean +++ b/stage0/src/Init/Lean/Elab/Util.lean @@ -231,14 +231,17 @@ class MonadMacroAdapter (m : Type → Type) := (throwError {} {α : Type} : Syntax → MessageData → m α) (throwUnsupportedSyntax {} {α : Type} : m α) -@[inline] def adaptMacro {m : Type → Type} [Monad m] [MonadMacroAdapter m] (x : Macro) (stx : Syntax) : m Syntax := do +@[inline] def liftMacroM {α} {m : Type → Type} [Monad m] [MonadMacroAdapter m] (x : MacroM α) : m α := do scp ← MonadMacroAdapter.getCurrMacroScope; env ← MonadMacroAdapter.getEnv; next ← MonadMacroAdapter.getNextMacroScope; -match x stx { currMacroScope := scp, mainModule := env.mainModule } next with +match x { currMacroScope := scp, mainModule := env.mainModule } next with | EStateM.Result.error Macro.Exception.unsupportedSyntax _ => MonadMacroAdapter.throwUnsupportedSyntax -| EStateM.Result.error (Macro.Exception.error msg) _ => MonadMacroAdapter.throwError stx msg -| EStateM.Result.ok stx nextMacroScope => do MonadMacroAdapter.setNextMacroScope nextMacroScope; pure stx +| EStateM.Result.error (Macro.Exception.error ref msg) _ => MonadMacroAdapter.throwError ref msg +| EStateM.Result.ok a nextMacroScope => do MonadMacroAdapter.setNextMacroScope nextMacroScope; pure a + +@[inline] def adaptMacro {m : Type → Type} [Monad m] [MonadMacroAdapter m] (x : Macro) (stx : Syntax) : m Syntax := +liftMacroM (x stx) @[init] private def regTraceClasses : IO Unit := do registerTraceClass `Elab; diff --git a/stage0/src/Init/Lean/Hygiene.lean b/stage0/src/Init/Lean/Hygiene.lean index 9798e65a10..f53af9a54e 100644 --- a/stage0/src/Init/Lean/Hygiene.lean +++ b/stage0/src/Init/Lean/Hygiene.lean @@ -36,9 +36,4 @@ instance MonadQuotation : MonadQuotation Unhygienic := { protected def run {α : Type} (x : Unhygienic α) : α := run x firstFrontendMacroScope (firstFrontendMacroScope+1) end Unhygienic -instance monadQuotationTrans {m n : Type → Type} [MonadQuotation m] [HasMonadLift m n] [MonadFunctorT m m n n] : MonadQuotation n := -{ getCurrMacroScope := liftM (getCurrMacroScope : m MacroScope), - getMainModule := liftM (getMainModule : m Name), - withFreshMacroScope := fun α => monadMap (fun α => (withFreshMacroScope : m α → m α)) } - end Lean diff --git a/stage0/src/Init/LeanInit.lean b/stage0/src/Init/LeanInit.lean index 45bdfdd144..33323c98c6 100644 --- a/stage0/src/Init/LeanInit.lean +++ b/stage0/src/Init/LeanInit.lean @@ -366,7 +366,7 @@ structure Context := (currMacroScope : MacroScope) inductive Exception -| error : String → Exception +| error : Syntax → String → Exception | unsupportedSyntax : Exception end Macro @@ -380,6 +380,9 @@ pure $ Lean.addMacroScope ctx.mainModule n ctx.currMacroScope def Macro.throwUnsupported {α} : MacroM α := throw Macro.Exception.unsupportedSyntax +def Macro.throwError {α} (ref : Syntax) (msg : String) : MacroM α := +throw $ Macro.Exception.error ref msg + @[inline] protected def Macro.withFreshMacroScope {α} (x : MacroM α) : MacroM α := do fresh ← modifyGet (fun s => (s, s+1)); adaptReader (fun (ctx : Macro.Context) => { currMacroScope := fresh, .. ctx }) x @@ -389,6 +392,11 @@ instance MacroM.monadQuotation : MonadQuotation MacroM := getMainModule := fun ctx => pure ctx.mainModule, withFreshMacroScope := @Macro.withFreshMacroScope } +instance monadQuotationTrans {m n : Type → Type} [MonadQuotation m] [HasMonadLift m n] [MonadFunctorT m m n n] : MonadQuotation n := +{ getCurrMacroScope := liftM (getCurrMacroScope : m MacroScope), + getMainModule := liftM (getMainModule : m Name), + withFreshMacroScope := fun α => monadMap (fun α => (withFreshMacroScope : m α → m α)) } + abbrev Macro := Syntax → MacroM Syntax /- Helper functions for processing Syntax programmatically -/ diff --git a/stage0/stdlib/Init/Lean/Elab/Command.c b/stage0/stdlib/Init/Lean/Elab/Command.c index fd092bcb4d..64d48458a4 100644 --- a/stage0/stdlib/Init/Lean/Elab/Command.c +++ b/stage0/stdlib/Init/Lean/Elab/Command.c @@ -5292,52 +5292,703 @@ lean_ctor_set(x_34, 5, x_12); lean_ctor_set(x_34, 6, x_30); if (lean_obj_tag(x_1) == 1) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; -x_132 = lean_ctor_get(x_1, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_1, 1); -lean_inc(x_133); -x_134 = l_Lean_nullKind; -x_135 = lean_name_eq(x_132, x_134); -lean_dec(x_132); -if (x_135 == 0) +lean_object* x_149; lean_object* x_150; lean_object* x_151; uint8_t x_152; +x_149 = lean_ctor_get(x_1, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_1, 1); +lean_inc(x_150); +x_151 = l_Lean_nullKind; +x_152 = lean_name_eq(x_149, x_151); +lean_dec(x_149); +if (x_152 == 0) { -lean_object* x_136; -lean_dec(x_133); +lean_object* x_153; +lean_dec(x_150); lean_inc(x_34); -x_136 = l_Lean_Elab_Command_getOptions(x_34, x_33); -if (lean_obj_tag(x_136) == 0) +x_153 = l_Lean_Elab_Command_getOptions(x_34, x_33); +if (lean_obj_tag(x_153) == 0) { -lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_137 = lean_ctor_get(x_136, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_136, 1); -lean_inc(x_138); -lean_dec(x_136); -x_139 = l_Lean_Elab_Command_elabCommand___main___closed__1; -x_140 = l_Lean_checkTraceOption(x_137, x_139); -lean_dec(x_137); -if (x_140 == 0) +lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; +x_154 = lean_ctor_get(x_153, 0); +lean_inc(x_154); +x_155 = lean_ctor_get(x_153, 1); +lean_inc(x_155); +lean_dec(x_153); +x_156 = l_Lean_Elab_Command_elabCommand___main___closed__1; +x_157 = l_Lean_checkTraceOption(x_154, x_156); +lean_dec(x_154); +if (x_157 == 0) { -x_35 = x_138; -goto block_131; +x_35 = x_155; +goto block_148; } else { -lean_object* x_141; lean_object* x_142; +lean_object* x_158; lean_object* x_159; lean_inc(x_1); -x_141 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_141, 0, x_1); +x_158 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_158, 0, x_1); lean_inc(x_34); -x_142 = l_Lean_Elab_Command_logTrace(x_139, x_1, x_141, x_34, x_138); -if (lean_obj_tag(x_142) == 0) +x_159 = l_Lean_Elab_Command_logTrace(x_156, x_1, x_158, x_34, x_155); +if (lean_obj_tag(x_159) == 0) { -lean_object* x_143; -x_143 = lean_ctor_get(x_142, 1); -lean_inc(x_143); -lean_dec(x_142); -x_35 = x_143; -goto block_131; +lean_object* x_160; +x_160 = lean_ctor_get(x_159, 1); +lean_inc(x_160); +lean_dec(x_159); +x_35 = x_160; +goto block_148; +} +else +{ +uint8_t x_161; +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_161 = !lean_is_exclusive(x_159); +if (x_161 == 0) +{ +return x_159; +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_159, 0); +x_163 = lean_ctor_get(x_159, 1); +lean_inc(x_163); +lean_inc(x_162); +lean_dec(x_159); +x_164 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set(x_164, 1, x_163); +return x_164; +} +} +} +} +else +{ +uint8_t x_165; +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_165 = !lean_is_exclusive(x_153); +if (x_165 == 0) +{ +return x_153; +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_153, 0); +x_167 = lean_ctor_get(x_153, 1); +lean_inc(x_167); +lean_inc(x_166); +lean_dec(x_153); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +return x_168; +} +} +} +else +{ +lean_object* x_169; lean_object* x_170; +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_169 = lean_unsigned_to_nat(0u); +x_170 = l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___main___spec__7(x_150, x_169, x_34, x_33); +lean_dec(x_150); +return x_170; +} +} +else +{ +lean_object* x_171; lean_object* x_172; +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_171 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; +x_172 = l_Lean_Elab_Command_throwError___rarg(x_1, x_171, x_34, x_33); +lean_dec(x_1); +return x_172; +} +block_148: +{ +lean_object* x_36; +lean_inc(x_34); +x_36 = l___private_Init_Lean_Elab_Command_2__getState(x_34, x_35); +if (lean_obj_tag(x_36) == 0) +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = lean_ctor_get(x_37, 0); +lean_inc(x_39); +x_65 = l_Lean_Elab_Command_getCurrMacroScope(x_34, x_38); +x_66 = lean_ctor_get(x_65, 0); +lean_inc(x_66); +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +lean_inc(x_34); +x_68 = l_Lean_Elab_Command_getEnv(x_34, x_67); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_68, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_68, 1); +lean_inc(x_70); +lean_dec(x_68); +lean_inc(x_34); +x_71 = l___private_Init_Lean_Elab_Command_2__getState(x_34, x_70); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = lean_ctor_get(x_72, 3); +lean_inc(x_74); +lean_dec(x_72); +x_75 = lean_environment_main_module(x_69); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_66); +lean_inc(x_1); +x_77 = l_Lean_Elab_getMacros(x_39, x_1, x_76, x_74); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +lean_inc(x_34); +x_80 = l___private_Init_Lean_Elab_Command_2__getState(x_34, x_73); +if (lean_obj_tag(x_80) == 0) +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; +x_81 = lean_ctor_get(x_80, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +lean_dec(x_80); +x_83 = !lean_is_exclusive(x_81); +if (x_83 == 0) +{ +lean_object* x_84; lean_object* x_85; +x_84 = lean_ctor_get(x_81, 3); +lean_dec(x_84); +lean_ctor_set(x_81, 3, x_79); +lean_inc(x_34); +x_85 = l___private_Init_Lean_Elab_Command_3__setState(x_81, x_34, x_82); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_85, 1); +lean_inc(x_86); +lean_dec(x_85); +x_87 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_87, 0, x_78); +x_40 = x_87; +x_41 = x_86; +goto block_64; +} +else +{ +lean_object* x_88; +lean_dec(x_78); +x_88 = lean_ctor_get(x_85, 0); +lean_inc(x_88); +if (lean_obj_tag(x_88) == 0) +{ +uint8_t x_89; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_89 = !lean_is_exclusive(x_85); +if (x_89 == 0) +{ +lean_object* x_90; +x_90 = lean_ctor_get(x_85, 0); +lean_dec(x_90); +return x_85; +} +else +{ +lean_object* x_91; lean_object* x_92; +x_91 = lean_ctor_get(x_85, 1); +lean_inc(x_91); +lean_dec(x_85); +x_92 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_92, 0, x_88); +lean_ctor_set(x_92, 1, x_91); +return x_92; +} +} +else +{ +lean_object* x_93; lean_object* x_94; +x_93 = lean_ctor_get(x_85, 1); +lean_inc(x_93); +lean_dec(x_85); +x_94 = lean_box(0); +x_40 = x_94; +x_41 = x_93; +goto block_64; +} +} +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_95 = lean_ctor_get(x_81, 0); +x_96 = lean_ctor_get(x_81, 1); +x_97 = lean_ctor_get(x_81, 2); +x_98 = lean_ctor_get(x_81, 4); +lean_inc(x_98); +lean_inc(x_97); +lean_inc(x_96); +lean_inc(x_95); +lean_dec(x_81); +x_99 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_99, 0, x_95); +lean_ctor_set(x_99, 1, x_96); +lean_ctor_set(x_99, 2, x_97); +lean_ctor_set(x_99, 3, x_79); +lean_ctor_set(x_99, 4, x_98); +lean_inc(x_34); +x_100 = l___private_Init_Lean_Elab_Command_3__setState(x_99, x_34, x_82); +if (lean_obj_tag(x_100) == 0) +{ +lean_object* x_101; lean_object* x_102; +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +lean_dec(x_100); +x_102 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_102, 0, x_78); +x_40 = x_102; +x_41 = x_101; +goto block_64; +} +else +{ +lean_object* x_103; +lean_dec(x_78); +x_103 = lean_ctor_get(x_100, 0); +lean_inc(x_103); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_104 = lean_ctor_get(x_100, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_105 = x_100; +} else { + lean_dec_ref(x_100); + x_105 = lean_box(0); +} +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); +} else { + x_106 = x_105; +} +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +return x_106; +} +else +{ +lean_object* x_107; lean_object* x_108; +x_107 = lean_ctor_get(x_100, 1); +lean_inc(x_107); +lean_dec(x_100); +x_108 = lean_box(0); +x_40 = x_108; +x_41 = x_107; +goto block_64; +} +} +} +} +else +{ +lean_object* x_109; +lean_dec(x_79); +lean_dec(x_78); +x_109 = lean_ctor_get(x_80, 0); +lean_inc(x_109); +if (lean_obj_tag(x_109) == 0) +{ +uint8_t x_110; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_110 = !lean_is_exclusive(x_80); +if (x_110 == 0) +{ +lean_object* x_111; +x_111 = lean_ctor_get(x_80, 0); +lean_dec(x_111); +return x_80; +} +else +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_80, 1); +lean_inc(x_112); +lean_dec(x_80); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_109); +lean_ctor_set(x_113, 1, x_112); +return x_113; +} +} +else +{ +lean_object* x_114; lean_object* x_115; +x_114 = lean_ctor_get(x_80, 1); +lean_inc(x_114); +lean_dec(x_80); +x_115 = lean_box(0); +x_40 = x_115; +x_41 = x_114; +goto block_64; +} +} +} +else +{ +lean_object* x_116; +x_116 = lean_ctor_get(x_77, 0); +lean_inc(x_116); +lean_dec(x_77); +if (lean_obj_tag(x_116) == 0) +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_117 = lean_ctor_get(x_116, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_116, 1); +lean_inc(x_118); +lean_dec(x_116); +x_119 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_119, 0, x_118); +x_120 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_120, 0, x_119); +lean_inc(x_34); +x_121 = l_Lean_Elab_Command_throwError___rarg(x_117, x_120, x_34, x_73); +lean_dec(x_117); +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +if (lean_obj_tag(x_122) == 0) +{ +uint8_t x_123; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_123 = !lean_is_exclusive(x_121); +if (x_123 == 0) +{ +lean_object* x_124; +x_124 = lean_ctor_get(x_121, 0); +lean_dec(x_124); +return x_121; +} +else +{ +lean_object* x_125; lean_object* x_126; +x_125 = lean_ctor_get(x_121, 1); +lean_inc(x_125); +lean_dec(x_121); +x_126 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_126, 0, x_122); +lean_ctor_set(x_126, 1, x_125); +return x_126; +} +} +else +{ +lean_object* x_127; lean_object* x_128; +x_127 = lean_ctor_get(x_121, 1); +lean_inc(x_127); +lean_dec(x_121); +x_128 = lean_box(0); +x_40 = x_128; +x_41 = x_127; +goto block_64; +} +} +else +{ +lean_object* x_129; +x_129 = lean_box(0); +x_40 = x_129; +x_41 = x_73; +goto block_64; +} +} +} +else +{ +lean_object* x_130; +lean_dec(x_69); +lean_dec(x_66); +x_130 = lean_ctor_get(x_71, 0); +lean_inc(x_130); +if (lean_obj_tag(x_130) == 0) +{ +uint8_t x_131; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_131 = !lean_is_exclusive(x_71); +if (x_131 == 0) +{ +lean_object* x_132; +x_132 = lean_ctor_get(x_71, 0); +lean_dec(x_132); +return x_71; +} +else +{ +lean_object* x_133; lean_object* x_134; +x_133 = lean_ctor_get(x_71, 1); +lean_inc(x_133); +lean_dec(x_71); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_130); +lean_ctor_set(x_134, 1, x_133); +return x_134; +} +} +else +{ +lean_object* x_135; lean_object* x_136; +x_135 = lean_ctor_get(x_71, 1); +lean_inc(x_135); +lean_dec(x_71); +x_136 = lean_box(0); +x_40 = x_136; +x_41 = x_135; +goto block_64; +} +} +} +else +{ +lean_object* x_137; +lean_dec(x_66); +x_137 = lean_ctor_get(x_68, 0); +lean_inc(x_137); +if (lean_obj_tag(x_137) == 0) +{ +uint8_t x_138; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_34); +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_138 = !lean_is_exclusive(x_68); +if (x_138 == 0) +{ +lean_object* x_139; +x_139 = lean_ctor_get(x_68, 0); +lean_dec(x_139); +return x_68; +} +else +{ +lean_object* x_140; lean_object* x_141; +x_140 = lean_ctor_get(x_68, 1); +lean_inc(x_140); +lean_dec(x_68); +x_141 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_141, 0, x_137); +lean_ctor_set(x_141, 1, x_140); +return x_141; +} +} +else +{ +lean_object* x_142; lean_object* x_143; +x_142 = lean_ctor_get(x_68, 1); +lean_inc(x_142); +lean_dec(x_68); +x_143 = lean_box(0); +x_40 = x_143; +x_41 = x_142; +goto block_64; +} +} +block_64: +{ +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_30); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_42 = l_Lean_Elab_Command_commandElabAttribute; +x_43 = lean_ctor_get(x_42, 1); +lean_inc(x_43); +x_44 = l_Lean_PersistentEnvExtension_getState___rarg(x_43, x_39); +lean_dec(x_39); +lean_dec(x_43); +x_45 = lean_ctor_get(x_44, 1); +lean_inc(x_45); +lean_dec(x_44); +lean_inc(x_1); +x_46 = l_Lean_Syntax_getKind(x_1); +x_47 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___main___spec__1(x_45, x_46); +if (lean_obj_tag(x_47) == 0) +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_37); +x_48 = l_Lean_Name_toString___closed__1; +x_49 = l_Lean_Name_toStringWithSep___main(x_48, x_46); +x_50 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_50, 0, x_49); +x_51 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_51, 0, x_50); +x_52 = l_Lean_Elab_Term_elabTermAux___main___closed__3; +x_53 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = l_Lean_Elab_Term_elabTermAux___main___closed__6; +x_55 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_55, 0, x_53); +lean_ctor_set(x_55, 1, x_54); +x_56 = l_Lean_Elab_Command_throwError___rarg(x_1, x_55, x_34, x_41); +lean_dec(x_1); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_46); +x_57 = lean_ctor_get(x_47, 0); +lean_inc(x_57); +lean_dec(x_47); +x_58 = l___private_Init_Lean_Elab_Command_5__elabCommandUsing___main(x_37, x_1, x_57, x_34, x_41); +return x_58; +} +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_39); +lean_dec(x_37); +lean_dec(x_34); +x_59 = lean_ctor_get(x_40, 0); +lean_inc(x_59); +lean_dec(x_40); +lean_inc(x_59); +x_60 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_60, 0, x_1); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_12); +x_62 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_62, 0, x_7); +lean_ctor_set(x_62, 1, x_8); +lean_ctor_set(x_62, 2, x_9); +lean_ctor_set(x_62, 3, x_25); +lean_ctor_set(x_62, 4, x_11); +lean_ctor_set(x_62, 5, x_61); +lean_ctor_set(x_62, 6, x_30); +x_1 = x_59; +x_2 = x_62; +x_3 = x_41; +goto _start; +} +} } else { @@ -5351,19 +6002,19 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_144 = !lean_is_exclusive(x_142); +x_144 = !lean_is_exclusive(x_36); if (x_144 == 0) { -return x_142; +return x_36; } else { lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_142, 0); -x_146 = lean_ctor_get(x_142, 1); +x_145 = lean_ctor_get(x_36, 0); +x_146 = lean_ctor_get(x_36, 1); lean_inc(x_146); lean_inc(x_145); -lean_dec(x_142); +lean_dec(x_36); x_147 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_147, 0, x_145); lean_ctor_set(x_147, 1, x_146); @@ -5374,8 +6025,7 @@ return x_147; } else { -uint8_t x_148; -lean_dec(x_34); +uint8_t x_173; lean_dec(x_30); lean_dec(x_25); lean_dec(x_12); @@ -5384,662 +6034,123 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_148 = !lean_is_exclusive(x_136); -if (x_148 == 0) -{ -return x_136; -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; -x_149 = lean_ctor_get(x_136, 0); -x_150 = lean_ctor_get(x_136, 1); -lean_inc(x_150); -lean_inc(x_149); -lean_dec(x_136); -x_151 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_151, 0, x_149); -lean_ctor_set(x_151, 1, x_150); -return x_151; -} -} -} -else -{ -lean_object* x_152; lean_object* x_153; -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_152 = lean_unsigned_to_nat(0u); -x_153 = l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___main___spec__7(x_133, x_152, x_34, x_33); -lean_dec(x_133); -return x_153; -} -} -else -{ -lean_object* x_154; lean_object* x_155; -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_154 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; -x_155 = l_Lean_Elab_Command_throwError___rarg(x_1, x_154, x_34, x_33); -lean_dec(x_1); -return x_155; -} -block_131: -{ -lean_object* x_36; -lean_inc(x_34); -x_36 = l___private_Init_Lean_Elab_Command_2__getState(x_34, x_35); -if (lean_obj_tag(x_36) == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -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_Command_commandElabAttribute; -x_40 = lean_ctor_get(x_39, 1); -lean_inc(x_40); -x_41 = lean_ctor_get(x_37, 0); -lean_inc(x_41); -x_42 = l_Lean_PersistentEnvExtension_getState___rarg(x_40, x_41); -lean_dec(x_41); -lean_dec(x_40); -x_43 = lean_ctor_get(x_42, 1); -lean_inc(x_43); -lean_dec(x_42); -lean_inc(x_1); -x_44 = l_Lean_Syntax_getKind(x_1); -x_45 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___main___spec__1(x_43, x_44); -if (lean_obj_tag(x_45) == 0) -{ -lean_object* x_46; -lean_dec(x_37); -lean_inc(x_34); -x_46 = l_Lean_Elab_Command_getEnv(x_34, x_38); -if (lean_obj_tag(x_46) == 0) -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_57; lean_object* x_58; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -if (lean_is_exclusive(x_46)) { - lean_ctor_release(x_46, 0); - lean_ctor_release(x_46, 1); - x_49 = x_46; -} else { - lean_dec_ref(x_46); - x_49 = lean_box(0); -} -x_74 = l_Lean_Elab_Command_getCurrMacroScope(x_34, x_48); -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -lean_inc(x_34); -x_77 = l_Lean_Elab_Command_getEnv(x_34, x_76); -if (lean_obj_tag(x_77) == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); -lean_inc(x_79); -lean_dec(x_77); -lean_inc(x_34); -x_80 = l___private_Init_Lean_Elab_Command_2__getState(x_34, x_79); -if (lean_obj_tag(x_80) == 0) -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_81 = lean_ctor_get(x_80, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_80, 1); -lean_inc(x_82); -lean_dec(x_80); -x_83 = lean_ctor_get(x_81, 3); -lean_inc(x_83); -lean_dec(x_81); -x_84 = lean_environment_main_module(x_78); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_75); -lean_inc(x_1); -x_86 = l_Lean_Elab_getMacros(x_47, x_1, x_85, x_83); -lean_dec(x_47); -if (lean_obj_tag(x_86) == 0) -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); -lean_inc(x_88); -lean_dec(x_86); -lean_inc(x_34); -x_89 = l___private_Init_Lean_Elab_Command_2__getState(x_34, x_82); -if (lean_obj_tag(x_89) == 0) -{ -lean_object* x_90; lean_object* x_91; uint8_t x_92; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = !lean_is_exclusive(x_90); -if (x_92 == 0) -{ -lean_object* x_93; lean_object* x_94; -x_93 = lean_ctor_get(x_90, 3); -lean_dec(x_93); -lean_ctor_set(x_90, 3, x_88); -lean_inc(x_34); -x_94 = l___private_Init_Lean_Elab_Command_3__setState(x_90, x_34, x_91); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; -lean_dec(x_49); -lean_dec(x_44); -lean_dec(x_34); -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -lean_dec(x_94); -x_50 = x_87; -x_51 = x_95; -goto block_56; -} -else -{ -lean_object* x_96; lean_object* x_97; -lean_dec(x_87); -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_96 = lean_ctor_get(x_94, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_94, 1); -lean_inc(x_97); -lean_dec(x_94); -x_57 = x_96; -x_58 = x_97; -goto block_73; -} -} -else -{ -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_98 = lean_ctor_get(x_90, 0); -x_99 = lean_ctor_get(x_90, 1); -x_100 = lean_ctor_get(x_90, 2); -x_101 = lean_ctor_get(x_90, 4); -lean_inc(x_101); -lean_inc(x_100); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_90); -x_102 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_102, 0, x_98); -lean_ctor_set(x_102, 1, x_99); -lean_ctor_set(x_102, 2, x_100); -lean_ctor_set(x_102, 3, x_88); -lean_ctor_set(x_102, 4, x_101); -lean_inc(x_34); -x_103 = l___private_Init_Lean_Elab_Command_3__setState(x_102, x_34, x_91); -if (lean_obj_tag(x_103) == 0) -{ -lean_object* x_104; -lean_dec(x_49); -lean_dec(x_44); -lean_dec(x_34); -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -lean_dec(x_103); -x_50 = x_87; -x_51 = x_104; -goto block_56; -} -else -{ -lean_object* x_105; lean_object* x_106; -lean_dec(x_87); -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_105 = lean_ctor_get(x_103, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_103, 1); -lean_inc(x_106); -lean_dec(x_103); -x_57 = x_105; -x_58 = x_106; -goto block_73; -} -} -} -else -{ -lean_object* x_107; lean_object* x_108; -lean_dec(x_88); -lean_dec(x_87); -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_107 = lean_ctor_get(x_89, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_89, 1); -lean_inc(x_108); -lean_dec(x_89); -x_57 = x_107; -x_58 = x_108; -goto block_73; -} -} -else -{ -lean_object* x_109; -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_109 = lean_ctor_get(x_86, 0); -lean_inc(x_109); -lean_dec(x_86); -if (lean_obj_tag(x_109) == 0) -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -lean_dec(x_109); -x_111 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_111, 0, x_110); -x_112 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_112, 0, x_111); -lean_inc(x_34); -x_113 = l_Lean_Elab_Command_throwError___rarg(x_1, x_112, x_34, x_82); -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -x_57 = x_114; -x_58 = x_115; -goto block_73; -} -else -{ -lean_object* x_116; -x_116 = lean_box(1); -x_57 = x_116; -x_58 = x_82; -goto block_73; -} -} -} -else -{ -lean_object* x_117; lean_object* x_118; -lean_dec(x_78); -lean_dec(x_75); -lean_dec(x_47); -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_117 = lean_ctor_get(x_80, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_80, 1); -lean_inc(x_118); -lean_dec(x_80); -x_57 = x_117; -x_58 = x_118; -goto block_73; -} -} -else -{ -lean_object* x_119; lean_object* x_120; -lean_dec(x_75); -lean_dec(x_47); -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_119 = lean_ctor_get(x_77, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_77, 1); -lean_inc(x_120); -lean_dec(x_77); -x_57 = x_119; -x_58 = x_120; -goto block_73; -} -block_56: -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -lean_inc(x_50); -x_52 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_52, 0, x_1); -lean_ctor_set(x_52, 1, x_50); -x_53 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_12); -x_54 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_54, 0, x_7); -lean_ctor_set(x_54, 1, x_8); -lean_ctor_set(x_54, 2, x_9); -lean_ctor_set(x_54, 3, x_25); -lean_ctor_set(x_54, 4, x_11); -lean_ctor_set(x_54, 5, x_53); -lean_ctor_set(x_54, 6, x_30); -x_1 = x_50; -x_2 = x_54; -x_3 = x_51; -goto _start; -} -block_73: -{ -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_59; -lean_dec(x_44); -lean_dec(x_34); -lean_dec(x_1); -if (lean_is_scalar(x_49)) { - x_59 = lean_alloc_ctor(1, 2, 0); -} else { - x_59 = x_49; - lean_ctor_set_tag(x_59, 1); -} -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -lean_dec(x_49); -x_60 = l_Lean_Name_toString___closed__1; -x_61 = l_Lean_Name_toStringWithSep___main(x_60, x_44); -x_62 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_62, 0, x_61); -x_63 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_63, 0, x_62); -x_64 = l_Lean_Elab_Term_elabTermAux___main___closed__3; -x_65 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_63); -x_66 = l_Lean_Elab_Term_elabTermAux___main___closed__6; -x_67 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -x_68 = l_Lean_Elab_Command_throwError___rarg(x_1, x_67, x_34, x_58); -lean_dec(x_1); -x_69 = !lean_is_exclusive(x_68); -if (x_69 == 0) -{ -return x_68; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; -x_70 = lean_ctor_get(x_68, 0); -x_71 = lean_ctor_get(x_68, 1); -lean_inc(x_71); -lean_inc(x_70); -lean_dec(x_68); -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -return x_72; -} -} -} -} -else -{ -uint8_t x_121; -lean_dec(x_44); -lean_dec(x_34); -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_121 = !lean_is_exclusive(x_46); -if (x_121 == 0) -{ -return x_46; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_46, 0); -x_123 = lean_ctor_get(x_46, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_46); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -return x_124; -} -} -} -else -{ -lean_object* x_125; lean_object* x_126; -lean_dec(x_44); -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_125 = lean_ctor_get(x_45, 0); -lean_inc(x_125); -lean_dec(x_45); -x_126 = l___private_Init_Lean_Elab_Command_5__elabCommandUsing___main(x_37, x_1, x_125, x_34, x_38); -return x_126; -} -} -else -{ -uint8_t x_127; -lean_dec(x_34); -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_127 = !lean_is_exclusive(x_36); -if (x_127 == 0) -{ -return x_36; -} -else -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_36, 0); -x_129 = lean_ctor_get(x_36, 1); -lean_inc(x_129); -lean_inc(x_128); -lean_dec(x_36); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_128); -lean_ctor_set(x_130, 1, x_129); -return x_130; -} -} -} -} -else -{ -uint8_t x_156; -lean_dec(x_30); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_156 = !lean_is_exclusive(x_32); -if (x_156 == 0) +x_173 = !lean_is_exclusive(x_32); +if (x_173 == 0) { return x_32; } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_32, 0); -x_158 = lean_ctor_get(x_32, 1); -lean_inc(x_158); -lean_inc(x_157); +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_32, 0); +x_175 = lean_ctor_get(x_32, 1); +lean_inc(x_175); +lean_inc(x_174); lean_dec(x_32); -x_159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_159, 0, x_157); -lean_ctor_set(x_159, 1, x_158); -return x_159; +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_174); +lean_ctor_set(x_176, 1, x_175); +return x_176; } } } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -x_160 = lean_ctor_get(x_27, 0); -x_161 = lean_ctor_get(x_27, 1); -x_162 = lean_ctor_get(x_27, 2); -x_163 = lean_ctor_get(x_27, 3); -x_164 = lean_ctor_get(x_27, 4); -lean_inc(x_164); -lean_inc(x_163); -lean_inc(x_162); -lean_inc(x_161); -lean_inc(x_160); +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; +x_177 = lean_ctor_get(x_27, 0); +x_178 = lean_ctor_get(x_27, 1); +x_179 = lean_ctor_get(x_27, 2); +x_180 = lean_ctor_get(x_27, 3); +x_181 = lean_ctor_get(x_27, 4); +lean_inc(x_181); +lean_inc(x_180); +lean_inc(x_179); +lean_inc(x_178); +lean_inc(x_177); lean_dec(x_27); -x_165 = lean_nat_add(x_163, x_24); -x_166 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_166, 0, x_160); -lean_ctor_set(x_166, 1, x_161); -lean_ctor_set(x_166, 2, x_162); -lean_ctor_set(x_166, 3, x_165); -lean_ctor_set(x_166, 4, x_164); -x_167 = l___private_Init_Lean_Elab_Command_3__setState(x_166, x_2, x_28); -if (lean_obj_tag(x_167) == 0) +x_182 = lean_nat_add(x_180, x_24); +x_183 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_183, 0, x_177); +lean_ctor_set(x_183, 1, x_178); +lean_ctor_set(x_183, 2, x_179); +lean_ctor_set(x_183, 3, x_182); +lean_ctor_set(x_183, 4, x_181); +x_184 = l___private_Init_Lean_Elab_Command_3__setState(x_183, x_2, x_28); +if (lean_obj_tag(x_184) == 0) { -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_167, 1); -lean_inc(x_168); -lean_dec(x_167); -lean_inc(x_163); +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_184, 1); +lean_inc(x_185); +lean_dec(x_184); +lean_inc(x_180); lean_inc(x_12); lean_inc(x_11); lean_inc(x_25); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); -x_169 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_169, 0, x_7); -lean_ctor_set(x_169, 1, x_8); -lean_ctor_set(x_169, 2, x_9); -lean_ctor_set(x_169, 3, x_25); -lean_ctor_set(x_169, 4, x_11); -lean_ctor_set(x_169, 5, x_12); -lean_ctor_set(x_169, 6, x_163); +x_186 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_186, 0, x_7); +lean_ctor_set(x_186, 1, x_8); +lean_ctor_set(x_186, 2, x_9); +lean_ctor_set(x_186, 3, x_25); +lean_ctor_set(x_186, 4, x_11); +lean_ctor_set(x_186, 5, x_12); +lean_ctor_set(x_186, 6, x_180); if (lean_obj_tag(x_1) == 1) { -lean_object* x_262; lean_object* x_263; lean_object* x_264; uint8_t x_265; -x_262 = lean_ctor_get(x_1, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_1, 1); -lean_inc(x_263); -x_264 = l_Lean_nullKind; -x_265 = lean_name_eq(x_262, x_264); -lean_dec(x_262); -if (x_265 == 0) +lean_object* x_286; lean_object* x_287; lean_object* x_288; uint8_t x_289; +x_286 = lean_ctor_get(x_1, 0); +lean_inc(x_286); +x_287 = lean_ctor_get(x_1, 1); +lean_inc(x_287); +x_288 = l_Lean_nullKind; +x_289 = lean_name_eq(x_286, x_288); +lean_dec(x_286); +if (x_289 == 0) { -lean_object* x_266; -lean_dec(x_263); -lean_inc(x_169); -x_266 = l_Lean_Elab_Command_getOptions(x_169, x_168); -if (lean_obj_tag(x_266) == 0) +lean_object* x_290; +lean_dec(x_287); +lean_inc(x_186); +x_290 = l_Lean_Elab_Command_getOptions(x_186, x_185); +if (lean_obj_tag(x_290) == 0) { -lean_object* x_267; lean_object* x_268; lean_object* x_269; uint8_t x_270; -x_267 = lean_ctor_get(x_266, 0); -lean_inc(x_267); -x_268 = lean_ctor_get(x_266, 1); -lean_inc(x_268); -lean_dec(x_266); -x_269 = l_Lean_Elab_Command_elabCommand___main___closed__1; -x_270 = l_Lean_checkTraceOption(x_267, x_269); -lean_dec(x_267); -if (x_270 == 0) +lean_object* x_291; lean_object* x_292; lean_object* x_293; uint8_t x_294; +x_291 = lean_ctor_get(x_290, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_290, 1); +lean_inc(x_292); +lean_dec(x_290); +x_293 = l_Lean_Elab_Command_elabCommand___main___closed__1; +x_294 = l_Lean_checkTraceOption(x_291, x_293); +lean_dec(x_291); +if (x_294 == 0) { -x_170 = x_268; -goto block_261; +x_187 = x_292; +goto block_285; } else { -lean_object* x_271; lean_object* x_272; +lean_object* x_295; lean_object* x_296; lean_inc(x_1); -x_271 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_271, 0, x_1); -lean_inc(x_169); -x_272 = l_Lean_Elab_Command_logTrace(x_269, x_1, x_271, x_169, x_268); -if (lean_obj_tag(x_272) == 0) +x_295 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_295, 0, x_1); +lean_inc(x_186); +x_296 = l_Lean_Elab_Command_logTrace(x_293, x_1, x_295, x_186, x_292); +if (lean_obj_tag(x_296) == 0) { -lean_object* x_273; -x_273 = lean_ctor_get(x_272, 1); -lean_inc(x_273); -lean_dec(x_272); -x_170 = x_273; -goto block_261; +lean_object* x_297; +x_297 = lean_ctor_get(x_296, 1); +lean_inc(x_297); +lean_dec(x_296); +x_187 = x_297; +goto block_285; } else { -lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; -lean_dec(x_169); -lean_dec(x_163); +lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +lean_dec(x_186); +lean_dec(x_180); lean_dec(x_25); lean_dec(x_12); lean_dec(x_11); @@ -6047,34 +6158,34 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_274 = lean_ctor_get(x_272, 0); -lean_inc(x_274); -x_275 = lean_ctor_get(x_272, 1); -lean_inc(x_275); -if (lean_is_exclusive(x_272)) { - lean_ctor_release(x_272, 0); - lean_ctor_release(x_272, 1); - x_276 = x_272; +x_298 = lean_ctor_get(x_296, 0); +lean_inc(x_298); +x_299 = lean_ctor_get(x_296, 1); +lean_inc(x_299); +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_300 = x_296; } else { - lean_dec_ref(x_272); - x_276 = lean_box(0); + lean_dec_ref(x_296); + x_300 = lean_box(0); } -if (lean_is_scalar(x_276)) { - x_277 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_300)) { + x_301 = lean_alloc_ctor(1, 2, 0); } else { - x_277 = x_276; + x_301 = x_300; } -lean_ctor_set(x_277, 0, x_274); -lean_ctor_set(x_277, 1, x_275); -return x_277; +lean_ctor_set(x_301, 0, x_298); +lean_ctor_set(x_301, 1, x_299); +return x_301; } } } else { -lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; -lean_dec(x_169); -lean_dec(x_163); +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; +lean_dec(x_186); +lean_dec(x_180); lean_dec(x_25); lean_dec(x_12); lean_dec(x_11); @@ -6082,32 +6193,32 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_278 = lean_ctor_get(x_266, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_266, 1); -lean_inc(x_279); -if (lean_is_exclusive(x_266)) { - lean_ctor_release(x_266, 0); - lean_ctor_release(x_266, 1); - x_280 = x_266; +x_302 = lean_ctor_get(x_290, 0); +lean_inc(x_302); +x_303 = lean_ctor_get(x_290, 1); +lean_inc(x_303); +if (lean_is_exclusive(x_290)) { + lean_ctor_release(x_290, 0); + lean_ctor_release(x_290, 1); + x_304 = x_290; } else { - lean_dec_ref(x_266); - x_280 = lean_box(0); + lean_dec_ref(x_290); + x_304 = lean_box(0); } -if (lean_is_scalar(x_280)) { - x_281 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_304)) { + x_305 = lean_alloc_ctor(1, 2, 0); } else { - x_281 = x_280; + x_305 = x_304; } -lean_ctor_set(x_281, 0, x_278); -lean_ctor_set(x_281, 1, x_279); -return x_281; +lean_ctor_set(x_305, 0, x_302); +lean_ctor_set(x_305, 1, x_303); +return x_305; } } else { -lean_object* x_282; lean_object* x_283; -lean_dec(x_163); +lean_object* x_306; lean_object* x_307; +lean_dec(x_180); lean_dec(x_25); lean_dec(x_12); lean_dec(x_11); @@ -6115,446 +6226,518 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_282 = lean_unsigned_to_nat(0u); -x_283 = l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___main___spec__7(x_263, x_282, x_169, x_168); -lean_dec(x_263); -return x_283; +x_306 = lean_unsigned_to_nat(0u); +x_307 = l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___main___spec__7(x_287, x_306, x_186, x_185); +lean_dec(x_287); +return x_307; } } else { -lean_object* x_284; lean_object* x_285; -lean_dec(x_163); +lean_object* x_308; lean_object* x_309; +lean_dec(x_180); lean_dec(x_25); lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_284 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; -x_285 = l_Lean_Elab_Command_throwError___rarg(x_1, x_284, x_169, x_168); +x_308 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; +x_309 = l_Lean_Elab_Command_throwError___rarg(x_1, x_308, x_186, x_185); lean_dec(x_1); -return x_285; +return x_309; } -block_261: +block_285: { -lean_object* x_171; -lean_inc(x_169); -x_171 = l___private_Init_Lean_Elab_Command_2__getState(x_169, x_170); -if (lean_obj_tag(x_171) == 0) +lean_object* x_188; +lean_inc(x_186); +x_188 = l___private_Init_Lean_Elab_Command_2__getState(x_186, x_187); +if (lean_obj_tag(x_188) == 0) { -lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_172 = lean_ctor_get(x_171, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_171, 1); -lean_inc(x_173); -lean_dec(x_171); -x_174 = l_Lean_Elab_Command_commandElabAttribute; -x_175 = lean_ctor_get(x_174, 1); -lean_inc(x_175); -x_176 = lean_ctor_get(x_172, 0); -lean_inc(x_176); -x_177 = l_Lean_PersistentEnvExtension_getState___rarg(x_175, x_176); -lean_dec(x_176); -lean_dec(x_175); -x_178 = lean_ctor_get(x_177, 1); -lean_inc(x_178); -lean_dec(x_177); -lean_inc(x_1); -x_179 = l_Lean_Syntax_getKind(x_1); -x_180 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___main___spec__1(x_178, x_179); -if (lean_obj_tag(x_180) == 0) -{ -lean_object* x_181; -lean_dec(x_172); -lean_inc(x_169); -x_181 = l_Lean_Elab_Command_getEnv(x_169, x_173); -if (lean_obj_tag(x_181) == 0) -{ -lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_192; lean_object* x_193; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_181, 1); -lean_inc(x_183); -if (lean_is_exclusive(x_181)) { - lean_ctor_release(x_181, 0); - lean_ctor_release(x_181, 1); - x_184 = x_181; -} else { - lean_dec_ref(x_181); - x_184 = lean_box(0); -} -x_209 = l_Lean_Elab_Command_getCurrMacroScope(x_169, x_183); -x_210 = lean_ctor_get(x_209, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_209, 1); -lean_inc(x_211); -lean_dec(x_209); -lean_inc(x_169); -x_212 = l_Lean_Elab_Command_getEnv(x_169, x_211); -if (lean_obj_tag(x_212) == 0) -{ -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_212, 0); -lean_inc(x_213); -x_214 = lean_ctor_get(x_212, 1); -lean_inc(x_214); -lean_dec(x_212); -lean_inc(x_169); -x_215 = l___private_Init_Lean_Elab_Command_2__getState(x_169, x_214); -if (lean_obj_tag(x_215) == 0) -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_216 = lean_ctor_get(x_215, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_215, 1); -lean_inc(x_217); -lean_dec(x_215); -x_218 = lean_ctor_get(x_216, 3); +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 1); +lean_inc(x_190); +lean_dec(x_188); +x_191 = lean_ctor_get(x_189, 0); +lean_inc(x_191); +x_217 = l_Lean_Elab_Command_getCurrMacroScope(x_186, x_190); +x_218 = lean_ctor_get(x_217, 0); lean_inc(x_218); -lean_dec(x_216); -x_219 = lean_environment_main_module(x_213); -x_220 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_210); -lean_inc(x_1); -x_221 = l_Lean_Elab_getMacros(x_182, x_1, x_220, x_218); -lean_dec(x_182); -if (lean_obj_tag(x_221) == 0) +x_219 = lean_ctor_get(x_217, 1); +lean_inc(x_219); +lean_dec(x_217); +lean_inc(x_186); +x_220 = l_Lean_Elab_Command_getEnv(x_186, x_219); +if (lean_obj_tag(x_220) == 0) { -lean_object* x_222; lean_object* x_223; lean_object* x_224; -x_222 = lean_ctor_get(x_221, 0); +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); lean_inc(x_222); -x_223 = lean_ctor_get(x_221, 1); -lean_inc(x_223); -lean_dec(x_221); -lean_inc(x_169); -x_224 = l___private_Init_Lean_Elab_Command_2__getState(x_169, x_217); -if (lean_obj_tag(x_224) == 0) +lean_dec(x_220); +lean_inc(x_186); +x_223 = l___private_Init_Lean_Elab_Command_2__getState(x_186, x_222); +if (lean_obj_tag(x_223) == 0) { -lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; -x_225 = lean_ctor_get(x_224, 0); +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_224 = lean_ctor_get(x_223, 0); +lean_inc(x_224); +x_225 = lean_ctor_get(x_223, 1); lean_inc(x_225); -x_226 = lean_ctor_get(x_224, 1); +lean_dec(x_223); +x_226 = lean_ctor_get(x_224, 3); lean_inc(x_226); lean_dec(x_224); -x_227 = lean_ctor_get(x_225, 0); -lean_inc(x_227); -x_228 = lean_ctor_get(x_225, 1); -lean_inc(x_228); -x_229 = lean_ctor_get(x_225, 2); -lean_inc(x_229); -x_230 = lean_ctor_get(x_225, 4); +x_227 = lean_environment_main_module(x_221); +x_228 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_218); +lean_inc(x_1); +x_229 = l_Lean_Elab_getMacros(x_191, x_1, x_228, x_226); +if (lean_obj_tag(x_229) == 0) +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_229, 0); lean_inc(x_230); -if (lean_is_exclusive(x_225)) { - lean_ctor_release(x_225, 0); - lean_ctor_release(x_225, 1); - lean_ctor_release(x_225, 2); - lean_ctor_release(x_225, 3); - lean_ctor_release(x_225, 4); - x_231 = x_225; -} else { - lean_dec_ref(x_225); - x_231 = lean_box(0); -} -if (lean_is_scalar(x_231)) { - x_232 = lean_alloc_ctor(0, 5, 0); -} else { - x_232 = x_231; -} -lean_ctor_set(x_232, 0, x_227); -lean_ctor_set(x_232, 1, x_228); -lean_ctor_set(x_232, 2, x_229); -lean_ctor_set(x_232, 3, x_223); -lean_ctor_set(x_232, 4, x_230); -lean_inc(x_169); -x_233 = l___private_Init_Lean_Elab_Command_3__setState(x_232, x_169, x_226); -if (lean_obj_tag(x_233) == 0) +x_231 = lean_ctor_get(x_229, 1); +lean_inc(x_231); +lean_dec(x_229); +lean_inc(x_186); +x_232 = l___private_Init_Lean_Elab_Command_2__getState(x_186, x_225); +if (lean_obj_tag(x_232) == 0) { -lean_object* x_234; -lean_dec(x_184); -lean_dec(x_179); -lean_dec(x_169); -x_234 = lean_ctor_get(x_233, 1); +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; +x_233 = lean_ctor_get(x_232, 0); +lean_inc(x_233); +x_234 = lean_ctor_get(x_232, 1); lean_inc(x_234); -lean_dec(x_233); -x_185 = x_222; -x_186 = x_234; -goto block_191; -} -else -{ -lean_object* x_235; lean_object* x_236; -lean_dec(x_222); -lean_dec(x_163); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); +lean_dec(x_232); x_235 = lean_ctor_get(x_233, 0); lean_inc(x_235); x_236 = lean_ctor_get(x_233, 1); lean_inc(x_236); -lean_dec(x_233); -x_192 = x_235; -x_193 = x_236; -goto block_208; -} -} -else -{ -lean_object* x_237; lean_object* x_238; -lean_dec(x_223); -lean_dec(x_222); -lean_dec(x_163); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_237 = lean_ctor_get(x_224, 0); +x_237 = lean_ctor_get(x_233, 2); lean_inc(x_237); -x_238 = lean_ctor_get(x_224, 1); +x_238 = lean_ctor_get(x_233, 4); lean_inc(x_238); -lean_dec(x_224); -x_192 = x_237; -x_193 = x_238; -goto block_208; +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + lean_ctor_release(x_233, 2); + lean_ctor_release(x_233, 3); + lean_ctor_release(x_233, 4); + x_239 = x_233; +} else { + lean_dec_ref(x_233); + x_239 = lean_box(0); } +if (lean_is_scalar(x_239)) { + x_240 = lean_alloc_ctor(0, 5, 0); +} else { + x_240 = x_239; +} +lean_ctor_set(x_240, 0, x_235); +lean_ctor_set(x_240, 1, x_236); +lean_ctor_set(x_240, 2, x_237); +lean_ctor_set(x_240, 3, x_231); +lean_ctor_set(x_240, 4, x_238); +lean_inc(x_186); +x_241 = l___private_Init_Lean_Elab_Command_3__setState(x_240, x_186, x_234); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; lean_object* x_243; +x_242 = lean_ctor_get(x_241, 1); +lean_inc(x_242); +lean_dec(x_241); +x_243 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_243, 0, x_230); +x_192 = x_243; +x_193 = x_242; +goto block_216; } else { -lean_object* x_239; -lean_dec(x_163); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_239 = lean_ctor_get(x_221, 0); -lean_inc(x_239); -lean_dec(x_221); -if (lean_obj_tag(x_239) == 0) -{ -lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_240 = lean_ctor_get(x_239, 0); -lean_inc(x_240); -lean_dec(x_239); -x_241 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_241, 0, x_240); -x_242 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_242, 0, x_241); -lean_inc(x_169); -x_243 = l_Lean_Elab_Command_throwError___rarg(x_1, x_242, x_169, x_217); -x_244 = lean_ctor_get(x_243, 0); +lean_object* x_244; +lean_dec(x_230); +x_244 = lean_ctor_get(x_241, 0); lean_inc(x_244); -x_245 = lean_ctor_get(x_243, 1); +if (lean_obj_tag(x_244) == 0) +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; +lean_dec(x_191); +lean_dec(x_189); +lean_dec(x_186); +lean_dec(x_180); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_245 = lean_ctor_get(x_241, 1); lean_inc(x_245); -lean_dec(x_243); -x_192 = x_244; -x_193 = x_245; -goto block_208; +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_246 = x_241; +} else { + lean_dec_ref(x_241); + x_246 = lean_box(0); +} +if (lean_is_scalar(x_246)) { + x_247 = lean_alloc_ctor(1, 2, 0); +} else { + x_247 = x_246; +} +lean_ctor_set(x_247, 0, x_244); +lean_ctor_set(x_247, 1, x_245); +return x_247; } else { -lean_object* x_246; -x_246 = lean_box(1); -x_192 = x_246; -x_193 = x_217; -goto block_208; -} -} -} -else -{ -lean_object* x_247; lean_object* x_248; -lean_dec(x_213); -lean_dec(x_210); -lean_dec(x_182); -lean_dec(x_163); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_247 = lean_ctor_get(x_215, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_215, 1); +lean_object* x_248; lean_object* x_249; +x_248 = lean_ctor_get(x_241, 1); lean_inc(x_248); -lean_dec(x_215); -x_192 = x_247; +lean_dec(x_241); +x_249 = lean_box(0); +x_192 = x_249; x_193 = x_248; -goto block_208; +goto block_216; +} } } else { -lean_object* x_249; lean_object* x_250; -lean_dec(x_210); -lean_dec(x_182); -lean_dec(x_163); +lean_object* x_250; +lean_dec(x_231); +lean_dec(x_230); +x_250 = lean_ctor_get(x_232, 0); +lean_inc(x_250); +if (lean_obj_tag(x_250) == 0) +{ +lean_object* x_251; lean_object* x_252; lean_object* x_253; +lean_dec(x_191); +lean_dec(x_189); +lean_dec(x_186); +lean_dec(x_180); lean_dec(x_25); lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_249 = lean_ctor_get(x_212, 0); -lean_inc(x_249); -x_250 = lean_ctor_get(x_212, 1); -lean_inc(x_250); -lean_dec(x_212); -x_192 = x_249; -x_193 = x_250; -goto block_208; +lean_dec(x_1); +x_251 = lean_ctor_get(x_232, 1); +lean_inc(x_251); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_252 = x_232; +} else { + lean_dec_ref(x_232); + x_252 = lean_box(0); } -block_191: +if (lean_is_scalar(x_252)) { + x_253 = lean_alloc_ctor(1, 2, 0); +} else { + x_253 = x_252; +} +lean_ctor_set(x_253, 0, x_250); +lean_ctor_set(x_253, 1, x_251); +return x_253; +} +else { -lean_object* x_187; lean_object* x_188; lean_object* x_189; -lean_inc(x_185); -x_187 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_187, 0, x_1); -lean_ctor_set(x_187, 1, x_185); -x_188 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_12); -x_189 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_189, 0, x_7); -lean_ctor_set(x_189, 1, x_8); -lean_ctor_set(x_189, 2, x_9); -lean_ctor_set(x_189, 3, x_25); -lean_ctor_set(x_189, 4, x_11); -lean_ctor_set(x_189, 5, x_188); -lean_ctor_set(x_189, 6, x_163); -x_1 = x_185; -x_2 = x_189; -x_3 = x_186; -goto _start; +lean_object* x_254; lean_object* x_255; +x_254 = lean_ctor_get(x_232, 1); +lean_inc(x_254); +lean_dec(x_232); +x_255 = lean_box(0); +x_192 = x_255; +x_193 = x_254; +goto block_216; } -block_208: +} +} +else +{ +lean_object* x_256; +x_256 = lean_ctor_get(x_229, 0); +lean_inc(x_256); +lean_dec(x_229); +if (lean_obj_tag(x_256) == 0) +{ +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_257 = lean_ctor_get(x_256, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +lean_dec(x_256); +x_259 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_259, 0, x_258); +x_260 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_260, 0, x_259); +lean_inc(x_186); +x_261 = l_Lean_Elab_Command_throwError___rarg(x_257, x_260, x_186, x_225); +lean_dec(x_257); +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +if (lean_obj_tag(x_262) == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_191); +lean_dec(x_189); +lean_dec(x_186); +lean_dec(x_180); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_263 = lean_ctor_get(x_261, 1); +lean_inc(x_263); +if (lean_is_exclusive(x_261)) { + lean_ctor_release(x_261, 0); + lean_ctor_release(x_261, 1); + x_264 = x_261; +} else { + lean_dec_ref(x_261); + x_264 = lean_box(0); +} +if (lean_is_scalar(x_264)) { + x_265 = lean_alloc_ctor(1, 2, 0); +} else { + x_265 = x_264; +} +lean_ctor_set(x_265, 0, x_262); +lean_ctor_set(x_265, 1, x_263); +return x_265; +} +else +{ +lean_object* x_266; lean_object* x_267; +x_266 = lean_ctor_get(x_261, 1); +lean_inc(x_266); +lean_dec(x_261); +x_267 = lean_box(0); +x_192 = x_267; +x_193 = x_266; +goto block_216; +} +} +else +{ +lean_object* x_268; +x_268 = lean_box(0); +x_192 = x_268; +x_193 = x_225; +goto block_216; +} +} +} +else +{ +lean_object* x_269; +lean_dec(x_221); +lean_dec(x_218); +x_269 = lean_ctor_get(x_223, 0); +lean_inc(x_269); +if (lean_obj_tag(x_269) == 0) +{ +lean_object* x_270; lean_object* x_271; lean_object* x_272; +lean_dec(x_191); +lean_dec(x_189); +lean_dec(x_186); +lean_dec(x_180); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_270 = lean_ctor_get(x_223, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_271 = x_223; +} else { + lean_dec_ref(x_223); + x_271 = lean_box(0); +} +if (lean_is_scalar(x_271)) { + x_272 = lean_alloc_ctor(1, 2, 0); +} else { + x_272 = x_271; +} +lean_ctor_set(x_272, 0, x_269); +lean_ctor_set(x_272, 1, x_270); +return x_272; +} +else +{ +lean_object* x_273; lean_object* x_274; +x_273 = lean_ctor_get(x_223, 1); +lean_inc(x_273); +lean_dec(x_223); +x_274 = lean_box(0); +x_192 = x_274; +x_193 = x_273; +goto block_216; +} +} +} +else +{ +lean_object* x_275; +lean_dec(x_218); +x_275 = lean_ctor_get(x_220, 0); +lean_inc(x_275); +if (lean_obj_tag(x_275) == 0) +{ +lean_object* x_276; lean_object* x_277; lean_object* x_278; +lean_dec(x_191); +lean_dec(x_189); +lean_dec(x_186); +lean_dec(x_180); +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_276 = lean_ctor_get(x_220, 1); +lean_inc(x_276); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_277 = x_220; +} else { + lean_dec_ref(x_220); + x_277 = lean_box(0); +} +if (lean_is_scalar(x_277)) { + x_278 = lean_alloc_ctor(1, 2, 0); +} else { + x_278 = x_277; +} +lean_ctor_set(x_278, 0, x_275); +lean_ctor_set(x_278, 1, x_276); +return x_278; +} +else +{ +lean_object* x_279; lean_object* x_280; +x_279 = lean_ctor_get(x_220, 1); +lean_inc(x_279); +lean_dec(x_220); +x_280 = lean_box(0); +x_192 = x_280; +x_193 = x_279; +goto block_216; +} +} +block_216: { if (lean_obj_tag(x_192) == 0) { -lean_object* x_194; -lean_dec(x_179); -lean_dec(x_169); -lean_dec(x_1); -if (lean_is_scalar(x_184)) { - x_194 = lean_alloc_ctor(1, 2, 0); -} else { - x_194 = x_184; - lean_ctor_set_tag(x_194, 1); -} -lean_ctor_set(x_194, 0, x_192); -lean_ctor_set(x_194, 1, x_193); -return x_194; -} -else -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; -lean_dec(x_184); -x_195 = l_Lean_Name_toString___closed__1; -x_196 = l_Lean_Name_toStringWithSep___main(x_195, x_179); -x_197 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_197, 0, x_196); -x_198 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_198, 0, x_197); -x_199 = l_Lean_Elab_Term_elabTermAux___main___closed__3; -x_200 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_198); -x_201 = l_Lean_Elab_Term_elabTermAux___main___closed__6; -x_202 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -x_203 = l_Lean_Elab_Command_throwError___rarg(x_1, x_202, x_169, x_193); -lean_dec(x_1); -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_203, 1); -lean_inc(x_205); -if (lean_is_exclusive(x_203)) { - lean_ctor_release(x_203, 0); - lean_ctor_release(x_203, 1); - x_206 = x_203; -} else { - lean_dec_ref(x_203); - x_206 = lean_box(0); -} -if (lean_is_scalar(x_206)) { - x_207 = lean_alloc_ctor(1, 2, 0); -} else { - x_207 = x_206; -} -lean_ctor_set(x_207, 0, x_204); -lean_ctor_set(x_207, 1, x_205); -return x_207; -} -} -} -else -{ -lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -lean_dec(x_179); -lean_dec(x_169); -lean_dec(x_163); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_251 = lean_ctor_get(x_181, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_181, 1); -lean_inc(x_252); -if (lean_is_exclusive(x_181)) { - lean_ctor_release(x_181, 0); - lean_ctor_release(x_181, 1); - x_253 = x_181; -} else { - lean_dec_ref(x_181); - x_253 = lean_box(0); -} -if (lean_is_scalar(x_253)) { - x_254 = lean_alloc_ctor(1, 2, 0); -} else { - x_254 = x_253; -} -lean_ctor_set(x_254, 0, x_251); -lean_ctor_set(x_254, 1, x_252); -return x_254; -} -} -else -{ -lean_object* x_255; lean_object* x_256; -lean_dec(x_179); -lean_dec(x_163); -lean_dec(x_25); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_255 = lean_ctor_get(x_180, 0); -lean_inc(x_255); +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_dec(x_180); -x_256 = l___private_Init_Lean_Elab_Command_5__elabCommandUsing___main(x_172, x_1, x_255, x_169, x_173); -return x_256; +lean_dec(x_25); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_194 = l_Lean_Elab_Command_commandElabAttribute; +x_195 = lean_ctor_get(x_194, 1); +lean_inc(x_195); +x_196 = l_Lean_PersistentEnvExtension_getState___rarg(x_195, x_191); +lean_dec(x_191); +lean_dec(x_195); +x_197 = lean_ctor_get(x_196, 1); +lean_inc(x_197); +lean_dec(x_196); +lean_inc(x_1); +x_198 = l_Lean_Syntax_getKind(x_1); +x_199 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___main___spec__1(x_197, x_198); +if (lean_obj_tag(x_199) == 0) +{ +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_dec(x_189); +x_200 = l_Lean_Name_toString___closed__1; +x_201 = l_Lean_Name_toStringWithSep___main(x_200, x_198); +x_202 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_202, 0, x_201); +x_203 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_203, 0, x_202); +x_204 = l_Lean_Elab_Term_elabTermAux___main___closed__3; +x_205 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_205, 0, x_204); +lean_ctor_set(x_205, 1, x_203); +x_206 = l_Lean_Elab_Term_elabTermAux___main___closed__6; +x_207 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_207, 0, x_205); +lean_ctor_set(x_207, 1, x_206); +x_208 = l_Lean_Elab_Command_throwError___rarg(x_1, x_207, x_186, x_193); +lean_dec(x_1); +return x_208; +} +else +{ +lean_object* x_209; lean_object* x_210; +lean_dec(x_198); +x_209 = lean_ctor_get(x_199, 0); +lean_inc(x_209); +lean_dec(x_199); +x_210 = l___private_Init_Lean_Elab_Command_5__elabCommandUsing___main(x_189, x_1, x_209, x_186, x_193); +return x_210; } } else { -lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; -lean_dec(x_169); -lean_dec(x_163); +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +lean_dec(x_191); +lean_dec(x_189); +lean_dec(x_186); +x_211 = lean_ctor_get(x_192, 0); +lean_inc(x_211); +lean_dec(x_192); +lean_inc(x_211); +x_212 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_212, 0, x_1); +lean_ctor_set(x_212, 1, x_211); +x_213 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_213, 0, x_212); +lean_ctor_set(x_213, 1, x_12); +x_214 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_214, 0, x_7); +lean_ctor_set(x_214, 1, x_8); +lean_ctor_set(x_214, 2, x_9); +lean_ctor_set(x_214, 3, x_25); +lean_ctor_set(x_214, 4, x_11); +lean_ctor_set(x_214, 5, x_213); +lean_ctor_set(x_214, 6, x_180); +x_1 = x_211; +x_2 = x_214; +x_3 = x_193; +goto _start; +} +} +} +else +{ +lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +lean_dec(x_186); +lean_dec(x_180); lean_dec(x_25); lean_dec(x_12); lean_dec(x_11); @@ -6562,33 +6745,33 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_257 = lean_ctor_get(x_171, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_171, 1); -lean_inc(x_258); -if (lean_is_exclusive(x_171)) { - lean_ctor_release(x_171, 0); - lean_ctor_release(x_171, 1); - x_259 = x_171; +x_281 = lean_ctor_get(x_188, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_188, 1); +lean_inc(x_282); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_283 = x_188; } else { - lean_dec_ref(x_171); - x_259 = lean_box(0); + lean_dec_ref(x_188); + x_283 = lean_box(0); } -if (lean_is_scalar(x_259)) { - x_260 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_283)) { + x_284 = lean_alloc_ctor(1, 2, 0); } else { - x_260 = x_259; + x_284 = x_283; } -lean_ctor_set(x_260, 0, x_257); -lean_ctor_set(x_260, 1, x_258); -return x_260; +lean_ctor_set(x_284, 0, x_281); +lean_ctor_set(x_284, 1, x_282); +return x_284; } } } else { -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; -lean_dec(x_163); +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +lean_dec(x_180); lean_dec(x_25); lean_dec(x_12); lean_dec(x_11); @@ -6596,32 +6779,32 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_286 = lean_ctor_get(x_167, 0); -lean_inc(x_286); -x_287 = lean_ctor_get(x_167, 1); -lean_inc(x_287); -if (lean_is_exclusive(x_167)) { - lean_ctor_release(x_167, 0); - lean_ctor_release(x_167, 1); - x_288 = x_167; +x_310 = lean_ctor_get(x_184, 0); +lean_inc(x_310); +x_311 = lean_ctor_get(x_184, 1); +lean_inc(x_311); +if (lean_is_exclusive(x_184)) { + lean_ctor_release(x_184, 0); + lean_ctor_release(x_184, 1); + x_312 = x_184; } else { - lean_dec_ref(x_167); - x_288 = lean_box(0); + lean_dec_ref(x_184); + x_312 = lean_box(0); } -if (lean_is_scalar(x_288)) { - x_289 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_312)) { + x_313 = lean_alloc_ctor(1, 2, 0); } else { - x_289 = x_288; + x_313 = x_312; } -lean_ctor_set(x_289, 0, x_286); -lean_ctor_set(x_289, 1, x_287); -return x_289; +lean_ctor_set(x_313, 0, x_310); +lean_ctor_set(x_313, 1, x_311); +return x_313; } } } else { -uint8_t x_290; +uint8_t x_314; lean_dec(x_2); lean_dec(x_25); lean_dec(x_12); @@ -6630,645 +6813,400 @@ lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_290 = !lean_is_exclusive(x_26); -if (x_290 == 0) +x_314 = !lean_is_exclusive(x_26); +if (x_314 == 0) { return x_26; } else { -lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_291 = lean_ctor_get(x_26, 0); -x_292 = lean_ctor_get(x_26, 1); -lean_inc(x_292); -lean_inc(x_291); +lean_object* x_315; lean_object* x_316; lean_object* x_317; +x_315 = lean_ctor_get(x_26, 0); +x_316 = lean_ctor_get(x_26, 1); +lean_inc(x_316); +lean_inc(x_315); lean_dec(x_26); -x_293 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_293, 0, x_291); -lean_ctor_set(x_293, 1, x_292); -return x_293; +x_317 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_317, 0, x_315); +lean_ctor_set(x_317, 1, x_316); +return x_317; } } } else { -lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_dec(x_2); -x_294 = lean_unsigned_to_nat(1u); -x_295 = lean_nat_add(x_10, x_294); +x_318 = lean_unsigned_to_nat(1u); +x_319 = lean_nat_add(x_10, x_318); lean_dec(x_10); lean_inc(x_12); lean_inc(x_11); -lean_inc(x_295); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_296 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_296, 0, x_7); -lean_ctor_set(x_296, 1, x_8); -lean_ctor_set(x_296, 2, x_9); -lean_ctor_set(x_296, 3, x_295); -lean_ctor_set(x_296, 4, x_11); -lean_ctor_set(x_296, 5, x_12); -lean_ctor_set(x_296, 6, x_13); -lean_inc(x_296); -x_297 = l___private_Init_Lean_Elab_Command_2__getState(x_296, x_6); -if (lean_obj_tag(x_297) == 0) -{ -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; -x_298 = lean_ctor_get(x_297, 0); -lean_inc(x_298); -x_299 = lean_ctor_get(x_297, 1); -lean_inc(x_299); -lean_dec(x_297); -x_300 = lean_ctor_get(x_298, 0); -lean_inc(x_300); -x_301 = lean_ctor_get(x_298, 1); -lean_inc(x_301); -x_302 = lean_ctor_get(x_298, 2); -lean_inc(x_302); -x_303 = lean_ctor_get(x_298, 3); -lean_inc(x_303); -x_304 = lean_ctor_get(x_298, 4); -lean_inc(x_304); -if (lean_is_exclusive(x_298)) { - lean_ctor_release(x_298, 0); - lean_ctor_release(x_298, 1); - lean_ctor_release(x_298, 2); - lean_ctor_release(x_298, 3); - lean_ctor_release(x_298, 4); - x_305 = x_298; -} else { - lean_dec_ref(x_298); - x_305 = lean_box(0); -} -x_306 = lean_nat_add(x_303, x_294); -if (lean_is_scalar(x_305)) { - x_307 = lean_alloc_ctor(0, 5, 0); -} else { - x_307 = x_305; -} -lean_ctor_set(x_307, 0, x_300); -lean_ctor_set(x_307, 1, x_301); -lean_ctor_set(x_307, 2, x_302); -lean_ctor_set(x_307, 3, x_306); -lean_ctor_set(x_307, 4, x_304); -x_308 = l___private_Init_Lean_Elab_Command_3__setState(x_307, x_296, x_299); -if (lean_obj_tag(x_308) == 0) -{ -lean_object* x_309; lean_object* x_310; lean_object* x_311; -x_309 = lean_ctor_get(x_308, 1); -lean_inc(x_309); -lean_dec(x_308); -lean_inc(x_303); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_295); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -x_310 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_310, 0, x_7); -lean_ctor_set(x_310, 1, x_8); -lean_ctor_set(x_310, 2, x_9); -lean_ctor_set(x_310, 3, x_295); -lean_ctor_set(x_310, 4, x_11); -lean_ctor_set(x_310, 5, x_12); -lean_ctor_set(x_310, 6, x_303); -if (lean_obj_tag(x_1) == 1) -{ -lean_object* x_403; lean_object* x_404; lean_object* x_405; uint8_t x_406; -x_403 = lean_ctor_get(x_1, 0); -lean_inc(x_403); -x_404 = lean_ctor_get(x_1, 1); -lean_inc(x_404); -x_405 = l_Lean_nullKind; -x_406 = lean_name_eq(x_403, x_405); -lean_dec(x_403); -if (x_406 == 0) -{ -lean_object* x_407; -lean_dec(x_404); -lean_inc(x_310); -x_407 = l_Lean_Elab_Command_getOptions(x_310, x_309); -if (lean_obj_tag(x_407) == 0) -{ -lean_object* x_408; lean_object* x_409; lean_object* x_410; uint8_t x_411; -x_408 = lean_ctor_get(x_407, 0); -lean_inc(x_408); -x_409 = lean_ctor_get(x_407, 1); -lean_inc(x_409); -lean_dec(x_407); -x_410 = l_Lean_Elab_Command_elabCommand___main___closed__1; -x_411 = l_Lean_checkTraceOption(x_408, x_410); -lean_dec(x_408); -if (x_411 == 0) -{ -x_311 = x_409; -goto block_402; -} -else -{ -lean_object* x_412; lean_object* x_413; -lean_inc(x_1); -x_412 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_412, 0, x_1); -lean_inc(x_310); -x_413 = l_Lean_Elab_Command_logTrace(x_410, x_1, x_412, x_310, x_409); -if (lean_obj_tag(x_413) == 0) -{ -lean_object* x_414; -x_414 = lean_ctor_get(x_413, 1); -lean_inc(x_414); -lean_dec(x_413); -x_311 = x_414; -goto block_402; -} -else -{ -lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; -lean_dec(x_310); -lean_dec(x_303); -lean_dec(x_295); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_415 = lean_ctor_get(x_413, 0); -lean_inc(x_415); -x_416 = lean_ctor_get(x_413, 1); -lean_inc(x_416); -if (lean_is_exclusive(x_413)) { - lean_ctor_release(x_413, 0); - lean_ctor_release(x_413, 1); - x_417 = x_413; -} else { - lean_dec_ref(x_413); - x_417 = lean_box(0); -} -if (lean_is_scalar(x_417)) { - x_418 = lean_alloc_ctor(1, 2, 0); -} else { - x_418 = x_417; -} -lean_ctor_set(x_418, 0, x_415); -lean_ctor_set(x_418, 1, x_416); -return x_418; -} -} -} -else -{ -lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; -lean_dec(x_310); -lean_dec(x_303); -lean_dec(x_295); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_419 = lean_ctor_get(x_407, 0); -lean_inc(x_419); -x_420 = lean_ctor_get(x_407, 1); -lean_inc(x_420); -if (lean_is_exclusive(x_407)) { - lean_ctor_release(x_407, 0); - lean_ctor_release(x_407, 1); - x_421 = x_407; -} else { - lean_dec_ref(x_407); - x_421 = lean_box(0); -} -if (lean_is_scalar(x_421)) { - x_422 = lean_alloc_ctor(1, 2, 0); -} else { - x_422 = x_421; -} -lean_ctor_set(x_422, 0, x_419); -lean_ctor_set(x_422, 1, x_420); -return x_422; -} -} -else -{ -lean_object* x_423; lean_object* x_424; -lean_dec(x_303); -lean_dec(x_295); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_1); -x_423 = lean_unsigned_to_nat(0u); -x_424 = l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___main___spec__7(x_404, x_423, x_310, x_309); -lean_dec(x_404); -return x_424; -} -} -else -{ -lean_object* x_425; lean_object* x_426; -lean_dec(x_303); -lean_dec(x_295); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_425 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; -x_426 = l_Lean_Elab_Command_throwError___rarg(x_1, x_425, x_310, x_309); -lean_dec(x_1); -return x_426; -} -block_402: -{ -lean_object* x_312; -lean_inc(x_310); -x_312 = l___private_Init_Lean_Elab_Command_2__getState(x_310, x_311); -if (lean_obj_tag(x_312) == 0) -{ -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; -x_313 = lean_ctor_get(x_312, 0); -lean_inc(x_313); -x_314 = lean_ctor_get(x_312, 1); -lean_inc(x_314); -lean_dec(x_312); -x_315 = l_Lean_Elab_Command_commandElabAttribute; -x_316 = lean_ctor_get(x_315, 1); -lean_inc(x_316); -x_317 = lean_ctor_get(x_313, 0); -lean_inc(x_317); -x_318 = l_Lean_PersistentEnvExtension_getState___rarg(x_316, x_317); -lean_dec(x_317); -lean_dec(x_316); -x_319 = lean_ctor_get(x_318, 1); lean_inc(x_319); -lean_dec(x_318); -lean_inc(x_1); -x_320 = l_Lean_Syntax_getKind(x_1); -x_321 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___main___spec__1(x_319, x_320); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_320 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_320, 0, x_7); +lean_ctor_set(x_320, 1, x_8); +lean_ctor_set(x_320, 2, x_9); +lean_ctor_set(x_320, 3, x_319); +lean_ctor_set(x_320, 4, x_11); +lean_ctor_set(x_320, 5, x_12); +lean_ctor_set(x_320, 6, x_13); +lean_inc(x_320); +x_321 = l___private_Init_Lean_Elab_Command_2__getState(x_320, x_6); if (lean_obj_tag(x_321) == 0) { -lean_object* x_322; -lean_dec(x_313); -lean_inc(x_310); -x_322 = l_Lean_Elab_Command_getEnv(x_310, x_314); -if (lean_obj_tag(x_322) == 0) -{ -lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_333; lean_object* x_334; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; -x_323 = lean_ctor_get(x_322, 0); +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; +x_322 = lean_ctor_get(x_321, 0); +lean_inc(x_322); +x_323 = lean_ctor_get(x_321, 1); lean_inc(x_323); -x_324 = lean_ctor_get(x_322, 1); +lean_dec(x_321); +x_324 = lean_ctor_get(x_322, 0); lean_inc(x_324); +x_325 = lean_ctor_get(x_322, 1); +lean_inc(x_325); +x_326 = lean_ctor_get(x_322, 2); +lean_inc(x_326); +x_327 = lean_ctor_get(x_322, 3); +lean_inc(x_327); +x_328 = lean_ctor_get(x_322, 4); +lean_inc(x_328); if (lean_is_exclusive(x_322)) { lean_ctor_release(x_322, 0); lean_ctor_release(x_322, 1); - x_325 = x_322; + lean_ctor_release(x_322, 2); + lean_ctor_release(x_322, 3); + lean_ctor_release(x_322, 4); + x_329 = x_322; } else { lean_dec_ref(x_322); - x_325 = lean_box(0); + x_329 = lean_box(0); } -x_350 = l_Lean_Elab_Command_getCurrMacroScope(x_310, x_324); -x_351 = lean_ctor_get(x_350, 0); -lean_inc(x_351); -x_352 = lean_ctor_get(x_350, 1); -lean_inc(x_352); -lean_dec(x_350); -lean_inc(x_310); -x_353 = l_Lean_Elab_Command_getEnv(x_310, x_352); -if (lean_obj_tag(x_353) == 0) +x_330 = lean_nat_add(x_327, x_318); +if (lean_is_scalar(x_329)) { + x_331 = lean_alloc_ctor(0, 5, 0); +} else { + x_331 = x_329; +} +lean_ctor_set(x_331, 0, x_324); +lean_ctor_set(x_331, 1, x_325); +lean_ctor_set(x_331, 2, x_326); +lean_ctor_set(x_331, 3, x_330); +lean_ctor_set(x_331, 4, x_328); +x_332 = l___private_Init_Lean_Elab_Command_3__setState(x_331, x_320, x_323); +if (lean_obj_tag(x_332) == 0) { -lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_354 = lean_ctor_get(x_353, 0); -lean_inc(x_354); -x_355 = lean_ctor_get(x_353, 1); -lean_inc(x_355); -lean_dec(x_353); -lean_inc(x_310); -x_356 = l___private_Init_Lean_Elab_Command_2__getState(x_310, x_355); -if (lean_obj_tag(x_356) == 0) +lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_333 = lean_ctor_get(x_332, 1); +lean_inc(x_333); +lean_dec(x_332); +lean_inc(x_327); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_319); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_334 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_334, 0, x_7); +lean_ctor_set(x_334, 1, x_8); +lean_ctor_set(x_334, 2, x_9); +lean_ctor_set(x_334, 3, x_319); +lean_ctor_set(x_334, 4, x_11); +lean_ctor_set(x_334, 5, x_12); +lean_ctor_set(x_334, 6, x_327); +if (lean_obj_tag(x_1) == 1) { -lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; -x_357 = lean_ctor_get(x_356, 0); -lean_inc(x_357); -x_358 = lean_ctor_get(x_356, 1); -lean_inc(x_358); -lean_dec(x_356); -x_359 = lean_ctor_get(x_357, 3); -lean_inc(x_359); -lean_dec(x_357); -x_360 = lean_environment_main_module(x_354); -x_361 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_361, 0, x_360); -lean_ctor_set(x_361, 1, x_351); +lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; +x_434 = lean_ctor_get(x_1, 0); +lean_inc(x_434); +x_435 = lean_ctor_get(x_1, 1); +lean_inc(x_435); +x_436 = l_Lean_nullKind; +x_437 = lean_name_eq(x_434, x_436); +lean_dec(x_434); +if (x_437 == 0) +{ +lean_object* x_438; +lean_dec(x_435); +lean_inc(x_334); +x_438 = l_Lean_Elab_Command_getOptions(x_334, x_333); +if (lean_obj_tag(x_438) == 0) +{ +lean_object* x_439; lean_object* x_440; lean_object* x_441; uint8_t x_442; +x_439 = lean_ctor_get(x_438, 0); +lean_inc(x_439); +x_440 = lean_ctor_get(x_438, 1); +lean_inc(x_440); +lean_dec(x_438); +x_441 = l_Lean_Elab_Command_elabCommand___main___closed__1; +x_442 = l_Lean_checkTraceOption(x_439, x_441); +lean_dec(x_439); +if (x_442 == 0) +{ +x_335 = x_440; +goto block_433; +} +else +{ +lean_object* x_443; lean_object* x_444; lean_inc(x_1); -x_362 = l_Lean_Elab_getMacros(x_323, x_1, x_361, x_359); -lean_dec(x_323); -if (lean_obj_tag(x_362) == 0) +x_443 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_443, 0, x_1); +lean_inc(x_334); +x_444 = l_Lean_Elab_Command_logTrace(x_441, x_1, x_443, x_334, x_440); +if (lean_obj_tag(x_444) == 0) { -lean_object* x_363; lean_object* x_364; lean_object* x_365; -x_363 = lean_ctor_get(x_362, 0); -lean_inc(x_363); -x_364 = lean_ctor_get(x_362, 1); -lean_inc(x_364); -lean_dec(x_362); -lean_inc(x_310); -x_365 = l___private_Init_Lean_Elab_Command_2__getState(x_310, x_358); -if (lean_obj_tag(x_365) == 0) +lean_object* x_445; +x_445 = lean_ctor_get(x_444, 1); +lean_inc(x_445); +lean_dec(x_444); +x_335 = x_445; +goto block_433; +} +else { -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_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; +lean_dec(x_334); +lean_dec(x_327); +lean_dec(x_319); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_446 = lean_ctor_get(x_444, 0); +lean_inc(x_446); +x_447 = lean_ctor_get(x_444, 1); +lean_inc(x_447); +if (lean_is_exclusive(x_444)) { + lean_ctor_release(x_444, 0); + lean_ctor_release(x_444, 1); + x_448 = x_444; +} else { + lean_dec_ref(x_444); + x_448 = lean_box(0); +} +if (lean_is_scalar(x_448)) { + x_449 = lean_alloc_ctor(1, 2, 0); +} else { + x_449 = x_448; +} +lean_ctor_set(x_449, 0, x_446); +lean_ctor_set(x_449, 1, x_447); +return x_449; +} +} +} +else +{ +lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; +lean_dec(x_334); +lean_dec(x_327); +lean_dec(x_319); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_450 = lean_ctor_get(x_438, 0); +lean_inc(x_450); +x_451 = lean_ctor_get(x_438, 1); +lean_inc(x_451); +if (lean_is_exclusive(x_438)) { + lean_ctor_release(x_438, 0); + lean_ctor_release(x_438, 1); + x_452 = x_438; +} else { + lean_dec_ref(x_438); + x_452 = lean_box(0); +} +if (lean_is_scalar(x_452)) { + x_453 = lean_alloc_ctor(1, 2, 0); +} else { + x_453 = x_452; +} +lean_ctor_set(x_453, 0, x_450); +lean_ctor_set(x_453, 1, x_451); +return x_453; +} +} +else +{ +lean_object* x_454; lean_object* x_455; +lean_dec(x_327); +lean_dec(x_319); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_454 = lean_unsigned_to_nat(0u); +x_455 = l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___main___spec__7(x_435, x_454, x_334, x_333); +lean_dec(x_435); +return x_455; +} +} +else +{ +lean_object* x_456; lean_object* x_457; +lean_dec(x_327); +lean_dec(x_319); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_456 = l_Lean_Elab_Tactic_evalTactic___main___closed__3; +x_457 = l_Lean_Elab_Command_throwError___rarg(x_1, x_456, x_334, x_333); +lean_dec(x_1); +return x_457; +} +block_433: +{ +lean_object* x_336; +lean_inc(x_334); +x_336 = l___private_Init_Lean_Elab_Command_2__getState(x_334, x_335); +if (lean_obj_tag(x_336) == 0) +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_337 = lean_ctor_get(x_336, 0); +lean_inc(x_337); +x_338 = lean_ctor_get(x_336, 1); +lean_inc(x_338); +lean_dec(x_336); +x_339 = lean_ctor_get(x_337, 0); +lean_inc(x_339); +x_365 = l_Lean_Elab_Command_getCurrMacroScope(x_334, x_338); x_366 = lean_ctor_get(x_365, 0); lean_inc(x_366); x_367 = lean_ctor_get(x_365, 1); lean_inc(x_367); lean_dec(x_365); -x_368 = lean_ctor_get(x_366, 0); -lean_inc(x_368); -x_369 = lean_ctor_get(x_366, 1); +lean_inc(x_334); +x_368 = l_Lean_Elab_Command_getEnv(x_334, x_367); +if (lean_obj_tag(x_368) == 0) +{ +lean_object* x_369; lean_object* x_370; lean_object* x_371; +x_369 = lean_ctor_get(x_368, 0); lean_inc(x_369); -x_370 = lean_ctor_get(x_366, 2); +x_370 = lean_ctor_get(x_368, 1); lean_inc(x_370); -x_371 = lean_ctor_get(x_366, 4); -lean_inc(x_371); -if (lean_is_exclusive(x_366)) { - lean_ctor_release(x_366, 0); - lean_ctor_release(x_366, 1); - lean_ctor_release(x_366, 2); - lean_ctor_release(x_366, 3); - lean_ctor_release(x_366, 4); - x_372 = x_366; -} else { - lean_dec_ref(x_366); - x_372 = lean_box(0); -} -if (lean_is_scalar(x_372)) { - x_373 = lean_alloc_ctor(0, 5, 0); -} else { - x_373 = x_372; -} -lean_ctor_set(x_373, 0, x_368); -lean_ctor_set(x_373, 1, x_369); -lean_ctor_set(x_373, 2, x_370); -lean_ctor_set(x_373, 3, x_364); -lean_ctor_set(x_373, 4, x_371); -lean_inc(x_310); -x_374 = l___private_Init_Lean_Elab_Command_3__setState(x_373, x_310, x_367); -if (lean_obj_tag(x_374) == 0) +lean_dec(x_368); +lean_inc(x_334); +x_371 = l___private_Init_Lean_Elab_Command_2__getState(x_334, x_370); +if (lean_obj_tag(x_371) == 0) { -lean_object* x_375; -lean_dec(x_325); -lean_dec(x_320); -lean_dec(x_310); -x_375 = lean_ctor_get(x_374, 1); -lean_inc(x_375); -lean_dec(x_374); -x_326 = x_363; -x_327 = x_375; -goto block_332; -} -else +lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; +x_372 = lean_ctor_get(x_371, 0); +lean_inc(x_372); +x_373 = lean_ctor_get(x_371, 1); +lean_inc(x_373); +lean_dec(x_371); +x_374 = lean_ctor_get(x_372, 3); +lean_inc(x_374); +lean_dec(x_372); +x_375 = lean_environment_main_module(x_369); +x_376 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_376, 0, x_375); +lean_ctor_set(x_376, 1, x_366); +lean_inc(x_1); +x_377 = l_Lean_Elab_getMacros(x_339, x_1, x_376, x_374); +if (lean_obj_tag(x_377) == 0) { -lean_object* x_376; lean_object* x_377; -lean_dec(x_363); -lean_dec(x_303); -lean_dec(x_295); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_376 = lean_ctor_get(x_374, 0); -lean_inc(x_376); -x_377 = lean_ctor_get(x_374, 1); -lean_inc(x_377); -lean_dec(x_374); -x_333 = x_376; -x_334 = x_377; -goto block_349; -} -} -else -{ -lean_object* x_378; lean_object* x_379; -lean_dec(x_364); -lean_dec(x_363); -lean_dec(x_303); -lean_dec(x_295); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_378 = lean_ctor_get(x_365, 0); +lean_object* x_378; lean_object* x_379; lean_object* x_380; +x_378 = lean_ctor_get(x_377, 0); lean_inc(x_378); -x_379 = lean_ctor_get(x_365, 1); +x_379 = lean_ctor_get(x_377, 1); lean_inc(x_379); -lean_dec(x_365); -x_333 = x_378; -x_334 = x_379; -goto block_349; -} -} -else -{ -lean_object* x_380; -lean_dec(x_303); -lean_dec(x_295); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_380 = lean_ctor_get(x_362, 0); -lean_inc(x_380); -lean_dec(x_362); +lean_dec(x_377); +lean_inc(x_334); +x_380 = l___private_Init_Lean_Elab_Command_2__getState(x_334, x_373); if (lean_obj_tag(x_380) == 0) { -lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; +lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; x_381 = lean_ctor_get(x_380, 0); lean_inc(x_381); +x_382 = lean_ctor_get(x_380, 1); +lean_inc(x_382); lean_dec(x_380); -x_382 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_382, 0, x_381); -x_383 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_383, 0, x_382); -lean_inc(x_310); -x_384 = l_Lean_Elab_Command_throwError___rarg(x_1, x_383, x_310, x_358); -x_385 = lean_ctor_get(x_384, 0); +x_383 = lean_ctor_get(x_381, 0); +lean_inc(x_383); +x_384 = lean_ctor_get(x_381, 1); +lean_inc(x_384); +x_385 = lean_ctor_get(x_381, 2); lean_inc(x_385); -x_386 = lean_ctor_get(x_384, 1); +x_386 = lean_ctor_get(x_381, 4); lean_inc(x_386); -lean_dec(x_384); -x_333 = x_385; -x_334 = x_386; -goto block_349; +if (lean_is_exclusive(x_381)) { + lean_ctor_release(x_381, 0); + lean_ctor_release(x_381, 1); + lean_ctor_release(x_381, 2); + lean_ctor_release(x_381, 3); + lean_ctor_release(x_381, 4); + x_387 = x_381; +} else { + lean_dec_ref(x_381); + x_387 = lean_box(0); } -else -{ -lean_object* x_387; -x_387 = lean_box(1); -x_333 = x_387; -x_334 = x_358; -goto block_349; +if (lean_is_scalar(x_387)) { + x_388 = lean_alloc_ctor(0, 5, 0); +} else { + x_388 = x_387; } -} -} -else -{ -lean_object* x_388; lean_object* x_389; -lean_dec(x_354); -lean_dec(x_351); -lean_dec(x_323); -lean_dec(x_303); -lean_dec(x_295); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_388 = lean_ctor_get(x_356, 0); -lean_inc(x_388); -x_389 = lean_ctor_get(x_356, 1); -lean_inc(x_389); -lean_dec(x_356); -x_333 = x_388; -x_334 = x_389; -goto block_349; -} -} -else +lean_ctor_set(x_388, 0, x_383); +lean_ctor_set(x_388, 1, x_384); +lean_ctor_set(x_388, 2, x_385); +lean_ctor_set(x_388, 3, x_379); +lean_ctor_set(x_388, 4, x_386); +lean_inc(x_334); +x_389 = l___private_Init_Lean_Elab_Command_3__setState(x_388, x_334, x_382); +if (lean_obj_tag(x_389) == 0) { lean_object* x_390; lean_object* x_391; -lean_dec(x_351); -lean_dec(x_323); -lean_dec(x_303); -lean_dec(x_295); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_390 = lean_ctor_get(x_353, 0); +x_390 = lean_ctor_get(x_389, 1); lean_inc(x_390); -x_391 = lean_ctor_get(x_353, 1); -lean_inc(x_391); -lean_dec(x_353); -x_333 = x_390; -x_334 = x_391; -goto block_349; -} -block_332: -{ -lean_object* x_328; lean_object* x_329; lean_object* x_330; -lean_inc(x_326); -x_328 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_328, 0, x_1); -lean_ctor_set(x_328, 1, x_326); -x_329 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_329, 0, x_328); -lean_ctor_set(x_329, 1, x_12); -x_330 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_330, 0, x_7); -lean_ctor_set(x_330, 1, x_8); -lean_ctor_set(x_330, 2, x_9); -lean_ctor_set(x_330, 3, x_295); -lean_ctor_set(x_330, 4, x_11); -lean_ctor_set(x_330, 5, x_329); -lean_ctor_set(x_330, 6, x_303); -x_1 = x_326; -x_2 = x_330; -x_3 = x_327; -goto _start; -} -block_349: -{ -if (lean_obj_tag(x_333) == 0) -{ -lean_object* x_335; -lean_dec(x_320); -lean_dec(x_310); -lean_dec(x_1); -if (lean_is_scalar(x_325)) { - x_335 = lean_alloc_ctor(1, 2, 0); -} else { - x_335 = x_325; - lean_ctor_set_tag(x_335, 1); -} -lean_ctor_set(x_335, 0, x_333); -lean_ctor_set(x_335, 1, x_334); -return x_335; +lean_dec(x_389); +x_391 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_391, 0, x_378); +x_340 = x_391; +x_341 = x_390; +goto block_364; } else { -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_dec(x_325); -x_336 = l_Lean_Name_toString___closed__1; -x_337 = l_Lean_Name_toStringWithSep___main(x_336, x_320); -x_338 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_338, 0, x_337); -x_339 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_339, 0, x_338); -x_340 = l_Lean_Elab_Term_elabTermAux___main___closed__3; -x_341 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_341, 0, x_340); -lean_ctor_set(x_341, 1, x_339); -x_342 = l_Lean_Elab_Term_elabTermAux___main___closed__6; -x_343 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_343, 0, x_341); -lean_ctor_set(x_343, 1, x_342); -x_344 = l_Lean_Elab_Command_throwError___rarg(x_1, x_343, x_310, x_334); -lean_dec(x_1); -x_345 = lean_ctor_get(x_344, 0); -lean_inc(x_345); -x_346 = lean_ctor_get(x_344, 1); -lean_inc(x_346); -if (lean_is_exclusive(x_344)) { - lean_ctor_release(x_344, 0); - lean_ctor_release(x_344, 1); - x_347 = x_344; -} else { - lean_dec_ref(x_344); - x_347 = lean_box(0); -} -if (lean_is_scalar(x_347)) { - x_348 = lean_alloc_ctor(1, 2, 0); -} else { - x_348 = x_347; -} -lean_ctor_set(x_348, 0, x_345); -lean_ctor_set(x_348, 1, x_346); -return x_348; -} -} -} -else +lean_object* x_392; +lean_dec(x_378); +x_392 = lean_ctor_get(x_389, 0); +lean_inc(x_392); +if (lean_obj_tag(x_392) == 0) { -lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; -lean_dec(x_320); -lean_dec(x_310); -lean_dec(x_303); -lean_dec(x_295); +lean_object* x_393; lean_object* x_394; lean_object* x_395; +lean_dec(x_339); +lean_dec(x_337); +lean_dec(x_334); +lean_dec(x_327); +lean_dec(x_319); lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_392 = lean_ctor_get(x_322, 0); -lean_inc(x_392); -x_393 = lean_ctor_get(x_322, 1); +x_393 = lean_ctor_get(x_389, 1); lean_inc(x_393); -if (lean_is_exclusive(x_322)) { - lean_ctor_release(x_322, 0); - lean_ctor_release(x_322, 1); - x_394 = x_322; +if (lean_is_exclusive(x_389)) { + lean_ctor_release(x_389, 0); + lean_ctor_release(x_389, 1); + x_394 = x_389; } else { - lean_dec_ref(x_322); + lean_dec_ref(x_389); x_394 = lean_box(0); } if (lean_is_scalar(x_394)) { @@ -7280,47 +7218,48 @@ lean_ctor_set(x_395, 0, x_392); lean_ctor_set(x_395, 1, x_393); return x_395; } -} else { lean_object* x_396; lean_object* x_397; -lean_dec(x_320); -lean_dec(x_303); -lean_dec(x_295); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_396 = lean_ctor_get(x_321, 0); +x_396 = lean_ctor_get(x_389, 1); lean_inc(x_396); -lean_dec(x_321); -x_397 = l___private_Init_Lean_Elab_Command_5__elabCommandUsing___main(x_313, x_1, x_396, x_310, x_314); -return x_397; +lean_dec(x_389); +x_397 = lean_box(0); +x_340 = x_397; +x_341 = x_396; +goto block_364; +} } } else { -lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; -lean_dec(x_310); -lean_dec(x_303); -lean_dec(x_295); +lean_object* x_398; +lean_dec(x_379); +lean_dec(x_378); +x_398 = lean_ctor_get(x_380, 0); +lean_inc(x_398); +if (lean_obj_tag(x_398) == 0) +{ +lean_object* x_399; lean_object* x_400; lean_object* x_401; +lean_dec(x_339); +lean_dec(x_337); +lean_dec(x_334); +lean_dec(x_327); +lean_dec(x_319); lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_398 = lean_ctor_get(x_312, 0); -lean_inc(x_398); -x_399 = lean_ctor_get(x_312, 1); +x_399 = lean_ctor_get(x_380, 1); lean_inc(x_399); -if (lean_is_exclusive(x_312)) { - lean_ctor_release(x_312, 0); - lean_ctor_release(x_312, 1); - x_400 = x_312; +if (lean_is_exclusive(x_380)) { + lean_ctor_release(x_380, 0); + lean_ctor_release(x_380, 1); + x_400 = x_380; } else { - lean_dec_ref(x_312); + lean_dec_ref(x_380); x_400 = lean_box(0); } if (lean_is_scalar(x_400)) { @@ -7332,78 +7271,394 @@ lean_ctor_set(x_401, 0, x_398); lean_ctor_set(x_401, 1, x_399); return x_401; } +else +{ +lean_object* x_402; lean_object* x_403; +x_402 = lean_ctor_get(x_380, 1); +lean_inc(x_402); +lean_dec(x_380); +x_403 = lean_box(0); +x_340 = x_403; +x_341 = x_402; +goto block_364; +} } } else { -lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; -lean_dec(x_303); -lean_dec(x_295); +lean_object* x_404; +x_404 = lean_ctor_get(x_377, 0); +lean_inc(x_404); +lean_dec(x_377); +if (lean_obj_tag(x_404) == 0) +{ +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; +x_405 = lean_ctor_get(x_404, 0); +lean_inc(x_405); +x_406 = lean_ctor_get(x_404, 1); +lean_inc(x_406); +lean_dec(x_404); +x_407 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_407, 0, x_406); +x_408 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_408, 0, x_407); +lean_inc(x_334); +x_409 = l_Lean_Elab_Command_throwError___rarg(x_405, x_408, x_334, x_373); +lean_dec(x_405); +x_410 = lean_ctor_get(x_409, 0); +lean_inc(x_410); +if (lean_obj_tag(x_410) == 0) +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; +lean_dec(x_339); +lean_dec(x_337); +lean_dec(x_334); +lean_dec(x_327); +lean_dec(x_319); lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_427 = lean_ctor_get(x_308, 0); +x_411 = lean_ctor_get(x_409, 1); +lean_inc(x_411); +if (lean_is_exclusive(x_409)) { + lean_ctor_release(x_409, 0); + lean_ctor_release(x_409, 1); + x_412 = x_409; +} else { + lean_dec_ref(x_409); + x_412 = lean_box(0); +} +if (lean_is_scalar(x_412)) { + x_413 = lean_alloc_ctor(1, 2, 0); +} else { + x_413 = x_412; +} +lean_ctor_set(x_413, 0, x_410); +lean_ctor_set(x_413, 1, x_411); +return x_413; +} +else +{ +lean_object* x_414; lean_object* x_415; +x_414 = lean_ctor_get(x_409, 1); +lean_inc(x_414); +lean_dec(x_409); +x_415 = lean_box(0); +x_340 = x_415; +x_341 = x_414; +goto block_364; +} +} +else +{ +lean_object* x_416; +x_416 = lean_box(0); +x_340 = x_416; +x_341 = x_373; +goto block_364; +} +} +} +else +{ +lean_object* x_417; +lean_dec(x_369); +lean_dec(x_366); +x_417 = lean_ctor_get(x_371, 0); +lean_inc(x_417); +if (lean_obj_tag(x_417) == 0) +{ +lean_object* x_418; lean_object* x_419; lean_object* x_420; +lean_dec(x_339); +lean_dec(x_337); +lean_dec(x_334); +lean_dec(x_327); +lean_dec(x_319); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_418 = lean_ctor_get(x_371, 1); +lean_inc(x_418); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + x_419 = x_371; +} else { + lean_dec_ref(x_371); + x_419 = lean_box(0); +} +if (lean_is_scalar(x_419)) { + x_420 = lean_alloc_ctor(1, 2, 0); +} else { + x_420 = x_419; +} +lean_ctor_set(x_420, 0, x_417); +lean_ctor_set(x_420, 1, x_418); +return x_420; +} +else +{ +lean_object* x_421; lean_object* x_422; +x_421 = lean_ctor_get(x_371, 1); +lean_inc(x_421); +lean_dec(x_371); +x_422 = lean_box(0); +x_340 = x_422; +x_341 = x_421; +goto block_364; +} +} +} +else +{ +lean_object* x_423; +lean_dec(x_366); +x_423 = lean_ctor_get(x_368, 0); +lean_inc(x_423); +if (lean_obj_tag(x_423) == 0) +{ +lean_object* x_424; lean_object* x_425; lean_object* x_426; +lean_dec(x_339); +lean_dec(x_337); +lean_dec(x_334); +lean_dec(x_327); +lean_dec(x_319); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_424 = lean_ctor_get(x_368, 1); +lean_inc(x_424); +if (lean_is_exclusive(x_368)) { + lean_ctor_release(x_368, 0); + lean_ctor_release(x_368, 1); + x_425 = x_368; +} else { + lean_dec_ref(x_368); + x_425 = lean_box(0); +} +if (lean_is_scalar(x_425)) { + x_426 = lean_alloc_ctor(1, 2, 0); +} else { + x_426 = x_425; +} +lean_ctor_set(x_426, 0, x_423); +lean_ctor_set(x_426, 1, x_424); +return x_426; +} +else +{ +lean_object* x_427; lean_object* x_428; +x_427 = lean_ctor_get(x_368, 1); lean_inc(x_427); -x_428 = lean_ctor_get(x_308, 1); -lean_inc(x_428); -if (lean_is_exclusive(x_308)) { - lean_ctor_release(x_308, 0); - lean_ctor_release(x_308, 1); - x_429 = x_308; -} else { - lean_dec_ref(x_308); - x_429 = lean_box(0); +lean_dec(x_368); +x_428 = lean_box(0); +x_340 = x_428; +x_341 = x_427; +goto block_364; } -if (lean_is_scalar(x_429)) { - x_430 = lean_alloc_ctor(1, 2, 0); -} else { - x_430 = x_429; } -lean_ctor_set(x_430, 0, x_427); -lean_ctor_set(x_430, 1, x_428); -return x_430; +block_364: +{ +if (lean_obj_tag(x_340) == 0) +{ +lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; +lean_dec(x_327); +lean_dec(x_319); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_342 = l_Lean_Elab_Command_commandElabAttribute; +x_343 = lean_ctor_get(x_342, 1); +lean_inc(x_343); +x_344 = l_Lean_PersistentEnvExtension_getState___rarg(x_343, x_339); +lean_dec(x_339); +lean_dec(x_343); +x_345 = lean_ctor_get(x_344, 1); +lean_inc(x_345); +lean_dec(x_344); +lean_inc(x_1); +x_346 = l_Lean_Syntax_getKind(x_1); +x_347 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___main___spec__1(x_345, x_346); +if (lean_obj_tag(x_347) == 0) +{ +lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; +lean_dec(x_337); +x_348 = l_Lean_Name_toString___closed__1; +x_349 = l_Lean_Name_toStringWithSep___main(x_348, x_346); +x_350 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_350, 0, x_349); +x_351 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_351, 0, x_350); +x_352 = l_Lean_Elab_Term_elabTermAux___main___closed__3; +x_353 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_353, 0, x_352); +lean_ctor_set(x_353, 1, x_351); +x_354 = l_Lean_Elab_Term_elabTermAux___main___closed__6; +x_355 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_355, 0, x_353); +lean_ctor_set(x_355, 1, x_354); +x_356 = l_Lean_Elab_Command_throwError___rarg(x_1, x_355, x_334, x_341); +lean_dec(x_1); +return x_356; +} +else +{ +lean_object* x_357; lean_object* x_358; +lean_dec(x_346); +x_357 = lean_ctor_get(x_347, 0); +lean_inc(x_357); +lean_dec(x_347); +x_358 = l___private_Init_Lean_Elab_Command_5__elabCommandUsing___main(x_337, x_1, x_357, x_334, x_341); +return x_358; } } else { -lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; -lean_dec(x_296); -lean_dec(x_295); +lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; +lean_dec(x_339); +lean_dec(x_337); +lean_dec(x_334); +x_359 = lean_ctor_get(x_340, 0); +lean_inc(x_359); +lean_dec(x_340); +lean_inc(x_359); +x_360 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_360, 0, x_1); +lean_ctor_set(x_360, 1, x_359); +x_361 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_361, 0, x_360); +lean_ctor_set(x_361, 1, x_12); +x_362 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_362, 0, x_7); +lean_ctor_set(x_362, 1, x_8); +lean_ctor_set(x_362, 2, x_9); +lean_ctor_set(x_362, 3, x_319); +lean_ctor_set(x_362, 4, x_11); +lean_ctor_set(x_362, 5, x_361); +lean_ctor_set(x_362, 6, x_327); +x_1 = x_359; +x_2 = x_362; +x_3 = x_341; +goto _start; +} +} +} +else +{ +lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; +lean_dec(x_334); +lean_dec(x_327); +lean_dec(x_319); lean_dec(x_12); lean_dec(x_11); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); lean_dec(x_1); -x_431 = lean_ctor_get(x_297, 0); -lean_inc(x_431); -x_432 = lean_ctor_get(x_297, 1); -lean_inc(x_432); -if (lean_is_exclusive(x_297)) { - lean_ctor_release(x_297, 0); - lean_ctor_release(x_297, 1); - x_433 = x_297; +x_429 = lean_ctor_get(x_336, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_336, 1); +lean_inc(x_430); +if (lean_is_exclusive(x_336)) { + lean_ctor_release(x_336, 0); + lean_ctor_release(x_336, 1); + x_431 = x_336; } else { - lean_dec_ref(x_297); - x_433 = lean_box(0); + lean_dec_ref(x_336); + x_431 = lean_box(0); } -if (lean_is_scalar(x_433)) { - x_434 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_431)) { + x_432 = lean_alloc_ctor(1, 2, 0); } else { - x_434 = x_433; + x_432 = x_431; } -lean_ctor_set(x_434, 0, x_431); -lean_ctor_set(x_434, 1, x_432); -return x_434; +lean_ctor_set(x_432, 0, x_429); +lean_ctor_set(x_432, 1, x_430); +return x_432; } } } else { -lean_object* x_435; lean_object* x_436; uint8_t x_437; +lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; +lean_dec(x_327); +lean_dec(x_319); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_458 = lean_ctor_get(x_332, 0); +lean_inc(x_458); +x_459 = lean_ctor_get(x_332, 1); +lean_inc(x_459); +if (lean_is_exclusive(x_332)) { + lean_ctor_release(x_332, 0); + lean_ctor_release(x_332, 1); + x_460 = x_332; +} else { + lean_dec_ref(x_332); + x_460 = lean_box(0); +} +if (lean_is_scalar(x_460)) { + x_461 = lean_alloc_ctor(1, 2, 0); +} else { + x_461 = x_460; +} +lean_ctor_set(x_461, 0, x_458); +lean_ctor_set(x_461, 1, x_459); +return x_461; +} +} +else +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; +lean_dec(x_320); +lean_dec(x_319); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_1); +x_462 = lean_ctor_get(x_321, 0); +lean_inc(x_462); +x_463 = lean_ctor_get(x_321, 1); +lean_inc(x_463); +if (lean_is_exclusive(x_321)) { + lean_ctor_release(x_321, 0); + lean_ctor_release(x_321, 1); + x_464 = x_321; +} else { + lean_dec_ref(x_321); + x_464 = lean_box(0); +} +if (lean_is_scalar(x_464)) { + x_465 = lean_alloc_ctor(1, 2, 0); +} else { + x_465 = x_464; +} +lean_ctor_set(x_465, 0, x_462); +lean_ctor_set(x_465, 1, x_463); +return x_465; +} +} +} +else +{ +lean_object* x_466; lean_object* x_467; uint8_t x_468; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -7411,51 +7666,51 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_435 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; -x_436 = l_Lean_Elab_Command_throwError___rarg(x_1, x_435, x_2, x_6); +x_466 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; +x_467 = l_Lean_Elab_Command_throwError___rarg(x_1, x_466, x_2, x_6); lean_dec(x_1); -x_437 = !lean_is_exclusive(x_436); -if (x_437 == 0) +x_468 = !lean_is_exclusive(x_467); +if (x_468 == 0) { -return x_436; +return x_467; } else { -lean_object* x_438; lean_object* x_439; lean_object* x_440; -x_438 = lean_ctor_get(x_436, 0); -x_439 = lean_ctor_get(x_436, 1); -lean_inc(x_439); -lean_inc(x_438); -lean_dec(x_436); -x_440 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_440, 0, x_438); -lean_ctor_set(x_440, 1, x_439); -return x_440; +lean_object* x_469; lean_object* x_470; lean_object* x_471; +x_469 = lean_ctor_get(x_467, 0); +x_470 = lean_ctor_get(x_467, 1); +lean_inc(x_470); +lean_inc(x_469); +lean_dec(x_467); +x_471 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_471, 0, x_469); +lean_ctor_set(x_471, 1, x_470); +return x_471; } } } else { -uint8_t x_441; +uint8_t x_472; lean_dec(x_2); lean_dec(x_1); -x_441 = !lean_is_exclusive(x_4); -if (x_441 == 0) +x_472 = !lean_is_exclusive(x_4); +if (x_472 == 0) { return x_4; } else { -lean_object* x_442; lean_object* x_443; lean_object* x_444; -x_442 = lean_ctor_get(x_4, 0); -x_443 = lean_ctor_get(x_4, 1); -lean_inc(x_443); -lean_inc(x_442); +lean_object* x_473; lean_object* x_474; lean_object* x_475; +x_473 = lean_ctor_get(x_4, 0); +x_474 = lean_ctor_get(x_4, 1); +lean_inc(x_474); +lean_inc(x_473); lean_dec(x_4); -x_444 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_444, 0, x_442); -lean_ctor_set(x_444, 1, x_443); -return x_444; +x_475 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_475, 0, x_473); +lean_ctor_set(x_475, 1, x_474); +return x_475; } } } diff --git a/stage0/stdlib/Init/Lean/Elab/DoNotation.c b/stage0/stdlib/Init/Lean/Elab/DoNotation.c index a332048673..890a5c37eb 100644 --- a/stage0/stdlib/Init/Lean/Elab/DoNotation.c +++ b/stage0/stdlib/Init/Lean/Elab/DoNotation.c @@ -14,10 +14,13 @@ extern "C" { #endif lean_object* l_Lean_Elab_Term_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_6__expandLiftMethod(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_3__getDoElems(lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3; extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; @@ -31,115 +34,112 @@ extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___close extern lean_object* l_PersistentHashMap_mkCollisionNode___rarg___closed__1; extern lean_object* l_Lean_Parser_Term_doPat___elambda__1___closed__2; extern lean_object* l_Array_empty___closed__1; -lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkBind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1; extern lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1; lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___closed__3; +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2; lean_object* l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1; -lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_liftMethod___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_decLevel(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_11__mkBind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1; lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); uint8_t l___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod(lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_8__ensureDoElemType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_3__getDoElems___boxed(lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__6; -lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); extern lean_object* l_Lean_Parser_Term_do___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_PersistentHashMap_Stats_toString___closed__5; -lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__1(lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod___boxed(lean_object*); lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ProcessedDoElem_inhabited; -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod___main(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_8__ensureDoElemType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; extern lean_object* l_Lean_Elab_Term_elabLetDecl___closed__4; extern lean_object* l_Lean_Parser_Term_doId___elambda__1___closed__2; -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__4; extern lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__1___boxed(lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__11; +lean_object* l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__3; lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2; lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__7; lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2; lean_object* l_Lean_Elab_Term_expandOptType(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5; +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3; +lean_object* l___private_Init_Lean_Elab_DoNotation_8__expandDoElems(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__1; -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5; extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__2; +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7; lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDo___closed__1; +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__3; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__3; +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_11__mkBind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_inhabited; -lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkBind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; +lean_object* lean_environment_main_module(lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__2; lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_14__regTraceClasses(lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind(lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_13__regTraceClasses(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__1; lean_object* lean_panic_fn(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5; lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__3; lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; extern lean_object* l_Lean_Parser_Term_doExpr___elambda__1___closed__2; uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; extern lean_object* l_Lean_Parser_Term_matchAlt___closed__2; @@ -147,27 +147,29 @@ lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main extern lean_object* l_Lean_Expr_Inhabited; lean_object* lean_array_pop(lean_object*); lean_object* l_Lean_Elab_Term_addBuiltinTermElab(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDo(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__1; -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__2; extern lean_object* l_Lean_Parser_Term_doLet___elambda__1___closed__2; +lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1___boxed(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__2; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__5; extern lean_object* l_Lean_mkOptionalNode___closed__2; -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; lean_object* l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__2; -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4; -lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__1; +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_2__extractMonad(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__4; lean_object* l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__1; lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___closed__4; extern lean_object* l_addParenHeuristic___closed__1; @@ -1320,914 +1322,518 @@ return x_29; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_dec(x_5); x_30 = l_Lean_Syntax_inhabited; x_31 = lean_unsigned_to_nat(1u); x_32 = lean_array_get(x_30, x_6, x_31); lean_dec(x_6); -x_33 = !lean_is_exclusive(x_4); -if (x_33 == 0) +x_33 = lean_nat_add(x_4, x_31); +x_34 = !lean_is_exclusive(x_3); +if (x_34 == 0) { -lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_34 = lean_ctor_get(x_4, 5); -x_35 = lean_nat_add(x_34, x_31); -lean_ctor_set(x_4, 5, x_35); -x_36 = !lean_is_exclusive(x_3); -if (x_36 == 0) +lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; +x_35 = lean_ctor_get(x_3, 0); +x_36 = lean_ctor_get(x_3, 1); +lean_dec(x_36); +lean_inc(x_4); +lean_inc(x_35); +lean_ctor_set(x_3, 1, x_4); +x_37 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main(x_32, x_2, x_3, x_33); +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) { -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; -x_37 = lean_ctor_get(x_3, 9); -lean_dec(x_37); -lean_ctor_set(x_3, 9, x_34); -lean_inc(x_3); -x_38 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main(x_32, x_2, x_3, x_4); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = !lean_is_exclusive(x_39); -if (x_41 == 0) +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_37, 0); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 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; uint8_t x_82; -x_42 = lean_ctor_get(x_39, 0); -x_43 = lean_ctor_get(x_39, 1); -x_44 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_40); -x_45 = lean_ctor_get(x_44, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_44, 1); -lean_inc(x_46); -lean_dec(x_44); -x_47 = l_Lean_Elab_Term_getMainModule___rarg(x_46); -x_48 = lean_ctor_get(x_47, 0); -lean_inc(x_48); -x_49 = lean_ctor_get(x_47, 1); -lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_box(0); -x_51 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_52 = l_Lean_addMacroScope(x_48, x_51, x_45); -x_53 = lean_box(0); -x_54 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; -x_55 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_55, 0, x_50); -lean_ctor_set(x_55, 1, x_54); -lean_ctor_set(x_55, 2, x_52); -lean_ctor_set(x_55, 3, x_53); -x_56 = l_Array_empty___closed__1; -x_57 = lean_array_push(x_56, x_55); -x_58 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 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; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_39, 1); +x_43 = lean_box(0); +x_44 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; +x_45 = l_Lean_addMacroScope(x_35, x_44, x_4); +x_46 = lean_box(0); +x_47 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; +x_48 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_48, 0, x_43); +lean_ctor_set(x_48, 1, x_47); +lean_ctor_set(x_48, 2, x_45); +lean_ctor_set(x_48, 3, x_46); +x_49 = l_Array_empty___closed__1; +x_50 = lean_array_push(x_49, x_48); +x_51 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_52 = lean_array_push(x_50, x_51); +x_53 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_52); +x_54 = lean_array_push(x_52, x_53); +x_55 = lean_array_push(x_54, x_41); +x_56 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +lean_ctor_set(x_1, 1, x_55); +lean_ctor_set(x_1, 0, x_56); +x_57 = lean_array_push(x_49, x_1); +x_58 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_59 = lean_array_push(x_57, x_58); -x_60 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +x_60 = lean_box(0); x_61 = lean_array_push(x_59, x_60); -x_62 = lean_array_push(x_61, x_42); -x_63 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -lean_ctor_set(x_1, 1, x_62); -lean_ctor_set(x_1, 0, x_63); -x_64 = lean_array_push(x_56, x_1); -x_65 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_66 = lean_array_push(x_64, x_65); -x_67 = lean_box(0); -x_68 = lean_array_push(x_66, x_67); -x_69 = l_Lean_nullKind___closed__2; -x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_68); -x_71 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_72 = lean_array_push(x_71, x_70); -x_73 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_73, 0, x_7); -lean_ctor_set(x_73, 1, x_72); -x_74 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_73); -lean_dec(x_73); -x_75 = lean_array_pop(x_74); -x_76 = lean_unsigned_to_nat(0u); -x_77 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_75, x_75, x_76, x_43); -lean_dec(x_75); -x_78 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_49); -lean_dec(x_3); -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = l_Lean_Elab_Term_getMainModule___rarg(x_80); -x_82 = !lean_is_exclusive(x_81); -if (x_82 == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_83 = lean_ctor_get(x_81, 0); -x_84 = l_Lean_addMacroScope(x_83, x_51, x_79); -x_85 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_85, 0, x_50); -lean_ctor_set(x_85, 1, x_54); -lean_ctor_set(x_85, 2, x_84); -lean_ctor_set(x_85, 3, x_53); -x_86 = lean_array_push(x_56, x_85); -x_87 = lean_array_push(x_86, x_58); -x_88 = l_Lean_mkTermIdFromIdent___closed__2; -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_87); -lean_ctor_set(x_39, 1, x_77); -lean_ctor_set(x_39, 0, x_89); -lean_ctor_set(x_81, 0, x_39); -return x_81; +x_62 = l_Lean_nullKind___closed__2; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_61); +x_64 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_65 = lean_array_push(x_64, x_63); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_7); +lean_ctor_set(x_66, 1, x_65); +x_67 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_66); +lean_dec(x_66); +x_68 = lean_array_pop(x_67); +x_69 = lean_unsigned_to_nat(0u); +x_70 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_68, x_68, x_69, x_42); +lean_dec(x_68); +x_71 = l_Lean_mkTermIdFromIdent___closed__2; +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_52); +lean_ctor_set(x_39, 1, x_70); +lean_ctor_set(x_39, 0, x_72); +return x_37; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_90 = lean_ctor_get(x_81, 0); -x_91 = lean_ctor_get(x_81, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_81); -x_92 = l_Lean_addMacroScope(x_90, x_51, x_79); -x_93 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_93, 0, x_50); -lean_ctor_set(x_93, 1, x_54); -lean_ctor_set(x_93, 2, x_92); -lean_ctor_set(x_93, 3, x_53); -x_94 = lean_array_push(x_56, x_93); -x_95 = lean_array_push(x_94, x_58); -x_96 = l_Lean_mkTermIdFromIdent___closed__2; -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_95); -lean_ctor_set(x_39, 1, x_77); -lean_ctor_set(x_39, 0, x_97); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_39); -lean_ctor_set(x_98, 1, x_91); -return x_98; -} -} -else -{ -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_99 = lean_ctor_get(x_39, 0); -x_100 = lean_ctor_get(x_39, 1); -lean_inc(x_100); -lean_inc(x_99); +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; +x_73 = lean_ctor_get(x_39, 0); +x_74 = lean_ctor_get(x_39, 1); +lean_inc(x_74); +lean_inc(x_73); lean_dec(x_39); -x_101 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_40); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -lean_dec(x_101); -x_104 = l_Lean_Elab_Term_getMainModule___rarg(x_103); -x_105 = lean_ctor_get(x_104, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_104, 1); +x_75 = lean_box(0); +x_76 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; +x_77 = l_Lean_addMacroScope(x_35, x_76, x_4); +x_78 = lean_box(0); +x_79 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; +x_80 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_80, 0, x_75); +lean_ctor_set(x_80, 1, x_79); +lean_ctor_set(x_80, 2, x_77); +lean_ctor_set(x_80, 3, x_78); +x_81 = l_Array_empty___closed__1; +x_82 = lean_array_push(x_81, x_80); +x_83 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_84 = lean_array_push(x_82, x_83); +x_85 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_84); +x_86 = lean_array_push(x_84, x_85); +x_87 = lean_array_push(x_86, x_73); +x_88 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +lean_ctor_set(x_1, 1, x_87); +lean_ctor_set(x_1, 0, x_88); +x_89 = lean_array_push(x_81, x_1); +x_90 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_91 = lean_array_push(x_89, x_90); +x_92 = lean_box(0); +x_93 = lean_array_push(x_91, x_92); +x_94 = l_Lean_nullKind___closed__2; +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_93); +x_96 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_97 = lean_array_push(x_96, x_95); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_7); +lean_ctor_set(x_98, 1, x_97); +x_99 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_98); +lean_dec(x_98); +x_100 = lean_array_pop(x_99); +x_101 = lean_unsigned_to_nat(0u); +x_102 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_100, x_100, x_101, x_74); +lean_dec(x_100); +x_103 = l_Lean_mkTermIdFromIdent___closed__2; +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_84); +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_102); +lean_ctor_set(x_37, 0, x_105); +return x_37; +} +} +else +{ +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; +x_106 = lean_ctor_get(x_37, 0); +x_107 = lean_ctor_get(x_37, 1); +lean_inc(x_107); lean_inc(x_106); -lean_dec(x_104); -x_107 = lean_box(0); -x_108 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_109 = l_Lean_addMacroScope(x_105, x_108, x_102); -x_110 = lean_box(0); -x_111 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; -x_112 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_112, 0, x_107); -lean_ctor_set(x_112, 1, x_111); -lean_ctor_set(x_112, 2, x_109); -lean_ctor_set(x_112, 3, x_110); -x_113 = l_Array_empty___closed__1; -x_114 = lean_array_push(x_113, x_112); -x_115 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_116 = lean_array_push(x_114, x_115); -x_117 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -x_118 = lean_array_push(x_116, x_117); -x_119 = lean_array_push(x_118, x_99); -x_120 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -lean_ctor_set(x_1, 1, x_119); -lean_ctor_set(x_1, 0, x_120); -x_121 = lean_array_push(x_113, x_1); -x_122 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_123 = lean_array_push(x_121, x_122); -x_124 = lean_box(0); -x_125 = lean_array_push(x_123, x_124); -x_126 = l_Lean_nullKind___closed__2; -x_127 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_125); -x_128 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_129 = lean_array_push(x_128, x_127); -x_130 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_130, 0, x_7); -lean_ctor_set(x_130, 1, x_129); -x_131 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_130); -lean_dec(x_130); -x_132 = lean_array_pop(x_131); -x_133 = lean_unsigned_to_nat(0u); -x_134 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_132, x_132, x_133, x_100); -lean_dec(x_132); -x_135 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_106); -lean_dec(x_3); -x_136 = lean_ctor_get(x_135, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 1); -lean_inc(x_137); -lean_dec(x_135); -x_138 = l_Lean_Elab_Term_getMainModule___rarg(x_137); -x_139 = lean_ctor_get(x_138, 0); -lean_inc(x_139); -x_140 = lean_ctor_get(x_138, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_141 = x_138; +lean_dec(x_37); +x_108 = lean_ctor_get(x_106, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_106, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_106)) { + lean_ctor_release(x_106, 0); + lean_ctor_release(x_106, 1); + x_110 = x_106; } else { - lean_dec_ref(x_138); - x_141 = lean_box(0); + lean_dec_ref(x_106); + x_110 = lean_box(0); } -x_142 = l_Lean_addMacroScope(x_139, x_108, x_136); -x_143 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_143, 0, x_107); -lean_ctor_set(x_143, 1, x_111); -lean_ctor_set(x_143, 2, x_142); -lean_ctor_set(x_143, 3, x_110); -x_144 = lean_array_push(x_113, x_143); -x_145 = lean_array_push(x_144, x_115); -x_146 = l_Lean_mkTermIdFromIdent___closed__2; -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_145); -x_148 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_134); -if (lean_is_scalar(x_141)) { - x_149 = lean_alloc_ctor(0, 2, 0); +x_111 = lean_box(0); +x_112 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; +x_113 = l_Lean_addMacroScope(x_35, x_112, x_4); +x_114 = lean_box(0); +x_115 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; +x_116 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_116, 0, x_111); +lean_ctor_set(x_116, 1, x_115); +lean_ctor_set(x_116, 2, x_113); +lean_ctor_set(x_116, 3, x_114); +x_117 = l_Array_empty___closed__1; +x_118 = lean_array_push(x_117, x_116); +x_119 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_120 = lean_array_push(x_118, x_119); +x_121 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_120); +x_122 = lean_array_push(x_120, x_121); +x_123 = lean_array_push(x_122, x_108); +x_124 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +lean_ctor_set(x_1, 1, x_123); +lean_ctor_set(x_1, 0, x_124); +x_125 = lean_array_push(x_117, x_1); +x_126 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_127 = lean_array_push(x_125, x_126); +x_128 = lean_box(0); +x_129 = lean_array_push(x_127, x_128); +x_130 = l_Lean_nullKind___closed__2; +x_131 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_131, 0, x_130); +lean_ctor_set(x_131, 1, x_129); +x_132 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_133 = lean_array_push(x_132, x_131); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_7); +lean_ctor_set(x_134, 1, x_133); +x_135 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_134); +lean_dec(x_134); +x_136 = lean_array_pop(x_135); +x_137 = lean_unsigned_to_nat(0u); +x_138 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_136, x_136, x_137, x_109); +lean_dec(x_136); +x_139 = l_Lean_mkTermIdFromIdent___closed__2; +x_140 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_120); +if (lean_is_scalar(x_110)) { + x_141 = lean_alloc_ctor(0, 2, 0); } else { - x_149 = x_141; + x_141 = x_110; } -lean_ctor_set(x_149, 0, x_148); -lean_ctor_set(x_149, 1, x_140); -return x_149; +lean_ctor_set(x_141, 0, x_140); +lean_ctor_set(x_141, 1, x_138); +x_142 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_107); +return x_142; } } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; uint8_t x_160; uint8_t x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; 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; -x_150 = lean_ctor_get(x_3, 0); -x_151 = lean_ctor_get(x_3, 1); -x_152 = lean_ctor_get(x_3, 2); -x_153 = lean_ctor_get(x_3, 3); -x_154 = lean_ctor_get(x_3, 4); -x_155 = lean_ctor_get(x_3, 5); -x_156 = lean_ctor_get(x_3, 6); -x_157 = lean_ctor_get(x_3, 7); -x_158 = lean_ctor_get(x_3, 8); -x_159 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_160 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_161 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -lean_inc(x_158); -lean_inc(x_157); -lean_inc(x_156); -lean_inc(x_155); -lean_inc(x_154); -lean_inc(x_153); -lean_inc(x_152); -lean_inc(x_151); +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; +x_143 = lean_ctor_get(x_3, 0); +lean_inc(x_143); +lean_dec(x_3); +lean_inc(x_4); +lean_inc(x_143); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_4); +x_145 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main(x_32, x_2, x_144, x_33); +x_146 = lean_ctor_get(x_145, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_145, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_148 = x_145; +} else { + lean_dec_ref(x_145); + x_148 = lean_box(0); +} +x_149 = lean_ctor_get(x_146, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_146, 1); lean_inc(x_150); -lean_dec(x_3); -x_162 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_162, 0, x_150); -lean_ctor_set(x_162, 1, x_151); -lean_ctor_set(x_162, 2, x_152); -lean_ctor_set(x_162, 3, x_153); -lean_ctor_set(x_162, 4, x_154); -lean_ctor_set(x_162, 5, x_155); -lean_ctor_set(x_162, 6, x_156); -lean_ctor_set(x_162, 7, x_157); -lean_ctor_set(x_162, 8, x_158); -lean_ctor_set(x_162, 9, x_34); -lean_ctor_set_uint8(x_162, sizeof(void*)*10, x_159); -lean_ctor_set_uint8(x_162, sizeof(void*)*10 + 1, x_160); -lean_ctor_set_uint8(x_162, sizeof(void*)*10 + 2, x_161); -lean_inc(x_162); -x_163 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main(x_32, x_2, x_162, x_4); -x_164 = lean_ctor_get(x_163, 0); -lean_inc(x_164); -x_165 = lean_ctor_get(x_163, 1); -lean_inc(x_165); -lean_dec(x_163); -x_166 = lean_ctor_get(x_164, 0); -lean_inc(x_166); -x_167 = lean_ctor_get(x_164, 1); -lean_inc(x_167); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - x_168 = x_164; +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_151 = x_146; } else { - lean_dec_ref(x_164); - x_168 = lean_box(0); + lean_dec_ref(x_146); + x_151 = lean_box(0); } -x_169 = l_Lean_Elab_Term_getCurrMacroScope(x_162, x_165); -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); -x_172 = l_Lean_Elab_Term_getMainModule___rarg(x_171); -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -lean_dec(x_172); -x_175 = lean_box(0); -x_176 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_177 = l_Lean_addMacroScope(x_173, x_176, x_170); -x_178 = lean_box(0); -x_179 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; -x_180 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_180, 0, x_175); -lean_ctor_set(x_180, 1, x_179); -lean_ctor_set(x_180, 2, x_177); -lean_ctor_set(x_180, 3, x_178); -x_181 = l_Array_empty___closed__1; -x_182 = lean_array_push(x_181, x_180); -x_183 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_184 = lean_array_push(x_182, x_183); -x_185 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -x_186 = lean_array_push(x_184, x_185); -x_187 = lean_array_push(x_186, x_166); -x_188 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -lean_ctor_set(x_1, 1, x_187); -lean_ctor_set(x_1, 0, x_188); -x_189 = lean_array_push(x_181, x_1); -x_190 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_191 = lean_array_push(x_189, x_190); -x_192 = lean_box(0); -x_193 = lean_array_push(x_191, x_192); -x_194 = l_Lean_nullKind___closed__2; -x_195 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_195, 0, x_194); -lean_ctor_set(x_195, 1, x_193); -x_196 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_197 = lean_array_push(x_196, x_195); -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_7); -lean_ctor_set(x_198, 1, x_197); -x_199 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_198); -lean_dec(x_198); -x_200 = lean_array_pop(x_199); -x_201 = lean_unsigned_to_nat(0u); -x_202 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_200, x_200, x_201, x_167); -lean_dec(x_200); -x_203 = l_Lean_Elab_Term_getCurrMacroScope(x_162, x_174); -lean_dec(x_162); -x_204 = lean_ctor_get(x_203, 0); -lean_inc(x_204); -x_205 = lean_ctor_get(x_203, 1); -lean_inc(x_205); -lean_dec(x_203); -x_206 = l_Lean_Elab_Term_getMainModule___rarg(x_205); -x_207 = lean_ctor_get(x_206, 0); -lean_inc(x_207); -x_208 = lean_ctor_get(x_206, 1); -lean_inc(x_208); -if (lean_is_exclusive(x_206)) { - lean_ctor_release(x_206, 0); - lean_ctor_release(x_206, 1); - x_209 = x_206; +x_152 = lean_box(0); +x_153 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; +x_154 = l_Lean_addMacroScope(x_143, x_153, x_4); +x_155 = lean_box(0); +x_156 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; +x_157 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_157, 0, x_152); +lean_ctor_set(x_157, 1, x_156); +lean_ctor_set(x_157, 2, x_154); +lean_ctor_set(x_157, 3, x_155); +x_158 = l_Array_empty___closed__1; +x_159 = lean_array_push(x_158, x_157); +x_160 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_161 = lean_array_push(x_159, x_160); +x_162 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_161); +x_163 = lean_array_push(x_161, x_162); +x_164 = lean_array_push(x_163, x_149); +x_165 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +lean_ctor_set(x_1, 1, x_164); +lean_ctor_set(x_1, 0, x_165); +x_166 = lean_array_push(x_158, x_1); +x_167 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_168 = lean_array_push(x_166, x_167); +x_169 = lean_box(0); +x_170 = lean_array_push(x_168, x_169); +x_171 = l_Lean_nullKind___closed__2; +x_172 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_170); +x_173 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_174 = lean_array_push(x_173, x_172); +x_175 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_175, 0, x_7); +lean_ctor_set(x_175, 1, x_174); +x_176 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_175); +lean_dec(x_175); +x_177 = lean_array_pop(x_176); +x_178 = lean_unsigned_to_nat(0u); +x_179 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_177, x_177, x_178, x_150); +lean_dec(x_177); +x_180 = l_Lean_mkTermIdFromIdent___closed__2; +x_181 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_181, 0, x_180); +lean_ctor_set(x_181, 1, x_161); +if (lean_is_scalar(x_151)) { + x_182 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_206); - x_209 = lean_box(0); + x_182 = x_151; } -x_210 = l_Lean_addMacroScope(x_207, x_176, x_204); -x_211 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_211, 0, x_175); -lean_ctor_set(x_211, 1, x_179); -lean_ctor_set(x_211, 2, x_210); -lean_ctor_set(x_211, 3, x_178); -x_212 = lean_array_push(x_181, x_211); -x_213 = lean_array_push(x_212, x_183); -x_214 = l_Lean_mkTermIdFromIdent___closed__2; -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_214); -lean_ctor_set(x_215, 1, x_213); -if (lean_is_scalar(x_168)) { - x_216 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_179); +if (lean_is_scalar(x_148)) { + x_183 = lean_alloc_ctor(0, 2, 0); } else { - x_216 = x_168; + x_183 = x_148; } -lean_ctor_set(x_216, 0, x_215); -lean_ctor_set(x_216, 1, x_202); -if (lean_is_scalar(x_209)) { - x_217 = lean_alloc_ctor(0, 2, 0); -} else { - x_217 = x_209; -} -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_208); -return x_217; -} -} -else -{ -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; uint8_t x_235; uint8_t x_236; uint8_t x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; 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; -x_218 = lean_ctor_get(x_4, 0); -x_219 = lean_ctor_get(x_4, 1); -x_220 = lean_ctor_get(x_4, 2); -x_221 = lean_ctor_get(x_4, 3); -x_222 = lean_ctor_get(x_4, 4); -x_223 = lean_ctor_get(x_4, 5); -lean_inc(x_223); -lean_inc(x_222); -lean_inc(x_221); -lean_inc(x_220); -lean_inc(x_219); -lean_inc(x_218); -lean_dec(x_4); -x_224 = lean_nat_add(x_223, x_31); -x_225 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_225, 0, x_218); -lean_ctor_set(x_225, 1, x_219); -lean_ctor_set(x_225, 2, x_220); -lean_ctor_set(x_225, 3, x_221); -lean_ctor_set(x_225, 4, x_222); -lean_ctor_set(x_225, 5, x_224); -x_226 = lean_ctor_get(x_3, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_3, 1); -lean_inc(x_227); -x_228 = lean_ctor_get(x_3, 2); -lean_inc(x_228); -x_229 = lean_ctor_get(x_3, 3); -lean_inc(x_229); -x_230 = lean_ctor_get(x_3, 4); -lean_inc(x_230); -x_231 = lean_ctor_get(x_3, 5); -lean_inc(x_231); -x_232 = lean_ctor_get(x_3, 6); -lean_inc(x_232); -x_233 = lean_ctor_get(x_3, 7); -lean_inc(x_233); -x_234 = lean_ctor_get(x_3, 8); -lean_inc(x_234); -x_235 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_236 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_237 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - lean_ctor_release(x_3, 5); - lean_ctor_release(x_3, 6); - lean_ctor_release(x_3, 7); - lean_ctor_release(x_3, 8); - lean_ctor_release(x_3, 9); - x_238 = x_3; -} else { - lean_dec_ref(x_3); - x_238 = lean_box(0); -} -if (lean_is_scalar(x_238)) { - x_239 = lean_alloc_ctor(0, 10, 3); -} else { - x_239 = x_238; -} -lean_ctor_set(x_239, 0, x_226); -lean_ctor_set(x_239, 1, x_227); -lean_ctor_set(x_239, 2, x_228); -lean_ctor_set(x_239, 3, x_229); -lean_ctor_set(x_239, 4, x_230); -lean_ctor_set(x_239, 5, x_231); -lean_ctor_set(x_239, 6, x_232); -lean_ctor_set(x_239, 7, x_233); -lean_ctor_set(x_239, 8, x_234); -lean_ctor_set(x_239, 9, x_223); -lean_ctor_set_uint8(x_239, sizeof(void*)*10, x_235); -lean_ctor_set_uint8(x_239, sizeof(void*)*10 + 1, x_236); -lean_ctor_set_uint8(x_239, sizeof(void*)*10 + 2, x_237); -lean_inc(x_239); -x_240 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main(x_32, x_2, x_239, x_225); -x_241 = lean_ctor_get(x_240, 0); -lean_inc(x_241); -x_242 = lean_ctor_get(x_240, 1); -lean_inc(x_242); -lean_dec(x_240); -x_243 = lean_ctor_get(x_241, 0); -lean_inc(x_243); -x_244 = lean_ctor_get(x_241, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_241)) { - lean_ctor_release(x_241, 0); - lean_ctor_release(x_241, 1); - x_245 = x_241; -} else { - lean_dec_ref(x_241); - x_245 = lean_box(0); -} -x_246 = l_Lean_Elab_Term_getCurrMacroScope(x_239, x_242); -x_247 = lean_ctor_get(x_246, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_246, 1); -lean_inc(x_248); -lean_dec(x_246); -x_249 = l_Lean_Elab_Term_getMainModule___rarg(x_248); -x_250 = lean_ctor_get(x_249, 0); -lean_inc(x_250); -x_251 = lean_ctor_get(x_249, 1); -lean_inc(x_251); -lean_dec(x_249); -x_252 = lean_box(0); -x_253 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_254 = l_Lean_addMacroScope(x_250, x_253, x_247); -x_255 = lean_box(0); -x_256 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; -x_257 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_257, 0, x_252); -lean_ctor_set(x_257, 1, x_256); -lean_ctor_set(x_257, 2, x_254); -lean_ctor_set(x_257, 3, x_255); -x_258 = l_Array_empty___closed__1; -x_259 = lean_array_push(x_258, x_257); -x_260 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_261 = lean_array_push(x_259, x_260); -x_262 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -x_263 = lean_array_push(x_261, x_262); -x_264 = lean_array_push(x_263, x_243); -x_265 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -lean_ctor_set(x_1, 1, x_264); -lean_ctor_set(x_1, 0, x_265); -x_266 = lean_array_push(x_258, x_1); -x_267 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_268 = lean_array_push(x_266, x_267); -x_269 = lean_box(0); -x_270 = lean_array_push(x_268, x_269); -x_271 = l_Lean_nullKind___closed__2; -x_272 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_272, 0, x_271); -lean_ctor_set(x_272, 1, x_270); -x_273 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_274 = lean_array_push(x_273, x_272); -x_275 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_275, 0, x_7); -lean_ctor_set(x_275, 1, x_274); -x_276 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_275); -lean_dec(x_275); -x_277 = lean_array_pop(x_276); -x_278 = lean_unsigned_to_nat(0u); -x_279 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_277, x_277, x_278, x_244); -lean_dec(x_277); -x_280 = l_Lean_Elab_Term_getCurrMacroScope(x_239, x_251); -lean_dec(x_239); -x_281 = lean_ctor_get(x_280, 0); -lean_inc(x_281); -x_282 = lean_ctor_get(x_280, 1); -lean_inc(x_282); -lean_dec(x_280); -x_283 = l_Lean_Elab_Term_getMainModule___rarg(x_282); -x_284 = lean_ctor_get(x_283, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_283, 1); -lean_inc(x_285); -if (lean_is_exclusive(x_283)) { - lean_ctor_release(x_283, 0); - lean_ctor_release(x_283, 1); - x_286 = x_283; -} else { - lean_dec_ref(x_283); - x_286 = lean_box(0); -} -x_287 = l_Lean_addMacroScope(x_284, x_253, x_281); -x_288 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_288, 0, x_252); -lean_ctor_set(x_288, 1, x_256); -lean_ctor_set(x_288, 2, x_287); -lean_ctor_set(x_288, 3, x_255); -x_289 = lean_array_push(x_258, x_288); -x_290 = lean_array_push(x_289, x_260); -x_291 = l_Lean_mkTermIdFromIdent___closed__2; -x_292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_292, 0, x_291); -lean_ctor_set(x_292, 1, x_290); -if (lean_is_scalar(x_245)) { - x_293 = lean_alloc_ctor(0, 2, 0); -} else { - x_293 = x_245; -} -lean_ctor_set(x_293, 0, x_292); -lean_ctor_set(x_293, 1, x_279); -if (lean_is_scalar(x_286)) { - x_294 = lean_alloc_ctor(0, 2, 0); -} else { - x_294 = x_286; -} -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_285); -return x_294; +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_147); +return x_183; } } } else { -lean_object* x_295; uint8_t x_296; +lean_object* x_184; uint8_t x_185; lean_dec(x_1); -x_295 = l_Lean_Parser_Term_liftMethod___elambda__1___closed__2; -x_296 = lean_name_eq(x_5, x_295); -if (x_296 == 0) +x_184 = l_Lean_Parser_Term_liftMethod___elambda__1___closed__2; +x_185 = lean_name_eq(x_5, x_184); +if (x_185 == 0) { -lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; -x_297 = lean_unsigned_to_nat(0u); -x_298 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___spec__1(x_297, x_6, x_2, x_3, x_4); -x_299 = lean_ctor_get(x_298, 0); -lean_inc(x_299); -x_300 = lean_ctor_get(x_298, 1); -lean_inc(x_300); -if (lean_is_exclusive(x_298)) { - lean_ctor_release(x_298, 0); - lean_ctor_release(x_298, 1); - x_301 = x_298; +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; +x_186 = lean_unsigned_to_nat(0u); +x_187 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___spec__1(x_186, x_6, x_2, x_3, x_4); +x_188 = lean_ctor_get(x_187, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_187, 1); +lean_inc(x_189); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + x_190 = x_187; } else { - lean_dec_ref(x_298); - x_301 = lean_box(0); + lean_dec_ref(x_187); + x_190 = lean_box(0); } -x_302 = lean_ctor_get(x_299, 0); -lean_inc(x_302); -x_303 = lean_ctor_get(x_299, 1); -lean_inc(x_303); -if (lean_is_exclusive(x_299)) { - lean_ctor_release(x_299, 0); - lean_ctor_release(x_299, 1); - x_304 = x_299; +x_191 = lean_ctor_get(x_188, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_188, 1); +lean_inc(x_192); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + x_193 = x_188; } else { - lean_dec_ref(x_299); - x_304 = lean_box(0); + lean_dec_ref(x_188); + x_193 = lean_box(0); } -x_305 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_305, 0, x_5); -lean_ctor_set(x_305, 1, x_302); -if (lean_is_scalar(x_304)) { - x_306 = lean_alloc_ctor(0, 2, 0); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_5); +lean_ctor_set(x_194, 1, x_191); +if (lean_is_scalar(x_193)) { + x_195 = lean_alloc_ctor(0, 2, 0); } else { - x_306 = x_304; + x_195 = x_193; } -lean_ctor_set(x_306, 0, x_305); -lean_ctor_set(x_306, 1, x_303); -if (lean_is_scalar(x_301)) { - x_307 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_192); +if (lean_is_scalar(x_190)) { + x_196 = lean_alloc_ctor(0, 2, 0); } else { - x_307 = x_301; + x_196 = x_190; } -lean_ctor_set(x_307, 0, x_306); -lean_ctor_set(x_307, 1, x_300); -return x_307; +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_189); +return x_196; } else { -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; uint8_t x_329; uint8_t x_330; uint8_t 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_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_dec(x_5); -x_308 = l_Lean_Syntax_inhabited; -x_309 = lean_unsigned_to_nat(1u); -x_310 = lean_array_get(x_308, x_6, x_309); +x_197 = l_Lean_Syntax_inhabited; +x_198 = lean_unsigned_to_nat(1u); +x_199 = lean_array_get(x_197, x_6, x_198); lean_dec(x_6); -x_311 = lean_ctor_get(x_4, 0); -lean_inc(x_311); -x_312 = lean_ctor_get(x_4, 1); -lean_inc(x_312); -x_313 = lean_ctor_get(x_4, 2); -lean_inc(x_313); -x_314 = lean_ctor_get(x_4, 3); -lean_inc(x_314); -x_315 = lean_ctor_get(x_4, 4); -lean_inc(x_315); -x_316 = lean_ctor_get(x_4, 5); -lean_inc(x_316); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - lean_ctor_release(x_4, 2); - lean_ctor_release(x_4, 3); - lean_ctor_release(x_4, 4); - lean_ctor_release(x_4, 5); - x_317 = x_4; -} else { - lean_dec_ref(x_4); - x_317 = lean_box(0); -} -x_318 = lean_nat_add(x_316, x_309); -if (lean_is_scalar(x_317)) { - x_319 = lean_alloc_ctor(0, 6, 0); -} else { - x_319 = x_317; -} -lean_ctor_set(x_319, 0, x_311); -lean_ctor_set(x_319, 1, x_312); -lean_ctor_set(x_319, 2, x_313); -lean_ctor_set(x_319, 3, x_314); -lean_ctor_set(x_319, 4, x_315); -lean_ctor_set(x_319, 5, x_318); -x_320 = lean_ctor_get(x_3, 0); -lean_inc(x_320); -x_321 = lean_ctor_get(x_3, 1); -lean_inc(x_321); -x_322 = lean_ctor_get(x_3, 2); -lean_inc(x_322); -x_323 = lean_ctor_get(x_3, 3); -lean_inc(x_323); -x_324 = lean_ctor_get(x_3, 4); -lean_inc(x_324); -x_325 = lean_ctor_get(x_3, 5); -lean_inc(x_325); -x_326 = lean_ctor_get(x_3, 6); -lean_inc(x_326); -x_327 = lean_ctor_get(x_3, 7); -lean_inc(x_327); -x_328 = lean_ctor_get(x_3, 8); -lean_inc(x_328); -x_329 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_330 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_331 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_200 = lean_nat_add(x_4, x_198); +x_201 = lean_ctor_get(x_3, 0); +lean_inc(x_201); if (lean_is_exclusive(x_3)) { lean_ctor_release(x_3, 0); lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - lean_ctor_release(x_3, 5); - lean_ctor_release(x_3, 6); - lean_ctor_release(x_3, 7); - lean_ctor_release(x_3, 8); - lean_ctor_release(x_3, 9); - x_332 = x_3; + x_202 = x_3; } else { lean_dec_ref(x_3); - x_332 = lean_box(0); + x_202 = lean_box(0); } -if (lean_is_scalar(x_332)) { - x_333 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_4); +lean_inc(x_201); +if (lean_is_scalar(x_202)) { + x_203 = lean_alloc_ctor(0, 2, 0); } else { - x_333 = x_332; + x_203 = x_202; } -lean_ctor_set(x_333, 0, x_320); -lean_ctor_set(x_333, 1, x_321); -lean_ctor_set(x_333, 2, x_322); -lean_ctor_set(x_333, 3, x_323); -lean_ctor_set(x_333, 4, x_324); -lean_ctor_set(x_333, 5, x_325); -lean_ctor_set(x_333, 6, x_326); -lean_ctor_set(x_333, 7, x_327); -lean_ctor_set(x_333, 8, x_328); -lean_ctor_set(x_333, 9, x_316); -lean_ctor_set_uint8(x_333, sizeof(void*)*10, x_329); -lean_ctor_set_uint8(x_333, sizeof(void*)*10 + 1, x_330); -lean_ctor_set_uint8(x_333, sizeof(void*)*10 + 2, x_331); -lean_inc(x_333); -x_334 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main(x_310, x_2, x_333, x_319); -x_335 = lean_ctor_get(x_334, 0); -lean_inc(x_335); -x_336 = lean_ctor_get(x_334, 1); -lean_inc(x_336); -lean_dec(x_334); -x_337 = lean_ctor_get(x_335, 0); -lean_inc(x_337); -x_338 = lean_ctor_get(x_335, 1); -lean_inc(x_338); -if (lean_is_exclusive(x_335)) { - lean_ctor_release(x_335, 0); - lean_ctor_release(x_335, 1); - x_339 = x_335; +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set(x_203, 1, x_4); +x_204 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main(x_199, x_2, x_203, x_200); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + x_207 = x_204; } else { - lean_dec_ref(x_335); - x_339 = lean_box(0); + lean_dec_ref(x_204); + x_207 = lean_box(0); } -x_340 = l_Lean_Elab_Term_getCurrMacroScope(x_333, x_336); -x_341 = lean_ctor_get(x_340, 0); -lean_inc(x_341); -x_342 = lean_ctor_get(x_340, 1); -lean_inc(x_342); -lean_dec(x_340); -x_343 = l_Lean_Elab_Term_getMainModule___rarg(x_342); -x_344 = lean_ctor_get(x_343, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_343, 1); -lean_inc(x_345); -lean_dec(x_343); -x_346 = lean_box(0); -x_347 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_348 = l_Lean_addMacroScope(x_344, x_347, x_341); -x_349 = lean_box(0); -x_350 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; -x_351 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_351, 0, x_346); -lean_ctor_set(x_351, 1, x_350); -lean_ctor_set(x_351, 2, x_348); -lean_ctor_set(x_351, 3, x_349); -x_352 = l_Array_empty___closed__1; -x_353 = lean_array_push(x_352, x_351); -x_354 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_355 = lean_array_push(x_353, x_354); -x_356 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -x_357 = lean_array_push(x_355, x_356); -x_358 = lean_array_push(x_357, x_337); -x_359 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_360 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_360, 0, x_359); -lean_ctor_set(x_360, 1, x_358); -x_361 = lean_array_push(x_352, x_360); -x_362 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_363 = lean_array_push(x_361, x_362); -x_364 = lean_box(0); -x_365 = lean_array_push(x_363, x_364); -x_366 = l_Lean_nullKind___closed__2; -x_367 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_367, 0, x_366); -lean_ctor_set(x_367, 1, x_365); -x_368 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_369 = lean_array_push(x_368, x_367); -x_370 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_370, 0, x_7); -lean_ctor_set(x_370, 1, x_369); -x_371 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_370); -lean_dec(x_370); -x_372 = lean_array_pop(x_371); -x_373 = lean_unsigned_to_nat(0u); -x_374 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_372, x_372, x_373, x_338); -lean_dec(x_372); -x_375 = l_Lean_Elab_Term_getCurrMacroScope(x_333, x_345); -lean_dec(x_333); -x_376 = lean_ctor_get(x_375, 0); -lean_inc(x_376); -x_377 = lean_ctor_get(x_375, 1); -lean_inc(x_377); -lean_dec(x_375); -x_378 = l_Lean_Elab_Term_getMainModule___rarg(x_377); -x_379 = lean_ctor_get(x_378, 0); -lean_inc(x_379); -x_380 = lean_ctor_get(x_378, 1); -lean_inc(x_380); -if (lean_is_exclusive(x_378)) { - lean_ctor_release(x_378, 0); - lean_ctor_release(x_378, 1); - x_381 = x_378; +x_208 = lean_ctor_get(x_205, 0); +lean_inc(x_208); +x_209 = lean_ctor_get(x_205, 1); +lean_inc(x_209); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_210 = x_205; } else { - lean_dec_ref(x_378); - x_381 = lean_box(0); + lean_dec_ref(x_205); + x_210 = lean_box(0); } -x_382 = l_Lean_addMacroScope(x_379, x_347, x_376); -x_383 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_383, 0, x_346); -lean_ctor_set(x_383, 1, x_350); -lean_ctor_set(x_383, 2, x_382); -lean_ctor_set(x_383, 3, x_349); -x_384 = lean_array_push(x_352, x_383); -x_385 = lean_array_push(x_384, x_354); -x_386 = l_Lean_mkTermIdFromIdent___closed__2; -x_387 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_387, 0, x_386); -lean_ctor_set(x_387, 1, x_385); -if (lean_is_scalar(x_339)) { - x_388 = lean_alloc_ctor(0, 2, 0); +x_211 = lean_box(0); +x_212 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; +x_213 = l_Lean_addMacroScope(x_201, x_212, x_4); +x_214 = lean_box(0); +x_215 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; +x_216 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_216, 0, x_211); +lean_ctor_set(x_216, 1, x_215); +lean_ctor_set(x_216, 2, x_213); +lean_ctor_set(x_216, 3, x_214); +x_217 = l_Array_empty___closed__1; +x_218 = lean_array_push(x_217, x_216); +x_219 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_220 = lean_array_push(x_218, x_219); +x_221 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_220); +x_222 = lean_array_push(x_220, x_221); +x_223 = lean_array_push(x_222, x_208); +x_224 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_224); +lean_ctor_set(x_225, 1, x_223); +x_226 = lean_array_push(x_217, x_225); +x_227 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_228 = lean_array_push(x_226, x_227); +x_229 = lean_box(0); +x_230 = lean_array_push(x_228, x_229); +x_231 = l_Lean_nullKind___closed__2; +x_232 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_230); +x_233 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_234 = lean_array_push(x_233, x_232); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_7); +lean_ctor_set(x_235, 1, x_234); +x_236 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_235); +lean_dec(x_235); +x_237 = lean_array_pop(x_236); +x_238 = lean_unsigned_to_nat(0u); +x_239 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_237, x_237, x_238, x_209); +lean_dec(x_237); +x_240 = l_Lean_mkTermIdFromIdent___closed__2; +x_241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_220); +if (lean_is_scalar(x_210)) { + x_242 = lean_alloc_ctor(0, 2, 0); } else { - x_388 = x_339; + x_242 = x_210; } -lean_ctor_set(x_388, 0, x_387); -lean_ctor_set(x_388, 1, x_374); -if (lean_is_scalar(x_381)) { - x_389 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_239); +if (lean_is_scalar(x_207)) { + x_243 = lean_alloc_ctor(0, 2, 0); } else { - x_389 = x_381; + x_243 = x_207; } -lean_ctor_set(x_389, 0, x_388); -lean_ctor_set(x_389, 1, x_380); -return x_389; +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_206); +return x_243; } } } else { -lean_object* x_390; lean_object* x_391; +lean_object* x_244; lean_object* x_245; lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_390 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_390, 0, x_1); -lean_ctor_set(x_390, 1, x_2); -x_391 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_391, 0, x_390); -lean_ctor_set(x_391, 1, x_4); -return x_391; +x_244 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_244, 0, x_1); +lean_ctor_set(x_244, 1, x_2); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_244); +lean_ctor_set(x_245, 1, x_4); +return x_245; } } else { -lean_object* x_392; lean_object* x_393; +lean_object* x_246; lean_object* x_247; lean_dec(x_3); -x_392 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_392, 0, x_1); -lean_ctor_set(x_392, 1, x_2); -x_393 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_393, 0, x_392); -lean_ctor_set(x_393, 1, x_4); -return x_393; +x_246 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_246, 0, x_1); +lean_ctor_set(x_246, 1, x_2); +x_247 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_247, 0, x_246); +lean_ctor_set(x_247, 1, x_4); +return x_247; } } } @@ -2300,7 +1906,7 @@ return x_21; } } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2312,17 +1918,17 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Array_empty___closed__1; -x_2 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__1; +x_2 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__1; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2334,7 +1940,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__4() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -2344,63 +1950,1535 @@ x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__4; +x_1 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__4; x_2 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -lean_object* x_6; uint8_t x_7; -x_6 = lean_array_get_size(x_2); -x_7 = lean_nat_dec_lt(x_3, x_6); -if (x_7 == 0) +lean_object* x_6; lean_object* x_7; lean_object* x_35; uint8_t x_36; +x_35 = lean_array_get_size(x_2); +x_36 = lean_nat_dec_lt(x_3, x_35); +if (x_36 == 0) { -lean_dec(x_6); +lean_dec(x_35); +lean_dec(x_4); lean_dec(x_3); if (x_1 == 0) { -lean_object* x_8; lean_object* x_9; -lean_dec(x_4); +lean_object* x_37; lean_object* x_38; lean_dec(x_2); -x_8 = lean_box(0); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_5); -return x_9; +x_37 = lean_box(0); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_5); +return x_38; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); -lean_dec(x_4); -x_11 = lean_ctor_get(x_10, 1); -lean_inc(x_11); -lean_dec(x_10); -x_12 = l_Lean_Elab_Term_getMainModule___rarg(x_11); -x_13 = !lean_is_exclusive(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_14 = lean_ctor_get(x_12, 0); -lean_dec(x_14); -x_15 = lean_unsigned_to_nat(0u); -x_16 = l_Array_empty___closed__1; -x_17 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2, x_2, x_15, x_16); +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; +x_39 = lean_unsigned_to_nat(0u); +x_40 = l_Array_empty___closed__1; +x_41 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2, x_2, x_39, x_40); lean_dec(x_2); +x_42 = l_Lean_nullKind___closed__2; +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +x_44 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; +x_45 = lean_array_push(x_44, x_43); +x_46 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3; +x_47 = lean_array_push(x_45, x_46); +x_48 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +x_50 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_51 = lean_array_push(x_50, x_49); +x_52 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_51); +x_54 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_54, 0, x_53); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_5); +return x_55; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_array_fget(x_2, x_3); +lean_inc(x_4); +lean_inc(x_56); +x_57 = l___private_Init_Lean_Elab_DoNotation_6__expandLiftMethod(x_56, x_4, x_5); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +if (lean_obj_tag(x_58) == 0) +{ +uint8_t x_59; +x_59 = !lean_is_exclusive(x_57); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; +x_60 = lean_ctor_get(x_57, 1); +x_61 = lean_ctor_get(x_57, 0); +lean_dec(x_61); +lean_inc(x_56); +x_62 = l_Lean_Syntax_getKind(x_56); +x_63 = l_Lean_Parser_Term_doLet___elambda__1___closed__2; +x_64 = lean_name_eq(x_62, x_63); +if (x_64 == 0) +{ +lean_object* x_65; uint8_t x_66; +lean_free_object(x_57); +x_65 = l_Lean_Parser_Term_doPat___elambda__1___closed__2; +x_66 = lean_name_eq(x_62, x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_67 = lean_unsigned_to_nat(1u); +x_68 = lean_nat_sub(x_35, x_67); +lean_dec(x_35); +x_69 = lean_nat_dec_lt(x_3, x_68); +lean_dec(x_68); +if (x_69 == 0) +{ +lean_object* x_70; lean_object* x_71; +lean_dec(x_62); +lean_dec(x_56); +x_70 = lean_unsigned_to_nat(2u); +x_71 = lean_nat_add(x_3, x_70); +lean_dec(x_3); +x_3 = x_71; +x_5 = x_60; +goto _start; +} +else +{ +lean_object* x_73; uint8_t x_74; +x_73 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_74 = lean_name_eq(x_62, x_73); +lean_dec(x_62); +if (x_74 == 0) +{ +lean_object* x_75; lean_object* x_76; +lean_dec(x_56); +x_75 = lean_unsigned_to_nat(2u); +x_76 = lean_nat_add(x_3, x_75); +lean_dec(x_3); +x_3 = x_76; +x_5 = x_60; +goto _start; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 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; uint8_t x_114; +x_78 = lean_unsigned_to_nat(0u); +x_79 = l_Lean_Syntax_getArg(x_56, x_78); +lean_dec(x_56); +x_80 = lean_ctor_get(x_4, 1); +lean_inc(x_80); +x_81 = lean_ctor_get(x_4, 0); +lean_inc(x_81); +x_82 = lean_box(0); +x_83 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_84 = l_Lean_addMacroScope(x_81, x_83, x_80); +x_85 = lean_box(0); +x_86 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_87 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_87, 0, x_82); +lean_ctor_set(x_87, 1, x_86); +lean_ctor_set(x_87, 2, x_84); +lean_ctor_set(x_87, 3, x_85); +x_88 = l_Array_empty___closed__1; +x_89 = lean_array_push(x_88, x_87); +x_90 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_91 = lean_array_push(x_89, x_90); +x_92 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +x_93 = lean_array_push(x_91, x_92); +x_94 = lean_array_push(x_93, x_79); +x_95 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_96 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_94); +x_97 = lean_array_push(x_88, x_96); +x_98 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_99 = lean_array_push(x_97, x_98); +x_100 = lean_box(0); +x_101 = lean_array_push(x_99, x_100); +x_102 = l_Lean_nullKind___closed__2; +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_101); +x_104 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_105 = lean_array_push(x_104, x_103); +x_106 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_105); +x_108 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_107); +lean_dec(x_107); +x_109 = l_Lean_Syntax_inhabited; +x_110 = lean_array_get(x_109, x_108, x_78); +lean_dec(x_108); +x_111 = lean_array_set(x_2, x_3, x_110); +x_112 = lean_unsigned_to_nat(2u); +x_113 = lean_nat_add(x_3, x_112); +lean_dec(x_3); +x_114 = 1; +x_1 = x_114; +x_2 = x_111; +x_3 = x_113; +x_5 = x_60; +goto _start; +} +} +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; uint8_t x_126; +lean_dec(x_62); +x_116 = lean_unsigned_to_nat(0u); +x_117 = l_Lean_Syntax_getArg(x_56, x_116); +x_118 = lean_unsigned_to_nat(2u); +x_119 = l_Lean_Syntax_getArg(x_56, x_118); +x_120 = lean_unsigned_to_nat(3u); +x_121 = l_Lean_Syntax_getArg(x_56, x_120); +lean_dec(x_56); +x_122 = lean_nat_add(x_3, x_118); +x_123 = l_Array_extract___rarg(x_2, x_122, x_35); +lean_dec(x_35); +x_124 = lean_array_get_size(x_123); +x_125 = lean_unsigned_to_nat(1u); +x_126 = lean_nat_dec_eq(x_124, x_125); +lean_dec(x_124); +if (x_126 == 0) +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; 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; uint8_t x_144; +x_127 = lean_nat_add(x_60, x_125); +x_128 = lean_ctor_get(x_4, 0); +lean_inc(x_128); +lean_dec(x_4); +x_129 = lean_box(0); +x_130 = l_Array_empty___closed__1; +x_131 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_123, x_123, x_116, x_130); +lean_dec(x_123); +x_132 = l_Lean_nullKind___closed__2; +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_131); +x_134 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; +x_135 = lean_array_push(x_134, x_133); +x_136 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3; +x_137 = lean_array_push(x_135, x_136); +x_138 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; +x_139 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_137); +x_140 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_141 = lean_array_push(x_140, x_139); +x_142 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_143 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_141); +x_144 = l_Lean_Syntax_isNone(x_121); +if (x_144 == 0) +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; 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; +x_145 = l_Lean_Syntax_getArg(x_121, x_125); +lean_dec(x_121); +x_146 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_147 = l_Lean_addMacroScope(x_128, x_146, x_60); +x_148 = lean_box(0); +x_149 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_150 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_150, 0, x_129); +lean_ctor_set(x_150, 1, x_149); +lean_ctor_set(x_150, 2, x_147); +lean_ctor_set(x_150, 3, x_148); +x_151 = lean_array_push(x_130, x_150); +x_152 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_153 = lean_array_push(x_151, x_152); +x_154 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_153); +x_155 = lean_array_push(x_153, x_154); +x_156 = lean_array_push(x_155, x_119); +x_157 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_158 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_158, 0, x_157); +lean_ctor_set(x_158, 1, x_156); +x_159 = lean_array_push(x_130, x_158); +x_160 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_161 = lean_array_push(x_159, x_160); +x_162 = l_Lean_mkTermIdFromIdent___closed__2; +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_162); +lean_ctor_set(x_163, 1, x_153); +x_164 = lean_array_push(x_130, x_163); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_132); +lean_ctor_set(x_165, 1, x_164); +x_166 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; +x_167 = lean_array_push(x_166, x_165); +x_168 = lean_array_push(x_167, x_152); +x_169 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; +x_170 = lean_array_push(x_168, x_169); +x_171 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; +x_172 = lean_array_push(x_170, x_171); +x_173 = lean_array_push(x_130, x_117); +x_174 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_174, 0, x_132); +lean_ctor_set(x_174, 1, x_173); +x_175 = lean_array_push(x_130, x_174); +x_176 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_177 = lean_array_push(x_175, x_176); +x_178 = lean_array_push(x_177, x_143); +x_179 = l_Lean_Parser_Term_matchAlt___closed__2; +x_180 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_178); +x_181 = lean_array_push(x_130, x_180); +x_182 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; +x_183 = lean_array_push(x_181, x_182); +x_184 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5; +x_185 = lean_array_push(x_184, x_145); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_179); +lean_ctor_set(x_186, 1, x_185); +x_187 = lean_array_push(x_183, x_186); +x_188 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_132); +lean_ctor_set(x_188, 1, x_187); +x_189 = lean_array_push(x_172, x_188); +x_190 = l_Lean_Parser_Term_match___elambda__1___closed__2; +x_191 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_191, 0, x_190); +lean_ctor_set(x_191, 1, x_189); +x_192 = lean_array_push(x_130, x_191); +x_193 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_193); +lean_ctor_set(x_194, 1, x_192); +x_195 = lean_array_push(x_161, x_194); +x_196 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_196, 0, x_132); +lean_ctor_set(x_196, 1, x_195); +x_197 = lean_array_push(x_140, x_196); +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_142); +lean_ctor_set(x_198, 1, x_197); +x_6 = x_198; +x_7 = x_127; +goto block_34; +} +else +{ +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_dec(x_121); +x_199 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_200 = l_Lean_addMacroScope(x_128, x_199, x_60); +x_201 = lean_box(0); +x_202 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_203 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_203, 0, x_129); +lean_ctor_set(x_203, 1, x_202); +lean_ctor_set(x_203, 2, x_200); +lean_ctor_set(x_203, 3, x_201); +x_204 = lean_array_push(x_130, x_203); +x_205 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_206 = lean_array_push(x_204, x_205); +x_207 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_206); +x_208 = lean_array_push(x_206, x_207); +x_209 = lean_array_push(x_208, x_119); +x_210 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_211 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_209); +x_212 = lean_array_push(x_130, x_211); +x_213 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_214 = lean_array_push(x_212, x_213); +x_215 = l_Lean_mkTermIdFromIdent___closed__2; +x_216 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_206); +x_217 = lean_array_push(x_130, x_216); +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_132); +lean_ctor_set(x_218, 1, x_217); +x_219 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; +x_220 = lean_array_push(x_219, x_218); +x_221 = lean_array_push(x_220, x_205); +x_222 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; +x_223 = lean_array_push(x_221, x_222); +x_224 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; +x_225 = lean_array_push(x_223, x_224); +x_226 = lean_array_push(x_130, x_117); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_132); +lean_ctor_set(x_227, 1, x_226); +x_228 = lean_array_push(x_130, x_227); +x_229 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_230 = lean_array_push(x_228, x_229); +x_231 = lean_array_push(x_230, x_143); +x_232 = l_Lean_Parser_Term_matchAlt___closed__2; +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_231); +x_234 = lean_array_push(x_130, x_233); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_132); +lean_ctor_set(x_235, 1, x_234); +x_236 = lean_array_push(x_225, x_235); +x_237 = l_Lean_Parser_Term_match___elambda__1___closed__2; +x_238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_236); +x_239 = lean_array_push(x_130, x_238); +x_240 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_239); +x_242 = lean_array_push(x_214, x_241); +x_243 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_243, 0, x_132); +lean_ctor_set(x_243, 1, x_242); +x_244 = lean_array_push(x_140, x_243); +x_245 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_245, 0, x_142); +lean_ctor_set(x_245, 1, x_244); +x_6 = x_245; +x_7 = x_127; +goto block_34; +} +} +else +{ +lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; +x_246 = l_Lean_Syntax_inhabited; +x_247 = lean_array_get(x_246, x_123, x_116); +lean_dec(x_123); +x_248 = l_Lean_Syntax_getArg(x_247, x_116); +lean_dec(x_247); +x_249 = lean_nat_add(x_60, x_125); +x_250 = lean_ctor_get(x_4, 0); +lean_inc(x_250); +lean_dec(x_4); +x_251 = l_Lean_Syntax_isNone(x_121); +if (x_251 == 0) +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; 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; +x_252 = l_Lean_Syntax_getArg(x_121, x_125); +lean_dec(x_121); +x_253 = lean_box(0); +x_254 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_255 = l_Lean_addMacroScope(x_250, x_254, x_60); +x_256 = lean_box(0); +x_257 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_258 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_258, 0, x_253); +lean_ctor_set(x_258, 1, x_257); +lean_ctor_set(x_258, 2, x_255); +lean_ctor_set(x_258, 3, x_256); +x_259 = l_Array_empty___closed__1; +x_260 = lean_array_push(x_259, x_258); +x_261 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_262 = lean_array_push(x_260, x_261); +x_263 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_262); +x_264 = lean_array_push(x_262, x_263); +x_265 = lean_array_push(x_264, x_119); +x_266 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_266); +lean_ctor_set(x_267, 1, x_265); +x_268 = lean_array_push(x_259, x_267); +x_269 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_270 = lean_array_push(x_268, x_269); +x_271 = l_Lean_mkTermIdFromIdent___closed__2; +x_272 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_272, 0, x_271); +lean_ctor_set(x_272, 1, x_262); +x_273 = lean_array_push(x_259, x_272); +x_274 = l_Lean_nullKind___closed__2; +x_275 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_275, 0, x_274); +lean_ctor_set(x_275, 1, x_273); +x_276 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; +x_277 = lean_array_push(x_276, x_275); +x_278 = lean_array_push(x_277, x_261); +x_279 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; +x_280 = lean_array_push(x_278, x_279); +x_281 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; +x_282 = lean_array_push(x_280, x_281); +x_283 = lean_array_push(x_259, x_117); +x_284 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_284, 0, x_274); +lean_ctor_set(x_284, 1, x_283); +x_285 = lean_array_push(x_259, x_284); +x_286 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_287 = lean_array_push(x_285, x_286); +x_288 = lean_array_push(x_287, x_248); +x_289 = l_Lean_Parser_Term_matchAlt___closed__2; +x_290 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_290, 0, x_289); +lean_ctor_set(x_290, 1, x_288); +x_291 = lean_array_push(x_259, x_290); +x_292 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; +x_293 = lean_array_push(x_291, x_292); +x_294 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5; +x_295 = lean_array_push(x_294, x_252); +x_296 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_296, 0, x_289); +lean_ctor_set(x_296, 1, x_295); +x_297 = lean_array_push(x_293, x_296); +x_298 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_298, 0, x_274); +lean_ctor_set(x_298, 1, x_297); +x_299 = lean_array_push(x_282, x_298); +x_300 = l_Lean_Parser_Term_match___elambda__1___closed__2; +x_301 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_301, 0, x_300); +lean_ctor_set(x_301, 1, x_299); +x_302 = lean_array_push(x_259, x_301); +x_303 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_304 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_304, 0, x_303); +lean_ctor_set(x_304, 1, x_302); +x_305 = lean_array_push(x_270, x_304); +x_306 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_306, 0, x_274); +lean_ctor_set(x_306, 1, x_305); +x_307 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_308 = lean_array_push(x_307, x_306); +x_309 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_310 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_310, 0, x_309); +lean_ctor_set(x_310, 1, x_308); +x_6 = x_310; +x_7 = x_249; +goto block_34; +} +else +{ +lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_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_dec(x_121); +x_311 = lean_box(0); +x_312 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_313 = l_Lean_addMacroScope(x_250, x_312, x_60); +x_314 = lean_box(0); +x_315 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_316 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_316, 0, x_311); +lean_ctor_set(x_316, 1, x_315); +lean_ctor_set(x_316, 2, x_313); +lean_ctor_set(x_316, 3, x_314); +x_317 = l_Array_empty___closed__1; +x_318 = lean_array_push(x_317, x_316); +x_319 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_320 = lean_array_push(x_318, x_319); +x_321 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_320); +x_322 = lean_array_push(x_320, x_321); +x_323 = lean_array_push(x_322, x_119); +x_324 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_325 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_325, 0, x_324); +lean_ctor_set(x_325, 1, x_323); +x_326 = lean_array_push(x_317, x_325); +x_327 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_328 = lean_array_push(x_326, x_327); +x_329 = l_Lean_mkTermIdFromIdent___closed__2; +x_330 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_330, 0, x_329); +lean_ctor_set(x_330, 1, x_320); +x_331 = lean_array_push(x_317, x_330); +x_332 = l_Lean_nullKind___closed__2; +x_333 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_333, 0, x_332); +lean_ctor_set(x_333, 1, x_331); +x_334 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; +x_335 = lean_array_push(x_334, x_333); +x_336 = lean_array_push(x_335, x_319); +x_337 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; +x_338 = lean_array_push(x_336, x_337); +x_339 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; +x_340 = lean_array_push(x_338, x_339); +x_341 = lean_array_push(x_317, x_117); +x_342 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_342, 0, x_332); +lean_ctor_set(x_342, 1, x_341); +x_343 = lean_array_push(x_317, x_342); +x_344 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_345 = lean_array_push(x_343, x_344); +x_346 = lean_array_push(x_345, x_248); +x_347 = l_Lean_Parser_Term_matchAlt___closed__2; +x_348 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_348, 0, x_347); +lean_ctor_set(x_348, 1, x_346); +x_349 = lean_array_push(x_317, x_348); +x_350 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_350, 0, x_332); +lean_ctor_set(x_350, 1, x_349); +x_351 = lean_array_push(x_340, x_350); +x_352 = l_Lean_Parser_Term_match___elambda__1___closed__2; +x_353 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_353, 0, x_352); +lean_ctor_set(x_353, 1, x_351); +x_354 = lean_array_push(x_317, x_353); +x_355 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_356 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_356, 0, x_355); +lean_ctor_set(x_356, 1, x_354); +x_357 = lean_array_push(x_328, x_356); +x_358 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_358, 0, x_332); +lean_ctor_set(x_358, 1, x_357); +x_359 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_360 = lean_array_push(x_359, x_358); +x_361 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_362 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_362, 0, x_361); +lean_ctor_set(x_362, 1, x_360); +x_6 = x_362; +x_7 = x_249; +goto block_34; +} +} +} +} +else +{ +lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; uint8_t x_369; +lean_dec(x_62); +lean_dec(x_4); +x_363 = lean_unsigned_to_nat(1u); +x_364 = l_Lean_Syntax_getArg(x_56, x_363); +lean_dec(x_56); +x_365 = lean_unsigned_to_nat(2u); +x_366 = lean_nat_add(x_3, x_365); +x_367 = l_Array_extract___rarg(x_2, x_366, x_35); +lean_dec(x_35); +x_368 = lean_array_get_size(x_367); +x_369 = lean_nat_dec_eq(x_368, x_363); +lean_dec(x_368); +if (x_369 == 0) +{ +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; uint8_t x_392; +x_370 = lean_unsigned_to_nat(0u); +x_371 = l_Array_empty___closed__1; +x_372 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_367, x_367, x_370, x_371); +lean_dec(x_367); +x_373 = l_Lean_nullKind___closed__2; +x_374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_374, 0, x_373); +lean_ctor_set(x_374, 1, x_372); +x_375 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; +x_376 = lean_array_push(x_375, x_374); +x_377 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3; +x_378 = lean_array_push(x_376, x_377); +x_379 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; +x_380 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_380, 0, x_379); +lean_ctor_set(x_380, 1, x_378); +x_381 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_382 = lean_array_push(x_381, x_380); +x_383 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_384 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_384, 0, x_383); +lean_ctor_set(x_384, 1, x_382); +x_385 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_386 = lean_array_push(x_385, x_364); +x_387 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_388 = lean_array_push(x_386, x_387); +x_389 = lean_array_push(x_388, x_384); +x_390 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_391 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_391, 0, x_390); +lean_ctor_set(x_391, 1, x_389); +x_392 = lean_nat_dec_eq(x_3, x_370); +if (x_392 == 0) +{ +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; +x_393 = l_Array_extract___rarg(x_2, x_370, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_394 = l_Lean_mkOptionalNode___closed__2; +x_395 = lean_array_push(x_394, x_391); +x_396 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_397 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_397, 0, x_396); +lean_ctor_set(x_397, 1, x_395); +x_398 = lean_array_push(x_393, x_397); +x_399 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_398, x_398, x_370, x_371); +lean_dec(x_398); +x_400 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_400, 0, x_373); +lean_ctor_set(x_400, 1, x_399); +x_401 = lean_array_push(x_375, x_400); +x_402 = lean_array_push(x_401, x_377); +x_403 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_403, 0, x_379); +lean_ctor_set(x_403, 1, x_402); +x_404 = lean_array_push(x_381, x_403); +x_405 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_405, 0, x_383); +lean_ctor_set(x_405, 1, x_404); +x_406 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_406, 0, x_405); +lean_ctor_set(x_57, 0, x_406); +return x_57; +} +else +{ +lean_object* x_407; +lean_dec(x_3); +lean_dec(x_2); +x_407 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_407, 0, x_391); +lean_ctor_set(x_57, 0, x_407); +return x_57; +} +} +else +{ +lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; uint8_t x_419; +x_408 = l_Lean_Syntax_inhabited; +x_409 = lean_unsigned_to_nat(0u); +x_410 = lean_array_get(x_408, x_367, x_409); +lean_dec(x_367); +x_411 = l_Lean_Syntax_getArg(x_410, x_409); +lean_dec(x_410); +x_412 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_413 = lean_array_push(x_412, x_364); +x_414 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_415 = lean_array_push(x_413, x_414); +x_416 = lean_array_push(x_415, x_411); +x_417 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_418 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_418, 0, x_417); +lean_ctor_set(x_418, 1, x_416); +x_419 = lean_nat_dec_eq(x_3, x_409); +if (x_419 == 0) +{ +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; +x_420 = l_Array_extract___rarg(x_2, x_409, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_421 = l_Lean_mkOptionalNode___closed__2; +x_422 = lean_array_push(x_421, x_418); +x_423 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_424 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_424, 0, x_423); +lean_ctor_set(x_424, 1, x_422); +x_425 = lean_array_push(x_420, x_424); +x_426 = l_Array_empty___closed__1; +x_427 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_425, x_425, x_409, x_426); +lean_dec(x_425); +x_428 = l_Lean_nullKind___closed__2; +x_429 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_429, 0, x_428); +lean_ctor_set(x_429, 1, x_427); +x_430 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; +x_431 = lean_array_push(x_430, x_429); +x_432 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3; +x_433 = lean_array_push(x_431, x_432); +x_434 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; +x_435 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_435, 0, x_434); +lean_ctor_set(x_435, 1, x_433); +x_436 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_437 = lean_array_push(x_436, x_435); +x_438 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_439 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_439, 0, x_438); +lean_ctor_set(x_439, 1, x_437); +x_440 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_440, 0, x_439); +lean_ctor_set(x_57, 0, x_440); +return x_57; +} +else +{ +lean_object* x_441; +lean_dec(x_3); +lean_dec(x_2); +x_441 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_441, 0, x_418); +lean_ctor_set(x_57, 0, x_441); +return x_57; +} +} +} +} +else +{ +lean_object* x_442; lean_object* x_443; lean_object* x_444; uint8_t x_445; +x_442 = lean_ctor_get(x_57, 1); +lean_inc(x_442); +lean_dec(x_57); +lean_inc(x_56); +x_443 = l_Lean_Syntax_getKind(x_56); +x_444 = l_Lean_Parser_Term_doLet___elambda__1___closed__2; +x_445 = lean_name_eq(x_443, x_444); +if (x_445 == 0) +{ +lean_object* x_446; uint8_t x_447; +x_446 = l_Lean_Parser_Term_doPat___elambda__1___closed__2; +x_447 = lean_name_eq(x_443, x_446); +if (x_447 == 0) +{ +lean_object* x_448; lean_object* x_449; uint8_t x_450; +x_448 = lean_unsigned_to_nat(1u); +x_449 = lean_nat_sub(x_35, x_448); +lean_dec(x_35); +x_450 = lean_nat_dec_lt(x_3, x_449); +lean_dec(x_449); +if (x_450 == 0) +{ +lean_object* x_451; lean_object* x_452; +lean_dec(x_443); +lean_dec(x_56); +x_451 = lean_unsigned_to_nat(2u); +x_452 = lean_nat_add(x_3, x_451); +lean_dec(x_3); +x_3 = x_452; +x_5 = x_442; +goto _start; +} +else +{ +lean_object* x_454; uint8_t x_455; +x_454 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_455 = lean_name_eq(x_443, x_454); +lean_dec(x_443); +if (x_455 == 0) +{ +lean_object* x_456; lean_object* x_457; +lean_dec(x_56); +x_456 = lean_unsigned_to_nat(2u); +x_457 = lean_nat_add(x_3, x_456); +lean_dec(x_3); +x_3 = x_457; +x_5 = x_442; +goto _start; +} +else +{ +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; uint8_t x_495; +x_459 = lean_unsigned_to_nat(0u); +x_460 = l_Lean_Syntax_getArg(x_56, x_459); +lean_dec(x_56); +x_461 = lean_ctor_get(x_4, 1); +lean_inc(x_461); +x_462 = lean_ctor_get(x_4, 0); +lean_inc(x_462); +x_463 = lean_box(0); +x_464 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_465 = l_Lean_addMacroScope(x_462, x_464, x_461); +x_466 = lean_box(0); +x_467 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_468 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_468, 0, x_463); +lean_ctor_set(x_468, 1, x_467); +lean_ctor_set(x_468, 2, x_465); +lean_ctor_set(x_468, 3, x_466); +x_469 = l_Array_empty___closed__1; +x_470 = lean_array_push(x_469, x_468); +x_471 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_472 = lean_array_push(x_470, x_471); +x_473 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +x_474 = lean_array_push(x_472, x_473); +x_475 = lean_array_push(x_474, x_460); +x_476 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_477 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_477, 0, x_476); +lean_ctor_set(x_477, 1, x_475); +x_478 = lean_array_push(x_469, x_477); +x_479 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_480 = lean_array_push(x_478, x_479); +x_481 = lean_box(0); +x_482 = lean_array_push(x_480, x_481); +x_483 = l_Lean_nullKind___closed__2; +x_484 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_484, 0, x_483); +lean_ctor_set(x_484, 1, x_482); +x_485 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_486 = lean_array_push(x_485, x_484); +x_487 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_488 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_488, 0, x_487); +lean_ctor_set(x_488, 1, x_486); +x_489 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_488); +lean_dec(x_488); +x_490 = l_Lean_Syntax_inhabited; +x_491 = lean_array_get(x_490, x_489, x_459); +lean_dec(x_489); +x_492 = lean_array_set(x_2, x_3, x_491); +x_493 = lean_unsigned_to_nat(2u); +x_494 = lean_nat_add(x_3, x_493); +lean_dec(x_3); +x_495 = 1; +x_1 = x_495; +x_2 = x_492; +x_3 = x_494; +x_5 = x_442; +goto _start; +} +} +} +else +{ +lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; uint8_t x_507; +lean_dec(x_443); +x_497 = lean_unsigned_to_nat(0u); +x_498 = l_Lean_Syntax_getArg(x_56, x_497); +x_499 = lean_unsigned_to_nat(2u); +x_500 = l_Lean_Syntax_getArg(x_56, x_499); +x_501 = lean_unsigned_to_nat(3u); +x_502 = l_Lean_Syntax_getArg(x_56, x_501); +lean_dec(x_56); +x_503 = lean_nat_add(x_3, x_499); +x_504 = l_Array_extract___rarg(x_2, x_503, x_35); +lean_dec(x_35); +x_505 = lean_array_get_size(x_504); +x_506 = lean_unsigned_to_nat(1u); +x_507 = lean_nat_dec_eq(x_505, x_506); +lean_dec(x_505); +if (x_507 == 0) +{ +lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; uint8_t x_525; +x_508 = lean_nat_add(x_442, x_506); +x_509 = lean_ctor_get(x_4, 0); +lean_inc(x_509); +lean_dec(x_4); +x_510 = lean_box(0); +x_511 = l_Array_empty___closed__1; +x_512 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_504, x_504, x_497, x_511); +lean_dec(x_504); +x_513 = l_Lean_nullKind___closed__2; +x_514 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_514, 0, x_513); +lean_ctor_set(x_514, 1, x_512); +x_515 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; +x_516 = lean_array_push(x_515, x_514); +x_517 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3; +x_518 = lean_array_push(x_516, x_517); +x_519 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; +x_520 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_520, 0, x_519); +lean_ctor_set(x_520, 1, x_518); +x_521 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_522 = lean_array_push(x_521, x_520); +x_523 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_524 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_524, 0, x_523); +lean_ctor_set(x_524, 1, x_522); +x_525 = l_Lean_Syntax_isNone(x_502); +if (x_525 == 0) +{ +lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; +x_526 = l_Lean_Syntax_getArg(x_502, x_506); +lean_dec(x_502); +x_527 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_528 = l_Lean_addMacroScope(x_509, x_527, x_442); +x_529 = lean_box(0); +x_530 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_531 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_531, 0, x_510); +lean_ctor_set(x_531, 1, x_530); +lean_ctor_set(x_531, 2, x_528); +lean_ctor_set(x_531, 3, x_529); +x_532 = lean_array_push(x_511, x_531); +x_533 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_534 = lean_array_push(x_532, x_533); +x_535 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_534); +x_536 = lean_array_push(x_534, x_535); +x_537 = lean_array_push(x_536, x_500); +x_538 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_539 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_539, 0, x_538); +lean_ctor_set(x_539, 1, x_537); +x_540 = lean_array_push(x_511, x_539); +x_541 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_542 = lean_array_push(x_540, x_541); +x_543 = l_Lean_mkTermIdFromIdent___closed__2; +x_544 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_544, 0, x_543); +lean_ctor_set(x_544, 1, x_534); +x_545 = lean_array_push(x_511, x_544); +x_546 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_546, 0, x_513); +lean_ctor_set(x_546, 1, x_545); +x_547 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; +x_548 = lean_array_push(x_547, x_546); +x_549 = lean_array_push(x_548, x_533); +x_550 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; +x_551 = lean_array_push(x_549, x_550); +x_552 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; +x_553 = lean_array_push(x_551, x_552); +x_554 = lean_array_push(x_511, x_498); +x_555 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_555, 0, x_513); +lean_ctor_set(x_555, 1, x_554); +x_556 = lean_array_push(x_511, x_555); +x_557 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_558 = lean_array_push(x_556, x_557); +x_559 = lean_array_push(x_558, x_524); +x_560 = l_Lean_Parser_Term_matchAlt___closed__2; +x_561 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_561, 0, x_560); +lean_ctor_set(x_561, 1, x_559); +x_562 = lean_array_push(x_511, x_561); +x_563 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; +x_564 = lean_array_push(x_562, x_563); +x_565 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5; +x_566 = lean_array_push(x_565, x_526); +x_567 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_567, 0, x_560); +lean_ctor_set(x_567, 1, x_566); +x_568 = lean_array_push(x_564, x_567); +x_569 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_569, 0, x_513); +lean_ctor_set(x_569, 1, x_568); +x_570 = lean_array_push(x_553, x_569); +x_571 = l_Lean_Parser_Term_match___elambda__1___closed__2; +x_572 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_572, 0, x_571); +lean_ctor_set(x_572, 1, x_570); +x_573 = lean_array_push(x_511, x_572); +x_574 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_575 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_575, 0, x_574); +lean_ctor_set(x_575, 1, x_573); +x_576 = lean_array_push(x_542, x_575); +x_577 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_577, 0, x_513); +lean_ctor_set(x_577, 1, x_576); +x_578 = lean_array_push(x_521, x_577); +x_579 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_579, 0, x_523); +lean_ctor_set(x_579, 1, x_578); +x_6 = x_579; +x_7 = x_508; +goto block_34; +} +else +{ +lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; +lean_dec(x_502); +x_580 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_581 = l_Lean_addMacroScope(x_509, x_580, x_442); +x_582 = lean_box(0); +x_583 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_584 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_584, 0, x_510); +lean_ctor_set(x_584, 1, x_583); +lean_ctor_set(x_584, 2, x_581); +lean_ctor_set(x_584, 3, x_582); +x_585 = lean_array_push(x_511, x_584); +x_586 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_587 = lean_array_push(x_585, x_586); +x_588 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_587); +x_589 = lean_array_push(x_587, x_588); +x_590 = lean_array_push(x_589, x_500); +x_591 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_592 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_592, 0, x_591); +lean_ctor_set(x_592, 1, x_590); +x_593 = lean_array_push(x_511, x_592); +x_594 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_595 = lean_array_push(x_593, x_594); +x_596 = l_Lean_mkTermIdFromIdent___closed__2; +x_597 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_597, 0, x_596); +lean_ctor_set(x_597, 1, x_587); +x_598 = lean_array_push(x_511, x_597); +x_599 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_599, 0, x_513); +lean_ctor_set(x_599, 1, x_598); +x_600 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; +x_601 = lean_array_push(x_600, x_599); +x_602 = lean_array_push(x_601, x_586); +x_603 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; +x_604 = lean_array_push(x_602, x_603); +x_605 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; +x_606 = lean_array_push(x_604, x_605); +x_607 = lean_array_push(x_511, x_498); +x_608 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_608, 0, x_513); +lean_ctor_set(x_608, 1, x_607); +x_609 = lean_array_push(x_511, x_608); +x_610 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_611 = lean_array_push(x_609, x_610); +x_612 = lean_array_push(x_611, x_524); +x_613 = l_Lean_Parser_Term_matchAlt___closed__2; +x_614 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_614, 0, x_613); +lean_ctor_set(x_614, 1, x_612); +x_615 = lean_array_push(x_511, x_614); +x_616 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_616, 0, x_513); +lean_ctor_set(x_616, 1, x_615); +x_617 = lean_array_push(x_606, x_616); +x_618 = l_Lean_Parser_Term_match___elambda__1___closed__2; +x_619 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_619, 0, x_618); +lean_ctor_set(x_619, 1, x_617); +x_620 = lean_array_push(x_511, x_619); +x_621 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_622 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_622, 0, x_621); +lean_ctor_set(x_622, 1, x_620); +x_623 = lean_array_push(x_595, x_622); +x_624 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_624, 0, x_513); +lean_ctor_set(x_624, 1, x_623); +x_625 = lean_array_push(x_521, x_624); +x_626 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_626, 0, x_523); +lean_ctor_set(x_626, 1, x_625); +x_6 = x_626; +x_7 = x_508; +goto block_34; +} +} +else +{ +lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; uint8_t x_632; +x_627 = l_Lean_Syntax_inhabited; +x_628 = lean_array_get(x_627, x_504, x_497); +lean_dec(x_504); +x_629 = l_Lean_Syntax_getArg(x_628, x_497); +lean_dec(x_628); +x_630 = lean_nat_add(x_442, x_506); +x_631 = lean_ctor_get(x_4, 0); +lean_inc(x_631); +lean_dec(x_4); +x_632 = l_Lean_Syntax_isNone(x_502); +if (x_632 == 0) +{ +lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; +x_633 = l_Lean_Syntax_getArg(x_502, x_506); +lean_dec(x_502); +x_634 = lean_box(0); +x_635 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_636 = l_Lean_addMacroScope(x_631, x_635, x_442); +x_637 = lean_box(0); +x_638 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_639 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_639, 0, x_634); +lean_ctor_set(x_639, 1, x_638); +lean_ctor_set(x_639, 2, x_636); +lean_ctor_set(x_639, 3, x_637); +x_640 = l_Array_empty___closed__1; +x_641 = lean_array_push(x_640, x_639); +x_642 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_643 = lean_array_push(x_641, x_642); +x_644 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_643); +x_645 = lean_array_push(x_643, x_644); +x_646 = lean_array_push(x_645, x_500); +x_647 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_648 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_648, 0, x_647); +lean_ctor_set(x_648, 1, x_646); +x_649 = lean_array_push(x_640, x_648); +x_650 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_651 = lean_array_push(x_649, x_650); +x_652 = l_Lean_mkTermIdFromIdent___closed__2; +x_653 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_653, 0, x_652); +lean_ctor_set(x_653, 1, x_643); +x_654 = lean_array_push(x_640, x_653); +x_655 = l_Lean_nullKind___closed__2; +x_656 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_656, 0, x_655); +lean_ctor_set(x_656, 1, x_654); +x_657 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; +x_658 = lean_array_push(x_657, x_656); +x_659 = lean_array_push(x_658, x_642); +x_660 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; +x_661 = lean_array_push(x_659, x_660); +x_662 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; +x_663 = lean_array_push(x_661, x_662); +x_664 = lean_array_push(x_640, x_498); +x_665 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_665, 0, x_655); +lean_ctor_set(x_665, 1, x_664); +x_666 = lean_array_push(x_640, x_665); +x_667 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_668 = lean_array_push(x_666, x_667); +x_669 = lean_array_push(x_668, x_629); +x_670 = l_Lean_Parser_Term_matchAlt___closed__2; +x_671 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_671, 0, x_670); +lean_ctor_set(x_671, 1, x_669); +x_672 = lean_array_push(x_640, x_671); +x_673 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; +x_674 = lean_array_push(x_672, x_673); +x_675 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5; +x_676 = lean_array_push(x_675, x_633); +x_677 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_677, 0, x_670); +lean_ctor_set(x_677, 1, x_676); +x_678 = lean_array_push(x_674, x_677); +x_679 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_679, 0, x_655); +lean_ctor_set(x_679, 1, x_678); +x_680 = lean_array_push(x_663, x_679); +x_681 = l_Lean_Parser_Term_match___elambda__1___closed__2; +x_682 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_682, 0, x_681); +lean_ctor_set(x_682, 1, x_680); +x_683 = lean_array_push(x_640, x_682); +x_684 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_685 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_685, 0, x_684); +lean_ctor_set(x_685, 1, x_683); +x_686 = lean_array_push(x_651, x_685); +x_687 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_687, 0, x_655); +lean_ctor_set(x_687, 1, x_686); +x_688 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_689 = lean_array_push(x_688, x_687); +x_690 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_691 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_691, 0, x_690); +lean_ctor_set(x_691, 1, x_689); +x_6 = x_691; +x_7 = x_630; +goto block_34; +} +else +{ +lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; +lean_dec(x_502); +x_692 = lean_box(0); +x_693 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; +x_694 = l_Lean_addMacroScope(x_631, x_693, x_442); +x_695 = lean_box(0); +x_696 = l_Lean_Elab_Term_elabLetDecl___closed__4; +x_697 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_697, 0, x_692); +lean_ctor_set(x_697, 1, x_696); +lean_ctor_set(x_697, 2, x_694); +lean_ctor_set(x_697, 3, x_695); +x_698 = l_Array_empty___closed__1; +x_699 = lean_array_push(x_698, x_697); +x_700 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_701 = lean_array_push(x_699, x_700); +x_702 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; +lean_inc(x_701); +x_703 = lean_array_push(x_701, x_702); +x_704 = lean_array_push(x_703, x_500); +x_705 = l_Lean_Parser_Term_doId___elambda__1___closed__2; +x_706 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_706, 0, x_705); +lean_ctor_set(x_706, 1, x_704); +x_707 = lean_array_push(x_698, x_706); +x_708 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_709 = lean_array_push(x_707, x_708); +x_710 = l_Lean_mkTermIdFromIdent___closed__2; +x_711 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_711, 0, x_710); +lean_ctor_set(x_711, 1, x_701); +x_712 = lean_array_push(x_698, x_711); +x_713 = l_Lean_nullKind___closed__2; +x_714 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_714, 0, x_713); +lean_ctor_set(x_714, 1, x_712); +x_715 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; +x_716 = lean_array_push(x_715, x_714); +x_717 = lean_array_push(x_716, x_700); +x_718 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; +x_719 = lean_array_push(x_717, x_718); +x_720 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; +x_721 = lean_array_push(x_719, x_720); +x_722 = lean_array_push(x_698, x_498); +x_723 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_723, 0, x_713); +lean_ctor_set(x_723, 1, x_722); +x_724 = lean_array_push(x_698, x_723); +x_725 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_726 = lean_array_push(x_724, x_725); +x_727 = lean_array_push(x_726, x_629); +x_728 = l_Lean_Parser_Term_matchAlt___closed__2; +x_729 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_729, 0, x_728); +lean_ctor_set(x_729, 1, x_727); +x_730 = lean_array_push(x_698, x_729); +x_731 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_731, 0, x_713); +lean_ctor_set(x_731, 1, x_730); +x_732 = lean_array_push(x_721, x_731); +x_733 = l_Lean_Parser_Term_match___elambda__1___closed__2; +x_734 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_734, 0, x_733); +lean_ctor_set(x_734, 1, x_732); +x_735 = lean_array_push(x_698, x_734); +x_736 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_737 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_737, 0, x_736); +lean_ctor_set(x_737, 1, x_735); +x_738 = lean_array_push(x_709, x_737); +x_739 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_739, 0, x_713); +lean_ctor_set(x_739, 1, x_738); +x_740 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_741 = lean_array_push(x_740, x_739); +x_742 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_743 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_743, 0, x_742); +lean_ctor_set(x_743, 1, x_741); +x_6 = x_743; +x_7 = x_630; +goto block_34; +} +} +} +} +else +{ +lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; uint8_t x_750; +lean_dec(x_443); +lean_dec(x_4); +x_744 = lean_unsigned_to_nat(1u); +x_745 = l_Lean_Syntax_getArg(x_56, x_744); +lean_dec(x_56); +x_746 = lean_unsigned_to_nat(2u); +x_747 = lean_nat_add(x_3, x_746); +x_748 = l_Array_extract___rarg(x_2, x_747, x_35); +lean_dec(x_35); +x_749 = lean_array_get_size(x_748); +x_750 = lean_nat_dec_eq(x_749, x_744); +lean_dec(x_749); +if (x_750 == 0) +{ +lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; uint8_t x_773; +x_751 = lean_unsigned_to_nat(0u); +x_752 = l_Array_empty___closed__1; +x_753 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_748, x_748, x_751, x_752); +lean_dec(x_748); +x_754 = l_Lean_nullKind___closed__2; +x_755 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_755, 0, x_754); +lean_ctor_set(x_755, 1, x_753); +x_756 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; +x_757 = lean_array_push(x_756, x_755); +x_758 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3; +x_759 = lean_array_push(x_757, x_758); +x_760 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; +x_761 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_761, 0, x_760); +lean_ctor_set(x_761, 1, x_759); +x_762 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_763 = lean_array_push(x_762, x_761); +x_764 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_765 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_765, 0, x_764); +lean_ctor_set(x_765, 1, x_763); +x_766 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_767 = lean_array_push(x_766, x_745); +x_768 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_769 = lean_array_push(x_767, x_768); +x_770 = lean_array_push(x_769, x_765); +x_771 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_772 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_772, 0, x_771); +lean_ctor_set(x_772, 1, x_770); +x_773 = lean_nat_dec_eq(x_3, x_751); +if (x_773 == 0) +{ +lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; +x_774 = l_Array_extract___rarg(x_2, x_751, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_775 = l_Lean_mkOptionalNode___closed__2; +x_776 = lean_array_push(x_775, x_772); +x_777 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_778 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_778, 0, x_777); +lean_ctor_set(x_778, 1, x_776); +x_779 = lean_array_push(x_774, x_778); +x_780 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_779, x_779, x_751, x_752); +lean_dec(x_779); +x_781 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_781, 0, x_754); +lean_ctor_set(x_781, 1, x_780); +x_782 = lean_array_push(x_756, x_781); +x_783 = lean_array_push(x_782, x_758); +x_784 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_784, 0, x_760); +lean_ctor_set(x_784, 1, x_783); +x_785 = lean_array_push(x_762, x_784); +x_786 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_786, 0, x_764); +lean_ctor_set(x_786, 1, x_785); +x_787 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_787, 0, x_786); +x_788 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_788, 0, x_787); +lean_ctor_set(x_788, 1, x_442); +return x_788; +} +else +{ +lean_object* x_789; lean_object* x_790; +lean_dec(x_3); +lean_dec(x_2); +x_789 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_789, 0, x_772); +x_790 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_790, 0, x_789); +lean_ctor_set(x_790, 1, x_442); +return x_790; +} +} +else +{ +lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; uint8_t x_802; +x_791 = l_Lean_Syntax_inhabited; +x_792 = lean_unsigned_to_nat(0u); +x_793 = lean_array_get(x_791, x_748, x_792); +lean_dec(x_748); +x_794 = l_Lean_Syntax_getArg(x_793, x_792); +lean_dec(x_793); +x_795 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_796 = lean_array_push(x_795, x_745); +x_797 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_798 = lean_array_push(x_796, x_797); +x_799 = lean_array_push(x_798, x_794); +x_800 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_801 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_801, 0, x_800); +lean_ctor_set(x_801, 1, x_799); +x_802 = lean_nat_dec_eq(x_3, x_792); +if (x_802 == 0) +{ +lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; +x_803 = l_Array_extract___rarg(x_2, x_792, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_804 = l_Lean_mkOptionalNode___closed__2; +x_805 = lean_array_push(x_804, x_801); +x_806 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_807 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_807, 0, x_806); +lean_ctor_set(x_807, 1, x_805); +x_808 = lean_array_push(x_803, x_807); +x_809 = l_Array_empty___closed__1; +x_810 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_808, x_808, x_792, x_809); +lean_dec(x_808); +x_811 = l_Lean_nullKind___closed__2; +x_812 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_812, 0, x_811); +lean_ctor_set(x_812, 1, x_810); +x_813 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; +x_814 = lean_array_push(x_813, x_812); +x_815 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3; +x_816 = lean_array_push(x_814, x_815); +x_817 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; +x_818 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_818, 0, x_817); +lean_ctor_set(x_818, 1, x_816); +x_819 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +x_820 = lean_array_push(x_819, x_818); +x_821 = l_Lean_Parser_Term_do___elambda__1___closed__2; +x_822 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_822, 0, x_821); +lean_ctor_set(x_822, 1, x_820); +x_823 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_823, 0, x_822); +x_824 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_824, 0, x_823); +lean_ctor_set(x_824, 1, x_442); +return x_824; +} +else +{ +lean_object* x_825; lean_object* x_826; +lean_dec(x_3); +lean_dec(x_2); +x_825 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_825, 0, x_801); +x_826 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_826, 0, x_825); +lean_ctor_set(x_826, 1, x_442); +return x_826; +} +} +} +} +} +else +{ +lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; uint8_t x_836; +lean_dec(x_56); +x_827 = lean_ctor_get(x_57, 1); +lean_inc(x_827); +lean_dec(x_57); +x_828 = lean_ctor_get(x_58, 0); +lean_inc(x_828); +lean_dec(x_58); +x_829 = lean_unsigned_to_nat(1u); +x_830 = lean_nat_add(x_3, x_829); +x_831 = l_Array_extract___rarg(x_2, x_830, x_35); +lean_dec(x_35); +x_832 = lean_unsigned_to_nat(0u); +x_833 = l_Array_extract___rarg(x_2, x_832, x_3); +lean_dec(x_2); +x_834 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_828, x_828, x_832, x_833); +lean_dec(x_828); +x_835 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_831, x_831, x_832, x_834); +lean_dec(x_831); +x_836 = 1; +x_1 = x_836; +x_2 = x_835; +x_5 = x_827; +goto _start; +} +} +block_34: +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_unsigned_to_nat(0u); +x_9 = lean_nat_dec_eq(x_3, x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 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; +x_10 = l_Array_extract___rarg(x_2, x_8, x_3); +lean_dec(x_3); +lean_dec(x_2); +x_11 = l_Lean_mkOptionalNode___closed__2; +x_12 = lean_array_push(x_11, x_6); +x_13 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +x_15 = lean_array_push(x_10, x_14); +x_16 = l_Array_empty___closed__1; +x_17 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_15, x_15, x_8, x_16); +lean_dec(x_15); x_18 = l_Lean_nullKind___closed__2; x_19 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_19, 0, x_18); lean_ctor_set(x_19, 1, x_17); -x_20 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; +x_20 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; x_21 = lean_array_push(x_20, x_19); -x_22 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; +x_22 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3; x_23 = lean_array_push(x_21, x_22); x_24 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; x_25 = lean_alloc_ctor(1, 2, 0); @@ -2414,2855 +3492,65 @@ lean_ctor_set(x_29, 0, x_28); lean_ctor_set(x_29, 1, x_27); x_30 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_12, 0, x_30); -return x_12; +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_7); +return x_31; } else { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_31 = lean_ctor_get(x_12, 1); -lean_inc(x_31); -lean_dec(x_12); -x_32 = lean_unsigned_to_nat(0u); -x_33 = l_Array_empty___closed__1; -x_34 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2, x_2, x_32, x_33); -lean_dec(x_2); -x_35 = l_Lean_nullKind___closed__2; -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_34); -x_37 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_38 = lean_array_push(x_37, x_36); -x_39 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_40 = lean_array_push(x_38, x_39); -x_41 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -x_43 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_44 = lean_array_push(x_43, x_42); -x_45 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -x_47 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_47, 0, x_46); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_31); -return x_48; -} -} -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_array_fget(x_2, x_3); -lean_inc(x_4); -lean_inc(x_49); -x_50 = l___private_Init_Lean_Elab_DoNotation_6__expandLiftMethod(x_49, x_4, x_5); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_50)) { - lean_ctor_release(x_50, 0); - lean_ctor_release(x_50, 1); - x_53 = x_50; -} else { - lean_dec_ref(x_50); - x_53 = lean_box(0); -} -lean_inc(x_49); -x_54 = l_Lean_Syntax_getKind(x_49); -x_55 = l_Lean_Parser_Term_doLet___elambda__1___closed__2; -x_56 = lean_name_eq(x_54, x_55); -if (x_56 == 0) -{ -lean_object* x_57; uint8_t x_58; -x_57 = l_Lean_Parser_Term_doPat___elambda__1___closed__2; -x_58 = lean_name_eq(x_54, x_57); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -lean_dec(x_53); -x_59 = lean_unsigned_to_nat(1u); -x_60 = lean_nat_sub(x_6, x_59); -lean_dec(x_6); -x_61 = lean_nat_dec_lt(x_3, x_60); -lean_dec(x_60); -if (x_61 == 0) -{ -lean_object* x_62; lean_object* x_63; -lean_dec(x_54); -lean_dec(x_49); -x_62 = lean_unsigned_to_nat(2u); -x_63 = lean_nat_add(x_3, x_62); -lean_dec(x_3); -x_3 = x_63; -x_5 = x_52; -goto _start; -} -else -{ -lean_object* x_65; uint8_t x_66; -x_65 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_66 = lean_name_eq(x_54, x_65); -lean_dec(x_54); -if (x_66 == 0) -{ -lean_object* x_67; lean_object* x_68; -lean_dec(x_49); -x_67 = lean_unsigned_to_nat(2u); -x_68 = lean_nat_add(x_3, x_67); -lean_dec(x_3); -x_3 = x_68; -x_5 = x_52; -goto _start; -} -else -{ -lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; 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; uint8_t x_110; -x_70 = lean_unsigned_to_nat(0u); -x_71 = l_Lean_Syntax_getArg(x_49, x_70); -lean_dec(x_49); -x_72 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_52); -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -x_75 = l_Lean_Elab_Term_getMainModule___rarg(x_74); -x_76 = lean_ctor_get(x_75, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_75, 1); -lean_inc(x_77); -lean_dec(x_75); -x_78 = lean_box(0); -x_79 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_80 = l_Lean_addMacroScope(x_76, x_79, x_73); -x_81 = lean_box(0); -x_82 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_83 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_83, 0, x_78); -lean_ctor_set(x_83, 1, x_82); -lean_ctor_set(x_83, 2, x_80); -lean_ctor_set(x_83, 3, x_81); -x_84 = l_Array_empty___closed__1; -x_85 = lean_array_push(x_84, x_83); -x_86 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_87 = lean_array_push(x_85, x_86); -x_88 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -x_89 = lean_array_push(x_87, x_88); -x_90 = lean_array_push(x_89, x_71); -x_91 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_91); -lean_ctor_set(x_92, 1, x_90); -x_93 = lean_array_push(x_84, x_92); -x_94 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_95 = lean_array_push(x_93, x_94); -x_96 = lean_box(0); -x_97 = lean_array_push(x_95, x_96); -x_98 = l_Lean_nullKind___closed__2; -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -x_100 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_101 = lean_array_push(x_100, x_99); -x_102 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_101); -x_104 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_103); -lean_dec(x_103); -x_105 = l_Lean_Syntax_inhabited; -x_106 = lean_array_get(x_105, x_104, x_70); -lean_dec(x_104); -x_107 = lean_array_set(x_2, x_3, x_106); -x_108 = lean_unsigned_to_nat(2u); -x_109 = lean_nat_add(x_3, x_108); -lean_dec(x_3); -x_110 = 1; -x_1 = x_110; -x_2 = x_107; -x_3 = x_109; -x_5 = x_77; -goto _start; -} -} -} -else -{ -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; uint8_t x_122; -lean_dec(x_54); -x_112 = lean_unsigned_to_nat(0u); -x_113 = l_Lean_Syntax_getArg(x_49, x_112); -x_114 = lean_unsigned_to_nat(2u); -x_115 = l_Lean_Syntax_getArg(x_49, x_114); -x_116 = lean_unsigned_to_nat(3u); -x_117 = l_Lean_Syntax_getArg(x_49, x_116); -lean_dec(x_49); -x_118 = lean_nat_add(x_3, x_114); -x_119 = l_Array_extract___rarg(x_2, x_118, x_6); -lean_dec(x_6); -x_120 = lean_array_get_size(x_119); -x_121 = lean_unsigned_to_nat(1u); -x_122 = lean_nat_dec_eq(x_120, x_121); -lean_dec(x_120); -if (x_122 == 0) -{ -uint8_t x_123; -lean_dec(x_53); -x_123 = !lean_is_exclusive(x_52); -if (x_123 == 0) -{ -lean_object* x_124; lean_object* x_125; uint8_t x_126; -x_124 = lean_ctor_get(x_52, 5); -x_125 = lean_nat_add(x_124, x_121); -lean_ctor_set(x_52, 5, x_125); -x_126 = !lean_is_exclusive(x_4); -if (x_126 == 0) -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_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; uint8_t x_183; -x_127 = lean_ctor_get(x_4, 9); -lean_dec(x_127); -lean_ctor_set(x_4, 9, x_124); -x_128 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_52); -x_129 = lean_ctor_get(x_128, 1); -lean_inc(x_129); -lean_dec(x_128); -x_130 = l_Lean_Elab_Term_getMainModule___rarg(x_129); -x_131 = lean_ctor_get(x_130, 1); -lean_inc(x_131); -if (lean_is_exclusive(x_130)) { - lean_ctor_release(x_130, 0); - lean_ctor_release(x_130, 1); - x_132 = x_130; -} else { - lean_dec_ref(x_130); - x_132 = lean_box(0); -} -x_133 = lean_box(0); -x_134 = l_Array_empty___closed__1; -x_135 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_119, x_119, x_112, x_134); -lean_dec(x_119); -x_136 = l_Lean_nullKind___closed__2; -x_137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_135); -x_138 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_139 = lean_array_push(x_138, x_137); -x_140 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_141 = lean_array_push(x_139, x_140); -x_142 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_141); -x_144 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_145 = lean_array_push(x_144, x_143); -x_146 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_147 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_147, 0, x_146); -lean_ctor_set(x_147, 1, x_145); -x_183 = l_Lean_Syntax_isNone(x_117); -if (x_183 == 0) -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; 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; -x_184 = l_Lean_Syntax_getArg(x_117, x_121); -lean_dec(x_117); -x_185 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_131); -x_186 = lean_ctor_get(x_185, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_185, 1); -lean_inc(x_187); -lean_dec(x_185); -x_188 = l_Lean_Elab_Term_getMainModule___rarg(x_187); -x_189 = lean_ctor_get(x_188, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_188, 1); -lean_inc(x_190); -lean_dec(x_188); -x_191 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_192 = l_Lean_addMacroScope(x_189, x_191, x_186); -x_193 = lean_box(0); -x_194 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_195 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_195, 0, x_133); -lean_ctor_set(x_195, 1, x_194); -lean_ctor_set(x_195, 2, x_192); -lean_ctor_set(x_195, 3, x_193); -x_196 = lean_array_push(x_134, x_195); -x_197 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_198 = lean_array_push(x_196, x_197); -x_199 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_198); -x_200 = lean_array_push(x_198, x_199); -x_201 = lean_array_push(x_200, x_115); -x_202 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_203 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_203, 0, x_202); -lean_ctor_set(x_203, 1, x_201); -x_204 = lean_array_push(x_134, x_203); -x_205 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_206 = lean_array_push(x_204, x_205); -x_207 = l_Lean_mkTermIdFromIdent___closed__2; -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_207); -lean_ctor_set(x_208, 1, x_198); -x_209 = lean_array_push(x_134, x_208); -x_210 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_210, 0, x_136); -lean_ctor_set(x_210, 1, x_209); -x_211 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_212 = lean_array_push(x_211, x_210); -x_213 = lean_array_push(x_212, x_197); -x_214 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_215 = lean_array_push(x_213, x_214); -x_216 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_217 = lean_array_push(x_215, x_216); -x_218 = lean_array_push(x_134, x_113); -x_219 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_219, 0, x_136); -lean_ctor_set(x_219, 1, x_218); -x_220 = lean_array_push(x_134, x_219); -x_221 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_222 = lean_array_push(x_220, x_221); -x_223 = lean_array_push(x_222, x_147); -x_224 = l_Lean_Parser_Term_matchAlt___closed__2; -x_225 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_225, 0, x_224); -lean_ctor_set(x_225, 1, x_223); -x_226 = lean_array_push(x_134, x_225); -x_227 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; -x_228 = lean_array_push(x_226, x_227); -x_229 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5; -x_230 = lean_array_push(x_229, x_184); -x_231 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_231, 0, x_224); -lean_ctor_set(x_231, 1, x_230); -x_232 = lean_array_push(x_228, x_231); -x_233 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_233, 0, x_136); -lean_ctor_set(x_233, 1, x_232); -x_234 = lean_array_push(x_217, x_233); -x_235 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_236 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_236, 0, x_235); -lean_ctor_set(x_236, 1, x_234); -x_237 = lean_array_push(x_134, x_236); -x_238 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_237); -x_240 = lean_array_push(x_206, x_239); -x_241 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_241, 0, x_136); -lean_ctor_set(x_241, 1, x_240); -x_242 = lean_array_push(x_144, x_241); -x_243 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_243, 0, x_146); -lean_ctor_set(x_243, 1, x_242); -x_148 = x_243; -x_149 = x_190; -goto block_182; -} -else -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_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_dec(x_117); -x_244 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_131); -x_245 = lean_ctor_get(x_244, 0); -lean_inc(x_245); -x_246 = lean_ctor_get(x_244, 1); -lean_inc(x_246); -lean_dec(x_244); -x_247 = l_Lean_Elab_Term_getMainModule___rarg(x_246); -x_248 = lean_ctor_get(x_247, 0); -lean_inc(x_248); -x_249 = lean_ctor_get(x_247, 1); -lean_inc(x_249); -lean_dec(x_247); -x_250 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_251 = l_Lean_addMacroScope(x_248, x_250, x_245); -x_252 = lean_box(0); -x_253 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_254 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_254, 0, x_133); -lean_ctor_set(x_254, 1, x_253); -lean_ctor_set(x_254, 2, x_251); -lean_ctor_set(x_254, 3, x_252); -x_255 = lean_array_push(x_134, x_254); -x_256 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_257 = lean_array_push(x_255, x_256); -x_258 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_257); -x_259 = lean_array_push(x_257, x_258); -x_260 = lean_array_push(x_259, x_115); -x_261 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_262 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_262, 0, x_261); -lean_ctor_set(x_262, 1, x_260); -x_263 = lean_array_push(x_134, x_262); -x_264 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_265 = lean_array_push(x_263, x_264); -x_266 = l_Lean_mkTermIdFromIdent___closed__2; -x_267 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_267, 0, x_266); -lean_ctor_set(x_267, 1, x_257); -x_268 = lean_array_push(x_134, x_267); -x_269 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_269, 0, x_136); -lean_ctor_set(x_269, 1, x_268); -x_270 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_271 = lean_array_push(x_270, x_269); -x_272 = lean_array_push(x_271, x_256); -x_273 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_274 = lean_array_push(x_272, x_273); -x_275 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_276 = lean_array_push(x_274, x_275); -x_277 = lean_array_push(x_134, x_113); -x_278 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_278, 0, x_136); -lean_ctor_set(x_278, 1, x_277); -x_279 = lean_array_push(x_134, x_278); -x_280 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_281 = lean_array_push(x_279, x_280); -x_282 = lean_array_push(x_281, x_147); -x_283 = l_Lean_Parser_Term_matchAlt___closed__2; -x_284 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_282); -x_285 = lean_array_push(x_134, x_284); -x_286 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_286, 0, x_136); -lean_ctor_set(x_286, 1, x_285); -x_287 = lean_array_push(x_276, x_286); -x_288 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_289 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_289, 0, x_288); -lean_ctor_set(x_289, 1, x_287); -x_290 = lean_array_push(x_134, x_289); -x_291 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_292, 0, x_291); -lean_ctor_set(x_292, 1, x_290); -x_293 = lean_array_push(x_265, x_292); -x_294 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_294, 0, x_136); -lean_ctor_set(x_294, 1, x_293); -x_295 = lean_array_push(x_144, x_294); -x_296 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_296, 0, x_146); -lean_ctor_set(x_296, 1, x_295); -x_148 = x_296; -x_149 = x_249; -goto block_182; -} -block_182: -{ -uint8_t x_150; -x_150 = lean_nat_dec_eq(x_3, x_112); -if (x_150 == 0) -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; uint8_t x_160; -lean_dec(x_132); -x_151 = l_Array_extract___rarg(x_2, x_112, x_3); +lean_object* x_32; lean_object* x_33; lean_dec(x_3); lean_dec(x_2); -x_152 = l_Lean_mkOptionalNode___closed__2; -x_153 = lean_array_push(x_152, x_148); -x_154 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_155 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_153); -x_156 = lean_array_push(x_151, x_155); -x_157 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_149); -lean_dec(x_4); -x_158 = lean_ctor_get(x_157, 1); -lean_inc(x_158); -lean_dec(x_157); -x_159 = l_Lean_Elab_Term_getMainModule___rarg(x_158); -x_160 = !lean_is_exclusive(x_159); -if (x_160 == 0) -{ -lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; -x_161 = lean_ctor_get(x_159, 0); -lean_dec(x_161); -x_162 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_156, x_156, x_112, x_134); -lean_dec(x_156); -x_163 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_163, 0, x_136); -lean_ctor_set(x_163, 1, x_162); -x_164 = lean_array_push(x_138, x_163); -x_165 = lean_array_push(x_164, x_140); -x_166 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_166, 0, x_142); -lean_ctor_set(x_166, 1, x_165); -x_167 = lean_array_push(x_144, x_166); -x_168 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_168, 0, x_146); -lean_ctor_set(x_168, 1, x_167); -x_169 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_169, 0, x_168); -lean_ctor_set(x_159, 0, x_169); -return x_159; +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_6); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_7); +return x_33; } -else -{ -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; -x_170 = lean_ctor_get(x_159, 1); -lean_inc(x_170); -lean_dec(x_159); -x_171 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_156, x_156, x_112, x_134); -lean_dec(x_156); -x_172 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_172, 0, x_136); -lean_ctor_set(x_172, 1, x_171); -x_173 = lean_array_push(x_138, x_172); -x_174 = lean_array_push(x_173, x_140); -x_175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_175, 0, x_142); -lean_ctor_set(x_175, 1, x_174); -x_176 = lean_array_push(x_144, x_175); -x_177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_177, 0, x_146); -lean_ctor_set(x_177, 1, x_176); -x_178 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_178, 0, x_177); -x_179 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_170); -return x_179; } } -else -{ -lean_object* x_180; lean_object* x_181; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_180 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_180, 0, x_148); -if (lean_is_scalar(x_132)) { - x_181 = lean_alloc_ctor(0, 2, 0); -} else { - x_181 = x_132; } -lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_149); -return x_181; -} -} -} -else -{ -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; uint8_t x_306; uint8_t x_307; uint8_t 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; uint8_t x_356; -x_297 = lean_ctor_get(x_4, 0); -x_298 = lean_ctor_get(x_4, 1); -x_299 = lean_ctor_get(x_4, 2); -x_300 = lean_ctor_get(x_4, 3); -x_301 = lean_ctor_get(x_4, 4); -x_302 = lean_ctor_get(x_4, 5); -x_303 = lean_ctor_get(x_4, 6); -x_304 = lean_ctor_get(x_4, 7); -x_305 = lean_ctor_get(x_4, 8); -x_306 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_307 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_308 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -lean_inc(x_305); -lean_inc(x_304); -lean_inc(x_303); -lean_inc(x_302); -lean_inc(x_301); -lean_inc(x_300); -lean_inc(x_299); -lean_inc(x_298); -lean_inc(x_297); -lean_dec(x_4); -x_309 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_309, 0, x_297); -lean_ctor_set(x_309, 1, x_298); -lean_ctor_set(x_309, 2, x_299); -lean_ctor_set(x_309, 3, x_300); -lean_ctor_set(x_309, 4, x_301); -lean_ctor_set(x_309, 5, x_302); -lean_ctor_set(x_309, 6, x_303); -lean_ctor_set(x_309, 7, x_304); -lean_ctor_set(x_309, 8, x_305); -lean_ctor_set(x_309, 9, x_124); -lean_ctor_set_uint8(x_309, sizeof(void*)*10, x_306); -lean_ctor_set_uint8(x_309, sizeof(void*)*10 + 1, x_307); -lean_ctor_set_uint8(x_309, sizeof(void*)*10 + 2, x_308); -x_310 = l_Lean_Elab_Term_getCurrMacroScope(x_309, x_52); -x_311 = lean_ctor_get(x_310, 1); -lean_inc(x_311); -lean_dec(x_310); -x_312 = l_Lean_Elab_Term_getMainModule___rarg(x_311); -x_313 = lean_ctor_get(x_312, 1); -lean_inc(x_313); -if (lean_is_exclusive(x_312)) { - lean_ctor_release(x_312, 0); - lean_ctor_release(x_312, 1); - x_314 = x_312; -} else { - lean_dec_ref(x_312); - x_314 = lean_box(0); -} -x_315 = lean_box(0); -x_316 = l_Array_empty___closed__1; -x_317 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_119, x_119, x_112, x_316); -lean_dec(x_119); -x_318 = l_Lean_nullKind___closed__2; -x_319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_319, 0, x_318); -lean_ctor_set(x_319, 1, x_317); -x_320 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_321 = lean_array_push(x_320, x_319); -x_322 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_323 = lean_array_push(x_321, x_322); -x_324 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_325 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_325, 0, x_324); -lean_ctor_set(x_325, 1, x_323); -x_326 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_327 = lean_array_push(x_326, x_325); -x_328 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_329 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_329, 0, x_328); -lean_ctor_set(x_329, 1, x_327); -x_356 = l_Lean_Syntax_isNone(x_117); -if (x_356 == 0) -{ -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; 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; -x_357 = l_Lean_Syntax_getArg(x_117, x_121); -lean_dec(x_117); -x_358 = l_Lean_Elab_Term_getCurrMacroScope(x_309, x_313); -x_359 = lean_ctor_get(x_358, 0); -lean_inc(x_359); -x_360 = lean_ctor_get(x_358, 1); -lean_inc(x_360); -lean_dec(x_358); -x_361 = l_Lean_Elab_Term_getMainModule___rarg(x_360); -x_362 = lean_ctor_get(x_361, 0); -lean_inc(x_362); -x_363 = lean_ctor_get(x_361, 1); -lean_inc(x_363); -lean_dec(x_361); -x_364 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_365 = l_Lean_addMacroScope(x_362, x_364, x_359); -x_366 = lean_box(0); -x_367 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_368 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_368, 0, x_315); -lean_ctor_set(x_368, 1, x_367); -lean_ctor_set(x_368, 2, x_365); -lean_ctor_set(x_368, 3, x_366); -x_369 = lean_array_push(x_316, x_368); -x_370 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_371 = lean_array_push(x_369, x_370); -x_372 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_371); -x_373 = lean_array_push(x_371, x_372); -x_374 = lean_array_push(x_373, x_115); -x_375 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_376 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_376, 0, x_375); -lean_ctor_set(x_376, 1, x_374); -x_377 = lean_array_push(x_316, x_376); -x_378 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_379 = lean_array_push(x_377, x_378); -x_380 = l_Lean_mkTermIdFromIdent___closed__2; -x_381 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_381, 0, x_380); -lean_ctor_set(x_381, 1, x_371); -x_382 = lean_array_push(x_316, x_381); -x_383 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_383, 0, x_318); -lean_ctor_set(x_383, 1, x_382); -x_384 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_385 = lean_array_push(x_384, x_383); -x_386 = lean_array_push(x_385, x_370); -x_387 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_388 = lean_array_push(x_386, x_387); -x_389 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_390 = lean_array_push(x_388, x_389); -x_391 = lean_array_push(x_316, x_113); -x_392 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_392, 0, x_318); -lean_ctor_set(x_392, 1, x_391); -x_393 = lean_array_push(x_316, x_392); -x_394 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_395 = lean_array_push(x_393, x_394); -x_396 = lean_array_push(x_395, x_329); -x_397 = l_Lean_Parser_Term_matchAlt___closed__2; -x_398 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_398, 0, x_397); -lean_ctor_set(x_398, 1, x_396); -x_399 = lean_array_push(x_316, x_398); -x_400 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; -x_401 = lean_array_push(x_399, x_400); -x_402 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5; -x_403 = lean_array_push(x_402, x_357); -x_404 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_404, 0, x_397); -lean_ctor_set(x_404, 1, x_403); -x_405 = lean_array_push(x_401, x_404); -x_406 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_406, 0, x_318); -lean_ctor_set(x_406, 1, x_405); -x_407 = lean_array_push(x_390, x_406); -x_408 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_409 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_409, 0, x_408); -lean_ctor_set(x_409, 1, x_407); -x_410 = lean_array_push(x_316, x_409); -x_411 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_412 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_412, 0, x_411); -lean_ctor_set(x_412, 1, x_410); -x_413 = lean_array_push(x_379, x_412); -x_414 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_414, 0, x_318); -lean_ctor_set(x_414, 1, x_413); -x_415 = lean_array_push(x_326, x_414); -x_416 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_416, 0, x_328); -lean_ctor_set(x_416, 1, x_415); -x_330 = x_416; -x_331 = x_363; -goto block_355; -} -else -{ -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_dec(x_117); -x_417 = l_Lean_Elab_Term_getCurrMacroScope(x_309, x_313); -x_418 = lean_ctor_get(x_417, 0); -lean_inc(x_418); -x_419 = lean_ctor_get(x_417, 1); -lean_inc(x_419); -lean_dec(x_417); -x_420 = l_Lean_Elab_Term_getMainModule___rarg(x_419); -x_421 = lean_ctor_get(x_420, 0); -lean_inc(x_421); -x_422 = lean_ctor_get(x_420, 1); -lean_inc(x_422); -lean_dec(x_420); -x_423 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_424 = l_Lean_addMacroScope(x_421, x_423, x_418); -x_425 = lean_box(0); -x_426 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_427 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_427, 0, x_315); -lean_ctor_set(x_427, 1, x_426); -lean_ctor_set(x_427, 2, x_424); -lean_ctor_set(x_427, 3, x_425); -x_428 = lean_array_push(x_316, x_427); -x_429 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_430 = lean_array_push(x_428, x_429); -x_431 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_430); -x_432 = lean_array_push(x_430, x_431); -x_433 = lean_array_push(x_432, x_115); -x_434 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_435 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_435, 0, x_434); -lean_ctor_set(x_435, 1, x_433); -x_436 = lean_array_push(x_316, x_435); -x_437 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_438 = lean_array_push(x_436, x_437); -x_439 = l_Lean_mkTermIdFromIdent___closed__2; -x_440 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_440, 0, x_439); -lean_ctor_set(x_440, 1, x_430); -x_441 = lean_array_push(x_316, x_440); -x_442 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_442, 0, x_318); -lean_ctor_set(x_442, 1, x_441); -x_443 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_444 = lean_array_push(x_443, x_442); -x_445 = lean_array_push(x_444, x_429); -x_446 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_447 = lean_array_push(x_445, x_446); -x_448 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_449 = lean_array_push(x_447, x_448); -x_450 = lean_array_push(x_316, x_113); -x_451 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_451, 0, x_318); -lean_ctor_set(x_451, 1, x_450); -x_452 = lean_array_push(x_316, x_451); -x_453 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_454 = lean_array_push(x_452, x_453); -x_455 = lean_array_push(x_454, x_329); -x_456 = l_Lean_Parser_Term_matchAlt___closed__2; -x_457 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_457, 0, x_456); -lean_ctor_set(x_457, 1, x_455); -x_458 = lean_array_push(x_316, x_457); -x_459 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_459, 0, x_318); -lean_ctor_set(x_459, 1, x_458); -x_460 = lean_array_push(x_449, x_459); -x_461 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_462 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_462, 0, x_461); -lean_ctor_set(x_462, 1, x_460); -x_463 = lean_array_push(x_316, x_462); -x_464 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_465 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_465, 0, x_464); -lean_ctor_set(x_465, 1, x_463); -x_466 = lean_array_push(x_438, x_465); -x_467 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_467, 0, x_318); -lean_ctor_set(x_467, 1, x_466); -x_468 = lean_array_push(x_326, x_467); -x_469 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_469, 0, x_328); -lean_ctor_set(x_469, 1, x_468); -x_330 = x_469; -x_331 = x_422; -goto block_355; -} -block_355: -{ -uint8_t x_332; -x_332 = lean_nat_dec_eq(x_3, x_112); -if (x_332 == 0) -{ -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_dec(x_314); -x_333 = l_Array_extract___rarg(x_2, x_112, x_3); -lean_dec(x_3); -lean_dec(x_2); -x_334 = l_Lean_mkOptionalNode___closed__2; -x_335 = lean_array_push(x_334, x_330); -x_336 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_337 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_337, 0, x_336); -lean_ctor_set(x_337, 1, x_335); -x_338 = lean_array_push(x_333, x_337); -x_339 = l_Lean_Elab_Term_getCurrMacroScope(x_309, x_331); -lean_dec(x_309); -x_340 = lean_ctor_get(x_339, 1); -lean_inc(x_340); -lean_dec(x_339); -x_341 = l_Lean_Elab_Term_getMainModule___rarg(x_340); -x_342 = lean_ctor_get(x_341, 1); -lean_inc(x_342); -if (lean_is_exclusive(x_341)) { - lean_ctor_release(x_341, 0); - lean_ctor_release(x_341, 1); - x_343 = x_341; -} else { - lean_dec_ref(x_341); - x_343 = lean_box(0); -} -x_344 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_338, x_338, x_112, x_316); -lean_dec(x_338); -x_345 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_345, 0, x_318); -lean_ctor_set(x_345, 1, x_344); -x_346 = lean_array_push(x_320, x_345); -x_347 = lean_array_push(x_346, x_322); -x_348 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_348, 0, x_324); -lean_ctor_set(x_348, 1, x_347); -x_349 = lean_array_push(x_326, x_348); -x_350 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_350, 0, x_328); -lean_ctor_set(x_350, 1, x_349); -x_351 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_351, 0, x_350); -if (lean_is_scalar(x_343)) { - x_352 = lean_alloc_ctor(0, 2, 0); -} else { - x_352 = x_343; -} -lean_ctor_set(x_352, 0, x_351); -lean_ctor_set(x_352, 1, x_342); -return x_352; -} -else -{ -lean_object* x_353; lean_object* x_354; -lean_dec(x_309); -lean_dec(x_3); -lean_dec(x_2); -x_353 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_353, 0, x_330); -if (lean_is_scalar(x_314)) { - x_354 = lean_alloc_ctor(0, 2, 0); -} else { - x_354 = x_314; -} -lean_ctor_set(x_354, 0, x_353); -lean_ctor_set(x_354, 1, x_331); -return x_354; -} -} -} -} -else -{ -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; uint8_t x_487; uint8_t x_488; uint8_t x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; uint8_t x_538; -x_470 = lean_ctor_get(x_52, 0); -x_471 = lean_ctor_get(x_52, 1); -x_472 = lean_ctor_get(x_52, 2); -x_473 = lean_ctor_get(x_52, 3); -x_474 = lean_ctor_get(x_52, 4); -x_475 = lean_ctor_get(x_52, 5); -lean_inc(x_475); -lean_inc(x_474); -lean_inc(x_473); -lean_inc(x_472); -lean_inc(x_471); -lean_inc(x_470); -lean_dec(x_52); -x_476 = lean_nat_add(x_475, x_121); -x_477 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_477, 0, x_470); -lean_ctor_set(x_477, 1, x_471); -lean_ctor_set(x_477, 2, x_472); -lean_ctor_set(x_477, 3, x_473); -lean_ctor_set(x_477, 4, x_474); -lean_ctor_set(x_477, 5, x_476); -x_478 = lean_ctor_get(x_4, 0); -lean_inc(x_478); -x_479 = lean_ctor_get(x_4, 1); -lean_inc(x_479); -x_480 = lean_ctor_get(x_4, 2); -lean_inc(x_480); -x_481 = lean_ctor_get(x_4, 3); -lean_inc(x_481); -x_482 = lean_ctor_get(x_4, 4); -lean_inc(x_482); -x_483 = lean_ctor_get(x_4, 5); -lean_inc(x_483); -x_484 = lean_ctor_get(x_4, 6); -lean_inc(x_484); -x_485 = lean_ctor_get(x_4, 7); -lean_inc(x_485); -x_486 = lean_ctor_get(x_4, 8); -lean_inc(x_486); -x_487 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_488 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_489 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - lean_ctor_release(x_4, 2); - lean_ctor_release(x_4, 3); - lean_ctor_release(x_4, 4); - lean_ctor_release(x_4, 5); - lean_ctor_release(x_4, 6); - lean_ctor_release(x_4, 7); - lean_ctor_release(x_4, 8); - lean_ctor_release(x_4, 9); - x_490 = x_4; -} else { - lean_dec_ref(x_4); - x_490 = lean_box(0); -} -if (lean_is_scalar(x_490)) { - x_491 = lean_alloc_ctor(0, 10, 3); -} else { - x_491 = x_490; -} -lean_ctor_set(x_491, 0, x_478); -lean_ctor_set(x_491, 1, x_479); -lean_ctor_set(x_491, 2, x_480); -lean_ctor_set(x_491, 3, x_481); -lean_ctor_set(x_491, 4, x_482); -lean_ctor_set(x_491, 5, x_483); -lean_ctor_set(x_491, 6, x_484); -lean_ctor_set(x_491, 7, x_485); -lean_ctor_set(x_491, 8, x_486); -lean_ctor_set(x_491, 9, x_475); -lean_ctor_set_uint8(x_491, sizeof(void*)*10, x_487); -lean_ctor_set_uint8(x_491, sizeof(void*)*10 + 1, x_488); -lean_ctor_set_uint8(x_491, sizeof(void*)*10 + 2, x_489); -x_492 = l_Lean_Elab_Term_getCurrMacroScope(x_491, x_477); -x_493 = lean_ctor_get(x_492, 1); -lean_inc(x_493); -lean_dec(x_492); -x_494 = l_Lean_Elab_Term_getMainModule___rarg(x_493); -x_495 = lean_ctor_get(x_494, 1); -lean_inc(x_495); -if (lean_is_exclusive(x_494)) { - lean_ctor_release(x_494, 0); - lean_ctor_release(x_494, 1); - x_496 = x_494; -} else { - lean_dec_ref(x_494); - x_496 = lean_box(0); -} -x_497 = lean_box(0); -x_498 = l_Array_empty___closed__1; -x_499 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_119, x_119, x_112, x_498); -lean_dec(x_119); -x_500 = l_Lean_nullKind___closed__2; -x_501 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_501, 0, x_500); -lean_ctor_set(x_501, 1, x_499); -x_502 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_503 = lean_array_push(x_502, x_501); -x_504 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_505 = lean_array_push(x_503, x_504); -x_506 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_507 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_507, 0, x_506); -lean_ctor_set(x_507, 1, x_505); -x_508 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_509 = lean_array_push(x_508, x_507); -x_510 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_511 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_511, 0, x_510); -lean_ctor_set(x_511, 1, x_509); -x_538 = l_Lean_Syntax_isNone(x_117); -if (x_538 == 0) -{ -lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; -x_539 = l_Lean_Syntax_getArg(x_117, x_121); -lean_dec(x_117); -x_540 = l_Lean_Elab_Term_getCurrMacroScope(x_491, x_495); -x_541 = lean_ctor_get(x_540, 0); -lean_inc(x_541); -x_542 = lean_ctor_get(x_540, 1); -lean_inc(x_542); -lean_dec(x_540); -x_543 = l_Lean_Elab_Term_getMainModule___rarg(x_542); -x_544 = lean_ctor_get(x_543, 0); -lean_inc(x_544); -x_545 = lean_ctor_get(x_543, 1); -lean_inc(x_545); -lean_dec(x_543); -x_546 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_547 = l_Lean_addMacroScope(x_544, x_546, x_541); -x_548 = lean_box(0); -x_549 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_550 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_550, 0, x_497); -lean_ctor_set(x_550, 1, x_549); -lean_ctor_set(x_550, 2, x_547); -lean_ctor_set(x_550, 3, x_548); -x_551 = lean_array_push(x_498, x_550); -x_552 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_553 = lean_array_push(x_551, x_552); -x_554 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_553); -x_555 = lean_array_push(x_553, x_554); -x_556 = lean_array_push(x_555, x_115); -x_557 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_558 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_558, 0, x_557); -lean_ctor_set(x_558, 1, x_556); -x_559 = lean_array_push(x_498, x_558); -x_560 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_561 = lean_array_push(x_559, x_560); -x_562 = l_Lean_mkTermIdFromIdent___closed__2; -x_563 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_563, 0, x_562); -lean_ctor_set(x_563, 1, x_553); -x_564 = lean_array_push(x_498, x_563); -x_565 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_565, 0, x_500); -lean_ctor_set(x_565, 1, x_564); -x_566 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_567 = lean_array_push(x_566, x_565); -x_568 = lean_array_push(x_567, x_552); -x_569 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_570 = lean_array_push(x_568, x_569); -x_571 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_572 = lean_array_push(x_570, x_571); -x_573 = lean_array_push(x_498, x_113); -x_574 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_574, 0, x_500); -lean_ctor_set(x_574, 1, x_573); -x_575 = lean_array_push(x_498, x_574); -x_576 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_577 = lean_array_push(x_575, x_576); -x_578 = lean_array_push(x_577, x_511); -x_579 = l_Lean_Parser_Term_matchAlt___closed__2; -x_580 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_580, 0, x_579); -lean_ctor_set(x_580, 1, x_578); -x_581 = lean_array_push(x_498, x_580); -x_582 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; -x_583 = lean_array_push(x_581, x_582); -x_584 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5; -x_585 = lean_array_push(x_584, x_539); -x_586 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_586, 0, x_579); -lean_ctor_set(x_586, 1, x_585); -x_587 = lean_array_push(x_583, x_586); -x_588 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_588, 0, x_500); -lean_ctor_set(x_588, 1, x_587); -x_589 = lean_array_push(x_572, x_588); -x_590 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_591 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_591, 0, x_590); -lean_ctor_set(x_591, 1, x_589); -x_592 = lean_array_push(x_498, x_591); -x_593 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_594 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_594, 0, x_593); -lean_ctor_set(x_594, 1, x_592); -x_595 = lean_array_push(x_561, x_594); -x_596 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_596, 0, x_500); -lean_ctor_set(x_596, 1, x_595); -x_597 = lean_array_push(x_508, x_596); -x_598 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_598, 0, x_510); -lean_ctor_set(x_598, 1, x_597); -x_512 = x_598; -x_513 = x_545; -goto block_537; -} -else -{ -lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; -lean_dec(x_117); -x_599 = l_Lean_Elab_Term_getCurrMacroScope(x_491, x_495); -x_600 = lean_ctor_get(x_599, 0); -lean_inc(x_600); -x_601 = lean_ctor_get(x_599, 1); -lean_inc(x_601); -lean_dec(x_599); -x_602 = l_Lean_Elab_Term_getMainModule___rarg(x_601); -x_603 = lean_ctor_get(x_602, 0); -lean_inc(x_603); -x_604 = lean_ctor_get(x_602, 1); -lean_inc(x_604); -lean_dec(x_602); -x_605 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_606 = l_Lean_addMacroScope(x_603, x_605, x_600); -x_607 = lean_box(0); -x_608 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_609 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_609, 0, x_497); -lean_ctor_set(x_609, 1, x_608); -lean_ctor_set(x_609, 2, x_606); -lean_ctor_set(x_609, 3, x_607); -x_610 = lean_array_push(x_498, x_609); -x_611 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_612 = lean_array_push(x_610, x_611); -x_613 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_612); -x_614 = lean_array_push(x_612, x_613); -x_615 = lean_array_push(x_614, x_115); -x_616 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_617 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_617, 0, x_616); -lean_ctor_set(x_617, 1, x_615); -x_618 = lean_array_push(x_498, x_617); -x_619 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_620 = lean_array_push(x_618, x_619); -x_621 = l_Lean_mkTermIdFromIdent___closed__2; -x_622 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_622, 0, x_621); -lean_ctor_set(x_622, 1, x_612); -x_623 = lean_array_push(x_498, x_622); -x_624 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_624, 0, x_500); -lean_ctor_set(x_624, 1, x_623); -x_625 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_626 = lean_array_push(x_625, x_624); -x_627 = lean_array_push(x_626, x_611); -x_628 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_629 = lean_array_push(x_627, x_628); -x_630 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_631 = lean_array_push(x_629, x_630); -x_632 = lean_array_push(x_498, x_113); -x_633 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_633, 0, x_500); -lean_ctor_set(x_633, 1, x_632); -x_634 = lean_array_push(x_498, x_633); -x_635 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_636 = lean_array_push(x_634, x_635); -x_637 = lean_array_push(x_636, x_511); -x_638 = l_Lean_Parser_Term_matchAlt___closed__2; -x_639 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_639, 0, x_638); -lean_ctor_set(x_639, 1, x_637); -x_640 = lean_array_push(x_498, x_639); -x_641 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_641, 0, x_500); -lean_ctor_set(x_641, 1, x_640); -x_642 = lean_array_push(x_631, x_641); -x_643 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_644 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_644, 0, x_643); -lean_ctor_set(x_644, 1, x_642); -x_645 = lean_array_push(x_498, x_644); -x_646 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_647 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_647, 0, x_646); -lean_ctor_set(x_647, 1, x_645); -x_648 = lean_array_push(x_620, x_647); -x_649 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_649, 0, x_500); -lean_ctor_set(x_649, 1, x_648); -x_650 = lean_array_push(x_508, x_649); -x_651 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_651, 0, x_510); -lean_ctor_set(x_651, 1, x_650); -x_512 = x_651; -x_513 = x_604; -goto block_537; -} -block_537: -{ -uint8_t x_514; -x_514 = lean_nat_dec_eq(x_3, x_112); -if (x_514 == 0) -{ -lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; -lean_dec(x_496); -x_515 = l_Array_extract___rarg(x_2, x_112, x_3); -lean_dec(x_3); -lean_dec(x_2); -x_516 = l_Lean_mkOptionalNode___closed__2; -x_517 = lean_array_push(x_516, x_512); -x_518 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_519 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_519, 0, x_518); -lean_ctor_set(x_519, 1, x_517); -x_520 = lean_array_push(x_515, x_519); -x_521 = l_Lean_Elab_Term_getCurrMacroScope(x_491, x_513); -lean_dec(x_491); -x_522 = lean_ctor_get(x_521, 1); -lean_inc(x_522); -lean_dec(x_521); -x_523 = l_Lean_Elab_Term_getMainModule___rarg(x_522); -x_524 = lean_ctor_get(x_523, 1); -lean_inc(x_524); -if (lean_is_exclusive(x_523)) { - lean_ctor_release(x_523, 0); - lean_ctor_release(x_523, 1); - x_525 = x_523; -} else { - lean_dec_ref(x_523); - x_525 = lean_box(0); -} -x_526 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_520, x_520, x_112, x_498); -lean_dec(x_520); -x_527 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_527, 0, x_500); -lean_ctor_set(x_527, 1, x_526); -x_528 = lean_array_push(x_502, x_527); -x_529 = lean_array_push(x_528, x_504); -x_530 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_530, 0, x_506); -lean_ctor_set(x_530, 1, x_529); -x_531 = lean_array_push(x_508, x_530); -x_532 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_532, 0, x_510); -lean_ctor_set(x_532, 1, x_531); -x_533 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_533, 0, x_532); -if (lean_is_scalar(x_525)) { - x_534 = lean_alloc_ctor(0, 2, 0); -} else { - x_534 = x_525; -} -lean_ctor_set(x_534, 0, x_533); -lean_ctor_set(x_534, 1, x_524); -return x_534; -} -else -{ -lean_object* x_535; lean_object* x_536; -lean_dec(x_491); -lean_dec(x_3); -lean_dec(x_2); -x_535 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_535, 0, x_512); -if (lean_is_scalar(x_496)) { - x_536 = lean_alloc_ctor(0, 2, 0); -} else { - x_536 = x_496; -} -lean_ctor_set(x_536, 0, x_535); -lean_ctor_set(x_536, 1, x_513); -return x_536; -} -} -} -} -else -{ -lean_object* x_652; lean_object* x_653; lean_object* x_654; uint8_t x_655; -x_652 = l_Lean_Syntax_inhabited; -x_653 = lean_array_get(x_652, x_119, x_112); -lean_dec(x_119); -x_654 = l_Lean_Syntax_getArg(x_653, x_112); -lean_dec(x_653); -x_655 = !lean_is_exclusive(x_52); -if (x_655 == 0) -{ -lean_object* x_656; lean_object* x_657; uint8_t x_658; -x_656 = lean_ctor_get(x_52, 5); -x_657 = lean_nat_add(x_656, x_121); -lean_ctor_set(x_52, 5, x_657); -x_658 = !lean_is_exclusive(x_4); -if (x_658 == 0) -{ -lean_object* x_659; lean_object* x_660; lean_object* x_661; uint8_t x_709; -x_659 = lean_ctor_get(x_4, 9); -lean_dec(x_659); -lean_ctor_set(x_4, 9, x_656); -x_709 = l_Lean_Syntax_isNone(x_117); -if (x_709 == 0) -{ -lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; -x_710 = l_Lean_Syntax_getArg(x_117, x_121); -lean_dec(x_117); -x_711 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_52); -x_712 = lean_ctor_get(x_711, 0); -lean_inc(x_712); -x_713 = lean_ctor_get(x_711, 1); -lean_inc(x_713); -lean_dec(x_711); -x_714 = l_Lean_Elab_Term_getMainModule___rarg(x_713); -x_715 = lean_ctor_get(x_714, 0); -lean_inc(x_715); -x_716 = lean_ctor_get(x_714, 1); -lean_inc(x_716); -lean_dec(x_714); -x_717 = lean_box(0); -x_718 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_719 = l_Lean_addMacroScope(x_715, x_718, x_712); -x_720 = lean_box(0); -x_721 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_722 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_722, 0, x_717); -lean_ctor_set(x_722, 1, x_721); -lean_ctor_set(x_722, 2, x_719); -lean_ctor_set(x_722, 3, x_720); -x_723 = l_Array_empty___closed__1; -x_724 = lean_array_push(x_723, x_722); -x_725 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_726 = lean_array_push(x_724, x_725); -x_727 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_726); -x_728 = lean_array_push(x_726, x_727); -x_729 = lean_array_push(x_728, x_115); -x_730 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_731 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_731, 0, x_730); -lean_ctor_set(x_731, 1, x_729); -x_732 = lean_array_push(x_723, x_731); -x_733 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_734 = lean_array_push(x_732, x_733); -x_735 = l_Lean_mkTermIdFromIdent___closed__2; -x_736 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_736, 0, x_735); -lean_ctor_set(x_736, 1, x_726); -x_737 = lean_array_push(x_723, x_736); -x_738 = l_Lean_nullKind___closed__2; -x_739 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_739, 0, x_738); -lean_ctor_set(x_739, 1, x_737); -x_740 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_741 = lean_array_push(x_740, x_739); -x_742 = lean_array_push(x_741, x_725); -x_743 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_744 = lean_array_push(x_742, x_743); -x_745 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_746 = lean_array_push(x_744, x_745); -x_747 = lean_array_push(x_723, x_113); -x_748 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_748, 0, x_738); -lean_ctor_set(x_748, 1, x_747); -x_749 = lean_array_push(x_723, x_748); -x_750 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_751 = lean_array_push(x_749, x_750); -x_752 = lean_array_push(x_751, x_654); -x_753 = l_Lean_Parser_Term_matchAlt___closed__2; -x_754 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_754, 0, x_753); -lean_ctor_set(x_754, 1, x_752); -x_755 = lean_array_push(x_723, x_754); -x_756 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; -x_757 = lean_array_push(x_755, x_756); -x_758 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5; -x_759 = lean_array_push(x_758, x_710); -x_760 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_760, 0, x_753); -lean_ctor_set(x_760, 1, x_759); -x_761 = lean_array_push(x_757, x_760); -x_762 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_762, 0, x_738); -lean_ctor_set(x_762, 1, x_761); -x_763 = lean_array_push(x_746, x_762); -x_764 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_765 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_765, 0, x_764); -lean_ctor_set(x_765, 1, x_763); -x_766 = lean_array_push(x_723, x_765); -x_767 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_768 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_768, 0, x_767); -lean_ctor_set(x_768, 1, x_766); -x_769 = lean_array_push(x_734, x_768); -x_770 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_770, 0, x_738); -lean_ctor_set(x_770, 1, x_769); -x_771 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_772 = lean_array_push(x_771, x_770); -x_773 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_774 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_774, 0, x_773); -lean_ctor_set(x_774, 1, x_772); -x_660 = x_774; -x_661 = x_716; -goto block_708; -} -else -{ -lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; -lean_dec(x_117); -x_775 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_52); -x_776 = lean_ctor_get(x_775, 0); -lean_inc(x_776); -x_777 = lean_ctor_get(x_775, 1); -lean_inc(x_777); -lean_dec(x_775); -x_778 = l_Lean_Elab_Term_getMainModule___rarg(x_777); -x_779 = lean_ctor_get(x_778, 0); -lean_inc(x_779); -x_780 = lean_ctor_get(x_778, 1); -lean_inc(x_780); -lean_dec(x_778); -x_781 = lean_box(0); -x_782 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_783 = l_Lean_addMacroScope(x_779, x_782, x_776); -x_784 = lean_box(0); -x_785 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_786 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_786, 0, x_781); -lean_ctor_set(x_786, 1, x_785); -lean_ctor_set(x_786, 2, x_783); -lean_ctor_set(x_786, 3, x_784); -x_787 = l_Array_empty___closed__1; -x_788 = lean_array_push(x_787, x_786); -x_789 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_790 = lean_array_push(x_788, x_789); -x_791 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_790); -x_792 = lean_array_push(x_790, x_791); -x_793 = lean_array_push(x_792, x_115); -x_794 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_795 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_795, 0, x_794); -lean_ctor_set(x_795, 1, x_793); -x_796 = lean_array_push(x_787, x_795); -x_797 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_798 = lean_array_push(x_796, x_797); -x_799 = l_Lean_mkTermIdFromIdent___closed__2; -x_800 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_800, 0, x_799); -lean_ctor_set(x_800, 1, x_790); -x_801 = lean_array_push(x_787, x_800); -x_802 = l_Lean_nullKind___closed__2; -x_803 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_803, 0, x_802); -lean_ctor_set(x_803, 1, x_801); -x_804 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_805 = lean_array_push(x_804, x_803); -x_806 = lean_array_push(x_805, x_789); -x_807 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_808 = lean_array_push(x_806, x_807); -x_809 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_810 = lean_array_push(x_808, x_809); -x_811 = lean_array_push(x_787, x_113); -x_812 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_812, 0, x_802); -lean_ctor_set(x_812, 1, x_811); -x_813 = lean_array_push(x_787, x_812); -x_814 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_815 = lean_array_push(x_813, x_814); -x_816 = lean_array_push(x_815, x_654); -x_817 = l_Lean_Parser_Term_matchAlt___closed__2; -x_818 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_818, 0, x_817); -lean_ctor_set(x_818, 1, x_816); -x_819 = lean_array_push(x_787, x_818); -x_820 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_820, 0, x_802); -lean_ctor_set(x_820, 1, x_819); -x_821 = lean_array_push(x_810, x_820); -x_822 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_823 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_823, 0, x_822); -lean_ctor_set(x_823, 1, x_821); -x_824 = lean_array_push(x_787, x_823); -x_825 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_826 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_826, 0, x_825); -lean_ctor_set(x_826, 1, x_824); -x_827 = lean_array_push(x_798, x_826); -x_828 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_828, 0, x_802); -lean_ctor_set(x_828, 1, x_827); -x_829 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_830 = lean_array_push(x_829, x_828); -x_831 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_832 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_832, 0, x_831); -lean_ctor_set(x_832, 1, x_830); -x_660 = x_832; -x_661 = x_780; -goto block_708; -} -block_708: -{ -uint8_t x_662; -x_662 = lean_nat_dec_eq(x_3, x_112); -if (x_662 == 0) -{ -lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; uint8_t x_672; -lean_dec(x_53); -x_663 = l_Array_extract___rarg(x_2, x_112, x_3); -lean_dec(x_3); -lean_dec(x_2); -x_664 = l_Lean_mkOptionalNode___closed__2; -x_665 = lean_array_push(x_664, x_660); -x_666 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_667 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_667, 0, x_666); -lean_ctor_set(x_667, 1, x_665); -x_668 = lean_array_push(x_663, x_667); -x_669 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_661); -lean_dec(x_4); -x_670 = lean_ctor_get(x_669, 1); -lean_inc(x_670); -lean_dec(x_669); -x_671 = l_Lean_Elab_Term_getMainModule___rarg(x_670); -x_672 = !lean_is_exclusive(x_671); -if (x_672 == 0) -{ -lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; -x_673 = lean_ctor_get(x_671, 0); -lean_dec(x_673); -x_674 = l_Array_empty___closed__1; -x_675 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_668, x_668, x_112, x_674); -lean_dec(x_668); -x_676 = l_Lean_nullKind___closed__2; -x_677 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_677, 0, x_676); -lean_ctor_set(x_677, 1, x_675); -x_678 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_679 = lean_array_push(x_678, x_677); -x_680 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_681 = lean_array_push(x_679, x_680); -x_682 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_683 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_683, 0, x_682); -lean_ctor_set(x_683, 1, x_681); -x_684 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_685 = lean_array_push(x_684, x_683); -x_686 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_687 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_687, 0, x_686); -lean_ctor_set(x_687, 1, x_685); -x_688 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_688, 0, x_687); -lean_ctor_set(x_671, 0, x_688); -return x_671; -} -else -{ -lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; -x_689 = lean_ctor_get(x_671, 1); -lean_inc(x_689); -lean_dec(x_671); -x_690 = l_Array_empty___closed__1; -x_691 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_668, x_668, x_112, x_690); -lean_dec(x_668); -x_692 = l_Lean_nullKind___closed__2; -x_693 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_693, 0, x_692); -lean_ctor_set(x_693, 1, x_691); -x_694 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_695 = lean_array_push(x_694, x_693); -x_696 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_697 = lean_array_push(x_695, x_696); -x_698 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_699 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_699, 0, x_698); -lean_ctor_set(x_699, 1, x_697); -x_700 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_701 = lean_array_push(x_700, x_699); -x_702 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_703 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_703, 0, x_702); -lean_ctor_set(x_703, 1, x_701); -x_704 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_704, 0, x_703); -x_705 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_705, 0, x_704); -lean_ctor_set(x_705, 1, x_689); -return x_705; -} -} -else -{ -lean_object* x_706; lean_object* x_707; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_706 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_706, 0, x_660); -if (lean_is_scalar(x_53)) { - x_707 = lean_alloc_ctor(0, 2, 0); -} else { - x_707 = x_53; -} -lean_ctor_set(x_707, 0, x_706); -lean_ctor_set(x_707, 1, x_661); -return x_707; -} -} -} -else -{ -lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; uint8_t x_842; uint8_t x_843; uint8_t x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; uint8_t x_879; -x_833 = lean_ctor_get(x_4, 0); -x_834 = lean_ctor_get(x_4, 1); -x_835 = lean_ctor_get(x_4, 2); -x_836 = lean_ctor_get(x_4, 3); -x_837 = lean_ctor_get(x_4, 4); -x_838 = lean_ctor_get(x_4, 5); -x_839 = lean_ctor_get(x_4, 6); -x_840 = lean_ctor_get(x_4, 7); -x_841 = lean_ctor_get(x_4, 8); -x_842 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_843 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_844 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -lean_inc(x_841); -lean_inc(x_840); -lean_inc(x_839); -lean_inc(x_838); -lean_inc(x_837); -lean_inc(x_836); -lean_inc(x_835); -lean_inc(x_834); -lean_inc(x_833); -lean_dec(x_4); -x_845 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_845, 0, x_833); -lean_ctor_set(x_845, 1, x_834); -lean_ctor_set(x_845, 2, x_835); -lean_ctor_set(x_845, 3, x_836); -lean_ctor_set(x_845, 4, x_837); -lean_ctor_set(x_845, 5, x_838); -lean_ctor_set(x_845, 6, x_839); -lean_ctor_set(x_845, 7, x_840); -lean_ctor_set(x_845, 8, x_841); -lean_ctor_set(x_845, 9, x_656); -lean_ctor_set_uint8(x_845, sizeof(void*)*10, x_842); -lean_ctor_set_uint8(x_845, sizeof(void*)*10 + 1, x_843); -lean_ctor_set_uint8(x_845, sizeof(void*)*10 + 2, x_844); -x_879 = l_Lean_Syntax_isNone(x_117); -if (x_879 == 0) -{ -lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; -x_880 = l_Lean_Syntax_getArg(x_117, x_121); -lean_dec(x_117); -x_881 = l_Lean_Elab_Term_getCurrMacroScope(x_845, x_52); -x_882 = lean_ctor_get(x_881, 0); -lean_inc(x_882); -x_883 = lean_ctor_get(x_881, 1); -lean_inc(x_883); -lean_dec(x_881); -x_884 = l_Lean_Elab_Term_getMainModule___rarg(x_883); -x_885 = lean_ctor_get(x_884, 0); -lean_inc(x_885); -x_886 = lean_ctor_get(x_884, 1); -lean_inc(x_886); -lean_dec(x_884); -x_887 = lean_box(0); -x_888 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_889 = l_Lean_addMacroScope(x_885, x_888, x_882); -x_890 = lean_box(0); -x_891 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_892 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_892, 0, x_887); -lean_ctor_set(x_892, 1, x_891); -lean_ctor_set(x_892, 2, x_889); -lean_ctor_set(x_892, 3, x_890); -x_893 = l_Array_empty___closed__1; -x_894 = lean_array_push(x_893, x_892); -x_895 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_896 = lean_array_push(x_894, x_895); -x_897 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_896); -x_898 = lean_array_push(x_896, x_897); -x_899 = lean_array_push(x_898, x_115); -x_900 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_901 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_901, 0, x_900); -lean_ctor_set(x_901, 1, x_899); -x_902 = lean_array_push(x_893, x_901); -x_903 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_904 = lean_array_push(x_902, x_903); -x_905 = l_Lean_mkTermIdFromIdent___closed__2; -x_906 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_906, 0, x_905); -lean_ctor_set(x_906, 1, x_896); -x_907 = lean_array_push(x_893, x_906); -x_908 = l_Lean_nullKind___closed__2; -x_909 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_909, 0, x_908); -lean_ctor_set(x_909, 1, x_907); -x_910 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_911 = lean_array_push(x_910, x_909); -x_912 = lean_array_push(x_911, x_895); -x_913 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_914 = lean_array_push(x_912, x_913); -x_915 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_916 = lean_array_push(x_914, x_915); -x_917 = lean_array_push(x_893, x_113); -x_918 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_918, 0, x_908); -lean_ctor_set(x_918, 1, x_917); -x_919 = lean_array_push(x_893, x_918); -x_920 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_921 = lean_array_push(x_919, x_920); -x_922 = lean_array_push(x_921, x_654); -x_923 = l_Lean_Parser_Term_matchAlt___closed__2; -x_924 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_924, 0, x_923); -lean_ctor_set(x_924, 1, x_922); -x_925 = lean_array_push(x_893, x_924); -x_926 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; -x_927 = lean_array_push(x_925, x_926); -x_928 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5; -x_929 = lean_array_push(x_928, x_880); -x_930 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_930, 0, x_923); -lean_ctor_set(x_930, 1, x_929); -x_931 = lean_array_push(x_927, x_930); -x_932 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_932, 0, x_908); -lean_ctor_set(x_932, 1, x_931); -x_933 = lean_array_push(x_916, x_932); -x_934 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_935 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_935, 0, x_934); -lean_ctor_set(x_935, 1, x_933); -x_936 = lean_array_push(x_893, x_935); -x_937 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_938 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_938, 0, x_937); -lean_ctor_set(x_938, 1, x_936); -x_939 = lean_array_push(x_904, x_938); -x_940 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_940, 0, x_908); -lean_ctor_set(x_940, 1, x_939); -x_941 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_942 = lean_array_push(x_941, x_940); -x_943 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_944 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_944, 0, x_943); -lean_ctor_set(x_944, 1, x_942); -x_846 = x_944; -x_847 = x_886; -goto block_878; -} -else -{ -lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; -lean_dec(x_117); -x_945 = l_Lean_Elab_Term_getCurrMacroScope(x_845, x_52); -x_946 = lean_ctor_get(x_945, 0); -lean_inc(x_946); -x_947 = lean_ctor_get(x_945, 1); -lean_inc(x_947); -lean_dec(x_945); -x_948 = l_Lean_Elab_Term_getMainModule___rarg(x_947); -x_949 = lean_ctor_get(x_948, 0); -lean_inc(x_949); -x_950 = lean_ctor_get(x_948, 1); -lean_inc(x_950); -lean_dec(x_948); -x_951 = lean_box(0); -x_952 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_953 = l_Lean_addMacroScope(x_949, x_952, x_946); -x_954 = lean_box(0); -x_955 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_956 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_956, 0, x_951); -lean_ctor_set(x_956, 1, x_955); -lean_ctor_set(x_956, 2, x_953); -lean_ctor_set(x_956, 3, x_954); -x_957 = l_Array_empty___closed__1; -x_958 = lean_array_push(x_957, x_956); -x_959 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_960 = lean_array_push(x_958, x_959); -x_961 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_960); -x_962 = lean_array_push(x_960, x_961); -x_963 = lean_array_push(x_962, x_115); -x_964 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_965 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_965, 0, x_964); -lean_ctor_set(x_965, 1, x_963); -x_966 = lean_array_push(x_957, x_965); -x_967 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_968 = lean_array_push(x_966, x_967); -x_969 = l_Lean_mkTermIdFromIdent___closed__2; -x_970 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_970, 0, x_969); -lean_ctor_set(x_970, 1, x_960); -x_971 = lean_array_push(x_957, x_970); -x_972 = l_Lean_nullKind___closed__2; -x_973 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_973, 0, x_972); -lean_ctor_set(x_973, 1, x_971); -x_974 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_975 = lean_array_push(x_974, x_973); -x_976 = lean_array_push(x_975, x_959); -x_977 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_978 = lean_array_push(x_976, x_977); -x_979 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_980 = lean_array_push(x_978, x_979); -x_981 = lean_array_push(x_957, x_113); -x_982 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_982, 0, x_972); -lean_ctor_set(x_982, 1, x_981); -x_983 = lean_array_push(x_957, x_982); -x_984 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_985 = lean_array_push(x_983, x_984); -x_986 = lean_array_push(x_985, x_654); -x_987 = l_Lean_Parser_Term_matchAlt___closed__2; -x_988 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_988, 0, x_987); -lean_ctor_set(x_988, 1, x_986); -x_989 = lean_array_push(x_957, x_988); -x_990 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_990, 0, x_972); -lean_ctor_set(x_990, 1, x_989); -x_991 = lean_array_push(x_980, x_990); -x_992 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_993 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_993, 0, x_992); -lean_ctor_set(x_993, 1, x_991); -x_994 = lean_array_push(x_957, x_993); -x_995 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_996 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_996, 0, x_995); -lean_ctor_set(x_996, 1, x_994); -x_997 = lean_array_push(x_968, x_996); -x_998 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_998, 0, x_972); -lean_ctor_set(x_998, 1, x_997); -x_999 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_1000 = lean_array_push(x_999, x_998); -x_1001 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_1002 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1002, 0, x_1001); -lean_ctor_set(x_1002, 1, x_1000); -x_846 = x_1002; -x_847 = x_950; -goto block_878; -} -block_878: -{ -uint8_t x_848; -x_848 = lean_nat_dec_eq(x_3, x_112); -if (x_848 == 0) -{ -lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; -lean_dec(x_53); -x_849 = l_Array_extract___rarg(x_2, x_112, x_3); -lean_dec(x_3); -lean_dec(x_2); -x_850 = l_Lean_mkOptionalNode___closed__2; -x_851 = lean_array_push(x_850, x_846); -x_852 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_853 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_853, 0, x_852); -lean_ctor_set(x_853, 1, x_851); -x_854 = lean_array_push(x_849, x_853); -x_855 = l_Lean_Elab_Term_getCurrMacroScope(x_845, x_847); -lean_dec(x_845); -x_856 = lean_ctor_get(x_855, 1); -lean_inc(x_856); -lean_dec(x_855); -x_857 = l_Lean_Elab_Term_getMainModule___rarg(x_856); -x_858 = lean_ctor_get(x_857, 1); -lean_inc(x_858); -if (lean_is_exclusive(x_857)) { - lean_ctor_release(x_857, 0); - lean_ctor_release(x_857, 1); - x_859 = x_857; -} else { - lean_dec_ref(x_857); - x_859 = lean_box(0); -} -x_860 = l_Array_empty___closed__1; -x_861 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_854, x_854, x_112, x_860); -lean_dec(x_854); -x_862 = l_Lean_nullKind___closed__2; -x_863 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_863, 0, x_862); -lean_ctor_set(x_863, 1, x_861); -x_864 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_865 = lean_array_push(x_864, x_863); -x_866 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_867 = lean_array_push(x_865, x_866); -x_868 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_869 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_869, 0, x_868); -lean_ctor_set(x_869, 1, x_867); -x_870 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_871 = lean_array_push(x_870, x_869); -x_872 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_873 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_873, 0, x_872); -lean_ctor_set(x_873, 1, x_871); -x_874 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_874, 0, x_873); -if (lean_is_scalar(x_859)) { - x_875 = lean_alloc_ctor(0, 2, 0); -} else { - x_875 = x_859; -} -lean_ctor_set(x_875, 0, x_874); -lean_ctor_set(x_875, 1, x_858); -return x_875; -} -else -{ -lean_object* x_876; lean_object* x_877; -lean_dec(x_845); -lean_dec(x_3); -lean_dec(x_2); -x_876 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_876, 0, x_846); -if (lean_is_scalar(x_53)) { - x_877 = lean_alloc_ctor(0, 2, 0); -} else { - x_877 = x_53; -} -lean_ctor_set(x_877, 0, x_876); -lean_ctor_set(x_877, 1, x_847); -return x_877; -} -} -} -} -else -{ -lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; uint8_t x_1020; uint8_t x_1021; uint8_t x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; uint8_t x_1058; -x_1003 = lean_ctor_get(x_52, 0); -x_1004 = lean_ctor_get(x_52, 1); -x_1005 = lean_ctor_get(x_52, 2); -x_1006 = lean_ctor_get(x_52, 3); -x_1007 = lean_ctor_get(x_52, 4); -x_1008 = lean_ctor_get(x_52, 5); -lean_inc(x_1008); -lean_inc(x_1007); -lean_inc(x_1006); -lean_inc(x_1005); -lean_inc(x_1004); -lean_inc(x_1003); -lean_dec(x_52); -x_1009 = lean_nat_add(x_1008, x_121); -x_1010 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_1010, 0, x_1003); -lean_ctor_set(x_1010, 1, x_1004); -lean_ctor_set(x_1010, 2, x_1005); -lean_ctor_set(x_1010, 3, x_1006); -lean_ctor_set(x_1010, 4, x_1007); -lean_ctor_set(x_1010, 5, x_1009); -x_1011 = lean_ctor_get(x_4, 0); -lean_inc(x_1011); -x_1012 = lean_ctor_get(x_4, 1); -lean_inc(x_1012); -x_1013 = lean_ctor_get(x_4, 2); -lean_inc(x_1013); -x_1014 = lean_ctor_get(x_4, 3); -lean_inc(x_1014); -x_1015 = lean_ctor_get(x_4, 4); -lean_inc(x_1015); -x_1016 = lean_ctor_get(x_4, 5); -lean_inc(x_1016); -x_1017 = lean_ctor_get(x_4, 6); -lean_inc(x_1017); -x_1018 = lean_ctor_get(x_4, 7); -lean_inc(x_1018); -x_1019 = lean_ctor_get(x_4, 8); -lean_inc(x_1019); -x_1020 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_1021 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_1022 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - lean_ctor_release(x_4, 2); - lean_ctor_release(x_4, 3); - lean_ctor_release(x_4, 4); - lean_ctor_release(x_4, 5); - lean_ctor_release(x_4, 6); - lean_ctor_release(x_4, 7); - lean_ctor_release(x_4, 8); - lean_ctor_release(x_4, 9); - x_1023 = x_4; -} else { - lean_dec_ref(x_4); - x_1023 = lean_box(0); -} -if (lean_is_scalar(x_1023)) { - x_1024 = lean_alloc_ctor(0, 10, 3); -} else { - x_1024 = x_1023; -} -lean_ctor_set(x_1024, 0, x_1011); -lean_ctor_set(x_1024, 1, x_1012); -lean_ctor_set(x_1024, 2, x_1013); -lean_ctor_set(x_1024, 3, x_1014); -lean_ctor_set(x_1024, 4, x_1015); -lean_ctor_set(x_1024, 5, x_1016); -lean_ctor_set(x_1024, 6, x_1017); -lean_ctor_set(x_1024, 7, x_1018); -lean_ctor_set(x_1024, 8, x_1019); -lean_ctor_set(x_1024, 9, x_1008); -lean_ctor_set_uint8(x_1024, sizeof(void*)*10, x_1020); -lean_ctor_set_uint8(x_1024, sizeof(void*)*10 + 1, x_1021); -lean_ctor_set_uint8(x_1024, sizeof(void*)*10 + 2, x_1022); -x_1058 = l_Lean_Syntax_isNone(x_117); -if (x_1058 == 0) -{ -lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; -x_1059 = l_Lean_Syntax_getArg(x_117, x_121); -lean_dec(x_117); -x_1060 = l_Lean_Elab_Term_getCurrMacroScope(x_1024, x_1010); -x_1061 = lean_ctor_get(x_1060, 0); -lean_inc(x_1061); -x_1062 = lean_ctor_get(x_1060, 1); -lean_inc(x_1062); -lean_dec(x_1060); -x_1063 = l_Lean_Elab_Term_getMainModule___rarg(x_1062); -x_1064 = lean_ctor_get(x_1063, 0); -lean_inc(x_1064); -x_1065 = lean_ctor_get(x_1063, 1); -lean_inc(x_1065); -lean_dec(x_1063); -x_1066 = lean_box(0); -x_1067 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_1068 = l_Lean_addMacroScope(x_1064, x_1067, x_1061); -x_1069 = lean_box(0); -x_1070 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_1071 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1071, 0, x_1066); -lean_ctor_set(x_1071, 1, x_1070); -lean_ctor_set(x_1071, 2, x_1068); -lean_ctor_set(x_1071, 3, x_1069); -x_1072 = l_Array_empty___closed__1; -x_1073 = lean_array_push(x_1072, x_1071); -x_1074 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_1075 = lean_array_push(x_1073, x_1074); -x_1076 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_1075); -x_1077 = lean_array_push(x_1075, x_1076); -x_1078 = lean_array_push(x_1077, x_115); -x_1079 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_1080 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1080, 0, x_1079); -lean_ctor_set(x_1080, 1, x_1078); -x_1081 = lean_array_push(x_1072, x_1080); -x_1082 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_1083 = lean_array_push(x_1081, x_1082); -x_1084 = l_Lean_mkTermIdFromIdent___closed__2; -x_1085 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1085, 0, x_1084); -lean_ctor_set(x_1085, 1, x_1075); -x_1086 = lean_array_push(x_1072, x_1085); -x_1087 = l_Lean_nullKind___closed__2; -x_1088 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1088, 0, x_1087); -lean_ctor_set(x_1088, 1, x_1086); -x_1089 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_1090 = lean_array_push(x_1089, x_1088); -x_1091 = lean_array_push(x_1090, x_1074); -x_1092 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_1093 = lean_array_push(x_1091, x_1092); -x_1094 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_1095 = lean_array_push(x_1093, x_1094); -x_1096 = lean_array_push(x_1072, x_113); -x_1097 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1097, 0, x_1087); -lean_ctor_set(x_1097, 1, x_1096); -x_1098 = lean_array_push(x_1072, x_1097); -x_1099 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_1100 = lean_array_push(x_1098, x_1099); -x_1101 = lean_array_push(x_1100, x_654); -x_1102 = l_Lean_Parser_Term_matchAlt___closed__2; -x_1103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1103, 0, x_1102); -lean_ctor_set(x_1103, 1, x_1101); -x_1104 = lean_array_push(x_1072, x_1103); -x_1105 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; -x_1106 = lean_array_push(x_1104, x_1105); -x_1107 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5; -x_1108 = lean_array_push(x_1107, x_1059); -x_1109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1109, 0, x_1102); -lean_ctor_set(x_1109, 1, x_1108); -x_1110 = lean_array_push(x_1106, x_1109); -x_1111 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1111, 0, x_1087); -lean_ctor_set(x_1111, 1, x_1110); -x_1112 = lean_array_push(x_1095, x_1111); -x_1113 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_1114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1114, 0, x_1113); -lean_ctor_set(x_1114, 1, x_1112); -x_1115 = lean_array_push(x_1072, x_1114); -x_1116 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_1117 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1117, 0, x_1116); -lean_ctor_set(x_1117, 1, x_1115); -x_1118 = lean_array_push(x_1083, x_1117); -x_1119 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1119, 0, x_1087); -lean_ctor_set(x_1119, 1, x_1118); -x_1120 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_1121 = lean_array_push(x_1120, x_1119); -x_1122 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_1123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1123, 0, x_1122); -lean_ctor_set(x_1123, 1, x_1121); -x_1025 = x_1123; -x_1026 = x_1065; -goto block_1057; -} -else -{ -lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; -lean_dec(x_117); -x_1124 = l_Lean_Elab_Term_getCurrMacroScope(x_1024, x_1010); -x_1125 = lean_ctor_get(x_1124, 0); -lean_inc(x_1125); -x_1126 = lean_ctor_get(x_1124, 1); -lean_inc(x_1126); -lean_dec(x_1124); -x_1127 = l_Lean_Elab_Term_getMainModule___rarg(x_1126); -x_1128 = lean_ctor_get(x_1127, 0); -lean_inc(x_1128); -x_1129 = lean_ctor_get(x_1127, 1); -lean_inc(x_1129); -lean_dec(x_1127); -x_1130 = lean_box(0); -x_1131 = l_Lean_Meta_AbstractMVars_abstractExprMVars___main___closed__2; -x_1132 = l_Lean_addMacroScope(x_1128, x_1131, x_1125); -x_1133 = lean_box(0); -x_1134 = l_Lean_Elab_Term_elabLetDecl___closed__4; -x_1135 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1135, 0, x_1130); -lean_ctor_set(x_1135, 1, x_1134); -lean_ctor_set(x_1135, 2, x_1132); -lean_ctor_set(x_1135, 3, x_1133); -x_1136 = l_Array_empty___closed__1; -x_1137 = lean_array_push(x_1136, x_1135); -x_1138 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_1139 = lean_array_push(x_1137, x_1138); -x_1140 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4; -lean_inc(x_1139); -x_1141 = lean_array_push(x_1139, x_1140); -x_1142 = lean_array_push(x_1141, x_115); -x_1143 = l_Lean_Parser_Term_doId___elambda__1___closed__2; -x_1144 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1144, 0, x_1143); -lean_ctor_set(x_1144, 1, x_1142); -x_1145 = lean_array_push(x_1136, x_1144); -x_1146 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_1147 = lean_array_push(x_1145, x_1146); -x_1148 = l_Lean_mkTermIdFromIdent___closed__2; -x_1149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1149, 0, x_1148); -lean_ctor_set(x_1149, 1, x_1139); -x_1150 = lean_array_push(x_1136, x_1149); -x_1151 = l_Lean_nullKind___closed__2; -x_1152 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1152, 0, x_1151); -lean_ctor_set(x_1152, 1, x_1150); -x_1153 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -x_1154 = lean_array_push(x_1153, x_1152); -x_1155 = lean_array_push(x_1154, x_1138); -x_1156 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; -x_1157 = lean_array_push(x_1155, x_1156); -x_1158 = l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__6; -x_1159 = lean_array_push(x_1157, x_1158); -x_1160 = lean_array_push(x_1136, x_113); -x_1161 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1161, 0, x_1151); -lean_ctor_set(x_1161, 1, x_1160); -x_1162 = lean_array_push(x_1136, x_1161); -x_1163 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_1164 = lean_array_push(x_1162, x_1163); -x_1165 = lean_array_push(x_1164, x_654); -x_1166 = l_Lean_Parser_Term_matchAlt___closed__2; -x_1167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1167, 0, x_1166); -lean_ctor_set(x_1167, 1, x_1165); -x_1168 = lean_array_push(x_1136, x_1167); -x_1169 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1169, 0, x_1151); -lean_ctor_set(x_1169, 1, x_1168); -x_1170 = lean_array_push(x_1159, x_1169); -x_1171 = l_Lean_Parser_Term_match___elambda__1___closed__2; -x_1172 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1172, 0, x_1171); -lean_ctor_set(x_1172, 1, x_1170); -x_1173 = lean_array_push(x_1136, x_1172); -x_1174 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_1175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1175, 0, x_1174); -lean_ctor_set(x_1175, 1, x_1173); -x_1176 = lean_array_push(x_1147, x_1175); -x_1177 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1177, 0, x_1151); -lean_ctor_set(x_1177, 1, x_1176); -x_1178 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_1179 = lean_array_push(x_1178, x_1177); -x_1180 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_1181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1181, 0, x_1180); -lean_ctor_set(x_1181, 1, x_1179); -x_1025 = x_1181; -x_1026 = x_1129; -goto block_1057; -} -block_1057: -{ -uint8_t x_1027; -x_1027 = lean_nat_dec_eq(x_3, x_112); -if (x_1027 == 0) -{ -lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; -lean_dec(x_53); -x_1028 = l_Array_extract___rarg(x_2, x_112, x_3); -lean_dec(x_3); -lean_dec(x_2); -x_1029 = l_Lean_mkOptionalNode___closed__2; -x_1030 = lean_array_push(x_1029, x_1025); -x_1031 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_1032 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1032, 0, x_1031); -lean_ctor_set(x_1032, 1, x_1030); -x_1033 = lean_array_push(x_1028, x_1032); -x_1034 = l_Lean_Elab_Term_getCurrMacroScope(x_1024, x_1026); -lean_dec(x_1024); -x_1035 = lean_ctor_get(x_1034, 1); -lean_inc(x_1035); -lean_dec(x_1034); -x_1036 = l_Lean_Elab_Term_getMainModule___rarg(x_1035); -x_1037 = lean_ctor_get(x_1036, 1); -lean_inc(x_1037); -if (lean_is_exclusive(x_1036)) { - lean_ctor_release(x_1036, 0); - lean_ctor_release(x_1036, 1); - x_1038 = x_1036; -} else { - lean_dec_ref(x_1036); - x_1038 = lean_box(0); -} -x_1039 = l_Array_empty___closed__1; -x_1040 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1033, x_1033, x_112, x_1039); -lean_dec(x_1033); -x_1041 = l_Lean_nullKind___closed__2; -x_1042 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1042, 0, x_1041); -lean_ctor_set(x_1042, 1, x_1040); -x_1043 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_1044 = lean_array_push(x_1043, x_1042); -x_1045 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_1046 = lean_array_push(x_1044, x_1045); -x_1047 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_1048 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1048, 0, x_1047); -lean_ctor_set(x_1048, 1, x_1046); -x_1049 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_1050 = lean_array_push(x_1049, x_1048); -x_1051 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_1052 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1052, 0, x_1051); -lean_ctor_set(x_1052, 1, x_1050); -x_1053 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1053, 0, x_1052); -if (lean_is_scalar(x_1038)) { - x_1054 = lean_alloc_ctor(0, 2, 0); -} else { - x_1054 = x_1038; -} -lean_ctor_set(x_1054, 0, x_1053); -lean_ctor_set(x_1054, 1, x_1037); -return x_1054; -} -else -{ -lean_object* x_1055; lean_object* x_1056; -lean_dec(x_1024); -lean_dec(x_3); -lean_dec(x_2); -x_1055 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1055, 0, x_1025); -if (lean_is_scalar(x_53)) { - x_1056 = lean_alloc_ctor(0, 2, 0); -} else { - x_1056 = x_53; -} -lean_ctor_set(x_1056, 0, x_1055); -lean_ctor_set(x_1056, 1, x_1026); -return x_1056; -} -} -} -} -} -} -else -{ -lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; uint8_t x_1188; -lean_dec(x_54); -lean_dec(x_53); -x_1182 = lean_unsigned_to_nat(1u); -x_1183 = l_Lean_Syntax_getArg(x_49, x_1182); -lean_dec(x_49); -x_1184 = lean_unsigned_to_nat(2u); -x_1185 = lean_nat_add(x_3, x_1184); -x_1186 = l_Array_extract___rarg(x_2, x_1185, x_6); -lean_dec(x_6); -x_1187 = lean_array_get_size(x_1186); -x_1188 = lean_nat_dec_eq(x_1187, x_1182); -lean_dec(x_1187); -if (x_1188 == 0) -{ -lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; uint8_t x_1211; -x_1189 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_52); -x_1190 = lean_ctor_get(x_1189, 1); -lean_inc(x_1190); -lean_dec(x_1189); -x_1191 = l_Lean_Elab_Term_getMainModule___rarg(x_1190); -x_1192 = lean_ctor_get(x_1191, 1); -lean_inc(x_1192); -lean_dec(x_1191); -x_1193 = lean_unsigned_to_nat(0u); -x_1194 = l_Array_empty___closed__1; -x_1195 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1186, x_1186, x_1193, x_1194); -lean_dec(x_1186); -x_1196 = l_Lean_nullKind___closed__2; -x_1197 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1197, 0, x_1196); -lean_ctor_set(x_1197, 1, x_1195); -x_1198 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_1199 = lean_array_push(x_1198, x_1197); -x_1200 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_1201 = lean_array_push(x_1199, x_1200); -x_1202 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_1203 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1203, 0, x_1202); -lean_ctor_set(x_1203, 1, x_1201); -x_1204 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_1205 = lean_array_push(x_1204, x_1203); -x_1206 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_1207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1207, 0, x_1206); -lean_ctor_set(x_1207, 1, x_1205); -x_1208 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1192); -x_1209 = lean_ctor_get(x_1208, 1); -lean_inc(x_1209); -lean_dec(x_1208); -x_1210 = l_Lean_Elab_Term_getMainModule___rarg(x_1209); -x_1211 = !lean_is_exclusive(x_1210); -if (x_1211 == 0) -{ -lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; uint8_t x_1221; -x_1212 = lean_ctor_get(x_1210, 1); -x_1213 = lean_ctor_get(x_1210, 0); -lean_dec(x_1213); -x_1214 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_1215 = lean_array_push(x_1214, x_1183); -x_1216 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_1217 = lean_array_push(x_1215, x_1216); -x_1218 = lean_array_push(x_1217, x_1207); -x_1219 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_1220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1220, 0, x_1219); -lean_ctor_set(x_1220, 1, x_1218); -x_1221 = lean_nat_dec_eq(x_3, x_1193); -if (x_1221 == 0) -{ -lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; uint8_t x_1231; -lean_free_object(x_1210); -x_1222 = l_Array_extract___rarg(x_2, x_1193, x_3); -lean_dec(x_3); -lean_dec(x_2); -x_1223 = l_Lean_mkOptionalNode___closed__2; -x_1224 = lean_array_push(x_1223, x_1220); -x_1225 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_1226 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1226, 0, x_1225); -lean_ctor_set(x_1226, 1, x_1224); -x_1227 = lean_array_push(x_1222, x_1226); -x_1228 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1212); -lean_dec(x_4); -x_1229 = lean_ctor_get(x_1228, 1); -lean_inc(x_1229); -lean_dec(x_1228); -x_1230 = l_Lean_Elab_Term_getMainModule___rarg(x_1229); -x_1231 = !lean_is_exclusive(x_1230); -if (x_1231 == 0) -{ -lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; -x_1232 = lean_ctor_get(x_1230, 0); -lean_dec(x_1232); -x_1233 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1227, x_1227, x_1193, x_1194); -lean_dec(x_1227); -x_1234 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1234, 0, x_1196); -lean_ctor_set(x_1234, 1, x_1233); -x_1235 = lean_array_push(x_1198, x_1234); -x_1236 = lean_array_push(x_1235, x_1200); -x_1237 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1237, 0, x_1202); -lean_ctor_set(x_1237, 1, x_1236); -x_1238 = lean_array_push(x_1204, x_1237); -x_1239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1239, 0, x_1206); -lean_ctor_set(x_1239, 1, x_1238); -x_1240 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1240, 0, x_1239); -lean_ctor_set(x_1230, 0, x_1240); -return x_1230; -} -else -{ -lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; -x_1241 = lean_ctor_get(x_1230, 1); -lean_inc(x_1241); -lean_dec(x_1230); -x_1242 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1227, x_1227, x_1193, x_1194); -lean_dec(x_1227); -x_1243 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1243, 0, x_1196); -lean_ctor_set(x_1243, 1, x_1242); -x_1244 = lean_array_push(x_1198, x_1243); -x_1245 = lean_array_push(x_1244, x_1200); -x_1246 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1246, 0, x_1202); -lean_ctor_set(x_1246, 1, x_1245); -x_1247 = lean_array_push(x_1204, x_1246); -x_1248 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1248, 0, x_1206); -lean_ctor_set(x_1248, 1, x_1247); -x_1249 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1249, 0, x_1248); -x_1250 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1250, 0, x_1249); -lean_ctor_set(x_1250, 1, x_1241); -return x_1250; -} -} -else -{ -lean_object* x_1251; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1251 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1251, 0, x_1220); -lean_ctor_set(x_1210, 0, x_1251); -return x_1210; -} -} -else -{ -lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; uint8_t x_1260; -x_1252 = lean_ctor_get(x_1210, 1); -lean_inc(x_1252); -lean_dec(x_1210); -x_1253 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_1254 = lean_array_push(x_1253, x_1183); -x_1255 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_1256 = lean_array_push(x_1254, x_1255); -x_1257 = lean_array_push(x_1256, x_1207); -x_1258 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_1259 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1259, 0, x_1258); -lean_ctor_set(x_1259, 1, x_1257); -x_1260 = lean_nat_dec_eq(x_3, x_1193); -if (x_1260 == 0) -{ -lean_object* x_1261; lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; -x_1261 = l_Array_extract___rarg(x_2, x_1193, x_3); -lean_dec(x_3); -lean_dec(x_2); -x_1262 = l_Lean_mkOptionalNode___closed__2; -x_1263 = lean_array_push(x_1262, x_1259); -x_1264 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_1265 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1265, 0, x_1264); -lean_ctor_set(x_1265, 1, x_1263); -x_1266 = lean_array_push(x_1261, x_1265); -x_1267 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1252); -lean_dec(x_4); -x_1268 = lean_ctor_get(x_1267, 1); -lean_inc(x_1268); -lean_dec(x_1267); -x_1269 = l_Lean_Elab_Term_getMainModule___rarg(x_1268); -x_1270 = lean_ctor_get(x_1269, 1); -lean_inc(x_1270); -if (lean_is_exclusive(x_1269)) { - lean_ctor_release(x_1269, 0); - lean_ctor_release(x_1269, 1); - x_1271 = x_1269; -} else { - lean_dec_ref(x_1269); - x_1271 = lean_box(0); -} -x_1272 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1266, x_1266, x_1193, x_1194); -lean_dec(x_1266); -x_1273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1273, 0, x_1196); -lean_ctor_set(x_1273, 1, x_1272); -x_1274 = lean_array_push(x_1198, x_1273); -x_1275 = lean_array_push(x_1274, x_1200); -x_1276 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1276, 0, x_1202); -lean_ctor_set(x_1276, 1, x_1275); -x_1277 = lean_array_push(x_1204, x_1276); -x_1278 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1278, 0, x_1206); -lean_ctor_set(x_1278, 1, x_1277); -x_1279 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1279, 0, x_1278); -if (lean_is_scalar(x_1271)) { - x_1280 = lean_alloc_ctor(0, 2, 0); -} else { - x_1280 = x_1271; -} -lean_ctor_set(x_1280, 0, x_1279); -lean_ctor_set(x_1280, 1, x_1270); -return x_1280; -} -else -{ -lean_object* x_1281; lean_object* x_1282; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1281 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1281, 0, x_1259); -x_1282 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1282, 0, x_1281); -lean_ctor_set(x_1282, 1, x_1252); -return x_1282; -} -} -} -else -{ -lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; uint8_t x_1290; -x_1283 = l_Lean_Syntax_inhabited; -x_1284 = lean_unsigned_to_nat(0u); -x_1285 = lean_array_get(x_1283, x_1186, x_1284); -lean_dec(x_1186); -x_1286 = l_Lean_Syntax_getArg(x_1285, x_1284); -lean_dec(x_1285); -x_1287 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_52); -x_1288 = lean_ctor_get(x_1287, 1); -lean_inc(x_1288); -lean_dec(x_1287); -x_1289 = l_Lean_Elab_Term_getMainModule___rarg(x_1288); -x_1290 = !lean_is_exclusive(x_1289); -if (x_1290 == 0) -{ -lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; uint8_t x_1300; -x_1291 = lean_ctor_get(x_1289, 1); -x_1292 = lean_ctor_get(x_1289, 0); -lean_dec(x_1292); -x_1293 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_1294 = lean_array_push(x_1293, x_1183); -x_1295 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_1296 = lean_array_push(x_1294, x_1295); -x_1297 = lean_array_push(x_1296, x_1286); -x_1298 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_1299 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1299, 0, x_1298); -lean_ctor_set(x_1299, 1, x_1297); -x_1300 = lean_nat_dec_eq(x_3, x_1284); -if (x_1300 == 0) -{ -lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; uint8_t x_1310; -lean_free_object(x_1289); -x_1301 = l_Array_extract___rarg(x_2, x_1284, x_3); -lean_dec(x_3); -lean_dec(x_2); -x_1302 = l_Lean_mkOptionalNode___closed__2; -x_1303 = lean_array_push(x_1302, x_1299); -x_1304 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_1305 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1305, 0, x_1304); -lean_ctor_set(x_1305, 1, x_1303); -x_1306 = lean_array_push(x_1301, x_1305); -x_1307 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1291); -lean_dec(x_4); -x_1308 = lean_ctor_get(x_1307, 1); -lean_inc(x_1308); -lean_dec(x_1307); -x_1309 = l_Lean_Elab_Term_getMainModule___rarg(x_1308); -x_1310 = !lean_is_exclusive(x_1309); -if (x_1310 == 0) -{ -lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; -x_1311 = lean_ctor_get(x_1309, 0); -lean_dec(x_1311); -x_1312 = l_Array_empty___closed__1; -x_1313 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1306, x_1306, x_1284, x_1312); -lean_dec(x_1306); -x_1314 = l_Lean_nullKind___closed__2; -x_1315 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1315, 0, x_1314); -lean_ctor_set(x_1315, 1, x_1313); -x_1316 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_1317 = lean_array_push(x_1316, x_1315); -x_1318 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_1319 = lean_array_push(x_1317, x_1318); -x_1320 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_1321 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1321, 0, x_1320); -lean_ctor_set(x_1321, 1, x_1319); -x_1322 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_1323 = lean_array_push(x_1322, x_1321); -x_1324 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_1325 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1325, 0, x_1324); -lean_ctor_set(x_1325, 1, x_1323); -x_1326 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1326, 0, x_1325); -lean_ctor_set(x_1309, 0, x_1326); -return x_1309; -} -else -{ -lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; -x_1327 = lean_ctor_get(x_1309, 1); -lean_inc(x_1327); -lean_dec(x_1309); -x_1328 = l_Array_empty___closed__1; -x_1329 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1306, x_1306, x_1284, x_1328); -lean_dec(x_1306); -x_1330 = l_Lean_nullKind___closed__2; -x_1331 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1331, 0, x_1330); -lean_ctor_set(x_1331, 1, x_1329); -x_1332 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_1333 = lean_array_push(x_1332, x_1331); -x_1334 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_1335 = lean_array_push(x_1333, x_1334); -x_1336 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_1337 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1337, 0, x_1336); -lean_ctor_set(x_1337, 1, x_1335); -x_1338 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_1339 = lean_array_push(x_1338, x_1337); -x_1340 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_1341 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1341, 0, x_1340); -lean_ctor_set(x_1341, 1, x_1339); -x_1342 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1342, 0, x_1341); -x_1343 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1343, 0, x_1342); -lean_ctor_set(x_1343, 1, x_1327); -return x_1343; -} -} -else -{ -lean_object* x_1344; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1344 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1344, 0, x_1299); -lean_ctor_set(x_1289, 0, x_1344); -return x_1289; -} -} -else -{ -lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; uint8_t x_1353; -x_1345 = lean_ctor_get(x_1289, 1); -lean_inc(x_1345); -lean_dec(x_1289); -x_1346 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_1347 = lean_array_push(x_1346, x_1183); -x_1348 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_1349 = lean_array_push(x_1347, x_1348); -x_1350 = lean_array_push(x_1349, x_1286); -x_1351 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_1352 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1352, 0, x_1351); -lean_ctor_set(x_1352, 1, x_1350); -x_1353 = lean_nat_dec_eq(x_3, x_1284); -if (x_1353 == 0) -{ -lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; -x_1354 = l_Array_extract___rarg(x_2, x_1284, x_3); -lean_dec(x_3); -lean_dec(x_2); -x_1355 = l_Lean_mkOptionalNode___closed__2; -x_1356 = lean_array_push(x_1355, x_1352); -x_1357 = l_Lean_Parser_Term_doExpr___elambda__1___closed__2; -x_1358 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1358, 0, x_1357); -lean_ctor_set(x_1358, 1, x_1356); -x_1359 = lean_array_push(x_1354, x_1358); -x_1360 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1345); -lean_dec(x_4); -x_1361 = lean_ctor_get(x_1360, 1); -lean_inc(x_1361); -lean_dec(x_1360); -x_1362 = l_Lean_Elab_Term_getMainModule___rarg(x_1361); -x_1363 = lean_ctor_get(x_1362, 1); -lean_inc(x_1363); -if (lean_is_exclusive(x_1362)) { - lean_ctor_release(x_1362, 0); - lean_ctor_release(x_1362, 1); - x_1364 = x_1362; -} else { - lean_dec_ref(x_1362); - x_1364 = lean_box(0); -} -x_1365 = l_Array_empty___closed__1; -x_1366 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1359, x_1359, x_1284, x_1365); -lean_dec(x_1359); -x_1367 = l_Lean_nullKind___closed__2; -x_1368 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1368, 0, x_1367); -lean_ctor_set(x_1368, 1, x_1366); -x_1369 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2; -x_1370 = lean_array_push(x_1369, x_1368); -x_1371 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3; -x_1372 = lean_array_push(x_1370, x_1371); -x_1373 = l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -x_1374 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1374, 0, x_1373); -lean_ctor_set(x_1374, 1, x_1372); -x_1375 = l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; -x_1376 = lean_array_push(x_1375, x_1374); -x_1377 = l_Lean_Parser_Term_do___elambda__1___closed__2; -x_1378 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1378, 0, x_1377); -lean_ctor_set(x_1378, 1, x_1376); -x_1379 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1379, 0, x_1378); -if (lean_is_scalar(x_1364)) { - x_1380 = lean_alloc_ctor(0, 2, 0); -} else { - x_1380 = x_1364; -} -lean_ctor_set(x_1380, 0, x_1379); -lean_ctor_set(x_1380, 1, x_1363); -return x_1380; -} -else -{ -lean_object* x_1381; lean_object* x_1382; -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_1381 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_1381, 0, x_1352); -x_1382 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1382, 0, x_1381); -lean_ctor_set(x_1382, 1, x_1345); -return x_1382; -} -} -} -} -} -else -{ -lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; lean_object* x_1386; lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; lean_object* x_1395; uint8_t x_1396; -lean_dec(x_49); -x_1383 = lean_ctor_get(x_50, 1); -lean_inc(x_1383); -lean_dec(x_50); -x_1384 = lean_ctor_get(x_51, 0); -lean_inc(x_1384); -lean_dec(x_51); -x_1385 = lean_unsigned_to_nat(1u); -x_1386 = lean_nat_add(x_3, x_1385); -x_1387 = l_Array_extract___rarg(x_2, x_1386, x_6); -lean_dec(x_6); -x_1388 = lean_unsigned_to_nat(0u); -x_1389 = l_Array_extract___rarg(x_2, x_1388, x_3); -lean_dec(x_2); -x_1390 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1384, x_1384, x_1388, x_1389); -lean_dec(x_1384); -x_1391 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1387, x_1387, x_1388, x_1390); -lean_dec(x_1387); -x_1392 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1383); -x_1393 = lean_ctor_get(x_1392, 1); -lean_inc(x_1393); -lean_dec(x_1392); -x_1394 = l_Lean_Elab_Term_getMainModule___rarg(x_1393); -x_1395 = lean_ctor_get(x_1394, 1); -lean_inc(x_1395); -lean_dec(x_1394); -x_1396 = 1; -x_1 = x_1396; -x_2 = x_1391; -x_5 = x_1395; -goto _start; -} -} -} -} -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; x_6 = lean_unbox(x_1); lean_dec(x_1); -x_7 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main(x_6, x_2, x_3, x_4, x_5); +x_7 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main(x_6, x_2, x_3, x_4, x_5); return x_7; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; x_6 = lean_unbox(x_1); lean_dec(x_1); -x_7 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems(x_6, x_2, x_3, x_4, x_5); +x_7 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux(x_6, x_2, x_3, x_4, x_5); return x_7; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_8__ensureDoElemType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Init_Lean_Elab_DoNotation_8__expandDoElems(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; lean_object* x_5; lean_object* x_6; +x_4 = 0; +x_5 = lean_unsigned_to_nat(0u); +x_6 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main(x_4, x_1, x_5, x_2, x_3); +return x_6; +} +} +lean_object* l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; @@ -5272,11 +3560,11 @@ x_8 = l_Lean_Elab_Term_ensureHasType(x_1, x_7, x_4, x_5, x_6); return x_8; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_8__ensureDoElemType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l___private_Init_Lean_Elab_DoNotation_8__ensureDoElemType(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); return x_7; } @@ -5300,7 +3588,7 @@ x_1 = l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1; return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1() { _start: { lean_object* x_1; @@ -5308,27 +3596,27 @@ x_1 = lean_mk_string("type former application expected"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1; +x_1 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2; +x_1 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -5418,7 +3706,7 @@ lean_dec(x_28); x_29 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_29, 0, x_26); x_30 = l_Lean_indentExpr(x_29); -x_31 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; +x_31 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3; x_32 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); @@ -5460,7 +3748,7 @@ lean_dec(x_39); x_40 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_40, 0, x_37); x_41 = l_Lean_indentExpr(x_40); -x_42 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; +x_42 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3; x_43 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); @@ -5577,7 +3865,7 @@ lean_dec(x_67); x_68 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_68, 0, x_64); x_69 = l_Lean_indentExpr(x_68); -x_70 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; +x_70 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3; x_71 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_69); @@ -5723,7 +4011,7 @@ lean_dec(x_104); x_105 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_105, 0, x_101); x_106 = l_Lean_indentExpr(x_105); -x_107 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; +x_107 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3; x_108 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_108, 0, x_107); lean_ctor_set(x_108, 1, x_106); @@ -5759,16 +4047,16 @@ return x_117; } } } -lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__1(lean_object* x_1) { +lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; @@ -5782,7 +4070,7 @@ lean_dec(x_4); return x_6; } } -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -5823,7 +4111,7 @@ x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); lean_inc(x_8); -x_23 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(x_1, x_21, x_8, x_22); +x_23 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg(x_1, x_21, x_8, x_22); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -5989,7 +4277,7 @@ return x_54; } } } -lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkBind(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_Lean_Elab_DoNotation_11__mkBind(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; @@ -5997,7 +4285,7 @@ x_8 = l_Array_isEmpty___rarg(x_4); if (x_8 == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Array_back___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__1(x_4); +x_9 = l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1(x_4); x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); lean_dec(x_9); @@ -6073,7 +4361,7 @@ x_32 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; x_33 = l_Lean_mkConst(x_32, x_31); x_34 = l_Lean_mkAppB(x_33, x_2, x_3); x_35 = lean_array_get_size(x_4); -x_36 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__2(x_1, x_4, x_34, x_4, x_35, lean_box(0), x_5, x_6, x_28); +x_36 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2(x_1, x_4, x_34, x_4, x_35, lean_box(0), x_5, x_6, x_28); return x_36; } else @@ -6254,37 +4542,37 @@ return x_61; } } } -lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__1___boxed(lean_object* x_1) { +lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Array_back___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__1(x_1); +x_2 = l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1(x_1); lean_dec(x_1); return x_2; } } -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_10__mkBind___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); return x_10; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkBind___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_Lean_Elab_DoNotation_11__mkBind___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Init_Lean_Elab_DoNotation_10__mkBind(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_Lean_Elab_DoNotation_11__mkBind(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_4); lean_dec(x_1); return x_8; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -6294,11 +4582,11 @@ x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_2); lean_ctor_set(x_13, 1, x_8); x_14 = lean_array_push(x_3, x_13); -x_15 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main(x_4, x_5, x_6, x_7, x_12, x_14, x_9, x_10); +x_15 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main(x_4, x_5, x_6, x_7, x_12, x_14, x_9, x_10); return x_15; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1() { _start: { lean_object* x_1; @@ -6306,31 +4594,31 @@ x_1 = lean_mk_string("unexpected 'do' expression element"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__1; +x_1 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__2; +x_1 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__3; +x_1 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3; x_2 = l_Lean_MessageData_ofList___closed__3; x_3 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -6338,7 +4626,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5() { _start: { lean_object* x_1; @@ -6346,27 +4634,27 @@ x_1 = lean_mk_string("the last statement in a 'do' block must be an expression") return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__5; +x_1 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__7() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__6; +x_1 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -6394,7 +4682,7 @@ lean_dec(x_1); lean_inc(x_10); x_16 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_16, 0, x_10); -x_17 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4; +x_17 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4; x_18 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); @@ -6423,7 +4711,7 @@ lean_dec(x_2); lean_inc(x_10); x_24 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_24, 0, x_10); -x_25 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4; +x_25 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4; x_26 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); @@ -6469,7 +4757,7 @@ lean_inc(x_38); lean_dec(x_36); lean_inc(x_7); lean_inc(x_10); -x_39 = l___private_Init_Lean_Elab_DoNotation_8__ensureDoElemType(x_10, x_2, x_4, x_37, x_7, x_38); +x_39 = l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType(x_10, x_2, x_4, x_37, x_7, x_38); if (lean_obj_tag(x_39) == 0) { lean_object* x_40; lean_object* x_41; lean_object* x_42; @@ -6478,7 +4766,7 @@ lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); lean_dec(x_39); -x_42 = l___private_Init_Lean_Elab_DoNotation_10__mkBind(x_10, x_2, x_3, x_6, x_40, x_7, x_41); +x_42 = l___private_Init_Lean_Elab_DoNotation_11__mkBind(x_10, x_2, x_3, x_6, x_40, x_7, x_41); lean_dec(x_6); lean_dec(x_10); return x_42; @@ -6591,7 +4879,7 @@ x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); lean_dec(x_67); lean_inc(x_7); -x_70 = l___private_Init_Lean_Elab_DoNotation_8__ensureDoElemType(x_60, x_2, x_64, x_68, x_7, x_69); +x_70 = l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType(x_60, x_2, x_64, x_68, x_7, x_69); if (lean_obj_tag(x_70) == 0) { lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; @@ -6600,7 +4888,7 @@ lean_inc(x_71); x_72 = lean_ctor_get(x_70, 1); lean_inc(x_72); lean_dec(x_70); -x_73 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___lambda__1___boxed), 10, 7); +x_73 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1___boxed), 10, 7); lean_closure_set(x_73, 0, x_5); lean_closure_set(x_73, 1, x_71); lean_closure_set(x_73, 2, x_6); @@ -6722,7 +5010,7 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_87 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__7; +x_87 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7; x_88 = l_Lean_Elab_Term_throwError___rarg(x_10, x_87, x_7, x_8); lean_dec(x_10); x_89 = !lean_is_exclusive(x_88); @@ -6747,30 +5035,30 @@ return x_92; } } } -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); return x_11; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_9; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElems(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElems(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_unsigned_to_nat(0u); x_8 = l_Array_empty___closed__1; -x_9 = l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main(x_1, x_2, x_3, x_4, x_7, x_8, x_5, x_6); +x_9 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main(x_1, x_2, x_3, x_4, x_7, x_8, x_5, x_6); return x_9; } } @@ -6791,131 +5079,85 @@ lean_object* x_5; x_5 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4); if (lean_obj_tag(x_5) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_48; lean_object* x_49; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; x_6 = lean_ctor_get(x_5, 1); lean_inc(x_6); lean_dec(x_5); x_7 = l___private_Init_Lean_Elab_DoNotation_3__getDoElems(x_1); -x_48 = 0; -x_49 = lean_unsigned_to_nat(0u); -lean_inc(x_3); +x_84 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_6); +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); +lean_inc(x_86); +lean_dec(x_84); +x_87 = l_Lean_Elab_Term_getEnv___rarg(x_86); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 0); +lean_inc(x_89); +lean_dec(x_87); +x_90 = !lean_is_exclusive(x_88); +if (x_90 == 0) +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_91 = lean_ctor_get(x_88, 5); +x_92 = lean_environment_main_module(x_89); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_85); +x_94 = 0; +x_95 = lean_unsigned_to_nat(0u); lean_inc(x_7); -x_50 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main(x_48, x_7, x_49, x_3, x_6); -x_51 = lean_ctor_get(x_50, 0); -lean_inc(x_51); -if (lean_obj_tag(x_51) == 0) -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_52 = lean_ctor_get(x_50, 1); -lean_inc(x_52); -lean_dec(x_50); -x_53 = l_Lean_Elab_Term_getOptions(x_3, x_52); -x_54 = lean_ctor_get(x_53, 0); -lean_inc(x_54); -x_55 = lean_ctor_get(x_53, 1); -lean_inc(x_55); -lean_dec(x_53); -x_56 = l_Lean_Elab_Term_elabDo___closed__1; -x_57 = l_Lean_checkTraceOption(x_54, x_56); -lean_dec(x_54); -if (x_57 == 0) -{ -x_8 = x_55; -goto block_47; +x_96 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main(x_94, x_7, x_95, x_93, x_91); +x_97 = lean_ctor_get(x_96, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_96, 1); +lean_inc(x_98); +lean_dec(x_96); +lean_ctor_set(x_88, 5, x_98); +x_48 = x_97; +x_49 = x_88; +goto block_83; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_inc(x_1); -x_58 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_58, 0, x_1); -x_59 = l_Lean_Elab_Term_logTrace(x_56, x_1, x_58, x_3, x_55); -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -lean_dec(x_59); -x_8 = x_60; -goto block_47; -} -} -else -{ -lean_object* x_61; lean_object* x_62; uint8_t x_63; -lean_dec(x_7); -x_61 = lean_ctor_get(x_50, 1); -lean_inc(x_61); -lean_dec(x_50); -x_62 = lean_ctor_get(x_51, 0); -lean_inc(x_62); -lean_dec(x_51); -x_63 = !lean_is_exclusive(x_3); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; lean_object* x_68; -x_64 = lean_ctor_get(x_3, 8); -lean_inc(x_62); -x_65 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_65, 0, x_1); -lean_ctor_set(x_65, 1, x_62); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -lean_ctor_set(x_3, 8, x_66); -x_67 = 1; -x_68 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_67, x_62, x_3, x_61); -return x_68; -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; lean_object* x_86; -x_69 = lean_ctor_get(x_3, 0); -x_70 = lean_ctor_get(x_3, 1); -x_71 = lean_ctor_get(x_3, 2); -x_72 = lean_ctor_get(x_3, 3); -x_73 = lean_ctor_get(x_3, 4); -x_74 = lean_ctor_get(x_3, 5); -x_75 = lean_ctor_get(x_3, 6); -x_76 = lean_ctor_get(x_3, 7); -x_77 = lean_ctor_get(x_3, 8); -x_78 = lean_ctor_get(x_3, 9); -x_79 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_80 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_81 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -lean_inc(x_78); -lean_inc(x_77); -lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_69); -lean_dec(x_3); -lean_inc(x_62); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_1); -lean_ctor_set(x_82, 1, x_62); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_82); -lean_ctor_set(x_83, 1, x_77); -x_84 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_84, 0, x_69); -lean_ctor_set(x_84, 1, x_70); -lean_ctor_set(x_84, 2, x_71); -lean_ctor_set(x_84, 3, x_72); -lean_ctor_set(x_84, 4, x_73); -lean_ctor_set(x_84, 5, x_74); -lean_ctor_set(x_84, 6, x_75); -lean_ctor_set(x_84, 7, x_76); -lean_ctor_set(x_84, 8, x_83); -lean_ctor_set(x_84, 9, x_78); -lean_ctor_set_uint8(x_84, sizeof(void*)*10, x_79); -lean_ctor_set_uint8(x_84, sizeof(void*)*10 + 1, x_80); -lean_ctor_set_uint8(x_84, sizeof(void*)*10 + 2, x_81); -x_85 = 1; -x_86 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_85, x_62, x_84, x_61); -return x_86; -} +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_99 = lean_ctor_get(x_88, 0); +x_100 = lean_ctor_get(x_88, 1); +x_101 = lean_ctor_get(x_88, 2); +x_102 = lean_ctor_get(x_88, 3); +x_103 = lean_ctor_get(x_88, 4); +x_104 = lean_ctor_get(x_88, 5); +lean_inc(x_104); +lean_inc(x_103); +lean_inc(x_102); +lean_inc(x_101); +lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_88); +x_105 = lean_environment_main_module(x_89); +x_106 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_85); +x_107 = 0; +x_108 = lean_unsigned_to_nat(0u); +lean_inc(x_7); +x_109 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main(x_107, x_7, x_108, x_106, x_104); +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_112 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_112, 0, x_99); +lean_ctor_set(x_112, 1, x_100); +lean_ctor_set(x_112, 2, x_101); +lean_ctor_set(x_112, 3, x_102); +lean_ctor_set(x_112, 4, x_103); +lean_ctor_set(x_112, 5, x_111); +x_48 = x_110; +x_49 = x_112; +goto block_83; } block_47: { @@ -6948,7 +5190,7 @@ lean_dec(x_14); x_18 = l_Lean_Expr_Inhabited; x_19 = l_Option_get_x21___rarg___closed__3; x_20 = lean_panic_fn(x_18, x_19); -x_21 = l___private_Init_Lean_Elab_DoNotation_12__processDoElems(x_12, x_16, x_17, x_20, x_3, x_15); +x_21 = l___private_Init_Lean_Elab_DoNotation_13__processDoElems(x_12, x_16, x_17, x_20, x_3, x_15); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -7008,7 +5250,7 @@ lean_dec(x_14); x_33 = lean_ctor_get(x_2, 0); lean_inc(x_33); lean_dec(x_2); -x_34 = l___private_Init_Lean_Elab_DoNotation_12__processDoElems(x_12, x_31, x_32, x_33, x_3, x_30); +x_34 = l___private_Init_Lean_Elab_DoNotation_13__processDoElems(x_12, x_31, x_32, x_33, x_3, x_30); if (lean_obj_tag(x_34) == 0) { uint8_t x_35; @@ -7081,30 +5323,141 @@ return x_46; } } } +block_83: +{ +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +x_50 = l_Lean_Elab_Term_getOptions(x_3, x_49); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +lean_dec(x_50); +x_53 = l_Lean_Elab_Term_elabDo___closed__1; +x_54 = l_Lean_checkTraceOption(x_51, x_53); +lean_dec(x_51); +if (x_54 == 0) +{ +x_8 = x_52; +goto block_47; } else { -uint8_t x_87; +lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_inc(x_1); +x_55 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_55, 0, x_1); +x_56 = l_Lean_Elab_Term_logTrace(x_53, x_1, x_55, x_3, x_52); +x_57 = lean_ctor_get(x_56, 1); +lean_inc(x_57); +lean_dec(x_56); +x_8 = x_57; +goto block_47; +} +} +else +{ +lean_object* x_58; uint8_t x_59; +lean_dec(x_7); +x_58 = lean_ctor_get(x_48, 0); +lean_inc(x_58); +lean_dec(x_48); +x_59 = !lean_is_exclusive(x_3); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; +x_60 = lean_ctor_get(x_3, 8); +lean_inc(x_58); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_1); +lean_ctor_set(x_61, 1, x_58); +x_62 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +lean_ctor_set(x_3, 8, x_62); +x_63 = 1; +x_64 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_63, x_58, x_3, x_49); +return x_64; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; +x_65 = lean_ctor_get(x_3, 0); +x_66 = lean_ctor_get(x_3, 1); +x_67 = lean_ctor_get(x_3, 2); +x_68 = lean_ctor_get(x_3, 3); +x_69 = lean_ctor_get(x_3, 4); +x_70 = lean_ctor_get(x_3, 5); +x_71 = lean_ctor_get(x_3, 6); +x_72 = lean_ctor_get(x_3, 7); +x_73 = lean_ctor_get(x_3, 8); +x_74 = lean_ctor_get(x_3, 9); +x_75 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +x_76 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); +x_77 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_inc(x_74); +lean_inc(x_73); +lean_inc(x_72); +lean_inc(x_71); +lean_inc(x_70); +lean_inc(x_69); +lean_inc(x_68); +lean_inc(x_67); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_3); +lean_inc(x_58); +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_1); +lean_ctor_set(x_78, 1, x_58); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_73); +x_80 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_80, 0, x_65); +lean_ctor_set(x_80, 1, x_66); +lean_ctor_set(x_80, 2, x_67); +lean_ctor_set(x_80, 3, x_68); +lean_ctor_set(x_80, 4, x_69); +lean_ctor_set(x_80, 5, x_70); +lean_ctor_set(x_80, 6, x_71); +lean_ctor_set(x_80, 7, x_72); +lean_ctor_set(x_80, 8, x_79); +lean_ctor_set(x_80, 9, x_74); +lean_ctor_set_uint8(x_80, sizeof(void*)*10, x_75); +lean_ctor_set_uint8(x_80, sizeof(void*)*10 + 1, x_76); +lean_ctor_set_uint8(x_80, sizeof(void*)*10 + 2, x_77); +x_81 = 1; +x_82 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_81, x_58, x_80, x_49); +return x_82; +} +} +} +} +else +{ +uint8_t x_113; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_87 = !lean_is_exclusive(x_5); -if (x_87 == 0) +x_113 = !lean_is_exclusive(x_5); +if (x_113 == 0) { return x_5; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_5, 0); -x_89 = lean_ctor_get(x_5, 1); -lean_inc(x_89); -lean_inc(x_88); +lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_114 = lean_ctor_get(x_5, 0); +x_115 = lean_ctor_get(x_5, 1); +lean_inc(x_115); +lean_inc(x_114); lean_dec(x_5); -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; +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_114); +lean_ctor_set(x_116, 1, x_115); +return x_116; } } } @@ -7146,7 +5499,7 @@ x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_13__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_DoNotation_14__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -7241,40 +5594,40 @@ l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__3 lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__3); l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4 = _init_l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4(); lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__4); -l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__1); -l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__2); -l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__3); -l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__4 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__4); -l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElems___main___closed__5); +l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__1); +l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2); +l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3); +l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__4 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__4); +l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5); l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1 = _init_l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1); l_Lean_Elab_Term_ProcessedDoElem_inhabited = _init_l_Lean_Elab_Term_ProcessedDoElem_inhabited(); lean_mark_persistent(l_Lean_Elab_Term_ProcessedDoElem_inhabited); -l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1); -l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2); -l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3); -l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__1); -l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__2); -l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__3); -l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4 = _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__4); -l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__5 = _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__5(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__5); -l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__6 = _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__6(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__6); -l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__7 = _init_l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__7(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_11__processDoElemsAux___main___closed__7); +l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1); +l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2); +l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3); +l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1); +l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2); +l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3); +l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4); +l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5); +l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6); +l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7); l_Lean_Elab_Term_elabDo___closed__1 = _init_l_Lean_Elab_Term_elabDo___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabDo___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__1(); @@ -7286,7 +5639,7 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__3); res = l___regBuiltinTermElab_Lean_Elab_Term_elabDo(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Init_Lean_Elab_DoNotation_13__regTraceClasses(lean_io_mk_world()); +res = l___private_Init_Lean_Elab_DoNotation_14__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Init/Lean/Elab/Tactic/Basic.c b/stage0/stdlib/Init/Lean/Elab/Tactic/Basic.c index 986471caf9..db14c23b05 100644 --- a/stage0/stdlib/Init/Lean/Elab/Tactic/Basic.c +++ b/stage0/stdlib/Init/Lean/Elab/Tactic/Basic.c @@ -4743,83 +4743,84 @@ lean_inc(x_61); lean_dec(x_52); if (lean_obj_tag(x_61) == 0) { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; x_62 = lean_ctor_get(x_61, 0); lean_inc(x_62); +x_63 = lean_ctor_get(x_61, 1); +lean_inc(x_63); lean_dec(x_61); -x_63 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_63, 0, x_62); -x_64 = lean_alloc_ctor(0, 1, 0); +x_64 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_64, 0, x_63); +x_65 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_65, 0, x_64); lean_inc(x_4); -lean_inc(x_2); -x_65 = l_Lean_Elab_Tactic_throwError___rarg(x_2, x_64, x_4, x_39); -if (lean_obj_tag(x_65) == 0) +x_66 = l_Lean_Elab_Tactic_throwError___rarg(x_62, x_65, x_4, x_39); +if (lean_obj_tag(x_66) == 0) { -lean_object* x_66; lean_object* x_67; -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_65, 1); +lean_object* x_67; lean_object* x_68; +x_67 = lean_ctor_get(x_66, 0); lean_inc(x_67); -lean_dec(x_65); -x_21 = x_66; -x_22 = x_67; +x_68 = lean_ctor_get(x_66, 1); +lean_inc(x_68); +lean_dec(x_66); +x_21 = x_67; +x_22 = x_68; goto block_34; } else { -uint8_t x_68; -x_68 = !lean_is_exclusive(x_65); -if (x_68 == 0) +uint8_t x_69; +x_69 = !lean_is_exclusive(x_66); +if (x_69 == 0) { -lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_65, 0); -x_70 = lean_ctor_get(x_65, 1); -x_71 = l_Lean_Elab_Tactic_restore(x_70, x_20); +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_66, 0); +x_71 = lean_ctor_get(x_66, 1); +x_72 = l_Lean_Elab_Tactic_restore(x_71, x_20); lean_dec(x_20); if (lean_obj_tag(x_17) == 0) { lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -lean_ctor_set(x_65, 1, x_71); -return x_65; +lean_ctor_set(x_66, 1, x_72); +return x_66; } else { -lean_free_object(x_65); -lean_dec(x_69); +lean_free_object(x_66); +lean_dec(x_70); x_3 = x_17; -x_5 = x_71; +x_5 = x_72; goto _start; } } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_65, 0); -x_74 = lean_ctor_get(x_65, 1); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_66, 0); +x_75 = lean_ctor_get(x_66, 1); +lean_inc(x_75); lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_65); -x_75 = l_Lean_Elab_Tactic_restore(x_74, x_20); +lean_dec(x_66); +x_76 = l_Lean_Elab_Tactic_restore(x_75, x_20); lean_dec(x_20); if (lean_obj_tag(x_17) == 0) { -lean_object* x_76; +lean_object* x_77; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_75); -return x_76; +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_74); +lean_ctor_set(x_77, 1, x_76); +return x_77; } else { -lean_dec(x_73); +lean_dec(x_74); x_3 = x_17; -x_5 = x_75; +x_5 = x_76; goto _start; } } @@ -4827,75 +4828,75 @@ goto _start; } else { -lean_object* x_78; +lean_object* x_79; lean_inc(x_4); -x_78 = l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(x_4, x_39); -if (lean_obj_tag(x_78) == 0) +x_79 = l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(x_4, x_39); +if (lean_obj_tag(x_79) == 0) { -lean_object* x_79; lean_object* x_80; -x_79 = lean_ctor_get(x_78, 0); -lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); +lean_object* x_80; lean_object* x_81; +x_80 = lean_ctor_get(x_79, 0); lean_inc(x_80); -lean_dec(x_78); -x_21 = x_79; -x_22 = x_80; +x_81 = lean_ctor_get(x_79, 1); +lean_inc(x_81); +lean_dec(x_79); +x_21 = x_80; +x_22 = x_81; goto block_34; } else { -uint8_t x_81; -x_81 = !lean_is_exclusive(x_78); -if (x_81 == 0) +uint8_t x_82; +x_82 = !lean_is_exclusive(x_79); +if (x_82 == 0) { -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_78, 0); -x_83 = lean_ctor_get(x_78, 1); -x_84 = l_Lean_Elab_Tactic_restore(x_83, x_20); +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_79, 0); +x_84 = lean_ctor_get(x_79, 1); +x_85 = l_Lean_Elab_Tactic_restore(x_84, x_20); lean_dec(x_20); if (lean_obj_tag(x_17) == 0) { lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -lean_ctor_set(x_78, 1, x_84); -return x_78; +lean_ctor_set(x_79, 1, x_85); +return x_79; } else { -lean_free_object(x_78); -lean_dec(x_82); +lean_free_object(x_79); +lean_dec(x_83); x_3 = x_17; -x_5 = x_84; +x_5 = x_85; goto _start; } } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_78, 0); -x_87 = lean_ctor_get(x_78, 1); +lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_87 = lean_ctor_get(x_79, 0); +x_88 = lean_ctor_get(x_79, 1); +lean_inc(x_88); lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_78); -x_88 = l_Lean_Elab_Tactic_restore(x_87, x_20); +lean_dec(x_79); +x_89 = l_Lean_Elab_Tactic_restore(x_88, x_20); lean_dec(x_20); if (lean_obj_tag(x_17) == 0) { -lean_object* x_89; +lean_object* x_90; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_86); -lean_ctor_set(x_89, 1, x_88); -return x_89; +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_87); +lean_ctor_set(x_90, 1, x_89); +return x_90; } else { -lean_dec(x_86); +lean_dec(x_87); x_3 = x_17; -x_5 = x_88; +x_5 = x_89; goto _start; } } @@ -4905,194 +4906,195 @@ goto _start; } else { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_91 = lean_ctor_get(x_40, 0); -x_92 = lean_ctor_get(x_40, 1); -x_93 = lean_ctor_get(x_40, 2); -x_94 = lean_ctor_get(x_40, 3); -x_95 = lean_ctor_get(x_40, 4); -x_96 = lean_ctor_get(x_40, 5); +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_92 = lean_ctor_get(x_40, 0); +x_93 = lean_ctor_get(x_40, 1); +x_94 = lean_ctor_get(x_40, 2); +x_95 = lean_ctor_get(x_40, 3); +x_96 = lean_ctor_get(x_40, 4); +x_97 = lean_ctor_get(x_40, 5); +lean_inc(x_97); lean_inc(x_96); lean_inc(x_95); lean_inc(x_94); lean_inc(x_93); lean_inc(x_92); -lean_inc(x_91); lean_dec(x_40); -x_97 = lean_environment_main_module(x_41); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_36); +x_98 = lean_environment_main_module(x_41); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_36); lean_inc(x_2); -x_99 = lean_apply_3(x_16, x_2, x_98, x_96); -if (lean_obj_tag(x_99) == 0) +x_100 = lean_apply_3(x_16, x_2, x_99, x_97); +if (lean_obj_tag(x_100) == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; if (lean_is_exclusive(x_39)) { lean_ctor_release(x_39, 0); lean_ctor_release(x_39, 1); - x_100 = x_39; + x_101 = x_39; } else { lean_dec_ref(x_39); - x_100 = lean_box(0); + x_101 = lean_box(0); } -x_101 = lean_ctor_get(x_99, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_99, 1); +x_102 = lean_ctor_get(x_100, 0); lean_inc(x_102); -lean_dec(x_99); -x_103 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_103, 0, x_91); -lean_ctor_set(x_103, 1, x_92); -lean_ctor_set(x_103, 2, x_93); -lean_ctor_set(x_103, 3, x_94); -lean_ctor_set(x_103, 4, x_95); -lean_ctor_set(x_103, 5, x_102); -if (lean_is_scalar(x_100)) { - x_104 = lean_alloc_ctor(0, 2, 0); +x_103 = lean_ctor_get(x_100, 1); +lean_inc(x_103); +lean_dec(x_100); +x_104 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_104, 0, x_92); +lean_ctor_set(x_104, 1, x_93); +lean_ctor_set(x_104, 2, x_94); +lean_ctor_set(x_104, 3, x_95); +lean_ctor_set(x_104, 4, x_96); +lean_ctor_set(x_104, 5, x_103); +if (lean_is_scalar(x_101)) { + x_105 = lean_alloc_ctor(0, 2, 0); } else { - x_104 = x_100; + x_105 = x_101; } -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_42); -x_21 = x_101; -x_22 = x_104; +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_42); +x_21 = x_102; +x_22 = x_105; goto block_34; } else { -lean_object* x_105; +lean_object* x_106; +lean_dec(x_96); lean_dec(x_95); lean_dec(x_94); lean_dec(x_93); lean_dec(x_92); -lean_dec(x_91); lean_dec(x_42); -x_105 = lean_ctor_get(x_99, 0); -lean_inc(x_105); -lean_dec(x_99); -if (lean_obj_tag(x_105) == 0) -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -x_106 = lean_ctor_get(x_105, 0); +x_106 = lean_ctor_get(x_100, 0); lean_inc(x_106); -lean_dec(x_105); -x_107 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_107, 0, x_106); -x_108 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_108, 0, x_107); -lean_inc(x_4); -lean_inc(x_2); -x_109 = l_Lean_Elab_Tactic_throwError___rarg(x_2, x_108, x_4, x_39); -if (lean_obj_tag(x_109) == 0) +lean_dec(x_100); +if (lean_obj_tag(x_106) == 0) { -lean_object* x_110; lean_object* x_111; -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 1); -lean_inc(x_111); -lean_dec(x_109); -x_21 = x_110; -x_22 = x_111; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_107 = lean_ctor_get(x_106, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_106, 1); +lean_inc(x_108); +lean_dec(x_106); +x_109 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_109, 0, x_108); +x_110 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_110, 0, x_109); +lean_inc(x_4); +x_111 = l_Lean_Elab_Tactic_throwError___rarg(x_107, x_110, x_4, x_39); +if (lean_obj_tag(x_111) == 0) +{ +lean_object* x_112; lean_object* x_113; +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_21 = x_112; +x_22 = x_113; goto block_34; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_112 = lean_ctor_get(x_109, 0); -lean_inc(x_112); -x_113 = lean_ctor_get(x_109, 1); -lean_inc(x_113); -if (lean_is_exclusive(x_109)) { - lean_ctor_release(x_109, 0); - lean_ctor_release(x_109, 1); - x_114 = x_109; +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_114 = lean_ctor_get(x_111, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_111, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_116 = x_111; } else { - lean_dec_ref(x_109); - x_114 = lean_box(0); + lean_dec_ref(x_111); + x_116 = lean_box(0); } -x_115 = l_Lean_Elab_Tactic_restore(x_113, x_20); +x_117 = l_Lean_Elab_Tactic_restore(x_115, x_20); lean_dec(x_20); if (lean_obj_tag(x_17) == 0) { -lean_object* x_116; +lean_object* x_118; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_114)) { - x_116 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_116)) { + x_118 = lean_alloc_ctor(1, 2, 0); } else { - x_116 = x_114; + x_118 = x_116; } -lean_ctor_set(x_116, 0, x_112); -lean_ctor_set(x_116, 1, x_115); -return x_116; +lean_ctor_set(x_118, 0, x_114); +lean_ctor_set(x_118, 1, x_117); +return x_118; } else { +lean_dec(x_116); lean_dec(x_114); -lean_dec(x_112); x_3 = x_17; -x_5 = x_115; +x_5 = x_117; goto _start; } } } else { -lean_object* x_118; +lean_object* x_120; lean_inc(x_4); -x_118 = l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(x_4, x_39); -if (lean_obj_tag(x_118) == 0) +x_120 = l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(x_4, x_39); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_119; lean_object* x_120; -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -lean_dec(x_118); -x_21 = x_119; -x_22 = x_120; +lean_object* x_121; lean_object* x_122; +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); +lean_inc(x_122); +lean_dec(x_120); +x_21 = x_121; +x_22 = x_122; goto block_34; } else { -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_121 = lean_ctor_get(x_118, 0); -lean_inc(x_121); -x_122 = lean_ctor_get(x_118, 1); -lean_inc(x_122); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_123 = x_118; +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +x_123 = lean_ctor_get(x_120, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_120, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_120)) { + lean_ctor_release(x_120, 0); + lean_ctor_release(x_120, 1); + x_125 = x_120; } else { - lean_dec_ref(x_118); - x_123 = lean_box(0); + lean_dec_ref(x_120); + x_125 = lean_box(0); } -x_124 = l_Lean_Elab_Tactic_restore(x_122, x_20); +x_126 = l_Lean_Elab_Tactic_restore(x_124, x_20); lean_dec(x_20); if (lean_obj_tag(x_17) == 0) { -lean_object* x_125; +lean_object* x_127; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -if (lean_is_scalar(x_123)) { - x_125 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_125)) { + x_127 = lean_alloc_ctor(1, 2, 0); } else { - x_125 = x_123; + x_127 = x_125; } -lean_ctor_set(x_125, 0, x_121); -lean_ctor_set(x_125, 1, x_124); -return x_125; +lean_ctor_set(x_127, 0, x_123); +lean_ctor_set(x_127, 1, x_126); +return x_127; } else { +lean_dec(x_125); lean_dec(x_123); -lean_dec(x_121); x_3 = x_17; -x_5 = x_124; +x_5 = x_126; goto _start; } } @@ -5567,81 +5569,82 @@ lean_inc(x_60); lean_dec(x_51); if (lean_obj_tag(x_60) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); lean_dec(x_60); -x_62 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_62, 0, x_61); -x_63 = lean_alloc_ctor(0, 1, 0); +x_63 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_63, 0, x_62); +x_64 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_64, 0, x_63); lean_inc(x_3); -lean_inc(x_1); -x_64 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_63, x_3, x_38); -if (lean_obj_tag(x_64) == 0) +x_65 = l_Lean_Elab_Tactic_throwError___rarg(x_61, x_64, x_3, x_38); +if (lean_obj_tag(x_65) == 0) { -lean_object* x_65; lean_object* x_66; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); +lean_object* x_66; lean_object* x_67; +x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); -lean_dec(x_64); -x_20 = x_65; -x_21 = x_66; +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_20 = x_66; +x_21 = x_67; goto block_33; } else { -uint8_t x_67; -x_67 = !lean_is_exclusive(x_64); -if (x_67 == 0) +uint8_t x_68; +x_68 = !lean_is_exclusive(x_65); +if (x_68 == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_64, 0); -x_69 = lean_ctor_get(x_64, 1); -x_70 = l_Lean_Elab_Tactic_restore(x_69, x_19); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_65, 0); +x_70 = lean_ctor_get(x_65, 1); +x_71 = l_Lean_Elab_Tactic_restore(x_70, x_19); lean_dec(x_19); if (lean_obj_tag(x_16) == 0) { lean_dec(x_3); lean_dec(x_1); -lean_ctor_set(x_64, 1, x_70); -return x_64; +lean_ctor_set(x_65, 1, x_71); +return x_65; } else { -lean_free_object(x_64); -lean_dec(x_68); +lean_free_object(x_65); +lean_dec(x_69); x_2 = x_16; -x_4 = x_70; +x_4 = x_71; goto _start; } } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_64, 0); -x_73 = lean_ctor_get(x_64, 1); +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_65, 0); +x_74 = lean_ctor_get(x_65, 1); +lean_inc(x_74); lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_64); -x_74 = l_Lean_Elab_Tactic_restore(x_73, x_19); +lean_dec(x_65); +x_75 = l_Lean_Elab_Tactic_restore(x_74, x_19); lean_dec(x_19); if (lean_obj_tag(x_16) == 0) { -lean_object* x_75; +lean_object* x_76; lean_dec(x_3); lean_dec(x_1); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_72); -lean_ctor_set(x_75, 1, x_74); -return x_75; +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_73); +lean_ctor_set(x_76, 1, x_75); +return x_76; } else { -lean_dec(x_72); +lean_dec(x_73); x_2 = x_16; -x_4 = x_74; +x_4 = x_75; goto _start; } } @@ -5649,73 +5652,73 @@ goto _start; } else { -lean_object* x_77; +lean_object* x_78; lean_inc(x_3); -x_77 = l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(x_3, x_38); -if (lean_obj_tag(x_77) == 0) +x_78 = l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(x_3, x_38); +if (lean_obj_tag(x_78) == 0) { -lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_77, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_77, 1); +lean_object* x_79; lean_object* x_80; +x_79 = lean_ctor_get(x_78, 0); lean_inc(x_79); -lean_dec(x_77); -x_20 = x_78; -x_21 = x_79; +x_80 = lean_ctor_get(x_78, 1); +lean_inc(x_80); +lean_dec(x_78); +x_20 = x_79; +x_21 = x_80; goto block_33; } else { -uint8_t x_80; -x_80 = !lean_is_exclusive(x_77); -if (x_80 == 0) +uint8_t x_81; +x_81 = !lean_is_exclusive(x_78); +if (x_81 == 0) { -lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_77, 0); -x_82 = lean_ctor_get(x_77, 1); -x_83 = l_Lean_Elab_Tactic_restore(x_82, x_19); +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_78, 0); +x_83 = lean_ctor_get(x_78, 1); +x_84 = l_Lean_Elab_Tactic_restore(x_83, x_19); lean_dec(x_19); if (lean_obj_tag(x_16) == 0) { lean_dec(x_3); lean_dec(x_1); -lean_ctor_set(x_77, 1, x_83); -return x_77; +lean_ctor_set(x_78, 1, x_84); +return x_78; } else { -lean_free_object(x_77); -lean_dec(x_81); +lean_free_object(x_78); +lean_dec(x_82); x_2 = x_16; -x_4 = x_83; +x_4 = x_84; goto _start; } } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_77, 0); -x_86 = lean_ctor_get(x_77, 1); +lean_object* x_86; lean_object* x_87; lean_object* x_88; +x_86 = lean_ctor_get(x_78, 0); +x_87 = lean_ctor_get(x_78, 1); +lean_inc(x_87); lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_77); -x_87 = l_Lean_Elab_Tactic_restore(x_86, x_19); +lean_dec(x_78); +x_88 = l_Lean_Elab_Tactic_restore(x_87, x_19); lean_dec(x_19); if (lean_obj_tag(x_16) == 0) { -lean_object* x_88; +lean_object* x_89; lean_dec(x_3); lean_dec(x_1); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_85); -lean_ctor_set(x_88, 1, x_87); -return x_88; +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_86); +lean_ctor_set(x_89, 1, x_88); +return x_89; } else { -lean_dec(x_85); +lean_dec(x_86); x_2 = x_16; -x_4 = x_87; +x_4 = x_88; goto _start; } } @@ -5725,192 +5728,193 @@ goto _start; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_90 = lean_ctor_get(x_39, 0); -x_91 = lean_ctor_get(x_39, 1); -x_92 = lean_ctor_get(x_39, 2); -x_93 = lean_ctor_get(x_39, 3); -x_94 = lean_ctor_get(x_39, 4); -x_95 = lean_ctor_get(x_39, 5); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_91 = lean_ctor_get(x_39, 0); +x_92 = lean_ctor_get(x_39, 1); +x_93 = lean_ctor_get(x_39, 2); +x_94 = lean_ctor_get(x_39, 3); +x_95 = lean_ctor_get(x_39, 4); +x_96 = lean_ctor_get(x_39, 5); +lean_inc(x_96); lean_inc(x_95); lean_inc(x_94); lean_inc(x_93); lean_inc(x_92); lean_inc(x_91); -lean_inc(x_90); lean_dec(x_39); -x_96 = lean_environment_main_module(x_40); -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_35); +x_97 = lean_environment_main_module(x_40); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_35); lean_inc(x_1); -x_98 = lean_apply_3(x_15, x_1, x_97, x_95); -if (lean_obj_tag(x_98) == 0) +x_99 = lean_apply_3(x_15, x_1, x_98, x_96); +if (lean_obj_tag(x_99) == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; if (lean_is_exclusive(x_38)) { lean_ctor_release(x_38, 0); lean_ctor_release(x_38, 1); - x_99 = x_38; + x_100 = x_38; } else { lean_dec_ref(x_38); - x_99 = lean_box(0); + x_100 = lean_box(0); } -x_100 = lean_ctor_get(x_98, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_98, 1); +x_101 = lean_ctor_get(x_99, 0); lean_inc(x_101); -lean_dec(x_98); -x_102 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_102, 0, x_90); -lean_ctor_set(x_102, 1, x_91); -lean_ctor_set(x_102, 2, x_92); -lean_ctor_set(x_102, 3, x_93); -lean_ctor_set(x_102, 4, x_94); -lean_ctor_set(x_102, 5, x_101); -if (lean_is_scalar(x_99)) { - x_103 = lean_alloc_ctor(0, 2, 0); +x_102 = lean_ctor_get(x_99, 1); +lean_inc(x_102); +lean_dec(x_99); +x_103 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_103, 0, x_91); +lean_ctor_set(x_103, 1, x_92); +lean_ctor_set(x_103, 2, x_93); +lean_ctor_set(x_103, 3, x_94); +lean_ctor_set(x_103, 4, x_95); +lean_ctor_set(x_103, 5, x_102); +if (lean_is_scalar(x_100)) { + x_104 = lean_alloc_ctor(0, 2, 0); } else { - x_103 = x_99; + x_104 = x_100; } -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_41); -x_20 = x_100; -x_21 = x_103; +lean_ctor_set(x_104, 0, x_103); +lean_ctor_set(x_104, 1, x_41); +x_20 = x_101; +x_21 = x_104; goto block_33; } else { -lean_object* x_104; +lean_object* x_105; +lean_dec(x_95); lean_dec(x_94); lean_dec(x_93); lean_dec(x_92); lean_dec(x_91); -lean_dec(x_90); lean_dec(x_41); -x_104 = lean_ctor_get(x_98, 0); -lean_inc(x_104); -lean_dec(x_98); -if (lean_obj_tag(x_104) == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; -x_105 = lean_ctor_get(x_104, 0); +x_105 = lean_ctor_get(x_99, 0); lean_inc(x_105); -lean_dec(x_104); -x_106 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_106, 0, x_105); -x_107 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_107, 0, x_106); -lean_inc(x_3); -lean_inc(x_1); -x_108 = l_Lean_Elab_Tactic_throwError___rarg(x_1, x_107, x_3, x_38); -if (lean_obj_tag(x_108) == 0) +lean_dec(x_99); +if (lean_obj_tag(x_105) == 0) { -lean_object* x_109; lean_object* x_110; -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_108, 1); -lean_inc(x_110); -lean_dec(x_108); -x_20 = x_109; -x_21 = x_110; +lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; +x_106 = lean_ctor_get(x_105, 0); +lean_inc(x_106); +x_107 = lean_ctor_get(x_105, 1); +lean_inc(x_107); +lean_dec(x_105); +x_108 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_108, 0, x_107); +x_109 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_109, 0, x_108); +lean_inc(x_3); +x_110 = l_Lean_Elab_Tactic_throwError___rarg(x_106, x_109, x_3, x_38); +if (lean_obj_tag(x_110) == 0) +{ +lean_object* x_111; lean_object* x_112; +x_111 = lean_ctor_get(x_110, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_110, 1); +lean_inc(x_112); +lean_dec(x_110); +x_20 = x_111; +x_21 = x_112; goto block_33; } else { -lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_111 = lean_ctor_get(x_108, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_108, 1); -lean_inc(x_112); -if (lean_is_exclusive(x_108)) { - lean_ctor_release(x_108, 0); - lean_ctor_release(x_108, 1); - x_113 = x_108; +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_113 = lean_ctor_get(x_110, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_110, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_115 = x_110; } else { - lean_dec_ref(x_108); - x_113 = lean_box(0); + lean_dec_ref(x_110); + x_115 = lean_box(0); } -x_114 = l_Lean_Elab_Tactic_restore(x_112, x_19); +x_116 = l_Lean_Elab_Tactic_restore(x_114, x_19); lean_dec(x_19); if (lean_obj_tag(x_16) == 0) { -lean_object* x_115; +lean_object* x_117; lean_dec(x_3); lean_dec(x_1); -if (lean_is_scalar(x_113)) { - x_115 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_115)) { + x_117 = lean_alloc_ctor(1, 2, 0); } else { - x_115 = x_113; + x_117 = x_115; } -lean_ctor_set(x_115, 0, x_111); -lean_ctor_set(x_115, 1, x_114); -return x_115; +lean_ctor_set(x_117, 0, x_113); +lean_ctor_set(x_117, 1, x_116); +return x_117; } else { +lean_dec(x_115); lean_dec(x_113); -lean_dec(x_111); x_2 = x_16; -x_4 = x_114; +x_4 = x_116; goto _start; } } } else { -lean_object* x_117; +lean_object* x_119; lean_inc(x_3); -x_117 = l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(x_3, x_38); -if (lean_obj_tag(x_117) == 0) +x_119 = l_Lean_Elab_Tactic_throwUnsupportedSyntax___rarg(x_3, x_38); +if (lean_obj_tag(x_119) == 0) { -lean_object* x_118; lean_object* x_119; -x_118 = lean_ctor_get(x_117, 0); -lean_inc(x_118); -x_119 = lean_ctor_get(x_117, 1); -lean_inc(x_119); -lean_dec(x_117); -x_20 = x_118; -x_21 = x_119; +lean_object* x_120; lean_object* x_121; +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 1); +lean_inc(x_121); +lean_dec(x_119); +x_20 = x_120; +x_21 = x_121; goto block_33; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_120 = lean_ctor_get(x_117, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_117, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_117)) { - lean_ctor_release(x_117, 0); - lean_ctor_release(x_117, 1); - x_122 = x_117; +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_122 = lean_ctor_get(x_119, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_119, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_124 = x_119; } else { - lean_dec_ref(x_117); - x_122 = lean_box(0); + lean_dec_ref(x_119); + x_124 = lean_box(0); } -x_123 = l_Lean_Elab_Tactic_restore(x_121, x_19); +x_125 = l_Lean_Elab_Tactic_restore(x_123, x_19); lean_dec(x_19); if (lean_obj_tag(x_16) == 0) { -lean_object* x_124; +lean_object* x_126; lean_dec(x_3); lean_dec(x_1); -if (lean_is_scalar(x_122)) { - x_124 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_124)) { + x_126 = lean_alloc_ctor(1, 2, 0); } else { - x_124 = x_122; + x_126 = x_124; } -lean_ctor_set(x_124, 0, x_120); -lean_ctor_set(x_124, 1, x_123); -return x_124; +lean_ctor_set(x_126, 0, x_122); +lean_ctor_set(x_126, 1, x_125); +return x_126; } else { +lean_dec(x_124); lean_dec(x_122); -lean_dec(x_120); x_2 = x_16; -x_4 = x_123; +x_4 = x_125; goto _start; } } diff --git a/stage0/stdlib/Init/Lean/Elab/Term.c b/stage0/stdlib/Init/Lean/Elab/Term.c index 5da6fabe00..89eaf2aeca 100644 --- a/stage0/stdlib/Init/Lean/Elab/Term.c +++ b/stage0/stdlib/Init/Lean/Elab/Term.c @@ -12506,7 +12506,7 @@ lean_ctor_set(x_5, 5, x_9); x_10 = !lean_is_exclusive(x_4); if (x_10 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_202; lean_object* x_203; uint8_t x_204; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; uint8_t x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_195; lean_object* x_196; uint8_t x_197; x_11 = lean_ctor_get(x_4, 0); x_12 = lean_ctor_get(x_4, 1); x_13 = lean_ctor_get(x_4, 2); @@ -12532,22 +12532,22 @@ lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_ctor_set(x_4, 9, x_7); -x_202 = lean_ctor_get(x_11, 3); -lean_inc(x_202); -x_203 = lean_ctor_get(x_11, 4); -lean_inc(x_203); -x_204 = lean_nat_dec_eq(x_202, x_203); -lean_dec(x_203); -lean_dec(x_202); -if (x_204 == 0) +x_195 = lean_ctor_get(x_11, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_11, 4); +lean_inc(x_196); +x_197 = lean_nat_dec_eq(x_195, x_196); +lean_dec(x_196); +lean_dec(x_195); +if (x_197 == 0) { lean_dec(x_4); x_24 = x_5; -goto block_201; +goto block_194; } else { -lean_object* x_205; lean_object* x_206; uint8_t x_207; +lean_object* x_198; lean_object* x_199; uint8_t x_200; lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -12559,35 +12559,35 @@ lean_dec(x_12); lean_dec(x_11); lean_dec(x_7); lean_dec(x_1); -x_205 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; -x_206 = l_Lean_Elab_Term_throwError___rarg(x_3, x_205, x_4, x_5); +x_198 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; +x_199 = l_Lean_Elab_Term_throwError___rarg(x_3, x_198, x_4, x_5); lean_dec(x_3); -x_207 = !lean_is_exclusive(x_206); -if (x_207 == 0) +x_200 = !lean_is_exclusive(x_199); +if (x_200 == 0) { -return x_206; +return x_199; } else { -lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_208 = lean_ctor_get(x_206, 0); -x_209 = lean_ctor_get(x_206, 1); -lean_inc(x_209); -lean_inc(x_208); -lean_dec(x_206); -x_210 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_210, 0, x_208); -lean_ctor_set(x_210, 1, x_209); -return x_210; +lean_object* x_201; lean_object* x_202; lean_object* x_203; +x_201 = lean_ctor_get(x_199, 0); +x_202 = lean_ctor_get(x_199, 1); +lean_inc(x_202); +lean_inc(x_201); +lean_dec(x_199); +x_203 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_203, 0, x_201); +lean_ctor_set(x_203, 1, x_202); +return x_203; } } -block_201: +block_194: { uint8_t x_25; x_25 = !lean_is_exclusive(x_11); if (x_25 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; x_26 = lean_ctor_get(x_11, 3); x_27 = lean_nat_add(x_26, x_8); lean_dec(x_26); @@ -12616,307 +12616,284 @@ lean_ctor_set(x_28, 9, x_7); lean_ctor_set_uint8(x_28, sizeof(void*)*10, x_20); lean_ctor_set_uint8(x_28, sizeof(void*)*10 + 1, x_21); lean_ctor_set_uint8(x_28, sizeof(void*)*10 + 2, x_22); -x_107 = l_Lean_Elab_Term_getOptions(x_28, x_24); -x_108 = lean_ctor_get(x_107, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_107, 1); -lean_inc(x_109); -lean_dec(x_107); -x_110 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; -x_111 = l_Lean_checkTraceOption(x_108, x_110); -lean_dec(x_108); -if (x_111 == 0) +x_104 = l_Lean_Elab_Term_getOptions(x_28, x_24); +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +x_107 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_108 = l_Lean_checkTraceOption(x_105, x_107); +lean_dec(x_105); +if (x_108 == 0) { -x_29 = x_109; -goto block_106; +x_29 = x_106; +goto block_103; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; +lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_inc(x_3); -x_112 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_112, 0, x_3); -x_113 = l_Lean_Elab_Term_logTrace(x_110, x_3, x_112, x_28, x_109); -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -lean_dec(x_113); -x_29 = x_114; -goto block_106; +x_109 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_109, 0, x_3); +x_110 = l_Lean_Elab_Term_logTrace(x_107, x_3, x_109, x_28, x_106); +x_111 = lean_ctor_get(x_110, 1); +lean_inc(x_111); +lean_dec(x_110); +x_29 = x_111; +goto block_103; } -block_106: +block_103: { -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 = l_Lean_Elab_Term_termElabAttribute; -x_31 = lean_ctor_get(x_30, 1); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_57; lean_object* x_58; 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; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_30, 0); lean_inc(x_31); -x_32 = lean_ctor_get(x_29, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -lean_dec(x_32); -x_34 = l_Lean_PersistentEnvExtension_getState___rarg(x_31, x_33); -lean_dec(x_33); -lean_dec(x_31); +lean_dec(x_30); +lean_inc(x_29); +x_63 = l_Lean_Elab_Term_getCurrMacroScope(x_28, x_29); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); +lean_dec(x_63); +x_66 = l_Lean_Elab_Term_getEnv___rarg(x_65); +x_67 = lean_ctor_get(x_66, 1); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 0); +lean_inc(x_68); +lean_dec(x_66); +x_69 = lean_ctor_get(x_67, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_67, 1); +lean_inc(x_70); +x_71 = lean_ctor_get(x_67, 2); +lean_inc(x_71); +x_72 = lean_ctor_get(x_67, 3); +lean_inc(x_72); +x_73 = lean_ctor_get(x_67, 4); +lean_inc(x_73); +x_74 = lean_ctor_get(x_67, 5); +lean_inc(x_74); +x_75 = lean_environment_main_module(x_68); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_75); +lean_ctor_set(x_76, 1, x_64); +lean_inc(x_3); +x_77 = l_Lean_Elab_getMacros(x_31, x_3, x_76, x_74); +if (lean_obj_tag(x_77) == 0) +{ +uint8_t x_78; +x_78 = !lean_is_exclusive(x_67); +if (x_78 == 0) +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_79 = lean_ctor_get(x_67, 5); +lean_dec(x_79); +x_80 = lean_ctor_get(x_67, 4); +lean_dec(x_80); +x_81 = lean_ctor_get(x_67, 3); +lean_dec(x_81); +x_82 = lean_ctor_get(x_67, 2); +lean_dec(x_82); +x_83 = lean_ctor_get(x_67, 1); +lean_dec(x_83); +x_84 = lean_ctor_get(x_67, 0); +lean_dec(x_84); +x_85 = lean_ctor_get(x_77, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_77, 1); +lean_inc(x_86); +lean_dec(x_77); +lean_ctor_set(x_67, 5, x_86); +x_87 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_87, 0, x_85); +x_32 = x_87; +x_33 = x_67; +goto block_56; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +lean_dec(x_67); +x_88 = lean_ctor_get(x_77, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_77, 1); +lean_inc(x_89); +lean_dec(x_77); +x_90 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_90, 0, x_69); +lean_ctor_set(x_90, 1, x_70); +lean_ctor_set(x_90, 2, x_71); +lean_ctor_set(x_90, 3, x_72); +lean_ctor_set(x_90, 4, x_73); +lean_ctor_set(x_90, 5, x_89); +x_91 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_91, 0, x_88); +x_32 = x_91; +x_33 = x_90; +goto block_56; +} +} +else +{ +lean_object* x_92; +lean_dec(x_73); +lean_dec(x_72); +lean_dec(x_71); +lean_dec(x_70); +lean_dec(x_69); +x_92 = lean_ctor_get(x_77, 0); +lean_inc(x_92); +lean_dec(x_77); +if (lean_obj_tag(x_92) == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_93 = lean_ctor_get(x_92, 0); +lean_inc(x_93); +x_94 = lean_ctor_get(x_92, 1); +lean_inc(x_94); +lean_dec(x_92); +x_95 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_95, 0, x_94); +x_96 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_96, 0, x_95); +lean_inc(x_28); +x_97 = l_Lean_Elab_Term_throwError___rarg(x_93, x_96, x_28, x_67); +lean_dec(x_93); +x_98 = lean_ctor_get(x_97, 0); +lean_inc(x_98); +x_99 = lean_ctor_get(x_97, 1); +lean_inc(x_99); +lean_dec(x_97); +x_57 = x_98; +x_58 = x_99; +goto block_62; +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +x_100 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_67); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +lean_dec(x_100); +x_57 = x_101; +x_58 = x_102; +goto block_62; +} +} +block_56: +{ +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_11); +lean_dec(x_19); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_7); +x_34 = l_Lean_Elab_Term_termElabAttribute; x_35 = lean_ctor_get(x_34, 1); lean_inc(x_35); -lean_dec(x_34); -lean_inc(x_3); -x_36 = l_Lean_Syntax_getKind(x_3); -x_37 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_35, x_36); -if (lean_obj_tag(x_37) == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_49; lean_object* x_50; 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; -x_38 = l_Lean_Elab_Term_getEnv___rarg(x_29); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_38)) { - lean_ctor_release(x_38, 0); - lean_ctor_release(x_38, 1); - x_41 = x_38; -} else { - lean_dec_ref(x_38); - x_41 = lean_box(0); -} -x_67 = l_Lean_Elab_Term_getCurrMacroScope(x_28, x_40); -x_68 = lean_ctor_get(x_67, 0); -lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -lean_dec(x_67); -x_70 = l_Lean_Elab_Term_getEnv___rarg(x_69); -x_71 = lean_ctor_get(x_70, 1); -lean_inc(x_71); -x_72 = lean_ctor_get(x_70, 0); -lean_inc(x_72); -lean_dec(x_70); -x_73 = lean_ctor_get(x_71, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -x_75 = lean_ctor_get(x_71, 2); -lean_inc(x_75); -x_76 = lean_ctor_get(x_71, 3); -lean_inc(x_76); -x_77 = lean_ctor_get(x_71, 4); -lean_inc(x_77); -x_78 = lean_ctor_get(x_71, 5); -lean_inc(x_78); -x_79 = lean_environment_main_module(x_72); -x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_79); -lean_ctor_set(x_80, 1, x_68); -lean_inc(x_3); -x_81 = l_Lean_Elab_getMacros(x_39, x_3, x_80, x_78); -lean_dec(x_39); -if (lean_obj_tag(x_81) == 0) -{ -uint8_t x_82; -lean_dec(x_41); +x_36 = l_Lean_PersistentEnvExtension_getState___rarg(x_35, x_31); +lean_dec(x_31); +lean_dec(x_35); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); lean_dec(x_36); -lean_dec(x_28); -x_82 = !lean_is_exclusive(x_71); -if (x_82 == 0) +lean_inc(x_3); +x_38 = l_Lean_Syntax_getKind(x_3); +x_39 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_37, x_38); +if (lean_obj_tag(x_39) == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_83 = lean_ctor_get(x_71, 5); -lean_dec(x_83); -x_84 = lean_ctor_get(x_71, 4); -lean_dec(x_84); -x_85 = lean_ctor_get(x_71, 3); -lean_dec(x_85); -x_86 = lean_ctor_get(x_71, 2); -lean_dec(x_86); -x_87 = lean_ctor_get(x_71, 1); -lean_dec(x_87); -x_88 = lean_ctor_get(x_71, 0); -lean_dec(x_88); -x_89 = lean_ctor_get(x_81, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_81, 1); -lean_inc(x_90); -lean_dec(x_81); -lean_ctor_set(x_71, 5, x_90); -x_42 = x_89; -x_43 = x_71; -goto block_48; -} -else -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -lean_dec(x_71); -x_91 = lean_ctor_get(x_81, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_81, 1); -lean_inc(x_92); -lean_dec(x_81); -x_93 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_93, 0, x_73); -lean_ctor_set(x_93, 1, x_74); -lean_ctor_set(x_93, 2, x_75); -lean_ctor_set(x_93, 3, x_76); -lean_ctor_set(x_93, 4, x_77); -lean_ctor_set(x_93, 5, x_92); -x_42 = x_91; -x_43 = x_93; -goto block_48; -} -} -else -{ -lean_object* x_94; -lean_dec(x_77); -lean_dec(x_76); -lean_dec(x_75); -lean_dec(x_74); -lean_dec(x_73); -lean_dec(x_11); -lean_dec(x_19); -lean_dec(x_18); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_7); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_29); lean_dec(x_1); -x_94 = lean_ctor_get(x_81, 0); -lean_inc(x_94); -lean_dec(x_81); -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_95 = lean_ctor_get(x_94, 0); -lean_inc(x_95); -lean_dec(x_94); -x_96 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_96, 0, x_95); -x_97 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_97, 0, x_96); -lean_inc(x_28); -x_98 = l_Lean_Elab_Term_throwError___rarg(x_3, x_97, x_28, x_71); -x_99 = lean_ctor_get(x_98, 0); -lean_inc(x_99); -x_100 = lean_ctor_get(x_98, 1); -lean_inc(x_100); -lean_dec(x_98); -x_49 = x_99; -x_50 = x_100; -goto block_66; +x_40 = l_Lean_Name_toString___closed__1; +x_41 = l_Lean_Name_toStringWithSep___main(x_40, x_38); +x_42 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_42, 0, x_41); +x_43 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_43, 0, x_42); +x_44 = l_Lean_Elab_Term_elabTermAux___main___closed__3; +x_45 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +x_46 = l_Lean_Elab_Term_elabTermAux___main___closed__6; +x_47 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +x_48 = l_Lean_Elab_Term_throwError___rarg(x_3, x_47, x_28, x_33); +lean_dec(x_3); +return x_48; } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_71); -x_102 = lean_ctor_get(x_101, 0); -lean_inc(x_102); -x_103 = lean_ctor_get(x_101, 1); -lean_inc(x_103); -lean_dec(x_101); -x_49 = x_102; -x_50 = x_103; -goto block_66; +lean_object* x_49; lean_object* x_50; +lean_dec(x_38); +x_49 = lean_ctor_get(x_39, 0); +lean_inc(x_49); +lean_dec(x_39); +x_50 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_29, x_3, x_1, x_2, x_49, x_28, x_33); +return x_50; } } -block_48: +else { -lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_inc(x_42); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_3); -lean_ctor_set(x_44, 1, x_42); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_19); -x_46 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_46, 0, x_11); -lean_ctor_set(x_46, 1, x_12); -lean_ctor_set(x_46, 2, x_13); -lean_ctor_set(x_46, 3, x_14); -lean_ctor_set(x_46, 4, x_15); -lean_ctor_set(x_46, 5, x_16); -lean_ctor_set(x_46, 6, x_17); -lean_ctor_set(x_46, 7, x_18); -lean_ctor_set(x_46, 8, x_45); -lean_ctor_set(x_46, 9, x_7); -lean_ctor_set_uint8(x_46, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_46, sizeof(void*)*10 + 1, x_21); -lean_ctor_set_uint8(x_46, sizeof(void*)*10 + 2, x_22); -x_3 = x_42; -x_4 = x_46; -x_5 = x_43; +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_dec(x_31); +lean_dec(x_29); +lean_dec(x_28); +x_51 = lean_ctor_get(x_32, 0); +lean_inc(x_51); +lean_dec(x_32); +lean_inc(x_51); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_3); +lean_ctor_set(x_52, 1, x_51); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_19); +x_54 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_54, 0, x_11); +lean_ctor_set(x_54, 1, x_12); +lean_ctor_set(x_54, 2, x_13); +lean_ctor_set(x_54, 3, x_14); +lean_ctor_set(x_54, 4, x_15); +lean_ctor_set(x_54, 5, x_16); +lean_ctor_set(x_54, 6, x_17); +lean_ctor_set(x_54, 7, x_18); +lean_ctor_set(x_54, 8, x_53); +lean_ctor_set(x_54, 9, x_7); +lean_ctor_set_uint8(x_54, sizeof(void*)*10, x_20); +lean_ctor_set_uint8(x_54, sizeof(void*)*10 + 1, x_21); +lean_ctor_set_uint8(x_54, sizeof(void*)*10 + 2, x_22); +x_3 = x_51; +x_4 = x_54; +x_5 = x_33; goto _start; } -block_66: +} +block_62: { -lean_object* x_51; -x_51 = lean_ctor_get(x_49, 0); -lean_inc(x_51); -if (lean_obj_tag(x_51) == 0) +lean_object* x_59; +x_59 = lean_ctor_get(x_57, 0); +lean_inc(x_59); +if (lean_obj_tag(x_59) == 0) { -lean_object* x_52; -lean_dec(x_51); -lean_dec(x_36); +lean_object* x_60; +lean_dec(x_59); +lean_dec(x_31); +lean_dec(x_29); lean_dec(x_28); -lean_dec(x_3); -if (lean_is_scalar(x_41)) { - x_52 = lean_alloc_ctor(1, 2, 0); -} else { - x_52 = x_41; - lean_ctor_set_tag(x_52, 1); -} -lean_ctor_set(x_52, 0, x_49); -lean_ctor_set(x_52, 1, x_50); -return x_52; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; -lean_dec(x_49); -lean_dec(x_41); -x_53 = l_Lean_Name_toString___closed__1; -x_54 = l_Lean_Name_toStringWithSep___main(x_53, x_36); -x_55 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_55, 0, x_54); -x_56 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_56, 0, x_55); -x_57 = l_Lean_Elab_Term_elabTermAux___main___closed__3; -x_58 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_56); -x_59 = l_Lean_Elab_Term_elabTermAux___main___closed__6; -x_60 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -x_61 = l_Lean_Elab_Term_throwError___rarg(x_3, x_60, x_28, x_50); -lean_dec(x_3); -x_62 = !lean_is_exclusive(x_61); -if (x_62 == 0) -{ -return x_61; -} -else -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_63 = lean_ctor_get(x_61, 0); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -lean_inc(x_63); -lean_dec(x_61); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_63); -lean_ctor_set(x_65, 1, x_64); -return x_65; -} -} -} -} -else -{ -lean_object* x_104; lean_object* x_105; -lean_dec(x_36); lean_dec(x_11); lean_dec(x_19); lean_dec(x_18); @@ -12927,37 +12904,47 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_7); -x_104 = lean_ctor_get(x_37, 0); -lean_inc(x_104); -lean_dec(x_37); -lean_inc(x_29); -x_105 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_29, x_3, x_1, x_2, x_104, x_28, x_29); -return x_105; +lean_dec(x_3); +lean_dec(x_1); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +else +{ +lean_object* x_61; +lean_dec(x_57); +x_61 = lean_box(0); +x_32 = x_61; +x_33 = x_58; +goto block_56; +} } } } else { -lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; -x_115 = lean_ctor_get(x_11, 0); -x_116 = lean_ctor_get(x_11, 1); -x_117 = lean_ctor_get(x_11, 2); -x_118 = lean_ctor_get(x_11, 3); -x_119 = lean_ctor_get(x_11, 4); -lean_inc(x_119); -lean_inc(x_118); -lean_inc(x_117); +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_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; uint8_t x_190; +x_112 = lean_ctor_get(x_11, 0); +x_113 = lean_ctor_get(x_11, 1); +x_114 = lean_ctor_get(x_11, 2); +x_115 = lean_ctor_get(x_11, 3); +x_116 = lean_ctor_get(x_11, 4); lean_inc(x_116); lean_inc(x_115); +lean_inc(x_114); +lean_inc(x_113); +lean_inc(x_112); lean_dec(x_11); -x_120 = lean_nat_add(x_118, x_8); -lean_dec(x_118); -x_121 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_121, 0, x_115); -lean_ctor_set(x_121, 1, x_116); -lean_ctor_set(x_121, 2, x_117); -lean_ctor_set(x_121, 3, x_120); -lean_ctor_set(x_121, 4, x_119); +x_117 = lean_nat_add(x_115, x_8); +lean_dec(x_115); +x_118 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_118, 0, x_112); +lean_ctor_set(x_118, 1, x_113); +lean_ctor_set(x_118, 2, x_114); +lean_ctor_set(x_118, 3, x_117); +lean_ctor_set(x_118, 4, x_116); lean_inc(x_7); lean_inc(x_19); lean_inc(x_18); @@ -12967,162 +12954,179 @@ lean_inc(x_15); lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); +lean_inc(x_118); +x_119 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_12); +lean_ctor_set(x_119, 2, x_13); +lean_ctor_set(x_119, 3, x_14); +lean_ctor_set(x_119, 4, x_15); +lean_ctor_set(x_119, 5, x_16); +lean_ctor_set(x_119, 6, x_17); +lean_ctor_set(x_119, 7, x_18); +lean_ctor_set(x_119, 8, x_19); +lean_ctor_set(x_119, 9, x_7); +lean_ctor_set_uint8(x_119, sizeof(void*)*10, x_20); +lean_ctor_set_uint8(x_119, sizeof(void*)*10 + 1, x_21); +lean_ctor_set_uint8(x_119, sizeof(void*)*10 + 2, x_22); +x_186 = l_Lean_Elab_Term_getOptions(x_119, x_24); +x_187 = lean_ctor_get(x_186, 0); +lean_inc(x_187); +x_188 = lean_ctor_get(x_186, 1); +lean_inc(x_188); +lean_dec(x_186); +x_189 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_190 = l_Lean_checkTraceOption(x_187, x_189); +lean_dec(x_187); +if (x_190 == 0) +{ +x_120 = x_188; +goto block_185; +} +else +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; +lean_inc(x_3); +x_191 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_191, 0, x_3); +x_192 = l_Lean_Elab_Term_logTrace(x_189, x_3, x_191, x_119, x_188); +x_193 = lean_ctor_get(x_192, 1); +lean_inc(x_193); +lean_dec(x_192); +x_120 = x_193; +goto block_185; +} +block_185: +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_148; lean_object* x_149; 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; +x_121 = lean_ctor_get(x_120, 0); lean_inc(x_121); -x_122 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_122, 0, x_121); -lean_ctor_set(x_122, 1, x_12); -lean_ctor_set(x_122, 2, x_13); -lean_ctor_set(x_122, 3, x_14); -lean_ctor_set(x_122, 4, x_15); -lean_ctor_set(x_122, 5, x_16); -lean_ctor_set(x_122, 6, x_17); -lean_ctor_set(x_122, 7, x_18); -lean_ctor_set(x_122, 8, x_19); -lean_ctor_set(x_122, 9, x_7); -lean_ctor_set_uint8(x_122, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_122, sizeof(void*)*10 + 1, x_21); -lean_ctor_set_uint8(x_122, sizeof(void*)*10 + 2, x_22); -x_193 = l_Lean_Elab_Term_getOptions(x_122, x_24); -x_194 = lean_ctor_get(x_193, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_193, 1); -lean_inc(x_195); -lean_dec(x_193); -x_196 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; -x_197 = l_Lean_checkTraceOption(x_194, x_196); -lean_dec(x_194); -if (x_197 == 0) -{ -x_123 = x_195; -goto block_192; -} -else -{ -lean_object* x_198; lean_object* x_199; lean_object* x_200; -lean_inc(x_3); -x_198 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_198, 0, x_3); -x_199 = l_Lean_Elab_Term_logTrace(x_196, x_3, x_198, x_122, x_195); -x_200 = lean_ctor_get(x_199, 1); -lean_inc(x_200); -lean_dec(x_199); -x_123 = x_200; -goto block_192; -} -block_192: -{ -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_124 = l_Lean_Elab_Term_termElabAttribute; -x_125 = lean_ctor_get(x_124, 1); -lean_inc(x_125); -x_126 = lean_ctor_get(x_123, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -lean_dec(x_126); -x_128 = l_Lean_PersistentEnvExtension_getState___rarg(x_125, x_127); -lean_dec(x_127); -lean_dec(x_125); -x_129 = lean_ctor_get(x_128, 1); -lean_inc(x_129); -lean_dec(x_128); -lean_inc(x_3); -x_130 = l_Lean_Syntax_getKind(x_3); -x_131 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_129, x_130); -if (lean_obj_tag(x_131) == 0) -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_143; lean_object* x_144; 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; -x_132 = l_Lean_Elab_Term_getEnv___rarg(x_123); -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_135 = x_132; -} else { - lean_dec_ref(x_132); - x_135 = lean_box(0); -} -x_161 = l_Lean_Elab_Term_getCurrMacroScope(x_122, x_134); -x_162 = lean_ctor_get(x_161, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 1); -lean_inc(x_163); -lean_dec(x_161); -x_164 = l_Lean_Elab_Term_getEnv___rarg(x_163); -x_165 = lean_ctor_get(x_164, 1); -lean_inc(x_165); -x_166 = lean_ctor_get(x_164, 0); -lean_inc(x_166); -lean_dec(x_164); -x_167 = lean_ctor_get(x_165, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_165, 1); -lean_inc(x_168); -x_169 = lean_ctor_get(x_165, 2); -lean_inc(x_169); -x_170 = lean_ctor_get(x_165, 3); -lean_inc(x_170); -x_171 = lean_ctor_get(x_165, 4); -lean_inc(x_171); -x_172 = lean_ctor_get(x_165, 5); -lean_inc(x_172); -x_173 = lean_environment_main_module(x_166); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_162); -lean_inc(x_3); -x_175 = l_Lean_Elab_getMacros(x_133, x_3, x_174, x_172); -lean_dec(x_133); -if (lean_obj_tag(x_175) == 0) -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; -lean_dec(x_135); -lean_dec(x_130); -lean_dec(x_122); -if (lean_is_exclusive(x_165)) { - lean_ctor_release(x_165, 0); - lean_ctor_release(x_165, 1); - lean_ctor_release(x_165, 2); - lean_ctor_release(x_165, 3); - lean_ctor_release(x_165, 4); - lean_ctor_release(x_165, 5); - x_176 = x_165; -} else { - lean_dec_ref(x_165); - x_176 = lean_box(0); -} -x_177 = lean_ctor_get(x_175, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_175, 1); -lean_inc(x_178); -lean_dec(x_175); -if (lean_is_scalar(x_176)) { - x_179 = lean_alloc_ctor(0, 6, 0); -} else { - x_179 = x_176; -} -lean_ctor_set(x_179, 0, x_167); -lean_ctor_set(x_179, 1, x_168); -lean_ctor_set(x_179, 2, x_169); -lean_ctor_set(x_179, 3, x_170); -lean_ctor_set(x_179, 4, x_171); -lean_ctor_set(x_179, 5, x_178); -x_136 = x_177; -x_137 = x_179; -goto block_142; -} -else -{ -lean_object* x_180; -lean_dec(x_171); -lean_dec(x_170); -lean_dec(x_169); -lean_dec(x_168); -lean_dec(x_167); +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); lean_dec(x_121); +lean_inc(x_120); +x_154 = l_Lean_Elab_Term_getCurrMacroScope(x_119, x_120); +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +lean_dec(x_154); +x_157 = l_Lean_Elab_Term_getEnv___rarg(x_156); +x_158 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 0); +lean_inc(x_159); +lean_dec(x_157); +x_160 = lean_ctor_get(x_158, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_158, 1); +lean_inc(x_161); +x_162 = lean_ctor_get(x_158, 2); +lean_inc(x_162); +x_163 = lean_ctor_get(x_158, 3); +lean_inc(x_163); +x_164 = lean_ctor_get(x_158, 4); +lean_inc(x_164); +x_165 = lean_ctor_get(x_158, 5); +lean_inc(x_165); +x_166 = lean_environment_main_module(x_159); +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_166); +lean_ctor_set(x_167, 1, x_155); +lean_inc(x_3); +x_168 = l_Lean_Elab_getMacros(x_122, x_3, x_167, x_165); +if (lean_obj_tag(x_168) == 0) +{ +lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; +if (lean_is_exclusive(x_158)) { + lean_ctor_release(x_158, 0); + lean_ctor_release(x_158, 1); + lean_ctor_release(x_158, 2); + lean_ctor_release(x_158, 3); + lean_ctor_release(x_158, 4); + lean_ctor_release(x_158, 5); + x_169 = x_158; +} else { + lean_dec_ref(x_158); + x_169 = lean_box(0); +} +x_170 = lean_ctor_get(x_168, 0); +lean_inc(x_170); +x_171 = lean_ctor_get(x_168, 1); +lean_inc(x_171); +lean_dec(x_168); +if (lean_is_scalar(x_169)) { + x_172 = lean_alloc_ctor(0, 6, 0); +} else { + x_172 = x_169; +} +lean_ctor_set(x_172, 0, x_160); +lean_ctor_set(x_172, 1, x_161); +lean_ctor_set(x_172, 2, x_162); +lean_ctor_set(x_172, 3, x_163); +lean_ctor_set(x_172, 4, x_164); +lean_ctor_set(x_172, 5, x_171); +x_173 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_173, 0, x_170); +x_123 = x_173; +x_124 = x_172; +goto block_147; +} +else +{ +lean_object* x_174; +lean_dec(x_164); +lean_dec(x_163); +lean_dec(x_162); +lean_dec(x_161); +lean_dec(x_160); +x_174 = lean_ctor_get(x_168, 0); +lean_inc(x_174); +lean_dec(x_168); +if (lean_obj_tag(x_174) == 0) +{ +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; +x_175 = lean_ctor_get(x_174, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_174, 1); +lean_inc(x_176); +lean_dec(x_174); +x_177 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_177, 0, x_176); +x_178 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_178, 0, x_177); +lean_inc(x_119); +x_179 = l_Lean_Elab_Term_throwError___rarg(x_175, x_178, x_119, x_158); +lean_dec(x_175); +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +x_181 = lean_ctor_get(x_179, 1); +lean_inc(x_181); +lean_dec(x_179); +x_148 = x_180; +x_149 = x_181; +goto block_153; +} +else +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_182 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_158); +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); +x_148 = x_183; +x_149 = x_184; +goto block_153; +} +} +block_147: +{ +if (lean_obj_tag(x_123) == 0) +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +lean_dec(x_118); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -13132,145 +13136,101 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_7); -lean_dec(x_1); -x_180 = lean_ctor_get(x_175, 0); -lean_inc(x_180); -lean_dec(x_175); -if (lean_obj_tag(x_180) == 0) +x_125 = l_Lean_Elab_Term_termElabAttribute; +x_126 = lean_ctor_get(x_125, 1); +lean_inc(x_126); +x_127 = l_Lean_PersistentEnvExtension_getState___rarg(x_126, x_122); +lean_dec(x_122); +lean_dec(x_126); +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +lean_dec(x_127); +lean_inc(x_3); +x_129 = l_Lean_Syntax_getKind(x_3); +x_130 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_128, x_129); +if (lean_obj_tag(x_130) == 0) { -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; -x_181 = lean_ctor_get(x_180, 0); -lean_inc(x_181); -lean_dec(x_180); -x_182 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_182, 0, x_181); -x_183 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_183, 0, x_182); -lean_inc(x_122); -x_184 = l_Lean_Elab_Term_throwError___rarg(x_3, x_183, x_122, x_165); -x_185 = lean_ctor_get(x_184, 0); -lean_inc(x_185); -x_186 = lean_ctor_get(x_184, 1); -lean_inc(x_186); -lean_dec(x_184); -x_143 = x_185; -x_144 = x_186; -goto block_160; +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_120); +lean_dec(x_1); +x_131 = l_Lean_Name_toString___closed__1; +x_132 = l_Lean_Name_toStringWithSep___main(x_131, x_129); +x_133 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_133, 0, x_132); +x_134 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_134, 0, x_133); +x_135 = l_Lean_Elab_Term_elabTermAux___main___closed__3; +x_136 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_136, 0, x_135); +lean_ctor_set(x_136, 1, x_134); +x_137 = l_Lean_Elab_Term_elabTermAux___main___closed__6; +x_138 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_138, 0, x_136); +lean_ctor_set(x_138, 1, x_137); +x_139 = l_Lean_Elab_Term_throwError___rarg(x_3, x_138, x_119, x_124); +lean_dec(x_3); +return x_139; } else { -lean_object* x_187; lean_object* x_188; lean_object* x_189; -x_187 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_165); -x_188 = lean_ctor_get(x_187, 0); -lean_inc(x_188); -x_189 = lean_ctor_get(x_187, 1); -lean_inc(x_189); -lean_dec(x_187); -x_143 = x_188; -x_144 = x_189; -goto block_160; +lean_object* x_140; lean_object* x_141; +lean_dec(x_129); +x_140 = lean_ctor_get(x_130, 0); +lean_inc(x_140); +lean_dec(x_130); +x_141 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_120, x_3, x_1, x_2, x_140, x_119, x_124); +return x_141; } } -block_142: +else { -lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_inc(x_136); -x_138 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_138, 0, x_3); -lean_ctor_set(x_138, 1, x_136); -x_139 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_19); -x_140 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_140, 0, x_121); -lean_ctor_set(x_140, 1, x_12); -lean_ctor_set(x_140, 2, x_13); -lean_ctor_set(x_140, 3, x_14); -lean_ctor_set(x_140, 4, x_15); -lean_ctor_set(x_140, 5, x_16); -lean_ctor_set(x_140, 6, x_17); -lean_ctor_set(x_140, 7, x_18); -lean_ctor_set(x_140, 8, x_139); -lean_ctor_set(x_140, 9, x_7); -lean_ctor_set_uint8(x_140, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_140, sizeof(void*)*10 + 1, x_21); -lean_ctor_set_uint8(x_140, sizeof(void*)*10 + 2, x_22); -x_3 = x_136; -x_4 = x_140; -x_5 = x_137; +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_122); +lean_dec(x_120); +lean_dec(x_119); +x_142 = lean_ctor_get(x_123, 0); +lean_inc(x_142); +lean_dec(x_123); +lean_inc(x_142); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_3); +lean_ctor_set(x_143, 1, x_142); +x_144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_19); +x_145 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_145, 0, x_118); +lean_ctor_set(x_145, 1, x_12); +lean_ctor_set(x_145, 2, x_13); +lean_ctor_set(x_145, 3, x_14); +lean_ctor_set(x_145, 4, x_15); +lean_ctor_set(x_145, 5, x_16); +lean_ctor_set(x_145, 6, x_17); +lean_ctor_set(x_145, 7, x_18); +lean_ctor_set(x_145, 8, x_144); +lean_ctor_set(x_145, 9, x_7); +lean_ctor_set_uint8(x_145, sizeof(void*)*10, x_20); +lean_ctor_set_uint8(x_145, sizeof(void*)*10 + 1, x_21); +lean_ctor_set_uint8(x_145, sizeof(void*)*10 + 2, x_22); +x_3 = x_142; +x_4 = x_145; +x_5 = x_124; goto _start; } -block_160: +} +block_153: { -lean_object* x_145; -x_145 = lean_ctor_get(x_143, 0); -lean_inc(x_145); -if (lean_obj_tag(x_145) == 0) +lean_object* x_150; +x_150 = lean_ctor_get(x_148, 0); +lean_inc(x_150); +if (lean_obj_tag(x_150) == 0) { -lean_object* x_146; -lean_dec(x_145); -lean_dec(x_130); +lean_object* x_151; +lean_dec(x_150); lean_dec(x_122); -lean_dec(x_3); -if (lean_is_scalar(x_135)) { - x_146 = lean_alloc_ctor(1, 2, 0); -} else { - x_146 = x_135; - lean_ctor_set_tag(x_146, 1); -} -lean_ctor_set(x_146, 0, x_143); -lean_ctor_set(x_146, 1, x_144); -return x_146; -} -else -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; -lean_dec(x_143); -lean_dec(x_135); -x_147 = l_Lean_Name_toString___closed__1; -x_148 = l_Lean_Name_toStringWithSep___main(x_147, x_130); -x_149 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_149, 0, x_148); -x_150 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_150, 0, x_149); -x_151 = l_Lean_Elab_Term_elabTermAux___main___closed__3; -x_152 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_152, 0, x_151); -lean_ctor_set(x_152, 1, x_150); -x_153 = l_Lean_Elab_Term_elabTermAux___main___closed__6; -x_154 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_154, 0, x_152); -lean_ctor_set(x_154, 1, x_153); -x_155 = l_Lean_Elab_Term_throwError___rarg(x_3, x_154, x_122, x_144); -lean_dec(x_3); -x_156 = lean_ctor_get(x_155, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_155, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_155)) { - lean_ctor_release(x_155, 0); - lean_ctor_release(x_155, 1); - x_158 = x_155; -} else { - lean_dec_ref(x_155); - x_158 = lean_box(0); -} -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); -} else { - x_159 = x_158; -} -lean_ctor_set(x_159, 0, x_156); -lean_ctor_set(x_159, 1, x_157); -return x_159; -} -} -} -else -{ -lean_object* x_190; lean_object* x_191; -lean_dec(x_130); -lean_dec(x_121); +lean_dec(x_120); +lean_dec(x_119); +lean_dec(x_118); lean_dec(x_19); lean_dec(x_18); lean_dec(x_17); @@ -13280,12 +13240,22 @@ lean_dec(x_14); lean_dec(x_13); lean_dec(x_12); lean_dec(x_7); -x_190 = lean_ctor_get(x_131, 0); -lean_inc(x_190); -lean_dec(x_131); -lean_inc(x_123); -x_191 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_123, x_3, x_1, x_2, x_190, x_122, x_123); -return x_191; +lean_dec(x_3); +lean_dec(x_1); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_148); +lean_ctor_set(x_151, 1, x_149); +return x_151; +} +else +{ +lean_object* x_152; +lean_dec(x_148); +x_152 = lean_box(0); +x_123 = x_152; +x_124 = x_149; +goto block_147; +} } } } @@ -13293,468 +13263,451 @@ return x_191; } else { -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; uint8_t x_221; uint8_t x_222; lean_object* x_223; lean_object* x_224; lean_object* x_313; lean_object* x_314; uint8_t x_315; -x_211 = lean_ctor_get(x_4, 0); -x_212 = lean_ctor_get(x_4, 1); -x_213 = lean_ctor_get(x_4, 2); -x_214 = lean_ctor_get(x_4, 3); -x_215 = lean_ctor_get(x_4, 4); -x_216 = lean_ctor_get(x_4, 5); -x_217 = lean_ctor_get(x_4, 6); -x_218 = lean_ctor_get(x_4, 7); -x_219 = lean_ctor_get(x_4, 8); -x_220 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_221 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_222 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); -lean_inc(x_219); -lean_inc(x_218); -lean_inc(x_217); -lean_inc(x_216); -lean_inc(x_215); -lean_inc(x_214); -lean_inc(x_213); +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; uint8_t x_213; uint8_t x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_302; lean_object* x_303; uint8_t x_304; +x_204 = lean_ctor_get(x_4, 0); +x_205 = lean_ctor_get(x_4, 1); +x_206 = lean_ctor_get(x_4, 2); +x_207 = lean_ctor_get(x_4, 3); +x_208 = lean_ctor_get(x_4, 4); +x_209 = lean_ctor_get(x_4, 5); +x_210 = lean_ctor_get(x_4, 6); +x_211 = lean_ctor_get(x_4, 7); +x_212 = lean_ctor_get(x_4, 8); +x_213 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_214 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +x_215 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); lean_inc(x_212); lean_inc(x_211); +lean_inc(x_210); +lean_inc(x_209); +lean_inc(x_208); +lean_inc(x_207); +lean_inc(x_206); +lean_inc(x_205); +lean_inc(x_204); lean_dec(x_4); lean_inc(x_7); -lean_inc(x_219); -lean_inc(x_218); -lean_inc(x_217); -lean_inc(x_216); -lean_inc(x_215); -lean_inc(x_214); -lean_inc(x_213); lean_inc(x_212); lean_inc(x_211); -x_223 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_223, 0, x_211); -lean_ctor_set(x_223, 1, x_212); -lean_ctor_set(x_223, 2, x_213); -lean_ctor_set(x_223, 3, x_214); -lean_ctor_set(x_223, 4, x_215); -lean_ctor_set(x_223, 5, x_216); -lean_ctor_set(x_223, 6, x_217); -lean_ctor_set(x_223, 7, x_218); -lean_ctor_set(x_223, 8, x_219); -lean_ctor_set(x_223, 9, x_7); -lean_ctor_set_uint8(x_223, sizeof(void*)*10, x_220); -lean_ctor_set_uint8(x_223, sizeof(void*)*10 + 1, x_221); -lean_ctor_set_uint8(x_223, sizeof(void*)*10 + 2, x_222); -x_313 = lean_ctor_get(x_211, 3); -lean_inc(x_313); -x_314 = lean_ctor_get(x_211, 4); -lean_inc(x_314); -x_315 = lean_nat_dec_eq(x_313, x_314); -lean_dec(x_314); -lean_dec(x_313); -if (x_315 == 0) +lean_inc(x_210); +lean_inc(x_209); +lean_inc(x_208); +lean_inc(x_207); +lean_inc(x_206); +lean_inc(x_205); +lean_inc(x_204); +x_216 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_216, 0, x_204); +lean_ctor_set(x_216, 1, x_205); +lean_ctor_set(x_216, 2, x_206); +lean_ctor_set(x_216, 3, x_207); +lean_ctor_set(x_216, 4, x_208); +lean_ctor_set(x_216, 5, x_209); +lean_ctor_set(x_216, 6, x_210); +lean_ctor_set(x_216, 7, x_211); +lean_ctor_set(x_216, 8, x_212); +lean_ctor_set(x_216, 9, x_7); +lean_ctor_set_uint8(x_216, sizeof(void*)*10, x_213); +lean_ctor_set_uint8(x_216, sizeof(void*)*10 + 1, x_214); +lean_ctor_set_uint8(x_216, sizeof(void*)*10 + 2, x_215); +x_302 = lean_ctor_get(x_204, 3); +lean_inc(x_302); +x_303 = lean_ctor_get(x_204, 4); +lean_inc(x_303); +x_304 = lean_nat_dec_eq(x_302, x_303); +lean_dec(x_303); +lean_dec(x_302); +if (x_304 == 0) { -lean_dec(x_223); -x_224 = x_5; -goto block_312; +lean_dec(x_216); +x_217 = x_5; +goto block_301; } else { -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_dec(x_219); -lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); -lean_dec(x_214); -lean_dec(x_213); +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_dec(x_212); lean_dec(x_211); +lean_dec(x_210); +lean_dec(x_209); +lean_dec(x_208); +lean_dec(x_207); +lean_dec(x_206); +lean_dec(x_205); +lean_dec(x_204); lean_dec(x_7); lean_dec(x_1); -x_316 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; -x_317 = l_Lean_Elab_Term_throwError___rarg(x_3, x_316, x_223, x_5); +x_305 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; +x_306 = l_Lean_Elab_Term_throwError___rarg(x_3, x_305, x_216, x_5); lean_dec(x_3); -x_318 = lean_ctor_get(x_317, 0); -lean_inc(x_318); -x_319 = lean_ctor_get(x_317, 1); -lean_inc(x_319); -if (lean_is_exclusive(x_317)) { - lean_ctor_release(x_317, 0); - lean_ctor_release(x_317, 1); - x_320 = x_317; +x_307 = lean_ctor_get(x_306, 0); +lean_inc(x_307); +x_308 = lean_ctor_get(x_306, 1); +lean_inc(x_308); +if (lean_is_exclusive(x_306)) { + lean_ctor_release(x_306, 0); + lean_ctor_release(x_306, 1); + x_309 = x_306; } else { - lean_dec_ref(x_317); - x_320 = lean_box(0); + lean_dec_ref(x_306); + x_309 = lean_box(0); } -if (lean_is_scalar(x_320)) { - x_321 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_309)) { + x_310 = lean_alloc_ctor(1, 2, 0); } else { - x_321 = x_320; + x_310 = x_309; } -lean_ctor_set(x_321, 0, x_318); -lean_ctor_set(x_321, 1, x_319); -return x_321; +lean_ctor_set(x_310, 0, x_307); +lean_ctor_set(x_310, 1, x_308); +return x_310; } -block_312: +block_301: { -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_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; uint8_t x_308; -x_225 = lean_ctor_get(x_211, 0); -lean_inc(x_225); -x_226 = lean_ctor_get(x_211, 1); -lean_inc(x_226); -x_227 = lean_ctor_get(x_211, 2); -lean_inc(x_227); -x_228 = lean_ctor_get(x_211, 3); -lean_inc(x_228); -x_229 = lean_ctor_get(x_211, 4); -lean_inc(x_229); -if (lean_is_exclusive(x_211)) { - lean_ctor_release(x_211, 0); - lean_ctor_release(x_211, 1); - lean_ctor_release(x_211, 2); - lean_ctor_release(x_211, 3); - lean_ctor_release(x_211, 4); - x_230 = x_211; -} else { - lean_dec_ref(x_211); - x_230 = lean_box(0); -} -x_231 = lean_nat_add(x_228, x_8); -lean_dec(x_228); -if (lean_is_scalar(x_230)) { - x_232 = lean_alloc_ctor(0, 5, 0); -} else { - x_232 = x_230; -} -lean_ctor_set(x_232, 0, x_225); -lean_ctor_set(x_232, 1, x_226); -lean_ctor_set(x_232, 2, x_227); -lean_ctor_set(x_232, 3, x_231); -lean_ctor_set(x_232, 4, x_229); -lean_inc(x_7); -lean_inc(x_219); +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_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; +x_218 = lean_ctor_get(x_204, 0); lean_inc(x_218); -lean_inc(x_217); -lean_inc(x_216); -lean_inc(x_215); -lean_inc(x_214); -lean_inc(x_213); +x_219 = lean_ctor_get(x_204, 1); +lean_inc(x_219); +x_220 = lean_ctor_get(x_204, 2); +lean_inc(x_220); +x_221 = lean_ctor_get(x_204, 3); +lean_inc(x_221); +x_222 = lean_ctor_get(x_204, 4); +lean_inc(x_222); +if (lean_is_exclusive(x_204)) { + lean_ctor_release(x_204, 0); + lean_ctor_release(x_204, 1); + lean_ctor_release(x_204, 2); + lean_ctor_release(x_204, 3); + lean_ctor_release(x_204, 4); + x_223 = x_204; +} else { + lean_dec_ref(x_204); + x_223 = lean_box(0); +} +x_224 = lean_nat_add(x_221, x_8); +lean_dec(x_221); +if (lean_is_scalar(x_223)) { + x_225 = lean_alloc_ctor(0, 5, 0); +} else { + x_225 = x_223; +} +lean_ctor_set(x_225, 0, x_218); +lean_ctor_set(x_225, 1, x_219); +lean_ctor_set(x_225, 2, x_220); +lean_ctor_set(x_225, 3, x_224); +lean_ctor_set(x_225, 4, x_222); +lean_inc(x_7); lean_inc(x_212); -lean_inc(x_232); -x_233 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_233, 0, x_232); -lean_ctor_set(x_233, 1, x_212); -lean_ctor_set(x_233, 2, x_213); -lean_ctor_set(x_233, 3, x_214); -lean_ctor_set(x_233, 4, x_215); -lean_ctor_set(x_233, 5, x_216); -lean_ctor_set(x_233, 6, x_217); -lean_ctor_set(x_233, 7, x_218); -lean_ctor_set(x_233, 8, x_219); -lean_ctor_set(x_233, 9, x_7); -lean_ctor_set_uint8(x_233, sizeof(void*)*10, x_220); -lean_ctor_set_uint8(x_233, sizeof(void*)*10 + 1, x_221); -lean_ctor_set_uint8(x_233, sizeof(void*)*10 + 2, x_222); -x_304 = l_Lean_Elab_Term_getOptions(x_233, x_224); -x_305 = lean_ctor_get(x_304, 0); -lean_inc(x_305); -x_306 = lean_ctor_get(x_304, 1); -lean_inc(x_306); -lean_dec(x_304); -x_307 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; -x_308 = l_Lean_checkTraceOption(x_305, x_307); -lean_dec(x_305); -if (x_308 == 0) +lean_inc(x_211); +lean_inc(x_210); +lean_inc(x_209); +lean_inc(x_208); +lean_inc(x_207); +lean_inc(x_206); +lean_inc(x_205); +lean_inc(x_225); +x_226 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_205); +lean_ctor_set(x_226, 2, x_206); +lean_ctor_set(x_226, 3, x_207); +lean_ctor_set(x_226, 4, x_208); +lean_ctor_set(x_226, 5, x_209); +lean_ctor_set(x_226, 6, x_210); +lean_ctor_set(x_226, 7, x_211); +lean_ctor_set(x_226, 8, x_212); +lean_ctor_set(x_226, 9, x_7); +lean_ctor_set_uint8(x_226, sizeof(void*)*10, x_213); +lean_ctor_set_uint8(x_226, sizeof(void*)*10 + 1, x_214); +lean_ctor_set_uint8(x_226, sizeof(void*)*10 + 2, x_215); +x_293 = l_Lean_Elab_Term_getOptions(x_226, x_217); +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); +lean_inc(x_295); +lean_dec(x_293); +x_296 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_297 = l_Lean_checkTraceOption(x_294, x_296); +lean_dec(x_294); +if (x_297 == 0) { -x_234 = x_306; -goto block_303; -} -else -{ -lean_object* x_309; lean_object* x_310; lean_object* x_311; -lean_inc(x_3); -x_309 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_309, 0, x_3); -x_310 = l_Lean_Elab_Term_logTrace(x_307, x_3, x_309, x_233, x_306); -x_311 = lean_ctor_get(x_310, 1); -lean_inc(x_311); -lean_dec(x_310); -x_234 = x_311; -goto block_303; -} -block_303: -{ -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; -x_235 = l_Lean_Elab_Term_termElabAttribute; -x_236 = lean_ctor_get(x_235, 1); -lean_inc(x_236); -x_237 = lean_ctor_get(x_234, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_237, 0); -lean_inc(x_238); -lean_dec(x_237); -x_239 = l_Lean_PersistentEnvExtension_getState___rarg(x_236, x_238); -lean_dec(x_238); -lean_dec(x_236); -x_240 = lean_ctor_get(x_239, 1); -lean_inc(x_240); -lean_dec(x_239); -lean_inc(x_3); -x_241 = l_Lean_Syntax_getKind(x_3); -x_242 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_240, x_241); -if (lean_obj_tag(x_242) == 0) -{ -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_254; lean_object* x_255; 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; -x_243 = l_Lean_Elab_Term_getEnv___rarg(x_234); -x_244 = lean_ctor_get(x_243, 0); -lean_inc(x_244); -x_245 = lean_ctor_get(x_243, 1); -lean_inc(x_245); -if (lean_is_exclusive(x_243)) { - lean_ctor_release(x_243, 0); - lean_ctor_release(x_243, 1); - x_246 = x_243; -} else { - lean_dec_ref(x_243); - x_246 = lean_box(0); -} -x_272 = l_Lean_Elab_Term_getCurrMacroScope(x_233, x_245); -x_273 = lean_ctor_get(x_272, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_272, 1); -lean_inc(x_274); -lean_dec(x_272); -x_275 = l_Lean_Elab_Term_getEnv___rarg(x_274); -x_276 = lean_ctor_get(x_275, 1); -lean_inc(x_276); -x_277 = lean_ctor_get(x_275, 0); -lean_inc(x_277); -lean_dec(x_275); -x_278 = lean_ctor_get(x_276, 0); -lean_inc(x_278); -x_279 = lean_ctor_get(x_276, 1); -lean_inc(x_279); -x_280 = lean_ctor_get(x_276, 2); -lean_inc(x_280); -x_281 = lean_ctor_get(x_276, 3); -lean_inc(x_281); -x_282 = lean_ctor_get(x_276, 4); -lean_inc(x_282); -x_283 = lean_ctor_get(x_276, 5); -lean_inc(x_283); -x_284 = lean_environment_main_module(x_277); -x_285 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_285, 0, x_284); -lean_ctor_set(x_285, 1, x_273); -lean_inc(x_3); -x_286 = l_Lean_Elab_getMacros(x_244, x_3, x_285, x_283); -lean_dec(x_244); -if (lean_obj_tag(x_286) == 0) -{ -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; -lean_dec(x_246); -lean_dec(x_241); -lean_dec(x_233); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - lean_ctor_release(x_276, 2); - lean_ctor_release(x_276, 3); - lean_ctor_release(x_276, 4); - lean_ctor_release(x_276, 5); - x_287 = x_276; -} else { - lean_dec_ref(x_276); - x_287 = lean_box(0); -} -x_288 = lean_ctor_get(x_286, 0); -lean_inc(x_288); -x_289 = lean_ctor_get(x_286, 1); -lean_inc(x_289); -lean_dec(x_286); -if (lean_is_scalar(x_287)) { - x_290 = lean_alloc_ctor(0, 6, 0); -} else { - x_290 = x_287; -} -lean_ctor_set(x_290, 0, x_278); -lean_ctor_set(x_290, 1, x_279); -lean_ctor_set(x_290, 2, x_280); -lean_ctor_set(x_290, 3, x_281); -lean_ctor_set(x_290, 4, x_282); -lean_ctor_set(x_290, 5, x_289); -x_247 = x_288; -x_248 = x_290; -goto block_253; -} -else -{ -lean_object* x_291; -lean_dec(x_282); -lean_dec(x_281); -lean_dec(x_280); -lean_dec(x_279); -lean_dec(x_278); -lean_dec(x_232); -lean_dec(x_219); -lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); -lean_dec(x_214); -lean_dec(x_213); -lean_dec(x_212); -lean_dec(x_7); -lean_dec(x_1); -x_291 = lean_ctor_get(x_286, 0); -lean_inc(x_291); -lean_dec(x_286); -if (lean_obj_tag(x_291) == 0) -{ -lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; -x_292 = lean_ctor_get(x_291, 0); -lean_inc(x_292); -lean_dec(x_291); -x_293 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_293, 0, x_292); -x_294 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_294, 0, x_293); -lean_inc(x_233); -x_295 = l_Lean_Elab_Term_throwError___rarg(x_3, x_294, x_233, x_276); -x_296 = lean_ctor_get(x_295, 0); -lean_inc(x_296); -x_297 = lean_ctor_get(x_295, 1); -lean_inc(x_297); -lean_dec(x_295); -x_254 = x_296; -x_255 = x_297; -goto block_271; +x_227 = x_295; +goto block_292; } else { lean_object* x_298; lean_object* x_299; lean_object* x_300; -x_298 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_276); -x_299 = lean_ctor_get(x_298, 0); -lean_inc(x_299); -x_300 = lean_ctor_get(x_298, 1); +lean_inc(x_3); +x_298 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_298, 0, x_3); +x_299 = l_Lean_Elab_Term_logTrace(x_296, x_3, x_298, x_226, x_295); +x_300 = lean_ctor_get(x_299, 1); lean_inc(x_300); -lean_dec(x_298); -x_254 = x_299; -x_255 = x_300; -goto block_271; +lean_dec(x_299); +x_227 = x_300; +goto block_292; } -} -block_253: +block_292: { -lean_object* x_249; lean_object* x_250; lean_object* x_251; +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_255; lean_object* x_256; 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; +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_228, 0); +lean_inc(x_229); +lean_dec(x_228); +lean_inc(x_227); +x_261 = l_Lean_Elab_Term_getCurrMacroScope(x_226, x_227); +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +x_263 = lean_ctor_get(x_261, 1); +lean_inc(x_263); +lean_dec(x_261); +x_264 = l_Lean_Elab_Term_getEnv___rarg(x_263); +x_265 = lean_ctor_get(x_264, 1); +lean_inc(x_265); +x_266 = lean_ctor_get(x_264, 0); +lean_inc(x_266); +lean_dec(x_264); +x_267 = lean_ctor_get(x_265, 0); +lean_inc(x_267); +x_268 = lean_ctor_get(x_265, 1); +lean_inc(x_268); +x_269 = lean_ctor_get(x_265, 2); +lean_inc(x_269); +x_270 = lean_ctor_get(x_265, 3); +lean_inc(x_270); +x_271 = lean_ctor_get(x_265, 4); +lean_inc(x_271); +x_272 = lean_ctor_get(x_265, 5); +lean_inc(x_272); +x_273 = lean_environment_main_module(x_266); +x_274 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_274, 0, x_273); +lean_ctor_set(x_274, 1, x_262); +lean_inc(x_3); +x_275 = l_Lean_Elab_getMacros(x_229, x_3, x_274, x_272); +if (lean_obj_tag(x_275) == 0) +{ +lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + lean_ctor_release(x_265, 2); + lean_ctor_release(x_265, 3); + lean_ctor_release(x_265, 4); + lean_ctor_release(x_265, 5); + x_276 = x_265; +} else { + lean_dec_ref(x_265); + x_276 = lean_box(0); +} +x_277 = lean_ctor_get(x_275, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_275, 1); +lean_inc(x_278); +lean_dec(x_275); +if (lean_is_scalar(x_276)) { + x_279 = lean_alloc_ctor(0, 6, 0); +} else { + x_279 = x_276; +} +lean_ctor_set(x_279, 0, x_267); +lean_ctor_set(x_279, 1, x_268); +lean_ctor_set(x_279, 2, x_269); +lean_ctor_set(x_279, 3, x_270); +lean_ctor_set(x_279, 4, x_271); +lean_ctor_set(x_279, 5, x_278); +x_280 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_280, 0, x_277); +x_230 = x_280; +x_231 = x_279; +goto block_254; +} +else +{ +lean_object* x_281; +lean_dec(x_271); +lean_dec(x_270); +lean_dec(x_269); +lean_dec(x_268); +lean_dec(x_267); +x_281 = lean_ctor_get(x_275, 0); +lean_inc(x_281); +lean_dec(x_275); +if (lean_obj_tag(x_281) == 0) +{ +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; +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +lean_inc(x_283); +lean_dec(x_281); +x_284 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_284, 0, x_283); +x_285 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_285, 0, x_284); +lean_inc(x_226); +x_286 = l_Lean_Elab_Term_throwError___rarg(x_282, x_285, x_226, x_265); +lean_dec(x_282); +x_287 = lean_ctor_get(x_286, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_286, 1); +lean_inc(x_288); +lean_dec(x_286); +x_255 = x_287; +x_256 = x_288; +goto block_260; +} +else +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_289 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_265); +x_290 = lean_ctor_get(x_289, 0); +lean_inc(x_290); +x_291 = lean_ctor_get(x_289, 1); +lean_inc(x_291); +lean_dec(x_289); +x_255 = x_290; +x_256 = x_291; +goto block_260; +} +} +block_254: +{ +if (lean_obj_tag(x_230) == 0) +{ +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_dec(x_225); +lean_dec(x_212); +lean_dec(x_211); +lean_dec(x_210); +lean_dec(x_209); +lean_dec(x_208); +lean_dec(x_207); +lean_dec(x_206); +lean_dec(x_205); +lean_dec(x_7); +x_232 = l_Lean_Elab_Term_termElabAttribute; +x_233 = lean_ctor_get(x_232, 1); +lean_inc(x_233); +x_234 = l_Lean_PersistentEnvExtension_getState___rarg(x_233, x_229); +lean_dec(x_229); +lean_dec(x_233); +x_235 = lean_ctor_get(x_234, 1); +lean_inc(x_235); +lean_dec(x_234); +lean_inc(x_3); +x_236 = l_Lean_Syntax_getKind(x_3); +x_237 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_235, x_236); +if (lean_obj_tag(x_237) == 0) +{ +lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +lean_dec(x_227); +lean_dec(x_1); +x_238 = l_Lean_Name_toString___closed__1; +x_239 = l_Lean_Name_toStringWithSep___main(x_238, x_236); +x_240 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_240, 0, x_239); +x_241 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_241, 0, x_240); +x_242 = l_Lean_Elab_Term_elabTermAux___main___closed__3; +x_243 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_243, 0, x_242); +lean_ctor_set(x_243, 1, x_241); +x_244 = l_Lean_Elab_Term_elabTermAux___main___closed__6; +x_245 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_245, 0, x_243); +lean_ctor_set(x_245, 1, x_244); +x_246 = l_Lean_Elab_Term_throwError___rarg(x_3, x_245, x_226, x_231); +lean_dec(x_3); +return x_246; +} +else +{ +lean_object* x_247; lean_object* x_248; +lean_dec(x_236); +x_247 = lean_ctor_get(x_237, 0); lean_inc(x_247); -x_249 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_249, 0, x_3); -lean_ctor_set(x_249, 1, x_247); -x_250 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_250, 0, x_249); -lean_ctor_set(x_250, 1, x_219); -x_251 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_251, 0, x_232); +lean_dec(x_237); +x_248 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_227, x_3, x_1, x_2, x_247, x_226, x_231); +return x_248; +} +} +else +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; +lean_dec(x_229); +lean_dec(x_227); +lean_dec(x_226); +x_249 = lean_ctor_get(x_230, 0); +lean_inc(x_249); +lean_dec(x_230); +lean_inc(x_249); +x_250 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_250, 0, x_3); +lean_ctor_set(x_250, 1, x_249); +x_251 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_251, 0, x_250); lean_ctor_set(x_251, 1, x_212); -lean_ctor_set(x_251, 2, x_213); -lean_ctor_set(x_251, 3, x_214); -lean_ctor_set(x_251, 4, x_215); -lean_ctor_set(x_251, 5, x_216); -lean_ctor_set(x_251, 6, x_217); -lean_ctor_set(x_251, 7, x_218); -lean_ctor_set(x_251, 8, x_250); -lean_ctor_set(x_251, 9, x_7); -lean_ctor_set_uint8(x_251, sizeof(void*)*10, x_220); -lean_ctor_set_uint8(x_251, sizeof(void*)*10 + 1, x_221); -lean_ctor_set_uint8(x_251, sizeof(void*)*10 + 2, x_222); -x_3 = x_247; -x_4 = x_251; -x_5 = x_248; +x_252 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_252, 0, x_225); +lean_ctor_set(x_252, 1, x_205); +lean_ctor_set(x_252, 2, x_206); +lean_ctor_set(x_252, 3, x_207); +lean_ctor_set(x_252, 4, x_208); +lean_ctor_set(x_252, 5, x_209); +lean_ctor_set(x_252, 6, x_210); +lean_ctor_set(x_252, 7, x_211); +lean_ctor_set(x_252, 8, x_251); +lean_ctor_set(x_252, 9, x_7); +lean_ctor_set_uint8(x_252, sizeof(void*)*10, x_213); +lean_ctor_set_uint8(x_252, sizeof(void*)*10 + 1, x_214); +lean_ctor_set_uint8(x_252, sizeof(void*)*10 + 2, x_215); +x_3 = x_249; +x_4 = x_252; +x_5 = x_231; goto _start; } -block_271: -{ -lean_object* x_256; -x_256 = lean_ctor_get(x_254, 0); -lean_inc(x_256); -if (lean_obj_tag(x_256) == 0) +} +block_260: { lean_object* x_257; -lean_dec(x_256); -lean_dec(x_241); -lean_dec(x_233); -lean_dec(x_3); -if (lean_is_scalar(x_246)) { - x_257 = lean_alloc_ctor(1, 2, 0); -} else { - x_257 = x_246; - lean_ctor_set_tag(x_257, 1); -} -lean_ctor_set(x_257, 0, x_254); -lean_ctor_set(x_257, 1, x_255); -return x_257; -} -else +x_257 = lean_ctor_get(x_255, 0); +lean_inc(x_257); +if (lean_obj_tag(x_257) == 0) { -lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -lean_dec(x_254); -lean_dec(x_246); -x_258 = l_Lean_Name_toString___closed__1; -x_259 = l_Lean_Name_toStringWithSep___main(x_258, x_241); -x_260 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_260, 0, x_259); -x_261 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_261, 0, x_260); -x_262 = l_Lean_Elab_Term_elabTermAux___main___closed__3; -x_263 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_263, 0, x_262); -lean_ctor_set(x_263, 1, x_261); -x_264 = l_Lean_Elab_Term_elabTermAux___main___closed__6; -x_265 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_265, 0, x_263); -lean_ctor_set(x_265, 1, x_264); -x_266 = l_Lean_Elab_Term_throwError___rarg(x_3, x_265, x_233, x_255); -lean_dec(x_3); -x_267 = lean_ctor_get(x_266, 0); -lean_inc(x_267); -x_268 = lean_ctor_get(x_266, 1); -lean_inc(x_268); -if (lean_is_exclusive(x_266)) { - lean_ctor_release(x_266, 0); - lean_ctor_release(x_266, 1); - x_269 = x_266; -} else { - lean_dec_ref(x_266); - x_269 = lean_box(0); -} -if (lean_is_scalar(x_269)) { - x_270 = lean_alloc_ctor(1, 2, 0); -} else { - x_270 = x_269; -} -lean_ctor_set(x_270, 0, x_267); -lean_ctor_set(x_270, 1, x_268); -return x_270; -} -} -} -else -{ -lean_object* x_301; lean_object* x_302; -lean_dec(x_241); -lean_dec(x_232); -lean_dec(x_219); -lean_dec(x_218); -lean_dec(x_217); -lean_dec(x_216); -lean_dec(x_215); -lean_dec(x_214); -lean_dec(x_213); +lean_object* x_258; +lean_dec(x_257); +lean_dec(x_229); +lean_dec(x_227); +lean_dec(x_226); +lean_dec(x_225); lean_dec(x_212); +lean_dec(x_211); +lean_dec(x_210); +lean_dec(x_209); +lean_dec(x_208); +lean_dec(x_207); +lean_dec(x_206); +lean_dec(x_205); lean_dec(x_7); -x_301 = lean_ctor_get(x_242, 0); -lean_inc(x_301); -lean_dec(x_242); -lean_inc(x_234); -x_302 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_234, x_3, x_1, x_2, x_301, x_233, x_234); -return x_302; +lean_dec(x_3); +lean_dec(x_1); +x_258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_258, 0, x_255); +lean_ctor_set(x_258, 1, x_256); +return x_258; +} +else +{ +lean_object* x_259; +lean_dec(x_255); +x_259 = lean_box(0); +x_230 = x_259; +x_231 = x_256; +goto block_254; +} } } } @@ -13762,50 +13715,50 @@ return x_302; } else { -lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; uint8_t x_340; uint8_t x_341; uint8_t x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_434; lean_object* x_435; uint8_t x_436; -x_322 = lean_ctor_get(x_5, 0); -x_323 = lean_ctor_get(x_5, 1); -x_324 = lean_ctor_get(x_5, 2); -x_325 = lean_ctor_get(x_5, 3); -x_326 = lean_ctor_get(x_5, 4); -x_327 = lean_ctor_get(x_5, 5); -lean_inc(x_327); -lean_inc(x_326); -lean_inc(x_325); -lean_inc(x_324); -lean_inc(x_323); -lean_inc(x_322); +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; uint8_t x_329; uint8_t x_330; uint8_t x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_419; lean_object* x_420; uint8_t x_421; +x_311 = lean_ctor_get(x_5, 0); +x_312 = lean_ctor_get(x_5, 1); +x_313 = lean_ctor_get(x_5, 2); +x_314 = lean_ctor_get(x_5, 3); +x_315 = lean_ctor_get(x_5, 4); +x_316 = lean_ctor_get(x_5, 5); +lean_inc(x_316); +lean_inc(x_315); +lean_inc(x_314); +lean_inc(x_313); +lean_inc(x_312); +lean_inc(x_311); lean_dec(x_5); -x_328 = lean_unsigned_to_nat(1u); -x_329 = lean_nat_add(x_327, x_328); -x_330 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_330, 0, x_322); -lean_ctor_set(x_330, 1, x_323); -lean_ctor_set(x_330, 2, x_324); -lean_ctor_set(x_330, 3, x_325); -lean_ctor_set(x_330, 4, x_326); -lean_ctor_set(x_330, 5, x_329); -x_331 = lean_ctor_get(x_4, 0); -lean_inc(x_331); -x_332 = lean_ctor_get(x_4, 1); -lean_inc(x_332); -x_333 = lean_ctor_get(x_4, 2); -lean_inc(x_333); -x_334 = lean_ctor_get(x_4, 3); -lean_inc(x_334); -x_335 = lean_ctor_get(x_4, 4); -lean_inc(x_335); -x_336 = lean_ctor_get(x_4, 5); -lean_inc(x_336); -x_337 = lean_ctor_get(x_4, 6); -lean_inc(x_337); -x_338 = lean_ctor_get(x_4, 7); -lean_inc(x_338); -x_339 = lean_ctor_get(x_4, 8); -lean_inc(x_339); -x_340 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_341 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -x_342 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); +x_317 = lean_unsigned_to_nat(1u); +x_318 = lean_nat_add(x_316, x_317); +x_319 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_319, 0, x_311); +lean_ctor_set(x_319, 1, x_312); +lean_ctor_set(x_319, 2, x_313); +lean_ctor_set(x_319, 3, x_314); +lean_ctor_set(x_319, 4, x_315); +lean_ctor_set(x_319, 5, x_318); +x_320 = lean_ctor_get(x_4, 0); +lean_inc(x_320); +x_321 = lean_ctor_get(x_4, 1); +lean_inc(x_321); +x_322 = lean_ctor_get(x_4, 2); +lean_inc(x_322); +x_323 = lean_ctor_get(x_4, 3); +lean_inc(x_323); +x_324 = lean_ctor_get(x_4, 4); +lean_inc(x_324); +x_325 = lean_ctor_get(x_4, 5); +lean_inc(x_325); +x_326 = lean_ctor_get(x_4, 6); +lean_inc(x_326); +x_327 = lean_ctor_get(x_4, 7); +lean_inc(x_327); +x_328 = lean_ctor_get(x_4, 8); +lean_inc(x_328); +x_329 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_330 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +x_331 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 2); if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 0); lean_ctor_release(x_4, 1); @@ -13817,454 +13770,437 @@ if (lean_is_exclusive(x_4)) { lean_ctor_release(x_4, 7); lean_ctor_release(x_4, 8); lean_ctor_release(x_4, 9); - x_343 = x_4; + x_332 = x_4; } else { lean_dec_ref(x_4); - x_343 = lean_box(0); + x_332 = lean_box(0); } +lean_inc(x_316); +lean_inc(x_328); lean_inc(x_327); -lean_inc(x_339); -lean_inc(x_338); -lean_inc(x_337); -lean_inc(x_336); -lean_inc(x_335); -lean_inc(x_334); -lean_inc(x_333); -lean_inc(x_332); -lean_inc(x_331); -if (lean_is_scalar(x_343)) { - x_344 = lean_alloc_ctor(0, 10, 3); +lean_inc(x_326); +lean_inc(x_325); +lean_inc(x_324); +lean_inc(x_323); +lean_inc(x_322); +lean_inc(x_321); +lean_inc(x_320); +if (lean_is_scalar(x_332)) { + x_333 = lean_alloc_ctor(0, 10, 3); } else { - x_344 = x_343; + x_333 = x_332; } -lean_ctor_set(x_344, 0, x_331); -lean_ctor_set(x_344, 1, x_332); -lean_ctor_set(x_344, 2, x_333); -lean_ctor_set(x_344, 3, x_334); -lean_ctor_set(x_344, 4, x_335); -lean_ctor_set(x_344, 5, x_336); -lean_ctor_set(x_344, 6, x_337); -lean_ctor_set(x_344, 7, x_338); -lean_ctor_set(x_344, 8, x_339); -lean_ctor_set(x_344, 9, x_327); -lean_ctor_set_uint8(x_344, sizeof(void*)*10, x_340); -lean_ctor_set_uint8(x_344, sizeof(void*)*10 + 1, x_341); -lean_ctor_set_uint8(x_344, sizeof(void*)*10 + 2, x_342); -x_434 = lean_ctor_get(x_331, 3); -lean_inc(x_434); -x_435 = lean_ctor_get(x_331, 4); -lean_inc(x_435); -x_436 = lean_nat_dec_eq(x_434, x_435); -lean_dec(x_435); -lean_dec(x_434); -if (x_436 == 0) -{ -lean_dec(x_344); -x_345 = x_330; -goto block_433; -} -else -{ -lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; -lean_dec(x_339); -lean_dec(x_338); -lean_dec(x_337); -lean_dec(x_336); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_333); -lean_dec(x_332); -lean_dec(x_331); -lean_dec(x_327); -lean_dec(x_1); -x_437 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; -x_438 = l_Lean_Elab_Term_throwError___rarg(x_3, x_437, x_344, x_330); -lean_dec(x_3); -x_439 = lean_ctor_get(x_438, 0); -lean_inc(x_439); -x_440 = lean_ctor_get(x_438, 1); -lean_inc(x_440); -if (lean_is_exclusive(x_438)) { - lean_ctor_release(x_438, 0); - lean_ctor_release(x_438, 1); - x_441 = x_438; -} else { - lean_dec_ref(x_438); - x_441 = lean_box(0); -} -if (lean_is_scalar(x_441)) { - x_442 = lean_alloc_ctor(1, 2, 0); -} else { - x_442 = x_441; -} -lean_ctor_set(x_442, 0, x_439); -lean_ctor_set(x_442, 1, x_440); -return x_442; -} -block_433: -{ -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_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; uint8_t x_429; -x_346 = lean_ctor_get(x_331, 0); -lean_inc(x_346); -x_347 = lean_ctor_get(x_331, 1); -lean_inc(x_347); -x_348 = lean_ctor_get(x_331, 2); -lean_inc(x_348); -x_349 = lean_ctor_get(x_331, 3); -lean_inc(x_349); -x_350 = lean_ctor_get(x_331, 4); -lean_inc(x_350); -if (lean_is_exclusive(x_331)) { - lean_ctor_release(x_331, 0); - lean_ctor_release(x_331, 1); - lean_ctor_release(x_331, 2); - lean_ctor_release(x_331, 3); - lean_ctor_release(x_331, 4); - x_351 = x_331; -} else { - lean_dec_ref(x_331); - x_351 = lean_box(0); -} -x_352 = lean_nat_add(x_349, x_328); -lean_dec(x_349); -if (lean_is_scalar(x_351)) { - x_353 = lean_alloc_ctor(0, 5, 0); -} else { - x_353 = x_351; -} -lean_ctor_set(x_353, 0, x_346); -lean_ctor_set(x_353, 1, x_347); -lean_ctor_set(x_353, 2, x_348); -lean_ctor_set(x_353, 3, x_352); -lean_ctor_set(x_353, 4, x_350); -lean_inc(x_327); -lean_inc(x_339); -lean_inc(x_338); -lean_inc(x_337); -lean_inc(x_336); -lean_inc(x_335); -lean_inc(x_334); -lean_inc(x_333); -lean_inc(x_332); -lean_inc(x_353); -x_354 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_354, 0, x_353); -lean_ctor_set(x_354, 1, x_332); -lean_ctor_set(x_354, 2, x_333); -lean_ctor_set(x_354, 3, x_334); -lean_ctor_set(x_354, 4, x_335); -lean_ctor_set(x_354, 5, x_336); -lean_ctor_set(x_354, 6, x_337); -lean_ctor_set(x_354, 7, x_338); -lean_ctor_set(x_354, 8, x_339); -lean_ctor_set(x_354, 9, x_327); -lean_ctor_set_uint8(x_354, sizeof(void*)*10, x_340); -lean_ctor_set_uint8(x_354, sizeof(void*)*10 + 1, x_341); -lean_ctor_set_uint8(x_354, sizeof(void*)*10 + 2, x_342); -x_425 = l_Lean_Elab_Term_getOptions(x_354, x_345); -x_426 = lean_ctor_get(x_425, 0); -lean_inc(x_426); -x_427 = lean_ctor_get(x_425, 1); -lean_inc(x_427); -lean_dec(x_425); -x_428 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; -x_429 = l_Lean_checkTraceOption(x_426, x_428); -lean_dec(x_426); -if (x_429 == 0) -{ -x_355 = x_427; -goto block_424; -} -else -{ -lean_object* x_430; lean_object* x_431; lean_object* x_432; -lean_inc(x_3); -x_430 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_430, 0, x_3); -x_431 = l_Lean_Elab_Term_logTrace(x_428, x_3, x_430, x_354, x_427); -x_432 = lean_ctor_get(x_431, 1); -lean_inc(x_432); -lean_dec(x_431); -x_355 = x_432; -goto block_424; -} -block_424: -{ -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; -x_356 = l_Lean_Elab_Term_termElabAttribute; -x_357 = lean_ctor_get(x_356, 1); -lean_inc(x_357); -x_358 = lean_ctor_get(x_355, 0); -lean_inc(x_358); -x_359 = lean_ctor_get(x_358, 0); -lean_inc(x_359); -lean_dec(x_358); -x_360 = l_Lean_PersistentEnvExtension_getState___rarg(x_357, x_359); -lean_dec(x_359); -lean_dec(x_357); -x_361 = lean_ctor_get(x_360, 1); -lean_inc(x_361); -lean_dec(x_360); -lean_inc(x_3); -x_362 = l_Lean_Syntax_getKind(x_3); -x_363 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_361, x_362); -if (lean_obj_tag(x_363) == 0) -{ -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_375; lean_object* x_376; 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; -x_364 = l_Lean_Elab_Term_getEnv___rarg(x_355); -x_365 = lean_ctor_get(x_364, 0); -lean_inc(x_365); -x_366 = lean_ctor_get(x_364, 1); -lean_inc(x_366); -if (lean_is_exclusive(x_364)) { - lean_ctor_release(x_364, 0); - lean_ctor_release(x_364, 1); - x_367 = x_364; -} else { - lean_dec_ref(x_364); - x_367 = lean_box(0); -} -x_393 = l_Lean_Elab_Term_getCurrMacroScope(x_354, x_366); -x_394 = lean_ctor_get(x_393, 0); -lean_inc(x_394); -x_395 = lean_ctor_get(x_393, 1); -lean_inc(x_395); -lean_dec(x_393); -x_396 = l_Lean_Elab_Term_getEnv___rarg(x_395); -x_397 = lean_ctor_get(x_396, 1); -lean_inc(x_397); -x_398 = lean_ctor_get(x_396, 0); -lean_inc(x_398); -lean_dec(x_396); -x_399 = lean_ctor_get(x_397, 0); -lean_inc(x_399); -x_400 = lean_ctor_get(x_397, 1); -lean_inc(x_400); -x_401 = lean_ctor_get(x_397, 2); -lean_inc(x_401); -x_402 = lean_ctor_get(x_397, 3); -lean_inc(x_402); -x_403 = lean_ctor_get(x_397, 4); -lean_inc(x_403); -x_404 = lean_ctor_get(x_397, 5); -lean_inc(x_404); -x_405 = lean_environment_main_module(x_398); -x_406 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_406, 0, x_405); -lean_ctor_set(x_406, 1, x_394); -lean_inc(x_3); -x_407 = l_Lean_Elab_getMacros(x_365, x_3, x_406, x_404); -lean_dec(x_365); -if (lean_obj_tag(x_407) == 0) -{ -lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; -lean_dec(x_367); -lean_dec(x_362); -lean_dec(x_354); -if (lean_is_exclusive(x_397)) { - lean_ctor_release(x_397, 0); - lean_ctor_release(x_397, 1); - lean_ctor_release(x_397, 2); - lean_ctor_release(x_397, 3); - lean_ctor_release(x_397, 4); - lean_ctor_release(x_397, 5); - x_408 = x_397; -} else { - lean_dec_ref(x_397); - x_408 = lean_box(0); -} -x_409 = lean_ctor_get(x_407, 0); -lean_inc(x_409); -x_410 = lean_ctor_get(x_407, 1); -lean_inc(x_410); -lean_dec(x_407); -if (lean_is_scalar(x_408)) { - x_411 = lean_alloc_ctor(0, 6, 0); -} else { - x_411 = x_408; -} -lean_ctor_set(x_411, 0, x_399); -lean_ctor_set(x_411, 1, x_400); -lean_ctor_set(x_411, 2, x_401); -lean_ctor_set(x_411, 3, x_402); -lean_ctor_set(x_411, 4, x_403); -lean_ctor_set(x_411, 5, x_410); -x_368 = x_409; -x_369 = x_411; -goto block_374; -} -else -{ -lean_object* x_412; -lean_dec(x_403); -lean_dec(x_402); -lean_dec(x_401); -lean_dec(x_400); -lean_dec(x_399); -lean_dec(x_353); -lean_dec(x_339); -lean_dec(x_338); -lean_dec(x_337); -lean_dec(x_336); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_333); -lean_dec(x_332); -lean_dec(x_327); -lean_dec(x_1); -x_412 = lean_ctor_get(x_407, 0); -lean_inc(x_412); -lean_dec(x_407); -if (lean_obj_tag(x_412) == 0) -{ -lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; -x_413 = lean_ctor_get(x_412, 0); -lean_inc(x_413); -lean_dec(x_412); -x_414 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_414, 0, x_413); -x_415 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_415, 0, x_414); -lean_inc(x_354); -x_416 = l_Lean_Elab_Term_throwError___rarg(x_3, x_415, x_354, x_397); -x_417 = lean_ctor_get(x_416, 0); -lean_inc(x_417); -x_418 = lean_ctor_get(x_416, 1); -lean_inc(x_418); -lean_dec(x_416); -x_375 = x_417; -x_376 = x_418; -goto block_392; -} -else -{ -lean_object* x_419; lean_object* x_420; lean_object* x_421; -x_419 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_397); -x_420 = lean_ctor_get(x_419, 0); +lean_ctor_set(x_333, 0, x_320); +lean_ctor_set(x_333, 1, x_321); +lean_ctor_set(x_333, 2, x_322); +lean_ctor_set(x_333, 3, x_323); +lean_ctor_set(x_333, 4, x_324); +lean_ctor_set(x_333, 5, x_325); +lean_ctor_set(x_333, 6, x_326); +lean_ctor_set(x_333, 7, x_327); +lean_ctor_set(x_333, 8, x_328); +lean_ctor_set(x_333, 9, x_316); +lean_ctor_set_uint8(x_333, sizeof(void*)*10, x_329); +lean_ctor_set_uint8(x_333, sizeof(void*)*10 + 1, x_330); +lean_ctor_set_uint8(x_333, sizeof(void*)*10 + 2, x_331); +x_419 = lean_ctor_get(x_320, 3); +lean_inc(x_419); +x_420 = lean_ctor_get(x_320, 4); lean_inc(x_420); -x_421 = lean_ctor_get(x_419, 1); -lean_inc(x_421); +x_421 = lean_nat_dec_eq(x_419, x_420); +lean_dec(x_420); lean_dec(x_419); -x_375 = x_420; -x_376 = x_421; -goto block_392; -} -} -block_374: +if (x_421 == 0) { -lean_object* x_370; lean_object* x_371; lean_object* x_372; -lean_inc(x_368); -x_370 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_370, 0, x_3); -lean_ctor_set(x_370, 1, x_368); -x_371 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_371, 0, x_370); -lean_ctor_set(x_371, 1, x_339); -x_372 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_372, 0, x_353); -lean_ctor_set(x_372, 1, x_332); -lean_ctor_set(x_372, 2, x_333); -lean_ctor_set(x_372, 3, x_334); -lean_ctor_set(x_372, 4, x_335); -lean_ctor_set(x_372, 5, x_336); -lean_ctor_set(x_372, 6, x_337); -lean_ctor_set(x_372, 7, x_338); -lean_ctor_set(x_372, 8, x_371); -lean_ctor_set(x_372, 9, x_327); -lean_ctor_set_uint8(x_372, sizeof(void*)*10, x_340); -lean_ctor_set_uint8(x_372, sizeof(void*)*10 + 1, x_341); -lean_ctor_set_uint8(x_372, sizeof(void*)*10 + 2, x_342); -x_3 = x_368; -x_4 = x_372; -x_5 = x_369; +lean_dec(x_333); +x_334 = x_319; +goto block_418; +} +else +{ +lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; +lean_dec(x_328); +lean_dec(x_327); +lean_dec(x_326); +lean_dec(x_325); +lean_dec(x_324); +lean_dec(x_323); +lean_dec(x_322); +lean_dec(x_321); +lean_dec(x_320); +lean_dec(x_316); +lean_dec(x_1); +x_422 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; +x_423 = l_Lean_Elab_Term_throwError___rarg(x_3, x_422, x_333, x_319); +lean_dec(x_3); +x_424 = lean_ctor_get(x_423, 0); +lean_inc(x_424); +x_425 = lean_ctor_get(x_423, 1); +lean_inc(x_425); +if (lean_is_exclusive(x_423)) { + lean_ctor_release(x_423, 0); + lean_ctor_release(x_423, 1); + x_426 = x_423; +} else { + lean_dec_ref(x_423); + x_426 = lean_box(0); +} +if (lean_is_scalar(x_426)) { + x_427 = lean_alloc_ctor(1, 2, 0); +} else { + x_427 = x_426; +} +lean_ctor_set(x_427, 0, x_424); +lean_ctor_set(x_427, 1, x_425); +return x_427; +} +block_418: +{ +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_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; +x_335 = lean_ctor_get(x_320, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_320, 1); +lean_inc(x_336); +x_337 = lean_ctor_get(x_320, 2); +lean_inc(x_337); +x_338 = lean_ctor_get(x_320, 3); +lean_inc(x_338); +x_339 = lean_ctor_get(x_320, 4); +lean_inc(x_339); +if (lean_is_exclusive(x_320)) { + lean_ctor_release(x_320, 0); + lean_ctor_release(x_320, 1); + lean_ctor_release(x_320, 2); + lean_ctor_release(x_320, 3); + lean_ctor_release(x_320, 4); + x_340 = x_320; +} else { + lean_dec_ref(x_320); + x_340 = lean_box(0); +} +x_341 = lean_nat_add(x_338, x_317); +lean_dec(x_338); +if (lean_is_scalar(x_340)) { + x_342 = lean_alloc_ctor(0, 5, 0); +} else { + x_342 = x_340; +} +lean_ctor_set(x_342, 0, x_335); +lean_ctor_set(x_342, 1, x_336); +lean_ctor_set(x_342, 2, x_337); +lean_ctor_set(x_342, 3, x_341); +lean_ctor_set(x_342, 4, x_339); +lean_inc(x_316); +lean_inc(x_328); +lean_inc(x_327); +lean_inc(x_326); +lean_inc(x_325); +lean_inc(x_324); +lean_inc(x_323); +lean_inc(x_322); +lean_inc(x_321); +lean_inc(x_342); +x_343 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_343, 0, x_342); +lean_ctor_set(x_343, 1, x_321); +lean_ctor_set(x_343, 2, x_322); +lean_ctor_set(x_343, 3, x_323); +lean_ctor_set(x_343, 4, x_324); +lean_ctor_set(x_343, 5, x_325); +lean_ctor_set(x_343, 6, x_326); +lean_ctor_set(x_343, 7, x_327); +lean_ctor_set(x_343, 8, x_328); +lean_ctor_set(x_343, 9, x_316); +lean_ctor_set_uint8(x_343, sizeof(void*)*10, x_329); +lean_ctor_set_uint8(x_343, sizeof(void*)*10 + 1, x_330); +lean_ctor_set_uint8(x_343, sizeof(void*)*10 + 2, x_331); +x_410 = l_Lean_Elab_Term_getOptions(x_343, x_334); +x_411 = lean_ctor_get(x_410, 0); +lean_inc(x_411); +x_412 = lean_ctor_get(x_410, 1); +lean_inc(x_412); +lean_dec(x_410); +x_413 = l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__3; +x_414 = l_Lean_checkTraceOption(x_411, x_413); +lean_dec(x_411); +if (x_414 == 0) +{ +x_344 = x_412; +goto block_409; +} +else +{ +lean_object* x_415; lean_object* x_416; lean_object* x_417; +lean_inc(x_3); +x_415 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_415, 0, x_3); +x_416 = l_Lean_Elab_Term_logTrace(x_413, x_3, x_415, x_343, x_412); +x_417 = lean_ctor_get(x_416, 1); +lean_inc(x_417); +lean_dec(x_416); +x_344 = x_417; +goto block_409; +} +block_409: +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_372; lean_object* x_373; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_345 = lean_ctor_get(x_344, 0); +lean_inc(x_345); +x_346 = lean_ctor_get(x_345, 0); +lean_inc(x_346); +lean_dec(x_345); +lean_inc(x_344); +x_378 = l_Lean_Elab_Term_getCurrMacroScope(x_343, x_344); +x_379 = lean_ctor_get(x_378, 0); +lean_inc(x_379); +x_380 = lean_ctor_get(x_378, 1); +lean_inc(x_380); +lean_dec(x_378); +x_381 = l_Lean_Elab_Term_getEnv___rarg(x_380); +x_382 = lean_ctor_get(x_381, 1); +lean_inc(x_382); +x_383 = lean_ctor_get(x_381, 0); +lean_inc(x_383); +lean_dec(x_381); +x_384 = lean_ctor_get(x_382, 0); +lean_inc(x_384); +x_385 = lean_ctor_get(x_382, 1); +lean_inc(x_385); +x_386 = lean_ctor_get(x_382, 2); +lean_inc(x_386); +x_387 = lean_ctor_get(x_382, 3); +lean_inc(x_387); +x_388 = lean_ctor_get(x_382, 4); +lean_inc(x_388); +x_389 = lean_ctor_get(x_382, 5); +lean_inc(x_389); +x_390 = lean_environment_main_module(x_383); +x_391 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_391, 0, x_390); +lean_ctor_set(x_391, 1, x_379); +lean_inc(x_3); +x_392 = l_Lean_Elab_getMacros(x_346, x_3, x_391, x_389); +if (lean_obj_tag(x_392) == 0) +{ +lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; +if (lean_is_exclusive(x_382)) { + lean_ctor_release(x_382, 0); + lean_ctor_release(x_382, 1); + lean_ctor_release(x_382, 2); + lean_ctor_release(x_382, 3); + lean_ctor_release(x_382, 4); + lean_ctor_release(x_382, 5); + x_393 = x_382; +} else { + lean_dec_ref(x_382); + x_393 = lean_box(0); +} +x_394 = lean_ctor_get(x_392, 0); +lean_inc(x_394); +x_395 = lean_ctor_get(x_392, 1); +lean_inc(x_395); +lean_dec(x_392); +if (lean_is_scalar(x_393)) { + x_396 = lean_alloc_ctor(0, 6, 0); +} else { + x_396 = x_393; +} +lean_ctor_set(x_396, 0, x_384); +lean_ctor_set(x_396, 1, x_385); +lean_ctor_set(x_396, 2, x_386); +lean_ctor_set(x_396, 3, x_387); +lean_ctor_set(x_396, 4, x_388); +lean_ctor_set(x_396, 5, x_395); +x_397 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_397, 0, x_394); +x_347 = x_397; +x_348 = x_396; +goto block_371; +} +else +{ +lean_object* x_398; +lean_dec(x_388); +lean_dec(x_387); +lean_dec(x_386); +lean_dec(x_385); +lean_dec(x_384); +x_398 = lean_ctor_get(x_392, 0); +lean_inc(x_398); +lean_dec(x_392); +if (lean_obj_tag(x_398) == 0) +{ +lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; +x_399 = lean_ctor_get(x_398, 0); +lean_inc(x_399); +x_400 = lean_ctor_get(x_398, 1); +lean_inc(x_400); +lean_dec(x_398); +x_401 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_401, 0, x_400); +x_402 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_402, 0, x_401); +lean_inc(x_343); +x_403 = l_Lean_Elab_Term_throwError___rarg(x_399, x_402, x_343, x_382); +lean_dec(x_399); +x_404 = lean_ctor_get(x_403, 0); +lean_inc(x_404); +x_405 = lean_ctor_get(x_403, 1); +lean_inc(x_405); +lean_dec(x_403); +x_372 = x_404; +x_373 = x_405; +goto block_377; +} +else +{ +lean_object* x_406; lean_object* x_407; lean_object* x_408; +x_406 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_382); +x_407 = lean_ctor_get(x_406, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_406, 1); +lean_inc(x_408); +lean_dec(x_406); +x_372 = x_407; +x_373 = x_408; +goto block_377; +} +} +block_371: +{ +if (lean_obj_tag(x_347) == 0) +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; +lean_dec(x_342); +lean_dec(x_328); +lean_dec(x_327); +lean_dec(x_326); +lean_dec(x_325); +lean_dec(x_324); +lean_dec(x_323); +lean_dec(x_322); +lean_dec(x_321); +lean_dec(x_316); +x_349 = l_Lean_Elab_Term_termElabAttribute; +x_350 = lean_ctor_get(x_349, 1); +lean_inc(x_350); +x_351 = l_Lean_PersistentEnvExtension_getState___rarg(x_350, x_346); +lean_dec(x_346); +lean_dec(x_350); +x_352 = lean_ctor_get(x_351, 1); +lean_inc(x_352); +lean_dec(x_351); +lean_inc(x_3); +x_353 = l_Lean_Syntax_getKind(x_3); +x_354 = l_Lean_SMap_find_x3f___at_Lean_Elab_Term_elabTermAux___main___spec__1(x_352, x_353); +if (lean_obj_tag(x_354) == 0) +{ +lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; +lean_dec(x_344); +lean_dec(x_1); +x_355 = l_Lean_Name_toString___closed__1; +x_356 = l_Lean_Name_toStringWithSep___main(x_355, x_353); +x_357 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_357, 0, x_356); +x_358 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_358, 0, x_357); +x_359 = l_Lean_Elab_Term_elabTermAux___main___closed__3; +x_360 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_360, 0, x_359); +lean_ctor_set(x_360, 1, x_358); +x_361 = l_Lean_Elab_Term_elabTermAux___main___closed__6; +x_362 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_362, 0, x_360); +lean_ctor_set(x_362, 1, x_361); +x_363 = l_Lean_Elab_Term_throwError___rarg(x_3, x_362, x_343, x_348); +lean_dec(x_3); +return x_363; +} +else +{ +lean_object* x_364; lean_object* x_365; +lean_dec(x_353); +x_364 = lean_ctor_get(x_354, 0); +lean_inc(x_364); +lean_dec(x_354); +x_365 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_344, x_3, x_1, x_2, x_364, x_343, x_348); +return x_365; +} +} +else +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; +lean_dec(x_346); +lean_dec(x_344); +lean_dec(x_343); +x_366 = lean_ctor_get(x_347, 0); +lean_inc(x_366); +lean_dec(x_347); +lean_inc(x_366); +x_367 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_367, 0, x_3); +lean_ctor_set(x_367, 1, x_366); +x_368 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_368, 0, x_367); +lean_ctor_set(x_368, 1, x_328); +x_369 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_369, 0, x_342); +lean_ctor_set(x_369, 1, x_321); +lean_ctor_set(x_369, 2, x_322); +lean_ctor_set(x_369, 3, x_323); +lean_ctor_set(x_369, 4, x_324); +lean_ctor_set(x_369, 5, x_325); +lean_ctor_set(x_369, 6, x_326); +lean_ctor_set(x_369, 7, x_327); +lean_ctor_set(x_369, 8, x_368); +lean_ctor_set(x_369, 9, x_316); +lean_ctor_set_uint8(x_369, sizeof(void*)*10, x_329); +lean_ctor_set_uint8(x_369, sizeof(void*)*10 + 1, x_330); +lean_ctor_set_uint8(x_369, sizeof(void*)*10 + 2, x_331); +x_3 = x_366; +x_4 = x_369; +x_5 = x_348; goto _start; } -block_392: +} +block_377: { -lean_object* x_377; -x_377 = lean_ctor_get(x_375, 0); -lean_inc(x_377); -if (lean_obj_tag(x_377) == 0) +lean_object* x_374; +x_374 = lean_ctor_get(x_372, 0); +lean_inc(x_374); +if (lean_obj_tag(x_374) == 0) { -lean_object* x_378; -lean_dec(x_377); -lean_dec(x_362); -lean_dec(x_354); -lean_dec(x_3); -if (lean_is_scalar(x_367)) { - x_378 = lean_alloc_ctor(1, 2, 0); -} else { - x_378 = x_367; - lean_ctor_set_tag(x_378, 1); -} -lean_ctor_set(x_378, 0, x_375); -lean_ctor_set(x_378, 1, x_376); -return x_378; -} -else -{ -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_dec(x_375); -lean_dec(x_367); -x_379 = l_Lean_Name_toString___closed__1; -x_380 = l_Lean_Name_toStringWithSep___main(x_379, x_362); -x_381 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_381, 0, x_380); -x_382 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_382, 0, x_381); -x_383 = l_Lean_Elab_Term_elabTermAux___main___closed__3; -x_384 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_384, 0, x_383); -lean_ctor_set(x_384, 1, x_382); -x_385 = l_Lean_Elab_Term_elabTermAux___main___closed__6; -x_386 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_386, 0, x_384); -lean_ctor_set(x_386, 1, x_385); -x_387 = l_Lean_Elab_Term_throwError___rarg(x_3, x_386, x_354, x_376); -lean_dec(x_3); -x_388 = lean_ctor_get(x_387, 0); -lean_inc(x_388); -x_389 = lean_ctor_get(x_387, 1); -lean_inc(x_389); -if (lean_is_exclusive(x_387)) { - lean_ctor_release(x_387, 0); - lean_ctor_release(x_387, 1); - x_390 = x_387; -} else { - lean_dec_ref(x_387); - x_390 = lean_box(0); -} -if (lean_is_scalar(x_390)) { - x_391 = lean_alloc_ctor(1, 2, 0); -} else { - x_391 = x_390; -} -lean_ctor_set(x_391, 0, x_388); -lean_ctor_set(x_391, 1, x_389); -return x_391; -} -} -} -else -{ -lean_object* x_422; lean_object* x_423; -lean_dec(x_362); -lean_dec(x_353); -lean_dec(x_339); -lean_dec(x_338); -lean_dec(x_337); -lean_dec(x_336); -lean_dec(x_335); -lean_dec(x_334); -lean_dec(x_333); -lean_dec(x_332); +lean_object* x_375; +lean_dec(x_374); +lean_dec(x_346); +lean_dec(x_344); +lean_dec(x_343); +lean_dec(x_342); +lean_dec(x_328); lean_dec(x_327); -x_422 = lean_ctor_get(x_363, 0); -lean_inc(x_422); -lean_dec(x_363); -lean_inc(x_355); -x_423 = l___private_Init_Lean_Elab_Term_8__elabTermUsing___main(x_355, x_3, x_1, x_2, x_422, x_354, x_355); -return x_423; +lean_dec(x_326); +lean_dec(x_325); +lean_dec(x_324); +lean_dec(x_323); +lean_dec(x_322); +lean_dec(x_321); +lean_dec(x_316); +lean_dec(x_3); +lean_dec(x_1); +x_375 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_375, 0, x_372); +lean_ctor_set(x_375, 1, x_373); +return x_375; +} +else +{ +lean_object* x_376; +lean_dec(x_372); +x_376 = lean_box(0); +x_347 = x_376; +x_348 = x_373; +goto block_371; +} } } } diff --git a/stage0/stdlib/Init/Lean/Elab/Util.c b/stage0/stdlib/Init/Lean/Elab/Util.c index b5dcdf295e..b52f4d0be6 100644 --- a/stage0/stdlib/Init/Lean/Elab/Util.c +++ b/stage0/stdlib/Init/Lean/Elab/Util.c @@ -63,6 +63,7 @@ lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_getMacros___spec__1___boxed(lea lean_object* lean_io_mk_ref(lean_object*, lean_object*); lean_object* l_Lean_Elab_ElabFnTable_insert___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_HashMapImp_moveEntries___main___at_Lean_Elab_ElabFnTable_insert___spec__17(lean_object*); +lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_ref_get(lean_object*, lean_object*); lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_ElabFnTable_insert___spec__2(lean_object*); lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses(lean_object*); @@ -112,6 +113,7 @@ lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__1; extern lean_object* l_Lean_mkAttributeImplOfConstant___closed__1; lean_object* l_Lean_Elab_macroAttribute___closed__5; +lean_object* l_Lean_Elab_liftMacroM___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKind___closed__2; lean_object* l___private_Init_Lean_Elab_Util_3__mkElabFnOfConstantUnsafe___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_ElabAttribute_inhabited___closed__5; @@ -141,6 +143,7 @@ lean_object* l_finally___rarg___lambda__1___boxed(lean_object*, lean_object*, le lean_object* l___private_Init_Lean_Elab_Util_2__throwUnexpectedElabType___rarg___closed__3; lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_Elab_mkElabAttributeAux___spec__3___rarg___closed__1; lean_object* l_Lean_Elab_ElabAttributeExtensionState_inhabited___closed__1; +lean_object* l_Lean_Elab_liftMacroM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_checkSyntaxNodeKindAtNamespaces___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_Elab_mkElabAttributeAux___spec__3(lean_object*); lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_getMacros___spec__2___boxed(lean_object*, lean_object*); @@ -175,6 +178,7 @@ lean_object* l_List_foldl___main___at_Lean_Elab_addMacroStack___spec__1___closed lean_object* lean_eval_const(lean_object*, lean_object*); lean_object* l_Lean_Elab_registerBuiltinMacroAttr___lambda__1___closed__3; lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_Elab_mkElabAttributeAux___spec__3___rarg___closed__2; +lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_adaptMacro___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_mkElabAttributeAux___spec__2(lean_object*); lean_object* l_Lean_SMap_empty___at_Lean_Elab_ElabAttributeExtensionState_inhabited___spec__1___closed__1; @@ -200,6 +204,7 @@ lean_object* l_Lean_Elab_mkElabAttribute___rarg(lean_object*, lean_object*, lean lean_object* l_Lean_SMap_empty___at_Lean_Elab_mkBuiltinMacroFnTable___spec__1___closed__1; size_t l_USize_mul(size_t, size_t); lean_object* l_List_redLength___main___rarg(lean_object*); +lean_object* l_Lean_Elab_liftMacroM(lean_object*, lean_object*); lean_object* l_Lean_Elab_addMacroStack___closed__1; lean_object* l_mkHashMapImp___rarg(lean_object*); lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam___closed__3; @@ -340,6 +345,7 @@ lean_object* l_PersistentHashMap_empty___at_Lean_Elab_mkElabAttributeAux___spec_ lean_object* l_Lean_SMap_empty___at_Lean_Elab_ElabAttribute_inhabited___spec__1___closed__3; lean_object* l_Lean_Elab_builtinMacroFnTable; lean_object* l_Lean_SMap_empty___at_Lean_Elab_ElabAttributeExtensionState_inhabited___spec__1___closed__2; +lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkAppStx___closed__2; lean_object* l_Lean_Elab_mkMacroAttribute___closed__1; lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(lean_object*, lean_object*); @@ -6596,6 +6602,141 @@ lean_dec(x_1); return x_5; } } +lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_environment_main_module(x_1); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_2); +x_10 = lean_apply_2(x_3, x_9, x_7); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_4, 3); +lean_inc(x_13); +lean_dec(x_4); +x_14 = lean_apply_1(x_13, x_12); +x_15 = lean_alloc_closure((void*)(l_finally___rarg___lambda__1___boxed), 3, 2); +lean_closure_set(x_15, 0, x_5); +lean_closure_set(x_15, 1, x_11); +x_16 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_14, x_15); +return x_16; +} +else +{ +lean_object* x_17; +lean_dec(x_6); +lean_dec(x_5); +x_17 = lean_ctor_get(x_10, 0); +lean_inc(x_17); +lean_dec(x_10); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_ctor_get(x_4, 4); +lean_inc(x_20); +lean_dec(x_4); +x_21 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_21, 0, x_19); +x_22 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_22, 0, x_21); +x_23 = lean_apply_3(x_20, lean_box(0), x_18, x_22); +return x_23; +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_ctor_get(x_4, 5); +lean_inc(x_24); +lean_dec(x_4); +x_25 = lean_apply_1(x_24, lean_box(0)); +return x_25; +} +} +} +} +lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = lean_ctor_get(x_1, 2); +lean_inc(x_7); +lean_inc(x_5); +x_8 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__1), 7, 6); +lean_closure_set(x_8, 0, x_6); +lean_closure_set(x_8, 1, x_2); +lean_closure_set(x_8, 2, x_3); +lean_closure_set(x_8, 3, x_1); +lean_closure_set(x_8, 4, x_4); +lean_closure_set(x_8, 5, x_5); +x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_8); +return x_9; +} +} +lean_object* l_Lean_Elab_liftMacroM___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_1, 0); +lean_inc(x_6); +lean_inc(x_4); +x_7 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__2), 6, 5); +lean_closure_set(x_7, 0, x_1); +lean_closure_set(x_7, 1, x_5); +lean_closure_set(x_7, 2, x_2); +lean_closure_set(x_7, 3, x_3); +lean_closure_set(x_7, 4, x_4); +x_8 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_6, x_7); +return x_8; +} +} +lean_object* l_Lean_Elab_liftMacroM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +lean_inc(x_4); +x_6 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg___lambda__3), 5, 4); +lean_closure_set(x_6, 0, x_2); +lean_closure_set(x_6, 1, x_3); +lean_closure_set(x_6, 2, x_1); +lean_closure_set(x_6, 3, x_4); +x_7 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_6); +return x_7; +} +} +lean_object* l_Lean_Elab_liftMacroM(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_liftMacroM___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Lean_Elab_liftMacroM___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_liftMacroM(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} lean_object* l_Lean_Elab_adaptMacro___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -6604,12 +6745,10 @@ x_9 = lean_environment_main_module(x_1); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_9); lean_ctor_set(x_10, 1, x_2); -lean_inc(x_4); x_11 = lean_apply_3(x_3, x_4, x_10, x_8); if (lean_obj_tag(x_11) == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -lean_dec(x_4); x_12 = lean_ctor_get(x_11, 0); lean_inc(x_12); x_13 = lean_ctor_get(x_11, 1); @@ -6635,29 +6774,30 @@ lean_inc(x_18); lean_dec(x_11); if (lean_obj_tag(x_18) == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; x_19 = lean_ctor_get(x_18, 0); lean_inc(x_19); -lean_dec(x_18); -x_20 = lean_ctor_get(x_5, 4); +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_5, 4); +lean_inc(x_21); lean_dec(x_5); -x_21 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_21, 0, x_19); -x_22 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = lean_apply_3(x_20, lean_box(0), x_4, x_22); -return x_23; +x_22 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_22, 0, x_20); +x_23 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_apply_3(x_21, lean_box(0), x_19, x_23); +return x_24; } else { -lean_object* x_24; lean_object* x_25; -lean_dec(x_4); -x_24 = lean_ctor_get(x_5, 5); -lean_inc(x_24); +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_5, 5); +lean_inc(x_25); lean_dec(x_5); -x_25 = lean_apply_1(x_24, lean_box(0)); -return x_25; +x_26 = lean_apply_1(x_25, lean_box(0)); +return x_26; } } } diff --git a/stage0/stdlib/Init/Lean/Hygiene.c b/stage0/stdlib/Init/Lean/Hygiene.c index 89c7fc974b..8273566280 100644 --- a/stage0/stdlib/Init/Lean/Hygiene.c +++ b/stage0/stdlib/Init/Lean/Hygiene.c @@ -17,22 +17,17 @@ lean_object* l_Lean_Unhygienic_MonadQuotation___lambda__1___boxed(lean_object*, lean_object* l_Lean_Unhygienic_MonadQuotation___closed__3; lean_object* l_Lean_Unhygienic_run(lean_object*); lean_object* l_Lean_Unhygienic_MonadQuotation___closed__5; -lean_object* l_Lean_monadQuotationTrans___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_monadQuotationTrans___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Unhygienic_MonadQuotation___closed__6; lean_object* l_Lean_Unhygienic_run___rarg(lean_object*); lean_object* l_Lean_Unhygienic_MonadQuotation___closed__4; -lean_object* l_Lean_monadQuotationTrans(lean_object*, lean_object*); lean_object* l_ReaderT_read___at_Lean_Unhygienic_MonadQuotation___spec__1(lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Unhygienic_MonadQuotation___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_firstFrontendMacroScope; -lean_object* l_Lean_monadQuotationTrans___boxed(lean_object*, lean_object*); lean_object* l_Lean_Unhygienic_MonadQuotation; lean_object* l_Lean_Unhygienic_MonadQuotation___closed__1; lean_object* l_ReaderT_pure___at_Lean_Unhygienic_MonadQuotation___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_monadQuotationTrans___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Unhygienic_MonadQuotation___closed__2; lean_object* l_ReaderT_pure___at_Lean_Unhygienic_MonadQuotation___spec__2(lean_object*); lean_object* l_Lean_Unhygienic_run___rarg___closed__1; @@ -190,66 +185,6 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Unhygienic_run___rarg), 1, 0); return x_2; } } -lean_object* l_Lean_monadQuotationTrans___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; -x_4 = lean_ctor_get(x_1, 2); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_apply_2(x_4, lean_box(0), x_3); -return x_5; -} -} -lean_object* l_Lean_monadQuotationTrans___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; lean_object* x_6; -x_5 = lean_alloc_closure((void*)(l_Lean_monadQuotationTrans___rarg___lambda__1), 3, 1); -lean_closure_set(x_5, 0, x_1); -x_6 = lean_apply_3(x_2, lean_box(0), x_5, x_4); -return x_6; -} -} -lean_object* l_Lean_monadQuotationTrans___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_4 = lean_ctor_get(x_1, 0); -lean_inc(x_4); -lean_inc(x_2); -x_5 = lean_apply_2(x_2, lean_box(0), x_4); -x_6 = lean_ctor_get(x_1, 1); -lean_inc(x_6); -x_7 = lean_apply_2(x_2, lean_box(0), x_6); -x_8 = lean_alloc_closure((void*)(l_Lean_monadQuotationTrans___rarg___lambda__2), 4, 2); -lean_closure_set(x_8, 0, x_1); -lean_closure_set(x_8, 1, x_3); -x_9 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_9, 0, x_5); -lean_ctor_set(x_9, 1, x_7); -lean_ctor_set(x_9, 2, x_8); -return x_9; -} -} -lean_object* l_Lean_monadQuotationTrans(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_Lean_monadQuotationTrans___rarg), 3, 0); -return x_3; -} -} -lean_object* l_Lean_monadQuotationTrans___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Lean_monadQuotationTrans(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} lean_object* initialize_Init_Control(lean_object*); lean_object* initialize_Init_LeanInit(lean_object*); lean_object* initialize_Init_Lean_Syntax(lean_object*); diff --git a/stage0/stdlib/Init/LeanInit.c b/stage0/stdlib/Init/LeanInit.c index 5f958cc3db..1a541cc732 100644 --- a/stage0/stdlib/Init/LeanInit.c +++ b/stage0/stdlib/Init/LeanInit.c @@ -109,6 +109,7 @@ lean_object* l_Lean_mkAppStx___closed__4; lean_object* l_Array_filterSepElems___boxed(lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeStrLitAux___main___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_monadQuotationTrans___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_NameGenerator_Inhabited; lean_object* l_Lean_mkTermIdFromIdent___closed__1; lean_object* l_Lean_nameLitKind; @@ -123,6 +124,7 @@ lean_object* l___private_Init_LeanInit_4__extractMainModule___main(lean_object*, lean_object* l_Array_foldlStepMAux___main___at_Array_getSepElems___spec__1(lean_object*); lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); lean_object* l_Array_foldlStepMAux___main___at_Array_getSepElems___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_monadQuotationTrans___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getKind___closed__2; lean_object* l_Lean_Syntax_getKind___closed__1; lean_object* l_Lean_Name_hashable; @@ -185,7 +187,9 @@ lean_object* l_Array_getSepElems___rarg(lean_object*); lean_object* l___private_Init_LeanInit_1__eraseMacroScopesAux___boxed(lean_object*); lean_object* l_Lean_reservedMacroScope; lean_object* l___private_Init_LeanInit_10__decodeDecimalLitAux___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Macro_throwError(lean_object*); lean_object* l_Lean_mkNullNode(lean_object*); +lean_object* l_Lean_monadQuotationTrans(lean_object*, lean_object*); lean_object* l_Lean_strLitKind___closed__2; lean_object* l_Lean_NameGenerator_Inhabited___closed__1; size_t l_Lean_Name_hash(lean_object*); @@ -216,6 +220,7 @@ lean_object* l_Lean_Syntax_isCharLit_x3f___boxed(lean_object*); lean_object* l___private_Init_LeanInit_2__assembleParts(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); lean_object* l_Lean_nullKind___closed__1; +lean_object* l_Lean_monadQuotationTrans___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_decodeStrLit___boxed(lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_isIdEndEscape(uint32_t); @@ -240,12 +245,15 @@ lean_object* l_Lean_identKind; lean_object* l_Lean_mkCTermId(lean_object*); uint8_t l_UInt32_decEq(uint32_t, uint32_t); lean_object* l_Lean_Syntax_inhabited; +lean_object* l_Lean_Macro_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppStx___closed__5; +lean_object* l_Lean_Macro_throwError___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHole(lean_object*); lean_object* l_Lean_MacroM_monadQuotation___lambda__1___boxed(lean_object*, lean_object*); lean_object* l___private_Init_LeanInit_3__extractImported(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_LeanInit_5__extractMacroScopesAux___main(lean_object*, lean_object*); uint8_t l_Lean_Syntax_hasArgs(lean_object*); +lean_object* l_Lean_monadQuotationTrans___rarg___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_String_quote(lean_object*); uint8_t l_Char_isAlphanum(uint32_t); lean_object* l___private_Init_LeanInit_12__decodeQuotedChar(lean_object*, lean_object*); @@ -2661,6 +2669,36 @@ lean_dec(x_2); return x_3; } } +lean_object* l_Lean_Macro_throwError___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_5, 0, x_1); +lean_ctor_set(x_5, 1, x_2); +x_6 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_6, 0, x_5); +lean_ctor_set(x_6, 1, x_4); +return x_6; +} +} +lean_object* l_Lean_Macro_throwError(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Macro_throwError___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l_Lean_Macro_throwError___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Lean_Macro_throwError___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} lean_object* l_Lean_Macro_withFreshMacroScope___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -2787,6 +2825,66 @@ lean_dec(x_1); return x_3; } } +lean_object* l_Lean_monadQuotationTrans___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; +x_4 = lean_ctor_get(x_1, 2); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_apply_2(x_4, lean_box(0), x_3); +return x_5; +} +} +lean_object* l_Lean_monadQuotationTrans___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_alloc_closure((void*)(l_Lean_monadQuotationTrans___rarg___lambda__1), 3, 1); +lean_closure_set(x_5, 0, x_1); +x_6 = lean_apply_3(x_2, lean_box(0), x_5, x_4); +return x_6; +} +} +lean_object* l_Lean_monadQuotationTrans___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_4 = lean_ctor_get(x_1, 0); +lean_inc(x_4); +lean_inc(x_2); +x_5 = lean_apply_2(x_2, lean_box(0), x_4); +x_6 = lean_ctor_get(x_1, 1); +lean_inc(x_6); +x_7 = lean_apply_2(x_2, lean_box(0), x_6); +x_8 = lean_alloc_closure((void*)(l_Lean_monadQuotationTrans___rarg___lambda__2), 4, 2); +lean_closure_set(x_8, 0, x_1); +lean_closure_set(x_8, 1, x_3); +x_9 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_9, 0, x_5); +lean_ctor_set(x_9, 1, x_7); +lean_ctor_set(x_9, 2, x_8); +return x_9; +} +} +lean_object* l_Lean_monadQuotationTrans(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_monadQuotationTrans___rarg), 3, 0); +return x_3; +} +} +lean_object* l_Lean_monadQuotationTrans___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_monadQuotationTrans(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* l_Lean_mkIdentFrom(lean_object* x_1, lean_object* x_2) { _start: {