diff --git a/stage0/src/Init/Lean/Elab/BuiltinNotation.lean b/stage0/src/Init/Lean/Elab/BuiltinNotation.lean index d38cb54194..8741c8c7a6 100644 --- a/stage0/src/Init/Lean/Elab/BuiltinNotation.lean +++ b/stage0/src/Init/Lean/Elab/BuiltinNotation.lean @@ -81,14 +81,19 @@ adaptExpander $ fun stx => match_syntax stx with @[termElab «parser!»] def elabParserMacro : TermElab := adaptExpander $ fun stx => match_syntax stx with | `(parser! $e) => do - declName? ← getDeclName?; - match declName? with - | some declName@(Name.str _ s _) => do + some declName ← getDeclName? + | throwError stx "invalid `parser!` macro, it must be used in definitions"; + match extractMacroScopes declName with + | (Name.str _ s _, scps) => do let kind := quote declName; let s := quote s; - -- TODO simplify the following quotation as soon as we have coercions and autoparams - `(HasOrelse.orelse (Lean.Parser.mkAntiquot $s (some $kind) true) (Lean.Parser.leadingNode $kind $e)) - | none => throwError stx "invalid `parser!` macro, it must be used in definitions" + p ← `(Lean.Parser.leadingNode $kind $e); + if scps == [] then + -- TODO simplify the following quotation as soon as we have coercions + `(HasOrelse.orelse (Lean.Parser.mkAntiquot $s (some $kind)) $p) + else + -- if the parser decl is hidden by hygiene, it doesn't make sense to provide an antiquotation kind + `(HasOrelse.orelse (Lean.Parser.mkAntiquot $s none) $p) | _ => throwError stx "invalid `parser!` macro, unexpected declaration name" | _ => throwUnsupportedSyntax diff --git a/stage0/src/Init/Lean/Elab/Command.lean b/stage0/src/Init/Lean/Elab/Command.lean index fa282e56d0..b0270be140 100644 --- a/stage0/src/Init/Lean/Elab/Command.lean +++ b/stage0/src/Init/Lean/Elab/Command.lean @@ -127,6 +127,17 @@ msgData ← addMacroStack msgData; msg ← mkMessage msgData MessageSeverity.error ref; throw (Exception.error msg) +def logTrace (cls : Name) (ref : Syntax) (msg : MessageData) : CommandElabM Unit := do +msg ← addContext $ MessageData.tagged cls msg; +logInfo ref msg + +@[inline] def trace (cls : Name) (ref : Syntax) (msg : Unit → MessageData) : CommandElabM Unit := do +opts ← getOptions; +when (checkTraceOption opts cls) $ logTrace cls ref (msg ()) + +def throwUnsupportedSyntax {α} : CommandElabM α := +throw Elab.Exception.unsupportedSyntax + protected def getCurrMacroScope : CommandElabM Nat := do ctx ← read; pure ctx.currMacroScope @@ -196,9 +207,10 @@ private def elabCommandUsing (stx : Syntax) : List CommandElab → CommandElabM | Exception.error _ => throw ex | Exception.unsupportedSyntax => elabCommandUsing elabFns) -def elabCommand (stx : Syntax) : CommandElabM Unit := -withIncRecDepth stx $ match stx with +def elabCommandAux (stx : Syntax) : CommandElabM Unit := +withIncRecDepth stx $ withFreshMacroScope $ match stx with | Syntax.node _ _ => do + trace `Elab.step stx $ fun _ => stx; s ← get; let table := (commandElabAttribute.ext.getState s.env).table; let k := stx.getKind; @@ -207,6 +219,14 @@ withIncRecDepth stx $ match stx with | none => throwError stx ("command '" ++ toString k ++ "' has not been implemented") | _ => throwError stx "unexpected command" +def elabCommand (stx : Syntax) : CommandElabM Unit := +if stx.getKind == nullKind then + -- list of commands => elaborate in order + -- The parser will only ever return a single command at a time, but syntax quotations can return multiple ones + stx.getArgs.forM elabCommandAux +else + elabCommandAux stx + /- Elaborate `x` with `stx` on the macro stack -/ @[inline] def withMacroExpansion {α} (stx : Syntax) (x : CommandElabM α) : CommandElabM α := adaptReader (fun (ctx : Context) => { macroStack := stx :: ctx.macroStack, .. ctx }) x @@ -578,10 +598,16 @@ levelNames ← savedLevelNames }; let ref := declId; +-- extract (optional) namespace part of id, after decoding macro scopes that would interfere with the check +let (id, scps) := extractMacroScopes id; match id with -| Name.str pre s _ => withNamespace ref pre $ do - modifyScope $ fun scope => { levelNames := levelNames, .. scope }; - finally (f (mkNameSimple s)) (modifyScope $ fun scope => { levelNames := savedLevelNames, .. scope }) +| Name.str pre s _ => + /- Add back macro scopes. We assume a declaration like `def a.b[1,2] ...` with macro scopes `[1,2]` + is always meant to mean `namespace a def b[1,2] ...`. -/ + let id := addMacroScopes (mkNameSimple s) scps; + withNamespace ref pre $ do + modifyScope $ fun scope => { levelNames := levelNames, .. scope }; + finally (f id) (modifyScope $ fun scope => { levelNames := savedLevelNames, .. scope }) | _ => throwError ref "invalid declaration name" /-- diff --git a/stage0/src/Init/Lean/Elab/Quotation.lean b/stage0/src/Init/Lean/Elab/Quotation.lean index 3c2a712b55..7be88f083b 100644 --- a/stage0/src/Init/Lean/Elab/Quotation.lean +++ b/stage0/src/Init/Lean/Elab/Quotation.lean @@ -75,10 +75,10 @@ def antiquotKind? : Syntax → Option SyntaxNodeKind def isAntiquotSplice (stx : Syntax) : Bool := isAntiquot stx && (stx.getArg 3).getOptional?.isSome --- If an antiquotation splice is the sole item of a `many` node, its result should --- be substituted for the `many` node +-- If any item of a `many` node is an antiquotation splice, its result should +-- be substituted into the `many` node's children def isAntiquotSplicePat (stx : Syntax) : Bool := -stx.isOfKind nullKind && stx.getArgs.size == 1 && isAntiquotSplice (stx.getArg 0) +stx.isOfKind nullKind && stx.getArgs.any isAntiquotSplice /-- A term like `($e) is actually ambiguous: the antiquotation could be of kind `term`, or `ident`, or ... . But it shouldn't really matter because antiquotations without @@ -112,14 +112,17 @@ private partial def quoteSyntax : Syntax → TermElabM Syntax -- splices must occur in a `many` node if isAntiquotSplice stx then throwError stx "unexpected antiquotation splice" else pure $ stx.getArg 1 - else if isAntiquotSplicePat stx then - -- top-level antiquotation splice pattern: inject args array - let quoted := (args.get! 0).getArg 1; - `(Syntax.node nullKind $quoted) else do - let k := quote k; - args ← quote <$> args.mapM quoteSyntax; - `(Syntax.node $k $args) + empty ← `(Array.empty); + args ← args.foldlM (fun args arg => + if k == nullKind && isAntiquotSplice arg then + -- antiquotation splice pattern: inject args array + let arg := arg.getArg 1; + `(Array.append $args $arg) + else do + arg ← quoteSyntax arg; + `(Array.push $args $arg)) empty; + `(Syntax.node $(quote k) $args) | Syntax.atom info val => `(Syntax.atom none $(quote val)) | Syntax.missing => unreachable! @@ -151,9 +154,7 @@ stx ← quoteSyntax (elimAntiquotChoices quoted); by an unhygienic prototype implementation. -/ @[builtinTermElab stxQuot] def elabStxQuot : TermElab := -fun stx expectedType? => do - stx ← stxQuot.expand (stx.getArg 1); - elabTerm stx expectedType? +adaptExpander stxQuot.expand /- match_syntax -/ @@ -221,10 +222,11 @@ else if pat.isOfKind `Lean.Parser.Term.stxQuot then else if anti.isOfKind `Lean.Parser.Term.id then { kind := kind, rhsFn := fun rhs => `(let $anti:id := discr; $rhs) } else unconditional $ fun _ => throwError anti ("match_syntax: antiquotation must be variable " ++ toString anti) | _ => - -- quotation is a single antiquotation splice => bind args array - if isAntiquotSplicePat quoted then + if isAntiquotSplicePat quoted && quoted.getArgs.size == 1 then + -- quotation is a single antiquotation splice => bind args array let anti := (quoted.getArg 0).getArg 1; unconditional $ fun rhs => `(let $anti:term := Syntax.getArgs discr; $rhs) + -- TODO: support for more complex antiquotation splices else -- not an antiquotation: match head shape let argPats := quoted.getArgs.map $ fun arg => Syntax.node `Lean.Parser.Term.stxQuot #[mkAtom "`(", arg, mkAtom ")"]; @@ -271,10 +273,10 @@ private partial def compileStxMatch (ref : Syntax) : List Syntax → List Alt cond ← match info.argPats with | some pats => `(Syntax.isOfKind discr $(quote kind) && Array.size (Syntax.getArgs discr) == $(quote pats.size)) | none => `(Syntax.isOfKind discr $(quote kind)); - `(let discr := $discr; if $cond then $yes else $no) + `(let discr := $discr; if coe $cond then $yes else $no) | _, _ => unreachable! -private partial def getAntiquotVarsAux : Syntax → TermElabM (List Syntax) +private partial def getPatternVarsAux : Syntax → TermElabM (List Syntax) | stx@(Syntax.node k args) => do if isAntiquot stx then let anti := args.get! 1; @@ -284,14 +286,16 @@ private partial def getAntiquotVarsAux : Syntax → TermElabM (List Syntax) if anti.isOfKind `Lean.Parser.Term.id then pure [anti] else throwError anti ("match_syntax: antiquotation must be variable " ++ toString anti) else - List.join <$> args.toList.mapM getAntiquotVarsAux + List.join <$> args.toList.mapM getPatternVarsAux | _ => pure [] --- Get all antiquotations (as Term.id nodes) in `stx` -private partial def getAntiquotVars (stx : Syntax) : TermElabM (List Syntax) := +-- Get all pattern vars (as Term.id nodes) in `stx` +private partial def getPatternVars (stx : Syntax) : TermElabM (List Syntax) := if stx.isOfKind `Lean.Parser.Term.stxQuot then do let quoted := stx.getArg 1; - getAntiquotVarsAux stx + getPatternVarsAux stx +else if stx.isOfKind `Lean.Parser.Term.id then + pure [stx] else pure [] -- Transform alternatives by binding all right-hand sides to outside the match_syntax in order to prevent @@ -299,7 +303,7 @@ else pure [] private def letBindRhss (cont : List Alt → TermElabM Syntax) : List Alt → List Alt → TermElabM Syntax | [], altsRev' => cont altsRev'.reverse | (pats, rhs)::alts, altsRev' => do - vars ← List.join <$> pats.mapM getAntiquotVars; + vars ← List.join <$> pats.mapM getPatternVars; match vars with -- no antiquotations => introduce Unit parameter to preserve evaluation order | [] => do @@ -330,9 +334,7 @@ alts ← alts.getArgs.mapM $ fun alt => do { compileStxMatch stx [discr] alts.toList @[builtinTermElab «match_syntax»] def elabMatchSyntax : TermElab := -fun stx expectedType? => do - stx ← match_syntax.expand stx; - elabTerm stx expectedType? +adaptExpander match_syntax.expand -- REMOVE with old frontend private def exprPlaceholder := mkMVar Name.anonymous @@ -443,8 +445,8 @@ stx ← stxQuot.expand stx; toPreterm stx @[export lean_get_antiquot_vars] -def oldGetAntiquotVars (ctx : OldContext) (pats : List Syntax) : Except String (List Name) := oldRunTermElabM ctx $ do -vars ← List.join <$> pats.mapM getAntiquotVars; +def oldGetPatternVars (ctx : OldContext) (pats : List Syntax) : Except String (List Name) := oldRunTermElabM ctx $ do +vars ← List.join <$> pats.mapM getPatternVars; pure $ vars.map $ fun var => var.getIdAt 0 @[export lean_expand_match_syntax] diff --git a/stage0/src/Init/Lean/Elab/ResolveName.lean b/stage0/src/Init/Lean/Elab/ResolveName.lean index bfea04e413..85d44b64c2 100644 --- a/stage0/src/Init/Lean/Elab/ResolveName.lean +++ b/stage0/src/Init/Lean/Elab/ResolveName.lean @@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ prelude +import Init.Lean.Hygiene import Init.Lean.Modifiers import Init.Lean.Elab.Alias @@ -65,8 +66,10 @@ private def resolveOpenDecls (env : Environment) (id : Name) : List OpenDecl → let resolvedIds := if id == openedId then resolvedId :: resolvedIds else resolvedIds; resolveOpenDecls openDecls resolvedIds -private def resolveGlobalNameAux (env : Environment) (ns : Name) (openDecls : List OpenDecl) : Name → List String → List (Name × List String) +private def resolveGlobalNameAux (env : Environment) (ns : Name) (openDecls : List OpenDecl) (scps : List MacroScope) : Name → List String → List (Name × List String) | id@(Name.str p s _), projs => + -- NOTE: we assume that macro scopes always belong to the projected constant, not the projections + let id := addMacroScopes id scps; match resolveUsingNamespace env id ns with | resolvedIds@(_ :: _) => resolvedIds.eraseDups.map $ fun id => (id, projs) | [] => @@ -82,7 +85,9 @@ private def resolveGlobalNameAux (env : Environment) (ns : Name) (openDecls : Li | _, _ => [] def resolveGlobalName (env : Environment) (ns : Name) (openDecls : List OpenDecl) (id : Name) : List (Name × List String) := -resolveGlobalNameAux env ns openDecls id [] +-- decode macro scopes from name before recursion +let (id, scps) := extractMacroScopes id; +resolveGlobalNameAux env ns openDecls scps id [] /- Namespace resolution -/ diff --git a/stage0/src/Init/Lean/Elab/TermBinders.lean b/stage0/src/Init/Lean/Elab/TermBinders.lean index ebb38fd52f..a372590a2c 100644 --- a/stage0/src/Init/Lean/Elab/TermBinders.lean +++ b/stage0/src/Init/Lean/Elab/TermBinders.lean @@ -302,7 +302,13 @@ def elabLetPatDecl (ref : Syntax) (decl body : Syntax) (expectedType? : Option E throwError decl "not implemented yet" @[builtinTermElab «let»] def elabLet : TermElab := -fun stx expectedType? => do +fun stx expectedType? => match_syntax stx with +| `(let $id:id := $decl; $body) => do + -- HACK: support single-id pattern let (as produced by quotations) by translation to ident let for now + let id := id.getArg 0; + stx ← `(let $id:ident := $decl; $body); + elabTerm stx expectedType? +| _ => do -- `let` decl `;` body let ref := stx; let decl := stx.getArg 1; diff --git a/stage0/src/Init/Lean/Hygiene.lean b/stage0/src/Init/Lean/Hygiene.lean index 5c10103bf4..1c4cbd8dfb 100644 --- a/stage0/src/Init/Lean/Hygiene.lean +++ b/stage0/src/Init/Lean/Hygiene.lean @@ -38,10 +38,24 @@ class MonadQuotation (m : Type → Type) := (withFreshMacroScope {α : Type} : m α → m α) export MonadQuotation -def addMacroScope (n : Name) (scp : MacroScope) : Name := -- TODO: try harder to avoid clashes with other autogenerated names +def addMacroScope (n : Name) (scp : MacroScope) : Name := mkNameNum n scp +def addMacroScopes (n : Name) (scps : List MacroScope) : Name := +scps.foldl addMacroScope n + +private def extractMacroScopesAux : Name → List MacroScope → Name × List MacroScope +| Name.num n scp _, acc => extractMacroScopesAux n (scp::acc) +| n , acc => (n, acc.reverse) + +/-- + Revert all `addMacroScope` calls. `(n', scps) = extractMacroScopes n → n = addMacroScopes n' scps`. + This operation is useful for analyzing/transforming the original identifiers, then adding back + the scopes (via `addMacroScopes`). -/ +def extractMacroScopes (n : Name) : Name × List MacroScope := +extractMacroScopesAux n [] + /-- Simplistic MonadQuotation that does not guarantee globally fresh names, that is, between different runs of this or other MonadQuotation implementations. It is only safe if the syntax quotations do not introduce bindings around diff --git a/stage0/src/Init/Lean/Parser/Parser.lean b/stage0/src/Init/Lean/Parser/Parser.lean index 4fa4fc26bd..f209ee5c14 100644 --- a/stage0/src/Init/Lean/Parser/Parser.lean +++ b/stage0/src/Init/Lean/Parser/Parser.lean @@ -1069,7 +1069,7 @@ fun _ c s => { fn := identFn, info := mkAtomicInfo "ident" } -@[inline] def rawIdent {k : ParserKind} : Parser k := +@[inline] def rawIdentNoAntiquot {k : ParserKind} : Parser k := { fn := fun _ => rawIdentFn } def quotedSymbolFn {k : ParserKind} : ParserFn k := @@ -1755,6 +1755,10 @@ node kind $ try $ dollarSymbol >> checkNoWsBefore "no space before" >> def ident {k : ParserKind} : Parser k := mkAntiquot "ident" `ident <|> identNoAntiquot +-- `ident` and `rawIdent` produce the same syntax tree, so we reuse the antiquotation kind name +def rawIdent {k : ParserKind} : Parser k := +mkAntiquot "ident" `ident <|> rawIdentNoAntiquot + def fieldIdxFn : BasicParserFn := fun c s => let iniPos := s.pos; diff --git a/stage0/src/Init/Lean/Syntax.lean b/stage0/src/Init/Lean/Syntax.lean index 6d54e7847c..55ab07b8b6 100644 --- a/stage0/src/Init/Lean/Syntax.lean +++ b/stage0/src/Init/Lean/Syntax.lean @@ -284,7 +284,11 @@ match setTailInfoAux info stx with | none => stx private def reprintLeaf : Option SourceInfo → String → String -| none, val => val +-- no source info => add gracious amounts of whitespace to definitely separate tokens +-- Note that the proper pretty printer does not use this function. +-- The parser as well always produces source info, so round-tripping is still +-- guaranteed. +| none, val => " " ++ val ++ " " | some info, val => info.leading.toString ++ val ++ info.trailing.toString partial def reprint : Syntax → Option String diff --git a/stage0/src/Init/System/IOError.lean b/stage0/src/Init/System/IOError.lean index 4facdfbd18..3f87126dd7 100644 --- a/stage0/src/Init/System/IOError.lean +++ b/stage0/src/Init/System/IOError.lean @@ -162,28 +162,28 @@ def otherErrorToString (gist : String) (code : UInt32) : Option String → Strin @[export lean_io_error_to_string] def toString : IO.Error → String | unexpectedEof => "End of file" -| inappropriateType (some fn) code details => fopenErrorToString "Inappropriate type" fn code details -| inappropriateType none code details => otherErrorToString "Inappropriate type" code details -| interrupted fn code details => fopenErrorToString "Interrupted system call" fn code details -| invalidArgument (some fn) code details => fopenErrorToString "Invalid argument" fn code details -| invalidArgument none code details => otherErrorToString "Invalid argument" code details -| noFileOrDirectory fn code _ => fopenErrorToString "No such file or directory" fn code none -| noSuchThing (some fn) code details => fopenErrorToString "No such thing" fn code details -| noSuchThing none code details => otherErrorToString "No such thing" code details +| inappropriateType (some fn) code details => fopenErrorToString "inappropriate type" fn code details +| inappropriateType none code details => otherErrorToString "inappropriate type" code details +| interrupted fn code details => fopenErrorToString "interrupted system call" fn code details +| invalidArgument (some fn) code details => fopenErrorToString "invalid argument" fn code details +| invalidArgument none code details => otherErrorToString "invalid argument" code details +| noFileOrDirectory fn code _ => fopenErrorToString "no such file or directory" fn code none +| noSuchThing (some fn) code details => fopenErrorToString "no such thing" fn code details +| noSuchThing none code details => otherErrorToString "no such thing" code details | permissionDenied (some fn) code details => fopenErrorToString details fn code none | permissionDenied none code details => otherErrorToString details code none -| resourceExhausted (some fn) code details => fopenErrorToString "Resource exhausted" fn code details -| resourceExhausted none code details => otherErrorToString "Resource exhausted" code details -| alreadyExists code details => otherErrorToString "Already exists" code details +| resourceExhausted (some fn) code details => fopenErrorToString "resource exhausted" fn code details +| resourceExhausted none code details => otherErrorToString "resource exhausted" code details +| alreadyExists code details => otherErrorToString "already exists" code details | otherError code details => otherErrorToString details code none -| resourceBusy code details => otherErrorToString "Resource busy" code details -| resourceVanished code details => otherErrorToString "Resource vanished" code details -| hardwareFault code _ => otherErrorToString "Hardware fault" code none -| illegalOperation code details => otherErrorToString "Illegal operation" code details -| protocolError code details => otherErrorToString "Protocol error" code details -| timeExpired code details => otherErrorToString "Time expired" code details -| unsatisfiedConstraints code _ => otherErrorToString "Directory not empty" code none -| unsupportedOperation code details => otherErrorToString "Unsupported operation" code details +| resourceBusy code details => otherErrorToString "resource busy" code details +| resourceVanished code details => otherErrorToString "resource vanished" code details +| hardwareFault code _ => otherErrorToString "hardware fault" code none +| illegalOperation code details => otherErrorToString "illegal operation" code details +| protocolError code details => otherErrorToString "protocol error" code details +| timeExpired code details => otherErrorToString "time expired" code details +| unsatisfiedConstraints code _ => otherErrorToString "directory not empty" code none +| unsupportedOperation code details => otherErrorToString "unsupported operation" code details | userError msg => msg instance : HasToString IO.Error := ⟨ IO.Error.toString ⟩ diff --git a/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c index 462598a2c7..148c63c1ac 100644 --- a/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c @@ -29,7 +29,9 @@ lean_object* l_Lean_Elab_Term_elabAdd___boxed(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Term_elabShow___lambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabseqLeft___closed__1; lean_object* l_Lean_Elab_Term_elabBind___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabShow___closed__1; +lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_Lean_Elab_Term_elabAdd___closed__1; extern lean_object* l_Lean_Parser_Term_andthen___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMapRev___closed__1; @@ -70,7 +72,6 @@ lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__18; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBNe(lean_object*); lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__15; lean_object* l_Lean_Elab_Term_getDeclName_x3f(lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Term_10__exceptionToSorry___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabOrElse___closed__1; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__14; lean_object* l_Lean_Elab_Term_elabBOr___closed__1; @@ -105,6 +106,7 @@ lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__6; lean_object* l_Lean_Elab_Term_elabHave___lambda__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_fromTerm___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_mul___elambda__1___closed__1; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabEquiv___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAdd(lean_object*); extern lean_object* l_Lean_Parser_Term_andM___elambda__1___closed__1; @@ -128,7 +130,6 @@ extern lean_object* l_Lean_Parser_Term_seqRight___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAndThen(lean_object*); lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabCons___closed__1; -extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__1; lean_object* lean_array_get_size(lean_object*); @@ -184,12 +185,14 @@ extern lean_object* l_Lean_Parser_Term_subtype___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_prod___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMapConst___closed__1; extern lean_object* l_Lean_Parser_Term_or___elambda__1___closed__2; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; lean_object* l_Lean_Elab_Term_elabseq___closed__1; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__19; extern lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_add___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_add___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnd___closed__2; +lean_object* l_List_beq___main___at_Lean_Elab_Term_elabParserMacro___spec__1___boxed(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabIf___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabPow(lean_object*); extern lean_object* l_Lean_Parser_Term_dollarProj___elambda__1___closed__2; @@ -199,9 +202,7 @@ lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__8; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLT___closed__3; lean_object* l_Lean_Elab_Term_elabMul___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabIff(lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__21; -lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__38; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHave___closed__2; extern lean_object* l_Lean_Parser_Term_div___elambda__1___closed__2; @@ -231,7 +232,6 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabseqLeft___closed__1; extern lean_object* l_Lean_Parser_Term_ne___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLE(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMap___closed__3; -lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__36; lean_object* l_Lean_Elab_Term_elabMapConst(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__12; extern lean_object* l_Lean_Parser_Term_mul___elambda__1___closed__2; @@ -244,7 +244,6 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSubtype___closed__3; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__35; extern lean_object* l_Lean_Parser_Term_ge___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabseq___closed__3; -lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__39; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabseqLeft___closed__2; lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__11; lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__2; @@ -281,7 +280,7 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDiv___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBNe___closed__3; lean_object* l_Lean_Elab_Term_elabProd___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_mod___elambda__1___closed__1; -lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__40; +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35; lean_object* l_Lean_Elab_Term_elabMapRev___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabOrM___closed__2; lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__7; @@ -427,7 +426,6 @@ lean_object* l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1(lean_object lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBind(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabGT___closed__3; lean_object* l_Lean_Elab_Term_elabParserMacro(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__10; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAndM___closed__3; lean_object* l_Lean_Elab_Term_elabShow(lean_object*, lean_object*, lean_object*, lean_object*); @@ -445,7 +443,6 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAndThen___closed__2; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__12; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDollar___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); -extern lean_object* l_Bool_HasRepr___closed__2; lean_object* l_Lean_Elab_Term_elabLE___closed__4; lean_object* l_Lean_Elab_Term_elabOrM___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabIff___closed__1; @@ -463,6 +460,7 @@ extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_append___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMul(lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; lean_object* l_Lean_Elab_Term_elabGE___closed__1; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__10; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBNe___closed__2; @@ -496,6 +494,7 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabGT(lean_object*); extern lean_object* l_Lean_Parser_Term_mapRev___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__6; lean_object* l_Lean_Elab_Term_elabGT___closed__2; +extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; extern lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l_Lean_Expr_consumeMData___main(lean_object*); lean_object* l_Lean_Elab_Term_elabGT___closed__1; @@ -526,7 +525,7 @@ lean_object* l_Lean_Elab_Term_elabMapConst___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLE___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMapConstRev___closed__1; lean_object* l_Lean_Elab_Term_elabseqRight(lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +uint8_t l_List_beq___main___at_Lean_Elab_Term_elabParserMacro___spec__1(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabShow(lean_object*); lean_object* l_Lean_Elab_Term_elabseqRight___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabNe(lean_object*); @@ -542,7 +541,6 @@ extern lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__2; extern lean_object* l_Lean_Elab_Term_elabListLit___closed__3; lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabCons(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__37; lean_object* l_Lean_Elab_Term_elabMod(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__14; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__3; @@ -556,6 +554,7 @@ lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__9; lean_object* l_Lean_Elab_Term_elabBEq___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLT___closed__2; lean_object* l_Lean_Elab_Term_elabBNe___closed__1; +extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; lean_object* l_Lean_Elab_Term_elabDollarProj___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBind___closed__1; lean_object* l_Lean_Elab_Term_elabBNe___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1255,9 +1254,9 @@ x_117 = lean_array_push(x_116, x_98); x_118 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_118, 0, x_14); lean_ctor_set(x_118, 1, x_117); -x_119 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_119 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_120 = lean_array_push(x_119, x_118); -x_121 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_121 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_122 = lean_array_push(x_120, x_121); x_123 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_124 = lean_alloc_ctor(1, 2, 0); @@ -1342,9 +1341,9 @@ x_168 = lean_array_push(x_167, x_149); x_169 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_169, 0, x_14); lean_ctor_set(x_169, 1, x_168); -x_170 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_170 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_171 = lean_array_push(x_170, x_169); -x_172 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_172 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_173 = lean_array_push(x_171, x_172); x_174 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_175 = lean_alloc_ctor(1, 2, 0); @@ -1709,9 +1708,9 @@ x_45 = lean_array_push(x_43, x_44); x_46 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_46, 0, x_16); lean_ctor_set(x_46, 1, x_45); -x_47 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_47 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_48 = lean_array_push(x_47, x_46); -x_49 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_49 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_50 = lean_array_push(x_48, x_49); x_51 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_52 = lean_alloc_ctor(1, 2, 0); @@ -1782,9 +1781,9 @@ x_89 = lean_array_push(x_87, x_88); x_90 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_90, 0, x_16); lean_ctor_set(x_90, 1, x_89); -x_91 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_91 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_92 = lean_array_push(x_91, x_90); -x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_94 = lean_array_push(x_92, x_93); x_95 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_96 = lean_alloc_ctor(1, 2, 0); @@ -1912,9 +1911,9 @@ x_154 = lean_array_push(x_153, x_152); x_155 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_155, 0, x_16); lean_ctor_set(x_155, 1, x_154); -x_156 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_156 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_157 = lean_array_push(x_156, x_155); -x_158 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_158 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_159 = lean_array_push(x_157, x_158); x_160 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_161 = lean_alloc_ctor(1, 2, 0); @@ -1994,9 +1993,9 @@ x_203 = lean_array_push(x_202, x_201); x_204 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_204, 0, x_16); lean_ctor_set(x_204, 1, x_203); -x_205 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_205 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_206 = lean_array_push(x_205, x_204); -x_207 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_207 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_208 = lean_array_push(x_206, x_207); x_209 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_210 = lean_alloc_ctor(1, 2, 0); @@ -2692,9 +2691,9 @@ x_39 = lean_array_push(x_38, x_36); x_40 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_40, 0, x_35); lean_ctor_set(x_40, 1, x_39); -x_41 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_41 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_42 = lean_array_push(x_41, x_40); -x_43 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_43 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_44 = lean_array_push(x_42, x_43); x_45 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_46 = lean_alloc_ctor(1, 2, 0); @@ -2758,9 +2757,9 @@ x_78 = lean_array_push(x_77, x_75); x_79 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_79, 0, x_74); lean_ctor_set(x_79, 1, x_78); -x_80 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_80 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_81 = lean_array_push(x_80, x_79); -x_82 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_82 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_83 = lean_array_push(x_81, x_82); x_84 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_85 = lean_alloc_ctor(1, 2, 0); @@ -3016,9 +3015,9 @@ x_53 = lean_array_push(x_52, x_50); x_54 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_54, 0, x_14); lean_ctor_set(x_54, 1, x_53); -x_55 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_55 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_56 = lean_array_push(x_55, x_54); -x_57 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_57 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_58 = lean_array_push(x_56, x_57); x_59 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_60 = lean_alloc_ctor(1, 2, 0); @@ -3080,9 +3079,9 @@ x_91 = lean_array_push(x_90, x_88); x_92 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_92, 0, x_14); lean_ctor_set(x_92, 1, x_91); -x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_94 = lean_array_push(x_93, x_92); -x_95 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_95 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_96 = lean_array_push(x_94, x_95); x_97 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_98 = lean_alloc_ctor(1, 2, 0); @@ -3177,9 +3176,9 @@ x_140 = lean_array_push(x_139, x_137); x_141 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_141, 0, x_14); lean_ctor_set(x_141, 1, x_140); -x_142 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_142 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_143 = lean_array_push(x_142, x_141); -x_144 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_144 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_145 = lean_array_push(x_143, x_144); x_146 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_147 = lean_alloc_ctor(1, 2, 0); @@ -3241,9 +3240,9 @@ x_178 = lean_array_push(x_177, x_175); x_179 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_179, 0, x_14); lean_ctor_set(x_179, 1, x_178); -x_180 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_180 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_181 = lean_array_push(x_180, x_179); -x_182 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_182 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_183 = lean_array_push(x_181, x_182); x_184 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_185 = lean_alloc_ctor(1, 2, 0); @@ -3366,9 +3365,9 @@ x_237 = lean_array_push(x_236, x_234); x_238 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_238, 0, x_14); lean_ctor_set(x_238, 1, x_237); -x_239 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_239 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_240 = lean_array_push(x_239, x_238); -x_241 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_241 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_242 = lean_array_push(x_240, x_241); x_243 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_244 = lean_alloc_ctor(1, 2, 0); @@ -3430,9 +3429,9 @@ x_275 = lean_array_push(x_274, x_272); x_276 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_276, 0, x_14); lean_ctor_set(x_276, 1, x_275); -x_277 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_277 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_278 = lean_array_push(x_277, x_276); -x_279 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_279 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_280 = lean_array_push(x_278, x_279); x_281 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_282 = lean_alloc_ctor(1, 2, 0); @@ -3527,9 +3526,9 @@ x_325 = lean_array_push(x_324, x_322); x_326 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_326, 0, x_14); lean_ctor_set(x_326, 1, x_325); -x_327 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_327 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_328 = lean_array_push(x_327, x_326); -x_329 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_329 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_330 = lean_array_push(x_328, x_329); x_331 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_332 = lean_alloc_ctor(1, 2, 0); @@ -3591,9 +3590,9 @@ x_363 = lean_array_push(x_362, x_360); x_364 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_364, 0, x_14); lean_ctor_set(x_364, 1, x_363); -x_365 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_365 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_366 = lean_array_push(x_365, x_364); -x_367 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_367 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_368 = lean_array_push(x_366, x_367); x_369 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_370 = lean_alloc_ctor(1, 2, 0); @@ -3725,9 +3724,9 @@ lean_dec(x_14); x_16 = l_Lean_Parser_Term_let___elambda__1___closed__1; lean_inc(x_2); x_17 = lean_name_mk_string(x_2, x_16); -x_18 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; +x_18 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_19 = lean_array_push(x_18, x_13); -x_20 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_20 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_21 = lean_array_push(x_19, x_20); x_22 = lean_array_push(x_21, x_6); x_23 = lean_alloc_ctor(1, 2, 0); @@ -3840,6 +3839,56 @@ lean_dec(x_2); return x_4; } } +uint8_t l_List_beq___main___at_Lean_Elab_Term_elabParserMacro___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_3; +x_3 = 1; +return x_3; +} +else +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +} +else +{ +if (lean_obj_tag(x_2) == 0) +{ +uint8_t x_5; +x_5 = 0; +return x_5; +} +else +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_1, 1); +x_8 = lean_ctor_get(x_2, 0); +x_9 = lean_ctor_get(x_2, 1); +x_10 = lean_nat_dec_eq(x_6, x_8); +if (x_10 == 0) +{ +uint8_t x_11; +x_11 = 0; +return x_11; +} +else +{ +x_1 = x_7; +x_2 = x_9; +goto _start; +} +} +} +} +} lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__1() { _start: { @@ -3900,7 +3949,7 @@ lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__7() { _start: { lean_object* x_1; -x_1 = lean_mk_string("HasOrelse.orelse"); +x_1 = lean_mk_string("Lean.Parser.leadingNode"); return x_1; } } @@ -3931,7 +3980,7 @@ lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__10() { _start: { lean_object* x_1; -x_1 = lean_mk_string("HasOrelse"); +x_1 = lean_mk_string("leadingNode"); return x_1; } } @@ -3939,7 +3988,7 @@ lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l_Lean_Parser_declareLeadingBuiltinParser___closed__1; x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__10; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -3949,9 +3998,11 @@ lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__12() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__11; -x_2 = l_Lean_Parser_Term_orelse___elambda__1___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__11; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -3961,7 +4012,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__12; -x_3 = lean_alloc_ctor(0, 2, 0); +x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -3970,39 +4021,27 @@ return x_3; lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__14() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__13; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("HasOrelse.orelse"); +return x_1; } } lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__15() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("Lean.Parser.mkAntiquot"); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__14; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__16() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__15; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__17() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__15; +x_1 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__14; x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__16; +x_3 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__15; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -4010,20 +4049,30 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__18() { +lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__17() { _start: { lean_object* x_1; -x_1 = lean_mk_string("mkAntiquot"); +x_1 = lean_mk_string("HasOrelse"); return x_1; } } +lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__17; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__19() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_declareLeadingBuiltinParser___closed__1; -x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__18; +x_1 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__18; +x_2 = l_Lean_Parser_Term_orelse___elambda__1___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -4056,7 +4105,7 @@ lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__22() { _start: { lean_object* x_1; -x_1 = lean_mk_string("some"); +x_1 = lean_mk_string("Lean.Parser.mkAntiquot"); return x_1; } } @@ -4086,19 +4135,17 @@ return x_4; lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__25() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__22; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("mkAntiquot"); +return x_1; } } lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__26() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; -x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__22; +x_1 = l_Lean_Parser_declareLeadingBuiltinParser___closed__1; +x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__25; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -4130,34 +4177,32 @@ return x_3; lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__29() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Bool_HasRepr___closed__2; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string("some"); +return x_1; } } lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__30() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Bool_HasRepr___closed__2; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__29; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__29; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__31() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Bool_HasRepr___closed__2; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__29; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__30; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__32() { @@ -4165,10 +4210,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Term_10__exceptionToSorry___closed__2; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__29; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -4176,81 +4219,30 @@ lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__33() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__32; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35; +x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__29; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__34() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("Lean.Parser.leadingNode"); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__35() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__34; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__36() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__34; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__35; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__37() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("leadingNode"); -return x_1; -} -} -lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__38() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_declareLeadingBuiltinParser___closed__1; -x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__37; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__39() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__38; +x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__33; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__40() { +lean_object* _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__35() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__39; +x_2 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__34; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -4310,369 +4302,482 @@ return x_18; } else { -lean_object* x_19; -x_19 = lean_ctor_get(x_15, 0); +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_14, 1); lean_inc(x_19); -lean_dec(x_15); -if (lean_obj_tag(x_19) == 1) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; -lean_dec(x_1); -x_20 = lean_ctor_get(x_14, 1); +lean_dec(x_14); +x_20 = lean_ctor_get(x_15, 0); lean_inc(x_20); -lean_dec(x_14); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -x_22 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_19); -x_23 = lean_box(0); -x_24 = l_Lean_mkStxStrLit(x_21, x_23); -x_25 = l_Lean_mkOptionalNode___closed__1; -x_26 = lean_array_push(x_25, x_24); -x_27 = l_Lean_Parser_Term_str___elambda__1___closed__2; -x_28 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -x_29 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_20); -lean_dec(x_2); -x_30 = !lean_is_exclusive(x_29); -if (x_30 == 0) +lean_dec(x_15); +lean_inc(x_20); +x_21 = l_Lean_extractMacroScopes(x_20); +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 1) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_31 = lean_ctor_get(x_29, 0); -x_32 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__12; -lean_inc(x_31); -x_33 = lean_name_mk_numeral(x_32, x_31); -x_34 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__9; -x_35 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__14; -x_36 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_36, 0, x_23); -lean_ctor_set(x_36, 1, x_34); -lean_ctor_set(x_36, 2, x_33); -lean_ctor_set(x_36, 3, x_35); -x_37 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_38 = lean_array_push(x_37, x_36); -x_39 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_40 = lean_array_push(x_38, x_39); -x_41 = l_Lean_Parser_Term_id___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_Lean_Elab_Term_elabParserMacro___lambda__1___closed__19; -lean_inc(x_31); -x_44 = lean_name_mk_numeral(x_43, x_31); -x_45 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__17; -x_46 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__21; -x_47 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_47, 0, x_23); -lean_ctor_set(x_47, 1, x_45); -lean_ctor_set(x_47, 2, x_44); -lean_ctor_set(x_47, 3, x_46); -x_48 = lean_array_push(x_37, x_47); -x_49 = lean_array_push(x_48, x_39); +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; +lean_dec(x_1); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_20); +x_26 = lean_box(0); +x_27 = l_Lean_mkStxStrLit(x_24, x_26); +x_28 = l_Lean_mkOptionalNode___closed__1; +x_29 = lean_array_push(x_28, x_27); +x_30 = l_Lean_Parser_Term_str___elambda__1___closed__2; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_19); +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__11; +x_36 = lean_name_mk_numeral(x_35, x_33); +x_37 = lean_box(0); +x_38 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__9; +x_39 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__13; +x_40 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_40, 0, x_26); +lean_ctor_set(x_40, 1, x_38); +lean_ctor_set(x_40, 2, x_36); +lean_ctor_set(x_40, 3, x_39); +x_41 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_42 = lean_array_push(x_41, x_40); +x_43 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_44 = lean_array_push(x_42, x_43); +x_45 = l_Lean_Parser_Term_id___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_array_push(x_41, x_46); +lean_inc(x_25); +x_48 = lean_array_push(x_47, x_25); +x_49 = l_Lean_Parser_Term_app___elambda__1___closed__2; x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_41); -lean_ctor_set(x_50, 1, x_49); -x_51 = lean_array_push(x_37, x_50); -x_52 = lean_array_push(x_51, x_28); -x_53 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_52); -x_55 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__25; -lean_inc(x_31); -x_56 = lean_name_mk_numeral(x_55, x_31); -x_57 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__24; -x_58 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__28; -x_59 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_59, 0, x_23); -lean_ctor_set(x_59, 1, x_57); -lean_ctor_set(x_59, 2, x_56); -lean_ctor_set(x_59, 3, x_58); -x_60 = lean_array_push(x_37, x_59); -x_61 = lean_array_push(x_60, x_39); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_41); -lean_ctor_set(x_62, 1, x_61); -x_63 = lean_array_push(x_37, x_62); -lean_inc(x_22); -x_64 = lean_array_push(x_63, x_22); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_48); +x_51 = lean_array_push(x_41, x_50); +x_52 = lean_array_push(x_51, x_13); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_49); +lean_ctor_set(x_53, 1, x_52); +x_54 = l_List_beq___main___at_Lean_Elab_Term_elabParserMacro___spec__1(x_23, x_37); +lean_dec(x_23); +if (x_54 == 0) +{ +lean_object* x_55; uint8_t x_56; +lean_dec(x_25); +x_55 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_34); +lean_dec(x_2); +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_57 = lean_ctor_get(x_55, 0); +x_58 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__19; +lean_inc(x_57); +x_59 = lean_name_mk_numeral(x_58, x_57); +x_60 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__16; +x_61 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__21; +x_62 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_62, 0, x_26); +lean_ctor_set(x_62, 1, x_60); +lean_ctor_set(x_62, 2, x_59); +lean_ctor_set(x_62, 3, x_61); +x_63 = lean_array_push(x_41, x_62); +x_64 = lean_array_push(x_63, x_43); x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_53); +lean_ctor_set(x_65, 0, x_45); lean_ctor_set(x_65, 1, x_64); -x_66 = lean_array_push(x_37, x_65); -x_67 = lean_array_push(x_66, x_39); -x_68 = l_Lean_nullKind___closed__2; -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_67); -x_70 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; -x_71 = lean_array_push(x_70, x_69); -x_72 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; -x_73 = lean_array_push(x_71, x_72); -x_74 = l_Lean_Parser_Term_paren___elambda__1___closed__1; -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_73); -x_76 = lean_array_push(x_37, x_54); -x_77 = lean_array_push(x_76, x_75); -x_78 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_78, 0, x_53); -lean_ctor_set(x_78, 1, x_77); -x_79 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__31; -lean_inc(x_31); -x_80 = lean_name_mk_numeral(x_79, x_31); -x_81 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__30; -x_82 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__33; -x_83 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_83, 0, x_23); -lean_ctor_set(x_83, 1, x_81); -lean_ctor_set(x_83, 2, x_80); -lean_ctor_set(x_83, 3, x_82); -x_84 = lean_array_push(x_37, x_83); -x_85 = lean_array_push(x_84, x_39); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_41); -lean_ctor_set(x_86, 1, x_85); -x_87 = lean_array_push(x_37, x_78); -x_88 = lean_array_push(x_87, x_86); -x_89 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_89, 0, x_53); -lean_ctor_set(x_89, 1, x_88); -x_90 = lean_array_push(x_37, x_89); -x_91 = lean_array_push(x_90, x_39); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_68); -lean_ctor_set(x_92, 1, x_91); -x_93 = lean_array_push(x_70, x_92); -x_94 = lean_array_push(x_93, x_72); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_74); -lean_ctor_set(x_95, 1, x_94); -x_96 = lean_array_push(x_37, x_42); -x_97 = lean_array_push(x_96, x_95); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_53); -lean_ctor_set(x_98, 1, x_97); -x_99 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__38; -x_100 = lean_name_mk_numeral(x_99, x_31); -x_101 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__36; -x_102 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__40; -x_103 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_103, 0, x_23); -lean_ctor_set(x_103, 1, x_101); -lean_ctor_set(x_103, 2, x_100); -lean_ctor_set(x_103, 3, x_102); -x_104 = lean_array_push(x_37, x_103); -x_105 = lean_array_push(x_104, x_39); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_41); -lean_ctor_set(x_106, 1, x_105); -x_107 = lean_array_push(x_37, x_106); -x_108 = lean_array_push(x_107, x_22); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_53); -lean_ctor_set(x_109, 1, x_108); -x_110 = lean_array_push(x_37, x_109); -x_111 = lean_array_push(x_110, x_13); -x_112 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_112, 0, x_53); -lean_ctor_set(x_112, 1, x_111); -x_113 = lean_array_push(x_37, x_112); -x_114 = lean_array_push(x_113, x_39); -x_115 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_115, 0, x_68); -lean_ctor_set(x_115, 1, x_114); -x_116 = lean_array_push(x_70, x_115); -x_117 = lean_array_push(x_116, x_72); -x_118 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_118, 0, x_74); -lean_ctor_set(x_118, 1, x_117); -x_119 = lean_array_push(x_37, x_98); -x_120 = lean_array_push(x_119, x_118); +x_66 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__26; +lean_inc(x_57); +x_67 = lean_name_mk_numeral(x_66, x_57); +x_68 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__24; +x_69 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__28; +x_70 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_70, 0, x_26); +lean_ctor_set(x_70, 1, x_68); +lean_ctor_set(x_70, 2, x_67); +lean_ctor_set(x_70, 3, x_69); +x_71 = lean_array_push(x_41, x_70); +x_72 = lean_array_push(x_71, x_43); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_45); +lean_ctor_set(x_73, 1, x_72); +x_74 = lean_array_push(x_41, x_73); +x_75 = lean_array_push(x_74, x_31); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_49); +lean_ctor_set(x_76, 1, x_75); +x_77 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +x_78 = lean_name_mk_numeral(x_77, x_57); +x_79 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_80 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_81 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_81, 0, x_26); +lean_ctor_set(x_81, 1, x_79); +lean_ctor_set(x_81, 2, x_78); +lean_ctor_set(x_81, 3, x_80); +x_82 = lean_array_push(x_41, x_81); +x_83 = lean_array_push(x_82, x_43); +x_84 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_84, 0, x_45); +lean_ctor_set(x_84, 1, x_83); +x_85 = lean_array_push(x_41, x_76); +x_86 = lean_array_push(x_85, x_84); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_49); +lean_ctor_set(x_87, 1, x_86); +x_88 = lean_array_push(x_41, x_87); +x_89 = lean_array_push(x_88, x_43); +x_90 = l_Lean_nullKind___closed__2; +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_89); +x_92 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; +x_93 = lean_array_push(x_92, x_91); +x_94 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; +x_95 = lean_array_push(x_93, x_94); +x_96 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_95); +x_98 = lean_array_push(x_41, x_65); +x_99 = lean_array_push(x_98, x_97); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_49); +lean_ctor_set(x_100, 1, x_99); +x_101 = lean_array_push(x_41, x_100); +x_102 = lean_array_push(x_101, x_53); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_49); +lean_ctor_set(x_103, 1, x_102); +lean_ctor_set(x_55, 0, x_103); +return x_55; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +x_104 = lean_ctor_get(x_55, 0); +x_105 = lean_ctor_get(x_55, 1); +lean_inc(x_105); +lean_inc(x_104); +lean_dec(x_55); +x_106 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__19; +lean_inc(x_104); +x_107 = lean_name_mk_numeral(x_106, x_104); +x_108 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__16; +x_109 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__21; +x_110 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_110, 0, x_26); +lean_ctor_set(x_110, 1, x_108); +lean_ctor_set(x_110, 2, x_107); +lean_ctor_set(x_110, 3, x_109); +x_111 = lean_array_push(x_41, x_110); +x_112 = lean_array_push(x_111, x_43); +x_113 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_113, 0, x_45); +lean_ctor_set(x_113, 1, x_112); +x_114 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__26; +lean_inc(x_104); +x_115 = lean_name_mk_numeral(x_114, x_104); +x_116 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__24; +x_117 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__28; +x_118 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_118, 0, x_26); +lean_ctor_set(x_118, 1, x_116); +lean_ctor_set(x_118, 2, x_115); +lean_ctor_set(x_118, 3, x_117); +x_119 = lean_array_push(x_41, x_118); +x_120 = lean_array_push(x_119, x_43); x_121 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_121, 0, x_53); +lean_ctor_set(x_121, 0, x_45); lean_ctor_set(x_121, 1, x_120); -lean_ctor_set(x_29, 0, x_121); -return x_29; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; -x_122 = lean_ctor_get(x_29, 0); -x_123 = lean_ctor_get(x_29, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_29); -x_124 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__12; -lean_inc(x_122); -x_125 = lean_name_mk_numeral(x_124, x_122); -x_126 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__9; -x_127 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__14; -x_128 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_128, 0, x_23); -lean_ctor_set(x_128, 1, x_126); -lean_ctor_set(x_128, 2, x_125); -lean_ctor_set(x_128, 3, x_127); -x_129 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_130 = lean_array_push(x_129, x_128); -x_131 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_132 = lean_array_push(x_130, x_131); -x_133 = l_Lean_Parser_Term_id___elambda__1___closed__2; -x_134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_134, 0, x_133); -lean_ctor_set(x_134, 1, x_132); -x_135 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__19; -lean_inc(x_122); -x_136 = lean_name_mk_numeral(x_135, x_122); -x_137 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__17; -x_138 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__21; -x_139 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_139, 0, x_23); +x_122 = lean_array_push(x_41, x_121); +x_123 = lean_array_push(x_122, x_31); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_49); +lean_ctor_set(x_124, 1, x_123); +x_125 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +x_126 = lean_name_mk_numeral(x_125, x_104); +x_127 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_128 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_129 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_129, 0, x_26); +lean_ctor_set(x_129, 1, x_127); +lean_ctor_set(x_129, 2, x_126); +lean_ctor_set(x_129, 3, x_128); +x_130 = lean_array_push(x_41, x_129); +x_131 = lean_array_push(x_130, x_43); +x_132 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_132, 0, x_45); +lean_ctor_set(x_132, 1, x_131); +x_133 = lean_array_push(x_41, x_124); +x_134 = lean_array_push(x_133, x_132); +x_135 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_135, 0, x_49); +lean_ctor_set(x_135, 1, x_134); +x_136 = lean_array_push(x_41, x_135); +x_137 = lean_array_push(x_136, x_43); +x_138 = l_Lean_nullKind___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); -lean_ctor_set(x_139, 2, x_136); -lean_ctor_set(x_139, 3, x_138); -x_140 = lean_array_push(x_129, x_139); -x_141 = lean_array_push(x_140, x_131); -x_142 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_142, 0, x_133); -lean_ctor_set(x_142, 1, x_141); -x_143 = lean_array_push(x_129, x_142); -x_144 = lean_array_push(x_143, x_28); -x_145 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_146 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_144); -x_147 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__25; -lean_inc(x_122); -x_148 = lean_name_mk_numeral(x_147, x_122); -x_149 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__24; -x_150 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__28; -x_151 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_151, 0, x_23); -lean_ctor_set(x_151, 1, x_149); -lean_ctor_set(x_151, 2, x_148); -lean_ctor_set(x_151, 3, x_150); -x_152 = lean_array_push(x_129, x_151); -x_153 = lean_array_push(x_152, x_131); -x_154 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_154, 0, x_133); -lean_ctor_set(x_154, 1, x_153); -x_155 = lean_array_push(x_129, x_154); -lean_inc(x_22); -x_156 = lean_array_push(x_155, x_22); -x_157 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_157, 0, x_145); -lean_ctor_set(x_157, 1, x_156); -x_158 = lean_array_push(x_129, x_157); -x_159 = lean_array_push(x_158, x_131); -x_160 = l_Lean_nullKind___closed__2; -x_161 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_159); -x_162 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; -x_163 = lean_array_push(x_162, x_161); -x_164 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; -x_165 = lean_array_push(x_163, x_164); -x_166 = l_Lean_Parser_Term_paren___elambda__1___closed__1; -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_165); -x_168 = lean_array_push(x_129, x_146); -x_169 = lean_array_push(x_168, x_167); -x_170 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_170, 0, x_145); -lean_ctor_set(x_170, 1, x_169); -x_171 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__31; -lean_inc(x_122); -x_172 = lean_name_mk_numeral(x_171, x_122); -x_173 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__30; -x_174 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__33; -x_175 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_175, 0, x_23); -lean_ctor_set(x_175, 1, x_173); -lean_ctor_set(x_175, 2, x_172); -lean_ctor_set(x_175, 3, x_174); -x_176 = lean_array_push(x_129, x_175); -x_177 = lean_array_push(x_176, x_131); -x_178 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_178, 0, x_133); -lean_ctor_set(x_178, 1, x_177); -x_179 = lean_array_push(x_129, x_170); -x_180 = lean_array_push(x_179, x_178); -x_181 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_181, 0, x_145); -lean_ctor_set(x_181, 1, x_180); -x_182 = lean_array_push(x_129, x_181); -x_183 = lean_array_push(x_182, x_131); -x_184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_184, 0, x_160); -lean_ctor_set(x_184, 1, x_183); -x_185 = lean_array_push(x_162, x_184); -x_186 = lean_array_push(x_185, x_164); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_166); -lean_ctor_set(x_187, 1, x_186); -x_188 = lean_array_push(x_129, x_134); -x_189 = lean_array_push(x_188, x_187); -x_190 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_190, 0, x_145); -lean_ctor_set(x_190, 1, x_189); -x_191 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__38; -x_192 = lean_name_mk_numeral(x_191, x_122); -x_193 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__36; -x_194 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__40; -x_195 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_195, 0, x_23); -lean_ctor_set(x_195, 1, x_193); -lean_ctor_set(x_195, 2, x_192); -lean_ctor_set(x_195, 3, x_194); -x_196 = lean_array_push(x_129, x_195); -x_197 = lean_array_push(x_196, x_131); -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_133); -lean_ctor_set(x_198, 1, x_197); -x_199 = lean_array_push(x_129, x_198); -x_200 = lean_array_push(x_199, x_22); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_145); -lean_ctor_set(x_201, 1, x_200); -x_202 = lean_array_push(x_129, x_201); -x_203 = lean_array_push(x_202, x_13); -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_145); -lean_ctor_set(x_204, 1, x_203); -x_205 = lean_array_push(x_129, x_204); -x_206 = lean_array_push(x_205, x_131); -x_207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_207, 0, x_160); -lean_ctor_set(x_207, 1, x_206); -x_208 = lean_array_push(x_162, x_207); -x_209 = lean_array_push(x_208, x_164); -x_210 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_210, 0, x_166); -lean_ctor_set(x_210, 1, x_209); -x_211 = lean_array_push(x_129, x_190); -x_212 = lean_array_push(x_211, x_210); -x_213 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_213, 0, x_145); -lean_ctor_set(x_213, 1, x_212); -x_214 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_123); -return x_214; +x_140 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; +x_141 = lean_array_push(x_140, x_139); +x_142 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; +x_143 = lean_array_push(x_141, x_142); +x_144 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_145 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_143); +x_146 = lean_array_push(x_41, x_113); +x_147 = lean_array_push(x_146, x_145); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_49); +lean_ctor_set(x_148, 1, x_147); +x_149 = lean_array_push(x_41, x_148); +x_150 = lean_array_push(x_149, x_53); +x_151 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_151, 0, x_49); +lean_ctor_set(x_151, 1, x_150); +x_152 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_105); +return x_152; } } else { -lean_object* x_215; lean_object* x_216; lean_object* x_217; -lean_dec(x_19); +lean_object* x_153; uint8_t x_154; +x_153 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_34); +lean_dec(x_2); +x_154 = !lean_is_exclusive(x_153); +if (x_154 == 0) +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_155 = lean_ctor_get(x_153, 0); +x_156 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__19; +lean_inc(x_155); +x_157 = lean_name_mk_numeral(x_156, x_155); +x_158 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__16; +x_159 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__21; +x_160 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_160, 0, x_26); +lean_ctor_set(x_160, 1, x_158); +lean_ctor_set(x_160, 2, x_157); +lean_ctor_set(x_160, 3, x_159); +x_161 = lean_array_push(x_41, x_160); +x_162 = lean_array_push(x_161, x_43); +x_163 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_163, 0, x_45); +lean_ctor_set(x_163, 1, x_162); +x_164 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__26; +lean_inc(x_155); +x_165 = lean_name_mk_numeral(x_164, x_155); +x_166 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__24; +x_167 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__28; +x_168 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_168, 0, x_26); +lean_ctor_set(x_168, 1, x_166); +lean_ctor_set(x_168, 2, x_165); +lean_ctor_set(x_168, 3, x_167); +x_169 = lean_array_push(x_41, x_168); +x_170 = lean_array_push(x_169, x_43); +x_171 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_171, 0, x_45); +lean_ctor_set(x_171, 1, x_170); +x_172 = lean_array_push(x_41, x_171); +x_173 = lean_array_push(x_172, x_31); +x_174 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_174, 0, x_49); +lean_ctor_set(x_174, 1, x_173); +x_175 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__32; +x_176 = lean_name_mk_numeral(x_175, x_155); +x_177 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__31; +x_178 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__35; +x_179 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_179, 0, x_26); +lean_ctor_set(x_179, 1, x_177); +lean_ctor_set(x_179, 2, x_176); +lean_ctor_set(x_179, 3, x_178); +x_180 = lean_array_push(x_41, x_179); +x_181 = lean_array_push(x_180, x_43); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_45); +lean_ctor_set(x_182, 1, x_181); +x_183 = lean_array_push(x_41, x_182); +x_184 = lean_array_push(x_183, x_25); +x_185 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_185, 0, x_49); +lean_ctor_set(x_185, 1, x_184); +x_186 = lean_array_push(x_41, x_185); +x_187 = lean_array_push(x_186, x_43); +x_188 = l_Lean_nullKind___closed__2; +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_187); +x_190 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; +x_191 = lean_array_push(x_190, x_189); +x_192 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; +x_193 = lean_array_push(x_191, x_192); +x_194 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_193); +x_196 = lean_array_push(x_41, x_174); +x_197 = lean_array_push(x_196, x_195); +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_49); +lean_ctor_set(x_198, 1, x_197); +x_199 = lean_array_push(x_41, x_198); +x_200 = lean_array_push(x_199, x_43); +x_201 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_201, 0, x_188); +lean_ctor_set(x_201, 1, x_200); +x_202 = lean_array_push(x_190, x_201); +x_203 = lean_array_push(x_202, x_192); +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_194); +lean_ctor_set(x_204, 1, x_203); +x_205 = lean_array_push(x_41, x_163); +x_206 = lean_array_push(x_205, x_204); +x_207 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_207, 0, x_49); +lean_ctor_set(x_207, 1, x_206); +x_208 = lean_array_push(x_41, x_207); +x_209 = lean_array_push(x_208, x_53); +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_49); +lean_ctor_set(x_210, 1, x_209); +lean_ctor_set(x_153, 0, x_210); +return x_153; +} +else +{ +lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_211 = lean_ctor_get(x_153, 0); +x_212 = lean_ctor_get(x_153, 1); +lean_inc(x_212); +lean_inc(x_211); +lean_dec(x_153); +x_213 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__19; +lean_inc(x_211); +x_214 = lean_name_mk_numeral(x_213, x_211); +x_215 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__16; +x_216 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__21; +x_217 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_217, 0, x_26); +lean_ctor_set(x_217, 1, x_215); +lean_ctor_set(x_217, 2, x_214); +lean_ctor_set(x_217, 3, x_216); +x_218 = lean_array_push(x_41, x_217); +x_219 = lean_array_push(x_218, x_43); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_45); +lean_ctor_set(x_220, 1, x_219); +x_221 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__26; +lean_inc(x_211); +x_222 = lean_name_mk_numeral(x_221, x_211); +x_223 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__24; +x_224 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__28; +x_225 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_225, 0, x_26); +lean_ctor_set(x_225, 1, x_223); +lean_ctor_set(x_225, 2, x_222); +lean_ctor_set(x_225, 3, x_224); +x_226 = lean_array_push(x_41, x_225); +x_227 = lean_array_push(x_226, x_43); +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_45); +lean_ctor_set(x_228, 1, x_227); +x_229 = lean_array_push(x_41, x_228); +x_230 = lean_array_push(x_229, x_31); +x_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_49); +lean_ctor_set(x_231, 1, x_230); +x_232 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__32; +x_233 = lean_name_mk_numeral(x_232, x_211); +x_234 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__31; +x_235 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__35; +x_236 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_236, 0, x_26); +lean_ctor_set(x_236, 1, x_234); +lean_ctor_set(x_236, 2, x_233); +lean_ctor_set(x_236, 3, x_235); +x_237 = lean_array_push(x_41, x_236); +x_238 = lean_array_push(x_237, x_43); +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_45); +lean_ctor_set(x_239, 1, x_238); +x_240 = lean_array_push(x_41, x_239); +x_241 = lean_array_push(x_240, x_25); +x_242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_242, 0, x_49); +lean_ctor_set(x_242, 1, x_241); +x_243 = lean_array_push(x_41, x_242); +x_244 = lean_array_push(x_243, x_43); +x_245 = l_Lean_nullKind___closed__2; +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_244); +x_247 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; +x_248 = lean_array_push(x_247, x_246); +x_249 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; +x_250 = lean_array_push(x_248, x_249); +x_251 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_252 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_252, 0, x_251); +lean_ctor_set(x_252, 1, x_250); +x_253 = lean_array_push(x_41, x_231); +x_254 = lean_array_push(x_253, x_252); +x_255 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_255, 0, x_49); +lean_ctor_set(x_255, 1, x_254); +x_256 = lean_array_push(x_41, x_255); +x_257 = lean_array_push(x_256, x_43); +x_258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_258, 0, x_245); +lean_ctor_set(x_258, 1, x_257); +x_259 = lean_array_push(x_247, x_258); +x_260 = lean_array_push(x_259, x_249); +x_261 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_261, 0, x_251); +lean_ctor_set(x_261, 1, x_260); +x_262 = lean_array_push(x_41, x_220); +x_263 = lean_array_push(x_262, x_261); +x_264 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_264, 0, x_49); +lean_ctor_set(x_264, 1, x_263); +x_265 = lean_array_push(x_41, x_264); +x_266 = lean_array_push(x_265, x_53); +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_49); +lean_ctor_set(x_267, 1, x_266); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_212); +return x_268; +} +} +} +else +{ +lean_object* x_269; lean_object* x_270; +lean_dec(x_22); +lean_dec(x_21); +lean_dec(x_20); lean_dec(x_13); -x_215 = lean_ctor_get(x_14, 1); -lean_inc(x_215); -lean_dec(x_14); -x_216 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__6; -x_217 = l_Lean_Elab_Term_throwError___rarg(x_1, x_216, x_2, x_215); -return x_217; +x_269 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__6; +x_270 = l_Lean_Elab_Term_throwError___rarg(x_1, x_269, x_2, x_19); +return x_270; } } } @@ -4696,6 +4801,17 @@ x_6 = l_Lean_Elab_Term_adaptExpander(x_5, x_1, x_2, x_3, x_4); return x_6; } } +lean_object* l_List_beq___main___at_Lean_Elab_Term_elabParserMacro___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +uint8_t x_3; lean_object* x_4; +x_3 = l_List_beq___main___at_Lean_Elab_Term_elabParserMacro___spec__1(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +x_4 = lean_box(x_3); +return x_4; +} +} lean_object* _init_l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__1() { _start: { @@ -7625,7 +7741,7 @@ lean_object* l_Lean_Elab_Term_elabOrElse(lean_object* x_1, lean_object* x_2, lea _start: { lean_object* x_5; lean_object* x_6; -x_5 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__12; +x_5 = l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__19; x_6 = l_Lean_Elab_Term_elabInfixOp(x_5, x_1, x_2, x_3, x_4); return x_6; } @@ -8050,16 +8166,6 @@ l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__34 = _init_l_Lean_Elab_Te lean_mark_persistent(l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__34); l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__35 = _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__35(); lean_mark_persistent(l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__35); -l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__36 = _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__36(); -lean_mark_persistent(l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__36); -l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__37 = _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__37(); -lean_mark_persistent(l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__37); -l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__38 = _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__38(); -lean_mark_persistent(l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__38); -l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__39 = _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__39(); -lean_mark_persistent(l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__39); -l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__40 = _init_l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__40(); -lean_mark_persistent(l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__40); l_Lean_Elab_Term_elabParserMacro___closed__1 = _init_l_Lean_Elab_Term_elabParserMacro___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabParserMacro___closed__1); l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__1(); diff --git a/stage0/stdlib/Init/Lean/Elab/Command.c b/stage0/stdlib/Init/Lean/Elab/Command.c index ee02bba3eb..f5e6abdc16 100644 --- a/stage0/stdlib/Init/Lean/Elab/Command.c +++ b/stage0/stdlib/Init/Lean/Elab/Command.c @@ -21,6 +21,7 @@ extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___closed__4; lean_object* l_Lean_Elab_Command_elabSection(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabNamespace(lean_object*); +lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_PersistentHashMap_contains___at_Lean_Elab_Command_addBuiltinCommandElab___spec__4___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__3; lean_object* l_List_head_x21___at_Lean_Elab_Command_getScope___spec__1(lean_object*); @@ -29,7 +30,6 @@ lean_object* l_Lean_Elab_Command_catchExceptions(lean_object*, lean_object*, lea extern lean_object* l_Lean_Meta_check___closed__1; lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getOptions(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabCommand___closed__4; extern lean_object* l_Lean_Parser_declareBuiltinParser___closed__8; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabNamespace___closed__3; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabInitQuot___closed__3; @@ -37,14 +37,18 @@ lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabNotation(lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabCommandAux___closed__3; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabReserve(lean_object*); +lean_object* l_Lean_Elab_Command_elabCommandAux(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabSection___closed__2; extern lean_object* l_Lean_nameToExprAux___main___closed__1; -lean_object* l_AssocList_find___main___at_Lean_Elab_Command_elabCommand___spec__6___boxed(lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabOpen___closed__3; lean_object* l_unreachable_x21___rarg(lean_object*); +extern lean_object* l_Lean_nullKind; lean_object* l_Lean_Elab_Command_withNamespace(lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Util_7__regTraceClasses___closed__2; lean_object* l_Lean_Elab_Command_CommandElabCoreM_monadState___closed__1; +lean_object* l_Lean_Elab_Command_trace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___closed__1; lean_object* l_Lean_Elab_Command_addContext(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_registerNamespace___main(lean_object*, lean_object*); @@ -63,6 +67,7 @@ lean_object* l_Lean_Elab_Command_liftIOCore(lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabOpenSimple(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerTraceClass___closed__1; +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_logTrace___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_liftIO(lean_object*); extern size_t l_PersistentHashMap_insertAux___main___rarg___closed__2; lean_object* l_Lean_SMap_empty___at_Lean_Elab_Command_mkBuiltinCommandElabTable___spec__1; @@ -71,25 +76,26 @@ lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_commandElabAttribute; lean_object* l_Lean_Elab_Command_elabUniverse(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fswap(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabCommand___closed__2; lean_object* l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommand___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabSetOption___closed__2; lean_object* l_Lean_Elab_Command_elabCheck___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommandAux___spec__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_logUnknownDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_SynthInstance_SynthM_inhabited___lambda__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_stxInh; lean_object* l___private_Init_Lean_Elab_Command_17__checkEndHeader___main___boxed(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_withDeclId___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommand___spec__3(lean_object*, size_t, lean_object*); +lean_object* l_Lean_Elab_Command_throwUnsupportedSyntax___boxed(lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; extern lean_object* l_Lean_verboseOption___closed__3; lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___lambda__2(lean_object*, lean_object*, lean_object*); lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommandAux___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabUniverses(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabReserve___closed__2; lean_object* l_Lean_Elab_Command_elabOpen___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_runTermElabM(lean_object*); lean_object* l___private_Init_Lean_Elab_Command_12__toCommandResult___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_section___elambda__1___closed__2; @@ -98,17 +104,19 @@ 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___private_Init_Lean_Elab_Command_8__elabCommandUsing(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); -lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSetOption(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabDeclareSyntaxCat___closed__1; +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logTrace___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___closed__2; lean_object* l___private_Init_Lean_Elab_Command_9__mkTermContext___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_io_ref_get(lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabCommandAux___closed__5; lean_object* l_Lean_Elab_Command_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabUniverse(lean_object*); lean_object* l_Lean_Elab_Command_getCurrMacroScope___boxed(lean_object*, lean_object*); lean_object* l_Lean_Syntax_reprint___main(lean_object*); +lean_object* l_Lean_Elab_Command_elabCommandAux___closed__6; lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Elab_Command_elabOpenSimple___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_declareBuiltinCommandElab___closed__5; lean_object* l___private_Init_Lean_Elab_Command_14__addScopes___main___closed__2; @@ -118,7 +126,6 @@ lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabVariable lean_object* l_Lean_Elab_Command_elabCheck(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_List_find_x3f___main___rarg(lean_object*, lean_object*); -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logUnknownDecl___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Command_15__addNamespace(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr(lean_object*); @@ -132,6 +139,7 @@ lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__11; extern lean_object* l_Lean_Name_inhabited; lean_object* l_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_add_alias(lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_setOption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_Lean_SMap_empty___at_Lean_Elab_Command_mkBuiltinCommandElabTable___spec__1___closed__2; @@ -139,11 +147,11 @@ lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabExport(lean_object* lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabDeclareSyntaxCat___closed__2; lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__2; lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___lambda__2___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Meta_isLevelDefEqAux___main___closed__5; lean_object* l_List_foldl___main___at_Lean_Elab_Command_sortDeclLevelParams___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabMixfix___closed__1; lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_addOpenDecl___spec__1(lean_object*, lean_object*, lean_object*); size_t l_USize_shiftRight(size_t, size_t); -lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommand___spec__5(lean_object*, lean_object*); lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Command_throwError___spec__2___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_20__synthesizeSyntheticMVarsAux___main(uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Exception_inhabited___closed__1; @@ -166,6 +174,7 @@ extern lean_object* l_Lean_AttributeImpl_inhabited___closed__2; lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabEnd___closed__9; lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_throwUnsupportedSyntax___rarg(lean_object*); lean_object* l_IO_ofExcept___at_Lean_registerClassAttr___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_addBuiltinCommandElab(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_State_inhabited___closed__3; @@ -198,7 +207,6 @@ uint8_t l___private_Init_Lean_Elab_Command_17__checkEndHeader___main(lean_object lean_object* l_Lean_Elab_Command_mkBuiltinCommandElabTable(lean_object*); lean_object* l_Lean_Elab_Command_addOpenDecl(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; -lean_object* l_Lean_Elab_Command_elabCommand___closed__6; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabVariables___closed__3; extern lean_object* l_Lean_Syntax_getKind___closed__4; lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__9; @@ -219,12 +227,13 @@ lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__3; lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___lambda__3___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_withDeclId___closed__1; extern lean_object* l_Lean_EnvExtension_Inhabited___rarg___closed__1; +lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__1___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logTrace___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_getOptionDecl(lean_object*, lean_object*); lean_object* l_Lean_Elab_mkMessage___at_Lean_Elab_Command_throwError___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__2; extern lean_object* l_Lean_numLitKind; extern lean_object* l_Lean_Elab_Term_elabTerm___closed__6; -lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommand___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabNotation___closed__2; lean_object* l_Lean_Elab_Command_elabExport___closed__3; lean_object* l_Lean_Elab_Command_dbgTrace(lean_object*); @@ -254,12 +263,12 @@ lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabNotation___closed__ lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); uint8_t l_PersistentHashMap_contains___at_Lean_Elab_Command_addBuiltinCommandElab___spec__4(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Command_elabCommand___closed__1; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabCheck___closed__3; lean_object* l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel(lean_object*); lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Elab_Command_elabUniverses___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabVariables___closed__1; lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__4; +lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommandAux___spec__3(lean_object*, size_t, lean_object*); lean_object* l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__3; lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); uint8_t l_HashMapImp_contains___at_Lean_Elab_Command_addBuiltinCommandElab___spec__2(lean_object*, lean_object*); @@ -268,15 +277,18 @@ extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign lean_object* l_Lean_Elab_Command_elabOpenRenaming(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_mkConst___closed__4; lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); +lean_object* l_AssocList_find___main___at_Lean_Elab_Command_elabCommandAux___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_resolveNamespace(lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Lean_Elab_Command_16__checkAnonymousScope(lean_object*); lean_object* l_Lean_Elab_Command_addBuiltinCommandElab___closed__1; lean_object* l_Lean_Elab_Command_mkState(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabCommandAux___closed__7; lean_object* l___private_Init_Lean_Elab_Command_11__getVarDecls(lean_object*); lean_object* l_Lean_Elab_Command_dbgTrace___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_qsortAux___main___at_Lean_Elab_Command_sortDeclLevelParams___spec__3___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_addBuiltinCommandElab___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_CommandElabCoreM_monadState; size_t l_Lean_Name_hash(lean_object*); extern lean_object* l_Char_HasRepr___closed__1; @@ -288,7 +300,6 @@ lean_object* l_Lean_Elab_Command_adaptExpander(lean_object*, lean_object*, lean_ lean_object* l___private_Init_Lean_Elab_Command_6__prettyPrint___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabSynth___closed__3; -lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_KVMap_insertCore___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_runTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_PersistentArray_empty___closed__3; @@ -296,6 +307,7 @@ lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabUniverses(lean_obje extern lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__1; extern lean_object* l___regBuiltinParser_Lean_Parser_Command_antiquot___closed__2; lean_object* l_Lean_Elab_Command_elabVariables___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Command_14__addScopes___main___closed__1; lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Elab_Command_elabOpenHiding___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -303,7 +315,6 @@ lean_object* l___private_Init_Lean_Elab_Command_14__addScopes___main___closed__3 extern lean_object* l___regBuiltinParser_Lean_Parser_Command_antiquot___closed__1; uint8_t l_Lean_Environment_contains(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getScopes(lean_object*, lean_object*); -lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommand___spec__3___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Term_3__addMacroStack___spec__1___closed__3; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabUniverses___closed__2; uint8_t l_List_elem___main___at_Lean_Parser_addLeadingParser___spec__7(lean_object*, lean_object*); @@ -313,12 +324,10 @@ lean_object* l_Lean_Elab_Command_builtinCommandElabTable; lean_object* l_Lean_Elab_Command_elabCheck___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_declareBuiltinParser___closed__7; lean_object* l_Lean_Elab_Command_elabOpenOnly(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Options_empty; extern lean_object* l_Lean_Parser_Command_variable___elambda__1___closed__2; lean_object* l_ReaderT_read___at_Lean_Elab_Command_CommandElabM_monadLog___spec__1(lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabExport___closed__1; -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logUnknownDecl___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_modn(size_t, lean_object*); lean_object* l___private_Init_Lean_Elab_Command_9__mkTermContext(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_SMap_contains___at_Lean_Elab_Command_addBuiltinCommandElab___spec__1(lean_object*, lean_object*); @@ -361,6 +370,7 @@ lean_object* l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___clos extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__3; lean_object* l_Lean_Elab_Command_withMacroExpansion(lean_object*); lean_object* l_Lean_Elab_Command_withDeclId___closed__3; +lean_object* l_Lean_Elab_Command_elabCommandAux___closed__4; lean_object* l_Lean_ConstantInfo_type(lean_object*); lean_object* l_ReaderT_bind___at_Lean_Elab_Command_CommandElabM_monadLog___spec__2(lean_object*, lean_object*); lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Elab_Command_elabOpenOnly___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -371,20 +381,23 @@ lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabVariable___closed__ extern lean_object* l_Lean_Parser_Command_notation___elambda__1___closed__2; size_t l_USize_land(size_t, size_t); lean_object* l_List_head_x21___at_Lean_Elab_Command_getScope___spec__1___boxed(lean_object*); +lean_object* l_Lean_Elab_Command_throwUnsupportedSyntax(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__2; lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__4; extern lean_object* l_Lean_nullKind___closed__2; lean_object* l_Lean_ParametricAttribute_setParam___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_SMap_contains___at_Lean_Elab_Command_addBuiltinCommandElab___spec__1___boxed(lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_logUnknownDecl___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_declareBuiltinCommandElab___closed__1; lean_object* l_Lean_Elab_Command_CommandElabM_monadLog; lean_object* l_Lean_Elab_Command_addUnivLevel(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabMixfix___closed__3; +lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommandAux___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Command_elabCommandAux___closed__1; lean_object* l_Lean_Elab_Command_CommandElabCoreM_monadState___closed__4; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabSynth___closed__1; lean_object* l___private_Init_Lean_Elab_Command_2__getState(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_universe___elambda__1___closed__2; +lean_object* l_Lean_Elab_Command_elabCommandAux___closed__2; lean_object* l_Lean_Parser_registerParserCategory(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabOpen___closed__2; extern lean_object* l_Bool_HasRepr___closed__1; @@ -398,7 +411,6 @@ lean_object* l_Lean_Elab_Command_elabReserve(lean_object*, lean_object*); lean_object* l_Lean_Name_appendAfter(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_end___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_setOption___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_logUnknownDecl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkCommandElabAttribute___closed__1; lean_object* l___private_Init_Lean_Elab_Command_14__addScopes(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Elab_Command_elabOpenOnly___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -464,6 +476,7 @@ lean_object* l_Lean_Elab_Command_elabOpenHiding___boxed(lean_object*, lean_objec lean_object* l_Lean_Elab_Command_getOpenDecls(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__4; lean_object* l_Lean_Elab_Command_declareBuiltinCommandElab___closed__3; +lean_object* l_Lean_Elab_Command_trace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_export___elambda__1___closed__2; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabEnd___closed__1; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabSection___closed__3; @@ -497,7 +510,6 @@ uint8_t l_Lean_DataValue_sameCtor(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_6__fromMetaState(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Elab_Command_elabOpenHiding___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommand___spec__5___boxed(lean_object*, lean_object*); lean_object* l_Array_qsortAux___main___at_Lean_Elab_Command_sortDeclLevelParams___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_setEnv(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_openSimple___elambda__1___closed__2; @@ -513,7 +525,9 @@ lean_object* l_Lean_Elab_Command_elabReserve___boxed(lean_object*, lean_object*) lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabSynth(lean_object*); lean_object* l_Lean_Elab_Command_liftIOCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabDeclareSyntaxCat___closed__3; +lean_object* l_AssocList_find___main___at_Lean_Elab_Command_elabCommandAux___spec__6___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_logUnknownDecl___closed__2; +lean_object* l_List_foldl___main___at_Lean_addMacroScopes___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_mkCommandElabAttribute(lean_object*); lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__10; @@ -525,6 +539,7 @@ lean_object* l_ReaderT_bind___at_Lean_Elab_Command_CommandElabM_monadLog___spec_ lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___lambda__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabVariable___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__2___boxed(lean_object*, lean_object*); uint8_t l___private_Init_Lean_Elab_Command_17__checkEndHeader(lean_object*, lean_object*); lean_object* l_Lean_Syntax_asNode(lean_object*); lean_object* l___private_Init_Lean_Elab_Command_12__toCommandResult___rarg___closed__1; @@ -541,7 +556,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object* l___private_Init_Lean_Elab_Command_7__addMacroStack(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_Lean_Elab_mkMessageAt___at_Lean_Elab_Command_throwError___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__2(lean_object*, lean_object*); +lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__5___boxed(lean_object*, lean_object*); lean_object* lean_usize_to_nat(size_t); extern lean_object* l_Lean_addClass___closed__1; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabVariable___closed__1; @@ -553,7 +568,6 @@ lean_object* l_Lean_Elab_Command_elabOpenRenaming___boxed(lean_object*, lean_obj lean_object* l_Lean_Elab_Command_elabOpenOnly___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Command_synth___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___lambda__1___closed__1; -lean_object* l_Lean_Elab_Command_elabCommand___closed__3; lean_object* l_Lean_Elab_Command_elabSynth___closed__3; lean_object* l_IO_ofExcept___at___private_Init_Lean_Elab_Util_6__ElabAttribute_add___spec__1(lean_object*, lean_object*); lean_object* l_List_foldlM___main___at___private_Init_Lean_Elab_Command_7__addMacroStack___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -564,19 +578,20 @@ lean_object* l_Lean_Elab_Command_commandElabAttribute___closed__5; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabNamespace___closed__1; lean_object* l_Lean_Elab_Command_CommandElabM_MonadQuotation___closed__3; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabSection___closed__1; -lean_object* l_AssocList_find___main___at_Lean_Elab_Command_elabCommand___spec__6(lean_object*, lean_object*); extern lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___closed__4; extern lean_object* l_Lean_initAttr; +lean_object* l_Lean_Elab_Command_logTrace___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Command_11__getVarDecls___boxed(lean_object*); lean_object* l_Lean_Elab_Command_declareBuiltinCommandElab___closed__2; extern lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__2; lean_object* l_Lean_Elab_syntaxNodeKindOfAttrParam(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclareSyntaxCat(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_regBuiltinCommandParserAttr___closed__3; -lean_object* l_Lean_Elab_Command_elabCommand___closed__5; +lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__5(lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabNamespace___closed__2; lean_object* l_Lean_Elab_Command_CommandElabM_MonadQuotation; lean_object* l___private_Init_Lean_Elab_Command_3__setState(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveNamespace(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Parser_Parser_18__BuiltinParserAttribute_add___closed__2; extern lean_object* l_Lean_NameGenerator_Inhabited___closed__3; @@ -585,10 +600,12 @@ lean_object* l_Lean_Elab_Command_addDecl___boxed(lean_object*, lean_object*, lea uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_HashMapImp_contains___at_Lean_Elab_Command_addBuiltinCommandElab___spec__2___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_logTrace___spec__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabEnd___closed__2; lean_object* lean_add_decl(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Command_10__mkTermState(lean_object*); +lean_object* l_Lean_Elab_Command_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* _init_l_Lean_Elab_Command_Scope_inhabited___closed__1() { _start: { @@ -2469,6 +2486,436 @@ lean_dec(x_3); return x_7; } } +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logTrace___spec__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_6, 0, x_1); +lean_inc(x_4); +x_7 = l_Lean_Elab_mkMessageAt___at_Lean_Elab_Command_throwError___spec__3(x_3, x_2, x_6, x_4, x_5); +lean_dec(x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +lean_inc(x_4); +x_10 = l___private_Init_Lean_Elab_Command_2__getState(x_4, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_11, 1); +x_15 = l_PersistentArray_push___rarg(x_14, x_8); +lean_ctor_set(x_11, 1, x_15); +x_16 = l___private_Init_Lean_Elab_Command_3__setState(x_11, x_4, x_12); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +x_19 = lean_box(0); +lean_ctor_set(x_16, 0, x_19); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_16, 1); +lean_inc(x_20); +lean_dec(x_16); +x_21 = lean_box(0); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_20); +return x_22; +} +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_16); +if (x_23 == 0) +{ +return x_16; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_16, 0); +x_25 = lean_ctor_get(x_16, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_16); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_27 = lean_ctor_get(x_11, 0); +x_28 = lean_ctor_get(x_11, 1); +x_29 = lean_ctor_get(x_11, 2); +x_30 = lean_ctor_get(x_11, 3); +x_31 = lean_ctor_get(x_11, 4); +lean_inc(x_31); +lean_inc(x_30); +lean_inc(x_29); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_11); +x_32 = l_PersistentArray_push___rarg(x_28, x_8); +x_33 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_33, 0, x_27); +lean_ctor_set(x_33, 1, x_32); +lean_ctor_set(x_33, 2, x_29); +lean_ctor_set(x_33, 3, x_30); +lean_ctor_set(x_33, 4, x_31); +x_34 = l___private_Init_Lean_Elab_Command_3__setState(x_33, x_4, x_12); +if (lean_obj_tag(x_34) == 0) +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_35 = lean_ctor_get(x_34, 1); +lean_inc(x_35); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_36 = x_34; +} else { + lean_dec_ref(x_34); + x_36 = lean_box(0); +} +x_37 = lean_box(0); +if (lean_is_scalar(x_36)) { + x_38 = lean_alloc_ctor(0, 2, 0); +} else { + x_38 = x_36; +} +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_35); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_39 = lean_ctor_get(x_34, 0); +lean_inc(x_39); +x_40 = lean_ctor_get(x_34, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_34)) { + lean_ctor_release(x_34, 0); + lean_ctor_release(x_34, 1); + x_41 = x_34; +} else { + lean_dec_ref(x_34); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(1, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_39); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +} +else +{ +uint8_t x_43; +lean_dec(x_8); +lean_dec(x_4); +x_43 = !lean_is_exclusive(x_10); +if (x_43 == 0) +{ +return x_10; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_10, 0); +x_45 = lean_ctor_get(x_10, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_10); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +else +{ +uint8_t x_47; +lean_dec(x_4); +x_47 = !lean_is_exclusive(x_7); +if (x_47 == 0) +{ +return x_7; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_7, 0); +x_49 = lean_ctor_get(x_7, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_7); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +} +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_logTrace___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_6 = l_Lean_Elab_getPos___at_Lean_Elab_Command_throwError___spec__2(x_1, x_4, x_5); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Elab_logAt___at_Lean_Elab_Command_logTrace___spec__2(x_7, x_2, x_3, x_4, x_8); +return x_9; +} +} +lean_object* l_Lean_Elab_Command_logTrace(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_6, 0, x_1); +lean_ctor_set(x_6, 1, x_3); +lean_inc(x_4); +x_7 = l_Lean_Elab_Command_addContext(x_6, x_4, x_5); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; +x_8 = lean_ctor_get(x_7, 0); +lean_inc(x_8); +x_9 = lean_ctor_get(x_7, 1); +lean_inc(x_9); +lean_dec(x_7); +x_10 = 0; +x_11 = l_Lean_Elab_log___at_Lean_Elab_Command_logTrace___spec__1(x_2, x_10, x_8, x_4, x_9); +return x_11; +} +else +{ +uint8_t x_12; +lean_dec(x_4); +x_12 = !lean_is_exclusive(x_7); +if (x_12 == 0) +{ +return x_7; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_7, 0); +x_14 = lean_ctor_get(x_7, 1); +lean_inc(x_14); +lean_inc(x_13); +lean_dec(x_7); +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_13); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +} +} +lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logTrace___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); +lean_dec(x_2); +x_7 = l_Lean_Elab_logAt___at_Lean_Elab_Command_logTrace___spec__2(x_1, x_6, x_3, x_4, x_5); +return x_7; +} +} +lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_logTrace___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +uint8_t x_6; lean_object* x_7; +x_6 = lean_unbox(x_2); +lean_dec(x_2); +x_7 = l_Lean_Elab_log___at_Lean_Elab_Command_logTrace___spec__1(x_1, x_6, x_3, x_4, x_5); +lean_dec(x_1); +return x_7; +} +} +lean_object* l_Lean_Elab_Command_logTrace___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Elab_Command_logTrace(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_trace(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +lean_inc(x_4); +x_6 = l_Lean_Elab_Command_getOptions(x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; uint8_t x_10; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_1); +x_10 = l_Lean_checkTraceOption(x_8, x_1); +lean_dec(x_8); +if (x_10 == 0) +{ +lean_object* x_11; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_11 = lean_box(0); +lean_ctor_set(x_6, 0, x_11); +return x_6; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_free_object(x_6); +x_12 = lean_box(0); +x_13 = lean_apply_1(x_3, x_12); +x_14 = l_Lean_Elab_Command_logTrace(x_1, x_2, x_13, x_4, x_9); +return x_14; +} +} +else +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_6, 0); +x_16 = lean_ctor_get(x_6, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_6); +lean_inc(x_1); +x_17 = l_Lean_checkTraceOption(x_15, x_1); +lean_dec(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_16); +return x_19; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_box(0); +x_21 = lean_apply_1(x_3, x_20); +x_22 = l_Lean_Elab_Command_logTrace(x_1, x_2, x_21, x_4, x_16); +return x_22; +} +} +} +else +{ +uint8_t x_23; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_23 = !lean_is_exclusive(x_6); +if (x_23 == 0) +{ +return x_6; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_6, 0); +x_25 = lean_ctor_get(x_6, 1); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_6); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +} +} +lean_object* l_Lean_Elab_Command_trace___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Lean_Elab_Command_trace(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_2); +return x_6; +} +} +lean_object* l_Lean_Elab_Command_throwUnsupportedSyntax___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(1); +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_throwUnsupportedSyntax(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_Lean_Elab_Command_throwUnsupportedSyntax___rarg), 1, 0); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_throwUnsupportedSyntax___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_Lean_Elab_Command_throwUnsupportedSyntax(x_1, x_2); +lean_dec(x_2); +return x_3; +} +} lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object* x_1, lean_object* x_2) { _start: { @@ -4195,7 +4642,7 @@ x_5 = l___private_Init_Lean_Elab_Command_8__elabCommandUsing___main(x_1, x_2, x_ return x_5; } } -lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommand___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommandAux___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -4237,7 +4684,7 @@ return x_15; } } } -lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommand___spec__3(lean_object* x_1, size_t x_2, lean_object* x_3) { +lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommandAux___spec__3(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -4308,14 +4755,14 @@ x_21 = lean_ctor_get(x_1, 1); lean_inc(x_21); lean_dec(x_1); x_22 = lean_unsigned_to_nat(0u); -x_23 = l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommand___spec__4(x_20, x_21, lean_box(0), x_22, x_3); +x_23 = l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommandAux___spec__4(x_20, x_21, lean_box(0), x_22, x_3); lean_dec(x_21); lean_dec(x_20); return x_23; } } } -lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__2(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; size_t x_4; lean_object* x_5; @@ -4323,11 +4770,11 @@ x_3 = lean_ctor_get(x_1, 0); lean_inc(x_3); lean_dec(x_1); x_4 = l_Lean_Name_hash(x_2); -x_5 = l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommand___spec__3(x_3, x_4, x_2); +x_5 = l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommandAux___spec__3(x_3, x_4, x_2); return x_5; } } -lean_object* l_AssocList_find___main___at_Lean_Elab_Command_elabCommand___spec__6(lean_object* x_1, lean_object* x_2) { +lean_object* l_AssocList_find___main___at_Lean_Elab_Command_elabCommandAux___spec__6(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -4359,7 +4806,7 @@ return x_9; } } } -lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommand___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__5(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; lean_object* x_8; @@ -4369,12 +4816,12 @@ x_5 = l_Lean_Name_hash(x_2); x_6 = lean_usize_modn(x_5, x_4); lean_dec(x_4); x_7 = lean_array_uget(x_3, x_6); -x_8 = l_AssocList_find___main___at_Lean_Elab_Command_elabCommand___spec__6(x_2, x_7); +x_8 = l_AssocList_find___main___at_Lean_Elab_Command_elabCommandAux___spec__6(x_2, x_7); lean_dec(x_7); return x_8; } } -lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__1(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -4387,11 +4834,11 @@ lean_inc(x_4); x_5 = lean_ctor_get(x_1, 1); lean_inc(x_5); lean_dec(x_1); -x_6 = l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__2(x_5, x_2); +x_6 = l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__2(x_5, x_2); if (lean_obj_tag(x_6) == 0) { lean_object* x_7; -x_7 = l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommand___spec__5(x_4, x_2); +x_7 = l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__5(x_4, x_2); lean_dec(x_4); return x_7; } @@ -4407,13 +4854,13 @@ lean_object* x_8; lean_object* x_9; x_8 = lean_ctor_get(x_1, 0); lean_inc(x_8); lean_dec(x_1); -x_9 = l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommand___spec__5(x_8, x_2); +x_9 = l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__5(x_8, x_2); lean_dec(x_8); return x_9; } } } -lean_object* _init_l_Lean_Elab_Command_elabCommand___closed__1() { +lean_object* _init_l_Lean_Elab_Command_elabCommandAux___closed__1() { _start: { lean_object* x_1; @@ -4421,27 +4868,27 @@ x_1 = lean_mk_string("unexpected command"); return x_1; } } -lean_object* _init_l_Lean_Elab_Command_elabCommand___closed__2() { +lean_object* _init_l_Lean_Elab_Command_elabCommandAux___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabCommand___closed__1; +x_1 = l_Lean_Elab_Command_elabCommandAux___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Command_elabCommand___closed__3() { +lean_object* _init_l_Lean_Elab_Command_elabCommandAux___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabCommand___closed__2; +x_1 = l_Lean_Elab_Command_elabCommandAux___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_Lean_Elab_Command_elabCommand___closed__4() { +lean_object* _init_l_Lean_Elab_Command_elabCommandAux___closed__4() { _start: { lean_object* x_1; @@ -4449,27 +4896,37 @@ x_1 = lean_mk_string("command '"); return x_1; } } -lean_object* _init_l_Lean_Elab_Command_elabCommand___closed__5() { +lean_object* _init_l_Lean_Elab_Command_elabCommandAux___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabCommand___closed__4; +x_1 = l_Lean_Elab_Command_elabCommandAux___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Command_elabCommand___closed__6() { +lean_object* _init_l_Lean_Elab_Command_elabCommandAux___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Command_elabCommand___closed__5; +x_1 = l_Lean_Elab_Command_elabCommandAux___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Command_elabCommand(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* _init_l_Lean_Elab_Command_elabCommandAux___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Elab_Util_7__regTraceClasses___closed__2; +x_2 = l_Lean_Meta_isLevelDefEqAux___main___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_Elab_Command_elabCommandAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -4508,7 +4965,7 @@ uint8_t x_16; x_16 = !lean_is_exclusive(x_2); if (x_16 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; x_17 = lean_ctor_get(x_2, 6); lean_dec(x_17); x_18 = lean_ctor_get(x_2, 5); @@ -4526,212 +4983,880 @@ lean_dec(x_23); x_24 = lean_unsigned_to_nat(1u); x_25 = lean_nat_add(x_10, x_24); lean_dec(x_10); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_25); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); lean_ctor_set(x_2, 3, x_25); -if (lean_obj_tag(x_1) == 1) -{ -lean_object* x_26; lean_inc(x_2); x_26 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_6); if (lean_obj_tag(x_26) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_object* x_27; lean_object* x_28; uint8_t x_29; x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); -x_29 = l_Lean_Elab_Command_commandElabAttribute; -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -x_31 = lean_ctor_get(x_27, 0); -lean_inc(x_31); -lean_dec(x_27); -x_32 = l_Lean_PersistentEnvExtension_getState___rarg(x_30, x_31); -lean_dec(x_31); -lean_dec(x_30); +x_29 = !lean_is_exclusive(x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_27, 3); +x_31 = lean_nat_add(x_30, x_24); +lean_ctor_set(x_27, 3, x_31); +x_32 = l___private_Init_Lean_Elab_Command_3__setState(x_27, x_2, x_28); +if (lean_obj_tag(x_32) == 0) +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; x_33 = lean_ctor_get(x_32, 1); lean_inc(x_33); lean_dec(x_32); +x_34 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_34, 0, x_7); +lean_ctor_set(x_34, 1, x_8); +lean_ctor_set(x_34, 2, x_9); +lean_ctor_set(x_34, 3, x_25); +lean_ctor_set(x_34, 4, x_11); +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_62; +lean_inc(x_34); +x_62 = l_Lean_Elab_Command_getOptions(x_34, x_33); +if (lean_obj_tag(x_62) == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = l_Lean_Elab_Command_elabCommandAux___closed__7; +x_66 = l_Lean_checkTraceOption(x_63, x_65); +lean_dec(x_63); +if (x_66 == 0) +{ +x_35 = x_64; +goto block_61; +} +else +{ +lean_object* x_67; lean_object* x_68; lean_inc(x_1); -x_34 = l_Lean_Syntax_getKind(x_1); -x_35 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__1(x_33, x_34); -if (lean_obj_tag(x_35) == 0) +x_67 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_67, 0, x_1); +lean_inc(x_34); +x_68 = l_Lean_Elab_Command_logTrace(x_65, x_1, x_67, x_34, x_64); +if (lean_obj_tag(x_68) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_36 = l_Lean_Name_toString___closed__1; -x_37 = l_Lean_Name_toStringWithSep___main(x_36, x_34); -x_38 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_38, 0, x_37); -x_39 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_39, 0, x_38); -x_40 = l_Lean_Elab_Command_elabCommand___closed__6; -x_41 = lean_alloc_ctor(8, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -x_42 = l_Lean_Elab_Term_elabTerm___closed__6; -x_43 = lean_alloc_ctor(8, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); -x_44 = l_Lean_Elab_Command_throwError___rarg(x_1, x_43, x_2, x_28); -return x_44; +lean_object* x_69; +x_69 = lean_ctor_get(x_68, 1); +lean_inc(x_69); +lean_dec(x_68); +x_35 = x_69; +goto block_61; } else { -lean_object* x_45; lean_object* x_46; +uint8_t x_70; lean_dec(x_34); -x_45 = lean_ctor_get(x_35, 0); -lean_inc(x_45); -lean_dec(x_35); -x_46 = l___private_Init_Lean_Elab_Command_8__elabCommandUsing___main(x_1, x_45, x_2, x_28); -return x_46; +lean_dec(x_1); +x_70 = !lean_is_exclusive(x_68); +if (x_70 == 0) +{ +return x_68; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_68, 0); +x_72 = lean_ctor_get(x_68, 1); +lean_inc(x_72); +lean_inc(x_71); +lean_dec(x_68); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} } } else { -uint8_t x_47; -lean_dec(x_2); +uint8_t x_74; +lean_dec(x_34); lean_dec(x_1); -x_47 = !lean_is_exclusive(x_26); -if (x_47 == 0) +x_74 = !lean_is_exclusive(x_62); +if (x_74 == 0) +{ +return x_62; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_62, 0); +x_76 = lean_ctor_get(x_62, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_62); +x_77 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +else +{ +lean_object* x_78; lean_object* x_79; +x_78 = l_Lean_Elab_Command_elabCommandAux___closed__3; +x_79 = l_Lean_Elab_Command_throwError___rarg(x_1, x_78, x_34, x_33); +return x_79; +} +block_61: +{ +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); +lean_dec(x_37); +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_elabCommandAux___spec__1(x_43, x_44); +if (lean_obj_tag(x_45) == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_46 = l_Lean_Name_toString___closed__1; +x_47 = l_Lean_Name_toStringWithSep___main(x_46, x_44); +x_48 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_48, 0, x_47); +x_49 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_49, 0, x_48); +x_50 = l_Lean_Elab_Command_elabCommandAux___closed__6; +x_51 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_51, 0, x_50); +lean_ctor_set(x_51, 1, x_49); +x_52 = l_Lean_Elab_Term_elabTerm___closed__6; +x_53 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = l_Lean_Elab_Command_throwError___rarg(x_1, x_53, x_34, x_38); +return x_54; +} +else +{ +lean_object* x_55; lean_object* x_56; +lean_dec(x_44); +x_55 = lean_ctor_get(x_45, 0); +lean_inc(x_55); +lean_dec(x_45); +x_56 = l___private_Init_Lean_Elab_Command_8__elabCommandUsing___main(x_1, x_55, x_34, x_38); +return x_56; +} +} +else +{ +uint8_t x_57; +lean_dec(x_34); +lean_dec(x_1); +x_57 = !lean_is_exclusive(x_36); +if (x_57 == 0) +{ +return x_36; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_36, 0); +x_59 = lean_ctor_get(x_36, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_36); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +} +else +{ +uint8_t x_80; +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_80 = !lean_is_exclusive(x_32); +if (x_80 == 0) +{ +return x_32; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; +x_81 = lean_ctor_get(x_32, 0); +x_82 = lean_ctor_get(x_32, 1); +lean_inc(x_82); +lean_inc(x_81); +lean_dec(x_32); +x_83 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +return x_83; +} +} +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_84 = lean_ctor_get(x_27, 0); +x_85 = lean_ctor_get(x_27, 1); +x_86 = lean_ctor_get(x_27, 2); +x_87 = lean_ctor_get(x_27, 3); +x_88 = lean_ctor_get(x_27, 4); +lean_inc(x_88); +lean_inc(x_87); +lean_inc(x_86); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_27); +x_89 = lean_nat_add(x_87, x_24); +x_90 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_90, 0, x_84); +lean_ctor_set(x_90, 1, x_85); +lean_ctor_set(x_90, 2, x_86); +lean_ctor_set(x_90, 3, x_89); +lean_ctor_set(x_90, 4, x_88); +x_91 = l___private_Init_Lean_Elab_Command_3__setState(x_90, x_2, x_28); +if (lean_obj_tag(x_91) == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +lean_dec(x_91); +x_93 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_93, 0, x_7); +lean_ctor_set(x_93, 1, x_8); +lean_ctor_set(x_93, 2, x_9); +lean_ctor_set(x_93, 3, x_25); +lean_ctor_set(x_93, 4, x_11); +lean_ctor_set(x_93, 5, x_12); +lean_ctor_set(x_93, 6, x_87); +if (lean_obj_tag(x_1) == 1) +{ +lean_object* x_121; +lean_inc(x_93); +x_121 = l_Lean_Elab_Command_getOptions(x_93, x_92); +if (lean_obj_tag(x_121) == 0) +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; +x_122 = lean_ctor_get(x_121, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_121, 1); +lean_inc(x_123); +lean_dec(x_121); +x_124 = l_Lean_Elab_Command_elabCommandAux___closed__7; +x_125 = l_Lean_checkTraceOption(x_122, x_124); +lean_dec(x_122); +if (x_125 == 0) +{ +x_94 = x_123; +goto block_120; +} +else +{ +lean_object* x_126; lean_object* x_127; +lean_inc(x_1); +x_126 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_126, 0, x_1); +lean_inc(x_93); +x_127 = l_Lean_Elab_Command_logTrace(x_124, x_1, x_126, x_93, x_123); +if (lean_obj_tag(x_127) == 0) +{ +lean_object* x_128; +x_128 = lean_ctor_get(x_127, 1); +lean_inc(x_128); +lean_dec(x_127); +x_94 = x_128; +goto block_120; +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +lean_dec(x_93); +lean_dec(x_1); +x_129 = lean_ctor_get(x_127, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_127, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + x_131 = x_127; +} else { + lean_dec_ref(x_127); + x_131 = lean_box(0); +} +if (lean_is_scalar(x_131)) { + x_132 = lean_alloc_ctor(1, 2, 0); +} else { + x_132 = x_131; +} +lean_ctor_set(x_132, 0, x_129); +lean_ctor_set(x_132, 1, x_130); +return x_132; +} +} +} +else +{ +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +lean_dec(x_93); +lean_dec(x_1); +x_133 = lean_ctor_get(x_121, 0); +lean_inc(x_133); +x_134 = lean_ctor_get(x_121, 1); +lean_inc(x_134); +if (lean_is_exclusive(x_121)) { + lean_ctor_release(x_121, 0); + lean_ctor_release(x_121, 1); + x_135 = x_121; +} else { + lean_dec_ref(x_121); + x_135 = lean_box(0); +} +if (lean_is_scalar(x_135)) { + x_136 = lean_alloc_ctor(1, 2, 0); +} else { + x_136 = x_135; +} +lean_ctor_set(x_136, 0, x_133); +lean_ctor_set(x_136, 1, x_134); +return x_136; +} +} +else +{ +lean_object* x_137; lean_object* x_138; +x_137 = l_Lean_Elab_Command_elabCommandAux___closed__3; +x_138 = l_Lean_Elab_Command_throwError___rarg(x_1, x_137, x_93, x_92); +return x_138; +} +block_120: +{ +lean_object* x_95; +lean_inc(x_93); +x_95 = l___private_Init_Lean_Elab_Command_2__getState(x_93, x_94); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = l_Lean_Elab_Command_commandElabAttribute; +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +x_100 = lean_ctor_get(x_96, 0); +lean_inc(x_100); +lean_dec(x_96); +x_101 = l_Lean_PersistentEnvExtension_getState___rarg(x_99, x_100); +lean_dec(x_100); +lean_dec(x_99); +x_102 = lean_ctor_get(x_101, 1); +lean_inc(x_102); +lean_dec(x_101); +lean_inc(x_1); +x_103 = l_Lean_Syntax_getKind(x_1); +x_104 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__1(x_102, x_103); +if (lean_obj_tag(x_104) == 0) +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; +x_105 = l_Lean_Name_toString___closed__1; +x_106 = l_Lean_Name_toStringWithSep___main(x_105, x_103); +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); +x_109 = l_Lean_Elab_Command_elabCommandAux___closed__6; +x_110 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_110, 0, x_109); +lean_ctor_set(x_110, 1, x_108); +x_111 = l_Lean_Elab_Term_elabTerm___closed__6; +x_112 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +x_113 = l_Lean_Elab_Command_throwError___rarg(x_1, x_112, x_93, x_97); +return x_113; +} +else +{ +lean_object* x_114; lean_object* x_115; +lean_dec(x_103); +x_114 = lean_ctor_get(x_104, 0); +lean_inc(x_114); +lean_dec(x_104); +x_115 = l___private_Init_Lean_Elab_Command_8__elabCommandUsing___main(x_1, x_114, x_93, x_97); +return x_115; +} +} +else +{ +lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_93); +lean_dec(x_1); +x_116 = lean_ctor_get(x_95, 0); +lean_inc(x_116); +x_117 = lean_ctor_get(x_95, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_118 = x_95; +} else { + lean_dec_ref(x_95); + x_118 = lean_box(0); +} +if (lean_is_scalar(x_118)) { + x_119 = lean_alloc_ctor(1, 2, 0); +} else { + x_119 = x_118; +} +lean_ctor_set(x_119, 0, x_116); +lean_ctor_set(x_119, 1, x_117); +return x_119; +} +} +} +else +{ +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_87); +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_139 = lean_ctor_get(x_91, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_91, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_141 = x_91; +} else { + lean_dec_ref(x_91); + x_141 = lean_box(0); +} +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); +} else { + x_142 = x_141; +} +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; +} +} +} +else +{ +uint8_t x_143; +lean_dec(x_2); +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_143 = !lean_is_exclusive(x_26); +if (x_143 == 0) { return x_26; } else { -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_26, 0); -x_49 = lean_ctor_get(x_26, 1); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_144 = lean_ctor_get(x_26, 0); +x_145 = lean_ctor_get(x_26, 1); +lean_inc(x_145); +lean_inc(x_144); lean_dec(x_26); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; +x_146 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +return x_146; } } } else { -lean_object* x_51; lean_object* x_52; -x_51 = l_Lean_Elab_Command_elabCommand___closed__3; -x_52 = l_Lean_Elab_Command_throwError___rarg(x_1, x_51, x_2, x_6); -return x_52; -} -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_dec(x_2); -x_53 = lean_unsigned_to_nat(1u); -x_54 = lean_nat_add(x_10, x_53); +x_147 = lean_unsigned_to_nat(1u); +x_148 = lean_nat_add(x_10, x_147); lean_dec(x_10); -x_55 = lean_alloc_ctor(0, 7, 0); -lean_ctor_set(x_55, 0, x_7); -lean_ctor_set(x_55, 1, x_8); -lean_ctor_set(x_55, 2, x_9); -lean_ctor_set(x_55, 3, x_54); -lean_ctor_set(x_55, 4, x_11); -lean_ctor_set(x_55, 5, x_12); -lean_ctor_set(x_55, 6, x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_148); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +x_149 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_149, 0, x_7); +lean_ctor_set(x_149, 1, x_8); +lean_ctor_set(x_149, 2, x_9); +lean_ctor_set(x_149, 3, x_148); +lean_ctor_set(x_149, 4, x_11); +lean_ctor_set(x_149, 5, x_12); +lean_ctor_set(x_149, 6, x_13); +lean_inc(x_149); +x_150 = l___private_Init_Lean_Elab_Command_2__getState(x_149, x_6); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_151 = lean_ctor_get(x_150, 0); +lean_inc(x_151); +x_152 = lean_ctor_get(x_150, 1); +lean_inc(x_152); +lean_dec(x_150); +x_153 = lean_ctor_get(x_151, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_151, 1); +lean_inc(x_154); +x_155 = lean_ctor_get(x_151, 2); +lean_inc(x_155); +x_156 = lean_ctor_get(x_151, 3); +lean_inc(x_156); +x_157 = lean_ctor_get(x_151, 4); +lean_inc(x_157); +if (lean_is_exclusive(x_151)) { + lean_ctor_release(x_151, 0); + lean_ctor_release(x_151, 1); + lean_ctor_release(x_151, 2); + lean_ctor_release(x_151, 3); + lean_ctor_release(x_151, 4); + x_158 = x_151; +} else { + lean_dec_ref(x_151); + x_158 = lean_box(0); +} +x_159 = lean_nat_add(x_156, x_147); +if (lean_is_scalar(x_158)) { + x_160 = lean_alloc_ctor(0, 5, 0); +} else { + x_160 = x_158; +} +lean_ctor_set(x_160, 0, x_153); +lean_ctor_set(x_160, 1, x_154); +lean_ctor_set(x_160, 2, x_155); +lean_ctor_set(x_160, 3, x_159); +lean_ctor_set(x_160, 4, x_157); +x_161 = l___private_Init_Lean_Elab_Command_3__setState(x_160, x_149, x_152); +if (lean_obj_tag(x_161) == 0) +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +lean_dec(x_161); +x_163 = lean_alloc_ctor(0, 7, 0); +lean_ctor_set(x_163, 0, x_7); +lean_ctor_set(x_163, 1, x_8); +lean_ctor_set(x_163, 2, x_9); +lean_ctor_set(x_163, 3, x_148); +lean_ctor_set(x_163, 4, x_11); +lean_ctor_set(x_163, 5, x_12); +lean_ctor_set(x_163, 6, x_156); if (lean_obj_tag(x_1) == 1) { -lean_object* x_56; -lean_inc(x_55); -x_56 = l___private_Init_Lean_Elab_Command_2__getState(x_55, x_6); -if (lean_obj_tag(x_56) == 0) +lean_object* x_191; +lean_inc(x_163); +x_191 = l_Lean_Elab_Command_getOptions(x_163, x_162); +if (lean_obj_tag(x_191) == 0) { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_57 = lean_ctor_get(x_56, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_56, 1); -lean_inc(x_58); -lean_dec(x_56); -x_59 = l_Lean_Elab_Command_commandElabAttribute; -x_60 = lean_ctor_get(x_59, 1); -lean_inc(x_60); -x_61 = lean_ctor_get(x_57, 0); -lean_inc(x_61); -lean_dec(x_57); -x_62 = l_Lean_PersistentEnvExtension_getState___rarg(x_60, x_61); -lean_dec(x_61); -lean_dec(x_60); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); +lean_object* x_192; lean_object* x_193; lean_object* x_194; uint8_t x_195; +x_192 = lean_ctor_get(x_191, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_191, 1); +lean_inc(x_193); +lean_dec(x_191); +x_194 = l_Lean_Elab_Command_elabCommandAux___closed__7; +x_195 = l_Lean_checkTraceOption(x_192, x_194); +lean_dec(x_192); +if (x_195 == 0) +{ +x_164 = x_193; +goto block_190; +} +else +{ +lean_object* x_196; lean_object* x_197; lean_inc(x_1); -x_64 = l_Lean_Syntax_getKind(x_1); -x_65 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__1(x_63, x_64); -if (lean_obj_tag(x_65) == 0) +x_196 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_196, 0, x_1); +lean_inc(x_163); +x_197 = l_Lean_Elab_Command_logTrace(x_194, x_1, x_196, x_163, x_193); +if (lean_obj_tag(x_197) == 0) { -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_66 = l_Lean_Name_toString___closed__1; -x_67 = l_Lean_Name_toStringWithSep___main(x_66, x_64); -x_68 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_68, 0, x_67); -x_69 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_69, 0, x_68); -x_70 = l_Lean_Elab_Command_elabCommand___closed__6; -x_71 = lean_alloc_ctor(8, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_69); -x_72 = l_Lean_Elab_Term_elabTerm___closed__6; -x_73 = lean_alloc_ctor(8, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -x_74 = l_Lean_Elab_Command_throwError___rarg(x_1, x_73, x_55, x_58); -return x_74; +lean_object* x_198; +x_198 = lean_ctor_get(x_197, 1); +lean_inc(x_198); +lean_dec(x_197); +x_164 = x_198; +goto block_190; } else { -lean_object* x_75; lean_object* x_76; -lean_dec(x_64); -x_75 = lean_ctor_get(x_65, 0); -lean_inc(x_75); -lean_dec(x_65); -x_76 = l___private_Init_Lean_Elab_Command_8__elabCommandUsing___main(x_1, x_75, x_55, x_58); -return x_76; -} -} -else -{ -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_55); +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +lean_dec(x_163); lean_dec(x_1); -x_77 = lean_ctor_get(x_56, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_56, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_56)) { - lean_ctor_release(x_56, 0); - lean_ctor_release(x_56, 1); - x_79 = x_56; +x_199 = lean_ctor_get(x_197, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_197, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_197)) { + lean_ctor_release(x_197, 0); + lean_ctor_release(x_197, 1); + x_201 = x_197; } else { - lean_dec_ref(x_56); - x_79 = lean_box(0); + lean_dec_ref(x_197); + x_201 = lean_box(0); } -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(1, 2, 0); } else { - x_80 = x_79; + x_202 = x_201; } -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_78); -return x_80; -} -} -else -{ -lean_object* x_81; lean_object* x_82; -x_81 = l_Lean_Elab_Command_elabCommand___closed__3; -x_82 = l_Lean_Elab_Command_throwError___rarg(x_1, x_81, x_55, x_6); -return x_82; +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +return x_202; } } } else { -lean_object* x_83; lean_object* x_84; uint8_t x_85; +lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; +lean_dec(x_163); +lean_dec(x_1); +x_203 = lean_ctor_get(x_191, 0); +lean_inc(x_203); +x_204 = lean_ctor_get(x_191, 1); +lean_inc(x_204); +if (lean_is_exclusive(x_191)) { + lean_ctor_release(x_191, 0); + lean_ctor_release(x_191, 1); + x_205 = x_191; +} else { + lean_dec_ref(x_191); + x_205 = lean_box(0); +} +if (lean_is_scalar(x_205)) { + x_206 = lean_alloc_ctor(1, 2, 0); +} else { + x_206 = x_205; +} +lean_ctor_set(x_206, 0, x_203); +lean_ctor_set(x_206, 1, x_204); +return x_206; +} +} +else +{ +lean_object* x_207; lean_object* x_208; +x_207 = l_Lean_Elab_Command_elabCommandAux___closed__3; +x_208 = l_Lean_Elab_Command_throwError___rarg(x_1, x_207, x_163, x_162); +return x_208; +} +block_190: +{ +lean_object* x_165; +lean_inc(x_163); +x_165 = l___private_Init_Lean_Elab_Command_2__getState(x_163, x_164); +if (lean_obj_tag(x_165) == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_166 = lean_ctor_get(x_165, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 1); +lean_inc(x_167); +lean_dec(x_165); +x_168 = l_Lean_Elab_Command_commandElabAttribute; +x_169 = lean_ctor_get(x_168, 1); +lean_inc(x_169); +x_170 = lean_ctor_get(x_166, 0); +lean_inc(x_170); +lean_dec(x_166); +x_171 = l_Lean_PersistentEnvExtension_getState___rarg(x_169, x_170); +lean_dec(x_170); +lean_dec(x_169); +x_172 = lean_ctor_get(x_171, 1); +lean_inc(x_172); +lean_dec(x_171); +lean_inc(x_1); +x_173 = l_Lean_Syntax_getKind(x_1); +x_174 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__1(x_172, x_173); +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; lean_object* x_182; lean_object* x_183; +x_175 = l_Lean_Name_toString___closed__1; +x_176 = l_Lean_Name_toStringWithSep___main(x_175, x_173); +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); +x_179 = l_Lean_Elab_Command_elabCommandAux___closed__6; +x_180 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_180, 0, x_179); +lean_ctor_set(x_180, 1, x_178); +x_181 = l_Lean_Elab_Term_elabTerm___closed__6; +x_182 = lean_alloc_ctor(8, 2, 0); +lean_ctor_set(x_182, 0, x_180); +lean_ctor_set(x_182, 1, x_181); +x_183 = l_Lean_Elab_Command_throwError___rarg(x_1, x_182, x_163, x_167); +return x_183; +} +else +{ +lean_object* x_184; lean_object* x_185; +lean_dec(x_173); +x_184 = lean_ctor_get(x_174, 0); +lean_inc(x_184); +lean_dec(x_174); +x_185 = l___private_Init_Lean_Elab_Command_8__elabCommandUsing___main(x_1, x_184, x_163, x_167); +return x_185; +} +} +else +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; +lean_dec(x_163); +lean_dec(x_1); +x_186 = lean_ctor_get(x_165, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_165, 1); +lean_inc(x_187); +if (lean_is_exclusive(x_165)) { + lean_ctor_release(x_165, 0); + lean_ctor_release(x_165, 1); + x_188 = x_165; +} else { + lean_dec_ref(x_165); + x_188 = lean_box(0); +} +if (lean_is_scalar(x_188)) { + x_189 = lean_alloc_ctor(1, 2, 0); +} else { + x_189 = x_188; +} +lean_ctor_set(x_189, 0, x_186); +lean_ctor_set(x_189, 1, x_187); +return x_189; +} +} +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; +lean_dec(x_156); +lean_dec(x_148); +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_209 = lean_ctor_get(x_161, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_161, 1); +lean_inc(x_210); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_211 = x_161; +} else { + lean_dec_ref(x_161); + x_211 = lean_box(0); +} +if (lean_is_scalar(x_211)) { + x_212 = lean_alloc_ctor(1, 2, 0); +} else { + x_212 = x_211; +} +lean_ctor_set(x_212, 0, x_209); +lean_ctor_set(x_212, 1, x_210); +return x_212; +} +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +lean_dec(x_149); +lean_dec(x_148); +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_213 = lean_ctor_get(x_150, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_150, 1); +lean_inc(x_214); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_215 = x_150; +} else { + lean_dec_ref(x_150); + x_215 = lean_box(0); +} +if (lean_is_scalar(x_215)) { + x_216 = lean_alloc_ctor(1, 2, 0); +} else { + x_216 = x_215; +} +lean_ctor_set(x_216, 0, x_213); +lean_ctor_set(x_216, 1, x_214); +return x_216; +} +} +} +else +{ +lean_object* x_217; lean_object* x_218; uint8_t x_219; lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); @@ -4739,114 +5864,214 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); -x_83 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; -x_84 = l_Lean_Elab_Command_throwError___rarg(x_1, x_83, x_2, x_6); -x_85 = !lean_is_exclusive(x_84); -if (x_85 == 0) +x_217 = l_Lean_Elab_Term_withIncRecDepth___rarg___closed__2; +x_218 = l_Lean_Elab_Command_throwError___rarg(x_1, x_217, x_2, x_6); +x_219 = !lean_is_exclusive(x_218); +if (x_219 == 0) { -return x_84; +return x_218; } else { -lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_86 = lean_ctor_get(x_84, 0); -x_87 = lean_ctor_get(x_84, 1); -lean_inc(x_87); -lean_inc(x_86); -lean_dec(x_84); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_86); -lean_ctor_set(x_88, 1, x_87); -return x_88; +lean_object* x_220; lean_object* x_221; lean_object* x_222; +x_220 = lean_ctor_get(x_218, 0); +x_221 = lean_ctor_get(x_218, 1); +lean_inc(x_221); +lean_inc(x_220); +lean_dec(x_218); +x_222 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_222, 0, x_220); +lean_ctor_set(x_222, 1, x_221); +return x_222; } } } else { -uint8_t x_89; +uint8_t x_223; lean_dec(x_2); lean_dec(x_1); -x_89 = !lean_is_exclusive(x_4); -if (x_89 == 0) +x_223 = !lean_is_exclusive(x_4); +if (x_223 == 0) { return x_4; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_4, 0); -x_91 = lean_ctor_get(x_4, 1); -lean_inc(x_91); -lean_inc(x_90); +lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_224 = lean_ctor_get(x_4, 0); +x_225 = lean_ctor_get(x_4, 1); +lean_inc(x_225); +lean_inc(x_224); lean_dec(x_4); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; +x_226 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_226, 0, x_224); +lean_ctor_set(x_226, 1, x_225); +return x_226; } } } } -lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommand___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommandAux___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommand___spec__4(x_1, x_2, x_3, x_4, x_5); +x_6 = l_PersistentHashMap_findAtAux___main___at_Lean_Elab_Command_elabCommandAux___spec__4(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); return x_6; } } -lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommand___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommandAux___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; lean_object* x_5; x_4 = lean_unbox_usize(x_2); lean_dec(x_2); -x_5 = l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommand___spec__3(x_1, x_4, x_3); +x_5 = l_PersistentHashMap_findAux___main___at_Lean_Elab_Command_elabCommandAux___spec__3(x_1, x_4, x_3); lean_dec(x_3); return x_5; } } -lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__2(x_1, x_2); +x_3 = l_PersistentHashMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__2(x_1, x_2); lean_dec(x_2); return x_3; } } -lean_object* l_AssocList_find___main___at_Lean_Elab_Command_elabCommand___spec__6___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_AssocList_find___main___at_Lean_Elab_Command_elabCommandAux___spec__6___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_AssocList_find___main___at_Lean_Elab_Command_elabCommand___spec__6(x_1, x_2); +x_3 = l_AssocList_find___main___at_Lean_Elab_Command_elabCommandAux___spec__6(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommand___spec__5___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__5___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommand___spec__5(x_1, x_2); +x_3 = l_HashMapImp_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__5(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommand___spec__1(x_1, x_2); +x_3 = l_Lean_SMap_find_x3f___at_Lean_Elab_Command_elabCommandAux___spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } +lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_1); +x_6 = lean_nat_dec_lt(x_2, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; +lean_dec(x_3); +lean_dec(x_2); +x_7 = lean_box(0); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_7); +lean_ctor_set(x_8, 1, x_4); +return x_8; +} +else +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_array_fget(x_1, x_2); +lean_inc(x_3); +x_10 = l_Lean_Elab_Command_elabCommandAux(x_9, x_3, x_4); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_unsigned_to_nat(1u); +x_13 = lean_nat_add(x_2, x_12); +lean_dec(x_2); +x_2 = x_13; +x_4 = x_11; +goto _start; +} +else +{ +uint8_t x_15; +lean_dec(x_3); +lean_dec(x_2); +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) +{ +return x_10; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +} +} +} +lean_object* l_Lean_Elab_Command_elabCommand(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; lean_object* x_5; uint8_t x_6; +lean_inc(x_1); +x_4 = l_Lean_Syntax_getKind(x_1); +x_5 = l_Lean_nullKind; +x_6 = lean_name_eq(x_4, x_5); +lean_dec(x_4); +if (x_6 == 0) +{ +lean_object* x_7; +x_7 = l_Lean_Elab_Command_elabCommandAux(x_1, x_2, x_3); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = l_Lean_Syntax_getArgs(x_1); +lean_dec(x_1); +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___spec__1(x_8, x_9, x_2, x_3); +lean_dec(x_8); +return x_10; +} +} +} +lean_object* l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Array_forMAux___main___at_Lean_Elab_Command_elabCommand___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} lean_object* l_Lean_Elab_Command_withMacroExpansion___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -10013,225 +11238,6 @@ return x_14; } } } -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logUnknownDecl___spec__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; -x_6 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_6, 0, x_1); -lean_inc(x_4); -x_7 = l_Lean_Elab_mkMessageAt___at_Lean_Elab_Command_throwError___spec__3(x_3, x_2, x_6, x_4, x_5); -lean_dec(x_6); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -lean_inc(x_4); -x_10 = l___private_Init_Lean_Elab_Command_2__getState(x_4, x_9); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_13 = !lean_is_exclusive(x_11); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_11, 1); -x_15 = l_PersistentArray_push___rarg(x_14, x_8); -lean_ctor_set(x_11, 1, x_15); -x_16 = l___private_Init_Lean_Elab_Command_3__setState(x_11, x_4, x_12); -if (lean_obj_tag(x_16) == 0) -{ -uint8_t x_17; -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 0); -lean_dec(x_18); -x_19 = lean_box(0); -lean_ctor_set(x_16, 0, x_19); -return x_16; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_dec(x_16); -x_21 = lean_box(0); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_20); -return x_22; -} -} -else -{ -uint8_t x_23; -x_23 = !lean_is_exclusive(x_16); -if (x_23 == 0) -{ -return x_16; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_16, 0); -x_25 = lean_ctor_get(x_16, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_16); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_27 = lean_ctor_get(x_11, 0); -x_28 = lean_ctor_get(x_11, 1); -x_29 = lean_ctor_get(x_11, 2); -x_30 = lean_ctor_get(x_11, 3); -x_31 = lean_ctor_get(x_11, 4); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_29); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_11); -x_32 = l_PersistentArray_push___rarg(x_28, x_8); -x_33 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_33, 0, x_27); -lean_ctor_set(x_33, 1, x_32); -lean_ctor_set(x_33, 2, x_29); -lean_ctor_set(x_33, 3, x_30); -lean_ctor_set(x_33, 4, x_31); -x_34 = l___private_Init_Lean_Elab_Command_3__setState(x_33, x_4, x_12); -if (lean_obj_tag(x_34) == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_35 = lean_ctor_get(x_34, 1); -lean_inc(x_35); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_36 = x_34; -} else { - lean_dec_ref(x_34); - x_36 = lean_box(0); -} -x_37 = lean_box(0); -if (lean_is_scalar(x_36)) { - x_38 = lean_alloc_ctor(0, 2, 0); -} else { - x_38 = x_36; -} -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_35); -return x_38; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_34, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_34, 1); -lean_inc(x_40); -if (lean_is_exclusive(x_34)) { - lean_ctor_release(x_34, 0); - lean_ctor_release(x_34, 1); - x_41 = x_34; -} else { - lean_dec_ref(x_34); - x_41 = lean_box(0); -} -if (lean_is_scalar(x_41)) { - x_42 = lean_alloc_ctor(1, 2, 0); -} else { - x_42 = x_41; -} -lean_ctor_set(x_42, 0, x_39); -lean_ctor_set(x_42, 1, x_40); -return x_42; -} -} -} -else -{ -uint8_t x_43; -lean_dec(x_8); -lean_dec(x_4); -x_43 = !lean_is_exclusive(x_10); -if (x_43 == 0) -{ -return x_10; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_44 = lean_ctor_get(x_10, 0); -x_45 = lean_ctor_get(x_10, 1); -lean_inc(x_45); -lean_inc(x_44); -lean_dec(x_10); -x_46 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_46, 0, x_44); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -} -else -{ -uint8_t x_47; -lean_dec(x_4); -x_47 = !lean_is_exclusive(x_7); -if (x_47 == 0) -{ -return x_7; -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_7, 0); -x_49 = lean_ctor_get(x_7, 1); -lean_inc(x_49); -lean_inc(x_48); -lean_dec(x_7); -x_50 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -return x_50; -} -} -} -} -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_logUnknownDecl___spec__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = l_Lean_Elab_getPos___at_Lean_Elab_Command_throwError___spec__2(x_1, x_4, x_5); -x_7 = lean_ctor_get(x_6, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_6, 1); -lean_inc(x_8); -lean_dec(x_6); -x_9 = l_Lean_Elab_logAt___at_Lean_Elab_Command_logUnknownDecl___spec__2(x_7, x_2, x_3, x_4, x_8); -return x_9; -} -} lean_object* _init_l_Lean_Elab_Command_logUnknownDecl___closed__1() { _start: { @@ -10271,31 +11277,10 @@ x_12 = lean_alloc_ctor(8, 2, 0); lean_ctor_set(x_12, 0, x_10); lean_ctor_set(x_12, 1, x_11); x_13 = 2; -x_14 = l_Lean_Elab_log___at_Lean_Elab_Command_logUnknownDecl___spec__1(x_1, x_13, x_12, x_3, x_4); +x_14 = l_Lean_Elab_log___at_Lean_Elab_Command_logTrace___spec__1(x_1, x_13, x_12, x_3, x_4); return x_14; } } -lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logUnknownDecl___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; -x_6 = lean_unbox(x_2); -lean_dec(x_2); -x_7 = l_Lean_Elab_logAt___at_Lean_Elab_Command_logUnknownDecl___spec__2(x_1, x_6, x_3, x_4, x_5); -return x_7; -} -} -lean_object* l_Lean_Elab_log___at_Lean_Elab_Command_logUnknownDecl___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; -x_6 = lean_unbox(x_2); -lean_dec(x_2); -x_7 = l_Lean_Elab_log___at_Lean_Elab_Command_logUnknownDecl___spec__1(x_1, x_6, x_3, x_4, x_5); -lean_dec(x_1); -return x_7; -} -} lean_object* l_Lean_Elab_Command_logUnknownDecl___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -17557,7 +18542,7 @@ x_17 = lean_alloc_ctor(8, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_15); x_18 = 2; -x_19 = l_Lean_Elab_log___at_Lean_Elab_Command_logUnknownDecl___spec__1(x_7, x_18, x_17, x_2, x_3); +x_19 = l_Lean_Elab_log___at_Lean_Elab_Command_logTrace___spec__1(x_7, x_18, x_17, x_2, x_3); lean_dec(x_7); return x_19; } @@ -20029,65 +21014,65 @@ lean_inc(x_3); x_9 = l_Lean_Elab_Command_getLevelNames(x_3, x_4); if (lean_obj_tag(x_9) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_98; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_102; x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_98 = l_Lean_Syntax_isNone(x_8); -if (x_98 == 0) +x_102 = l_Lean_Syntax_isNone(x_8); +if (x_102 == 0) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_99 = l_Lean_Syntax_getArg(x_8, x_7); +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_103 = l_Lean_Syntax_getArg(x_8, x_7); lean_dec(x_8); -x_100 = l_Lean_Syntax_getArgs(x_99); -lean_dec(x_99); -x_101 = lean_unsigned_to_nat(2u); -x_102 = l_Array_empty___closed__1; -x_103 = l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(x_101, x_100, x_5, x_102); -lean_dec(x_100); +x_104 = l_Lean_Syntax_getArgs(x_103); +lean_dec(x_103); +x_105 = lean_unsigned_to_nat(2u); +x_106 = l_Array_empty___closed__1; +x_107 = l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(x_105, x_104, x_5, x_106); +lean_dec(x_104); lean_inc(x_3); lean_inc(x_10); -x_104 = l_Array_iterateMAux___main___at_Lean_Elab_Command_withDeclId___spec__5(x_1, x_103, x_5, x_10, x_3, x_11); -lean_dec(x_103); -if (lean_obj_tag(x_104) == 0) +x_108 = l_Array_iterateMAux___main___at_Lean_Elab_Command_withDeclId___spec__5(x_1, x_107, x_5, x_10, x_3, x_11); +lean_dec(x_107); +if (lean_obj_tag(x_108) == 0) { -lean_object* x_105; lean_object* x_106; -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_12 = x_105; -x_13 = x_106; -goto block_97; +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_12 = x_109; +x_13 = x_110; +goto block_101; } else { -uint8_t x_107; +uint8_t x_111; lean_dec(x_10); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_107 = !lean_is_exclusive(x_104); -if (x_107 == 0) +x_111 = !lean_is_exclusive(x_108); +if (x_111 == 0) { -return x_104; +return x_108; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_104, 0); -x_109 = lean_ctor_get(x_104, 1); -lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_104); -x_110 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -return x_110; +lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_112 = lean_ctor_get(x_108, 0); +x_113 = lean_ctor_get(x_108, 1); +lean_inc(x_113); +lean_inc(x_112); +lean_dec(x_108); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_112); +lean_ctor_set(x_114, 1, x_113); +return x_114; } } } @@ -20097,370 +21082,349 @@ lean_dec(x_8); lean_inc(x_10); x_12 = x_10; x_13 = x_11; -goto block_97; +goto block_101; } -block_97: +block_101: { -if (lean_obj_tag(x_6) == 1) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_14 = lean_ctor_get(x_6, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_6, 1); +lean_object* x_14; lean_object* x_15; +x_14 = l_Lean_extractMacroScopes(x_6); +x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -lean_dec(x_6); -x_16 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; -x_17 = 1; -lean_inc(x_3); -lean_inc(x_14); -x_18 = l___private_Init_Lean_Elab_Command_14__addScopes___main(x_1, x_16, x_17, x_14, x_3, x_13); -if (lean_obj_tag(x_18) == 0) +if (lean_obj_tag(x_15) == 1) { -lean_object* x_19; lean_object* x_20; -x_19 = lean_ctor_get(x_18, 1); -lean_inc(x_19); -lean_dec(x_18); +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_box(0); +x_20 = lean_name_mk_string(x_19, x_18); +x_21 = l_List_foldl___main___at_Lean_addMacroScopes___spec__1(x_20, x_16); +x_22 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; +x_23 = 1; lean_inc(x_3); -x_20 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__1(x_12, x_3, x_19); -if (lean_obj_tag(x_20) == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_20, 1); -lean_inc(x_21); -lean_dec(x_20); -x_22 = lean_box(0); -x_23 = lean_name_mk_string(x_22, x_15); -lean_inc(x_3); -x_24 = lean_apply_3(x_2, x_23, x_3, x_21); +lean_inc(x_17); +x_24 = l___private_Init_Lean_Elab_Command_14__addScopes___main(x_1, x_22, x_23, x_17, x_3, x_13); if (lean_obj_tag(x_24) == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_24, 0); +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); lean_dec(x_24); lean_inc(x_3); -lean_inc(x_10); -x_27 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__2(x_10, x_3, x_26); -if (lean_obj_tag(x_27) == 0) +x_26 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__1(x_12, x_3, x_25); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_28; lean_object* x_29; -lean_dec(x_10); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); lean_inc(x_3); -x_29 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_28); -if (lean_obj_tag(x_29) == 0) +x_28 = lean_apply_3(x_2, x_21, x_3, x_27); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_29, 0); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = !lean_is_exclusive(x_30); -if (x_32 == 0) +lean_dec(x_28); +lean_inc(x_3); +lean_inc(x_10); +x_31 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__2(x_10, x_3, x_30); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_ctor_get(x_30, 2); -x_34 = l_Lean_Name_getNumParts___main(x_14); -lean_dec(x_14); -x_35 = l_List_drop___main___rarg(x_34, x_33); +lean_object* x_32; lean_object* x_33; +lean_dec(x_10); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +lean_inc(x_3); +x_33 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_32); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); lean_dec(x_33); -lean_ctor_set(x_30, 2, x_35); -x_36 = l___private_Init_Lean_Elab_Command_3__setState(x_30, x_3, x_31); -if (lean_obj_tag(x_36) == 0) +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -lean_ctor_set(x_36, 0, x_25); -return x_36; -} -else -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_25); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -else +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = lean_ctor_get(x_34, 2); +x_38 = l_Lean_Name_getNumParts___main(x_17); +lean_dec(x_17); +x_39 = l_List_drop___main___rarg(x_38, x_37); +lean_dec(x_37); +lean_ctor_set(x_34, 2, x_39); +x_40 = l___private_Init_Lean_Elab_Command_3__setState(x_34, x_3, x_35); +if (lean_obj_tag(x_40) == 0) { uint8_t x_41; -lean_dec(x_25); -x_41 = !lean_is_exclusive(x_36); +x_41 = !lean_is_exclusive(x_40); if (x_41 == 0) { -return x_36; +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_29); +return x_40; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_36, 0); -x_43 = lean_ctor_get(x_36, 1); +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_36); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_29); lean_ctor_set(x_44, 1, x_43); return x_44; } } +else +{ +uint8_t x_45; +lean_dec(x_29); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) +{ +return x_40; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_45 = lean_ctor_get(x_30, 0); -x_46 = lean_ctor_get(x_30, 1); -x_47 = lean_ctor_get(x_30, 2); -x_48 = lean_ctor_get(x_30, 3); -x_49 = lean_ctor_get(x_30, 4); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_40, 0); +x_47 = lean_ctor_get(x_40, 1); lean_inc(x_47); lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_30); -x_50 = l_Lean_Name_getNumParts___main(x_14); -lean_dec(x_14); -x_51 = l_List_drop___main___rarg(x_50, x_47); -lean_dec(x_47); -x_52 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_52, 0, x_45); -lean_ctor_set(x_52, 1, x_46); -lean_ctor_set(x_52, 2, x_51); -lean_ctor_set(x_52, 3, x_48); -lean_ctor_set(x_52, 4, x_49); -x_53 = l___private_Init_Lean_Elab_Command_3__setState(x_52, x_3, x_31); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; -} else { - lean_dec_ref(x_53); - x_55 = lean_box(0); +lean_dec(x_40); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_55; } -lean_ctor_set(x_56, 0, x_25); -lean_ctor_set(x_56, 1, x_54); -return x_56; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_25); -x_57 = lean_ctor_get(x_53, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_53, 1); +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; +x_49 = lean_ctor_get(x_34, 0); +x_50 = lean_ctor_get(x_34, 1); +x_51 = lean_ctor_get(x_34, 2); +x_52 = lean_ctor_get(x_34, 3); +x_53 = lean_ctor_get(x_34, 4); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_34); +x_54 = l_Lean_Name_getNumParts___main(x_17); +lean_dec(x_17); +x_55 = l_List_drop___main___rarg(x_54, x_51); +lean_dec(x_51); +x_56 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_56, 0, x_49); +lean_ctor_set(x_56, 1, x_50); +lean_ctor_set(x_56, 2, x_55); +lean_ctor_set(x_56, 3, x_52); +lean_ctor_set(x_56, 4, x_53); +x_57 = l___private_Init_Lean_Elab_Command_3__setState(x_56, x_3, x_35); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_59 = x_53; +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_59 = x_57; } else { - lean_dec_ref(x_53); + lean_dec_ref(x_57); x_59 = lean_box(0); } if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); + x_60 = lean_alloc_ctor(0, 2, 0); } else { x_60 = x_59; } -lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 0, x_29); lean_ctor_set(x_60, 1, x_58); return x_60; } -} -} else { -uint8_t x_61; -lean_dec(x_25); -lean_dec(x_14); -lean_dec(x_3); -x_61 = !lean_is_exclusive(x_29); -if (x_61 == 0) -{ -return x_29; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_29, 0); -x_63 = lean_ctor_get(x_29, 1); -lean_inc(x_63); -lean_inc(x_62); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_dec(x_29); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); +x_61 = lean_ctor_get(x_57, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_57, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_63 = x_57; +} else { + lean_dec_ref(x_57); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); return x_64; } } } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_25); -lean_dec(x_14); -x_65 = lean_ctor_get(x_27, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_27, 1); +uint8_t x_65; +lean_dec(x_29); +lean_dec(x_17); +lean_dec(x_3); +x_65 = !lean_is_exclusive(x_33); +if (x_65 == 0) +{ +return x_33; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_33, 0); +x_67 = lean_ctor_get(x_33, 1); +lean_inc(x_67); lean_inc(x_66); -lean_dec(x_27); -x_67 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__3(x_10, x_3, x_66); -if (lean_obj_tag(x_67) == 0) -{ -uint8_t x_68; -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -lean_ctor_set_tag(x_67, 1); -lean_ctor_set(x_67, 0, x_65); -return x_67; +lean_dec(x_33); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} } else { -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_67, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_29); +lean_dec(x_17); +x_69 = lean_ctor_get(x_31, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_31, 1); lean_inc(x_70); -lean_dec(x_67); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_65); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -else +lean_dec(x_31); +x_71 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__3(x_10, x_3, x_70); +if (lean_obj_tag(x_71) == 0) { uint8_t x_72; -lean_dec(x_65); -x_72 = !lean_is_exclusive(x_67); +x_72 = !lean_is_exclusive(x_71); if (x_72 == 0) { -return x_67; +lean_object* x_73; +x_73 = lean_ctor_get(x_71, 0); +lean_dec(x_73); +lean_ctor_set_tag(x_71, 1); +lean_ctor_set(x_71, 0, x_69); +return x_71; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_67, 0); -x_74 = lean_ctor_get(x_67, 1); +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_71, 1); lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_67); +lean_dec(x_71); x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 0, x_69); lean_ctor_set(x_75, 1, x_74); return x_75; } } -} +else +{ +uint8_t x_76; +lean_dec(x_69); +x_76 = !lean_is_exclusive(x_71); +if (x_76 == 0) +{ +return x_71; } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; -lean_dec(x_14); -x_76 = lean_ctor_get(x_24, 0); -lean_inc(x_76); -x_77 = lean_ctor_get(x_24, 1); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_71, 0); +x_78 = lean_ctor_get(x_71, 1); +lean_inc(x_78); lean_inc(x_77); -lean_dec(x_24); -x_78 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__4(x_10, x_3, x_77); -if (lean_obj_tag(x_78) == 0) -{ -uint8_t x_79; -x_79 = !lean_is_exclusive(x_78); -if (x_79 == 0) -{ -lean_object* x_80; -x_80 = lean_ctor_get(x_78, 0); -lean_dec(x_80); -lean_ctor_set_tag(x_78, 1); -lean_ctor_set(x_78, 0, x_76); -return x_78; +lean_dec(x_71); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; +} +} +} } else { -lean_object* x_81; lean_object* x_82; -x_81 = lean_ctor_get(x_78, 1); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +lean_dec(x_17); +x_80 = lean_ctor_get(x_28, 0); +lean_inc(x_80); +x_81 = lean_ctor_get(x_28, 1); lean_inc(x_81); -lean_dec(x_78); -x_82 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_82, 0, x_76); -lean_ctor_set(x_82, 1, x_81); -return x_82; -} -} -else +lean_dec(x_28); +x_82 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__4(x_10, x_3, x_81); +if (lean_obj_tag(x_82) == 0) { uint8_t x_83; -lean_dec(x_76); -x_83 = !lean_is_exclusive(x_78); +x_83 = !lean_is_exclusive(x_82); if (x_83 == 0) { -return x_78; +lean_object* x_84; +x_84 = lean_ctor_get(x_82, 0); +lean_dec(x_84); +lean_ctor_set_tag(x_82, 1); +lean_ctor_set(x_82, 0, x_80); +return x_82; } else { -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_78, 0); -x_85 = lean_ctor_get(x_78, 1); +lean_object* x_85; lean_object* x_86; +x_85 = lean_ctor_get(x_82, 1); lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_78); +lean_dec(x_82); x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 0, x_80); lean_ctor_set(x_86, 1, x_85); return x_86; } } -} -} else { uint8_t x_87; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -x_87 = !lean_is_exclusive(x_20); +lean_dec(x_80); +x_87 = !lean_is_exclusive(x_82); if (x_87 == 0) { -return x_20; +return x_82; } else { lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_20, 0); -x_89 = lean_ctor_get(x_20, 1); +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); lean_inc(x_89); lean_inc(x_88); -lean_dec(x_20); +lean_dec(x_82); x_90 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_90, 0, x_88); lean_ctor_set(x_90, 1, x_89); @@ -20468,28 +21432,28 @@ return x_90; } } } +} else { uint8_t x_91; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_12); +lean_dec(x_21); +lean_dec(x_17); lean_dec(x_10); lean_dec(x_3); lean_dec(x_2); -x_91 = !lean_is_exclusive(x_18); +x_91 = !lean_is_exclusive(x_26); if (x_91 == 0) { -return x_18; +return x_26; } else { lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_18, 0); -x_93 = lean_ctor_get(x_18, 1); +x_92 = lean_ctor_get(x_26, 0); +x_93 = lean_ctor_get(x_26, 1); lean_inc(x_93); lean_inc(x_92); -lean_dec(x_18); +lean_dec(x_26); x_94 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_94, 0, x_92); lean_ctor_set(x_94, 1, x_93); @@ -20499,42 +21463,72 @@ return x_94; } else { -lean_object* x_95; lean_object* x_96; +uint8_t x_95; +lean_dec(x_21); +lean_dec(x_17); lean_dec(x_12); lean_dec(x_10); -lean_dec(x_6); +lean_dec(x_3); lean_dec(x_2); -x_95 = l_Lean_Elab_Command_withDeclId___closed__3; -x_96 = l_Lean_Elab_Command_throwError___rarg(x_1, x_95, x_3, x_13); -return x_96; +x_95 = !lean_is_exclusive(x_24); +if (x_95 == 0) +{ +return x_24; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_24, 0); +x_97 = lean_ctor_get(x_24, 1); +lean_inc(x_97); +lean_inc(x_96); +lean_dec(x_24); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; } } } else { -uint8_t x_111; +lean_object* x_99; lean_object* x_100; +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_2); +x_99 = l_Lean_Elab_Command_withDeclId___closed__3; +x_100 = l_Lean_Elab_Command_throwError___rarg(x_1, x_99, x_3, x_13); +return x_100; +} +} +} +else +{ +uint8_t x_115; lean_dec(x_8); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_111 = !lean_is_exclusive(x_9); -if (x_111 == 0) +x_115 = !lean_is_exclusive(x_9); +if (x_115 == 0) { return x_9; } else { -lean_object* x_112; lean_object* x_113; lean_object* x_114; -x_112 = lean_ctor_get(x_9, 0); -x_113 = lean_ctor_get(x_9, 1); -lean_inc(x_113); -lean_inc(x_112); +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_9, 0); +x_117 = lean_ctor_get(x_9, 1); +lean_inc(x_117); +lean_inc(x_116); lean_dec(x_9); -x_114 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -return x_114; +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_116); +lean_ctor_set(x_118, 1, x_117); +return x_118; } } } @@ -21289,18 +22283,20 @@ if (lean_io_result_is_error(res)) return res; l_Lean_Elab_Command_commandElabAttribute = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_Elab_Command_commandElabAttribute); lean_dec_ref(res); -l_Lean_Elab_Command_elabCommand___closed__1 = _init_l_Lean_Elab_Command_elabCommand___closed__1(); -lean_mark_persistent(l_Lean_Elab_Command_elabCommand___closed__1); -l_Lean_Elab_Command_elabCommand___closed__2 = _init_l_Lean_Elab_Command_elabCommand___closed__2(); -lean_mark_persistent(l_Lean_Elab_Command_elabCommand___closed__2); -l_Lean_Elab_Command_elabCommand___closed__3 = _init_l_Lean_Elab_Command_elabCommand___closed__3(); -lean_mark_persistent(l_Lean_Elab_Command_elabCommand___closed__3); -l_Lean_Elab_Command_elabCommand___closed__4 = _init_l_Lean_Elab_Command_elabCommand___closed__4(); -lean_mark_persistent(l_Lean_Elab_Command_elabCommand___closed__4); -l_Lean_Elab_Command_elabCommand___closed__5 = _init_l_Lean_Elab_Command_elabCommand___closed__5(); -lean_mark_persistent(l_Lean_Elab_Command_elabCommand___closed__5); -l_Lean_Elab_Command_elabCommand___closed__6 = _init_l_Lean_Elab_Command_elabCommand___closed__6(); -lean_mark_persistent(l_Lean_Elab_Command_elabCommand___closed__6); +l_Lean_Elab_Command_elabCommandAux___closed__1 = _init_l_Lean_Elab_Command_elabCommandAux___closed__1(); +lean_mark_persistent(l_Lean_Elab_Command_elabCommandAux___closed__1); +l_Lean_Elab_Command_elabCommandAux___closed__2 = _init_l_Lean_Elab_Command_elabCommandAux___closed__2(); +lean_mark_persistent(l_Lean_Elab_Command_elabCommandAux___closed__2); +l_Lean_Elab_Command_elabCommandAux___closed__3 = _init_l_Lean_Elab_Command_elabCommandAux___closed__3(); +lean_mark_persistent(l_Lean_Elab_Command_elabCommandAux___closed__3); +l_Lean_Elab_Command_elabCommandAux___closed__4 = _init_l_Lean_Elab_Command_elabCommandAux___closed__4(); +lean_mark_persistent(l_Lean_Elab_Command_elabCommandAux___closed__4); +l_Lean_Elab_Command_elabCommandAux___closed__5 = _init_l_Lean_Elab_Command_elabCommandAux___closed__5(); +lean_mark_persistent(l_Lean_Elab_Command_elabCommandAux___closed__5); +l_Lean_Elab_Command_elabCommandAux___closed__6 = _init_l_Lean_Elab_Command_elabCommandAux___closed__6(); +lean_mark_persistent(l_Lean_Elab_Command_elabCommandAux___closed__6); +l_Lean_Elab_Command_elabCommandAux___closed__7 = _init_l_Lean_Elab_Command_elabCommandAux___closed__7(); +lean_mark_persistent(l_Lean_Elab_Command_elabCommandAux___closed__7); l___private_Init_Lean_Elab_Command_12__toCommandResult___rarg___closed__1 = _init_l___private_Init_Lean_Elab_Command_12__toCommandResult___rarg___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_Command_12__toCommandResult___rarg___closed__1); l_Lean_Elab_Command_CommandElabM_inhabited___closed__1 = _init_l_Lean_Elab_Command_CommandElabM_inhabited___closed__1(); diff --git a/stage0/stdlib/Init/Lean/Elab/Declaration.c b/stage0/stdlib/Init/Lean/Elab/Declaration.c index c95a7095b4..0186739b6e 100644 --- a/stage0/stdlib/Init/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Init/Lean/Elab/Declaration.c @@ -16,6 +16,8 @@ extern "C" { lean_object* l_Lean_Elab_Command_elabDeclaration(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabConstant___closed__9; lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_extractMacroScopes(lean_object*); +extern lean_object* l_Lean_Elab_Term_elabLet___closed__5; extern lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); @@ -95,7 +97,6 @@ lean_object* l_Lean_Elab_Command_elabAxiom___lambda__1___boxed(lean_object*, lea lean_object* l_Lean_Elab_Command_sortDeclLevelParams(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabClassInductive___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_mkReducibilityAttrs___closed__4; -lean_object* l_Lean_Elab_Command_elabConstant___closed__10; lean_object* l_Lean_mkAtomFrom(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Command_2__getState(lean_object*, lean_object*); lean_object* l_List_drop___main___rarg(lean_object*, lean_object*); @@ -128,6 +129,7 @@ lean_object* l___private_Init_Lean_Elab_Command_14__addScopes___main(lean_object lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_expandDeclSig___boxed(lean_object*); lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_List_foldl___main___at_Lean_addMacroScopes___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDeclaration___closed__2; lean_object* l_Lean_Elab_Command_elabAxiom___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -456,14 +458,6 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l_Lean_Elab_Command_elabConstant___closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string(":="); -return x_1; -} -} lean_object* l_Lean_Elab_Command_elabConstant(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -515,7 +509,7 @@ x_31 = l_Lean_Parser_Term_app___elambda__1___closed__2; x_32 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); -x_33 = l_Lean_Elab_Command_elabConstant___closed__10; +x_33 = l_Lean_Elab_Term_elabLet___closed__5; x_34 = l_Lean_mkAtomFrom(x_2, x_33); x_35 = lean_array_push(x_22, x_34); x_36 = lean_array_push(x_35, x_32); @@ -3269,42 +3263,42 @@ lean_inc(x_3); x_15 = l_Lean_Elab_Command_getLevelNames(x_3, x_4); if (lean_obj_tag(x_15) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_205; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_209; x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); x_17 = lean_ctor_get(x_15, 1); lean_inc(x_17); lean_dec(x_15); -x_205 = l_Lean_Syntax_isNone(x_14); -if (x_205 == 0) +x_209 = l_Lean_Syntax_isNone(x_14); +if (x_209 == 0) { -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; -x_206 = l_Lean_Syntax_getArg(x_14, x_5); +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_210 = l_Lean_Syntax_getArg(x_14, x_5); lean_dec(x_14); -x_207 = l_Lean_Syntax_getArgs(x_206); -lean_dec(x_206); -x_208 = l_Array_empty___closed__1; -x_209 = l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(x_7, x_207, x_12, x_208); -lean_dec(x_207); +x_211 = l_Lean_Syntax_getArgs(x_210); +lean_dec(x_210); +x_212 = l_Array_empty___closed__1; +x_213 = l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(x_7, x_211, x_12, x_212); +lean_dec(x_211); lean_inc(x_3); lean_inc(x_16); -x_210 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabAxiom___spec__5(x_2, x_209, x_12, x_16, x_3, x_17); -lean_dec(x_209); -if (lean_obj_tag(x_210) == 0) +x_214 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabAxiom___spec__5(x_2, x_213, x_12, x_16, x_3, x_17); +lean_dec(x_213); +if (lean_obj_tag(x_214) == 0) { -lean_object* x_211; lean_object* x_212; -x_211 = lean_ctor_get(x_210, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_210, 1); -lean_inc(x_212); -lean_dec(x_210); -x_18 = x_211; -x_19 = x_212; -goto block_204; +lean_object* x_215; lean_object* x_216; +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_214, 1); +lean_inc(x_216); +lean_dec(x_214); +x_18 = x_215; +x_19 = x_216; +goto block_208; } else { -uint8_t x_213; +uint8_t x_217; lean_dec(x_16); lean_dec(x_13); lean_dec(x_11); @@ -3313,23 +3307,23 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_213 = !lean_is_exclusive(x_210); -if (x_213 == 0) +x_217 = !lean_is_exclusive(x_214); +if (x_217 == 0) { -return x_210; +return x_214; } else { -lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_214 = lean_ctor_get(x_210, 0); -x_215 = lean_ctor_get(x_210, 1); -lean_inc(x_215); -lean_inc(x_214); -lean_dec(x_210); -x_216 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_216, 0, x_214); -lean_ctor_set(x_216, 1, x_215); -return x_216; +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_214, 0); +x_219 = lean_ctor_get(x_214, 1); +lean_inc(x_219); +lean_inc(x_218); +lean_dec(x_214); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_218); +lean_ctor_set(x_220, 1, x_219); +return x_220; } } } @@ -3339,909 +3333,885 @@ lean_dec(x_14); lean_inc(x_16); x_18 = x_16; x_19 = x_17; -goto block_204; +goto block_208; } -block_204: +block_208: { -if (lean_obj_tag(x_13) == 1) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; -x_20 = lean_ctor_get(x_13, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_13, 1); +lean_object* x_20; lean_object* x_21; +x_20 = l_Lean_extractMacroScopes(x_13); +x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -lean_dec(x_13); -x_22 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; -x_23 = 1; -lean_inc(x_3); -lean_inc(x_20); -x_24 = l___private_Init_Lean_Elab_Command_14__addScopes___main(x_6, x_22, x_23, x_20, x_3, x_19); -if (lean_obj_tag(x_24) == 0) +if (lean_obj_tag(x_21) == 1) { -lean_object* x_25; lean_object* x_26; -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_ctor_get(x_21, 0); +lean_inc(x_23); +x_24 = lean_ctor_get(x_21, 1); +lean_inc(x_24); +lean_dec(x_21); +x_25 = lean_box(0); +x_26 = lean_name_mk_string(x_25, x_24); +x_27 = l_List_foldl___main___at_Lean_addMacroScopes___spec__1(x_26, x_22); +x_28 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; +x_29 = 1; lean_inc(x_3); -x_26 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__1(x_18, x_3, x_25); -if (lean_obj_tag(x_26) == 0) +lean_inc(x_23); +x_30 = l___private_Init_Lean_Elab_Command_14__addScopes___main(x_6, x_28, x_29, x_23, x_3, x_19); +if (lean_obj_tag(x_30) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_42; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); -x_28 = lean_box(0); -x_29 = lean_name_mk_string(x_28, x_21); +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); lean_inc(x_3); -x_42 = l_Lean_Elab_Command_mkDeclName(x_1, x_29, x_3, x_27); -if (lean_obj_tag(x_42) == 0) +x_32 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__1(x_18, x_3, x_31); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_113; lean_object* x_114; -x_43 = lean_ctor_get(x_42, 0); -lean_inc(x_43); -x_44 = lean_ctor_get(x_42, 1); -lean_inc(x_44); -lean_dec(x_42); -x_45 = lean_ctor_get(x_1, 1); -lean_inc(x_45); -x_113 = 2; +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_46; +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); lean_inc(x_3); -lean_inc(x_43); +x_46 = l_Lean_Elab_Command_mkDeclName(x_1, x_27, x_3, x_33); +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; uint8_t x_117; lean_object* x_118; +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = lean_ctor_get(x_1, 1); +lean_inc(x_49); +x_117 = 2; +lean_inc(x_3); +lean_inc(x_47); lean_inc(x_2); -x_114 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_43, x_113, x_45, x_12, x_3, x_44); -if (lean_obj_tag(x_114) == 0) +x_118 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_47, x_117, x_49, x_12, x_3, x_48); +if (lean_obj_tag(x_118) == 0) { -lean_object* x_115; lean_object* x_116; -x_115 = lean_ctor_get(x_114, 1); -lean_inc(x_115); -lean_dec(x_114); +lean_object* x_119; lean_object* x_120; +x_119 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +lean_dec(x_118); lean_inc(x_3); -x_116 = l_Lean_Elab_Command_getLevelNames(x_3, x_115); -if (lean_obj_tag(x_116) == 0) +x_120 = l_Lean_Elab_Command_getLevelNames(x_3, x_119); +if (lean_obj_tag(x_120) == 0) { -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); -lean_inc(x_43); -x_119 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_119, 0, x_43); -lean_inc(x_43); -x_120 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__2___boxed), 8, 5); -lean_closure_set(x_120, 0, x_10); -lean_closure_set(x_120, 1, x_11); -lean_closure_set(x_120, 2, x_117); -lean_closure_set(x_120, 3, x_43); -lean_closure_set(x_120, 4, x_1); -lean_inc(x_3); -x_121 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_118); -if (lean_obj_tag(x_121) == 0) -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; -x_122 = lean_ctor_get(x_121, 0); +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_121 = lean_ctor_get(x_120, 0); +lean_inc(x_121); +x_122 = lean_ctor_get(x_120, 1); lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -x_124 = l___private_Init_Lean_Elab_Command_11__getVarDecls(x_122); -x_125 = l___private_Init_Lean_Elab_Command_9__mkTermContext(x_3, x_122, x_119); -x_126 = l___private_Init_Lean_Elab_Command_10__mkTermState(x_122); -lean_dec(x_122); -x_127 = l_Lean_Elab_Term_elabBinders___rarg(x_124, x_120, x_125, x_126); -lean_dec(x_124); -if (lean_obj_tag(x_127) == 0) -{ -lean_object* x_128; lean_object* x_129; lean_object* x_130; -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_ctor_get(x_127, 1); -lean_inc(x_129); -lean_dec(x_127); +lean_dec(x_120); +lean_inc(x_47); +x_123 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_123, 0, x_47); +lean_inc(x_47); +x_124 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__2___boxed), 8, 5); +lean_closure_set(x_124, 0, x_10); +lean_closure_set(x_124, 1, x_11); +lean_closure_set(x_124, 2, x_121); +lean_closure_set(x_124, 3, x_47); +lean_closure_set(x_124, 4, x_1); lean_inc(x_3); -x_130 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_123); -if (lean_obj_tag(x_130) == 0) +x_125 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_122); +if (lean_obj_tag(x_125) == 0) { -lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; -x_131 = lean_ctor_get(x_129, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_130, 0); +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +lean_dec(x_125); +x_128 = l___private_Init_Lean_Elab_Command_11__getVarDecls(x_126); +x_129 = l___private_Init_Lean_Elab_Command_9__mkTermContext(x_3, x_126, x_123); +x_130 = l___private_Init_Lean_Elab_Command_10__mkTermState(x_126); +lean_dec(x_126); +x_131 = l_Lean_Elab_Term_elabBinders___rarg(x_128, x_124, x_129, x_130); +lean_dec(x_128); +if (lean_obj_tag(x_131) == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_131, 0); lean_inc(x_132); -x_133 = lean_ctor_get(x_130, 1); +x_133 = lean_ctor_get(x_131, 1); lean_inc(x_133); -lean_dec(x_130); -x_134 = lean_ctor_get(x_131, 0); -lean_inc(x_134); lean_dec(x_131); -x_135 = lean_ctor_get(x_129, 2); +lean_inc(x_3); +x_134 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_127); +if (lean_obj_tag(x_134) == 0) +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_135 = lean_ctor_get(x_133, 0); lean_inc(x_135); -lean_dec(x_129); -x_136 = !lean_is_exclusive(x_132); -if (x_136 == 0) +x_136 = lean_ctor_get(x_134, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_134, 1); +lean_inc(x_137); +lean_dec(x_134); +x_138 = lean_ctor_get(x_135, 0); +lean_inc(x_138); +lean_dec(x_135); +x_139 = lean_ctor_get(x_133, 2); +lean_inc(x_139); +lean_dec(x_133); +x_140 = !lean_is_exclusive(x_136); +if (x_140 == 0) { -lean_object* x_137; lean_object* x_138; lean_object* x_139; -x_137 = lean_ctor_get(x_132, 1); -lean_dec(x_137); -x_138 = lean_ctor_get(x_132, 0); -lean_dec(x_138); -lean_ctor_set(x_132, 1, x_135); -lean_ctor_set(x_132, 0, x_134); +lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_141 = lean_ctor_get(x_136, 1); +lean_dec(x_141); +x_142 = lean_ctor_get(x_136, 0); +lean_dec(x_142); +lean_ctor_set(x_136, 1, x_139); +lean_ctor_set(x_136, 0, x_138); lean_inc(x_3); -x_139 = l___private_Init_Lean_Elab_Command_3__setState(x_132, x_3, x_133); -if (lean_obj_tag(x_139) == 0) +x_143 = l___private_Init_Lean_Elab_Command_3__setState(x_136, x_3, x_137); +if (lean_obj_tag(x_143) == 0) { -lean_object* x_140; -x_140 = lean_ctor_get(x_139, 1); -lean_inc(x_140); -lean_dec(x_139); -x_46 = x_128; -x_47 = x_140; -goto block_112; -} -else -{ -lean_object* x_141; lean_object* x_142; -lean_dec(x_128); -lean_dec(x_45); -lean_dec(x_43); -lean_dec(x_20); -lean_dec(x_2); -x_141 = lean_ctor_get(x_139, 0); -lean_inc(x_141); -x_142 = lean_ctor_get(x_139, 1); -lean_inc(x_142); -lean_dec(x_139); -x_30 = x_141; -x_31 = x_142; -goto block_41; -} -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_143 = lean_ctor_get(x_132, 2); -x_144 = lean_ctor_get(x_132, 3); -x_145 = lean_ctor_get(x_132, 4); -lean_inc(x_145); +lean_object* x_144; +x_144 = lean_ctor_get(x_143, 1); lean_inc(x_144); -lean_inc(x_143); +lean_dec(x_143); +x_50 = x_132; +x_51 = x_144; +goto block_116; +} +else +{ +lean_object* x_145; lean_object* x_146; lean_dec(x_132); -x_146 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_146, 0, x_134); -lean_ctor_set(x_146, 1, x_135); -lean_ctor_set(x_146, 2, x_143); -lean_ctor_set(x_146, 3, x_144); -lean_ctor_set(x_146, 4, x_145); -lean_inc(x_3); -x_147 = l___private_Init_Lean_Elab_Command_3__setState(x_146, x_3, x_133); -if (lean_obj_tag(x_147) == 0) -{ -lean_object* x_148; -x_148 = lean_ctor_get(x_147, 1); -lean_inc(x_148); -lean_dec(x_147); -x_46 = x_128; -x_47 = x_148; -goto block_112; +lean_dec(x_49); +lean_dec(x_47); +lean_dec(x_23); +lean_dec(x_2); +x_145 = lean_ctor_get(x_143, 0); +lean_inc(x_145); +x_146 = lean_ctor_get(x_143, 1); +lean_inc(x_146); +lean_dec(x_143); +x_34 = x_145; +x_35 = x_146; +goto block_45; +} } else { -lean_object* x_149; lean_object* x_150; -lean_dec(x_128); -lean_dec(x_45); -lean_dec(x_43); -lean_dec(x_20); -lean_dec(x_2); -x_149 = lean_ctor_get(x_147, 0); +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_147 = lean_ctor_get(x_136, 2); +x_148 = lean_ctor_get(x_136, 3); +x_149 = lean_ctor_get(x_136, 4); lean_inc(x_149); -x_150 = lean_ctor_get(x_147, 1); -lean_inc(x_150); -lean_dec(x_147); -x_30 = x_149; -x_31 = x_150; -goto block_41; -} -} -} -else +lean_inc(x_148); +lean_inc(x_147); +lean_dec(x_136); +x_150 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_150, 0, x_138); +lean_ctor_set(x_150, 1, x_139); +lean_ctor_set(x_150, 2, x_147); +lean_ctor_set(x_150, 3, x_148); +lean_ctor_set(x_150, 4, x_149); +lean_inc(x_3); +x_151 = l___private_Init_Lean_Elab_Command_3__setState(x_150, x_3, x_137); +if (lean_obj_tag(x_151) == 0) { -lean_object* x_151; lean_object* x_152; -lean_dec(x_129); -lean_dec(x_128); -lean_dec(x_45); -lean_dec(x_43); -lean_dec(x_20); -lean_dec(x_2); -x_151 = lean_ctor_get(x_130, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_130, 1); +lean_object* x_152; +x_152 = lean_ctor_get(x_151, 1); lean_inc(x_152); -lean_dec(x_130); -x_30 = x_151; -x_31 = x_152; -goto block_41; -} +lean_dec(x_151); +x_50 = x_132; +x_51 = x_152; +goto block_116; } else { -lean_object* x_153; -x_153 = lean_ctor_get(x_127, 0); +lean_object* x_153; lean_object* x_154; +lean_dec(x_132); +lean_dec(x_49); +lean_dec(x_47); +lean_dec(x_23); +lean_dec(x_2); +x_153 = lean_ctor_get(x_151, 0); lean_inc(x_153); -if (lean_obj_tag(x_153) == 0) -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; -lean_dec(x_45); -lean_dec(x_43); -lean_dec(x_20); -lean_dec(x_2); -x_154 = lean_ctor_get(x_127, 1); +x_154 = lean_ctor_get(x_151, 1); lean_inc(x_154); -lean_dec(x_127); -x_155 = lean_ctor_get(x_153, 0); -lean_inc(x_155); -lean_dec(x_153); -lean_inc(x_3); -x_156 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_123); -if (lean_obj_tag(x_156) == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; -x_157 = lean_ctor_get(x_154, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_156, 0); -lean_inc(x_158); -x_159 = lean_ctor_get(x_156, 1); -lean_inc(x_159); -lean_dec(x_156); -x_160 = lean_ctor_get(x_157, 0); -lean_inc(x_160); -lean_dec(x_157); -x_161 = lean_ctor_get(x_154, 2); -lean_inc(x_161); -lean_dec(x_154); -x_162 = !lean_is_exclusive(x_158); -if (x_162 == 0) -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; -x_163 = lean_ctor_get(x_158, 1); -lean_dec(x_163); -x_164 = lean_ctor_get(x_158, 0); -lean_dec(x_164); -lean_ctor_set(x_158, 1, x_161); -lean_ctor_set(x_158, 0, x_160); -lean_inc(x_3); -x_165 = l___private_Init_Lean_Elab_Command_3__setState(x_158, x_3, x_159); -if (lean_obj_tag(x_165) == 0) -{ -lean_object* x_166; -x_166 = lean_ctor_get(x_165, 1); -lean_inc(x_166); -lean_dec(x_165); -x_30 = x_155; -x_31 = x_166; -goto block_41; -} -else -{ -lean_object* x_167; lean_object* x_168; -lean_dec(x_155); -x_167 = lean_ctor_get(x_165, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_165, 1); -lean_inc(x_168); -lean_dec(x_165); -x_30 = x_167; -x_31 = x_168; -goto block_41; -} -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; -x_169 = lean_ctor_get(x_158, 2); -x_170 = lean_ctor_get(x_158, 3); -x_171 = lean_ctor_get(x_158, 4); -lean_inc(x_171); -lean_inc(x_170); -lean_inc(x_169); -lean_dec(x_158); -x_172 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_172, 0, x_160); -lean_ctor_set(x_172, 1, x_161); -lean_ctor_set(x_172, 2, x_169); -lean_ctor_set(x_172, 3, x_170); -lean_ctor_set(x_172, 4, x_171); -lean_inc(x_3); -x_173 = l___private_Init_Lean_Elab_Command_3__setState(x_172, x_3, x_159); -if (lean_obj_tag(x_173) == 0) -{ -lean_object* x_174; -x_174 = lean_ctor_get(x_173, 1); -lean_inc(x_174); -lean_dec(x_173); -x_30 = x_155; -x_31 = x_174; -goto block_41; -} -else -{ -lean_object* x_175; lean_object* x_176; -lean_dec(x_155); -x_175 = lean_ctor_get(x_173, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_173, 1); -lean_inc(x_176); -lean_dec(x_173); -x_30 = x_175; -x_31 = x_176; -goto block_41; +lean_dec(x_151); +x_34 = x_153; +x_35 = x_154; +goto block_45; } } } else { -lean_object* x_177; lean_object* x_178; -lean_dec(x_155); -lean_dec(x_154); -x_177 = lean_ctor_get(x_156, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_156, 1); -lean_inc(x_178); -lean_dec(x_156); -x_30 = x_177; -x_31 = x_178; -goto block_41; -} -} -else -{ -lean_object* x_179; lean_object* x_180; lean_object* x_181; -lean_dec(x_127); -x_179 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_180 = l_unreachable_x21___rarg(x_179); -lean_inc(x_3); -x_181 = lean_apply_2(x_180, x_3, x_123); -if (lean_obj_tag(x_181) == 0) -{ -lean_object* x_182; lean_object* x_183; -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_181, 1); -lean_inc(x_183); -lean_dec(x_181); -x_46 = x_182; -x_47 = x_183; -goto block_112; -} -else -{ -lean_object* x_184; lean_object* x_185; -lean_dec(x_45); -lean_dec(x_43); -lean_dec(x_20); +lean_object* x_155; lean_object* x_156; +lean_dec(x_133); +lean_dec(x_132); +lean_dec(x_49); +lean_dec(x_47); +lean_dec(x_23); lean_dec(x_2); -x_184 = lean_ctor_get(x_181, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_181, 1); -lean_inc(x_185); -lean_dec(x_181); -x_30 = x_184; -x_31 = x_185; -goto block_41; +x_155 = lean_ctor_get(x_134, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_134, 1); +lean_inc(x_156); +lean_dec(x_134); +x_34 = x_155; +x_35 = x_156; +goto block_45; } } +else +{ +lean_object* x_157; +x_157 = lean_ctor_get(x_131, 0); +lean_inc(x_157); +if (lean_obj_tag(x_157) == 0) +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_49); +lean_dec(x_47); +lean_dec(x_23); +lean_dec(x_2); +x_158 = lean_ctor_get(x_131, 1); +lean_inc(x_158); +lean_dec(x_131); +x_159 = lean_ctor_get(x_157, 0); +lean_inc(x_159); +lean_dec(x_157); +lean_inc(x_3); +x_160 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_127); +if (lean_obj_tag(x_160) == 0) +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; +x_161 = lean_ctor_get(x_158, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_160, 1); +lean_inc(x_163); +lean_dec(x_160); +x_164 = lean_ctor_get(x_161, 0); +lean_inc(x_164); +lean_dec(x_161); +x_165 = lean_ctor_get(x_158, 2); +lean_inc(x_165); +lean_dec(x_158); +x_166 = !lean_is_exclusive(x_162); +if (x_166 == 0) +{ +lean_object* x_167; lean_object* x_168; lean_object* x_169; +x_167 = lean_ctor_get(x_162, 1); +lean_dec(x_167); +x_168 = lean_ctor_get(x_162, 0); +lean_dec(x_168); +lean_ctor_set(x_162, 1, x_165); +lean_ctor_set(x_162, 0, x_164); +lean_inc(x_3); +x_169 = l___private_Init_Lean_Elab_Command_3__setState(x_162, x_3, x_163); +if (lean_obj_tag(x_169) == 0) +{ +lean_object* x_170; +x_170 = lean_ctor_get(x_169, 1); +lean_inc(x_170); +lean_dec(x_169); +x_34 = x_159; +x_35 = x_170; +goto block_45; +} +else +{ +lean_object* x_171; lean_object* x_172; +lean_dec(x_159); +x_171 = lean_ctor_get(x_169, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_169, 1); +lean_inc(x_172); +lean_dec(x_169); +x_34 = x_171; +x_35 = x_172; +goto block_45; +} +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; +x_173 = lean_ctor_get(x_162, 2); +x_174 = lean_ctor_get(x_162, 3); +x_175 = lean_ctor_get(x_162, 4); +lean_inc(x_175); +lean_inc(x_174); +lean_inc(x_173); +lean_dec(x_162); +x_176 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_176, 0, x_164); +lean_ctor_set(x_176, 1, x_165); +lean_ctor_set(x_176, 2, x_173); +lean_ctor_set(x_176, 3, x_174); +lean_ctor_set(x_176, 4, x_175); +lean_inc(x_3); +x_177 = l___private_Init_Lean_Elab_Command_3__setState(x_176, x_3, x_163); +if (lean_obj_tag(x_177) == 0) +{ +lean_object* x_178; +x_178 = lean_ctor_get(x_177, 1); +lean_inc(x_178); +lean_dec(x_177); +x_34 = x_159; +x_35 = x_178; +goto block_45; +} +else +{ +lean_object* x_179; lean_object* x_180; +lean_dec(x_159); +x_179 = lean_ctor_get(x_177, 0); +lean_inc(x_179); +x_180 = lean_ctor_get(x_177, 1); +lean_inc(x_180); +lean_dec(x_177); +x_34 = x_179; +x_35 = x_180; +goto block_45; +} } } else { +lean_object* x_181; lean_object* x_182; +lean_dec(x_159); +lean_dec(x_158); +x_181 = lean_ctor_get(x_160, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_160, 1); +lean_inc(x_182); +lean_dec(x_160); +x_34 = x_181; +x_35 = x_182; +goto block_45; +} +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; +lean_dec(x_131); +x_183 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; +x_184 = l_unreachable_x21___rarg(x_183); +lean_inc(x_3); +x_185 = lean_apply_2(x_184, x_3, x_127); +if (lean_obj_tag(x_185) == 0) +{ lean_object* x_186; lean_object* x_187; -lean_dec(x_120); -lean_dec(x_119); -lean_dec(x_45); -lean_dec(x_43); -lean_dec(x_20); -lean_dec(x_2); -x_186 = lean_ctor_get(x_121, 0); +x_186 = lean_ctor_get(x_185, 0); lean_inc(x_186); -x_187 = lean_ctor_get(x_121, 1); +x_187 = lean_ctor_get(x_185, 1); lean_inc(x_187); -lean_dec(x_121); -x_30 = x_186; -x_31 = x_187; -goto block_41; -} +lean_dec(x_185); +x_50 = x_186; +x_51 = x_187; +goto block_116; } else { lean_object* x_188; lean_object* x_189; -lean_dec(x_45); -lean_dec(x_43); -lean_dec(x_20); -lean_dec(x_11); -lean_dec(x_10); +lean_dec(x_49); +lean_dec(x_47); +lean_dec(x_23); lean_dec(x_2); -lean_dec(x_1); -x_188 = lean_ctor_get(x_116, 0); +x_188 = lean_ctor_get(x_185, 0); lean_inc(x_188); -x_189 = lean_ctor_get(x_116, 1); +x_189 = lean_ctor_get(x_185, 1); lean_inc(x_189); -lean_dec(x_116); -x_30 = x_188; -x_31 = x_189; -goto block_41; +lean_dec(x_185); +x_34 = x_188; +x_35 = x_189; +goto block_45; +} +} } } else { lean_object* x_190; lean_object* x_191; -lean_dec(x_45); -lean_dec(x_43); -lean_dec(x_20); +lean_dec(x_124); +lean_dec(x_123); +lean_dec(x_49); +lean_dec(x_47); +lean_dec(x_23); +lean_dec(x_2); +x_190 = lean_ctor_get(x_125, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_125, 1); +lean_inc(x_191); +lean_dec(x_125); +x_34 = x_190; +x_35 = x_191; +goto block_45; +} +} +else +{ +lean_object* x_192; lean_object* x_193; +lean_dec(x_49); +lean_dec(x_47); +lean_dec(x_23); lean_dec(x_11); lean_dec(x_10); lean_dec(x_2); lean_dec(x_1); -x_190 = lean_ctor_get(x_114, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_114, 1); -lean_inc(x_191); -lean_dec(x_114); -x_30 = x_190; -x_31 = x_191; -goto block_41; +x_192 = lean_ctor_get(x_120, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_120, 1); +lean_inc(x_193); +lean_dec(x_120); +x_34 = x_192; +x_35 = x_193; +goto block_45; } -block_112: +} +else { -lean_object* x_48; +lean_object* x_194; lean_object* x_195; +lean_dec(x_49); +lean_dec(x_47); +lean_dec(x_23); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_2); +lean_dec(x_1); +x_194 = lean_ctor_get(x_118, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_118, 1); +lean_inc(x_195); +lean_dec(x_118); +x_34 = x_194; +x_35 = x_195; +goto block_45; +} +block_116: +{ +lean_object* x_52; lean_inc(x_3); lean_inc(x_2); -x_48 = l_Lean_Elab_Command_addDecl(x_2, x_46, x_3, x_47); -lean_dec(x_46); -if (lean_obj_tag(x_48) == 0) +x_52 = l_Lean_Elab_Command_addDecl(x_2, x_50, x_3, x_51); +lean_dec(x_50); +if (lean_obj_tag(x_52) == 0) { -lean_object* x_49; uint8_t x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_48, 1); -lean_inc(x_49); -lean_dec(x_48); -x_50 = 0; +lean_object* x_53; uint8_t x_54; lean_object* x_55; +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_54 = 0; lean_inc(x_3); -lean_inc(x_43); +lean_inc(x_47); lean_inc(x_2); -x_51 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_43, x_50, x_45, x_12, x_3, x_49); -if (lean_obj_tag(x_51) == 0) +x_55 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_47, x_54, x_49, x_12, x_3, x_53); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_52; uint8_t x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -x_53 = 1; -lean_inc(x_3); -x_54 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_43, x_53, x_45, x_12, x_3, x_52); -lean_dec(x_45); -if (lean_obj_tag(x_54) == 0) -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); +lean_object* x_56; uint8_t x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_55, 1); lean_inc(x_56); -lean_dec(x_54); +lean_dec(x_55); +x_57 = 1; +lean_inc(x_3); +x_58 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_47, x_57, x_49, x_12, x_3, x_56); +lean_dec(x_49); +if (lean_obj_tag(x_58) == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_58, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_58, 1); +lean_inc(x_60); +lean_dec(x_58); lean_inc(x_3); lean_inc(x_16); -x_57 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__3(x_16, x_3, x_56); -if (lean_obj_tag(x_57) == 0) +x_61 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__3(x_16, x_3, x_60); +if (lean_obj_tag(x_61) == 0) { -lean_object* x_58; lean_object* x_59; +lean_object* x_62; lean_object* x_63; lean_dec(x_16); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec(x_57); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); lean_inc(x_3); -x_59 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_58); -if (lean_obj_tag(x_59) == 0) +x_63 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_62); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = !lean_is_exclusive(x_60); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_63 = lean_ctor_get(x_60, 2); -x_64 = l_Lean_Name_getNumParts___main(x_20); -lean_dec(x_20); -x_65 = l_List_drop___main___rarg(x_64, x_63); +lean_object* x_64; lean_object* x_65; uint8_t x_66; +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_ctor_get(x_63, 1); +lean_inc(x_65); lean_dec(x_63); -lean_ctor_set(x_60, 2, x_65); -x_66 = l___private_Init_Lean_Elab_Command_3__setState(x_60, x_3, x_61); -if (lean_obj_tag(x_66) == 0) +x_66 = !lean_is_exclusive(x_64); +if (x_66 == 0) { -uint8_t x_67; -x_67 = !lean_is_exclusive(x_66); -if (x_67 == 0) -{ -lean_object* x_68; -x_68 = lean_ctor_get(x_66, 0); -lean_dec(x_68); -lean_ctor_set(x_66, 0, x_55); -return x_66; -} -else -{ -lean_object* x_69; lean_object* x_70; -x_69 = lean_ctor_get(x_66, 1); -lean_inc(x_69); -lean_dec(x_66); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_55); -lean_ctor_set(x_70, 1, x_69); -return x_70; -} -} -else +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_67 = lean_ctor_get(x_64, 2); +x_68 = l_Lean_Name_getNumParts___main(x_23); +lean_dec(x_23); +x_69 = l_List_drop___main___rarg(x_68, x_67); +lean_dec(x_67); +lean_ctor_set(x_64, 2, x_69); +x_70 = l___private_Init_Lean_Elab_Command_3__setState(x_64, x_3, x_65); +if (lean_obj_tag(x_70) == 0) { uint8_t x_71; -lean_dec(x_55); -x_71 = !lean_is_exclusive(x_66); +x_71 = !lean_is_exclusive(x_70); if (x_71 == 0) { -return x_66; +lean_object* x_72; +x_72 = lean_ctor_get(x_70, 0); +lean_dec(x_72); +lean_ctor_set(x_70, 0, x_59); +return x_70; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_66, 0); -x_73 = lean_ctor_get(x_66, 1); +lean_object* x_73; lean_object* x_74; +x_73 = lean_ctor_get(x_70, 1); lean_inc(x_73); -lean_inc(x_72); -lean_dec(x_66); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); +lean_dec(x_70); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_59); lean_ctor_set(x_74, 1, x_73); return x_74; } } +else +{ +uint8_t x_75; +lean_dec(x_59); +x_75 = !lean_is_exclusive(x_70); +if (x_75 == 0) +{ +return x_70; } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_75 = lean_ctor_get(x_60, 0); -x_76 = lean_ctor_get(x_60, 1); -x_77 = lean_ctor_get(x_60, 2); -x_78 = lean_ctor_get(x_60, 3); -x_79 = lean_ctor_get(x_60, 4); -lean_inc(x_79); -lean_inc(x_78); +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_70, 0); +x_77 = lean_ctor_get(x_70, 1); lean_inc(x_77); lean_inc(x_76); -lean_inc(x_75); -lean_dec(x_60); -x_80 = l_Lean_Name_getNumParts___main(x_20); -lean_dec(x_20); -x_81 = l_List_drop___main___rarg(x_80, x_77); -lean_dec(x_77); -x_82 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_82, 0, x_75); -lean_ctor_set(x_82, 1, x_76); -lean_ctor_set(x_82, 2, x_81); -lean_ctor_set(x_82, 3, x_78); -lean_ctor_set(x_82, 4, x_79); -x_83 = l___private_Init_Lean_Elab_Command_3__setState(x_82, x_3, x_61); -if (lean_obj_tag(x_83) == 0) -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_85 = x_83; -} else { - lean_dec_ref(x_83); - x_85 = lean_box(0); +lean_dec(x_70); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; } -if (lean_is_scalar(x_85)) { - x_86 = lean_alloc_ctor(0, 2, 0); -} else { - x_86 = x_85; } -lean_ctor_set(x_86, 0, x_55); -lean_ctor_set(x_86, 1, x_84); -return x_86; } else { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_55); -x_87 = lean_ctor_get(x_83, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_83, 1); +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_64, 0); +x_80 = lean_ctor_get(x_64, 1); +x_81 = lean_ctor_get(x_64, 2); +x_82 = lean_ctor_get(x_64, 3); +x_83 = lean_ctor_get(x_64, 4); +lean_inc(x_83); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_64); +x_84 = l_Lean_Name_getNumParts___main(x_23); +lean_dec(x_23); +x_85 = l_List_drop___main___rarg(x_84, x_81); +lean_dec(x_81); +x_86 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_86, 0, x_79); +lean_ctor_set(x_86, 1, x_80); +lean_ctor_set(x_86, 2, x_85); +lean_ctor_set(x_86, 3, x_82); +lean_ctor_set(x_86, 4, x_83); +x_87 = l___private_Init_Lean_Elab_Command_3__setState(x_86, x_3, x_65); +if (lean_obj_tag(x_87) == 0) +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_87, 1); lean_inc(x_88); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_89 = x_83; +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_89 = x_87; } else { - lean_dec_ref(x_83); + lean_dec_ref(x_87); x_89 = lean_box(0); } if (lean_is_scalar(x_89)) { - x_90 = lean_alloc_ctor(1, 2, 0); + x_90 = lean_alloc_ctor(0, 2, 0); } else { x_90 = x_89; } -lean_ctor_set(x_90, 0, x_87); +lean_ctor_set(x_90, 0, x_59); lean_ctor_set(x_90, 1, x_88); return x_90; } -} -} else { -uint8_t x_91; -lean_dec(x_55); -lean_dec(x_20); -lean_dec(x_3); -x_91 = !lean_is_exclusive(x_59); -if (x_91 == 0) -{ -return x_59; -} -else -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_59, 0); -x_93 = lean_ctor_get(x_59, 1); -lean_inc(x_93); -lean_inc(x_92); +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_dec(x_59); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); +x_91 = lean_ctor_get(x_87, 0); +lean_inc(x_91); +x_92 = lean_ctor_get(x_87, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_93 = x_87; +} else { + lean_dec_ref(x_87); + x_93 = lean_box(0); +} +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(1, 2, 0); +} else { + x_94 = x_93; +} +lean_ctor_set(x_94, 0, x_91); +lean_ctor_set(x_94, 1, x_92); return x_94; } } } else { -lean_object* x_95; lean_object* x_96; lean_object* x_97; -lean_dec(x_55); -lean_dec(x_20); -x_95 = lean_ctor_get(x_57, 0); -lean_inc(x_95); -x_96 = lean_ctor_get(x_57, 1); +uint8_t x_95; +lean_dec(x_59); +lean_dec(x_23); +lean_dec(x_3); +x_95 = !lean_is_exclusive(x_63); +if (x_95 == 0) +{ +return x_63; +} +else +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_96 = lean_ctor_get(x_63, 0); +x_97 = lean_ctor_get(x_63, 1); +lean_inc(x_97); lean_inc(x_96); -lean_dec(x_57); -x_97 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__4(x_16, x_3, x_96); -if (lean_obj_tag(x_97) == 0) -{ -uint8_t x_98; -x_98 = !lean_is_exclusive(x_97); -if (x_98 == 0) -{ -lean_object* x_99; -x_99 = lean_ctor_get(x_97, 0); -lean_dec(x_99); -lean_ctor_set_tag(x_97, 1); -lean_ctor_set(x_97, 0, x_95); -return x_97; +lean_dec(x_63); +x_98 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +return x_98; +} +} } else { -lean_object* x_100; lean_object* x_101; -x_100 = lean_ctor_get(x_97, 1); +lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_59); +lean_dec(x_23); +x_99 = lean_ctor_get(x_61, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_61, 1); lean_inc(x_100); -lean_dec(x_97); -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_95); -lean_ctor_set(x_101, 1, x_100); -return x_101; -} -} -else +lean_dec(x_61); +x_101 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__4(x_16, x_3, x_100); +if (lean_obj_tag(x_101) == 0) { uint8_t x_102; -lean_dec(x_95); -x_102 = !lean_is_exclusive(x_97); +x_102 = !lean_is_exclusive(x_101); if (x_102 == 0) { -return x_97; +lean_object* x_103; +x_103 = lean_ctor_get(x_101, 0); +lean_dec(x_103); +lean_ctor_set_tag(x_101, 1); +lean_ctor_set(x_101, 0, x_99); +return x_101; } else { -lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_103 = lean_ctor_get(x_97, 0); -x_104 = lean_ctor_get(x_97, 1); +lean_object* x_104; lean_object* x_105; +x_104 = lean_ctor_get(x_101, 1); lean_inc(x_104); -lean_inc(x_103); -lean_dec(x_97); +lean_dec(x_101); x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 0, x_99); lean_ctor_set(x_105, 1, x_104); return x_105; } } -} +else +{ +uint8_t x_106; +lean_dec(x_99); +x_106 = !lean_is_exclusive(x_101); +if (x_106 == 0) +{ +return x_101; } else { -lean_object* x_106; lean_object* x_107; -lean_dec(x_20); -x_106 = lean_ctor_get(x_54, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_54, 1); -lean_inc(x_107); -lean_dec(x_54); -x_30 = x_106; -x_31 = x_107; -goto block_41; -} -} -else -{ -lean_object* x_108; lean_object* x_109; -lean_dec(x_45); -lean_dec(x_43); -lean_dec(x_20); -lean_dec(x_2); -x_108 = lean_ctor_get(x_51, 0); +lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_107 = lean_ctor_get(x_101, 0); +x_108 = lean_ctor_get(x_101, 1); lean_inc(x_108); -x_109 = lean_ctor_get(x_51, 1); -lean_inc(x_109); -lean_dec(x_51); -x_30 = x_108; -x_31 = x_109; -goto block_41; +lean_inc(x_107); +lean_dec(x_101); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +return x_109; +} +} } } else { lean_object* x_110; lean_object* x_111; -lean_dec(x_45); -lean_dec(x_43); -lean_dec(x_20); -lean_dec(x_2); -x_110 = lean_ctor_get(x_48, 0); +lean_dec(x_23); +x_110 = lean_ctor_get(x_58, 0); lean_inc(x_110); -x_111 = lean_ctor_get(x_48, 1); +x_111 = lean_ctor_get(x_58, 1); lean_inc(x_111); -lean_dec(x_48); -x_30 = x_110; -x_31 = x_111; -goto block_41; +lean_dec(x_58); +x_34 = x_110; +x_35 = x_111; +goto block_45; +} +} +else +{ +lean_object* x_112; lean_object* x_113; +lean_dec(x_49); +lean_dec(x_47); +lean_dec(x_23); +lean_dec(x_2); +x_112 = lean_ctor_get(x_55, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_55, 1); +lean_inc(x_113); +lean_dec(x_55); +x_34 = x_112; +x_35 = x_113; +goto block_45; +} +} +else +{ +lean_object* x_114; lean_object* x_115; +lean_dec(x_49); +lean_dec(x_47); +lean_dec(x_23); +lean_dec(x_2); +x_114 = lean_ctor_get(x_52, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_52, 1); +lean_inc(x_115); +lean_dec(x_52); +x_34 = x_114; +x_35 = x_115; +goto block_45; } } } else { -lean_object* x_192; lean_object* x_193; -lean_dec(x_20); +lean_object* x_196; lean_object* x_197; +lean_dec(x_23); lean_dec(x_11); lean_dec(x_10); lean_dec(x_2); lean_dec(x_1); -x_192 = lean_ctor_get(x_42, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_42, 1); -lean_inc(x_193); -lean_dec(x_42); -x_30 = x_192; -x_31 = x_193; -goto block_41; +x_196 = lean_ctor_get(x_46, 0); +lean_inc(x_196); +x_197 = lean_ctor_get(x_46, 1); +lean_inc(x_197); +lean_dec(x_46); +x_34 = x_196; +x_35 = x_197; +goto block_45; } -block_41: +block_45: { -lean_object* x_32; -x_32 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__2(x_16, x_3, x_31); -if (lean_obj_tag(x_32) == 0) -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -lean_object* x_34; -x_34 = lean_ctor_get(x_32, 0); -lean_dec(x_34); -lean_ctor_set_tag(x_32, 1); -lean_ctor_set(x_32, 0, x_30); -return x_32; -} -else -{ -lean_object* x_35; lean_object* x_36; -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_30); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -else +lean_object* x_36; +x_36 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__2(x_16, x_3, x_35); +if (lean_obj_tag(x_36) == 0) { uint8_t x_37; -lean_dec(x_30); -x_37 = !lean_is_exclusive(x_32); +x_37 = !lean_is_exclusive(x_36); if (x_37 == 0) { -return x_32; +lean_object* x_38; +x_38 = lean_ctor_get(x_36, 0); +lean_dec(x_38); +lean_ctor_set_tag(x_36, 1); +lean_ctor_set(x_36, 0, x_34); +return x_36; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_32, 0); -x_39 = lean_ctor_get(x_32, 1); +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_36, 1); lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_32); +lean_dec(x_36); x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 0, x_34); lean_ctor_set(x_40, 1, x_39); return x_40; } } -} +else +{ +uint8_t x_41; +lean_dec(x_34); +x_41 = !lean_is_exclusive(x_36); +if (x_41 == 0) +{ +return x_36; } else { -uint8_t x_194; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_194 = !lean_is_exclusive(x_26); -if (x_194 == 0) -{ -return x_26; +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_36, 0); +x_43 = lean_ctor_get(x_36, 1); +lean_inc(x_43); +lean_inc(x_42); +lean_dec(x_36); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } -else -{ -lean_object* x_195; lean_object* x_196; lean_object* x_197; -x_195 = lean_ctor_get(x_26, 0); -x_196 = lean_ctor_get(x_26, 1); -lean_inc(x_196); -lean_inc(x_195); -lean_dec(x_26); -x_197 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_197, 0, x_195); -lean_ctor_set(x_197, 1, x_196); -return x_197; } } } else { uint8_t x_198; -lean_dec(x_21); -lean_dec(x_20); -lean_dec(x_18); +lean_dec(x_27); +lean_dec(x_23); lean_dec(x_16); lean_dec(x_11); lean_dec(x_10); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_198 = !lean_is_exclusive(x_24); +x_198 = !lean_is_exclusive(x_32); if (x_198 == 0) { -return x_24; +return x_32; } else { lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_24, 0); -x_200 = lean_ctor_get(x_24, 1); +x_199 = lean_ctor_get(x_32, 0); +x_200 = lean_ctor_get(x_32, 1); lean_inc(x_200); lean_inc(x_199); -lean_dec(x_24); +lean_dec(x_32); x_201 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_201, 0, x_199); lean_ctor_set(x_201, 1, x_200); @@ -4251,23 +4221,56 @@ return x_201; } else { -lean_object* x_202; lean_object* x_203; +uint8_t x_202; +lean_dec(x_27); +lean_dec(x_23); lean_dec(x_18); lean_dec(x_16); -lean_dec(x_13); lean_dec(x_11); lean_dec(x_10); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_202 = l_Lean_Elab_Command_withDeclId___closed__3; -x_203 = l_Lean_Elab_Command_throwError___rarg(x_6, x_202, x_3, x_19); -return x_203; +x_202 = !lean_is_exclusive(x_30); +if (x_202 == 0) +{ +return x_30; +} +else +{ +lean_object* x_203; lean_object* x_204; lean_object* x_205; +x_203 = lean_ctor_get(x_30, 0); +x_204 = lean_ctor_get(x_30, 1); +lean_inc(x_204); +lean_inc(x_203); +lean_dec(x_30); +x_205 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_205, 0, x_203); +lean_ctor_set(x_205, 1, x_204); +return x_205; } } } else { -uint8_t x_217; +lean_object* x_206; lean_object* x_207; +lean_dec(x_21); +lean_dec(x_20); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_2); +lean_dec(x_1); +x_206 = l_Lean_Elab_Command_withDeclId___closed__3; +x_207 = l_Lean_Elab_Command_throwError___rarg(x_6, x_206, x_3, x_19); +return x_207; +} +} +} +else +{ +uint8_t x_221; lean_dec(x_14); lean_dec(x_13); lean_dec(x_11); @@ -4276,23 +4279,23 @@ lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_217 = !lean_is_exclusive(x_15); -if (x_217 == 0) +x_221 = !lean_is_exclusive(x_15); +if (x_221 == 0) { return x_15; } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_218 = lean_ctor_get(x_15, 0); -x_219 = lean_ctor_get(x_15, 1); -lean_inc(x_219); -lean_inc(x_218); +lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_222 = lean_ctor_get(x_15, 0); +x_223 = lean_ctor_get(x_15, 1); +lean_inc(x_223); +lean_inc(x_222); lean_dec(x_15); -x_220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_220, 0, x_218); -lean_ctor_set(x_220, 1, x_219); -return x_220; +x_224 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_224, 0, x_222); +lean_ctor_set(x_224, 1, x_223); +return x_224; } } } @@ -4908,8 +4911,6 @@ l_Lean_Elab_Command_elabConstant___closed__8 = _init_l_Lean_Elab_Command_elabCon lean_mark_persistent(l_Lean_Elab_Command_elabConstant___closed__8); l_Lean_Elab_Command_elabConstant___closed__9 = _init_l_Lean_Elab_Command_elabConstant___closed__9(); lean_mark_persistent(l_Lean_Elab_Command_elabConstant___closed__9); -l_Lean_Elab_Command_elabConstant___closed__10 = _init_l_Lean_Elab_Command_elabConstant___closed__10(); -lean_mark_persistent(l_Lean_Elab_Command_elabConstant___closed__10); l_Lean_Elab_Command_elabInstance___closed__1 = _init_l_Lean_Elab_Command_elabInstance___closed__1(); lean_mark_persistent(l_Lean_Elab_Command_elabInstance___closed__1); l_Lean_Elab_Command_elabExample___closed__1 = _init_l_Lean_Elab_Command_elabExample___closed__1(); diff --git a/stage0/stdlib/Init/Lean/Elab/Definition.c b/stage0/stdlib/Init/Lean/Elab/Definition.c index 1f9a2d0b80..f563a580e4 100644 --- a/stage0/stdlib/Init/Lean/Elab/Definition.c +++ b/stage0/stdlib/Init/Lean/Elab/Definition.c @@ -14,6 +14,7 @@ extern "C" { #endif lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_Lean_Elab_Command_addDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); @@ -112,6 +113,7 @@ lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_foldSepRevArgsM_ lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_removeUnused___closed__1; uint8_t l_Lean_NameSet_contains(lean_object*, lean_object*); +lean_object* l_List_foldl___main___at_Lean_addMacroScopes___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_HashMap_Inhabited___closed__1; uint8_t l_Lean_Elab_Command_DefKind_isDefOrOpaque(uint8_t); @@ -4583,66 +4585,66 @@ lean_inc(x_2); x_10 = l_Lean_Elab_Command_getLevelNames(x_2, x_3); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_210; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_214; 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_210 = l_Lean_Syntax_isNone(x_9); -if (x_210 == 0) +x_214 = l_Lean_Syntax_isNone(x_9); +if (x_214 == 0) { -lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_211 = l_Lean_Syntax_getArg(x_9, x_8); +lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_215 = l_Lean_Syntax_getArg(x_9, x_8); lean_dec(x_9); -x_212 = l_Lean_Syntax_getArgs(x_211); -lean_dec(x_211); -x_213 = lean_unsigned_to_nat(2u); -x_214 = l_Array_empty___closed__1; -x_215 = l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(x_213, x_212, x_6, x_214); -lean_dec(x_212); +x_216 = l_Lean_Syntax_getArgs(x_215); +lean_dec(x_215); +x_217 = lean_unsigned_to_nat(2u); +x_218 = l_Array_empty___closed__1; +x_219 = l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_foldSepRevArgsM___spec__1(x_217, x_216, x_6, x_218); +lean_dec(x_216); lean_inc(x_2); lean_inc(x_11); -x_216 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabDefLike___spec__5(x_1, x_215, x_6, x_11, x_2, x_12); -lean_dec(x_215); -if (lean_obj_tag(x_216) == 0) +x_220 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabDefLike___spec__5(x_1, x_219, x_6, x_11, x_2, x_12); +lean_dec(x_219); +if (lean_obj_tag(x_220) == 0) { -lean_object* x_217; lean_object* x_218; -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); -lean_inc(x_218); -lean_dec(x_216); -x_13 = x_217; -x_14 = x_218; -goto block_209; +lean_object* x_221; lean_object* x_222; +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_13 = x_221; +x_14 = x_222; +goto block_213; } else { -uint8_t x_219; +uint8_t x_223; lean_dec(x_11); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_219 = !lean_is_exclusive(x_216); -if (x_219 == 0) +x_223 = !lean_is_exclusive(x_220); +if (x_223 == 0) { -return x_216; +return x_220; } else { -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_216, 0); -x_221 = lean_ctor_get(x_216, 1); -lean_inc(x_221); -lean_inc(x_220); -lean_dec(x_216); -x_222 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_222, 0, x_220); -lean_ctor_set(x_222, 1, x_221); -return x_222; +lean_object* x_224; lean_object* x_225; lean_object* x_226; +x_224 = lean_ctor_get(x_220, 0); +x_225 = lean_ctor_get(x_220, 1); +lean_inc(x_225); +lean_inc(x_224); +lean_dec(x_220); +x_226 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_226, 0, x_224); +lean_ctor_set(x_226, 1, x_225); +return x_226; } } } @@ -4652,955 +4654,933 @@ lean_dec(x_9); lean_inc(x_11); x_13 = x_11; x_14 = x_12; -goto block_209; +goto block_213; } -block_209: +block_213: { -if (lean_obj_tag(x_7) == 1) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; -x_15 = lean_ctor_get(x_7, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_7, 1); +lean_object* x_15; lean_object* x_16; +x_15 = l_Lean_extractMacroScopes(x_7); +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_7); -x_17 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; -x_18 = 1; -lean_inc(x_2); -lean_inc(x_15); -x_19 = l___private_Init_Lean_Elab_Command_14__addScopes___main(x_5, x_17, x_18, x_15, x_2, x_14); -if (lean_obj_tag(x_19) == 0) +if (lean_obj_tag(x_16) == 1) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_19, 1); -lean_inc(x_20); -lean_dec(x_19); +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_box(0); +x_21 = lean_name_mk_string(x_20, x_19); +x_22 = l_List_foldl___main___at_Lean_addMacroScopes___spec__1(x_21, x_17); +x_23 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; +x_24 = 1; lean_inc(x_2); -x_21 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__1(x_13, x_2, x_20); -if (lean_obj_tag(x_21) == 0) +lean_inc(x_18); +x_25 = l___private_Init_Lean_Elab_Command_14__addScopes___main(x_5, x_23, x_24, x_18, x_2, x_14); +if (lean_obj_tag(x_25) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_77; lean_object* x_78; lean_object* x_89; lean_object* x_90; -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -x_23 = lean_box(0); -x_24 = lean_name_mk_string(x_23, x_16); -x_89 = lean_ctor_get(x_1, 1); -lean_inc(x_89); +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); lean_inc(x_2); -x_90 = l_Lean_Elab_Command_mkDeclName(x_89, x_24, x_2, x_22); -if (lean_obj_tag(x_90) == 0) +x_27 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__1(x_13, x_2, x_26); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_118; lean_object* x_119; -x_91 = lean_ctor_get(x_90, 0); -lean_inc(x_91); -x_92 = lean_ctor_get(x_90, 1); -lean_inc(x_92); -lean_dec(x_90); -x_93 = lean_ctor_get(x_89, 1); +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_81; lean_object* x_82; lean_object* x_93; lean_object* x_94; +x_28 = lean_ctor_get(x_27, 1); +lean_inc(x_28); +lean_dec(x_27); +x_93 = lean_ctor_get(x_1, 1); lean_inc(x_93); -lean_dec(x_89); -x_118 = 2; lean_inc(x_2); -lean_inc(x_91); +x_94 = l_Lean_Elab_Command_mkDeclName(x_93, x_22, x_2, x_28); +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; uint8_t x_122; lean_object* x_123; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_ctor_get(x_93, 1); +lean_inc(x_97); +lean_dec(x_93); +x_122 = 2; +lean_inc(x_2); +lean_inc(x_95); lean_inc(x_4); -x_119 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_91, x_118, x_93, x_6, x_2, x_92); -if (lean_obj_tag(x_119) == 0) +x_123 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_95, x_122, x_97, x_6, x_2, x_96); +if (lean_obj_tag(x_123) == 0) { -lean_object* x_120; lean_object* x_121; -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -lean_dec(x_119); +lean_object* x_124; lean_object* x_125; +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +lean_dec(x_123); lean_inc(x_2); -x_121 = l_Lean_Elab_Command_getLevelNames(x_2, x_120); -if (lean_obj_tag(x_121) == 0) +x_125 = l_Lean_Elab_Command_getLevelNames(x_2, x_124); +if (lean_obj_tag(x_125) == 0) { -lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_122 = lean_ctor_get(x_121, 0); -lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); -lean_dec(x_121); -lean_inc(x_91); -x_124 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_124, 0, x_91); -lean_inc(x_4); -lean_inc(x_91); -x_125 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__3), 7, 4); -lean_closure_set(x_125, 0, x_1); -lean_closure_set(x_125, 1, x_91); -lean_closure_set(x_125, 2, x_122); -lean_closure_set(x_125, 3, x_4); -lean_inc(x_2); -x_126 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_123); -if (lean_obj_tag(x_126) == 0) -{ -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; -x_127 = lean_ctor_get(x_126, 0); +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); -lean_inc(x_128); -lean_dec(x_126); -x_129 = l___private_Init_Lean_Elab_Command_11__getVarDecls(x_127); -x_130 = l___private_Init_Lean_Elab_Command_9__mkTermContext(x_2, x_127, x_124); -x_131 = l___private_Init_Lean_Elab_Command_10__mkTermState(x_127); -lean_dec(x_127); -x_132 = l_Lean_Elab_Term_elabBinders___rarg(x_129, x_125, x_130, x_131); -lean_dec(x_129); -if (lean_obj_tag(x_132) == 0) -{ -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); -lean_dec(x_132); +lean_dec(x_125); +lean_inc(x_95); +x_128 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_128, 0, x_95); +lean_inc(x_4); +lean_inc(x_95); +x_129 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__3), 7, 4); +lean_closure_set(x_129, 0, x_1); +lean_closure_set(x_129, 1, x_95); +lean_closure_set(x_129, 2, x_126); +lean_closure_set(x_129, 3, x_4); lean_inc(x_2); -x_135 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_128); -if (lean_obj_tag(x_135) == 0) +x_130 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_127); +if (lean_obj_tag(x_130) == 0) { -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; -x_136 = lean_ctor_get(x_134, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 0); +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; +x_131 = lean_ctor_get(x_130, 0); +lean_inc(x_131); +x_132 = lean_ctor_get(x_130, 1); +lean_inc(x_132); +lean_dec(x_130); +x_133 = l___private_Init_Lean_Elab_Command_11__getVarDecls(x_131); +x_134 = l___private_Init_Lean_Elab_Command_9__mkTermContext(x_2, x_131, x_128); +x_135 = l___private_Init_Lean_Elab_Command_10__mkTermState(x_131); +lean_dec(x_131); +x_136 = l_Lean_Elab_Term_elabBinders___rarg(x_133, x_129, x_134, x_135); +lean_dec(x_133); +if (lean_obj_tag(x_136) == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_137 = lean_ctor_get(x_136, 0); lean_inc(x_137); -x_138 = lean_ctor_get(x_135, 1); +x_138 = lean_ctor_get(x_136, 1); lean_inc(x_138); -lean_dec(x_135); -x_139 = lean_ctor_get(x_136, 0); -lean_inc(x_139); lean_dec(x_136); -x_140 = lean_ctor_get(x_134, 2); +lean_inc(x_2); +x_139 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_132); +if (lean_obj_tag(x_139) == 0) +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +x_140 = lean_ctor_get(x_138, 0); lean_inc(x_140); -lean_dec(x_134); -x_141 = !lean_is_exclusive(x_137); -if (x_141 == 0) +x_141 = lean_ctor_get(x_139, 0); +lean_inc(x_141); +x_142 = lean_ctor_get(x_139, 1); +lean_inc(x_142); +lean_dec(x_139); +x_143 = lean_ctor_get(x_140, 0); +lean_inc(x_143); +lean_dec(x_140); +x_144 = lean_ctor_get(x_138, 2); +lean_inc(x_144); +lean_dec(x_138); +x_145 = !lean_is_exclusive(x_141); +if (x_145 == 0) { -lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_142 = lean_ctor_get(x_137, 1); -lean_dec(x_142); -x_143 = lean_ctor_get(x_137, 0); -lean_dec(x_143); -lean_ctor_set(x_137, 1, x_140); -lean_ctor_set(x_137, 0, x_139); +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_141, 1); +lean_dec(x_146); +x_147 = lean_ctor_get(x_141, 0); +lean_dec(x_147); +lean_ctor_set(x_141, 1, x_144); +lean_ctor_set(x_141, 0, x_143); lean_inc(x_2); -x_144 = l___private_Init_Lean_Elab_Command_3__setState(x_137, x_2, x_138); -if (lean_obj_tag(x_144) == 0) +x_148 = l___private_Init_Lean_Elab_Command_3__setState(x_141, x_2, x_142); +if (lean_obj_tag(x_148) == 0) { -lean_object* x_145; -x_145 = lean_ctor_get(x_144, 1); -lean_inc(x_145); -lean_dec(x_144); -x_94 = x_133; -x_95 = x_145; -goto block_117; -} -else -{ -lean_object* x_146; lean_object* x_147; -lean_dec(x_133); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); -lean_dec(x_4); -x_146 = lean_ctor_get(x_144, 0); -lean_inc(x_146); -x_147 = lean_ctor_get(x_144, 1); -lean_inc(x_147); -lean_dec(x_144); -x_77 = x_146; -x_78 = x_147; -goto block_88; -} -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; -x_148 = lean_ctor_get(x_137, 2); -x_149 = lean_ctor_get(x_137, 3); -x_150 = lean_ctor_get(x_137, 4); -lean_inc(x_150); +lean_object* x_149; +x_149 = lean_ctor_get(x_148, 1); lean_inc(x_149); -lean_inc(x_148); +lean_dec(x_148); +x_98 = x_137; +x_99 = x_149; +goto block_121; +} +else +{ +lean_object* x_150; lean_object* x_151; lean_dec(x_137); -x_151 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_151, 0, x_139); -lean_ctor_set(x_151, 1, x_140); -lean_ctor_set(x_151, 2, x_148); -lean_ctor_set(x_151, 3, x_149); -lean_ctor_set(x_151, 4, x_150); -lean_inc(x_2); -x_152 = l___private_Init_Lean_Elab_Command_3__setState(x_151, x_2, x_138); -if (lean_obj_tag(x_152) == 0) -{ -lean_object* x_153; -x_153 = lean_ctor_get(x_152, 1); -lean_inc(x_153); -lean_dec(x_152); -x_94 = x_133; -x_95 = x_153; -goto block_117; +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_150 = lean_ctor_get(x_148, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_148, 1); +lean_inc(x_151); +lean_dec(x_148); +x_81 = x_150; +x_82 = x_151; +goto block_92; +} } else { -lean_object* x_154; lean_object* x_155; -lean_dec(x_133); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); -lean_dec(x_4); -x_154 = lean_ctor_get(x_152, 0); +lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +x_152 = lean_ctor_get(x_141, 2); +x_153 = lean_ctor_get(x_141, 3); +x_154 = lean_ctor_get(x_141, 4); lean_inc(x_154); -x_155 = lean_ctor_get(x_152, 1); -lean_inc(x_155); -lean_dec(x_152); -x_77 = x_154; -x_78 = x_155; -goto block_88; -} -} -} -else +lean_inc(x_153); +lean_inc(x_152); +lean_dec(x_141); +x_155 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_155, 0, x_143); +lean_ctor_set(x_155, 1, x_144); +lean_ctor_set(x_155, 2, x_152); +lean_ctor_set(x_155, 3, x_153); +lean_ctor_set(x_155, 4, x_154); +lean_inc(x_2); +x_156 = l___private_Init_Lean_Elab_Command_3__setState(x_155, x_2, x_142); +if (lean_obj_tag(x_156) == 0) { -lean_object* x_156; lean_object* x_157; -lean_dec(x_134); -lean_dec(x_133); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); -lean_dec(x_4); -x_156 = lean_ctor_get(x_135, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_135, 1); +lean_object* x_157; +x_157 = lean_ctor_get(x_156, 1); lean_inc(x_157); -lean_dec(x_135); -x_77 = x_156; -x_78 = x_157; -goto block_88; -} +lean_dec(x_156); +x_98 = x_137; +x_99 = x_157; +goto block_121; } else { -lean_object* x_158; -x_158 = lean_ctor_get(x_132, 0); +lean_object* x_158; lean_object* x_159; +lean_dec(x_137); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_158 = lean_ctor_get(x_156, 0); lean_inc(x_158); -if (lean_obj_tag(x_158) == 0) -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); -lean_dec(x_4); -x_159 = lean_ctor_get(x_132, 1); +x_159 = lean_ctor_get(x_156, 1); lean_inc(x_159); -lean_dec(x_132); -x_160 = lean_ctor_get(x_158, 0); -lean_inc(x_160); -lean_dec(x_158); -lean_inc(x_2); -x_161 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_128); -if (lean_obj_tag(x_161) == 0) -{ -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; uint8_t x_167; -x_162 = lean_ctor_get(x_159, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_161, 0); -lean_inc(x_163); -x_164 = lean_ctor_get(x_161, 1); -lean_inc(x_164); -lean_dec(x_161); -x_165 = lean_ctor_get(x_162, 0); -lean_inc(x_165); -lean_dec(x_162); -x_166 = lean_ctor_get(x_159, 2); -lean_inc(x_166); -lean_dec(x_159); -x_167 = !lean_is_exclusive(x_163); -if (x_167 == 0) -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; -x_168 = lean_ctor_get(x_163, 1); -lean_dec(x_168); -x_169 = lean_ctor_get(x_163, 0); -lean_dec(x_169); -lean_ctor_set(x_163, 1, x_166); -lean_ctor_set(x_163, 0, x_165); -lean_inc(x_2); -x_170 = l___private_Init_Lean_Elab_Command_3__setState(x_163, x_2, x_164); -if (lean_obj_tag(x_170) == 0) -{ -lean_object* x_171; -x_171 = lean_ctor_get(x_170, 1); -lean_inc(x_171); -lean_dec(x_170); -x_77 = x_160; -x_78 = x_171; -goto block_88; -} -else -{ -lean_object* x_172; lean_object* x_173; -lean_dec(x_160); -x_172 = lean_ctor_get(x_170, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_170, 1); -lean_inc(x_173); -lean_dec(x_170); -x_77 = x_172; -x_78 = x_173; -goto block_88; -} -} -else -{ -lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; -x_174 = lean_ctor_get(x_163, 2); -x_175 = lean_ctor_get(x_163, 3); -x_176 = lean_ctor_get(x_163, 4); -lean_inc(x_176); -lean_inc(x_175); -lean_inc(x_174); -lean_dec(x_163); -x_177 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_177, 0, x_165); -lean_ctor_set(x_177, 1, x_166); -lean_ctor_set(x_177, 2, x_174); -lean_ctor_set(x_177, 3, x_175); -lean_ctor_set(x_177, 4, x_176); -lean_inc(x_2); -x_178 = l___private_Init_Lean_Elab_Command_3__setState(x_177, x_2, x_164); -if (lean_obj_tag(x_178) == 0) -{ -lean_object* x_179; -x_179 = lean_ctor_get(x_178, 1); -lean_inc(x_179); -lean_dec(x_178); -x_77 = x_160; -x_78 = x_179; -goto block_88; -} -else -{ -lean_object* x_180; lean_object* x_181; -lean_dec(x_160); -x_180 = lean_ctor_get(x_178, 0); -lean_inc(x_180); -x_181 = lean_ctor_get(x_178, 1); -lean_inc(x_181); -lean_dec(x_178); -x_77 = x_180; -x_78 = x_181; -goto block_88; +lean_dec(x_156); +x_81 = x_158; +x_82 = x_159; +goto block_92; } } } else { -lean_object* x_182; lean_object* x_183; -lean_dec(x_160); -lean_dec(x_159); -x_182 = lean_ctor_get(x_161, 0); -lean_inc(x_182); -x_183 = lean_ctor_get(x_161, 1); -lean_inc(x_183); -lean_dec(x_161); -x_77 = x_182; -x_78 = x_183; -goto block_88; -} -} -else -{ -lean_object* x_184; lean_object* x_185; lean_object* x_186; -lean_dec(x_132); -x_184 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_185 = l_unreachable_x21___rarg(x_184); -lean_inc(x_2); -x_186 = lean_apply_2(x_185, x_2, x_128); -if (lean_obj_tag(x_186) == 0) -{ -lean_object* x_187; lean_object* x_188; -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_94 = x_187; -x_95 = x_188; -goto block_117; -} -else -{ -lean_object* x_189; lean_object* x_190; -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); +lean_object* x_160; lean_object* x_161; +lean_dec(x_138); +lean_dec(x_137); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); -x_189 = lean_ctor_get(x_186, 0); -lean_inc(x_189); -x_190 = lean_ctor_get(x_186, 1); -lean_inc(x_190); -lean_dec(x_186); -x_77 = x_189; -x_78 = x_190; -goto block_88; +x_160 = lean_ctor_get(x_139, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_139, 1); +lean_inc(x_161); +lean_dec(x_139); +x_81 = x_160; +x_82 = x_161; +goto block_92; } } +else +{ +lean_object* x_162; +x_162 = lean_ctor_get(x_136, 0); +lean_inc(x_162); +if (lean_obj_tag(x_162) == 0) +{ +lean_object* x_163; lean_object* x_164; lean_object* x_165; +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_163 = lean_ctor_get(x_136, 1); +lean_inc(x_163); +lean_dec(x_136); +x_164 = lean_ctor_get(x_162, 0); +lean_inc(x_164); +lean_dec(x_162); +lean_inc(x_2); +x_165 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_132); +if (lean_obj_tag(x_165) == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; uint8_t x_171; +x_166 = lean_ctor_get(x_163, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_165, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_165, 1); +lean_inc(x_168); +lean_dec(x_165); +x_169 = lean_ctor_get(x_166, 0); +lean_inc(x_169); +lean_dec(x_166); +x_170 = lean_ctor_get(x_163, 2); +lean_inc(x_170); +lean_dec(x_163); +x_171 = !lean_is_exclusive(x_167); +if (x_171 == 0) +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; +x_172 = lean_ctor_get(x_167, 1); +lean_dec(x_172); +x_173 = lean_ctor_get(x_167, 0); +lean_dec(x_173); +lean_ctor_set(x_167, 1, x_170); +lean_ctor_set(x_167, 0, x_169); +lean_inc(x_2); +x_174 = l___private_Init_Lean_Elab_Command_3__setState(x_167, x_2, x_168); +if (lean_obj_tag(x_174) == 0) +{ +lean_object* x_175; +x_175 = lean_ctor_get(x_174, 1); +lean_inc(x_175); +lean_dec(x_174); +x_81 = x_164; +x_82 = x_175; +goto block_92; +} +else +{ +lean_object* x_176; lean_object* x_177; +lean_dec(x_164); +x_176 = lean_ctor_get(x_174, 0); +lean_inc(x_176); +x_177 = lean_ctor_get(x_174, 1); +lean_inc(x_177); +lean_dec(x_174); +x_81 = x_176; +x_82 = x_177; +goto block_92; +} +} +else +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; +x_178 = lean_ctor_get(x_167, 2); +x_179 = lean_ctor_get(x_167, 3); +x_180 = lean_ctor_get(x_167, 4); +lean_inc(x_180); +lean_inc(x_179); +lean_inc(x_178); +lean_dec(x_167); +x_181 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_181, 0, x_169); +lean_ctor_set(x_181, 1, x_170); +lean_ctor_set(x_181, 2, x_178); +lean_ctor_set(x_181, 3, x_179); +lean_ctor_set(x_181, 4, x_180); +lean_inc(x_2); +x_182 = l___private_Init_Lean_Elab_Command_3__setState(x_181, x_2, x_168); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; +x_183 = lean_ctor_get(x_182, 1); +lean_inc(x_183); +lean_dec(x_182); +x_81 = x_164; +x_82 = x_183; +goto block_92; +} +else +{ +lean_object* x_184; lean_object* x_185; +lean_dec(x_164); +x_184 = lean_ctor_get(x_182, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_182, 1); +lean_inc(x_185); +lean_dec(x_182); +x_81 = x_184; +x_82 = x_185; +goto block_92; +} } } else { +lean_object* x_186; lean_object* x_187; +lean_dec(x_164); +lean_dec(x_163); +x_186 = lean_ctor_get(x_165, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_165, 1); +lean_inc(x_187); +lean_dec(x_165); +x_81 = x_186; +x_82 = x_187; +goto block_92; +} +} +else +{ +lean_object* x_188; lean_object* x_189; lean_object* x_190; +lean_dec(x_136); +x_188 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; +x_189 = l_unreachable_x21___rarg(x_188); +lean_inc(x_2); +x_190 = lean_apply_2(x_189, x_2, x_132); +if (lean_obj_tag(x_190) == 0) +{ lean_object* x_191; lean_object* x_192; -lean_dec(x_125); -lean_dec(x_124); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); -lean_dec(x_4); -x_191 = lean_ctor_get(x_126, 0); +x_191 = lean_ctor_get(x_190, 0); lean_inc(x_191); -x_192 = lean_ctor_get(x_126, 1); +x_192 = lean_ctor_get(x_190, 1); lean_inc(x_192); -lean_dec(x_126); -x_77 = x_191; -x_78 = x_192; -goto block_88; -} +lean_dec(x_190); +x_98 = x_191; +x_99 = x_192; +goto block_121; } else { lean_object* x_193; lean_object* x_194; -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); -lean_dec(x_1); -x_193 = lean_ctor_get(x_121, 0); +x_193 = lean_ctor_get(x_190, 0); lean_inc(x_193); -x_194 = lean_ctor_get(x_121, 1); +x_194 = lean_ctor_get(x_190, 1); lean_inc(x_194); -lean_dec(x_121); -x_77 = x_193; -x_78 = x_194; -goto block_88; +lean_dec(x_190); +x_81 = x_193; +x_82 = x_194; +goto block_92; +} +} } } else { lean_object* x_195; lean_object* x_196; -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); +lean_dec(x_129); +lean_dec(x_128); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_195 = lean_ctor_get(x_130, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_130, 1); +lean_inc(x_196); +lean_dec(x_130); +x_81 = x_195; +x_82 = x_196; +goto block_92; +} +} +else +{ +lean_object* x_197; lean_object* x_198; +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); lean_dec(x_1); -x_195 = lean_ctor_get(x_119, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_119, 1); -lean_inc(x_196); -lean_dec(x_119); -x_77 = x_195; -x_78 = x_196; -goto block_88; +x_197 = lean_ctor_get(x_125, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_125, 1); +lean_inc(x_198); +lean_dec(x_125); +x_81 = x_197; +x_82 = x_198; +goto block_92; } -block_117: -{ -if (lean_obj_tag(x_94) == 0) -{ -lean_object* x_96; -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_4); -x_96 = lean_box(0); -x_25 = x_96; -x_26 = x_95; -goto block_76; } else { -lean_object* x_97; lean_object* x_98; -x_97 = lean_ctor_get(x_94, 0); -lean_inc(x_97); -lean_dec(x_94); -lean_inc(x_2); -lean_inc(x_4); -x_98 = l_Lean_Elab_Command_addDecl(x_4, x_97, x_2, x_95); +lean_object* x_199; lean_object* x_200; +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +lean_dec(x_1); +x_199 = lean_ctor_get(x_123, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_123, 1); +lean_inc(x_200); +lean_dec(x_123); +x_81 = x_199; +x_82 = x_200; +goto block_92; +} +block_121: +{ if (lean_obj_tag(x_98) == 0) { -lean_object* x_99; uint8_t x_100; lean_object* x_101; -x_99 = lean_ctor_get(x_98, 1); -lean_inc(x_99); -lean_dec(x_98); -x_100 = 0; -lean_inc(x_2); -lean_inc(x_91); -lean_inc(x_4); -x_101 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_91, x_100, x_93, x_6, x_2, x_99); -if (lean_obj_tag(x_101) == 0) -{ -lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -lean_dec(x_101); -lean_inc(x_2); -lean_inc(x_4); -x_103 = l_Lean_Elab_Command_compileDecl(x_4, x_97, x_2, x_102); +lean_object* x_100; lean_dec(x_97); -if (lean_obj_tag(x_103) == 0) +lean_dec(x_95); +lean_dec(x_4); +x_100 = lean_box(0); +x_29 = x_100; +x_30 = x_99; +goto block_80; +} +else { -lean_object* x_104; uint8_t x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_103, 1); -lean_inc(x_104); -lean_dec(x_103); -x_105 = 1; +lean_object* x_101; lean_object* x_102; +x_101 = lean_ctor_get(x_98, 0); +lean_inc(x_101); +lean_dec(x_98); lean_inc(x_2); -x_106 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_91, x_105, x_93, x_6, x_2, x_104); -lean_dec(x_93); -if (lean_obj_tag(x_106) == 0) +lean_inc(x_4); +x_102 = l_Lean_Elab_Command_addDecl(x_4, x_101, x_2, x_99); +if (lean_obj_tag(x_102) == 0) { -lean_object* x_107; lean_object* x_108; -x_107 = lean_ctor_get(x_106, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_106, 1); +lean_object* x_103; uint8_t x_104; lean_object* x_105; +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +lean_dec(x_102); +x_104 = 0; +lean_inc(x_2); +lean_inc(x_95); +lean_inc(x_4); +x_105 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_95, x_104, x_97, x_6, x_2, x_103); +if (lean_obj_tag(x_105) == 0) +{ +lean_object* x_106; lean_object* x_107; +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +lean_dec(x_105); +lean_inc(x_2); +lean_inc(x_4); +x_107 = l_Lean_Elab_Command_compileDecl(x_4, x_101, x_2, x_106); +lean_dec(x_101); +if (lean_obj_tag(x_107) == 0) +{ +lean_object* x_108; uint8_t x_109; lean_object* x_110; +x_108 = lean_ctor_get(x_107, 1); lean_inc(x_108); -lean_dec(x_106); -x_25 = x_107; -x_26 = x_108; -goto block_76; -} -else -{ -lean_object* x_109; lean_object* x_110; -lean_dec(x_15); -x_109 = lean_ctor_get(x_106, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_106, 1); -lean_inc(x_110); -lean_dec(x_106); -x_77 = x_109; -x_78 = x_110; -goto block_88; -} -} -else +lean_dec(x_107); +x_109 = 1; +lean_inc(x_2); +x_110 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_95, x_109, x_97, x_6, x_2, x_108); +lean_dec(x_97); +if (lean_obj_tag(x_110) == 0) { lean_object* x_111; lean_object* x_112; -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); -lean_dec(x_4); -x_111 = lean_ctor_get(x_103, 0); +x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); -x_112 = lean_ctor_get(x_103, 1); +x_112 = lean_ctor_get(x_110, 1); lean_inc(x_112); -lean_dec(x_103); -x_77 = x_111; -x_78 = x_112; -goto block_88; -} +lean_dec(x_110); +x_29 = x_111; +x_30 = x_112; +goto block_80; } else { lean_object* x_113; lean_object* x_114; -lean_dec(x_97); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); -lean_dec(x_4); -x_113 = lean_ctor_get(x_101, 0); +lean_dec(x_18); +x_113 = lean_ctor_get(x_110, 0); lean_inc(x_113); -x_114 = lean_ctor_get(x_101, 1); +x_114 = lean_ctor_get(x_110, 1); lean_inc(x_114); -lean_dec(x_101); -x_77 = x_113; -x_78 = x_114; -goto block_88; +lean_dec(x_110); +x_81 = x_113; +x_82 = x_114; +goto block_92; } } else { lean_object* x_115; lean_object* x_116; lean_dec(x_97); -lean_dec(x_93); -lean_dec(x_91); -lean_dec(x_15); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); -x_115 = lean_ctor_get(x_98, 0); +x_115 = lean_ctor_get(x_107, 0); lean_inc(x_115); -x_116 = lean_ctor_get(x_98, 1); +x_116 = lean_ctor_get(x_107, 1); lean_inc(x_116); -lean_dec(x_98); -x_77 = x_115; -x_78 = x_116; -goto block_88; +lean_dec(x_107); +x_81 = x_115; +x_82 = x_116; +goto block_92; +} +} +else +{ +lean_object* x_117; lean_object* x_118; +lean_dec(x_101); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_117 = lean_ctor_get(x_105, 0); +lean_inc(x_117); +x_118 = lean_ctor_get(x_105, 1); +lean_inc(x_118); +lean_dec(x_105); +x_81 = x_117; +x_82 = x_118; +goto block_92; +} +} +else +{ +lean_object* x_119; lean_object* x_120; +lean_dec(x_101); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_119 = lean_ctor_get(x_102, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_102, 1); +lean_inc(x_120); +lean_dec(x_102); +x_81 = x_119; +x_82 = x_120; +goto block_92; } } } } else { -lean_object* x_197; lean_object* x_198; -lean_dec(x_89); -lean_dec(x_15); +lean_object* x_201; lean_object* x_202; +lean_dec(x_93); +lean_dec(x_18); lean_dec(x_4); lean_dec(x_1); -x_197 = lean_ctor_get(x_90, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_90, 1); -lean_inc(x_198); -lean_dec(x_90); -x_77 = x_197; -x_78 = x_198; -goto block_88; +x_201 = lean_ctor_get(x_94, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_94, 1); +lean_inc(x_202); +lean_dec(x_94); +x_81 = x_201; +x_82 = x_202; +goto block_92; } -block_76: +block_80: { -lean_object* x_27; +lean_object* x_31; lean_inc(x_2); lean_inc(x_11); -x_27 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__2(x_11, x_2, x_26); -if (lean_obj_tag(x_27) == 0) +x_31 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__2(x_11, x_2, x_30); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_28; lean_object* x_29; +lean_object* x_32; lean_object* x_33; lean_dec(x_11); -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); lean_inc(x_2); -x_29 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_28); -if (lean_obj_tag(x_29) == 0) +x_33 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_32); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_29, 1); -lean_inc(x_31); -lean_dec(x_29); -x_32 = !lean_is_exclusive(x_30); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_33 = lean_ctor_get(x_30, 2); -x_34 = l_Lean_Name_getNumParts___main(x_15); -lean_dec(x_15); -x_35 = l_List_drop___main___rarg(x_34, x_33); +lean_object* x_34; lean_object* x_35; uint8_t x_36; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); lean_dec(x_33); -lean_ctor_set(x_30, 2, x_35); -x_36 = l___private_Init_Lean_Elab_Command_3__setState(x_30, x_2, x_31); -if (lean_obj_tag(x_36) == 0) +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) { -uint8_t x_37; -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -lean_ctor_set(x_36, 0, x_25); -return x_36; -} -else -{ -lean_object* x_39; lean_object* x_40; -x_39 = lean_ctor_get(x_36, 1); -lean_inc(x_39); -lean_dec(x_36); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_25); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -else +lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_37 = lean_ctor_get(x_34, 2); +x_38 = l_Lean_Name_getNumParts___main(x_18); +lean_dec(x_18); +x_39 = l_List_drop___main___rarg(x_38, x_37); +lean_dec(x_37); +lean_ctor_set(x_34, 2, x_39); +x_40 = l___private_Init_Lean_Elab_Command_3__setState(x_34, x_2, x_35); +if (lean_obj_tag(x_40) == 0) { uint8_t x_41; -lean_dec(x_25); -x_41 = !lean_is_exclusive(x_36); +x_41 = !lean_is_exclusive(x_40); if (x_41 == 0) { -return x_36; +lean_object* x_42; +x_42 = lean_ctor_get(x_40, 0); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_29); +return x_40; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_36, 0); -x_43 = lean_ctor_get(x_36, 1); +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_36); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); +lean_dec(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_29); lean_ctor_set(x_44, 1, x_43); return x_44; } } +else +{ +uint8_t x_45; +lean_dec(x_29); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) +{ +return x_40; } else { -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_45 = lean_ctor_get(x_30, 0); -x_46 = lean_ctor_get(x_30, 1); -x_47 = lean_ctor_get(x_30, 2); -x_48 = lean_ctor_get(x_30, 3); -x_49 = lean_ctor_get(x_30, 4); -lean_inc(x_49); -lean_inc(x_48); +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_40, 0); +x_47 = lean_ctor_get(x_40, 1); lean_inc(x_47); lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_30); -x_50 = l_Lean_Name_getNumParts___main(x_15); -lean_dec(x_15); -x_51 = l_List_drop___main___rarg(x_50, x_47); -lean_dec(x_47); -x_52 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_52, 0, x_45); -lean_ctor_set(x_52, 1, x_46); -lean_ctor_set(x_52, 2, x_51); -lean_ctor_set(x_52, 3, x_48); -lean_ctor_set(x_52, 4, x_49); -x_53 = l___private_Init_Lean_Elab_Command_3__setState(x_52, x_2, x_31); -if (lean_obj_tag(x_53) == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_53, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_55 = x_53; -} else { - lean_dec_ref(x_53); - x_55 = lean_box(0); +lean_dec(x_40); +x_48 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_48, 0, x_46); +lean_ctor_set(x_48, 1, x_47); +return x_48; } -if (lean_is_scalar(x_55)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_55; } -lean_ctor_set(x_56, 0, x_25); -lean_ctor_set(x_56, 1, x_54); -return x_56; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_25); -x_57 = lean_ctor_get(x_53, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_53, 1); +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; +x_49 = lean_ctor_get(x_34, 0); +x_50 = lean_ctor_get(x_34, 1); +x_51 = lean_ctor_get(x_34, 2); +x_52 = lean_ctor_get(x_34, 3); +x_53 = lean_ctor_get(x_34, 4); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_34); +x_54 = l_Lean_Name_getNumParts___main(x_18); +lean_dec(x_18); +x_55 = l_List_drop___main___rarg(x_54, x_51); +lean_dec(x_51); +x_56 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_56, 0, x_49); +lean_ctor_set(x_56, 1, x_50); +lean_ctor_set(x_56, 2, x_55); +lean_ctor_set(x_56, 3, x_52); +lean_ctor_set(x_56, 4, x_53); +x_57 = l___private_Init_Lean_Elab_Command_3__setState(x_56, x_2, x_35); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); -if (lean_is_exclusive(x_53)) { - lean_ctor_release(x_53, 0); - lean_ctor_release(x_53, 1); - x_59 = x_53; +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_59 = x_57; } else { - lean_dec_ref(x_53); + lean_dec_ref(x_57); x_59 = lean_box(0); } if (lean_is_scalar(x_59)) { - x_60 = lean_alloc_ctor(1, 2, 0); + x_60 = lean_alloc_ctor(0, 2, 0); } else { x_60 = x_59; } -lean_ctor_set(x_60, 0, x_57); +lean_ctor_set(x_60, 0, x_29); lean_ctor_set(x_60, 1, x_58); return x_60; } -} -} else { -uint8_t x_61; -lean_dec(x_25); -lean_dec(x_15); -lean_dec(x_2); -x_61 = !lean_is_exclusive(x_29); -if (x_61 == 0) -{ -return x_29; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; -x_62 = lean_ctor_get(x_29, 0); -x_63 = lean_ctor_get(x_29, 1); -lean_inc(x_63); -lean_inc(x_62); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_dec(x_29); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_62); -lean_ctor_set(x_64, 1, x_63); +x_61 = lean_ctor_get(x_57, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_57, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_63 = x_57; +} else { + lean_dec_ref(x_57); + x_63 = lean_box(0); +} +if (lean_is_scalar(x_63)) { + x_64 = lean_alloc_ctor(1, 2, 0); +} else { + x_64 = x_63; +} +lean_ctor_set(x_64, 0, x_61); +lean_ctor_set(x_64, 1, x_62); return x_64; } } } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; -lean_dec(x_25); -lean_dec(x_15); -x_65 = lean_ctor_get(x_27, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_27, 1); +uint8_t x_65; +lean_dec(x_29); +lean_dec(x_18); +lean_dec(x_2); +x_65 = !lean_is_exclusive(x_33); +if (x_65 == 0) +{ +return x_33; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_33, 0); +x_67 = lean_ctor_get(x_33, 1); +lean_inc(x_67); lean_inc(x_66); -lean_dec(x_27); -x_67 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__3(x_11, x_2, x_66); -if (lean_obj_tag(x_67) == 0) -{ -uint8_t x_68; -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -lean_ctor_set_tag(x_67, 1); -lean_ctor_set(x_67, 0, x_65); -return x_67; +lean_dec(x_33); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} } else { -lean_object* x_70; lean_object* x_71; -x_70 = lean_ctor_get(x_67, 1); +lean_object* x_69; lean_object* x_70; lean_object* x_71; +lean_dec(x_29); +lean_dec(x_18); +x_69 = lean_ctor_get(x_31, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_31, 1); lean_inc(x_70); -lean_dec(x_67); -x_71 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_71, 0, x_65); -lean_ctor_set(x_71, 1, x_70); -return x_71; -} -} -else +lean_dec(x_31); +x_71 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__3(x_11, x_2, x_70); +if (lean_obj_tag(x_71) == 0) { uint8_t x_72; -lean_dec(x_65); -x_72 = !lean_is_exclusive(x_67); +x_72 = !lean_is_exclusive(x_71); if (x_72 == 0) { -return x_67; +lean_object* x_73; +x_73 = lean_ctor_get(x_71, 0); +lean_dec(x_73); +lean_ctor_set_tag(x_71, 1); +lean_ctor_set(x_71, 0, x_69); +return x_71; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_67, 0); -x_74 = lean_ctor_get(x_67, 1); +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_71, 1); lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_67); +lean_dec(x_71); x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 0, x_69); lean_ctor_set(x_75, 1, x_74); return x_75; } } +else +{ +uint8_t x_76; +lean_dec(x_69); +x_76 = !lean_is_exclusive(x_71); +if (x_76 == 0) +{ +return x_71; } -} -block_88: +else { -lean_object* x_79; -x_79 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__4(x_11, x_2, x_78); -if (lean_obj_tag(x_79) == 0) -{ -uint8_t x_80; -x_80 = !lean_is_exclusive(x_79); -if (x_80 == 0) -{ -lean_object* x_81; -x_81 = lean_ctor_get(x_79, 0); -lean_dec(x_81); -lean_ctor_set_tag(x_79, 1); +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_71, 0); +x_78 = lean_ctor_get(x_71, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_71); +x_79 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); return x_79; } -else +} +} +} +block_92: { -lean_object* x_82; lean_object* x_83; -x_82 = lean_ctor_get(x_79, 1); -lean_inc(x_82); -lean_dec(x_79); -x_83 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_83, 0, x_77); -lean_ctor_set(x_83, 1, x_82); -return x_83; -} -} -else +lean_object* x_83; +x_83 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__4(x_11, x_2, x_82); +if (lean_obj_tag(x_83) == 0) { uint8_t x_84; -lean_dec(x_77); -x_84 = !lean_is_exclusive(x_79); +x_84 = !lean_is_exclusive(x_83); if (x_84 == 0) { -return x_79; +lean_object* x_85; +x_85 = lean_ctor_get(x_83, 0); +lean_dec(x_85); +lean_ctor_set_tag(x_83, 1); +lean_ctor_set(x_83, 0, x_81); +return x_83; } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_85 = lean_ctor_get(x_79, 0); -x_86 = lean_ctor_get(x_79, 1); +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_83, 1); lean_inc(x_86); -lean_inc(x_85); -lean_dec(x_79); +lean_dec(x_83); x_87 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 0, x_81); lean_ctor_set(x_87, 1, x_86); return x_87; } } -} +else +{ +uint8_t x_88; +lean_dec(x_81); +x_88 = !lean_is_exclusive(x_83); +if (x_88 == 0) +{ +return x_83; } else { -uint8_t x_199; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_199 = !lean_is_exclusive(x_21); -if (x_199 == 0) -{ -return x_21; +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_83, 0); +x_90 = lean_ctor_get(x_83, 1); +lean_inc(x_90); +lean_inc(x_89); +lean_dec(x_83); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +return x_91; } -else -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_21, 0); -x_201 = lean_ctor_get(x_21, 1); -lean_inc(x_201); -lean_inc(x_200); -lean_dec(x_21); -x_202 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_202, 0, x_200); -lean_ctor_set(x_202, 1, x_201); -return x_202; } } } else { uint8_t x_203; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_13); +lean_dec(x_22); +lean_dec(x_18); lean_dec(x_11); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_203 = !lean_is_exclusive(x_19); +x_203 = !lean_is_exclusive(x_27); if (x_203 == 0) { -return x_19; +return x_27; } else { lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_19, 0); -x_205 = lean_ctor_get(x_19, 1); +x_204 = lean_ctor_get(x_27, 0); +x_205 = lean_ctor_get(x_27, 1); lean_inc(x_205); lean_inc(x_204); -lean_dec(x_19); +lean_dec(x_27); x_206 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_206, 0, x_204); lean_ctor_set(x_206, 1, x_205); @@ -5610,44 +5590,75 @@ return x_206; } else { -lean_object* x_207; lean_object* x_208; +uint8_t x_207; +lean_dec(x_22); +lean_dec(x_18); lean_dec(x_13); lean_dec(x_11); -lean_dec(x_7); lean_dec(x_4); +lean_dec(x_2); lean_dec(x_1); -x_207 = l_Lean_Elab_Command_withDeclId___closed__3; -x_208 = l_Lean_Elab_Command_throwError___rarg(x_5, x_207, x_2, x_14); -return x_208; +x_207 = !lean_is_exclusive(x_25); +if (x_207 == 0) +{ +return x_25; +} +else +{ +lean_object* x_208; lean_object* x_209; lean_object* x_210; +x_208 = lean_ctor_get(x_25, 0); +x_209 = lean_ctor_get(x_25, 1); +lean_inc(x_209); +lean_inc(x_208); +lean_dec(x_25); +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_208); +lean_ctor_set(x_210, 1, x_209); +return x_210; } } } else { -uint8_t x_223; +lean_object* x_211; lean_object* x_212; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_4); +lean_dec(x_1); +x_211 = l_Lean_Elab_Command_withDeclId___closed__3; +x_212 = l_Lean_Elab_Command_throwError___rarg(x_5, x_211, x_2, x_14); +return x_212; +} +} +} +else +{ +uint8_t x_227; lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_223 = !lean_is_exclusive(x_10); -if (x_223 == 0) +x_227 = !lean_is_exclusive(x_10); +if (x_227 == 0) { return x_10; } else { -lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_224 = lean_ctor_get(x_10, 0); -x_225 = lean_ctor_get(x_10, 1); -lean_inc(x_225); -lean_inc(x_224); +lean_object* x_228; lean_object* x_229; lean_object* x_230; +x_228 = lean_ctor_get(x_10, 0); +x_229 = lean_ctor_get(x_10, 1); +lean_inc(x_229); +lean_inc(x_228); lean_dec(x_10); -x_226 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_226, 0, x_224); -lean_ctor_set(x_226, 1, x_225); -return x_226; +x_230 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_230, 0, x_228); +lean_ctor_set(x_230, 1, x_229); +return x_230; } } } diff --git a/stage0/stdlib/Init/Lean/Elab/Quotation.c b/stage0/stdlib/Init/Lean/Elab/Quotation.c index 0dcf1d64a1..e8ee08be1f 100644 --- a/stage0/stdlib/Init/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Init/Lean/Elab/Quotation.c @@ -16,19 +16,19 @@ extern "C" { lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Elab_Term_antiquotKind_x3f(lean_object*); lean_object* l_List_head_x21___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__2___closed__2; -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__18; lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__1___closed__2; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__21; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__2; +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__2___closed__3; extern lean_object* l_Lean_Parser_Term_app___elambda__1___closed__1; -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; lean_object* l_Lean_Elab_Term_isAntiquotSplice___boxed(lean_object*); lean_object* l_List_tail_x21___rarg(lean_object*); @@ -37,6 +37,8 @@ lean_object* l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___close lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23; lean_object* l_Lean_Syntax_isNatLitAux(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5; extern lean_object* l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__7; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41; @@ -45,7 +47,7 @@ lean_object* l_Lean_Parser_mkParserContext(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_declareBuiltinParser___closed__8; lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_14__toPreterm(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main(lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMatchSyntax___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__62; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot___closed__2; @@ -69,16 +71,18 @@ extern lean_object* l_Option_HasRepr___rarg___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_14__toPreterm___main___lambda__1___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_map___at_Lean_Elab_Term_oldGetAntiquotVars___spec__1(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__34; lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_14__toPreterm___main___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1; lean_object* l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(lean_object*); lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__11___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; extern lean_object* l_Lean_nameToExprAux___main___closed__8; +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__3___closed__4; +lean_object* l___private_Init_Lean_Elab_Quotation_11__getPatternVars(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_14__toPreterm___main___spec__10(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Prod_HasQuote___rarg___lambda__1___closed__5; lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); @@ -91,19 +95,20 @@ lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__15; extern lean_object* l_Prod_HasRepr___rarg___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__1; -lean_object* l_Lean_Elab_Term_elabStxQuot___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__21; lean_object* l_Array_findMAux___main___at___private_Init_Lean_Elab_Quotation_4__elimAntiquotChoices___main___spec__2___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38; lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__5; lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__3; extern lean_object* l_Lean_stxInh; +lean_object* l_Lean_Elab_Term_elabStxQuot___closed__1; extern lean_object* l_PersistentHashMap_mkCollisionNode___rarg___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkMVar(lean_object*); extern lean_object* l_Array_empty___closed__1; extern lean_object* l_Lean_Literal_type___closed__5; lean_object* l_Lean_Array_HasQuote___rarg___boxed(lean_object*, lean_object*); +lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__5; lean_object* l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___lambda__1___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49; @@ -114,13 +119,14 @@ lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__12; lean_object* l_Lean_Parser_mkParserState(lean_object*); lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__1___closed__3; +lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__1; -lean_object* l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_HeadInfo_generalizes(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); extern lean_object* l_Lean_nameToExprAux___main___closed__5; lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__1___closed__2; +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_isAntiquotSplicePat___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_14__toPreterm___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Prod_HasQuote___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Level_num___elambda__1___closed__1; @@ -133,7 +139,6 @@ lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__ lean_object* l_Lean_Array_HasQuote___rarg___lambda__1___closed__4; lean_object* l_Lean_Elab_Term_stxQuot_expand(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_14__toPreterm___main___closed__4; -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__4; lean_object* l_Lean_Elab_Term_antiquotKind_x3f___boxed(lean_object*); lean_object* l_Lean_Parser_mkInputContext(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; @@ -156,8 +161,10 @@ extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_2__appN___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMatchSyntax___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__2; +lean_object* lean_get_antiquot_vars(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__60; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__3; lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_14__toPreterm___main___spec__8(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__24; @@ -177,14 +184,16 @@ extern lean_object* l_Lean_FileMap_ofString___closed__1; extern lean_object* l_Lean_Meta_MetaHasEval___rarg___closed__4; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__7; lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__3___closed__5; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; lean_object* l_List_join___rarg(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2(lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_oldGetPatternVars___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Nat_HasOfNat___closed__1; lean_object* l_ReaderT_bind___at_Lean_Elab_Term_TermElabM_MonadLog___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1; +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__26; lean_object* l_Lean_Elab_Term_antiquotKind_x3f___closed__1; @@ -192,14 +201,17 @@ lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main(lean_objec lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__1___closed__7; extern lean_object* l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; extern lean_object* l_Lean_nameToExprAux___main___closed__3; +lean_object* l_ReaderT_map___at_Lean_Elab_Term_oldGetPatternVars___spec__1(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__9; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__35; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMatchSyntax___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45; -lean_object* l_Lean_Elab_Term_oldGetAntiquotVars___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39; +lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3(lean_object*); lean_object* l_Lean_Elab_Term_oldExpandStxQuot___closed__1; lean_object* l_List_head_x21___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__2(lean_object*); @@ -219,11 +231,13 @@ lean_object* l_List_replicate___rarg(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__3___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__1___closed__2; lean_object* l_Lean_Array_HasQuote___rarg___lambda__1___closed__1; -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__1(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__5; +lean_object* l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51; -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; extern lean_object* l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_14__toPreterm___main___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8(lean_object*, lean_object*, lean_object*); @@ -237,6 +251,7 @@ lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___c lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__5___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_14__toPreterm___main___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__39; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Name_appendIndexAfter___closed__1; extern lean_object* l_List_Monad; @@ -244,14 +259,12 @@ lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__14; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__1___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__1___closed__3; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__8; extern lean_object* l_Lean_Parser_Term_band___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; extern lean_object* l_Lean_Parser_Term_id___elambda__1___closed__2; extern lean_object* l_Lean_numLitKind; extern lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName(lean_object*); -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_choiceKind___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__2___closed__5; lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__2___closed__1; @@ -273,9 +286,8 @@ extern lean_object* l_Lean_Parser_Term_letPatDecl___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__27; extern lean_object* l___private_Init_Lean_Elab_Term_14__resumePostponed___lambda__1___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_14__toPreterm___main___closed__6; -lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_oldGetPatternVars___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__9; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__6(lean_object*, lean_object*, lean_object*); @@ -290,16 +302,19 @@ lean_object* l_Lean_Elab_Term_oldExpandMatchSyntax___closed__1; lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__8; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__29; +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_14__toPreterm___main___lambda__2___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__1___closed__5; extern lean_object* l___private_Init_Lean_Elab_Term_21__mkPairsAux___main___closed__7; lean_object* l___private_Init_Lean_Elab_Quotation_14__toPreterm___main___lambda__2___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +lean_object* l_Lean_Elab_Term_oldGetPatternVars___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_local_ctx(lean_object*); lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__17; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__32; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__10; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__4; +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; lean_object* l_Nat_repr(lean_object*); lean_object* l_Lean_Array_HasQuote___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__4; @@ -313,7 +328,7 @@ extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; uint8_t l_Lean_Elab_Term_isAntiquot(lean_object*); extern lean_object* l_Lean_Elab_Term_elabListLit___closed__4; -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__11; lean_object* l___private_Init_Lean_Elab_Quotation_14__toPreterm___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); @@ -325,9 +340,11 @@ extern lean_object* l_Lean_Elab_Exception_hasToString___closed__1; extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; extern lean_object* l_PersistentArray_empty___closed__3; lean_object* l_Lean_Elab_Term_resolveName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__9___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; lean_object* l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat(lean_object*, lean_object*, lean_object*, lean_object*); @@ -346,9 +363,9 @@ extern lean_object* l_Lean_Parser_Term_beq___elambda__1___closed__1; lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_14__toPreterm___main___spec__11(lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__10___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMatchSyntax(lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__2; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8___closed__2; +extern lean_object* l_Lean_Parser_Term_append___elambda__1___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg(lean_object*, lean_object*); extern lean_object* l_List_head_x21___rarg___closed__2; extern lean_object* l_Lean_nameToExprAux___main___closed__9; @@ -362,7 +379,7 @@ extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_hole___elambda__1___closed__1; lean_object* l_List_redLength___main___rarg(lean_object*); lean_object* l_Lean_Elab_Term_elabStxQuot(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_11__getAntiquotVars(lean_object*, lean_object*, lean_object*); +lean_object* l_List_map___main___at_Lean_Elab_Term_oldGetPatternVars___spec__2(lean_object*); lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__19; lean_object* l_Array_back___at___private_Init_Lean_Parser_Parser_6__updateCache___spec__1(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; @@ -387,6 +404,7 @@ extern lean_object* l_Lean_Parser_Term_if___elambda__1___closed__1; lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__3___boxed(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_str___elambda__1___closed__1; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8___closed__6; +lean_object* l_Lean_Elab_Term_oldGetPatternVars___closed__2; lean_object* l_List_join___main___rarg(lean_object*); lean_object* l_Lean_Elab_Term_HeadInfo_Inhabited___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___closed__1; @@ -396,7 +414,6 @@ extern lean_object* l_Lean_Elab_Term_elabArrayLit___closed__10; extern lean_object* l_Lean_Parser_Level_hole___elambda__1___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__2___closed__5; -lean_object* l_List_map___main___at_Lean_Elab_Term_oldGetAntiquotVars___spec__2(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__2___closed__1; extern lean_object* l_Lean_Parser_regBuiltinTermParserAttr___closed__4; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__1___closed__1; @@ -418,18 +435,15 @@ lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed extern lean_object* l_Lean_Parser_Level_paren___elambda__1___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Error_toString(lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__4(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__8; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__28; lean_object* l_Lean_Prod_HasQuote___rarg___lambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__2; extern lean_object* l_Lean_Parser_Term_letPatDecl___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___closed__3; lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_14__toPreterm___main___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLCtx(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__17; -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; lean_object* l_Lean_Syntax_setArg(lean_object*, lean_object*, lean_object*); lean_object* l_List_head_x21___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__1(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; @@ -473,16 +487,16 @@ lean_object* l_List_map___main___at_Lean_Elab_Term_oldExpandMatchSyntax___spec__ extern lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__4; lean_object* l_Lean_Elab_Term_elabMatchSyntax(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkStxStrLit(lean_object*, lean_object*); lean_object* l_Lean_Nat_HasQuote(lean_object*); extern lean_object* l_Lean_Elab_rootNamespace___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__1; -lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main___spec__1(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__37; uint8_t l_Lean_Elab_Term_isAntiquotSplicePat(lean_object*); lean_object* l_Lean_Elab_Term_HeadInfo_Inhabited; lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__21; extern lean_object* l___private_Init_Lean_Meta_LevelDefEq_10__processPostponedStep___closed__1; -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__5; lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_match__syntax_expand___spec__1___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___boxed(lean_object*); @@ -490,6 +504,7 @@ lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__7; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__2; lean_object* lean_get_namespace(lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; @@ -502,6 +517,8 @@ lean_object* l_Lean_Elab_Term_getOpenDecls(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__1___closed__4; lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__6; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__4; extern lean_object* l_Lean_Elab_rootNamespace___closed__2; lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__9(lean_object*, lean_object*, lean_object*); lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_14__toPreterm___main___spec__3(lean_object*, lean_object*, lean_object*); @@ -511,20 +528,19 @@ lean_object* l_Array_toList___rarg(lean_object*); extern lean_object* l_Lean_Expr_Inhabited; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55; lean_object* l_Lean_Elab_Term_addBuiltinTermElab(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_ReaderT_map___at_Lean_Elab_Term_oldGetAntiquotVars___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_13__exprPlaceholder___closed__1; uint8_t l_Lean_Elab_Term_isAntiquotSplice(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__3; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__30; uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_oldGetAntiquotVars___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_oldGetAntiquotVars___closed__1; lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_14__toPreterm___main___spec__12(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__3___closed__6; -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__4; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__2___closed__2; +lean_object* l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_15__oldRunTermElabM___rarg___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_15__oldRunTermElabM___rarg___closed__5; @@ -532,6 +548,7 @@ lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed lean_object* l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__4; lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__11; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__1; extern lean_object* l_Lean_Syntax_getKind___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot(lean_object*); lean_object* l_Array_findMAux___main___at___private_Init_Lean_Elab_Quotation_4__elimAntiquotChoices___main___spec__2(lean_object*, lean_object*, lean_object*); @@ -558,6 +575,7 @@ extern lean_object* l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nameToExprAux___main___closed__6; lean_object* l_List_toArrayAux___main___rarg(lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__4; lean_object* l_ReaderT_pure___at_Lean_Elab_Term_HeadInfo_Inhabited___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; @@ -566,16 +584,16 @@ extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_ReaderT_pure___at_Lean_Elab_Term_HeadInfo_Inhabited___spec__1(lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__10(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; lean_object* l___private_Init_Lean_Elab_Quotation_4__elimAntiquotChoices(lean_object*); lean_object* l_Lean_Syntax_HasQuote; lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_2__appN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___closed__1; -lean_object* l_Lean_Elab_Term_oldGetAntiquotVars___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__13; lean_object* l___private_Init_Lean_Elab_Quotation_14__toPreterm___main___lambda__1___closed__2; +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; lean_object* l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_15__oldRunTermElabM___rarg(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -592,10 +610,9 @@ lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__10; extern lean_object* l_List_zip___rarg___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__2___closed__6; +lean_object* l_Lean_Elab_Term_elabMatchSyntax___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26; lean_object* l_Lean_mkConst(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__5; -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__9; lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__8; @@ -608,13 +625,15 @@ lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__ lean_object* l___private_Init_Lean_Elab_Quotation_14__toPreterm___main___lambda__3___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__3___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_1__quoteName___main___lambda__2___closed__7; +lean_object* l_ReaderT_map___at_Lean_Elab_Term_oldGetPatternVars___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_zipWith___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__2___closed__4; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_elabArrayLit___closed__7; -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__2; +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__6; +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_isAntiquotSplicePat___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_15__oldRunTermElabM___rarg___closed__1; extern lean_object* l_Lean_NameGenerator_Inhabited___closed__3; @@ -625,7 +644,6 @@ lean_object* l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main(lean_ob lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__4; uint8_t lean_string_dec_eq(lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -lean_object* lean_get_antiquot_vars(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_stxQuot_expand___closed__16; lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__22; @@ -1964,6 +1982,41 @@ x_3 = lean_box(x_2); return x_3; } } +uint8_t l_Array_anyRangeMAux___main___at_Lean_Elab_Term_isAntiquotSplicePat___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; +x_5 = lean_nat_dec_lt(x_4, x_3); +if (x_5 == 0) +{ +uint8_t x_6; +lean_dec(x_4); +x_6 = 0; +return x_6; +} +else +{ +lean_object* x_7; uint8_t x_8; +x_7 = lean_array_fget(x_2, x_4); +x_8 = l_Lean_Elab_Term_isAntiquotSplice(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_add(x_4, x_9); +lean_dec(x_4); +x_4 = x_10; +goto _start; +} +else +{ +lean_dec(x_4); +return x_8; +} +} +} +} uint8_t l_Lean_Elab_Term_isAntiquotSplicePat(lean_object* x_1) { _start: { @@ -1983,28 +2036,25 @@ else lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_5 = l_Lean_Syntax_getArgs(x_1); x_6 = lean_array_get_size(x_5); -lean_dec(x_5); -x_7 = lean_unsigned_to_nat(1u); -x_8 = lean_nat_dec_eq(x_6, x_7); +x_7 = lean_unsigned_to_nat(0u); +x_8 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_isAntiquotSplicePat___spec__1(x_1, x_5, x_6, x_7); lean_dec(x_6); -if (x_8 == 0) -{ -uint8_t x_9; +lean_dec(x_5); lean_dec(x_1); -x_9 = 0; -return x_9; +return x_8; } -else +} +} +lean_object* l_Array_anyRangeMAux___main___at_Lean_Elab_Term_isAntiquotSplicePat___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_unsigned_to_nat(0u); -x_11 = l_Lean_Syntax_getArg(x_1, x_10); +uint8_t x_5; lean_object* x_6; +x_5 = l_Array_anyRangeMAux___main___at_Lean_Elab_Term_isAntiquotSplicePat___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_12 = l_Lean_Elab_Term_isAntiquotSplice(x_11); -lean_dec(x_11); -return x_12; -} -} +x_6 = lean_box(x_5); +return x_6; } } lean_object* l_Lean_Elab_Term_isAntiquotSplicePat___boxed(lean_object* x_1) { @@ -2337,153 +2387,296 @@ x_2 = l___private_Init_Lean_Elab_Quotation_4__elimAntiquotChoices___main(x_1); return x_2; } } -lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__1() { _start: { -lean_object* x_5; uint8_t x_6; -x_5 = lean_array_get_size(x_2); -x_6 = lean_nat_dec_lt(x_1, x_5); -lean_dec(x_5); -if (x_6 == 0) +lean_object* x_1; +x_1 = lean_mk_string("Array.push"); +return x_1; +} +} +lean_object* _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__2() { +_start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +lean_object* _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__2; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("push"); +return x_1; +} +} +lean_object* _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Array.append"); +return x_1; +} +} +lean_object* _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__5; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +lean_object* _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__5; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__6; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_array_get_size(x_11); +x_17 = lean_nat_dec_lt(x_12, x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_7 = l_Array_empty___closed__1; -x_8 = x_2; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_8); -lean_ctor_set(x_9, 1, x_4); -return x_9; +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_13); +lean_ctor_set(x_18, 1, x_15); +return x_18; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_10 = lean_array_fget(x_2, x_1); -x_11 = lean_box(0); -x_12 = x_11; -x_13 = lean_array_fset(x_2, x_1, x_12); -lean_inc(x_3); -lean_inc(x_10); -x_14 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main(x_10, x_3, x_4); -if (lean_obj_tag(x_14) == 0) +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_53; uint8_t x_54; +x_19 = lean_array_fget(x_11, x_12); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_12, x_20); +lean_dec(x_12); +x_53 = l_Lean_nullKind; +x_54 = lean_name_eq(x_1, x_53); +if (x_54 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_unsigned_to_nat(1u); -x_18 = lean_nat_add(x_1, x_17); -x_19 = x_15; -lean_dec(x_10); -x_20 = lean_array_fset(x_13, x_1, x_19); -lean_dec(x_1); -x_1 = x_18; -x_2 = x_20; -x_4 = x_16; +lean_object* x_55; +x_55 = lean_box(0); +x_22 = x_55; +goto block_52; +} +else +{ +uint8_t x_56; +x_56 = l_Lean_Elab_Term_isAntiquotSplice(x_19); +if (x_56 == 0) +{ +lean_object* x_57; +x_57 = lean_box(0); +x_22 = x_57; +goto block_52; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_58 = l_Lean_Syntax_getArg(x_19, x_20); +lean_dec(x_19); +x_59 = l_Lean_Elab_Term_getCurrMacroScope(x_14, x_15); +x_60 = lean_ctor_get(x_59, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 1); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l_Lean_Parser_Term_app___elambda__1___closed__1; +lean_inc(x_3); +x_63 = lean_name_mk_string(x_3, x_62); +x_64 = l_Lean_Parser_Term_append___elambda__1___closed__1; +lean_inc(x_6); +x_65 = lean_name_mk_string(x_6, x_64); +lean_inc(x_65); +x_66 = lean_name_mk_numeral(x_65, x_60); +lean_inc(x_7); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_7); +lean_inc(x_8); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_8); +x_69 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__7; +lean_inc(x_5); +x_70 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_70, 0, x_5); +lean_ctor_set(x_70, 1, x_69); +lean_ctor_set(x_70, 2, x_66); +lean_ctor_set(x_70, 3, x_68); +lean_inc(x_10); +x_71 = lean_array_push(x_10, x_70); +lean_inc(x_9); +x_72 = lean_array_push(x_71, x_9); +lean_inc(x_4); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_4); +lean_ctor_set(x_73, 1, x_72); +lean_inc(x_10); +x_74 = lean_array_push(x_10, x_73); +x_75 = lean_array_push(x_74, x_13); +lean_inc(x_63); +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_63); +lean_ctor_set(x_76, 1, x_75); +lean_inc(x_10); +x_77 = lean_array_push(x_10, x_76); +x_78 = lean_array_push(x_77, x_58); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_63); +lean_ctor_set(x_79, 1, x_78); +x_12 = x_21; +x_13 = x_79; +x_15 = x_61; +goto _start; +} +} +block_52: +{ +lean_object* x_23; +lean_dec(x_22); +lean_inc(x_14); +x_23 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main(x_19, x_14, x_15); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Elab_Term_getCurrMacroScope(x_14, x_25); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = l_Lean_Parser_Term_app___elambda__1___closed__1; +lean_inc(x_3); +x_30 = lean_name_mk_string(x_3, x_29); +x_31 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__4; +lean_inc(x_6); +x_32 = lean_name_mk_string(x_6, x_31); +lean_inc(x_32); +x_33 = lean_name_mk_numeral(x_32, x_27); +lean_inc(x_7); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_7); +lean_inc(x_8); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_8); +x_36 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__3; +lean_inc(x_5); +x_37 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_37, 0, x_5); +lean_ctor_set(x_37, 1, x_36); +lean_ctor_set(x_37, 2, x_33); +lean_ctor_set(x_37, 3, x_35); +lean_inc(x_10); +x_38 = lean_array_push(x_10, x_37); +lean_inc(x_9); +x_39 = lean_array_push(x_38, x_9); +lean_inc(x_4); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_4); +lean_ctor_set(x_40, 1, x_39); +lean_inc(x_10); +x_41 = lean_array_push(x_10, x_40); +x_42 = lean_array_push(x_41, x_13); +lean_inc(x_30); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_30); +lean_ctor_set(x_43, 1, x_42); +lean_inc(x_10); +x_44 = lean_array_push(x_10, x_43); +x_45 = lean_array_push(x_44, x_24); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_30); +lean_ctor_set(x_46, 1, x_45); +x_12 = x_21; +x_13 = x_46; +x_15 = x_28; goto _start; } else { -uint8_t x_22; +uint8_t x_48; +lean_dec(x_21); +lean_dec(x_14); lean_dec(x_13); lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); lean_dec(x_3); -lean_dec(x_1); -x_22 = !lean_is_exclusive(x_14); -if (x_22 == 0) +x_48 = !lean_is_exclusive(x_23); +if (x_48 == 0) { -return x_14; +return x_23; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_14, 0); -x_24 = lean_ctor_get(x_14, 1); -lean_inc(x_24); -lean_inc(x_23); -lean_dec(x_14); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_23); -lean_ctor_set(x_25, 1, x_24); -return x_25; +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_23, 0); +x_50 = lean_ctor_get(x_23, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_23); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; } } } } } -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 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; -x_6 = lean_box(0); -x_7 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__2___closed__4; -x_8 = lean_name_mk_numeral(x_7, x_3); -x_9 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__2___closed__3; -x_10 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___lambda__2___closed__6; -x_11 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_11, 0, x_6); -lean_ctor_set(x_11, 1, x_9); -lean_ctor_set(x_11, 2, x_8); -lean_ctor_set(x_11, 3, x_10); -x_12 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_13 = lean_array_push(x_12, x_11); -x_14 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_15 = lean_array_push(x_13, x_14); -x_16 = l_Lean_Parser_Term_id___elambda__1___closed__2; -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = lean_array_push(x_12, x_17); -x_19 = lean_array_push(x_18, x_1); -x_20 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2(x_2); -x_23 = lean_array_push(x_12, x_21); -x_24 = lean_array_push(x_23, x_22); -x_25 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_25, 0, x_20); -lean_ctor_set(x_25, 1, x_24); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_5); -return x_26; } -} -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_2; -x_2 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___rarg___closed__3; -return x_2; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_3 = lean_ctor_get(x_1, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_1, 1); -lean_inc(x_4); -lean_dec(x_1); -x_5 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1___boxed), 5, 2); -lean_closure_set(x_5, 0, x_3); -lean_closure_set(x_5, 1, x_4); -x_6 = l_Lean_Unhygienic_MonadQuotation___closed__1; -x_7 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_1__quoteName___main___spec__1___rarg), 4, 2); -lean_closure_set(x_7, 0, x_6); -lean_closure_set(x_7, 1, x_5); -x_8 = l_Lean_Unhygienic_run___rarg(x_7); -return x_8; -} -} -} -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 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; @@ -2518,7 +2711,7 @@ x_25 = l_Lean_Parser_Term_app___elambda__1___closed__2; x_26 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); -x_27 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__4(x_2); +x_27 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3(x_2); x_28 = lean_array_push(x_12, x_26); x_29 = lean_array_push(x_28, x_27); x_30 = lean_alloc_ctor(1, 2, 0); @@ -2530,7 +2723,7 @@ lean_ctor_set(x_31, 1, x_5); return x_31; } } -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__4(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2547,7 +2740,7 @@ lean_inc(x_3); x_4 = lean_ctor_get(x_1, 1); lean_inc(x_4); lean_dec(x_1); -x_5 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__4___lambda__1___boxed), 5, 2); +x_5 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1___boxed), 5, 2); lean_closure_set(x_5, 0, x_3); lean_closure_set(x_5, 1, x_4); x_6 = l_Lean_Unhygienic_MonadQuotation___closed__1; @@ -2559,7 +2752,7 @@ return x_8; } } } -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; @@ -2596,7 +2789,7 @@ lean_inc(x_8); x_29 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_29, 0, x_8); lean_ctor_set(x_29, 1, x_28); -x_30 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__4(x_9); +x_30 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3(x_9); x_31 = lean_array_push(x_4, x_29); x_32 = lean_array_push(x_31, x_30); x_33 = lean_alloc_ctor(1, 2, 0); @@ -2608,7 +2801,7 @@ lean_ctor_set(x_34, 1, x_12); return x_34; } } -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; @@ -2632,7 +2825,7 @@ x_18 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); x_19 = lean_array_push(x_13, x_18); -x_20 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3(x_1); +x_20 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2(x_1); x_21 = !lean_is_exclusive(x_2); if (x_21 == 0) { @@ -2641,7 +2834,7 @@ x_22 = lean_ctor_get(x_2, 0); x_23 = lean_ctor_get(x_2, 1); x_24 = l_Lean_Elab_rootNamespace___closed__2; x_25 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_26 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1___boxed), 12, 9); +x_26 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1___boxed), 12, 9); lean_closure_set(x_26, 0, x_24); lean_closure_set(x_26, 1, x_9); lean_closure_set(x_26, 2, x_6); @@ -2679,7 +2872,7 @@ lean_inc(x_35); lean_dec(x_2); x_37 = l_Lean_Elab_rootNamespace___closed__2; x_38 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_39 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1___boxed), 12, 9); +x_39 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1___boxed), 12, 9); lean_closure_set(x_39, 0, x_37); lean_closure_set(x_39, 1, x_9); lean_closure_set(x_39, 2, x_6); @@ -2710,7 +2903,7 @@ return x_48; } } } -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2727,7 +2920,7 @@ lean_inc(x_3); x_4 = lean_ctor_get(x_1, 1); lean_inc(x_4); lean_dec(x_1); -x_5 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__2___boxed), 5, 2); +x_5 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__2___boxed), 5, 2); lean_closure_set(x_5, 0, x_4); lean_closure_set(x_5, 1, x_3); x_6 = l_Lean_Unhygienic_MonadQuotation___closed__1; @@ -2743,7 +2936,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; -x_1 = lean_mk_string("Syntax.node"); +x_1 = lean_mk_string("Array.empty"); return x_1; } } @@ -2774,7 +2967,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; -x_1 = lean_mk_string("Syntax"); +x_1 = lean_mk_string("Array"); return x_1; } } @@ -2791,19 +2984,17 @@ return x_3; lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__5; -x_2 = l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("empty"); +return x_1; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_nameToExprAux___main___closed__4; -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__4; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__5; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2812,9 +3003,11 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; -x_2 = l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); return x_3; } } @@ -2824,7 +3017,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__8; -x_3 = lean_alloc_ctor(0, 2, 0); +x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -2833,39 +3026,27 @@ return x_3; lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__9; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("Syntax.node"); +return x_1; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__11() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("nullKind"); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__12() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__11; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__11; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__12; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__11; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2873,12 +3054,20 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("Syntax"); +return x_1; +} +} lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__11; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2887,8 +3076,8 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_nameToExprAux___main___closed__4; -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__11; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14; +x_2 = l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -2897,11 +3086,9 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l_Lean_nameToExprAux___main___closed__4; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -2909,15 +3096,37 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; +x_2 = l_Lean_Meta_DiscrTree_Trie_format___main___rarg___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__17; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__20() { _start: { lean_object* x_1; @@ -2925,32 +3134,14 @@ x_1 = lean_mk_string("unexpected antiquotation splice"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__18; -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_Quotation_5__quoteSyntax___main___closed__20() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19; -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_Quotation_5__quoteSyntax___main___closed__21() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("Syntax.atom"); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__20; +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_Quotation_5__quoteSyntax___main___closed__22() { @@ -2958,17 +3149,35 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__21; -x_2 = lean_string_utf8_byte_size(x_1); +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_Quotation_5__quoteSyntax___main___closed__23() { _start: { +lean_object* x_1; +x_1 = lean_mk_string("Syntax.atom"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__21; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__22; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -2976,7 +3185,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26() { _start: { lean_object* x_1; @@ -2984,35 +3193,13 @@ x_1 = lean_mk_string("atom"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__5; -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14; x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -3020,15 +3207,37 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__29() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__27; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__29; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__29() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31() { _start: { lean_object* x_1; lean_object* x_2; @@ -3037,13 +3246,13 @@ x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Option_HasRepr___rarg___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__29; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3051,30 +3260,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Option_HasRepr___rarg___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Option"); -return x_1; -} -} lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_2 = l_Option_HasRepr___rarg___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -3082,11 +3273,9 @@ return x_3; lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; -x_2 = l_Option_HasRepr___rarg___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; +x_1 = lean_mk_string("Option"); +return x_1; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35() { @@ -3095,9 +3284,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__34; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -3105,15 +3292,37 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35; +x_2 = l_Option_HasRepr___rarg___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39() { _start: { lean_object* x_1; @@ -3121,47 +3330,27 @@ x_1 = lean_mk_string("addMacroScope"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__40() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_nameToExprAux___main___closed__4; -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__37; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__40; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42() { @@ -3169,10 +3358,8 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -3180,15 +3367,37 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_nameToExprAux___main___closed__4; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46() { _start: { lean_object* x_1; @@ -3196,22 +3405,22 @@ x_1 = lean_mk_string("scp"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__48() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3219,17 +3428,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__44; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__48() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50() { _start: { lean_object* x_1; @@ -3237,22 +3446,22 @@ x_1 = lean_mk_string("Syntax.ident"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__48; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__48; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3260,35 +3469,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__5; -x_2 = l_Lean_Syntax_getKind___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; -x_2 = l_Lean_Syntax_getKind___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14; +x_2 = l_Lean_Syntax_getKind___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -3296,15 +3483,37 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; +x_2 = l_Lean_Syntax_getKind___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -3316,7 +3525,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58() { _start: { lean_object* x_1; @@ -3324,22 +3533,22 @@ x_1 = lean_mk_string("String.toSubstring"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__60() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; +x_3 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -3347,7 +3556,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__61() { _start: { lean_object* x_1; @@ -3355,41 +3564,41 @@ x_1 = lean_mk_string("toSubstring"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__60() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__62() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Literal_type___closed__5; -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__61; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__61() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__60; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__62; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__62() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__61; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -3401,12 +3610,12 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_declareBuiltinParser___closed__8; -x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55; +x_2 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; x_3 = lean_array_push(x_1, x_2); return x_3; } @@ -3433,1256 +3642,1075 @@ lean_inc(x_8); x_9 = l_Lean_Elab_Term_isAntiquot(x_1); if (x_9 == 0) { -uint8_t x_10; uint8_t x_11; -lean_inc(x_1); -x_10 = l_Lean_Elab_Term_isAntiquotSplicePat(x_1); -x_11 = !lean_is_exclusive(x_1); -if (x_11 == 0) +uint8_t x_10; +x_10 = !lean_is_exclusive(x_1); +if (x_10 == 0) { -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_1, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 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_11 = lean_ctor_get(x_1, 1); +lean_dec(x_11); +x_12 = lean_ctor_get(x_1, 0); lean_dec(x_12); -x_13 = lean_ctor_get(x_1, 0); +x_13 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_ctor_get(x_13, 1); +lean_inc(x_15); lean_dec(x_13); -if (x_10 == 0) -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_7); -x_15 = lean_unsigned_to_nat(0u); +x_16 = lean_box(0); +x_17 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; +x_18 = lean_name_mk_numeral(x_17, x_14); +x_19 = lean_box(0); +x_20 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__3; +x_21 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__9; +x_22 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_22, 0, x_16); +lean_ctor_set(x_22, 1, x_20); +lean_ctor_set(x_22, 2, x_18); +lean_ctor_set(x_22, 3, x_21); +x_23 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_24 = lean_array_push(x_23, x_22); +x_25 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_26 = lean_array_push(x_24, x_25); +x_27 = l_Lean_Parser_Term_id___elambda__1___closed__2; +lean_ctor_set(x_1, 1, x_26); +lean_ctor_set(x_1, 0, x_27); +x_28 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; +x_29 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__5; +x_30 = lean_unsigned_to_nat(0u); lean_inc(x_2); -x_16 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1(x_15, x_8, x_2, x_3); -if (lean_obj_tag(x_16) == 0) +x_31 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1(x_7, x_8, x_28, x_27, x_16, x_29, x_19, x_19, x_25, x_23, x_8, x_30, x_1, x_2, x_15); +lean_dec(x_8); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = l_Array_toList___rarg(x_17); -lean_dec(x_17); -x_20 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2(x_19); -x_21 = lean_alloc_closure((void*)(l_Lean_Array_HasQuote___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_21, 0, x_20); -x_22 = l_Lean_Unhygienic_MonadQuotation___closed__1; -x_23 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_1__quoteName___main___spec__1___rarg), 4, 2); -lean_closure_set(x_23, 0, x_22); -lean_closure_set(x_23, 1, x_21); -x_24 = l_Lean_Unhygienic_run___rarg(x_23); -x_25 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_18); +lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); +x_34 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_33); lean_dec(x_2); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_box(0); -x_29 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; -x_30 = lean_name_mk_numeral(x_29, x_27); -x_31 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__3; -x_32 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; -x_33 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_33, 0, x_28); -lean_ctor_set(x_33, 1, x_31); -lean_ctor_set(x_33, 2, x_30); -lean_ctor_set(x_33, 3, x_32); -x_34 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_35 = lean_array_push(x_34, x_33); -x_36 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_37 = lean_array_push(x_35, x_36); -x_38 = l_Lean_Parser_Term_id___elambda__1___closed__2; -lean_ctor_set(x_1, 1, x_37); -lean_ctor_set(x_1, 0, x_38); -x_39 = lean_array_push(x_34, x_1); -x_40 = lean_array_push(x_39, x_14); -x_41 = l_Lean_Parser_Term_app___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 = lean_array_push(x_34, x_42); -x_44 = lean_array_push(x_43, x_24); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_41); -lean_ctor_set(x_45, 1, x_44); -lean_ctor_set(x_25, 0, x_45); -return x_25; +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_36 = lean_ctor_get(x_34, 0); +x_37 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; +x_38 = lean_name_mk_numeral(x_37, x_36); +x_39 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__12; +x_40 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19; +x_41 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_41, 0, x_16); +lean_ctor_set(x_41, 1, x_39); +lean_ctor_set(x_41, 2, x_38); +lean_ctor_set(x_41, 3, x_40); +x_42 = lean_array_push(x_23, x_41); +x_43 = lean_array_push(x_42, x_25); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_27); +lean_ctor_set(x_44, 1, x_43); +x_45 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_7); +x_46 = lean_array_push(x_23, x_44); +x_47 = lean_array_push(x_46, x_45); +x_48 = l_Lean_Parser_Term_app___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 = lean_array_push(x_23, x_49); +x_51 = lean_array_push(x_50, x_32); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_48); +lean_ctor_set(x_52, 1, x_51); +lean_ctor_set(x_34, 0, x_52); +return x_34; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; -x_46 = lean_ctor_get(x_25, 0); -x_47 = lean_ctor_get(x_25, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_25); -x_48 = lean_box(0); -x_49 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; -x_50 = lean_name_mk_numeral(x_49, x_46); -x_51 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__3; -x_52 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; -x_53 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_53, 0, x_48); -lean_ctor_set(x_53, 1, x_51); -lean_ctor_set(x_53, 2, x_50); -lean_ctor_set(x_53, 3, x_52); -x_54 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_55 = lean_array_push(x_54, x_53); -x_56 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_57 = lean_array_push(x_55, x_56); -x_58 = l_Lean_Parser_Term_id___elambda__1___closed__2; -lean_ctor_set(x_1, 1, x_57); -lean_ctor_set(x_1, 0, x_58); -x_59 = lean_array_push(x_54, x_1); -x_60 = lean_array_push(x_59, x_14); -x_61 = l_Lean_Parser_Term_app___elambda__1___closed__2; +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; +x_53 = lean_ctor_get(x_34, 0); +x_54 = lean_ctor_get(x_34, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_34); +x_55 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; +x_56 = lean_name_mk_numeral(x_55, x_53); +x_57 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__12; +x_58 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19; +x_59 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_59, 0, x_16); +lean_ctor_set(x_59, 1, x_57); +lean_ctor_set(x_59, 2, x_56); +lean_ctor_set(x_59, 3, x_58); +x_60 = lean_array_push(x_23, x_59); +x_61 = lean_array_push(x_60, x_25); x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_60); -x_63 = lean_array_push(x_54, x_62); -x_64 = lean_array_push(x_63, x_24); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_61); -lean_ctor_set(x_65, 1, x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_47); -return x_66; -} -} -else -{ -uint8_t x_67; -lean_dec(x_14); -lean_free_object(x_1); -lean_dec(x_2); -x_67 = !lean_is_exclusive(x_16); -if (x_67 == 0) -{ -return x_16; -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_68 = lean_ctor_get(x_16, 0); -x_69 = lean_ctor_get(x_16, 1); -lean_inc(x_69); -lean_inc(x_68); -lean_dec(x_16); +lean_ctor_set(x_62, 0, x_27); +lean_ctor_set(x_62, 1, x_61); +x_63 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_7); +x_64 = lean_array_push(x_23, x_62); +x_65 = lean_array_push(x_64, x_63); +x_66 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_65); +x_68 = lean_array_push(x_23, x_67); +x_69 = lean_array_push(x_68, x_32); x_70 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 0, x_66); lean_ctor_set(x_70, 1, x_69); -return x_70; +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_54); +return x_71; +} +} +else +{ +uint8_t x_72; +lean_dec(x_7); +lean_dec(x_2); +x_72 = !lean_is_exclusive(x_31); +if (x_72 == 0) +{ +return x_31; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_31, 0); +x_74 = lean_ctor_get(x_31, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_31); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; -lean_dec(x_7); -x_71 = l_Lean_stxInh; -x_72 = lean_unsigned_to_nat(0u); -x_73 = lean_array_get(x_71, x_8, x_72); -lean_dec(x_8); -x_74 = lean_unsigned_to_nat(1u); -x_75 = l_Lean_Syntax_getArg(x_73, x_74); -lean_dec(x_73); +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_dec(x_1); x_76 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); -lean_dec(x_2); -x_77 = !lean_is_exclusive(x_76); -if (x_77 == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -x_78 = lean_ctor_get(x_76, 0); -x_79 = lean_box(0); -x_80 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; +x_77 = lean_ctor_get(x_76, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 1); lean_inc(x_78); -x_81 = lean_name_mk_numeral(x_80, x_78); -x_82 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__3; -x_83 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; -x_84 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_84, 0, x_79); -lean_ctor_set(x_84, 1, x_82); -lean_ctor_set(x_84, 2, x_81); -lean_ctor_set(x_84, 3, x_83); -x_85 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_86 = lean_array_push(x_85, x_84); -x_87 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_88 = lean_array_push(x_86, x_87); -x_89 = l_Lean_Parser_Term_id___elambda__1___closed__2; -lean_ctor_set(x_1, 1, x_88); -lean_ctor_set(x_1, 0, x_89); -x_90 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14; -x_91 = lean_name_mk_numeral(x_90, x_78); -x_92 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; -x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__17; -x_94 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_94, 0, x_79); -lean_ctor_set(x_94, 1, x_92); -lean_ctor_set(x_94, 2, x_91); -lean_ctor_set(x_94, 3, x_93); -x_95 = lean_array_push(x_85, x_94); -x_96 = lean_array_push(x_95, x_87); -x_97 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_97, 0, x_89); -lean_ctor_set(x_97, 1, x_96); -x_98 = lean_array_push(x_85, x_1); -x_99 = lean_array_push(x_98, x_97); -x_100 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_101 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_101, 0, x_100); -lean_ctor_set(x_101, 1, x_99); -x_102 = lean_array_push(x_85, x_101); -x_103 = lean_array_push(x_102, x_75); -x_104 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_104, 0, x_100); -lean_ctor_set(x_104, 1, x_103); -lean_ctor_set(x_76, 0, x_104); -return x_76; -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 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; -x_105 = lean_ctor_get(x_76, 0); -x_106 = lean_ctor_get(x_76, 1); -lean_inc(x_106); -lean_inc(x_105); lean_dec(x_76); -x_107 = lean_box(0); -x_108 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; -lean_inc(x_105); -x_109 = lean_name_mk_numeral(x_108, x_105); -x_110 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__3; -x_111 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; -x_112 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_112, 0, x_107); -lean_ctor_set(x_112, 1, x_110); -lean_ctor_set(x_112, 2, x_109); -lean_ctor_set(x_112, 3, x_111); -x_113 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_114 = lean_array_push(x_113, x_112); -x_115 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_116 = lean_array_push(x_114, x_115); -x_117 = l_Lean_Parser_Term_id___elambda__1___closed__2; -lean_ctor_set(x_1, 1, x_116); -lean_ctor_set(x_1, 0, x_117); -x_118 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14; -x_119 = lean_name_mk_numeral(x_118, x_105); -x_120 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; -x_121 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__17; -x_122 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_122, 0, x_107); -lean_ctor_set(x_122, 1, x_120); -lean_ctor_set(x_122, 2, x_119); -lean_ctor_set(x_122, 3, x_121); -x_123 = lean_array_push(x_113, x_122); -x_124 = lean_array_push(x_123, x_115); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_117); -lean_ctor_set(x_125, 1, x_124); -x_126 = lean_array_push(x_113, x_1); -x_127 = lean_array_push(x_126, x_125); -x_128 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_128); -lean_ctor_set(x_129, 1, x_127); -x_130 = lean_array_push(x_113, x_129); -x_131 = lean_array_push(x_130, x_75); -x_132 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_132, 0, x_128); -lean_ctor_set(x_132, 1, x_131); -x_133 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_133, 0, x_132); -lean_ctor_set(x_133, 1, x_106); -return x_133; -} -} -} -else -{ -lean_dec(x_1); -if (x_10 == 0) -{ -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_7); -x_135 = lean_unsigned_to_nat(0u); +x_79 = lean_box(0); +x_80 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; +x_81 = lean_name_mk_numeral(x_80, x_77); +x_82 = lean_box(0); +x_83 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__3; +x_84 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__9; +x_85 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_85, 0, x_79); +lean_ctor_set(x_85, 1, x_83); +lean_ctor_set(x_85, 2, x_81); +lean_ctor_set(x_85, 3, x_84); +x_86 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_87 = lean_array_push(x_86, x_85); +x_88 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_89 = lean_array_push(x_87, x_88); +x_90 = l_Lean_Parser_Term_id___elambda__1___closed__2; +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_89); +x_92 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; +x_93 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__5; +x_94 = lean_unsigned_to_nat(0u); lean_inc(x_2); -x_136 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1(x_135, x_8, x_2, x_3); -if (lean_obj_tag(x_136) == 0) -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_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; -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_Array_toList___rarg(x_137); -lean_dec(x_137); -x_140 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2(x_139); -x_141 = lean_alloc_closure((void*)(l_Lean_Array_HasQuote___rarg___lambda__1___boxed), 4, 1); -lean_closure_set(x_141, 0, x_140); -x_142 = l_Lean_Unhygienic_MonadQuotation___closed__1; -x_143 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_1__quoteName___main___spec__1___rarg), 4, 2); -lean_closure_set(x_143, 0, x_142); -lean_closure_set(x_143, 1, x_141); -x_144 = l_Lean_Unhygienic_run___rarg(x_143); -x_145 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_138); -lean_dec(x_2); -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_box(0); -x_150 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; -x_151 = lean_name_mk_numeral(x_150, x_146); -x_152 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__3; -x_153 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; -x_154 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_154, 0, x_149); -lean_ctor_set(x_154, 1, x_152); -lean_ctor_set(x_154, 2, x_151); -lean_ctor_set(x_154, 3, x_153); -x_155 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_156 = lean_array_push(x_155, x_154); -x_157 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_158 = lean_array_push(x_156, x_157); -x_159 = l_Lean_Parser_Term_id___elambda__1___closed__2; -x_160 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_158); -x_161 = lean_array_push(x_155, x_160); -x_162 = lean_array_push(x_161, x_134); -x_163 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_164 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_162); -x_165 = lean_array_push(x_155, x_164); -x_166 = lean_array_push(x_165, x_144); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_163); -lean_ctor_set(x_167, 1, x_166); -if (lean_is_scalar(x_148)) { - x_168 = lean_alloc_ctor(0, 2, 0); -} else { - x_168 = x_148; -} -lean_ctor_set(x_168, 0, x_167); -lean_ctor_set(x_168, 1, x_147); -return x_168; -} -else -{ -lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -lean_dec(x_134); -lean_dec(x_2); -x_169 = lean_ctor_get(x_136, 0); -lean_inc(x_169); -x_170 = lean_ctor_get(x_136, 1); -lean_inc(x_170); -if (lean_is_exclusive(x_136)) { - lean_ctor_release(x_136, 0); - lean_ctor_release(x_136, 1); - x_171 = x_136; -} else { - lean_dec_ref(x_136); - x_171 = lean_box(0); -} -if (lean_is_scalar(x_171)) { - x_172 = lean_alloc_ctor(1, 2, 0); -} else { - x_172 = x_171; -} -lean_ctor_set(x_172, 0, x_169); -lean_ctor_set(x_172, 1, x_170); -return x_172; -} -} -else -{ -lean_object* x_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_dec(x_7); -x_173 = l_Lean_stxInh; -x_174 = lean_unsigned_to_nat(0u); -x_175 = lean_array_get(x_173, x_8, x_174); +x_95 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1(x_7, x_8, x_92, x_90, x_79, x_93, x_82, x_82, x_88, x_86, x_8, x_94, x_91, x_2, x_78); lean_dec(x_8); -x_176 = lean_unsigned_to_nat(1u); -x_177 = l_Lean_Syntax_getArg(x_175, x_176); -lean_dec(x_175); -x_178 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 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; +x_96 = lean_ctor_get(x_95, 0); +lean_inc(x_96); +x_97 = lean_ctor_get(x_95, 1); +lean_inc(x_97); +lean_dec(x_95); +x_98 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_97); lean_dec(x_2); -x_179 = lean_ctor_get(x_178, 0); -lean_inc(x_179); -x_180 = lean_ctor_get(x_178, 1); -lean_inc(x_180); -if (lean_is_exclusive(x_178)) { - lean_ctor_release(x_178, 0); - lean_ctor_release(x_178, 1); - x_181 = x_178; +x_99 = lean_ctor_get(x_98, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_98, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_98)) { + lean_ctor_release(x_98, 0); + lean_ctor_release(x_98, 1); + x_101 = x_98; } else { - lean_dec_ref(x_178); - x_181 = lean_box(0); + lean_dec_ref(x_98); + x_101 = lean_box(0); } -x_182 = lean_box(0); -x_183 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__6; -lean_inc(x_179); -x_184 = lean_name_mk_numeral(x_183, x_179); -x_185 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__3; -x_186 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; -x_187 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_187, 0, x_182); -lean_ctor_set(x_187, 1, x_185); -lean_ctor_set(x_187, 2, x_184); -lean_ctor_set(x_187, 3, x_186); -x_188 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_189 = lean_array_push(x_188, x_187); -x_190 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_191 = lean_array_push(x_189, x_190); -x_192 = l_Lean_Parser_Term_id___elambda__1___closed__2; -x_193 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_193, 0, x_192); -lean_ctor_set(x_193, 1, x_191); -x_194 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14; -x_195 = lean_name_mk_numeral(x_194, x_179); -x_196 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; -x_197 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__17; -x_198 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_198, 0, x_182); -lean_ctor_set(x_198, 1, x_196); -lean_ctor_set(x_198, 2, x_195); -lean_ctor_set(x_198, 3, x_197); -x_199 = lean_array_push(x_188, x_198); -x_200 = lean_array_push(x_199, x_190); -x_201 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_201, 0, x_192); -lean_ctor_set(x_201, 1, x_200); -x_202 = lean_array_push(x_188, x_193); -x_203 = lean_array_push(x_202, x_201); -x_204 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_205 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_203); -x_206 = lean_array_push(x_188, x_205); -x_207 = lean_array_push(x_206, x_177); -x_208 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_208, 0, x_204); -lean_ctor_set(x_208, 1, x_207); -if (lean_is_scalar(x_181)) { - x_209 = lean_alloc_ctor(0, 2, 0); +x_102 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__15; +x_103 = lean_name_mk_numeral(x_102, x_99); +x_104 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__12; +x_105 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__19; +x_106 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_106, 0, x_79); +lean_ctor_set(x_106, 1, x_104); +lean_ctor_set(x_106, 2, x_103); +lean_ctor_set(x_106, 3, x_105); +x_107 = lean_array_push(x_86, x_106); +x_108 = lean_array_push(x_107, x_88); +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_90); +lean_ctor_set(x_109, 1, x_108); +x_110 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_7); +x_111 = lean_array_push(x_86, x_109); +x_112 = lean_array_push(x_111, x_110); +x_113 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_112); +x_115 = lean_array_push(x_86, x_114); +x_116 = lean_array_push(x_115, x_96); +x_117 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_117, 0, x_113); +lean_ctor_set(x_117, 1, x_116); +if (lean_is_scalar(x_101)) { + x_118 = lean_alloc_ctor(0, 2, 0); } else { - x_209 = x_181; + x_118 = x_101; } -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_180); -return x_209; +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_100); +return x_118; +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_dec(x_7); +lean_dec(x_2); +x_119 = lean_ctor_get(x_95, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_95, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_121 = x_95; +} else { + lean_dec_ref(x_95); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +return x_122; } } } else { -uint8_t x_210; +uint8_t x_123; lean_dec(x_8); lean_dec(x_7); -x_210 = l_Lean_Elab_Term_isAntiquotSplice(x_1); -if (x_210 == 0) +x_123 = l_Lean_Elab_Term_isAntiquotSplice(x_1); +if (x_123 == 0) { -lean_object* x_211; lean_object* x_212; lean_object* x_213; +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_dec(x_2); -x_211 = lean_unsigned_to_nat(1u); -x_212 = l_Lean_Syntax_getArg(x_1, x_211); +x_124 = lean_unsigned_to_nat(1u); +x_125 = l_Lean_Syntax_getArg(x_1, x_124); lean_dec(x_1); -x_213 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_3); -return x_213; +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_125); +lean_ctor_set(x_126, 1, x_3); +return x_126; } else { -lean_object* x_214; lean_object* x_215; -x_214 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__20; -x_215 = l_Lean_Elab_Term_throwError___rarg(x_1, x_214, x_2, x_3); -return x_215; +lean_object* x_127; lean_object* x_128; +x_127 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__22; +x_128 = l_Lean_Elab_Term_throwError___rarg(x_1, x_127, x_2, x_3); +return x_128; } } } case 2: { -uint8_t x_216; -x_216 = !lean_is_exclusive(x_1); -if (x_216 == 0) +uint8_t x_129; +x_129 = !lean_is_exclusive(x_1); +if (x_129 == 0) { -lean_object* x_217; lean_object* x_218; lean_object* x_219; uint8_t x_220; -x_217 = lean_ctor_get(x_1, 1); -x_218 = lean_ctor_get(x_1, 0); -lean_dec(x_218); -x_219 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); +lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; +x_130 = lean_ctor_get(x_1, 1); +x_131 = lean_ctor_get(x_1, 0); +lean_dec(x_131); +x_132 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); lean_dec(x_2); -x_220 = !lean_is_exclusive(x_219); -if (x_220 == 0) +x_133 = !lean_is_exclusive(x_132); +if (x_133 == 0) { -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; -x_221 = lean_ctor_get(x_219, 0); -x_222 = lean_box(0); -x_223 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; -lean_inc(x_221); -x_224 = lean_name_mk_numeral(x_223, x_221); -x_225 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23; -x_226 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; -x_227 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_227, 0, x_222); -lean_ctor_set(x_227, 1, x_225); -lean_ctor_set(x_227, 2, x_224); -lean_ctor_set(x_227, 3, x_226); -x_228 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_229 = lean_array_push(x_228, x_227); -x_230 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_231 = lean_array_push(x_229, x_230); -x_232 = l_Lean_Parser_Term_id___elambda__1___closed__2; +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; +x_134 = lean_ctor_get(x_132, 0); +x_135 = lean_box(0); +x_136 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__27; +lean_inc(x_134); +x_137 = lean_name_mk_numeral(x_136, x_134); +x_138 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; +x_139 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_140 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_140, 0, x_135); +lean_ctor_set(x_140, 1, x_138); +lean_ctor_set(x_140, 2, x_137); +lean_ctor_set(x_140, 3, x_139); +x_141 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_142 = lean_array_push(x_141, x_140); +x_143 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_144 = lean_array_push(x_142, x_143); +x_145 = l_Lean_Parser_Term_id___elambda__1___closed__2; lean_ctor_set_tag(x_1, 1); -lean_ctor_set(x_1, 1, x_231); -lean_ctor_set(x_1, 0, x_232); -x_233 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_234 = lean_name_mk_numeral(x_233, x_221); -x_235 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; -x_236 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; -x_237 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_237, 0, x_222); -lean_ctor_set(x_237, 1, x_235); -lean_ctor_set(x_237, 2, x_234); -lean_ctor_set(x_237, 3, x_236); -x_238 = lean_array_push(x_228, x_237); -x_239 = lean_array_push(x_238, x_230); -x_240 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_240, 0, x_232); -lean_ctor_set(x_240, 1, x_239); -x_241 = lean_array_push(x_228, x_1); -x_242 = lean_array_push(x_241, x_240); -x_243 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_244 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_242); -x_245 = l_Lean_mkStxStrLit(x_217, x_222); -x_246 = l_Lean_FileMap_ofString___closed__1; -x_247 = lean_array_push(x_246, x_245); -x_248 = l_Lean_Parser_Term_str___elambda__1___closed__2; -x_249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_247); -x_250 = lean_array_push(x_228, x_244); -x_251 = lean_array_push(x_250, x_249); -x_252 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_252, 0, x_243); -lean_ctor_set(x_252, 1, x_251); -lean_ctor_set(x_219, 0, x_252); -return x_219; +lean_ctor_set(x_1, 1, x_144); +lean_ctor_set(x_1, 0, x_145); +x_146 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +x_147 = lean_name_mk_numeral(x_146, x_134); +x_148 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_149 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_150 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_150, 0, x_135); +lean_ctor_set(x_150, 1, x_148); +lean_ctor_set(x_150, 2, x_147); +lean_ctor_set(x_150, 3, x_149); +x_151 = lean_array_push(x_141, x_150); +x_152 = lean_array_push(x_151, x_143); +x_153 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_153, 0, x_145); +lean_ctor_set(x_153, 1, x_152); +x_154 = lean_array_push(x_141, x_1); +x_155 = lean_array_push(x_154, x_153); +x_156 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_157, 0, x_156); +lean_ctor_set(x_157, 1, x_155); +x_158 = l_Lean_mkStxStrLit(x_130, x_135); +x_159 = l_Lean_FileMap_ofString___closed__1; +x_160 = lean_array_push(x_159, x_158); +x_161 = l_Lean_Parser_Term_str___elambda__1___closed__2; +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_160); +x_163 = lean_array_push(x_141, x_157); +x_164 = lean_array_push(x_163, x_162); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_156); +lean_ctor_set(x_165, 1, x_164); +lean_ctor_set(x_132, 0, x_165); +return x_132; } else { -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; -x_253 = lean_ctor_get(x_219, 0); -x_254 = lean_ctor_get(x_219, 1); -lean_inc(x_254); -lean_inc(x_253); -lean_dec(x_219); -x_255 = lean_box(0); -x_256 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; -lean_inc(x_253); -x_257 = lean_name_mk_numeral(x_256, x_253); -x_258 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23; -x_259 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; -x_260 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_260, 0, x_255); -lean_ctor_set(x_260, 1, x_258); -lean_ctor_set(x_260, 2, x_257); -lean_ctor_set(x_260, 3, x_259); -x_261 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_262 = lean_array_push(x_261, x_260); -x_263 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_264 = lean_array_push(x_262, x_263); -x_265 = l_Lean_Parser_Term_id___elambda__1___closed__2; +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; +x_166 = lean_ctor_get(x_132, 0); +x_167 = lean_ctor_get(x_132, 1); +lean_inc(x_167); +lean_inc(x_166); +lean_dec(x_132); +x_168 = lean_box(0); +x_169 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__27; +lean_inc(x_166); +x_170 = lean_name_mk_numeral(x_169, x_166); +x_171 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; +x_172 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_173 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_173, 0, x_168); +lean_ctor_set(x_173, 1, x_171); +lean_ctor_set(x_173, 2, x_170); +lean_ctor_set(x_173, 3, x_172); +x_174 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_175 = lean_array_push(x_174, x_173); +x_176 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_177 = lean_array_push(x_175, x_176); +x_178 = l_Lean_Parser_Term_id___elambda__1___closed__2; lean_ctor_set_tag(x_1, 1); -lean_ctor_set(x_1, 1, x_264); -lean_ctor_set(x_1, 0, x_265); -x_266 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_267 = lean_name_mk_numeral(x_266, x_253); -x_268 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; -x_269 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; -x_270 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_270, 0, x_255); -lean_ctor_set(x_270, 1, x_268); -lean_ctor_set(x_270, 2, x_267); -lean_ctor_set(x_270, 3, x_269); -x_271 = lean_array_push(x_261, x_270); -x_272 = lean_array_push(x_271, x_263); -x_273 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_273, 0, x_265); -lean_ctor_set(x_273, 1, x_272); -x_274 = lean_array_push(x_261, x_1); -x_275 = lean_array_push(x_274, x_273); -x_276 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_277 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_277, 0, x_276); -lean_ctor_set(x_277, 1, x_275); -x_278 = l_Lean_mkStxStrLit(x_217, x_255); -x_279 = l_Lean_FileMap_ofString___closed__1; -x_280 = lean_array_push(x_279, x_278); -x_281 = l_Lean_Parser_Term_str___elambda__1___closed__2; -x_282 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_282, 0, x_281); -lean_ctor_set(x_282, 1, x_280); -x_283 = lean_array_push(x_261, x_277); -x_284 = lean_array_push(x_283, x_282); -x_285 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_285, 0, x_276); -lean_ctor_set(x_285, 1, x_284); -x_286 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_286, 0, x_285); -lean_ctor_set(x_286, 1, x_254); -return x_286; +lean_ctor_set(x_1, 1, x_177); +lean_ctor_set(x_1, 0, x_178); +x_179 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +x_180 = lean_name_mk_numeral(x_179, x_166); +x_181 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_182 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_183 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_183, 0, x_168); +lean_ctor_set(x_183, 1, x_181); +lean_ctor_set(x_183, 2, x_180); +lean_ctor_set(x_183, 3, x_182); +x_184 = lean_array_push(x_174, x_183); +x_185 = lean_array_push(x_184, x_176); +x_186 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_186, 0, x_178); +lean_ctor_set(x_186, 1, x_185); +x_187 = lean_array_push(x_174, x_1); +x_188 = lean_array_push(x_187, x_186); +x_189 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_190 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_188); +x_191 = l_Lean_mkStxStrLit(x_130, x_168); +x_192 = l_Lean_FileMap_ofString___closed__1; +x_193 = lean_array_push(x_192, x_191); +x_194 = l_Lean_Parser_Term_str___elambda__1___closed__2; +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_193); +x_196 = lean_array_push(x_174, x_190); +x_197 = lean_array_push(x_196, x_195); +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_189); +lean_ctor_set(x_198, 1, x_197); +x_199 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_199, 0, x_198); +lean_ctor_set(x_199, 1, x_167); +return x_199; } } else { -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; -x_287 = lean_ctor_get(x_1, 1); -lean_inc(x_287); +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; +x_200 = lean_ctor_get(x_1, 1); +lean_inc(x_200); lean_dec(x_1); -x_288 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); +x_201 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_3); lean_dec(x_2); -x_289 = lean_ctor_get(x_288, 0); -lean_inc(x_289); -x_290 = lean_ctor_get(x_288, 1); -lean_inc(x_290); -if (lean_is_exclusive(x_288)) { - lean_ctor_release(x_288, 0); - lean_ctor_release(x_288, 1); - x_291 = x_288; +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +if (lean_is_exclusive(x_201)) { + lean_ctor_release(x_201, 0); + lean_ctor_release(x_201, 1); + x_204 = x_201; } else { - lean_dec_ref(x_288); - x_291 = lean_box(0); + lean_dec_ref(x_201); + x_204 = lean_box(0); } -x_292 = lean_box(0); -x_293 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; -lean_inc(x_289); -x_294 = lean_name_mk_numeral(x_293, x_289); -x_295 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__23; -x_296 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__28; -x_297 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_297, 0, x_292); -lean_ctor_set(x_297, 1, x_295); -lean_ctor_set(x_297, 2, x_294); -lean_ctor_set(x_297, 3, x_296); -x_298 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_299 = lean_array_push(x_298, x_297); -x_300 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_301 = lean_array_push(x_299, x_300); -x_302 = l_Lean_Parser_Term_id___elambda__1___closed__2; -x_303 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_303, 0, x_302); -lean_ctor_set(x_303, 1, x_301); -x_304 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -x_305 = lean_name_mk_numeral(x_304, x_289); -x_306 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; -x_307 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; -x_308 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_308, 0, x_292); -lean_ctor_set(x_308, 1, x_306); -lean_ctor_set(x_308, 2, x_305); -lean_ctor_set(x_308, 3, x_307); -x_309 = lean_array_push(x_298, x_308); -x_310 = lean_array_push(x_309, x_300); -x_311 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_311, 0, x_302); -lean_ctor_set(x_311, 1, x_310); -x_312 = lean_array_push(x_298, x_303); -x_313 = lean_array_push(x_312, x_311); -x_314 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_315 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_315, 0, x_314); -lean_ctor_set(x_315, 1, x_313); -x_316 = l_Lean_mkStxStrLit(x_287, x_292); -x_317 = l_Lean_FileMap_ofString___closed__1; -x_318 = lean_array_push(x_317, x_316); -x_319 = l_Lean_Parser_Term_str___elambda__1___closed__2; -x_320 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_320, 0, x_319); -lean_ctor_set(x_320, 1, x_318); -x_321 = lean_array_push(x_298, x_315); -x_322 = lean_array_push(x_321, x_320); -x_323 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_323, 0, x_314); -lean_ctor_set(x_323, 1, x_322); -if (lean_is_scalar(x_291)) { - x_324 = lean_alloc_ctor(0, 2, 0); +x_205 = lean_box(0); +x_206 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__27; +lean_inc(x_202); +x_207 = lean_name_mk_numeral(x_206, x_202); +x_208 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__25; +x_209 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; +x_210 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_210, 0, x_205); +lean_ctor_set(x_210, 1, x_208); +lean_ctor_set(x_210, 2, x_207); +lean_ctor_set(x_210, 3, x_209); +x_211 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_212 = lean_array_push(x_211, x_210); +x_213 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_214 = lean_array_push(x_212, x_213); +x_215 = l_Lean_Parser_Term_id___elambda__1___closed__2; +x_216 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_214); +x_217 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +x_218 = lean_name_mk_numeral(x_217, x_202); +x_219 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_220 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_221 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_221, 0, x_205); +lean_ctor_set(x_221, 1, x_219); +lean_ctor_set(x_221, 2, x_218); +lean_ctor_set(x_221, 3, x_220); +x_222 = lean_array_push(x_211, x_221); +x_223 = lean_array_push(x_222, x_213); +x_224 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_224, 0, x_215); +lean_ctor_set(x_224, 1, x_223); +x_225 = lean_array_push(x_211, x_216); +x_226 = lean_array_push(x_225, x_224); +x_227 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_226); +x_229 = l_Lean_mkStxStrLit(x_200, x_205); +x_230 = l_Lean_FileMap_ofString___closed__1; +x_231 = lean_array_push(x_230, x_229); +x_232 = l_Lean_Parser_Term_str___elambda__1___closed__2; +x_233 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_231); +x_234 = lean_array_push(x_211, x_228); +x_235 = lean_array_push(x_234, x_233); +x_236 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_236, 0, x_227); +lean_ctor_set(x_236, 1, x_235); +if (lean_is_scalar(x_204)) { + x_237 = lean_alloc_ctor(0, 2, 0); } else { - x_324 = x_291; + x_237 = x_204; } -lean_ctor_set(x_324, 0, x_323); -lean_ctor_set(x_324, 1, x_290); -return x_324; +lean_ctor_set(x_237, 0, x_236); +lean_ctor_set(x_237, 1, x_203); +return x_237; } } default: { -uint8_t x_325; -x_325 = !lean_is_exclusive(x_1); -if (x_325 == 0) +uint8_t x_238; +x_238 = !lean_is_exclusive(x_1); +if (x_238 == 0) { -lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; uint8_t x_373; -x_326 = lean_ctor_get(x_1, 1); -x_327 = lean_ctor_get(x_1, 2); -x_328 = lean_ctor_get(x_1, 3); -x_329 = lean_ctor_get(x_1, 0); -lean_dec(x_329); -x_330 = l_Lean_Elab_Term_getEnv___rarg(x_3); -x_331 = lean_ctor_get(x_330, 0); -lean_inc(x_331); -x_332 = lean_ctor_get(x_330, 1); -lean_inc(x_332); -lean_dec(x_330); -x_333 = l_Lean_Elab_Term_getCurrNamespace(x_2, x_332); -x_334 = lean_ctor_get(x_333, 0); -lean_inc(x_334); -x_335 = lean_ctor_get(x_333, 1); -lean_inc(x_335); -lean_dec(x_333); -x_336 = l_Lean_Elab_Term_getOpenDecls(x_2, x_335); -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); -lean_inc(x_327); -x_339 = l_Lean_Elab_resolveGlobalName(x_331, x_334, x_337, x_327); -lean_dec(x_334); -x_340 = l_List_append___rarg(x_339, x_328); -x_341 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_327); -x_342 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_338); -x_343 = lean_ctor_get(x_342, 0); -lean_inc(x_343); -x_344 = lean_ctor_get(x_342, 1); -lean_inc(x_344); -lean_dec(x_342); -x_345 = lean_box(0); -x_346 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__40; -lean_inc(x_343); -x_347 = lean_name_mk_numeral(x_346, x_343); -x_348 = lean_box(0); -x_349 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39; -x_350 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; -lean_ctor_set(x_1, 3, x_350); -lean_ctor_set(x_1, 2, x_347); -lean_ctor_set(x_1, 1, x_349); -lean_ctor_set(x_1, 0, x_345); -x_351 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_352 = lean_array_push(x_351, x_1); -x_353 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_354 = lean_array_push(x_352, x_353); -x_355 = l_Lean_Parser_Term_id___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_351, x_356); -x_358 = lean_array_push(x_357, x_341); -x_359 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_360 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_360, 0, x_359); +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; uint8_t x_286; +x_239 = lean_ctor_get(x_1, 1); +x_240 = lean_ctor_get(x_1, 2); +x_241 = lean_ctor_get(x_1, 3); +x_242 = lean_ctor_get(x_1, 0); +lean_dec(x_242); +x_243 = l_Lean_Elab_Term_getEnv___rarg(x_3); +x_244 = lean_ctor_get(x_243, 0); +lean_inc(x_244); +x_245 = lean_ctor_get(x_243, 1); +lean_inc(x_245); +lean_dec(x_243); +x_246 = l_Lean_Elab_Term_getCurrNamespace(x_2, x_245); +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_getOpenDecls(x_2, 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); +lean_inc(x_240); +x_252 = l_Lean_Elab_resolveGlobalName(x_244, x_247, x_250, x_240); +lean_dec(x_247); +x_253 = l_List_append___rarg(x_252, x_241); +x_254 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_240); +x_255 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_251); +x_256 = lean_ctor_get(x_255, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_255, 1); +lean_inc(x_257); +lean_dec(x_255); +x_258 = lean_box(0); +x_259 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; +lean_inc(x_256); +x_260 = lean_name_mk_numeral(x_259, x_256); +x_261 = lean_box(0); +x_262 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41; +x_263 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45; +lean_ctor_set(x_1, 3, x_263); +lean_ctor_set(x_1, 2, x_260); +lean_ctor_set(x_1, 1, x_262); +lean_ctor_set(x_1, 0, x_258); +x_264 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_265 = lean_array_push(x_264, x_1); +x_266 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_267 = lean_array_push(x_265, x_266); +x_268 = l_Lean_Parser_Term_id___elambda__1___closed__2; +x_269 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_267); +x_270 = lean_array_push(x_264, x_269); +x_271 = lean_array_push(x_270, x_254); +x_272 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_273 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_273, 0, x_272); +lean_ctor_set(x_273, 1, x_271); +x_274 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49; +x_275 = lean_name_mk_numeral(x_274, x_256); +x_276 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__48; +x_277 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_277, 0, x_258); +lean_ctor_set(x_277, 1, x_276); +lean_ctor_set(x_277, 2, x_275); +lean_ctor_set(x_277, 3, x_261); +x_278 = lean_array_push(x_264, x_277); +x_279 = lean_array_push(x_278, x_266); +x_280 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_280, 0, x_268); +lean_ctor_set(x_280, 1, x_279); +x_281 = lean_array_push(x_264, x_273); +x_282 = lean_array_push(x_281, x_280); +x_283 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_283, 0, x_272); +lean_ctor_set(x_283, 1, x_282); +x_284 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2(x_253); +x_285 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_257); +lean_dec(x_2); +x_286 = !lean_is_exclusive(x_285); +if (x_286 == 0) +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; +x_287 = lean_ctor_get(x_285, 0); +x_288 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; +lean_inc(x_287); +x_289 = lean_name_mk_numeral(x_288, x_287); +x_290 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; +x_291 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; +x_292 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_292, 0, x_258); +lean_ctor_set(x_292, 1, x_290); +lean_ctor_set(x_292, 2, x_289); +lean_ctor_set(x_292, 3, x_291); +x_293 = lean_array_push(x_264, x_292); +x_294 = lean_array_push(x_293, x_266); +x_295 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_295, 0, x_268); +lean_ctor_set(x_295, 1, x_294); +x_296 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +lean_inc(x_287); +x_297 = lean_name_mk_numeral(x_296, x_287); +x_298 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_299 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_300 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_300, 0, x_258); +lean_ctor_set(x_300, 1, x_298); +lean_ctor_set(x_300, 2, x_297); +lean_ctor_set(x_300, 3, x_299); +x_301 = lean_array_push(x_264, x_300); +x_302 = lean_array_push(x_301, x_266); +x_303 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_303, 0, x_268); +lean_ctor_set(x_303, 1, x_302); +x_304 = lean_array_push(x_264, x_295); +x_305 = lean_array_push(x_304, x_303); +x_306 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_306, 0, x_272); +lean_ctor_set(x_306, 1, x_305); +x_307 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__62; +x_308 = lean_name_mk_numeral(x_307, x_287); +x_309 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__60; +x_310 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_311 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_311, 0, x_258); +lean_ctor_set(x_311, 1, x_309); +lean_ctor_set(x_311, 2, x_308); +lean_ctor_set(x_311, 3, x_310); +x_312 = lean_array_push(x_264, x_311); +x_313 = lean_array_push(x_312, x_266); +x_314 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_314, 0, x_268); +lean_ctor_set(x_314, 1, x_313); +x_315 = lean_array_push(x_264, x_314); +x_316 = lean_array_push(x_264, x_306); +x_317 = lean_ctor_get(x_239, 0); +lean_inc(x_317); +x_318 = lean_ctor_get(x_239, 1); +lean_inc(x_318); +x_319 = lean_ctor_get(x_239, 2); +lean_inc(x_319); +lean_dec(x_239); +x_320 = lean_string_utf8_extract(x_317, x_318, x_319); +lean_dec(x_319); +lean_dec(x_318); +lean_dec(x_317); +x_321 = l_Lean_mkStxStrLit(x_320, x_258); +x_322 = l_Lean_FileMap_ofString___closed__1; +x_323 = lean_array_push(x_322, x_321); +x_324 = l_Lean_Parser_Term_str___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_315, x_325); +x_327 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_327, 0, x_272); +lean_ctor_set(x_327, 1, x_326); +x_328 = lean_array_push(x_264, x_327); +x_329 = lean_array_push(x_328, x_266); +x_330 = l_Lean_nullKind___closed__2; +x_331 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_331, 0, x_330); +lean_ctor_set(x_331, 1, x_329); +x_332 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; +x_333 = lean_array_push(x_332, x_331); +x_334 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; +x_335 = lean_array_push(x_333, x_334); +x_336 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +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_316, x_337); +x_339 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_339, 0, x_272); +lean_ctor_set(x_339, 1, x_338); +x_340 = lean_array_push(x_264, x_339); +x_341 = lean_array_push(x_340, x_283); +x_342 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_342, 0, x_272); +lean_ctor_set(x_342, 1, x_341); +x_343 = lean_array_push(x_264, x_342); +x_344 = lean_array_push(x_343, x_284); +x_345 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_345, 0, x_272); +lean_ctor_set(x_345, 1, x_344); +lean_ctor_set(x_285, 0, x_345); +return x_285; +} +else +{ +lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; 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; +x_346 = lean_ctor_get(x_285, 0); +x_347 = lean_ctor_get(x_285, 1); +lean_inc(x_347); +lean_inc(x_346); +lean_dec(x_285); +x_348 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; +lean_inc(x_346); +x_349 = lean_name_mk_numeral(x_348, x_346); +x_350 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; +x_351 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; +x_352 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_352, 0, x_258); +lean_ctor_set(x_352, 1, x_350); +lean_ctor_set(x_352, 2, x_349); +lean_ctor_set(x_352, 3, x_351); +x_353 = lean_array_push(x_264, x_352); +x_354 = lean_array_push(x_353, x_266); +x_355 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_355, 0, x_268); +lean_ctor_set(x_355, 1, x_354); +x_356 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +lean_inc(x_346); +x_357 = lean_name_mk_numeral(x_356, x_346); +x_358 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_359 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_360 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_360, 0, x_258); lean_ctor_set(x_360, 1, x_358); -x_361 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47; -x_362 = lean_name_mk_numeral(x_361, x_343); -x_363 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; -x_364 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_364, 0, x_345); -lean_ctor_set(x_364, 1, x_363); -lean_ctor_set(x_364, 2, x_362); -lean_ctor_set(x_364, 3, x_348); -x_365 = lean_array_push(x_351, x_364); -x_366 = lean_array_push(x_365, x_353); -x_367 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_367, 0, x_355); -lean_ctor_set(x_367, 1, x_366); -x_368 = lean_array_push(x_351, x_360); -x_369 = lean_array_push(x_368, x_367); -x_370 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_370, 0, x_359); -lean_ctor_set(x_370, 1, x_369); -x_371 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3(x_340); -x_372 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_344); -lean_dec(x_2); -x_373 = !lean_is_exclusive(x_372); -if (x_373 == 0) -{ -lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; -x_374 = lean_ctor_get(x_372, 0); -x_375 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51; -lean_inc(x_374); -x_376 = lean_name_mk_numeral(x_375, x_374); -x_377 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; -x_378 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; -x_379 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_379, 0, x_345); -lean_ctor_set(x_379, 1, x_377); -lean_ctor_set(x_379, 2, x_376); -lean_ctor_set(x_379, 3, x_378); -x_380 = lean_array_push(x_351, x_379); -x_381 = lean_array_push(x_380, x_353); -x_382 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_382, 0, x_355); -lean_ctor_set(x_382, 1, x_381); -x_383 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -lean_inc(x_374); -x_384 = lean_name_mk_numeral(x_383, x_374); -x_385 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; -x_386 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; -x_387 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_387, 0, x_345); -lean_ctor_set(x_387, 1, x_385); -lean_ctor_set(x_387, 2, x_384); -lean_ctor_set(x_387, 3, x_386); -x_388 = lean_array_push(x_351, x_387); -x_389 = lean_array_push(x_388, x_353); -x_390 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_390, 0, x_355); -lean_ctor_set(x_390, 1, x_389); -x_391 = lean_array_push(x_351, x_382); -x_392 = lean_array_push(x_391, x_390); -x_393 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_393, 0, x_359); -lean_ctor_set(x_393, 1, x_392); -x_394 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__60; -x_395 = lean_name_mk_numeral(x_394, x_374); -x_396 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; -x_397 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__62; -x_398 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_398, 0, x_345); -lean_ctor_set(x_398, 1, x_396); -lean_ctor_set(x_398, 2, x_395); -lean_ctor_set(x_398, 3, x_397); -x_399 = lean_array_push(x_351, x_398); -x_400 = lean_array_push(x_399, x_353); -x_401 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_401, 0, x_355); -lean_ctor_set(x_401, 1, x_400); -x_402 = lean_array_push(x_351, x_401); -x_403 = lean_array_push(x_351, x_393); -x_404 = lean_ctor_get(x_326, 0); -lean_inc(x_404); -x_405 = lean_ctor_get(x_326, 1); -lean_inc(x_405); -x_406 = lean_ctor_get(x_326, 2); -lean_inc(x_406); -lean_dec(x_326); -x_407 = lean_string_utf8_extract(x_404, x_405, x_406); -lean_dec(x_406); -lean_dec(x_405); -lean_dec(x_404); -x_408 = l_Lean_mkStxStrLit(x_407, x_345); -x_409 = l_Lean_FileMap_ofString___closed__1; -x_410 = lean_array_push(x_409, x_408); -x_411 = l_Lean_Parser_Term_str___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_402, x_412); -x_414 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_414, 0, x_359); -lean_ctor_set(x_414, 1, x_413); -x_415 = lean_array_push(x_351, x_414); -x_416 = lean_array_push(x_415, x_353); -x_417 = l_Lean_nullKind___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 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; -x_420 = lean_array_push(x_419, x_418); -x_421 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; -x_422 = lean_array_push(x_420, x_421); -x_423 = l_Lean_Parser_Term_paren___elambda__1___closed__1; -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_403, x_424); -x_426 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_426, 0, x_359); -lean_ctor_set(x_426, 1, x_425); -x_427 = lean_array_push(x_351, x_426); -x_428 = lean_array_push(x_427, x_370); -x_429 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_429, 0, x_359); -lean_ctor_set(x_429, 1, x_428); -x_430 = lean_array_push(x_351, x_429); -x_431 = lean_array_push(x_430, x_371); -x_432 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_432, 0, x_359); -lean_ctor_set(x_432, 1, x_431); -lean_ctor_set(x_372, 0, x_432); -return x_372; -} -else -{ -lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; -x_433 = lean_ctor_get(x_372, 0); -x_434 = lean_ctor_get(x_372, 1); -lean_inc(x_434); -lean_inc(x_433); -lean_dec(x_372); -x_435 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51; -lean_inc(x_433); -x_436 = lean_name_mk_numeral(x_435, x_433); -x_437 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; -x_438 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; -x_439 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_439, 0, x_345); -lean_ctor_set(x_439, 1, x_437); -lean_ctor_set(x_439, 2, x_436); -lean_ctor_set(x_439, 3, x_438); -x_440 = lean_array_push(x_351, x_439); -x_441 = lean_array_push(x_440, x_353); -x_442 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_442, 0, x_355); -lean_ctor_set(x_442, 1, x_441); -x_443 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -lean_inc(x_433); -x_444 = lean_name_mk_numeral(x_443, x_433); -x_445 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; -x_446 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; -x_447 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_447, 0, x_345); -lean_ctor_set(x_447, 1, x_445); -lean_ctor_set(x_447, 2, x_444); -lean_ctor_set(x_447, 3, x_446); -x_448 = lean_array_push(x_351, x_447); -x_449 = lean_array_push(x_448, x_353); -x_450 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_450, 0, x_355); -lean_ctor_set(x_450, 1, x_449); -x_451 = lean_array_push(x_351, x_442); -x_452 = lean_array_push(x_451, x_450); -x_453 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_453, 0, x_359); -lean_ctor_set(x_453, 1, x_452); -x_454 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__60; -x_455 = lean_name_mk_numeral(x_454, x_433); -x_456 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; -x_457 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__62; -x_458 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_458, 0, x_345); -lean_ctor_set(x_458, 1, x_456); -lean_ctor_set(x_458, 2, x_455); -lean_ctor_set(x_458, 3, x_457); -x_459 = lean_array_push(x_351, x_458); -x_460 = lean_array_push(x_459, x_353); -x_461 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_461, 0, x_355); -lean_ctor_set(x_461, 1, x_460); -x_462 = lean_array_push(x_351, x_461); -x_463 = lean_array_push(x_351, x_453); -x_464 = lean_ctor_get(x_326, 0); -lean_inc(x_464); -x_465 = lean_ctor_get(x_326, 1); -lean_inc(x_465); -x_466 = lean_ctor_get(x_326, 2); -lean_inc(x_466); -lean_dec(x_326); -x_467 = lean_string_utf8_extract(x_464, x_465, x_466); -lean_dec(x_466); -lean_dec(x_465); -lean_dec(x_464); -x_468 = l_Lean_mkStxStrLit(x_467, x_345); -x_469 = l_Lean_FileMap_ofString___closed__1; -x_470 = lean_array_push(x_469, x_468); -x_471 = l_Lean_Parser_Term_str___elambda__1___closed__2; -x_472 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_472, 0, x_471); -lean_ctor_set(x_472, 1, x_470); -x_473 = lean_array_push(x_462, x_472); -x_474 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_474, 0, x_359); -lean_ctor_set(x_474, 1, x_473); -x_475 = lean_array_push(x_351, x_474); -x_476 = lean_array_push(x_475, x_353); -x_477 = l_Lean_nullKind___closed__2; -x_478 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_478, 0, x_477); -lean_ctor_set(x_478, 1, x_476); -x_479 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; -x_480 = lean_array_push(x_479, x_478); -x_481 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; -x_482 = lean_array_push(x_480, x_481); -x_483 = l_Lean_Parser_Term_paren___elambda__1___closed__1; -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 = lean_array_push(x_463, x_484); -x_486 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_486, 0, x_359); -lean_ctor_set(x_486, 1, x_485); -x_487 = lean_array_push(x_351, x_486); -x_488 = lean_array_push(x_487, x_370); -x_489 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_489, 0, x_359); -lean_ctor_set(x_489, 1, x_488); -x_490 = lean_array_push(x_351, x_489); -x_491 = lean_array_push(x_490, x_371); -x_492 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_492, 0, x_359); -lean_ctor_set(x_492, 1, x_491); -x_493 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_493, 0, x_492); -lean_ctor_set(x_493, 1, x_434); -return x_493; +lean_ctor_set(x_360, 2, x_357); +lean_ctor_set(x_360, 3, x_359); +x_361 = lean_array_push(x_264, x_360); +x_362 = lean_array_push(x_361, x_266); +x_363 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_363, 0, x_268); +lean_ctor_set(x_363, 1, x_362); +x_364 = lean_array_push(x_264, x_355); +x_365 = lean_array_push(x_364, x_363); +x_366 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_366, 0, x_272); +lean_ctor_set(x_366, 1, x_365); +x_367 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__62; +x_368 = lean_name_mk_numeral(x_367, x_346); +x_369 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__60; +x_370 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_371 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_371, 0, x_258); +lean_ctor_set(x_371, 1, x_369); +lean_ctor_set(x_371, 2, x_368); +lean_ctor_set(x_371, 3, x_370); +x_372 = lean_array_push(x_264, x_371); +x_373 = lean_array_push(x_372, x_266); +x_374 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_374, 0, x_268); +lean_ctor_set(x_374, 1, x_373); +x_375 = lean_array_push(x_264, x_374); +x_376 = lean_array_push(x_264, x_366); +x_377 = lean_ctor_get(x_239, 0); +lean_inc(x_377); +x_378 = lean_ctor_get(x_239, 1); +lean_inc(x_378); +x_379 = lean_ctor_get(x_239, 2); +lean_inc(x_379); +lean_dec(x_239); +x_380 = lean_string_utf8_extract(x_377, x_378, x_379); +lean_dec(x_379); +lean_dec(x_378); +lean_dec(x_377); +x_381 = l_Lean_mkStxStrLit(x_380, x_258); +x_382 = l_Lean_FileMap_ofString___closed__1; +x_383 = lean_array_push(x_382, x_381); +x_384 = l_Lean_Parser_Term_str___elambda__1___closed__2; +x_385 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_385, 0, x_384); +lean_ctor_set(x_385, 1, x_383); +x_386 = lean_array_push(x_375, x_385); +x_387 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_387, 0, x_272); +lean_ctor_set(x_387, 1, x_386); +x_388 = lean_array_push(x_264, x_387); +x_389 = lean_array_push(x_388, x_266); +x_390 = l_Lean_nullKind___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 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; +x_393 = lean_array_push(x_392, x_391); +x_394 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; +x_395 = lean_array_push(x_393, x_394); +x_396 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +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_376, x_397); +x_399 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_399, 0, x_272); +lean_ctor_set(x_399, 1, x_398); +x_400 = lean_array_push(x_264, x_399); +x_401 = lean_array_push(x_400, x_283); +x_402 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_402, 0, x_272); +lean_ctor_set(x_402, 1, x_401); +x_403 = lean_array_push(x_264, x_402); +x_404 = lean_array_push(x_403, x_284); +x_405 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_405, 0, x_272); +lean_ctor_set(x_405, 1, x_404); +x_406 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_406, 0, x_405); +lean_ctor_set(x_406, 1, x_347); +return x_406; } } else { -lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; -x_494 = lean_ctor_get(x_1, 1); -x_495 = lean_ctor_get(x_1, 2); -x_496 = lean_ctor_get(x_1, 3); -lean_inc(x_496); -lean_inc(x_495); -lean_inc(x_494); +lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; +x_407 = lean_ctor_get(x_1, 1); +x_408 = lean_ctor_get(x_1, 2); +x_409 = lean_ctor_get(x_1, 3); +lean_inc(x_409); +lean_inc(x_408); +lean_inc(x_407); lean_dec(x_1); -x_497 = l_Lean_Elab_Term_getEnv___rarg(x_3); -x_498 = lean_ctor_get(x_497, 0); -lean_inc(x_498); -x_499 = lean_ctor_get(x_497, 1); -lean_inc(x_499); -lean_dec(x_497); -x_500 = l_Lean_Elab_Term_getCurrNamespace(x_2, x_499); -x_501 = lean_ctor_get(x_500, 0); -lean_inc(x_501); -x_502 = lean_ctor_get(x_500, 1); -lean_inc(x_502); -lean_dec(x_500); -x_503 = l_Lean_Elab_Term_getOpenDecls(x_2, x_502); -x_504 = lean_ctor_get(x_503, 0); -lean_inc(x_504); -x_505 = lean_ctor_get(x_503, 1); -lean_inc(x_505); -lean_dec(x_503); -lean_inc(x_495); -x_506 = l_Lean_Elab_resolveGlobalName(x_498, x_501, x_504, x_495); -lean_dec(x_501); -x_507 = l_List_append___rarg(x_506, x_496); -x_508 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_495); -x_509 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_505); -x_510 = lean_ctor_get(x_509, 0); -lean_inc(x_510); -x_511 = lean_ctor_get(x_509, 1); -lean_inc(x_511); -lean_dec(x_509); -x_512 = lean_box(0); -x_513 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__40; -lean_inc(x_510); -x_514 = lean_name_mk_numeral(x_513, x_510); -x_515 = lean_box(0); -x_516 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__39; -x_517 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; -x_518 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_518, 0, x_512); -lean_ctor_set(x_518, 1, x_516); -lean_ctor_set(x_518, 2, x_514); -lean_ctor_set(x_518, 3, x_517); -x_519 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_520 = lean_array_push(x_519, x_518); -x_521 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_522 = lean_array_push(x_520, x_521); -x_523 = l_Lean_Parser_Term_id___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 = lean_array_push(x_519, x_524); -x_526 = lean_array_push(x_525, x_508); -x_527 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_528 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_528, 0, x_527); -lean_ctor_set(x_528, 1, x_526); -x_529 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47; -x_530 = lean_name_mk_numeral(x_529, x_510); -x_531 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; -x_532 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_532, 0, x_512); -lean_ctor_set(x_532, 1, x_531); -lean_ctor_set(x_532, 2, x_530); -lean_ctor_set(x_532, 3, x_515); -x_533 = lean_array_push(x_519, x_532); -x_534 = lean_array_push(x_533, x_521); -x_535 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_535, 0, x_523); -lean_ctor_set(x_535, 1, x_534); -x_536 = lean_array_push(x_519, x_528); -x_537 = lean_array_push(x_536, x_535); -x_538 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_538, 0, x_527); -lean_ctor_set(x_538, 1, x_537); -x_539 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3(x_507); -x_540 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_511); +x_410 = l_Lean_Elab_Term_getEnv___rarg(x_3); +x_411 = lean_ctor_get(x_410, 0); +lean_inc(x_411); +x_412 = lean_ctor_get(x_410, 1); +lean_inc(x_412); +lean_dec(x_410); +x_413 = l_Lean_Elab_Term_getCurrNamespace(x_2, x_412); +x_414 = lean_ctor_get(x_413, 0); +lean_inc(x_414); +x_415 = lean_ctor_get(x_413, 1); +lean_inc(x_415); +lean_dec(x_413); +x_416 = l_Lean_Elab_Term_getOpenDecls(x_2, x_415); +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); +lean_inc(x_408); +x_419 = l_Lean_Elab_resolveGlobalName(x_411, x_414, x_417, x_408); +lean_dec(x_414); +x_420 = l_List_append___rarg(x_419, x_409); +x_421 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_408); +x_422 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_418); +x_423 = lean_ctor_get(x_422, 0); +lean_inc(x_423); +x_424 = lean_ctor_get(x_422, 1); +lean_inc(x_424); +lean_dec(x_422); +x_425 = lean_box(0); +x_426 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__42; +lean_inc(x_423); +x_427 = lean_name_mk_numeral(x_426, x_423); +x_428 = lean_box(0); +x_429 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__41; +x_430 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45; +x_431 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_431, 0, x_425); +lean_ctor_set(x_431, 1, x_429); +lean_ctor_set(x_431, 2, x_427); +lean_ctor_set(x_431, 3, x_430); +x_432 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_433 = lean_array_push(x_432, x_431); +x_434 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_435 = lean_array_push(x_433, x_434); +x_436 = l_Lean_Parser_Term_id___elambda__1___closed__2; +x_437 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_437, 0, x_436); +lean_ctor_set(x_437, 1, x_435); +x_438 = lean_array_push(x_432, x_437); +x_439 = lean_array_push(x_438, x_421); +x_440 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_441 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_441, 0, x_440); +lean_ctor_set(x_441, 1, x_439); +x_442 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49; +x_443 = lean_name_mk_numeral(x_442, x_423); +x_444 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__48; +x_445 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_445, 0, x_425); +lean_ctor_set(x_445, 1, x_444); +lean_ctor_set(x_445, 2, x_443); +lean_ctor_set(x_445, 3, x_428); +x_446 = lean_array_push(x_432, x_445); +x_447 = lean_array_push(x_446, x_434); +x_448 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_448, 0, x_436); +lean_ctor_set(x_448, 1, x_447); +x_449 = lean_array_push(x_432, x_441); +x_450 = lean_array_push(x_449, x_448); +x_451 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_451, 0, x_440); +lean_ctor_set(x_451, 1, x_450); +x_452 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2(x_420); +x_453 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_424); lean_dec(x_2); -x_541 = lean_ctor_get(x_540, 0); -lean_inc(x_541); -x_542 = lean_ctor_get(x_540, 1); -lean_inc(x_542); -if (lean_is_exclusive(x_540)) { - lean_ctor_release(x_540, 0); - lean_ctor_release(x_540, 1); - x_543 = x_540; +x_454 = lean_ctor_get(x_453, 0); +lean_inc(x_454); +x_455 = lean_ctor_get(x_453, 1); +lean_inc(x_455); +if (lean_is_exclusive(x_453)) { + lean_ctor_release(x_453, 0); + lean_ctor_release(x_453, 1); + x_456 = x_453; } else { - lean_dec_ref(x_540); - x_543 = lean_box(0); + lean_dec_ref(x_453); + x_456 = lean_box(0); } -x_544 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__51; -lean_inc(x_541); -x_545 = lean_name_mk_numeral(x_544, x_541); -x_546 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__50; -x_547 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; -x_548 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_548, 0, x_512); -lean_ctor_set(x_548, 1, x_546); -lean_ctor_set(x_548, 2, x_545); -lean_ctor_set(x_548, 3, x_547); -x_549 = lean_array_push(x_519, x_548); -x_550 = lean_array_push(x_549, x_521); -x_551 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_551, 0, x_523); -lean_ctor_set(x_551, 1, x_550); -x_552 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; -lean_inc(x_541); -x_553 = lean_name_mk_numeral(x_552, x_541); -x_554 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__30; -x_555 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; -x_556 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_556, 0, x_512); -lean_ctor_set(x_556, 1, x_554); -lean_ctor_set(x_556, 2, x_553); -lean_ctor_set(x_556, 3, x_555); -x_557 = lean_array_push(x_519, x_556); -x_558 = lean_array_push(x_557, x_521); -x_559 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_559, 0, x_523); -lean_ctor_set(x_559, 1, x_558); -x_560 = lean_array_push(x_519, x_551); -x_561 = lean_array_push(x_560, x_559); -x_562 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_562, 0, x_527); -lean_ctor_set(x_562, 1, x_561); -x_563 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__60; -x_564 = lean_name_mk_numeral(x_563, x_541); -x_565 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__58; -x_566 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__62; -x_567 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_567, 0, x_512); -lean_ctor_set(x_567, 1, x_565); -lean_ctor_set(x_567, 2, x_564); -lean_ctor_set(x_567, 3, x_566); -x_568 = lean_array_push(x_519, x_567); -x_569 = lean_array_push(x_568, x_521); -x_570 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_570, 0, x_523); -lean_ctor_set(x_570, 1, x_569); -x_571 = lean_array_push(x_519, x_570); -x_572 = lean_array_push(x_519, x_562); -x_573 = lean_ctor_get(x_494, 0); -lean_inc(x_573); -x_574 = lean_ctor_get(x_494, 1); -lean_inc(x_574); -x_575 = lean_ctor_get(x_494, 2); -lean_inc(x_575); -lean_dec(x_494); -x_576 = lean_string_utf8_extract(x_573, x_574, x_575); -lean_dec(x_575); -lean_dec(x_574); -lean_dec(x_573); -x_577 = l_Lean_mkStxStrLit(x_576, x_512); -x_578 = l_Lean_FileMap_ofString___closed__1; -x_579 = lean_array_push(x_578, x_577); -x_580 = l_Lean_Parser_Term_str___elambda__1___closed__2; -x_581 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_581, 0, x_580); -lean_ctor_set(x_581, 1, x_579); -x_582 = lean_array_push(x_571, x_581); -x_583 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_583, 0, x_527); -lean_ctor_set(x_583, 1, x_582); -x_584 = lean_array_push(x_519, x_583); -x_585 = lean_array_push(x_584, x_521); -x_586 = l_Lean_nullKind___closed__2; -x_587 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_587, 0, x_586); -lean_ctor_set(x_587, 1, x_585); -x_588 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; -x_589 = lean_array_push(x_588, x_587); -x_590 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; -x_591 = lean_array_push(x_589, x_590); -x_592 = l_Lean_Parser_Term_paren___elambda__1___closed__1; -x_593 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_593, 0, x_592); -lean_ctor_set(x_593, 1, x_591); -x_594 = lean_array_push(x_572, x_593); -x_595 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_595, 0, x_527); -lean_ctor_set(x_595, 1, x_594); -x_596 = lean_array_push(x_519, x_595); -x_597 = lean_array_push(x_596, x_538); -x_598 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_598, 0, x_527); -lean_ctor_set(x_598, 1, x_597); -x_599 = lean_array_push(x_519, x_598); -x_600 = lean_array_push(x_599, x_539); -x_601 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_601, 0, x_527); -lean_ctor_set(x_601, 1, x_600); -if (lean_is_scalar(x_543)) { - x_602 = lean_alloc_ctor(0, 2, 0); +x_457 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__53; +lean_inc(x_454); +x_458 = lean_name_mk_numeral(x_457, x_454); +x_459 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__52; +x_460 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__56; +x_461 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_461, 0, x_425); +lean_ctor_set(x_461, 1, x_459); +lean_ctor_set(x_461, 2, x_458); +lean_ctor_set(x_461, 3, x_460); +x_462 = lean_array_push(x_432, x_461); +x_463 = lean_array_push(x_462, x_434); +x_464 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_464, 0, x_436); +lean_ctor_set(x_464, 1, x_463); +x_465 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__33; +lean_inc(x_454); +x_466 = lean_name_mk_numeral(x_465, x_454); +x_467 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__32; +x_468 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__38; +x_469 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_469, 0, x_425); +lean_ctor_set(x_469, 1, x_467); +lean_ctor_set(x_469, 2, x_466); +lean_ctor_set(x_469, 3, x_468); +x_470 = lean_array_push(x_432, x_469); +x_471 = lean_array_push(x_470, x_434); +x_472 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_472, 0, x_436); +lean_ctor_set(x_472, 1, x_471); +x_473 = lean_array_push(x_432, x_464); +x_474 = lean_array_push(x_473, x_472); +x_475 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_475, 0, x_440); +lean_ctor_set(x_475, 1, x_474); +x_476 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__62; +x_477 = lean_name_mk_numeral(x_476, x_454); +x_478 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__60; +x_479 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_480 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_480, 0, x_425); +lean_ctor_set(x_480, 1, x_478); +lean_ctor_set(x_480, 2, x_477); +lean_ctor_set(x_480, 3, x_479); +x_481 = lean_array_push(x_432, x_480); +x_482 = lean_array_push(x_481, x_434); +x_483 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_483, 0, x_436); +lean_ctor_set(x_483, 1, x_482); +x_484 = lean_array_push(x_432, x_483); +x_485 = lean_array_push(x_432, x_475); +x_486 = lean_ctor_get(x_407, 0); +lean_inc(x_486); +x_487 = lean_ctor_get(x_407, 1); +lean_inc(x_487); +x_488 = lean_ctor_get(x_407, 2); +lean_inc(x_488); +lean_dec(x_407); +x_489 = lean_string_utf8_extract(x_486, x_487, x_488); +lean_dec(x_488); +lean_dec(x_487); +lean_dec(x_486); +x_490 = l_Lean_mkStxStrLit(x_489, x_425); +x_491 = l_Lean_FileMap_ofString___closed__1; +x_492 = lean_array_push(x_491, x_490); +x_493 = l_Lean_Parser_Term_str___elambda__1___closed__2; +x_494 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_494, 0, x_493); +lean_ctor_set(x_494, 1, x_492); +x_495 = lean_array_push(x_484, x_494); +x_496 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_496, 0, x_440); +lean_ctor_set(x_496, 1, x_495); +x_497 = lean_array_push(x_432, x_496); +x_498 = lean_array_push(x_497, x_434); +x_499 = l_Lean_nullKind___closed__2; +x_500 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_500, 0, x_499); +lean_ctor_set(x_500, 1, x_498); +x_501 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; +x_502 = lean_array_push(x_501, x_500); +x_503 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; +x_504 = lean_array_push(x_502, x_503); +x_505 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_506 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_506, 0, x_505); +lean_ctor_set(x_506, 1, x_504); +x_507 = lean_array_push(x_485, x_506); +x_508 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_508, 0, x_440); +lean_ctor_set(x_508, 1, x_507); +x_509 = lean_array_push(x_432, x_508); +x_510 = lean_array_push(x_509, x_451); +x_511 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_511, 0, x_440); +lean_ctor_set(x_511, 1, x_510); +x_512 = lean_array_push(x_432, x_511); +x_513 = lean_array_push(x_512, x_452); +x_514 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_514, 0, x_440); +lean_ctor_set(x_514, 1, x_513); +if (lean_is_scalar(x_456)) { + x_515 = lean_alloc_ctor(0, 2, 0); } else { - x_602 = x_543; + x_515 = x_456; } -lean_ctor_set(x_602, 0, x_601); -lean_ctor_set(x_602, 1, x_542); -return x_602; +lean_ctor_set(x_515, 0, x_514); +lean_ctor_set(x_515, 1, x_455); +return x_515; } } } } } -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; +x_16 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_11); +lean_dec(x_2); +lean_dec(x_1); +return x_16; +} +} +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); return x_6; } } -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -return x_6; -} -} -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { lean_object* x_13; -x_13 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_11); return x_13; } } -lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__3___lambda__2(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Elab_Quotation_3__quoteList___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__2___lambda__2(x_1, x_2, x_3, x_4, x_5); lean_dec(x_4); return x_6; } @@ -5039,10 +5067,10 @@ x_36 = l_Lean_Parser_Term_app___elambda__1___closed__2; x_37 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_37, 0, x_36); lean_ctor_set(x_37, 1, x_35); -x_38 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47; +x_38 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49; lean_inc(x_12); x_39 = lean_name_mk_numeral(x_38, x_12); -x_40 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; +x_40 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__48; x_41 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_41, 0, x_13); lean_ctor_set(x_41, 1, x_40); @@ -5092,9 +5120,9 @@ x_68 = lean_array_push(x_67, x_22); x_69 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_69, 0, x_47); lean_ctor_set(x_69, 1, x_68); -x_70 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_70 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_71 = lean_array_push(x_70, x_69); -x_72 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_72 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_73 = lean_array_push(x_71, x_72); x_74 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_75 = lean_alloc_ctor(1, 2, 0); @@ -5157,10 +5185,10 @@ x_104 = l_Lean_Parser_Term_app___elambda__1___closed__2; x_105 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_105, 0, x_104); lean_ctor_set(x_105, 1, x_103); -x_106 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__47; +x_106 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__49; lean_inc(x_79); x_107 = lean_name_mk_numeral(x_106, x_79); -x_108 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__46; +x_108 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__48; x_109 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_109, 0, x_81); lean_ctor_set(x_109, 1, x_108); @@ -5210,9 +5238,9 @@ x_136 = lean_array_push(x_135, x_90); x_137 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_137, 0, x_115); lean_ctor_set(x_137, 1, x_136); -x_138 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +x_138 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; x_139 = lean_array_push(x_138, x_137); -x_140 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_140 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_141 = lean_array_push(x_139, x_140); x_142 = l_Lean_Parser_Term_paren___elambda__1___closed__1; x_143 = lean_alloc_ctor(1, 2, 0); @@ -5263,60 +5291,21 @@ lean_dec(x_1); return x_4; } } +lean_object* _init_l_Lean_Elab_Term_elabStxQuot___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_stxQuot_expand___boxed), 3, 0); +return x_1; +} +} lean_object* l_Lean_Elab_Term_elabStxQuot(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -lean_inc(x_3); -x_7 = l_Lean_Elab_Term_stxQuot_expand(x_6, x_3, x_4); -lean_dec(x_6); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_ctor_get(x_7, 1); -lean_inc(x_9); -lean_dec(x_7); -x_10 = 1; -x_11 = l_Lean_Elab_Term_elabTerm(x_8, x_2, x_10, x_10, x_3, x_9); -return x_11; -} -else -{ -uint8_t x_12; -lean_dec(x_3); -lean_dec(x_2); -x_12 = !lean_is_exclusive(x_7); -if (x_12 == 0) -{ -return x_7; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_7, 0); -x_14 = lean_ctor_get(x_7, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_7); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; -} -} -} -} -lean_object* l_Lean_Elab_Term_elabStxQuot___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_Elab_Term_elabStxQuot(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; +lean_object* x_5; lean_object* x_6; +x_5 = l_Lean_Elab_Term_elabStxQuot___closed__1; +x_6 = l_Lean_Elab_Term_adaptExpander(x_5, x_1, x_2, x_3, x_4); +return x_6; } } lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot___closed__1() { @@ -5341,7 +5330,7 @@ lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot___closed__3 _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabStxQuot___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabStxQuot), 4, 0); return x_1; } } @@ -5517,7 +5506,17 @@ lean_ctor_set(x_4, 1, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1() { +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_3); +return x_4; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -5529,7 +5528,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2() { _start: { lean_object* x_1; @@ -5537,19 +5536,19 @@ x_1 = lean_mk_string(":="); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__2; +x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__4() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4() { _start: { lean_object* x_1; @@ -5557,22 +5556,22 @@ x_1 = lean_mk_string("discr"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__4; +x_1 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__4; +x_1 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__5; +x_3 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -5580,17 +5579,17 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__4; +x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__8() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8() { _start: { lean_object* x_1; @@ -5598,29 +5597,29 @@ x_1 = lean_mk_string(";"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__8; +x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_PersistentHashMap_mkCollisionNode___rarg___closed__1; -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1; +x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_6; @@ -5631,10 +5630,10 @@ if (x_6 == 0) lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; x_7 = lean_ctor_get(x_5, 0); x_8 = lean_box(0); -x_9 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_9 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_10 = lean_name_mk_numeral(x_9, x_7); x_11 = lean_box(0); -x_12 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_12 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_13 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_13, 0, x_8); lean_ctor_set(x_13, 1, x_12); @@ -5651,16 +5650,16 @@ lean_ctor_set(x_19, 1, x_17); x_20 = l_PersistentHashMap_mkCollisionNode___rarg___closed__1; x_21 = lean_array_push(x_20, x_1); x_22 = lean_array_push(x_21, x_16); -x_23 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_23 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_24 = lean_array_push(x_22, x_23); x_25 = lean_array_push(x_24, x_19); x_26 = l_Lean_Parser_Term_letPatDecl___elambda__1___closed__2; x_27 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_25); -x_28 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; +x_28 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_29 = lean_array_push(x_28, x_27); -x_30 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_30 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_31 = lean_array_push(x_29, x_30); x_32 = lean_array_push(x_31, x_2); x_33 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -5679,10 +5678,10 @@ lean_inc(x_36); lean_inc(x_35); lean_dec(x_5); x_37 = lean_box(0); -x_38 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_38 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_39 = lean_name_mk_numeral(x_38, x_35); x_40 = lean_box(0); -x_41 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_41 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_42 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_42, 0, x_37); lean_ctor_set(x_42, 1, x_41); @@ -5699,16 +5698,16 @@ lean_ctor_set(x_48, 1, x_46); x_49 = l_PersistentHashMap_mkCollisionNode___rarg___closed__1; x_50 = lean_array_push(x_49, x_1); x_51 = lean_array_push(x_50, x_45); -x_52 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_52 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_53 = lean_array_push(x_51, x_52); x_54 = lean_array_push(x_53, x_48); x_55 = l_Lean_Parser_Term_letPatDecl___elambda__1___closed__2; x_56 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_56, 0, x_55); lean_ctor_set(x_56, 1, x_54); -x_57 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; +x_57 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_58 = lean_array_push(x_57, x_56); -x_59 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_59 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_60 = lean_array_push(x_58, x_59); x_61 = lean_array_push(x_60, x_2); x_62 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -5898,7 +5897,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__5; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14; x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -5926,7 +5925,7 @@ x_17 = lean_name_mk_string(x_1, x_16); x_18 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; lean_inc(x_10); x_19 = lean_name_mk_numeral(x_18, x_10); -x_20 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__4; +x_20 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; x_21 = lean_name_mk_string(x_2, x_20); x_22 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__4; x_23 = lean_name_mk_string(x_21, x_22); @@ -5951,9 +5950,9 @@ lean_inc(x_3); x_33 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_33, 0, x_3); lean_ctor_set(x_33, 1, x_32); -x_34 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_34 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_35 = lean_name_mk_numeral(x_34, x_10); -x_36 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_36 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_37 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_37, 0, x_13); lean_ctor_set(x_37, 1, x_36); @@ -5972,15 +5971,15 @@ lean_ctor_set(x_43, 1, x_42); x_44 = l_PersistentHashMap_mkCollisionNode___rarg___closed__1; x_45 = lean_array_push(x_44, x_4); x_46 = lean_array_push(x_45, x_31); -x_47 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_47 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_48 = lean_array_push(x_46, x_47); x_49 = lean_array_push(x_48, x_43); x_50 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_50, 0, x_15); lean_ctor_set(x_50, 1, x_49); -x_51 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; +x_51 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_52 = lean_array_push(x_51, x_50); -x_53 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_53 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_54 = lean_array_push(x_52, x_53); x_55 = lean_array_push(x_54, x_5); x_56 = lean_alloc_ctor(1, 2, 0); @@ -6009,7 +6008,7 @@ x_65 = lean_name_mk_string(x_1, x_64); x_66 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; lean_inc(x_57); x_67 = lean_name_mk_numeral(x_66, x_57); -x_68 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__4; +x_68 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__13; x_69 = lean_name_mk_string(x_2, x_68); x_70 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__4; x_71 = lean_name_mk_string(x_69, x_70); @@ -6034,9 +6033,9 @@ lean_inc(x_3); x_81 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_81, 0, x_3); lean_ctor_set(x_81, 1, x_80); -x_82 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_82 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_83 = lean_name_mk_numeral(x_82, x_57); -x_84 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_84 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_85 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_85, 0, x_61); lean_ctor_set(x_85, 1, x_84); @@ -6055,15 +6054,15 @@ lean_ctor_set(x_91, 1, x_90); x_92 = l_PersistentHashMap_mkCollisionNode___rarg___closed__1; x_93 = lean_array_push(x_92, x_4); x_94 = lean_array_push(x_93, x_79); -x_95 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_95 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_96 = lean_array_push(x_94, x_95); x_97 = lean_array_push(x_96, x_91); x_98 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_98, 0, x_63); lean_ctor_set(x_98, 1, x_97); -x_99 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; +x_99 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_100 = lean_array_push(x_99, x_98); -x_101 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_101 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_102 = lean_array_push(x_100, x_101); x_103 = lean_array_push(x_102, x_5); x_104 = lean_alloc_ctor(1, 2, 0); @@ -6130,7 +6129,7 @@ lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__4(lea _start: { lean_object* x_5; lean_object* x_6; -x_5 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__20; +x_5 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__22; x_6 = l_Lean_Elab_Term_throwError___rarg(x_1, x_5, x_3, x_4); return x_6; } @@ -6151,10 +6150,10 @@ x_11 = lean_name_mk_string(x_1, x_10); x_12 = lean_box(0); x_13 = l_Lean_Parser_Term_letPatDecl___elambda__1___closed__1; x_14 = lean_name_mk_string(x_1, x_13); -x_15 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_15 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_16 = lean_name_mk_numeral(x_15, x_9); x_17 = lean_box(0); -x_18 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_18 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_19 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_19, 0, x_12); lean_ctor_set(x_19, 1, x_18); @@ -6170,15 +6169,15 @@ lean_ctor_set(x_24, 1, x_23); x_25 = l_PersistentHashMap_mkCollisionNode___rarg___closed__1; x_26 = lean_array_push(x_25, x_3); x_27 = lean_array_push(x_26, x_22); -x_28 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_28 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_29 = lean_array_push(x_27, x_28); x_30 = lean_array_push(x_29, x_24); x_31 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_31, 0, x_14); lean_ctor_set(x_31, 1, x_30); -x_32 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; +x_32 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_33 = lean_array_push(x_32, x_31); -x_34 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_34 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_35 = lean_array_push(x_33, x_34); x_36 = lean_array_push(x_35, x_4); x_37 = lean_alloc_ctor(1, 2, 0); @@ -6201,10 +6200,10 @@ x_41 = lean_name_mk_string(x_1, x_40); x_42 = lean_box(0); x_43 = l_Lean_Parser_Term_letPatDecl___elambda__1___closed__1; x_44 = lean_name_mk_string(x_1, x_43); -x_45 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_45 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_46 = lean_name_mk_numeral(x_45, x_38); x_47 = lean_box(0); -x_48 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_48 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_49 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_49, 0, x_42); lean_ctor_set(x_49, 1, x_48); @@ -6220,15 +6219,15 @@ lean_ctor_set(x_54, 1, x_53); x_55 = l_PersistentHashMap_mkCollisionNode___rarg___closed__1; x_56 = lean_array_push(x_55, x_3); x_57 = lean_array_push(x_56, x_52); -x_58 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_58 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_59 = lean_array_push(x_57, x_58); x_60 = lean_array_push(x_59, x_54); x_61 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_61, 0, x_44); lean_ctor_set(x_61, 1, x_60); -x_62 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; +x_62 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_63 = lean_array_push(x_62, x_61); -x_64 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_64 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_65 = lean_array_push(x_63, x_64); x_66 = lean_array_push(x_65, x_4); x_67 = lean_alloc_ctor(1, 2, 0); @@ -6253,16 +6252,24 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed_ _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_Term_HeadInfo_Inhabited___spec__1___rarg___boxed), 3, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___boxed), 3, 0); return x_1; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_Term_HeadInfo_Inhabited___spec__1___rarg___boxed), 3, 0); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__4() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__2; +x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__3; x_3 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_1); @@ -6339,228 +6346,254 @@ return x_25; } else { -lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_26 = lean_unsigned_to_nat(0u); -x_27 = l_Lean_Syntax_getArg(x_14, x_26); -lean_dec(x_14); -x_28 = l_Lean_Syntax_getArg(x_27, x_13); +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = l_Lean_Syntax_getArgs(x_14); +x_27 = lean_array_get_size(x_26); +x_28 = lean_nat_dec_eq(x_27, x_13); lean_dec(x_27); -x_29 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; -x_30 = l_Lean_nameToExprAux___main___closed__4; -x_31 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___boxed), 7, 4); -lean_closure_set(x_31, 0, x_29); -lean_closure_set(x_31, 1, x_30); -lean_closure_set(x_31, 2, x_4); -lean_closure_set(x_31, 3, x_28); -x_32 = lean_box(0); -x_33 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_32); -lean_ctor_set(x_33, 2, x_31); -return x_33; -} -} -else -{ -lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; uint8_t x_40; lean_object* x_41; -x_34 = lean_ctor_get(x_16, 0); -lean_inc(x_34); -x_35 = lean_box(0); -x_36 = lean_name_eq(x_34, x_35); -lean_dec(x_34); -x_37 = l_Lean_Syntax_getArg(x_14, x_13); -x_38 = l_Lean_Parser_Term_paren___elambda__1___closed__1; -lean_inc(x_37); -x_39 = l_Lean_Syntax_isOfKind(x_37, x_38); -x_40 = l_Lean_Elab_Term_isAntiquotSplice(x_14); -if (x_36 == 0) -{ -x_41 = x_16; -goto block_72; -} -else -{ -lean_object* x_73; -lean_dec(x_16); -x_73 = lean_box(0); -x_41 = x_73; -goto block_72; -} -block_72: -{ -lean_object* x_42; -if (x_39 == 0) -{ -x_42 = x_37; -goto block_53; -} -else -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; -x_54 = l_Lean_Syntax_getArgs(x_37); -x_55 = lean_array_get_size(x_54); -lean_dec(x_54); -x_56 = lean_unsigned_to_nat(3u); -x_57 = lean_nat_dec_eq(x_55, x_56); -lean_dec(x_55); -if (x_57 == 0) -{ -x_42 = x_37; -goto block_53; -} -else -{ -lean_object* x_58; lean_object* x_59; uint8_t x_60; -x_58 = l_Lean_Syntax_getArg(x_37, x_13); -x_59 = l_Lean_nullKind___closed__2; -lean_inc(x_58); -x_60 = l_Lean_Syntax_isOfKind(x_58, x_59); -if (x_60 == 0) -{ -lean_dec(x_58); -x_42 = x_37; -goto block_53; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint8_t x_64; -x_61 = l_Lean_Syntax_getArgs(x_58); -x_62 = lean_array_get_size(x_61); -lean_dec(x_61); -x_63 = lean_unsigned_to_nat(2u); -x_64 = lean_nat_dec_eq(x_62, x_63); -lean_dec(x_62); -if (x_64 == 0) -{ -lean_dec(x_58); -x_42 = x_37; -goto block_53; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_65 = lean_unsigned_to_nat(0u); -x_66 = l_Lean_Syntax_getArg(x_58, x_65); -x_67 = l_Lean_Syntax_getArg(x_58, x_13); -lean_dec(x_58); -lean_inc(x_67); -x_68 = l_Lean_Syntax_isOfKind(x_67, x_59); -if (x_68 == 0) -{ -lean_dec(x_67); -lean_dec(x_66); -x_42 = x_37; -goto block_53; -} -else -{ -lean_object* x_69; lean_object* x_70; uint8_t x_71; -x_69 = l_Lean_Syntax_getArgs(x_67); -lean_dec(x_67); -x_70 = lean_array_get_size(x_69); -lean_dec(x_69); -x_71 = lean_nat_dec_eq(x_70, x_65); -lean_dec(x_70); -if (x_71 == 0) -{ -lean_dec(x_66); -x_42 = x_37; -goto block_53; +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_29 = lean_unsigned_to_nat(0u); +x_30 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2(x_8, x_29, x_26); +x_31 = l_Lean_Syntax_getKind(x_14); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_31); +x_33 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_33, 0, x_30); +x_34 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__2; +x_35 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_35, 0, x_32); +lean_ctor_set(x_35, 1, x_33); +lean_ctor_set(x_35, 2, x_34); +return x_35; } else { +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +lean_dec(x_26); +x_36 = lean_unsigned_to_nat(0u); +x_37 = l_Lean_Syntax_getArg(x_14, x_36); +lean_dec(x_14); +x_38 = l_Lean_Syntax_getArg(x_37, x_13); lean_dec(x_37); -x_42 = x_66; -goto block_53; +x_39 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; +x_40 = l_Lean_nameToExprAux___main___closed__4; +x_41 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___boxed), 7, 4); +lean_closure_set(x_41, 0, x_39); +lean_closure_set(x_41, 1, x_40); +lean_closure_set(x_41, 2, x_4); +lean_closure_set(x_41, 3, x_38); +x_42 = lean_box(0); +x_43 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_42); +lean_ctor_set(x_43, 2, x_41); +return x_43; } } } -} -} -} -block_53: +else { -if (x_40 == 0) -{ -uint8_t x_43; -lean_dec(x_14); -lean_inc(x_42); -x_43 = l_Lean_Syntax_isOfKind(x_42, x_4); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; -lean_dec(x_41); -x_44 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__3___boxed), 4, 1); -lean_closure_set(x_44, 0, x_42); +lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; +x_44 = lean_ctor_get(x_16, 0); +lean_inc(x_44); x_45 = lean_box(0); -x_46 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_45); -lean_ctor_set(x_46, 2, x_44); -return x_46; +x_46 = lean_name_eq(x_44, x_45); +lean_dec(x_44); +x_47 = l_Lean_Syntax_getArg(x_14, x_13); +x_48 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +lean_inc(x_47); +x_49 = l_Lean_Syntax_isOfKind(x_47, x_48); +x_50 = l_Lean_Elab_Term_isAntiquotSplice(x_14); +if (x_46 == 0) +{ +x_51 = x_16; +goto block_82; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_box(0); -x_48 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___boxed), 4, 1); -lean_closure_set(x_48, 0, x_42); -x_49 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_49, 0, x_41); -lean_ctor_set(x_49, 1, x_47); -lean_ctor_set(x_49, 2, x_48); -return x_49; +lean_object* x_83; +lean_dec(x_16); +x_83 = lean_box(0); +x_51 = x_83; +goto block_82; } +block_82: +{ +lean_object* x_52; +if (x_49 == 0) +{ +x_52 = x_47; +goto block_63; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_42); -lean_dec(x_41); -x_50 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__4___boxed), 4, 1); -lean_closure_set(x_50, 0, x_14); -x_51 = lean_box(0); -x_52 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_51); -lean_ctor_set(x_52, 2, x_50); -return x_52; -} -} -} -} +lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_64 = l_Lean_Syntax_getArgs(x_47); +x_65 = lean_array_get_size(x_64); +lean_dec(x_64); +x_66 = lean_unsigned_to_nat(3u); +x_67 = lean_nat_dec_eq(x_65, x_66); +lean_dec(x_65); +if (x_67 == 0) +{ +x_52 = x_47; +goto block_63; } else { -lean_object* x_74; +lean_object* x_68; lean_object* x_69; uint8_t x_70; +x_68 = l_Lean_Syntax_getArg(x_47, x_13); +x_69 = l_Lean_nullKind___closed__2; +lean_inc(x_68); +x_70 = l_Lean_Syntax_isOfKind(x_68, x_69); +if (x_70 == 0) +{ +lean_dec(x_68); +x_52 = x_47; +goto block_63; +} +else +{ +lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; +x_71 = l_Lean_Syntax_getArgs(x_68); +x_72 = lean_array_get_size(x_71); +lean_dec(x_71); +x_73 = lean_unsigned_to_nat(2u); +x_74 = lean_nat_dec_eq(x_72, x_73); +lean_dec(x_72); +if (x_74 == 0) +{ +lean_dec(x_68); +x_52 = x_47; +goto block_63; +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; +x_75 = lean_unsigned_to_nat(0u); +x_76 = l_Lean_Syntax_getArg(x_68, x_75); +x_77 = l_Lean_Syntax_getArg(x_68, x_13); +lean_dec(x_68); +lean_inc(x_77); +x_78 = l_Lean_Syntax_isOfKind(x_77, x_69); +if (x_78 == 0) +{ +lean_dec(x_77); +lean_dec(x_76); +x_52 = x_47; +goto block_63; +} +else +{ +lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_79 = l_Lean_Syntax_getArgs(x_77); +lean_dec(x_77); +x_80 = lean_array_get_size(x_79); +lean_dec(x_79); +x_81 = lean_nat_dec_eq(x_80, x_75); +lean_dec(x_80); +if (x_81 == 0) +{ +lean_dec(x_76); +x_52 = x_47; +goto block_63; +} +else +{ +lean_dec(x_47); +x_52 = x_76; +goto block_63; +} +} +} +} +} +} +block_63: +{ +if (x_50 == 0) +{ +uint8_t x_53; lean_dec(x_14); -x_74 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__3; -return x_74; +lean_inc(x_52); +x_53 = l_Lean_Syntax_isOfKind(x_52, x_4); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_51); +x_54 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__3___boxed), 4, 1); +lean_closure_set(x_54, 0, x_52); +x_55 = lean_box(0); +x_56 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_55); +lean_ctor_set(x_56, 2, x_54); +return x_56; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_box(0); +x_58 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___boxed), 4, 1); +lean_closure_set(x_58, 0, x_52); +x_59 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_59, 0, x_51); +lean_ctor_set(x_59, 1, x_57); +lean_ctor_set(x_59, 2, x_58); +return x_59; +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; +lean_dec(x_52); +lean_dec(x_51); +x_60 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__4___boxed), 4, 1); +lean_closure_set(x_60, 0, x_14); +x_61 = lean_box(0); +x_62 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_61); +lean_ctor_set(x_62, 2, x_60); +return x_62; +} +} } } } else { -lean_object* x_75; +lean_object* x_84; +lean_dec(x_14); +x_84 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__4; +return x_84; +} +} +} +else +{ +lean_object* x_85; lean_dec(x_3); -x_75 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__3; -return x_75; +x_85 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__4; +return x_85; } } else { -lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_76 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; -x_77 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__5___boxed), 6, 3); -lean_closure_set(x_77, 0, x_76); -lean_closure_set(x_77, 1, x_4); -lean_closure_set(x_77, 2, x_3); -x_78 = lean_box(0); -x_79 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_79, 0, x_78); -lean_ctor_set(x_79, 1, x_78); -lean_ctor_set(x_79, 2, x_77); -return x_79; +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_86 = l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; +x_87 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__5___boxed), 6, 3); +lean_closure_set(x_87, 0, x_86); +lean_closure_set(x_87, 1, x_4); +lean_closure_set(x_87, 2, x_3); +x_88 = lean_box(0); +x_89 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_88); +lean_ctor_set(x_89, 2, x_87); +return x_89; } } } @@ -6573,11 +6606,20 @@ lean_dec(x_2); return x_4; } } -lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2(x_1, x_2, x_3); +lean_dec(x_2); +return x_4; +} +} +lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -7650,7 +7692,7 @@ lean_object* _init_l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__5; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14; x_2 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8___closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -7660,7 +7702,7 @@ lean_object* _init_l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9_ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; x_2 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8___closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -7737,9 +7779,9 @@ x_23 = l_Lean_Parser_Term_id___elambda__1___closed__2; x_24 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_22); -x_25 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_25 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_26 = lean_name_mk_numeral(x_25, x_10); -x_27 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_27 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_28 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_28, 0, x_12); lean_ctor_set(x_28, 1, x_27); @@ -7831,9 +7873,9 @@ x_68 = l_Lean_Parser_Term_id___elambda__1___closed__2; x_69 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_67); -x_70 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_70 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_71 = lean_name_mk_numeral(x_70, x_55); -x_72 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_72 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_73 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_73, 0, x_57); lean_ctor_set(x_73, 1, x_72); @@ -8328,7 +8370,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___mai _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__5; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__14; x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -8338,7 +8380,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___mai _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__7; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -8384,28 +8426,31 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___mai _start: { lean_object* x_1; -x_1 = lean_mk_string("then"); +x_1 = lean_mk_string("coe"); return x_1; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__13; -x_3 = lean_alloc_ctor(2, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__13; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("else"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__13; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16() { @@ -8413,14 +8458,76 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__13; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("then"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__21() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("else"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__21; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__23() { _start: { lean_object* x_1; lean_object* x_2; @@ -8429,27 +8536,27 @@ x_2 = lean_mk_empty_array_with_capacity(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__23; x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__12; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; x_2 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; x_3 = lean_array_push(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__26() { _start: { lean_object* x_1; @@ -8457,19 +8564,19 @@ x_1 = lean_mk_string("&&"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__21() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__27() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__26; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__28() { _start: { lean_object* x_1; @@ -8477,22 +8584,22 @@ x_1 = lean_mk_string("Array.size"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__23() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__28; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__30() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__28; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__23; +x_3 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -8500,25 +8607,7 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("Array"); -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__26() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__27() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__31() { _start: { lean_object* x_1; @@ -8526,59 +8615,13 @@ x_1 = lean_mk_string("size"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__28() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__26; -x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__27; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__28; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__30() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__31() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__4; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__32() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__5; x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__31; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); +x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } @@ -8588,7 +8631,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__32; -x_3 = lean_alloc_ctor(1, 2, 0); +x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); return x_3; @@ -8597,17 +8640,63 @@ return x_3; lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__34() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("=="); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__33; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__35() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__16; +x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__4; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__34; +x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__35; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__37() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36; +x_3 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_3, 0, x_2); +lean_ctor_set(x_3, 1, x_1); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("=="); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__39() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38; x_3 = lean_alloc_ctor(2, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -8791,9 +8880,9 @@ if (x_53 == 0) lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; 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; x_54 = lean_ctor_get(x_52, 0); x_55 = lean_box(0); -x_56 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_56 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_57 = lean_name_mk_numeral(x_56, x_54); -x_58 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_58 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_59 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_59, 0, x_55); lean_ctor_set(x_59, 1, x_58); @@ -8804,16 +8893,16 @@ x_61 = lean_array_push(x_60, x_59); x_62 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; x_63 = lean_array_push(x_61, x_62); x_64 = lean_array_push(x_63, x_62); -x_65 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_65 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_66 = lean_array_push(x_64, x_65); x_67 = lean_array_push(x_66, x_17); x_68 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; x_69 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_69, 0, x_68); lean_ctor_set(x_69, 1, x_67); -x_70 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; +x_70 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_71 = lean_array_push(x_70, x_69); -x_72 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_72 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_73 = lean_array_push(x_71, x_72); x_74 = lean_array_push(x_73, x_50); x_75 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -8832,9 +8921,9 @@ lean_inc(x_78); lean_inc(x_77); lean_dec(x_52); x_79 = lean_box(0); -x_80 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_80 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_81 = lean_name_mk_numeral(x_80, x_77); -x_82 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_82 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_83 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_83, 0, x_79); lean_ctor_set(x_83, 1, x_82); @@ -8845,16 +8934,16 @@ x_85 = lean_array_push(x_84, x_83); x_86 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; x_87 = lean_array_push(x_85, x_86); x_88 = lean_array_push(x_87, x_86); -x_89 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_89 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_90 = lean_array_push(x_88, x_89); x_91 = lean_array_push(x_90, x_17); x_92 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; x_93 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_93, 0, x_92); lean_ctor_set(x_93, 1, x_91); -x_94 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; +x_94 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_95 = lean_array_push(x_94, x_93); -x_96 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_96 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_97 = lean_array_push(x_95, x_96); x_98 = lean_array_push(x_97, x_50); x_99 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -8934,9 +9023,9 @@ x_127 = l_Lean_Parser_Term_id___elambda__1___closed__2; x_128 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_128, 0, x_127); lean_ctor_set(x_128, 1, x_126); -x_129 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; +x_129 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; x_130 = lean_name_mk_numeral(x_129, x_115); -x_131 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; +x_131 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; x_132 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_132, 0, x_117); lean_ctor_set(x_132, 1, x_131); @@ -8964,8 +9053,9 @@ lean_dec(x_4); x_145 = !lean_is_exclusive(x_144); if (x_145 == 0) { -lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; +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; x_146 = lean_ctor_get(x_144, 0); +lean_inc(x_146); x_147 = lean_name_mk_numeral(x_129, x_146); x_148 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_148, 0, x_117); @@ -8976,306 +9066,365 @@ x_149 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; x_150 = lean_array_push(x_149, x_148); x_151 = lean_array_push(x_150, x_125); x_152 = lean_array_push(x_151, x_125); -x_153 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_153 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_154 = lean_array_push(x_152, x_153); x_155 = lean_array_push(x_154, x_17); x_156 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; x_157 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_157, 0, x_156); lean_ctor_set(x_157, 1, x_155); -x_158 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19; -x_159 = lean_array_push(x_158, x_143); -x_160 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_161 = lean_array_push(x_159, x_160); -x_162 = lean_array_push(x_161, x_102); -x_163 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; -x_164 = lean_array_push(x_162, x_163); -x_165 = lean_array_push(x_164, x_112); -x_166 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_166); -lean_ctor_set(x_167, 1, x_165); -x_168 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_169 = lean_array_push(x_168, x_157); -x_170 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_171 = lean_array_push(x_169, x_170); -x_172 = lean_array_push(x_171, x_167); -x_173 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_174 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_174, 0, x_173); -lean_ctor_set(x_174, 1, x_172); -lean_ctor_set(x_144, 0, x_174); +x_158 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; +x_159 = lean_name_mk_numeral(x_158, x_146); +x_160 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_161 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_162 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_162, 0, x_117); +lean_ctor_set(x_162, 1, x_160); +lean_ctor_set(x_162, 2, x_159); +lean_ctor_set(x_162, 3, x_161); +x_163 = lean_array_push(x_123, x_162); +x_164 = lean_array_push(x_163, x_125); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_127); +lean_ctor_set(x_165, 1, x_164); +x_166 = lean_array_push(x_123, x_165); +x_167 = lean_array_push(x_166, x_143); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_138); +lean_ctor_set(x_168, 1, x_167); +x_169 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25; +x_170 = lean_array_push(x_169, x_168); +x_171 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_172 = lean_array_push(x_170, x_171); +x_173 = lean_array_push(x_172, x_102); +x_174 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_175 = lean_array_push(x_173, x_174); +x_176 = lean_array_push(x_175, x_112); +x_177 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_178 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_176); +x_179 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_180 = lean_array_push(x_179, x_157); +x_181 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_182 = lean_array_push(x_180, x_181); +x_183 = lean_array_push(x_182, x_178); +x_184 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_185 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_185, 0, x_184); +lean_ctor_set(x_185, 1, x_183); +lean_ctor_set(x_144, 0, x_185); return x_144; } else { -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; 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; -x_175 = lean_ctor_get(x_144, 0); -x_176 = lean_ctor_get(x_144, 1); -lean_inc(x_176); -lean_inc(x_175); +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; +x_186 = lean_ctor_get(x_144, 0); +x_187 = lean_ctor_get(x_144, 1); +lean_inc(x_187); +lean_inc(x_186); lean_dec(x_144); -x_177 = lean_name_mk_numeral(x_129, x_175); -x_178 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_178, 0, x_117); -lean_ctor_set(x_178, 1, x_131); -lean_ctor_set(x_178, 2, x_177); -lean_ctor_set(x_178, 3, x_27); -x_179 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; -x_180 = lean_array_push(x_179, x_178); -x_181 = lean_array_push(x_180, x_125); -x_182 = lean_array_push(x_181, x_125); -x_183 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; -x_184 = lean_array_push(x_182, x_183); -x_185 = lean_array_push(x_184, x_17); -x_186 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_186); -lean_ctor_set(x_187, 1, x_185); -x_188 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19; -x_189 = lean_array_push(x_188, x_143); -x_190 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_191 = lean_array_push(x_189, x_190); -x_192 = lean_array_push(x_191, x_102); -x_193 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; -x_194 = lean_array_push(x_192, x_193); -x_195 = lean_array_push(x_194, x_112); -x_196 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_197 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_195); -x_198 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_199 = lean_array_push(x_198, x_187); -x_200 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_201 = lean_array_push(x_199, x_200); -x_202 = lean_array_push(x_201, x_197); -x_203 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_202); -x_205 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_205, 0, x_204); -lean_ctor_set(x_205, 1, x_176); -return x_205; +lean_inc(x_186); +x_188 = lean_name_mk_numeral(x_129, x_186); +x_189 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_189, 0, x_117); +lean_ctor_set(x_189, 1, x_131); +lean_ctor_set(x_189, 2, x_188); +lean_ctor_set(x_189, 3, x_27); +x_190 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_191 = lean_array_push(x_190, x_189); +x_192 = lean_array_push(x_191, x_125); +x_193 = lean_array_push(x_192, x_125); +x_194 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_195 = lean_array_push(x_193, x_194); +x_196 = lean_array_push(x_195, x_17); +x_197 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_196); +x_199 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; +x_200 = lean_name_mk_numeral(x_199, x_186); +x_201 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_202 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_203 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_203, 0, x_117); +lean_ctor_set(x_203, 1, x_201); +lean_ctor_set(x_203, 2, x_200); +lean_ctor_set(x_203, 3, x_202); +x_204 = lean_array_push(x_123, x_203); +x_205 = lean_array_push(x_204, x_125); +x_206 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_206, 0, x_127); +lean_ctor_set(x_206, 1, x_205); +x_207 = lean_array_push(x_123, x_206); +x_208 = lean_array_push(x_207, x_143); +x_209 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_209, 0, x_138); +lean_ctor_set(x_209, 1, x_208); +x_210 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25; +x_211 = lean_array_push(x_210, x_209); +x_212 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_213 = lean_array_push(x_211, x_212); +x_214 = lean_array_push(x_213, x_102); +x_215 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_216 = lean_array_push(x_214, x_215); +x_217 = lean_array_push(x_216, x_112); +x_218 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_219 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_219, 0, x_218); +lean_ctor_set(x_219, 1, x_217); +x_220 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_221 = lean_array_push(x_220, x_198); +x_222 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_223 = lean_array_push(x_221, x_222); +x_224 = lean_array_push(x_223, x_219); +x_225 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_226 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_224); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_226); +lean_ctor_set(x_227, 1, x_187); +return x_227; } } else { -uint8_t x_206; +uint8_t x_228; lean_dec(x_104); lean_dec(x_102); lean_dec(x_17); lean_dec(x_4); -x_206 = !lean_is_exclusive(x_111); -if (x_206 == 0) +x_228 = !lean_is_exclusive(x_111); +if (x_228 == 0) { return x_111; } else { -lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_207 = lean_ctor_get(x_111, 0); -x_208 = lean_ctor_get(x_111, 1); -lean_inc(x_208); -lean_inc(x_207); +lean_object* x_229; lean_object* x_230; lean_object* x_231; +x_229 = lean_ctor_get(x_111, 0); +x_230 = lean_ctor_get(x_111, 1); +lean_inc(x_230); +lean_inc(x_229); lean_dec(x_111); -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_207); -lean_ctor_set(x_209, 1, x_208); -return x_209; +x_231 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_231, 0, x_229); +lean_ctor_set(x_231, 1, x_230); +return x_231; } } } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_210 = lean_ctor_get(x_103, 0); -x_211 = lean_ctor_get(x_103, 1); -x_212 = lean_ctor_get(x_103, 2); -x_213 = lean_ctor_get(x_103, 3); -x_214 = lean_ctor_get(x_103, 4); -x_215 = lean_ctor_get(x_103, 5); -lean_inc(x_215); -lean_inc(x_214); -lean_inc(x_213); -lean_inc(x_212); -lean_inc(x_211); -lean_inc(x_210); +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; +x_232 = lean_ctor_get(x_103, 0); +x_233 = lean_ctor_get(x_103, 1); +x_234 = lean_ctor_get(x_103, 2); +x_235 = lean_ctor_get(x_103, 3); +x_236 = lean_ctor_get(x_103, 4); +x_237 = lean_ctor_get(x_103, 5); +lean_inc(x_237); +lean_inc(x_236); +lean_inc(x_235); +lean_inc(x_234); +lean_inc(x_233); +lean_inc(x_232); lean_dec(x_103); -x_216 = lean_nat_add(x_215, x_35); -x_217 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_217, 0, x_210); -lean_ctor_set(x_217, 1, x_211); -lean_ctor_set(x_217, 2, x_212); -lean_ctor_set(x_217, 3, x_213); -lean_ctor_set(x_217, 4, x_214); -lean_ctor_set(x_217, 5, x_216); -x_218 = lean_alloc_ctor(0, 10, 1); -lean_ctor_set(x_218, 0, x_37); -lean_ctor_set(x_218, 1, x_38); -lean_ctor_set(x_218, 2, x_39); -lean_ctor_set(x_218, 3, x_40); -lean_ctor_set(x_218, 4, x_41); -lean_ctor_set(x_218, 5, x_42); -lean_ctor_set(x_218, 6, x_43); -lean_ctor_set(x_218, 7, x_44); -lean_ctor_set(x_218, 8, x_45); -lean_ctor_set(x_218, 9, x_215); -lean_ctor_set_uint8(x_218, sizeof(void*)*10, x_46); -x_219 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_106, x_218, x_217); -if (lean_obj_tag(x_219) == 0) +x_238 = lean_nat_add(x_237, x_35); +x_239 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_239, 0, x_232); +lean_ctor_set(x_239, 1, x_233); +lean_ctor_set(x_239, 2, x_234); +lean_ctor_set(x_239, 3, x_235); +lean_ctor_set(x_239, 4, x_236); +lean_ctor_set(x_239, 5, x_238); +x_240 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_240, 0, x_37); +lean_ctor_set(x_240, 1, x_38); +lean_ctor_set(x_240, 2, x_39); +lean_ctor_set(x_240, 3, x_40); +lean_ctor_set(x_240, 4, x_41); +lean_ctor_set(x_240, 5, x_42); +lean_ctor_set(x_240, 6, x_43); +lean_ctor_set(x_240, 7, x_44); +lean_ctor_set(x_240, 8, x_45); +lean_ctor_set(x_240, 9, x_237); +lean_ctor_set_uint8(x_240, sizeof(void*)*10, x_46); +x_241 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_106, x_240, x_239); +if (lean_obj_tag(x_241) == 0) { -lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; -x_220 = lean_ctor_get(x_219, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_219, 1); -lean_inc(x_221); -lean_dec(x_219); -x_222 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_221); -x_223 = lean_ctor_get(x_222, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_222, 1); -lean_inc(x_224); -lean_dec(x_222); -x_225 = lean_box(0); -x_226 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; -lean_inc(x_223); -x_227 = lean_name_mk_numeral(x_226, x_223); -x_228 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -x_229 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; -x_230 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_230, 0, x_225); -lean_ctor_set(x_230, 1, x_228); -lean_ctor_set(x_230, 2, x_227); -lean_ctor_set(x_230, 3, x_229); -x_231 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_232 = lean_array_push(x_231, x_230); -x_233 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_234 = lean_array_push(x_232, x_233); -x_235 = l_Lean_Parser_Term_id___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 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; -x_238 = lean_name_mk_numeral(x_237, x_223); -x_239 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; -x_240 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_240, 0, x_225); -lean_ctor_set(x_240, 1, x_239); -lean_ctor_set(x_240, 2, x_238); -lean_ctor_set(x_240, 3, x_27); -x_241 = lean_array_push(x_231, x_240); -x_242 = lean_array_push(x_241, x_233); -x_243 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_243, 0, x_235); -lean_ctor_set(x_243, 1, x_242); -x_244 = lean_array_push(x_231, x_236); -x_245 = lean_array_push(x_244, x_243); -x_246 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_247 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_247, 0, x_246); -lean_ctor_set(x_247, 1, x_245); -x_248 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_104); -x_249 = lean_array_push(x_231, x_247); -x_250 = lean_array_push(x_249, x_248); -x_251 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_251, 0, x_246); -lean_ctor_set(x_251, 1, x_250); -x_252 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_224); +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; +x_242 = lean_ctor_get(x_241, 0); +lean_inc(x_242); +x_243 = lean_ctor_get(x_241, 1); +lean_inc(x_243); +lean_dec(x_241); +x_244 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_243); +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 = lean_box(0); +x_248 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; +lean_inc(x_245); +x_249 = lean_name_mk_numeral(x_248, x_245); +x_250 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; +x_251 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; +x_252 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_252, 0, x_247); +lean_ctor_set(x_252, 1, x_250); +lean_ctor_set(x_252, 2, x_249); +lean_ctor_set(x_252, 3, x_251); +x_253 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_254 = lean_array_push(x_253, x_252); +x_255 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_256 = lean_array_push(x_254, x_255); +x_257 = l_Lean_Parser_Term_id___elambda__1___closed__2; +x_258 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_258, 0, x_257); +lean_ctor_set(x_258, 1, x_256); +x_259 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_260 = lean_name_mk_numeral(x_259, x_245); +x_261 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; +x_262 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_262, 0, x_247); +lean_ctor_set(x_262, 1, x_261); +lean_ctor_set(x_262, 2, x_260); +lean_ctor_set(x_262, 3, x_27); +x_263 = lean_array_push(x_253, x_262); +x_264 = lean_array_push(x_263, x_255); +x_265 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_265, 0, x_257); +lean_ctor_set(x_265, 1, x_264); +x_266 = lean_array_push(x_253, x_258); +x_267 = lean_array_push(x_266, x_265); +x_268 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_269 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_267); +x_270 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_104); +x_271 = lean_array_push(x_253, x_269); +x_272 = lean_array_push(x_271, x_270); +x_273 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_273, 0, x_268); +lean_ctor_set(x_273, 1, x_272); +x_274 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_246); lean_dec(x_4); -x_253 = lean_ctor_get(x_252, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_252, 1); -lean_inc(x_254); -if (lean_is_exclusive(x_252)) { - lean_ctor_release(x_252, 0); - lean_ctor_release(x_252, 1); - x_255 = x_252; +x_275 = lean_ctor_get(x_274, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_274, 1); +lean_inc(x_276); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + lean_ctor_release(x_274, 1); + x_277 = x_274; } else { - lean_dec_ref(x_252); - x_255 = lean_box(0); + lean_dec_ref(x_274); + x_277 = lean_box(0); } -x_256 = lean_name_mk_numeral(x_237, x_253); -x_257 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_257, 0, x_225); -lean_ctor_set(x_257, 1, x_239); -lean_ctor_set(x_257, 2, x_256); -lean_ctor_set(x_257, 3, x_27); -x_258 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; -x_259 = lean_array_push(x_258, x_257); -x_260 = lean_array_push(x_259, x_233); -x_261 = lean_array_push(x_260, x_233); -x_262 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; -x_263 = lean_array_push(x_261, x_262); -x_264 = lean_array_push(x_263, x_17); -x_265 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_266 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_264); -x_267 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19; -x_268 = lean_array_push(x_267, x_251); -x_269 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_270 = lean_array_push(x_268, x_269); -x_271 = lean_array_push(x_270, x_102); -x_272 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; -x_273 = lean_array_push(x_271, x_272); -x_274 = lean_array_push(x_273, x_220); -x_275 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_276 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_276, 0, x_275); -lean_ctor_set(x_276, 1, x_274); -x_277 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_278 = lean_array_push(x_277, x_266); -x_279 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_280 = lean_array_push(x_278, x_279); -x_281 = lean_array_push(x_280, x_276); -x_282 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_283 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_283, 0, x_282); -lean_ctor_set(x_283, 1, x_281); -if (lean_is_scalar(x_255)) { - x_284 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_275); +x_278 = lean_name_mk_numeral(x_259, x_275); +x_279 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_279, 0, x_247); +lean_ctor_set(x_279, 1, x_261); +lean_ctor_set(x_279, 2, x_278); +lean_ctor_set(x_279, 3, x_27); +x_280 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_281 = lean_array_push(x_280, x_279); +x_282 = lean_array_push(x_281, x_255); +x_283 = lean_array_push(x_282, x_255); +x_284 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_285 = lean_array_push(x_283, x_284); +x_286 = lean_array_push(x_285, x_17); +x_287 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_288 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_288, 0, x_287); +lean_ctor_set(x_288, 1, x_286); +x_289 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; +x_290 = lean_name_mk_numeral(x_289, x_275); +x_291 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_292 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_293 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_293, 0, x_247); +lean_ctor_set(x_293, 1, x_291); +lean_ctor_set(x_293, 2, x_290); +lean_ctor_set(x_293, 3, x_292); +x_294 = lean_array_push(x_253, x_293); +x_295 = lean_array_push(x_294, x_255); +x_296 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_296, 0, x_257); +lean_ctor_set(x_296, 1, x_295); +x_297 = lean_array_push(x_253, x_296); +x_298 = lean_array_push(x_297, x_273); +x_299 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_299, 0, x_268); +lean_ctor_set(x_299, 1, x_298); +x_300 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25; +x_301 = lean_array_push(x_300, x_299); +x_302 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_303 = lean_array_push(x_301, x_302); +x_304 = lean_array_push(x_303, x_102); +x_305 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_306 = lean_array_push(x_304, x_305); +x_307 = lean_array_push(x_306, x_242); +x_308 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_309 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_309, 0, x_308); +lean_ctor_set(x_309, 1, x_307); +x_310 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_311 = lean_array_push(x_310, x_288); +x_312 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_313 = lean_array_push(x_311, x_312); +x_314 = lean_array_push(x_313, x_309); +x_315 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_316 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_316, 0, x_315); +lean_ctor_set(x_316, 1, x_314); +if (lean_is_scalar(x_277)) { + x_317 = lean_alloc_ctor(0, 2, 0); } else { - x_284 = x_255; + x_317 = x_277; } -lean_ctor_set(x_284, 0, x_283); -lean_ctor_set(x_284, 1, x_254); -return x_284; +lean_ctor_set(x_317, 0, x_316); +lean_ctor_set(x_317, 1, x_276); +return x_317; } else { -lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; +lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_dec(x_104); lean_dec(x_102); lean_dec(x_17); lean_dec(x_4); -x_285 = lean_ctor_get(x_219, 0); -lean_inc(x_285); -x_286 = lean_ctor_get(x_219, 1); -lean_inc(x_286); -if (lean_is_exclusive(x_219)) { - lean_ctor_release(x_219, 0); - lean_ctor_release(x_219, 1); - x_287 = x_219; +x_318 = lean_ctor_get(x_241, 0); +lean_inc(x_318); +x_319 = lean_ctor_get(x_241, 1); +lean_inc(x_319); +if (lean_is_exclusive(x_241)) { + lean_ctor_release(x_241, 0); + lean_ctor_release(x_241, 1); + x_320 = x_241; } else { - lean_dec_ref(x_219); - x_287 = lean_box(0); + lean_dec_ref(x_241); + x_320 = lean_box(0); } -if (lean_is_scalar(x_287)) { - x_288 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_320)) { + x_321 = lean_alloc_ctor(1, 2, 0); } else { - x_288 = x_287; + x_321 = x_320; } -lean_ctor_set(x_288, 0, x_285); -lean_ctor_set(x_288, 1, x_286); -return x_288; +lean_ctor_set(x_321, 0, x_318); +lean_ctor_set(x_321, 1, x_319); +return x_321; } } } } else { -uint8_t x_289; +uint8_t x_322; lean_dec(x_45); lean_dec(x_44); lean_dec(x_43); @@ -9291,428 +9440,448 @@ lean_dec(x_17); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_289 = !lean_is_exclusive(x_48); -if (x_289 == 0) +x_322 = !lean_is_exclusive(x_48); +if (x_322 == 0) { return x_48; } else { -lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_290 = lean_ctor_get(x_48, 0); -x_291 = lean_ctor_get(x_48, 1); -lean_inc(x_291); -lean_inc(x_290); +lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_323 = lean_ctor_get(x_48, 0); +x_324 = lean_ctor_get(x_48, 1); +lean_inc(x_324); +lean_inc(x_323); lean_dec(x_48); -x_292 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_292, 0, x_290); -lean_ctor_set(x_292, 1, x_291); -return x_292; +x_325 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_325, 0, x_323); +lean_ctor_set(x_325, 1, x_324); +return x_325; } } } else { -lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; 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; uint8_t x_311; lean_object* x_312; lean_object* x_313; -x_293 = lean_ctor_get(x_31, 0); -x_294 = lean_ctor_get(x_31, 1); -x_295 = lean_ctor_get(x_31, 2); -x_296 = lean_ctor_get(x_31, 3); -x_297 = lean_ctor_get(x_31, 4); -x_298 = lean_ctor_get(x_31, 5); -lean_inc(x_298); -lean_inc(x_297); -lean_inc(x_296); -lean_inc(x_295); -lean_inc(x_294); -lean_inc(x_293); +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; uint8_t x_344; lean_object* x_345; lean_object* x_346; +x_326 = lean_ctor_get(x_31, 0); +x_327 = lean_ctor_get(x_31, 1); +x_328 = lean_ctor_get(x_31, 2); +x_329 = lean_ctor_get(x_31, 3); +x_330 = lean_ctor_get(x_31, 4); +x_331 = lean_ctor_get(x_31, 5); +lean_inc(x_331); +lean_inc(x_330); +lean_inc(x_329); +lean_inc(x_328); +lean_inc(x_327); +lean_inc(x_326); lean_dec(x_31); -x_299 = lean_unsigned_to_nat(1u); -x_300 = lean_nat_add(x_298, x_299); -x_301 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_301, 0, x_293); -lean_ctor_set(x_301, 1, x_294); -lean_ctor_set(x_301, 2, x_295); -lean_ctor_set(x_301, 3, x_296); -lean_ctor_set(x_301, 4, x_297); -lean_ctor_set(x_301, 5, x_300); -x_302 = lean_ctor_get(x_4, 0); -lean_inc(x_302); -x_303 = lean_ctor_get(x_4, 1); -lean_inc(x_303); -x_304 = lean_ctor_get(x_4, 2); -lean_inc(x_304); -x_305 = lean_ctor_get(x_4, 3); -lean_inc(x_305); -x_306 = lean_ctor_get(x_4, 4); -lean_inc(x_306); -x_307 = lean_ctor_get(x_4, 5); -lean_inc(x_307); -x_308 = lean_ctor_get(x_4, 6); -lean_inc(x_308); -x_309 = lean_ctor_get(x_4, 7); -lean_inc(x_309); -x_310 = lean_ctor_get(x_4, 8); -lean_inc(x_310); -x_311 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -lean_inc(x_310); -lean_inc(x_309); -lean_inc(x_308); -lean_inc(x_307); -lean_inc(x_306); -lean_inc(x_305); -lean_inc(x_304); -lean_inc(x_303); -lean_inc(x_302); -x_312 = lean_alloc_ctor(0, 10, 1); -lean_ctor_set(x_312, 0, x_302); -lean_ctor_set(x_312, 1, x_303); -lean_ctor_set(x_312, 2, x_304); -lean_ctor_set(x_312, 3, x_305); -lean_ctor_set(x_312, 4, x_306); -lean_ctor_set(x_312, 5, x_307); -lean_ctor_set(x_312, 6, x_308); -lean_ctor_set(x_312, 7, x_309); -lean_ctor_set(x_312, 8, x_310); -lean_ctor_set(x_312, 9, x_298); -lean_ctor_set_uint8(x_312, sizeof(void*)*10, x_311); +x_332 = lean_unsigned_to_nat(1u); +x_333 = lean_nat_add(x_331, x_332); +x_334 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_334, 0, x_326); +lean_ctor_set(x_334, 1, x_327); +lean_ctor_set(x_334, 2, x_328); +lean_ctor_set(x_334, 3, x_329); +lean_ctor_set(x_334, 4, x_330); +lean_ctor_set(x_334, 5, x_333); +x_335 = lean_ctor_get(x_4, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_4, 1); +lean_inc(x_336); +x_337 = lean_ctor_get(x_4, 2); +lean_inc(x_337); +x_338 = lean_ctor_get(x_4, 3); +lean_inc(x_338); +x_339 = lean_ctor_get(x_4, 4); +lean_inc(x_339); +x_340 = lean_ctor_get(x_4, 5); +lean_inc(x_340); +x_341 = lean_ctor_get(x_4, 6); +lean_inc(x_341); +x_342 = lean_ctor_get(x_4, 7); +lean_inc(x_342); +x_343 = lean_ctor_get(x_4, 8); +lean_inc(x_343); +x_344 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +lean_inc(x_343); +lean_inc(x_342); +lean_inc(x_341); +lean_inc(x_340); +lean_inc(x_339); +lean_inc(x_338); +lean_inc(x_337); +lean_inc(x_336); +lean_inc(x_335); +x_345 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_345, 0, x_335); +lean_ctor_set(x_345, 1, x_336); +lean_ctor_set(x_345, 2, x_337); +lean_ctor_set(x_345, 3, x_338); +lean_ctor_set(x_345, 4, x_339); +lean_ctor_set(x_345, 5, x_340); +lean_ctor_set(x_345, 6, x_341); +lean_ctor_set(x_345, 7, x_342); +lean_ctor_set(x_345, 8, x_343); +lean_ctor_set(x_345, 9, x_331); +lean_ctor_set_uint8(x_345, sizeof(void*)*10, x_344); lean_inc(x_1); -x_313 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_32, x_30, x_312, x_301); -if (lean_obj_tag(x_313) == 0) +x_346 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_32, x_30, x_345, x_334); +if (lean_obj_tag(x_346) == 0) { -lean_object* x_314; -x_314 = lean_ctor_get(x_25, 0); -lean_inc(x_314); -if (lean_obj_tag(x_314) == 0) +lean_object* x_347; +x_347 = lean_ctor_get(x_25, 0); +lean_inc(x_347); +if (lean_obj_tag(x_347) == 0) { -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_dec(x_310); -lean_dec(x_309); -lean_dec(x_308); -lean_dec(x_307); -lean_dec(x_306); -lean_dec(x_305); -lean_dec(x_304); -lean_dec(x_303); -lean_dec(x_302); +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_dec(x_343); +lean_dec(x_342); +lean_dec(x_341); +lean_dec(x_340); +lean_dec(x_339); +lean_dec(x_338); +lean_dec(x_337); +lean_dec(x_336); +lean_dec(x_335); lean_dec(x_25); lean_dec(x_21); lean_dec(x_2); lean_dec(x_1); -x_315 = lean_ctor_get(x_313, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_313, 1); -lean_inc(x_316); -lean_dec(x_313); -x_317 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_316); +x_348 = lean_ctor_get(x_346, 0); +lean_inc(x_348); +x_349 = lean_ctor_get(x_346, 1); +lean_inc(x_349); +lean_dec(x_346); +x_350 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_349); lean_dec(x_4); -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_351 = lean_ctor_get(x_350, 0); +lean_inc(x_351); +x_352 = lean_ctor_get(x_350, 1); +lean_inc(x_352); +if (lean_is_exclusive(x_350)) { + lean_ctor_release(x_350, 0); + lean_ctor_release(x_350, 1); + x_353 = x_350; } else { - lean_dec_ref(x_317); - x_320 = lean_box(0); + lean_dec_ref(x_350); + x_353 = lean_box(0); } -x_321 = lean_box(0); -x_322 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; -x_323 = lean_name_mk_numeral(x_322, x_318); -x_324 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; -x_325 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_325, 0, x_321); -lean_ctor_set(x_325, 1, x_324); -lean_ctor_set(x_325, 2, x_323); -lean_ctor_set(x_325, 3, x_27); -x_326 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; -x_327 = lean_array_push(x_326, x_325); -x_328 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_329 = lean_array_push(x_327, x_328); -x_330 = lean_array_push(x_329, x_328); -x_331 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; -x_332 = lean_array_push(x_330, x_331); -x_333 = lean_array_push(x_332, x_17); -x_334 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_335 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_335, 0, x_334); -lean_ctor_set(x_335, 1, x_333); -x_336 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_337 = lean_array_push(x_336, x_335); -x_338 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_339 = lean_array_push(x_337, x_338); -x_340 = lean_array_push(x_339, x_315); -x_341 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_342 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_342, 0, x_341); -lean_ctor_set(x_342, 1, x_340); -if (lean_is_scalar(x_320)) { - x_343 = lean_alloc_ctor(0, 2, 0); +x_354 = lean_box(0); +x_355 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_356 = lean_name_mk_numeral(x_355, x_351); +x_357 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; +x_358 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_358, 0, x_354); +lean_ctor_set(x_358, 1, x_357); +lean_ctor_set(x_358, 2, x_356); +lean_ctor_set(x_358, 3, x_27); +x_359 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_360 = lean_array_push(x_359, x_358); +x_361 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_362 = lean_array_push(x_360, x_361); +x_363 = lean_array_push(x_362, x_361); +x_364 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_365 = lean_array_push(x_363, x_364); +x_366 = lean_array_push(x_365, x_17); +x_367 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_368 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_368, 0, x_367); +lean_ctor_set(x_368, 1, x_366); +x_369 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_370 = lean_array_push(x_369, x_368); +x_371 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_372 = lean_array_push(x_370, x_371); +x_373 = lean_array_push(x_372, x_348); +x_374 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_375 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_375, 0, x_374); +lean_ctor_set(x_375, 1, x_373); +if (lean_is_scalar(x_353)) { + x_376 = lean_alloc_ctor(0, 2, 0); } else { - x_343 = x_320; + x_376 = x_353; } -lean_ctor_set(x_343, 0, x_342); -lean_ctor_set(x_343, 1, x_319); -return x_343; +lean_ctor_set(x_376, 0, x_375); +lean_ctor_set(x_376, 1, x_352); +return x_376; } else { -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; -x_344 = lean_ctor_get(x_313, 0); -lean_inc(x_344); -x_345 = lean_ctor_get(x_313, 1); -lean_inc(x_345); -lean_dec(x_313); -x_346 = lean_ctor_get(x_314, 0); -lean_inc(x_346); -lean_dec(x_314); -x_347 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__6(x_25, x_21, x_27); +lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; +x_377 = lean_ctor_get(x_346, 0); +lean_inc(x_377); +x_378 = lean_ctor_get(x_346, 1); +lean_inc(x_378); +lean_dec(x_346); +x_379 = lean_ctor_get(x_347, 0); +lean_inc(x_379); +lean_dec(x_347); +x_380 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__6(x_25, x_21, x_27); lean_dec(x_25); -x_348 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_347); -x_349 = lean_ctor_get(x_345, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_345, 1); -lean_inc(x_350); -x_351 = lean_ctor_get(x_345, 2); -lean_inc(x_351); -x_352 = lean_ctor_get(x_345, 3); -lean_inc(x_352); -x_353 = lean_ctor_get(x_345, 4); -lean_inc(x_353); -x_354 = lean_ctor_get(x_345, 5); -lean_inc(x_354); -if (lean_is_exclusive(x_345)) { - lean_ctor_release(x_345, 0); - lean_ctor_release(x_345, 1); - lean_ctor_release(x_345, 2); - lean_ctor_release(x_345, 3); - lean_ctor_release(x_345, 4); - lean_ctor_release(x_345, 5); - x_355 = x_345; +x_381 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_380); +x_382 = lean_ctor_get(x_378, 0); +lean_inc(x_382); +x_383 = lean_ctor_get(x_378, 1); +lean_inc(x_383); +x_384 = lean_ctor_get(x_378, 2); +lean_inc(x_384); +x_385 = lean_ctor_get(x_378, 3); +lean_inc(x_385); +x_386 = lean_ctor_get(x_378, 4); +lean_inc(x_386); +x_387 = lean_ctor_get(x_378, 5); +lean_inc(x_387); +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + lean_ctor_release(x_378, 2); + lean_ctor_release(x_378, 3); + lean_ctor_release(x_378, 4); + lean_ctor_release(x_378, 5); + x_388 = x_378; } else { - lean_dec_ref(x_345); - x_355 = lean_box(0); + lean_dec_ref(x_378); + x_388 = lean_box(0); } -x_356 = lean_nat_add(x_354, x_299); -if (lean_is_scalar(x_355)) { - x_357 = lean_alloc_ctor(0, 6, 0); +x_389 = lean_nat_add(x_387, x_332); +if (lean_is_scalar(x_388)) { + x_390 = lean_alloc_ctor(0, 6, 0); } else { - x_357 = x_355; + x_390 = x_388; } -lean_ctor_set(x_357, 0, x_349); -lean_ctor_set(x_357, 1, x_350); -lean_ctor_set(x_357, 2, x_351); -lean_ctor_set(x_357, 3, x_352); -lean_ctor_set(x_357, 4, x_353); -lean_ctor_set(x_357, 5, x_356); -x_358 = lean_alloc_ctor(0, 10, 1); -lean_ctor_set(x_358, 0, x_302); -lean_ctor_set(x_358, 1, x_303); -lean_ctor_set(x_358, 2, x_304); -lean_ctor_set(x_358, 3, x_305); -lean_ctor_set(x_358, 4, x_306); -lean_ctor_set(x_358, 5, x_307); -lean_ctor_set(x_358, 6, x_308); -lean_ctor_set(x_358, 7, x_309); -lean_ctor_set(x_358, 8, x_310); -lean_ctor_set(x_358, 9, x_354); -lean_ctor_set_uint8(x_358, sizeof(void*)*10, x_311); -x_359 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_348, x_358, x_357); -if (lean_obj_tag(x_359) == 0) +lean_ctor_set(x_390, 0, x_382); +lean_ctor_set(x_390, 1, x_383); +lean_ctor_set(x_390, 2, x_384); +lean_ctor_set(x_390, 3, x_385); +lean_ctor_set(x_390, 4, x_386); +lean_ctor_set(x_390, 5, x_389); +x_391 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_391, 0, x_335); +lean_ctor_set(x_391, 1, x_336); +lean_ctor_set(x_391, 2, x_337); +lean_ctor_set(x_391, 3, x_338); +lean_ctor_set(x_391, 4, x_339); +lean_ctor_set(x_391, 5, x_340); +lean_ctor_set(x_391, 6, x_341); +lean_ctor_set(x_391, 7, x_342); +lean_ctor_set(x_391, 8, x_343); +lean_ctor_set(x_391, 9, x_387); +lean_ctor_set_uint8(x_391, sizeof(void*)*10, x_344); +x_392 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_381, x_391, x_390); +if (lean_obj_tag(x_392) == 0) { -lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; -x_360 = lean_ctor_get(x_359, 0); -lean_inc(x_360); -x_361 = lean_ctor_get(x_359, 1); -lean_inc(x_361); -lean_dec(x_359); -x_362 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_361); -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); -x_365 = lean_box(0); -x_366 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; -lean_inc(x_363); -x_367 = lean_name_mk_numeral(x_366, x_363); -x_368 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -x_369 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; -x_370 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_370, 0, x_365); -lean_ctor_set(x_370, 1, x_368); -lean_ctor_set(x_370, 2, x_367); -lean_ctor_set(x_370, 3, x_369); -x_371 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_372 = lean_array_push(x_371, x_370); -x_373 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_374 = lean_array_push(x_372, x_373); -x_375 = l_Lean_Parser_Term_id___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 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; -x_378 = lean_name_mk_numeral(x_377, x_363); -x_379 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; -x_380 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_380, 0, x_365); -lean_ctor_set(x_380, 1, x_379); -lean_ctor_set(x_380, 2, x_378); -lean_ctor_set(x_380, 3, x_27); -x_381 = lean_array_push(x_371, x_380); -x_382 = lean_array_push(x_381, x_373); -x_383 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_383, 0, x_375); -lean_ctor_set(x_383, 1, x_382); -x_384 = lean_array_push(x_371, x_376); -x_385 = lean_array_push(x_384, x_383); -x_386 = l_Lean_Parser_Term_app___elambda__1___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); -x_388 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_346); -x_389 = lean_array_push(x_371, x_387); -x_390 = lean_array_push(x_389, x_388); -x_391 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_391, 0, x_386); -lean_ctor_set(x_391, 1, x_390); -x_392 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_364); -lean_dec(x_4); +lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; x_393 = lean_ctor_get(x_392, 0); lean_inc(x_393); x_394 = lean_ctor_get(x_392, 1); lean_inc(x_394); +lean_dec(x_392); +x_395 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_394); +x_396 = lean_ctor_get(x_395, 0); +lean_inc(x_396); +x_397 = lean_ctor_get(x_395, 1); +lean_inc(x_397); +lean_dec(x_395); +x_398 = lean_box(0); +x_399 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; +lean_inc(x_396); +x_400 = lean_name_mk_numeral(x_399, x_396); +x_401 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; +x_402 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; +x_403 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_403, 0, x_398); +lean_ctor_set(x_403, 1, x_401); +lean_ctor_set(x_403, 2, x_400); +lean_ctor_set(x_403, 3, x_402); +x_404 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_405 = lean_array_push(x_404, x_403); +x_406 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_407 = lean_array_push(x_405, x_406); +x_408 = l_Lean_Parser_Term_id___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 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_411 = lean_name_mk_numeral(x_410, x_396); +x_412 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; +x_413 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_413, 0, x_398); +lean_ctor_set(x_413, 1, x_412); +lean_ctor_set(x_413, 2, x_411); +lean_ctor_set(x_413, 3, x_27); +x_414 = lean_array_push(x_404, x_413); +x_415 = lean_array_push(x_414, x_406); +x_416 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_416, 0, x_408); +lean_ctor_set(x_416, 1, x_415); +x_417 = lean_array_push(x_404, x_409); +x_418 = lean_array_push(x_417, x_416); +x_419 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_420 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_420, 0, x_419); +lean_ctor_set(x_420, 1, x_418); +x_421 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_379); +x_422 = lean_array_push(x_404, x_420); +x_423 = lean_array_push(x_422, x_421); +x_424 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_424, 0, x_419); +lean_ctor_set(x_424, 1, x_423); +x_425 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_397); +lean_dec(x_4); +x_426 = lean_ctor_get(x_425, 0); +lean_inc(x_426); +x_427 = lean_ctor_get(x_425, 1); +lean_inc(x_427); +if (lean_is_exclusive(x_425)) { + lean_ctor_release(x_425, 0); + lean_ctor_release(x_425, 1); + x_428 = x_425; +} else { + lean_dec_ref(x_425); + x_428 = lean_box(0); +} +lean_inc(x_426); +x_429 = lean_name_mk_numeral(x_410, x_426); +x_430 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_430, 0, x_398); +lean_ctor_set(x_430, 1, x_412); +lean_ctor_set(x_430, 2, x_429); +lean_ctor_set(x_430, 3, x_27); +x_431 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_432 = lean_array_push(x_431, x_430); +x_433 = lean_array_push(x_432, x_406); +x_434 = lean_array_push(x_433, x_406); +x_435 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_436 = lean_array_push(x_434, x_435); +x_437 = lean_array_push(x_436, x_17); +x_438 = l_Lean_Parser_Term_letIdDecl___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 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; +x_441 = lean_name_mk_numeral(x_440, x_426); +x_442 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_443 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_444 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_444, 0, x_398); +lean_ctor_set(x_444, 1, x_442); +lean_ctor_set(x_444, 2, x_441); +lean_ctor_set(x_444, 3, x_443); +x_445 = lean_array_push(x_404, x_444); +x_446 = lean_array_push(x_445, x_406); +x_447 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_447, 0, x_408); +lean_ctor_set(x_447, 1, x_446); +x_448 = lean_array_push(x_404, x_447); +x_449 = lean_array_push(x_448, x_424); +x_450 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_450, 0, x_419); +lean_ctor_set(x_450, 1, x_449); +x_451 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25; +x_452 = lean_array_push(x_451, x_450); +x_453 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_454 = lean_array_push(x_452, x_453); +x_455 = lean_array_push(x_454, x_377); +x_456 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_457 = lean_array_push(x_455, x_456); +x_458 = lean_array_push(x_457, x_393); +x_459 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_460 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_460, 0, x_459); +lean_ctor_set(x_460, 1, x_458); +x_461 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_462 = lean_array_push(x_461, x_439); +x_463 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_464 = lean_array_push(x_462, x_463); +x_465 = lean_array_push(x_464, x_460); +x_466 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_467 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_467, 0, x_466); +lean_ctor_set(x_467, 1, x_465); +if (lean_is_scalar(x_428)) { + x_468 = lean_alloc_ctor(0, 2, 0); +} else { + x_468 = x_428; +} +lean_ctor_set(x_468, 0, x_467); +lean_ctor_set(x_468, 1, x_427); +return x_468; +} +else +{ +lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; +lean_dec(x_379); +lean_dec(x_377); +lean_dec(x_17); +lean_dec(x_4); +x_469 = lean_ctor_get(x_392, 0); +lean_inc(x_469); +x_470 = lean_ctor_get(x_392, 1); +lean_inc(x_470); if (lean_is_exclusive(x_392)) { lean_ctor_release(x_392, 0); lean_ctor_release(x_392, 1); - x_395 = x_392; + x_471 = x_392; } else { lean_dec_ref(x_392); - x_395 = lean_box(0); + x_471 = lean_box(0); } -x_396 = lean_name_mk_numeral(x_377, x_393); -x_397 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_397, 0, x_365); -lean_ctor_set(x_397, 1, x_379); -lean_ctor_set(x_397, 2, x_396); -lean_ctor_set(x_397, 3, x_27); -x_398 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; -x_399 = lean_array_push(x_398, x_397); -x_400 = lean_array_push(x_399, x_373); -x_401 = lean_array_push(x_400, x_373); -x_402 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; -x_403 = lean_array_push(x_401, x_402); -x_404 = lean_array_push(x_403, x_17); -x_405 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_406 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_406, 0, x_405); -lean_ctor_set(x_406, 1, x_404); -x_407 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19; -x_408 = lean_array_push(x_407, x_391); -x_409 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_410 = lean_array_push(x_408, x_409); -x_411 = lean_array_push(x_410, x_344); -x_412 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; -x_413 = lean_array_push(x_411, x_412); -x_414 = lean_array_push(x_413, x_360); -x_415 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_416 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_416, 0, x_415); -lean_ctor_set(x_416, 1, x_414); -x_417 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_418 = lean_array_push(x_417, x_406); -x_419 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_420 = lean_array_push(x_418, x_419); -x_421 = lean_array_push(x_420, x_416); -x_422 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_423 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_423, 0, x_422); -lean_ctor_set(x_423, 1, x_421); -if (lean_is_scalar(x_395)) { - x_424 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_471)) { + x_472 = lean_alloc_ctor(1, 2, 0); } else { - x_424 = x_395; + x_472 = x_471; } -lean_ctor_set(x_424, 0, x_423); -lean_ctor_set(x_424, 1, x_394); -return x_424; -} -else -{ -lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; -lean_dec(x_346); -lean_dec(x_344); -lean_dec(x_17); -lean_dec(x_4); -x_425 = lean_ctor_get(x_359, 0); -lean_inc(x_425); -x_426 = lean_ctor_get(x_359, 1); -lean_inc(x_426); -if (lean_is_exclusive(x_359)) { - lean_ctor_release(x_359, 0); - lean_ctor_release(x_359, 1); - x_427 = x_359; -} else { - lean_dec_ref(x_359); - x_427 = lean_box(0); -} -if (lean_is_scalar(x_427)) { - x_428 = lean_alloc_ctor(1, 2, 0); -} else { - x_428 = x_427; -} -lean_ctor_set(x_428, 0, x_425); -lean_ctor_set(x_428, 1, x_426); -return x_428; +lean_ctor_set(x_472, 0, x_469); +lean_ctor_set(x_472, 1, x_470); +return x_472; } } } else { -lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; -lean_dec(x_310); -lean_dec(x_309); -lean_dec(x_308); -lean_dec(x_307); -lean_dec(x_306); -lean_dec(x_305); -lean_dec(x_304); -lean_dec(x_303); -lean_dec(x_302); +lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; +lean_dec(x_343); +lean_dec(x_342); +lean_dec(x_341); +lean_dec(x_340); +lean_dec(x_339); +lean_dec(x_338); +lean_dec(x_337); +lean_dec(x_336); +lean_dec(x_335); lean_dec(x_25); lean_dec(x_21); lean_dec(x_17); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_429 = lean_ctor_get(x_313, 0); -lean_inc(x_429); -x_430 = lean_ctor_get(x_313, 1); -lean_inc(x_430); -if (lean_is_exclusive(x_313)) { - lean_ctor_release(x_313, 0); - lean_ctor_release(x_313, 1); - x_431 = x_313; +x_473 = lean_ctor_get(x_346, 0); +lean_inc(x_473); +x_474 = lean_ctor_get(x_346, 1); +lean_inc(x_474); +if (lean_is_exclusive(x_346)) { + lean_ctor_release(x_346, 0); + lean_ctor_release(x_346, 1); + x_475 = x_346; } else { - lean_dec_ref(x_313); - x_431 = lean_box(0); + lean_dec_ref(x_346); + x_475 = lean_box(0); } -if (lean_is_scalar(x_431)) { - x_432 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_475)) { + x_476 = lean_alloc_ctor(1, 2, 0); } else { - x_432 = x_431; + x_476 = x_475; } -lean_ctor_set(x_432, 0, x_429); -lean_ctor_set(x_432, 1, x_430); -return x_432; +lean_ctor_set(x_476, 0, x_473); +lean_ctor_set(x_476, 1, x_474); +return x_476; } } } else { -uint8_t x_433; +uint8_t x_477; lean_dec(x_25); lean_dec(x_21); lean_dec(x_18); @@ -9720,1314 +9889,1394 @@ lean_dec(x_17); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_433 = !lean_is_exclusive(x_29); -if (x_433 == 0) +x_477 = !lean_is_exclusive(x_29); +if (x_477 == 0) { return x_29; } else { -lean_object* x_434; lean_object* x_435; lean_object* x_436; -x_434 = lean_ctor_get(x_29, 0); -x_435 = lean_ctor_get(x_29, 1); -lean_inc(x_435); -lean_inc(x_434); +lean_object* x_478; lean_object* x_479; lean_object* x_480; +x_478 = lean_ctor_get(x_29, 0); +x_479 = lean_ctor_get(x_29, 1); +lean_inc(x_479); +lean_inc(x_478); lean_dec(x_29); -x_436 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_436, 0, x_434); -lean_ctor_set(x_436, 1, x_435); -return x_436; +x_480 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_480, 0, x_478); +lean_ctor_set(x_480, 1, x_479); +return x_480; } } } 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_object* x_443; lean_object* x_444; lean_object* x_445; -x_437 = lean_ctor_get(x_26, 0); -lean_inc(x_437); +lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; +x_481 = lean_ctor_get(x_26, 0); +lean_inc(x_481); lean_dec(x_26); -x_438 = lean_array_get_size(x_437); -lean_dec(x_437); -lean_inc(x_438); -x_439 = l_List_range(x_438); -x_440 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8(x_439, x_4, x_5); -x_441 = lean_ctor_get(x_440, 0); -lean_inc(x_441); -x_442 = lean_ctor_get(x_440, 1); -lean_inc(x_442); -lean_dec(x_440); -x_443 = lean_box(0); +x_482 = lean_array_get_size(x_481); +lean_dec(x_481); +lean_inc(x_482); +x_483 = l_List_range(x_482); +x_484 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8(x_483, x_4, x_5); +x_485 = lean_ctor_get(x_484, 0); +lean_inc(x_485); +x_486 = lean_ctor_get(x_484, 1); +lean_inc(x_486); +lean_dec(x_484); +x_487 = lean_box(0); lean_inc(x_21); -x_444 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__9(x_25, x_21, x_443); +x_488 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__9(x_25, x_21, x_487); lean_inc(x_4); -x_445 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__10(x_441, x_444, x_4, x_442); -if (lean_obj_tag(x_445) == 0) +x_489 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__10(x_485, x_488, x_4, x_486); +if (lean_obj_tag(x_489) == 0) { -lean_object* x_446; lean_object* x_447; lean_object* x_448; uint8_t x_449; -x_446 = lean_ctor_get(x_445, 0); -lean_inc(x_446); -x_447 = lean_ctor_get(x_445, 1); -lean_inc(x_447); -lean_dec(x_445); -x_448 = l_List_append___rarg(x_441, x_18); -x_449 = !lean_is_exclusive(x_447); -if (x_449 == 0) +lean_object* x_490; lean_object* x_491; lean_object* x_492; uint8_t x_493; +x_490 = lean_ctor_get(x_489, 0); +lean_inc(x_490); +x_491 = lean_ctor_get(x_489, 1); +lean_inc(x_491); +lean_dec(x_489); +x_492 = l_List_append___rarg(x_485, x_18); +x_493 = !lean_is_exclusive(x_491); +if (x_493 == 0) { -lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; uint8_t x_462; lean_object* x_463; lean_object* x_464; -x_450 = lean_ctor_get(x_447, 5); -x_451 = lean_unsigned_to_nat(1u); -x_452 = lean_nat_add(x_450, x_451); -lean_ctor_set(x_447, 5, x_452); -x_453 = lean_ctor_get(x_4, 0); -lean_inc(x_453); -x_454 = lean_ctor_get(x_4, 1); -lean_inc(x_454); -x_455 = lean_ctor_get(x_4, 2); -lean_inc(x_455); -x_456 = lean_ctor_get(x_4, 3); -lean_inc(x_456); -x_457 = lean_ctor_get(x_4, 4); -lean_inc(x_457); -x_458 = lean_ctor_get(x_4, 5); -lean_inc(x_458); -x_459 = lean_ctor_get(x_4, 6); -lean_inc(x_459); -x_460 = lean_ctor_get(x_4, 7); -lean_inc(x_460); -x_461 = lean_ctor_get(x_4, 8); -lean_inc(x_461); -x_462 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -lean_inc(x_461); -lean_inc(x_460); -lean_inc(x_459); -lean_inc(x_458); -lean_inc(x_457); -lean_inc(x_456); -lean_inc(x_455); -lean_inc(x_454); -lean_inc(x_453); -x_463 = lean_alloc_ctor(0, 10, 1); -lean_ctor_set(x_463, 0, x_453); -lean_ctor_set(x_463, 1, x_454); -lean_ctor_set(x_463, 2, x_455); -lean_ctor_set(x_463, 3, x_456); -lean_ctor_set(x_463, 4, x_457); -lean_ctor_set(x_463, 5, x_458); -lean_ctor_set(x_463, 6, x_459); -lean_ctor_set(x_463, 7, x_460); -lean_ctor_set(x_463, 8, x_461); -lean_ctor_set(x_463, 9, x_450); -lean_ctor_set_uint8(x_463, sizeof(void*)*10, x_462); +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; uint8_t x_506; lean_object* x_507; lean_object* x_508; +x_494 = lean_ctor_get(x_491, 5); +x_495 = lean_unsigned_to_nat(1u); +x_496 = lean_nat_add(x_494, x_495); +lean_ctor_set(x_491, 5, x_496); +x_497 = lean_ctor_get(x_4, 0); +lean_inc(x_497); +x_498 = lean_ctor_get(x_4, 1); +lean_inc(x_498); +x_499 = lean_ctor_get(x_4, 2); +lean_inc(x_499); +x_500 = lean_ctor_get(x_4, 3); +lean_inc(x_500); +x_501 = lean_ctor_get(x_4, 4); +lean_inc(x_501); +x_502 = lean_ctor_get(x_4, 5); +lean_inc(x_502); +x_503 = lean_ctor_get(x_4, 6); +lean_inc(x_503); +x_504 = lean_ctor_get(x_4, 7); +lean_inc(x_504); +x_505 = lean_ctor_get(x_4, 8); +lean_inc(x_505); +x_506 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +lean_inc(x_505); +lean_inc(x_504); +lean_inc(x_503); +lean_inc(x_502); +lean_inc(x_501); +lean_inc(x_500); +lean_inc(x_499); +lean_inc(x_498); +lean_inc(x_497); +x_507 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_507, 0, x_497); +lean_ctor_set(x_507, 1, x_498); +lean_ctor_set(x_507, 2, x_499); +lean_ctor_set(x_507, 3, x_500); +lean_ctor_set(x_507, 4, x_501); +lean_ctor_set(x_507, 5, x_502); +lean_ctor_set(x_507, 6, x_503); +lean_ctor_set(x_507, 7, x_504); +lean_ctor_set(x_507, 8, x_505); +lean_ctor_set(x_507, 9, x_494); +lean_ctor_set_uint8(x_507, sizeof(void*)*10, x_506); lean_inc(x_1); -x_464 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_448, x_446, x_463, x_447); -if (lean_obj_tag(x_464) == 0) +x_508 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_492, x_490, x_507, x_491); +if (lean_obj_tag(x_508) == 0) { -lean_object* x_465; -x_465 = lean_ctor_get(x_25, 0); -lean_inc(x_465); -if (lean_obj_tag(x_465) == 0) +lean_object* x_509; +x_509 = lean_ctor_get(x_25, 0); +lean_inc(x_509); +if (lean_obj_tag(x_509) == 0) { -lean_object* x_466; lean_object* x_467; lean_object* x_468; uint8_t x_469; -lean_dec(x_461); -lean_dec(x_460); -lean_dec(x_459); -lean_dec(x_458); -lean_dec(x_457); -lean_dec(x_456); -lean_dec(x_455); -lean_dec(x_454); -lean_dec(x_453); -lean_dec(x_438); +lean_object* x_510; lean_object* x_511; lean_object* x_512; uint8_t x_513; +lean_dec(x_505); +lean_dec(x_504); +lean_dec(x_503); +lean_dec(x_502); +lean_dec(x_501); +lean_dec(x_500); +lean_dec(x_499); +lean_dec(x_498); +lean_dec(x_497); +lean_dec(x_482); lean_dec(x_25); lean_dec(x_21); lean_dec(x_2); lean_dec(x_1); -x_466 = lean_ctor_get(x_464, 0); -lean_inc(x_466); -x_467 = lean_ctor_get(x_464, 1); -lean_inc(x_467); -lean_dec(x_464); -x_468 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_467); +x_510 = lean_ctor_get(x_508, 0); +lean_inc(x_510); +x_511 = lean_ctor_get(x_508, 1); +lean_inc(x_511); +lean_dec(x_508); +x_512 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_511); lean_dec(x_4); -x_469 = !lean_is_exclusive(x_468); -if (x_469 == 0) +x_513 = !lean_is_exclusive(x_512); +if (x_513 == 0) { -lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; -x_470 = lean_ctor_get(x_468, 0); -x_471 = lean_box(0); -x_472 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; -x_473 = lean_name_mk_numeral(x_472, x_470); -x_474 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; -x_475 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_475, 0, x_471); -lean_ctor_set(x_475, 1, x_474); -lean_ctor_set(x_475, 2, x_473); -lean_ctor_set(x_475, 3, x_443); -x_476 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; -x_477 = lean_array_push(x_476, x_475); -x_478 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_479 = lean_array_push(x_477, x_478); -x_480 = lean_array_push(x_479, x_478); -x_481 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; -x_482 = lean_array_push(x_480, x_481); -x_483 = lean_array_push(x_482, x_17); -x_484 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_485 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_485, 0, x_484); -lean_ctor_set(x_485, 1, x_483); -x_486 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_487 = lean_array_push(x_486, x_485); -x_488 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_489 = lean_array_push(x_487, x_488); -x_490 = lean_array_push(x_489, x_466); -x_491 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_492 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_492, 0, x_491); -lean_ctor_set(x_492, 1, x_490); -lean_ctor_set(x_468, 0, x_492); -return x_468; +lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; +x_514 = lean_ctor_get(x_512, 0); +x_515 = lean_box(0); +x_516 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_517 = lean_name_mk_numeral(x_516, x_514); +x_518 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; +x_519 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_519, 0, x_515); +lean_ctor_set(x_519, 1, x_518); +lean_ctor_set(x_519, 2, x_517); +lean_ctor_set(x_519, 3, x_487); +x_520 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_521 = lean_array_push(x_520, x_519); +x_522 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_523 = lean_array_push(x_521, x_522); +x_524 = lean_array_push(x_523, x_522); +x_525 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_526 = lean_array_push(x_524, x_525); +x_527 = lean_array_push(x_526, x_17); +x_528 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_529 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_529, 0, x_528); +lean_ctor_set(x_529, 1, x_527); +x_530 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_531 = lean_array_push(x_530, x_529); +x_532 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_533 = lean_array_push(x_531, x_532); +x_534 = lean_array_push(x_533, x_510); +x_535 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_536 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_536, 0, x_535); +lean_ctor_set(x_536, 1, x_534); +lean_ctor_set(x_512, 0, x_536); +return x_512; } else { -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; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; -x_493 = lean_ctor_get(x_468, 0); -x_494 = lean_ctor_get(x_468, 1); -lean_inc(x_494); -lean_inc(x_493); -lean_dec(x_468); -x_495 = lean_box(0); -x_496 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; -x_497 = lean_name_mk_numeral(x_496, x_493); -x_498 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; -x_499 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_499, 0, x_495); -lean_ctor_set(x_499, 1, x_498); -lean_ctor_set(x_499, 2, x_497); -lean_ctor_set(x_499, 3, x_443); -x_500 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; -x_501 = lean_array_push(x_500, x_499); -x_502 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_503 = lean_array_push(x_501, x_502); -x_504 = lean_array_push(x_503, x_502); -x_505 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; -x_506 = lean_array_push(x_504, x_505); -x_507 = lean_array_push(x_506, x_17); -x_508 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_509 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_509, 0, x_508); -lean_ctor_set(x_509, 1, x_507); -x_510 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_511 = lean_array_push(x_510, x_509); -x_512 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_513 = lean_array_push(x_511, x_512); -x_514 = lean_array_push(x_513, x_466); -x_515 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_516 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_516, 0, x_515); -lean_ctor_set(x_516, 1, x_514); -x_517 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_517, 0, x_516); -lean_ctor_set(x_517, 1, x_494); -return x_517; +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; +x_537 = lean_ctor_get(x_512, 0); +x_538 = lean_ctor_get(x_512, 1); +lean_inc(x_538); +lean_inc(x_537); +lean_dec(x_512); +x_539 = lean_box(0); +x_540 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_541 = lean_name_mk_numeral(x_540, x_537); +x_542 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; +x_543 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_543, 0, x_539); +lean_ctor_set(x_543, 1, x_542); +lean_ctor_set(x_543, 2, x_541); +lean_ctor_set(x_543, 3, x_487); +x_544 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_545 = lean_array_push(x_544, x_543); +x_546 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_547 = lean_array_push(x_545, x_546); +x_548 = lean_array_push(x_547, x_546); +x_549 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_550 = lean_array_push(x_548, x_549); +x_551 = lean_array_push(x_550, x_17); +x_552 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_553 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_553, 0, x_552); +lean_ctor_set(x_553, 1, x_551); +x_554 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_555 = lean_array_push(x_554, x_553); +x_556 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_557 = lean_array_push(x_555, x_556); +x_558 = lean_array_push(x_557, x_510); +x_559 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_560 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_560, 0, x_559); +lean_ctor_set(x_560, 1, x_558); +x_561 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_561, 0, x_560); +lean_ctor_set(x_561, 1, x_538); +return x_561; } } else { -lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; uint8_t x_523; -x_518 = lean_ctor_get(x_464, 0); -lean_inc(x_518); -x_519 = lean_ctor_get(x_464, 1); -lean_inc(x_519); -lean_dec(x_464); -x_520 = lean_ctor_get(x_465, 0); -lean_inc(x_520); -lean_dec(x_465); -x_521 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__11(x_25, x_21, x_443); +lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; uint8_t x_567; +x_562 = lean_ctor_get(x_508, 0); +lean_inc(x_562); +x_563 = lean_ctor_get(x_508, 1); +lean_inc(x_563); +lean_dec(x_508); +x_564 = lean_ctor_get(x_509, 0); +lean_inc(x_564); +lean_dec(x_509); +x_565 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__11(x_25, x_21, x_487); lean_dec(x_25); -x_522 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_521); -x_523 = !lean_is_exclusive(x_519); -if (x_523 == 0) +x_566 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_565); +x_567 = !lean_is_exclusive(x_563); +if (x_567 == 0) { -lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; -x_524 = lean_ctor_get(x_519, 5); -x_525 = lean_nat_add(x_524, x_451); -lean_ctor_set(x_519, 5, x_525); -x_526 = lean_alloc_ctor(0, 10, 1); -lean_ctor_set(x_526, 0, x_453); -lean_ctor_set(x_526, 1, x_454); -lean_ctor_set(x_526, 2, x_455); -lean_ctor_set(x_526, 3, x_456); -lean_ctor_set(x_526, 4, x_457); -lean_ctor_set(x_526, 5, x_458); -lean_ctor_set(x_526, 6, x_459); -lean_ctor_set(x_526, 7, x_460); -lean_ctor_set(x_526, 8, x_461); -lean_ctor_set(x_526, 9, x_524); -lean_ctor_set_uint8(x_526, sizeof(void*)*10, x_462); -x_527 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_522, x_526, x_519); -if (lean_obj_tag(x_527) == 0) +lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; +x_568 = lean_ctor_get(x_563, 5); +x_569 = lean_nat_add(x_568, x_495); +lean_ctor_set(x_563, 5, x_569); +x_570 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_570, 0, x_497); +lean_ctor_set(x_570, 1, x_498); +lean_ctor_set(x_570, 2, x_499); +lean_ctor_set(x_570, 3, x_500); +lean_ctor_set(x_570, 4, x_501); +lean_ctor_set(x_570, 5, x_502); +lean_ctor_set(x_570, 6, x_503); +lean_ctor_set(x_570, 7, x_504); +lean_ctor_set(x_570, 8, x_505); +lean_ctor_set(x_570, 9, x_568); +lean_ctor_set_uint8(x_570, sizeof(void*)*10, x_506); +x_571 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_566, x_570, x_563); +if (lean_obj_tag(x_571) == 0) { -lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; -x_528 = lean_ctor_get(x_527, 0); -lean_inc(x_528); -x_529 = lean_ctor_get(x_527, 1); -lean_inc(x_529); -lean_dec(x_527); -x_530 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_529); -x_531 = lean_ctor_get(x_530, 0); -lean_inc(x_531); -x_532 = lean_ctor_get(x_530, 1); -lean_inc(x_532); -lean_dec(x_530); -x_533 = lean_box(0); -x_534 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; -lean_inc(x_531); -x_535 = lean_name_mk_numeral(x_534, x_531); -x_536 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -x_537 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; -x_538 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_538, 0, x_533); -lean_ctor_set(x_538, 1, x_536); -lean_ctor_set(x_538, 2, x_535); -lean_ctor_set(x_538, 3, x_537); -x_539 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_540 = lean_array_push(x_539, x_538); -x_541 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_542 = lean_array_push(x_540, x_541); -x_543 = l_Lean_Parser_Term_id___elambda__1___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_542); -x_545 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; -lean_inc(x_531); -x_546 = lean_name_mk_numeral(x_545, x_531); -x_547 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; -x_548 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_548, 0, x_533); -lean_ctor_set(x_548, 1, x_547); -lean_ctor_set(x_548, 2, x_546); -lean_ctor_set(x_548, 3, x_443); -x_549 = lean_array_push(x_539, x_548); -x_550 = lean_array_push(x_549, x_541); -x_551 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_551, 0, x_543); -lean_ctor_set(x_551, 1, x_550); -x_552 = lean_array_push(x_539, x_544); -lean_inc(x_551); -x_553 = lean_array_push(x_552, x_551); -x_554 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_555 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_555, 0, x_554); -lean_ctor_set(x_555, 1, x_553); -x_556 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_520); -x_557 = lean_array_push(x_539, x_555); -x_558 = lean_array_push(x_557, x_556); -x_559 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_559, 0, x_554); -lean_ctor_set(x_559, 1, x_558); -x_560 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__28; -lean_inc(x_531); -x_561 = lean_name_mk_numeral(x_560, x_531); -x_562 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; -x_563 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__30; -x_564 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_564, 0, x_533); -lean_ctor_set(x_564, 1, x_562); -lean_ctor_set(x_564, 2, x_561); -lean_ctor_set(x_564, 3, x_563); -x_565 = lean_array_push(x_539, x_564); -x_566 = lean_array_push(x_565, x_541); -x_567 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_567, 0, x_543); -lean_ctor_set(x_567, 1, x_566); -x_568 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; -x_569 = lean_name_mk_numeral(x_568, x_531); -x_570 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; -x_571 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__33; -x_572 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_572, 0, x_533); -lean_ctor_set(x_572, 1, x_570); -lean_ctor_set(x_572, 2, x_569); -lean_ctor_set(x_572, 3, x_571); -x_573 = lean_array_push(x_539, x_572); -x_574 = lean_array_push(x_573, x_541); -x_575 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_575, 0, x_543); -lean_ctor_set(x_575, 1, x_574); -x_576 = lean_array_push(x_539, x_575); -x_577 = lean_array_push(x_576, x_551); -x_578 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_578, 0, x_554); -lean_ctor_set(x_578, 1, x_577); -x_579 = lean_array_push(x_539, x_578); -x_580 = lean_array_push(x_579, x_541); -x_581 = l_Lean_nullKind___closed__2; -x_582 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_582, 0, x_581); +lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; uint8_t x_657; +x_572 = lean_ctor_get(x_571, 0); +lean_inc(x_572); +x_573 = lean_ctor_get(x_571, 1); +lean_inc(x_573); +lean_dec(x_571); +x_574 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_573); +x_575 = lean_ctor_get(x_574, 0); +lean_inc(x_575); +x_576 = lean_ctor_get(x_574, 1); +lean_inc(x_576); +lean_dec(x_574); +x_577 = lean_box(0); +x_578 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; +lean_inc(x_575); +x_579 = lean_name_mk_numeral(x_578, x_575); +x_580 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; +x_581 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; +x_582 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_582, 0, x_577); lean_ctor_set(x_582, 1, x_580); -x_583 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; +lean_ctor_set(x_582, 2, x_579); +lean_ctor_set(x_582, 3, x_581); +x_583 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; x_584 = lean_array_push(x_583, x_582); -x_585 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_585 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; x_586 = lean_array_push(x_584, x_585); -x_587 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_587 = l_Lean_Parser_Term_id___elambda__1___closed__2; x_588 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_588, 0, x_587); lean_ctor_set(x_588, 1, x_586); -x_589 = lean_array_push(x_539, x_567); -x_590 = lean_array_push(x_589, x_588); -x_591 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_591, 0, x_554); -lean_ctor_set(x_591, 1, x_590); -x_592 = l_Nat_repr(x_438); -x_593 = l_Lean_numLitKind; -x_594 = l_Lean_mkStxLit(x_593, x_592, x_533); -x_595 = l_Lean_FileMap_ofString___closed__1; -x_596 = lean_array_push(x_595, x_594); -x_597 = l_Lean_Parser_Term_num___elambda__1___closed__1; -x_598 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_598, 0, x_597); -lean_ctor_set(x_598, 1, x_596); -x_599 = l_Lean_Parser_declareBuiltinParser___closed__8; -x_600 = lean_array_push(x_599, x_591); -x_601 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__35; -x_602 = lean_array_push(x_600, x_601); -x_603 = lean_array_push(x_602, x_598); -x_604 = l_Lean_Parser_Term_beq___elambda__1___closed__2; -x_605 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_605, 0, x_604); -lean_ctor_set(x_605, 1, x_603); -x_606 = lean_array_push(x_599, x_559); -x_607 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__21; -x_608 = lean_array_push(x_606, x_607); -x_609 = lean_array_push(x_608, x_605); -x_610 = l_Lean_Parser_Term_band___elambda__1___closed__2; +x_589 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +lean_inc(x_575); +x_590 = lean_name_mk_numeral(x_589, x_575); +x_591 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; +x_592 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_592, 0, x_577); +lean_ctor_set(x_592, 1, x_591); +lean_ctor_set(x_592, 2, x_590); +lean_ctor_set(x_592, 3, x_487); +x_593 = lean_array_push(x_583, x_592); +x_594 = lean_array_push(x_593, x_585); +x_595 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_595, 0, x_587); +lean_ctor_set(x_595, 1, x_594); +x_596 = lean_array_push(x_583, x_588); +lean_inc(x_595); +x_597 = lean_array_push(x_596, x_595); +x_598 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_599 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_599, 0, x_598); +lean_ctor_set(x_599, 1, x_597); +x_600 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_564); +x_601 = lean_array_push(x_583, x_599); +x_602 = lean_array_push(x_601, x_600); +x_603 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_603, 0, x_598); +lean_ctor_set(x_603, 1, x_602); +x_604 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__32; +lean_inc(x_575); +x_605 = lean_name_mk_numeral(x_604, x_575); +x_606 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__30; +x_607 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__34; +x_608 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_608, 0, x_577); +lean_ctor_set(x_608, 1, x_606); +lean_ctor_set(x_608, 2, x_605); +lean_ctor_set(x_608, 3, x_607); +x_609 = lean_array_push(x_583, x_608); +x_610 = lean_array_push(x_609, x_585); x_611 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_611, 0, x_610); -lean_ctor_set(x_611, 1, x_609); -x_612 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_532); -lean_dec(x_4); -x_613 = !lean_is_exclusive(x_612); -if (x_613 == 0) -{ -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; -x_614 = lean_ctor_get(x_612, 0); -x_615 = lean_name_mk_numeral(x_545, x_614); +lean_ctor_set(x_611, 0, x_587); +lean_ctor_set(x_611, 1, x_610); +x_612 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; +x_613 = lean_name_mk_numeral(x_612, x_575); +x_614 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; +x_615 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__37; x_616 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_616, 0, x_533); -lean_ctor_set(x_616, 1, x_547); -lean_ctor_set(x_616, 2, x_615); -lean_ctor_set(x_616, 3, x_443); -x_617 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; -x_618 = lean_array_push(x_617, x_616); -x_619 = lean_array_push(x_618, x_541); -x_620 = lean_array_push(x_619, x_541); -x_621 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; -x_622 = lean_array_push(x_620, x_621); -x_623 = lean_array_push(x_622, x_17); -x_624 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_625 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_625, 0, x_624); -lean_ctor_set(x_625, 1, x_623); -x_626 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19; -x_627 = lean_array_push(x_626, x_611); -x_628 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_629 = lean_array_push(x_627, x_628); -x_630 = lean_array_push(x_629, x_518); -x_631 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; -x_632 = lean_array_push(x_630, x_631); -x_633 = lean_array_push(x_632, x_528); -x_634 = l_Lean_Parser_Term_if___elambda__1___closed__2; +lean_ctor_set(x_616, 0, x_577); +lean_ctor_set(x_616, 1, x_614); +lean_ctor_set(x_616, 2, x_613); +lean_ctor_set(x_616, 3, x_615); +x_617 = lean_array_push(x_583, x_616); +x_618 = lean_array_push(x_617, x_585); +x_619 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_619, 0, x_587); +lean_ctor_set(x_619, 1, x_618); +x_620 = lean_array_push(x_583, x_619); +x_621 = lean_array_push(x_620, x_595); +x_622 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_622, 0, x_598); +lean_ctor_set(x_622, 1, x_621); +x_623 = lean_array_push(x_583, x_622); +x_624 = lean_array_push(x_623, x_585); +x_625 = l_Lean_nullKind___closed__2; +x_626 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_626, 0, x_625); +lean_ctor_set(x_626, 1, x_624); +x_627 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; +x_628 = lean_array_push(x_627, x_626); +x_629 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; +x_630 = lean_array_push(x_628, x_629); +x_631 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_632 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_632, 0, x_631); +lean_ctor_set(x_632, 1, x_630); +x_633 = lean_array_push(x_583, x_611); +x_634 = lean_array_push(x_633, x_632); x_635 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_635, 0, x_634); -lean_ctor_set(x_635, 1, x_633); -x_636 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_637 = lean_array_push(x_636, x_625); -x_638 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_639 = lean_array_push(x_637, x_638); -x_640 = lean_array_push(x_639, x_635); -x_641 = l_Lean_Parser_Term_let___elambda__1___closed__2; +lean_ctor_set(x_635, 0, x_598); +lean_ctor_set(x_635, 1, x_634); +x_636 = l_Nat_repr(x_482); +x_637 = l_Lean_numLitKind; +x_638 = l_Lean_mkStxLit(x_637, x_636, x_577); +x_639 = l_Lean_FileMap_ofString___closed__1; +x_640 = lean_array_push(x_639, x_638); +x_641 = l_Lean_Parser_Term_num___elambda__1___closed__1; x_642 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_642, 0, x_641); lean_ctor_set(x_642, 1, x_640); -lean_ctor_set(x_612, 0, x_642); -return x_612; -} -else -{ -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; -x_643 = lean_ctor_get(x_612, 0); -x_644 = lean_ctor_get(x_612, 1); -lean_inc(x_644); -lean_inc(x_643); -lean_dec(x_612); -x_645 = lean_name_mk_numeral(x_545, x_643); -x_646 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_646, 0, x_533); -lean_ctor_set(x_646, 1, x_547); -lean_ctor_set(x_646, 2, x_645); -lean_ctor_set(x_646, 3, x_443); -x_647 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; -x_648 = lean_array_push(x_647, x_646); -x_649 = lean_array_push(x_648, x_541); -x_650 = lean_array_push(x_649, x_541); -x_651 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_643 = l_Lean_Parser_declareBuiltinParser___closed__8; +x_644 = lean_array_push(x_643, x_635); +x_645 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__39; +x_646 = lean_array_push(x_644, x_645); +x_647 = lean_array_push(x_646, x_642); +x_648 = l_Lean_Parser_Term_beq___elambda__1___closed__2; +x_649 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_649, 0, x_648); +lean_ctor_set(x_649, 1, x_647); +x_650 = lean_array_push(x_643, x_603); +x_651 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__27; x_652 = lean_array_push(x_650, x_651); -x_653 = lean_array_push(x_652, x_17); -x_654 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_653 = lean_array_push(x_652, x_649); +x_654 = l_Lean_Parser_Term_band___elambda__1___closed__2; x_655 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_655, 0, x_654); lean_ctor_set(x_655, 1, x_653); -x_656 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19; -x_657 = lean_array_push(x_656, x_611); -x_658 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_659 = lean_array_push(x_657, x_658); -x_660 = lean_array_push(x_659, x_518); -x_661 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; -x_662 = lean_array_push(x_660, x_661); -x_663 = lean_array_push(x_662, x_528); -x_664 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_665 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_665, 0, x_664); -lean_ctor_set(x_665, 1, x_663); -x_666 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_667 = lean_array_push(x_666, x_655); -x_668 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_669 = lean_array_push(x_667, x_668); -x_670 = lean_array_push(x_669, x_665); -x_671 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_672 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_672, 0, x_671); -lean_ctor_set(x_672, 1, x_670); -x_673 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_673, 0, x_672); -lean_ctor_set(x_673, 1, x_644); -return x_673; -} -} -else -{ -uint8_t x_674; -lean_dec(x_520); -lean_dec(x_518); -lean_dec(x_438); -lean_dec(x_17); +x_656 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_576); lean_dec(x_4); -x_674 = !lean_is_exclusive(x_527); -if (x_674 == 0) +x_657 = !lean_is_exclusive(x_656); +if (x_657 == 0) { -return x_527; -} -else -{ -lean_object* x_675; lean_object* x_676; lean_object* x_677; -x_675 = lean_ctor_get(x_527, 0); -x_676 = lean_ctor_get(x_527, 1); -lean_inc(x_676); -lean_inc(x_675); -lean_dec(x_527); +lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; +x_658 = lean_ctor_get(x_656, 0); +lean_inc(x_658); +x_659 = lean_name_mk_numeral(x_589, x_658); +x_660 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_660, 0, x_577); +lean_ctor_set(x_660, 1, x_591); +lean_ctor_set(x_660, 2, x_659); +lean_ctor_set(x_660, 3, x_487); +x_661 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_662 = lean_array_push(x_661, x_660); +x_663 = lean_array_push(x_662, x_585); +x_664 = lean_array_push(x_663, x_585); +x_665 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_666 = lean_array_push(x_664, x_665); +x_667 = lean_array_push(x_666, x_17); +x_668 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_669 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_669, 0, x_668); +lean_ctor_set(x_669, 1, x_667); +x_670 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; +x_671 = lean_name_mk_numeral(x_670, x_658); +x_672 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_673 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_674 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_674, 0, x_577); +lean_ctor_set(x_674, 1, x_672); +lean_ctor_set(x_674, 2, x_671); +lean_ctor_set(x_674, 3, x_673); +x_675 = lean_array_push(x_583, x_674); +x_676 = lean_array_push(x_675, x_585); x_677 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_677, 0, x_675); +lean_ctor_set(x_677, 0, x_587); lean_ctor_set(x_677, 1, x_676); -return x_677; -} -} +x_678 = lean_array_push(x_583, x_677); +x_679 = lean_array_push(x_678, x_655); +x_680 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_680, 0, x_598); +lean_ctor_set(x_680, 1, x_679); +x_681 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25; +x_682 = lean_array_push(x_681, x_680); +x_683 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_684 = lean_array_push(x_682, x_683); +x_685 = lean_array_push(x_684, x_562); +x_686 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_687 = lean_array_push(x_685, x_686); +x_688 = lean_array_push(x_687, x_572); +x_689 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_690 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_690, 0, x_689); +lean_ctor_set(x_690, 1, x_688); +x_691 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_692 = lean_array_push(x_691, x_669); +x_693 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_694 = lean_array_push(x_692, x_693); +x_695 = lean_array_push(x_694, x_690); +x_696 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_697 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_697, 0, x_696); +lean_ctor_set(x_697, 1, x_695); +lean_ctor_set(x_656, 0, x_697); +return x_656; } else { -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; -x_678 = lean_ctor_get(x_519, 0); -x_679 = lean_ctor_get(x_519, 1); -x_680 = lean_ctor_get(x_519, 2); -x_681 = lean_ctor_get(x_519, 3); -x_682 = lean_ctor_get(x_519, 4); -x_683 = lean_ctor_get(x_519, 5); -lean_inc(x_683); -lean_inc(x_682); -lean_inc(x_681); -lean_inc(x_680); -lean_inc(x_679); -lean_inc(x_678); -lean_dec(x_519); -x_684 = lean_nat_add(x_683, x_451); -x_685 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_685, 0, x_678); -lean_ctor_set(x_685, 1, x_679); -lean_ctor_set(x_685, 2, x_680); -lean_ctor_set(x_685, 3, x_681); -lean_ctor_set(x_685, 4, x_682); -lean_ctor_set(x_685, 5, x_684); -x_686 = lean_alloc_ctor(0, 10, 1); -lean_ctor_set(x_686, 0, x_453); -lean_ctor_set(x_686, 1, x_454); -lean_ctor_set(x_686, 2, x_455); -lean_ctor_set(x_686, 3, x_456); -lean_ctor_set(x_686, 4, x_457); -lean_ctor_set(x_686, 5, x_458); -lean_ctor_set(x_686, 6, x_459); -lean_ctor_set(x_686, 7, x_460); -lean_ctor_set(x_686, 8, x_461); -lean_ctor_set(x_686, 9, x_683); -lean_ctor_set_uint8(x_686, sizeof(void*)*10, x_462); -x_687 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_522, x_686, x_685); -if (lean_obj_tag(x_687) == 0) -{ -lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; -x_688 = lean_ctor_get(x_687, 0); -lean_inc(x_688); -x_689 = lean_ctor_get(x_687, 1); -lean_inc(x_689); -lean_dec(x_687); -x_690 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_689); -x_691 = lean_ctor_get(x_690, 0); -lean_inc(x_691); -x_692 = lean_ctor_get(x_690, 1); -lean_inc(x_692); -lean_dec(x_690); -x_693 = lean_box(0); -x_694 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; -lean_inc(x_691); -x_695 = lean_name_mk_numeral(x_694, x_691); -x_696 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -x_697 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; -x_698 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_698, 0, x_693); -lean_ctor_set(x_698, 1, x_696); -lean_ctor_set(x_698, 2, x_695); -lean_ctor_set(x_698, 3, x_697); -x_699 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_700 = lean_array_push(x_699, x_698); -x_701 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_702 = lean_array_push(x_700, x_701); -x_703 = l_Lean_Parser_Term_id___elambda__1___closed__2; -x_704 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_704, 0, x_703); -lean_ctor_set(x_704, 1, x_702); -x_705 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; -lean_inc(x_691); -x_706 = lean_name_mk_numeral(x_705, x_691); -x_707 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; -x_708 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_708, 0, x_693); -lean_ctor_set(x_708, 1, x_707); -lean_ctor_set(x_708, 2, x_706); -lean_ctor_set(x_708, 3, x_443); -x_709 = lean_array_push(x_699, x_708); -x_710 = lean_array_push(x_709, x_701); -x_711 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_711, 0, x_703); -lean_ctor_set(x_711, 1, x_710); -x_712 = lean_array_push(x_699, x_704); -lean_inc(x_711); -x_713 = lean_array_push(x_712, x_711); -x_714 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_715 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_715, 0, x_714); +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; +x_698 = lean_ctor_get(x_656, 0); +x_699 = lean_ctor_get(x_656, 1); +lean_inc(x_699); +lean_inc(x_698); +lean_dec(x_656); +lean_inc(x_698); +x_700 = lean_name_mk_numeral(x_589, x_698); +x_701 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_701, 0, x_577); +lean_ctor_set(x_701, 1, x_591); +lean_ctor_set(x_701, 2, x_700); +lean_ctor_set(x_701, 3, x_487); +x_702 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_703 = lean_array_push(x_702, x_701); +x_704 = lean_array_push(x_703, x_585); +x_705 = lean_array_push(x_704, x_585); +x_706 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_707 = lean_array_push(x_705, x_706); +x_708 = lean_array_push(x_707, x_17); +x_709 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_710 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_710, 0, x_709); +lean_ctor_set(x_710, 1, x_708); +x_711 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; +x_712 = lean_name_mk_numeral(x_711, x_698); +x_713 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_714 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_715 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_715, 0, x_577); lean_ctor_set(x_715, 1, x_713); -x_716 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_520); -x_717 = lean_array_push(x_699, x_715); -x_718 = lean_array_push(x_717, x_716); -x_719 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_719, 0, x_714); -lean_ctor_set(x_719, 1, x_718); -x_720 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__28; -lean_inc(x_691); -x_721 = lean_name_mk_numeral(x_720, x_691); -x_722 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; -x_723 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__30; -x_724 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_724, 0, x_693); -lean_ctor_set(x_724, 1, x_722); -lean_ctor_set(x_724, 2, x_721); -lean_ctor_set(x_724, 3, x_723); -x_725 = lean_array_push(x_699, x_724); -x_726 = lean_array_push(x_725, x_701); -x_727 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_727, 0, x_703); -lean_ctor_set(x_727, 1, x_726); -x_728 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; -x_729 = lean_name_mk_numeral(x_728, x_691); -x_730 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; -x_731 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__33; -x_732 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_732, 0, x_693); -lean_ctor_set(x_732, 1, x_730); -lean_ctor_set(x_732, 2, x_729); -lean_ctor_set(x_732, 3, x_731); -x_733 = lean_array_push(x_699, x_732); -x_734 = lean_array_push(x_733, x_701); -x_735 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_735, 0, x_703); -lean_ctor_set(x_735, 1, x_734); -x_736 = lean_array_push(x_699, x_735); -x_737 = lean_array_push(x_736, x_711); +lean_ctor_set(x_715, 2, x_712); +lean_ctor_set(x_715, 3, x_714); +x_716 = lean_array_push(x_583, x_715); +x_717 = lean_array_push(x_716, x_585); +x_718 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_718, 0, x_587); +lean_ctor_set(x_718, 1, x_717); +x_719 = lean_array_push(x_583, x_718); +x_720 = lean_array_push(x_719, x_655); +x_721 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_721, 0, x_598); +lean_ctor_set(x_721, 1, x_720); +x_722 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25; +x_723 = lean_array_push(x_722, x_721); +x_724 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_725 = lean_array_push(x_723, x_724); +x_726 = lean_array_push(x_725, x_562); +x_727 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_728 = lean_array_push(x_726, x_727); +x_729 = lean_array_push(x_728, x_572); +x_730 = l_Lean_Parser_Term_if___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 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_733 = lean_array_push(x_732, x_710); +x_734 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_735 = lean_array_push(x_733, x_734); +x_736 = lean_array_push(x_735, x_731); +x_737 = l_Lean_Parser_Term_let___elambda__1___closed__2; x_738 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_738, 0, x_714); -lean_ctor_set(x_738, 1, x_737); -x_739 = lean_array_push(x_699, x_738); -x_740 = lean_array_push(x_739, x_701); -x_741 = l_Lean_nullKind___closed__2; -x_742 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_742, 0, x_741); -lean_ctor_set(x_742, 1, x_740); -x_743 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; -x_744 = lean_array_push(x_743, x_742); -x_745 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; -x_746 = lean_array_push(x_744, x_745); -x_747 = l_Lean_Parser_Term_paren___elambda__1___closed__1; -x_748 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_748, 0, x_747); -lean_ctor_set(x_748, 1, x_746); -x_749 = lean_array_push(x_699, x_727); -x_750 = lean_array_push(x_749, x_748); -x_751 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_751, 0, x_714); -lean_ctor_set(x_751, 1, x_750); -x_752 = l_Nat_repr(x_438); -x_753 = l_Lean_numLitKind; -x_754 = l_Lean_mkStxLit(x_753, x_752, x_693); -x_755 = l_Lean_FileMap_ofString___closed__1; -x_756 = lean_array_push(x_755, x_754); -x_757 = l_Lean_Parser_Term_num___elambda__1___closed__1; -x_758 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_758, 0, x_757); -lean_ctor_set(x_758, 1, x_756); -x_759 = l_Lean_Parser_declareBuiltinParser___closed__8; -x_760 = lean_array_push(x_759, x_751); -x_761 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__35; -x_762 = lean_array_push(x_760, x_761); -x_763 = lean_array_push(x_762, x_758); -x_764 = l_Lean_Parser_Term_beq___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_759, x_719); -x_767 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__21; +lean_ctor_set(x_738, 0, x_737); +lean_ctor_set(x_738, 1, x_736); +x_739 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_739, 0, x_738); +lean_ctor_set(x_739, 1, x_699); +return x_739; +} +} +else +{ +uint8_t x_740; +lean_dec(x_564); +lean_dec(x_562); +lean_dec(x_482); +lean_dec(x_17); +lean_dec(x_4); +x_740 = !lean_is_exclusive(x_571); +if (x_740 == 0) +{ +return x_571; +} +else +{ +lean_object* x_741; lean_object* x_742; lean_object* x_743; +x_741 = lean_ctor_get(x_571, 0); +x_742 = lean_ctor_get(x_571, 1); +lean_inc(x_742); +lean_inc(x_741); +lean_dec(x_571); +x_743 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_743, 0, x_741); +lean_ctor_set(x_743, 1, x_742); +return x_743; +} +} +} +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; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; +x_744 = lean_ctor_get(x_563, 0); +x_745 = lean_ctor_get(x_563, 1); +x_746 = lean_ctor_get(x_563, 2); +x_747 = lean_ctor_get(x_563, 3); +x_748 = lean_ctor_get(x_563, 4); +x_749 = lean_ctor_get(x_563, 5); +lean_inc(x_749); +lean_inc(x_748); +lean_inc(x_747); +lean_inc(x_746); +lean_inc(x_745); +lean_inc(x_744); +lean_dec(x_563); +x_750 = lean_nat_add(x_749, x_495); +x_751 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_751, 0, x_744); +lean_ctor_set(x_751, 1, x_745); +lean_ctor_set(x_751, 2, x_746); +lean_ctor_set(x_751, 3, x_747); +lean_ctor_set(x_751, 4, x_748); +lean_ctor_set(x_751, 5, x_750); +x_752 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_752, 0, x_497); +lean_ctor_set(x_752, 1, x_498); +lean_ctor_set(x_752, 2, x_499); +lean_ctor_set(x_752, 3, x_500); +lean_ctor_set(x_752, 4, x_501); +lean_ctor_set(x_752, 5, x_502); +lean_ctor_set(x_752, 6, x_503); +lean_ctor_set(x_752, 7, x_504); +lean_ctor_set(x_752, 8, x_505); +lean_ctor_set(x_752, 9, x_749); +lean_ctor_set_uint8(x_752, sizeof(void*)*10, x_506); +x_753 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_566, x_752, x_751); +if (lean_obj_tag(x_753) == 0) +{ +lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; +x_754 = lean_ctor_get(x_753, 0); +lean_inc(x_754); +x_755 = lean_ctor_get(x_753, 1); +lean_inc(x_755); +lean_dec(x_753); +x_756 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_755); +x_757 = lean_ctor_get(x_756, 0); +lean_inc(x_757); +x_758 = lean_ctor_get(x_756, 1); +lean_inc(x_758); +lean_dec(x_756); +x_759 = lean_box(0); +x_760 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; +lean_inc(x_757); +x_761 = lean_name_mk_numeral(x_760, x_757); +x_762 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; +x_763 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; +x_764 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_764, 0, x_759); +lean_ctor_set(x_764, 1, x_762); +lean_ctor_set(x_764, 2, x_761); +lean_ctor_set(x_764, 3, x_763); +x_765 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_766 = lean_array_push(x_765, x_764); +x_767 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; x_768 = lean_array_push(x_766, x_767); -x_769 = lean_array_push(x_768, x_765); -x_770 = l_Lean_Parser_Term_band___elambda__1___closed__2; -x_771 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_771, 0, x_770); -lean_ctor_set(x_771, 1, x_769); -x_772 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_692); -lean_dec(x_4); -x_773 = lean_ctor_get(x_772, 0); -lean_inc(x_773); -x_774 = lean_ctor_get(x_772, 1); -lean_inc(x_774); -if (lean_is_exclusive(x_772)) { - lean_ctor_release(x_772, 0); - lean_ctor_release(x_772, 1); - x_775 = x_772; -} else { - lean_dec_ref(x_772); - x_775 = lean_box(0); -} -x_776 = lean_name_mk_numeral(x_705, x_773); -x_777 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_777, 0, x_693); -lean_ctor_set(x_777, 1, x_707); -lean_ctor_set(x_777, 2, x_776); -lean_ctor_set(x_777, 3, x_443); -x_778 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_769 = l_Lean_Parser_Term_id___elambda__1___closed__2; +x_770 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_770, 0, x_769); +lean_ctor_set(x_770, 1, x_768); +x_771 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +lean_inc(x_757); +x_772 = lean_name_mk_numeral(x_771, x_757); +x_773 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; +x_774 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_774, 0, x_759); +lean_ctor_set(x_774, 1, x_773); +lean_ctor_set(x_774, 2, x_772); +lean_ctor_set(x_774, 3, x_487); +x_775 = lean_array_push(x_765, x_774); +x_776 = lean_array_push(x_775, x_767); +x_777 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_777, 0, x_769); +lean_ctor_set(x_777, 1, x_776); +x_778 = lean_array_push(x_765, x_770); +lean_inc(x_777); x_779 = lean_array_push(x_778, x_777); -x_780 = lean_array_push(x_779, x_701); -x_781 = lean_array_push(x_780, x_701); -x_782 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; -x_783 = lean_array_push(x_781, x_782); -x_784 = lean_array_push(x_783, x_17); -x_785 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_786 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_786, 0, x_785); -lean_ctor_set(x_786, 1, x_784); -x_787 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19; -x_788 = lean_array_push(x_787, x_771); -x_789 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_790 = lean_array_push(x_788, x_789); -x_791 = lean_array_push(x_790, x_518); -x_792 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; -x_793 = lean_array_push(x_791, x_792); -x_794 = lean_array_push(x_793, x_688); -x_795 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_796 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_796, 0, x_795); -lean_ctor_set(x_796, 1, x_794); -x_797 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_798 = lean_array_push(x_797, x_786); -x_799 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_800 = lean_array_push(x_798, x_799); -x_801 = lean_array_push(x_800, x_796); -x_802 = l_Lean_Parser_Term_let___elambda__1___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); -if (lean_is_scalar(x_775)) { - x_804 = lean_alloc_ctor(0, 2, 0); -} else { - x_804 = x_775; -} -lean_ctor_set(x_804, 0, x_803); -lean_ctor_set(x_804, 1, x_774); -return x_804; -} -else -{ -lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; -lean_dec(x_520); -lean_dec(x_518); -lean_dec(x_438); -lean_dec(x_17); -lean_dec(x_4); -x_805 = lean_ctor_get(x_687, 0); -lean_inc(x_805); -x_806 = lean_ctor_get(x_687, 1); -lean_inc(x_806); -if (lean_is_exclusive(x_687)) { - lean_ctor_release(x_687, 0); - lean_ctor_release(x_687, 1); - x_807 = x_687; -} else { - lean_dec_ref(x_687); - x_807 = lean_box(0); -} -if (lean_is_scalar(x_807)) { - x_808 = lean_alloc_ctor(1, 2, 0); -} else { - x_808 = x_807; -} -lean_ctor_set(x_808, 0, x_805); +x_780 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_781 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_781, 0, x_780); +lean_ctor_set(x_781, 1, x_779); +x_782 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_564); +x_783 = lean_array_push(x_765, x_781); +x_784 = lean_array_push(x_783, x_782); +x_785 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_785, 0, x_780); +lean_ctor_set(x_785, 1, x_784); +x_786 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__32; +lean_inc(x_757); +x_787 = lean_name_mk_numeral(x_786, x_757); +x_788 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__30; +x_789 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__34; +x_790 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_790, 0, x_759); +lean_ctor_set(x_790, 1, x_788); +lean_ctor_set(x_790, 2, x_787); +lean_ctor_set(x_790, 3, x_789); +x_791 = lean_array_push(x_765, x_790); +x_792 = lean_array_push(x_791, x_767); +x_793 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_793, 0, x_769); +lean_ctor_set(x_793, 1, x_792); +x_794 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; +x_795 = lean_name_mk_numeral(x_794, x_757); +x_796 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; +x_797 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__37; +x_798 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_798, 0, x_759); +lean_ctor_set(x_798, 1, x_796); +lean_ctor_set(x_798, 2, x_795); +lean_ctor_set(x_798, 3, x_797); +x_799 = lean_array_push(x_765, x_798); +x_800 = lean_array_push(x_799, x_767); +x_801 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_801, 0, x_769); +lean_ctor_set(x_801, 1, x_800); +x_802 = lean_array_push(x_765, x_801); +x_803 = lean_array_push(x_802, x_777); +x_804 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_804, 0, x_780); +lean_ctor_set(x_804, 1, x_803); +x_805 = lean_array_push(x_765, x_804); +x_806 = lean_array_push(x_805, x_767); +x_807 = l_Lean_nullKind___closed__2; +x_808 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_808, 0, x_807); lean_ctor_set(x_808, 1, x_806); -return x_808; -} -} -} -} -else -{ -uint8_t x_809; -lean_dec(x_461); -lean_dec(x_460); -lean_dec(x_459); -lean_dec(x_458); -lean_dec(x_457); -lean_dec(x_456); -lean_dec(x_455); -lean_dec(x_454); -lean_dec(x_453); -lean_dec(x_438); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_17); +x_809 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; +x_810 = lean_array_push(x_809, x_808); +x_811 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; +x_812 = lean_array_push(x_810, x_811); +x_813 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_814 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_814, 0, x_813); +lean_ctor_set(x_814, 1, x_812); +x_815 = lean_array_push(x_765, x_793); +x_816 = lean_array_push(x_815, x_814); +x_817 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_817, 0, x_780); +lean_ctor_set(x_817, 1, x_816); +x_818 = l_Nat_repr(x_482); +x_819 = l_Lean_numLitKind; +x_820 = l_Lean_mkStxLit(x_819, x_818, x_759); +x_821 = l_Lean_FileMap_ofString___closed__1; +x_822 = lean_array_push(x_821, x_820); +x_823 = l_Lean_Parser_Term_num___elambda__1___closed__1; +x_824 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_824, 0, x_823); +lean_ctor_set(x_824, 1, x_822); +x_825 = l_Lean_Parser_declareBuiltinParser___closed__8; +x_826 = lean_array_push(x_825, x_817); +x_827 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__39; +x_828 = lean_array_push(x_826, x_827); +x_829 = lean_array_push(x_828, x_824); +x_830 = l_Lean_Parser_Term_beq___elambda__1___closed__2; +x_831 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_831, 0, x_830); +lean_ctor_set(x_831, 1, x_829); +x_832 = lean_array_push(x_825, x_785); +x_833 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__27; +x_834 = lean_array_push(x_832, x_833); +x_835 = lean_array_push(x_834, x_831); +x_836 = l_Lean_Parser_Term_band___elambda__1___closed__2; +x_837 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_837, 0, x_836); +lean_ctor_set(x_837, 1, x_835); +x_838 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_758); lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_809 = !lean_is_exclusive(x_464); -if (x_809 == 0) -{ -return x_464; -} -else -{ -lean_object* x_810; lean_object* x_811; lean_object* x_812; -x_810 = lean_ctor_get(x_464, 0); -x_811 = lean_ctor_get(x_464, 1); -lean_inc(x_811); -lean_inc(x_810); -lean_dec(x_464); -x_812 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_812, 0, x_810); -lean_ctor_set(x_812, 1, x_811); -return x_812; -} -} -} -else -{ -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; uint8_t x_831; lean_object* x_832; lean_object* x_833; -x_813 = lean_ctor_get(x_447, 0); -x_814 = lean_ctor_get(x_447, 1); -x_815 = lean_ctor_get(x_447, 2); -x_816 = lean_ctor_get(x_447, 3); -x_817 = lean_ctor_get(x_447, 4); -x_818 = lean_ctor_get(x_447, 5); -lean_inc(x_818); -lean_inc(x_817); -lean_inc(x_816); -lean_inc(x_815); -lean_inc(x_814); -lean_inc(x_813); -lean_dec(x_447); -x_819 = lean_unsigned_to_nat(1u); -x_820 = lean_nat_add(x_818, x_819); -x_821 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_821, 0, x_813); -lean_ctor_set(x_821, 1, x_814); -lean_ctor_set(x_821, 2, x_815); -lean_ctor_set(x_821, 3, x_816); -lean_ctor_set(x_821, 4, x_817); -lean_ctor_set(x_821, 5, x_820); -x_822 = lean_ctor_get(x_4, 0); -lean_inc(x_822); -x_823 = lean_ctor_get(x_4, 1); -lean_inc(x_823); -x_824 = lean_ctor_get(x_4, 2); -lean_inc(x_824); -x_825 = lean_ctor_get(x_4, 3); -lean_inc(x_825); -x_826 = lean_ctor_get(x_4, 4); -lean_inc(x_826); -x_827 = lean_ctor_get(x_4, 5); -lean_inc(x_827); -x_828 = lean_ctor_get(x_4, 6); -lean_inc(x_828); -x_829 = lean_ctor_get(x_4, 7); -lean_inc(x_829); -x_830 = lean_ctor_get(x_4, 8); -lean_inc(x_830); -x_831 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -lean_inc(x_830); -lean_inc(x_829); -lean_inc(x_828); -lean_inc(x_827); -lean_inc(x_826); -lean_inc(x_825); -lean_inc(x_824); -lean_inc(x_823); -lean_inc(x_822); -x_832 = lean_alloc_ctor(0, 10, 1); -lean_ctor_set(x_832, 0, x_822); -lean_ctor_set(x_832, 1, x_823); -lean_ctor_set(x_832, 2, x_824); -lean_ctor_set(x_832, 3, x_825); -lean_ctor_set(x_832, 4, x_826); -lean_ctor_set(x_832, 5, x_827); -lean_ctor_set(x_832, 6, x_828); -lean_ctor_set(x_832, 7, x_829); -lean_ctor_set(x_832, 8, x_830); -lean_ctor_set(x_832, 9, x_818); -lean_ctor_set_uint8(x_832, sizeof(void*)*10, x_831); -lean_inc(x_1); -x_833 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_448, x_446, x_832, x_821); -if (lean_obj_tag(x_833) == 0) -{ -lean_object* x_834; -x_834 = lean_ctor_get(x_25, 0); -lean_inc(x_834); -if (lean_obj_tag(x_834) == 0) -{ -lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; -lean_dec(x_830); -lean_dec(x_829); -lean_dec(x_828); -lean_dec(x_827); -lean_dec(x_826); -lean_dec(x_825); -lean_dec(x_824); -lean_dec(x_823); -lean_dec(x_822); -lean_dec(x_438); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_2); -lean_dec(x_1); -x_835 = lean_ctor_get(x_833, 0); -lean_inc(x_835); -x_836 = lean_ctor_get(x_833, 1); -lean_inc(x_836); -lean_dec(x_833); -x_837 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_836); -lean_dec(x_4); -x_838 = lean_ctor_get(x_837, 0); -lean_inc(x_838); -x_839 = lean_ctor_get(x_837, 1); +x_839 = lean_ctor_get(x_838, 0); lean_inc(x_839); -if (lean_is_exclusive(x_837)) { - lean_ctor_release(x_837, 0); - lean_ctor_release(x_837, 1); - x_840 = x_837; +x_840 = lean_ctor_get(x_838, 1); +lean_inc(x_840); +if (lean_is_exclusive(x_838)) { + lean_ctor_release(x_838, 0); + lean_ctor_release(x_838, 1); + x_841 = x_838; } else { - lean_dec_ref(x_837); - x_840 = lean_box(0); + lean_dec_ref(x_838); + x_841 = lean_box(0); } -x_841 = lean_box(0); -x_842 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; -x_843 = lean_name_mk_numeral(x_842, x_838); -x_844 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; -x_845 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_845, 0, x_841); -lean_ctor_set(x_845, 1, x_844); -lean_ctor_set(x_845, 2, x_843); -lean_ctor_set(x_845, 3, x_443); -x_846 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; -x_847 = lean_array_push(x_846, x_845); -x_848 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +lean_inc(x_839); +x_842 = lean_name_mk_numeral(x_771, x_839); +x_843 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_843, 0, x_759); +lean_ctor_set(x_843, 1, x_773); +lean_ctor_set(x_843, 2, x_842); +lean_ctor_set(x_843, 3, x_487); +x_844 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_845 = lean_array_push(x_844, x_843); +x_846 = lean_array_push(x_845, x_767); +x_847 = lean_array_push(x_846, x_767); +x_848 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_849 = lean_array_push(x_847, x_848); -x_850 = lean_array_push(x_849, x_848); -x_851 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; -x_852 = lean_array_push(x_850, x_851); -x_853 = lean_array_push(x_852, x_17); -x_854 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_855 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_855, 0, x_854); -lean_ctor_set(x_855, 1, x_853); -x_856 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_857 = lean_array_push(x_856, x_855); -x_858 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_859 = lean_array_push(x_857, x_858); -x_860 = lean_array_push(x_859, x_835); -x_861 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_862 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_862, 0, x_861); -lean_ctor_set(x_862, 1, x_860); -if (lean_is_scalar(x_840)) { - x_863 = lean_alloc_ctor(0, 2, 0); +x_850 = lean_array_push(x_849, x_17); +x_851 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_852 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_852, 0, x_851); +lean_ctor_set(x_852, 1, x_850); +x_853 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; +x_854 = lean_name_mk_numeral(x_853, x_839); +x_855 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_856 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_857 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_857, 0, x_759); +lean_ctor_set(x_857, 1, x_855); +lean_ctor_set(x_857, 2, x_854); +lean_ctor_set(x_857, 3, x_856); +x_858 = lean_array_push(x_765, x_857); +x_859 = lean_array_push(x_858, x_767); +x_860 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_860, 0, x_769); +lean_ctor_set(x_860, 1, x_859); +x_861 = lean_array_push(x_765, x_860); +x_862 = lean_array_push(x_861, x_837); +x_863 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_863, 0, x_780); +lean_ctor_set(x_863, 1, x_862); +x_864 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25; +x_865 = lean_array_push(x_864, x_863); +x_866 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_867 = lean_array_push(x_865, x_866); +x_868 = lean_array_push(x_867, x_562); +x_869 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_870 = lean_array_push(x_868, x_869); +x_871 = lean_array_push(x_870, x_754); +x_872 = l_Lean_Parser_Term_if___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 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_875 = lean_array_push(x_874, x_852); +x_876 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_877 = lean_array_push(x_875, x_876); +x_878 = lean_array_push(x_877, x_873); +x_879 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_880 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_880, 0, x_879); +lean_ctor_set(x_880, 1, x_878); +if (lean_is_scalar(x_841)) { + x_881 = lean_alloc_ctor(0, 2, 0); } else { - x_863 = x_840; + x_881 = x_841; } -lean_ctor_set(x_863, 0, x_862); -lean_ctor_set(x_863, 1, x_839); -return x_863; +lean_ctor_set(x_881, 0, x_880); +lean_ctor_set(x_881, 1, x_840); +return x_881; } else { -lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; -x_864 = lean_ctor_get(x_833, 0); -lean_inc(x_864); -x_865 = lean_ctor_get(x_833, 1); -lean_inc(x_865); -lean_dec(x_833); -x_866 = lean_ctor_get(x_834, 0); -lean_inc(x_866); -lean_dec(x_834); -x_867 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__11(x_25, x_21, x_443); -lean_dec(x_25); -x_868 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_867); -x_869 = lean_ctor_get(x_865, 0); -lean_inc(x_869); -x_870 = lean_ctor_get(x_865, 1); -lean_inc(x_870); -x_871 = lean_ctor_get(x_865, 2); -lean_inc(x_871); -x_872 = lean_ctor_get(x_865, 3); -lean_inc(x_872); -x_873 = lean_ctor_get(x_865, 4); -lean_inc(x_873); -x_874 = lean_ctor_get(x_865, 5); -lean_inc(x_874); -if (lean_is_exclusive(x_865)) { - lean_ctor_release(x_865, 0); - lean_ctor_release(x_865, 1); - lean_ctor_release(x_865, 2); - lean_ctor_release(x_865, 3); - lean_ctor_release(x_865, 4); - lean_ctor_release(x_865, 5); - x_875 = x_865; -} else { - lean_dec_ref(x_865); - x_875 = lean_box(0); -} -x_876 = lean_nat_add(x_874, x_819); -if (lean_is_scalar(x_875)) { - x_877 = lean_alloc_ctor(0, 6, 0); -} else { - x_877 = x_875; -} -lean_ctor_set(x_877, 0, x_869); -lean_ctor_set(x_877, 1, x_870); -lean_ctor_set(x_877, 2, x_871); -lean_ctor_set(x_877, 3, x_872); -lean_ctor_set(x_877, 4, x_873); -lean_ctor_set(x_877, 5, x_876); -x_878 = lean_alloc_ctor(0, 10, 1); -lean_ctor_set(x_878, 0, x_822); -lean_ctor_set(x_878, 1, x_823); -lean_ctor_set(x_878, 2, x_824); -lean_ctor_set(x_878, 3, x_825); -lean_ctor_set(x_878, 4, x_826); -lean_ctor_set(x_878, 5, x_827); -lean_ctor_set(x_878, 6, x_828); -lean_ctor_set(x_878, 7, x_829); -lean_ctor_set(x_878, 8, x_830); -lean_ctor_set(x_878, 9, x_874); -lean_ctor_set_uint8(x_878, sizeof(void*)*10, x_831); -x_879 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_868, x_878, x_877); -if (lean_obj_tag(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; 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; -x_880 = lean_ctor_get(x_879, 0); -lean_inc(x_880); -x_881 = lean_ctor_get(x_879, 1); -lean_inc(x_881); -lean_dec(x_879); -x_882 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_881); -x_883 = lean_ctor_get(x_882, 0); -lean_inc(x_883); -x_884 = lean_ctor_get(x_882, 1); -lean_inc(x_884); -lean_dec(x_882); -x_885 = lean_box(0); -x_886 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; -lean_inc(x_883); -x_887 = lean_name_mk_numeral(x_886, x_883); -x_888 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -x_889 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; -x_890 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_890, 0, x_885); -lean_ctor_set(x_890, 1, x_888); -lean_ctor_set(x_890, 2, x_887); -lean_ctor_set(x_890, 3, x_889); -x_891 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; -x_892 = lean_array_push(x_891, x_890); -x_893 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; -x_894 = lean_array_push(x_892, x_893); -x_895 = l_Lean_Parser_Term_id___elambda__1___closed__2; -x_896 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_896, 0, x_895); -lean_ctor_set(x_896, 1, x_894); -x_897 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7; -lean_inc(x_883); -x_898 = lean_name_mk_numeral(x_897, x_883); -x_899 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6; -x_900 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_900, 0, x_885); -lean_ctor_set(x_900, 1, x_899); -lean_ctor_set(x_900, 2, x_898); -lean_ctor_set(x_900, 3, x_443); -x_901 = lean_array_push(x_891, x_900); -x_902 = lean_array_push(x_901, x_893); -x_903 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_903, 0, x_895); -lean_ctor_set(x_903, 1, x_902); -x_904 = lean_array_push(x_891, x_896); -lean_inc(x_903); -x_905 = lean_array_push(x_904, x_903); -x_906 = l_Lean_Parser_Term_app___elambda__1___closed__2; -x_907 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_907, 0, x_906); -lean_ctor_set(x_907, 1, x_905); -x_908 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_866); -x_909 = lean_array_push(x_891, x_907); -x_910 = lean_array_push(x_909, x_908); -x_911 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_911, 0, x_906); -lean_ctor_set(x_911, 1, x_910); -x_912 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__28; -lean_inc(x_883); -x_913 = lean_name_mk_numeral(x_912, x_883); -x_914 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; -x_915 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__30; -x_916 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_916, 0, x_885); -lean_ctor_set(x_916, 1, x_914); -lean_ctor_set(x_916, 2, x_913); -lean_ctor_set(x_916, 3, x_915); -x_917 = lean_array_push(x_891, x_916); -x_918 = lean_array_push(x_917, x_893); -x_919 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_919, 0, x_895); -lean_ctor_set(x_919, 1, x_918); -x_920 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; -x_921 = lean_name_mk_numeral(x_920, x_883); -x_922 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; -x_923 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__33; -x_924 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_924, 0, x_885); -lean_ctor_set(x_924, 1, x_922); -lean_ctor_set(x_924, 2, x_921); -lean_ctor_set(x_924, 3, x_923); -x_925 = lean_array_push(x_891, x_924); -x_926 = lean_array_push(x_925, x_893); -x_927 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_927, 0, x_895); -lean_ctor_set(x_927, 1, x_926); -x_928 = lean_array_push(x_891, x_927); -x_929 = lean_array_push(x_928, x_903); -x_930 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_930, 0, x_906); -lean_ctor_set(x_930, 1, x_929); -x_931 = lean_array_push(x_891, x_930); -x_932 = lean_array_push(x_931, x_893); -x_933 = l_Lean_nullKind___closed__2; -x_934 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_934, 0, x_933); -lean_ctor_set(x_934, 1, x_932); -x_935 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64; -x_936 = lean_array_push(x_935, x_934); -x_937 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; -x_938 = lean_array_push(x_936, x_937); -x_939 = l_Lean_Parser_Term_paren___elambda__1___closed__1; -x_940 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_940, 0, x_939); -lean_ctor_set(x_940, 1, x_938); -x_941 = lean_array_push(x_891, x_919); -x_942 = lean_array_push(x_941, x_940); -x_943 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_943, 0, x_906); -lean_ctor_set(x_943, 1, x_942); -x_944 = l_Nat_repr(x_438); -x_945 = l_Lean_numLitKind; -x_946 = l_Lean_mkStxLit(x_945, x_944, x_885); -x_947 = l_Lean_FileMap_ofString___closed__1; -x_948 = lean_array_push(x_947, x_946); -x_949 = l_Lean_Parser_Term_num___elambda__1___closed__1; -x_950 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_950, 0, x_949); -lean_ctor_set(x_950, 1, x_948); -x_951 = l_Lean_Parser_declareBuiltinParser___closed__8; -x_952 = lean_array_push(x_951, x_943); -x_953 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__35; -x_954 = lean_array_push(x_952, x_953); -x_955 = lean_array_push(x_954, x_950); -x_956 = l_Lean_Parser_Term_beq___elambda__1___closed__2; -x_957 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_957, 0, x_956); -lean_ctor_set(x_957, 1, x_955); -x_958 = lean_array_push(x_951, x_911); -x_959 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__21; -x_960 = lean_array_push(x_958, x_959); -x_961 = lean_array_push(x_960, x_957); -x_962 = l_Lean_Parser_Term_band___elambda__1___closed__2; -x_963 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_963, 0, x_962); -lean_ctor_set(x_963, 1, x_961); -x_964 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_884); -lean_dec(x_4); -x_965 = lean_ctor_get(x_964, 0); -lean_inc(x_965); -x_966 = lean_ctor_get(x_964, 1); -lean_inc(x_966); -if (lean_is_exclusive(x_964)) { - lean_ctor_release(x_964, 0); - lean_ctor_release(x_964, 1); - x_967 = x_964; -} else { - lean_dec_ref(x_964); - x_967 = lean_box(0); -} -x_968 = lean_name_mk_numeral(x_897, x_965); -x_969 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_969, 0, x_885); -lean_ctor_set(x_969, 1, x_899); -lean_ctor_set(x_969, 2, x_968); -lean_ctor_set(x_969, 3, x_443); -x_970 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; -x_971 = lean_array_push(x_970, x_969); -x_972 = lean_array_push(x_971, x_893); -x_973 = lean_array_push(x_972, x_893); -x_974 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; -x_975 = lean_array_push(x_973, x_974); -x_976 = lean_array_push(x_975, x_17); -x_977 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_978 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_978, 0, x_977); -lean_ctor_set(x_978, 1, x_976); -x_979 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__19; -x_980 = lean_array_push(x_979, x_963); -x_981 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_982 = lean_array_push(x_980, x_981); -x_983 = lean_array_push(x_982, x_864); -x_984 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; -x_985 = lean_array_push(x_983, x_984); -x_986 = lean_array_push(x_985, x_880); -x_987 = l_Lean_Parser_Term_if___elambda__1___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 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10; -x_990 = lean_array_push(x_989, x_978); -x_991 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; -x_992 = lean_array_push(x_990, x_991); -x_993 = lean_array_push(x_992, x_988); -x_994 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_995 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_995, 0, x_994); -lean_ctor_set(x_995, 1, x_993); -if (lean_is_scalar(x_967)) { - x_996 = lean_alloc_ctor(0, 2, 0); -} else { - x_996 = x_967; -} -lean_ctor_set(x_996, 0, x_995); -lean_ctor_set(x_996, 1, x_966); -return x_996; -} -else -{ -lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; -lean_dec(x_866); -lean_dec(x_864); -lean_dec(x_438); +lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; +lean_dec(x_564); +lean_dec(x_562); +lean_dec(x_482); lean_dec(x_17); lean_dec(x_4); -x_997 = lean_ctor_get(x_879, 0); -lean_inc(x_997); -x_998 = lean_ctor_get(x_879, 1); -lean_inc(x_998); -if (lean_is_exclusive(x_879)) { - lean_ctor_release(x_879, 0); - lean_ctor_release(x_879, 1); - x_999 = x_879; +x_882 = lean_ctor_get(x_753, 0); +lean_inc(x_882); +x_883 = lean_ctor_get(x_753, 1); +lean_inc(x_883); +if (lean_is_exclusive(x_753)) { + lean_ctor_release(x_753, 0); + lean_ctor_release(x_753, 1); + x_884 = x_753; } else { - lean_dec_ref(x_879); - x_999 = lean_box(0); + lean_dec_ref(x_753); + x_884 = lean_box(0); } -if (lean_is_scalar(x_999)) { - x_1000 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_884)) { + x_885 = lean_alloc_ctor(1, 2, 0); } else { - x_1000 = x_999; + x_885 = x_884; +} +lean_ctor_set(x_885, 0, x_882); +lean_ctor_set(x_885, 1, x_883); +return x_885; } -lean_ctor_set(x_1000, 0, x_997); -lean_ctor_set(x_1000, 1, x_998); -return x_1000; } } } else { -lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; -lean_dec(x_830); -lean_dec(x_829); -lean_dec(x_828); -lean_dec(x_827); -lean_dec(x_826); -lean_dec(x_825); -lean_dec(x_824); -lean_dec(x_823); -lean_dec(x_822); -lean_dec(x_438); +uint8_t x_886; +lean_dec(x_505); +lean_dec(x_504); +lean_dec(x_503); +lean_dec(x_502); +lean_dec(x_501); +lean_dec(x_500); +lean_dec(x_499); +lean_dec(x_498); +lean_dec(x_497); +lean_dec(x_482); lean_dec(x_25); lean_dec(x_21); lean_dec(x_17); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_1001 = lean_ctor_get(x_833, 0); -lean_inc(x_1001); -x_1002 = lean_ctor_get(x_833, 1); -lean_inc(x_1002); -if (lean_is_exclusive(x_833)) { - lean_ctor_release(x_833, 0); - lean_ctor_release(x_833, 1); - x_1003 = x_833; -} else { - lean_dec_ref(x_833); - x_1003 = lean_box(0); +x_886 = !lean_is_exclusive(x_508); +if (x_886 == 0) +{ +return x_508; } -if (lean_is_scalar(x_1003)) { - x_1004 = lean_alloc_ctor(1, 2, 0); -} else { - x_1004 = x_1003; -} -lean_ctor_set(x_1004, 0, x_1001); -lean_ctor_set(x_1004, 1, x_1002); -return x_1004; +else +{ +lean_object* x_887; lean_object* x_888; lean_object* x_889; +x_887 = lean_ctor_get(x_508, 0); +x_888 = lean_ctor_get(x_508, 1); +lean_inc(x_888); +lean_inc(x_887); +lean_dec(x_508); +x_889 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_889, 0, x_887); +lean_ctor_set(x_889, 1, x_888); +return x_889; } } } else { -uint8_t x_1005; -lean_dec(x_441); -lean_dec(x_438); +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; uint8_t x_908; lean_object* x_909; lean_object* x_910; +x_890 = lean_ctor_get(x_491, 0); +x_891 = lean_ctor_get(x_491, 1); +x_892 = lean_ctor_get(x_491, 2); +x_893 = lean_ctor_get(x_491, 3); +x_894 = lean_ctor_get(x_491, 4); +x_895 = lean_ctor_get(x_491, 5); +lean_inc(x_895); +lean_inc(x_894); +lean_inc(x_893); +lean_inc(x_892); +lean_inc(x_891); +lean_inc(x_890); +lean_dec(x_491); +x_896 = lean_unsigned_to_nat(1u); +x_897 = lean_nat_add(x_895, x_896); +x_898 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_898, 0, x_890); +lean_ctor_set(x_898, 1, x_891); +lean_ctor_set(x_898, 2, x_892); +lean_ctor_set(x_898, 3, x_893); +lean_ctor_set(x_898, 4, x_894); +lean_ctor_set(x_898, 5, x_897); +x_899 = lean_ctor_get(x_4, 0); +lean_inc(x_899); +x_900 = lean_ctor_get(x_4, 1); +lean_inc(x_900); +x_901 = lean_ctor_get(x_4, 2); +lean_inc(x_901); +x_902 = lean_ctor_get(x_4, 3); +lean_inc(x_902); +x_903 = lean_ctor_get(x_4, 4); +lean_inc(x_903); +x_904 = lean_ctor_get(x_4, 5); +lean_inc(x_904); +x_905 = lean_ctor_get(x_4, 6); +lean_inc(x_905); +x_906 = lean_ctor_get(x_4, 7); +lean_inc(x_906); +x_907 = lean_ctor_get(x_4, 8); +lean_inc(x_907); +x_908 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +lean_inc(x_907); +lean_inc(x_906); +lean_inc(x_905); +lean_inc(x_904); +lean_inc(x_903); +lean_inc(x_902); +lean_inc(x_901); +lean_inc(x_900); +lean_inc(x_899); +x_909 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_909, 0, x_899); +lean_ctor_set(x_909, 1, x_900); +lean_ctor_set(x_909, 2, x_901); +lean_ctor_set(x_909, 3, x_902); +lean_ctor_set(x_909, 4, x_903); +lean_ctor_set(x_909, 5, x_904); +lean_ctor_set(x_909, 6, x_905); +lean_ctor_set(x_909, 7, x_906); +lean_ctor_set(x_909, 8, x_907); +lean_ctor_set(x_909, 9, x_895); +lean_ctor_set_uint8(x_909, sizeof(void*)*10, x_908); +lean_inc(x_1); +x_910 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_492, x_490, x_909, x_898); +if (lean_obj_tag(x_910) == 0) +{ +lean_object* x_911; +x_911 = lean_ctor_get(x_25, 0); +lean_inc(x_911); +if (lean_obj_tag(x_911) == 0) +{ +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_dec(x_907); +lean_dec(x_906); +lean_dec(x_905); +lean_dec(x_904); +lean_dec(x_903); +lean_dec(x_902); +lean_dec(x_901); +lean_dec(x_900); +lean_dec(x_899); +lean_dec(x_482); +lean_dec(x_25); +lean_dec(x_21); +lean_dec(x_2); +lean_dec(x_1); +x_912 = lean_ctor_get(x_910, 0); +lean_inc(x_912); +x_913 = lean_ctor_get(x_910, 1); +lean_inc(x_913); +lean_dec(x_910); +x_914 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_913); +lean_dec(x_4); +x_915 = lean_ctor_get(x_914, 0); +lean_inc(x_915); +x_916 = lean_ctor_get(x_914, 1); +lean_inc(x_916); +if (lean_is_exclusive(x_914)) { + lean_ctor_release(x_914, 0); + lean_ctor_release(x_914, 1); + x_917 = x_914; +} else { + lean_dec_ref(x_914); + x_917 = lean_box(0); +} +x_918 = lean_box(0); +x_919 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_920 = lean_name_mk_numeral(x_919, x_915); +x_921 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; +x_922 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_922, 0, x_918); +lean_ctor_set(x_922, 1, x_921); +lean_ctor_set(x_922, 2, x_920); +lean_ctor_set(x_922, 3, x_487); +x_923 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_924 = lean_array_push(x_923, x_922); +x_925 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_926 = lean_array_push(x_924, x_925); +x_927 = lean_array_push(x_926, x_925); +x_928 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_929 = lean_array_push(x_927, x_928); +x_930 = lean_array_push(x_929, x_17); +x_931 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_932 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_932, 0, x_931); +lean_ctor_set(x_932, 1, x_930); +x_933 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_934 = lean_array_push(x_933, x_932); +x_935 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_936 = lean_array_push(x_934, x_935); +x_937 = lean_array_push(x_936, x_912); +x_938 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_939 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_939, 0, x_938); +lean_ctor_set(x_939, 1, x_937); +if (lean_is_scalar(x_917)) { + x_940 = lean_alloc_ctor(0, 2, 0); +} else { + x_940 = x_917; +} +lean_ctor_set(x_940, 0, x_939); +lean_ctor_set(x_940, 1, x_916); +return x_940; +} +else +{ +lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; +x_941 = lean_ctor_get(x_910, 0); +lean_inc(x_941); +x_942 = lean_ctor_get(x_910, 1); +lean_inc(x_942); +lean_dec(x_910); +x_943 = lean_ctor_get(x_911, 0); +lean_inc(x_943); +lean_dec(x_911); +x_944 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__11(x_25, x_21, x_487); +lean_dec(x_25); +x_945 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_944); +x_946 = lean_ctor_get(x_942, 0); +lean_inc(x_946); +x_947 = lean_ctor_get(x_942, 1); +lean_inc(x_947); +x_948 = lean_ctor_get(x_942, 2); +lean_inc(x_948); +x_949 = lean_ctor_get(x_942, 3); +lean_inc(x_949); +x_950 = lean_ctor_get(x_942, 4); +lean_inc(x_950); +x_951 = lean_ctor_get(x_942, 5); +lean_inc(x_951); +if (lean_is_exclusive(x_942)) { + lean_ctor_release(x_942, 0); + lean_ctor_release(x_942, 1); + lean_ctor_release(x_942, 2); + lean_ctor_release(x_942, 3); + lean_ctor_release(x_942, 4); + lean_ctor_release(x_942, 5); + x_952 = x_942; +} else { + lean_dec_ref(x_942); + x_952 = lean_box(0); +} +x_953 = lean_nat_add(x_951, x_896); +if (lean_is_scalar(x_952)) { + x_954 = lean_alloc_ctor(0, 6, 0); +} else { + x_954 = x_952; +} +lean_ctor_set(x_954, 0, x_946); +lean_ctor_set(x_954, 1, x_947); +lean_ctor_set(x_954, 2, x_948); +lean_ctor_set(x_954, 3, x_949); +lean_ctor_set(x_954, 4, x_950); +lean_ctor_set(x_954, 5, x_953); +x_955 = lean_alloc_ctor(0, 10, 1); +lean_ctor_set(x_955, 0, x_899); +lean_ctor_set(x_955, 1, x_900); +lean_ctor_set(x_955, 2, x_901); +lean_ctor_set(x_955, 3, x_902); +lean_ctor_set(x_955, 4, x_903); +lean_ctor_set(x_955, 5, x_904); +lean_ctor_set(x_955, 6, x_905); +lean_ctor_set(x_955, 7, x_906); +lean_ctor_set(x_955, 8, x_907); +lean_ctor_set(x_955, 9, x_951); +lean_ctor_set_uint8(x_955, sizeof(void*)*10, x_908); +x_956 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_945, x_955, x_954); +if (lean_obj_tag(x_956) == 0) +{ +lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; +x_957 = lean_ctor_get(x_956, 0); +lean_inc(x_957); +x_958 = lean_ctor_get(x_956, 1); +lean_inc(x_958); +lean_dec(x_956); +x_959 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_958); +x_960 = lean_ctor_get(x_959, 0); +lean_inc(x_960); +x_961 = lean_ctor_get(x_959, 1); +lean_inc(x_961); +lean_dec(x_959); +x_962 = lean_box(0); +x_963 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; +lean_inc(x_960); +x_964 = lean_name_mk_numeral(x_963, x_960); +x_965 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; +x_966 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; +x_967 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_967, 0, x_962); +lean_ctor_set(x_967, 1, x_965); +lean_ctor_set(x_967, 2, x_964); +lean_ctor_set(x_967, 3, x_966); +x_968 = l_Array_iterateMAux___main___at_Lean_mkAppStx___spec__1___closed__1; +x_969 = lean_array_push(x_968, x_967); +x_970 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_971 = lean_array_push(x_969, x_970); +x_972 = l_Lean_Parser_Term_id___elambda__1___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_Quotation_7__getHeadInfo___elambda__3___closed__7; +lean_inc(x_960); +x_975 = lean_name_mk_numeral(x_974, x_960); +x_976 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6; +x_977 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_977, 0, x_962); +lean_ctor_set(x_977, 1, x_976); +lean_ctor_set(x_977, 2, x_975); +lean_ctor_set(x_977, 3, x_487); +x_978 = lean_array_push(x_968, x_977); +x_979 = lean_array_push(x_978, x_970); +x_980 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_980, 0, x_972); +lean_ctor_set(x_980, 1, x_979); +x_981 = lean_array_push(x_968, x_973); +lean_inc(x_980); +x_982 = lean_array_push(x_981, x_980); +x_983 = l_Lean_Parser_Term_app___elambda__1___closed__2; +x_984 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_984, 0, x_983); +lean_ctor_set(x_984, 1, x_982); +x_985 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_943); +x_986 = lean_array_push(x_968, x_984); +x_987 = lean_array_push(x_986, x_985); +x_988 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_988, 0, x_983); +lean_ctor_set(x_988, 1, x_987); +x_989 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__32; +lean_inc(x_960); +x_990 = lean_name_mk_numeral(x_989, x_960); +x_991 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__30; +x_992 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__34; +x_993 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_993, 0, x_962); +lean_ctor_set(x_993, 1, x_991); +lean_ctor_set(x_993, 2, x_990); +lean_ctor_set(x_993, 3, x_992); +x_994 = lean_array_push(x_968, x_993); +x_995 = lean_array_push(x_994, x_970); +x_996 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_996, 0, x_972); +lean_ctor_set(x_996, 1, x_995); +x_997 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; +x_998 = lean_name_mk_numeral(x_997, x_960); +x_999 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; +x_1000 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__37; +x_1001 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1001, 0, x_962); +lean_ctor_set(x_1001, 1, x_999); +lean_ctor_set(x_1001, 2, x_998); +lean_ctor_set(x_1001, 3, x_1000); +x_1002 = lean_array_push(x_968, x_1001); +x_1003 = lean_array_push(x_1002, x_970); +x_1004 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1004, 0, x_972); +lean_ctor_set(x_1004, 1, x_1003); +x_1005 = lean_array_push(x_968, x_1004); +x_1006 = lean_array_push(x_1005, x_980); +x_1007 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1007, 0, x_983); +lean_ctor_set(x_1007, 1, x_1006); +x_1008 = lean_array_push(x_968, x_1007); +x_1009 = lean_array_push(x_1008, x_970); +x_1010 = l_Lean_nullKind___closed__2; +x_1011 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1011, 0, x_1010); +lean_ctor_set(x_1011, 1, x_1009); +x_1012 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66; +x_1013 = lean_array_push(x_1012, x_1011); +x_1014 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; +x_1015 = lean_array_push(x_1013, x_1014); +x_1016 = l_Lean_Parser_Term_paren___elambda__1___closed__1; +x_1017 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1017, 0, x_1016); +lean_ctor_set(x_1017, 1, x_1015); +x_1018 = lean_array_push(x_968, x_996); +x_1019 = lean_array_push(x_1018, x_1017); +x_1020 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1020, 0, x_983); +lean_ctor_set(x_1020, 1, x_1019); +x_1021 = l_Nat_repr(x_482); +x_1022 = l_Lean_numLitKind; +x_1023 = l_Lean_mkStxLit(x_1022, x_1021, x_962); +x_1024 = l_Lean_FileMap_ofString___closed__1; +x_1025 = lean_array_push(x_1024, x_1023); +x_1026 = l_Lean_Parser_Term_num___elambda__1___closed__1; +x_1027 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1027, 0, x_1026); +lean_ctor_set(x_1027, 1, x_1025); +x_1028 = l_Lean_Parser_declareBuiltinParser___closed__8; +x_1029 = lean_array_push(x_1028, x_1020); +x_1030 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__39; +x_1031 = lean_array_push(x_1029, x_1030); +x_1032 = lean_array_push(x_1031, x_1027); +x_1033 = l_Lean_Parser_Term_beq___elambda__1___closed__2; +x_1034 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1034, 0, x_1033); +lean_ctor_set(x_1034, 1, x_1032); +x_1035 = lean_array_push(x_1028, x_988); +x_1036 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__27; +x_1037 = lean_array_push(x_1035, x_1036); +x_1038 = lean_array_push(x_1037, x_1034); +x_1039 = l_Lean_Parser_Term_band___elambda__1___closed__2; +x_1040 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1040, 0, x_1039); +lean_ctor_set(x_1040, 1, x_1038); +x_1041 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_961); +lean_dec(x_4); +x_1042 = lean_ctor_get(x_1041, 0); +lean_inc(x_1042); +x_1043 = lean_ctor_get(x_1041, 1); +lean_inc(x_1043); +if (lean_is_exclusive(x_1041)) { + lean_ctor_release(x_1041, 0); + lean_ctor_release(x_1041, 1); + x_1044 = x_1041; +} else { + lean_dec_ref(x_1041); + x_1044 = lean_box(0); +} +lean_inc(x_1042); +x_1045 = lean_name_mk_numeral(x_974, x_1042); +x_1046 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1046, 0, x_962); +lean_ctor_set(x_1046, 1, x_976); +lean_ctor_set(x_1046, 2, x_1045); +lean_ctor_set(x_1046, 3, x_487); +x_1047 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_1048 = lean_array_push(x_1047, x_1046); +x_1049 = lean_array_push(x_1048, x_970); +x_1050 = lean_array_push(x_1049, x_970); +x_1051 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; +x_1052 = lean_array_push(x_1050, x_1051); +x_1053 = lean_array_push(x_1052, x_17); +x_1054 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_1055 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1055, 0, x_1054); +lean_ctor_set(x_1055, 1, x_1053); +x_1056 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; +x_1057 = lean_name_mk_numeral(x_1056, x_1042); +x_1058 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_1059 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_1060 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1060, 0, x_962); +lean_ctor_set(x_1060, 1, x_1058); +lean_ctor_set(x_1060, 2, x_1057); +lean_ctor_set(x_1060, 3, x_1059); +x_1061 = lean_array_push(x_968, x_1060); +x_1062 = lean_array_push(x_1061, x_970); +x_1063 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1063, 0, x_972); +lean_ctor_set(x_1063, 1, x_1062); +x_1064 = lean_array_push(x_968, x_1063); +x_1065 = lean_array_push(x_1064, x_1040); +x_1066 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1066, 0, x_983); +lean_ctor_set(x_1066, 1, x_1065); +x_1067 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__25; +x_1068 = lean_array_push(x_1067, x_1066); +x_1069 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_1070 = lean_array_push(x_1068, x_1069); +x_1071 = lean_array_push(x_1070, x_941); +x_1072 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_1073 = lean_array_push(x_1071, x_1072); +x_1074 = lean_array_push(x_1073, x_957); +x_1075 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_1076 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1076, 0, x_1075); +lean_ctor_set(x_1076, 1, x_1074); +x_1077 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_1078 = lean_array_push(x_1077, x_1055); +x_1079 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; +x_1080 = lean_array_push(x_1078, x_1079); +x_1081 = lean_array_push(x_1080, x_1076); +x_1082 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_1083 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1083, 0, x_1082); +lean_ctor_set(x_1083, 1, x_1081); +if (lean_is_scalar(x_1044)) { + x_1084 = lean_alloc_ctor(0, 2, 0); +} else { + x_1084 = x_1044; +} +lean_ctor_set(x_1084, 0, x_1083); +lean_ctor_set(x_1084, 1, x_1043); +return x_1084; +} +else +{ +lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; +lean_dec(x_943); +lean_dec(x_941); +lean_dec(x_482); +lean_dec(x_17); +lean_dec(x_4); +x_1085 = lean_ctor_get(x_956, 0); +lean_inc(x_1085); +x_1086 = lean_ctor_get(x_956, 1); +lean_inc(x_1086); +if (lean_is_exclusive(x_956)) { + lean_ctor_release(x_956, 0); + lean_ctor_release(x_956, 1); + x_1087 = x_956; +} else { + lean_dec_ref(x_956); + x_1087 = lean_box(0); +} +if (lean_is_scalar(x_1087)) { + x_1088 = lean_alloc_ctor(1, 2, 0); +} else { + x_1088 = x_1087; +} +lean_ctor_set(x_1088, 0, x_1085); +lean_ctor_set(x_1088, 1, x_1086); +return x_1088; +} +} +} +else +{ +lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; +lean_dec(x_907); +lean_dec(x_906); +lean_dec(x_905); +lean_dec(x_904); +lean_dec(x_903); +lean_dec(x_902); +lean_dec(x_901); +lean_dec(x_900); +lean_dec(x_899); +lean_dec(x_482); +lean_dec(x_25); +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1089 = lean_ctor_get(x_910, 0); +lean_inc(x_1089); +x_1090 = lean_ctor_get(x_910, 1); +lean_inc(x_1090); +if (lean_is_exclusive(x_910)) { + lean_ctor_release(x_910, 0); + lean_ctor_release(x_910, 1); + x_1091 = x_910; +} else { + lean_dec_ref(x_910); + x_1091 = lean_box(0); +} +if (lean_is_scalar(x_1091)) { + x_1092 = lean_alloc_ctor(1, 2, 0); +} else { + x_1092 = x_1091; +} +lean_ctor_set(x_1092, 0, x_1089); +lean_ctor_set(x_1092, 1, x_1090); +return x_1092; +} +} +} +else +{ +uint8_t x_1093; +lean_dec(x_485); +lean_dec(x_482); lean_dec(x_25); lean_dec(x_21); lean_dec(x_18); @@ -11035,23 +11284,23 @@ lean_dec(x_17); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_1005 = !lean_is_exclusive(x_445); -if (x_1005 == 0) +x_1093 = !lean_is_exclusive(x_489); +if (x_1093 == 0) { -return x_445; +return x_489; } else { -lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; -x_1006 = lean_ctor_get(x_445, 0); -x_1007 = lean_ctor_get(x_445, 1); -lean_inc(x_1007); -lean_inc(x_1006); -lean_dec(x_445); -x_1008 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1008, 0, x_1006); -lean_ctor_set(x_1008, 1, x_1007); -return x_1008; +lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; +x_1094 = lean_ctor_get(x_489, 0); +x_1095 = lean_ctor_get(x_489, 1); +lean_inc(x_1095); +lean_inc(x_1094); +lean_dec(x_489); +x_1096 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1096, 0, x_1094); +lean_ctor_set(x_1096, 1, x_1095); +return x_1096; } } } @@ -11140,7 +11389,7 @@ x_6 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x return x_6; } } -lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -11163,7 +11412,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_1, 0); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_2); -x_9 = l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main(x_7, x_2, x_3); +x_9 = l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main(x_7, x_2, x_3); lean_dec(x_7); if (lean_obj_tag(x_9) == 0) { @@ -11173,7 +11422,7 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main___spec__1(x_8, x_2, x_11); +x_12 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main___spec__1(x_8, x_2, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -11263,7 +11512,7 @@ lean_inc(x_27); lean_inc(x_26); lean_dec(x_1); lean_inc(x_2); -x_28 = l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main(x_26, x_2, x_3); +x_28 = l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main(x_26, x_2, x_3); lean_dec(x_26); if (lean_obj_tag(x_28) == 0) { @@ -11273,7 +11522,7 @@ lean_inc(x_29); x_30 = lean_ctor_get(x_28, 1); lean_inc(x_30); lean_dec(x_28); -x_31 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main___spec__1(x_27, x_2, x_30); +x_31 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main___spec__1(x_27, x_2, x_30); if (lean_obj_tag(x_31) == 0) { lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; @@ -11357,7 +11606,7 @@ return x_44; } } } -lean_object* l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 1) @@ -11369,7 +11618,7 @@ if (x_5 == 0) { lean_object* x_6; lean_object* x_7; x_6 = l_Array_toList___rarg(x_4); -x_7 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main___spec__1(x_6, x_2, x_3); +x_7 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main___spec__1(x_6, x_2, x_3); if (lean_obj_tag(x_7) == 0) { uint8_t x_8; @@ -11572,33 +11821,33 @@ return x_60; } } } -lean_object* l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux(x_1, x_2, x_3); lean_dec(x_1); return x_4; } } -lean_object* l___private_Init_Lean_Elab_Quotation_11__getAntiquotVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Elab_Quotation_11__getPatternVars(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -11607,21 +11856,40 @@ lean_inc(x_1); x_5 = l_Lean_Syntax_isOfKind(x_1, x_4); if (x_5 == 0) { -lean_object* x_6; lean_object* x_7; +lean_object* x_6; uint8_t x_7; lean_dec(x_2); +x_6 = l_Lean_Parser_Term_id___elambda__1___closed__2; +lean_inc(x_1); +x_7 = l_Lean_Syntax_isOfKind(x_1, x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; lean_dec(x_1); -x_6 = lean_box(0); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_3); -return x_7; +x_8 = lean_box(0); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_3); +return x_9; } else { -lean_object* x_8; -x_8 = l___private_Init_Lean_Elab_Quotation_10__getAntiquotVarsAux___main(x_1, x_2, x_3); +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_box(0); +x_11 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_11, 0, x_1); +lean_ctor_set(x_11, 1, x_10); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_3); +return x_12; +} +} +else +{ +lean_object* x_13; +x_13 = l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main(x_1, x_2, x_3); lean_dec(x_1); -return x_8; +return x_13; } } } @@ -11648,7 +11916,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_1, 0); x_8 = lean_ctor_get(x_1, 1); lean_inc(x_2); -x_9 = l___private_Init_Lean_Elab_Quotation_11__getAntiquotVars(x_7, x_2, x_3); +x_9 = l___private_Init_Lean_Elab_Quotation_11__getPatternVars(x_7, x_2, x_3); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; lean_object* x_12; @@ -11747,7 +12015,7 @@ lean_inc(x_27); lean_inc(x_26); lean_dec(x_1); lean_inc(x_2); -x_28 = l___private_Init_Lean_Elab_Quotation_11__getAntiquotVars(x_26, x_2, x_3); +x_28 = l___private_Init_Lean_Elab_Quotation_11__getPatternVars(x_26, x_2, x_3); if (lean_obj_tag(x_28) == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; @@ -11914,7 +12182,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_PersistentHashMap_mkCollisionNode___rarg___closed__1; -x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1; +x_2 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1; x_3 = lean_array_push(x_1, x_2); return x_3; } @@ -11999,11 +12267,11 @@ lean_ctor_set(x_40, 1, x_38); x_41 = lean_nat_add(x_34, x_32); lean_dec(x_34); x_42 = lean_mk_empty_array_with_capacity(x_41); -x_43 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55; +x_43 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; x_44 = lean_array_push(x_42, x_43); lean_inc(x_31); x_45 = lean_array_push(x_44, x_31); -x_46 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_46 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_47 = lean_array_push(x_45, x_46); x_48 = l_List_toArrayAux___main___rarg(x_17, x_47); x_49 = l_Lean_Parser_Term_paren___elambda__1___closed__1; @@ -12117,7 +12385,7 @@ x_100 = lean_array_push(x_99, x_77); lean_inc(x_31); x_101 = lean_array_push(x_100, x_31); x_102 = lean_array_push(x_101, x_31); -x_103 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_103 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_104 = lean_array_push(x_102, x_103); x_105 = lean_array_push(x_104, x_97); x_106 = l_List_toArrayAux___main___rarg(x_17, x_105); @@ -12125,10 +12393,10 @@ x_107 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; x_108 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_108, 0, x_107); lean_ctor_set(x_108, 1, x_106); -x_109 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1; +x_109 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1; x_110 = lean_array_push(x_88, x_109); x_111 = lean_array_push(x_110, x_108); -x_112 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_112 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_113 = lean_array_push(x_111, x_112); x_114 = lean_array_push(x_113, x_71); x_115 = l_List_toArrayAux___main___rarg(x_17, x_114); @@ -12191,7 +12459,7 @@ x_144 = lean_array_push(x_143, x_121); lean_inc(x_31); x_145 = lean_array_push(x_144, x_31); x_146 = lean_array_push(x_145, x_31); -x_147 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_147 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_148 = lean_array_push(x_146, x_147); x_149 = lean_array_push(x_148, x_141); x_150 = l_List_toArrayAux___main___rarg(x_17, x_149); @@ -12199,10 +12467,10 @@ x_151 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; x_152 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_152, 0, x_151); lean_ctor_set(x_152, 1, x_150); -x_153 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1; +x_153 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1; x_154 = lean_array_push(x_132, x_153); x_155 = lean_array_push(x_154, x_152); -x_156 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_156 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_157 = lean_array_push(x_155, x_156); x_158 = lean_array_push(x_157, x_71); x_159 = l_List_toArrayAux___main___rarg(x_17, x_158); @@ -12366,7 +12634,7 @@ x_217 = lean_array_push(x_216, x_194); lean_inc(x_31); x_218 = lean_array_push(x_217, x_31); x_219 = lean_array_push(x_218, x_31); -x_220 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_220 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_221 = lean_array_push(x_219, x_220); x_222 = lean_array_push(x_221, x_214); x_223 = l_List_toArrayAux___main___rarg(x_17, x_222); @@ -12374,10 +12642,10 @@ x_224 = l_Lean_Parser_Term_letIdDecl___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 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1; +x_226 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1; x_227 = lean_array_push(x_205, x_226); x_228 = lean_array_push(x_227, x_225); -x_229 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_229 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_230 = lean_array_push(x_228, x_229); x_231 = lean_array_push(x_230, x_187); x_232 = l_List_toArrayAux___main___rarg(x_17, x_231); @@ -12547,7 +12815,7 @@ x_293 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; x_294 = lean_array_push(x_293, x_292); x_295 = lean_array_push(x_294, x_266); x_296 = lean_array_push(x_295, x_266); -x_297 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_297 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_298 = lean_array_push(x_296, x_297); x_299 = lean_array_push(x_298, x_254); x_300 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -12556,7 +12824,7 @@ lean_ctor_set(x_301, 0, x_300); lean_ctor_set(x_301, 1, x_299); x_302 = l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__8; x_303 = lean_array_push(x_302, x_301); -x_304 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_304 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_305 = lean_array_push(x_303, x_304); x_306 = lean_array_push(x_305, x_286); x_307 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -12584,7 +12852,7 @@ x_313 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; x_314 = lean_array_push(x_313, x_312); x_315 = lean_array_push(x_314, x_266); x_316 = lean_array_push(x_315, x_266); -x_317 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_317 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_318 = lean_array_push(x_316, x_317); x_319 = lean_array_push(x_318, x_254); x_320 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -12593,7 +12861,7 @@ lean_ctor_set(x_321, 0, x_320); lean_ctor_set(x_321, 1, x_319); x_322 = l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__8; x_323 = lean_array_push(x_322, x_321); -x_324 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_324 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_325 = lean_array_push(x_323, x_324); x_326 = lean_array_push(x_325, x_286); x_327 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -12720,7 +12988,7 @@ x_363 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; x_364 = lean_array_push(x_363, x_362); x_365 = lean_array_push(x_364, x_266); x_366 = lean_array_push(x_365, x_266); -x_367 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_367 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_368 = lean_array_push(x_366, x_367); x_369 = lean_array_push(x_368, x_254); x_370 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -12729,7 +12997,7 @@ lean_ctor_set(x_371, 0, x_370); lean_ctor_set(x_371, 1, x_369); x_372 = l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__8; x_373 = lean_array_push(x_372, x_371); -x_374 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_374 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_375 = lean_array_push(x_373, x_374); x_376 = lean_array_push(x_375, x_355); x_377 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -12919,7 +13187,7 @@ x_439 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; x_440 = lean_array_push(x_439, x_438); x_441 = lean_array_push(x_440, x_404); x_442 = lean_array_push(x_441, x_404); -x_443 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_443 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_444 = lean_array_push(x_442, x_443); x_445 = lean_array_push(x_444, x_392); x_446 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -12928,7 +13196,7 @@ lean_ctor_set(x_447, 0, x_446); lean_ctor_set(x_447, 1, x_445); x_448 = l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__8; x_449 = lean_array_push(x_448, x_447); -x_450 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_450 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_451 = lean_array_push(x_449, x_450); x_452 = lean_array_push(x_451, x_431); x_453 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -13068,11 +13336,11 @@ lean_ctor_set(x_493, 1, x_491); x_494 = lean_nat_add(x_487, x_485); lean_dec(x_487); x_495 = lean_mk_empty_array_with_capacity(x_494); -x_496 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55; +x_496 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; x_497 = lean_array_push(x_495, x_496); lean_inc(x_484); x_498 = lean_array_push(x_497, x_484); -x_499 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_499 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_500 = lean_array_push(x_498, x_499); x_501 = l_List_toArrayAux___main___rarg(x_470, x_500); x_502 = l_Lean_Parser_Term_paren___elambda__1___closed__1; @@ -13225,7 +13493,7 @@ x_561 = lean_array_push(x_560, x_538); lean_inc(x_484); x_562 = lean_array_push(x_561, x_484); x_563 = lean_array_push(x_562, x_484); -x_564 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_564 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_565 = lean_array_push(x_563, x_564); x_566 = lean_array_push(x_565, x_558); x_567 = l_List_toArrayAux___main___rarg(x_470, x_566); @@ -13233,10 +13501,10 @@ x_568 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; x_569 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_569, 0, x_568); lean_ctor_set(x_569, 1, x_567); -x_570 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1; +x_570 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1; x_571 = lean_array_push(x_549, x_570); x_572 = lean_array_push(x_571, x_569); -x_573 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_573 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_574 = lean_array_push(x_572, x_573); x_575 = lean_array_push(x_574, x_531); x_576 = l_List_toArrayAux___main___rarg(x_470, x_575); @@ -13448,7 +13716,7 @@ x_644 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; x_645 = lean_array_push(x_644, x_643); x_646 = lean_array_push(x_645, x_608); x_647 = lean_array_push(x_646, x_608); -x_648 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_648 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_649 = lean_array_push(x_647, x_648); x_650 = lean_array_push(x_649, x_596); x_651 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -13457,7 +13725,7 @@ lean_ctor_set(x_652, 0, x_651); lean_ctor_set(x_652, 1, x_650); x_653 = l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__8; x_654 = lean_array_push(x_653, x_652); -x_655 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_655 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_656 = lean_array_push(x_654, x_655); x_657 = lean_array_push(x_656, x_636); x_658 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -13609,11 +13877,11 @@ lean_ctor_set(x_700, 1, x_698); x_701 = lean_nat_add(x_694, x_692); lean_dec(x_694); x_702 = lean_mk_empty_array_with_capacity(x_701); -x_703 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__55; +x_703 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__57; x_704 = lean_array_push(x_702, x_703); lean_inc(x_691); x_705 = lean_array_push(x_704, x_691); -x_706 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63; +x_706 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65; x_707 = lean_array_push(x_705, x_706); x_708 = l_List_toArrayAux___main___rarg(x_677, x_707); x_709 = l_Lean_Parser_Term_paren___elambda__1___closed__1; @@ -13771,7 +14039,7 @@ x_769 = lean_array_push(x_768, x_746); lean_inc(x_691); x_770 = lean_array_push(x_769, x_691); x_771 = lean_array_push(x_770, x_691); -x_772 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_772 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_773 = lean_array_push(x_771, x_772); x_774 = lean_array_push(x_773, x_766); x_775 = l_List_toArrayAux___main___rarg(x_677, x_774); @@ -13779,10 +14047,10 @@ x_776 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; x_777 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_777, 0, x_776); lean_ctor_set(x_777, 1, x_775); -x_778 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1; +x_778 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1; x_779 = lean_array_push(x_757, x_778); x_780 = lean_array_push(x_779, x_777); -x_781 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_781 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_782 = lean_array_push(x_780, x_781); x_783 = lean_array_push(x_782, x_739); x_784 = l_List_toArrayAux___main___rarg(x_677, x_783); @@ -13997,7 +14265,7 @@ x_852 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; x_853 = lean_array_push(x_852, x_851); x_854 = lean_array_push(x_853, x_816); x_855 = lean_array_push(x_854, x_816); -x_856 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3; +x_856 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3; x_857 = lean_array_push(x_855, x_856); x_858 = lean_array_push(x_857, x_804); x_859 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; @@ -14006,7 +14274,7 @@ lean_ctor_set(x_860, 0, x_859); lean_ctor_set(x_860, 1, x_858); x_861 = l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__8; x_862 = lean_array_push(x_861, x_860); -x_863 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9; +x_863 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9; x_864 = lean_array_push(x_862, x_863); x_865 = lean_array_push(x_864, x_844); x_866 = l_Lean_Parser_Term_let___elambda__1___closed__2; @@ -14296,48 +14564,21 @@ return x_20; } } } +lean_object* _init_l_Lean_Elab_Term_elabMatchSyntax___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_match__syntax_expand), 3, 0); +return x_1; +} +} lean_object* l_Lean_Elab_Term_elabMatchSyntax(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; -lean_inc(x_3); -x_5 = l_Lean_Elab_Term_match__syntax_expand(x_1, x_3, x_4); -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); -lean_dec(x_5); -x_8 = 1; -x_9 = l_Lean_Elab_Term_elabTerm(x_6, x_2, x_8, x_8, x_3, x_7); -return x_9; -} -else -{ -uint8_t x_10; -lean_dec(x_3); -lean_dec(x_2); -x_10 = !lean_is_exclusive(x_5); -if (x_10 == 0) -{ -return x_5; -} -else -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_5, 0); -x_12 = lean_ctor_get(x_5, 1); -lean_inc(x_12); -lean_inc(x_11); -lean_dec(x_5); -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_11); -lean_ctor_set(x_13, 1, x_12); -return x_13; -} -} +lean_object* x_5; lean_object* x_6; +x_5 = l_Lean_Elab_Term_elabMatchSyntax___closed__1; +x_6 = l_Lean_Elab_Term_adaptExpander(x_5, x_1, x_2, x_3, x_4); +return x_6; } } lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabMatchSyntax___closed__1() { @@ -25324,7 +25565,7 @@ x_6 = l___private_Init_Lean_Elab_Quotation_15__oldRunTermElabM___rarg(x_1, x_5); return x_6; } } -lean_object* l_ReaderT_map___at_Lean_Elab_Term_oldGetAntiquotVars___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_ReaderT_map___at_Lean_Elab_Term_oldGetPatternVars___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; @@ -25381,15 +25622,15 @@ return x_16; } } } -lean_object* l_ReaderT_map___at_Lean_Elab_Term_oldGetAntiquotVars___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_ReaderT_map___at_Lean_Elab_Term_oldGetPatternVars___spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_Elab_Term_oldGetAntiquotVars___spec__1___rarg), 4, 0); +x_3 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_Elab_Term_oldGetPatternVars___spec__1___rarg), 4, 0); return x_3; } } -lean_object* l_List_map___main___at_Lean_Elab_Term_oldGetAntiquotVars___spec__2(lean_object* x_1) { +lean_object* l_List_map___main___at_Lean_Elab_Term_oldGetPatternVars___spec__2(lean_object* x_1) { _start: { if (lean_obj_tag(x_1) == 0) @@ -25410,7 +25651,7 @@ x_5 = lean_ctor_get(x_1, 1); x_6 = lean_unsigned_to_nat(0u); x_7 = l_Lean_Syntax_getIdAt(x_4, x_6); lean_dec(x_4); -x_8 = l_List_map___main___at_Lean_Elab_Term_oldGetAntiquotVars___spec__2(x_5); +x_8 = l_List_map___main___at_Lean_Elab_Term_oldGetPatternVars___spec__2(x_5); lean_ctor_set(x_1, 1, x_8); lean_ctor_set(x_1, 0, x_7); return x_1; @@ -25426,7 +25667,7 @@ lean_dec(x_1); x_11 = lean_unsigned_to_nat(0u); x_12 = l_Lean_Syntax_getIdAt(x_9, x_11); lean_dec(x_9); -x_13 = l_List_map___main___at_Lean_Elab_Term_oldGetAntiquotVars___spec__2(x_10); +x_13 = l_List_map___main___at_Lean_Elab_Term_oldGetPatternVars___spec__2(x_10); x_14 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_14, 0, x_12); lean_ctor_set(x_14, 1, x_13); @@ -25435,18 +25676,18 @@ return x_14; } } } -lean_object* l_Lean_Elab_Term_oldGetAntiquotVars___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Term_oldGetPatternVars___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 = l_List_map___main___at_Lean_Elab_Term_oldGetAntiquotVars___spec__2(x_1); +x_4 = l_List_map___main___at_Lean_Elab_Term_oldGetPatternVars___spec__2(x_1); x_5 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_5, 0, x_4); lean_ctor_set(x_5, 1, x_3); return x_5; } } -lean_object* _init_l_Lean_Elab_Term_oldGetAntiquotVars___closed__1() { +lean_object* _init_l_Lean_Elab_Term_oldGetPatternVars___closed__1() { _start: { lean_object* x_1; @@ -25454,11 +25695,11 @@ x_1 = lean_alloc_closure((void*)(l_List_join___rarg), 1, 0); return x_1; } } -lean_object* _init_l_Lean_Elab_Term_oldGetAntiquotVars___closed__2() { +lean_object* _init_l_Lean_Elab_Term_oldGetPatternVars___closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_oldGetAntiquotVars___lambda__1___boxed), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_oldGetPatternVars___lambda__1___boxed), 3, 0); return x_1; } } @@ -25468,11 +25709,11 @@ _start: lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; x_3 = lean_alloc_closure((void*)(l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___spec__1), 3, 1); lean_closure_set(x_3, 0, x_2); -x_4 = l_Lean_Elab_Term_oldGetAntiquotVars___closed__1; -x_5 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_Elab_Term_oldGetAntiquotVars___spec__1___rarg), 4, 2); +x_4 = l_Lean_Elab_Term_oldGetPatternVars___closed__1; +x_5 = lean_alloc_closure((void*)(l_ReaderT_map___at_Lean_Elab_Term_oldGetPatternVars___spec__1___rarg), 4, 2); lean_closure_set(x_5, 0, x_4); lean_closure_set(x_5, 1, x_3); -x_6 = l_Lean_Elab_Term_oldGetAntiquotVars___closed__2; +x_6 = l_Lean_Elab_Term_oldGetPatternVars___closed__2; x_7 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Term_TermElabM_MonadLog___spec__2___rarg), 4, 2); lean_closure_set(x_7, 0, x_5); lean_closure_set(x_7, 1, x_6); @@ -25480,11 +25721,11 @@ x_8 = l___private_Init_Lean_Elab_Quotation_15__oldRunTermElabM___rarg(x_1, x_7); return x_8; } } -lean_object* l_Lean_Elab_Term_oldGetAntiquotVars___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Elab_Term_oldGetPatternVars___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Elab_Term_oldGetAntiquotVars___lambda__1(x_1, x_2, x_3); +x_4 = l_Lean_Elab_Term_oldGetPatternVars___lambda__1(x_1, x_2, x_3); lean_dec(x_2); return x_4; } @@ -25752,6 +25993,20 @@ l_Lean_Array_HasQuote___rarg___lambda__1___closed__4 = _init_l_Lean_Array_HasQuo lean_mark_persistent(l_Lean_Array_HasQuote___rarg___lambda__1___closed__4); l_Lean_Elab_Term_antiquotKind_x3f___closed__1 = _init_l_Lean_Elab_Term_antiquotKind_x3f___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_antiquotKind_x3f___closed__1); +l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__1 = _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__1(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__1); +l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__2 = _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__2(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__2); +l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__3 = _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__3(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__3); +l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__4 = _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__4(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__4); +l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__5 = _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__5(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__5); +l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__6 = _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__6(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__6); +l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__7 = _init_l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__7(); +lean_mark_persistent(l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__7); l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1 = _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1); l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__2 = _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__2(); @@ -25880,6 +26135,10 @@ l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63 = _init_ lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__63); l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64 = _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__64); +l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65 = _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__65); +l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66 = _init_l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__66); l_Lean_Elab_Term_stxQuot_expand___closed__1 = _init_l_Lean_Elab_Term_stxQuot_expand___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_stxQuot_expand___closed__1); l_Lean_Elab_Term_stxQuot_expand___closed__2 = _init_l_Lean_Elab_Term_stxQuot_expand___closed__2(); @@ -25934,6 +26193,8 @@ l_Lean_Elab_Term_stxQuot_expand___closed__26 = _init_l_Lean_Elab_Term_stxQuot_ex lean_mark_persistent(l_Lean_Elab_Term_stxQuot_expand___closed__26); l_Lean_Elab_Term_stxQuot_expand___closed__27 = _init_l_Lean_Elab_Term_stxQuot_expand___closed__27(); lean_mark_persistent(l_Lean_Elab_Term_stxQuot_expand___closed__27); +l_Lean_Elab_Term_elabStxQuot___closed__1 = _init_l_Lean_Elab_Term_elabStxQuot___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_elabStxQuot___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabStxQuot___closed__2(); @@ -25949,26 +26210,26 @@ l_Lean_Elab_Term_HeadInfo_Inhabited___closed__2 = _init_l_Lean_Elab_Term_HeadInf lean_mark_persistent(l_Lean_Elab_Term_HeadInfo_Inhabited___closed__2); l_Lean_Elab_Term_HeadInfo_Inhabited = _init_l_Lean_Elab_Term_HeadInfo_Inhabited(); lean_mark_persistent(l_Lean_Elab_Term_HeadInfo_Inhabited); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__1); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__2 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__2); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__3); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__4 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__4); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__5 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__5(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__5); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__6); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__7); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__8 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__8(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__8); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__9); -l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__2___closed__10); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__3); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__5); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__6); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__9); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10); l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__1 = _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__1(); lean_mark_persistent(l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__1); l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__2 = _init_l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_7__getHeadInfo___spec__2___closed__2(); @@ -26001,6 +26262,8 @@ l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__2 = _init_l___priv lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__2); l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__3 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__3(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__3); +l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__4 = _init_l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___closed__4); l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___lambda__1___closed__1 = _init_l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___lambda__1___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___lambda__1___closed__1); l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___lambda__1___closed__2 = _init_l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___lambda__1___closed__2(); @@ -26107,6 +26370,14 @@ l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__34 = _i lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__34); l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__35 = _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__35(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__35); +l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36 = _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36); +l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__37 = _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__37(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__37); +l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38 = _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38); +l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__39 = _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__39(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__39); l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__1 = _init_l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__1); l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__2 = _init_l___private_Init_Lean_Elab_Quotation_12__letBindRhss___main___closed__2(); @@ -26129,6 +26400,8 @@ l_Array_umapMAux___main___at_Lean_Elab_Term_match__syntax_expand___spec__1___clo lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_match__syntax_expand___spec__1___closed__2); l_Array_umapMAux___main___at_Lean_Elab_Term_match__syntax_expand___spec__1___closed__3 = _init_l_Array_umapMAux___main___at_Lean_Elab_Term_match__syntax_expand___spec__1___closed__3(); lean_mark_persistent(l_Array_umapMAux___main___at_Lean_Elab_Term_match__syntax_expand___spec__1___closed__3); +l_Lean_Elab_Term_elabMatchSyntax___closed__1 = _init_l_Lean_Elab_Term_elabMatchSyntax___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_elabMatchSyntax___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabMatchSyntax___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabMatchSyntax___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabMatchSyntax___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabMatchSyntax___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabMatchSyntax___closed__2(); @@ -26190,10 +26463,10 @@ l___private_Init_Lean_Elab_Quotation_15__oldRunTermElabM___rarg___closed__5 = _i lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_15__oldRunTermElabM___rarg___closed__5); l_Lean_Elab_Term_oldExpandStxQuot___closed__1 = _init_l_Lean_Elab_Term_oldExpandStxQuot___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_oldExpandStxQuot___closed__1); -l_Lean_Elab_Term_oldGetAntiquotVars___closed__1 = _init_l_Lean_Elab_Term_oldGetAntiquotVars___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_oldGetAntiquotVars___closed__1); -l_Lean_Elab_Term_oldGetAntiquotVars___closed__2 = _init_l_Lean_Elab_Term_oldGetAntiquotVars___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_oldGetAntiquotVars___closed__2); +l_Lean_Elab_Term_oldGetPatternVars___closed__1 = _init_l_Lean_Elab_Term_oldGetPatternVars___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_oldGetPatternVars___closed__1); +l_Lean_Elab_Term_oldGetPatternVars___closed__2 = _init_l_Lean_Elab_Term_oldGetPatternVars___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_oldGetPatternVars___closed__2); l_Lean_Elab_Term_oldExpandMatchSyntax___closed__1 = _init_l_Lean_Elab_Term_oldExpandMatchSyntax___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_oldExpandMatchSyntax___closed__1); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Init/Lean/Elab/ResolveName.c b/stage0/stdlib/Init/Lean/Elab/ResolveName.c index 30d6ab28e8..df1ae4b178 100644 --- a/stage0/stdlib/Init/Lean/Elab/ResolveName.c +++ b/stage0/stdlib/Init/Lean/Elab/ResolveName.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Lean.Elab.ResolveName -// Imports: Init.Lean.Modifiers Init.Lean.Elab.Alias +// Imports: Init.Lean.Hygiene Init.Lean.Modifiers Init.Lean.Elab.Alias #include "runtime/lean.h" #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -15,7 +15,7 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Elab_resolveNamespaceUsingScope(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Name_toString___closed__1; +lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l___private_Init_Lean_Elab_ResolveName_1__resolveQualifiedName(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_ResolveName_4__resolveOpenDecls___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); @@ -26,7 +26,7 @@ lean_object* l_List_append___rarg(lean_object*, lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_List_toStringAux___main___at_Lean_Elab_OpenDecl_HasToString___spec__3___boxed(lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveGlobalName___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveNamespaceUsingScope___main(lean_object*, lean_object*, lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); lean_object* l_List_eraseDupsAux___main___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__2(lean_object*, lean_object*); @@ -58,21 +58,23 @@ lean_object* l_Lean_Name_replacePrefix___main(lean_object*, lean_object*, lean_o lean_object* l_List_map___main___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__4(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_ResolveName_2__resolveUsingNamespace___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_ResolveName_4__resolveOpenDecls(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__3(lean_object*, lean_object*); lean_object* l_Lean_Elab_rootNamespace___closed__1; -lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_OpenDecl_HasToString___closed__2; lean_object* l_Lean_Elab_resolveGlobalName(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_rootNamespace___closed__2; uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_OpenDecl_Inhabited; lean_object* l_Lean_Elab_OpenDecl_HasToString(lean_object*); lean_object* l___private_Init_Lean_Elab_ResolveName_3__resolveExact(lean_object*, lean_object*); +lean_object* l_List_foldl___main___at_Lean_addMacroScopes___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveNamespaceUsingOpenDecls___main___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_resolveNamespaceUsingOpenDecls___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_OpenDecl_HasToString___closed__1; +extern lean_object* l_System_FilePath_dirName___closed__1; lean_object* l_Lean_Name_toStringWithSep___main(lean_object*, lean_object*); lean_object* l_List_beq___main___at_Lean_Elab_OpenDecl_HasToString___spec__1___boxed(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_ResolveName_1__resolveQualifiedName___boxed(lean_object*, lean_object*, lean_object*); @@ -167,7 +169,7 @@ lean_inc(x_4); x_5 = lean_ctor_get(x_2, 1); lean_inc(x_5); lean_dec(x_2); -x_6 = l_Lean_Name_toString___closed__1; +x_6 = l_System_FilePath_dirName___closed__1; x_7 = l_Lean_Name_toStringWithSep___main(x_6, x_4); x_8 = l_List_reprAux___main___rarg___closed__1; x_9 = lean_string_append(x_8, x_7); @@ -194,7 +196,7 @@ lean_inc(x_13); x_14 = lean_ctor_get(x_2, 1); lean_inc(x_14); lean_dec(x_2); -x_15 = l_Lean_Name_toString___closed__1; +x_15 = l_System_FilePath_dirName___closed__1; x_16 = l_Lean_Name_toStringWithSep___main(x_15, x_13); x_17 = 0; x_18 = l_List_toStringAux___main___at_Lean_Elab_OpenDecl_HasToString___spec__3(x_17, x_14); @@ -255,7 +257,7 @@ lean_inc(x_2); x_3 = lean_ctor_get(x_1, 1); lean_inc(x_3); lean_dec(x_1); -x_4 = l_Lean_Name_toString___closed__1; +x_4 = l_System_FilePath_dirName___closed__1; x_5 = l_Lean_Name_toStringWithSep___main(x_4, x_2); x_6 = lean_box(0); x_7 = l_List_beq___main___at_Lean_Elab_OpenDecl_HasToString___spec__1(x_3, x_6); @@ -287,7 +289,7 @@ lean_inc(x_14); x_15 = lean_ctor_get(x_1, 1); lean_inc(x_15); lean_dec(x_1); -x_16 = l_Lean_Name_toString___closed__1; +x_16 = l_System_FilePath_dirName___closed__1; x_17 = l_Lean_Name_toStringWithSep___main(x_16, x_14); x_18 = l_Lean_Elab_OpenDecl_HasToString___closed__2; x_19 = lean_string_append(x_17, x_18); @@ -811,159 +813,171 @@ return x_13; } } } -lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -if (lean_obj_tag(x_4) == 1) +if (lean_obj_tag(x_5) == 1) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_4, 0); -lean_inc(x_6); -x_7 = lean_ctor_get(x_4, 1); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_5, 0); lean_inc(x_7); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); lean_inc(x_4); +x_9 = l_List_foldl___main___at_Lean_addMacroScopes___spec__1(x_5, x_4); +lean_inc(x_9); lean_inc(x_1); -x_8 = l___private_Init_Lean_Elab_ResolveName_2__resolveUsingNamespace___main(x_1, x_4, x_2); -if (lean_obj_tag(x_8) == 0) +x_10 = l___private_Init_Lean_Elab_ResolveName_2__resolveUsingNamespace___main(x_1, x_9, x_2); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_9; -lean_inc(x_4); +lean_object* x_11; +lean_inc(x_9); lean_inc(x_1); -x_9 = l___private_Init_Lean_Elab_ResolveName_3__resolveExact(x_1, x_4); -if (lean_obj_tag(x_9) == 0) +x_11 = l___private_Init_Lean_Elab_ResolveName_3__resolveExact(x_1, x_9); +if (lean_obj_tag(x_11) == 0) { -uint8_t x_10; lean_object* x_11; lean_object* x_12; +uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_inc(x_1); -x_10 = l_Lean_Environment_contains(x_1, x_4); -x_11 = l_Lean_getAliases(x_1, x_4); -if (x_10 == 0) +x_12 = l_Lean_Environment_contains(x_1, x_9); +x_13 = l_Lean_getAliases(x_1, x_9); +if (x_12 == 0) { -lean_object* x_18; lean_object* x_19; +lean_object* x_20; lean_object* x_21; lean_inc(x_3); lean_inc(x_1); -x_18 = l___private_Init_Lean_Elab_ResolveName_4__resolveOpenDecls___main(x_1, x_4, x_3, x_8); -x_19 = l_List_append___rarg(x_11, x_18); -x_12 = x_19; -goto block_17; +x_20 = l___private_Init_Lean_Elab_ResolveName_4__resolveOpenDecls___main(x_1, x_9, x_3, x_10); +x_21 = l_List_append___rarg(x_13, x_20); +x_14 = x_21; +goto block_19; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; -lean_inc(x_4); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_4); -lean_ctor_set(x_20, 1, x_8); +lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_inc(x_9); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_9); +lean_ctor_set(x_22, 1, x_10); lean_inc(x_3); lean_inc(x_1); -x_21 = l___private_Init_Lean_Elab_ResolveName_4__resolveOpenDecls___main(x_1, x_4, x_3, x_20); -x_22 = l_List_append___rarg(x_11, x_21); -x_12 = x_22; -goto block_17; +x_23 = l___private_Init_Lean_Elab_ResolveName_4__resolveOpenDecls___main(x_1, x_9, x_3, x_22); +x_24 = l_List_append___rarg(x_13, x_23); +x_14 = x_24; +goto block_19; } -block_17: +block_19: { -if (lean_obj_tag(x_12) == 0) +if (lean_obj_tag(x_14) == 0) { -lean_object* x_13; -x_13 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_13, 0, x_7); -lean_ctor_set(x_13, 1, x_5); -x_4 = x_6; -x_5 = x_13; +lean_object* x_15; +x_15 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_15, 0, x_8); +lean_ctor_set(x_15, 1, x_6); +x_5 = x_7; +x_6 = x_15; goto _start; } else { -lean_object* x_15; lean_object* x_16; +lean_object* x_17; lean_object* x_18; +lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); +lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_15 = l_List_eraseDups___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__1(x_12); -x_16 = l_List_map___main___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__3(x_5, x_15); -return x_16; +x_17 = l_List_eraseDups___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__1(x_14); +x_18 = l_List_map___main___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__3(x_6, x_17); +return x_18; } } } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_23 = lean_ctor_get(x_9, 0); -lean_inc(x_23); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_dec(x_9); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_5); -x_25 = lean_box(0); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -else -{ -lean_object* x_27; lean_object* x_28; +lean_dec(x_8); lean_dec(x_7); -lean_dec(x_6); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_27 = l_List_eraseDups___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__1(x_8); -x_28 = l_List_map___main___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__4(x_5, x_27); +x_25 = lean_ctor_get(x_11, 0); +lean_inc(x_25); +lean_dec(x_11); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_6); +x_27 = lean_box(0); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); return x_28; } } else { -lean_object* x_29; +lean_object* x_29; lean_object* x_30; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_29 = l_List_eraseDups___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__1(x_10); +x_30 = l_List_map___main___at___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main___spec__4(x_6, x_29); +return x_30; +} +} +else +{ +lean_object* x_31; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_29 = lean_box(0); -return x_29; +x_31 = lean_box(0); +return x_31; } } } -lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___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_ResolveName_5__resolveGlobalNameAux___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { -lean_object* x_6; -x_6 = l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main(x_1, x_2, x_3, x_4, x_5); +lean_object* x_7; +x_7 = l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); -return x_6; +return x_7; } } -lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux(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_ResolveName_5__resolveGlobalNameAux(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_6; -x_6 = l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main(x_1, x_2, x_3, x_4, x_5); -return x_6; +lean_object* x_7; +x_7 = l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main(x_1, x_2, x_3, x_4, x_5, x_6); +return x_7; } } -lean_object* l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___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_ResolveName_5__resolveGlobalNameAux___boxed(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_6; -x_6 = l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux(x_1, x_2, x_3, x_4, x_5); +lean_object* x_7; +x_7 = l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_2); -return x_6; +return x_7; } } lean_object* l_Lean_Elab_resolveGlobalName(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; -x_5 = lean_box(0); -x_6 = l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main(x_1, x_2, x_3, x_4, x_5); -return x_6; +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_5 = l_Lean_extractMacroScopes(x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = lean_box(0); +x_9 = l___private_Init_Lean_Elab_ResolveName_5__resolveGlobalNameAux___main(x_1, x_2, x_3, x_7, x_6, x_8); +return x_9; } } lean_object* l_Lean_Elab_resolveGlobalName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -1176,6 +1190,7 @@ lean_dec(x_1); return x_5; } } +lean_object* initialize_Init_Lean_Hygiene(lean_object*); lean_object* initialize_Init_Lean_Modifiers(lean_object*); lean_object* initialize_Init_Lean_Elab_Alias(lean_object*); static bool _G_initialized = false; @@ -1183,6 +1198,9 @@ lean_object* initialize_Init_Lean_Elab_ResolveName(lean_object* w) { lean_object * res; if (_G_initialized) return lean_mk_io_result(lean_box(0)); _G_initialized = true; +res = initialize_Init_Lean_Hygiene(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); res = initialize_Init_Lean_Modifiers(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Init/Lean/Elab/TermBinders.c b/stage0/stdlib/Init/Lean/Elab/TermBinders.c index 2598147330..e891aab6a5 100644 --- a/stage0/stdlib/Init/Lean/Elab/TermBinders.c +++ b/stage0/stdlib/Init/Lean/Elab/TermBinders.c @@ -18,6 +18,7 @@ lean_object* l_Lean_Elab_Term_elabBinder___rarg___lambda__1___boxed(lean_object* lean_object* l_Lean_Elab_Term_elabBinders(lean_object*); lean_object* l_Lean_Elab_Term_mkForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_7__elabBindersAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabLet___closed__5; lean_object* l_Lean_Elab_Term_elabLet___closed__3; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -35,6 +36,7 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__1; lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; extern lean_object* l_Lean_List_format___rarg___closed__2; +lean_object* l_Lean_Elab_Term_elabLet___closed__7; lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* lean_local_ctx_mk_let_decl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabBinder___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -144,6 +146,7 @@ extern lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__6; extern lean_object* l_Lean_Options_empty; lean_object* l_Lean_Elab_Term_mkFreshFVarId(lean_object*); +lean_object* l_Lean_Elab_Term_elabLet___closed__8; lean_object* l___private_Init_Lean_Elab_TermBinders_1__expandBinderType(lean_object*); extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__2; extern lean_object* l___private_Init_Lean_Elab_Term_17__synthesizeSyntheticMVar___closed__3; @@ -233,12 +236,15 @@ lean_object* l___private_Init_Lean_Elab_TermBinders_2__expandBinderIdent(lean_ob lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier___closed__3; lean_object* l___private_Init_Lean_Elab_TermBinders_5__matchBinder___closed__3; +lean_object* l_Lean_Elab_Term_elabLet___closed__6; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_withNode___rarg___closed__3; +lean_object* l_Lean_Elab_Term_elabLet___closed__4; lean_object* l_Lean_Syntax_formatStxAux___main(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabForall(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabLet___closed__9; lean_object* l___private_Init_Lean_Elab_TermBinders_3__expandOptIdent___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabArrow(lean_object*); extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; @@ -17113,69 +17119,592 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } +lean_object* _init_l_Lean_Elab_Term_elabLet___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_let___elambda__1___closed__1; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_elabLet___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(":="); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_elabLet___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_elabLet___closed__5; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_elabLet___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(";"); +return x_1; +} +} +lean_object* _init_l_Lean_Elab_Term_elabLet___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Term_elabLet___closed__7; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Elab_Term_elabLet___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_PersistentHashMap_mkCollisionNode___rarg___closed__1; +x_2 = l_Lean_Elab_Term_elabLet___closed__4; +x_3 = lean_array_push(x_1, x_2); +return x_3; +} +} lean_object* l_Lean_Elab_Term_elabLet(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_5 = lean_unsigned_to_nat(1u); -x_6 = l_Lean_Syntax_getArg(x_1, x_5); -x_7 = lean_unsigned_to_nat(3u); -x_8 = l_Lean_Syntax_getArg(x_1, x_7); -lean_inc(x_6); -x_9 = l_Lean_Syntax_getKind(x_6); -x_10 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; -x_11 = lean_name_eq(x_9, x_10); -if (x_11 == 0) +lean_object* x_5; uint8_t x_6; +x_5 = l_Lean_Parser_Term_let___elambda__1___closed__2; +lean_inc(x_1); +x_6 = l_Lean_Syntax_isOfKind(x_1, x_5); +if (x_6 == 0) { -lean_object* x_12; uint8_t x_13; -x_12 = l_Lean_Parser_Term_letEqns___elambda__1___closed__2; -x_13 = lean_name_eq(x_9, x_12); +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_7 = lean_unsigned_to_nat(1u); +x_8 = l_Lean_Syntax_getArg(x_1, x_7); +x_9 = lean_unsigned_to_nat(3u); +x_10 = l_Lean_Syntax_getArg(x_1, x_9); +lean_inc(x_8); +x_11 = l_Lean_Syntax_getKind(x_8); +x_12 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_13 = lean_name_eq(x_11, x_12); if (x_13 == 0) { lean_object* x_14; uint8_t x_15; -x_14 = l_Lean_Parser_Term_letPatDecl___elambda__1___closed__2; -x_15 = lean_name_eq(x_9, x_14); -lean_dec(x_9); +x_14 = l_Lean_Parser_Term_letEqns___elambda__1___closed__2; +x_15 = lean_name_eq(x_11, x_14); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_2); -x_16 = l_Lean_Elab_Term_elabLet___closed__3; -x_17 = l_Lean_Elab_Term_throwError___rarg(x_1, x_16, x_3, x_4); -return x_17; -} -else +lean_object* x_16; uint8_t x_17; +x_16 = l_Lean_Parser_Term_letPatDecl___elambda__1___closed__2; +x_17 = lean_name_eq(x_11, x_16); +lean_dec(x_11); +if (x_17 == 0) { -lean_object* x_18; -lean_dec(x_1); -x_18 = l_Lean_Elab_Term_elabLetPatDecl___rarg(x_6, x_8, x_2, x_3, x_4); -lean_dec(x_2); +lean_object* x_18; lean_object* x_19; +lean_dec(x_10); lean_dec(x_8); -return x_18; -} -} -else -{ -lean_object* x_19; -lean_dec(x_9); -lean_dec(x_1); -x_19 = l_Lean_Elab_Term_elabLetEqnsDecl___rarg(x_6, x_8, x_2, x_3, x_4); lean_dec(x_2); -lean_dec(x_8); +x_18 = l_Lean_Elab_Term_elabLet___closed__3; +x_19 = l_Lean_Elab_Term_throwError___rarg(x_1, x_18, x_3, x_4); return x_19; } -} else { lean_object* x_20; -lean_dec(x_9); -x_20 = l_Lean_Elab_Term_elabLetIdDecl(x_1, x_6, x_8, x_2, x_3, x_4); -lean_dec(x_6); +lean_dec(x_1); +x_20 = l_Lean_Elab_Term_elabLetPatDecl___rarg(x_8, x_10, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_10); return x_20; } } +else +{ +lean_object* x_21; +lean_dec(x_11); +lean_dec(x_1); +x_21 = l_Lean_Elab_Term_elabLetEqnsDecl___rarg(x_8, x_10, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_10); +return x_21; +} +} +else +{ +lean_object* x_22; +lean_dec(x_11); +x_22 = l_Lean_Elab_Term_elabLetIdDecl(x_1, x_8, x_10, x_2, x_3, x_4); +lean_dec(x_8); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = l_Lean_Syntax_getArgs(x_1); +x_24 = lean_array_get_size(x_23); +lean_dec(x_23); +x_25 = lean_unsigned_to_nat(4u); +x_26 = lean_nat_dec_eq(x_24, x_25); +lean_dec(x_24); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_27 = lean_unsigned_to_nat(1u); +x_28 = l_Lean_Syntax_getArg(x_1, x_27); +x_29 = lean_unsigned_to_nat(3u); +x_30 = l_Lean_Syntax_getArg(x_1, x_29); +lean_inc(x_28); +x_31 = l_Lean_Syntax_getKind(x_28); +x_32 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_33 = lean_name_eq(x_31, x_32); +if (x_33 == 0) +{ +lean_object* x_34; uint8_t x_35; +x_34 = l_Lean_Parser_Term_letEqns___elambda__1___closed__2; +x_35 = lean_name_eq(x_31, x_34); +if (x_35 == 0) +{ +lean_object* x_36; uint8_t x_37; +x_36 = l_Lean_Parser_Term_letPatDecl___elambda__1___closed__2; +x_37 = lean_name_eq(x_31, x_36); +lean_dec(x_31); +if (x_37 == 0) +{ +lean_object* x_38; lean_object* x_39; +lean_dec(x_30); +lean_dec(x_28); +lean_dec(x_2); +x_38 = l_Lean_Elab_Term_elabLet___closed__3; +x_39 = l_Lean_Elab_Term_throwError___rarg(x_1, x_38, x_3, x_4); +return x_39; +} +else +{ +lean_object* x_40; +lean_dec(x_1); +x_40 = l_Lean_Elab_Term_elabLetPatDecl___rarg(x_28, x_30, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_30); +return x_40; +} +} +else +{ +lean_object* x_41; +lean_dec(x_31); +lean_dec(x_1); +x_41 = l_Lean_Elab_Term_elabLetEqnsDecl___rarg(x_28, x_30, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_30); +return x_41; +} +} +else +{ +lean_object* x_42; +lean_dec(x_31); +x_42 = l_Lean_Elab_Term_elabLetIdDecl(x_1, x_28, x_30, x_2, x_3, x_4); +lean_dec(x_28); +return x_42; +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_43 = lean_unsigned_to_nat(1u); +x_44 = l_Lean_Syntax_getArg(x_1, x_43); +x_45 = l_Lean_Parser_Term_letPatDecl___elambda__1___closed__2; +lean_inc(x_44); +x_46 = l_Lean_Syntax_isOfKind(x_44, x_45); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_47 = lean_unsigned_to_nat(3u); +x_48 = l_Lean_Syntax_getArg(x_1, x_47); +lean_inc(x_44); +x_49 = l_Lean_Syntax_getKind(x_44); +x_50 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_51 = lean_name_eq(x_49, x_50); +if (x_51 == 0) +{ +lean_object* x_52; uint8_t x_53; +x_52 = l_Lean_Parser_Term_letEqns___elambda__1___closed__2; +x_53 = lean_name_eq(x_49, x_52); +if (x_53 == 0) +{ +uint8_t x_54; +x_54 = lean_name_eq(x_49, x_45); +lean_dec(x_49); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; +lean_dec(x_48); +lean_dec(x_44); +lean_dec(x_2); +x_55 = l_Lean_Elab_Term_elabLet___closed__3; +x_56 = l_Lean_Elab_Term_throwError___rarg(x_1, x_55, x_3, x_4); +return x_56; +} +else +{ +lean_object* x_57; +lean_dec(x_1); +x_57 = l_Lean_Elab_Term_elabLetPatDecl___rarg(x_44, x_48, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_48); +return x_57; +} +} +else +{ +lean_object* x_58; +lean_dec(x_49); +lean_dec(x_1); +x_58 = l_Lean_Elab_Term_elabLetEqnsDecl___rarg(x_44, x_48, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_48); +return x_58; +} +} +else +{ +lean_object* x_59; +lean_dec(x_49); +x_59 = l_Lean_Elab_Term_elabLetIdDecl(x_1, x_44, x_48, x_2, x_3, x_4); +lean_dec(x_44); +return x_59; +} +} +else +{ +lean_object* x_60; lean_object* x_61; uint8_t x_62; +x_60 = l_Lean_Syntax_getArgs(x_44); +x_61 = lean_array_get_size(x_60); +lean_dec(x_60); +x_62 = lean_nat_dec_eq(x_61, x_25); +lean_dec(x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; uint8_t x_67; +x_63 = lean_unsigned_to_nat(3u); +x_64 = l_Lean_Syntax_getArg(x_1, x_63); +lean_inc(x_44); +x_65 = l_Lean_Syntax_getKind(x_44); +x_66 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_67 = lean_name_eq(x_65, x_66); +if (x_67 == 0) +{ +lean_object* x_68; uint8_t x_69; +x_68 = l_Lean_Parser_Term_letEqns___elambda__1___closed__2; +x_69 = lean_name_eq(x_65, x_68); +if (x_69 == 0) +{ +uint8_t x_70; +x_70 = lean_name_eq(x_65, x_45); +lean_dec(x_65); +if (x_70 == 0) +{ +lean_object* x_71; lean_object* x_72; +lean_dec(x_64); +lean_dec(x_44); +lean_dec(x_2); +x_71 = l_Lean_Elab_Term_elabLet___closed__3; +x_72 = l_Lean_Elab_Term_throwError___rarg(x_1, x_71, x_3, x_4); +return x_72; +} +else +{ +lean_object* x_73; +lean_dec(x_1); +x_73 = l_Lean_Elab_Term_elabLetPatDecl___rarg(x_44, x_64, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_64); +return x_73; +} +} +else +{ +lean_object* x_74; +lean_dec(x_65); +lean_dec(x_1); +x_74 = l_Lean_Elab_Term_elabLetEqnsDecl___rarg(x_44, x_64, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_64); +return x_74; +} +} +else +{ +lean_object* x_75; +lean_dec(x_65); +x_75 = l_Lean_Elab_Term_elabLetIdDecl(x_1, x_44, x_64, x_2, x_3, x_4); +lean_dec(x_44); +return x_75; +} +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_76 = lean_unsigned_to_nat(0u); +x_77 = l_Lean_Syntax_getArg(x_44, x_76); +x_78 = l_Lean_Parser_Term_id___elambda__1___closed__2; +lean_inc(x_77); +x_79 = l_Lean_Syntax_isOfKind(x_77, x_78); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +lean_dec(x_77); +x_80 = lean_unsigned_to_nat(3u); +x_81 = l_Lean_Syntax_getArg(x_1, x_80); +lean_inc(x_44); +x_82 = l_Lean_Syntax_getKind(x_44); +x_83 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_84 = lean_name_eq(x_82, x_83); +if (x_84 == 0) +{ +lean_object* x_85; uint8_t x_86; +x_85 = l_Lean_Parser_Term_letEqns___elambda__1___closed__2; +x_86 = lean_name_eq(x_82, x_85); +if (x_86 == 0) +{ +uint8_t x_87; +x_87 = lean_name_eq(x_82, x_45); +lean_dec(x_82); +if (x_87 == 0) +{ +lean_object* x_88; lean_object* x_89; +lean_dec(x_81); +lean_dec(x_44); +lean_dec(x_2); +x_88 = l_Lean_Elab_Term_elabLet___closed__3; +x_89 = l_Lean_Elab_Term_throwError___rarg(x_1, x_88, x_3, x_4); +return x_89; +} +else +{ +lean_object* x_90; +lean_dec(x_1); +x_90 = l_Lean_Elab_Term_elabLetPatDecl___rarg(x_44, x_81, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_81); +return x_90; +} +} +else +{ +lean_object* x_91; +lean_dec(x_82); +lean_dec(x_1); +x_91 = l_Lean_Elab_Term_elabLetEqnsDecl___rarg(x_44, x_81, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_81); +return x_91; +} +} +else +{ +lean_object* x_92; +lean_dec(x_82); +x_92 = l_Lean_Elab_Term_elabLetIdDecl(x_1, x_44, x_81, x_2, x_3, x_4); +lean_dec(x_44); +return x_92; +} +} +else +{ +lean_object* x_93; lean_object* x_94; uint8_t x_95; +x_93 = l_Lean_Syntax_getArg(x_44, x_43); +x_94 = l_Lean_nullKind___closed__2; +lean_inc(x_93); +x_95 = l_Lean_Syntax_isOfKind(x_93, x_94); +if (x_95 == 0) +{ +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; +lean_dec(x_93); +lean_dec(x_77); +x_96 = lean_unsigned_to_nat(3u); +x_97 = l_Lean_Syntax_getArg(x_1, x_96); +lean_inc(x_44); +x_98 = l_Lean_Syntax_getKind(x_44); +x_99 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_100 = lean_name_eq(x_98, x_99); +if (x_100 == 0) +{ +lean_object* x_101; uint8_t x_102; +x_101 = l_Lean_Parser_Term_letEqns___elambda__1___closed__2; +x_102 = lean_name_eq(x_98, x_101); +if (x_102 == 0) +{ +uint8_t x_103; +x_103 = lean_name_eq(x_98, x_45); +lean_dec(x_98); +if (x_103 == 0) +{ +lean_object* x_104; lean_object* x_105; +lean_dec(x_97); +lean_dec(x_44); +lean_dec(x_2); +x_104 = l_Lean_Elab_Term_elabLet___closed__3; +x_105 = l_Lean_Elab_Term_throwError___rarg(x_1, x_104, x_3, x_4); +return x_105; +} +else +{ +lean_object* x_106; +lean_dec(x_1); +x_106 = l_Lean_Elab_Term_elabLetPatDecl___rarg(x_44, x_97, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_97); +return x_106; +} +} +else +{ +lean_object* x_107; +lean_dec(x_98); +lean_dec(x_1); +x_107 = l_Lean_Elab_Term_elabLetEqnsDecl___rarg(x_44, x_97, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_97); +return x_107; +} +} +else +{ +lean_object* x_108; +lean_dec(x_98); +x_108 = l_Lean_Elab_Term_elabLetIdDecl(x_1, x_44, x_97, x_2, x_3, x_4); +lean_dec(x_44); +return x_108; +} +} +else +{ +lean_object* x_109; lean_object* x_110; uint8_t x_111; +x_109 = l_Lean_Syntax_getArgs(x_93); +lean_dec(x_93); +x_110 = lean_array_get_size(x_109); +lean_dec(x_109); +x_111 = lean_nat_dec_eq(x_110, x_76); +lean_dec(x_110); +if (x_111 == 0) +{ +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; +lean_dec(x_77); +x_112 = lean_unsigned_to_nat(3u); +x_113 = l_Lean_Syntax_getArg(x_1, x_112); +lean_inc(x_44); +x_114 = l_Lean_Syntax_getKind(x_44); +x_115 = l_Lean_Parser_Term_letIdDecl___elambda__1___closed__2; +x_116 = lean_name_eq(x_114, x_115); +if (x_116 == 0) +{ +lean_object* x_117; uint8_t x_118; +x_117 = l_Lean_Parser_Term_letEqns___elambda__1___closed__2; +x_118 = lean_name_eq(x_114, x_117); +if (x_118 == 0) +{ +uint8_t x_119; +x_119 = lean_name_eq(x_114, x_45); +lean_dec(x_114); +if (x_119 == 0) +{ +lean_object* x_120; lean_object* x_121; +lean_dec(x_113); +lean_dec(x_44); +lean_dec(x_2); +x_120 = l_Lean_Elab_Term_elabLet___closed__3; +x_121 = l_Lean_Elab_Term_throwError___rarg(x_1, x_120, x_3, x_4); +return x_121; +} +else +{ +lean_object* x_122; +lean_dec(x_1); +x_122 = l_Lean_Elab_Term_elabLetPatDecl___rarg(x_44, x_113, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_113); +return x_122; +} +} +else +{ +lean_object* x_123; +lean_dec(x_114); +lean_dec(x_1); +x_123 = l_Lean_Elab_Term_elabLetEqnsDecl___rarg(x_44, x_113, x_2, x_3, x_4); +lean_dec(x_2); +lean_dec(x_113); +return x_123; +} +} +else +{ +lean_object* x_124; +lean_dec(x_114); +x_124 = l_Lean_Elab_Term_elabLetIdDecl(x_1, x_44, x_113, x_2, x_3, x_4); +lean_dec(x_44); +return x_124; +} +} +else +{ +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; uint8_t x_147; lean_object* x_148; +x_125 = lean_unsigned_to_nat(3u); +x_126 = l_Lean_Syntax_getArg(x_44, x_125); +lean_dec(x_44); +x_127 = l_Lean_Syntax_getArg(x_1, x_125); +lean_dec(x_1); +x_128 = l_Lean_Syntax_getArg(x_77, x_76); +lean_dec(x_77); +x_129 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +lean_dec(x_129); +x_131 = l_Lean_Elab_Term_mkExplicitBinder___closed__5; +x_132 = lean_array_push(x_131, x_128); +x_133 = l___private_Init_Lean_Elab_Term_8__expandCDot___closed__4; +x_134 = lean_array_push(x_132, x_133); +x_135 = lean_array_push(x_134, x_133); +x_136 = l_Lean_Elab_Term_elabLet___closed__6; +x_137 = lean_array_push(x_135, x_136); +x_138 = lean_array_push(x_137, x_126); +x_139 = l_Lean_Parser_Term_letIdDecl___elambda__1___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_138); +x_141 = l_Lean_Elab_Term_elabLet___closed__9; +x_142 = lean_array_push(x_141, x_140); +x_143 = l_Lean_Elab_Term_elabLet___closed__8; +x_144 = lean_array_push(x_142, x_143); +x_145 = lean_array_push(x_144, x_127); +x_146 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_146, 0, x_5); +lean_ctor_set(x_146, 1, x_145); +x_147 = 1; +x_148 = l_Lean_Elab_Term_elabTerm(x_146, x_2, x_147, x_147, x_3, x_130); +return x_148; +} +} +} +} +} +} +} +} } lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__1() { _start: @@ -17379,6 +17908,18 @@ l_Lean_Elab_Term_elabLet___closed__2 = _init_l_Lean_Elab_Term_elabLet___closed__ lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__2); l_Lean_Elab_Term_elabLet___closed__3 = _init_l_Lean_Elab_Term_elabLet___closed__3(); lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__3); +l_Lean_Elab_Term_elabLet___closed__4 = _init_l_Lean_Elab_Term_elabLet___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__4); +l_Lean_Elab_Term_elabLet___closed__5 = _init_l_Lean_Elab_Term_elabLet___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__5); +l_Lean_Elab_Term_elabLet___closed__6 = _init_l_Lean_Elab_Term_elabLet___closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__6); +l_Lean_Elab_Term_elabLet___closed__7 = _init_l_Lean_Elab_Term_elabLet___closed__7(); +lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__7); +l_Lean_Elab_Term_elabLet___closed__8 = _init_l_Lean_Elab_Term_elabLet___closed__8(); +lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__8); +l_Lean_Elab_Term_elabLet___closed__9 = _init_l_Lean_Elab_Term_elabLet___closed__9(); +lean_mark_persistent(l_Lean_Elab_Term_elabLet___closed__9); l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__1(); lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabLet___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Hygiene.c b/stage0/stdlib/Init/Lean/Hygiene.c index 4b8fb74909..3ae30dbb6e 100644 --- a/stage0/stdlib/Init/Lean/Hygiene.c +++ b/stage0/stdlib/Init/Lean/Hygiene.c @@ -13,8 +13,11 @@ #ifdef __cplusplus extern "C" { #endif +lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Unhygienic_MonadQuotation___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_extractMacroScopes(lean_object*); lean_object* l_Lean_Unhygienic_MonadQuotation___closed__3; +lean_object* l___private_Init_Lean_Hygiene_1__extractMacroScopesAux(lean_object*, lean_object*); lean_object* l_Lean_Unhygienic_run(lean_object*); lean_object* l_Lean_monadQuotationTrans___rarg(lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); @@ -28,7 +31,10 @@ lean_object* l_Lean_addMacroScope(lean_object*, lean_object*); lean_object* l_Lean_Unhygienic_MonadQuotation; lean_object* l_Lean_Unhygienic_MonadQuotation___closed__1; lean_object* l_Lean_monadQuotationTrans___rarg___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMacroScopes(lean_object*, lean_object*); lean_object* l_Lean_Unhygienic_MonadQuotation___closed__2; +lean_object* l___private_Init_Lean_Hygiene_1__extractMacroScopesAux___main(lean_object*, lean_object*); +lean_object* l_List_foldl___main___at_Lean_addMacroScopes___spec__1(lean_object*, lean_object*); lean_object* lean_name_mk_numeral(lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object* x_1, lean_object* x_2) { _start: @@ -38,6 +44,82 @@ x_3 = lean_name_mk_numeral(x_1, x_2); return x_3; } } +lean_object* l_List_foldl___main___at_Lean_addMacroScopes___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +return x_1; +} +else +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_2, 1); +lean_inc(x_4); +lean_dec(x_2); +x_5 = lean_name_mk_numeral(x_1, x_3); +x_1 = x_5; +x_2 = x_4; +goto _start; +} +} +} +lean_object* l_Lean_addMacroScopes(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_List_foldl___main___at_Lean_addMacroScopes___spec__1(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Init_Lean_Hygiene_1__extractMacroScopesAux___main(lean_object* x_1, lean_object* x_2) { +_start: +{ +if (lean_obj_tag(x_1) == 2) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = lean_ctor_get(x_1, 0); +lean_inc(x_3); +x_4 = lean_ctor_get(x_1, 1); +lean_inc(x_4); +lean_dec(x_1); +x_5 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_5, 0, x_4); +lean_ctor_set(x_5, 1, x_2); +x_1 = x_3; +x_2 = x_5; +goto _start; +} +else +{ +lean_object* x_7; lean_object* x_8; +x_7 = l_List_reverse___rarg(x_2); +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_7); +return x_8; +} +} +} +lean_object* l___private_Init_Lean_Hygiene_1__extractMacroScopesAux(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Init_Lean_Hygiene_1__extractMacroScopesAux___main(x_1, x_2); +return x_3; +} +} +lean_object* l_Lean_extractMacroScopes(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = lean_box(0); +x_3 = l___private_Init_Lean_Hygiene_1__extractMacroScopesAux___main(x_1, x_2); +return x_3; +} +} lean_object* l_ReaderT_read___at_Lean_Unhygienic_MonadQuotation___spec__1(lean_object* x_1, lean_object* x_2) { _start: { diff --git a/stage0/stdlib/Init/Lean/Parser/Command.c b/stage0/stdlib/Init/Lean/Parser/Command.c index f56510784d..3a5fc7ff3f 100644 --- a/stage0/stdlib/Init/Lean/Parser/Command.c +++ b/stage0/stdlib/Init/Lean/Parser/Command.c @@ -397,7 +397,6 @@ extern lean_object* l_Lean_Parser_numLit___closed__1; lean_object* l_Lean_Parser_Command_structure; lean_object* l_Lean_Parser_Command_declModifiers___closed__6; lean_object* l_Lean_Parser_Command_notation___closed__6; -lean_object* l_Lean_Parser_rawIdentFn(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Command_declaration(lean_object*); lean_object* l_Lean_Parser_Command_precedence___closed__4; lean_object* l_Lean_Parser_Command_classInductive___elambda__1___closed__2; @@ -762,6 +761,7 @@ lean_object* l_Lean_Parser_Command_relaxedInferMod___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_declSig___elambda__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_precedenceLit___elambda__1(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__6; extern lean_object* l_Lean_Parser_Level_ident___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_notation___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_reserve; @@ -2811,89 +2811,96 @@ return x_5; lean_object* l_Lean_Parser_Command_attrInstance___elambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__4; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_4 = l_Lean_Parser_Term_quotedName___elambda__1___closed__6; x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 0); -lean_inc(x_6); -x_7 = lean_array_get_size(x_6); -lean_dec(x_6); -x_8 = lean_ctor_get(x_3, 1); +x_6 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__4; +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = lean_ctor_get(x_3, 1); +lean_inc(x_10); lean_inc(x_2); lean_inc(x_1); -x_9 = lean_apply_3(x_5, x_1, x_2, x_3); -x_10 = lean_ctor_get(x_9, 3); -lean_inc(x_10); -if (lean_obj_tag(x_10) == 0) -{ -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -else -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_ctor_get(x_9, 1); +x_11 = lean_apply_3(x_7, x_1, x_2, x_3); +x_12 = lean_ctor_get(x_11, 3); lean_inc(x_12); -x_13 = lean_nat_dec_eq(x_12, x_8); +if (lean_obj_tag(x_12) == 0) +{ +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +else +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); lean_dec(x_12); -if (x_13 == 0) +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +x_15 = lean_nat_dec_eq(x_14, x_10); +lean_dec(x_14); +if (x_15 == 0) { -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -return x_9; +return x_11; } else { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -lean_inc(x_8); -x_14 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8); -lean_dec(x_7); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_array_get_size(x_15); -lean_dec(x_15); -x_17 = l_Lean_Parser_rawIdentFn(x_2, x_14); -x_18 = lean_ctor_get(x_17, 3); -lean_inc(x_18); -if (lean_obj_tag(x_18) == 0) +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +lean_inc(x_10); +x_16 = l_Lean_Parser_ParserState_restore(x_11, x_9, x_10); +lean_dec(x_9); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_array_get_size(x_17); +lean_dec(x_17); +lean_inc(x_2); +lean_inc(x_1); +x_19 = lean_apply_3(x_5, x_1, x_2, x_16); +x_20 = lean_ctor_get(x_19, 3); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_19 = lean_ctor_get(x_17, 0); -lean_inc(x_19); -x_20 = lean_array_get_size(x_19); -lean_dec(x_19); -x_21 = 0; -x_22 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_attrInstance___elambda__1___spec__1(x_21, x_1, x_2, x_17); -x_23 = l_Lean_nullKind; -x_24 = l_Lean_Parser_ParserState_mkNode(x_22, x_23, x_20); -x_25 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; -x_26 = l_Lean_Parser_ParserState_mkNode(x_24, x_25, x_16); -x_27 = l_Lean_Parser_mergeOrElseErrors(x_26, x_11, x_8); -lean_dec(x_8); -return x_27; +lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_21 = lean_ctor_get(x_19, 0); +lean_inc(x_21); +x_22 = lean_array_get_size(x_21); +lean_dec(x_21); +x_23 = 0; +x_24 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_attrInstance___elambda__1___spec__1(x_23, x_1, x_2, x_19); +x_25 = l_Lean_nullKind; +x_26 = l_Lean_Parser_ParserState_mkNode(x_24, x_25, x_22); +x_27 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; +x_28 = l_Lean_Parser_ParserState_mkNode(x_26, x_27, x_18); +x_29 = l_Lean_Parser_mergeOrElseErrors(x_28, x_13, x_10); +lean_dec(x_10); +return x_29; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -lean_dec(x_18); +lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_dec(x_20); lean_dec(x_2); lean_dec(x_1); -x_28 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; -x_29 = l_Lean_Parser_ParserState_mkNode(x_17, x_28, x_16); -x_30 = l_Lean_Parser_mergeOrElseErrors(x_29, x_11, x_8); -lean_dec(x_8); -return x_30; +x_30 = l_Lean_Parser_Command_attrInstance___elambda__1___closed__2; +x_31 = l_Lean_Parser_ParserState_mkNode(x_19, x_30, x_18); +x_32 = l_Lean_Parser_mergeOrElseErrors(x_31, x_13, x_10); +lean_dec(x_10); +return x_32; } } } @@ -2913,11 +2920,13 @@ return x_3; lean_object* _init_l_Lean_Parser_Command_attrInstance___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Parser_inhabited___closed__1; -x_2 = l_Lean_Parser_Command_attrInstance___closed__1; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_quotedName___elambda__1___closed__6; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Command_attrInstance___closed__1; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; } } lean_object* _init_l_Lean_Parser_Command_attrInstance___closed__3() { diff --git a/stage0/stdlib/Init/Lean/Parser/Parser.c b/stage0/stdlib/Init/Lean/Parser/Parser.c index 58ed06d5de..6c7b2e526c 100644 --- a/stage0/stdlib/Init/Lean/Parser/Parser.c +++ b/stage0/stdlib/Init/Lean/Parser/Parser.c @@ -283,6 +283,7 @@ lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Parser_ident___boxed(lean_object*); lean_object* l_Lean_Parser_indexed___rarg(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Parser_takeWhileFn___lambda__1(lean_object*, uint32_t); +lean_object* l_Lean_Parser_rawIdentNoAntiquot___boxed(lean_object*); lean_object* l_Lean_Parser_andthenInfo___elambda__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkAntiquot___closed__3; lean_object* l_IO_ofExcept___at_Lean_registerClassAttr___spec__1(lean_object*, lean_object*); @@ -395,6 +396,7 @@ lean_object* l_Lean_Parser_takeUntilFn___main___at_Lean_Parser_identFnAux___main lean_object* l_Lean_Parser_longestMatchFnAux(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_lookaheadFn(uint8_t); extern lean_object* l_Lean_EnvExtension_Inhabited___rarg___closed__1; +lean_object* l_Lean_Parser_rawIdentNoAntiquot___closed__1; lean_object* l_Lean_Parser_symbolNoWsFnAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_nodeInfo(lean_object*, lean_object*); lean_object* l_RBNode_insert___at_Lean_Parser_TokenMap_insert___spec__2___rarg(lean_object*, lean_object*, lean_object*); @@ -606,6 +608,7 @@ lean_object* l___private_Init_Lean_Parser_Parser_21__noImmediateColon(uint8_t); lean_object* l_Lean_Parser_symbolNoWsInfo(lean_object*, lean_object*); lean_object* l_Lean_Parser_epsilonInfo___elambda__1___boxed(lean_object*); lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*); +lean_object* l_Lean_Parser_rawIdent___elambda__1___boxed(lean_object*); lean_object* l_Lean_FileMap_toPosition(lean_object*, lean_object*); lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_foldSepRevArgsM___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkAtomicInfo___elambda__1(lean_object*); @@ -617,7 +620,6 @@ lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_forArgsM___spec_ lean_object* l_Lean_Parser_ParsingTables_inhabited___closed__1; lean_object* l_Lean_Parser_takeWhileFn___at_Lean_Parser_binNumberFn___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Parser_strLitFnAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_rawIdent___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Error_toString___closed__2; lean_object* l_Lean_Syntax_foldArgsAuxM___main___at_Lean_Syntax_forArgsM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Data_Trie_3__findAux___main___rarg(lean_object*, lean_object*, lean_object*); @@ -625,7 +627,6 @@ lean_object* l_Lean_Parser_mkParserOfConstantUnsafe___closed__6; lean_object* l_IO_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_longestMatchMkResult(lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Parser_Parser_19__ParserAttribute_add___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_rawIdent___lambda__1___boxed(lean_object*, lean_object*, lean_object*); size_t l_USize_mul(size_t, size_t); lean_object* l___private_Init_Lean_Parser_Parser_21__noImmediateColon___boxed(lean_object*); lean_object* l_Lean_FileMap_ofString(lean_object*); @@ -658,6 +659,7 @@ lean_object* l___private_Init_Lean_Parser_Parser_18__BuiltinParserAttribute_add_ lean_object* l_Lean_Parser_symbolOrIdentInfo___elambda__1___boxed(lean_object*); lean_object* l_Lean_Parser_ident___elambda__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_addTrailingParser(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_rawIdentNoAntiquot___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkAntiquot___closed__7; lean_object* l_Lean_Parser_chFn(uint8_t); lean_object* l_Lean_Parser_mkAtomicInfo___elambda__2___boxed(lean_object*); @@ -754,6 +756,7 @@ lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_many1Indent___spec__2 lean_object* l_Lean_Parser_longestMatchStep___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_string2basic___boxed(lean_object*, lean_object*); lean_object* l_Lean_Parser_ParserState_keepNewError___boxed(lean_object*, lean_object*); +lean_object* l_Lean_Parser_rawIdent___elambda__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Parser_Parser_14__addTrailingParserAux(lean_object*, lean_object*); lean_object* l_Lean_Parser_longestMatchFnAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__2; @@ -843,6 +846,7 @@ lean_object* l_Lean_Parser_FirstTokens_toStr___closed__2; lean_object* l_Lean_Parser_hashOrelse___boxed(lean_object*); lean_object* l_Lean_Parser_symbolOrIdent___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_ref_swap(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_rawIdentNoAntiquot(uint8_t); lean_object* l_Lean_Parser_ParserState_replaceLongest(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Parser_TokenConfig_beq(lean_object*, lean_object*); lean_object* l_Lean_Parser_strLitFn___rarg(lean_object*, lean_object*); @@ -931,7 +935,6 @@ lean_object* l_Lean_EnvExtension_getStateUnsafe___rarg(lean_object*, lean_object lean_object* l___private_Init_Lean_Parser_Parser_3__rawAux(uint8_t); lean_object* l_Lean_Parser_checkNoWsBefore___elambda__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkAntiquot___closed__6; -lean_object* l_Lean_Parser_rawIdent___closed__1; lean_object* l_Lean_Parser_parserExtension___elambda__1(lean_object*); lean_object* l___private_Init_Lean_Parser_Parser_8__throwParserCategoryAlreadyDefined___rarg___closed__2; lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_Parser_mkParserExtension___spec__3(lean_object*, lean_object*); @@ -1082,8 +1085,10 @@ lean_object* l_Lean_Parser_group___boxed(lean_object*, lean_object*); lean_object* l_RBNode_ins___main___at_Lean_Parser_TokenMap_insert___spec__3___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_many1Indent___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_sepBy1Info___elambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_rawIdent___elambda__1(uint8_t); lean_object* l___private_Init_Lean_Parser_Parser_13__addTokenConfig___closed__3; lean_object* l_Lean_Parser_strLit(uint8_t); +lean_object* l_Lean_Parser_rawIdentNoAntiquot___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_many1(uint8_t, lean_object*, uint8_t); lean_object* l___private_Init_Lean_Parser_Parser_16__ParserExtension_addEntry(lean_object*, lean_object*); lean_object* l_Lean_Parser_mkAtomicInfo___closed__2; @@ -11269,7 +11274,7 @@ x_3 = l_Lean_Parser_identNoAntiquot(x_2); return x_3; } } -lean_object* l_Lean_Parser_rawIdent___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_rawIdentNoAntiquot___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; @@ -11277,43 +11282,43 @@ x_4 = l_Lean_Parser_rawIdentFn(x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_rawIdent___closed__1() { +lean_object* _init_l_Lean_Parser_rawIdentNoAntiquot___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Parser_rawIdent___lambda__1___boxed), 3, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_rawIdentNoAntiquot___lambda__1___boxed), 3, 0); return x_1; } } -lean_object* l_Lean_Parser_rawIdent(uint8_t x_1) { +lean_object* l_Lean_Parser_rawIdentNoAntiquot(uint8_t x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = l_Lean_Parser_Parser_inhabited___closed__1; -x_3 = l_Lean_Parser_rawIdent___closed__1; +x_3 = l_Lean_Parser_rawIdentNoAntiquot___closed__1; x_4 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_4, 0, x_2); lean_ctor_set(x_4, 1, x_3); return x_4; } } -lean_object* l_Lean_Parser_rawIdent___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_Lean_Parser_rawIdentNoAntiquot___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l_Lean_Parser_rawIdent___lambda__1(x_1, x_2, x_3); +x_4 = l_Lean_Parser_rawIdentNoAntiquot___lambda__1(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -lean_object* l_Lean_Parser_rawIdent___boxed(lean_object* x_1) { +lean_object* l_Lean_Parser_rawIdentNoAntiquot___boxed(lean_object* x_1) { _start: { uint8_t x_2; lean_object* x_3; x_2 = lean_unbox(x_1); lean_dec(x_1); -x_3 = l_Lean_Parser_rawIdent(x_2); +x_3 = l_Lean_Parser_rawIdentNoAntiquot(x_2); return x_3; } } @@ -35261,6 +35266,117 @@ x_3 = l_Lean_Parser_ident(x_2); return x_3; } } +lean_object* l_Lean_Parser_rawIdent___elambda__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_array_get_size(x_6); +lean_dec(x_6); +x_8 = lean_ctor_get(x_5, 1); +lean_inc(x_8); +lean_inc(x_4); +lean_inc(x_3); +x_9 = lean_apply_3(x_2, x_3, x_4, x_5); +x_10 = lean_ctor_get(x_9, 3); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +else +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); +x_13 = lean_nat_dec_eq(x_12, x_8); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_dec(x_11); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_inc(x_8); +x_14 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8); +lean_dec(x_7); +x_15 = lean_apply_3(x_1, x_3, x_4, x_14); +x_16 = l_Lean_Parser_mergeOrElseErrors(x_15, x_11, x_8); +lean_dec(x_8); +return x_16; +} +} +} +} +lean_object* l_Lean_Parser_rawIdent___elambda__1(uint8_t x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Parser_rawIdent___elambda__1___rarg), 5, 0); +return x_2; +} +} +lean_object* l_Lean_Parser_rawIdent(uint8_t x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_2 = l_Lean_Syntax_getKind___closed__3; +x_3 = l_Lean_Parser_ident___closed__1; +x_4 = 1; +x_5 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = l_Lean_Parser_Parser_inhabited___closed__1; +x_8 = l_Lean_Parser_orelseInfo(x_6, x_7); +x_9 = lean_ctor_get(x_5, 1); +lean_inc(x_9); +lean_dec(x_5); +x_10 = l_Lean_Parser_rawIdentNoAntiquot___closed__1; +x_11 = lean_alloc_closure((void*)(l_Lean_Parser_rawIdent___elambda__1___rarg), 5, 2); +lean_closure_set(x_11, 0, x_10); +lean_closure_set(x_11, 1, x_9); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_8); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +lean_object* l_Lean_Parser_rawIdent___elambda__1___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Parser_rawIdent___elambda__1(x_2); +return x_3; +} +} +lean_object* l_Lean_Parser_rawIdent___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = lean_unbox(x_1); +lean_dec(x_1); +x_3 = l_Lean_Parser_rawIdent(x_2); +return x_3; +} +} lean_object* _init_l_Lean_Parser_fieldIdxFn___closed__1() { _start: { @@ -36614,8 +36730,8 @@ l_Lean_Parser_identFn___rarg___closed__1 = _init_l_Lean_Parser_identFn___rarg___ lean_mark_persistent(l_Lean_Parser_identFn___rarg___closed__1); l_Lean_Parser_identNoAntiquot___closed__1 = _init_l_Lean_Parser_identNoAntiquot___closed__1(); lean_mark_persistent(l_Lean_Parser_identNoAntiquot___closed__1); -l_Lean_Parser_rawIdent___closed__1 = _init_l_Lean_Parser_rawIdent___closed__1(); -lean_mark_persistent(l_Lean_Parser_rawIdent___closed__1); +l_Lean_Parser_rawIdentNoAntiquot___closed__1 = _init_l_Lean_Parser_rawIdentNoAntiquot___closed__1(); +lean_mark_persistent(l_Lean_Parser_rawIdentNoAntiquot___closed__1); l_Lean_Parser_quotedSymbolFn___rarg___closed__1 = _init_l_Lean_Parser_quotedSymbolFn___rarg___closed__1(); lean_mark_persistent(l_Lean_Parser_quotedSymbolFn___rarg___closed__1); l_Lean_Parser_quotedSymbolFn___rarg___closed__2 = _init_l_Lean_Parser_quotedSymbolFn___rarg___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Parser/Term.c b/stage0/stdlib/Init/Lean/Parser/Term.c index e70c66246a..b6c8bf426e 100644 --- a/stage0/stdlib/Init/Lean/Parser/Term.c +++ b/stage0/stdlib/Init/Lean/Parser/Term.c @@ -435,6 +435,7 @@ lean_object* l_Lean_Parser_Term_parser_x21___closed__5; lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_bnot___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_instBinder___closed__7; +lean_object* l_Lean_Parser_Term_quotedName___elambda__1___closed__9; lean_object* lean_string_utf8_byte_size(lean_object*); lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___rarg(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_if; @@ -535,7 +536,6 @@ lean_object* l_Lean_Parser_Term_nomatch___closed__4; extern lean_object* l_Lean_Parser_numLit___closed__1; lean_object* l_Lean_Parser_Term_or___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_listLit___elambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Parser_rawIdentFn(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_ge___closed__1; lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_arrayRef___closed__5; @@ -962,6 +962,7 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_seq(lean_object*); lean_object* l_Lean_Parser_Term_equation; lean_object* l_Lean_Parser_Term_sub___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_bindOp___closed__2; +lean_object* l_Lean_Parser_rawIdent(uint8_t); lean_object* l_Lean_Parser_Term_uminus___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_uminus___closed__5; lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__2; @@ -21992,19 +21993,18 @@ return x_2; lean_object* _init_l_Lean_Parser_Term_quotedName___elambda__1___closed__6() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Char_HasRepr___closed__1; -x_2 = l_Lean_Parser_Term_quotedName___elambda__1___closed__5; -x_3 = lean_string_append(x_1, x_2); -return x_3; +uint8_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = l_Lean_Parser_rawIdent(x_1); +return x_2; } } lean_object* _init_l_Lean_Parser_Term_quotedName___elambda__1___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_quotedName___elambda__1___closed__6; -x_2 = l_Char_HasRepr___closed__1; +x_1 = l_Char_HasRepr___closed__1; +x_2 = l_Lean_Parser_Term_quotedName___elambda__1___closed__5; x_3 = lean_string_append(x_1, x_2); return x_3; } @@ -22013,8 +22013,18 @@ lean_object* _init_l_Lean_Parser_Term_quotedName___elambda__1___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_quotedName___elambda__1___closed__7; +x_2 = l_Char_HasRepr___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_quotedName___elambda__1___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_quotedName___elambda__1___closed__7; +x_2 = l_Lean_Parser_Term_quotedName___elambda__1___closed__8; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -22024,137 +22034,146 @@ return x_3; lean_object* l_Lean_Parser_Term_quotedName___elambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_4 = l_Lean_Parser_Term_quotedName___elambda__1___closed__4; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_4 = l_Lean_Parser_Term_quotedName___elambda__1___closed__6; x_5 = lean_ctor_get(x_4, 1); lean_inc(x_5); -x_6 = lean_ctor_get(x_3, 0); -lean_inc(x_6); -x_7 = lean_array_get_size(x_6); -lean_dec(x_6); -x_8 = lean_ctor_get(x_3, 1); +x_6 = l_Lean_Parser_Term_quotedName___elambda__1___closed__4; +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); -lean_inc(x_2); -x_9 = lean_apply_3(x_5, x_1, x_2, x_3); -x_10 = lean_ctor_get(x_9, 3); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = lean_ctor_get(x_3, 1); lean_inc(x_10); -if (lean_obj_tag(x_10) == 0) -{ -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -return x_9; -} -else -{ -lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -lean_dec(x_10); -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -x_13 = lean_nat_dec_eq(x_12, x_8); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_dec(x_11); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_2); -return x_9; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_27; lean_object* x_28; -lean_inc(x_8); -x_14 = l_Lean_Parser_ParserState_restore(x_9, x_7, x_8); -lean_dec(x_7); -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_array_get_size(x_15); -lean_dec(x_15); lean_inc(x_2); -x_27 = l_Lean_Parser_tokenFn(x_2, x_14); -x_28 = lean_ctor_get(x_27, 3); -lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) +lean_inc(x_1); +x_11 = lean_apply_3(x_7, x_1, x_2, x_3); +x_12 = lean_ctor_get(x_11, 3); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 0); -lean_inc(x_29); -x_30 = l_Array_back___at___private_Init_Lean_Parser_Parser_6__updateCache___spec__1(x_29); -lean_dec(x_29); -if (lean_obj_tag(x_30) == 2) +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +else { -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_30, 1); +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +x_15 = lean_nat_dec_eq(x_14, x_10); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_5); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_29; lean_object* x_30; +lean_inc(x_10); +x_16 = l_Lean_Parser_ParserState_restore(x_11, x_9, x_10); +lean_dec(x_9); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_array_get_size(x_17); +lean_dec(x_17); +lean_inc(x_2); +x_29 = l_Lean_Parser_tokenFn(x_2, x_16); +x_30 = lean_ctor_get(x_29, 3); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_29, 0); lean_inc(x_31); -lean_dec(x_30); -x_32 = l_Lean_Parser_Term_quotedName___elambda__1___closed__5; -x_33 = lean_string_dec_eq(x_31, x_32); +x_32 = l_Array_back___at___private_Init_Lean_Parser_Parser_6__updateCache___spec__1(x_31); lean_dec(x_31); -if (x_33 == 0) +if (lean_obj_tag(x_32) == 2) { -lean_object* x_34; lean_object* x_35; -x_34 = l_Lean_Parser_Term_quotedName___elambda__1___closed__8; -lean_inc(x_8); -x_35 = l_Lean_Parser_ParserState_mkErrorsAt(x_27, x_34, x_8); -x_17 = x_35; -goto block_26; -} -else -{ -x_17 = x_27; -goto block_26; -} -} -else +lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = l_Lean_Parser_Term_quotedName___elambda__1___closed__5; +x_35 = lean_string_dec_eq(x_33, x_34); +lean_dec(x_33); +if (x_35 == 0) { lean_object* x_36; lean_object* x_37; -lean_dec(x_30); -x_36 = l_Lean_Parser_Term_quotedName___elambda__1___closed__8; -lean_inc(x_8); -x_37 = l_Lean_Parser_ParserState_mkErrorsAt(x_27, x_36, x_8); -x_17 = x_37; -goto block_26; +x_36 = l_Lean_Parser_Term_quotedName___elambda__1___closed__9; +lean_inc(x_10); +x_37 = l_Lean_Parser_ParserState_mkErrorsAt(x_29, x_36, x_10); +x_19 = x_37; +goto block_28; +} +else +{ +x_19 = x_29; +goto block_28; } } else { lean_object* x_38; lean_object* x_39; -lean_dec(x_28); -x_38 = l_Lean_Parser_Term_quotedName___elambda__1___closed__8; -lean_inc(x_8); -x_39 = l_Lean_Parser_ParserState_mkErrorsAt(x_27, x_38, x_8); -x_17 = x_39; -goto block_26; +lean_dec(x_32); +x_38 = l_Lean_Parser_Term_quotedName___elambda__1___closed__9; +lean_inc(x_10); +x_39 = l_Lean_Parser_ParserState_mkErrorsAt(x_29, x_38, x_10); +x_19 = x_39; +goto block_28; } -block_26: -{ -lean_object* x_18; -x_18 = lean_ctor_get(x_17, 3); -lean_inc(x_18); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = l_Lean_Parser_rawIdentFn(x_2, x_17); -lean_dec(x_2); -x_20 = l_Lean_Parser_Term_quotedName___elambda__1___closed__2; -x_21 = l_Lean_Parser_ParserState_mkNode(x_19, x_20, x_16); -x_22 = l_Lean_Parser_mergeOrElseErrors(x_21, x_11, x_8); -lean_dec(x_8); -return x_22; } else { -lean_object* x_23; lean_object* x_24; lean_object* x_25; -lean_dec(x_18); +lean_object* x_40; lean_object* x_41; +lean_dec(x_30); +x_40 = l_Lean_Parser_Term_quotedName___elambda__1___closed__9; +lean_inc(x_10); +x_41 = l_Lean_Parser_ParserState_mkErrorsAt(x_29, x_40, x_10); +x_19 = x_41; +goto block_28; +} +block_28: +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_19, 3); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_apply_3(x_5, x_1, x_2, x_19); +x_22 = l_Lean_Parser_Term_quotedName___elambda__1___closed__2; +x_23 = l_Lean_Parser_ParserState_mkNode(x_21, x_22, x_18); +x_24 = l_Lean_Parser_mergeOrElseErrors(x_23, x_13, x_10); +lean_dec(x_10); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_dec(x_20); +lean_dec(x_5); lean_dec(x_2); -x_23 = l_Lean_Parser_Term_quotedName___elambda__1___closed__2; -x_24 = l_Lean_Parser_ParserState_mkNode(x_17, x_23, x_16); -x_25 = l_Lean_Parser_mergeOrElseErrors(x_24, x_11, x_8); -lean_dec(x_8); -return x_25; +lean_dec(x_1); +x_25 = l_Lean_Parser_Term_quotedName___elambda__1___closed__2; +x_26 = l_Lean_Parser_ParserState_mkNode(x_19, x_25, x_18); +x_27 = l_Lean_Parser_mergeOrElseErrors(x_26, x_13, x_10); +lean_dec(x_10); +return x_27; } } } @@ -22174,11 +22193,13 @@ return x_3; lean_object* _init_l_Lean_Parser_Term_quotedName___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_quotedName___closed__1; -x_2 = l_Lean_Parser_Parser_inhabited___closed__1; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_quotedName___elambda__1___closed__6; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_quotedName___closed__1; +x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); +return x_4; } } lean_object* _init_l_Lean_Parser_Term_quotedName___closed__3() { @@ -38297,6 +38318,8 @@ l_Lean_Parser_Term_quotedName___elambda__1___closed__7 = _init_l_Lean_Parser_Ter lean_mark_persistent(l_Lean_Parser_Term_quotedName___elambda__1___closed__7); l_Lean_Parser_Term_quotedName___elambda__1___closed__8 = _init_l_Lean_Parser_Term_quotedName___elambda__1___closed__8(); lean_mark_persistent(l_Lean_Parser_Term_quotedName___elambda__1___closed__8); +l_Lean_Parser_Term_quotedName___elambda__1___closed__9 = _init_l_Lean_Parser_Term_quotedName___elambda__1___closed__9(); +lean_mark_persistent(l_Lean_Parser_Term_quotedName___elambda__1___closed__9); l_Lean_Parser_Term_quotedName___closed__1 = _init_l_Lean_Parser_Term_quotedName___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_quotedName___closed__1); l_Lean_Parser_Term_quotedName___closed__2 = _init_l_Lean_Parser_Term_quotedName___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Syntax.c b/stage0/stdlib/Init/Lean/Syntax.c index ab5e2fbb72..f744ecbd89 100644 --- a/stage0/stdlib/Init/Lean/Syntax.c +++ b/stage0/stdlib/Init/Lean/Syntax.c @@ -178,6 +178,7 @@ lean_object* l_Lean_SyntaxNode_modifyArgs(lean_object*, lean_object*); lean_object* l_Lean_SyntaxNode_getArgs___boxed(lean_object*); lean_object* l_List_map___main___at_Lean_Syntax_formatStxAux___main___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_unreachIsNodeIdent___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l_String_Iterator_HasRepr___closed__2; lean_object* l_Lean_SourceInfo_appendToLeading(lean_object*, lean_object*); lean_object* l_Lean_Syntax_isCharLit_x3f___boxed(lean_object*); lean_object* l_Lean_Syntax_getTailInfo___main___boxed(lean_object*); @@ -3427,27 +3428,30 @@ _start: { if (lean_obj_tag(x_1) == 0) { -lean_inc(x_2); -return x_2; +lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_3 = l_String_Iterator_HasRepr___closed__2; +x_4 = lean_string_append(x_3, x_2); +x_5 = lean_string_append(x_4, x_3); +return x_5; } else { -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_3 = lean_ctor_get(x_1, 0); -x_4 = lean_ctor_get(x_3, 0); -x_5 = lean_ctor_get(x_3, 2); -x_6 = lean_ctor_get(x_4, 0); -x_7 = lean_ctor_get(x_4, 1); -x_8 = lean_ctor_get(x_4, 2); -x_9 = lean_string_utf8_extract(x_6, x_7, x_8); -x_10 = lean_string_append(x_9, x_2); -x_11 = lean_ctor_get(x_5, 0); -x_12 = lean_ctor_get(x_5, 1); -x_13 = lean_ctor_get(x_5, 2); -x_14 = lean_string_utf8_extract(x_11, x_12, x_13); -x_15 = lean_string_append(x_10, x_14); -lean_dec(x_14); -return x_15; +lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_6 = lean_ctor_get(x_1, 0); +x_7 = lean_ctor_get(x_6, 0); +x_8 = lean_ctor_get(x_6, 2); +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = lean_ctor_get(x_7, 2); +x_12 = lean_string_utf8_extract(x_9, x_10, x_11); +x_13 = lean_string_append(x_12, x_2); +x_14 = lean_ctor_get(x_8, 0); +x_15 = lean_ctor_get(x_8, 1); +x_16 = lean_ctor_get(x_8, 2); +x_17 = lean_string_utf8_extract(x_14, x_15, x_16); +x_18 = lean_string_append(x_13, x_17); +lean_dec(x_17); +return x_18; } } } diff --git a/stage0/stdlib/Init/System/IOError.c b/stage0/stdlib/Init/System/IOError.c index 0c4802b43c..cbe050f2f3 100644 --- a/stage0/stdlib/Init/System/IOError.c +++ b/stage0/stdlib/Init/System/IOError.c @@ -723,7 +723,7 @@ lean_object* _init_l_IO_Error_toString___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Already exists"); +x_1 = lean_mk_string("already exists"); return x_1; } } @@ -731,7 +731,7 @@ lean_object* _init_l_IO_Error_toString___closed__2() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Resource busy"); +x_1 = lean_mk_string("resource busy"); return x_1; } } @@ -739,7 +739,7 @@ lean_object* _init_l_IO_Error_toString___closed__3() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Resource vanished"); +x_1 = lean_mk_string("resource vanished"); return x_1; } } @@ -747,7 +747,7 @@ lean_object* _init_l_IO_Error_toString___closed__4() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Unsupported operation"); +x_1 = lean_mk_string("unsupported operation"); return x_1; } } @@ -755,7 +755,7 @@ lean_object* _init_l_IO_Error_toString___closed__5() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Hardware fault"); +x_1 = lean_mk_string("hardware fault"); return x_1; } } @@ -763,7 +763,7 @@ lean_object* _init_l_IO_Error_toString___closed__6() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Directory not empty"); +x_1 = lean_mk_string("directory not empty"); return x_1; } } @@ -771,7 +771,7 @@ lean_object* _init_l_IO_Error_toString___closed__7() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Illegal operation"); +x_1 = lean_mk_string("illegal operation"); return x_1; } } @@ -779,7 +779,7 @@ lean_object* _init_l_IO_Error_toString___closed__8() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Protocol error"); +x_1 = lean_mk_string("protocol error"); return x_1; } } @@ -787,7 +787,7 @@ lean_object* _init_l_IO_Error_toString___closed__9() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Time expired"); +x_1 = lean_mk_string("time expired"); return x_1; } } @@ -795,7 +795,7 @@ lean_object* _init_l_IO_Error_toString___closed__10() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Interrupted system call"); +x_1 = lean_mk_string("interrupted system call"); return x_1; } } @@ -803,7 +803,7 @@ lean_object* _init_l_IO_Error_toString___closed__11() { _start: { lean_object* x_1; -x_1 = lean_mk_string("No such file or directory"); +x_1 = lean_mk_string("no such file or directory"); return x_1; } } @@ -811,7 +811,7 @@ lean_object* _init_l_IO_Error_toString___closed__12() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Invalid argument"); +x_1 = lean_mk_string("invalid argument"); return x_1; } } @@ -819,7 +819,7 @@ lean_object* _init_l_IO_Error_toString___closed__13() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Resource exhausted"); +x_1 = lean_mk_string("resource exhausted"); return x_1; } } @@ -827,7 +827,7 @@ lean_object* _init_l_IO_Error_toString___closed__14() { _start: { lean_object* x_1; -x_1 = lean_mk_string("Inappropriate type"); +x_1 = lean_mk_string("inappropriate type"); return x_1; } } @@ -835,7 +835,7 @@ lean_object* _init_l_IO_Error_toString___closed__15() { _start: { lean_object* x_1; -x_1 = lean_mk_string("No such thing"); +x_1 = lean_mk_string("no such thing"); return x_1; } }