From 7b1a4272f84010f82c199ecb6abff6a5fdb978a0 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Sun, 2 Feb 2020 17:39:35 -0800 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Data/Array/Basic.lean | 3 + stage0/src/Init/Lean/Elab.lean | 1 + stage0/src/Init/Lean/Elab/Command.lean | 18 +- stage0/src/Init/Lean/Elab/DoNotation.lean | 75 +- stage0/src/Init/Lean/Elab/StructInst.lean | 18 + stage0/src/Init/Lean/Elab/Term.lean | 19 +- stage0/src/Init/Lean/Meta/ExprDefEq.lean | 172 +- stage0/src/Init/Lean/Parser/Term.lean | 4 +- stage0/stdlib/CMakeLists.txt | 2 +- stage0/stdlib/Init/Data/Array/Basic.c | 46 +- stage0/stdlib/Init/Lean/Elab.c | 6 +- stage0/stdlib/Init/Lean/Elab/Command.c | 1428 +- stage0/stdlib/Init/Lean/Elab/Declaration.c | 2530 +- stage0/stdlib/Init/Lean/Elab/Definition.c | 2830 +-- stage0/stdlib/Init/Lean/Elab/DoNotation.c | 1810 +- stage0/stdlib/Init/Lean/Elab/StructInst.c | 37 + stage0/stdlib/Init/Lean/Elab/Term.c | 2022 +- stage0/stdlib/Init/Lean/Elab/TermBinders.c | 8 +- stage0/stdlib/Init/Lean/Meta/ExprDefEq.c | 24782 +++++++++++++++---- stage0/stdlib/Init/Lean/Parser/Command.c | 62 +- stage0/stdlib/Init/Lean/Parser/Syntax.c | 32 +- stage0/stdlib/Init/Lean/Parser/Term.c | 1271 +- 22 files changed, 26658 insertions(+), 10518 deletions(-) create mode 100644 stage0/src/Init/Lean/Elab/StructInst.lean create mode 100644 stage0/stdlib/Init/Lean/Elab/StructInst.c diff --git a/stage0/src/Init/Data/Array/Basic.lean b/stage0/src/Init/Data/Array/Basic.lean index 303e71a811..2083eb9009 100644 --- a/stage0/src/Init/Data/Array/Basic.lean +++ b/stage0/src/Init/Data/Array/Basic.lean @@ -474,6 +474,9 @@ variable {β : Type u} @[inline] def modify [Inhabited α] (a : Array α) (i : Nat) (f : α → α) : Array α := Id.run $ a.modifyM i f +@[inline] def modifyOp [Inhabited α] (self : Array α) (idx : Nat) (f : α → α) : Array α := +self.modify idx f + @[inline] def mapIdx (f : Nat → α → β) (a : Array α) : Array β := Id.run $ mapIdxM f a diff --git a/stage0/src/Init/Lean/Elab.lean b/stage0/src/Init/Lean/Elab.lean index 398d392899..2bd5bc3852 100644 --- a/stage0/src/Init/Lean/Elab.lean +++ b/stage0/src/Init/Lean/Elab.lean @@ -19,3 +19,4 @@ import Init.Lean.Elab.Tactic import Init.Lean.Elab.Syntax import Init.Lean.Elab.Match import Init.Lean.Elab.DoNotation +import Init.Lean.Elab.StructInst diff --git a/stage0/src/Init/Lean/Elab/Command.lean b/stage0/src/Init/Lean/Elab/Command.lean index 6c2b9d409d..c191687ba6 100644 --- a/stage0/src/Init/Lean/Elab/Command.lean +++ b/stage0/src/Init/Lean/Elab/Command.lean @@ -558,10 +558,24 @@ fun stx => do | Syntax.atom _ "false" => setOption ref optionName (DataValue.ofBool false) | _ => logError val ("unexpected set_option value " ++ toString val) +/- + `declId` is of the form + ``` + parser! ident >> optional (".{" >> sepBy1 ident ", " >> "}") + ``` + but we also accept a single identifier to users to make macro writing more convenient . +-/ +def expandDeclId (declId : Syntax) : Name × Syntax := +if declId.isIdent then + (declId.getId, mkNullNode) +else + let id := declId.getIdAt 0; + let optUnivDeclStx := declId.getArg 1; + (id, optUnivDeclStx) + @[inline] def withDeclId (declId : Syntax) (f : Name → CommandElabM Unit) : CommandElabM Unit := do -- ident >> optional (".{" >> sepBy1 ident ", " >> "}") -let id := declId.getIdAt 0; -let optUnivDeclStx := declId.getArg 1; +let (id, optUnivDeclStx) := expandDeclId declId; savedLevelNames ← getLevelNames; levelNames ← if optUnivDeclStx.isNone then diff --git a/stage0/src/Init/Lean/Elab/DoNotation.lean b/stage0/src/Init/Lean/Elab/DoNotation.lean index 8b800a82e4..31071e8cca 100644 --- a/stage0/src/Init/Lean/Elab/DoNotation.lean +++ b/stage0/src/Init/Lean/Elab/DoNotation.lean @@ -12,25 +12,30 @@ namespace Lean namespace Elab namespace Term -private def mkIdBindFor (ref : Syntax) (type : Expr) : TermElabM (Expr × Expr) := do +structure ExtractMonadResult := +(m : Expr) +(α : Expr) +(hasBindInst : Expr) + +private def mkIdBindFor (ref : Syntax) (type : Expr) : TermElabM ExtractMonadResult := do u ← getLevel ref type; let id := Lean.mkConst `Id [u]; let idBindVal := Lean.mkConst `Id.hasBind [u]; -pure (id, idBindVal) +pure { m := id, hasBindInst := idBindVal, α := type } -private def extractMonad (ref : Syntax) (expectedType? : Option Expr) : TermElabM (Expr × Expr) := do +private def extractMonad (ref : Syntax) (expectedType? : Option Expr) : TermElabM ExtractMonadResult := do match expectedType? with | none => throwError ref "invalid do notation, expected type is not available" | some expectedType => do type ← withReducible $ whnf ref expectedType; when type.getAppFn.isMVar $ throwError ref "invalid do notation, expected type is not available"; match type with - | Expr.app m _ _ => + | Expr.app m α _ => catch (do bindInstType ← mkAppM ref `HasBind #[m]; bindInstVal ← synthesizeInst ref bindInstType; - pure (m, bindInstVal)) + pure { m := m, hasBindInst := bindInstVal, α := α }) (fun ex => mkIdBindFor ref type) | _ => mkIdBindFor ref type @@ -137,9 +142,51 @@ private partial def expandDoElemsAux : Bool → Array Syntax → Nat → MacroM private partial def expandDoElems (doElems : Array Syntax) : MacroM (Option Syntax) := expandDoElemsAux false doElems 0 +private def extractTypeFormerAppArg (ref : Syntax) (type : Expr) : TermElabM Expr := do +type ← withReducible $ whnf ref type; +match type with +| Expr.app _ a _ => pure a +| _ => throwError ref ("type former application expected" ++ indentExpr type) + +/- +We try to coerce first using `HasMonadLift` because it is more flexible than coercions. +Recall that type class resolution never assigns metavariables created by other modules. +Now, consider the following scenario +```lean +def g (x : Nat) : IO Nat := ... +deg h (x : Nat) : StateT Nat IO Nat := do +v ← g x; +IO.Println v; +... +``` +Let's assume there is no other occurrence of `v` in `h`. +Thus, we have that the expected of `g x` is `StateT Nat IO ?α`, +and the given type is `IO Nat`. So, even if we add a coercion. +``` +instance {α m n} [HasLiftT m n] {α} : Coe (m α) (n α) := ... +``` +It is not applicable because TC would have to assign `?α := Nat`. +On the other hand, TC can easily solve `[HasLiftT IO (StateT Nat IO)]` +since this goal does not contain any metavariables. And then, we +convert `g x` into `liftM $ g x`. +-/ +private def mkMonadLift (ref : Syntax) (expectedMonad : Expr) (expectedType : Expr) (val : Expr) (valType : Expr) : TermElabM Expr := do +-- liftM : ∀ {m : Type u_1 → Type u_2} {n : Type u_1 → Type u_3} [self : HasMonadLiftT m n] {α : Type u_1}, m α → n α +extractResult ← extractMonad ref valType; +hasMonadLiftType ← mkAppM ref `HasMonadLiftT #[extractResult.m, expectedMonad]; +hasMonadLiftVal ← synthesizeInst ref hasMonadLiftType; +u_1 ← getDecLevel ref extractResult.α; +u_2 ← getDecLevel ref valType; +u_3 ← getDecLevel ref expectedType; +let newVal := mkAppN (Lean.mkConst `liftM [u_1, u_2, u_3]) #[extractResult.m, expectedMonad, hasMonadLiftVal, extractResult.α, val]; +ensureHasType ref expectedType newVal + private def ensureDoElemType (ref : Syntax) (expectedMonad : Expr) (expectedType : Expr) (val : Expr) : TermElabM Expr := do --- TODO: try MonadLift -ensureHasType ref expectedType val +valType ← inferType ref val; +condM (isDefEq ref valType expectedType) (pure val) $ + catch + (mkMonadLift ref expectedMonad expectedType val valType) + (fun _ => ensureHasType ref expectedType val) structure ProcessedDoElem := (action : Expr) @@ -147,12 +194,6 @@ structure ProcessedDoElem := instance ProcessedDoElem.inhabited : Inhabited ProcessedDoElem := ⟨⟨arbitrary _, arbitrary _⟩⟩ -private def extractTypeFormerAppArg (ref : Syntax) (type : Expr) : TermElabM Expr := do -type ← withReducible $ whnf ref type; -match type with -| Expr.app _ a _ => pure a -| _ => throwError ref ("type former application expected" ++ indentExpr type) - /- HasBind.bind : ∀ {m : Type u_1 → Type u_2} [self : HasBind m] {α β : Type u_1}, m α → (α → m β) → m β -/ @@ -162,11 +203,9 @@ if elems.isEmpty then else do let x := elems.back.var; -- any variable would work since they must be in the same universe xType ← inferType ref x; - u_1 ← getLevel ref xType; - u_1 ← decLevel ref u_1; + u_1 ← getDecLevel ref xType; bodyType ← inferType ref body; - u_2 ← getLevel ref bodyType; - u_2 ← decLevel ref u_2; + u_2 ← getDecLevel ref bodyType; let bindAndInst := mkApp2 (Lean.mkConst `HasBind.bind [u_1, u_2]) m bindInstVal; elems.foldrM (fun elem body => do @@ -224,7 +263,7 @@ fun stx expectedType? => do | none => do trace `Elab.do ref $ fun _ => stx; let doElems := doElems.getSepElems; - (m, bindInstVal) ← extractMonad ref expectedType?; + { m := m, hasBindInst := bindInstVal, .. } ← extractMonad ref expectedType?; result ← processDoElems doElems m bindInstVal expectedType?.get!; -- dbgTrace ("result: " ++ toString result); pure result diff --git a/stage0/src/Init/Lean/Elab/StructInst.lean b/stage0/src/Init/Lean/Elab/StructInst.lean new file mode 100644 index 0000000000..11ca1d6595 --- /dev/null +++ b/stage0/src/Init/Lean/Elab/StructInst.lean @@ -0,0 +1,18 @@ +/- +Copyright (c) 2020 Microsoft Corporation. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Leonardo de Moura +-/ +prelude +import Init.Lean.Elab.Term +import Init.Lean.Elab.TermBinders +import Init.Lean.Elab.Quotation + +namespace Lean +namespace Elab +namespace Term + + +end Term +end Elab +end Lean diff --git a/stage0/src/Init/Lean/Elab/Term.lean b/stage0/src/Init/Lean/Elab/Term.lean index 48b46e6f95..92fbf31099 100644 --- a/stage0/src/Init/Lean/Elab/Term.lean +++ b/stage0/src/Init/Lean/Elab/Term.lean @@ -294,6 +294,13 @@ match u? with | some u => pure u | none => throwError ref ("invalid universe level, " ++ u ++ " is not greater than 0") +/- This function is useful for inferring universe level parameters for function that take arguments such as `{α : Type u}`. + Recall that `Type u` is `Sort (u+1)` in Lean. Thus, given `α`, we must infer its universe level, + and then decrement 1 to obtain `u`. -/ +def getDecLevel (ref : Syntax) (type : Expr) : TermElabM Level := do +u ← getLevel ref type; +decLevel ref u + def liftLevelM {α} (x : LevelElabM α) : TermElabM α := fun ctx s => match (x { .. ctx }).run { .. s } with @@ -378,7 +385,7 @@ private partial def hasCDot : Syntax → Bool The extra state `Array Syntax` contains the new binder names. If `stx` is a `·`, we create a fresh identifier, store in the extra state, and return it. Otherwise, we just return `stx`. -/ -private partial def expandCDot : Syntax → StateT (Array Syntax) TermElabM Syntax +private partial def expandCDot : Syntax → StateT (Array Syntax) MacroM Syntax | stx@(Syntax.node k args) => if k == `Lean.Parser.Term.paren then pure stx else if k == `Lean.Parser.Term.cdot then withFreshMacroScope $ do @@ -396,7 +403,7 @@ private partial def expandCDot : Syntax → StateT (Array Syntax) TermElabM Synt Examples: - `· + 1` => `fun _a_1 => _a_1 + 1` - `f · · b` => `fun _a_1 _a_2 => f _a_1 _a_2 b` -/ -def expandCDot? (stx : Syntax) : TermElabM (Option Syntax) := +def expandCDot? (stx : Syntax) : MacroM (Option Syntax) := if hasCDot stx then do (newStx, binders) ← (expandCDot stx).run #[]; `(fun $binders* => $newStx) @@ -721,7 +728,7 @@ fun stx expectedType? => | none => throwError stx ("invalid tactic block, expected type has not been provided") /-- Main loop for `mkPairs`. -/ -private partial def mkPairsAux (elems : Array Syntax) : Nat → Syntax → TermElabM Syntax +private partial def mkPairsAux (elems : Array Syntax) : Nat → Syntax → MacroM Syntax | i, acc => if i > 0 then do let i := i - 1; @@ -732,7 +739,7 @@ private partial def mkPairsAux (elems : Array Syntax) : Nat → Syntax → TermE pure acc /-- Return syntax `Prod.mk elems[0] (Prod.mk elems[1] ... (Prod.mk elems[elems.size - 2] elems[elems.size - 1])))` -/ -def mkPairs (elems : Array Syntax) : TermElabM Syntax := +def mkPairs (elems : Array Syntax) : MacroM Syntax := mkPairsAux elems (elems.size - 1) elems.back /-- @@ -745,7 +752,7 @@ mkPairsAux elems (elems.size - 1) elems.back - `(· + ·)` - `(f · a b)` -/ private def elabCDot (stx : Syntax) (expectedType? : Option Expr) : TermElabM Expr := do -stx? ← expandCDot? stx; +stx? ← liftMacroM $ expandCDot? stx; match stx? with | some stx' => withMacroExpansion stx stx' (elabTerm stx' expectedType?) | none => elabTerm stx expectedType? @@ -761,7 +768,7 @@ fun stx expectedType? => ensureHasType ref type e | `(($e)) => elabCDot e expectedType? | `(($e, $es*)) => do - pairs ← mkPairs (#[e] ++ es.getEvenElems); + pairs ← liftMacroM $ mkPairs (#[e] ++ es.getEvenElems); withMacroExpansion stx pairs (elabTerm pairs expectedType?) | _ => throwError stx "unexpected parentheses notation" diff --git a/stage0/src/Init/Lean/Meta/ExprDefEq.lean b/stage0/src/Init/Lean/Meta/ExprDefEq.lean index 8a8c8e7e5d..4bb049bf1a 100644 --- a/stage0/src/Init/Lean/Meta/ExprDefEq.lean +++ b/stage0/src/Init/Lean/Meta/ExprDefEq.lean @@ -185,6 +185,16 @@ private partial def isDefEqBindingAux : LocalContext → Array Expr → Expr → lctx ← getLCtx; isDefEqBindingAux lctx #[] a b #[] +private def checkTypesAndAssign (mvar : Expr) (v : Expr) : MetaM Bool := +traceCtx `Meta.isDefEq.assign.checkTypes $ do + -- must check whether types are definitionally equal or not, before assigning and returning true + mvarType ← inferType mvar; + vType ← inferType v; + condM (withTransparency TransparencyMode.default $ isExprDefEqAux mvarType vType) + (do assignExprMVar mvar.mvarId! v; pure true) + (do trace `Meta.isDefEq.assign.typeMismatch $ fun _ => mvar ++ " : " ++ mvarType ++ " := " ++ v ++ " : " ++ vType; + pure false) + /- Each metavariable is declared in a particular local context. We use the notation `C |- ?m : t` to denote a metavariable `?m` that @@ -337,12 +347,10 @@ isDefEqBindingAux lctx #[] a b #[] namespace CheckAssignment -structure Context := -(lctx : LocalContext) +structure Context extends Meta.Context := (mvarId : MVarId) (mvarDecl : MetavarDecl) (fvars : Array Expr) -(ctxApprox : Bool) (hasCtxLocals : Bool) inductive Exception @@ -351,23 +359,27 @@ inductive Exception | outOfScopeFVar (fvarId : FVarId) | readOnlyMVarWithBiggerLCtx (mvarId : MVarId) | unknownExprMVar (mvarId : MVarId) +| meta (ex : Meta.Exception) -structure State := -(mctx : MetavarContext) -(ngen : NameGenerator) -(cache : ExprStructMap Expr := {}) +structure State extends Meta.State := +(checkCache : ExprStructMap Expr := {}) abbrev CheckAssignmentM := ReaderT Context (EStateM Exception State) private def findCached? (e : Expr) : CheckAssignmentM (Option Expr) := do -s ← get; pure $ s.cache.find? e +s ← get; pure $ s.checkCache.find? e private def cache (e r : Expr) : CheckAssignmentM Unit := -modify $ fun s => { cache := s.cache.insert e r, .. s } +modify $ fun s => { checkCache := s.checkCache.insert e r, .. s } instance : MonadCache Expr Expr CheckAssignmentM := { findCached? := findCached?, cache := cache } +def liftMetaM {α} (x : MetaM α) : CheckAssignmentM α := +fun ctx s => match x ctx.toContext s.toState with + | EStateM.Result.ok a newS => EStateM.Result.ok a { toState := newS, .. s } + | EStateM.Result.error ex newS => EStateM.Result.error (Exception.meta ex) { toState := newS, .. s } + @[inline] private def visit (f : Expr → CheckAssignmentM Expr) (e : Expr) : CheckAssignmentM Expr := if !e.hasExprMVar && !e.hasFVar then pure e else checkCache e f @@ -395,31 +407,41 @@ pure (mkMVar mvarId) let mvarId := mvar.mvarId!; ctx ← read; mctx ← getMCtx; -match mctx.getExprAssignment? mvarId with -| some v => visit check v -| none => - if mvarId == ctx.mvarId then throw Exception.occursCheck - else match mctx.findDecl? mvarId with - | none => throw $ Exception.unknownExprMVar mvarId - | some mvarDecl => - if ctx.hasCtxLocals then throw $ Exception.useFOApprox -- we use option c) described at workaround A2 - else if mvarDecl.lctx.isSubPrefixOf ctx.mvarDecl.lctx then pure mvar - else if mvarDecl.depth != mctx.depth || mvarDecl.kind.isSyntheticOpaque then throw $ Exception.readOnlyMVarWithBiggerLCtx mvarId - else if ctx.ctxApprox && ctx.mvarDecl.lctx.isSubPrefixOf mvarDecl.lctx then do - mvarType ← check mvarDecl.type; - /- Create an auxiliary metavariable with a smaller context and "checked" type. - Note that `mvarType` may be different from `mvarDecl.type`. Example: `mvarType` contains - a metavariable that we also need to reduce the context. -/ - newMVar ← mkAuxMVar ctx.mvarDecl.lctx ctx.mvarDecl.localInstances mvarType; - modify $ fun s => { mctx := s.mctx.assignExpr mvarId newMVar, .. s }; - pure newMVar - else - pure mvar +if mvarId == ctx.mvarId then throw Exception.occursCheck +else match mctx.findDecl? mvarId with + | none => throw $ Exception.unknownExprMVar mvarId + | some mvarDecl => + if ctx.hasCtxLocals then throw $ Exception.useFOApprox -- we use option c) described at workaround A2 + else if mvarDecl.lctx.isSubPrefixOf ctx.mvarDecl.lctx then pure mvar + else if mvarDecl.depth != mctx.depth || mvarDecl.kind.isSyntheticOpaque then throw $ Exception.readOnlyMVarWithBiggerLCtx mvarId + else if ctx.config.ctxApprox && ctx.mvarDecl.lctx.isSubPrefixOf mvarDecl.lctx then do + mvarType ← check mvarDecl.type; + /- Create an auxiliary metavariable with a smaller context and "checked" type. + Note that `mvarType` may be different from `mvarDecl.type`. Example: `mvarType` contains + a metavariable that we also need to reduce the context. -/ + newMVar ← mkAuxMVar ctx.mvarDecl.lctx ctx.mvarDecl.localInstances mvarType; + modify $ fun s => { mctx := s.mctx.assignExpr mvarId newMVar, .. s }; + pure newMVar + else + pure mvar + +/- + Auxiliary function used to "fix" subterms of the form `?m x_1 ... x_n` where `x_i`s are free variables, + and one of them is out-of-scope. + See `Expr.app` case at `check`. + If `ctxApprox` is true, then we solve this case by creating a fresh metavariable ?n with the correct scope, + an assigning `?m := fun _ ... _ => ?n` -/ +def assignToConstFun (mvar : Expr) (numArgs : Nat) (newMVar : Expr) : MetaM Bool := do +mvarType ← inferType mvar; +forallBoundedTelescope mvarType numArgs $ fun xs _ => + if xs.size != numArgs then pure false + else do + v ← mkLambda xs newMVar; + checkTypesAndAssign mvar v partial def check : Expr → CheckAssignmentM Expr | e@(Expr.mdata _ b _) => do b ← visit check b; pure $ e.updateMData! b | e@(Expr.proj _ _ s _) => do s ← visit check s; pure $ e.updateProj! s -| e@(Expr.app f a _) => do f ← visit check f; a ← visit check a; pure $ e.updateApp! f a | e@(Expr.lam _ d b _) => do d ← visit check d; b ← visit check b; pure $ e.updateLambdaE! d b | e@(Expr.forallE _ d b _) => do d ← visit check d; b ← visit check b; pure $ e.updateForallE! d b | e@(Expr.letE _ t v b _) => do t ← visit check t; v ← visit check v; b ← visit check b; pure $ e.updateLet! t v b @@ -430,6 +452,29 @@ partial def check : Expr → CheckAssignmentM Expr | e@(Expr.fvar _ _) => visit (checkFVar check) e | e@(Expr.mvar _ _) => visit (checkMVar check) e | Expr.localE _ _ _ _ => unreachable! +| e@(Expr.app _ _ _) => e.withApp $ fun f args => do + ctx ← read; + if f.isMVar && ctx.config.ctxApprox && args.all Expr.isFVar then do + f ← visit (checkMVar check) f; + catch + (do + args ← args.mapM (visit check); + pure $ mkAppN f args) + (fun ex => match ex with + | Exception.outOfScopeFVar _ => do + eType ← liftMetaM $ inferType e; + mvarType ← check eType; + /- Create an auxiliary metavariable with a smaller context and "checked" type, assign `?f := fun _ => ?newMVar` + Note that `mvarType` may be different from `eType`. -/ + newMVar ← mkAuxMVar ctx.mvarDecl.lctx ctx.mvarDecl.localInstances mvarType; + condM (liftMetaM $ assignToConstFun f args.size newMVar) + (pure newMVar) + (throw ex) + | _ => throw ex) + else do + f ← visit check f; + args ← args.mapM (visit check); + pure $ mkAppN f args end CheckAssignment @@ -449,6 +494,7 @@ match ex with | CheckAssignment.Exception.unknownExprMVar mvarId => -- This case can only happen if the MetaM API is being misused throwEx $ Exception.unknownExprMVar mvarId +| CheckAssignment.Exception.meta ex => throw ex namespace CheckAssignmentQuick @@ -492,6 +538,20 @@ partial def check end CheckAssignmentQuick +-- See checkAssignment +def checkAssignmentAux (mvarId : MVarId) (mvarDecl : MetavarDecl) (fvars : Array Expr) (hasCtxLocals : Bool) (v : Expr) : MetaM (Option Expr) := +fun ctx s => + let checkCtx : CheckAssignment.Context := { + mvarId := mvarId, + mvarDecl := s.mctx.getDecl mvarId, + fvars := fvars, + hasCtxLocals := hasCtxLocals, + toContext := ctx + }; + match (CheckAssignment.check v checkCtx).run { toState := s } with + | EStateM.Result.ok e newS => EStateM.Result.ok (some e) newS.toState + | EStateM.Result.error ex newS => checkAssignmentFailure mvarId fvars v ex ctx newS.toState + /-- Auxiliary function for handling constraints of the form `?m a₁ ... aₙ =?= v`. It will check whether we can perform the assignment @@ -501,24 +561,19 @@ end CheckAssignmentQuick The result is `none` if the assignment can't be performed. The result is `some newV` where `newV` is a possibly updated `v`. This method may need to unfold let-declarations. -/ -def checkAssignment (mvarId : MVarId) (fvars : Array Expr) (v : Expr) : MetaM (Option Expr) := -fun ctx s => if !v.hasExprMVar && !v.hasFVar then EStateM.Result.ok (some v) s else - let mvarDecl := s.mctx.getDecl mvarId; +def checkAssignment (mvarId : MVarId) (fvars : Array Expr) (v : Expr) : MetaM (Option Expr) := do +if !v.hasExprMVar && !v.hasFVar then + pure (some v) +else do + mvarDecl ← getMVarDecl mvarId; let hasCtxLocals := fvars.any $ fun fvar => mvarDecl.lctx.containsFVar fvar; - if CheckAssignmentQuick.check hasCtxLocals ctx.config.ctxApprox s.mctx ctx.lctx mvarDecl mvarId fvars v then - EStateM.Result.ok (some v) s - else - let checkCtx : CheckAssignment.Context := { - lctx := ctx.lctx, - mvarId := mvarId, - mvarDecl := s.mctx.getDecl mvarId, - fvars := fvars, - ctxApprox := ctx.config.ctxApprox, - hasCtxLocals := hasCtxLocals - }; - match (CheckAssignment.check v checkCtx).run { mctx := s.mctx, ngen := s.ngen } with - | EStateM.Result.ok e newS => EStateM.Result.ok (some e) { mctx := newS.mctx, ngen := newS.ngen, .. s } - | EStateM.Result.error ex newS => checkAssignmentFailure mvarId fvars v ex ctx { ngen := newS.ngen, .. s } + ctx ← read; + mctx ← getMCtx; + if CheckAssignmentQuick.check hasCtxLocals ctx.config.ctxApprox mctx ctx.lctx mvarDecl mvarId fvars v then + pure (some v) + else do + v ← instantiateMVars v; + checkAssignmentAux mvarId mvarDecl fvars hasCtxLocals v /- We try to unify arguments before we try to unify the functions. @@ -623,16 +678,6 @@ private def simpAssignmentArg (arg : Expr) : MetaM Expr := do arg ← if arg.getAppFn.hasExprMVar then instantiateMVars arg else pure arg; simpAssignmentArgAux arg -private def checkTypesAndAssign (mvar : Expr) (v : Expr) : MetaM Bool := -traceCtx `Meta.isDefEq.assign.checkTypes $ do - -- must check whether types are definitionally equal or not, before assigning and returning true - mvarType ← inferType mvar; - vType ← inferType v; - condM (withTransparency TransparencyMode.default $ isExprDefEqAux mvarType vType) - (do assignExprMVar mvar.mvarId! v; pure true) - (do trace `Meta.isDefEq.assign.typeMismatch $ fun _ => mvar ++ " : " ++ mvarType ++ " := " ++ v ++ " : " ++ vType; - pure false) - private def processConstApprox (mvar : Expr) (numArgs : Nat) (v : Expr) : MetaM Bool := do let mvarId := mvar.mvarId!; v? ← checkAssignment mvarId #[] v; @@ -653,13 +698,18 @@ private partial def processAssignmentAux (mvar : Expr) (mvarDecl : MetavarDecl) let arg := args.get ⟨i, h⟩; arg ← simpAssignmentArg arg; let args := args.set ⟨i, h⟩ arg; - let useFOApprox : Unit → MetaM Bool := fun _ => - if cfg.foApprox && v.isApp then - processAssignmentFOApprox mvar args v - else if cfg.constApprox then + let useConstApprox : Unit → MetaM Bool := fun _ => + if cfg.constApprox then processConstApprox mvar args.size v else pure false; + let useFOApprox : Unit → MetaM Bool := fun _ => + if cfg.foApprox && v.isApp then + condM (processAssignmentFOApprox mvar args v) + (pure true) + (useConstApprox ()) + else + useConstApprox (); match arg with | Expr.fvar fvarId _ => if args.anyRange 0 i (fun prevArg => prevArg == arg) then diff --git a/stage0/src/Init/Lean/Parser/Term.lean b/stage0/src/Init/Lean/Parser/Term.lean index 8f99ca8c32..b7f97e177e 100644 --- a/stage0/src/Init/Lean/Parser/Term.lean +++ b/stage0/src/Init/Lean/Parser/Term.lean @@ -58,7 +58,9 @@ def haveAssign := parser! " := " >> termParser @[builtinTermParser] def «suffices» := parser! "suffices " >> optIdent >> termParser >> fromTerm >> "; " >> termParser @[builtinTermParser] def «show» := parser! "show " >> termParser >> fromTerm @[builtinTermParser] def «fun» := parser! unicodeSymbol "λ" "fun" >> many1 (termParser appPrec) >> darrow >> termParser -def structInstField := parser! ident >> " := " >> termParser +def structInstArrayRef := parser! "[" >> termParser >>"]" +def structInstLVal := (ident <|> structInstArrayRef) >> many (("." >> ident) <|> structInstArrayRef) +def structInstField := parser! structInstLVal >> " := " >> termParser def structInstSource := parser! ".." >> optional termParser @[builtinTermParser] def structInst := parser! symbol "{" appPrec >> optional (try (ident >> " . ")) >> sepBy (structInstField <|> structInstSource) ", " true >> "}" def typeSpec := parser! " : " >> termParser diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index 515e60830f..59520361c4 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT Init/./Coe.c Init/./Control.c Init/./Control/Alternative.c Init/./Control/Applicative.c Init/./Control/Conditional.c Init/./Control/EState.c Init/./Control/Except.c Init/./Control/Functor.c Init/./Control/Id.c Init/./Control/Lift.c Init/./Control/Monad.c Init/./Control/MonadFail.c Init/./Control/Option.c Init/./Control/Reader.c Init/./Control/State.c Init/./Core.c Init/./Data.c Init/./Data/Array.c Init/./Data/Array/Basic.c Init/./Data/Array/BinSearch.c Init/./Data/Array/QSort.c Init/./Data/AssocList.c Init/./Data/Basic.c Init/./Data/BinomialHeap.c Init/./Data/BinomialHeap/Basic.c Init/./Data/ByteArray.c Init/./Data/ByteArray/Basic.c Init/./Data/Char.c Init/./Data/Char/Basic.c Init/./Data/DList.c Init/./Data/Fin.c Init/./Data/Fin/Basic.c Init/./Data/HashMap.c Init/./Data/HashMap/Basic.c Init/./Data/HashSet.c Init/./Data/Hashable.c Init/./Data/Int.c Init/./Data/Int/Basic.c Init/./Data/List.c Init/./Data/List/Basic.c Init/./Data/List/BasicAux.c Init/./Data/List/Control.c Init/./Data/List/Instances.c Init/./Data/Nat.c Init/./Data/Nat/Basic.c Init/./Data/Nat/Bitwise.c Init/./Data/Nat/Control.c Init/./Data/Nat/Div.c Init/./Data/Option.c Init/./Data/Option/Basic.c Init/./Data/Option/BasicAux.c Init/./Data/Option/Instances.c Init/./Data/PersistentArray.c Init/./Data/PersistentArray/Basic.c Init/./Data/PersistentHashMap.c Init/./Data/PersistentHashMap/Basic.c Init/./Data/PersistentHashSet.c Init/./Data/Queue.c Init/./Data/Queue/Basic.c Init/./Data/RBMap.c Init/./Data/RBMap/Basic.c Init/./Data/RBMap/BasicAux.c Init/./Data/RBTree.c Init/./Data/RBTree/Basic.c Init/./Data/Random.c Init/./Data/Repr.c Init/./Data/Stack.c Init/./Data/Stack/Basic.c Init/./Data/String.c Init/./Data/String/Basic.c Init/./Data/ToString.c Init/./Data/UInt.c Init/./Default.c Init/./Fix.c Init/./HasCoe.c Init/./Lean.c Init/./Lean/Attributes.c Init/./Lean/AuxRecursor.c Init/./Lean/Class.c Init/./Lean/Compiler.c Init/./Lean/Compiler/ClosedTermCache.c Init/./Lean/Compiler/ConstFolding.c Init/./Lean/Compiler/ExportAttr.c Init/./Lean/Compiler/ExternAttr.c Init/./Lean/Compiler/IR.c Init/./Lean/Compiler/IR/Basic.c Init/./Lean/Compiler/IR/Borrow.c Init/./Lean/Compiler/IR/Boxing.c Init/./Lean/Compiler/IR/Checker.c Init/./Lean/Compiler/IR/CompilerM.c Init/./Lean/Compiler/IR/CtorLayout.c Init/./Lean/Compiler/IR/ElimDeadBranches.c Init/./Lean/Compiler/IR/ElimDeadVars.c Init/./Lean/Compiler/IR/EmitC.c Init/./Lean/Compiler/IR/EmitUtil.c Init/./Lean/Compiler/IR/ExpandResetReuse.c Init/./Lean/Compiler/IR/Format.c Init/./Lean/Compiler/IR/FreeVars.c Init/./Lean/Compiler/IR/LiveVars.c Init/./Lean/Compiler/IR/NormIds.c Init/./Lean/Compiler/IR/PushProj.c Init/./Lean/Compiler/IR/RC.c Init/./Lean/Compiler/IR/ResetReuse.c Init/./Lean/Compiler/IR/SimpCase.c Init/./Lean/Compiler/IR/UnboxResult.c Init/./Lean/Compiler/ImplementedByAttr.c Init/./Lean/Compiler/InitAttr.c Init/./Lean/Compiler/InlineAttrs.c Init/./Lean/Compiler/NameMangling.c Init/./Lean/Compiler/NeverExtractAttr.c Init/./Lean/Compiler/Specialize.c Init/./Lean/Compiler/Util.c Init/./Lean/Data/Format.c Init/./Lean/Data/KVMap.c Init/./Lean/Data/LBool.c Init/./Lean/Data/LOption.c Init/./Lean/Data/Name.c Init/./Lean/Data/Occurrences.c Init/./Lean/Data/Options.c Init/./Lean/Data/Position.c Init/./Lean/Data/SMap.c Init/./Lean/Data/Trie.c Init/./Lean/Declaration.c Init/./Lean/Elab.c Init/./Lean/Elab/Alias.c Init/./Lean/Elab/BuiltinNotation.c Init/./Lean/Elab/Command.c Init/./Lean/Elab/DeclModifiers.c Init/./Lean/Elab/Declaration.c Init/./Lean/Elab/Definition.c Init/./Lean/Elab/DoNotation.c Init/./Lean/Elab/ElabStrategyAttrs.c Init/./Lean/Elab/Exception.c Init/./Lean/Elab/Frontend.c Init/./Lean/Elab/Import.c Init/./Lean/Elab/Level.c Init/./Lean/Elab/Log.c Init/./Lean/Elab/Match.c Init/./Lean/Elab/Quotation.c Init/./Lean/Elab/ResolveName.c Init/./Lean/Elab/Syntax.c Init/./Lean/Elab/SynthesizeSyntheticMVars.c Init/./Lean/Elab/Tactic.c Init/./Lean/Elab/Tactic/Basic.c Init/./Lean/Elab/Tactic/ElabTerm.c Init/./Lean/Elab/Term.c Init/./Lean/Elab/TermApp.c Init/./Lean/Elab/TermBinders.c Init/./Lean/Elab/Util.c Init/./Lean/Environment.c Init/./Lean/EqnCompiler.c Init/./Lean/EqnCompiler/MatchPattern.c Init/./Lean/Eval.c Init/./Lean/Expr.c Init/./Lean/HeadIndex.c Init/./Lean/Hygiene.c Init/./Lean/Level.c Init/./Lean/Linter.c Init/./Lean/LocalContext.c Init/./Lean/Message.c Init/./Lean/Meta.c Init/./Lean/Meta/AbstractMVars.c Init/./Lean/Meta/AppBuilder.c Init/./Lean/Meta/Basic.c Init/./Lean/Meta/Check.c Init/./Lean/Meta/DiscrTree.c Init/./Lean/Meta/DiscrTreeTypes.c Init/./Lean/Meta/Exception.c Init/./Lean/Meta/ExprDefEq.c Init/./Lean/Meta/FunInfo.c Init/./Lean/Meta/InferType.c Init/./Lean/Meta/Instances.c Init/./Lean/Meta/KAbstract.c Init/./Lean/Meta/LevelDefEq.c Init/./Lean/Meta/Message.c Init/./Lean/Meta/Offset.c Init/./Lean/Meta/Reduce.c Init/./Lean/Meta/SynthInstance.c Init/./Lean/Meta/Tactic.c Init/./Lean/Meta/Tactic/Apply.c Init/./Lean/Meta/Tactic/Assumption.c Init/./Lean/Meta/Tactic/Intro.c Init/./Lean/Meta/Tactic/Util.c Init/./Lean/Meta/WHNF.c Init/./Lean/MetavarContext.c Init/./Lean/Modifiers.c Init/./Lean/Parser.c Init/./Lean/Parser/Command.c Init/./Lean/Parser/Level.c Init/./Lean/Parser/Module.c Init/./Lean/Parser/Parser.c Init/./Lean/Parser/Syntax.c Init/./Lean/Parser/Tactic.c Init/./Lean/Parser/Term.c Init/./Lean/Parser/Transform.c Init/./Lean/ProjFns.c Init/./Lean/ReducibilityAttrs.c Init/./Lean/Runtime.c Init/./Lean/Scopes.c Init/./Lean/Structure.c Init/./Lean/Syntax.c Init/./Lean/ToExpr.c Init/./Lean/Util/CollectFVars.c Init/./Lean/Util/CollectLevelParams.c Init/./Lean/Util/CollectMVars.c Init/./Lean/Util/FindMVar.c Init/./Lean/Util/MonadCache.c Init/./Lean/Util/PPExt.c Init/./Lean/Util/PPGoal.c Init/./Lean/Util/Path.c Init/./Lean/Util/Profile.c Init/./Lean/Util/RecDepth.c Init/./Lean/Util/Sorry.c Init/./Lean/Util/Trace.c Init/./Lean/Util/WHNF.c Init/./LeanInit.c Init/./MutQuot.c Init/./System.c Init/./System/FilePath.c Init/./System/IO.c Init/./System/IOError.c Init/./System/Platform.c Init/./Util.c Init/./WF.c) +add_library (stage0 OBJECT Init/./Coe.c Init/./Control.c Init/./Control/Alternative.c Init/./Control/Applicative.c Init/./Control/Conditional.c Init/./Control/EState.c Init/./Control/Except.c Init/./Control/Functor.c Init/./Control/Id.c Init/./Control/Lift.c Init/./Control/Monad.c Init/./Control/MonadFail.c Init/./Control/Option.c Init/./Control/Reader.c Init/./Control/State.c Init/./Core.c Init/./Data.c Init/./Data/Array.c Init/./Data/Array/Basic.c Init/./Data/Array/BinSearch.c Init/./Data/Array/QSort.c Init/./Data/AssocList.c Init/./Data/Basic.c Init/./Data/BinomialHeap.c Init/./Data/BinomialHeap/Basic.c Init/./Data/ByteArray.c Init/./Data/ByteArray/Basic.c Init/./Data/Char.c Init/./Data/Char/Basic.c Init/./Data/DList.c Init/./Data/Fin.c Init/./Data/Fin/Basic.c Init/./Data/HashMap.c Init/./Data/HashMap/Basic.c Init/./Data/HashSet.c Init/./Data/Hashable.c Init/./Data/Int.c Init/./Data/Int/Basic.c Init/./Data/List.c Init/./Data/List/Basic.c Init/./Data/List/BasicAux.c Init/./Data/List/Control.c Init/./Data/List/Instances.c Init/./Data/Nat.c Init/./Data/Nat/Basic.c Init/./Data/Nat/Bitwise.c Init/./Data/Nat/Control.c Init/./Data/Nat/Div.c Init/./Data/Option.c Init/./Data/Option/Basic.c Init/./Data/Option/BasicAux.c Init/./Data/Option/Instances.c Init/./Data/PersistentArray.c Init/./Data/PersistentArray/Basic.c Init/./Data/PersistentHashMap.c Init/./Data/PersistentHashMap/Basic.c Init/./Data/PersistentHashSet.c Init/./Data/Queue.c Init/./Data/Queue/Basic.c Init/./Data/RBMap.c Init/./Data/RBMap/Basic.c Init/./Data/RBMap/BasicAux.c Init/./Data/RBTree.c Init/./Data/RBTree/Basic.c Init/./Data/Random.c Init/./Data/Repr.c Init/./Data/Stack.c Init/./Data/Stack/Basic.c Init/./Data/String.c Init/./Data/String/Basic.c Init/./Data/ToString.c Init/./Data/UInt.c Init/./Default.c Init/./Fix.c Init/./HasCoe.c Init/./Lean.c Init/./Lean/Attributes.c Init/./Lean/AuxRecursor.c Init/./Lean/Class.c Init/./Lean/Compiler.c Init/./Lean/Compiler/ClosedTermCache.c Init/./Lean/Compiler/ConstFolding.c Init/./Lean/Compiler/ExportAttr.c Init/./Lean/Compiler/ExternAttr.c Init/./Lean/Compiler/IR.c Init/./Lean/Compiler/IR/Basic.c Init/./Lean/Compiler/IR/Borrow.c Init/./Lean/Compiler/IR/Boxing.c Init/./Lean/Compiler/IR/Checker.c Init/./Lean/Compiler/IR/CompilerM.c Init/./Lean/Compiler/IR/CtorLayout.c Init/./Lean/Compiler/IR/ElimDeadBranches.c Init/./Lean/Compiler/IR/ElimDeadVars.c Init/./Lean/Compiler/IR/EmitC.c Init/./Lean/Compiler/IR/EmitUtil.c Init/./Lean/Compiler/IR/ExpandResetReuse.c Init/./Lean/Compiler/IR/Format.c Init/./Lean/Compiler/IR/FreeVars.c Init/./Lean/Compiler/IR/LiveVars.c Init/./Lean/Compiler/IR/NormIds.c Init/./Lean/Compiler/IR/PushProj.c Init/./Lean/Compiler/IR/RC.c Init/./Lean/Compiler/IR/ResetReuse.c Init/./Lean/Compiler/IR/SimpCase.c Init/./Lean/Compiler/IR/UnboxResult.c Init/./Lean/Compiler/ImplementedByAttr.c Init/./Lean/Compiler/InitAttr.c Init/./Lean/Compiler/InlineAttrs.c Init/./Lean/Compiler/NameMangling.c Init/./Lean/Compiler/NeverExtractAttr.c Init/./Lean/Compiler/Specialize.c Init/./Lean/Compiler/Util.c Init/./Lean/Data/Format.c Init/./Lean/Data/KVMap.c Init/./Lean/Data/LBool.c Init/./Lean/Data/LOption.c Init/./Lean/Data/Name.c Init/./Lean/Data/Occurrences.c Init/./Lean/Data/Options.c Init/./Lean/Data/Position.c Init/./Lean/Data/SMap.c Init/./Lean/Data/Trie.c Init/./Lean/Declaration.c Init/./Lean/Elab.c Init/./Lean/Elab/Alias.c Init/./Lean/Elab/BuiltinNotation.c Init/./Lean/Elab/Command.c Init/./Lean/Elab/DeclModifiers.c Init/./Lean/Elab/Declaration.c Init/./Lean/Elab/Definition.c Init/./Lean/Elab/DoNotation.c Init/./Lean/Elab/ElabStrategyAttrs.c Init/./Lean/Elab/Exception.c Init/./Lean/Elab/Frontend.c Init/./Lean/Elab/Import.c Init/./Lean/Elab/Level.c Init/./Lean/Elab/Log.c Init/./Lean/Elab/Match.c Init/./Lean/Elab/Quotation.c Init/./Lean/Elab/ResolveName.c Init/./Lean/Elab/StructInst.c Init/./Lean/Elab/Syntax.c Init/./Lean/Elab/SynthesizeSyntheticMVars.c Init/./Lean/Elab/Tactic.c Init/./Lean/Elab/Tactic/Basic.c Init/./Lean/Elab/Tactic/ElabTerm.c Init/./Lean/Elab/Term.c Init/./Lean/Elab/TermApp.c Init/./Lean/Elab/TermBinders.c Init/./Lean/Elab/Util.c Init/./Lean/Environment.c Init/./Lean/EqnCompiler.c Init/./Lean/EqnCompiler/MatchPattern.c Init/./Lean/Eval.c Init/./Lean/Expr.c Init/./Lean/HeadIndex.c Init/./Lean/Hygiene.c Init/./Lean/Level.c Init/./Lean/Linter.c Init/./Lean/LocalContext.c Init/./Lean/Message.c Init/./Lean/Meta.c Init/./Lean/Meta/AbstractMVars.c Init/./Lean/Meta/AppBuilder.c Init/./Lean/Meta/Basic.c Init/./Lean/Meta/Check.c Init/./Lean/Meta/DiscrTree.c Init/./Lean/Meta/DiscrTreeTypes.c Init/./Lean/Meta/Exception.c Init/./Lean/Meta/ExprDefEq.c Init/./Lean/Meta/FunInfo.c Init/./Lean/Meta/InferType.c Init/./Lean/Meta/Instances.c Init/./Lean/Meta/KAbstract.c Init/./Lean/Meta/LevelDefEq.c Init/./Lean/Meta/Message.c Init/./Lean/Meta/Offset.c Init/./Lean/Meta/Reduce.c Init/./Lean/Meta/SynthInstance.c Init/./Lean/Meta/Tactic.c Init/./Lean/Meta/Tactic/Apply.c Init/./Lean/Meta/Tactic/Assumption.c Init/./Lean/Meta/Tactic/Intro.c Init/./Lean/Meta/Tactic/Util.c Init/./Lean/Meta/WHNF.c Init/./Lean/MetavarContext.c Init/./Lean/Modifiers.c Init/./Lean/Parser.c Init/./Lean/Parser/Command.c Init/./Lean/Parser/Level.c Init/./Lean/Parser/Module.c Init/./Lean/Parser/Parser.c Init/./Lean/Parser/Syntax.c Init/./Lean/Parser/Tactic.c Init/./Lean/Parser/Term.c Init/./Lean/Parser/Transform.c Init/./Lean/ProjFns.c Init/./Lean/ReducibilityAttrs.c Init/./Lean/Runtime.c Init/./Lean/Scopes.c Init/./Lean/Structure.c Init/./Lean/Syntax.c Init/./Lean/ToExpr.c Init/./Lean/Util/CollectFVars.c Init/./Lean/Util/CollectLevelParams.c Init/./Lean/Util/CollectMVars.c Init/./Lean/Util/FindMVar.c Init/./Lean/Util/MonadCache.c Init/./Lean/Util/PPExt.c Init/./Lean/Util/PPGoal.c Init/./Lean/Util/Path.c Init/./Lean/Util/Profile.c Init/./Lean/Util/RecDepth.c Init/./Lean/Util/Sorry.c Init/./Lean/Util/Trace.c Init/./Lean/Util/WHNF.c Init/./LeanInit.c Init/./MutQuot.c Init/./System.c Init/./System/FilePath.c Init/./System/IO.c Init/./System/IOError.c Init/./System/Platform.c Init/./Util.c Init/./WF.c) diff --git a/stage0/stdlib/Init/Data/Array/Basic.c b/stage0/stdlib/Init/Data/Array/Basic.c index a3d50da601..1e08e5a417 100644 --- a/stage0/stdlib/Init/Data/Array/Basic.c +++ b/stage0/stdlib/Init/Data/Array/Basic.c @@ -94,6 +94,7 @@ lean_object* l___private_Init_Data_Array_Basic_1__swapAtPanic_x21___rarg___close lean_object* l_Array_insertAtAux___main(lean_object*); lean_object* l_Array_iterateM_u2082Aux___main___at_Array_foldlM_u2082___spec__1(lean_object*, lean_object*); lean_object* l_Array_empty___closed__1; +lean_object* l_Array_modifyOp(lean_object*); lean_object* l___private_Init_Data_Array_Basic_4__foldrRangeMAux___main___at_Array_foldrRange___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_modifyM___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_eraseIdxSzAuxInstance___rarg(lean_object*); @@ -391,6 +392,7 @@ lean_object* l_Array_getD___rarg___boxed(lean_object*, lean_object*, lean_object lean_object* l___private_Init_Data_Array_Basic_4__foldrRangeMAux___main___at_Array_foldrRange___spec__1(lean_object*, lean_object*); lean_object* l_Array_findSomeRevMAux___main___at_Array_findSomeRev_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldrRangeM(lean_object*, lean_object*); +lean_object* l_Array_modifyOp___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_foldlStepM___boxed(lean_object*, lean_object*); lean_object* l_Array_foldrRange___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_findRevMAux___main___at_Array_findRev_x3f___spec__1(lean_object*); @@ -486,6 +488,7 @@ lean_object* l_Array_eraseIdx_x27___rarg(lean_object*, lean_object*); lean_object* l_Array_findIdx_x21(lean_object*); lean_object* l_Array_back___rarg___boxed(lean_object*, lean_object*); lean_object* l_Array_filterMAux___boxed(lean_object*); +lean_object* l_Array_modifyOp___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main(lean_object*, lean_object*); lean_object* l_Array_forMAux___main(lean_object*); lean_object* l_Array_indexOf___rarg(lean_object*, lean_object*, lean_object*); @@ -6686,6 +6689,47 @@ lean_dec(x_3); return x_5; } } +lean_object* l_Array_modifyOp___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_2); +x_6 = lean_nat_dec_lt(x_3, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_dec(x_4); +lean_dec(x_1); +return x_2; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_array_fget(x_2, x_3); +x_8 = lean_array_fset(x_2, x_3, x_1); +x_9 = lean_apply_1(x_4, x_7); +x_10 = lean_array_fset(x_8, x_3, x_9); +return x_10; +} +} +} +lean_object* l_Array_modifyOp(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Array_modifyOp___rarg___boxed), 4, 0); +return x_2; +} +} +lean_object* l_Array_modifyOp___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_Array_modifyOp___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_3); +return x_5; +} +} lean_object* l_Array_umapMAux___main___at_Array_mapIdx___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -8349,7 +8393,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l___private_Init_Data_Array_Basic_1__swapAtPanic_x21___rarg___closed__3; -x_2 = lean_unsigned_to_nat(669u); +x_2 = lean_unsigned_to_nat(672u); x_3 = lean_unsigned_to_nat(20u); x_4 = l_Array_insertAt___rarg___closed__1; x_5 = l___private_Init_Util_1__mkPanicMessage(x_1, x_2, x_3, x_4); diff --git a/stage0/stdlib/Init/Lean/Elab.c b/stage0/stdlib/Init/Lean/Elab.c index f42cff8991..65318e788c 100644 --- a/stage0/stdlib/Init/Lean/Elab.c +++ b/stage0/stdlib/Init/Lean/Elab.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init.Lean.Elab -// Imports: Init.Lean.Elab.Import Init.Lean.Elab.Exception Init.Lean.Elab.ElabStrategyAttrs Init.Lean.Elab.Command Init.Lean.Elab.Term Init.Lean.Elab.TermApp Init.Lean.Elab.TermBinders Init.Lean.Elab.Quotation Init.Lean.Elab.Frontend Init.Lean.Elab.BuiltinNotation Init.Lean.Elab.Declaration Init.Lean.Elab.Tactic Init.Lean.Elab.Syntax Init.Lean.Elab.Match Init.Lean.Elab.DoNotation +// Imports: Init.Lean.Elab.Import Init.Lean.Elab.Exception Init.Lean.Elab.ElabStrategyAttrs Init.Lean.Elab.Command Init.Lean.Elab.Term Init.Lean.Elab.TermApp Init.Lean.Elab.TermBinders Init.Lean.Elab.Quotation Init.Lean.Elab.Frontend Init.Lean.Elab.BuiltinNotation Init.Lean.Elab.Declaration Init.Lean.Elab.Tactic Init.Lean.Elab.Syntax Init.Lean.Elab.Match Init.Lean.Elab.DoNotation Init.Lean.Elab.StructInst #include "runtime/lean.h" #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -28,6 +28,7 @@ lean_object* initialize_Init_Lean_Elab_Tactic(lean_object*); lean_object* initialize_Init_Lean_Elab_Syntax(lean_object*); lean_object* initialize_Init_Lean_Elab_Match(lean_object*); lean_object* initialize_Init_Lean_Elab_DoNotation(lean_object*); +lean_object* initialize_Init_Lean_Elab_StructInst(lean_object*); static bool _G_initialized = false; lean_object* initialize_Init_Lean_Elab(lean_object* w) { lean_object * res; @@ -78,6 +79,9 @@ lean_dec_ref(res); res = initialize_Init_Lean_Elab_DoNotation(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_Lean_Elab_StructInst(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Init/Lean/Elab/Command.c b/stage0/stdlib/Init/Lean/Elab/Command.c index 64d48458a4..200b48fc9b 100644 --- a/stage0/stdlib/Init/Lean/Elab/Command.c +++ b/stage0/stdlib/Init/Lean/Elab/Command.c @@ -105,7 +105,6 @@ lean_object* l_List_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabSetOption(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_logAt___at_Lean_Elab_Command_logTrace___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___closed__2; -extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; lean_object* lean_io_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_compileDecl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_elabOpenSimple___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -241,6 +240,7 @@ lean_object* l_Lean_Elab_mkMessageCore(lean_object*, lean_object*, lean_object*, lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabVariables___closed__2; lean_object* l_Lean_Elab_Command_elabVariables___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_throwAlreadyDeclaredUniverseLevel___rarg___closed__5; +lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*); lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*); lean_object* l_Lean_Elab_getPos___at_Lean_Elab_Command_throwError___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); @@ -253,6 +253,7 @@ lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__4; 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*); +lean_object* l_Lean_Elab_Command_expandDeclId___boxed(lean_object*); lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabSetOption(lean_object*); lean_object* l_Lean_Elab_Command_elabOpenRenaming(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_mkConst___closed__4; @@ -270,6 +271,7 @@ lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, lean_obj extern lean_object* l_Char_HasRepr___closed__1; lean_object* l_Lean_Elab_Command_registerBuiltinCommandElabAttr___lambda__1___closed__4; lean_object* l_Lean_Elab_getMacros(lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; lean_object* l___private_Init_Lean_Elab_Command_1__ioErrorToMessage___boxed(lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Lean_Elab_Command_14__checkAnonymousScope(lean_object*); lean_object* l___private_Init_Lean_Elab_Command_1__ioErrorToMessage(lean_object*, lean_object*, lean_object*); @@ -468,6 +470,7 @@ lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabUniverse___closed__ extern lean_object* l_Lean_Parser_Command_universes___elambda__1___closed__2; lean_object* l_Lean_Elab_Command_elabEnd___closed__3; lean_object* lean_io_ref_set(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_mkOptionalNode___closed__1; lean_object* l___regBuiltinCommandElab_Lean_Elab_Command_elabCheck___closed__4; lean_object* l___private_Init_Lean_Elab_Command_6__mkTermContext___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_getLevelNames(lean_object*, lean_object*); @@ -587,6 +590,7 @@ 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___regBuiltinCommandElab_Lean_Elab_Command_elabEnd___closed__2; +uint8_t l_Lean_Syntax_isIdent(lean_object*); lean_object* lean_add_decl(lean_object*, 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() { @@ -17390,7 +17394,7 @@ lean_inc(x_17); lean_dec(x_15); x_18 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_18, 0, x_9); -x_19 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; +x_19 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; x_20 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -20072,6 +20076,44 @@ x_5 = l_Lean_Elab_Command_addBuiltinCommandElab(x_2, x_3, x_4, x_1); return x_5; } } +lean_object* l_Lean_Elab_Command_expandDeclId(lean_object* x_1) { +_start: +{ +uint8_t x_2; +x_2 = l_Lean_Syntax_isIdent(x_1); +if (x_2 == 0) +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_unsigned_to_nat(0u); +x_4 = l_Lean_Syntax_getIdAt(x_1, x_3); +x_5 = lean_unsigned_to_nat(1u); +x_6 = l_Lean_Syntax_getArg(x_1, x_5); +x_7 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_7, 0, x_4); +lean_ctor_set(x_7, 1, x_6); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = l_Lean_Syntax_getId(x_1); +x_9 = l_Lean_mkOptionalNode___closed__1; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +} +lean_object* l_Lean_Elab_Command_expandDeclId___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Command_expandDeclId(x_1); +lean_dec(x_1); +return x_2; +} +} lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -22357,899 +22399,903 @@ return x_2; lean_object* l_Lean_Elab_Command_withDeclId(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_5 = lean_unsigned_to_nat(0u); -x_6 = l_Lean_Syntax_getIdAt(x_1, x_5); -x_7 = lean_unsigned_to_nat(1u); -x_8 = l_Lean_Syntax_getArg(x_1, x_7); +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l_Lean_Elab_Command_expandDeclId(x_1); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); lean_inc(x_3); -x_9 = l_Lean_Elab_Command_getLevelNames(x_3, x_4); -if (lean_obj_tag(x_9) == 0) +x_8 = l_Lean_Elab_Command_getLevelNames(x_3, x_4); +if (lean_obj_tag(x_8) == 0) { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_175; -x_10 = lean_ctor_get(x_9, 0); +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_174; +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_8, 1); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_175 = l_Lean_Syntax_isNone(x_8); -if (x_175 == 0) -{ -lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; -x_176 = l_Lean_Syntax_getArg(x_8, x_7); lean_dec(x_8); +x_174 = l_Lean_Syntax_isNone(x_7); +if (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; +x_175 = lean_unsigned_to_nat(1u); +x_176 = l_Lean_Syntax_getArg(x_7, x_175); x_177 = l_Lean_Syntax_getArgs(x_176); lean_dec(x_176); x_178 = lean_unsigned_to_nat(2u); -x_179 = l_Array_empty___closed__1; -x_180 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_178, x_177, x_5, x_179); +x_179 = lean_unsigned_to_nat(0u); +x_180 = l_Array_empty___closed__1; +x_181 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_178, x_177, x_179, x_180); lean_dec(x_177); lean_inc(x_3); -lean_inc(x_10); -x_181 = l_Array_iterateMAux___main___at_Lean_Elab_Command_withDeclId___spec__5(x_1, x_180, x_5, x_10, x_3, x_11); -lean_dec(x_180); -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_inc(x_9); +x_182 = l_Array_iterateMAux___main___at_Lean_Elab_Command_withDeclId___spec__5(x_7, x_181, x_179, x_9, x_3, x_10); lean_dec(x_181); -x_12 = x_182; -x_13 = x_183; -goto block_174; +lean_dec(x_7); +if (lean_obj_tag(x_182) == 0) +{ +lean_object* x_183; lean_object* x_184; +x_183 = lean_ctor_get(x_182, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 1); +lean_inc(x_184); +lean_dec(x_182); +x_11 = x_183; +x_12 = x_184; +goto block_173; } else { -uint8_t x_184; -lean_dec(x_10); +uint8_t x_185; +lean_dec(x_9); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_184 = !lean_is_exclusive(x_181); -if (x_184 == 0) +x_185 = !lean_is_exclusive(x_182); +if (x_185 == 0) { -return x_181; +return x_182; } else { -lean_object* x_185; lean_object* x_186; lean_object* x_187; -x_185 = lean_ctor_get(x_181, 0); -x_186 = lean_ctor_get(x_181, 1); +lean_object* x_186; lean_object* x_187; lean_object* x_188; +x_186 = lean_ctor_get(x_182, 0); +x_187 = lean_ctor_get(x_182, 1); +lean_inc(x_187); lean_inc(x_186); -lean_inc(x_185); -lean_dec(x_181); -x_187 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_187, 0, x_185); -lean_ctor_set(x_187, 1, x_186); -return x_187; +lean_dec(x_182); +x_188 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_188, 0, x_186); +lean_ctor_set(x_188, 1, x_187); +return x_188; } } } else { -lean_dec(x_8); -lean_inc(x_10); +lean_dec(x_7); +lean_inc(x_9); +x_11 = x_9; x_12 = x_10; -x_13 = x_11; -goto block_174; +goto block_173; } -block_174: +block_173: { -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); -if (lean_obj_tag(x_15) == 1) +lean_object* x_13; lean_object* x_14; +x_13 = l_Lean_extractMacroScopes(x_6); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +if (lean_obj_tag(x_14) == 1) { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_14); -if (x_16 == 0) +uint8_t x_15; +x_15 = !lean_is_exclusive(x_13); +if (x_15 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; +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_13, 0); +lean_dec(x_16); x_17 = lean_ctor_get(x_14, 0); -lean_dec(x_17); -x_18 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_14, 1); lean_inc(x_18); -x_19 = lean_ctor_get(x_15, 1); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_box(0); -x_21 = lean_name_mk_string(x_20, x_19); -lean_ctor_set(x_14, 0, x_21); -x_22 = l_Lean_MacroScopesView_review(x_14); -x_23 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; -x_24 = 1; +lean_dec(x_14); +x_19 = lean_box(0); +x_20 = lean_name_mk_string(x_19, x_18); +lean_ctor_set(x_13, 0, x_20); +x_21 = l_Lean_MacroScopesView_review(x_13); +x_22 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; +x_23 = 1; lean_inc(x_3); -lean_inc(x_18); -x_25 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_1, x_23, x_24, x_18, x_3, x_13); -if (lean_obj_tag(x_25) == 0) +lean_inc(x_17); +x_24 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_1, x_22, x_23, x_17, x_3, x_12); +if (lean_obj_tag(x_24) == 0) { -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_25, 1); -lean_inc(x_26); -lean_dec(x_25); +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_24, 1); +lean_inc(x_25); +lean_dec(x_24); lean_inc(x_3); -x_27 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__1(x_12, 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_11, x_3, x_25); +if (lean_obj_tag(x_26) == 0) { -lean_object* x_28; lean_object* x_29; -x_28 = lean_ctor_get(x_27, 1); -lean_inc(x_28); -lean_dec(x_27); +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 = lean_apply_3(x_2, x_22, 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; lean_object* 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); +lean_dec(x_28); lean_inc(x_3); -lean_inc(x_10); -x_32 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__2(x_10, x_3, x_31); -if (lean_obj_tag(x_32) == 0) +lean_inc(x_9); +x_31 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__2(x_9, x_3, x_30); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_33; lean_object* x_34; -lean_dec(x_10); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); +lean_object* x_32; lean_object* x_33; +lean_dec(x_9); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); lean_inc(x_3); -x_34 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_33); -if (lean_obj_tag(x_34) == 0) +x_33 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_32); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_34, 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); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = !lean_is_exclusive(x_35); -if (x_37 == 0) +lean_dec(x_33); +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_35, 2); -x_39 = l_Lean_Name_getNumParts___main(x_18); -lean_dec(x_18); -x_40 = l_List_drop___main___rarg(x_39, x_38); -lean_dec(x_38); -lean_ctor_set(x_35, 2, x_40); -x_41 = l___private_Init_Lean_Elab_Command_3__setState(x_35, x_3, x_36); -if (lean_obj_tag(x_41) == 0) +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_42; -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) { -lean_object* x_43; -x_43 = lean_ctor_get(x_41, 0); -lean_dec(x_43); -lean_ctor_set(x_41, 0, x_30); -return x_41; +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_44; lean_object* x_45; -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec(x_41); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_30); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +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_46; -lean_dec(x_30); -x_46 = !lean_is_exclusive(x_41); -if (x_46 == 0) +uint8_t x_45; +lean_dec(x_29); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) { -return x_41; +return x_40; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_41, 0); -x_48 = lean_ctor_get(x_41, 1); -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_dec(x_41); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +lean_inc(x_46); +lean_dec(x_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; } } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_50 = lean_ctor_get(x_35, 0); -x_51 = lean_ctor_get(x_35, 1); -x_52 = lean_ctor_get(x_35, 2); -x_53 = lean_ctor_get(x_35, 3); -x_54 = lean_ctor_get(x_35, 4); -lean_inc(x_54); +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_dec(x_35); -x_55 = l_Lean_Name_getNumParts___main(x_18); -lean_dec(x_18); -x_56 = l_List_drop___main___rarg(x_55, x_52); -lean_dec(x_52); -x_57 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_57, 0, x_50); -lean_ctor_set(x_57, 1, x_51); -lean_ctor_set(x_57, 2, x_56); -lean_ctor_set(x_57, 3, x_53); -lean_ctor_set(x_57, 4, x_54); -x_58 = l___private_Init_Lean_Elab_Command_3__setState(x_57, x_3, x_36); -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, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_60 = x_58; -} else { - lean_dec_ref(x_58); - x_60 = lean_box(0); -} -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(0, 2, 0); -} else { - x_61 = x_60; -} -lean_ctor_set(x_61, 0, x_30); -lean_ctor_set(x_61, 1, x_59); -return x_61; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_30); -x_62 = lean_ctor_get(x_58, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_58, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_64 = x_58; -} else { - lean_dec_ref(x_58); - x_64 = lean_box(0); -} -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 2, 0); -} else { - x_65 = x_64; -} -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return x_65; -} -} -} -else -{ -uint8_t x_66; -lean_dec(x_30); -lean_dec(x_18); -lean_dec(x_3); -x_66 = !lean_is_exclusive(x_34); -if (x_66 == 0) -{ -return x_34; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_34, 0); -x_68 = lean_ctor_get(x_34, 1); -lean_inc(x_68); -lean_inc(x_67); +lean_inc(x_49); lean_dec(x_34); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +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_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_59 = x_57; +} else { + lean_dec_ref(x_57); + x_59 = lean_box(0); } +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_59; } +lean_ctor_set(x_60, 0, x_29); +lean_ctor_set(x_60, 1, x_58); +return x_60; } else { -lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_30); -lean_dec(x_18); -x_70 = lean_ctor_get(x_32, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_32, 1); -lean_inc(x_71); -lean_dec(x_32); -x_72 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__3(x_10, x_3, x_71); -if (lean_obj_tag(x_72) == 0) -{ -uint8_t x_73; -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) -{ -lean_object* x_74; -x_74 = lean_ctor_get(x_72, 0); -lean_dec(x_74); -lean_ctor_set_tag(x_72, 1); -lean_ctor_set(x_72, 0, x_70); -return x_72; -} -else -{ -lean_object* x_75; lean_object* x_76; -x_75 = lean_ctor_get(x_72, 1); -lean_inc(x_75); -lean_dec(x_72); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_70); -lean_ctor_set(x_76, 1, x_75); -return x_76; -} -} -else -{ -uint8_t x_77; -lean_dec(x_70); -x_77 = !lean_is_exclusive(x_72); -if (x_77 == 0) -{ -return x_72; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_72, 0); -x_79 = lean_ctor_get(x_72, 1); -lean_inc(x_79); -lean_inc(x_78); -lean_dec(x_72); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; -} -} -} -} -else -{ -lean_object* x_81; lean_object* x_82; lean_object* x_83; -lean_dec(x_18); -x_81 = lean_ctor_get(x_29, 0); -lean_inc(x_81); -x_82 = lean_ctor_get(x_29, 1); -lean_inc(x_82); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_dec(x_29); -x_83 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__4(x_10, x_3, x_82); -if (lean_obj_tag(x_83) == 0) -{ -uint8_t x_84; -x_84 = !lean_is_exclusive(x_83); -if (x_84 == 0) -{ -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; +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_86; lean_object* x_87; -x_86 = lean_ctor_get(x_83, 1); -lean_inc(x_86); -lean_dec(x_83); -x_87 = lean_alloc_ctor(1, 2, 0); -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) +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_83; +return x_33; } else { -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_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_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_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_31); +x_71 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__3(x_9, x_3, x_70); +if (lean_obj_tag(x_71) == 0) +{ +uint8_t x_72; +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) +{ +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_74; lean_object* x_75; +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_dec(x_71); +x_75 = lean_alloc_ctor(1, 2, 0); +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_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 +{ +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_28); +x_82 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__4(x_9, x_3, x_81); +if (lean_obj_tag(x_82) == 0) +{ +uint8_t x_83; +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +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_85; lean_object* x_86; +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_dec(x_82); +x_86 = lean_alloc_ctor(1, 2, 0); +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_80); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +return x_82; +} +else +{ +lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_88 = lean_ctor_get(x_82, 0); +x_89 = lean_ctor_get(x_82, 1); 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; +lean_inc(x_88); +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); +return x_90; } } } } else { -uint8_t x_92; -lean_dec(x_22); -lean_dec(x_18); -lean_dec(x_10); +uint8_t x_91; +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_9); lean_dec(x_3); lean_dec(x_2); -x_92 = !lean_is_exclusive(x_27); -if (x_92 == 0) +x_91 = !lean_is_exclusive(x_26); +if (x_91 == 0) { -return x_27; +return x_26; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_27, 0); -x_94 = lean_ctor_get(x_27, 1); -lean_inc(x_94); +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_26, 0); +x_93 = lean_ctor_get(x_26, 1); lean_inc(x_93); -lean_dec(x_27); -x_95 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_95, 0, x_93); -lean_ctor_set(x_95, 1, x_94); -return x_95; +lean_inc(x_92); +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); +return x_94; } } } else { -uint8_t x_96; -lean_dec(x_22); -lean_dec(x_18); -lean_dec(x_12); -lean_dec(x_10); +uint8_t x_95; +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_11); +lean_dec(x_9); lean_dec(x_3); lean_dec(x_2); -x_96 = !lean_is_exclusive(x_25); -if (x_96 == 0) +x_95 = !lean_is_exclusive(x_24); +if (x_95 == 0) { -return x_25; +return x_24; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_25, 0); -x_98 = lean_ctor_get(x_25, 1); -lean_inc(x_98); +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_dec(x_25); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -return x_99; +lean_inc(x_96); +lean_dec(x_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 { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; lean_object* x_111; -x_100 = lean_ctor_get(x_14, 1); -x_101 = lean_ctor_get(x_14, 2); -x_102 = lean_ctor_get(x_14, 3); -lean_inc(x_102); +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; +x_99 = lean_ctor_get(x_13, 1); +x_100 = lean_ctor_get(x_13, 2); +x_101 = lean_ctor_get(x_13, 3); lean_inc(x_101); lean_inc(x_100); +lean_inc(x_99); +lean_dec(x_13); +x_102 = lean_ctor_get(x_14, 0); +lean_inc(x_102); +x_103 = lean_ctor_get(x_14, 1); +lean_inc(x_103); lean_dec(x_14); -x_103 = lean_ctor_get(x_15, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_15, 1); -lean_inc(x_104); -lean_dec(x_15); -x_105 = lean_box(0); -x_106 = lean_name_mk_string(x_105, x_104); -x_107 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_107, 0, x_106); -lean_ctor_set(x_107, 1, x_100); -lean_ctor_set(x_107, 2, x_101); -lean_ctor_set(x_107, 3, x_102); -x_108 = l_Lean_MacroScopesView_review(x_107); -x_109 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; -x_110 = 1; +x_104 = lean_box(0); +x_105 = lean_name_mk_string(x_104, x_103); +x_106 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_99); +lean_ctor_set(x_106, 2, x_100); +lean_ctor_set(x_106, 3, x_101); +x_107 = l_Lean_MacroScopesView_review(x_106); +x_108 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; +x_109 = 1; lean_inc(x_3); -lean_inc(x_103); -x_111 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_1, x_109, x_110, x_103, x_3, x_13); -if (lean_obj_tag(x_111) == 0) +lean_inc(x_102); +x_110 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_1, x_108, x_109, x_102, x_3, x_12); +if (lean_obj_tag(x_110) == 0) { -lean_object* x_112; lean_object* x_113; -x_112 = lean_ctor_get(x_111, 1); -lean_inc(x_112); -lean_dec(x_111); +lean_object* x_111; lean_object* x_112; +x_111 = lean_ctor_get(x_110, 1); +lean_inc(x_111); +lean_dec(x_110); lean_inc(x_3); -x_113 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__1(x_12, x_3, x_112); -if (lean_obj_tag(x_113) == 0) +x_112 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__1(x_11, x_3, x_111); +if (lean_obj_tag(x_112) == 0) { -lean_object* x_114; lean_object* x_115; -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -lean_dec(x_113); +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_112, 1); +lean_inc(x_113); +lean_dec(x_112); lean_inc(x_3); -x_115 = lean_apply_3(x_2, x_108, x_3, x_114); -if (lean_obj_tag(x_115) == 0) +x_114 = lean_apply_3(x_2, x_107, x_3, x_113); +if (lean_obj_tag(x_114) == 0) { -lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_116 = lean_ctor_get(x_115, 0); +lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); lean_inc(x_116); -x_117 = lean_ctor_get(x_115, 1); -lean_inc(x_117); -lean_dec(x_115); +lean_dec(x_114); lean_inc(x_3); -lean_inc(x_10); -x_118 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__2(x_10, x_3, x_117); -if (lean_obj_tag(x_118) == 0) +lean_inc(x_9); +x_117 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__2(x_9, x_3, x_116); +if (lean_obj_tag(x_117) == 0) { -lean_object* x_119; lean_object* x_120; -lean_dec(x_10); -x_119 = lean_ctor_get(x_118, 1); -lean_inc(x_119); -lean_dec(x_118); +lean_object* x_118; lean_object* x_119; +lean_dec(x_9); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +lean_dec(x_117); lean_inc(x_3); -x_120 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_119); -if (lean_obj_tag(x_120) == 0) +x_119 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_118); +if (lean_obj_tag(x_119) == 0) { -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; -x_121 = lean_ctor_get(x_120, 0); +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; +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_ctor_get(x_119, 1); lean_inc(x_121); -x_122 = lean_ctor_get(x_120, 1); +lean_dec(x_119); +x_122 = lean_ctor_get(x_120, 0); lean_inc(x_122); -lean_dec(x_120); -x_123 = lean_ctor_get(x_121, 0); +x_123 = lean_ctor_get(x_120, 1); lean_inc(x_123); -x_124 = lean_ctor_get(x_121, 1); +x_124 = lean_ctor_get(x_120, 2); lean_inc(x_124); -x_125 = lean_ctor_get(x_121, 2); +x_125 = lean_ctor_get(x_120, 3); lean_inc(x_125); -x_126 = lean_ctor_get(x_121, 3); +x_126 = lean_ctor_get(x_120, 4); lean_inc(x_126); -x_127 = lean_ctor_get(x_121, 4); -lean_inc(x_127); -if (lean_is_exclusive(x_121)) { - lean_ctor_release(x_121, 0); - lean_ctor_release(x_121, 1); - lean_ctor_release(x_121, 2); - lean_ctor_release(x_121, 3); - lean_ctor_release(x_121, 4); - x_128 = x_121; -} else { - lean_dec_ref(x_121); - x_128 = lean_box(0); -} -x_129 = l_Lean_Name_getNumParts___main(x_103); -lean_dec(x_103); -x_130 = l_List_drop___main___rarg(x_129, x_125); -lean_dec(x_125); -if (lean_is_scalar(x_128)) { - x_131 = lean_alloc_ctor(0, 5, 0); -} else { - x_131 = x_128; -} -lean_ctor_set(x_131, 0, x_123); -lean_ctor_set(x_131, 1, x_124); -lean_ctor_set(x_131, 2, x_130); -lean_ctor_set(x_131, 3, x_126); -lean_ctor_set(x_131, 4, x_127); -x_132 = l___private_Init_Lean_Elab_Command_3__setState(x_131, x_3, x_122); -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, 1); -lean_inc(x_133); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_134 = x_132; -} else { - lean_dec_ref(x_132); - x_134 = lean_box(0); -} -if (lean_is_scalar(x_134)) { - x_135 = lean_alloc_ctor(0, 2, 0); -} else { - x_135 = x_134; -} -lean_ctor_set(x_135, 0, x_116); -lean_ctor_set(x_135, 1, x_133); -return x_135; -} -else -{ -lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; -lean_dec(x_116); -x_136 = lean_ctor_get(x_132, 0); -lean_inc(x_136); -x_137 = lean_ctor_get(x_132, 1); -lean_inc(x_137); -if (lean_is_exclusive(x_132)) { - lean_ctor_release(x_132, 0); - lean_ctor_release(x_132, 1); - x_138 = x_132; -} else { - lean_dec_ref(x_132); - x_138 = lean_box(0); -} -if (lean_is_scalar(x_138)) { - x_139 = lean_alloc_ctor(1, 2, 0); -} else { - x_139 = x_138; -} -lean_ctor_set(x_139, 0, x_136); -lean_ctor_set(x_139, 1, x_137); -return x_139; -} -} -else -{ -lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; -lean_dec(x_116); -lean_dec(x_103); -lean_dec(x_3); -x_140 = lean_ctor_get(x_120, 0); -lean_inc(x_140); -x_141 = lean_ctor_get(x_120, 1); -lean_inc(x_141); if (lean_is_exclusive(x_120)) { lean_ctor_release(x_120, 0); lean_ctor_release(x_120, 1); - x_142 = x_120; + lean_ctor_release(x_120, 2); + lean_ctor_release(x_120, 3); + lean_ctor_release(x_120, 4); + x_127 = x_120; } else { lean_dec_ref(x_120); - x_142 = lean_box(0); + x_127 = lean_box(0); } -if (lean_is_scalar(x_142)) { - x_143 = lean_alloc_ctor(1, 2, 0); +x_128 = l_Lean_Name_getNumParts___main(x_102); +lean_dec(x_102); +x_129 = l_List_drop___main___rarg(x_128, x_124); +lean_dec(x_124); +if (lean_is_scalar(x_127)) { + x_130 = lean_alloc_ctor(0, 5, 0); } else { - x_143 = x_142; + x_130 = x_127; } -lean_ctor_set(x_143, 0, x_140); -lean_ctor_set(x_143, 1, x_141); -return x_143; +lean_ctor_set(x_130, 0, x_122); +lean_ctor_set(x_130, 1, x_123); +lean_ctor_set(x_130, 2, x_129); +lean_ctor_set(x_130, 3, x_125); +lean_ctor_set(x_130, 4, x_126); +x_131 = l___private_Init_Lean_Elab_Command_3__setState(x_130, x_3, x_121); +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, 1); +lean_inc(x_132); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_133 = x_131; +} else { + lean_dec_ref(x_131); + x_133 = lean_box(0); } +if (lean_is_scalar(x_133)) { + x_134 = lean_alloc_ctor(0, 2, 0); +} else { + x_134 = x_133; +} +lean_ctor_set(x_134, 0, x_115); +lean_ctor_set(x_134, 1, x_132); +return x_134; } else { -lean_object* x_144; lean_object* x_145; lean_object* x_146; -lean_dec(x_116); -lean_dec(x_103); -x_144 = lean_ctor_get(x_118, 0); -lean_inc(x_144); -x_145 = lean_ctor_get(x_118, 1); -lean_inc(x_145); -lean_dec(x_118); -x_146 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__3(x_10, x_3, x_145); -if (lean_obj_tag(x_146) == 0) -{ -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_146, 1); -lean_inc(x_147); -if (lean_is_exclusive(x_146)) { - lean_ctor_release(x_146, 0); - lean_ctor_release(x_146, 1); - x_148 = x_146; -} else { - lean_dec_ref(x_146); - x_148 = lean_box(0); -} -if (lean_is_scalar(x_148)) { - x_149 = lean_alloc_ctor(1, 2, 0); -} else { - x_149 = x_148; - lean_ctor_set_tag(x_149, 1); -} -lean_ctor_set(x_149, 0, x_144); -lean_ctor_set(x_149, 1, x_147); -return x_149; -} -else -{ -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_dec(x_144); -x_150 = lean_ctor_get(x_146, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_146, 1); -lean_inc(x_151); -if (lean_is_exclusive(x_146)) { - lean_ctor_release(x_146, 0); - lean_ctor_release(x_146, 1); - x_152 = x_146; -} else { - lean_dec_ref(x_146); - x_152 = lean_box(0); -} -if (lean_is_scalar(x_152)) { - x_153 = lean_alloc_ctor(1, 2, 0); -} else { - x_153 = x_152; -} -lean_ctor_set(x_153, 0, x_150); -lean_ctor_set(x_153, 1, x_151); -return x_153; -} -} -} -else -{ -lean_object* x_154; lean_object* x_155; lean_object* x_156; -lean_dec(x_103); -x_154 = lean_ctor_get(x_115, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_115, 1); -lean_inc(x_155); +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_dec(x_115); -x_156 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__4(x_10, x_3, x_155); -if (lean_obj_tag(x_156) == 0) -{ -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_156, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_158 = x_156; +x_135 = lean_ctor_get(x_131, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_131, 1); +lean_inc(x_136); +if (lean_is_exclusive(x_131)) { + lean_ctor_release(x_131, 0); + lean_ctor_release(x_131, 1); + x_137 = x_131; } else { - lean_dec_ref(x_156); - x_158 = lean_box(0); + lean_dec_ref(x_131); + x_137 = lean_box(0); } -if (lean_is_scalar(x_158)) { - x_159 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_137)) { + x_138 = lean_alloc_ctor(1, 2, 0); } else { - x_159 = x_158; - lean_ctor_set_tag(x_159, 1); + x_138 = x_137; +} +lean_ctor_set(x_138, 0, x_135); +lean_ctor_set(x_138, 1, x_136); +return x_138; } -lean_ctor_set(x_159, 0, x_154); -lean_ctor_set(x_159, 1, x_157); -return x_159; } else { -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -lean_dec(x_154); -x_160 = lean_ctor_get(x_156, 0); +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +lean_dec(x_115); +lean_dec(x_102); +lean_dec(x_3); +x_139 = lean_ctor_get(x_119, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_119, 1); +lean_inc(x_140); +if (lean_is_exclusive(x_119)) { + lean_ctor_release(x_119, 0); + lean_ctor_release(x_119, 1); + x_141 = x_119; +} else { + lean_dec_ref(x_119); + x_141 = lean_box(0); +} +if (lean_is_scalar(x_141)) { + x_142 = lean_alloc_ctor(1, 2, 0); +} else { + x_142 = x_141; +} +lean_ctor_set(x_142, 0, x_139); +lean_ctor_set(x_142, 1, x_140); +return x_142; +} +} +else +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; +lean_dec(x_115); +lean_dec(x_102); +x_143 = lean_ctor_get(x_117, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_117, 1); +lean_inc(x_144); +lean_dec(x_117); +x_145 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__3(x_9, x_3, x_144); +if (lean_obj_tag(x_145) == 0) +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_147 = x_145; +} else { + lean_dec_ref(x_145); + x_147 = lean_box(0); +} +if (lean_is_scalar(x_147)) { + x_148 = lean_alloc_ctor(1, 2, 0); +} else { + x_148 = x_147; + lean_ctor_set_tag(x_148, 1); +} +lean_ctor_set(x_148, 0, x_143); +lean_ctor_set(x_148, 1, x_146); +return x_148; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; +lean_dec(x_143); +x_149 = lean_ctor_get(x_145, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_145, 1); +lean_inc(x_150); +if (lean_is_exclusive(x_145)) { + lean_ctor_release(x_145, 0); + lean_ctor_release(x_145, 1); + x_151 = x_145; +} else { + lean_dec_ref(x_145); + x_151 = lean_box(0); +} +if (lean_is_scalar(x_151)) { + x_152 = lean_alloc_ctor(1, 2, 0); +} else { + x_152 = x_151; +} +lean_ctor_set(x_152, 0, x_149); +lean_ctor_set(x_152, 1, x_150); +return x_152; +} +} +} +else +{ +lean_object* x_153; lean_object* x_154; lean_object* x_155; +lean_dec(x_102); +x_153 = lean_ctor_get(x_114, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_114, 1); +lean_inc(x_154); +lean_dec(x_114); +x_155 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_withDeclId___spec__4(x_9, x_3, x_154); +if (lean_obj_tag(x_155) == 0) +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_156 = lean_ctor_get(x_155, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_157 = x_155; +} else { + lean_dec_ref(x_155); + x_157 = lean_box(0); +} +if (lean_is_scalar(x_157)) { + x_158 = lean_alloc_ctor(1, 2, 0); +} else { + x_158 = x_157; + lean_ctor_set_tag(x_158, 1); +} +lean_ctor_set(x_158, 0, x_153); +lean_ctor_set(x_158, 1, x_156); +return x_158; +} +else +{ +lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_dec(x_153); +x_159 = lean_ctor_get(x_155, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_155, 1); lean_inc(x_160); -x_161 = lean_ctor_get(x_156, 1); -lean_inc(x_161); -if (lean_is_exclusive(x_156)) { - lean_ctor_release(x_156, 0); - lean_ctor_release(x_156, 1); - x_162 = x_156; +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + x_161 = x_155; } else { - lean_dec_ref(x_156); - x_162 = lean_box(0); + lean_dec_ref(x_155); + x_161 = lean_box(0); } -if (lean_is_scalar(x_162)) { - x_163 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_161)) { + x_162 = lean_alloc_ctor(1, 2, 0); } else { - x_163 = x_162; + x_162 = x_161; } -lean_ctor_set(x_163, 0, x_160); -lean_ctor_set(x_163, 1, x_161); -return x_163; +lean_ctor_set(x_162, 0, x_159); +lean_ctor_set(x_162, 1, x_160); +return x_162; } } } else { -lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; -lean_dec(x_108); -lean_dec(x_103); -lean_dec(x_10); +lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; +lean_dec(x_107); +lean_dec(x_102); +lean_dec(x_9); lean_dec(x_3); lean_dec(x_2); -x_164 = lean_ctor_get(x_113, 0); +x_163 = lean_ctor_get(x_112, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_112, 1); lean_inc(x_164); -x_165 = lean_ctor_get(x_113, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_113)) { - lean_ctor_release(x_113, 0); - lean_ctor_release(x_113, 1); - x_166 = x_113; +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_165 = x_112; } else { - lean_dec_ref(x_113); - x_166 = lean_box(0); + lean_dec_ref(x_112); + x_165 = lean_box(0); } -if (lean_is_scalar(x_166)) { - x_167 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_165)) { + x_166 = lean_alloc_ctor(1, 2, 0); } else { - x_167 = x_166; + x_166 = x_165; } -lean_ctor_set(x_167, 0, x_164); -lean_ctor_set(x_167, 1, x_165); -return x_167; +lean_ctor_set(x_166, 0, x_163); +lean_ctor_set(x_166, 1, x_164); +return x_166; } } else { -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -lean_dec(x_108); -lean_dec(x_103); -lean_dec(x_12); -lean_dec(x_10); +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +lean_dec(x_107); +lean_dec(x_102); +lean_dec(x_11); +lean_dec(x_9); lean_dec(x_3); lean_dec(x_2); -x_168 = lean_ctor_get(x_111, 0); +x_167 = lean_ctor_get(x_110, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_110, 1); lean_inc(x_168); -x_169 = lean_ctor_get(x_111, 1); -lean_inc(x_169); -if (lean_is_exclusive(x_111)) { - lean_ctor_release(x_111, 0); - lean_ctor_release(x_111, 1); - x_170 = x_111; +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_169 = x_110; } else { - lean_dec_ref(x_111); - x_170 = lean_box(0); + lean_dec_ref(x_110); + x_169 = lean_box(0); } -if (lean_is_scalar(x_170)) { - x_171 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_169)) { + x_170 = lean_alloc_ctor(1, 2, 0); } else { - x_171 = x_170; + x_170 = x_169; } -lean_ctor_set(x_171, 0, x_168); -lean_ctor_set(x_171, 1, x_169); -return x_171; +lean_ctor_set(x_170, 0, x_167); +lean_ctor_set(x_170, 1, x_168); +return x_170; } } } else { -lean_object* x_172; lean_object* x_173; -lean_dec(x_15); +lean_object* x_171; lean_object* x_172; lean_dec(x_14); -lean_dec(x_12); -lean_dec(x_10); +lean_dec(x_13); +lean_dec(x_11); +lean_dec(x_9); lean_dec(x_2); -x_172 = l_Lean_Elab_Command_withDeclId___closed__3; -x_173 = l_Lean_Elab_Command_throwError___rarg(x_1, x_172, x_3, x_13); -return x_173; +x_171 = l_Lean_Elab_Command_withDeclId___closed__3; +x_172 = l_Lean_Elab_Command_throwError___rarg(x_1, x_171, x_3, x_12); +return x_172; } } } else { -uint8_t x_188; -lean_dec(x_8); +uint8_t x_189; +lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_188 = !lean_is_exclusive(x_9); -if (x_188 == 0) +x_189 = !lean_is_exclusive(x_8); +if (x_189 == 0) { -return x_9; +return x_8; } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_189 = lean_ctor_get(x_9, 0); -x_190 = lean_ctor_get(x_9, 1); +lean_object* x_190; lean_object* x_191; lean_object* x_192; +x_190 = lean_ctor_get(x_8, 0); +x_191 = lean_ctor_get(x_8, 1); +lean_inc(x_191); lean_inc(x_190); -lean_inc(x_189); -lean_dec(x_9); -x_191 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_191, 0, x_189); -lean_ctor_set(x_191, 1, x_190); -return x_191; +lean_dec(x_8); +x_192 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_192, 0, x_190); +lean_ctor_set(x_192, 1, x_191); +return x_192; } } } diff --git a/stage0/stdlib/Init/Lean/Elab/Declaration.c b/stage0/stdlib/Init/Lean/Elab/Declaration.c index 9be6d6476a..73e58bea98 100644 --- a/stage0/stdlib/Init/Lean/Elab/Declaration.c +++ b/stage0/stdlib/Init/Lean/Elab/Declaration.c @@ -30,7 +30,6 @@ lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabConstant___closed__2; lean_object* l_Lean_Elab_Command_elabDeclaration___closed__4; -lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabExample(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabAbbrev(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_runTermElabM___rarg___closed__1; @@ -67,6 +66,7 @@ lean_object* l_Lean_Elab_Command_elabStructure___rarg(lean_object*); lean_object* l_Lean_Elab_Command_elabAxiom(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabInstance___closed__1; lean_object* l_Lean_Elab_Command_elabConstant___closed__11; +lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*); extern lean_object* l_Lean_Parser_Command_def___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; extern lean_object* l_Lean_Meta_registerInstanceAttr___closed__1; @@ -3324,49 +3324,53 @@ lean_inc(x_10); x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); -x_12 = lean_unsigned_to_nat(0u); -x_13 = l_Lean_Syntax_getIdAt(x_6, x_12); -x_14 = l_Lean_Syntax_getArg(x_6, x_5); +x_12 = l_Lean_Elab_Command_expandDeclId(x_6); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); lean_inc(x_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_371; +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_375; 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_371 = l_Lean_Syntax_isNone(x_14); -if (x_371 == 0) +x_375 = l_Lean_Syntax_isNone(x_14); +if (x_375 == 0) { -lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; -x_372 = l_Lean_Syntax_getArg(x_14, x_5); -lean_dec(x_14); -x_373 = l_Lean_Syntax_getArgs(x_372); -lean_dec(x_372); -x_374 = l_Array_empty___closed__1; -x_375 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_7, x_373, x_12, x_374); -lean_dec(x_373); +lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; +x_376 = l_Lean_Syntax_getArg(x_14, x_5); +x_377 = l_Lean_Syntax_getArgs(x_376); +lean_dec(x_376); +x_378 = lean_unsigned_to_nat(0u); +x_379 = l_Array_empty___closed__1; +x_380 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_7, x_377, x_378, x_379); +lean_dec(x_377); lean_inc(x_3); lean_inc(x_16); -x_376 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabAxiom___spec__5(x_2, x_375, x_12, x_16, x_3, x_17); -lean_dec(x_375); -if (lean_obj_tag(x_376) == 0) +x_381 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabAxiom___spec__5(x_14, x_380, x_378, x_16, x_3, x_17); +lean_dec(x_380); +lean_dec(x_14); +if (lean_obj_tag(x_381) == 0) { -lean_object* x_377; lean_object* x_378; -x_377 = lean_ctor_get(x_376, 0); -lean_inc(x_377); -x_378 = lean_ctor_get(x_376, 1); -lean_inc(x_378); -lean_dec(x_376); -x_18 = x_377; -x_19 = x_378; -goto block_370; +lean_object* x_382; lean_object* x_383; +x_382 = lean_ctor_get(x_381, 0); +lean_inc(x_382); +x_383 = lean_ctor_get(x_381, 1); +lean_inc(x_383); +lean_dec(x_381); +x_18 = x_382; +x_19 = x_383; +goto block_374; } else { -uint8_t x_379; +uint8_t x_384; lean_dec(x_16); lean_dec(x_13); lean_dec(x_11); @@ -3374,23 +3378,23 @@ lean_dec(x_10); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_379 = !lean_is_exclusive(x_376); -if (x_379 == 0) +x_384 = !lean_is_exclusive(x_381); +if (x_384 == 0) { -return x_376; +return x_381; } else { -lean_object* x_380; lean_object* x_381; lean_object* x_382; -x_380 = lean_ctor_get(x_376, 0); -x_381 = lean_ctor_get(x_376, 1); -lean_inc(x_381); -lean_inc(x_380); -lean_dec(x_376); -x_382 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_382, 0, x_380); -lean_ctor_set(x_382, 1, x_381); -return x_382; +lean_object* x_385; lean_object* x_386; lean_object* x_387; +x_385 = lean_ctor_get(x_381, 0); +x_386 = lean_ctor_get(x_381, 1); +lean_inc(x_386); +lean_inc(x_385); +lean_dec(x_381); +x_387 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_387, 0, x_385); +lean_ctor_set(x_387, 1, x_386); +return x_387; } } } @@ -3400,9 +3404,9 @@ lean_dec(x_14); lean_inc(x_16); x_18 = x_16; x_19 = x_17; -goto block_370; +goto block_374; } -block_370: +block_374: { lean_object* x_20; lean_object* x_21; x_20 = l_Lean_extractMacroScopes(x_13); @@ -3450,7 +3454,7 @@ lean_inc(x_3); x_47 = l_Lean_Elab_Command_mkDeclName(x_1, x_28, x_3, x_34); if (lean_obj_tag(x_47) == 0) { -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_118; lean_object* x_119; +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_119; lean_object* x_120; lean_object* x_121; x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); x_49 = lean_ctor_get(x_47, 1); @@ -3458,380 +3462,362 @@ lean_inc(x_49); lean_dec(x_47); x_50 = lean_ctor_get(x_1, 1); lean_inc(x_50); -x_118 = 2; +x_119 = 2; +x_120 = lean_unsigned_to_nat(0u); lean_inc(x_3); lean_inc(x_48); -x_119 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_48, x_118, x_50, x_12, x_3, x_49); -if (lean_obj_tag(x_119) == 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_inc(x_3); -x_121 = l_Lean_Elab_Command_getLevelNames(x_3, x_120); +x_121 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_48, x_119, x_50, x_120, x_3, x_49); 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; -x_122 = lean_ctor_get(x_121, 0); +lean_object* x_122; lean_object* x_123; +x_122 = lean_ctor_get(x_121, 1); lean_inc(x_122); -x_123 = lean_ctor_get(x_121, 1); -lean_inc(x_123); lean_dec(x_121); -lean_inc(x_48); -x_124 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_124, 0, x_48); -lean_inc(x_48); -x_125 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__2___boxed), 8, 5); -lean_closure_set(x_125, 0, x_10); -lean_closure_set(x_125, 1, x_11); -lean_closure_set(x_125, 2, x_122); -lean_closure_set(x_125, 3, x_48); -lean_closure_set(x_125, 4, x_1); lean_inc(x_3); -x_126 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_123); -if (lean_obj_tag(x_126) == 0) +x_123 = l_Lean_Elab_Command_getLevelNames(x_3, x_122); +if (lean_obj_tag(x_123) == 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_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_9__getVarDecls(x_127); -x_130 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_127, x_124); -x_131 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_127); -lean_dec(x_127); -x_132 = l_Lean_Elab_Term_elabBinders___rarg(x_129, x_125, x_130, x_131); +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_124 = lean_ctor_get(x_123, 0); +lean_inc(x_124); +x_125 = lean_ctor_get(x_123, 1); +lean_inc(x_125); +lean_dec(x_123); +lean_inc(x_48); +x_126 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_126, 0, x_48); +lean_inc(x_48); +x_127 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__2___boxed), 8, 5); +lean_closure_set(x_127, 0, x_10); +lean_closure_set(x_127, 1, x_11); +lean_closure_set(x_127, 2, x_124); +lean_closure_set(x_127, 3, x_48); +lean_closure_set(x_127, 4, x_1); +lean_inc(x_3); +x_128 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_125); +if (lean_obj_tag(x_128) == 0) +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_129 = lean_ctor_get(x_128, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_128, 1); +lean_inc(x_130); +lean_dec(x_128); +x_131 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_129); +x_132 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_129, x_126); +x_133 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_129); lean_dec(x_129); -if (lean_obj_tag(x_132) == 0) +x_134 = l_Lean_Elab_Term_elabBinders___rarg(x_131, x_127, x_132, x_133); +lean_dec(x_131); +if (lean_obj_tag(x_134) == 0) { -lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_133 = lean_ctor_get(x_132, 0); -lean_inc(x_133); -x_134 = lean_ctor_get(x_132, 1); -lean_inc(x_134); -lean_dec(x_132); -lean_inc(x_3); -x_135 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_128); -if (lean_obj_tag(x_135) == 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_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_134, 0); +lean_inc(x_135); +x_136 = lean_ctor_get(x_134, 1); lean_inc(x_136); -x_137 = lean_ctor_get(x_135, 0); -lean_inc(x_137); -x_138 = lean_ctor_get(x_135, 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_140); lean_dec(x_134); -x_141 = !lean_is_exclusive(x_137); -if (x_141 == 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_inc(x_3); -x_144 = l___private_Init_Lean_Elab_Command_3__setState(x_137, x_3, x_138); -if (lean_obj_tag(x_144) == 0) +x_137 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_130); +if (lean_obj_tag(x_137) == 0) { -lean_object* x_145; -x_145 = lean_ctor_get(x_144, 1); -lean_inc(x_145); -lean_dec(x_144); -x_51 = x_133; -x_52 = x_145; -goto block_117; -} -else -{ -lean_object* x_146; lean_object* x_147; -lean_dec(x_133); -lean_dec(x_50); -lean_dec(x_48); -lean_dec(x_24); -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_35 = x_146; -x_36 = x_147; -goto block_46; -} -} -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_inc(x_149); -lean_inc(x_148); +lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; uint8_t x_143; +x_138 = lean_ctor_get(x_136, 0); +lean_inc(x_138); +x_139 = lean_ctor_get(x_137, 0); +lean_inc(x_139); +x_140 = lean_ctor_get(x_137, 1); +lean_inc(x_140); 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_3); -x_152 = l___private_Init_Lean_Elab_Command_3__setState(x_151, x_3, x_138); -if (lean_obj_tag(x_152) == 0) +x_141 = lean_ctor_get(x_138, 0); +lean_inc(x_141); +lean_dec(x_138); +x_142 = lean_ctor_get(x_136, 2); +lean_inc(x_142); +lean_dec(x_136); +x_143 = !lean_is_exclusive(x_139); +if (x_143 == 0) { -lean_object* x_153; -x_153 = lean_ctor_get(x_152, 1); -lean_inc(x_153); -lean_dec(x_152); -x_51 = x_133; -x_52 = x_153; -goto block_117; +lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_144 = lean_ctor_get(x_139, 1); +lean_dec(x_144); +x_145 = lean_ctor_get(x_139, 0); +lean_dec(x_145); +lean_ctor_set(x_139, 1, x_142); +lean_ctor_set(x_139, 0, x_141); +lean_inc(x_3); +x_146 = l___private_Init_Lean_Elab_Command_3__setState(x_139, x_3, x_140); +if (lean_obj_tag(x_146) == 0) +{ +lean_object* x_147; +x_147 = lean_ctor_get(x_146, 1); +lean_inc(x_147); +lean_dec(x_146); +x_51 = x_135; +x_52 = x_147; +goto block_118; } else { -lean_object* x_154; lean_object* x_155; -lean_dec(x_133); +lean_object* x_148; lean_object* x_149; +lean_dec(x_135); lean_dec(x_50); lean_dec(x_48); lean_dec(x_24); -x_154 = lean_ctor_get(x_152, 0); -lean_inc(x_154); -x_155 = lean_ctor_get(x_152, 1); -lean_inc(x_155); -lean_dec(x_152); -x_35 = x_154; -x_36 = x_155; +x_148 = lean_ctor_get(x_146, 0); +lean_inc(x_148); +x_149 = lean_ctor_get(x_146, 1); +lean_inc(x_149); +lean_dec(x_146); +x_35 = x_148; +x_36 = x_149; goto block_46; } } +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +x_150 = lean_ctor_get(x_139, 2); +x_151 = lean_ctor_get(x_139, 3); +x_152 = lean_ctor_get(x_139, 4); +lean_inc(x_152); +lean_inc(x_151); +lean_inc(x_150); +lean_dec(x_139); +x_153 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_153, 0, x_141); +lean_ctor_set(x_153, 1, x_142); +lean_ctor_set(x_153, 2, x_150); +lean_ctor_set(x_153, 3, x_151); +lean_ctor_set(x_153, 4, x_152); +lean_inc(x_3); +x_154 = l___private_Init_Lean_Elab_Command_3__setState(x_153, x_3, x_140); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; +x_155 = lean_ctor_get(x_154, 1); +lean_inc(x_155); +lean_dec(x_154); +x_51 = x_135; +x_52 = x_155; +goto block_118; } else { lean_object* x_156; lean_object* x_157; -lean_dec(x_134); -lean_dec(x_133); +lean_dec(x_135); lean_dec(x_50); lean_dec(x_48); lean_dec(x_24); -x_156 = lean_ctor_get(x_135, 0); +x_156 = lean_ctor_get(x_154, 0); lean_inc(x_156); -x_157 = lean_ctor_get(x_135, 1); +x_157 = lean_ctor_get(x_154, 1); lean_inc(x_157); -lean_dec(x_135); +lean_dec(x_154); x_35 = x_156; x_36 = x_157; goto block_46; } } +} else { -lean_object* x_158; -x_158 = lean_ctor_get(x_132, 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_object* x_158; lean_object* x_159; +lean_dec(x_136); +lean_dec(x_135); lean_dec(x_50); lean_dec(x_48); lean_dec(x_24); -x_159 = lean_ctor_get(x_132, 1); +x_158 = lean_ctor_get(x_137, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_137, 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_3); -x_161 = l___private_Init_Lean_Elab_Command_2__getState(x_3, 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_3); -x_170 = l___private_Init_Lean_Elab_Command_3__setState(x_163, x_3, 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_35 = x_160; -x_36 = x_171; +lean_dec(x_137); +x_35 = x_158; +x_36 = x_159; goto block_46; } +} else { -lean_object* x_172; lean_object* x_173; +lean_object* x_160; +x_160 = lean_ctor_get(x_134, 0); +lean_inc(x_160); +if (lean_obj_tag(x_160) == 0) +{ +lean_object* x_161; lean_object* x_162; lean_object* x_163; +lean_dec(x_50); +lean_dec(x_48); +lean_dec(x_24); +x_161 = lean_ctor_get(x_134, 1); +lean_inc(x_161); +lean_dec(x_134); +x_162 = lean_ctor_get(x_160, 0); +lean_inc(x_162); 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_inc(x_3); +x_163 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_130); +if (lean_obj_tag(x_163) == 0) +{ +lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; +x_164 = lean_ctor_get(x_161, 0); +lean_inc(x_164); +x_165 = lean_ctor_get(x_163, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_163, 1); +lean_inc(x_166); +lean_dec(x_163); +x_167 = lean_ctor_get(x_164, 0); +lean_inc(x_167); +lean_dec(x_164); +x_168 = lean_ctor_get(x_161, 2); +lean_inc(x_168); +lean_dec(x_161); +x_169 = !lean_is_exclusive(x_165); +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_ctor_get(x_165, 1); lean_dec(x_170); -x_35 = x_172; +x_171 = lean_ctor_get(x_165, 0); +lean_dec(x_171); +lean_ctor_set(x_165, 1, x_168); +lean_ctor_set(x_165, 0, x_167); +lean_inc(x_3); +x_172 = l___private_Init_Lean_Elab_Command_3__setState(x_165, x_3, x_166); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; +x_173 = lean_ctor_get(x_172, 1); +lean_inc(x_173); +lean_dec(x_172); +x_35 = x_162; x_36 = x_173; goto block_46; } -} 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_object* x_174; lean_object* x_175; +lean_dec(x_162); +x_174 = lean_ctor_get(x_172, 0); 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_3); -x_178 = l___private_Init_Lean_Elab_Command_3__setState(x_177, x_3, 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_35 = x_160; -x_36 = x_179; +x_175 = lean_ctor_get(x_172, 1); +lean_inc(x_175); +lean_dec(x_172); +x_35 = x_174; +x_36 = x_175; goto block_46; } +} 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_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_176 = lean_ctor_get(x_165, 2); +x_177 = lean_ctor_get(x_165, 3); +x_178 = lean_ctor_get(x_165, 4); +lean_inc(x_178); +lean_inc(x_177); +lean_inc(x_176); +lean_dec(x_165); +x_179 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_179, 0, x_167); +lean_ctor_set(x_179, 1, x_168); +lean_ctor_set(x_179, 2, x_176); +lean_ctor_set(x_179, 3, x_177); +lean_ctor_set(x_179, 4, x_178); +lean_inc(x_3); +x_180 = l___private_Init_Lean_Elab_Command_3__setState(x_179, x_3, x_166); +if (lean_obj_tag(x_180) == 0) +{ +lean_object* x_181; +x_181 = lean_ctor_get(x_180, 1); lean_inc(x_181); -lean_dec(x_178); -x_35 = x_180; +lean_dec(x_180); +x_35 = x_162; x_36 = x_181; goto block_46; } -} -} 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_dec(x_162); +x_182 = lean_ctor_get(x_180, 0); lean_inc(x_182); -x_183 = lean_ctor_get(x_161, 1); +x_183 = lean_ctor_get(x_180, 1); lean_inc(x_183); -lean_dec(x_161); +lean_dec(x_180); x_35 = x_182; x_36 = x_183; goto block_46; } } -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_3); -x_186 = lean_apply_2(x_185, x_3, 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_51 = x_187; -x_52 = x_188; -goto block_117; } else { -lean_object* x_189; lean_object* x_190; -lean_dec(x_50); -lean_dec(x_48); -lean_dec(x_24); -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_35 = x_189; -x_36 = x_190; +lean_object* x_184; lean_object* x_185; +lean_dec(x_162); +lean_dec(x_161); +x_184 = lean_ctor_get(x_163, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_163, 1); +lean_inc(x_185); +lean_dec(x_163); +x_35 = x_184; +x_36 = x_185; goto block_46; } } -} +else +{ +lean_object* x_186; lean_object* x_187; lean_object* x_188; +lean_dec(x_134); +x_186 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; +x_187 = l_unreachable_x21___rarg(x_186); +lean_inc(x_3); +x_188 = lean_apply_2(x_187, x_3, x_130); +if (lean_obj_tag(x_188) == 0) +{ +lean_object* x_189; lean_object* x_190; +x_189 = lean_ctor_get(x_188, 0); +lean_inc(x_189); +x_190 = lean_ctor_get(x_188, 1); +lean_inc(x_190); +lean_dec(x_188); +x_51 = x_189; +x_52 = x_190; +goto block_118; } else { lean_object* x_191; lean_object* x_192; -lean_dec(x_125); -lean_dec(x_124); lean_dec(x_50); lean_dec(x_48); lean_dec(x_24); -x_191 = lean_ctor_get(x_126, 0); +x_191 = lean_ctor_get(x_188, 0); lean_inc(x_191); -x_192 = lean_ctor_get(x_126, 1); +x_192 = lean_ctor_get(x_188, 1); lean_inc(x_192); -lean_dec(x_126); +lean_dec(x_188); x_35 = x_191; x_36 = x_192; goto block_46; } } +} +} else { lean_object* x_193; lean_object* x_194; +lean_dec(x_127); +lean_dec(x_126); lean_dec(x_50); lean_dec(x_48); lean_dec(x_24); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_1); -x_193 = lean_ctor_get(x_121, 0); +x_193 = lean_ctor_get(x_128, 0); lean_inc(x_193); -x_194 = lean_ctor_get(x_121, 1); +x_194 = lean_ctor_get(x_128, 1); lean_inc(x_194); -lean_dec(x_121); +lean_dec(x_128); x_35 = x_193; x_36 = x_194; goto block_46; @@ -3846,16 +3832,35 @@ lean_dec(x_24); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_195 = lean_ctor_get(x_119, 0); +x_195 = lean_ctor_get(x_123, 0); lean_inc(x_195); -x_196 = lean_ctor_get(x_119, 1); +x_196 = lean_ctor_get(x_123, 1); lean_inc(x_196); -lean_dec(x_119); +lean_dec(x_123); x_35 = x_195; x_36 = x_196; goto block_46; } -block_117: +} +else +{ +lean_object* x_197; lean_object* x_198; +lean_dec(x_50); +lean_dec(x_48); +lean_dec(x_24); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_1); +x_197 = lean_ctor_get(x_121, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_121, 1); +lean_inc(x_198); +lean_dec(x_121); +x_35 = x_197; +x_36 = x_198; +goto block_46; +} +block_118: { lean_object* x_53; lean_inc(x_3); @@ -3863,333 +3868,334 @@ x_53 = l_Lean_Elab_Command_addDecl(x_2, x_51, x_3, x_52); lean_dec(x_51); if (lean_obj_tag(x_53) == 0) { -lean_object* x_54; uint8_t x_55; lean_object* x_56; +lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; x_54 = lean_ctor_get(x_53, 1); lean_inc(x_54); lean_dec(x_53); x_55 = 0; +x_56 = lean_unsigned_to_nat(0u); lean_inc(x_3); lean_inc(x_48); -x_56 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_48, x_55, x_50, x_12, x_3, x_54); -if (lean_obj_tag(x_56) == 0) +x_57 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_48, x_55, x_50, x_56, x_3, x_54); +if (lean_obj_tag(x_57) == 0) { -lean_object* x_57; uint8_t x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_58 = 1; +lean_object* x_58; uint8_t x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_57, 1); +lean_inc(x_58); +lean_dec(x_57); +x_59 = 1; lean_inc(x_3); -x_59 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_48, x_58, x_50, x_12, x_3, x_57); +x_60 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_48, x_59, x_50, x_56, x_3, x_58); lean_dec(x_50); -if (lean_obj_tag(x_59) == 0) +if (lean_obj_tag(x_60) == 0) { -lean_object* x_60; lean_object* x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_60, 0); lean_inc(x_61); -lean_dec(x_59); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); lean_inc(x_3); lean_inc(x_16); -x_62 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__3(x_16, x_3, x_61); -if (lean_obj_tag(x_62) == 0) +x_63 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__3(x_16, x_3, x_62); +if (lean_obj_tag(x_63) == 0) { -lean_object* x_63; lean_object* x_64; +lean_object* x_64; lean_object* x_65; lean_dec(x_16); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); +x_64 = lean_ctor_get(x_63, 1); +lean_inc(x_64); +lean_dec(x_63); lean_inc(x_3); -x_64 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_63); -if (lean_obj_tag(x_64) == 0) +x_65 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_64); +if (lean_obj_tag(x_65) == 0) { -lean_object* x_65; lean_object* x_66; uint8_t x_67; -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); +lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_66 = lean_ctor_get(x_65, 0); lean_inc(x_66); -lean_dec(x_64); -x_67 = !lean_is_exclusive(x_65); -if (x_67 == 0) +x_67 = lean_ctor_get(x_65, 1); +lean_inc(x_67); +lean_dec(x_65); +x_68 = !lean_is_exclusive(x_66); +if (x_68 == 0) { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_68 = lean_ctor_get(x_65, 2); -x_69 = l_Lean_Name_getNumParts___main(x_24); +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_69 = lean_ctor_get(x_66, 2); +x_70 = l_Lean_Name_getNumParts___main(x_24); lean_dec(x_24); -x_70 = l_List_drop___main___rarg(x_69, x_68); -lean_dec(x_68); -lean_ctor_set(x_65, 2, x_70); -x_71 = l___private_Init_Lean_Elab_Command_3__setState(x_65, x_3, x_66); -if (lean_obj_tag(x_71) == 0) +x_71 = l_List_drop___main___rarg(x_70, x_69); +lean_dec(x_69); +lean_ctor_set(x_66, 2, x_71); +x_72 = l___private_Init_Lean_Elab_Command_3__setState(x_66, x_3, x_67); +if (lean_obj_tag(x_72) == 0) { -uint8_t x_72; -x_72 = !lean_is_exclusive(x_71); -if (x_72 == 0) +uint8_t x_73; +x_73 = !lean_is_exclusive(x_72); +if (x_73 == 0) { -lean_object* x_73; -x_73 = lean_ctor_get(x_71, 0); -lean_dec(x_73); -lean_ctor_set(x_71, 0, x_60); -return x_71; +lean_object* x_74; +x_74 = lean_ctor_get(x_72, 0); +lean_dec(x_74); +lean_ctor_set(x_72, 0, x_61); +return x_72; } else { -lean_object* x_74; lean_object* x_75; -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -lean_dec(x_71); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_60); -lean_ctor_set(x_75, 1, x_74); -return x_75; +lean_object* x_75; lean_object* x_76; +x_75 = lean_ctor_get(x_72, 1); +lean_inc(x_75); +lean_dec(x_72); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_61); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } else { -uint8_t x_76; -lean_dec(x_60); -x_76 = !lean_is_exclusive(x_71); -if (x_76 == 0) +uint8_t x_77; +lean_dec(x_61); +x_77 = !lean_is_exclusive(x_72); +if (x_77 == 0) { -return x_71; +return x_72; } else { -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_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_72, 0); +x_79 = lean_ctor_get(x_72, 1); +lean_inc(x_79); 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; +lean_dec(x_72); +x_80 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +return x_80; } } } else { -lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; -x_80 = lean_ctor_get(x_65, 0); -x_81 = lean_ctor_get(x_65, 1); -x_82 = lean_ctor_get(x_65, 2); -x_83 = lean_ctor_get(x_65, 3); -x_84 = lean_ctor_get(x_65, 4); +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +x_81 = lean_ctor_get(x_66, 0); +x_82 = lean_ctor_get(x_66, 1); +x_83 = lean_ctor_get(x_66, 2); +x_84 = lean_ctor_get(x_66, 3); +x_85 = lean_ctor_get(x_66, 4); +lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); lean_inc(x_82); lean_inc(x_81); -lean_inc(x_80); -lean_dec(x_65); -x_85 = l_Lean_Name_getNumParts___main(x_24); +lean_dec(x_66); +x_86 = l_Lean_Name_getNumParts___main(x_24); lean_dec(x_24); -x_86 = l_List_drop___main___rarg(x_85, x_82); -lean_dec(x_82); -x_87 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_87, 0, x_80); -lean_ctor_set(x_87, 1, x_81); -lean_ctor_set(x_87, 2, x_86); -lean_ctor_set(x_87, 3, x_83); -lean_ctor_set(x_87, 4, x_84); -x_88 = l___private_Init_Lean_Elab_Command_3__setState(x_87, x_3, x_66); -if (lean_obj_tag(x_88) == 0) +x_87 = l_List_drop___main___rarg(x_86, x_83); +lean_dec(x_83); +x_88 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_88, 0, x_81); +lean_ctor_set(x_88, 1, x_82); +lean_ctor_set(x_88, 2, x_87); +lean_ctor_set(x_88, 3, x_84); +lean_ctor_set(x_88, 4, x_85); +x_89 = l___private_Init_Lean_Elab_Command_3__setState(x_88, x_3, x_67); +if (lean_obj_tag(x_89) == 0) { -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_88, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_90 = x_88; +lean_object* x_90; lean_object* x_91; lean_object* x_92; +x_90 = lean_ctor_get(x_89, 1); +lean_inc(x_90); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_91 = x_89; } else { - lean_dec_ref(x_88); - x_90 = lean_box(0); + lean_dec_ref(x_89); + x_91 = lean_box(0); } -if (lean_is_scalar(x_90)) { - x_91 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_91)) { + x_92 = lean_alloc_ctor(0, 2, 0); } else { - x_91 = x_90; + x_92 = x_91; } -lean_ctor_set(x_91, 0, x_60); -lean_ctor_set(x_91, 1, x_89); -return x_91; +lean_ctor_set(x_92, 0, x_61); +lean_ctor_set(x_92, 1, x_90); +return x_92; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; -lean_dec(x_60); -x_92 = lean_ctor_get(x_88, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_88, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_61); +x_93 = lean_ctor_get(x_89, 0); lean_inc(x_93); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_94 = x_88; +x_94 = lean_ctor_get(x_89, 1); +lean_inc(x_94); +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_95 = x_89; } else { - lean_dec_ref(x_88); - x_94 = lean_box(0); + lean_dec_ref(x_89); + x_95 = lean_box(0); } -if (lean_is_scalar(x_94)) { - x_95 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_95)) { + x_96 = lean_alloc_ctor(1, 2, 0); } else { - x_95 = x_94; + x_96 = x_95; } -lean_ctor_set(x_95, 0, x_92); -lean_ctor_set(x_95, 1, x_93); -return x_95; +lean_ctor_set(x_96, 0, x_93); +lean_ctor_set(x_96, 1, x_94); +return x_96; } } } else { -uint8_t x_96; -lean_dec(x_60); +uint8_t x_97; +lean_dec(x_61); lean_dec(x_24); lean_dec(x_3); -x_96 = !lean_is_exclusive(x_64); -if (x_96 == 0) +x_97 = !lean_is_exclusive(x_65); +if (x_97 == 0) { -return x_64; +return x_65; } else { -lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_97 = lean_ctor_get(x_64, 0); -x_98 = lean_ctor_get(x_64, 1); +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_65, 0); +x_99 = lean_ctor_get(x_65, 1); +lean_inc(x_99); lean_inc(x_98); -lean_inc(x_97); -lean_dec(x_64); -x_99 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_99, 0, x_97); -lean_ctor_set(x_99, 1, x_98); -return x_99; +lean_dec(x_65); +x_100 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +return x_100; } } } else { -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_60); +lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_61); lean_dec(x_24); -x_100 = lean_ctor_get(x_62, 0); -lean_inc(x_100); -x_101 = lean_ctor_get(x_62, 1); +x_101 = lean_ctor_get(x_63, 0); lean_inc(x_101); -lean_dec(x_62); -x_102 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__4(x_16, x_3, x_101); -if (lean_obj_tag(x_102) == 0) +x_102 = lean_ctor_get(x_63, 1); +lean_inc(x_102); +lean_dec(x_63); +x_103 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__4(x_16, x_3, x_102); +if (lean_obj_tag(x_103) == 0) { -uint8_t x_103; -x_103 = !lean_is_exclusive(x_102); -if (x_103 == 0) +uint8_t x_104; +x_104 = !lean_is_exclusive(x_103); +if (x_104 == 0) { -lean_object* x_104; -x_104 = lean_ctor_get(x_102, 0); -lean_dec(x_104); -lean_ctor_set_tag(x_102, 1); -lean_ctor_set(x_102, 0, x_100); -return x_102; +lean_object* x_105; +x_105 = lean_ctor_get(x_103, 0); +lean_dec(x_105); +lean_ctor_set_tag(x_103, 1); +lean_ctor_set(x_103, 0, x_101); +return x_103; } else { -lean_object* x_105; lean_object* x_106; -x_105 = lean_ctor_get(x_102, 1); -lean_inc(x_105); -lean_dec(x_102); -x_106 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_106, 0, x_100); -lean_ctor_set(x_106, 1, x_105); -return x_106; +lean_object* x_106; lean_object* x_107; +x_106 = lean_ctor_get(x_103, 1); +lean_inc(x_106); +lean_dec(x_103); +x_107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_107, 0, x_101); +lean_ctor_set(x_107, 1, x_106); +return x_107; } } else { -uint8_t x_107; -lean_dec(x_100); -x_107 = !lean_is_exclusive(x_102); -if (x_107 == 0) +uint8_t x_108; +lean_dec(x_101); +x_108 = !lean_is_exclusive(x_103); +if (x_108 == 0) { -return x_102; +return x_103; } else { -lean_object* x_108; lean_object* x_109; lean_object* x_110; -x_108 = lean_ctor_get(x_102, 0); -x_109 = lean_ctor_get(x_102, 1); +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_103, 0); +x_110 = lean_ctor_get(x_103, 1); +lean_inc(x_110); lean_inc(x_109); -lean_inc(x_108); -lean_dec(x_102); -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_dec(x_103); +x_111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +return x_111; } } } } else { -lean_object* x_111; lean_object* x_112; +lean_object* x_112; lean_object* x_113; lean_dec(x_24); -x_111 = lean_ctor_get(x_59, 0); -lean_inc(x_111); -x_112 = lean_ctor_get(x_59, 1); +x_112 = lean_ctor_get(x_60, 0); lean_inc(x_112); -lean_dec(x_59); -x_35 = x_111; -x_36 = x_112; -goto block_46; -} -} -else -{ -lean_object* x_113; lean_object* x_114; -lean_dec(x_50); -lean_dec(x_48); -lean_dec(x_24); -x_113 = lean_ctor_get(x_56, 0); +x_113 = lean_ctor_get(x_60, 1); lean_inc(x_113); -x_114 = lean_ctor_get(x_56, 1); -lean_inc(x_114); -lean_dec(x_56); -x_35 = x_113; -x_36 = x_114; +lean_dec(x_60); +x_35 = x_112; +x_36 = x_113; goto block_46; } } else { -lean_object* x_115; lean_object* x_116; +lean_object* x_114; lean_object* x_115; lean_dec(x_50); lean_dec(x_48); lean_dec(x_24); -x_115 = lean_ctor_get(x_53, 0); +x_114 = lean_ctor_get(x_57, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_57, 1); lean_inc(x_115); -x_116 = lean_ctor_get(x_53, 1); +lean_dec(x_57); +x_35 = x_114; +x_36 = x_115; +goto block_46; +} +} +else +{ +lean_object* x_116; lean_object* x_117; +lean_dec(x_50); +lean_dec(x_48); +lean_dec(x_24); +x_116 = lean_ctor_get(x_53, 0); lean_inc(x_116); +x_117 = lean_ctor_get(x_53, 1); +lean_inc(x_117); lean_dec(x_53); -x_35 = x_115; -x_36 = x_116; +x_35 = x_116; +x_36 = x_117; goto block_46; } } } else { -lean_object* x_197; lean_object* x_198; +lean_object* x_199; lean_object* x_200; lean_dec(x_24); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_197 = lean_ctor_get(x_47, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_47, 1); -lean_inc(x_198); +x_199 = lean_ctor_get(x_47, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_47, 1); +lean_inc(x_200); lean_dec(x_47); -x_35 = x_197; -x_36 = x_198; +x_35 = x_199; +x_36 = x_200; goto block_46; } block_46: @@ -4248,7 +4254,7 @@ return x_45; } else { -uint8_t x_199; +uint8_t x_201; lean_dec(x_28); lean_dec(x_24); lean_dec(x_16); @@ -4256,29 +4262,29 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_3); lean_dec(x_1); -x_199 = !lean_is_exclusive(x_33); -if (x_199 == 0) +x_201 = !lean_is_exclusive(x_33); +if (x_201 == 0) { return x_33; } else { -lean_object* x_200; lean_object* x_201; lean_object* x_202; -x_200 = lean_ctor_get(x_33, 0); -x_201 = lean_ctor_get(x_33, 1); -lean_inc(x_201); -lean_inc(x_200); +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = lean_ctor_get(x_33, 0); +x_203 = lean_ctor_get(x_33, 1); +lean_inc(x_203); +lean_inc(x_202); lean_dec(x_33); -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; +x_204 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_204, 0, x_202); +lean_ctor_set(x_204, 1, x_203); +return x_204; } } } else { -uint8_t x_203; +uint8_t x_205; lean_dec(x_28); lean_dec(x_24); lean_dec(x_18); @@ -4287,820 +4293,789 @@ lean_dec(x_11); lean_dec(x_10); lean_dec(x_3); lean_dec(x_1); -x_203 = !lean_is_exclusive(x_31); -if (x_203 == 0) +x_205 = !lean_is_exclusive(x_31); +if (x_205 == 0) { return x_31; } else { -lean_object* x_204; lean_object* x_205; lean_object* x_206; -x_204 = lean_ctor_get(x_31, 0); -x_205 = lean_ctor_get(x_31, 1); -lean_inc(x_205); -lean_inc(x_204); +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_31, 0); +x_207 = lean_ctor_get(x_31, 1); +lean_inc(x_207); +lean_inc(x_206); lean_dec(x_31); -x_206 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_206, 0, x_204); -lean_ctor_set(x_206, 1, x_205); -return x_206; +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +return x_208; } } } else { -lean_object* x_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; uint8_t x_217; lean_object* x_218; -x_207 = lean_ctor_get(x_20, 1); -x_208 = lean_ctor_get(x_20, 2); -x_209 = lean_ctor_get(x_20, 3); -lean_inc(x_209); -lean_inc(x_208); -lean_inc(x_207); -lean_dec(x_20); -x_210 = lean_ctor_get(x_21, 0); -lean_inc(x_210); -x_211 = lean_ctor_get(x_21, 1); +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; uint8_t x_219; lean_object* x_220; +x_209 = lean_ctor_get(x_20, 1); +x_210 = lean_ctor_get(x_20, 2); +x_211 = lean_ctor_get(x_20, 3); lean_inc(x_211); -lean_dec(x_21); -x_212 = lean_box(0); -x_213 = lean_name_mk_string(x_212, x_211); -x_214 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_214, 0, x_213); -lean_ctor_set(x_214, 1, x_207); -lean_ctor_set(x_214, 2, x_208); -lean_ctor_set(x_214, 3, x_209); -x_215 = l_Lean_MacroScopesView_review(x_214); -x_216 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; -x_217 = 1; -lean_inc(x_3); lean_inc(x_210); -x_218 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_6, x_216, x_217, x_210, x_3, x_19); -lean_dec(x_6); -if (lean_obj_tag(x_218) == 0) -{ -lean_object* x_219; lean_object* x_220; -x_219 = lean_ctor_get(x_218, 1); -lean_inc(x_219); -lean_dec(x_218); +lean_inc(x_209); +lean_dec(x_20); +x_212 = lean_ctor_get(x_21, 0); +lean_inc(x_212); +x_213 = lean_ctor_get(x_21, 1); +lean_inc(x_213); +lean_dec(x_21); +x_214 = lean_box(0); +x_215 = lean_name_mk_string(x_214, x_213); +x_216 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_209); +lean_ctor_set(x_216, 2, x_210); +lean_ctor_set(x_216, 3, x_211); +x_217 = l_Lean_MacroScopesView_review(x_216); +x_218 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; +x_219 = 1; lean_inc(x_3); -x_220 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__1(x_18, x_3, x_219); +lean_inc(x_212); +x_220 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_6, x_218, x_219, x_212, x_3, x_19); +lean_dec(x_6); if (lean_obj_tag(x_220) == 0) { -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_233; +lean_object* x_221; lean_object* x_222; x_221 = lean_ctor_get(x_220, 1); lean_inc(x_221); lean_dec(x_220); lean_inc(x_3); -x_233 = l_Lean_Elab_Command_mkDeclName(x_1, x_215, x_3, x_221); -if (lean_obj_tag(x_233) == 0) +x_222 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__1(x_18, x_3, x_221); +if (lean_obj_tag(x_222) == 0) { -lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_291; lean_object* x_292; -x_234 = lean_ctor_get(x_233, 0); -lean_inc(x_234); -x_235 = lean_ctor_get(x_233, 1); -lean_inc(x_235); -lean_dec(x_233); -x_236 = lean_ctor_get(x_1, 1); +lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_235; +x_223 = lean_ctor_get(x_222, 1); +lean_inc(x_223); +lean_dec(x_222); +lean_inc(x_3); +x_235 = l_Lean_Elab_Command_mkDeclName(x_1, x_217, x_3, x_223); +if (lean_obj_tag(x_235) == 0) +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; uint8_t x_294; lean_object* x_295; lean_object* x_296; +x_236 = lean_ctor_get(x_235, 0); lean_inc(x_236); -x_291 = 2; +x_237 = lean_ctor_get(x_235, 1); +lean_inc(x_237); +lean_dec(x_235); +x_238 = lean_ctor_get(x_1, 1); +lean_inc(x_238); +x_294 = 2; +x_295 = lean_unsigned_to_nat(0u); lean_inc(x_3); -lean_inc(x_234); -x_292 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_234, x_291, x_236, x_12, x_3, x_235); -if (lean_obj_tag(x_292) == 0) +lean_inc(x_236); +x_296 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_236, x_294, x_238, x_295, x_3, x_237); +if (lean_obj_tag(x_296) == 0) { -lean_object* x_293; lean_object* x_294; -x_293 = lean_ctor_get(x_292, 1); -lean_inc(x_293); -lean_dec(x_292); +lean_object* x_297; lean_object* x_298; +x_297 = lean_ctor_get(x_296, 1); +lean_inc(x_297); +lean_dec(x_296); lean_inc(x_3); -x_294 = l_Lean_Elab_Command_getLevelNames(x_3, x_293); -if (lean_obj_tag(x_294) == 0) +x_298 = l_Lean_Elab_Command_getLevelNames(x_3, x_297); +if (lean_obj_tag(x_298) == 0) { -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; -x_295 = lean_ctor_get(x_294, 0); -lean_inc(x_295); -x_296 = lean_ctor_get(x_294, 1); -lean_inc(x_296); -lean_dec(x_294); -lean_inc(x_234); -x_297 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_297, 0, x_234); -lean_inc(x_234); -x_298 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__2___boxed), 8, 5); -lean_closure_set(x_298, 0, x_10); -lean_closure_set(x_298, 1, x_11); -lean_closure_set(x_298, 2, x_295); -lean_closure_set(x_298, 3, x_234); -lean_closure_set(x_298, 4, x_1); -lean_inc(x_3); -x_299 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_296); -if (lean_obj_tag(x_299) == 0) -{ -lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; -x_300 = lean_ctor_get(x_299, 0); +lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_299 = lean_ctor_get(x_298, 0); +lean_inc(x_299); +x_300 = lean_ctor_get(x_298, 1); lean_inc(x_300); -x_301 = lean_ctor_get(x_299, 1); -lean_inc(x_301); -lean_dec(x_299); -x_302 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_300); -x_303 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_300, x_297); -x_304 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_300); -lean_dec(x_300); -x_305 = l_Lean_Elab_Term_elabBinders___rarg(x_302, x_298, x_303, x_304); -lean_dec(x_302); -if (lean_obj_tag(x_305) == 0) -{ -lean_object* x_306; lean_object* x_307; lean_object* x_308; -x_306 = lean_ctor_get(x_305, 0); -lean_inc(x_306); -x_307 = lean_ctor_get(x_305, 1); -lean_inc(x_307); -lean_dec(x_305); +lean_dec(x_298); +lean_inc(x_236); +x_301 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_301, 0, x_236); +lean_inc(x_236); +x_302 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabAxiom___lambda__2___boxed), 8, 5); +lean_closure_set(x_302, 0, x_10); +lean_closure_set(x_302, 1, x_11); +lean_closure_set(x_302, 2, x_299); +lean_closure_set(x_302, 3, x_236); +lean_closure_set(x_302, 4, x_1); lean_inc(x_3); -x_308 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_301); -if (lean_obj_tag(x_308) == 0) +x_303 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_300); +if (lean_obj_tag(x_303) == 0) { -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; -x_309 = lean_ctor_get(x_307, 0); -lean_inc(x_309); -x_310 = lean_ctor_get(x_308, 0); +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +lean_dec(x_303); +x_306 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_304); +x_307 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_3, x_304, x_301); +x_308 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_304); +lean_dec(x_304); +x_309 = l_Lean_Elab_Term_elabBinders___rarg(x_306, x_302, x_307, x_308); +lean_dec(x_306); +if (lean_obj_tag(x_309) == 0) +{ +lean_object* x_310; lean_object* x_311; lean_object* x_312; +x_310 = lean_ctor_get(x_309, 0); lean_inc(x_310); -x_311 = lean_ctor_get(x_308, 1); +x_311 = lean_ctor_get(x_309, 1); lean_inc(x_311); -lean_dec(x_308); -x_312 = lean_ctor_get(x_309, 0); -lean_inc(x_312); lean_dec(x_309); -x_313 = lean_ctor_get(x_307, 2); +lean_inc(x_3); +x_312 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_305); +if (lean_obj_tag(x_312) == 0) +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_313 = lean_ctor_get(x_311, 0); lean_inc(x_313); -lean_dec(x_307); -x_314 = lean_ctor_get(x_310, 2); +x_314 = lean_ctor_get(x_312, 0); lean_inc(x_314); -x_315 = lean_ctor_get(x_310, 3); +x_315 = lean_ctor_get(x_312, 1); lean_inc(x_315); -x_316 = lean_ctor_get(x_310, 4); +lean_dec(x_312); +x_316 = lean_ctor_get(x_313, 0); lean_inc(x_316); -if (lean_is_exclusive(x_310)) { - lean_ctor_release(x_310, 0); - lean_ctor_release(x_310, 1); - lean_ctor_release(x_310, 2); - lean_ctor_release(x_310, 3); - lean_ctor_release(x_310, 4); - x_317 = x_310; -} else { - lean_dec_ref(x_310); - x_317 = lean_box(0); -} -if (lean_is_scalar(x_317)) { - x_318 = lean_alloc_ctor(0, 5, 0); -} else { - x_318 = x_317; -} -lean_ctor_set(x_318, 0, x_312); -lean_ctor_set(x_318, 1, x_313); -lean_ctor_set(x_318, 2, x_314); -lean_ctor_set(x_318, 3, x_315); -lean_ctor_set(x_318, 4, x_316); -lean_inc(x_3); -x_319 = l___private_Init_Lean_Elab_Command_3__setState(x_318, x_3, x_311); -if (lean_obj_tag(x_319) == 0) -{ -lean_object* x_320; -x_320 = lean_ctor_get(x_319, 1); +lean_dec(x_313); +x_317 = lean_ctor_get(x_311, 2); +lean_inc(x_317); +lean_dec(x_311); +x_318 = lean_ctor_get(x_314, 2); +lean_inc(x_318); +x_319 = lean_ctor_get(x_314, 3); +lean_inc(x_319); +x_320 = lean_ctor_get(x_314, 4); lean_inc(x_320); -lean_dec(x_319); -x_237 = x_306; -x_238 = x_320; -goto block_290; +if (lean_is_exclusive(x_314)) { + lean_ctor_release(x_314, 0); + lean_ctor_release(x_314, 1); + lean_ctor_release(x_314, 2); + lean_ctor_release(x_314, 3); + lean_ctor_release(x_314, 4); + x_321 = x_314; +} else { + lean_dec_ref(x_314); + x_321 = lean_box(0); } -else +if (lean_is_scalar(x_321)) { + x_322 = lean_alloc_ctor(0, 5, 0); +} else { + x_322 = x_321; +} +lean_ctor_set(x_322, 0, x_316); +lean_ctor_set(x_322, 1, x_317); +lean_ctor_set(x_322, 2, x_318); +lean_ctor_set(x_322, 3, x_319); +lean_ctor_set(x_322, 4, x_320); +lean_inc(x_3); +x_323 = l___private_Init_Lean_Elab_Command_3__setState(x_322, x_3, x_315); +if (lean_obj_tag(x_323) == 0) { -lean_object* x_321; lean_object* x_322; -lean_dec(x_306); -lean_dec(x_236); -lean_dec(x_234); -lean_dec(x_210); -x_321 = lean_ctor_get(x_319, 0); -lean_inc(x_321); -x_322 = lean_ctor_get(x_319, 1); -lean_inc(x_322); -lean_dec(x_319); -x_222 = x_321; -x_223 = x_322; -goto block_232; -} -} -else -{ -lean_object* x_323; lean_object* x_324; -lean_dec(x_307); -lean_dec(x_306); -lean_dec(x_236); -lean_dec(x_234); -lean_dec(x_210); -x_323 = lean_ctor_get(x_308, 0); -lean_inc(x_323); -x_324 = lean_ctor_get(x_308, 1); +lean_object* x_324; +x_324 = lean_ctor_get(x_323, 1); lean_inc(x_324); -lean_dec(x_308); -x_222 = x_323; -x_223 = x_324; -goto block_232; -} +lean_dec(x_323); +x_239 = x_310; +x_240 = x_324; +goto block_293; } else { -lean_object* x_325; -x_325 = lean_ctor_get(x_305, 0); +lean_object* x_325; lean_object* x_326; +lean_dec(x_310); +lean_dec(x_238); +lean_dec(x_236); +lean_dec(x_212); +x_325 = lean_ctor_get(x_323, 0); lean_inc(x_325); -if (lean_obj_tag(x_325) == 0) -{ -lean_object* x_326; lean_object* x_327; lean_object* x_328; -lean_dec(x_236); -lean_dec(x_234); -lean_dec(x_210); -x_326 = lean_ctor_get(x_305, 1); +x_326 = lean_ctor_get(x_323, 1); lean_inc(x_326); -lean_dec(x_305); -x_327 = lean_ctor_get(x_325, 0); -lean_inc(x_327); -lean_dec(x_325); -lean_inc(x_3); -x_328 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_301); -if (lean_obj_tag(x_328) == 0) -{ -lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; -x_329 = lean_ctor_get(x_326, 0); -lean_inc(x_329); -x_330 = lean_ctor_get(x_328, 0); -lean_inc(x_330); -x_331 = lean_ctor_get(x_328, 1); -lean_inc(x_331); -lean_dec(x_328); -x_332 = lean_ctor_get(x_329, 0); -lean_inc(x_332); -lean_dec(x_329); -x_333 = lean_ctor_get(x_326, 2); -lean_inc(x_333); -lean_dec(x_326); -x_334 = lean_ctor_get(x_330, 2); -lean_inc(x_334); -x_335 = lean_ctor_get(x_330, 3); -lean_inc(x_335); -x_336 = lean_ctor_get(x_330, 4); -lean_inc(x_336); -if (lean_is_exclusive(x_330)) { - lean_ctor_release(x_330, 0); - lean_ctor_release(x_330, 1); - lean_ctor_release(x_330, 2); - lean_ctor_release(x_330, 3); - lean_ctor_release(x_330, 4); - x_337 = x_330; -} else { - lean_dec_ref(x_330); - x_337 = lean_box(0); -} -if (lean_is_scalar(x_337)) { - x_338 = lean_alloc_ctor(0, 5, 0); -} else { - x_338 = x_337; -} -lean_ctor_set(x_338, 0, x_332); -lean_ctor_set(x_338, 1, x_333); -lean_ctor_set(x_338, 2, x_334); -lean_ctor_set(x_338, 3, x_335); -lean_ctor_set(x_338, 4, x_336); -lean_inc(x_3); -x_339 = l___private_Init_Lean_Elab_Command_3__setState(x_338, x_3, x_331); -if (lean_obj_tag(x_339) == 0) -{ -lean_object* x_340; -x_340 = lean_ctor_get(x_339, 1); -lean_inc(x_340); -lean_dec(x_339); -x_222 = x_327; -x_223 = x_340; -goto block_232; -} -else -{ -lean_object* x_341; lean_object* x_342; -lean_dec(x_327); -x_341 = lean_ctor_get(x_339, 0); -lean_inc(x_341); -x_342 = lean_ctor_get(x_339, 1); -lean_inc(x_342); -lean_dec(x_339); -x_222 = x_341; -x_223 = x_342; -goto block_232; +lean_dec(x_323); +x_224 = x_325; +x_225 = x_326; +goto block_234; } } else { -lean_object* x_343; lean_object* x_344; -lean_dec(x_327); -lean_dec(x_326); -x_343 = lean_ctor_get(x_328, 0); -lean_inc(x_343); -x_344 = lean_ctor_get(x_328, 1); -lean_inc(x_344); -lean_dec(x_328); -x_222 = x_343; -x_223 = x_344; -goto block_232; -} -} -else -{ -lean_object* x_345; lean_object* x_346; lean_object* x_347; -lean_dec(x_305); -x_345 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_346 = l_unreachable_x21___rarg(x_345); -lean_inc(x_3); -x_347 = lean_apply_2(x_346, x_3, x_301); -if (lean_obj_tag(x_347) == 0) -{ -lean_object* x_348; lean_object* x_349; -x_348 = lean_ctor_get(x_347, 0); -lean_inc(x_348); -x_349 = lean_ctor_get(x_347, 1); -lean_inc(x_349); -lean_dec(x_347); -x_237 = x_348; -x_238 = x_349; -goto block_290; -} -else -{ -lean_object* x_350; lean_object* x_351; +lean_object* x_327; lean_object* x_328; +lean_dec(x_311); +lean_dec(x_310); +lean_dec(x_238); lean_dec(x_236); -lean_dec(x_234); -lean_dec(x_210); -x_350 = lean_ctor_get(x_347, 0); -lean_inc(x_350); -x_351 = lean_ctor_get(x_347, 1); -lean_inc(x_351); -lean_dec(x_347); -x_222 = x_350; -x_223 = x_351; -goto block_232; -} -} +lean_dec(x_212); +x_327 = lean_ctor_get(x_312, 0); +lean_inc(x_327); +x_328 = lean_ctor_get(x_312, 1); +lean_inc(x_328); +lean_dec(x_312); +x_224 = x_327; +x_225 = x_328; +goto block_234; } } else { +lean_object* x_329; +x_329 = lean_ctor_get(x_309, 0); +lean_inc(x_329); +if (lean_obj_tag(x_329) == 0) +{ +lean_object* x_330; lean_object* x_331; lean_object* x_332; +lean_dec(x_238); +lean_dec(x_236); +lean_dec(x_212); +x_330 = lean_ctor_get(x_309, 1); +lean_inc(x_330); +lean_dec(x_309); +x_331 = lean_ctor_get(x_329, 0); +lean_inc(x_331); +lean_dec(x_329); +lean_inc(x_3); +x_332 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_305); +if (lean_obj_tag(x_332) == 0) +{ +lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_333 = lean_ctor_get(x_330, 0); +lean_inc(x_333); +x_334 = lean_ctor_get(x_332, 0); +lean_inc(x_334); +x_335 = lean_ctor_get(x_332, 1); +lean_inc(x_335); +lean_dec(x_332); +x_336 = lean_ctor_get(x_333, 0); +lean_inc(x_336); +lean_dec(x_333); +x_337 = lean_ctor_get(x_330, 2); +lean_inc(x_337); +lean_dec(x_330); +x_338 = lean_ctor_get(x_334, 2); +lean_inc(x_338); +x_339 = lean_ctor_get(x_334, 3); +lean_inc(x_339); +x_340 = lean_ctor_get(x_334, 4); +lean_inc(x_340); +if (lean_is_exclusive(x_334)) { + lean_ctor_release(x_334, 0); + lean_ctor_release(x_334, 1); + lean_ctor_release(x_334, 2); + lean_ctor_release(x_334, 3); + lean_ctor_release(x_334, 4); + x_341 = x_334; +} else { + lean_dec_ref(x_334); + x_341 = lean_box(0); +} +if (lean_is_scalar(x_341)) { + x_342 = lean_alloc_ctor(0, 5, 0); +} else { + x_342 = x_341; +} +lean_ctor_set(x_342, 0, x_336); +lean_ctor_set(x_342, 1, x_337); +lean_ctor_set(x_342, 2, x_338); +lean_ctor_set(x_342, 3, x_339); +lean_ctor_set(x_342, 4, x_340); +lean_inc(x_3); +x_343 = l___private_Init_Lean_Elab_Command_3__setState(x_342, x_3, x_335); +if (lean_obj_tag(x_343) == 0) +{ +lean_object* x_344; +x_344 = lean_ctor_get(x_343, 1); +lean_inc(x_344); +lean_dec(x_343); +x_224 = x_331; +x_225 = x_344; +goto block_234; +} +else +{ +lean_object* x_345; lean_object* x_346; +lean_dec(x_331); +x_345 = lean_ctor_get(x_343, 0); +lean_inc(x_345); +x_346 = lean_ctor_get(x_343, 1); +lean_inc(x_346); +lean_dec(x_343); +x_224 = x_345; +x_225 = x_346; +goto block_234; +} +} +else +{ +lean_object* x_347; lean_object* x_348; +lean_dec(x_331); +lean_dec(x_330); +x_347 = lean_ctor_get(x_332, 0); +lean_inc(x_347); +x_348 = lean_ctor_get(x_332, 1); +lean_inc(x_348); +lean_dec(x_332); +x_224 = x_347; +x_225 = x_348; +goto block_234; +} +} +else +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; +lean_dec(x_309); +x_349 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; +x_350 = l_unreachable_x21___rarg(x_349); +lean_inc(x_3); +x_351 = lean_apply_2(x_350, x_3, x_305); +if (lean_obj_tag(x_351) == 0) +{ lean_object* x_352; lean_object* x_353; -lean_dec(x_298); -lean_dec(x_297); -lean_dec(x_236); -lean_dec(x_234); -lean_dec(x_210); -x_352 = lean_ctor_get(x_299, 0); +x_352 = lean_ctor_get(x_351, 0); lean_inc(x_352); -x_353 = lean_ctor_get(x_299, 1); +x_353 = lean_ctor_get(x_351, 1); lean_inc(x_353); -lean_dec(x_299); -x_222 = x_352; -x_223 = x_353; -goto block_232; -} +lean_dec(x_351); +x_239 = x_352; +x_240 = x_353; +goto block_293; } else { lean_object* x_354; lean_object* x_355; +lean_dec(x_238); lean_dec(x_236); -lean_dec(x_234); -lean_dec(x_210); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_1); -x_354 = lean_ctor_get(x_294, 0); +lean_dec(x_212); +x_354 = lean_ctor_get(x_351, 0); lean_inc(x_354); -x_355 = lean_ctor_get(x_294, 1); +x_355 = lean_ctor_get(x_351, 1); lean_inc(x_355); -lean_dec(x_294); -x_222 = x_354; -x_223 = x_355; -goto block_232; +lean_dec(x_351); +x_224 = x_354; +x_225 = x_355; +goto block_234; +} +} } } else { lean_object* x_356; lean_object* x_357; +lean_dec(x_302); +lean_dec(x_301); +lean_dec(x_238); lean_dec(x_236); -lean_dec(x_234); -lean_dec(x_210); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_1); -x_356 = lean_ctor_get(x_292, 0); +lean_dec(x_212); +x_356 = lean_ctor_get(x_303, 0); lean_inc(x_356); -x_357 = lean_ctor_get(x_292, 1); +x_357 = lean_ctor_get(x_303, 1); lean_inc(x_357); -lean_dec(x_292); -x_222 = x_356; -x_223 = x_357; -goto block_232; -} -block_290: -{ -lean_object* x_239; -lean_inc(x_3); -x_239 = l_Lean_Elab_Command_addDecl(x_2, x_237, x_3, x_238); -lean_dec(x_237); -if (lean_obj_tag(x_239) == 0) -{ -lean_object* x_240; uint8_t x_241; lean_object* x_242; -x_240 = lean_ctor_get(x_239, 1); -lean_inc(x_240); -lean_dec(x_239); -x_241 = 0; -lean_inc(x_3); -lean_inc(x_234); -x_242 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_234, x_241, x_236, x_12, x_3, x_240); -if (lean_obj_tag(x_242) == 0) -{ -lean_object* x_243; uint8_t x_244; lean_object* x_245; -x_243 = lean_ctor_get(x_242, 1); -lean_inc(x_243); -lean_dec(x_242); -x_244 = 1; -lean_inc(x_3); -x_245 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_234, x_244, x_236, x_12, x_3, x_243); -lean_dec(x_236); -if (lean_obj_tag(x_245) == 0) -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; -x_246 = lean_ctor_get(x_245, 0); -lean_inc(x_246); -x_247 = lean_ctor_get(x_245, 1); -lean_inc(x_247); -lean_dec(x_245); -lean_inc(x_3); -lean_inc(x_16); -x_248 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__3(x_16, x_3, x_247); -if (lean_obj_tag(x_248) == 0) -{ -lean_object* x_249; lean_object* x_250; -lean_dec(x_16); -x_249 = lean_ctor_get(x_248, 1); -lean_inc(x_249); -lean_dec(x_248); -lean_inc(x_3); -x_250 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_249); -if (lean_obj_tag(x_250) == 0) -{ -lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; -x_251 = lean_ctor_get(x_250, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_250, 1); -lean_inc(x_252); -lean_dec(x_250); -x_253 = lean_ctor_get(x_251, 0); -lean_inc(x_253); -x_254 = lean_ctor_get(x_251, 1); -lean_inc(x_254); -x_255 = lean_ctor_get(x_251, 2); -lean_inc(x_255); -x_256 = lean_ctor_get(x_251, 3); -lean_inc(x_256); -x_257 = lean_ctor_get(x_251, 4); -lean_inc(x_257); -if (lean_is_exclusive(x_251)) { - lean_ctor_release(x_251, 0); - lean_ctor_release(x_251, 1); - lean_ctor_release(x_251, 2); - lean_ctor_release(x_251, 3); - lean_ctor_release(x_251, 4); - x_258 = x_251; -} else { - lean_dec_ref(x_251); - x_258 = lean_box(0); -} -x_259 = l_Lean_Name_getNumParts___main(x_210); -lean_dec(x_210); -x_260 = l_List_drop___main___rarg(x_259, x_255); -lean_dec(x_255); -if (lean_is_scalar(x_258)) { - x_261 = lean_alloc_ctor(0, 5, 0); -} else { - x_261 = x_258; -} -lean_ctor_set(x_261, 0, x_253); -lean_ctor_set(x_261, 1, x_254); -lean_ctor_set(x_261, 2, x_260); -lean_ctor_set(x_261, 3, x_256); -lean_ctor_set(x_261, 4, x_257); -x_262 = l___private_Init_Lean_Elab_Command_3__setState(x_261, x_3, x_252); -if (lean_obj_tag(x_262) == 0) -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; -x_263 = lean_ctor_get(x_262, 1); -lean_inc(x_263); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_264 = x_262; -} else { - lean_dec_ref(x_262); - x_264 = lean_box(0); -} -if (lean_is_scalar(x_264)) { - x_265 = lean_alloc_ctor(0, 2, 0); -} else { - x_265 = x_264; -} -lean_ctor_set(x_265, 0, x_246); -lean_ctor_set(x_265, 1, x_263); -return x_265; -} -else -{ -lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -lean_dec(x_246); -x_266 = lean_ctor_get(x_262, 0); -lean_inc(x_266); -x_267 = lean_ctor_get(x_262, 1); -lean_inc(x_267); -if (lean_is_exclusive(x_262)) { - lean_ctor_release(x_262, 0); - lean_ctor_release(x_262, 1); - x_268 = x_262; -} else { - lean_dec_ref(x_262); - x_268 = lean_box(0); -} -if (lean_is_scalar(x_268)) { - x_269 = lean_alloc_ctor(1, 2, 0); -} else { - x_269 = x_268; -} -lean_ctor_set(x_269, 0, x_266); -lean_ctor_set(x_269, 1, x_267); -return x_269; -} -} -else -{ -lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; -lean_dec(x_246); -lean_dec(x_210); -lean_dec(x_3); -x_270 = lean_ctor_get(x_250, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_250, 1); -lean_inc(x_271); -if (lean_is_exclusive(x_250)) { - lean_ctor_release(x_250, 0); - lean_ctor_release(x_250, 1); - x_272 = x_250; -} else { - lean_dec_ref(x_250); - x_272 = lean_box(0); -} -if (lean_is_scalar(x_272)) { - x_273 = lean_alloc_ctor(1, 2, 0); -} else { - x_273 = x_272; -} -lean_ctor_set(x_273, 0, x_270); -lean_ctor_set(x_273, 1, x_271); -return x_273; -} -} -else -{ -lean_object* x_274; lean_object* x_275; lean_object* x_276; -lean_dec(x_246); -lean_dec(x_210); -x_274 = lean_ctor_get(x_248, 0); -lean_inc(x_274); -x_275 = lean_ctor_get(x_248, 1); -lean_inc(x_275); -lean_dec(x_248); -x_276 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__4(x_16, x_3, x_275); -if (lean_obj_tag(x_276) == 0) -{ -lean_object* x_277; lean_object* x_278; lean_object* x_279; -x_277 = lean_ctor_get(x_276, 1); -lean_inc(x_277); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_278 = x_276; -} else { - lean_dec_ref(x_276); - x_278 = lean_box(0); -} -if (lean_is_scalar(x_278)) { - x_279 = lean_alloc_ctor(1, 2, 0); -} else { - x_279 = x_278; - lean_ctor_set_tag(x_279, 1); -} -lean_ctor_set(x_279, 0, x_274); -lean_ctor_set(x_279, 1, x_277); -return x_279; -} -else -{ -lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; -lean_dec(x_274); -x_280 = lean_ctor_get(x_276, 0); -lean_inc(x_280); -x_281 = lean_ctor_get(x_276, 1); -lean_inc(x_281); -if (lean_is_exclusive(x_276)) { - lean_ctor_release(x_276, 0); - lean_ctor_release(x_276, 1); - x_282 = x_276; -} else { - lean_dec_ref(x_276); - x_282 = lean_box(0); -} -if (lean_is_scalar(x_282)) { - x_283 = lean_alloc_ctor(1, 2, 0); -} else { - x_283 = x_282; -} -lean_ctor_set(x_283, 0, x_280); -lean_ctor_set(x_283, 1, x_281); -return x_283; -} -} -} -else -{ -lean_object* x_284; lean_object* x_285; -lean_dec(x_210); -x_284 = lean_ctor_get(x_245, 0); -lean_inc(x_284); -x_285 = lean_ctor_get(x_245, 1); -lean_inc(x_285); -lean_dec(x_245); -x_222 = x_284; -x_223 = x_285; -goto block_232; -} -} -else -{ -lean_object* x_286; lean_object* x_287; -lean_dec(x_236); -lean_dec(x_234); -lean_dec(x_210); -x_286 = lean_ctor_get(x_242, 0); -lean_inc(x_286); -x_287 = lean_ctor_get(x_242, 1); -lean_inc(x_287); -lean_dec(x_242); -x_222 = x_286; -x_223 = x_287; -goto block_232; -} -} -else -{ -lean_object* x_288; lean_object* x_289; -lean_dec(x_236); -lean_dec(x_234); -lean_dec(x_210); -x_288 = lean_ctor_get(x_239, 0); -lean_inc(x_288); -x_289 = lean_ctor_get(x_239, 1); -lean_inc(x_289); -lean_dec(x_239); -x_222 = x_288; -x_223 = x_289; -goto block_232; -} +lean_dec(x_303); +x_224 = x_356; +x_225 = x_357; +goto block_234; } } else { lean_object* x_358; lean_object* x_359; -lean_dec(x_210); +lean_dec(x_238); +lean_dec(x_236); +lean_dec(x_212); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_358 = lean_ctor_get(x_233, 0); +x_358 = lean_ctor_get(x_298, 0); lean_inc(x_358); -x_359 = lean_ctor_get(x_233, 1); +x_359 = lean_ctor_get(x_298, 1); lean_inc(x_359); -lean_dec(x_233); -x_222 = x_358; -x_223 = x_359; -goto block_232; -} -block_232: -{ -lean_object* x_224; -x_224 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__2(x_16, x_3, x_223); -if (lean_obj_tag(x_224) == 0) -{ -lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_225 = lean_ctor_get(x_224, 1); -lean_inc(x_225); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - x_226 = x_224; -} else { - lean_dec_ref(x_224); - x_226 = lean_box(0); -} -if (lean_is_scalar(x_226)) { - x_227 = lean_alloc_ctor(1, 2, 0); -} else { - x_227 = x_226; - lean_ctor_set_tag(x_227, 1); -} -lean_ctor_set(x_227, 0, x_222); -lean_ctor_set(x_227, 1, x_225); -return x_227; -} -else -{ -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; -lean_dec(x_222); -x_228 = lean_ctor_get(x_224, 0); -lean_inc(x_228); -x_229 = lean_ctor_get(x_224, 1); -lean_inc(x_229); -if (lean_is_exclusive(x_224)) { - lean_ctor_release(x_224, 0); - lean_ctor_release(x_224, 1); - x_230 = x_224; -} else { - lean_dec_ref(x_224); - x_230 = lean_box(0); -} -if (lean_is_scalar(x_230)) { - x_231 = lean_alloc_ctor(1, 2, 0); -} else { - x_231 = x_230; -} -lean_ctor_set(x_231, 0, x_228); -lean_ctor_set(x_231, 1, x_229); -return x_231; -} +lean_dec(x_298); +x_224 = x_358; +x_225 = x_359; +goto block_234; } } else { -lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; -lean_dec(x_215); -lean_dec(x_210); -lean_dec(x_16); +lean_object* x_360; lean_object* x_361; +lean_dec(x_238); +lean_dec(x_236); +lean_dec(x_212); lean_dec(x_11); lean_dec(x_10); -lean_dec(x_3); lean_dec(x_1); -x_360 = lean_ctor_get(x_220, 0); +x_360 = lean_ctor_get(x_296, 0); lean_inc(x_360); -x_361 = lean_ctor_get(x_220, 1); +x_361 = lean_ctor_get(x_296, 1); lean_inc(x_361); -if (lean_is_exclusive(x_220)) { - lean_ctor_release(x_220, 0); - lean_ctor_release(x_220, 1); - x_362 = x_220; -} else { - lean_dec_ref(x_220); - x_362 = lean_box(0); +lean_dec(x_296); +x_224 = x_360; +x_225 = x_361; +goto block_234; } -if (lean_is_scalar(x_362)) { - x_363 = lean_alloc_ctor(1, 2, 0); +block_293: +{ +lean_object* x_241; +lean_inc(x_3); +x_241 = l_Lean_Elab_Command_addDecl(x_2, x_239, x_3, x_240); +lean_dec(x_239); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; uint8_t x_243; lean_object* x_244; lean_object* x_245; +x_242 = lean_ctor_get(x_241, 1); +lean_inc(x_242); +lean_dec(x_241); +x_243 = 0; +x_244 = lean_unsigned_to_nat(0u); +lean_inc(x_3); +lean_inc(x_236); +x_245 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_236, x_243, x_238, x_244, x_3, x_242); +if (lean_obj_tag(x_245) == 0) +{ +lean_object* x_246; uint8_t x_247; lean_object* x_248; +x_246 = lean_ctor_get(x_245, 1); +lean_inc(x_246); +lean_dec(x_245); +x_247 = 1; +lean_inc(x_3); +x_248 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_2, x_236, x_247, x_238, x_244, x_3, x_246); +lean_dec(x_238); +if (lean_obj_tag(x_248) == 0) +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; +x_249 = lean_ctor_get(x_248, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_248, 1); +lean_inc(x_250); +lean_dec(x_248); +lean_inc(x_3); +lean_inc(x_16); +x_251 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__3(x_16, x_3, x_250); +if (lean_obj_tag(x_251) == 0) +{ +lean_object* x_252; lean_object* x_253; +lean_dec(x_16); +x_252 = lean_ctor_get(x_251, 1); +lean_inc(x_252); +lean_dec(x_251); +lean_inc(x_3); +x_253 = l___private_Init_Lean_Elab_Command_2__getState(x_3, x_252); +if (lean_obj_tag(x_253) == 0) +{ +lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +x_254 = lean_ctor_get(x_253, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_253, 1); +lean_inc(x_255); +lean_dec(x_253); +x_256 = lean_ctor_get(x_254, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_254, 1); +lean_inc(x_257); +x_258 = lean_ctor_get(x_254, 2); +lean_inc(x_258); +x_259 = lean_ctor_get(x_254, 3); +lean_inc(x_259); +x_260 = lean_ctor_get(x_254, 4); +lean_inc(x_260); +if (lean_is_exclusive(x_254)) { + lean_ctor_release(x_254, 0); + lean_ctor_release(x_254, 1); + lean_ctor_release(x_254, 2); + lean_ctor_release(x_254, 3); + lean_ctor_release(x_254, 4); + x_261 = x_254; } else { - x_363 = x_362; + lean_dec_ref(x_254); + x_261 = lean_box(0); +} +x_262 = l_Lean_Name_getNumParts___main(x_212); +lean_dec(x_212); +x_263 = l_List_drop___main___rarg(x_262, x_258); +lean_dec(x_258); +if (lean_is_scalar(x_261)) { + x_264 = lean_alloc_ctor(0, 5, 0); +} else { + x_264 = x_261; +} +lean_ctor_set(x_264, 0, x_256); +lean_ctor_set(x_264, 1, x_257); +lean_ctor_set(x_264, 2, x_263); +lean_ctor_set(x_264, 3, x_259); +lean_ctor_set(x_264, 4, x_260); +x_265 = l___private_Init_Lean_Elab_Command_3__setState(x_264, x_3, x_255); +if (lean_obj_tag(x_265) == 0) +{ +lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_266 = lean_ctor_get(x_265, 1); +lean_inc(x_266); +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + x_267 = x_265; +} else { + lean_dec_ref(x_265); + x_267 = lean_box(0); +} +if (lean_is_scalar(x_267)) { + x_268 = lean_alloc_ctor(0, 2, 0); +} else { + x_268 = x_267; +} +lean_ctor_set(x_268, 0, x_249); +lean_ctor_set(x_268, 1, x_266); +return x_268; +} +else +{ +lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; +lean_dec(x_249); +x_269 = lean_ctor_get(x_265, 0); +lean_inc(x_269); +x_270 = lean_ctor_get(x_265, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + x_271 = x_265; +} else { + lean_dec_ref(x_265); + x_271 = lean_box(0); +} +if (lean_is_scalar(x_271)) { + x_272 = lean_alloc_ctor(1, 2, 0); +} else { + x_272 = x_271; +} +lean_ctor_set(x_272, 0, x_269); +lean_ctor_set(x_272, 1, x_270); +return x_272; +} +} +else +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +lean_dec(x_249); +lean_dec(x_212); +lean_dec(x_3); +x_273 = lean_ctor_get(x_253, 0); +lean_inc(x_273); +x_274 = lean_ctor_get(x_253, 1); +lean_inc(x_274); +if (lean_is_exclusive(x_253)) { + lean_ctor_release(x_253, 0); + lean_ctor_release(x_253, 1); + x_275 = x_253; +} else { + lean_dec_ref(x_253); + x_275 = lean_box(0); +} +if (lean_is_scalar(x_275)) { + x_276 = lean_alloc_ctor(1, 2, 0); +} else { + x_276 = x_275; +} +lean_ctor_set(x_276, 0, x_273); +lean_ctor_set(x_276, 1, x_274); +return x_276; +} +} +else +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; +lean_dec(x_249); +lean_dec(x_212); +x_277 = lean_ctor_get(x_251, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_251, 1); +lean_inc(x_278); +lean_dec(x_251); +x_279 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__4(x_16, x_3, x_278); +if (lean_obj_tag(x_279) == 0) +{ +lean_object* x_280; lean_object* x_281; lean_object* x_282; +x_280 = lean_ctor_get(x_279, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_279)) { + lean_ctor_release(x_279, 0); + lean_ctor_release(x_279, 1); + x_281 = x_279; +} else { + lean_dec_ref(x_279); + x_281 = lean_box(0); +} +if (lean_is_scalar(x_281)) { + x_282 = lean_alloc_ctor(1, 2, 0); +} else { + x_282 = x_281; + lean_ctor_set_tag(x_282, 1); +} +lean_ctor_set(x_282, 0, x_277); +lean_ctor_set(x_282, 1, x_280); +return x_282; +} +else +{ +lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +lean_dec(x_277); +x_283 = lean_ctor_get(x_279, 0); +lean_inc(x_283); +x_284 = lean_ctor_get(x_279, 1); +lean_inc(x_284); +if (lean_is_exclusive(x_279)) { + lean_ctor_release(x_279, 0); + lean_ctor_release(x_279, 1); + x_285 = x_279; +} else { + lean_dec_ref(x_279); + x_285 = lean_box(0); +} +if (lean_is_scalar(x_285)) { + x_286 = lean_alloc_ctor(1, 2, 0); +} else { + x_286 = x_285; +} +lean_ctor_set(x_286, 0, x_283); +lean_ctor_set(x_286, 1, x_284); +return x_286; +} +} +} +else +{ +lean_object* x_287; lean_object* x_288; +lean_dec(x_212); +x_287 = lean_ctor_get(x_248, 0); +lean_inc(x_287); +x_288 = lean_ctor_get(x_248, 1); +lean_inc(x_288); +lean_dec(x_248); +x_224 = x_287; +x_225 = x_288; +goto block_234; +} +} +else +{ +lean_object* x_289; lean_object* x_290; +lean_dec(x_238); +lean_dec(x_236); +lean_dec(x_212); +x_289 = lean_ctor_get(x_245, 0); +lean_inc(x_289); +x_290 = lean_ctor_get(x_245, 1); +lean_inc(x_290); +lean_dec(x_245); +x_224 = x_289; +x_225 = x_290; +goto block_234; +} +} +else +{ +lean_object* x_291; lean_object* x_292; +lean_dec(x_238); +lean_dec(x_236); +lean_dec(x_212); +x_291 = lean_ctor_get(x_241, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_241, 1); +lean_inc(x_292); +lean_dec(x_241); +x_224 = x_291; +x_225 = x_292; +goto block_234; +} +} +} +else +{ +lean_object* x_362; lean_object* x_363; +lean_dec(x_212); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_1); +x_362 = lean_ctor_get(x_235, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_235, 1); +lean_inc(x_363); +lean_dec(x_235); +x_224 = x_362; +x_225 = x_363; +goto block_234; +} +block_234: +{ +lean_object* x_226; +x_226 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabAxiom___spec__2(x_16, x_3, x_225); +if (lean_obj_tag(x_226) == 0) +{ +lean_object* x_227; lean_object* x_228; lean_object* x_229; +x_227 = lean_ctor_get(x_226, 1); +lean_inc(x_227); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_228 = x_226; +} else { + lean_dec_ref(x_226); + x_228 = lean_box(0); +} +if (lean_is_scalar(x_228)) { + x_229 = lean_alloc_ctor(1, 2, 0); +} else { + x_229 = x_228; + lean_ctor_set_tag(x_229, 1); +} +lean_ctor_set(x_229, 0, x_224); +lean_ctor_set(x_229, 1, x_227); +return x_229; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; +lean_dec(x_224); +x_230 = lean_ctor_get(x_226, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_226, 1); +lean_inc(x_231); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_232 = x_226; +} else { + lean_dec_ref(x_226); + x_232 = lean_box(0); +} +if (lean_is_scalar(x_232)) { + x_233 = lean_alloc_ctor(1, 2, 0); +} else { + x_233 = x_232; +} +lean_ctor_set(x_233, 0, x_230); +lean_ctor_set(x_233, 1, x_231); +return x_233; } -lean_ctor_set(x_363, 0, x_360); -lean_ctor_set(x_363, 1, x_361); -return x_363; } } else { lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; -lean_dec(x_215); -lean_dec(x_210); -lean_dec(x_18); +lean_dec(x_217); +lean_dec(x_212); lean_dec(x_16); lean_dec(x_11); lean_dec(x_10); lean_dec(x_3); lean_dec(x_1); -x_364 = lean_ctor_get(x_218, 0); +x_364 = lean_ctor_get(x_222, 0); lean_inc(x_364); -x_365 = lean_ctor_get(x_218, 1); +x_365 = lean_ctor_get(x_222, 1); lean_inc(x_365); -if (lean_is_exclusive(x_218)) { - lean_ctor_release(x_218, 0); - lean_ctor_release(x_218, 1); - x_366 = x_218; +if (lean_is_exclusive(x_222)) { + lean_ctor_release(x_222, 0); + lean_ctor_release(x_222, 1); + x_366 = x_222; } else { - lean_dec_ref(x_218); + lean_dec_ref(x_222); x_366 = lean_box(0); } if (lean_is_scalar(x_366)) { @@ -5113,10 +5088,43 @@ lean_ctor_set(x_367, 1, x_365); return x_367; } } +else +{ +lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +lean_dec(x_217); +lean_dec(x_212); +lean_dec(x_18); +lean_dec(x_16); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_1); +x_368 = lean_ctor_get(x_220, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_220, 1); +lean_inc(x_369); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_370 = x_220; +} else { + lean_dec_ref(x_220); + x_370 = lean_box(0); +} +if (lean_is_scalar(x_370)) { + x_371 = lean_alloc_ctor(1, 2, 0); +} else { + x_371 = x_370; +} +lean_ctor_set(x_371, 0, x_368); +lean_ctor_set(x_371, 1, x_369); +return x_371; +} +} } else { -lean_object* x_368; lean_object* x_369; +lean_object* x_372; lean_object* x_373; lean_dec(x_21); lean_dec(x_20); lean_dec(x_18); @@ -5124,16 +5132,16 @@ lean_dec(x_16); lean_dec(x_11); lean_dec(x_10); lean_dec(x_1); -x_368 = l_Lean_Elab_Command_withDeclId___closed__3; -x_369 = l_Lean_Elab_Command_throwError___rarg(x_6, x_368, x_3, x_19); +x_372 = l_Lean_Elab_Command_withDeclId___closed__3; +x_373 = l_Lean_Elab_Command_throwError___rarg(x_6, x_372, x_3, x_19); lean_dec(x_6); -return x_369; +return x_373; } } } else { -uint8_t x_383; +uint8_t x_388; lean_dec(x_14); lean_dec(x_13); lean_dec(x_11); @@ -5141,23 +5149,23 @@ lean_dec(x_10); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_383 = !lean_is_exclusive(x_15); -if (x_383 == 0) +x_388 = !lean_is_exclusive(x_15); +if (x_388 == 0) { return x_15; } else { -lean_object* x_384; lean_object* x_385; lean_object* x_386; -x_384 = lean_ctor_get(x_15, 0); -x_385 = lean_ctor_get(x_15, 1); -lean_inc(x_385); -lean_inc(x_384); +lean_object* x_389; lean_object* x_390; lean_object* x_391; +x_389 = lean_ctor_get(x_15, 0); +x_390 = lean_ctor_get(x_15, 1); +lean_inc(x_390); +lean_inc(x_389); lean_dec(x_15); -x_386 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_386, 0, x_384); -lean_ctor_set(x_386, 1, x_385); -return x_386; +x_391 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_391, 0, x_389); +lean_ctor_set(x_391, 1, x_390); +return x_391; } } } diff --git a/stage0/stdlib/Init/Lean/Elab/Definition.c b/stage0/stdlib/Init/Lean/Elab/Definition.c index 3f2a74931b..b298eccc53 100644 --- a/stage0/stdlib/Init/Lean/Elab/Definition.c +++ b/stage0/stdlib/Init/Lean/Elab/Definition.c @@ -27,7 +27,6 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_elabDefLike___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_mkDef___lambda__1___closed__4; -lean_object* l_Lean_Syntax_getIdAt(lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Command_removeUnused___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Command_runTermElabM___rarg___closed__1; lean_object* lean_local_ctx_erase(lean_object*, lean_object*); @@ -64,6 +63,7 @@ lean_object* l_Array_iterateMAux___main___at_Lean_Elab_Command_elabDefLike___spe lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(lean_object*); lean_object* l_Lean_Elab_Command_DefKind_isTheorem___boxed(lean_object*); +lean_object* l_Lean_Elab_Command_expandDeclId(lean_object*); extern lean_object* l_Lean_Parser_Command_declValSimple___elambda__1___closed__2; lean_object* l_Lean_Expr_fvarId_x21(lean_object*); lean_object* l_Lean_Elab_Command_mkDef___lambda__1___closed__2; @@ -4532,581 +4532,587 @@ return x_11; lean_object* l_Lean_Elab_Command_elabDefLike(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_4 = lean_ctor_get(x_1, 0); lean_inc(x_4); x_5 = lean_ctor_get(x_1, 2); lean_inc(x_5); -x_6 = lean_unsigned_to_nat(0u); -x_7 = l_Lean_Syntax_getIdAt(x_5, x_6); -x_8 = lean_unsigned_to_nat(1u); -x_9 = l_Lean_Syntax_getArg(x_5, x_8); +x_6 = l_Lean_Elab_Command_expandDeclId(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); lean_inc(x_2); -x_10 = l_Lean_Elab_Command_getLevelNames(x_2, x_3); -if (lean_obj_tag(x_10) == 0) +x_9 = l_Lean_Elab_Command_getLevelNames(x_2, x_3); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_386; -x_11 = lean_ctor_get(x_10, 0); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_389; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -x_386 = l_Lean_Syntax_isNone(x_9); -if (x_386 == 0) -{ -lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; -x_387 = l_Lean_Syntax_getArg(x_9, x_8); lean_dec(x_9); -x_388 = l_Lean_Syntax_getArgs(x_387); -lean_dec(x_387); -x_389 = lean_unsigned_to_nat(2u); -x_390 = l_Array_empty___closed__1; -x_391 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_389, x_388, x_6, x_390); -lean_dec(x_388); -lean_inc(x_2); -lean_inc(x_11); -x_392 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabDefLike___spec__5(x_1, x_391, x_6, x_11, x_2, x_12); -lean_dec(x_391); -if (lean_obj_tag(x_392) == 0) +x_389 = l_Lean_Syntax_isNone(x_8); +if (x_389 == 0) { -lean_object* x_393; lean_object* x_394; -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_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; +x_390 = lean_unsigned_to_nat(1u); +x_391 = l_Lean_Syntax_getArg(x_8, x_390); +x_392 = l_Lean_Syntax_getArgs(x_391); +lean_dec(x_391); +x_393 = lean_unsigned_to_nat(2u); +x_394 = lean_unsigned_to_nat(0u); +x_395 = l_Array_empty___closed__1; +x_396 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_393, x_392, x_394, x_395); lean_dec(x_392); -x_13 = x_393; -x_14 = x_394; -goto block_385; +lean_inc(x_2); +lean_inc(x_10); +x_397 = l_Array_iterateMAux___main___at_Lean_Elab_Command_elabDefLike___spec__5(x_8, x_396, x_394, x_10, x_2, x_11); +lean_dec(x_396); +lean_dec(x_8); +if (lean_obj_tag(x_397) == 0) +{ +lean_object* x_398; lean_object* x_399; +x_398 = lean_ctor_get(x_397, 0); +lean_inc(x_398); +x_399 = lean_ctor_get(x_397, 1); +lean_inc(x_399); +lean_dec(x_397); +x_12 = x_398; +x_13 = x_399; +goto block_388; } else { -uint8_t x_395; -lean_dec(x_11); +uint8_t x_400; +lean_dec(x_10); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_395 = !lean_is_exclusive(x_392); -if (x_395 == 0) +x_400 = !lean_is_exclusive(x_397); +if (x_400 == 0) { -return x_392; +return x_397; } else { -lean_object* x_396; lean_object* x_397; lean_object* x_398; -x_396 = lean_ctor_get(x_392, 0); -x_397 = lean_ctor_get(x_392, 1); -lean_inc(x_397); -lean_inc(x_396); -lean_dec(x_392); -x_398 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_398, 0, x_396); -lean_ctor_set(x_398, 1, x_397); -return x_398; +lean_object* x_401; lean_object* x_402; lean_object* x_403; +x_401 = lean_ctor_get(x_397, 0); +x_402 = lean_ctor_get(x_397, 1); +lean_inc(x_402); +lean_inc(x_401); +lean_dec(x_397); +x_403 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_403, 0, x_401); +lean_ctor_set(x_403, 1, x_402); +return x_403; } } } else { -lean_dec(x_9); -lean_inc(x_11); +lean_dec(x_8); +lean_inc(x_10); +x_12 = x_10; x_13 = x_11; -x_14 = x_12; -goto block_385; +goto block_388; } -block_385: +block_388: { -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); -if (lean_obj_tag(x_16) == 1) +lean_object* x_14; lean_object* x_15; +x_14 = l_Lean_extractMacroScopes(x_7); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +if (lean_obj_tag(x_15) == 1) { -uint8_t x_17; -x_17 = !lean_is_exclusive(x_15); -if (x_17 == 0) +uint8_t x_16; +x_16 = !lean_is_exclusive(x_14); +if (x_16 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; +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_14, 0); +lean_dec(x_17); x_18 = lean_ctor_get(x_15, 0); -lean_dec(x_18); -x_19 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_15, 1); lean_inc(x_19); -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_dec(x_16); -x_21 = lean_box(0); -x_22 = lean_name_mk_string(x_21, x_20); -lean_ctor_set(x_15, 0, x_22); -x_23 = l_Lean_MacroScopesView_review(x_15); -x_24 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; -x_25 = 1; +lean_dec(x_15); +x_20 = lean_box(0); +x_21 = lean_name_mk_string(x_20, x_19); +lean_ctor_set(x_14, 0, x_21); +x_22 = l_Lean_MacroScopesView_review(x_14); +x_23 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; +x_24 = 1; lean_inc(x_2); -lean_inc(x_19); -x_26 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_5, x_24, x_25, x_19, x_2, x_14); +lean_inc(x_18); +x_25 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_5, x_23, x_24, x_18, x_2, x_13); lean_dec(x_5); -if (lean_obj_tag(x_26) == 0) +if (lean_obj_tag(x_25) == 0) { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_26, 1); -lean_inc(x_27); -lean_dec(x_26); +lean_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_28 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__1(x_13, x_2, x_27); -if (lean_obj_tag(x_28) == 0) +x_27 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__1(x_12, x_2, x_26); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_82; lean_object* x_83; lean_object* x_94; lean_object* x_95; -x_29 = lean_ctor_get(x_28, 1); -lean_inc(x_29); -lean_dec(x_28); -x_94 = lean_ctor_get(x_1, 1); -lean_inc(x_94); +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_inc(x_2); -x_95 = l_Lean_Elab_Command_mkDeclName(x_94, x_23, x_2, x_29); -if (lean_obj_tag(x_95) == 0) +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_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_123; lean_object* x_124; -x_96 = lean_ctor_get(x_95, 0); +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_123; lean_object* x_124; lean_object* x_125; +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); lean_inc(x_96); -x_97 = lean_ctor_get(x_95, 1); -lean_inc(x_97); -lean_dec(x_95); -x_98 = lean_ctor_get(x_94, 1); -lean_inc(x_98); lean_dec(x_94); +x_97 = lean_ctor_get(x_93, 1); +lean_inc(x_97); +lean_dec(x_93); x_123 = 2; +x_124 = lean_unsigned_to_nat(0u); lean_inc(x_2); -lean_inc(x_96); -x_124 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_96, x_123, x_98, x_6, x_2, x_97); -if (lean_obj_tag(x_124) == 0) +lean_inc(x_95); +x_125 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_95, x_123, x_97, x_124, x_2, x_96); +if (lean_obj_tag(x_125) == 0) { -lean_object* x_125; lean_object* x_126; -x_125 = lean_ctor_get(x_124, 1); -lean_inc(x_125); -lean_dec(x_124); +lean_object* x_126; lean_object* x_127; +x_126 = lean_ctor_get(x_125, 1); +lean_inc(x_126); +lean_dec(x_125); lean_inc(x_2); -x_126 = l_Lean_Elab_Command_getLevelNames(x_2, x_125); -if (lean_obj_tag(x_126) == 0) +x_127 = l_Lean_Elab_Command_getLevelNames(x_2, x_126); +if (lean_obj_tag(x_127) == 0) { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_127 = lean_ctor_get(x_126, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_126, 1); +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; +x_128 = lean_ctor_get(x_127, 0); lean_inc(x_128); -lean_dec(x_126); -lean_inc(x_96); -x_129 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_129, 0, x_96); +x_129 = lean_ctor_get(x_127, 1); +lean_inc(x_129); +lean_dec(x_127); +lean_inc(x_95); +x_130 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_130, 0, x_95); lean_inc(x_4); -lean_inc(x_96); -x_130 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__3), 7, 4); -lean_closure_set(x_130, 0, x_1); -lean_closure_set(x_130, 1, x_96); -lean_closure_set(x_130, 2, x_127); -lean_closure_set(x_130, 3, x_4); +lean_inc(x_95); +x_131 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__3), 7, 4); +lean_closure_set(x_131, 0, x_1); +lean_closure_set(x_131, 1, x_95); +lean_closure_set(x_131, 2, x_128); +lean_closure_set(x_131, 3, x_4); lean_inc(x_2); -x_131 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_128); -if (lean_obj_tag(x_131) == 0) +x_132 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_129); +if (lean_obj_tag(x_132) == 0) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); +lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; +x_133 = lean_ctor_get(x_132, 0); lean_inc(x_133); -lean_dec(x_131); -x_134 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_132); -x_135 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_132, x_129); -x_136 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_132); +x_134 = lean_ctor_get(x_132, 1); +lean_inc(x_134); lean_dec(x_132); -x_137 = l_Lean_Elab_Term_elabBinders___rarg(x_134, x_130, x_135, x_136); -lean_dec(x_134); -if (lean_obj_tag(x_137) == 0) +x_135 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_133); +x_136 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_133, x_130); +x_137 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_133); +lean_dec(x_133); +x_138 = l_Lean_Elab_Term_elabBinders___rarg(x_135, x_131, x_136, x_137); +lean_dec(x_135); +if (lean_obj_tag(x_138) == 0) { -lean_object* x_138; lean_object* x_139; lean_object* x_140; -x_138 = lean_ctor_get(x_137, 0); -lean_inc(x_138); -x_139 = lean_ctor_get(x_137, 1); +lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_139 = lean_ctor_get(x_138, 0); lean_inc(x_139); -lean_dec(x_137); +x_140 = lean_ctor_get(x_138, 1); +lean_inc(x_140); +lean_dec(x_138); lean_inc(x_2); -x_140 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_133); -if (lean_obj_tag(x_140) == 0) +x_141 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_134); +if (lean_obj_tag(x_141) == 0) { -lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; uint8_t x_146; -x_141 = lean_ctor_get(x_139, 0); -lean_inc(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; x_142 = lean_ctor_get(x_140, 0); lean_inc(x_142); -x_143 = lean_ctor_get(x_140, 1); +x_143 = lean_ctor_get(x_141, 0); lean_inc(x_143); -lean_dec(x_140); -x_144 = lean_ctor_get(x_141, 0); +x_144 = lean_ctor_get(x_141, 1); lean_inc(x_144); lean_dec(x_141); -x_145 = lean_ctor_get(x_139, 2); +x_145 = lean_ctor_get(x_142, 0); lean_inc(x_145); -lean_dec(x_139); -x_146 = !lean_is_exclusive(x_142); -if (x_146 == 0) +lean_dec(x_142); +x_146 = lean_ctor_get(x_140, 2); +lean_inc(x_146); +lean_dec(x_140); +x_147 = !lean_is_exclusive(x_143); +if (x_147 == 0) { -lean_object* x_147; lean_object* x_148; lean_object* x_149; -x_147 = lean_ctor_get(x_142, 1); -lean_dec(x_147); -x_148 = lean_ctor_get(x_142, 0); +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_143, 1); lean_dec(x_148); -lean_ctor_set(x_142, 1, x_145); -lean_ctor_set(x_142, 0, x_144); -lean_inc(x_2); -x_149 = l___private_Init_Lean_Elab_Command_3__setState(x_142, x_2, x_143); -if (lean_obj_tag(x_149) == 0) -{ -lean_object* x_150; -x_150 = lean_ctor_get(x_149, 1); -lean_inc(x_150); +x_149 = lean_ctor_get(x_143, 0); lean_dec(x_149); -x_99 = x_138; -x_100 = x_150; +lean_ctor_set(x_143, 1, x_146); +lean_ctor_set(x_143, 0, x_145); +lean_inc(x_2); +x_150 = l___private_Init_Lean_Elab_Command_3__setState(x_143, x_2, x_144); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +lean_dec(x_150); +x_98 = x_139; +x_99 = x_151; goto block_122; } else { -lean_object* x_151; lean_object* x_152; -lean_dec(x_138); -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); +lean_object* x_152; lean_object* x_153; +lean_dec(x_139); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); -x_151 = lean_ctor_get(x_149, 0); -lean_inc(x_151); -x_152 = lean_ctor_get(x_149, 1); +x_152 = lean_ctor_get(x_150, 0); lean_inc(x_152); -lean_dec(x_149); -x_82 = x_151; -x_83 = x_152; -goto block_93; +x_153 = lean_ctor_get(x_150, 1); +lean_inc(x_153); +lean_dec(x_150); +x_81 = x_152; +x_82 = x_153; +goto block_92; } } else { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; -x_153 = lean_ctor_get(x_142, 2); -x_154 = lean_ctor_get(x_142, 3); -x_155 = lean_ctor_get(x_142, 4); +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_154 = lean_ctor_get(x_143, 2); +x_155 = lean_ctor_get(x_143, 3); +x_156 = lean_ctor_get(x_143, 4); +lean_inc(x_156); lean_inc(x_155); lean_inc(x_154); -lean_inc(x_153); -lean_dec(x_142); -x_156 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_156, 0, x_144); -lean_ctor_set(x_156, 1, x_145); -lean_ctor_set(x_156, 2, x_153); -lean_ctor_set(x_156, 3, x_154); -lean_ctor_set(x_156, 4, x_155); +lean_dec(x_143); +x_157 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_157, 0, x_145); +lean_ctor_set(x_157, 1, x_146); +lean_ctor_set(x_157, 2, x_154); +lean_ctor_set(x_157, 3, x_155); +lean_ctor_set(x_157, 4, x_156); lean_inc(x_2); -x_157 = l___private_Init_Lean_Elab_Command_3__setState(x_156, x_2, x_143); -if (lean_obj_tag(x_157) == 0) +x_158 = l___private_Init_Lean_Elab_Command_3__setState(x_157, x_2, x_144); +if (lean_obj_tag(x_158) == 0) { -lean_object* x_158; -x_158 = lean_ctor_get(x_157, 1); -lean_inc(x_158); -lean_dec(x_157); -x_99 = x_138; -x_100 = x_158; +lean_object* x_159; +x_159 = lean_ctor_get(x_158, 1); +lean_inc(x_159); +lean_dec(x_158); +x_98 = x_139; +x_99 = x_159; goto block_122; } else { -lean_object* x_159; lean_object* x_160; -lean_dec(x_138); -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); -lean_dec(x_4); -x_159 = lean_ctor_get(x_157, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_157, 1); -lean_inc(x_160); -lean_dec(x_157); -x_82 = x_159; -x_83 = x_160; -goto block_93; -} -} -} -else -{ -lean_object* x_161; lean_object* x_162; +lean_object* x_160; lean_object* x_161; lean_dec(x_139); -lean_dec(x_138); -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); -x_161 = lean_ctor_get(x_140, 0); +x_160 = lean_ctor_get(x_158, 0); +lean_inc(x_160); +x_161 = lean_ctor_get(x_158, 1); lean_inc(x_161); -x_162 = lean_ctor_get(x_140, 1); -lean_inc(x_162); -lean_dec(x_140); +lean_dec(x_158); +x_81 = x_160; x_82 = x_161; -x_83 = x_162; -goto block_93; +goto block_92; +} } } else { -lean_object* x_163; -x_163 = lean_ctor_get(x_137, 0); -lean_inc(x_163); -if (lean_obj_tag(x_163) == 0) -{ -lean_object* x_164; lean_object* x_165; lean_object* x_166; -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); +lean_object* x_162; lean_object* x_163; +lean_dec(x_140); +lean_dec(x_139); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); -x_164 = lean_ctor_get(x_137, 1); -lean_inc(x_164); -lean_dec(x_137); -x_165 = lean_ctor_get(x_163, 0); -lean_inc(x_165); -lean_dec(x_163); -lean_inc(x_2); -x_166 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_133); -if (lean_obj_tag(x_166) == 0) +x_162 = lean_ctor_get(x_141, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_141, 1); +lean_inc(x_163); +lean_dec(x_141); +x_81 = x_162; +x_82 = x_163; +goto block_92; +} +} +else { -lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; -x_167 = lean_ctor_get(x_164, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_166, 0); +lean_object* x_164; +x_164 = lean_ctor_get(x_138, 0); +lean_inc(x_164); +if (lean_obj_tag(x_164) == 0) +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +x_165 = lean_ctor_get(x_138, 1); +lean_inc(x_165); +lean_dec(x_138); +x_166 = lean_ctor_get(x_164, 0); +lean_inc(x_166); +lean_dec(x_164); +lean_inc(x_2); +x_167 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_134); +if (lean_obj_tag(x_167) == 0) +{ +lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; +x_168 = lean_ctor_get(x_165, 0); lean_inc(x_168); -x_169 = lean_ctor_get(x_166, 1); +x_169 = lean_ctor_get(x_167, 0); lean_inc(x_169); -lean_dec(x_166); -x_170 = lean_ctor_get(x_167, 0); +x_170 = lean_ctor_get(x_167, 1); lean_inc(x_170); lean_dec(x_167); -x_171 = lean_ctor_get(x_164, 2); +x_171 = lean_ctor_get(x_168, 0); lean_inc(x_171); -lean_dec(x_164); -x_172 = !lean_is_exclusive(x_168); -if (x_172 == 0) -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_168, 1); -lean_dec(x_173); -x_174 = lean_ctor_get(x_168, 0); -lean_dec(x_174); -lean_ctor_set(x_168, 1, x_171); -lean_ctor_set(x_168, 0, x_170); -lean_inc(x_2); -x_175 = l___private_Init_Lean_Elab_Command_3__setState(x_168, x_2, x_169); -if (lean_obj_tag(x_175) == 0) -{ -lean_object* x_176; -x_176 = lean_ctor_get(x_175, 1); -lean_inc(x_176); -lean_dec(x_175); -x_82 = x_165; -x_83 = x_176; -goto block_93; -} -else -{ -lean_object* x_177; lean_object* x_178; +lean_dec(x_168); +x_172 = lean_ctor_get(x_165, 2); +lean_inc(x_172); lean_dec(x_165); -x_177 = lean_ctor_get(x_175, 0); -lean_inc(x_177); -x_178 = lean_ctor_get(x_175, 1); -lean_inc(x_178); +x_173 = !lean_is_exclusive(x_169); +if (x_173 == 0) +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_169, 1); +lean_dec(x_174); +x_175 = lean_ctor_get(x_169, 0); lean_dec(x_175); +lean_ctor_set(x_169, 1, x_172); +lean_ctor_set(x_169, 0, x_171); +lean_inc(x_2); +x_176 = l___private_Init_Lean_Elab_Command_3__setState(x_169, x_2, x_170); +if (lean_obj_tag(x_176) == 0) +{ +lean_object* x_177; +x_177 = lean_ctor_get(x_176, 1); +lean_inc(x_177); +lean_dec(x_176); +x_81 = x_166; x_82 = x_177; -x_83 = x_178; -goto block_93; +goto block_92; +} +else +{ +lean_object* x_178; lean_object* x_179; +lean_dec(x_166); +x_178 = lean_ctor_get(x_176, 0); +lean_inc(x_178); +x_179 = lean_ctor_get(x_176, 1); +lean_inc(x_179); +lean_dec(x_176); +x_81 = x_178; +x_82 = x_179; +goto block_92; } } else { -lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; -x_179 = lean_ctor_get(x_168, 2); -x_180 = lean_ctor_get(x_168, 3); -x_181 = lean_ctor_get(x_168, 4); +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; +x_180 = lean_ctor_get(x_169, 2); +x_181 = lean_ctor_get(x_169, 3); +x_182 = lean_ctor_get(x_169, 4); +lean_inc(x_182); lean_inc(x_181); lean_inc(x_180); -lean_inc(x_179); -lean_dec(x_168); -x_182 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_182, 0, x_170); -lean_ctor_set(x_182, 1, x_171); -lean_ctor_set(x_182, 2, x_179); -lean_ctor_set(x_182, 3, x_180); -lean_ctor_set(x_182, 4, x_181); +lean_dec(x_169); +x_183 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_183, 0, x_171); +lean_ctor_set(x_183, 1, x_172); +lean_ctor_set(x_183, 2, x_180); +lean_ctor_set(x_183, 3, x_181); +lean_ctor_set(x_183, 4, x_182); lean_inc(x_2); -x_183 = l___private_Init_Lean_Elab_Command_3__setState(x_182, x_2, x_169); -if (lean_obj_tag(x_183) == 0) +x_184 = l___private_Init_Lean_Elab_Command_3__setState(x_183, x_2, x_170); +if (lean_obj_tag(x_184) == 0) { -lean_object* x_184; -x_184 = lean_ctor_get(x_183, 1); -lean_inc(x_184); -lean_dec(x_183); -x_82 = x_165; -x_83 = x_184; -goto block_93; -} -else -{ -lean_object* x_185; lean_object* x_186; -lean_dec(x_165); -x_185 = lean_ctor_get(x_183, 0); +lean_object* x_185; +x_185 = lean_ctor_get(x_184, 1); lean_inc(x_185); -x_186 = lean_ctor_get(x_183, 1); -lean_inc(x_186); -lean_dec(x_183); +lean_dec(x_184); +x_81 = x_166; x_82 = x_185; -x_83 = x_186; -goto block_93; -} -} +goto block_92; } else { -lean_object* x_187; lean_object* x_188; -lean_dec(x_165); -lean_dec(x_164); -x_187 = lean_ctor_get(x_166, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_166, 1); -lean_inc(x_188); +lean_object* x_186; lean_object* x_187; lean_dec(x_166); +x_186 = lean_ctor_get(x_184, 0); +lean_inc(x_186); +x_187 = lean_ctor_get(x_184, 1); +lean_inc(x_187); +lean_dec(x_184); +x_81 = x_186; x_82 = x_187; -x_83 = x_188; -goto block_93; +goto block_92; +} } } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_137); -x_189 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_190 = l_unreachable_x21___rarg(x_189); -lean_inc(x_2); -x_191 = lean_apply_2(x_190, x_2, x_133); -if (lean_obj_tag(x_191) == 0) +lean_object* x_188; lean_object* x_189; +lean_dec(x_166); +lean_dec(x_165); +x_188 = lean_ctor_get(x_167, 0); +lean_inc(x_188); +x_189 = lean_ctor_get(x_167, 1); +lean_inc(x_189); +lean_dec(x_167); +x_81 = x_188; +x_82 = x_189; +goto block_92; +} +} +else { -lean_object* x_192; lean_object* x_193; -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); +lean_object* x_190; lean_object* x_191; lean_object* x_192; +lean_dec(x_138); +x_190 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; +x_191 = l_unreachable_x21___rarg(x_190); +lean_inc(x_2); +x_192 = lean_apply_2(x_191, x_2, x_134); +if (lean_obj_tag(x_192) == 0) +{ +lean_object* x_193; lean_object* x_194; +x_193 = lean_ctor_get(x_192, 0); lean_inc(x_193); -lean_dec(x_191); -x_99 = x_192; -x_100 = x_193; +x_194 = lean_ctor_get(x_192, 1); +lean_inc(x_194); +lean_dec(x_192); +x_98 = x_193; +x_99 = x_194; goto block_122; } else { -lean_object* x_194; lean_object* x_195; -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); +lean_object* x_195; lean_object* x_196; +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); -x_194 = lean_ctor_get(x_191, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_191, 1); +x_195 = lean_ctor_get(x_192, 0); lean_inc(x_195); -lean_dec(x_191); -x_82 = x_194; -x_83 = x_195; -goto block_93; -} -} -} -} -else -{ -lean_object* x_196; lean_object* x_197; -lean_dec(x_130); -lean_dec(x_129); -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); -lean_dec(x_4); -x_196 = lean_ctor_get(x_131, 0); +x_196 = lean_ctor_get(x_192, 1); lean_inc(x_196); -x_197 = lean_ctor_get(x_131, 1); -lean_inc(x_197); -lean_dec(x_131); +lean_dec(x_192); +x_81 = x_195; x_82 = x_196; -x_83 = x_197; -goto block_93; +goto block_92; +} +} } } else { -lean_object* x_198; lean_object* x_199; -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); +lean_object* x_197; lean_object* x_198; +lean_dec(x_131); +lean_dec(x_130); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); -lean_dec(x_1); -x_198 = lean_ctor_get(x_126, 0); +x_197 = lean_ctor_get(x_132, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_132, 1); lean_inc(x_198); -x_199 = lean_ctor_get(x_126, 1); -lean_inc(x_199); -lean_dec(x_126); +lean_dec(x_132); +x_81 = x_197; x_82 = x_198; -x_83 = x_199; -goto block_93; +goto block_92; } } else { -lean_object* x_200; lean_object* x_201; -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); +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_200 = lean_ctor_get(x_124, 0); +x_199 = lean_ctor_get(x_127, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_127, 1); lean_inc(x_200); -x_201 = lean_ctor_get(x_124, 1); -lean_inc(x_201); -lean_dec(x_124); +lean_dec(x_127); +x_81 = x_199; x_82 = x_200; -x_83 = x_201; -goto block_93; +goto block_92; +} +} +else +{ +lean_object* x_201; lean_object* x_202; +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); +lean_dec(x_4); +lean_dec(x_1); +x_201 = lean_ctor_get(x_125, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_125, 1); +lean_inc(x_202); +lean_dec(x_125); +x_81 = x_201; +x_82 = x_202; +goto block_92; } block_122: { -if (lean_obj_tag(x_99) == 0) +if (lean_obj_tag(x_98) == 0) { -lean_object* x_101; -lean_dec(x_98); -lean_dec(x_96); +lean_object* x_100; +lean_dec(x_97); +lean_dec(x_95); lean_dec(x_4); -x_101 = lean_box(0); -x_30 = x_101; -x_31 = x_100; -goto block_81; +x_100 = lean_box(0); +x_29 = x_100; +x_30 = x_99; +goto block_80; } else { -lean_object* x_102; lean_object* x_103; -x_102 = lean_ctor_get(x_99, 0); -lean_inc(x_102); -lean_dec(x_99); +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_103 = l_Lean_Elab_Command_addDecl(x_4, x_102, x_2, x_100); -if (lean_obj_tag(x_103) == 0) +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_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 = 0; +lean_object* x_103; uint8_t x_104; lean_object* x_105; lean_object* x_106; +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +lean_dec(x_102); +x_104 = 0; +x_105 = lean_unsigned_to_nat(0u); lean_inc(x_2); -lean_inc(x_96); -x_106 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_96, x_105, x_98, x_6, x_2, x_104); +lean_inc(x_95); +x_106 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_95, x_104, x_97, x_105, x_2, x_103); if (lean_obj_tag(x_106) == 0) { lean_object* x_107; lean_object* x_108; @@ -5114,8 +5120,8 @@ x_107 = lean_ctor_get(x_106, 1); lean_inc(x_107); lean_dec(x_106); lean_inc(x_2); -x_108 = l_Lean_Elab_Command_compileDecl(x_4, x_102, x_2, x_107); -lean_dec(x_102); +x_108 = l_Lean_Elab_Command_compileDecl(x_4, x_101, x_2, x_107); +lean_dec(x_101); if (lean_obj_tag(x_108) == 0) { lean_object* x_109; uint8_t x_110; lean_object* x_111; @@ -5124,8 +5130,8 @@ lean_inc(x_109); lean_dec(x_108); x_110 = 1; lean_inc(x_2); -x_111 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_96, x_110, x_98, x_6, x_2, x_109); -lean_dec(x_98); +x_111 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_95, x_110, x_97, x_105, x_2, x_109); +lean_dec(x_97); lean_dec(x_4); if (lean_obj_tag(x_111) == 0) { @@ -5135,1358 +5141,1360 @@ lean_inc(x_112); x_113 = lean_ctor_get(x_111, 1); lean_inc(x_113); lean_dec(x_111); -x_30 = x_112; -x_31 = x_113; -goto block_81; +x_29 = x_112; +x_30 = x_113; +goto block_80; } else { lean_object* x_114; lean_object* x_115; -lean_dec(x_19); +lean_dec(x_18); x_114 = lean_ctor_get(x_111, 0); lean_inc(x_114); x_115 = lean_ctor_get(x_111, 1); lean_inc(x_115); lean_dec(x_111); -x_82 = x_114; -x_83 = x_115; -goto block_93; +x_81 = x_114; +x_82 = x_115; +goto block_92; } } else { lean_object* x_116; lean_object* x_117; -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); x_116 = lean_ctor_get(x_108, 0); lean_inc(x_116); x_117 = lean_ctor_get(x_108, 1); lean_inc(x_117); lean_dec(x_108); -x_82 = x_116; -x_83 = x_117; -goto block_93; +x_81 = x_116; +x_82 = x_117; +goto block_92; } } else { lean_object* x_118; lean_object* x_119; -lean_dec(x_102); -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); +lean_dec(x_101); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); x_118 = lean_ctor_get(x_106, 0); lean_inc(x_118); x_119 = lean_ctor_get(x_106, 1); lean_inc(x_119); lean_dec(x_106); -x_82 = x_118; -x_83 = x_119; -goto block_93; +x_81 = x_118; +x_82 = x_119; +goto block_92; } } else { lean_object* x_120; lean_object* x_121; -lean_dec(x_102); -lean_dec(x_98); -lean_dec(x_96); -lean_dec(x_19); +lean_dec(x_101); +lean_dec(x_97); +lean_dec(x_95); +lean_dec(x_18); lean_dec(x_4); -x_120 = lean_ctor_get(x_103, 0); +x_120 = lean_ctor_get(x_102, 0); lean_inc(x_120); -x_121 = lean_ctor_get(x_103, 1); +x_121 = lean_ctor_get(x_102, 1); lean_inc(x_121); -lean_dec(x_103); -x_82 = x_120; -x_83 = x_121; -goto block_93; +lean_dec(x_102); +x_81 = x_120; +x_82 = x_121; +goto block_92; } } } } else { -lean_object* x_202; lean_object* x_203; -lean_dec(x_94); -lean_dec(x_19); +lean_object* x_203; lean_object* x_204; +lean_dec(x_93); +lean_dec(x_18); lean_dec(x_4); lean_dec(x_1); -x_202 = lean_ctor_get(x_95, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_95, 1); +x_203 = lean_ctor_get(x_94, 0); lean_inc(x_203); -lean_dec(x_95); -x_82 = x_202; -x_83 = x_203; -goto block_93; +x_204 = lean_ctor_get(x_94, 1); +lean_inc(x_204); +lean_dec(x_94); +x_81 = x_203; +x_82 = x_204; +goto block_92; } -block_81: +block_80: { -lean_object* x_32; +lean_object* x_31; lean_inc(x_2); -lean_inc(x_11); -x_32 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__2(x_11, x_2, x_31); -if (lean_obj_tag(x_32) == 0) +lean_inc(x_10); +x_31 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__2(x_10, x_2, x_30); +if (lean_obj_tag(x_31) == 0) { -lean_object* x_33; lean_object* x_34; -lean_dec(x_11); -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); +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_2); -x_34 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_33); -if (lean_obj_tag(x_34) == 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_35; lean_object* x_36; uint8_t x_37; -x_35 = lean_ctor_get(x_34, 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); -x_36 = lean_ctor_get(x_34, 1); -lean_inc(x_36); -lean_dec(x_34); -x_37 = !lean_is_exclusive(x_35); -if (x_37 == 0) +lean_dec(x_33); +x_36 = !lean_is_exclusive(x_34); +if (x_36 == 0) { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_38 = lean_ctor_get(x_35, 2); -x_39 = l_Lean_Name_getNumParts___main(x_19); -lean_dec(x_19); -x_40 = l_List_drop___main___rarg(x_39, x_38); -lean_dec(x_38); -lean_ctor_set(x_35, 2, x_40); -x_41 = l___private_Init_Lean_Elab_Command_3__setState(x_35, x_2, x_36); -if (lean_obj_tag(x_41) == 0) +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_42; -x_42 = !lean_is_exclusive(x_41); -if (x_42 == 0) +uint8_t x_41; +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) { -lean_object* x_43; -x_43 = lean_ctor_get(x_41, 0); -lean_dec(x_43); -lean_ctor_set(x_41, 0, x_30); -return x_41; +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_44; lean_object* x_45; -x_44 = lean_ctor_get(x_41, 1); -lean_inc(x_44); -lean_dec(x_41); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_30); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +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_46; -lean_dec(x_30); -x_46 = !lean_is_exclusive(x_41); -if (x_46 == 0) +uint8_t x_45; +lean_dec(x_29); +x_45 = !lean_is_exclusive(x_40); +if (x_45 == 0) { -return x_41; +return x_40; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_41, 0); -x_48 = lean_ctor_get(x_41, 1); -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_dec(x_41); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +lean_inc(x_46); +lean_dec(x_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; } } } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_50 = lean_ctor_get(x_35, 0); -x_51 = lean_ctor_get(x_35, 1); -x_52 = lean_ctor_get(x_35, 2); -x_53 = lean_ctor_get(x_35, 3); -x_54 = lean_ctor_get(x_35, 4); -lean_inc(x_54); +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_dec(x_35); -x_55 = l_Lean_Name_getNumParts___main(x_19); -lean_dec(x_19); -x_56 = l_List_drop___main___rarg(x_55, x_52); -lean_dec(x_52); -x_57 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_57, 0, x_50); -lean_ctor_set(x_57, 1, x_51); -lean_ctor_set(x_57, 2, x_56); -lean_ctor_set(x_57, 3, x_53); -lean_ctor_set(x_57, 4, x_54); -x_58 = l___private_Init_Lean_Elab_Command_3__setState(x_57, x_2, x_36); -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, 1); -lean_inc(x_59); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_60 = x_58; -} else { - lean_dec_ref(x_58); - x_60 = lean_box(0); -} -if (lean_is_scalar(x_60)) { - x_61 = lean_alloc_ctor(0, 2, 0); -} else { - x_61 = x_60; -} -lean_ctor_set(x_61, 0, x_30); -lean_ctor_set(x_61, 1, x_59); -return x_61; -} -else -{ -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -lean_dec(x_30); -x_62 = lean_ctor_get(x_58, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_58, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - x_64 = x_58; -} else { - lean_dec_ref(x_58); - x_64 = lean_box(0); -} -if (lean_is_scalar(x_64)) { - x_65 = lean_alloc_ctor(1, 2, 0); -} else { - x_65 = x_64; -} -lean_ctor_set(x_65, 0, x_62); -lean_ctor_set(x_65, 1, x_63); -return x_65; -} -} -} -else -{ -uint8_t x_66; -lean_dec(x_30); -lean_dec(x_19); -lean_dec(x_2); -x_66 = !lean_is_exclusive(x_34); -if (x_66 == 0) -{ -return x_34; -} -else -{ -lean_object* x_67; lean_object* x_68; lean_object* x_69; -x_67 = lean_ctor_get(x_34, 0); -x_68 = lean_ctor_get(x_34, 1); -lean_inc(x_68); -lean_inc(x_67); +lean_inc(x_49); lean_dec(x_34); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -return x_69; +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_57)) { + lean_ctor_release(x_57, 0); + lean_ctor_release(x_57, 1); + x_59 = x_57; +} else { + lean_dec_ref(x_57); + x_59 = lean_box(0); +} +if (lean_is_scalar(x_59)) { + x_60 = lean_alloc_ctor(0, 2, 0); +} else { + x_60 = x_59; +} +lean_ctor_set(x_60, 0, x_29); +lean_ctor_set(x_60, 1, x_58); +return x_60; +} +else +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; +lean_dec(x_29); +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_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_30); -lean_dec(x_19); -x_70 = lean_ctor_get(x_32, 0); +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_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_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); -x_71 = lean_ctor_get(x_32, 1); -lean_inc(x_71); -lean_dec(x_32); -x_72 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__3(x_11, x_2, x_71); -if (lean_obj_tag(x_72) == 0) +lean_dec(x_31); +x_71 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__3(x_10, x_2, x_70); +if (lean_obj_tag(x_71) == 0) { -uint8_t x_73; -x_73 = !lean_is_exclusive(x_72); -if (x_73 == 0) +uint8_t x_72; +x_72 = !lean_is_exclusive(x_71); +if (x_72 == 0) { -lean_object* x_74; -x_74 = lean_ctor_get(x_72, 0); -lean_dec(x_74); -lean_ctor_set_tag(x_72, 1); -lean_ctor_set(x_72, 0, x_70); -return x_72; +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_75; lean_object* x_76; -x_75 = lean_ctor_get(x_72, 1); -lean_inc(x_75); -lean_dec(x_72); -x_76 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_76, 0, x_70); -lean_ctor_set(x_76, 1, x_75); -return x_76; +lean_object* x_74; lean_object* x_75; +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_dec(x_71); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_69); +lean_ctor_set(x_75, 1, x_74); +return x_75; } } else { -uint8_t x_77; -lean_dec(x_70); -x_77 = !lean_is_exclusive(x_72); -if (x_77 == 0) +uint8_t x_76; +lean_dec(x_69); +x_76 = !lean_is_exclusive(x_71); +if (x_76 == 0) { -return x_72; +return x_71; } else { -lean_object* x_78; lean_object* x_79; lean_object* x_80; -x_78 = lean_ctor_get(x_72, 0); -x_79 = lean_ctor_get(x_72, 1); -lean_inc(x_79); +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_dec(x_72); -x_80 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -return x_80; +lean_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; } } } } -block_93: +block_92: { -lean_object* x_84; -x_84 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__4(x_11, x_2, x_83); -if (lean_obj_tag(x_84) == 0) +lean_object* x_83; +x_83 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__4(x_10, x_2, x_82); +if (lean_obj_tag(x_83) == 0) { -uint8_t x_85; -x_85 = !lean_is_exclusive(x_84); -if (x_85 == 0) +uint8_t x_84; +x_84 = !lean_is_exclusive(x_83); +if (x_84 == 0) { -lean_object* x_86; -x_86 = lean_ctor_get(x_84, 0); -lean_dec(x_86); -lean_ctor_set_tag(x_84, 1); -lean_ctor_set(x_84, 0, x_82); -return x_84; +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_87; lean_object* x_88; -x_87 = lean_ctor_get(x_84, 1); -lean_inc(x_87); -lean_dec(x_84); -x_88 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_88, 0, x_82); -lean_ctor_set(x_88, 1, x_87); -return x_88; +lean_object* x_86; lean_object* x_87; +x_86 = lean_ctor_get(x_83, 1); +lean_inc(x_86); +lean_dec(x_83); +x_87 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_87, 0, x_81); +lean_ctor_set(x_87, 1, x_86); +return x_87; } } else { -uint8_t x_89; -lean_dec(x_82); -x_89 = !lean_is_exclusive(x_84); -if (x_89 == 0) +uint8_t x_88; +lean_dec(x_81); +x_88 = !lean_is_exclusive(x_83); +if (x_88 == 0) { -return x_84; +return x_83; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_84, 0); -x_91 = lean_ctor_get(x_84, 1); -lean_inc(x_91); +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_dec(x_84); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; +lean_inc(x_89); +lean_dec(x_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 { -uint8_t x_204; -lean_dec(x_23); -lean_dec(x_19); -lean_dec(x_11); +uint8_t x_205; +lean_dec(x_22); +lean_dec(x_18); +lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_204 = !lean_is_exclusive(x_28); -if (x_204 == 0) +x_205 = !lean_is_exclusive(x_27); +if (x_205 == 0) { -return x_28; +return x_27; } else { -lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = lean_ctor_get(x_28, 0); -x_206 = lean_ctor_get(x_28, 1); +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_27, 0); +x_207 = lean_ctor_get(x_27, 1); +lean_inc(x_207); lean_inc(x_206); -lean_inc(x_205); -lean_dec(x_28); -x_207 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_207, 0, x_205); -lean_ctor_set(x_207, 1, x_206); -return x_207; +lean_dec(x_27); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +return x_208; } } } else { -uint8_t x_208; -lean_dec(x_23); -lean_dec(x_19); -lean_dec(x_13); -lean_dec(x_11); +uint8_t x_209; +lean_dec(x_22); +lean_dec(x_18); +lean_dec(x_12); +lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_208 = !lean_is_exclusive(x_26); -if (x_208 == 0) +x_209 = !lean_is_exclusive(x_25); +if (x_209 == 0) { -return x_26; +return x_25; } else { -lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_209 = lean_ctor_get(x_26, 0); -x_210 = lean_ctor_get(x_26, 1); +lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_210 = lean_ctor_get(x_25, 0); +x_211 = lean_ctor_get(x_25, 1); +lean_inc(x_211); lean_inc(x_210); -lean_inc(x_209); -lean_dec(x_26); -x_211 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_211, 0, x_209); -lean_ctor_set(x_211, 1, x_210); -return x_211; +lean_dec(x_25); +x_212 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_212, 0, x_210); +lean_ctor_set(x_212, 1, x_211); +return x_212; } } } else { -lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; uint8_t x_222; lean_object* x_223; -x_212 = lean_ctor_get(x_15, 1); -x_213 = lean_ctor_get(x_15, 2); -x_214 = lean_ctor_get(x_15, 3); +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; uint8_t x_223; lean_object* x_224; +x_213 = lean_ctor_get(x_14, 1); +x_214 = lean_ctor_get(x_14, 2); +x_215 = lean_ctor_get(x_14, 3); +lean_inc(x_215); lean_inc(x_214); lean_inc(x_213); -lean_inc(x_212); -lean_dec(x_15); -x_215 = lean_ctor_get(x_16, 0); -lean_inc(x_215); -x_216 = lean_ctor_get(x_16, 1); +lean_dec(x_14); +x_216 = lean_ctor_get(x_15, 0); lean_inc(x_216); -lean_dec(x_16); -x_217 = lean_box(0); -x_218 = lean_name_mk_string(x_217, x_216); -x_219 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_219, 0, x_218); -lean_ctor_set(x_219, 1, x_212); -lean_ctor_set(x_219, 2, x_213); -lean_ctor_set(x_219, 3, x_214); -x_220 = l_Lean_MacroScopesView_review(x_219); -x_221 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; -x_222 = 1; +x_217 = lean_ctor_get(x_15, 1); +lean_inc(x_217); +lean_dec(x_15); +x_218 = lean_box(0); +x_219 = lean_name_mk_string(x_218, x_217); +x_220 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_220, 0, x_219); +lean_ctor_set(x_220, 1, x_213); +lean_ctor_set(x_220, 2, x_214); +lean_ctor_set(x_220, 3, x_215); +x_221 = l_Lean_MacroScopesView_review(x_220); +x_222 = l_Lean_Parser_Command_namespace___elambda__1___closed__1; +x_223 = 1; lean_inc(x_2); -lean_inc(x_215); -x_223 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_5, x_221, x_222, x_215, x_2, x_14); +lean_inc(x_216); +x_224 = l___private_Init_Lean_Elab_Command_12__addScopes___main(x_5, x_222, x_223, x_216, x_2, x_13); lean_dec(x_5); -if (lean_obj_tag(x_223) == 0) +if (lean_obj_tag(x_224) == 0) { -lean_object* x_224; lean_object* x_225; -x_224 = lean_ctor_get(x_223, 1); -lean_inc(x_224); -lean_dec(x_223); +lean_object* x_225; lean_object* x_226; +x_225 = lean_ctor_get(x_224, 1); +lean_inc(x_225); +lean_dec(x_224); lean_inc(x_2); -x_225 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__1(x_13, x_2, x_224); -if (lean_obj_tag(x_225) == 0) +x_226 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__1(x_12, x_2, x_225); +if (lean_obj_tag(x_226) == 0) { -lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_266; lean_object* x_267; lean_object* x_277; lean_object* x_278; -x_226 = lean_ctor_get(x_225, 1); -lean_inc(x_226); -lean_dec(x_225); -x_277 = lean_ctor_get(x_1, 1); -lean_inc(x_277); +lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_267; lean_object* x_268; lean_object* x_278; lean_object* x_279; +x_227 = lean_ctor_get(x_226, 1); +lean_inc(x_227); +lean_dec(x_226); +x_278 = lean_ctor_get(x_1, 1); +lean_inc(x_278); lean_inc(x_2); -x_278 = l_Lean_Elab_Command_mkDeclName(x_277, x_220, x_2, x_226); -if (lean_obj_tag(x_278) == 0) +x_279 = l_Lean_Elab_Command_mkDeclName(x_278, x_221, x_2, x_227); +if (lean_obj_tag(x_279) == 0) { -lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; uint8_t x_306; lean_object* x_307; -x_279 = lean_ctor_get(x_278, 0); -lean_inc(x_279); -x_280 = lean_ctor_get(x_278, 1); +lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_308; lean_object* x_309; lean_object* x_310; +x_280 = lean_ctor_get(x_279, 0); lean_inc(x_280); -lean_dec(x_278); -x_281 = lean_ctor_get(x_277, 1); +x_281 = lean_ctor_get(x_279, 1); lean_inc(x_281); -lean_dec(x_277); -x_306 = 2; +lean_dec(x_279); +x_282 = lean_ctor_get(x_278, 1); +lean_inc(x_282); +lean_dec(x_278); +x_308 = 2; +x_309 = lean_unsigned_to_nat(0u); lean_inc(x_2); -lean_inc(x_279); -x_307 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_279, x_306, x_281, x_6, x_2, x_280); -if (lean_obj_tag(x_307) == 0) +lean_inc(x_280); +x_310 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_280, x_308, x_282, x_309, x_2, x_281); +if (lean_obj_tag(x_310) == 0) { -lean_object* x_308; lean_object* x_309; -x_308 = lean_ctor_get(x_307, 1); -lean_inc(x_308); -lean_dec(x_307); -lean_inc(x_2); -x_309 = l_Lean_Elab_Command_getLevelNames(x_2, x_308); -if (lean_obj_tag(x_309) == 0) -{ -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; -x_310 = lean_ctor_get(x_309, 0); -lean_inc(x_310); -x_311 = lean_ctor_get(x_309, 1); +lean_object* x_311; lean_object* x_312; +x_311 = lean_ctor_get(x_310, 1); lean_inc(x_311); -lean_dec(x_309); -lean_inc(x_279); -x_312 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_312, 0, x_279); +lean_dec(x_310); +lean_inc(x_2); +x_312 = l_Lean_Elab_Command_getLevelNames(x_2, x_311); +if (lean_obj_tag(x_312) == 0) +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; +x_313 = lean_ctor_get(x_312, 0); +lean_inc(x_313); +x_314 = lean_ctor_get(x_312, 1); +lean_inc(x_314); +lean_dec(x_312); +lean_inc(x_280); +x_315 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_315, 0, x_280); lean_inc(x_4); -lean_inc(x_279); -x_313 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__3), 7, 4); -lean_closure_set(x_313, 0, x_1); -lean_closure_set(x_313, 1, x_279); -lean_closure_set(x_313, 2, x_310); -lean_closure_set(x_313, 3, x_4); +lean_inc(x_280); +x_316 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabDefLike___lambda__3), 7, 4); +lean_closure_set(x_316, 0, x_1); +lean_closure_set(x_316, 1, x_280); +lean_closure_set(x_316, 2, x_313); +lean_closure_set(x_316, 3, x_4); lean_inc(x_2); -x_314 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_311); -if (lean_obj_tag(x_314) == 0) +x_317 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_314); +if (lean_obj_tag(x_317) == 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; -x_315 = lean_ctor_get(x_314, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_314, 1); -lean_inc(x_316); -lean_dec(x_314); -x_317 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_315); -x_318 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_315, x_312); -x_319 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_315); -lean_dec(x_315); -x_320 = l_Lean_Elab_Term_elabBinders___rarg(x_317, x_313, x_318, x_319); +lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_318 = lean_ctor_get(x_317, 0); +lean_inc(x_318); +x_319 = lean_ctor_get(x_317, 1); +lean_inc(x_319); lean_dec(x_317); -if (lean_obj_tag(x_320) == 0) -{ -lean_object* x_321; lean_object* x_322; lean_object* x_323; -x_321 = lean_ctor_get(x_320, 0); -lean_inc(x_321); -x_322 = lean_ctor_get(x_320, 1); -lean_inc(x_322); +x_320 = l___private_Init_Lean_Elab_Command_9__getVarDecls(x_318); +x_321 = l___private_Init_Lean_Elab_Command_6__mkTermContext(x_2, x_318, x_315); +x_322 = l___private_Init_Lean_Elab_Command_7__mkTermState(x_318); +lean_dec(x_318); +x_323 = l_Lean_Elab_Term_elabBinders___rarg(x_320, x_316, x_321, x_322); lean_dec(x_320); -lean_inc(x_2); -x_323 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_316); if (lean_obj_tag(x_323) == 0) { -lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; -x_324 = lean_ctor_get(x_322, 0); +lean_object* x_324; lean_object* x_325; lean_object* x_326; +x_324 = lean_ctor_get(x_323, 0); lean_inc(x_324); -x_325 = lean_ctor_get(x_323, 0); +x_325 = lean_ctor_get(x_323, 1); lean_inc(x_325); -x_326 = lean_ctor_get(x_323, 1); -lean_inc(x_326); lean_dec(x_323); -x_327 = lean_ctor_get(x_324, 0); +lean_inc(x_2); +x_326 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_319); +if (lean_obj_tag(x_326) == 0) +{ +lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; +x_327 = lean_ctor_get(x_325, 0); lean_inc(x_327); -lean_dec(x_324); -x_328 = lean_ctor_get(x_322, 2); +x_328 = lean_ctor_get(x_326, 0); lean_inc(x_328); -lean_dec(x_322); -x_329 = lean_ctor_get(x_325, 2); +x_329 = lean_ctor_get(x_326, 1); lean_inc(x_329); -x_330 = lean_ctor_get(x_325, 3); +lean_dec(x_326); +x_330 = lean_ctor_get(x_327, 0); lean_inc(x_330); -x_331 = lean_ctor_get(x_325, 4); +lean_dec(x_327); +x_331 = lean_ctor_get(x_325, 2); lean_inc(x_331); -if (lean_is_exclusive(x_325)) { - lean_ctor_release(x_325, 0); - lean_ctor_release(x_325, 1); - lean_ctor_release(x_325, 2); - lean_ctor_release(x_325, 3); - lean_ctor_release(x_325, 4); - x_332 = x_325; +lean_dec(x_325); +x_332 = lean_ctor_get(x_328, 2); +lean_inc(x_332); +x_333 = lean_ctor_get(x_328, 3); +lean_inc(x_333); +x_334 = lean_ctor_get(x_328, 4); +lean_inc(x_334); +if (lean_is_exclusive(x_328)) { + lean_ctor_release(x_328, 0); + lean_ctor_release(x_328, 1); + lean_ctor_release(x_328, 2); + lean_ctor_release(x_328, 3); + lean_ctor_release(x_328, 4); + x_335 = x_328; } else { - lean_dec_ref(x_325); - x_332 = lean_box(0); + lean_dec_ref(x_328); + x_335 = lean_box(0); } -if (lean_is_scalar(x_332)) { - x_333 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_335)) { + x_336 = lean_alloc_ctor(0, 5, 0); } else { - x_333 = x_332; + x_336 = x_335; } -lean_ctor_set(x_333, 0, x_327); -lean_ctor_set(x_333, 1, x_328); -lean_ctor_set(x_333, 2, x_329); -lean_ctor_set(x_333, 3, x_330); -lean_ctor_set(x_333, 4, x_331); +lean_ctor_set(x_336, 0, x_330); +lean_ctor_set(x_336, 1, x_331); +lean_ctor_set(x_336, 2, x_332); +lean_ctor_set(x_336, 3, x_333); +lean_ctor_set(x_336, 4, x_334); lean_inc(x_2); -x_334 = l___private_Init_Lean_Elab_Command_3__setState(x_333, x_2, x_326); -if (lean_obj_tag(x_334) == 0) +x_337 = l___private_Init_Lean_Elab_Command_3__setState(x_336, x_2, x_329); +if (lean_obj_tag(x_337) == 0) { -lean_object* x_335; -x_335 = lean_ctor_get(x_334, 1); -lean_inc(x_335); -lean_dec(x_334); -x_282 = x_321; -x_283 = x_335; -goto block_305; -} -else -{ -lean_object* x_336; lean_object* x_337; -lean_dec(x_321); -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_215); -lean_dec(x_4); -x_336 = lean_ctor_get(x_334, 0); -lean_inc(x_336); -x_337 = lean_ctor_get(x_334, 1); -lean_inc(x_337); -lean_dec(x_334); -x_266 = x_336; -x_267 = x_337; -goto block_276; -} -} -else -{ -lean_object* x_338; lean_object* x_339; -lean_dec(x_322); -lean_dec(x_321); -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_215); -lean_dec(x_4); -x_338 = lean_ctor_get(x_323, 0); +lean_object* x_338; +x_338 = lean_ctor_get(x_337, 1); lean_inc(x_338); -x_339 = lean_ctor_get(x_323, 1); +lean_dec(x_337); +x_283 = x_324; +x_284 = x_338; +goto block_307; +} +else +{ +lean_object* x_339; lean_object* x_340; +lean_dec(x_324); +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_216); +lean_dec(x_4); +x_339 = lean_ctor_get(x_337, 0); lean_inc(x_339); -lean_dec(x_323); -x_266 = x_338; +x_340 = lean_ctor_get(x_337, 1); +lean_inc(x_340); +lean_dec(x_337); x_267 = x_339; -goto block_276; +x_268 = x_340; +goto block_277; } } else { -lean_object* x_340; -x_340 = lean_ctor_get(x_320, 0); -lean_inc(x_340); -if (lean_obj_tag(x_340) == 0) -{ -lean_object* x_341; lean_object* x_342; lean_object* x_343; -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_215); +lean_object* x_341; lean_object* x_342; +lean_dec(x_325); +lean_dec(x_324); +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_216); lean_dec(x_4); -x_341 = lean_ctor_get(x_320, 1); +x_341 = lean_ctor_get(x_326, 0); lean_inc(x_341); -lean_dec(x_320); -x_342 = lean_ctor_get(x_340, 0); +x_342 = lean_ctor_get(x_326, 1); lean_inc(x_342); -lean_dec(x_340); -lean_inc(x_2); -x_343 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_316); +lean_dec(x_326); +x_267 = x_341; +x_268 = x_342; +goto block_277; +} +} +else +{ +lean_object* x_343; +x_343 = lean_ctor_get(x_323, 0); +lean_inc(x_343); if (lean_obj_tag(x_343) == 0) { -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; -x_344 = lean_ctor_get(x_341, 0); +lean_object* x_344; lean_object* x_345; lean_object* x_346; +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_216); +lean_dec(x_4); +x_344 = lean_ctor_get(x_323, 1); lean_inc(x_344); +lean_dec(x_323); x_345 = lean_ctor_get(x_343, 0); lean_inc(x_345); -x_346 = lean_ctor_get(x_343, 1); -lean_inc(x_346); lean_dec(x_343); +lean_inc(x_2); +x_346 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_319); +if (lean_obj_tag(x_346) == 0) +{ +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; x_347 = lean_ctor_get(x_344, 0); lean_inc(x_347); -lean_dec(x_344); -x_348 = lean_ctor_get(x_341, 2); +x_348 = lean_ctor_get(x_346, 0); lean_inc(x_348); -lean_dec(x_341); -x_349 = lean_ctor_get(x_345, 2); +x_349 = lean_ctor_get(x_346, 1); lean_inc(x_349); -x_350 = lean_ctor_get(x_345, 3); +lean_dec(x_346); +x_350 = lean_ctor_get(x_347, 0); lean_inc(x_350); -x_351 = lean_ctor_get(x_345, 4); +lean_dec(x_347); +x_351 = lean_ctor_get(x_344, 2); lean_inc(x_351); -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); - x_352 = x_345; +lean_dec(x_344); +x_352 = lean_ctor_get(x_348, 2); +lean_inc(x_352); +x_353 = lean_ctor_get(x_348, 3); +lean_inc(x_353); +x_354 = lean_ctor_get(x_348, 4); +lean_inc(x_354); +if (lean_is_exclusive(x_348)) { + lean_ctor_release(x_348, 0); + lean_ctor_release(x_348, 1); + lean_ctor_release(x_348, 2); + lean_ctor_release(x_348, 3); + lean_ctor_release(x_348, 4); + x_355 = x_348; } else { - lean_dec_ref(x_345); - x_352 = lean_box(0); + lean_dec_ref(x_348); + x_355 = lean_box(0); } -if (lean_is_scalar(x_352)) { - x_353 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_355)) { + x_356 = lean_alloc_ctor(0, 5, 0); } else { - x_353 = x_352; + x_356 = x_355; } -lean_ctor_set(x_353, 0, x_347); -lean_ctor_set(x_353, 1, x_348); -lean_ctor_set(x_353, 2, x_349); -lean_ctor_set(x_353, 3, x_350); -lean_ctor_set(x_353, 4, x_351); +lean_ctor_set(x_356, 0, x_350); +lean_ctor_set(x_356, 1, x_351); +lean_ctor_set(x_356, 2, x_352); +lean_ctor_set(x_356, 3, x_353); +lean_ctor_set(x_356, 4, x_354); lean_inc(x_2); -x_354 = l___private_Init_Lean_Elab_Command_3__setState(x_353, x_2, x_346); -if (lean_obj_tag(x_354) == 0) +x_357 = l___private_Init_Lean_Elab_Command_3__setState(x_356, x_2, x_349); +if (lean_obj_tag(x_357) == 0) { -lean_object* x_355; -x_355 = lean_ctor_get(x_354, 1); -lean_inc(x_355); -lean_dec(x_354); -x_266 = x_342; -x_267 = x_355; -goto block_276; -} -else -{ -lean_object* x_356; lean_object* x_357; -lean_dec(x_342); -x_356 = lean_ctor_get(x_354, 0); -lean_inc(x_356); -x_357 = lean_ctor_get(x_354, 1); -lean_inc(x_357); -lean_dec(x_354); -x_266 = x_356; -x_267 = x_357; -goto block_276; -} -} -else -{ -lean_object* x_358; lean_object* x_359; -lean_dec(x_342); -lean_dec(x_341); -x_358 = lean_ctor_get(x_343, 0); +lean_object* x_358; +x_358 = lean_ctor_get(x_357, 1); lean_inc(x_358); -x_359 = lean_ctor_get(x_343, 1); +lean_dec(x_357); +x_267 = x_345; +x_268 = x_358; +goto block_277; +} +else +{ +lean_object* x_359; lean_object* x_360; +lean_dec(x_345); +x_359 = lean_ctor_get(x_357, 0); lean_inc(x_359); -lean_dec(x_343); -x_266 = x_358; +x_360 = lean_ctor_get(x_357, 1); +lean_inc(x_360); +lean_dec(x_357); x_267 = x_359; -goto block_276; +x_268 = x_360; +goto block_277; } } else { -lean_object* x_360; lean_object* x_361; lean_object* x_362; -lean_dec(x_320); -x_360 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; -x_361 = l_unreachable_x21___rarg(x_360); +lean_object* x_361; lean_object* x_362; +lean_dec(x_345); +lean_dec(x_344); +x_361 = lean_ctor_get(x_346, 0); +lean_inc(x_361); +x_362 = lean_ctor_get(x_346, 1); +lean_inc(x_362); +lean_dec(x_346); +x_267 = x_361; +x_268 = x_362; +goto block_277; +} +} +else +{ +lean_object* x_363; lean_object* x_364; lean_object* x_365; +lean_dec(x_323); +x_363 = l_Lean_Elab_Command_runTermElabM___rarg___closed__1; +x_364 = l_unreachable_x21___rarg(x_363); lean_inc(x_2); -x_362 = lean_apply_2(x_361, x_2, x_316); -if (lean_obj_tag(x_362) == 0) +x_365 = lean_apply_2(x_364, x_2, x_319); +if (lean_obj_tag(x_365) == 0) { -lean_object* x_363; lean_object* x_364; -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_282 = x_363; -x_283 = x_364; -goto block_305; -} -else -{ -lean_object* x_365; lean_object* x_366; -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_215); -lean_dec(x_4); -x_365 = lean_ctor_get(x_362, 0); -lean_inc(x_365); -x_366 = lean_ctor_get(x_362, 1); +lean_object* x_366; lean_object* x_367; +x_366 = lean_ctor_get(x_365, 0); lean_inc(x_366); -lean_dec(x_362); -x_266 = x_365; -x_267 = x_366; -goto block_276; -} -} -} -} -else -{ -lean_object* x_367; lean_object* x_368; -lean_dec(x_313); -lean_dec(x_312); -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_215); -lean_dec(x_4); -x_367 = lean_ctor_get(x_314, 0); +x_367 = lean_ctor_get(x_365, 1); lean_inc(x_367); -x_368 = lean_ctor_get(x_314, 1); -lean_inc(x_368); -lean_dec(x_314); -x_266 = x_367; -x_267 = x_368; -goto block_276; -} +lean_dec(x_365); +x_283 = x_366; +x_284 = x_367; +goto block_307; } else { -lean_object* x_369; lean_object* x_370; -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_215); -lean_dec(x_4); -lean_dec(x_1); -x_369 = lean_ctor_get(x_309, 0); -lean_inc(x_369); -x_370 = lean_ctor_get(x_309, 1); -lean_inc(x_370); -lean_dec(x_309); -x_266 = x_369; -x_267 = x_370; -goto block_276; -} -} -else -{ -lean_object* x_371; lean_object* x_372; -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_215); -lean_dec(x_4); -lean_dec(x_1); -x_371 = lean_ctor_get(x_307, 0); -lean_inc(x_371); -x_372 = lean_ctor_get(x_307, 1); -lean_inc(x_372); -lean_dec(x_307); -x_266 = x_371; -x_267 = x_372; -goto block_276; -} -block_305: -{ -if (lean_obj_tag(x_282) == 0) -{ -lean_object* x_284; -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_4); -x_284 = lean_box(0); -x_227 = x_284; -x_228 = x_283; -goto block_265; -} -else -{ -lean_object* x_285; lean_object* x_286; -x_285 = lean_ctor_get(x_282, 0); -lean_inc(x_285); +lean_object* x_368; lean_object* x_369; lean_dec(x_282); -lean_inc(x_2); -x_286 = l_Lean_Elab_Command_addDecl(x_4, x_285, x_2, x_283); -if (lean_obj_tag(x_286) == 0) +lean_dec(x_280); +lean_dec(x_216); +lean_dec(x_4); +x_368 = lean_ctor_get(x_365, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_365, 1); +lean_inc(x_369); +lean_dec(x_365); +x_267 = x_368; +x_268 = x_369; +goto block_277; +} +} +} +} +else { -lean_object* x_287; uint8_t x_288; lean_object* x_289; -x_287 = lean_ctor_get(x_286, 1); -lean_inc(x_287); -lean_dec(x_286); -x_288 = 0; -lean_inc(x_2); -lean_inc(x_279); -x_289 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_279, x_288, x_281, x_6, x_2, x_287); -if (lean_obj_tag(x_289) == 0) +lean_object* x_370; lean_object* x_371; +lean_dec(x_316); +lean_dec(x_315); +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_216); +lean_dec(x_4); +x_370 = lean_ctor_get(x_317, 0); +lean_inc(x_370); +x_371 = lean_ctor_get(x_317, 1); +lean_inc(x_371); +lean_dec(x_317); +x_267 = x_370; +x_268 = x_371; +goto block_277; +} +} +else { -lean_object* x_290; lean_object* x_291; -x_290 = lean_ctor_get(x_289, 1); -lean_inc(x_290); -lean_dec(x_289); +lean_object* x_372; lean_object* x_373; +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_216); +lean_dec(x_4); +lean_dec(x_1); +x_372 = lean_ctor_get(x_312, 0); +lean_inc(x_372); +x_373 = lean_ctor_get(x_312, 1); +lean_inc(x_373); +lean_dec(x_312); +x_267 = x_372; +x_268 = x_373; +goto block_277; +} +} +else +{ +lean_object* x_374; lean_object* x_375; +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_216); +lean_dec(x_4); +lean_dec(x_1); +x_374 = lean_ctor_get(x_310, 0); +lean_inc(x_374); +x_375 = lean_ctor_get(x_310, 1); +lean_inc(x_375); +lean_dec(x_310); +x_267 = x_374; +x_268 = x_375; +goto block_277; +} +block_307: +{ +if (lean_obj_tag(x_283) == 0) +{ +lean_object* x_285; +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_4); +x_285 = lean_box(0); +x_228 = x_285; +x_229 = x_284; +goto block_266; +} +else +{ +lean_object* x_286; lean_object* x_287; +x_286 = lean_ctor_get(x_283, 0); +lean_inc(x_286); +lean_dec(x_283); lean_inc(x_2); -x_291 = l_Lean_Elab_Command_compileDecl(x_4, x_285, x_2, x_290); -lean_dec(x_285); +x_287 = l_Lean_Elab_Command_addDecl(x_4, x_286, x_2, x_284); +if (lean_obj_tag(x_287) == 0) +{ +lean_object* x_288; uint8_t x_289; lean_object* x_290; lean_object* x_291; +x_288 = lean_ctor_get(x_287, 1); +lean_inc(x_288); +lean_dec(x_287); +x_289 = 0; +x_290 = lean_unsigned_to_nat(0u); +lean_inc(x_2); +lean_inc(x_280); +x_291 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_280, x_289, x_282, x_290, x_2, x_288); if (lean_obj_tag(x_291) == 0) { -lean_object* x_292; uint8_t x_293; lean_object* x_294; +lean_object* x_292; lean_object* x_293; x_292 = lean_ctor_get(x_291, 1); lean_inc(x_292); lean_dec(x_291); -x_293 = 1; lean_inc(x_2); -x_294 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_279, x_293, x_281, x_6, x_2, x_292); -lean_dec(x_281); -lean_dec(x_4); -if (lean_obj_tag(x_294) == 0) +x_293 = l_Lean_Elab_Command_compileDecl(x_4, x_286, x_2, x_292); +lean_dec(x_286); +if (lean_obj_tag(x_293) == 0) { -lean_object* x_295; lean_object* x_296; -x_295 = lean_ctor_get(x_294, 0); -lean_inc(x_295); -x_296 = lean_ctor_get(x_294, 1); -lean_inc(x_296); -lean_dec(x_294); -x_227 = x_295; -x_228 = x_296; -goto block_265; -} -else +lean_object* x_294; uint8_t x_295; lean_object* x_296; +x_294 = lean_ctor_get(x_293, 1); +lean_inc(x_294); +lean_dec(x_293); +x_295 = 1; +lean_inc(x_2); +x_296 = l_Array_forMAux___main___at_Lean_Elab_Command_applyAttributes___spec__1(x_4, x_280, x_295, x_282, x_290, x_2, x_294); +lean_dec(x_282); +lean_dec(x_4); +if (lean_obj_tag(x_296) == 0) { lean_object* x_297; lean_object* x_298; -lean_dec(x_215); -x_297 = lean_ctor_get(x_294, 0); +x_297 = lean_ctor_get(x_296, 0); lean_inc(x_297); -x_298 = lean_ctor_get(x_294, 1); +x_298 = lean_ctor_get(x_296, 1); lean_inc(x_298); -lean_dec(x_294); -x_266 = x_297; -x_267 = x_298; -goto block_276; -} +lean_dec(x_296); +x_228 = x_297; +x_229 = x_298; +goto block_266; } else { lean_object* x_299; lean_object* x_300; -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_215); -lean_dec(x_4); -x_299 = lean_ctor_get(x_291, 0); +lean_dec(x_216); +x_299 = lean_ctor_get(x_296, 0); lean_inc(x_299); -x_300 = lean_ctor_get(x_291, 1); +x_300 = lean_ctor_get(x_296, 1); lean_inc(x_300); -lean_dec(x_291); -x_266 = x_299; -x_267 = x_300; -goto block_276; +lean_dec(x_296); +x_267 = x_299; +x_268 = x_300; +goto block_277; } } else { lean_object* x_301; lean_object* x_302; -lean_dec(x_285); -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_215); +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_216); lean_dec(x_4); -x_301 = lean_ctor_get(x_289, 0); +x_301 = lean_ctor_get(x_293, 0); lean_inc(x_301); -x_302 = lean_ctor_get(x_289, 1); +x_302 = lean_ctor_get(x_293, 1); lean_inc(x_302); -lean_dec(x_289); -x_266 = x_301; -x_267 = x_302; -goto block_276; +lean_dec(x_293); +x_267 = x_301; +x_268 = x_302; +goto block_277; } } else { lean_object* x_303; lean_object* x_304; -lean_dec(x_285); -lean_dec(x_281); -lean_dec(x_279); -lean_dec(x_215); -lean_dec(x_4); -x_303 = lean_ctor_get(x_286, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_286, 1); -lean_inc(x_304); lean_dec(x_286); -x_266 = x_303; -x_267 = x_304; -goto block_276; +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_216); +lean_dec(x_4); +x_303 = lean_ctor_get(x_291, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_291, 1); +lean_inc(x_304); +lean_dec(x_291); +x_267 = x_303; +x_268 = x_304; +goto block_277; +} +} +else +{ +lean_object* x_305; lean_object* x_306; +lean_dec(x_286); +lean_dec(x_282); +lean_dec(x_280); +lean_dec(x_216); +lean_dec(x_4); +x_305 = lean_ctor_get(x_287, 0); +lean_inc(x_305); +x_306 = lean_ctor_get(x_287, 1); +lean_inc(x_306); +lean_dec(x_287); +x_267 = x_305; +x_268 = x_306; +goto block_277; } } } } else { -lean_object* x_373; lean_object* x_374; -lean_dec(x_277); -lean_dec(x_215); +lean_object* x_376; lean_object* x_377; +lean_dec(x_278); +lean_dec(x_216); lean_dec(x_4); lean_dec(x_1); -x_373 = lean_ctor_get(x_278, 0); -lean_inc(x_373); -x_374 = lean_ctor_get(x_278, 1); -lean_inc(x_374); -lean_dec(x_278); -x_266 = x_373; -x_267 = x_374; -goto block_276; +x_376 = lean_ctor_get(x_279, 0); +lean_inc(x_376); +x_377 = lean_ctor_get(x_279, 1); +lean_inc(x_377); +lean_dec(x_279); +x_267 = x_376; +x_268 = x_377; +goto block_277; } -block_265: +block_266: { -lean_object* x_229; +lean_object* x_230; lean_inc(x_2); -lean_inc(x_11); -x_229 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__2(x_11, x_2, x_228); -if (lean_obj_tag(x_229) == 0) +lean_inc(x_10); +x_230 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__2(x_10, x_2, x_229); +if (lean_obj_tag(x_230) == 0) { -lean_object* x_230; lean_object* x_231; -lean_dec(x_11); -x_230 = lean_ctor_get(x_229, 1); -lean_inc(x_230); -lean_dec(x_229); +lean_object* x_231; lean_object* x_232; +lean_dec(x_10); +x_231 = lean_ctor_get(x_230, 1); +lean_inc(x_231); +lean_dec(x_230); lean_inc(x_2); -x_231 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_230); -if (lean_obj_tag(x_231) == 0) +x_232 = l___private_Init_Lean_Elab_Command_2__getState(x_2, x_231); +if (lean_obj_tag(x_232) == 0) { -lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; -x_232 = lean_ctor_get(x_231, 0); -lean_inc(x_232); -x_233 = lean_ctor_get(x_231, 1); +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_233 = lean_ctor_get(x_232, 0); lean_inc(x_233); -lean_dec(x_231); -x_234 = lean_ctor_get(x_232, 0); +x_234 = lean_ctor_get(x_232, 1); lean_inc(x_234); -x_235 = lean_ctor_get(x_232, 1); +lean_dec(x_232); +x_235 = lean_ctor_get(x_233, 0); lean_inc(x_235); -x_236 = lean_ctor_get(x_232, 2); +x_236 = lean_ctor_get(x_233, 1); lean_inc(x_236); -x_237 = lean_ctor_get(x_232, 3); +x_237 = lean_ctor_get(x_233, 2); lean_inc(x_237); -x_238 = lean_ctor_get(x_232, 4); +x_238 = lean_ctor_get(x_233, 3); lean_inc(x_238); +x_239 = lean_ctor_get(x_233, 4); +lean_inc(x_239); +if (lean_is_exclusive(x_233)) { + lean_ctor_release(x_233, 0); + lean_ctor_release(x_233, 1); + lean_ctor_release(x_233, 2); + lean_ctor_release(x_233, 3); + lean_ctor_release(x_233, 4); + x_240 = x_233; +} else { + lean_dec_ref(x_233); + x_240 = lean_box(0); +} +x_241 = l_Lean_Name_getNumParts___main(x_216); +lean_dec(x_216); +x_242 = l_List_drop___main___rarg(x_241, x_237); +lean_dec(x_237); +if (lean_is_scalar(x_240)) { + x_243 = lean_alloc_ctor(0, 5, 0); +} else { + x_243 = x_240; +} +lean_ctor_set(x_243, 0, x_235); +lean_ctor_set(x_243, 1, x_236); +lean_ctor_set(x_243, 2, x_242); +lean_ctor_set(x_243, 3, x_238); +lean_ctor_set(x_243, 4, x_239); +x_244 = l___private_Init_Lean_Elab_Command_3__setState(x_243, x_2, x_234); +if (lean_obj_tag(x_244) == 0) +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_245 = lean_ctor_get(x_244, 1); +lean_inc(x_245); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + x_246 = x_244; +} else { + lean_dec_ref(x_244); + x_246 = lean_box(0); +} +if (lean_is_scalar(x_246)) { + x_247 = lean_alloc_ctor(0, 2, 0); +} else { + x_247 = x_246; +} +lean_ctor_set(x_247, 0, x_228); +lean_ctor_set(x_247, 1, x_245); +return x_247; +} +else +{ +lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; +lean_dec(x_228); +x_248 = lean_ctor_get(x_244, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_244, 1); +lean_inc(x_249); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + x_250 = x_244; +} else { + lean_dec_ref(x_244); + x_250 = lean_box(0); +} +if (lean_is_scalar(x_250)) { + x_251 = lean_alloc_ctor(1, 2, 0); +} else { + x_251 = x_250; +} +lean_ctor_set(x_251, 0, x_248); +lean_ctor_set(x_251, 1, x_249); +return x_251; +} +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_228); +lean_dec(x_216); +lean_dec(x_2); +x_252 = lean_ctor_get(x_232, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_232, 1); +lean_inc(x_253); if (lean_is_exclusive(x_232)) { lean_ctor_release(x_232, 0); lean_ctor_release(x_232, 1); - lean_ctor_release(x_232, 2); - lean_ctor_release(x_232, 3); - lean_ctor_release(x_232, 4); - x_239 = x_232; + x_254 = x_232; } else { lean_dec_ref(x_232); - x_239 = lean_box(0); + x_254 = lean_box(0); } -x_240 = l_Lean_Name_getNumParts___main(x_215); -lean_dec(x_215); -x_241 = l_List_drop___main___rarg(x_240, x_236); -lean_dec(x_236); -if (lean_is_scalar(x_239)) { - x_242 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_254)) { + x_255 = lean_alloc_ctor(1, 2, 0); } else { - x_242 = x_239; + x_255 = x_254; } -lean_ctor_set(x_242, 0, x_234); -lean_ctor_set(x_242, 1, x_235); -lean_ctor_set(x_242, 2, x_241); -lean_ctor_set(x_242, 3, x_237); -lean_ctor_set(x_242, 4, x_238); -x_243 = l___private_Init_Lean_Elab_Command_3__setState(x_242, x_2, x_233); -if (lean_obj_tag(x_243) == 0) -{ -lean_object* x_244; lean_object* x_245; lean_object* x_246; -x_244 = lean_ctor_get(x_243, 1); -lean_inc(x_244); -if (lean_is_exclusive(x_243)) { - lean_ctor_release(x_243, 0); - lean_ctor_release(x_243, 1); - x_245 = x_243; -} else { - lean_dec_ref(x_243); - x_245 = lean_box(0); -} -if (lean_is_scalar(x_245)) { - x_246 = lean_alloc_ctor(0, 2, 0); -} else { - x_246 = x_245; -} -lean_ctor_set(x_246, 0, x_227); -lean_ctor_set(x_246, 1, x_244); -return x_246; -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; -lean_dec(x_227); -x_247 = lean_ctor_get(x_243, 0); -lean_inc(x_247); -x_248 = lean_ctor_get(x_243, 1); -lean_inc(x_248); -if (lean_is_exclusive(x_243)) { - lean_ctor_release(x_243, 0); - lean_ctor_release(x_243, 1); - x_249 = x_243; -} else { - lean_dec_ref(x_243); - x_249 = lean_box(0); -} -if (lean_is_scalar(x_249)) { - x_250 = lean_alloc_ctor(1, 2, 0); -} else { - x_250 = x_249; -} -lean_ctor_set(x_250, 0, x_247); -lean_ctor_set(x_250, 1, x_248); -return x_250; +lean_ctor_set(x_255, 0, x_252); +lean_ctor_set(x_255, 1, x_253); +return x_255; } } else { -lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -lean_dec(x_227); -lean_dec(x_215); -lean_dec(x_2); -x_251 = lean_ctor_get(x_231, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_231, 1); -lean_inc(x_252); -if (lean_is_exclusive(x_231)) { - lean_ctor_release(x_231, 0); - lean_ctor_release(x_231, 1); - x_253 = x_231; -} else { - lean_dec_ref(x_231); - x_253 = lean_box(0); -} -if (lean_is_scalar(x_253)) { - x_254 = lean_alloc_ctor(1, 2, 0); -} else { - x_254 = x_253; -} -lean_ctor_set(x_254, 0, x_251); -lean_ctor_set(x_254, 1, x_252); -return x_254; -} -} -else -{ -lean_object* x_255; lean_object* x_256; lean_object* x_257; -lean_dec(x_227); -lean_dec(x_215); -x_255 = lean_ctor_get(x_229, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_229, 1); +lean_object* x_256; lean_object* x_257; lean_object* x_258; +lean_dec(x_228); +lean_dec(x_216); +x_256 = lean_ctor_get(x_230, 0); lean_inc(x_256); -lean_dec(x_229); -x_257 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__3(x_11, x_2, x_256); -if (lean_obj_tag(x_257) == 0) +x_257 = lean_ctor_get(x_230, 1); +lean_inc(x_257); +lean_dec(x_230); +x_258 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__3(x_10, x_2, x_257); +if (lean_obj_tag(x_258) == 0) { -lean_object* x_258; lean_object* x_259; lean_object* x_260; -x_258 = lean_ctor_get(x_257, 1); -lean_inc(x_258); -if (lean_is_exclusive(x_257)) { - lean_ctor_release(x_257, 0); - lean_ctor_release(x_257, 1); - x_259 = x_257; +lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_259 = lean_ctor_get(x_258, 1); +lean_inc(x_259); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + x_260 = x_258; } else { - lean_dec_ref(x_257); - x_259 = lean_box(0); + lean_dec_ref(x_258); + x_260 = lean_box(0); } -if (lean_is_scalar(x_259)) { - x_260 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_260)) { + x_261 = lean_alloc_ctor(1, 2, 0); } else { - x_260 = x_259; - lean_ctor_set_tag(x_260, 1); + x_261 = x_260; + lean_ctor_set_tag(x_261, 1); } -lean_ctor_set(x_260, 0, x_255); -lean_ctor_set(x_260, 1, x_258); -return x_260; +lean_ctor_set(x_261, 0, x_256); +lean_ctor_set(x_261, 1, x_259); +return x_261; } else { -lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; -lean_dec(x_255); -x_261 = lean_ctor_get(x_257, 0); -lean_inc(x_261); -x_262 = lean_ctor_get(x_257, 1); +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_256); +x_262 = lean_ctor_get(x_258, 0); lean_inc(x_262); -if (lean_is_exclusive(x_257)) { - lean_ctor_release(x_257, 0); - lean_ctor_release(x_257, 1); - x_263 = x_257; +x_263 = lean_ctor_get(x_258, 1); +lean_inc(x_263); +if (lean_is_exclusive(x_258)) { + lean_ctor_release(x_258, 0); + lean_ctor_release(x_258, 1); + x_264 = x_258; } else { - lean_dec_ref(x_257); - x_263 = lean_box(0); + lean_dec_ref(x_258); + x_264 = lean_box(0); } -if (lean_is_scalar(x_263)) { - x_264 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_264)) { + x_265 = lean_alloc_ctor(1, 2, 0); } else { - x_264 = x_263; + x_265 = x_264; } -lean_ctor_set(x_264, 0, x_261); -lean_ctor_set(x_264, 1, x_262); -return x_264; +lean_ctor_set(x_265, 0, x_262); +lean_ctor_set(x_265, 1, x_263); +return x_265; } } } -block_276: +block_277: { -lean_object* x_268; -x_268 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__4(x_11, x_2, x_267); -if (lean_obj_tag(x_268) == 0) +lean_object* x_269; +x_269 = l_Lean_Elab_Command_modifyScope___at_Lean_Elab_Command_elabDefLike___spec__4(x_10, x_2, x_268); +if (lean_obj_tag(x_269) == 0) { -lean_object* x_269; lean_object* x_270; lean_object* x_271; -x_269 = lean_ctor_get(x_268, 1); -lean_inc(x_269); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_270 = x_268; +lean_object* x_270; lean_object* x_271; lean_object* x_272; +x_270 = lean_ctor_get(x_269, 1); +lean_inc(x_270); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_271 = x_269; } else { - lean_dec_ref(x_268); - x_270 = lean_box(0); + lean_dec_ref(x_269); + x_271 = lean_box(0); } -if (lean_is_scalar(x_270)) { - x_271 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_271)) { + x_272 = lean_alloc_ctor(1, 2, 0); } else { - x_271 = x_270; - lean_ctor_set_tag(x_271, 1); + x_272 = x_271; + lean_ctor_set_tag(x_272, 1); } -lean_ctor_set(x_271, 0, x_266); -lean_ctor_set(x_271, 1, x_269); -return x_271; +lean_ctor_set(x_272, 0, x_267); +lean_ctor_set(x_272, 1, x_270); +return x_272; } else { -lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; -lean_dec(x_266); -x_272 = lean_ctor_get(x_268, 0); -lean_inc(x_272); -x_273 = lean_ctor_get(x_268, 1); +lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; +lean_dec(x_267); +x_273 = lean_ctor_get(x_269, 0); lean_inc(x_273); -if (lean_is_exclusive(x_268)) { - lean_ctor_release(x_268, 0); - lean_ctor_release(x_268, 1); - x_274 = x_268; +x_274 = lean_ctor_get(x_269, 1); +lean_inc(x_274); +if (lean_is_exclusive(x_269)) { + lean_ctor_release(x_269, 0); + lean_ctor_release(x_269, 1); + x_275 = x_269; } else { - lean_dec_ref(x_268); - x_274 = lean_box(0); + lean_dec_ref(x_269); + x_275 = lean_box(0); } -if (lean_is_scalar(x_274)) { - x_275 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_275)) { + x_276 = lean_alloc_ctor(1, 2, 0); } else { - x_275 = x_274; + x_276 = x_275; } -lean_ctor_set(x_275, 0, x_272); -lean_ctor_set(x_275, 1, x_273); -return x_275; +lean_ctor_set(x_276, 0, x_273); +lean_ctor_set(x_276, 1, x_274); +return x_276; } } } else { -lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; -lean_dec(x_220); -lean_dec(x_215); -lean_dec(x_11); +lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; +lean_dec(x_221); +lean_dec(x_216); +lean_dec(x_10); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_375 = lean_ctor_get(x_225, 0); -lean_inc(x_375); -x_376 = lean_ctor_get(x_225, 1); -lean_inc(x_376); -if (lean_is_exclusive(x_225)) { - lean_ctor_release(x_225, 0); - lean_ctor_release(x_225, 1); - x_377 = x_225; -} else { - lean_dec_ref(x_225); - x_377 = lean_box(0); -} -if (lean_is_scalar(x_377)) { - x_378 = lean_alloc_ctor(1, 2, 0); -} else { - x_378 = x_377; -} -lean_ctor_set(x_378, 0, x_375); -lean_ctor_set(x_378, 1, x_376); -return x_378; -} -} -else -{ -lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; -lean_dec(x_220); -lean_dec(x_215); -lean_dec(x_13); -lean_dec(x_11); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_379 = lean_ctor_get(x_223, 0); +x_378 = lean_ctor_get(x_226, 0); +lean_inc(x_378); +x_379 = lean_ctor_get(x_226, 1); lean_inc(x_379); -x_380 = lean_ctor_get(x_223, 1); -lean_inc(x_380); -if (lean_is_exclusive(x_223)) { - lean_ctor_release(x_223, 0); - lean_ctor_release(x_223, 1); - x_381 = x_223; +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + x_380 = x_226; } else { - lean_dec_ref(x_223); - x_381 = lean_box(0); + lean_dec_ref(x_226); + x_380 = lean_box(0); } -if (lean_is_scalar(x_381)) { - x_382 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_380)) { + x_381 = lean_alloc_ctor(1, 2, 0); } else { - x_382 = x_381; + x_381 = x_380; } -lean_ctor_set(x_382, 0, x_379); -lean_ctor_set(x_382, 1, x_380); -return x_382; +lean_ctor_set(x_381, 0, x_378); +lean_ctor_set(x_381, 1, x_379); +return x_381; +} +} +else +{ +lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; +lean_dec(x_221); +lean_dec(x_216); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_382 = lean_ctor_get(x_224, 0); +lean_inc(x_382); +x_383 = lean_ctor_get(x_224, 1); +lean_inc(x_383); +if (lean_is_exclusive(x_224)) { + lean_ctor_release(x_224, 0); + lean_ctor_release(x_224, 1); + x_384 = x_224; +} else { + lean_dec_ref(x_224); + x_384 = lean_box(0); +} +if (lean_is_scalar(x_384)) { + x_385 = lean_alloc_ctor(1, 2, 0); +} else { + x_385 = x_384; +} +lean_ctor_set(x_385, 0, x_382); +lean_ctor_set(x_385, 1, x_383); +return x_385; } } } else { -lean_object* x_383; lean_object* x_384; -lean_dec(x_16); +lean_object* x_386; lean_object* x_387; lean_dec(x_15); -lean_dec(x_13); -lean_dec(x_11); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_10); lean_dec(x_4); lean_dec(x_1); -x_383 = l_Lean_Elab_Command_withDeclId___closed__3; -x_384 = l_Lean_Elab_Command_throwError___rarg(x_5, x_383, x_2, x_14); +x_386 = l_Lean_Elab_Command_withDeclId___closed__3; +x_387 = l_Lean_Elab_Command_throwError___rarg(x_5, x_386, x_2, x_13); lean_dec(x_5); -return x_384; +return x_387; } } } else { -uint8_t x_399; -lean_dec(x_9); +uint8_t x_404; +lean_dec(x_8); lean_dec(x_7); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_399 = !lean_is_exclusive(x_10); -if (x_399 == 0) +x_404 = !lean_is_exclusive(x_9); +if (x_404 == 0) { -return x_10; +return x_9; } else { -lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_400 = lean_ctor_get(x_10, 0); -x_401 = lean_ctor_get(x_10, 1); -lean_inc(x_401); -lean_inc(x_400); -lean_dec(x_10); -x_402 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_402, 0, x_400); -lean_ctor_set(x_402, 1, x_401); -return x_402; +lean_object* x_405; lean_object* x_406; lean_object* x_407; +x_405 = lean_ctor_get(x_9, 0); +x_406 = lean_ctor_get(x_9, 1); +lean_inc(x_406); +lean_inc(x_405); +lean_dec(x_9); +x_407 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_407, 0, x_405); +lean_ctor_set(x_407, 1, x_406); +return x_407; } } } diff --git a/stage0/stdlib/Init/Lean/Elab/DoNotation.c b/stage0/stdlib/Init/Lean/Elab/DoNotation.c index 890a5c37eb..4f3968408b 100644 --- a/stage0/stdlib/Init/Lean/Elab/DoNotation.c +++ b/stage0/stdlib/Init/Lean/Elab/DoNotation.c @@ -17,14 +17,16 @@ lean_object* l_Lean_Elab_Term_mkAppM(lean_object*, lean_object*, lean_object*, l lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_6__expandLiftMethod(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4; lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__3; +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__5; +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_3__getDoElems(lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3; extern lean_object* l_Lean_MessageData_ofList___closed__3; lean_object* l_Lean_Elab_Term_inferType(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__1___boxed(lean_object*); extern lean_object* l_Lean_Parser_Term_do___elambda__1___closed__1; extern lean_object* l_Option_get_x21___rarg___closed__3; lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___closed__2; @@ -34,51 +36,53 @@ extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___close extern lean_object* l_PersistentHashMap_mkCollisionNode___rarg___closed__1; extern lean_object* l_Lean_Parser_Term_doPat___elambda__1___closed__2; extern lean_object* l_Array_empty___closed__1; -lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1; +lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__1(lean_object*); extern lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; +lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1; lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___closed__3; -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2; +lean_object* l_Lean_Elab_Term_getDecLevel(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1; +lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_liftMethod___elambda__1___closed__2; -lean_object* l_Lean_Elab_Term_decLevel(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_11__mkBind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1; lean_object* l_Lean_Elab_Term_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); uint8_t l___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod(lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__4; +lean_object* l___private_Init_Lean_Elab_DoNotation_12__mkBind___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; lean_object* l_Lean_Elab_Term_synthesizeInst(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_3__getDoElems___boxed(lean_object*); extern lean_object* l_Lean_Parser_Term_do___elambda__1___closed__2; +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__7; lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo(lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_PersistentHashMap_Stats_toString___closed__5; lean_object* l___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod___boxed(lean_object*); lean_object* l_Lean_Elab_Term_whnf(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getOptions(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__1; extern lean_object* l_Lean_mkTermIdFromIdent___closed__2; lean_object* l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_ProcessedDoElem_inhabited; -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6; +lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__2; lean_object* l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Syntax_termIdToAntiquot___closed__4; uint8_t l___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod___main(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; extern lean_object* l_Lean_Expr_Inhabited___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getLevel(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3; +lean_object* l___private_Init_Lean_Elab_DoNotation_11__ensureDoElemType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_14__processDoElems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; extern lean_object* l_Lean_Elab_Term_elabLetDecl___closed__4; @@ -88,41 +92,44 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__11; -lean_object* l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__3; lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2; lean_object* lean_name_mk_string(lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__4; lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_getCurrMacroScope(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2; +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__6; lean_object* l_Lean_Elab_Term_expandOptType(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withLocalDecl___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5; lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__3; lean_object* l___private_Init_Lean_Elab_DoNotation_8__expandDoElems(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___closed__1; lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_isEmpty___rarg(lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5; +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__2; -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7; lean_object* l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__3; lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDo___closed__1; -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__3; +lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_Elab_DoNotation_4__hasLiftMethod___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__3; +lean_object* l___private_Init_Lean_Elab_DoNotation_15__regTraceClasses(lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_nullKind___closed__2; -lean_object* l___private_Init_Lean_Elab_DoNotation_11__mkBind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Syntax_inhabited; +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__1; +lean_object* l___private_Init_Lean_Elab_DoNotation_12__mkBind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; lean_object* lean_environment_main_module(lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); @@ -130,13 +137,15 @@ extern lean_object* l_Lean_Parser_Term_match___elambda__1___closed__2; lean_object* l_Lean_mkApp(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; lean_object* l_Lean_Syntax_getArgs(lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_14__regTraceClasses(lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__2; lean_object* l_Lean_Syntax_getKind(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__1; lean_object* lean_panic_fn(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__4; +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabType(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main___closed__2; +extern lean_object* l_Lean_mkAppStx___closed__9; extern lean_object* l_Lean_Parser_Term_doExpr___elambda__1___closed__2; uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_5__expandLiftMethodAux___main(lean_object*, lean_object*, lean_object*, lean_object*); @@ -150,23 +159,21 @@ lean_object* l_Lean_Elab_Term_addBuiltinTermElab(lean_object*, lean_object*, lea lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDo(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_doLet___elambda__1___closed__2; -lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1___boxed(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__2; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); extern lean_object* l_Lean_mkOptionalNode___closed__2; extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; lean_object* l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__2; +lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed__1; lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__1; -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_2__extractMonad(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1(lean_object*); lean_object* l_Lean_indentExpr(lean_object*); +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkConst(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__4; @@ -218,6 +225,7 @@ lean_object* l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(lean_object* x _start: { lean_object* x_5; +lean_inc(x_2); x_5 = l_Lean_Elab_Term_getLevel(x_1, x_2, x_3, x_4); if (lean_obj_tag(x_5) == 0) { @@ -236,9 +244,10 @@ lean_inc(x_9); x_11 = l_Lean_mkConst(x_10, x_9); x_12 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___closed__4; x_13 = l_Lean_mkConst(x_12, x_9); -x_14 = lean_alloc_ctor(0, 2, 0); +x_14 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_14, 0, x_11); -lean_ctor_set(x_14, 1, x_13); +lean_ctor_set(x_14, 1, x_2); +lean_ctor_set(x_14, 2, x_13); lean_ctor_set(x_5, 0, x_14); return x_5; } @@ -259,9 +268,10 @@ lean_inc(x_18); x_20 = l_Lean_mkConst(x_19, x_18); x_21 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor___closed__4; x_22 = l_Lean_mkConst(x_21, x_18); -x_23 = lean_alloc_ctor(0, 2, 0); +x_23 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_23, 0, x_20); -lean_ctor_set(x_23, 1, x_22); +lean_ctor_set(x_23, 1, x_2); +lean_ctor_set(x_23, 2, x_22); x_24 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_16); @@ -271,6 +281,7 @@ return x_24; else { uint8_t x_25; +lean_dec(x_2); x_25 = !lean_is_exclusive(x_5); if (x_25 == 0) { @@ -399,562 +410,578 @@ lean_ctor_set_uint8(x_26, sizeof(void*)*10 + 2, x_22); x_27 = l_Lean_Elab_Term_whnf(x_1, x_9, x_26, x_4); if (lean_obj_tag(x_27) == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_52; uint8_t x_53; +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_53; uint8_t x_54; x_28 = lean_ctor_get(x_27, 0); lean_inc(x_28); x_29 = lean_ctor_get(x_27, 1); lean_inc(x_29); lean_dec(x_27); -x_52 = l_Lean_Expr_getAppFn___main(x_28); -x_53 = l_Lean_Expr_isMVar(x_52); -lean_dec(x_52); -if (x_53 == 0) +x_53 = l_Lean_Expr_getAppFn___main(x_28); +x_54 = l_Lean_Expr_isMVar(x_53); +lean_dec(x_53); +if (x_54 == 0) { x_30 = x_29; -goto block_51; +goto block_52; } else { -lean_object* x_54; lean_object* x_55; uint8_t x_56; +lean_object* x_55; lean_object* x_56; uint8_t x_57; lean_dec(x_28); -x_54 = l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__3; -x_55 = l_Lean_Elab_Term_throwError___rarg(x_1, x_54, x_3, x_29); -x_56 = !lean_is_exclusive(x_55); -if (x_56 == 0) +x_55 = l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__3; +x_56 = l_Lean_Elab_Term_throwError___rarg(x_1, x_55, x_3, x_29); +x_57 = !lean_is_exclusive(x_56); +if (x_57 == 0) { -return x_55; +return x_56; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_55, 0); -x_58 = lean_ctor_get(x_55, 1); +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_56, 0); +x_59 = lean_ctor_get(x_56, 1); +lean_inc(x_59); lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_55); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; +lean_dec(x_56); +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; } } -block_51: +block_52: { if (lean_obj_tag(x_28) == 5) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; x_31 = lean_ctor_get(x_28, 0); lean_inc(x_31); -x_32 = l_Lean_mkOptionalNode___closed__2; +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +x_33 = l_Lean_mkOptionalNode___closed__2; lean_inc(x_31); -x_33 = lean_array_push(x_32, x_31); -x_34 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; +x_34 = lean_array_push(x_33, x_31); +x_35 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; lean_inc(x_3); -x_35 = l_Lean_Elab_Term_mkAppM(x_1, x_34, x_33, x_3, x_30); -lean_dec(x_33); -if (lean_obj_tag(x_35) == 0) +x_36 = l_Lean_Elab_Term_mkAppM(x_1, x_35, x_34, x_3, x_30); +lean_dec(x_34); +if (lean_obj_tag(x_36) == 0) { -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_35, 0); -lean_inc(x_36); -x_37 = lean_ctor_get(x_35, 1); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); -lean_dec(x_35); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); lean_inc(x_3); -x_38 = l_Lean_Elab_Term_synthesizeInst(x_1, x_36, x_3, x_37); -if (lean_obj_tag(x_38) == 0) +x_39 = l_Lean_Elab_Term_synthesizeInst(x_1, x_37, x_3, x_38); +if (lean_obj_tag(x_39) == 0) { -uint8_t x_39; +uint8_t x_40; lean_dec(x_28); lean_dec(x_3); -x_39 = !lean_is_exclusive(x_38); -if (x_39 == 0) +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) { -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_38, 0); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_31); -lean_ctor_set(x_41, 1, x_40); -lean_ctor_set(x_38, 0, x_41); -return x_38; +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_42, 0, x_31); +lean_ctor_set(x_42, 1, x_32); +lean_ctor_set(x_42, 2, x_41); +lean_ctor_set(x_39, 0, x_42); +return x_39; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_38, 0); -x_43 = lean_ctor_get(x_38, 1); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_39, 0); +x_44 = lean_ctor_get(x_39, 1); +lean_inc(x_44); lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_38); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_31); -lean_ctor_set(x_44, 1, x_42); -x_45 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_43); -return x_45; +lean_dec(x_39); +x_45 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_45, 0, x_31); +lean_ctor_set(x_45, 1, x_32); +lean_ctor_set(x_45, 2, x_43); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_44); +return x_46; } } else { -lean_object* x_46; lean_object* x_47; +lean_object* x_47; lean_object* x_48; +lean_dec(x_32); lean_dec(x_31); -x_46 = lean_ctor_get(x_38, 1); -lean_inc(x_46); -lean_dec(x_38); -x_47 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_28, x_3, x_46); -return x_47; +x_47 = lean_ctor_get(x_39, 1); +lean_inc(x_47); +lean_dec(x_39); +x_48 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_28, x_3, x_47); +return x_48; } } else { -lean_object* x_48; lean_object* x_49; +lean_object* x_49; lean_object* x_50; +lean_dec(x_32); lean_dec(x_31); -x_48 = lean_ctor_get(x_35, 1); -lean_inc(x_48); -lean_dec(x_35); -x_49 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_28, x_3, x_48); -return x_49; -} -} -else -{ -lean_object* x_50; -x_50 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_28, x_3, x_30); +x_49 = lean_ctor_get(x_36, 1); +lean_inc(x_49); +lean_dec(x_36); +x_50 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_28, x_3, x_49); return x_50; } } +else +{ +lean_object* x_51; +x_51 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_28, x_3, x_30); +return x_51; +} +} } else { -uint8_t x_60; +uint8_t x_61; lean_dec(x_3); -x_60 = !lean_is_exclusive(x_27); -if (x_60 == 0) +x_61 = !lean_is_exclusive(x_27); +if (x_61 == 0) { return x_27; } else { -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_27, 0); -x_62 = lean_ctor_get(x_27, 1); +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_27, 0); +x_63 = lean_ctor_get(x_27, 1); +lean_inc(x_63); lean_inc(x_62); -lean_inc(x_61); lean_dec(x_27); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; } } } else { -lean_object* x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_64 = lean_ctor_get(x_8, 0); -x_65 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); -x_66 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 1); -x_67 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 2); -x_68 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 3); -x_69 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 4); -x_70 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 5); -lean_inc(x_64); +lean_object* x_65; uint8_t x_66; uint8_t x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_65 = lean_ctor_get(x_8, 0); +x_66 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); +x_67 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 1); +x_68 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 2); +x_69 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 3); +x_70 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 4); +x_71 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 5); +lean_inc(x_65); lean_dec(x_8); -x_71 = 2; -x_72 = lean_alloc_ctor(0, 1, 7); -lean_ctor_set(x_72, 0, x_64); -lean_ctor_set_uint8(x_72, sizeof(void*)*1, x_65); -lean_ctor_set_uint8(x_72, sizeof(void*)*1 + 1, x_66); -lean_ctor_set_uint8(x_72, sizeof(void*)*1 + 2, x_67); -lean_ctor_set_uint8(x_72, sizeof(void*)*1 + 3, x_68); -lean_ctor_set_uint8(x_72, sizeof(void*)*1 + 4, x_69); -lean_ctor_set_uint8(x_72, sizeof(void*)*1 + 5, x_70); -lean_ctor_set_uint8(x_72, sizeof(void*)*1 + 6, x_71); -lean_ctor_set(x_7, 0, x_72); -x_73 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_73, 0, x_7); -lean_ctor_set(x_73, 1, x_10); -lean_ctor_set(x_73, 2, x_11); -lean_ctor_set(x_73, 3, x_12); -lean_ctor_set(x_73, 4, x_13); -lean_ctor_set(x_73, 5, x_14); -lean_ctor_set(x_73, 6, x_15); -lean_ctor_set(x_73, 7, x_16); -lean_ctor_set(x_73, 8, x_17); -lean_ctor_set(x_73, 9, x_18); -lean_ctor_set_uint8(x_73, sizeof(void*)*10, x_20); -lean_ctor_set_uint8(x_73, sizeof(void*)*10 + 1, x_21); -lean_ctor_set_uint8(x_73, sizeof(void*)*10 + 2, x_22); -x_74 = l_Lean_Elab_Term_whnf(x_1, x_9, x_73, x_4); -if (lean_obj_tag(x_74) == 0) +x_72 = 2; +x_73 = lean_alloc_ctor(0, 1, 7); +lean_ctor_set(x_73, 0, x_65); +lean_ctor_set_uint8(x_73, sizeof(void*)*1, x_66); +lean_ctor_set_uint8(x_73, sizeof(void*)*1 + 1, x_67); +lean_ctor_set_uint8(x_73, sizeof(void*)*1 + 2, x_68); +lean_ctor_set_uint8(x_73, sizeof(void*)*1 + 3, x_69); +lean_ctor_set_uint8(x_73, sizeof(void*)*1 + 4, x_70); +lean_ctor_set_uint8(x_73, sizeof(void*)*1 + 5, x_71); +lean_ctor_set_uint8(x_73, sizeof(void*)*1 + 6, x_72); +lean_ctor_set(x_7, 0, x_73); +x_74 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_74, 0, x_7); +lean_ctor_set(x_74, 1, x_10); +lean_ctor_set(x_74, 2, x_11); +lean_ctor_set(x_74, 3, x_12); +lean_ctor_set(x_74, 4, x_13); +lean_ctor_set(x_74, 5, x_14); +lean_ctor_set(x_74, 6, x_15); +lean_ctor_set(x_74, 7, x_16); +lean_ctor_set(x_74, 8, x_17); +lean_ctor_set(x_74, 9, x_18); +lean_ctor_set_uint8(x_74, sizeof(void*)*10, x_20); +lean_ctor_set_uint8(x_74, sizeof(void*)*10 + 1, x_21); +lean_ctor_set_uint8(x_74, sizeof(void*)*10 + 2, x_22); +x_75 = l_Lean_Elab_Term_whnf(x_1, x_9, x_74, x_4); +if (lean_obj_tag(x_75) == 0) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_97; uint8_t x_98; -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); +lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_99; uint8_t x_100; +x_76 = lean_ctor_get(x_75, 0); lean_inc(x_76); -lean_dec(x_74); -x_97 = l_Lean_Expr_getAppFn___main(x_75); -x_98 = l_Lean_Expr_isMVar(x_97); -lean_dec(x_97); -if (x_98 == 0) +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_99 = l_Lean_Expr_getAppFn___main(x_76); +x_100 = l_Lean_Expr_isMVar(x_99); +lean_dec(x_99); +if (x_100 == 0) { -x_77 = x_76; -goto block_96; +x_78 = x_77; +goto block_98; } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; -lean_dec(x_75); -x_99 = l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__3; -x_100 = l_Lean_Elab_Term_throwError___rarg(x_1, x_99, x_3, x_76); -x_101 = lean_ctor_get(x_100, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_100, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_100)) { - lean_ctor_release(x_100, 0); - lean_ctor_release(x_100, 1); - x_103 = x_100; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_76); +x_101 = l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__3; +x_102 = l_Lean_Elab_Term_throwError___rarg(x_1, x_101, x_3, x_77); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_102, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_105 = x_102; } else { - lean_dec_ref(x_100); - x_103 = lean_box(0); + lean_dec_ref(x_102); + x_105 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_105)) { + x_106 = lean_alloc_ctor(1, 2, 0); } else { - x_104 = x_103; + x_106 = x_105; } -lean_ctor_set(x_104, 0, x_101); -lean_ctor_set(x_104, 1, x_102); -return x_104; +lean_ctor_set(x_106, 0, x_103); +lean_ctor_set(x_106, 1, x_104); +return x_106; } -block_96: +block_98: { -if (lean_obj_tag(x_75) == 5) +if (lean_obj_tag(x_76) == 5) { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_78 = lean_ctor_get(x_75, 0); -lean_inc(x_78); -x_79 = l_Lean_mkOptionalNode___closed__2; -lean_inc(x_78); -x_80 = lean_array_push(x_79, x_78); -x_81 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_79 = lean_ctor_get(x_76, 0); +lean_inc(x_79); +x_80 = lean_ctor_get(x_76, 1); +lean_inc(x_80); +x_81 = l_Lean_mkOptionalNode___closed__2; +lean_inc(x_79); +x_82 = lean_array_push(x_81, x_79); +x_83 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; lean_inc(x_3); -x_82 = l_Lean_Elab_Term_mkAppM(x_1, x_81, x_80, x_3, x_77); -lean_dec(x_80); -if (lean_obj_tag(x_82) == 0) -{ -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_82, 0); -lean_inc(x_83); -x_84 = lean_ctor_get(x_82, 1); -lean_inc(x_84); +x_84 = l_Lean_Elab_Term_mkAppM(x_1, x_83, x_82, x_3, x_78); lean_dec(x_82); -lean_inc(x_3); -x_85 = l_Lean_Elab_Term_synthesizeInst(x_1, x_83, x_3, x_84); -if (lean_obj_tag(x_85) == 0) +if (lean_obj_tag(x_84) == 0) { -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; -lean_dec(x_75); -lean_dec(x_3); -x_86 = lean_ctor_get(x_85, 0); +lean_object* x_85; lean_object* x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_84, 0); +lean_inc(x_85); +x_86 = lean_ctor_get(x_84, 1); lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -if (lean_is_exclusive(x_85)) { - lean_ctor_release(x_85, 0); - lean_ctor_release(x_85, 1); - x_88 = x_85; -} else { - lean_dec_ref(x_85); - x_88 = lean_box(0); -} -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_78); -lean_ctor_set(x_89, 1, x_86); -if (lean_is_scalar(x_88)) { - x_90 = lean_alloc_ctor(0, 2, 0); -} else { - x_90 = x_88; -} -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_87); -return x_90; -} -else +lean_dec(x_84); +lean_inc(x_3); +x_87 = l_Lean_Elab_Term_synthesizeInst(x_1, x_85, x_3, x_86); +if (lean_obj_tag(x_87) == 0) { -lean_object* x_91; lean_object* x_92; -lean_dec(x_78); -x_91 = lean_ctor_get(x_85, 1); -lean_inc(x_91); -lean_dec(x_85); -x_92 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_75, x_3, x_91); -return x_92; +lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; +lean_dec(x_76); +lean_dec(x_3); +x_88 = lean_ctor_get(x_87, 0); +lean_inc(x_88); +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_87)) { + lean_ctor_release(x_87, 0); + lean_ctor_release(x_87, 1); + x_90 = x_87; +} else { + lean_dec_ref(x_87); + x_90 = lean_box(0); } +x_91 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_91, 0, x_79); +lean_ctor_set(x_91, 1, x_80); +lean_ctor_set(x_91, 2, x_88); +if (lean_is_scalar(x_90)) { + x_92 = lean_alloc_ctor(0, 2, 0); +} else { + x_92 = x_90; +} +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_89); +return x_92; } else { lean_object* x_93; lean_object* x_94; -lean_dec(x_78); -x_93 = lean_ctor_get(x_82, 1); +lean_dec(x_80); +lean_dec(x_79); +x_93 = lean_ctor_get(x_87, 1); lean_inc(x_93); -lean_dec(x_82); -x_94 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_75, x_3, x_93); +lean_dec(x_87); +x_94 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_76, x_3, x_93); return x_94; } } else { -lean_object* x_95; -x_95 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_75, x_3, x_77); -return x_95; +lean_object* x_95; lean_object* x_96; +lean_dec(x_80); +lean_dec(x_79); +x_95 = lean_ctor_get(x_84, 1); +lean_inc(x_95); +lean_dec(x_84); +x_96 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_76, x_3, x_95); +return x_96; +} +} +else +{ +lean_object* x_97; +x_97 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_76, x_3, x_78); +return x_97; } } } else { -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_dec(x_3); -x_105 = lean_ctor_get(x_74, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_74, 1); -lean_inc(x_106); -if (lean_is_exclusive(x_74)) { - lean_ctor_release(x_74, 0); - lean_ctor_release(x_74, 1); - x_107 = x_74; +x_107 = lean_ctor_get(x_75, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_75, 1); +lean_inc(x_108); +if (lean_is_exclusive(x_75)) { + lean_ctor_release(x_75, 0); + lean_ctor_release(x_75, 1); + x_109 = x_75; } else { - lean_dec_ref(x_74); - x_107 = lean_box(0); + lean_dec_ref(x_75); + x_109 = lean_box(0); } -if (lean_is_scalar(x_107)) { - x_108 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_109)) { + x_110 = lean_alloc_ctor(1, 2, 0); } else { - x_108 = x_107; + x_110 = x_109; } -lean_ctor_set(x_108, 0, x_105); -lean_ctor_set(x_108, 1, x_106); -return x_108; +lean_ctor_set(x_110, 0, x_107); +lean_ctor_set(x_110, 1, x_108); +return x_110; } } } else { -uint8_t x_109; uint8_t x_110; uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; uint8_t x_117; uint8_t x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; uint8_t x_122; lean_object* x_123; uint8_t x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_109 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_110 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_111 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -x_112 = lean_ctor_get(x_7, 1); -x_113 = lean_ctor_get(x_7, 2); -x_114 = lean_ctor_get(x_7, 3); -x_115 = lean_ctor_get(x_7, 4); +uint8_t x_111; uint8_t x_112; uint8_t x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; uint8_t x_120; uint8_t x_121; uint8_t x_122; uint8_t x_123; uint8_t x_124; lean_object* x_125; uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; +x_111 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +x_112 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); +x_113 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +x_114 = lean_ctor_get(x_7, 1); +x_115 = lean_ctor_get(x_7, 2); +x_116 = lean_ctor_get(x_7, 3); +x_117 = lean_ctor_get(x_7, 4); +lean_inc(x_117); +lean_inc(x_116); lean_inc(x_115); lean_inc(x_114); -lean_inc(x_113); -lean_inc(x_112); lean_dec(x_7); -x_116 = lean_ctor_get(x_8, 0); -lean_inc(x_116); -x_117 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); -x_118 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 1); -x_119 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 2); -x_120 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 3); -x_121 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 4); -x_122 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 5); +x_118 = lean_ctor_get(x_8, 0); +lean_inc(x_118); +x_119 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); +x_120 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 1); +x_121 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 2); +x_122 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 3); +x_123 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 4); +x_124 = lean_ctor_get_uint8(x_8, sizeof(void*)*1 + 5); if (lean_is_exclusive(x_8)) { lean_ctor_release(x_8, 0); - x_123 = x_8; + x_125 = x_8; } else { lean_dec_ref(x_8); - x_123 = lean_box(0); + x_125 = lean_box(0); } -x_124 = 2; -if (lean_is_scalar(x_123)) { - x_125 = lean_alloc_ctor(0, 1, 7); +x_126 = 2; +if (lean_is_scalar(x_125)) { + x_127 = lean_alloc_ctor(0, 1, 7); } else { - x_125 = x_123; + x_127 = x_125; } -lean_ctor_set(x_125, 0, x_116); -lean_ctor_set_uint8(x_125, sizeof(void*)*1, x_117); -lean_ctor_set_uint8(x_125, sizeof(void*)*1 + 1, x_118); -lean_ctor_set_uint8(x_125, sizeof(void*)*1 + 2, x_119); -lean_ctor_set_uint8(x_125, sizeof(void*)*1 + 3, x_120); -lean_ctor_set_uint8(x_125, sizeof(void*)*1 + 4, x_121); -lean_ctor_set_uint8(x_125, sizeof(void*)*1 + 5, x_122); -lean_ctor_set_uint8(x_125, sizeof(void*)*1 + 6, x_124); -x_126 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_112); -lean_ctor_set(x_126, 2, x_113); -lean_ctor_set(x_126, 3, x_114); -lean_ctor_set(x_126, 4, x_115); -x_127 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_127, 0, x_126); -lean_ctor_set(x_127, 1, x_10); -lean_ctor_set(x_127, 2, x_11); -lean_ctor_set(x_127, 3, x_12); -lean_ctor_set(x_127, 4, x_13); -lean_ctor_set(x_127, 5, x_14); -lean_ctor_set(x_127, 6, x_15); -lean_ctor_set(x_127, 7, x_16); -lean_ctor_set(x_127, 8, x_17); -lean_ctor_set(x_127, 9, x_18); -lean_ctor_set_uint8(x_127, sizeof(void*)*10, x_109); -lean_ctor_set_uint8(x_127, sizeof(void*)*10 + 1, x_110); -lean_ctor_set_uint8(x_127, sizeof(void*)*10 + 2, x_111); -x_128 = l_Lean_Elab_Term_whnf(x_1, x_9, x_127, x_4); -if (lean_obj_tag(x_128) == 0) +lean_ctor_set(x_127, 0, x_118); +lean_ctor_set_uint8(x_127, sizeof(void*)*1, x_119); +lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 1, x_120); +lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 2, x_121); +lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 3, x_122); +lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 4, x_123); +lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 5, x_124); +lean_ctor_set_uint8(x_127, sizeof(void*)*1 + 6, x_126); +x_128 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_128, 0, x_127); +lean_ctor_set(x_128, 1, x_114); +lean_ctor_set(x_128, 2, x_115); +lean_ctor_set(x_128, 3, x_116); +lean_ctor_set(x_128, 4, x_117); +x_129 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_129, 0, x_128); +lean_ctor_set(x_129, 1, x_10); +lean_ctor_set(x_129, 2, x_11); +lean_ctor_set(x_129, 3, x_12); +lean_ctor_set(x_129, 4, x_13); +lean_ctor_set(x_129, 5, x_14); +lean_ctor_set(x_129, 6, x_15); +lean_ctor_set(x_129, 7, x_16); +lean_ctor_set(x_129, 8, x_17); +lean_ctor_set(x_129, 9, x_18); +lean_ctor_set_uint8(x_129, sizeof(void*)*10, x_111); +lean_ctor_set_uint8(x_129, sizeof(void*)*10 + 1, x_112); +lean_ctor_set_uint8(x_129, sizeof(void*)*10 + 2, x_113); +x_130 = l_Lean_Elab_Term_whnf(x_1, x_9, x_129, x_4); +if (lean_obj_tag(x_130) == 0) { -lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_151; uint8_t x_152; -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -lean_dec(x_128); -x_151 = l_Lean_Expr_getAppFn___main(x_129); -x_152 = l_Lean_Expr_isMVar(x_151); -lean_dec(x_151); -if (x_152 == 0) +lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_154; uint8_t x_155; +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_154 = l_Lean_Expr_getAppFn___main(x_131); +x_155 = l_Lean_Expr_isMVar(x_154); +lean_dec(x_154); +if (x_155 == 0) { -x_131 = x_130; -goto block_150; +x_133 = x_132; +goto block_153; } else { -lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; -lean_dec(x_129); -x_153 = l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__3; -x_154 = l_Lean_Elab_Term_throwError___rarg(x_1, x_153, x_3, x_130); -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_154, 1); -lean_inc(x_156); -if (lean_is_exclusive(x_154)) { - lean_ctor_release(x_154, 0); - lean_ctor_release(x_154, 1); - x_157 = x_154; +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +lean_dec(x_131); +x_156 = l___private_Init_Lean_Elab_DoNotation_2__extractMonad___closed__3; +x_157 = l_Lean_Elab_Term_throwError___rarg(x_1, x_156, x_3, x_132); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +if (lean_is_exclusive(x_157)) { + lean_ctor_release(x_157, 0); + lean_ctor_release(x_157, 1); + x_160 = x_157; } else { - lean_dec_ref(x_154); - x_157 = lean_box(0); + lean_dec_ref(x_157); + x_160 = lean_box(0); } -if (lean_is_scalar(x_157)) { - x_158 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_160)) { + x_161 = lean_alloc_ctor(1, 2, 0); } else { - x_158 = x_157; + x_161 = x_160; } -lean_ctor_set(x_158, 0, x_155); -lean_ctor_set(x_158, 1, x_156); -return x_158; +lean_ctor_set(x_161, 0, x_158); +lean_ctor_set(x_161, 1, x_159); +return x_161; } -block_150: +block_153: { -if (lean_obj_tag(x_129) == 5) +if (lean_obj_tag(x_131) == 5) { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_132 = lean_ctor_get(x_129, 0); -lean_inc(x_132); -x_133 = l_Lean_mkOptionalNode___closed__2; -lean_inc(x_132); -x_134 = lean_array_push(x_133, x_132); -x_135 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; +lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_134 = lean_ctor_get(x_131, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_131, 1); +lean_inc(x_135); +x_136 = l_Lean_mkOptionalNode___closed__2; +lean_inc(x_134); +x_137 = lean_array_push(x_136, x_134); +x_138 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__6; lean_inc(x_3); -x_136 = l_Lean_Elab_Term_mkAppM(x_1, x_135, x_134, x_3, x_131); -lean_dec(x_134); -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_136, 1); -lean_inc(x_138); -lean_dec(x_136); -lean_inc(x_3); -x_139 = l_Lean_Elab_Term_synthesizeInst(x_1, x_137, x_3, x_138); +x_139 = l_Lean_Elab_Term_mkAppM(x_1, x_138, x_137, x_3, x_133); +lean_dec(x_137); 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; -lean_dec(x_129); -lean_dec(x_3); +lean_object* x_140; lean_object* x_141; lean_object* x_142; x_140 = lean_ctor_get(x_139, 0); lean_inc(x_140); x_141 = lean_ctor_get(x_139, 1); lean_inc(x_141); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - x_142 = x_139; -} else { - lean_dec_ref(x_139); - x_142 = lean_box(0); -} -x_143 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_143, 0, x_132); -lean_ctor_set(x_143, 1, x_140); -if (lean_is_scalar(x_142)) { - x_144 = lean_alloc_ctor(0, 2, 0); -} else { - x_144 = x_142; -} -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_141); -return x_144; -} -else -{ -lean_object* x_145; lean_object* x_146; -lean_dec(x_132); -x_145 = lean_ctor_get(x_139, 1); -lean_inc(x_145); lean_dec(x_139); -x_146 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_129, x_3, x_145); -return x_146; +lean_inc(x_3); +x_142 = l_Lean_Elab_Term_synthesizeInst(x_1, x_140, x_3, x_141); +if (lean_obj_tag(x_142) == 0) +{ +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +lean_dec(x_131); +lean_dec(x_3); +x_143 = lean_ctor_get(x_142, 0); +lean_inc(x_143); +x_144 = lean_ctor_get(x_142, 1); +lean_inc(x_144); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_145 = x_142; +} else { + lean_dec_ref(x_142); + x_145 = lean_box(0); } +x_146 = lean_alloc_ctor(0, 3, 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); +if (lean_is_scalar(x_145)) { + x_147 = lean_alloc_ctor(0, 2, 0); +} else { + x_147 = x_145; +} +lean_ctor_set(x_147, 0, x_146); +lean_ctor_set(x_147, 1, x_144); +return x_147; } else { -lean_object* x_147; lean_object* x_148; -lean_dec(x_132); -x_147 = lean_ctor_get(x_136, 1); -lean_inc(x_147); -lean_dec(x_136); -x_148 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_129, x_3, x_147); -return x_148; -} -} -else -{ -lean_object* x_149; -x_149 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_129, x_3, x_131); +lean_object* x_148; lean_object* x_149; +lean_dec(x_135); +lean_dec(x_134); +x_148 = lean_ctor_get(x_142, 1); +lean_inc(x_148); +lean_dec(x_142); +x_149 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_131, x_3, x_148); return x_149; } } +else +{ +lean_object* x_150; lean_object* x_151; +lean_dec(x_135); +lean_dec(x_134); +x_150 = lean_ctor_get(x_139, 1); +lean_inc(x_150); +lean_dec(x_139); +x_151 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_131, x_3, x_150); +return x_151; +} } else { -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; +lean_object* x_152; +x_152 = l___private_Init_Lean_Elab_DoNotation_1__mkIdBindFor(x_1, x_131, x_3, x_133); +return x_152; +} +} +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_dec(x_3); -x_159 = lean_ctor_get(x_128, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_128, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_128)) { - lean_ctor_release(x_128, 0); - lean_ctor_release(x_128, 1); - x_161 = x_128; +x_162 = lean_ctor_get(x_130, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_130, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_130)) { + lean_ctor_release(x_130, 0); + lean_ctor_release(x_130, 1); + x_164 = x_130; } else { - lean_dec_ref(x_128); - x_161 = lean_box(0); + lean_dec_ref(x_130); + x_164 = lean_box(0); } -if (lean_is_scalar(x_161)) { - x_162 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_164)) { + x_165 = lean_alloc_ctor(1, 2, 0); } else { - x_162 = x_161; + x_165 = x_164; } -lean_ctor_set(x_162, 0, x_159); -lean_ctor_set(x_162, 1, x_160); -return x_162; +lean_ctor_set(x_165, 0, x_162); +lean_ctor_set(x_165, 1, x_163); +return x_165; } } } @@ -3550,45 +3577,7 @@ x_6 = l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main(x_4, x_1, return x_6; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; lean_object* x_8; -x_7 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_7, 0, x_3); -x_8 = l_Lean_Elab_Term_ensureHasType(x_1, x_7, x_4, x_5, x_6); -return x_8; -} -} -lean_object* l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); -return x_7; -} -} -lean_object* _init_l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Expr_Inhabited___closed__1; -x_2 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2, 0, x_1); -lean_ctor_set(x_2, 1, x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Elab_Term_ProcessedDoElem_inhabited() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1; -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1() { _start: { lean_object* x_1; @@ -3596,27 +3585,27 @@ x_1 = lean_mk_string("type former application expected"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1; +x_1 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2; +x_1 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -3706,7 +3695,7 @@ lean_dec(x_28); x_29 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_29, 0, x_26); x_30 = l_Lean_indentExpr(x_29); -x_31 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3; +x_31 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; x_32 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_32, 0, x_31); lean_ctor_set(x_32, 1, x_30); @@ -3748,7 +3737,7 @@ lean_dec(x_39); x_40 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_40, 0, x_37); x_41 = l_Lean_indentExpr(x_40); -x_42 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3; +x_42 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; x_43 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_43, 0, x_42); lean_ctor_set(x_43, 1, x_41); @@ -3865,7 +3854,7 @@ lean_dec(x_67); x_68 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_68, 0, x_64); x_69 = l_Lean_indentExpr(x_68); -x_70 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3; +x_70 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; x_71 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_69); @@ -4011,7 +4000,7 @@ lean_dec(x_104); x_105 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_105, 0, x_101); x_106 = l_Lean_indentExpr(x_105); -x_107 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3; +x_107 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3; x_108 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_108, 0, x_107); lean_ctor_set(x_108, 1, x_106); @@ -4047,16 +4036,512 @@ return x_117; } } } -lean_object* l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(x_1, x_2, x_3, x_4); lean_dec(x_1); return x_5; } } -lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1(lean_object* x_1) { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("HasMonadLiftT"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__2() { +_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_DoNotation_10__mkMonadLift___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("liftM"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___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_DoNotation_10__mkMonadLift___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; +lean_inc(x_5); +x_8 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_8, 0, x_5); +lean_inc(x_6); +x_9 = l___private_Init_Lean_Elab_DoNotation_2__extractMonad(x_1, x_8, x_6, x_7); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_12); +x_13 = l_Lean_mkAppStx___closed__9; +lean_inc(x_12); +x_14 = lean_array_push(x_13, x_12); +lean_inc(x_2); +x_15 = lean_array_push(x_14, x_2); +x_16 = l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__2; +lean_inc(x_6); +x_17 = l_Lean_Elab_Term_mkAppM(x_1, x_16, x_15, x_6, x_11); +lean_dec(x_15); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +lean_inc(x_6); +x_20 = l_Lean_Elab_Term_synthesizeInst(x_1, x_18, x_6, x_19); +if (lean_obj_tag(x_20) == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_ctor_get(x_10, 1); +lean_inc(x_23); +lean_dec(x_10); +lean_inc(x_6); +lean_inc(x_23); +x_24 = l_Lean_Elab_Term_getDecLevel(x_1, x_23, x_6, x_22); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +lean_inc(x_6); +x_27 = l_Lean_Elab_Term_getDecLevel(x_1, x_5, x_6, x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +lean_inc(x_6); +lean_inc(x_3); +x_30 = l_Lean_Elab_Term_getDecLevel(x_1, x_3, x_6, x_29); +if (lean_obj_tag(x_30) == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = lean_box(0); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_31); +lean_ctor_set(x_34, 1, x_33); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_28); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_36, 0, x_25); +lean_ctor_set(x_36, 1, x_35); +x_37 = l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__4; +x_38 = l_Lean_mkConst(x_37, x_36); +x_39 = l_Lean_Syntax_termIdToAntiquot___closed__4; +x_40 = lean_array_push(x_39, x_12); +x_41 = lean_array_push(x_40, x_2); +x_42 = lean_array_push(x_41, x_21); +x_43 = lean_array_push(x_42, x_23); +x_44 = lean_array_push(x_43, x_4); +x_45 = lean_unsigned_to_nat(0u); +x_46 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_44, x_44, x_45, x_38); +lean_dec(x_44); +x_47 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_47, 0, x_3); +x_48 = l_Lean_Elab_Term_ensureHasType(x_1, x_47, x_46, x_6, x_32); +return x_48; +} +else +{ +uint8_t x_49; +lean_dec(x_28); +lean_dec(x_25); +lean_dec(x_23); +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_49 = !lean_is_exclusive(x_30); +if (x_49 == 0) +{ +return x_30; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_30, 0); +x_51 = lean_ctor_get(x_30, 1); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_30); +x_52 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_52, 0, x_50); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_25); +lean_dec(x_23); +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_53 = !lean_is_exclusive(x_27); +if (x_53 == 0) +{ +return x_27; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_27, 0); +x_55 = lean_ctor_get(x_27, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_27); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +else +{ +uint8_t x_57; +lean_dec(x_23); +lean_dec(x_21); +lean_dec(x_12); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_57 = !lean_is_exclusive(x_24); +if (x_57 == 0) +{ +return x_24; +} +else +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_24, 0); +x_59 = lean_ctor_get(x_24, 1); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_24); +x_60 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +return x_60; +} +} +} +else +{ +uint8_t x_61; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_61 = !lean_is_exclusive(x_20); +if (x_61 == 0) +{ +return x_20; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_20, 0); +x_63 = lean_ctor_get(x_20, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_20); +x_64 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +return x_64; +} +} +} +else +{ +uint8_t x_65; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_65 = !lean_is_exclusive(x_17); +if (x_65 == 0) +{ +return x_17; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_17, 0); +x_67 = lean_ctor_get(x_17, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_17); +x_68 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +return x_68; +} +} +} +else +{ +uint8_t x_69; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_69 = !lean_is_exclusive(x_9); +if (x_69 == 0) +{ +return x_9; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_9, 0); +x_71 = lean_ctor_get(x_9, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_9); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +} +lean_object* l___private_Init_Lean_Elab_DoNotation_11__ensureDoElemType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +lean_inc(x_5); +lean_inc(x_4); +x_7 = l_Lean_Elab_Term_inferType(x_1, x_4, x_5, x_6); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +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_5); +lean_inc(x_3); +lean_inc(x_8); +x_10 = l_Lean_Elab_Term_isDefEq(x_1, x_8, x_3, x_5, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_unbox(x_11); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_1); +x_14 = l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift(x_1, x_2, x_3, x_4, x_8, x_5, x_13); +if (lean_obj_tag(x_14) == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_14, 1); +lean_inc(x_15); +lean_dec(x_14); +x_16 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_16, 0, x_3); +x_17 = l_Lean_Elab_Term_ensureHasType(x_1, x_16, x_4, x_5, x_15); +return x_17; +} +} +else +{ +uint8_t x_18; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_10); +if (x_18 == 0) +{ +lean_object* x_19; +x_19 = lean_ctor_get(x_10, 0); +lean_dec(x_19); +lean_ctor_set(x_10, 0, x_4); +return x_10; +} +else +{ +lean_object* x_20; lean_object* x_21; +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_20); +lean_dec(x_10); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_4); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +else +{ +uint8_t x_22; +lean_dec(x_8); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_10); +if (x_22 == 0) +{ +return x_10; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_10, 0); +x_24 = lean_ctor_get(x_10, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_10); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +else +{ +uint8_t x_26; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_26 = !lean_is_exclusive(x_7); +if (x_26 == 0) +{ +return x_7; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_7, 0); +x_28 = lean_ctor_get(x_7, 1); +lean_inc(x_28); +lean_inc(x_27); +lean_dec(x_7); +x_29 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_29, 0, x_27); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +} +} +lean_object* _init_l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Expr_Inhabited___closed__1; +x_2 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Elab_Term_ProcessedDoElem_inhabited() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1; +return x_1; +} +} +lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__1(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; @@ -4070,7 +4555,7 @@ lean_dec(x_4); return x_6; } } -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; uint8_t x_11; @@ -4111,7 +4596,7 @@ x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); lean_inc(x_8); -x_23 = l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg(x_1, x_21, x_8, x_22); +x_23 = l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg(x_1, x_21, x_8, x_22); if (lean_obj_tag(x_23) == 0) { lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; @@ -4277,7 +4762,7 @@ return x_54; } } } -lean_object* l___private_Init_Lean_Elab_DoNotation_11__mkBind(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_Lean_Elab_DoNotation_12__mkBind(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { uint8_t x_8; @@ -4285,7 +4770,7 @@ x_8 = l_Array_isEmpty___rarg(x_4); if (x_8 == 0) { lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1(x_4); +x_9 = l_Array_back___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__1(x_4); x_10 = lean_ctor_get(x_9, 1); lean_inc(x_10); lean_dec(x_9); @@ -4300,7 +4785,7 @@ x_13 = lean_ctor_get(x_11, 1); lean_inc(x_13); lean_dec(x_11); lean_inc(x_6); -x_14 = l_Lean_Elab_Term_getLevel(x_1, x_12, x_6, x_13); +x_14 = l_Lean_Elab_Term_getDecLevel(x_1, x_12, x_6, x_13); if (lean_obj_tag(x_14) == 0) { lean_object* x_15; lean_object* x_16; lean_object* x_17; @@ -4310,7 +4795,8 @@ x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); lean_dec(x_14); lean_inc(x_6); -x_17 = l_Lean_Elab_Term_decLevel(x_1, x_15, x_6, x_16); +lean_inc(x_5); +x_17 = l_Lean_Elab_Term_inferType(x_1, x_5, x_6, x_16); if (lean_obj_tag(x_17) == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; @@ -4320,259 +4806,183 @@ x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); lean_inc(x_6); -lean_inc(x_5); -x_20 = l_Lean_Elab_Term_inferType(x_1, x_5, x_6, x_19); +x_20 = l_Lean_Elab_Term_getDecLevel(x_1, x_18, x_6, x_19); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); lean_dec(x_20); -lean_inc(x_6); -x_23 = l_Lean_Elab_Term_getLevel(x_1, x_21, x_6, x_22); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); -lean_inc(x_25); -lean_dec(x_23); -lean_inc(x_6); -x_26 = l_Lean_Elab_Term_decLevel(x_1, x_24, x_6, x_25); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = lean_box(0); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_27); -lean_ctor_set(x_30, 1, x_29); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_18); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; -x_33 = l_Lean_mkConst(x_32, x_31); -x_34 = l_Lean_mkAppB(x_33, x_2, x_3); -x_35 = lean_array_get_size(x_4); -x_36 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2(x_1, x_4, x_34, x_4, x_35, lean_box(0), x_5, x_6, x_28); -return x_36; +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_21); +lean_ctor_set(x_24, 1, x_23); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_15); +lean_ctor_set(x_25, 1, x_24); +x_26 = l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; +x_27 = l_Lean_mkConst(x_26, x_25); +x_28 = l_Lean_mkAppB(x_27, x_2, x_3); +x_29 = lean_array_get_size(x_4); +x_30 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__2(x_1, x_4, x_28, x_4, x_29, lean_box(0), x_5, x_6, x_22); +return x_30; } else { -uint8_t x_37; -lean_dec(x_18); +uint8_t x_31; +lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_37 = !lean_is_exclusive(x_26); -if (x_37 == 0) -{ -return x_26; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_26, 0); -x_39 = lean_ctor_get(x_26, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_26); -x_40 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_40, 0, x_38); -lean_ctor_set(x_40, 1, x_39); -return x_40; -} -} -} -else -{ -uint8_t x_41; -lean_dec(x_18); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_41 = !lean_is_exclusive(x_23); -if (x_41 == 0) -{ -return x_23; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_23, 0); -x_43 = lean_ctor_get(x_23, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_23); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -uint8_t x_45; -lean_dec(x_18); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -x_45 = !lean_is_exclusive(x_20); -if (x_45 == 0) +x_31 = !lean_is_exclusive(x_20); +if (x_31 == 0) { return x_20; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_20, 0); -x_47 = lean_ctor_get(x_20, 1); -lean_inc(x_47); -lean_inc(x_46); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_20, 0); +x_33 = lean_ctor_get(x_20, 1); +lean_inc(x_33); +lean_inc(x_32); lean_dec(x_20); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; } } } else { -uint8_t x_49; +uint8_t x_35; +lean_dec(x_15); lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_49 = !lean_is_exclusive(x_17); -if (x_49 == 0) +x_35 = !lean_is_exclusive(x_17); +if (x_35 == 0) { return x_17; } else { -lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_50 = lean_ctor_get(x_17, 0); -x_51 = lean_ctor_get(x_17, 1); -lean_inc(x_51); -lean_inc(x_50); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_17, 0); +x_37 = lean_ctor_get(x_17, 1); +lean_inc(x_37); +lean_inc(x_36); lean_dec(x_17); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -return x_52; +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; } } } else { -uint8_t x_53; +uint8_t x_39; lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_53 = !lean_is_exclusive(x_14); -if (x_53 == 0) +x_39 = !lean_is_exclusive(x_14); +if (x_39 == 0) { return x_14; } else { -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_14, 0); -x_55 = lean_ctor_get(x_14, 1); -lean_inc(x_55); -lean_inc(x_54); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_14, 0); +x_41 = lean_ctor_get(x_14, 1); +lean_inc(x_41); +lean_inc(x_40); lean_dec(x_14); -x_56 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_56, 0, x_54); -lean_ctor_set(x_56, 1, x_55); -return x_56; +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; } } } else { -uint8_t x_57; +uint8_t x_43; lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); lean_dec(x_2); -x_57 = !lean_is_exclusive(x_11); -if (x_57 == 0) +x_43 = !lean_is_exclusive(x_11); +if (x_43 == 0) { return x_11; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_11, 0); -x_59 = lean_ctor_get(x_11, 1); -lean_inc(x_59); -lean_inc(x_58); +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_11, 0); +x_45 = lean_ctor_get(x_11, 1); +lean_inc(x_45); +lean_inc(x_44); lean_dec(x_11); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; } } } else { -lean_object* x_61; +lean_object* x_47; lean_dec(x_6); lean_dec(x_3); lean_dec(x_2); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_5); -lean_ctor_set(x_61, 1, x_7); -return x_61; +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_5); +lean_ctor_set(x_47, 1, x_7); +return x_47; } } } -lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1___boxed(lean_object* x_1) { +lean_object* l_Array_back___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__1___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Array_back___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__1(x_1); +x_2 = l_Array_back___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__1(x_1); lean_dec(x_1); return x_2; } } -lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { lean_object* x_10; -x_10 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_11__mkBind___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_10 = l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at___private_Init_Lean_Elab_DoNotation_12__mkBind___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); return x_10; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_11__mkBind___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_Lean_Elab_DoNotation_12__mkBind___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Init_Lean_Elab_DoNotation_11__mkBind(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_Lean_Elab_DoNotation_12__mkBind(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_4); lean_dec(x_1); return x_8; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; @@ -4582,11 +4992,11 @@ x_13 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_13, 0, x_2); lean_ctor_set(x_13, 1, x_8); x_14 = lean_array_push(x_3, x_13); -x_15 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main(x_4, x_5, x_6, x_7, x_12, x_14, x_9, x_10); +x_15 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main(x_4, x_5, x_6, x_7, x_12, x_14, x_9, x_10); return x_15; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__1() { _start: { lean_object* x_1; @@ -4594,31 +5004,31 @@ x_1 = lean_mk_string("unexpected 'do' expression element"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1; +x_1 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2; +x_1 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3; +x_1 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__3; x_2 = l_Lean_MessageData_ofList___closed__3; x_3 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4626,7 +5036,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__5() { _start: { lean_object* x_1; @@ -4634,27 +5044,27 @@ x_1 = lean_mk_string("the last statement in a 'do' block must be an expression") return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5; +x_1 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__5; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7() { +lean_object* _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6; +x_1 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__6; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; @@ -4682,7 +5092,7 @@ lean_dec(x_1); lean_inc(x_10); x_16 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_16, 0, x_10); -x_17 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4; +x_17 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__4; x_18 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_18, 0, x_17); lean_ctor_set(x_18, 1, x_16); @@ -4711,7 +5121,7 @@ lean_dec(x_2); lean_inc(x_10); x_24 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_24, 0, x_10); -x_25 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4; +x_25 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__4; x_26 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_26, 0, x_25); lean_ctor_set(x_26, 1, x_24); @@ -4756,8 +5166,9 @@ x_38 = lean_ctor_get(x_36, 1); lean_inc(x_38); lean_dec(x_36); lean_inc(x_7); +lean_inc(x_2); lean_inc(x_10); -x_39 = l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType(x_10, x_2, x_4, x_37, x_7, x_38); +x_39 = l___private_Init_Lean_Elab_DoNotation_11__ensureDoElemType(x_10, x_2, x_4, x_37, x_7, x_38); if (lean_obj_tag(x_39) == 0) { lean_object* x_40; lean_object* x_41; lean_object* x_42; @@ -4766,7 +5177,7 @@ lean_inc(x_40); x_41 = lean_ctor_get(x_39, 1); lean_inc(x_41); lean_dec(x_39); -x_42 = l___private_Init_Lean_Elab_DoNotation_11__mkBind(x_10, x_2, x_3, x_6, x_40, x_7, x_41); +x_42 = l___private_Init_Lean_Elab_DoNotation_12__mkBind(x_10, x_2, x_3, x_6, x_40, x_7, x_41); lean_dec(x_6); lean_dec(x_10); return x_42; @@ -4879,7 +5290,8 @@ x_69 = lean_ctor_get(x_67, 1); lean_inc(x_69); lean_dec(x_67); lean_inc(x_7); -x_70 = l___private_Init_Lean_Elab_DoNotation_9__ensureDoElemType(x_60, x_2, x_64, x_68, x_7, x_69); +lean_inc(x_2); +x_70 = l___private_Init_Lean_Elab_DoNotation_11__ensureDoElemType(x_60, x_2, x_64, x_68, x_7, x_69); if (lean_obj_tag(x_70) == 0) { lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; @@ -4888,7 +5300,7 @@ lean_inc(x_71); x_72 = lean_ctor_get(x_70, 1); lean_inc(x_72); lean_dec(x_70); -x_73 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1___boxed), 10, 7); +x_73 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___lambda__1___boxed), 10, 7); lean_closure_set(x_73, 0, x_5); lean_closure_set(x_73, 1, x_71); lean_closure_set(x_73, 2, x_6); @@ -5010,7 +5422,7 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_87 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7; +x_87 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__7; x_88 = l_Lean_Elab_Term_throwError___rarg(x_10, x_87, x_7, x_8); lean_dec(x_10); x_89 = !lean_is_exclusive(x_88); @@ -5035,30 +5447,30 @@ return x_92; } } } -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; -x_11 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); lean_dec(x_1); return x_11; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_9; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_13__processDoElems(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Init_Lean_Elab_DoNotation_14__processDoElems(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_unsigned_to_nat(0u); x_8 = l_Array_empty___closed__1; -x_9 = l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main(x_1, x_2, x_3, x_4, x_7, x_8, x_5, x_6); +x_9 = l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main(x_1, x_2, x_3, x_4, x_7, x_8, x_5, x_6); return x_9; } } @@ -5184,13 +5596,13 @@ lean_inc(x_15); lean_dec(x_13); x_16 = lean_ctor_get(x_14, 0); lean_inc(x_16); -x_17 = lean_ctor_get(x_14, 1); +x_17 = lean_ctor_get(x_14, 2); lean_inc(x_17); lean_dec(x_14); x_18 = l_Lean_Expr_Inhabited; x_19 = l_Option_get_x21___rarg___closed__3; x_20 = lean_panic_fn(x_18, x_19); -x_21 = l___private_Init_Lean_Elab_DoNotation_13__processDoElems(x_12, x_16, x_17, x_20, x_3, x_15); +x_21 = l___private_Init_Lean_Elab_DoNotation_14__processDoElems(x_12, x_16, x_17, x_20, x_3, x_15); if (lean_obj_tag(x_21) == 0) { uint8_t x_22; @@ -5244,13 +5656,13 @@ lean_inc(x_30); lean_dec(x_13); x_31 = lean_ctor_get(x_14, 0); lean_inc(x_31); -x_32 = lean_ctor_get(x_14, 1); +x_32 = lean_ctor_get(x_14, 2); lean_inc(x_32); lean_dec(x_14); x_33 = lean_ctor_get(x_2, 0); lean_inc(x_33); lean_dec(x_2); -x_34 = l___private_Init_Lean_Elab_DoNotation_13__processDoElems(x_12, x_31, x_32, x_33, x_3, x_30); +x_34 = l___private_Init_Lean_Elab_DoNotation_14__processDoElems(x_12, x_31, x_32, x_33, x_3, x_30); if (lean_obj_tag(x_34) == 0) { uint8_t x_35; @@ -5499,7 +5911,7 @@ x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l___private_Init_Lean_Elab_DoNotation_14__regTraceClasses(lean_object* x_1) { +lean_object* l___private_Init_Lean_Elab_DoNotation_15__regTraceClasses(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; @@ -5604,30 +6016,38 @@ l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__4 = _ lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__4); l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5 = _init_l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5(); lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_7__expandDoElemsAux___main___closed__5); +l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__1); +l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__2); +l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_9__extractTypeFormerAppArg___closed__3); +l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__1); +l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__2); +l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__3); +l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__4 = _init_l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_10__mkMonadLift___closed__4); l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1 = _init_l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_ProcessedDoElem_inhabited___closed__1); l_Lean_Elab_Term_ProcessedDoElem_inhabited = _init_l_Lean_Elab_Term_ProcessedDoElem_inhabited(); lean_mark_persistent(l_Lean_Elab_Term_ProcessedDoElem_inhabited); -l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__1); -l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__2); -l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_10__extractTypeFormerAppArg___closed__3); -l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__1); -l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__2); -l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__3); -l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__4); -l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__5); -l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__6); -l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7 = _init_l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7(); -lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_12__processDoElemsAux___main___closed__7); +l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__1 = _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__1); +l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__2 = _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__2); +l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__3 = _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__3); +l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__4 = _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__4); +l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__5 = _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__5); +l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__6 = _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__6(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__6); +l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__7 = _init_l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__7(); +lean_mark_persistent(l___private_Init_Lean_Elab_DoNotation_13__processDoElemsAux___main___closed__7); l_Lean_Elab_Term_elabDo___closed__1 = _init_l_Lean_Elab_Term_elabDo___closed__1(); lean_mark_persistent(l_Lean_Elab_Term_elabDo___closed__1); l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__1(); @@ -5639,7 +6059,7 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__3); res = l___regBuiltinTermElab_Lean_Elab_Term_elabDo(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = l___private_Init_Lean_Elab_DoNotation_14__regTraceClasses(lean_io_mk_world()); +res = l___private_Init_Lean_Elab_DoNotation_15__regTraceClasses(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); return lean_mk_io_result(lean_box(0)); diff --git a/stage0/stdlib/Init/Lean/Elab/StructInst.c b/stage0/stdlib/Init/Lean/Elab/StructInst.c new file mode 100644 index 0000000000..2c05ab6b54 --- /dev/null +++ b/stage0/stdlib/Init/Lean/Elab/StructInst.c @@ -0,0 +1,37 @@ +// Lean compiler output +// Module: Init.Lean.Elab.StructInst +// Imports: Init.Lean.Elab.Term Init.Lean.Elab.TermBinders Init.Lean.Elab.Quotation +#include "runtime/lean.h" +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* initialize_Init_Lean_Elab_Term(lean_object*); +lean_object* initialize_Init_Lean_Elab_TermBinders(lean_object*); +lean_object* initialize_Init_Lean_Elab_Quotation(lean_object*); +static bool _G_initialized = false; +lean_object* initialize_Init_Lean_Elab_StructInst(lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_mk_io_result(lean_box(0)); +_G_initialized = true; +res = initialize_Init_Lean_Elab_Term(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Lean_Elab_TermBinders(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Lean_Elab_Quotation(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +return lean_mk_io_result(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Init/Lean/Elab/Term.c b/stage0/stdlib/Init/Lean/Elab/Term.c index 89eaf2aeca..91aaf31d1b 100644 --- a/stage0/stdlib/Init/Lean/Elab/Term.c +++ b/stage0/stdlib/Init/Lean/Elab/Term.c @@ -134,11 +134,11 @@ lean_object* l_Lean_Elab_Term_throwUnsupportedSyntax___rarg___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBadCDot(lean_object*); lean_object* l_Lean_Elab_Term_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_mkForallUsedOnly___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; lean_object* lean_io_ref_get(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_declareBuiltinParser___closed__5; lean_object* l___private_Init_Lean_Elab_Term_8__elabTermUsing___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_synthesizeInstMVarCore___closed__6; +lean_object* l_Lean_Elab_Term_getDecLevel(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_monadQuotation___closed__2; lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHole(lean_object*); @@ -378,6 +378,7 @@ lean_object* l___private_Init_Lean_Elab_Term_6__exceptionToSorry___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabListLit___closed__3; lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__3; lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; extern lean_object* l_Lean_Parser_Term_namedHole___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_liftLevelM___rarg(lean_object*, lean_object*, lean_object*); @@ -646,6 +647,7 @@ lean_object* l___private_Init_Lean_Elab_Term_9__tryCoeSort___closed__6; extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l_Lean_Elab_Term_whnfForall(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_getDecLevel___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_withFreshMacroScope___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Term_4__hasCDot___main___boxed(lean_object*); lean_object* l___private_Init_Lean_Elab_Term_4__hasCDot___boxed(lean_object*); @@ -8662,6 +8664,57 @@ lean_dec(x_1); return x_5; } } +lean_object* l_Lean_Elab_Term_getDecLevel(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +lean_inc(x_3); +x_5 = l_Lean_Elab_Term_getLevel(x_1, x_2, x_3, x_4); +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l_Lean_Elab_Term_decLevel(x_1, x_6, x_3, x_7); +return x_8; +} +else +{ +uint8_t x_9; +lean_dec(x_3); +x_9 = !lean_is_exclusive(x_5); +if (x_9 == 0) +{ +return x_5; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_5, 0); +x_11 = lean_ctor_get(x_5, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_5); +x_12 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_11); +return x_12; +} +} +} +} +lean_object* l_Lean_Elab_Term_getDecLevel___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_getDecLevel(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} lean_object* l_Lean_Elab_Term_liftLevelM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -10655,553 +10708,162 @@ return x_29; } else { -uint8_t x_30; +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_dec(x_6); lean_dec(x_5); -x_30 = !lean_is_exclusive(x_4); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_31 = lean_ctor_get(x_4, 5); -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_31, x_32); -lean_ctor_set(x_4, 5, x_33); -x_34 = !lean_is_exclusive(x_3); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; -x_35 = lean_ctor_get(x_3, 9); -lean_dec(x_35); -lean_ctor_set(x_3, 9, x_31); -x_36 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_4, x_30); +x_32 = lean_ctor_get(x_3, 0); +lean_inc(x_32); lean_dec(x_3); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -lean_dec(x_36); -x_39 = l_Lean_Elab_Term_getMainModule___rarg(x_38); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; 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; -x_41 = lean_ctor_get(x_39, 0); -x_42 = lean_box(0); -x_43 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_44 = l_Lean_addMacroScope(x_41, x_43, x_37); -x_45 = lean_box(0); -x_46 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; -x_47 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_47, 0, x_42); -lean_ctor_set(x_47, 1, x_46); -lean_ctor_set(x_47, 2, x_44); -lean_ctor_set(x_47, 3, x_45); -x_48 = l_Array_empty___closed__1; -x_49 = lean_array_push(x_48, x_47); -x_50 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_51 = lean_array_push(x_49, x_50); -x_52 = l_Lean_mkTermIdFromIdent___closed__2; -lean_ctor_set(x_1, 1, x_51); -lean_ctor_set(x_1, 0, x_52); +x_33 = lean_box(0); +x_34 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; +x_35 = l_Lean_addMacroScope(x_32, x_34, x_4); +x_36 = lean_box(0); +x_37 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; +x_38 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_38, 0, x_33); +lean_ctor_set(x_38, 1, x_37); +lean_ctor_set(x_38, 2, x_35); +lean_ctor_set(x_38, 3, x_36); +x_39 = l_Array_empty___closed__1; +x_40 = lean_array_push(x_39, x_38); +x_41 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_42 = lean_array_push(x_40, x_41); +x_43 = l_Lean_mkTermIdFromIdent___closed__2; +lean_ctor_set(x_1, 1, x_42); +lean_ctor_set(x_1, 0, x_43); lean_inc(x_1); -x_53 = lean_array_push(x_2, x_1); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_1); -lean_ctor_set(x_54, 1, x_53); -lean_ctor_set(x_39, 0, x_54); -return x_39; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; -x_55 = lean_ctor_get(x_39, 0); -x_56 = lean_ctor_get(x_39, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_39); -x_57 = lean_box(0); -x_58 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_59 = l_Lean_addMacroScope(x_55, x_58, x_37); -x_60 = lean_box(0); -x_61 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; -x_62 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_62, 0, x_57); -lean_ctor_set(x_62, 1, x_61); -lean_ctor_set(x_62, 2, x_59); -lean_ctor_set(x_62, 3, x_60); -x_63 = l_Array_empty___closed__1; -x_64 = lean_array_push(x_63, x_62); -x_65 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_66 = lean_array_push(x_64, x_65); -x_67 = l_Lean_mkTermIdFromIdent___closed__2; -lean_ctor_set(x_1, 1, x_66); -lean_ctor_set(x_1, 0, x_67); -lean_inc(x_1); -x_68 = lean_array_push(x_2, x_1); -x_69 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_69, 0, x_1); -lean_ctor_set(x_69, 1, x_68); -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_56); -return x_70; +x_44 = lean_array_push(x_2, x_1); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_1); +lean_ctor_set(x_45, 1, x_44); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_31); +return x_46; } } 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; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; uint8_t x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 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_71 = lean_ctor_get(x_3, 0); -x_72 = lean_ctor_get(x_3, 1); -x_73 = lean_ctor_get(x_3, 2); -x_74 = lean_ctor_get(x_3, 3); -x_75 = lean_ctor_get(x_3, 4); -x_76 = lean_ctor_get(x_3, 5); -x_77 = lean_ctor_get(x_3, 6); -x_78 = lean_ctor_get(x_3, 7); -x_79 = lean_ctor_get(x_3, 8); -x_80 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_81 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_82 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -lean_inc(x_79); -lean_inc(x_78); -lean_inc(x_77); -lean_inc(x_76); -lean_inc(x_75); -lean_inc(x_74); -lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_dec(x_3); -x_83 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_83, 0, x_71); -lean_ctor_set(x_83, 1, x_72); -lean_ctor_set(x_83, 2, x_73); -lean_ctor_set(x_83, 3, x_74); -lean_ctor_set(x_83, 4, x_75); -lean_ctor_set(x_83, 5, x_76); -lean_ctor_set(x_83, 6, x_77); -lean_ctor_set(x_83, 7, x_78); -lean_ctor_set(x_83, 8, x_79); -lean_ctor_set(x_83, 9, x_31); -lean_ctor_set_uint8(x_83, sizeof(void*)*10, x_80); -lean_ctor_set_uint8(x_83, sizeof(void*)*10 + 1, x_81); -lean_ctor_set_uint8(x_83, sizeof(void*)*10 + 2, x_82); -x_84 = l_Lean_Elab_Term_getCurrMacroScope(x_83, x_4); -lean_dec(x_83); -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_87 = l_Lean_Elab_Term_getMainModule___rarg(x_86); -x_88 = lean_ctor_get(x_87, 0); -lean_inc(x_88); -x_89 = lean_ctor_get(x_87, 1); -lean_inc(x_89); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_90 = x_87; -} else { - lean_dec_ref(x_87); - x_90 = lean_box(0); -} -x_91 = lean_box(0); -x_92 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_93 = l_Lean_addMacroScope(x_88, x_92, x_85); -x_94 = lean_box(0); -x_95 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; -x_96 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_96, 0, x_91); -lean_ctor_set(x_96, 1, x_95); -lean_ctor_set(x_96, 2, x_93); -lean_ctor_set(x_96, 3, x_94); -x_97 = l_Array_empty___closed__1; -x_98 = lean_array_push(x_97, x_96); -x_99 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_100 = lean_array_push(x_98, x_99); -x_101 = l_Lean_mkTermIdFromIdent___closed__2; -lean_ctor_set(x_1, 1, x_100); -lean_ctor_set(x_1, 0, x_101); -lean_inc(x_1); -x_102 = lean_array_push(x_2, x_1); -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_1); -lean_ctor_set(x_103, 1, x_102); -if (lean_is_scalar(x_90)) { - x_104 = lean_alloc_ctor(0, 2, 0); -} else { - x_104 = x_90; -} -lean_ctor_set(x_104, 0, x_103); -lean_ctor_set(x_104, 1, x_89); -return x_104; -} -} -else -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; uint8_t x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; 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; -x_105 = lean_ctor_get(x_4, 0); -x_106 = lean_ctor_get(x_4, 1); -x_107 = lean_ctor_get(x_4, 2); -x_108 = lean_ctor_get(x_4, 3); -x_109 = lean_ctor_get(x_4, 4); -x_110 = lean_ctor_get(x_4, 5); -lean_inc(x_110); -lean_inc(x_109); -lean_inc(x_108); -lean_inc(x_107); -lean_inc(x_106); -lean_inc(x_105); -lean_dec(x_4); -x_111 = lean_unsigned_to_nat(1u); -x_112 = lean_nat_add(x_110, x_111); -x_113 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_113, 0, x_105); -lean_ctor_set(x_113, 1, x_106); -lean_ctor_set(x_113, 2, x_107); -lean_ctor_set(x_113, 3, x_108); -lean_ctor_set(x_113, 4, x_109); -lean_ctor_set(x_113, 5, x_112); -x_114 = lean_ctor_get(x_3, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_3, 1); -lean_inc(x_115); -x_116 = lean_ctor_get(x_3, 2); -lean_inc(x_116); -x_117 = lean_ctor_get(x_3, 3); -lean_inc(x_117); -x_118 = lean_ctor_get(x_3, 4); -lean_inc(x_118); -x_119 = lean_ctor_get(x_3, 5); -lean_inc(x_119); -x_120 = lean_ctor_get(x_3, 6); -lean_inc(x_120); -x_121 = lean_ctor_get(x_3, 7); -lean_inc(x_121); -x_122 = lean_ctor_get(x_3, 8); -lean_inc(x_122); -x_123 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_124 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_125 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - lean_ctor_release(x_3, 5); - lean_ctor_release(x_3, 6); - lean_ctor_release(x_3, 7); - lean_ctor_release(x_3, 8); - lean_ctor_release(x_3, 9); - x_126 = x_3; -} else { - lean_dec_ref(x_3); - x_126 = lean_box(0); -} -if (lean_is_scalar(x_126)) { - x_127 = lean_alloc_ctor(0, 10, 3); -} else { - x_127 = x_126; -} -lean_ctor_set(x_127, 0, x_114); -lean_ctor_set(x_127, 1, x_115); -lean_ctor_set(x_127, 2, x_116); -lean_ctor_set(x_127, 3, x_117); -lean_ctor_set(x_127, 4, x_118); -lean_ctor_set(x_127, 5, x_119); -lean_ctor_set(x_127, 6, x_120); -lean_ctor_set(x_127, 7, x_121); -lean_ctor_set(x_127, 8, x_122); -lean_ctor_set(x_127, 9, x_110); -lean_ctor_set_uint8(x_127, sizeof(void*)*10, x_123); -lean_ctor_set_uint8(x_127, sizeof(void*)*10 + 1, x_124); -lean_ctor_set_uint8(x_127, sizeof(void*)*10 + 2, x_125); -x_128 = l_Lean_Elab_Term_getCurrMacroScope(x_127, x_113); -lean_dec(x_127); -x_129 = lean_ctor_get(x_128, 0); -lean_inc(x_129); -x_130 = lean_ctor_get(x_128, 1); -lean_inc(x_130); -lean_dec(x_128); -x_131 = l_Lean_Elab_Term_getMainModule___rarg(x_130); -x_132 = lean_ctor_get(x_131, 0); -lean_inc(x_132); -x_133 = lean_ctor_get(x_131, 1); -lean_inc(x_133); -if (lean_is_exclusive(x_131)) { - lean_ctor_release(x_131, 0); - lean_ctor_release(x_131, 1); - x_134 = x_131; -} else { - lean_dec_ref(x_131); - x_134 = lean_box(0); -} -x_135 = lean_box(0); -x_136 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_137 = l_Lean_addMacroScope(x_132, x_136, x_129); -x_138 = lean_box(0); -x_139 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; -x_140 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_140, 0, x_135); -lean_ctor_set(x_140, 1, x_139); -lean_ctor_set(x_140, 2, x_137); -lean_ctor_set(x_140, 3, x_138); -x_141 = l_Array_empty___closed__1; -x_142 = lean_array_push(x_141, x_140); -x_143 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_144 = lean_array_push(x_142, x_143); -x_145 = l_Lean_mkTermIdFromIdent___closed__2; -lean_ctor_set(x_1, 1, x_144); -lean_ctor_set(x_1, 0, x_145); -lean_inc(x_1); -x_146 = lean_array_push(x_2, x_1); -x_147 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_147, 0, x_1); -lean_ctor_set(x_147, 1, x_146); -if (lean_is_scalar(x_134)) { - x_148 = lean_alloc_ctor(0, 2, 0); -} else { - x_148 = x_134; -} -lean_ctor_set(x_148, 0, x_147); -lean_ctor_set(x_148, 1, x_133); -return x_148; -} -} -} -else -{ -lean_object* x_149; uint8_t x_150; +lean_object* x_47; uint8_t x_48; lean_dec(x_1); -x_149 = l_Lean_Parser_Term_cdot___elambda__1___closed__2; -x_150 = lean_name_eq(x_5, x_149); -if (x_150 == 0) +x_47 = l_Lean_Parser_Term_cdot___elambda__1___closed__2; +x_48 = lean_name_eq(x_5, x_47); +if (x_48 == 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_unsigned_to_nat(0u); -x_152 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_5__expandCDot___main___spec__1(x_151, x_6, x_2, x_3, x_4); -x_153 = lean_ctor_get(x_152, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_152, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_152)) { - lean_ctor_release(x_152, 0); - lean_ctor_release(x_152, 1); - x_155 = x_152; +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_49 = lean_unsigned_to_nat(0u); +x_50 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Term_5__expandCDot___main___spec__1(x_49, x_6, x_2, x_3, x_4); +x_51 = lean_ctor_get(x_50, 0); +lean_inc(x_51); +x_52 = lean_ctor_get(x_50, 1); +lean_inc(x_52); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + x_53 = x_50; } else { - lean_dec_ref(x_152); - x_155 = lean_box(0); + lean_dec_ref(x_50); + x_53 = lean_box(0); } -x_156 = lean_ctor_get(x_153, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_153, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_153)) { - lean_ctor_release(x_153, 0); - lean_ctor_release(x_153, 1); - x_158 = x_153; +x_54 = lean_ctor_get(x_51, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_51, 1); +lean_inc(x_55); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_56 = x_51; } else { - lean_dec_ref(x_153); - x_158 = lean_box(0); + lean_dec_ref(x_51); + x_56 = lean_box(0); } -x_159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_159, 0, x_5); -lean_ctor_set(x_159, 1, x_156); -if (lean_is_scalar(x_158)) { - x_160 = lean_alloc_ctor(0, 2, 0); +x_57 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_57, 0, x_5); +lean_ctor_set(x_57, 1, x_54); +if (lean_is_scalar(x_56)) { + x_58 = lean_alloc_ctor(0, 2, 0); } else { - x_160 = x_158; + x_58 = x_56; } -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_157); -if (lean_is_scalar(x_155)) { - x_161 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_55); +if (lean_is_scalar(x_53)) { + x_59 = lean_alloc_ctor(0, 2, 0); } else { - x_161 = x_155; + x_59 = x_53; } -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_154); -return x_161; +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_52); +return x_59; } else { -lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_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; uint8_t x_181; uint8_t x_182; uint8_t 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_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_dec(x_6); lean_dec(x_5); -x_162 = lean_ctor_get(x_4, 0); -lean_inc(x_162); -x_163 = lean_ctor_get(x_4, 1); -lean_inc(x_163); -x_164 = lean_ctor_get(x_4, 2); -lean_inc(x_164); -x_165 = lean_ctor_get(x_4, 3); -lean_inc(x_165); -x_166 = lean_ctor_get(x_4, 4); -lean_inc(x_166); -x_167 = lean_ctor_get(x_4, 5); -lean_inc(x_167); -if (lean_is_exclusive(x_4)) { - lean_ctor_release(x_4, 0); - lean_ctor_release(x_4, 1); - lean_ctor_release(x_4, 2); - lean_ctor_release(x_4, 3); - lean_ctor_release(x_4, 4); - lean_ctor_release(x_4, 5); - x_168 = x_4; -} else { - lean_dec_ref(x_4); - x_168 = lean_box(0); -} -x_169 = lean_unsigned_to_nat(1u); -x_170 = lean_nat_add(x_167, x_169); -if (lean_is_scalar(x_168)) { - x_171 = lean_alloc_ctor(0, 6, 0); -} else { - x_171 = x_168; -} -lean_ctor_set(x_171, 0, x_162); -lean_ctor_set(x_171, 1, x_163); -lean_ctor_set(x_171, 2, x_164); -lean_ctor_set(x_171, 3, x_165); -lean_ctor_set(x_171, 4, x_166); -lean_ctor_set(x_171, 5, x_170); -x_172 = lean_ctor_get(x_3, 0); -lean_inc(x_172); -x_173 = lean_ctor_get(x_3, 1); -lean_inc(x_173); -x_174 = lean_ctor_get(x_3, 2); -lean_inc(x_174); -x_175 = lean_ctor_get(x_3, 3); -lean_inc(x_175); -x_176 = lean_ctor_get(x_3, 4); -lean_inc(x_176); -x_177 = lean_ctor_get(x_3, 5); -lean_inc(x_177); -x_178 = lean_ctor_get(x_3, 6); -lean_inc(x_178); -x_179 = lean_ctor_get(x_3, 7); -lean_inc(x_179); -x_180 = lean_ctor_get(x_3, 8); -lean_inc(x_180); -x_181 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_182 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_183 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -if (lean_is_exclusive(x_3)) { - lean_ctor_release(x_3, 0); - lean_ctor_release(x_3, 1); - lean_ctor_release(x_3, 2); - lean_ctor_release(x_3, 3); - lean_ctor_release(x_3, 4); - lean_ctor_release(x_3, 5); - lean_ctor_release(x_3, 6); - lean_ctor_release(x_3, 7); - lean_ctor_release(x_3, 8); - lean_ctor_release(x_3, 9); - x_184 = x_3; -} else { - lean_dec_ref(x_3); - x_184 = lean_box(0); -} -if (lean_is_scalar(x_184)) { - x_185 = lean_alloc_ctor(0, 10, 3); -} else { - x_185 = x_184; -} -lean_ctor_set(x_185, 0, x_172); -lean_ctor_set(x_185, 1, x_173); -lean_ctor_set(x_185, 2, x_174); -lean_ctor_set(x_185, 3, x_175); -lean_ctor_set(x_185, 4, x_176); -lean_ctor_set(x_185, 5, x_177); -lean_ctor_set(x_185, 6, x_178); -lean_ctor_set(x_185, 7, x_179); -lean_ctor_set(x_185, 8, x_180); -lean_ctor_set(x_185, 9, x_167); -lean_ctor_set_uint8(x_185, sizeof(void*)*10, x_181); -lean_ctor_set_uint8(x_185, sizeof(void*)*10 + 1, x_182); -lean_ctor_set_uint8(x_185, sizeof(void*)*10 + 2, x_183); -x_186 = l_Lean_Elab_Term_getCurrMacroScope(x_185, x_171); -lean_dec(x_185); -x_187 = lean_ctor_get(x_186, 0); -lean_inc(x_187); -x_188 = lean_ctor_get(x_186, 1); -lean_inc(x_188); -lean_dec(x_186); -x_189 = l_Lean_Elab_Term_getMainModule___rarg(x_188); -x_190 = lean_ctor_get(x_189, 0); -lean_inc(x_190); -x_191 = lean_ctor_get(x_189, 1); -lean_inc(x_191); -if (lean_is_exclusive(x_189)) { - lean_ctor_release(x_189, 0); - lean_ctor_release(x_189, 1); - x_192 = x_189; -} else { - lean_dec_ref(x_189); - x_192 = lean_box(0); -} -x_193 = lean_box(0); -x_194 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; -x_195 = l_Lean_addMacroScope(x_190, x_194, x_187); -x_196 = lean_box(0); -x_197 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; -x_198 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_198, 0, x_193); -lean_ctor_set(x_198, 1, x_197); -lean_ctor_set(x_198, 2, x_195); -lean_ctor_set(x_198, 3, x_196); -x_199 = l_Array_empty___closed__1; -x_200 = lean_array_push(x_199, x_198); -x_201 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_202 = lean_array_push(x_200, x_201); -x_203 = l_Lean_mkTermIdFromIdent___closed__2; -x_204 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_204, 0, x_203); -lean_ctor_set(x_204, 1, x_202); -lean_inc(x_204); -x_205 = lean_array_push(x_2, x_204); -x_206 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_206, 0, x_204); -lean_ctor_set(x_206, 1, x_205); -if (lean_is_scalar(x_192)) { - x_207 = lean_alloc_ctor(0, 2, 0); -} else { - x_207 = x_192; -} -lean_ctor_set(x_207, 0, x_206); -lean_ctor_set(x_207, 1, x_191); -return x_207; +x_60 = lean_unsigned_to_nat(1u); +x_61 = lean_nat_add(x_4, x_60); +x_62 = lean_ctor_get(x_3, 0); +lean_inc(x_62); +lean_dec(x_3); +x_63 = lean_box(0); +x_64 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__3; +x_65 = l_Lean_addMacroScope(x_62, x_64, x_4); +x_66 = lean_box(0); +x_67 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__2; +x_68 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_68, 0, x_63); +lean_ctor_set(x_68, 1, x_67); +lean_ctor_set(x_68, 2, x_65); +lean_ctor_set(x_68, 3, x_66); +x_69 = l_Array_empty___closed__1; +x_70 = lean_array_push(x_69, x_68); +x_71 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_72 = lean_array_push(x_70, x_71); +x_73 = l_Lean_mkTermIdFromIdent___closed__2; +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +lean_inc(x_74); +x_75 = lean_array_push(x_2, x_74); +x_76 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_61); +return x_77; } } } else { -lean_object* x_208; lean_object* x_209; +lean_object* x_78; lean_object* x_79; lean_dec(x_6); lean_dec(x_5); lean_dec(x_3); -x_208 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_208, 0, x_1); -lean_ctor_set(x_208, 1, x_2); -x_209 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_4); -return x_209; +x_78 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_78, 0, x_1); +lean_ctor_set(x_78, 1, x_2); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_4); +return x_79; } } else { -lean_object* x_210; lean_object* x_211; +lean_object* x_80; lean_object* x_81; lean_dec(x_3); -x_210 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_210, 0, x_1); -lean_ctor_set(x_210, 1, x_2); -x_211 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_211, 0, x_210); -lean_ctor_set(x_211, 1, x_4); -return x_211; +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_1); +lean_ctor_set(x_80, 1, x_2); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_4); +return x_81; } } } @@ -11265,81 +10927,75 @@ return x_6; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_object* x_7; lean_object* x_8; uint8_t x_9; x_7 = l_Array_empty___closed__1; -lean_inc(x_2); x_8 = l___private_Init_Lean_Elab_Term_5__expandCDot___main(x_1, x_7, x_2, x_3); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_dec(x_9); -x_13 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_10); -lean_dec(x_2); -x_14 = lean_ctor_get(x_13, 1); -lean_inc(x_14); -lean_dec(x_13); -x_15 = l_Lean_Elab_Term_getMainModule___rarg(x_14); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) { -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_17 = lean_ctor_get(x_15, 0); -lean_dec(x_17); -x_18 = lean_unsigned_to_nat(0u); -x_19 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_12, x_12, x_18, x_7); +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; +x_10 = lean_ctor_get(x_8, 0); +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_unsigned_to_nat(0u); +x_14 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_12, x_12, x_13, x_7); lean_dec(x_12); -x_20 = l_Lean_nullKind___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_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_23 = lean_array_push(x_22, x_21); -x_24 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_25 = lean_array_push(x_23, x_24); -x_26 = lean_array_push(x_25, x_11); -x_27 = l_Lean_Parser_Term_fun___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 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_15, 0, x_29); -return x_15; +x_15 = l_Lean_nullKind___closed__2; +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +x_17 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_18 = lean_array_push(x_17, x_16); +x_19 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_20 = lean_array_push(x_18, x_19); +x_21 = lean_array_push(x_20, x_11); +x_22 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_8, 0, x_24); +return x_8; } else { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_30 = lean_ctor_get(x_15, 1); -lean_inc(x_30); -lean_dec(x_15); -x_31 = lean_unsigned_to_nat(0u); -x_32 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_12, x_12, x_31, x_7); -lean_dec(x_12); -x_33 = l_Lean_nullKind___closed__2; -x_34 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -x_35 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_36 = lean_array_push(x_35, x_34); -x_37 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_38 = lean_array_push(x_36, x_37); -x_39 = lean_array_push(x_38, x_11); -x_40 = l_Lean_Parser_Term_fun___elambda__1___closed__2; -x_41 = lean_alloc_ctor(1, 2, 0); +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_25 = lean_ctor_get(x_8, 0); +x_26 = lean_ctor_get(x_8, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_8); +x_27 = lean_ctor_get(x_25, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_unsigned_to_nat(0u); +x_30 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_28, x_28, x_29, x_7); +lean_dec(x_28); +x_31 = l_Lean_nullKind___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_Term_expandCDot_x3f___closed__2; +x_34 = lean_array_push(x_33, x_32); +x_35 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_36 = lean_array_push(x_34, x_35); +x_37 = lean_array_push(x_36, x_27); +x_38 = l_Lean_Parser_Term_fun___elambda__1___closed__2; +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_37); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_39); +x_41 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_39); -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_41); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_30); -return x_43; +lean_ctor_set(x_41, 1, x_26); +return x_41; } } } @@ -11728,7 +11384,7 @@ lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_inc(x_1); x_25 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_25, 0, x_1); -x_26 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; +x_26 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; x_27 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); @@ -19629,6 +19285,7 @@ x_7 = lean_nat_dec_lt(x_6, x_2); if (x_7 == 0) { lean_object* x_8; +lean_dec(x_4); lean_dec(x_2); x_8 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_8, 0, x_3); @@ -19637,57 +19294,48 @@ return x_8; } else { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +lean_object* x_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_9 = lean_unsigned_to_nat(1u); x_10 = lean_nat_sub(x_2, x_9); lean_dec(x_2); x_11 = l_Lean_Syntax_inhabited; x_12 = lean_array_get(x_11, x_1, x_10); -x_13 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_5); -x_14 = lean_ctor_get(x_13, 0); +x_13 = lean_ctor_get(x_4, 1); +lean_inc(x_13); +x_14 = lean_ctor_get(x_4, 0); lean_inc(x_14); -x_15 = lean_ctor_get(x_13, 1); -lean_inc(x_15); -lean_dec(x_13); -x_16 = l_Lean_Elab_Term_getMainModule___rarg(x_15); -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_16, 1); -lean_inc(x_18); -lean_dec(x_16); -x_19 = lean_box(0); -x_20 = l___private_Init_Lean_Elab_Term_10__mkPairsAux___main___closed__7; -x_21 = l_Lean_addMacroScope(x_17, x_20, x_14); -x_22 = l___private_Init_Lean_Elab_Term_10__mkPairsAux___main___closed__3; -x_23 = l___private_Init_Lean_Elab_Term_10__mkPairsAux___main___closed__9; -x_24 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_24, 0, x_19); -lean_ctor_set(x_24, 1, x_22); -lean_ctor_set(x_24, 2, x_21); -lean_ctor_set(x_24, 3, x_23); -x_25 = l_Array_empty___closed__1; -x_26 = lean_array_push(x_25, x_24); -x_27 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; -x_28 = lean_array_push(x_26, x_27); -x_29 = l_Lean_mkTermIdFromIdent___closed__2; -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -x_31 = lean_array_push(x_25, x_30); -x_32 = lean_array_push(x_25, x_12); -x_33 = lean_array_push(x_32, x_3); -x_34 = l_Lean_nullKind___closed__2; -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_34); -lean_ctor_set(x_35, 1, x_33); -x_36 = lean_array_push(x_31, x_35); -x_37 = l_Lean_mkAppStx___closed__8; -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_36); +x_15 = lean_box(0); +x_16 = l___private_Init_Lean_Elab_Term_10__mkPairsAux___main___closed__7; +x_17 = l_Lean_addMacroScope(x_14, x_16, x_13); +x_18 = l___private_Init_Lean_Elab_Term_10__mkPairsAux___main___closed__3; +x_19 = l___private_Init_Lean_Elab_Term_10__mkPairsAux___main___closed__9; +x_20 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_20, 0, x_15); +lean_ctor_set(x_20, 1, x_18); +lean_ctor_set(x_20, 2, x_17); +lean_ctor_set(x_20, 3, x_19); +x_21 = l_Array_empty___closed__1; +x_22 = lean_array_push(x_21, x_20); +x_23 = l___private_Init_Lean_Elab_Term_5__expandCDot___main___closed__4; +x_24 = lean_array_push(x_22, x_23); +x_25 = l_Lean_mkTermIdFromIdent___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 = lean_array_push(x_21, x_26); +x_28 = lean_array_push(x_21, x_12); +x_29 = lean_array_push(x_28, x_3); +x_30 = l_Lean_nullKind___closed__2; +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +x_32 = lean_array_push(x_27, x_31); +x_33 = l_Lean_mkAppStx___closed__8; +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); x_2 = x_10; -x_3 = x_38; -x_5 = x_18; +x_3 = x_34; goto _start; } } @@ -19697,7 +19345,6 @@ _start: { lean_object* x_6; x_6 = l___private_Init_Lean_Elab_Term_10__mkPairsAux___main(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); lean_dec(x_1); return x_6; } @@ -19715,7 +19362,6 @@ _start: { lean_object* x_6; x_6 = l___private_Init_Lean_Elab_Term_10__mkPairsAux(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); lean_dec(x_1); return x_6; } @@ -19738,7 +19384,6 @@ _start: { lean_object* x_4; x_4 = l_Lean_Elab_Term_mkPairs(x_1, x_2, x_3); -lean_dec(x_2); lean_dec(x_1); return x_4; } @@ -19746,66 +19391,126 @@ return x_4; lean_object* l___private_Init_Lean_Elab_Term_11__elabCDot(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; lean_object* x_6; -lean_inc(x_3); +lean_object* x_5; lean_object* x_6; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; +x_35 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_36 = lean_ctor_get(x_35, 0); +lean_inc(x_36); +x_37 = lean_ctor_get(x_35, 1); +lean_inc(x_37); +lean_dec(x_35); +x_38 = l_Lean_Elab_Term_getEnv___rarg(x_37); +x_39 = lean_ctor_get(x_38, 1); +lean_inc(x_39); +x_40 = lean_ctor_get(x_38, 0); +lean_inc(x_40); +lean_dec(x_38); +x_41 = !lean_is_exclusive(x_39); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_42 = lean_ctor_get(x_39, 5); +x_43 = lean_environment_main_module(x_40); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_36); lean_inc(x_1); -x_5 = l_Lean_Elab_Term_expandCDot_x3f(x_1, x_3, x_4); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; uint8_t x_8; lean_object* x_9; -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_elabTermAux___main(x_2, x_8, x_1, x_3, x_7); -return x_9; +x_45 = l_Lean_Elab_Term_expandCDot_x3f(x_1, x_44, x_42); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +lean_ctor_set(x_39, 5, x_47); +x_5 = x_46; +x_6 = x_39; +goto block_34; } else { -lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_10 = lean_ctor_get(x_5, 1); -lean_inc(x_10); -lean_dec(x_5); -x_11 = lean_ctor_get(x_6, 0); -lean_inc(x_11); -lean_dec(x_6); -x_12 = !lean_is_exclusive(x_3); -if (x_12 == 0) +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_48 = lean_ctor_get(x_39, 0); +x_49 = lean_ctor_get(x_39, 1); +x_50 = lean_ctor_get(x_39, 2); +x_51 = lean_ctor_get(x_39, 3); +x_52 = lean_ctor_get(x_39, 4); +x_53 = lean_ctor_get(x_39, 5); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_39); +x_54 = lean_environment_main_module(x_40); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_36); +lean_inc(x_1); +x_56 = l_Lean_Elab_Term_expandCDot_x3f(x_1, x_55, x_53); +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 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_59, 0, x_48); +lean_ctor_set(x_59, 1, x_49); +lean_ctor_set(x_59, 2, x_50); +lean_ctor_set(x_59, 3, x_51); +lean_ctor_set(x_59, 4, x_52); +lean_ctor_set(x_59, 5, x_58); +x_5 = x_57; +x_6 = x_59; +goto block_34; +} +block_34: { -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; -x_13 = lean_ctor_get(x_3, 8); -lean_inc(x_11); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_1); -lean_ctor_set(x_14, 1, x_11); -x_15 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -lean_ctor_set(x_3, 8, x_15); -x_16 = 1; -x_17 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_16, x_11, x_3, x_10); -return x_17; +if (lean_obj_tag(x_5) == 0) +{ +uint8_t x_7; lean_object* x_8; +x_7 = 1; +x_8 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_7, x_1, x_3, x_6); +return x_8; } else { -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; -x_18 = lean_ctor_get(x_3, 0); -x_19 = lean_ctor_get(x_3, 1); -x_20 = lean_ctor_get(x_3, 2); -x_21 = lean_ctor_get(x_3, 3); -x_22 = lean_ctor_get(x_3, 4); -x_23 = lean_ctor_get(x_3, 5); -x_24 = lean_ctor_get(x_3, 6); -x_25 = lean_ctor_get(x_3, 7); -x_26 = lean_ctor_get(x_3, 8); -x_27 = lean_ctor_get(x_3, 9); -x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_29 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_30 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -lean_inc(x_27); -lean_inc(x_26); +lean_object* x_9; uint8_t x_10; +x_9 = lean_ctor_get(x_5, 0); +lean_inc(x_9); +lean_dec(x_5); +x_10 = !lean_is_exclusive(x_3); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +x_11 = lean_ctor_get(x_3, 8); +lean_inc(x_9); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_1); +lean_ctor_set(x_12, 1, x_9); +x_13 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_13, 0, x_12); +lean_ctor_set(x_13, 1, x_11); +lean_ctor_set(x_3, 8, x_13); +x_14 = 1; +x_15 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_14, x_9, x_3, x_6); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; uint8_t x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; +x_16 = lean_ctor_get(x_3, 0); +x_17 = lean_ctor_get(x_3, 1); +x_18 = lean_ctor_get(x_3, 2); +x_19 = lean_ctor_get(x_3, 3); +x_20 = lean_ctor_get(x_3, 4); +x_21 = lean_ctor_get(x_3, 5); +x_22 = lean_ctor_get(x_3, 6); +x_23 = lean_ctor_get(x_3, 7); +x_24 = lean_ctor_get(x_3, 8); +x_25 = lean_ctor_get(x_3, 9); +x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +x_27 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); +x_28 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); lean_inc(x_25); lean_inc(x_24); lean_inc(x_23); @@ -19814,31 +19519,34 @@ lean_inc(x_21); lean_inc(x_20); lean_inc(x_19); lean_inc(x_18); +lean_inc(x_17); +lean_inc(x_16); lean_dec(x_3); -lean_inc(x_11); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_1); -lean_ctor_set(x_31, 1, x_11); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_26); -x_33 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_33, 0, x_18); -lean_ctor_set(x_33, 1, x_19); -lean_ctor_set(x_33, 2, x_20); -lean_ctor_set(x_33, 3, x_21); -lean_ctor_set(x_33, 4, x_22); -lean_ctor_set(x_33, 5, x_23); -lean_ctor_set(x_33, 6, x_24); -lean_ctor_set(x_33, 7, x_25); -lean_ctor_set(x_33, 8, x_32); -lean_ctor_set(x_33, 9, x_27); -lean_ctor_set_uint8(x_33, sizeof(void*)*10, x_28); -lean_ctor_set_uint8(x_33, sizeof(void*)*10 + 1, x_29); -lean_ctor_set_uint8(x_33, sizeof(void*)*10 + 2, x_30); -x_34 = 1; -x_35 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_34, x_11, x_33, x_10); -return x_35; +lean_inc(x_9); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_1); +lean_ctor_set(x_29, 1, x_9); +x_30 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_24); +x_31 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_31, 0, x_16); +lean_ctor_set(x_31, 1, x_17); +lean_ctor_set(x_31, 2, x_18); +lean_ctor_set(x_31, 3, x_19); +lean_ctor_set(x_31, 4, x_20); +lean_ctor_set(x_31, 5, x_21); +lean_ctor_set(x_31, 6, x_22); +lean_ctor_set(x_31, 7, x_23); +lean_ctor_set(x_31, 8, x_30); +lean_ctor_set(x_31, 9, x_25); +lean_ctor_set_uint8(x_31, sizeof(void*)*10, x_26); +lean_ctor_set_uint8(x_31, sizeof(void*)*10 + 1, x_27); +lean_ctor_set_uint8(x_31, sizeof(void*)*10 + 2, x_28); +x_32 = 1; +x_33 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_32, x_9, x_31, x_6); +return x_33; +} } } } @@ -19936,366 +19644,325 @@ return x_3; lean_object* l_Lean_Elab_Term_elabParen(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -uint8_t x_5; lean_object* x_148; uint8_t x_149; -x_148 = l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___elambda__1___closed__2; +lean_object* x_5; lean_object* x_6; uint8_t x_32; lean_object* x_173; uint8_t x_174; +x_173 = l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___elambda__1___closed__2; lean_inc(x_1); -x_149 = l_Lean_Syntax_isOfKind(x_1, x_148); -if (x_149 == 0) +x_174 = l_Lean_Syntax_isOfKind(x_1, x_173); +if (x_174 == 0) { -uint8_t x_150; -x_150 = 0; -x_5 = x_150; -goto block_147; +uint8_t x_175; +x_175 = 0; +x_32 = x_175; +goto block_172; } else { -lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154; -x_151 = l_Lean_Syntax_getArgs(x_1); -x_152 = lean_array_get_size(x_151); -lean_dec(x_151); -x_153 = lean_unsigned_to_nat(3u); -x_154 = lean_nat_dec_eq(x_152, x_153); -lean_dec(x_152); -x_5 = x_154; -goto block_147; +lean_object* x_176; lean_object* x_177; lean_object* x_178; uint8_t x_179; +x_176 = l_Lean_Syntax_getArgs(x_1); +x_177 = lean_array_get_size(x_176); +lean_dec(x_176); +x_178 = lean_unsigned_to_nat(3u); +x_179 = lean_nat_dec_eq(x_177, x_178); +lean_dec(x_177); +x_32 = x_179; +goto block_172; } -block_147: +block_31: { -uint8_t x_6; -x_6 = l_coeDecidableEq(x_5); -if (x_6 == 0) +uint8_t x_7; +x_7 = !lean_is_exclusive(x_3); +if (x_7 == 0) { -lean_object* x_7; lean_object* x_8; -lean_dec(x_2); -x_7 = l_Lean_Elab_Term_elabParen___closed__3; -x_8 = l_Lean_Elab_Term_throwError___rarg(x_1, x_7, x_3, x_4); -lean_dec(x_1); -return x_8; +lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; +x_8 = lean_ctor_get(x_3, 8); +lean_inc(x_5); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_1); +lean_ctor_set(x_9, 1, x_5); +x_10 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_10, 0, x_9); +lean_ctor_set(x_10, 1, x_8); +lean_ctor_set(x_3, 8, x_10); +x_11 = 1; +x_12 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_11, x_5, x_3, x_6); +return x_12; } else { -lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_132; uint8_t x_133; -x_9 = lean_unsigned_to_nat(1u); -x_10 = l_Lean_Syntax_getArg(x_1, x_9); -x_132 = l_Lean_nullKind___closed__2; -lean_inc(x_10); -x_133 = l_Lean_Syntax_isOfKind(x_10, x_132); -if (x_133 == 0) -{ -uint8_t x_134; -x_134 = l_Lean_Elab_Term_elabParen___closed__4; -if (x_134 == 0) -{ -uint8_t x_135; -x_135 = 0; -x_11 = x_135; -goto block_131; -} -else -{ -lean_object* x_136; lean_object* x_137; -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_136 = l_Lean_Elab_Term_elabParen___closed__7; -x_137 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_137, 0, x_136); -lean_ctor_set(x_137, 1, x_4); -return x_137; -} -} -else -{ -lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; uint8_t x_142; -x_138 = l_Lean_Syntax_getArgs(x_10); -x_139 = lean_array_get_size(x_138); -lean_dec(x_138); -x_140 = lean_unsigned_to_nat(0u); -x_141 = lean_nat_dec_eq(x_139, x_140); -x_142 = l_coeDecidableEq(x_141); -if (x_142 == 0) -{ -lean_object* x_143; uint8_t x_144; -x_143 = lean_unsigned_to_nat(2u); -x_144 = lean_nat_dec_eq(x_139, x_143); -lean_dec(x_139); -x_11 = x_144; -goto block_131; -} -else -{ -lean_object* x_145; lean_object* x_146; -lean_dec(x_139); -lean_dec(x_10); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_145 = l_Lean_Elab_Term_elabParen___closed__7; -x_146 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_146, 0, x_145); -lean_ctor_set(x_146, 1, x_4); -return x_146; -} -} -block_131: -{ -uint8_t x_12; -x_12 = l_coeDecidableEq(x_11); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -lean_dec(x_10); -lean_dec(x_2); -x_13 = l_Lean_Elab_Term_elabParen___closed__3; -x_14 = l_Lean_Elab_Term_throwError___rarg(x_1, x_13, x_3, x_4); -lean_dec(x_1); -return x_14; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; uint8_t x_20; -x_15 = lean_unsigned_to_nat(0u); -x_16 = l_Lean_Syntax_getArg(x_10, x_15); -x_17 = l_Lean_Syntax_getArg(x_10, x_9); -lean_dec(x_10); -x_18 = l_Lean_nullKind___closed__2; +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; uint8_t x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; +x_13 = lean_ctor_get(x_3, 0); +x_14 = lean_ctor_get(x_3, 1); +x_15 = lean_ctor_get(x_3, 2); +x_16 = lean_ctor_get(x_3, 3); +x_17 = lean_ctor_get(x_3, 4); +x_18 = lean_ctor_get(x_3, 5); +x_19 = lean_ctor_get(x_3, 6); +x_20 = lean_ctor_get(x_3, 7); +x_21 = lean_ctor_get(x_3, 8); +x_22 = lean_ctor_get(x_3, 9); +x_23 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +x_24 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); +x_25 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); +lean_inc(x_22); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); lean_inc(x_17); -x_19 = l_Lean_Syntax_isOfKind(x_17, x_18); -if (x_19 == 0) -{ -uint8_t x_127; -x_127 = 0; -x_20 = x_127; -goto block_126; -} -else -{ -lean_object* x_128; lean_object* x_129; uint8_t x_130; -x_128 = l_Lean_Syntax_getArgs(x_17); -x_129 = lean_array_get_size(x_128); -lean_dec(x_128); -x_130 = lean_nat_dec_eq(x_129, x_9); -lean_dec(x_129); -x_20 = x_130; -goto block_126; -} -block_126: -{ -uint8_t x_21; -x_21 = l_coeDecidableEq(x_20); -if (x_21 == 0) -{ -if (x_19 == 0) -{ -uint8_t x_22; -lean_dec(x_17); -x_22 = l_Lean_Elab_Term_elabParen___closed__4; -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -lean_dec(x_16); -lean_dec(x_2); -x_23 = l_Lean_Elab_Term_elabParen___closed__3; -x_24 = l_Lean_Elab_Term_throwError___rarg(x_1, x_23, x_3, x_4); -lean_dec(x_1); -return x_24; -} -else -{ -lean_object* x_25; -lean_dec(x_1); -x_25 = l___private_Init_Lean_Elab_Term_11__elabCDot(x_16, x_2, x_3, x_4); -return x_25; -} -} -else -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; uint8_t x_29; -x_26 = l_Lean_Syntax_getArgs(x_17); -lean_dec(x_17); -x_27 = lean_array_get_size(x_26); -lean_dec(x_26); -x_28 = lean_nat_dec_eq(x_27, x_15); -lean_dec(x_27); -x_29 = l_coeDecidableEq(x_28); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; -lean_dec(x_16); -lean_dec(x_2); -x_30 = l_Lean_Elab_Term_elabParen___closed__3; -x_31 = l_Lean_Elab_Term_throwError___rarg(x_1, x_30, x_3, x_4); -lean_dec(x_1); -return x_31; -} -else -{ -lean_object* x_32; -lean_dec(x_1); -x_32 = l___private_Init_Lean_Elab_Term_11__elabCDot(x_16, x_2, x_3, x_4); -return x_32; -} -} -} -else -{ -lean_object* x_33; uint8_t x_34; lean_object* x_74; uint8_t x_75; -x_33 = l_Lean_Syntax_getArg(x_17, x_15); -lean_dec(x_17); -x_74 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; -lean_inc(x_33); -x_75 = l_Lean_Syntax_isOfKind(x_33, x_74); -if (x_75 == 0) -{ -uint8_t x_76; -x_76 = l_Lean_Elab_Term_elabParen___closed__4; -if (x_76 == 0) -{ -lean_object* x_77; uint8_t x_78; -x_77 = l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; -lean_inc(x_33); -x_78 = l_Lean_Syntax_isOfKind(x_33, x_77); -if (x_78 == 0) -{ -uint8_t x_79; -x_79 = 0; -x_34 = x_79; -goto block_73; -} -else -{ -lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; -x_80 = l_Lean_Syntax_getArgs(x_33); -x_81 = lean_array_get_size(x_80); -lean_dec(x_80); -x_82 = lean_unsigned_to_nat(2u); -x_83 = lean_nat_dec_eq(x_81, x_82); -lean_dec(x_81); -x_34 = x_83; -goto block_73; -} -} -else -{ -lean_object* x_84; lean_object* x_85; -lean_dec(x_2); -x_84 = l_Lean_Syntax_getArg(x_33, x_9); -lean_dec(x_33); -lean_inc(x_3); -x_85 = l_Lean_Elab_Term_elabType(x_84, x_3, x_4); -if (lean_obj_tag(x_85) == 0) -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_86 = lean_ctor_get(x_85, 0); -lean_inc(x_86); -x_87 = lean_ctor_get(x_85, 1); -lean_inc(x_87); -lean_dec(x_85); -x_88 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_88, 0, x_86); -lean_inc(x_3); -lean_inc(x_88); -x_89 = l___private_Init_Lean_Elab_Term_11__elabCDot(x_16, x_88, x_3, x_87); -if (lean_obj_tag(x_89) == 0) -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = l_Lean_Elab_Term_ensureHasType(x_1, x_88, x_90, x_3, x_91); -return x_92; -} -else -{ -uint8_t x_93; -lean_dec(x_88); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); lean_dec(x_3); +lean_inc(x_5); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_1); +lean_ctor_set(x_26, 1, x_5); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_26); +lean_ctor_set(x_27, 1, x_21); +x_28 = lean_alloc_ctor(0, 10, 3); +lean_ctor_set(x_28, 0, x_13); +lean_ctor_set(x_28, 1, x_14); +lean_ctor_set(x_28, 2, x_15); +lean_ctor_set(x_28, 3, x_16); +lean_ctor_set(x_28, 4, x_17); +lean_ctor_set(x_28, 5, x_18); +lean_ctor_set(x_28, 6, x_19); +lean_ctor_set(x_28, 7, x_20); +lean_ctor_set(x_28, 8, x_27); +lean_ctor_set(x_28, 9, x_22); +lean_ctor_set_uint8(x_28, sizeof(void*)*10, x_23); +lean_ctor_set_uint8(x_28, sizeof(void*)*10 + 1, x_24); +lean_ctor_set_uint8(x_28, sizeof(void*)*10 + 2, x_25); +x_29 = 1; +x_30 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_29, x_5, x_28, x_6); +return x_30; +} +} +block_172: +{ +uint8_t x_33; +x_33 = l_coeDecidableEq(x_32); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_2); +x_34 = l_Lean_Elab_Term_elabParen___closed__3; +x_35 = l_Lean_Elab_Term_throwError___rarg(x_1, x_34, x_3, x_4); lean_dec(x_1); -x_93 = !lean_is_exclusive(x_89); -if (x_93 == 0) -{ -return x_89; +return x_35; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_89, 0); -x_95 = lean_ctor_get(x_89, 1); -lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_89); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -return x_96; -} -} +lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_157; uint8_t x_158; +x_36 = lean_unsigned_to_nat(1u); +x_37 = l_Lean_Syntax_getArg(x_1, x_36); +x_157 = l_Lean_nullKind___closed__2; +lean_inc(x_37); +x_158 = l_Lean_Syntax_isOfKind(x_37, x_157); +if (x_158 == 0) +{ +uint8_t x_159; +x_159 = l_Lean_Elab_Term_elabParen___closed__4; +if (x_159 == 0) +{ +uint8_t x_160; +x_160 = 0; +x_38 = x_160; +goto block_156; } else { -uint8_t x_97; -lean_dec(x_16); +lean_object* x_161; lean_object* x_162; +lean_dec(x_37); lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_97 = !lean_is_exclusive(x_85); -if (x_97 == 0) -{ -return x_85; +x_161 = l_Lean_Elab_Term_elabParen___closed__7; +x_162 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_162, 0, x_161); +lean_ctor_set(x_162, 1, x_4); +return x_162; +} } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_98 = lean_ctor_get(x_85, 0); -x_99 = lean_ctor_get(x_85, 1); -lean_inc(x_99); -lean_inc(x_98); -lean_dec(x_85); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -return x_100; +lean_object* x_163; lean_object* x_164; lean_object* x_165; uint8_t x_166; uint8_t x_167; +x_163 = l_Lean_Syntax_getArgs(x_37); +x_164 = lean_array_get_size(x_163); +lean_dec(x_163); +x_165 = lean_unsigned_to_nat(0u); +x_166 = lean_nat_dec_eq(x_164, x_165); +x_167 = l_coeDecidableEq(x_166); +if (x_167 == 0) +{ +lean_object* x_168; uint8_t x_169; +x_168 = lean_unsigned_to_nat(2u); +x_169 = lean_nat_dec_eq(x_164, x_168); +lean_dec(x_164); +x_38 = x_169; +goto block_156; } +else +{ +lean_object* x_170; lean_object* x_171; +lean_dec(x_164); +lean_dec(x_37); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_170 = l_Lean_Elab_Term_elabParen___closed__7; +x_171 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_4); +return x_171; +} +} +block_156: +{ +uint8_t x_39; +x_39 = l_coeDecidableEq(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_37); +lean_dec(x_2); +x_40 = l_Lean_Elab_Term_elabParen___closed__3; +x_41 = l_Lean_Elab_Term_throwError___rarg(x_1, x_40, x_3, x_4); +lean_dec(x_1); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; uint8_t x_47; +x_42 = lean_unsigned_to_nat(0u); +x_43 = l_Lean_Syntax_getArg(x_37, x_42); +x_44 = l_Lean_Syntax_getArg(x_37, x_36); +lean_dec(x_37); +x_45 = l_Lean_nullKind___closed__2; +lean_inc(x_44); +x_46 = l_Lean_Syntax_isOfKind(x_44, x_45); +if (x_46 == 0) +{ +uint8_t x_152; +x_152 = 0; +x_47 = x_152; +goto block_151; +} +else +{ +lean_object* x_153; lean_object* x_154; uint8_t x_155; +x_153 = l_Lean_Syntax_getArgs(x_44); +x_154 = lean_array_get_size(x_153); +lean_dec(x_153); +x_155 = lean_nat_dec_eq(x_154, x_36); +lean_dec(x_154); +x_47 = x_155; +goto block_151; +} +block_151: +{ +uint8_t x_48; +x_48 = l_coeDecidableEq(x_47); +if (x_48 == 0) +{ +if (x_46 == 0) +{ +uint8_t x_49; +lean_dec(x_44); +x_49 = l_Lean_Elab_Term_elabParen___closed__4; +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; +lean_dec(x_43); +lean_dec(x_2); +x_50 = l_Lean_Elab_Term_elabParen___closed__3; +x_51 = l_Lean_Elab_Term_throwError___rarg(x_1, x_50, x_3, x_4); +lean_dec(x_1); +return x_51; +} +else +{ +lean_object* x_52; +lean_dec(x_1); +x_52 = l___private_Init_Lean_Elab_Term_11__elabCDot(x_43, x_2, x_3, x_4); +return x_52; +} +} +else +{ +lean_object* x_53; lean_object* x_54; uint8_t x_55; uint8_t x_56; +x_53 = l_Lean_Syntax_getArgs(x_44); +lean_dec(x_44); +x_54 = lean_array_get_size(x_53); +lean_dec(x_53); +x_55 = lean_nat_dec_eq(x_54, x_42); +lean_dec(x_54); +x_56 = l_coeDecidableEq(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_43); +lean_dec(x_2); +x_57 = l_Lean_Elab_Term_elabParen___closed__3; +x_58 = l_Lean_Elab_Term_throwError___rarg(x_1, x_57, x_3, x_4); +lean_dec(x_1); +return x_58; +} +else +{ +lean_object* x_59; +lean_dec(x_1); +x_59 = l___private_Init_Lean_Elab_Term_11__elabCDot(x_43, x_2, x_3, x_4); +return x_59; } } } else { -lean_object* x_101; lean_object* x_102; lean_object* x_103; uint8_t x_104; uint8_t x_105; -x_101 = l_Lean_Syntax_getArgs(x_33); -x_102 = lean_array_get_size(x_101); -lean_dec(x_101); -x_103 = lean_unsigned_to_nat(2u); -x_104 = lean_nat_dec_eq(x_102, x_103); -lean_dec(x_102); -x_105 = l_coeDecidableEq(x_104); -if (x_105 == 0) +lean_object* x_60; uint8_t x_61; lean_object* x_99; uint8_t x_100; +x_60 = l_Lean_Syntax_getArg(x_44, x_42); +lean_dec(x_44); +x_99 = l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; +lean_inc(x_60); +x_100 = l_Lean_Syntax_isOfKind(x_60, x_99); +if (x_100 == 0) { -lean_object* x_106; uint8_t x_107; -x_106 = l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; -lean_inc(x_33); -x_107 = l_Lean_Syntax_isOfKind(x_33, x_106); -if (x_107 == 0) +uint8_t x_101; +x_101 = l_Lean_Elab_Term_elabParen___closed__4; +if (x_101 == 0) { -uint8_t x_108; -x_108 = 0; -x_34 = x_108; -goto block_73; +lean_object* x_102; uint8_t x_103; +x_102 = l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; +lean_inc(x_60); +x_103 = l_Lean_Syntax_isOfKind(x_60, x_102); +if (x_103 == 0) +{ +uint8_t x_104; +x_104 = 0; +x_61 = x_104; +goto block_98; } else { -x_34 = x_104; -goto block_73; +lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108; +x_105 = l_Lean_Syntax_getArgs(x_60); +x_106 = lean_array_get_size(x_105); +lean_dec(x_105); +x_107 = lean_unsigned_to_nat(2u); +x_108 = lean_nat_dec_eq(x_106, x_107); +lean_dec(x_106); +x_61 = x_108; +goto block_98; } } else { lean_object* x_109; lean_object* x_110; lean_dec(x_2); -x_109 = l_Lean_Syntax_getArg(x_33, x_9); -lean_dec(x_33); +x_109 = l_Lean_Syntax_getArg(x_60, x_36); +lean_dec(x_60); lean_inc(x_3); x_110 = l_Lean_Elab_Term_elabType(x_109, x_3, x_4); if (lean_obj_tag(x_110) == 0) @@ -20310,7 +19977,7 @@ x_113 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_113, 0, x_111); lean_inc(x_3); lean_inc(x_113); -x_114 = l___private_Init_Lean_Elab_Term_11__elabCDot(x_16, x_113, x_3, x_112); +x_114 = l___private_Init_Lean_Elab_Term_11__elabCDot(x_43, x_113, x_3, x_112); if (lean_obj_tag(x_114) == 0) { lean_object* x_115; lean_object* x_116; lean_object* x_117; @@ -20351,7 +20018,7 @@ return x_121; else { uint8_t x_122; -lean_dec(x_16); +lean_dec(x_43); lean_dec(x_3); lean_dec(x_1); x_122 = !lean_is_exclusive(x_110); @@ -20375,111 +20042,220 @@ return x_125; } } } -block_73: -{ -uint8_t x_35; -x_35 = l_coeDecidableEq(x_34); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; -lean_dec(x_33); -lean_dec(x_16); -lean_dec(x_2); -x_36 = l_Lean_Elab_Term_elabParen___closed__3; -x_37 = l_Lean_Elab_Term_throwError___rarg(x_1, x_36, x_3, x_4); -lean_dec(x_1); -return x_37; -} else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; -x_38 = l_Lean_Syntax_getArg(x_33, x_9); -lean_dec(x_33); -x_39 = l_Lean_Syntax_getArgs(x_38); -lean_dec(x_38); -x_40 = l_Lean_mkOptionalNode___closed__2; -x_41 = lean_array_push(x_40, x_16); -x_42 = lean_unsigned_to_nat(2u); -x_43 = l_Array_empty___closed__1; -x_44 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_42, x_39, x_15, x_43); -lean_dec(x_39); -x_45 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_44, x_44, x_15, x_41); -lean_dec(x_44); -x_46 = l_Lean_Elab_Term_mkPairs(x_45, x_3, x_4); -lean_dec(x_45); -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); -lean_dec(x_46); -x_49 = !lean_is_exclusive(x_3); -if (x_49 == 0) +lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; uint8_t x_130; +x_126 = l_Lean_Syntax_getArgs(x_60); +x_127 = lean_array_get_size(x_126); +lean_dec(x_126); +x_128 = lean_unsigned_to_nat(2u); +x_129 = lean_nat_dec_eq(x_127, x_128); +lean_dec(x_127); +x_130 = l_coeDecidableEq(x_129); +if (x_130 == 0) { -lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54; -x_50 = lean_ctor_get(x_3, 8); -lean_inc(x_47); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_1); -lean_ctor_set(x_51, 1, x_47); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_50); -lean_ctor_set(x_3, 8, x_52); -x_53 = 1; -x_54 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_53, x_47, x_3, x_48); -return x_54; -} -else -{ -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; uint8_t x_66; uint8_t x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; lean_object* x_72; -x_55 = lean_ctor_get(x_3, 0); -x_56 = lean_ctor_get(x_3, 1); -x_57 = lean_ctor_get(x_3, 2); -x_58 = lean_ctor_get(x_3, 3); -x_59 = lean_ctor_get(x_3, 4); -x_60 = lean_ctor_get(x_3, 5); -x_61 = lean_ctor_get(x_3, 6); -x_62 = lean_ctor_get(x_3, 7); -x_63 = lean_ctor_get(x_3, 8); -x_64 = lean_ctor_get(x_3, 9); -x_65 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_66 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -x_67 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 2); -lean_inc(x_64); -lean_inc(x_63); -lean_inc(x_62); -lean_inc(x_61); +lean_object* x_131; uint8_t x_132; +x_131 = l_Lean_Parser_Term_tupleTail___elambda__1___closed__2; lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_inc(x_57); -lean_inc(x_56); -lean_inc(x_55); +x_132 = l_Lean_Syntax_isOfKind(x_60, x_131); +if (x_132 == 0) +{ +uint8_t x_133; +x_133 = 0; +x_61 = x_133; +goto block_98; +} +else +{ +x_61 = x_129; +goto block_98; +} +} +else +{ +lean_object* x_134; lean_object* x_135; +lean_dec(x_2); +x_134 = l_Lean_Syntax_getArg(x_60, x_36); +lean_dec(x_60); +lean_inc(x_3); +x_135 = l_Lean_Elab_Term_elabType(x_134, x_3, x_4); +if (lean_obj_tag(x_135) == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_136 = lean_ctor_get(x_135, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_135, 1); +lean_inc(x_137); +lean_dec(x_135); +x_138 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_138, 0, x_136); +lean_inc(x_3); +lean_inc(x_138); +x_139 = l___private_Init_Lean_Elab_Term_11__elabCDot(x_43, x_138, x_3, x_137); +if (lean_obj_tag(x_139) == 0) +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_140 = lean_ctor_get(x_139, 0); +lean_inc(x_140); +x_141 = lean_ctor_get(x_139, 1); +lean_inc(x_141); +lean_dec(x_139); +x_142 = l_Lean_Elab_Term_ensureHasType(x_1, x_138, x_140, x_3, x_141); +return x_142; +} +else +{ +uint8_t x_143; +lean_dec(x_138); lean_dec(x_3); -lean_inc(x_47); -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_1); -lean_ctor_set(x_68, 1, x_47); -x_69 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_69, 0, x_68); -lean_ctor_set(x_69, 1, x_63); -x_70 = lean_alloc_ctor(0, 10, 3); -lean_ctor_set(x_70, 0, x_55); -lean_ctor_set(x_70, 1, x_56); -lean_ctor_set(x_70, 2, x_57); -lean_ctor_set(x_70, 3, x_58); -lean_ctor_set(x_70, 4, x_59); -lean_ctor_set(x_70, 5, x_60); -lean_ctor_set(x_70, 6, x_61); -lean_ctor_set(x_70, 7, x_62); -lean_ctor_set(x_70, 8, x_69); -lean_ctor_set(x_70, 9, x_64); -lean_ctor_set_uint8(x_70, sizeof(void*)*10, x_65); -lean_ctor_set_uint8(x_70, sizeof(void*)*10 + 1, x_66); -lean_ctor_set_uint8(x_70, sizeof(void*)*10 + 2, x_67); -x_71 = 1; -x_72 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_71, x_47, x_70, x_48); -return x_72; +lean_dec(x_1); +x_143 = !lean_is_exclusive(x_139); +if (x_143 == 0) +{ +return x_139; +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; +x_144 = lean_ctor_get(x_139, 0); +x_145 = lean_ctor_get(x_139, 1); +lean_inc(x_145); +lean_inc(x_144); +lean_dec(x_139); +x_146 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_146, 0, x_144); +lean_ctor_set(x_146, 1, x_145); +return x_146; +} +} +} +else +{ +uint8_t x_147; +lean_dec(x_43); +lean_dec(x_3); +lean_dec(x_1); +x_147 = !lean_is_exclusive(x_135); +if (x_147 == 0) +{ +return x_135; +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +x_148 = lean_ctor_get(x_135, 0); +x_149 = lean_ctor_get(x_135, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_135); +x_150 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +return x_150; +} +} +} +} +block_98: +{ +uint8_t x_62; +x_62 = l_coeDecidableEq(x_61); +if (x_62 == 0) +{ +lean_object* x_63; lean_object* x_64; +lean_dec(x_60); +lean_dec(x_43); +lean_dec(x_2); +x_63 = l_Lean_Elab_Term_elabParen___closed__3; +x_64 = l_Lean_Elab_Term_throwError___rarg(x_1, x_63, x_3, x_4); +lean_dec(x_1); +return x_64; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; +x_65 = l_Lean_Syntax_getArg(x_60, x_36); +lean_dec(x_60); +x_66 = l_Lean_Syntax_getArgs(x_65); +lean_dec(x_65); +x_67 = l_Lean_mkOptionalNode___closed__2; +x_68 = lean_array_push(x_67, x_43); +x_69 = lean_unsigned_to_nat(2u); +x_70 = l_Array_empty___closed__1; +x_71 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_69, x_66, x_42, x_70); +lean_dec(x_66); +x_72 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_71, x_71, x_42, x_68); +lean_dec(x_71); +x_73 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4); +x_74 = lean_ctor_get(x_73, 0); +lean_inc(x_74); +x_75 = lean_ctor_get(x_73, 1); +lean_inc(x_75); +lean_dec(x_73); +x_76 = l_Lean_Elab_Term_getEnv___rarg(x_75); +x_77 = lean_ctor_get(x_76, 1); +lean_inc(x_77); +x_78 = lean_ctor_get(x_76, 0); +lean_inc(x_78); +lean_dec(x_76); +x_79 = !lean_is_exclusive(x_77); +if (x_79 == 0) +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_80 = lean_ctor_get(x_77, 5); +x_81 = lean_environment_main_module(x_78); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_81); +lean_ctor_set(x_82, 1, x_74); +x_83 = l_Lean_Elab_Term_mkPairs(x_72, x_82, x_80); +lean_dec(x_72); +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +lean_ctor_set(x_77, 5, x_85); +x_5 = x_84; +x_6 = x_77; +goto block_31; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_86 = lean_ctor_get(x_77, 0); +x_87 = lean_ctor_get(x_77, 1); +x_88 = lean_ctor_get(x_77, 2); +x_89 = lean_ctor_get(x_77, 3); +x_90 = lean_ctor_get(x_77, 4); +x_91 = lean_ctor_get(x_77, 5); +lean_inc(x_91); +lean_inc(x_90); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_77); +x_92 = lean_environment_main_module(x_78); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_74); +x_94 = l_Lean_Elab_Term_mkPairs(x_72, x_93, x_91); +lean_dec(x_72); +x_95 = lean_ctor_get(x_94, 0); +lean_inc(x_95); +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_97 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_97, 0, x_86); +lean_ctor_set(x_97, 1, x_87); +lean_ctor_set(x_97, 2, x_88); +lean_ctor_set(x_97, 3, x_89); +lean_ctor_set(x_97, 4, x_90); +lean_ctor_set(x_97, 5, x_96); +x_5 = x_95; +x_6 = x_97; +goto block_31; } } } diff --git a/stage0/stdlib/Init/Lean/Elab/TermBinders.c b/stage0/stdlib/Init/Lean/Elab/TermBinders.c index ccd6dd88b6..5df4bfbfe3 100644 --- a/stage0/stdlib/Init/Lean/Elab/TermBinders.c +++ b/stage0/stdlib/Init/Lean/Elab/TermBinders.c @@ -31,6 +31,7 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabFun___closed__1; lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__3; extern lean_object* l_Lean_List_format___rarg___closed__2; uint8_t lean_name_eq(lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; 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*); @@ -51,7 +52,6 @@ uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_8__getFunBinderIdsAux_x3f(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_umapMAux___main___at___private_Init_Lean_Elab_TermBinders_5__matchBinder___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_TermBinders_10__expandFunBindersAux___main___closed__2; -extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; lean_object* l___private_Init_Lean_Elab_TermBinders_4__expandBinderModifier___closed__4; lean_object* l___private_Init_Lean_Elab_TermBinders_9__getFunBinderIds_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*); @@ -118,6 +118,7 @@ lean_object* l_Lean_Elab_Term_elabFun___boxed(lean_object*, lean_object*, lean_o lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__3; lean_object* l_Lean_Elab_Term_logTrace(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +extern lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; lean_object* l___private_Init_Lean_Elab_TermBinders_6__elabBinderViews___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__2; @@ -242,7 +243,6 @@ extern lean_object* l___private_Init_Lean_Elab_Util_8__regTraceClasses___closed_ lean_object* l_Lean_Elab_Term_elabForall(lean_object*, lean_object*, lean_object*, lean_object*); 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; lean_object* l_Lean_Elab_Term_elabArrow___lambda__1___closed__3; extern lean_object* l_Lean_Parser_Term_simpleBinder___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__1; @@ -18386,7 +18386,7 @@ lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean lean_inc(x_2); x_23 = lean_alloc_ctor(4, 1, 0); lean_ctor_set(x_23, 0, x_2); -x_24 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; +x_24 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; x_25 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_25, 0, x_23); lean_ctor_set(x_25, 1, x_24); @@ -18396,7 +18396,7 @@ lean_ctor_set(x_26, 0, x_14); x_27 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_27, 0, x_25); lean_ctor_set(x_27, 1, x_26); -x_28 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; +x_28 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; x_29 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); diff --git a/stage0/stdlib/Init/Lean/Meta/ExprDefEq.c b/stage0/stdlib/Init/Lean/Meta/ExprDefEq.c index 03c8ad93c1..a609c45b12 100644 --- a/stage0/stdlib/Init/Lean/Meta/ExprDefEq.c +++ b/stage0/stdlib/Init/Lean/Meta/ExprDefEq.c @@ -14,88 +14,103 @@ extern "C" { #endif lean_object* l_Lean_Meta_CheckAssignmentQuick_check___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__1___boxed(lean_object*, lean_object*); extern lean_object* l___private_Init_Lean_Meta_Check_2__checkLambdaLet___lambda__2___closed__1; -lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__4___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*); extern lean_object* l_Lean_Meta_Exception_toTraceMessageData___closed__51; lean_object* lean_expr_update_forall(lean_object*, uint8_t, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__9; +lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_9__cache___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignmentQuick_check___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_mvarId_x21(lean_object*); lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___spec__1___closed__1; lean_object* l___private_Init_Lean_Meta_ExprDefEq_25__isDefEqLeftRight___closed__2; -lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__visit(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__9; +uint8_t l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__2(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__4; lean_object* l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__2; +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_44__unstuckMVar___at___private_Init_Lean_Meta_ExprDefEq_45__isDefEqOnFailure___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_28__unfoldBothDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_unreachable_x21___rarg(lean_object*); lean_object* l_Lean_Meta_isClassExpensive___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_27__unfold(lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__simpAssignmentArgAux(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_Basic_4__forallTelescopeReducingAuxAux___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_16__simpAssignmentArgAux(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_setIsExprDefEqAuxRef(lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__2; +lean_object* l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAux___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_checkAssignment___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_mdata(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_isExprDefEq___closed__2; lean_object* l___private_Init_Lean_Util_Trace_2__addNode___at_Lean_Meta_check___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__4; uint8_t lean_name_eq(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__8; +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; lean_object* l___private_Init_Lean_Meta_ExprDefEq_32__unfoldReducibeDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_checkAssignmentAux___closed__1; lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_ExprDefEq_4__isDefEqArgs___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateMData_x21___closed__2; +lean_object* l_Lean_Meta_checkAssignmentAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkFVar(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__cache___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__visit(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_get_expr_assignment(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_4__forallTelescopeReducingAuxAux___main___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__1; lean_object* l_Lean_mkMVar(lean_object*); lean_object* l_Lean_Meta_isClassQuick___main(lean_object*, lean_object*, lean_object*); extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Meta_isExprDefEqAux(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isDefEqBindingDomain___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; lean_object* l_Lean_Meta_isProofQuick___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick___main___closed__7; -lean_object* l___private_Init_Lean_Meta_ExprDefEq_9__visit(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_checkAssignmentAux(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_arrayExpr_toMessageData___main(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__1; -lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkFVar___at_Lean_Meta_CheckAssignment_check___main___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_Lean_MonadCache; uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_containsFVar(lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_CheckAssignment_liftMetaM___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_4__isDefEqArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WHNF_getStuckMVar___main___at___private_Init_Lean_Meta_ExprDefEq_45__isDefEqOnFailure___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_26__tryHeuristic(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__visit(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_23__isDefEqLeft(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_4__forallTelescopeReducingAuxAux___main___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalContext_findFVar_x3f(lean_object*, lean_object*); -lean_object* l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_WHNF_getStuckMVar___main___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isTypeCorrect(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick___main___closed__3; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__1; lean_object* l_Lean_Expr_getAppFn___main(lean_object*); lean_object* l___private_Init_Lean_Util_Trace_3__getResetTraces___at_Lean_Meta_check___spec__1___rarg(lean_object*); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_26__tryHeuristic___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_getAppArgs___closed__1; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApproxAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_26__tryHeuristic___spec__1___lambda__2___closed__1; lean_object* l_Lean_WHNF_unfoldDefinitionAux___at_Lean_Meta_unfoldDefinition_x3f___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_isLevelDefEqAux___main___closed__5; -lean_object* l_HashMapImp_moveEntries___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_25__isDefEqLeftRight___closed__1; lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_26__tryHeuristic___spec__1___lambda__2___closed__2; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; uint8_t l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_26__tryHeuristic___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); uint8_t l_Lean_isReducible(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__1; @@ -106,54 +121,55 @@ lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_26__tryHeur extern lean_object* l_Lean_Meta_isLevelDefEqAux___main___closed__3; lean_object* l_Lean_Meta_isExprDefEqAuxImpl(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getConst___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Environment_isProjectionFn(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__1(lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__processAssignmentFOApproxAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_26__tryHeuristic___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateLambdaE_x21___closed__1; lean_object* l_Lean_WHNF_isQuotRecStuck___at___private_Init_Lean_Meta_ExprDefEq_45__isDefEqOnFailure___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_21__isDeltaCandidate___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppNumArgsAux___main(lean_object*, lean_object*); uint8_t lean_metavar_ctx_is_expr_assigned(lean_object*, lean_object*); lean_object* l_Lean_Meta_isClass(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at_Lean_Meta_isExprDefEqAuxImpl___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_CheckAssignment_assignToConstFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_check(lean_object*, lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_checkAssignment___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_44__unstuckMVar___closed__1; lean_object* l_Lean_RecursorVal_getMajorIdx(lean_object*); -lean_object* l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__2(lean_object*, lean_object*); +lean_object* l_HashMapImp_expand___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__3(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_2__isDefEqArgsFirstPass___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_23__isDefEqLeft___closed__1; +lean_object* l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__2(lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev_range(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__12; -lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_HashMapImp_expand___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__3(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WHNF_isRecStuck___at___private_Init_Lean_Meta_ExprDefEq_45__isDefEqOnFailure___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isDefEqBindingDomain(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_5__isDefEqBindingAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_31__unfoldDefEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_22__isListLevelDefEq(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__1(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constLevels_x21(lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_31__unfoldDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_isTypeCorrect___closed__1; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_16__simpAssignmentArgAux___main(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_23__isDefEqLeft___closed__4; -lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Literal_beq(lean_object*, lean_object*); lean_object* l_Lean_Meta_isExprDefEqAuxImpl___closed__1; lean_object* l_Lean_Meta_isLevelDefEqAux___main(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick___main___closed__6; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__3; lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignmentQuick_check___main___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_36__isDelayedAssignedHead(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_26__tryHeuristic___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -168,22 +184,29 @@ lean_object* l_Lean_Expr_fvarId_x21(lean_object*); extern lean_object* l_Lean_formatEntry___closed__2; lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__11; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_name(lean_object*); lean_object* l___private_Init_Lean_Meta_LevelDefEq_12__processPostponed(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__5; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_44__unstuckMVar___closed__2; extern lean_object* l_Lean_MessageData_coeOfArrayExpr___closed__2; lean_object* l_Lean_Meta_isDefEqOffset(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_24__isDefEqRight___closed__1; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; lean_object* l___private_Init_Lean_Meta_ExprDefEq_33__unfoldNonProjFnDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_5__isDefEqBindingAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_Basic_4__forallTelescopeReducingAuxAux___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t l_Lean_Expr_hash(lean_object*); lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_30__unfoldComparingHeadsDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at_Lean_Meta_isExprDefEqAuxImpl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_23__isDefEqLeft___closed__3; -uint8_t l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__2(lean_object*, lean_object*); +lean_object* l_mkHashMap___at_Lean_Meta_checkAssignmentAux___spec__1(lean_object*); extern lean_object* l_PersistentArray_empty___closed__3; lean_object* l___private_Init_Lean_Meta_ExprDefEq_6__isDefEqBinding___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_checkMVar(lean_object*, lean_object*, lean_object*, lean_object*); @@ -193,26 +216,24 @@ lean_object* l___private_Init_Lean_Meta_ExprDefEq_43__isDefEqWHNF___at_Lean_Meta lean_object* l_Lean_MetavarContext_assignExpr(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_LevelDefEq_13__restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Exception_toTraceMessageData___closed__4; -lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__simpAssignmentArgAux___main(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_TransparencyMode_beq(uint8_t, uint8_t); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___main(lean_object*, lean_object*, lean_object*, 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_Meta_ExprDefEq_37__isSynthetic(lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Expr_updateApp_x21___closed__1; lean_object* l___private_Init_Lean_Meta_ExprDefEq_40__isLetFVar(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__7; uint8_t l_Array_isEmpty___rarg(lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick___main___closed__5; lean_object* l_Lean_Meta_isEtaUnassignedMVar(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkLambda(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFreshId___rarg(lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_6__isDefEqBinding(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_checkAssignment(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_mkHashMapImp___rarg(lean_object*); lean_object* l___private_Init_Lean_Expr_3__getAppArgsAux___main(lean_object*, lean_object*, lean_object*); -lean_object* l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isDefEqBindingDomain___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_5__isDefEqBindingAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__7; lean_object* lean_expr_update_let(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isForall(lean_object*); lean_object* l_Lean_Meta_whnf(lean_object*, lean_object*, lean_object*); @@ -220,19 +241,20 @@ lean_object* l___private_Init_Lean_Meta_ExprDefEq_43__isDefEqWHNF(lean_object*, lean_object* l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_33__unfoldNonProjFnDefEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkFVar(lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4; uint8_t l_Lean_Expr_Data_binderInfo(uint64_t); lean_object* l___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_hints(lean_object*); +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isLambda(lean_object*); +lean_object* l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__6(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___closed__1; lean_object* l___private_Init_Lean_Meta_ExprDefEq_30__unfoldComparingHeadsDefEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_update_proj(lean_object*, lean_object*); -lean_object* l_AssocList_foldlM___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__5(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_3__isDefEqArgsAux___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Array_contains___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateProj_x21___closed__2; lean_object* l_Lean_Meta_isDefEqBindingDomain___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_37__isSynthetic___boxed(lean_object*, lean_object*, lean_object*); @@ -243,25 +265,21 @@ lean_object* l_Lean_LocalDecl_type(lean_object*); lean_object* l_Lean_LocalDecl_value_x3f(lean_object*); lean_object* lean_local_ctx_mk_local_decl(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); lean_object* l___private_Init_Lean_Meta_ExprDefEq_38__isAssignable(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__10; lean_object* l_Lean_Meta_try___at_Lean_Meta_isExprDefEqAuxImpl___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_assignExprMVar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignmentQuick_check___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_WHNF_isQuotRecStuck___at___private_Init_Lean_Meta_ExprDefEq_45__isDefEqOnFailure___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__1; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__5; lean_object* l_Lean_Meta_CheckAssignment_getMCtx(lean_object*); lean_object* l_Lean_WHNF_isRecStuck___at___private_Init_Lean_Meta_ExprDefEq_45__isDefEqOnFailure___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_MetavarKind_isSyntheticOpaque(uint8_t); lean_object* l_Lean_WHNF_whnfCore___main___at_Lean_Meta_whnfCore___spec__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_ParamInfo_inhabited; -lean_object* l_HashMapImp_insert___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__1(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__2; lean_object* l_Lean_Meta_getLocalDecl(lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); uint8_t lean_expr_equal(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_44__unstuckMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -280,6 +298,7 @@ lean_object* l_Lean_Meta_CheckAssignmentQuick_check(uint8_t, uint8_t, lean_objec lean_object* l___private_Init_Lean_Meta_ExprDefEq_24__isDefEqRight___closed__2; extern lean_object* l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAux___at___private_Init_Lean_Meta_FunInfo_6__getFunInfoAux___spec__2___closed__1; uint8_t l_Bool_toLBool(uint8_t); +lean_object* l_AssocList_foldlM___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__5(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_45__isDefEqOnFailure(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_4__isDefEqArgs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_synthPending(lean_object*, lean_object*, lean_object*); @@ -288,14 +307,18 @@ lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___ extern lean_object* l_Lean_Meta_isExprDefEqAuxRef; lean_object* l___private_Init_Lean_Meta_ExprDefEq_2__isDefEqArgsFirstPass___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignmentQuick_check___main(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__3; +lean_object* l_Lean_Meta_CheckAssignment_liftMetaM(lean_object*); lean_object* l_Lean_Meta_CheckAssignment_check___main(lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Lean_Meta_ExprDefEq_29__sameHeadSymbol(lean_object*, lean_object*); +lean_object* l_HashMapImp_insert___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick___main___closed__2; lean_object* lean_nat_mul(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_2__isDefEqArgsFirstPass___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getFunInfoNArgs(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_metavar_ctx_find_decl(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_16__simpAssignmentArg(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isFVar(lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__simpAssignmentArg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_44__unstuckMVar___at___private_Init_Lean_Meta_ExprDefEq_45__isDefEqOnFailure___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateLet_x21___closed__1; lean_object* lean_expr_update_lambda(lean_object*, uint8_t, lean_object*, lean_object*); @@ -303,25 +326,23 @@ lean_object* l_Lean_Meta_inferType(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_38__isAssignable___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_io_ref_set(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__1___boxed(lean_object*, lean_object*); lean_object* lean_expr_instantiate_rev(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__6; uint8_t l_Lean_Meta_TransparencyMode_lt(uint8_t, uint8_t); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_26__tryHeuristic___spec__1___lambda__2___closed__3; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_24__isDefEqRight(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isDelayedAssigned(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_25__isDefEqLeftRight(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_3__isDefEqArgsAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkLambda(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__6; -lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_Inhabited; lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__3; +lean_object* l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__2___boxed(lean_object*, lean_object*); uint8_t l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__cache(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Meta_checkAssignment___closed__1; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_9__cache(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_mkAuxMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_21__isDeltaCandidate(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__3; @@ -329,16 +350,16 @@ lean_object* l___private_Init_Lean_Meta_ExprDefEq_32__unfoldReducibeDefEq___boxe lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAux___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick___main(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_mkHashMap___at_Lean_Meta_checkAssignment___spec__2(lean_object*); lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Lean_Meta_ExprDefEq_39__etaEq(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_35__isAssigned(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_getMCtx___boxed(lean_object*); lean_object* l_Lean_Meta_setIsExprDefEqAuxRef___closed__1; lean_object* l___private_Init_Lean_Expr_9__etaExpandedAux___main(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__8; lean_object* l___private_Init_Lean_Meta_ExprDefEq_35__isAssigned___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignment_check___main___closed__1; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__4; +lean_object* l_HashMapImp_moveEntries___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__4(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; lean_object* l_Lean_MetavarContext_getDecl(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_34__isDefEqDelta(lean_object*, lean_object*, lean_object*, lean_object*); @@ -346,38 +367,39 @@ lean_object* l___private_Init_Lean_Meta_ExprDefEq_3__isDefEqArgsAux(lean_object* lean_object* l_Lean_Meta_isReadOnlyOrSyntheticOpaqueExprMVar(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick___main___closed__1; lean_object* l_Lean_Meta_tryL(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__1; +lean_object* l_unsafeCast(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_5__isDefEqBindingAux___main(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_local_ctx_find(lean_object*, lean_object*); -lean_object* lean_expr_update_app(lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; +lean_object* l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_CheckAssignmentQuick_check___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_HasBeq; lean_object* l_Lean_mkBVar(lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_20__processAssignment(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__2; lean_object* l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_hasFVar(lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_29__sameHeadSymbol___boxed(lean_object*, lean_object*); lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_26__tryHeuristic___spec__1___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_2__isDefEqArgsFirstPass(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__1; lean_object* l___private_Init_Lean_Meta_ExprDefEq_39__etaEq___boxed(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__3; +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_41__isDefEqQuick___main___closed__4; lean_object* l___private_Init_Lean_Meta_ExprDefEq_27__unfold___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Expr_updateForallE_x21___closed__1; lean_object* lean_name_mk_numeral(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalContext_isSubPrefixOf(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Meta_ExprDefEq_46__regTraceClasses(lean_object*); lean_object* l_Lean_Meta_CheckAssignment_getMCtx___rarg(lean_object*); +uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_ReducibilityHints_lt(lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__processAssignmentFOApproxAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApproxAux(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_isLet(lean_object*); -lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__2; lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); @@ -5048,7 +5070,2031 @@ lean_dec(x_2); return x_5; } } -lean_object* l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__2(lean_object* x_1, lean_object* x_2) { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("assign"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Meta_isExprDefEq___closed__2; +x_2 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("checkTypes"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; +x_2 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__3; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("typeMismatch"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; +x_2 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__5; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__4; +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_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_formatEntry___closed__2; +x_2 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; lean_object* x_495; uint8_t x_496; +x_495 = lean_ctor_get(x_4, 4); +lean_inc(x_495); +x_496 = lean_ctor_get_uint8(x_495, sizeof(void*)*1); +lean_dec(x_495); +if (x_496 == 0) +{ +uint8_t x_497; +x_497 = 0; +x_5 = x_497; +x_6 = x_4; +goto block_494; +} +else +{ +lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; +x_498 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__4; +x_499 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_498, x_3, x_4); +x_500 = lean_ctor_get(x_499, 0); +lean_inc(x_500); +x_501 = lean_ctor_get(x_499, 1); +lean_inc(x_501); +lean_dec(x_499); +x_502 = lean_unbox(x_500); +lean_dec(x_500); +x_5 = x_502; +x_6 = x_501; +goto block_494; +} +block_494: +{ +if (x_5 == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +lean_object* x_8; uint8_t x_9; +x_8 = lean_ctor_get(x_6, 4); +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +uint8_t x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; lean_object* x_36; lean_object* x_37; lean_object* x_57; +x_10 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); +x_11 = 0; +lean_ctor_set_uint8(x_8, sizeof(void*)*1, x_11); +lean_inc(x_3); +lean_inc(x_1); +x_57 = l_Lean_Meta_inferType(x_1, x_3, x_6); +if (lean_obj_tag(x_57) == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +lean_inc(x_3); +lean_inc(x_2); +x_60 = l_Lean_Meta_inferType(x_2, x_3, x_59); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; +x_61 = lean_ctor_get(x_3, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 0); +lean_inc(x_62); +x_63 = lean_ctor_get(x_60, 1); +lean_inc(x_63); +lean_dec(x_60); +x_64 = lean_ctor_get(x_3, 1); +lean_inc(x_64); +x_65 = lean_ctor_get(x_3, 2); +lean_inc(x_65); +x_66 = lean_ctor_get(x_3, 3); +lean_inc(x_66); +x_67 = lean_ctor_get(x_3, 4); +lean_inc(x_67); +x_68 = !lean_is_exclusive(x_61); +if (x_68 == 0) +{ +uint8_t x_69; lean_object* x_70; lean_object* x_71; +x_69 = 1; +lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 6, x_69); +x_70 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_70, 0, x_61); +lean_ctor_set(x_70, 1, x_64); +lean_ctor_set(x_70, 2, x_65); +lean_ctor_set(x_70, 3, x_66); +lean_ctor_set(x_70, 4, x_67); +lean_inc(x_62); +lean_inc(x_58); +x_71 = l_Lean_Meta_isExprDefEqAux(x_58, x_62, x_70, x_63); +if (lean_obj_tag(x_71) == 0) +{ +lean_object* x_72; uint8_t x_73; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +x_73 = lean_unbox(x_72); +if (x_73 == 0) +{ +lean_object* x_74; lean_object* x_75; uint8_t x_76; +x_74 = lean_ctor_get(x_71, 1); +lean_inc(x_74); +lean_dec(x_71); +x_75 = lean_ctor_get(x_74, 4); +lean_inc(x_75); +x_76 = lean_ctor_get_uint8(x_75, sizeof(void*)*1); +lean_dec(x_75); +if (x_76 == 0) +{ +uint8_t x_77; +lean_dec(x_62); +lean_dec(x_58); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_77 = lean_unbox(x_72); +lean_dec(x_72); +x_12 = x_77; +x_13 = x_74; +goto block_35; +} +else +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; +x_78 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6; +x_79 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_78, x_3, x_74); +x_80 = lean_ctor_get(x_79, 0); +lean_inc(x_80); +x_81 = lean_unbox(x_80); +lean_dec(x_80); +if (x_81 == 0) +{ +lean_object* x_82; uint8_t x_83; +lean_dec(x_62); +lean_dec(x_58); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_82 = lean_ctor_get(x_79, 1); +lean_inc(x_82); +lean_dec(x_79); +x_83 = lean_unbox(x_72); +lean_dec(x_72); +x_12 = x_83; +x_13 = x_82; +goto block_35; +} +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; 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; uint8_t x_99; +x_84 = lean_ctor_get(x_79, 1); +lean_inc(x_84); +lean_dec(x_79); +x_85 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_85, 0, x_1); +x_86 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; +x_87 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_87, 0, x_85); +lean_ctor_set(x_87, 1, x_86); +x_88 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_88, 0, x_58); +x_89 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +x_90 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; +x_91 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +x_92 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_92, 0, x_2); +x_93 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +x_94 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_86); +x_95 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_95, 0, x_62); +x_96 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +x_97 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_78, x_96, x_3, x_84); +lean_dec(x_3); +x_98 = lean_ctor_get(x_97, 1); +lean_inc(x_98); +lean_dec(x_97); +x_99 = lean_unbox(x_72); +lean_dec(x_72); +x_12 = x_99; +x_13 = x_98; +goto block_35; +} +} +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; +lean_dec(x_62); +lean_dec(x_58); +x_100 = lean_ctor_get(x_71, 1); +lean_inc(x_100); +lean_dec(x_71); +x_101 = l_Lean_Expr_mvarId_x21(x_1); +lean_dec(x_1); +x_102 = l_Lean_Meta_assignExprMVar(x_101, x_2, x_3, x_100); +lean_dec(x_3); +if (lean_obj_tag(x_102) == 0) +{ +lean_object* x_103; uint8_t x_104; +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +lean_dec(x_102); +x_104 = lean_unbox(x_72); +lean_dec(x_72); +x_12 = x_104; +x_13 = x_103; +goto block_35; +} +else +{ +lean_object* x_105; lean_object* x_106; +lean_dec(x_72); +x_105 = lean_ctor_get(x_102, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_102, 1); +lean_inc(x_106); +lean_dec(x_102); +x_36 = x_105; +x_37 = x_106; +goto block_56; +} +} +} +else +{ +lean_object* x_107; lean_object* x_108; +lean_dec(x_62); +lean_dec(x_58); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_107 = lean_ctor_get(x_71, 0); +lean_inc(x_107); +x_108 = lean_ctor_get(x_71, 1); +lean_inc(x_108); +lean_dec(x_71); +x_36 = x_107; +x_37 = x_108; +goto block_56; +} +} +else +{ +lean_object* x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +x_109 = lean_ctor_get(x_61, 0); +x_110 = lean_ctor_get_uint8(x_61, sizeof(void*)*1); +x_111 = lean_ctor_get_uint8(x_61, sizeof(void*)*1 + 1); +x_112 = lean_ctor_get_uint8(x_61, sizeof(void*)*1 + 2); +x_113 = lean_ctor_get_uint8(x_61, sizeof(void*)*1 + 3); +x_114 = lean_ctor_get_uint8(x_61, sizeof(void*)*1 + 4); +x_115 = lean_ctor_get_uint8(x_61, sizeof(void*)*1 + 5); +lean_inc(x_109); +lean_dec(x_61); +x_116 = 1; +x_117 = lean_alloc_ctor(0, 1, 7); +lean_ctor_set(x_117, 0, x_109); +lean_ctor_set_uint8(x_117, sizeof(void*)*1, x_110); +lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 1, x_111); +lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 2, x_112); +lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 3, x_113); +lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 4, x_114); +lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 5, x_115); +lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 6, x_116); +x_118 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_118, 0, x_117); +lean_ctor_set(x_118, 1, x_64); +lean_ctor_set(x_118, 2, x_65); +lean_ctor_set(x_118, 3, x_66); +lean_ctor_set(x_118, 4, x_67); +lean_inc(x_62); +lean_inc(x_58); +x_119 = l_Lean_Meta_isExprDefEqAux(x_58, x_62, x_118, x_63); +if (lean_obj_tag(x_119) == 0) +{ +lean_object* x_120; uint8_t x_121; +x_120 = lean_ctor_get(x_119, 0); +lean_inc(x_120); +x_121 = lean_unbox(x_120); +if (x_121 == 0) +{ +lean_object* x_122; lean_object* x_123; uint8_t x_124; +x_122 = lean_ctor_get(x_119, 1); +lean_inc(x_122); +lean_dec(x_119); +x_123 = lean_ctor_get(x_122, 4); +lean_inc(x_123); +x_124 = lean_ctor_get_uint8(x_123, sizeof(void*)*1); +lean_dec(x_123); +if (x_124 == 0) +{ +uint8_t x_125; +lean_dec(x_62); +lean_dec(x_58); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_125 = lean_unbox(x_120); +lean_dec(x_120); +x_12 = x_125; +x_13 = x_122; +goto block_35; +} +else +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; +x_126 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6; +x_127 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_126, x_3, x_122); +x_128 = lean_ctor_get(x_127, 0); +lean_inc(x_128); +x_129 = lean_unbox(x_128); +lean_dec(x_128); +if (x_129 == 0) +{ +lean_object* x_130; uint8_t x_131; +lean_dec(x_62); +lean_dec(x_58); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_130 = lean_ctor_get(x_127, 1); +lean_inc(x_130); +lean_dec(x_127); +x_131 = lean_unbox(x_120); +lean_dec(x_120); +x_12 = x_131; +x_13 = x_130; +goto block_35; +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; +x_132 = lean_ctor_get(x_127, 1); +lean_inc(x_132); +lean_dec(x_127); +x_133 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_133, 0, x_1); +x_134 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; +x_135 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_135, 0, x_133); +lean_ctor_set(x_135, 1, x_134); +x_136 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_136, 0, x_58); +x_137 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +x_138 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; +x_139 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_139, 0, x_137); +lean_ctor_set(x_139, 1, x_138); +x_140 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_140, 0, x_2); +x_141 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_141, 0, x_139); +lean_ctor_set(x_141, 1, x_140); +x_142 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_134); +x_143 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_143, 0, x_62); +x_144 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_144, 0, x_142); +lean_ctor_set(x_144, 1, x_143); +x_145 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_126, x_144, x_3, x_132); +lean_dec(x_3); +x_146 = lean_ctor_get(x_145, 1); +lean_inc(x_146); +lean_dec(x_145); +x_147 = lean_unbox(x_120); +lean_dec(x_120); +x_12 = x_147; +x_13 = x_146; +goto block_35; +} +} +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; +lean_dec(x_62); +lean_dec(x_58); +x_148 = lean_ctor_get(x_119, 1); +lean_inc(x_148); +lean_dec(x_119); +x_149 = l_Lean_Expr_mvarId_x21(x_1); +lean_dec(x_1); +x_150 = l_Lean_Meta_assignExprMVar(x_149, x_2, x_3, x_148); +lean_dec(x_3); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; uint8_t x_152; +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +lean_dec(x_150); +x_152 = lean_unbox(x_120); +lean_dec(x_120); +x_12 = x_152; +x_13 = x_151; +goto block_35; +} +else +{ +lean_object* x_153; lean_object* x_154; +lean_dec(x_120); +x_153 = lean_ctor_get(x_150, 0); +lean_inc(x_153); +x_154 = lean_ctor_get(x_150, 1); +lean_inc(x_154); +lean_dec(x_150); +x_36 = x_153; +x_37 = x_154; +goto block_56; +} +} +} +else +{ +lean_object* x_155; lean_object* x_156; +lean_dec(x_62); +lean_dec(x_58); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_155 = lean_ctor_get(x_119, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_119, 1); +lean_inc(x_156); +lean_dec(x_119); +x_36 = x_155; +x_37 = x_156; +goto block_56; +} +} +} +else +{ +lean_object* x_157; lean_object* x_158; +lean_dec(x_58); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_157 = lean_ctor_get(x_60, 0); +lean_inc(x_157); +x_158 = lean_ctor_get(x_60, 1); +lean_inc(x_158); +lean_dec(x_60); +x_36 = x_157; +x_37 = x_158; +goto block_56; +} +} +else +{ +lean_object* x_159; lean_object* x_160; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_159 = lean_ctor_get(x_57, 0); +lean_inc(x_159); +x_160 = lean_ctor_get(x_57, 1); +lean_inc(x_160); +lean_dec(x_57); +x_36 = x_159; +x_37 = x_160; +goto block_56; +} +block_35: +{ +uint8_t x_14; +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_13, 4); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +lean_ctor_set_uint8(x_15, sizeof(void*)*1, x_10); +x_17 = lean_box(x_12); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_13); +return x_18; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_19 = lean_ctor_get(x_15, 0); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set_uint8(x_20, sizeof(void*)*1, x_10); +lean_ctor_set(x_13, 4, x_20); +x_21 = lean_box(x_12); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_21); +lean_ctor_set(x_22, 1, x_13); +return x_22; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_23 = lean_ctor_get(x_13, 4); +x_24 = lean_ctor_get(x_13, 0); +x_25 = lean_ctor_get(x_13, 1); +x_26 = lean_ctor_get(x_13, 2); +x_27 = lean_ctor_get(x_13, 3); +x_28 = lean_ctor_get(x_13, 5); +lean_inc(x_28); +lean_inc(x_23); +lean_inc(x_27); +lean_inc(x_26); +lean_inc(x_25); +lean_inc(x_24); +lean_dec(x_13); +x_29 = lean_ctor_get(x_23, 0); +lean_inc(x_29); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + x_30 = x_23; +} else { + lean_dec_ref(x_23); + x_30 = lean_box(0); +} +if (lean_is_scalar(x_30)) { + x_31 = lean_alloc_ctor(0, 1, 1); +} else { + x_31 = x_30; +} +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set_uint8(x_31, sizeof(void*)*1, x_10); +x_32 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_32, 0, x_24); +lean_ctor_set(x_32, 1, x_25); +lean_ctor_set(x_32, 2, x_26); +lean_ctor_set(x_32, 3, x_27); +lean_ctor_set(x_32, 4, x_31); +lean_ctor_set(x_32, 5, x_28); +x_33 = lean_box(x_12); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +return x_34; +} +} +block_56: +{ +uint8_t x_38; +x_38 = !lean_is_exclusive(x_37); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = lean_ctor_get(x_37, 4); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +lean_object* x_41; +lean_ctor_set_uint8(x_39, sizeof(void*)*1, x_10); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_36); +lean_ctor_set(x_41, 1, x_37); +return x_41; +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_39, 0); +lean_inc(x_42); +lean_dec(x_39); +x_43 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_10); +lean_ctor_set(x_37, 4, x_43); +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_36); +lean_ctor_set(x_44, 1, x_37); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_45 = lean_ctor_get(x_37, 4); +x_46 = lean_ctor_get(x_37, 0); +x_47 = lean_ctor_get(x_37, 1); +x_48 = lean_ctor_get(x_37, 2); +x_49 = lean_ctor_get(x_37, 3); +x_50 = lean_ctor_get(x_37, 5); +lean_inc(x_50); +lean_inc(x_45); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_37); +x_51 = lean_ctor_get(x_45, 0); +lean_inc(x_51); +if (lean_is_exclusive(x_45)) { + lean_ctor_release(x_45, 0); + x_52 = x_45; +} else { + lean_dec_ref(x_45); + x_52 = lean_box(0); +} +if (lean_is_scalar(x_52)) { + x_53 = lean_alloc_ctor(0, 1, 1); +} else { + x_53 = x_52; +} +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_10); +x_54 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_54, 0, x_46); +lean_ctor_set(x_54, 1, x_47); +lean_ctor_set(x_54, 2, x_48); +lean_ctor_set(x_54, 3, x_49); +lean_ctor_set(x_54, 4, x_53); +lean_ctor_set(x_54, 5, x_50); +x_55 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_55, 0, x_36); +lean_ctor_set(x_55, 1, x_54); +return x_55; +} +} +} +else +{ +uint8_t x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; uint8_t x_165; lean_object* x_166; lean_object* x_181; lean_object* x_182; lean_object* x_196; +x_161 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); +x_162 = lean_ctor_get(x_8, 0); +lean_inc(x_162); +lean_dec(x_8); +x_163 = 0; +x_164 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_164, 0, x_162); +lean_ctor_set_uint8(x_164, sizeof(void*)*1, x_163); +lean_ctor_set(x_6, 4, x_164); +lean_inc(x_3); +lean_inc(x_1); +x_196 = l_Lean_Meta_inferType(x_1, x_3, x_6); +if (lean_obj_tag(x_196) == 0) +{ +lean_object* x_197; lean_object* x_198; lean_object* x_199; +x_197 = lean_ctor_get(x_196, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_196, 1); +lean_inc(x_198); +lean_dec(x_196); +lean_inc(x_3); +lean_inc(x_2); +x_199 = l_Lean_Meta_inferType(x_2, x_3, x_198); +if (lean_obj_tag(x_199) == 0) +{ +lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; uint8_t x_212; uint8_t x_213; lean_object* x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_200 = lean_ctor_get(x_3, 0); +lean_inc(x_200); +x_201 = lean_ctor_get(x_199, 0); +lean_inc(x_201); +x_202 = lean_ctor_get(x_199, 1); +lean_inc(x_202); +lean_dec(x_199); +x_203 = lean_ctor_get(x_3, 1); +lean_inc(x_203); +x_204 = lean_ctor_get(x_3, 2); +lean_inc(x_204); +x_205 = lean_ctor_get(x_3, 3); +lean_inc(x_205); +x_206 = lean_ctor_get(x_3, 4); +lean_inc(x_206); +x_207 = lean_ctor_get(x_200, 0); +lean_inc(x_207); +x_208 = lean_ctor_get_uint8(x_200, sizeof(void*)*1); +x_209 = lean_ctor_get_uint8(x_200, sizeof(void*)*1 + 1); +x_210 = lean_ctor_get_uint8(x_200, sizeof(void*)*1 + 2); +x_211 = lean_ctor_get_uint8(x_200, sizeof(void*)*1 + 3); +x_212 = lean_ctor_get_uint8(x_200, sizeof(void*)*1 + 4); +x_213 = lean_ctor_get_uint8(x_200, sizeof(void*)*1 + 5); +if (lean_is_exclusive(x_200)) { + lean_ctor_release(x_200, 0); + x_214 = x_200; +} else { + lean_dec_ref(x_200); + x_214 = lean_box(0); +} +x_215 = 1; +if (lean_is_scalar(x_214)) { + x_216 = lean_alloc_ctor(0, 1, 7); +} else { + x_216 = x_214; +} +lean_ctor_set(x_216, 0, x_207); +lean_ctor_set_uint8(x_216, sizeof(void*)*1, x_208); +lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 1, x_209); +lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 2, x_210); +lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 3, x_211); +lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 4, x_212); +lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 5, x_213); +lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 6, x_215); +x_217 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_217, 0, x_216); +lean_ctor_set(x_217, 1, x_203); +lean_ctor_set(x_217, 2, x_204); +lean_ctor_set(x_217, 3, x_205); +lean_ctor_set(x_217, 4, x_206); +lean_inc(x_201); +lean_inc(x_197); +x_218 = l_Lean_Meta_isExprDefEqAux(x_197, x_201, x_217, x_202); +if (lean_obj_tag(x_218) == 0) +{ +lean_object* x_219; uint8_t x_220; +x_219 = lean_ctor_get(x_218, 0); +lean_inc(x_219); +x_220 = lean_unbox(x_219); +if (x_220 == 0) +{ +lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_221 = lean_ctor_get(x_218, 1); +lean_inc(x_221); +lean_dec(x_218); +x_222 = lean_ctor_get(x_221, 4); +lean_inc(x_222); +x_223 = lean_ctor_get_uint8(x_222, sizeof(void*)*1); +lean_dec(x_222); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_201); +lean_dec(x_197); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_224 = lean_unbox(x_219); +lean_dec(x_219); +x_165 = x_224; +x_166 = x_221; +goto block_180; +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; +x_225 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6; +x_226 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_225, x_3, x_221); +x_227 = lean_ctor_get(x_226, 0); +lean_inc(x_227); +x_228 = lean_unbox(x_227); +lean_dec(x_227); +if (x_228 == 0) +{ +lean_object* x_229; uint8_t x_230; +lean_dec(x_201); +lean_dec(x_197); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_229 = lean_ctor_get(x_226, 1); +lean_inc(x_229); +lean_dec(x_226); +x_230 = lean_unbox(x_219); +lean_dec(x_219); +x_165 = x_230; +x_166 = x_229; +goto block_180; +} +else +{ +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; uint8_t x_246; +x_231 = lean_ctor_get(x_226, 1); +lean_inc(x_231); +lean_dec(x_226); +x_232 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_232, 0, x_1); +x_233 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; +x_234 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_234, 0, x_232); +lean_ctor_set(x_234, 1, x_233); +x_235 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_235, 0, x_197); +x_236 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_236, 0, x_234); +lean_ctor_set(x_236, 1, x_235); +x_237 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; +x_238 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_238, 0, x_236); +lean_ctor_set(x_238, 1, x_237); +x_239 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_239, 0, x_2); +x_240 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_240, 0, x_238); +lean_ctor_set(x_240, 1, x_239); +x_241 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_233); +x_242 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_242, 0, x_201); +x_243 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_243, 0, x_241); +lean_ctor_set(x_243, 1, x_242); +x_244 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_225, x_243, x_3, x_231); +lean_dec(x_3); +x_245 = lean_ctor_get(x_244, 1); +lean_inc(x_245); +lean_dec(x_244); +x_246 = lean_unbox(x_219); +lean_dec(x_219); +x_165 = x_246; +x_166 = x_245; +goto block_180; +} +} +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_201); +lean_dec(x_197); +x_247 = lean_ctor_get(x_218, 1); +lean_inc(x_247); +lean_dec(x_218); +x_248 = l_Lean_Expr_mvarId_x21(x_1); +lean_dec(x_1); +x_249 = l_Lean_Meta_assignExprMVar(x_248, x_2, x_3, x_247); +lean_dec(x_3); +if (lean_obj_tag(x_249) == 0) +{ +lean_object* x_250; uint8_t x_251; +x_250 = lean_ctor_get(x_249, 1); +lean_inc(x_250); +lean_dec(x_249); +x_251 = lean_unbox(x_219); +lean_dec(x_219); +x_165 = x_251; +x_166 = x_250; +goto block_180; +} +else +{ +lean_object* x_252; lean_object* x_253; +lean_dec(x_219); +x_252 = lean_ctor_get(x_249, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_249, 1); +lean_inc(x_253); +lean_dec(x_249); +x_181 = x_252; +x_182 = x_253; +goto block_195; +} +} +} +else +{ +lean_object* x_254; lean_object* x_255; +lean_dec(x_201); +lean_dec(x_197); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_254 = lean_ctor_get(x_218, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_218, 1); +lean_inc(x_255); +lean_dec(x_218); +x_181 = x_254; +x_182 = x_255; +goto block_195; +} +} +else +{ +lean_object* x_256; lean_object* x_257; +lean_dec(x_197); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_256 = lean_ctor_get(x_199, 0); +lean_inc(x_256); +x_257 = lean_ctor_get(x_199, 1); +lean_inc(x_257); +lean_dec(x_199); +x_181 = x_256; +x_182 = x_257; +goto block_195; +} +} +else +{ +lean_object* x_258; lean_object* x_259; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_258 = lean_ctor_get(x_196, 0); +lean_inc(x_258); +x_259 = lean_ctor_get(x_196, 1); +lean_inc(x_259); +lean_dec(x_196); +x_181 = x_258; +x_182 = x_259; +goto block_195; +} +block_180: +{ +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; +x_167 = lean_ctor_get(x_166, 4); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 0); +lean_inc(x_168); +x_169 = lean_ctor_get(x_166, 1); +lean_inc(x_169); +x_170 = lean_ctor_get(x_166, 2); +lean_inc(x_170); +x_171 = lean_ctor_get(x_166, 3); +lean_inc(x_171); +x_172 = lean_ctor_get(x_166, 5); +lean_inc(x_172); +if (lean_is_exclusive(x_166)) { + lean_ctor_release(x_166, 0); + lean_ctor_release(x_166, 1); + lean_ctor_release(x_166, 2); + lean_ctor_release(x_166, 3); + lean_ctor_release(x_166, 4); + lean_ctor_release(x_166, 5); + x_173 = x_166; +} else { + lean_dec_ref(x_166); + x_173 = lean_box(0); +} +x_174 = lean_ctor_get(x_167, 0); +lean_inc(x_174); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + x_175 = x_167; +} else { + lean_dec_ref(x_167); + x_175 = lean_box(0); +} +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(0, 1, 1); +} else { + x_176 = x_175; +} +lean_ctor_set(x_176, 0, x_174); +lean_ctor_set_uint8(x_176, sizeof(void*)*1, x_161); +if (lean_is_scalar(x_173)) { + x_177 = lean_alloc_ctor(0, 6, 0); +} else { + x_177 = x_173; +} +lean_ctor_set(x_177, 0, x_168); +lean_ctor_set(x_177, 1, x_169); +lean_ctor_set(x_177, 2, x_170); +lean_ctor_set(x_177, 3, x_171); +lean_ctor_set(x_177, 4, x_176); +lean_ctor_set(x_177, 5, x_172); +x_178 = lean_box(x_165); +x_179 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_179, 0, x_178); +lean_ctor_set(x_179, 1, x_177); +return x_179; +} +block_195: +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_183 = lean_ctor_get(x_182, 4); +lean_inc(x_183); +x_184 = lean_ctor_get(x_182, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_182, 1); +lean_inc(x_185); +x_186 = lean_ctor_get(x_182, 2); +lean_inc(x_186); +x_187 = lean_ctor_get(x_182, 3); +lean_inc(x_187); +x_188 = lean_ctor_get(x_182, 5); +lean_inc(x_188); +if (lean_is_exclusive(x_182)) { + lean_ctor_release(x_182, 0); + lean_ctor_release(x_182, 1); + lean_ctor_release(x_182, 2); + lean_ctor_release(x_182, 3); + lean_ctor_release(x_182, 4); + lean_ctor_release(x_182, 5); + x_189 = x_182; +} else { + lean_dec_ref(x_182); + x_189 = lean_box(0); +} +x_190 = lean_ctor_get(x_183, 0); +lean_inc(x_190); +if (lean_is_exclusive(x_183)) { + lean_ctor_release(x_183, 0); + x_191 = x_183; +} else { + lean_dec_ref(x_183); + x_191 = lean_box(0); +} +if (lean_is_scalar(x_191)) { + x_192 = lean_alloc_ctor(0, 1, 1); +} else { + x_192 = x_191; +} +lean_ctor_set(x_192, 0, x_190); +lean_ctor_set_uint8(x_192, sizeof(void*)*1, x_161); +if (lean_is_scalar(x_189)) { + x_193 = lean_alloc_ctor(0, 6, 0); +} else { + x_193 = x_189; +} +lean_ctor_set(x_193, 0, x_184); +lean_ctor_set(x_193, 1, x_185); +lean_ctor_set(x_193, 2, x_186); +lean_ctor_set(x_193, 3, x_187); +lean_ctor_set(x_193, 4, x_192); +lean_ctor_set(x_193, 5, x_188); +x_194 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_194, 0, x_181); +lean_ctor_set(x_194, 1, x_193); +return x_194; +} +} +} +else +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; lean_object* x_288; lean_object* x_289; lean_object* x_303; +x_260 = lean_ctor_get(x_6, 4); +x_261 = lean_ctor_get(x_6, 0); +x_262 = lean_ctor_get(x_6, 1); +x_263 = lean_ctor_get(x_6, 2); +x_264 = lean_ctor_get(x_6, 3); +x_265 = lean_ctor_get(x_6, 5); +lean_inc(x_265); +lean_inc(x_260); +lean_inc(x_264); +lean_inc(x_263); +lean_inc(x_262); +lean_inc(x_261); +lean_dec(x_6); +x_266 = lean_ctor_get_uint8(x_260, sizeof(void*)*1); +x_267 = lean_ctor_get(x_260, 0); +lean_inc(x_267); +if (lean_is_exclusive(x_260)) { + lean_ctor_release(x_260, 0); + x_268 = x_260; +} else { + lean_dec_ref(x_260); + x_268 = lean_box(0); +} +x_269 = 0; +if (lean_is_scalar(x_268)) { + x_270 = lean_alloc_ctor(0, 1, 1); +} else { + x_270 = x_268; +} +lean_ctor_set(x_270, 0, x_267); +lean_ctor_set_uint8(x_270, sizeof(void*)*1, x_269); +x_271 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_271, 0, x_261); +lean_ctor_set(x_271, 1, x_262); +lean_ctor_set(x_271, 2, x_263); +lean_ctor_set(x_271, 3, x_264); +lean_ctor_set(x_271, 4, x_270); +lean_ctor_set(x_271, 5, x_265); +lean_inc(x_3); +lean_inc(x_1); +x_303 = l_Lean_Meta_inferType(x_1, x_3, x_271); +if (lean_obj_tag(x_303) == 0) +{ +lean_object* x_304; lean_object* x_305; lean_object* x_306; +x_304 = lean_ctor_get(x_303, 0); +lean_inc(x_304); +x_305 = lean_ctor_get(x_303, 1); +lean_inc(x_305); +lean_dec(x_303); +lean_inc(x_3); +lean_inc(x_2); +x_306 = l_Lean_Meta_inferType(x_2, x_3, x_305); +if (lean_obj_tag(x_306) == 0) +{ +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; uint8_t x_315; uint8_t x_316; uint8_t x_317; uint8_t x_318; uint8_t x_319; uint8_t x_320; lean_object* x_321; uint8_t x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_307 = lean_ctor_get(x_3, 0); +lean_inc(x_307); +x_308 = lean_ctor_get(x_306, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_306, 1); +lean_inc(x_309); +lean_dec(x_306); +x_310 = lean_ctor_get(x_3, 1); +lean_inc(x_310); +x_311 = lean_ctor_get(x_3, 2); +lean_inc(x_311); +x_312 = lean_ctor_get(x_3, 3); +lean_inc(x_312); +x_313 = lean_ctor_get(x_3, 4); +lean_inc(x_313); +x_314 = lean_ctor_get(x_307, 0); +lean_inc(x_314); +x_315 = lean_ctor_get_uint8(x_307, sizeof(void*)*1); +x_316 = lean_ctor_get_uint8(x_307, sizeof(void*)*1 + 1); +x_317 = lean_ctor_get_uint8(x_307, sizeof(void*)*1 + 2); +x_318 = lean_ctor_get_uint8(x_307, sizeof(void*)*1 + 3); +x_319 = lean_ctor_get_uint8(x_307, sizeof(void*)*1 + 4); +x_320 = lean_ctor_get_uint8(x_307, sizeof(void*)*1 + 5); +if (lean_is_exclusive(x_307)) { + lean_ctor_release(x_307, 0); + x_321 = x_307; +} else { + lean_dec_ref(x_307); + x_321 = lean_box(0); +} +x_322 = 1; +if (lean_is_scalar(x_321)) { + x_323 = lean_alloc_ctor(0, 1, 7); +} else { + x_323 = x_321; +} +lean_ctor_set(x_323, 0, x_314); +lean_ctor_set_uint8(x_323, sizeof(void*)*1, x_315); +lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 1, x_316); +lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 2, x_317); +lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 3, x_318); +lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 4, x_319); +lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 5, x_320); +lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 6, x_322); +x_324 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_324, 0, x_323); +lean_ctor_set(x_324, 1, x_310); +lean_ctor_set(x_324, 2, x_311); +lean_ctor_set(x_324, 3, x_312); +lean_ctor_set(x_324, 4, x_313); +lean_inc(x_308); +lean_inc(x_304); +x_325 = l_Lean_Meta_isExprDefEqAux(x_304, x_308, x_324, x_309); +if (lean_obj_tag(x_325) == 0) +{ +lean_object* x_326; uint8_t x_327; +x_326 = lean_ctor_get(x_325, 0); +lean_inc(x_326); +x_327 = lean_unbox(x_326); +if (x_327 == 0) +{ +lean_object* x_328; lean_object* x_329; uint8_t x_330; +x_328 = lean_ctor_get(x_325, 1); +lean_inc(x_328); +lean_dec(x_325); +x_329 = lean_ctor_get(x_328, 4); +lean_inc(x_329); +x_330 = lean_ctor_get_uint8(x_329, sizeof(void*)*1); +lean_dec(x_329); +if (x_330 == 0) +{ +uint8_t x_331; +lean_dec(x_308); +lean_dec(x_304); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_331 = lean_unbox(x_326); +lean_dec(x_326); +x_272 = x_331; +x_273 = x_328; +goto block_287; +} +else +{ +lean_object* x_332; lean_object* x_333; lean_object* x_334; uint8_t x_335; +x_332 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6; +x_333 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_332, x_3, x_328); +x_334 = lean_ctor_get(x_333, 0); +lean_inc(x_334); +x_335 = lean_unbox(x_334); +lean_dec(x_334); +if (x_335 == 0) +{ +lean_object* x_336; uint8_t x_337; +lean_dec(x_308); +lean_dec(x_304); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_336 = lean_ctor_get(x_333, 1); +lean_inc(x_336); +lean_dec(x_333); +x_337 = lean_unbox(x_326); +lean_dec(x_326); +x_272 = x_337; +x_273 = x_336; +goto block_287; +} +else +{ +lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; uint8_t x_353; +x_338 = lean_ctor_get(x_333, 1); +lean_inc(x_338); +lean_dec(x_333); +x_339 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_339, 0, x_1); +x_340 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; +x_341 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_341, 0, x_339); +lean_ctor_set(x_341, 1, x_340); +x_342 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_342, 0, x_304); +x_343 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_343, 0, x_341); +lean_ctor_set(x_343, 1, x_342); +x_344 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; +x_345 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_345, 0, x_343); +lean_ctor_set(x_345, 1, x_344); +x_346 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_346, 0, x_2); +x_347 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_347, 0, x_345); +lean_ctor_set(x_347, 1, x_346); +x_348 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_348, 0, x_347); +lean_ctor_set(x_348, 1, x_340); +x_349 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_349, 0, x_308); +x_350 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_350, 0, x_348); +lean_ctor_set(x_350, 1, x_349); +x_351 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_332, x_350, x_3, x_338); +lean_dec(x_3); +x_352 = lean_ctor_get(x_351, 1); +lean_inc(x_352); +lean_dec(x_351); +x_353 = lean_unbox(x_326); +lean_dec(x_326); +x_272 = x_353; +x_273 = x_352; +goto block_287; +} +} +} +else +{ +lean_object* x_354; lean_object* x_355; lean_object* x_356; +lean_dec(x_308); +lean_dec(x_304); +x_354 = lean_ctor_get(x_325, 1); +lean_inc(x_354); +lean_dec(x_325); +x_355 = l_Lean_Expr_mvarId_x21(x_1); +lean_dec(x_1); +x_356 = l_Lean_Meta_assignExprMVar(x_355, x_2, x_3, x_354); +lean_dec(x_3); +if (lean_obj_tag(x_356) == 0) +{ +lean_object* x_357; uint8_t x_358; +x_357 = lean_ctor_get(x_356, 1); +lean_inc(x_357); +lean_dec(x_356); +x_358 = lean_unbox(x_326); +lean_dec(x_326); +x_272 = x_358; +x_273 = x_357; +goto block_287; +} +else +{ +lean_object* x_359; lean_object* x_360; +lean_dec(x_326); +x_359 = lean_ctor_get(x_356, 0); +lean_inc(x_359); +x_360 = lean_ctor_get(x_356, 1); +lean_inc(x_360); +lean_dec(x_356); +x_288 = x_359; +x_289 = x_360; +goto block_302; +} +} +} +else +{ +lean_object* x_361; lean_object* x_362; +lean_dec(x_308); +lean_dec(x_304); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_361 = lean_ctor_get(x_325, 0); +lean_inc(x_361); +x_362 = lean_ctor_get(x_325, 1); +lean_inc(x_362); +lean_dec(x_325); +x_288 = x_361; +x_289 = x_362; +goto block_302; +} +} +else +{ +lean_object* x_363; lean_object* x_364; +lean_dec(x_304); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_363 = lean_ctor_get(x_306, 0); +lean_inc(x_363); +x_364 = lean_ctor_get(x_306, 1); +lean_inc(x_364); +lean_dec(x_306); +x_288 = x_363; +x_289 = x_364; +goto block_302; +} +} +else +{ +lean_object* x_365; lean_object* x_366; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_365 = lean_ctor_get(x_303, 0); +lean_inc(x_365); +x_366 = lean_ctor_get(x_303, 1); +lean_inc(x_366); +lean_dec(x_303); +x_288 = x_365; +x_289 = x_366; +goto block_302; +} +block_287: +{ +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_274 = lean_ctor_get(x_273, 4); +lean_inc(x_274); +x_275 = lean_ctor_get(x_273, 0); +lean_inc(x_275); +x_276 = lean_ctor_get(x_273, 1); +lean_inc(x_276); +x_277 = lean_ctor_get(x_273, 2); +lean_inc(x_277); +x_278 = lean_ctor_get(x_273, 3); +lean_inc(x_278); +x_279 = lean_ctor_get(x_273, 5); +lean_inc(x_279); +if (lean_is_exclusive(x_273)) { + lean_ctor_release(x_273, 0); + lean_ctor_release(x_273, 1); + lean_ctor_release(x_273, 2); + lean_ctor_release(x_273, 3); + lean_ctor_release(x_273, 4); + lean_ctor_release(x_273, 5); + x_280 = x_273; +} else { + lean_dec_ref(x_273); + x_280 = lean_box(0); +} +x_281 = lean_ctor_get(x_274, 0); +lean_inc(x_281); +if (lean_is_exclusive(x_274)) { + lean_ctor_release(x_274, 0); + x_282 = x_274; +} else { + lean_dec_ref(x_274); + x_282 = lean_box(0); +} +if (lean_is_scalar(x_282)) { + x_283 = lean_alloc_ctor(0, 1, 1); +} else { + x_283 = x_282; +} +lean_ctor_set(x_283, 0, x_281); +lean_ctor_set_uint8(x_283, sizeof(void*)*1, x_266); +if (lean_is_scalar(x_280)) { + x_284 = lean_alloc_ctor(0, 6, 0); +} else { + x_284 = x_280; +} +lean_ctor_set(x_284, 0, x_275); +lean_ctor_set(x_284, 1, x_276); +lean_ctor_set(x_284, 2, x_277); +lean_ctor_set(x_284, 3, x_278); +lean_ctor_set(x_284, 4, x_283); +lean_ctor_set(x_284, 5, x_279); +x_285 = lean_box(x_272); +x_286 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_286, 0, x_285); +lean_ctor_set(x_286, 1, x_284); +return x_286; +} +block_302: +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_290 = lean_ctor_get(x_289, 4); +lean_inc(x_290); +x_291 = lean_ctor_get(x_289, 0); +lean_inc(x_291); +x_292 = lean_ctor_get(x_289, 1); +lean_inc(x_292); +x_293 = lean_ctor_get(x_289, 2); +lean_inc(x_293); +x_294 = lean_ctor_get(x_289, 3); +lean_inc(x_294); +x_295 = lean_ctor_get(x_289, 5); +lean_inc(x_295); +if (lean_is_exclusive(x_289)) { + lean_ctor_release(x_289, 0); + lean_ctor_release(x_289, 1); + lean_ctor_release(x_289, 2); + lean_ctor_release(x_289, 3); + lean_ctor_release(x_289, 4); + lean_ctor_release(x_289, 5); + x_296 = x_289; +} else { + lean_dec_ref(x_289); + x_296 = lean_box(0); +} +x_297 = lean_ctor_get(x_290, 0); +lean_inc(x_297); +if (lean_is_exclusive(x_290)) { + lean_ctor_release(x_290, 0); + x_298 = x_290; +} else { + lean_dec_ref(x_290); + x_298 = lean_box(0); +} +if (lean_is_scalar(x_298)) { + x_299 = lean_alloc_ctor(0, 1, 1); +} else { + x_299 = x_298; +} +lean_ctor_set(x_299, 0, x_297); +lean_ctor_set_uint8(x_299, sizeof(void*)*1, x_266); +if (lean_is_scalar(x_296)) { + x_300 = lean_alloc_ctor(0, 6, 0); +} else { + x_300 = x_296; +} +lean_ctor_set(x_300, 0, x_291); +lean_ctor_set(x_300, 1, x_292); +lean_ctor_set(x_300, 2, x_293); +lean_ctor_set(x_300, 3, x_294); +lean_ctor_set(x_300, 4, x_299); +lean_ctor_set(x_300, 5, x_295); +x_301 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_301, 0, x_288); +lean_ctor_set(x_301, 1, x_300); +return x_301; +} +} +} +else +{ +lean_object* x_367; lean_object* x_368; lean_object* x_369; uint8_t x_370; lean_object* x_371; lean_object* x_381; lean_object* x_382; lean_object* x_390; +x_367 = l___private_Init_Lean_Util_Trace_3__getResetTraces___at_Lean_Meta_check___spec__1___rarg(x_6); +x_368 = lean_ctor_get(x_367, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_367, 1); +lean_inc(x_369); +lean_dec(x_367); +lean_inc(x_3); +lean_inc(x_1); +x_390 = l_Lean_Meta_inferType(x_1, x_3, x_369); +if (lean_obj_tag(x_390) == 0) +{ +lean_object* x_391; lean_object* x_392; lean_object* x_393; +x_391 = lean_ctor_get(x_390, 0); +lean_inc(x_391); +x_392 = lean_ctor_get(x_390, 1); +lean_inc(x_392); +lean_dec(x_390); +lean_inc(x_3); +lean_inc(x_2); +x_393 = l_Lean_Meta_inferType(x_2, x_3, x_392); +if (lean_obj_tag(x_393) == 0) +{ +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; uint8_t x_401; +x_394 = lean_ctor_get(x_3, 0); +lean_inc(x_394); +x_395 = lean_ctor_get(x_393, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_393, 1); +lean_inc(x_396); +lean_dec(x_393); +x_397 = lean_ctor_get(x_3, 1); +lean_inc(x_397); +x_398 = lean_ctor_get(x_3, 2); +lean_inc(x_398); +x_399 = lean_ctor_get(x_3, 3); +lean_inc(x_399); +x_400 = lean_ctor_get(x_3, 4); +lean_inc(x_400); +x_401 = !lean_is_exclusive(x_394); +if (x_401 == 0) +{ +uint8_t x_402; lean_object* x_403; lean_object* x_404; +x_402 = 1; +lean_ctor_set_uint8(x_394, sizeof(void*)*1 + 6, x_402); +x_403 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_403, 0, x_394); +lean_ctor_set(x_403, 1, x_397); +lean_ctor_set(x_403, 2, x_398); +lean_ctor_set(x_403, 3, x_399); +lean_ctor_set(x_403, 4, x_400); +lean_inc(x_395); +lean_inc(x_391); +x_404 = l_Lean_Meta_isExprDefEqAux(x_391, x_395, x_403, x_396); +if (lean_obj_tag(x_404) == 0) +{ +lean_object* x_405; uint8_t x_406; +x_405 = lean_ctor_get(x_404, 0); +lean_inc(x_405); +x_406 = lean_unbox(x_405); +if (x_406 == 0) +{ +lean_object* x_407; lean_object* x_408; uint8_t x_409; +x_407 = lean_ctor_get(x_404, 1); +lean_inc(x_407); +lean_dec(x_404); +x_408 = lean_ctor_get(x_407, 4); +lean_inc(x_408); +x_409 = lean_ctor_get_uint8(x_408, sizeof(void*)*1); +lean_dec(x_408); +if (x_409 == 0) +{ +uint8_t x_410; +lean_dec(x_395); +lean_dec(x_391); +lean_dec(x_2); +lean_dec(x_1); +x_410 = lean_unbox(x_405); +lean_dec(x_405); +x_370 = x_410; +x_371 = x_407; +goto block_380; +} +else +{ +lean_object* x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; +x_411 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6; +x_412 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_411, x_3, x_407); +x_413 = lean_ctor_get(x_412, 0); +lean_inc(x_413); +x_414 = lean_unbox(x_413); +lean_dec(x_413); +if (x_414 == 0) +{ +lean_object* x_415; uint8_t x_416; +lean_dec(x_395); +lean_dec(x_391); +lean_dec(x_2); +lean_dec(x_1); +x_415 = lean_ctor_get(x_412, 1); +lean_inc(x_415); +lean_dec(x_412); +x_416 = lean_unbox(x_405); +lean_dec(x_405); +x_370 = x_416; +x_371 = x_415; +goto block_380; +} +else +{ +lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; uint8_t x_432; +x_417 = lean_ctor_get(x_412, 1); +lean_inc(x_417); +lean_dec(x_412); +x_418 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_418, 0, x_1); +x_419 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; +x_420 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_420, 0, x_418); +lean_ctor_set(x_420, 1, x_419); +x_421 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_421, 0, x_391); +x_422 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_422, 0, x_420); +lean_ctor_set(x_422, 1, x_421); +x_423 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; +x_424 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_424, 0, x_422); +lean_ctor_set(x_424, 1, x_423); +x_425 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_425, 0, x_2); +x_426 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_426, 0, x_424); +lean_ctor_set(x_426, 1, x_425); +x_427 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_427, 0, x_426); +lean_ctor_set(x_427, 1, x_419); +x_428 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_428, 0, x_395); +x_429 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_429, 0, x_427); +lean_ctor_set(x_429, 1, x_428); +x_430 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_411, x_429, x_3, x_417); +x_431 = lean_ctor_get(x_430, 1); +lean_inc(x_431); +lean_dec(x_430); +x_432 = lean_unbox(x_405); +lean_dec(x_405); +x_370 = x_432; +x_371 = x_431; +goto block_380; +} +} +} +else +{ +lean_object* x_433; lean_object* x_434; lean_object* x_435; +lean_dec(x_395); +lean_dec(x_391); +x_433 = lean_ctor_get(x_404, 1); +lean_inc(x_433); +lean_dec(x_404); +x_434 = l_Lean_Expr_mvarId_x21(x_1); +lean_dec(x_1); +x_435 = l_Lean_Meta_assignExprMVar(x_434, x_2, x_3, x_433); +if (lean_obj_tag(x_435) == 0) +{ +lean_object* x_436; uint8_t x_437; +x_436 = lean_ctor_get(x_435, 1); +lean_inc(x_436); +lean_dec(x_435); +x_437 = lean_unbox(x_405); +lean_dec(x_405); +x_370 = x_437; +x_371 = x_436; +goto block_380; +} +else +{ +lean_object* x_438; lean_object* x_439; +lean_dec(x_405); +x_438 = lean_ctor_get(x_435, 0); +lean_inc(x_438); +x_439 = lean_ctor_get(x_435, 1); +lean_inc(x_439); +lean_dec(x_435); +x_381 = x_438; +x_382 = x_439; +goto block_389; +} +} +} +else +{ +lean_object* x_440; lean_object* x_441; +lean_dec(x_395); +lean_dec(x_391); +lean_dec(x_2); +lean_dec(x_1); +x_440 = lean_ctor_get(x_404, 0); +lean_inc(x_440); +x_441 = lean_ctor_get(x_404, 1); +lean_inc(x_441); +lean_dec(x_404); +x_381 = x_440; +x_382 = x_441; +goto block_389; +} +} +else +{ +lean_object* x_442; uint8_t x_443; uint8_t x_444; uint8_t x_445; uint8_t x_446; uint8_t x_447; uint8_t x_448; uint8_t x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; +x_442 = lean_ctor_get(x_394, 0); +x_443 = lean_ctor_get_uint8(x_394, sizeof(void*)*1); +x_444 = lean_ctor_get_uint8(x_394, sizeof(void*)*1 + 1); +x_445 = lean_ctor_get_uint8(x_394, sizeof(void*)*1 + 2); +x_446 = lean_ctor_get_uint8(x_394, sizeof(void*)*1 + 3); +x_447 = lean_ctor_get_uint8(x_394, sizeof(void*)*1 + 4); +x_448 = lean_ctor_get_uint8(x_394, sizeof(void*)*1 + 5); +lean_inc(x_442); +lean_dec(x_394); +x_449 = 1; +x_450 = lean_alloc_ctor(0, 1, 7); +lean_ctor_set(x_450, 0, x_442); +lean_ctor_set_uint8(x_450, sizeof(void*)*1, x_443); +lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 1, x_444); +lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 2, x_445); +lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 3, x_446); +lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 4, x_447); +lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 5, x_448); +lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 6, x_449); +x_451 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_451, 0, x_450); +lean_ctor_set(x_451, 1, x_397); +lean_ctor_set(x_451, 2, x_398); +lean_ctor_set(x_451, 3, x_399); +lean_ctor_set(x_451, 4, x_400); +lean_inc(x_395); +lean_inc(x_391); +x_452 = l_Lean_Meta_isExprDefEqAux(x_391, x_395, x_451, x_396); +if (lean_obj_tag(x_452) == 0) +{ +lean_object* x_453; uint8_t x_454; +x_453 = lean_ctor_get(x_452, 0); +lean_inc(x_453); +x_454 = lean_unbox(x_453); +if (x_454 == 0) +{ +lean_object* x_455; lean_object* x_456; uint8_t x_457; +x_455 = lean_ctor_get(x_452, 1); +lean_inc(x_455); +lean_dec(x_452); +x_456 = lean_ctor_get(x_455, 4); +lean_inc(x_456); +x_457 = lean_ctor_get_uint8(x_456, sizeof(void*)*1); +lean_dec(x_456); +if (x_457 == 0) +{ +uint8_t x_458; +lean_dec(x_395); +lean_dec(x_391); +lean_dec(x_2); +lean_dec(x_1); +x_458 = lean_unbox(x_453); +lean_dec(x_453); +x_370 = x_458; +x_371 = x_455; +goto block_380; +} +else +{ +lean_object* x_459; lean_object* x_460; lean_object* x_461; uint8_t x_462; +x_459 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6; +x_460 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_459, x_3, x_455); +x_461 = lean_ctor_get(x_460, 0); +lean_inc(x_461); +x_462 = lean_unbox(x_461); +lean_dec(x_461); +if (x_462 == 0) +{ +lean_object* x_463; uint8_t x_464; +lean_dec(x_395); +lean_dec(x_391); +lean_dec(x_2); +lean_dec(x_1); +x_463 = lean_ctor_get(x_460, 1); +lean_inc(x_463); +lean_dec(x_460); +x_464 = lean_unbox(x_453); +lean_dec(x_453); +x_370 = x_464; +x_371 = x_463; +goto block_380; +} +else +{ +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; uint8_t x_480; +x_465 = lean_ctor_get(x_460, 1); +lean_inc(x_465); +lean_dec(x_460); +x_466 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_466, 0, x_1); +x_467 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7; +x_468 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_468, 0, x_466); +lean_ctor_set(x_468, 1, x_467); +x_469 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_469, 0, x_391); +x_470 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_470, 0, x_468); +lean_ctor_set(x_470, 1, x_469); +x_471 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; +x_472 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_472, 0, x_470); +lean_ctor_set(x_472, 1, x_471); +x_473 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_473, 0, x_2); +x_474 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_474, 0, x_472); +lean_ctor_set(x_474, 1, x_473); +x_475 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_475, 0, x_474); +lean_ctor_set(x_475, 1, x_467); +x_476 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_476, 0, x_395); +x_477 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_477, 0, x_475); +lean_ctor_set(x_477, 1, x_476); +x_478 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_459, x_477, x_3, x_465); +x_479 = lean_ctor_get(x_478, 1); +lean_inc(x_479); +lean_dec(x_478); +x_480 = lean_unbox(x_453); +lean_dec(x_453); +x_370 = x_480; +x_371 = x_479; +goto block_380; +} +} +} +else +{ +lean_object* x_481; lean_object* x_482; lean_object* x_483; +lean_dec(x_395); +lean_dec(x_391); +x_481 = lean_ctor_get(x_452, 1); +lean_inc(x_481); +lean_dec(x_452); +x_482 = l_Lean_Expr_mvarId_x21(x_1); +lean_dec(x_1); +x_483 = l_Lean_Meta_assignExprMVar(x_482, x_2, x_3, x_481); +if (lean_obj_tag(x_483) == 0) +{ +lean_object* x_484; uint8_t x_485; +x_484 = lean_ctor_get(x_483, 1); +lean_inc(x_484); +lean_dec(x_483); +x_485 = lean_unbox(x_453); +lean_dec(x_453); +x_370 = x_485; +x_371 = x_484; +goto block_380; +} +else +{ +lean_object* x_486; lean_object* x_487; +lean_dec(x_453); +x_486 = lean_ctor_get(x_483, 0); +lean_inc(x_486); +x_487 = lean_ctor_get(x_483, 1); +lean_inc(x_487); +lean_dec(x_483); +x_381 = x_486; +x_382 = x_487; +goto block_389; +} +} +} +else +{ +lean_object* x_488; lean_object* x_489; +lean_dec(x_395); +lean_dec(x_391); +lean_dec(x_2); +lean_dec(x_1); +x_488 = lean_ctor_get(x_452, 0); +lean_inc(x_488); +x_489 = lean_ctor_get(x_452, 1); +lean_inc(x_489); +lean_dec(x_452); +x_381 = x_488; +x_382 = x_489; +goto block_389; +} +} +} +else +{ +lean_object* x_490; lean_object* x_491; +lean_dec(x_391); +lean_dec(x_2); +lean_dec(x_1); +x_490 = lean_ctor_get(x_393, 0); +lean_inc(x_490); +x_491 = lean_ctor_get(x_393, 1); +lean_inc(x_491); +lean_dec(x_393); +x_381 = x_490; +x_382 = x_491; +goto block_389; +} +} +else +{ +lean_object* x_492; lean_object* x_493; +lean_dec(x_2); +lean_dec(x_1); +x_492 = lean_ctor_get(x_390, 0); +lean_inc(x_492); +x_493 = lean_ctor_get(x_390, 1); +lean_inc(x_493); +lean_dec(x_390); +x_381 = x_492; +x_382 = x_493; +goto block_389; +} +block_380: +{ +lean_object* x_372; lean_object* x_373; uint8_t x_374; +x_372 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__4; +x_373 = l___private_Init_Lean_Util_Trace_2__addNode___at_Lean_Meta_check___spec__2(x_368, x_372, x_3, x_371); +lean_dec(x_3); +x_374 = !lean_is_exclusive(x_373); +if (x_374 == 0) +{ +lean_object* x_375; lean_object* x_376; +x_375 = lean_ctor_get(x_373, 0); +lean_dec(x_375); +x_376 = lean_box(x_370); +lean_ctor_set(x_373, 0, x_376); +return x_373; +} +else +{ +lean_object* x_377; lean_object* x_378; lean_object* x_379; +x_377 = lean_ctor_get(x_373, 1); +lean_inc(x_377); +lean_dec(x_373); +x_378 = lean_box(x_370); +x_379 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_379, 0, x_378); +lean_ctor_set(x_379, 1, x_377); +return x_379; +} +} +block_389: +{ +lean_object* x_383; lean_object* x_384; uint8_t x_385; +x_383 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__4; +x_384 = l___private_Init_Lean_Util_Trace_2__addNode___at_Lean_Meta_check___spec__2(x_368, x_383, x_3, x_382); +lean_dec(x_3); +x_385 = !lean_is_exclusive(x_384); +if (x_385 == 0) +{ +lean_object* x_386; +x_386 = lean_ctor_get(x_384, 0); +lean_dec(x_386); +lean_ctor_set_tag(x_384, 1); +lean_ctor_set(x_384, 0, x_381); +return x_384; +} +else +{ +lean_object* x_387; lean_object* x_388; +x_387 = lean_ctor_get(x_384, 1); +lean_inc(x_387); +lean_dec(x_384); +x_388 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_388, 0, x_381); +lean_ctor_set(x_388, 1, x_387); +return x_388; +} +} +} +} +} +} +lean_object* l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -5080,7 +7126,7 @@ return x_9; } } } -lean_object* l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__1(lean_object* x_1, lean_object* x_2) { +lean_object* l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__1(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; @@ -5090,18 +7136,18 @@ x_5 = l_Lean_Expr_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___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__2(x_2, x_7); +x_8 = l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__2(x_2, x_7); lean_dec(x_7); return x_8; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_4 = lean_ctor_get(x_3, 2); +x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); -x_5 = l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__1(x_4, x_1); +x_5 = l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__1(x_4, x_1); lean_dec(x_4); x_6 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_6, 0, x_5); @@ -5109,37 +7155,37 @@ lean_ctor_set(x_6, 1, x_3); return x_6; } } -lean_object* l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__2(x_1, x_2); +x_3 = l_AssocList_find___main___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___spec__1(x_1, x_2); +x_3 = l_HashMapImp_find_x3f___at___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___spec__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); return x_3; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_1, x_2, x_3); lean_dec(x_2); lean_dec(x_1); return x_4; } } -uint8_t l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__2(lean_object* x_1, lean_object* x_2) { +uint8_t l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__2(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -5168,7 +7214,7 @@ return x_8; } } } -lean_object* l_AssocList_foldlM___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__5(lean_object* x_1, lean_object* x_2) { +lean_object* l_AssocList_foldlM___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__5(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_2) == 0) @@ -5222,7 +7268,7 @@ goto _start; } } } -lean_object* l_HashMapImp_moveEntries___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_HashMapImp_moveEntries___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -5241,7 +7287,7 @@ lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_obj x_6 = lean_array_fget(x_2, x_1); x_7 = lean_box(0); x_8 = lean_array_fset(x_2, x_1, x_7); -x_9 = l_AssocList_foldlM___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__5(x_3, x_6); +x_9 = l_AssocList_foldlM___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__5(x_3, x_6); x_10 = lean_unsigned_to_nat(1u); x_11 = lean_nat_add(x_1, x_10); lean_dec(x_1); @@ -5252,7 +7298,7 @@ goto _start; } } } -lean_object* l_HashMapImp_expand___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__3(lean_object* x_1, lean_object* x_2) { +lean_object* l_HashMapImp_expand___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__3(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; @@ -5263,14 +7309,14 @@ lean_dec(x_3); x_6 = lean_box(0); x_7 = lean_mk_array(x_5, x_6); x_8 = lean_unsigned_to_nat(0u); -x_9 = l_HashMapImp_moveEntries___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__4(x_8, x_2, x_7); +x_9 = l_HashMapImp_moveEntries___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__4(x_8, x_2, x_7); x_10 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_10, 0, x_1); lean_ctor_set(x_10, 1, x_9); return x_10; } } -lean_object* l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_3) == 0) @@ -5293,7 +7339,7 @@ x_8 = lean_expr_equal(x_5, x_1); if (x_8 == 0) { lean_object* x_9; -x_9 = l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__6(x_1, x_2, x_7); +x_9 = l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__6(x_1, x_2, x_7); lean_ctor_set(x_3, 2, x_9); return x_3; } @@ -5320,7 +7366,7 @@ x_13 = lean_expr_equal(x_10, x_1); if (x_13 == 0) { lean_object* x_14; lean_object* x_15; -x_14 = l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__6(x_1, x_2, x_12); +x_14 = l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__6(x_1, x_2, x_12); x_15 = lean_alloc_ctor(1, 3, 0); lean_ctor_set(x_15, 0, x_10); lean_ctor_set(x_15, 1, x_11); @@ -5342,7 +7388,7 @@ return x_16; } } } -lean_object* l_HashMapImp_insert___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l_HashMapImp_insert___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { uint8_t x_4; @@ -5356,7 +7402,7 @@ x_7 = lean_array_get_size(x_6); x_8 = l_Lean_Expr_hash(x_2); x_9 = lean_usize_modn(x_8, x_7); x_10 = lean_array_uget(x_6, x_9); -x_11 = l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__2(x_2, x_10); +x_11 = l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__2(x_2, x_10); if (x_11 == 0) { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; @@ -5374,7 +7420,7 @@ if (x_16 == 0) { lean_object* x_17; lean_free_object(x_1); -x_17 = l_HashMapImp_expand___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__3(x_13, x_15); +x_17 = l_HashMapImp_expand___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__3(x_13, x_15); return x_17; } else @@ -5388,7 +7434,7 @@ else { lean_object* x_18; lean_object* x_19; lean_dec(x_7); -x_18 = l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__6(x_2, x_3, x_10); +x_18 = l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__6(x_2, x_3, x_10); x_19 = lean_array_uset(x_6, x_9, x_18); lean_ctor_set(x_1, 1, x_19); return x_1; @@ -5406,7 +7452,7 @@ x_22 = lean_array_get_size(x_21); x_23 = l_Lean_Expr_hash(x_2); x_24 = lean_usize_modn(x_23, x_22); x_25 = lean_array_uget(x_21, x_24); -x_26 = l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__2(x_2, x_25); +x_26 = l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__2(x_2, x_25); if (x_26 == 0) { lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; @@ -5423,7 +7469,7 @@ lean_dec(x_22); if (x_31 == 0) { lean_object* x_32; -x_32 = l_HashMapImp_expand___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__3(x_28, x_30); +x_32 = l_HashMapImp_expand___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__3(x_28, x_30); return x_32; } else @@ -5439,7 +7485,7 @@ else { lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_dec(x_22); -x_34 = l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__6(x_2, x_3, x_25); +x_34 = l_AssocList_replace___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__6(x_2, x_3, x_25); x_35 = lean_array_uset(x_21, x_24, x_34); x_36 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_36, 0, x_20); @@ -5449,7 +7495,7 @@ return x_36; } } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__cache(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_9__cache(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -5457,9 +7503,9 @@ x_5 = !lean_is_exclusive(x_4); if (x_5 == 0) { lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_6 = lean_ctor_get(x_4, 2); -x_7 = l_HashMapImp_insert___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__1(x_6, x_1, x_2); -lean_ctor_set(x_4, 2, x_7); +x_6 = lean_ctor_get(x_4, 1); +x_7 = l_HashMapImp_insert___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__1(x_6, x_1, x_2); +lean_ctor_set(x_4, 1, x_7); x_8 = lean_box(0); x_9 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_9, 0, x_8); @@ -5468,43 +7514,40 @@ return x_9; } else { -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; x_10 = lean_ctor_get(x_4, 0); x_11 = lean_ctor_get(x_4, 1); -x_12 = lean_ctor_get(x_4, 2); -lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_dec(x_4); -x_13 = l_HashMapImp_insert___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__1(x_12, x_1, x_2); -x_14 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_14, 0, x_10); -lean_ctor_set(x_14, 1, x_11); -lean_ctor_set(x_14, 2, x_13); -x_15 = lean_box(0); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; +x_12 = l_HashMapImp_insert___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__1(x_11, x_1, x_2); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_10); +lean_ctor_set(x_13, 1, x_12); +x_14 = lean_box(0); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; } } } -lean_object* l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__2___boxed(lean_object* x_1, lean_object* x_2) { +lean_object* l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__2___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_8__cache___spec__2(x_1, x_2); +x_3 = l_AssocList_contains___main___at___private_Init_Lean_Meta_ExprDefEq_9__cache___spec__2(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_8__cache___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_9__cache___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_Meta_ExprDefEq_8__cache(x_1, x_2, x_3, x_4); +x_5 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_1, x_2, x_3, x_4); lean_dec(x_3); return x_5; } @@ -5513,7 +7556,7 @@ lean_object* _init_l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f___boxed), 3, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f___boxed), 3, 0); return x_1; } } @@ -5521,7 +7564,7 @@ lean_object* _init_l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__2() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Init_Lean_Meta_ExprDefEq_8__cache___boxed), 4, 0); +x_1 = lean_alloc_closure((void*)(l___private_Init_Lean_Meta_ExprDefEq_9__cache___boxed), 4, 0); return x_1; } } @@ -5545,7 +7588,157 @@ x_1 = l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__3; return x_1; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_9__visit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Meta_CheckAssignment_liftMetaM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_ctor_get(x_2, 0); +lean_inc(x_4); +lean_dec(x_2); +x_5 = !lean_is_exclusive(x_3); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_3, 0); +x_7 = lean_apply_2(x_1, x_4, x_6); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; +x_9 = lean_ctor_get(x_7, 1); +lean_ctor_set(x_3, 0, x_9); +lean_ctor_set(x_7, 1, x_3); +return x_7; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_ctor_get(x_7, 1); +lean_inc(x_11); +lean_inc(x_10); +lean_dec(x_7); +lean_ctor_set(x_3, 0, x_11); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_10); +lean_ctor_set(x_12, 1, x_3); +return x_12; +} +} +else +{ +uint8_t x_13; +x_13 = !lean_is_exclusive(x_7); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_7, 0); +x_15 = lean_ctor_get(x_7, 1); +x_16 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_16, 0, x_14); +lean_ctor_set(x_3, 0, x_15); +lean_ctor_set(x_7, 1, x_3); +lean_ctor_set(x_7, 0, x_16); +return x_7; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_17 = lean_ctor_get(x_7, 0); +x_18 = lean_ctor_get(x_7, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_7); +x_19 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_19, 0, x_17); +lean_ctor_set(x_3, 0, x_18); +x_20 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_20, 0, x_19); +lean_ctor_set(x_20, 1, x_3); +return x_20; +} +} +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_3, 0); +x_22 = lean_ctor_get(x_3, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_3); +x_23 = lean_apply_2(x_1, x_4, x_21); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_26 = x_23; +} else { + lean_dec_ref(x_23); + x_26 = lean_box(0); +} +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_22); +if (lean_is_scalar(x_26)) { + x_28 = lean_alloc_ctor(0, 2, 0); +} else { + x_28 = x_26; +} +lean_ctor_set(x_28, 0, x_24); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_29 = lean_ctor_get(x_23, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_23, 1); +lean_inc(x_30); +if (lean_is_exclusive(x_23)) { + lean_ctor_release(x_23, 0); + lean_ctor_release(x_23, 1); + x_31 = x_23; +} else { + lean_dec_ref(x_23); + x_31 = lean_box(0); +} +x_32 = lean_alloc_ctor(5, 1, 0); +lean_ctor_set(x_32, 0, x_29); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_22); +if (lean_is_scalar(x_31)) { + x_34 = lean_alloc_ctor(1, 2, 0); +} else { + x_34 = x_31; +} +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +lean_object* l_Lean_Meta_CheckAssignment_liftMetaM(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_liftMetaM___rarg), 3, 0); +return x_2; +} +} +lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__visit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; uint8_t x_28; @@ -5583,7 +7776,7 @@ block_27: { lean_object* x_6; lean_object* x_7; lean_dec(x_5); -x_6 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_2, x_3, x_4); +x_6 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_3, x_4); x_7 = lean_ctor_get(x_6, 0); lean_inc(x_7); if (lean_obj_tag(x_7) == 0) @@ -5604,7 +7797,7 @@ x_11 = lean_ctor_get(x_9, 1); lean_inc(x_11); lean_dec(x_9); lean_inc(x_10); -x_12 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_2, x_10, x_3, x_11); +x_12 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_10, x_3, x_11); lean_dec(x_3); x_13 = !lean_is_exclusive(x_12); if (x_13 == 0) @@ -5700,250 +7893,256 @@ lean_dec(x_5); x_7 = l_Lean_LocalContext_containsFVar(x_6, x_2); if (x_7 == 0) { -lean_object* x_8; lean_object* x_9; +lean_object* x_8; lean_object* x_9; lean_object* x_10; x_8 = lean_ctor_get(x_3, 0); lean_inc(x_8); -x_9 = l_Lean_LocalContext_findFVar_x3f(x_8, x_2); -if (lean_obj_tag(x_9) == 0) +x_9 = lean_ctor_get(x_8, 1); +lean_inc(x_9); +lean_dec(x_8); +x_10 = l_Lean_LocalContext_findFVar_x3f(x_9, x_2); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_10; lean_object* x_11; uint8_t x_12; +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_dec(x_1); -x_10 = lean_ctor_get(x_3, 3); -lean_inc(x_10); +x_11 = lean_ctor_get(x_3, 3); +lean_inc(x_11); lean_dec(x_3); -x_11 = l_Lean_Expr_HasBeq; +x_12 = l_Lean_Expr_HasBeq; lean_inc(x_2); -x_12 = l_Array_contains___rarg(x_11, x_10, x_2); -lean_dec(x_10); -if (x_12 == 0) +x_13 = l_Array_contains___rarg(x_12, x_11, x_2); +lean_dec(x_11); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = l_Lean_Expr_fvarId_x21(x_2); +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = l_Lean_Expr_fvarId_x21(x_2); lean_dec(x_2); -x_14 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_14, 0, x_13); -x_15 = lean_alloc_ctor(1, 2, 0); +x_15 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_4); -return x_15; -} -else -{ -lean_object* x_16; -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_2); +x_16 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_16, 0, x_15); lean_ctor_set(x_16, 1, x_4); return x_16; } -} else { lean_object* x_17; -x_17 = lean_ctor_get(x_9, 0); -lean_inc(x_17); -lean_dec(x_9); -if (lean_obj_tag(x_17) == 0) -{ -lean_object* x_18; lean_object* x_19; uint8_t x_20; -lean_dec(x_17); -lean_dec(x_1); -x_18 = lean_ctor_get(x_3, 3); -lean_inc(x_18); -lean_dec(x_3); -x_19 = l_Lean_Expr_HasBeq; -lean_inc(x_2); -x_20 = l_Array_contains___rarg(x_19, x_18, x_2); -lean_dec(x_18); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = l_Lean_Expr_fvarId_x21(x_2); -lean_dec(x_2); -x_22 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_22, 0, x_21); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_4); -return x_23; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_2); +lean_ctor_set(x_17, 1, x_4); +return x_17; +} } else { -lean_object* x_24; -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_2); +lean_object* x_18; +x_18 = lean_ctor_get(x_10, 0); +lean_inc(x_18); +lean_dec(x_10); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_dec(x_18); +lean_dec(x_1); +x_19 = lean_ctor_get(x_3, 3); +lean_inc(x_19); +lean_dec(x_3); +x_20 = l_Lean_Expr_HasBeq; +lean_inc(x_2); +x_21 = l_Array_contains___rarg(x_20, x_19, x_2); +lean_dec(x_19); +if (x_21 == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = l_Lean_Expr_fvarId_x21(x_2); +lean_dec(x_2); +x_23 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_23); lean_ctor_set(x_24, 1, x_4); return x_24; } +else +{ +lean_object* x_25; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_2); +lean_ctor_set(x_25, 1, x_4); +return x_25; +} } else { -lean_object* x_25; lean_object* x_26; uint8_t x_49; +lean_object* x_26; lean_object* x_27; uint8_t x_50; lean_dec(x_2); -x_25 = lean_ctor_get(x_17, 4); -lean_inc(x_25); -lean_dec(x_17); -x_49 = l_Lean_Expr_hasExprMVar(x_25); -if (x_49 == 0) -{ -uint8_t x_50; -x_50 = l_Lean_Expr_hasFVar(x_25); +x_26 = lean_ctor_get(x_18, 4); +lean_inc(x_26); +lean_dec(x_18); +x_50 = l_Lean_Expr_hasExprMVar(x_26); if (x_50 == 0) { -lean_object* x_51; -lean_dec(x_3); -lean_dec(x_1); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_25); -lean_ctor_set(x_51, 1, x_4); -return x_51; -} -else +uint8_t x_51; +x_51 = l_Lean_Expr_hasFVar(x_26); +if (x_51 == 0) { lean_object* x_52; -x_52 = lean_box(0); -x_26 = x_52; -goto block_48; -} +lean_dec(x_3); +lean_dec(x_1); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_26); +lean_ctor_set(x_52, 1, x_4); +return x_52; } else { lean_object* x_53; x_53 = lean_box(0); -x_26 = x_53; -goto block_48; -} -block_48: -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_26); -x_27 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_25, x_3, x_4); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -lean_inc(x_3); -lean_inc(x_25); -x_30 = lean_apply_3(x_1, x_25, x_3, x_29); -if (lean_obj_tag(x_30) == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -lean_inc(x_31); -x_33 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_25, x_31, x_3, x_32); -lean_dec(x_3); -x_34 = !lean_is_exclusive(x_33); -if (x_34 == 0) -{ -lean_object* x_35; -x_35 = lean_ctor_get(x_33, 0); -lean_dec(x_35); -lean_ctor_set(x_33, 0, x_31); -return x_33; -} -else -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_dec(x_33); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_31); -lean_ctor_set(x_37, 1, x_36); -return x_37; -} -} -else -{ -uint8_t x_38; -lean_dec(x_25); -lean_dec(x_3); -x_38 = !lean_is_exclusive(x_30); -if (x_38 == 0) -{ -return x_30; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_30, 0); -x_40 = lean_ctor_get(x_30, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_30); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -return x_41; -} -} -} -else -{ -uint8_t x_42; -lean_dec(x_25); -lean_dec(x_3); -lean_dec(x_1); -x_42 = !lean_is_exclusive(x_27); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; -x_43 = lean_ctor_get(x_27, 0); -lean_dec(x_43); -x_44 = lean_ctor_get(x_28, 0); -lean_inc(x_44); -lean_dec(x_28); -lean_ctor_set(x_27, 0, x_44); -return x_27; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_27, 1); -lean_inc(x_45); -lean_dec(x_27); -x_46 = lean_ctor_get(x_28, 0); -lean_inc(x_46); -lean_dec(x_28); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -} -} +x_27 = x_53; +goto block_49; } } else { lean_object* x_54; +x_54 = lean_box(0); +x_27 = x_54; +goto block_49; +} +block_49: +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_27); +x_28 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_26, x_3, x_4); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; lean_object* x_31; +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +lean_inc(x_3); +lean_inc(x_26); +x_31 = lean_apply_3(x_1, x_26, x_3, x_30); +if (lean_obj_tag(x_31) == 0) +{ +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); +lean_inc(x_32); +x_34 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_26, x_32, x_3, x_33); +lean_dec(x_3); +x_35 = !lean_is_exclusive(x_34); +if (x_35 == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 0); +lean_dec(x_36); +lean_ctor_set(x_34, 0, x_32); +return x_34; +} +else +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_32); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +else +{ +uint8_t x_39; +lean_dec(x_26); +lean_dec(x_3); +x_39 = !lean_is_exclusive(x_31); +if (x_39 == 0) +{ +return x_31; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_31, 0); +x_41 = lean_ctor_get(x_31, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_31); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +uint8_t x_43; +lean_dec(x_26); lean_dec(x_3); lean_dec(x_1); -x_54 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_54, 0, x_2); -lean_ctor_set(x_54, 1, x_4); -return x_54; +x_43 = !lean_is_exclusive(x_28); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_28, 0); +lean_dec(x_44); +x_45 = lean_ctor_get(x_29, 0); +lean_inc(x_45); +lean_dec(x_29); +lean_ctor_set(x_28, 0, x_45); +return x_28; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_46 = lean_ctor_get(x_28, 1); +lean_inc(x_46); +lean_dec(x_28); +x_47 = lean_ctor_get(x_29, 0); +lean_inc(x_47); +lean_dec(x_29); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_46); +return x_48; +} +} +} +} +} +} +else +{ +lean_object* x_55; +lean_dec(x_3); +lean_dec(x_1); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_2); +lean_ctor_set(x_55, 1, x_4); +return x_55; } } } lean_object* l_Lean_Meta_CheckAssignment_getMCtx___rarg(lean_object* x_1) { _start: { -lean_object* x_2; lean_object* x_3; +lean_object* x_2; lean_object* x_3; lean_object* x_4; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; +x_3 = lean_ctor_get(x_2, 1); +lean_inc(x_3); +lean_dec(x_2); +x_4 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_4, 0, x_3); +lean_ctor_set(x_4, 1, x_1); +return x_4; } } lean_object* l_Lean_Meta_CheckAssignment_getMCtx(lean_object* x_1) { @@ -5966,116 +8165,212 @@ return x_2; lean_object* l_Lean_Meta_CheckAssignment_mkAuxMVar(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { -uint8_t x_6; -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -lean_object* x_7; uint8_t x_8; -x_7 = lean_ctor_get(x_5, 1); -x_8 = !lean_is_exclusive(x_7); +lean_object* x_6; lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 3); +lean_inc(x_7); +x_8 = !lean_is_exclusive(x_5); if (x_8 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_object* x_9; uint8_t x_10; x_9 = lean_ctor_get(x_5, 0); -x_10 = lean_ctor_get(x_7, 0); -x_11 = lean_ctor_get(x_7, 1); -lean_inc(x_11); -lean_inc(x_10); -x_12 = lean_name_mk_numeral(x_10, x_11); -x_13 = lean_box(0); -x_14 = 0; -lean_inc(x_12); -x_15 = lean_metavar_ctx_mk_decl(x_9, x_12, x_13, x_1, x_2, x_3, x_14); -x_16 = lean_unsigned_to_nat(1u); -x_17 = lean_nat_add(x_11, x_16); -lean_dec(x_11); -lean_ctor_set(x_7, 1, x_17); -lean_ctor_set(x_5, 0, x_15); -x_18 = l_Lean_mkMVar(x_12); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_5); -return x_19; +lean_dec(x_9); +x_10 = !lean_is_exclusive(x_6); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = lean_ctor_get(x_6, 1); +x_12 = lean_ctor_get(x_6, 3); +lean_dec(x_12); +x_13 = !lean_is_exclusive(x_7); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_14 = lean_ctor_get(x_7, 0); +x_15 = lean_ctor_get(x_7, 1); +lean_inc(x_15); +lean_inc(x_14); +x_16 = lean_name_mk_numeral(x_14, x_15); +x_17 = lean_box(0); +x_18 = 0; +lean_inc(x_16); +x_19 = lean_metavar_ctx_mk_decl(x_11, x_16, x_17, x_1, x_2, x_3, x_18); +x_20 = lean_unsigned_to_nat(1u); +x_21 = lean_nat_add(x_15, x_20); +lean_dec(x_15); +lean_ctor_set(x_7, 1, x_21); +lean_ctor_set(x_6, 1, x_19); +x_22 = l_Lean_mkMVar(x_16); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_5); +return x_23; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_20 = lean_ctor_get(x_5, 0); -x_21 = lean_ctor_get(x_7, 0); -x_22 = lean_ctor_get(x_7, 1); -lean_inc(x_22); -lean_inc(x_21); +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_24 = lean_ctor_get(x_7, 0); +x_25 = lean_ctor_get(x_7, 1); +lean_inc(x_25); +lean_inc(x_24); lean_dec(x_7); -lean_inc(x_22); -lean_inc(x_21); -x_23 = lean_name_mk_numeral(x_21, x_22); -x_24 = lean_box(0); -x_25 = 0; -lean_inc(x_23); -x_26 = lean_metavar_ctx_mk_decl(x_20, x_23, x_24, x_1, x_2, x_3, x_25); -x_27 = lean_unsigned_to_nat(1u); -x_28 = lean_nat_add(x_22, x_27); -lean_dec(x_22); -x_29 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_29, 0, x_21); -lean_ctor_set(x_29, 1, x_28); -lean_ctor_set(x_5, 1, x_29); -lean_ctor_set(x_5, 0, x_26); -x_30 = l_Lean_mkMVar(x_23); -x_31 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_31, 0, x_30); -lean_ctor_set(x_31, 1, x_5); -return x_31; +lean_inc(x_25); +lean_inc(x_24); +x_26 = lean_name_mk_numeral(x_24, x_25); +x_27 = lean_box(0); +x_28 = 0; +lean_inc(x_26); +x_29 = lean_metavar_ctx_mk_decl(x_11, x_26, x_27, x_1, x_2, x_3, x_28); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_25, x_30); +lean_dec(x_25); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_24); +lean_ctor_set(x_32, 1, x_31); +lean_ctor_set(x_6, 3, x_32); +lean_ctor_set(x_6, 1, x_29); +x_33 = l_Lean_mkMVar(x_26); +x_34 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_5); +return x_34; } } else { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_32 = lean_ctor_get(x_5, 1); -x_33 = lean_ctor_get(x_5, 0); -x_34 = lean_ctor_get(x_5, 2); -lean_inc(x_34); -lean_inc(x_32); -lean_inc(x_33); -lean_dec(x_5); -x_35 = lean_ctor_get(x_32, 0); -lean_inc(x_35); -x_36 = lean_ctor_get(x_32, 1); -lean_inc(x_36); -if (lean_is_exclusive(x_32)) { - lean_ctor_release(x_32, 0); - lean_ctor_release(x_32, 1); - x_37 = x_32; -} else { - lean_dec_ref(x_32); - x_37 = lean_box(0); -} -lean_inc(x_36); -lean_inc(x_35); -x_38 = lean_name_mk_numeral(x_35, x_36); -x_39 = lean_box(0); -x_40 = 0; +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_35 = lean_ctor_get(x_6, 0); +x_36 = lean_ctor_get(x_6, 1); +x_37 = lean_ctor_get(x_6, 2); +x_38 = lean_ctor_get(x_6, 4); +x_39 = lean_ctor_get(x_6, 5); +lean_inc(x_39); lean_inc(x_38); -x_41 = lean_metavar_ctx_mk_decl(x_33, x_38, x_39, x_1, x_2, x_3, x_40); -x_42 = lean_unsigned_to_nat(1u); -x_43 = lean_nat_add(x_36, x_42); -lean_dec(x_36); -if (lean_is_scalar(x_37)) { - x_44 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_37); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_6); +x_40 = lean_ctor_get(x_7, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_7, 1); +lean_inc(x_41); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_42 = x_7; } else { - x_44 = x_37; + lean_dec_ref(x_7); + x_42 = lean_box(0); } -lean_ctor_set(x_44, 0, x_35); -lean_ctor_set(x_44, 1, x_43); -x_45 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_45, 0, x_41); -lean_ctor_set(x_45, 1, x_44); -lean_ctor_set(x_45, 2, x_34); -x_46 = l_Lean_mkMVar(x_38); -x_47 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_45); -return x_47; +lean_inc(x_41); +lean_inc(x_40); +x_43 = lean_name_mk_numeral(x_40, x_41); +x_44 = lean_box(0); +x_45 = 0; +lean_inc(x_43); +x_46 = lean_metavar_ctx_mk_decl(x_36, x_43, x_44, x_1, x_2, x_3, x_45); +x_47 = lean_unsigned_to_nat(1u); +x_48 = lean_nat_add(x_41, x_47); +lean_dec(x_41); +if (lean_is_scalar(x_42)) { + x_49 = lean_alloc_ctor(0, 2, 0); +} else { + x_49 = x_42; +} +lean_ctor_set(x_49, 0, x_40); +lean_ctor_set(x_49, 1, x_48); +x_50 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_50, 0, x_35); +lean_ctor_set(x_50, 1, x_46); +lean_ctor_set(x_50, 2, x_37); +lean_ctor_set(x_50, 3, x_49); +lean_ctor_set(x_50, 4, x_38); +lean_ctor_set(x_50, 5, x_39); +lean_ctor_set(x_5, 0, x_50); +x_51 = l_Lean_mkMVar(x_43); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_5); +return x_52; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_53 = lean_ctor_get(x_5, 1); +lean_inc(x_53); +lean_dec(x_5); +x_54 = lean_ctor_get(x_6, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_6, 1); +lean_inc(x_55); +x_56 = lean_ctor_get(x_6, 2); +lean_inc(x_56); +x_57 = lean_ctor_get(x_6, 4); +lean_inc(x_57); +x_58 = lean_ctor_get(x_6, 5); +lean_inc(x_58); +if (lean_is_exclusive(x_6)) { + lean_ctor_release(x_6, 0); + lean_ctor_release(x_6, 1); + lean_ctor_release(x_6, 2); + lean_ctor_release(x_6, 3); + lean_ctor_release(x_6, 4); + lean_ctor_release(x_6, 5); + x_59 = x_6; +} else { + lean_dec_ref(x_6); + x_59 = lean_box(0); +} +x_60 = lean_ctor_get(x_7, 0); +lean_inc(x_60); +x_61 = lean_ctor_get(x_7, 1); +lean_inc(x_61); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_62 = x_7; +} else { + lean_dec_ref(x_7); + x_62 = lean_box(0); +} +lean_inc(x_61); +lean_inc(x_60); +x_63 = lean_name_mk_numeral(x_60, x_61); +x_64 = lean_box(0); +x_65 = 0; +lean_inc(x_63); +x_66 = lean_metavar_ctx_mk_decl(x_55, x_63, x_64, x_1, x_2, x_3, x_65); +x_67 = lean_unsigned_to_nat(1u); +x_68 = lean_nat_add(x_61, x_67); +lean_dec(x_61); +if (lean_is_scalar(x_62)) { + x_69 = lean_alloc_ctor(0, 2, 0); +} else { + x_69 = x_62; +} +lean_ctor_set(x_69, 0, x_60); +lean_ctor_set(x_69, 1, x_68); +if (lean_is_scalar(x_59)) { + x_70 = lean_alloc_ctor(0, 6, 0); +} else { + x_70 = x_59; +} +lean_ctor_set(x_70, 0, x_54); +lean_ctor_set(x_70, 1, x_66); +lean_ctor_set(x_70, 2, x_56); +lean_ctor_set(x_70, 3, x_69); +lean_ctor_set(x_70, 4, x_57); +lean_ctor_set(x_70, 5, x_58); +x_71 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_53); +x_72 = l_Lean_mkMVar(x_63); +x_73 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_73, 0, x_72); +lean_ctor_set(x_73, 1, x_71); +return x_73; } } } @@ -6091,16 +8386,13 @@ return x_6; lean_object* l_Lean_Meta_CheckAssignment_checkMVar(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_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; x_5 = l_Lean_Expr_mvarId_x21(x_2); x_6 = lean_ctor_get(x_4, 0); lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_6); -x_7 = lean_metavar_ctx_get_expr_assignment(x_6, x_5); -if (lean_obj_tag(x_7) == 0) -{ -lean_object* x_8; uint8_t x_9; +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +lean_dec(x_6); x_8 = lean_ctor_get(x_3, 1); lean_inc(x_8); x_9 = lean_name_eq(x_5, x_8); @@ -6109,12 +8401,12 @@ if (x_9 == 0) { lean_object* x_10; lean_inc(x_5); -lean_inc(x_6); -x_10 = lean_metavar_ctx_find_decl(x_6, x_5); +lean_inc(x_7); +x_10 = lean_metavar_ctx_find_decl(x_7, x_5); if (lean_obj_tag(x_10) == 0) { lean_object* x_11; lean_object* x_12; -lean_dec(x_6); +lean_dec(x_7); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); @@ -6128,7 +8420,7 @@ return x_12; else { uint8_t x_13; -x_13 = lean_ctor_get_uint8(x_3, sizeof(void*)*4 + 1); +x_13 = lean_ctor_get_uint8(x_3, sizeof(void*)*4); if (x_13 == 0) { lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; @@ -6149,9 +8441,9 @@ if (x_18 == 0) lean_object* x_19; lean_object* x_20; uint8_t x_21; x_19 = lean_ctor_get(x_14, 3); lean_inc(x_19); -x_20 = lean_ctor_get(x_6, 0); +x_20 = lean_ctor_get(x_7, 0); lean_inc(x_20); -lean_dec(x_6); +lean_dec(x_7); x_21 = lean_nat_dec_eq(x_19, x_20); lean_dec(x_20); lean_dec(x_19); @@ -6179,33 +8471,20 @@ x_24 = lean_ctor_get_uint8(x_14, sizeof(void*)*5); x_25 = l_Lean_MetavarKind_isSyntheticOpaque(x_24); if (x_25 == 0) { -uint8_t x_26; -x_26 = lean_ctor_get_uint8(x_3, sizeof(void*)*4); -if (x_26 == 0) -{ -lean_object* x_27; -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_2); -lean_ctor_set(x_27, 1, x_4); -return x_27; -} -else -{ -uint8_t x_28; -lean_inc(x_17); -x_28 = l_Lean_LocalContext_isSubPrefixOf(x_17, x_15); +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = lean_ctor_get(x_3, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +lean_dec(x_26); +x_28 = lean_ctor_get_uint8(x_27, sizeof(void*)*1 + 1); +lean_dec(x_27); if (x_28 == 0) { lean_object* x_29; lean_dec(x_17); lean_dec(x_16); +lean_dec(x_15); lean_dec(x_14); lean_dec(x_5); lean_dec(x_3); @@ -6217,282 +8496,213 @@ return x_29; } else { -lean_object* x_30; lean_object* x_31; -lean_dec(x_2); -x_30 = lean_ctor_get(x_14, 2); -lean_inc(x_30); -lean_dec(x_14); -lean_inc(x_3); -x_31 = lean_apply_3(x_1, x_30, x_3, x_4); -if (lean_obj_tag(x_31) == 0) +uint8_t x_30; +lean_inc(x_17); +x_30 = l_Lean_LocalContext_isSubPrefixOf(x_17, x_15); +if (x_30 == 0) { -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; -x_32 = lean_ctor_get(x_31, 0); -lean_inc(x_32); -x_33 = lean_ctor_get(x_31, 1); -lean_inc(x_33); -lean_dec(x_31); -x_34 = lean_ctor_get(x_16, 4); -lean_inc(x_34); -lean_dec(x_16); -x_35 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_17, x_34, x_32, x_3, x_33); -lean_dec(x_3); -x_36 = !lean_is_exclusive(x_35); -if (x_36 == 0) -{ -lean_object* x_37; uint8_t x_38; -x_37 = lean_ctor_get(x_35, 1); -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_39 = lean_ctor_get(x_35, 0); -x_40 = lean_ctor_get(x_37, 0); -lean_inc(x_39); -x_41 = l_Lean_MetavarContext_assignExpr(x_40, x_5, x_39); -lean_ctor_set(x_37, 0, x_41); -return x_35; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_42 = lean_ctor_get(x_35, 0); -x_43 = lean_ctor_get(x_37, 0); -x_44 = lean_ctor_get(x_37, 1); -x_45 = lean_ctor_get(x_37, 2); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_37); -lean_inc(x_42); -x_46 = l_Lean_MetavarContext_assignExpr(x_43, x_5, x_42); -x_47 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_47, 0, x_46); -lean_ctor_set(x_47, 1, x_44); -lean_ctor_set(x_47, 2, x_45); -lean_ctor_set(x_35, 1, x_47); -return x_35; -} -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_48 = lean_ctor_get(x_35, 1); -x_49 = lean_ctor_get(x_35, 0); -lean_inc(x_48); -lean_inc(x_49); -lean_dec(x_35); -x_50 = lean_ctor_get(x_48, 0); -lean_inc(x_50); -x_51 = lean_ctor_get(x_48, 1); -lean_inc(x_51); -x_52 = lean_ctor_get(x_48, 2); -lean_inc(x_52); -if (lean_is_exclusive(x_48)) { - lean_ctor_release(x_48, 0); - lean_ctor_release(x_48, 1); - lean_ctor_release(x_48, 2); - x_53 = x_48; -} else { - lean_dec_ref(x_48); - x_53 = lean_box(0); -} -lean_inc(x_49); -x_54 = l_Lean_MetavarContext_assignExpr(x_50, x_5, x_49); -if (lean_is_scalar(x_53)) { - x_55 = lean_alloc_ctor(0, 3, 0); -} else { - x_55 = x_53; -} -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_51); -lean_ctor_set(x_55, 2, x_52); -x_56 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_56, 0, x_49); -lean_ctor_set(x_56, 1, x_55); -return x_56; -} -} -else -{ -uint8_t x_57; +lean_object* x_31; lean_dec(x_17); lean_dec(x_16); +lean_dec(x_14); lean_dec(x_5); lean_dec(x_3); -x_57 = !lean_is_exclusive(x_31); -if (x_57 == 0) -{ +lean_dec(x_1); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_2); +lean_ctor_set(x_31, 1, x_4); return x_31; } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_31, 0); -x_59 = lean_ctor_get(x_31, 1); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_31); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -} -} -} -else -{ -lean_object* x_61; lean_object* x_62; -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); +lean_object* x_32; lean_object* x_33; +lean_dec(x_2); +x_32 = lean_ctor_get(x_14, 2); +lean_inc(x_32); lean_dec(x_14); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_61 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_61, 0, x_5); -x_62 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_62, 0, x_61); -lean_ctor_set(x_62, 1, x_4); -return x_62; -} -} -} -else -{ -lean_object* x_63; -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_63 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_63, 0, x_2); -lean_ctor_set(x_63, 1, x_4); -return x_63; -} -} -else -{ -lean_object* x_64; lean_object* x_65; -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_64 = lean_box(1); -x_65 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_65, 0, x_64); -lean_ctor_set(x_65, 1, x_4); -return x_65; -} -} -} -else -{ -lean_object* x_66; lean_object* x_67; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_66 = lean_box(0); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_4); -return x_67; -} -} -else -{ -lean_object* x_68; lean_object* x_69; uint8_t x_92; -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_2); -x_68 = lean_ctor_get(x_7, 0); -lean_inc(x_68); -lean_dec(x_7); -x_92 = l_Lean_Expr_hasExprMVar(x_68); -if (x_92 == 0) -{ -uint8_t x_93; -x_93 = l_Lean_Expr_hasFVar(x_68); -if (x_93 == 0) -{ -lean_object* x_94; -lean_dec(x_3); -lean_dec(x_1); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_68); -lean_ctor_set(x_94, 1, x_4); -return x_94; -} -else -{ -lean_object* x_95; -x_95 = lean_box(0); -x_69 = x_95; -goto block_91; -} -} -else -{ -lean_object* x_96; -x_96 = lean_box(0); -x_69 = x_96; -goto block_91; -} -block_91: -{ -lean_object* x_70; lean_object* x_71; -lean_dec(x_69); -x_70 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_68, x_3, x_4); -x_71 = lean_ctor_get(x_70, 0); -lean_inc(x_71); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; lean_object* x_73; -x_72 = lean_ctor_get(x_70, 1); -lean_inc(x_72); -lean_dec(x_70); lean_inc(x_3); -lean_inc(x_68); -x_73 = lean_apply_3(x_1, x_68, x_3, x_72); -if (lean_obj_tag(x_73) == 0) +x_33 = lean_apply_3(x_1, x_32, x_3, x_4); +if (lean_obj_tag(x_33) == 0) { -lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; -x_74 = lean_ctor_get(x_73, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_73, 1); -lean_inc(x_75); -lean_dec(x_73); -lean_inc(x_74); -x_76 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_68, x_74, x_3, x_75); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_34 = lean_ctor_get(x_33, 0); +lean_inc(x_34); +x_35 = lean_ctor_get(x_33, 1); +lean_inc(x_35); +lean_dec(x_33); +x_36 = lean_ctor_get(x_16, 4); +lean_inc(x_36); +lean_dec(x_16); +x_37 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_17, x_36, x_34, x_3, x_35); lean_dec(x_3); -x_77 = !lean_is_exclusive(x_76); -if (x_77 == 0) +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +x_40 = !lean_is_exclusive(x_37); +if (x_40 == 0) { -lean_object* x_78; -x_78 = lean_ctor_get(x_76, 0); -lean_dec(x_78); -lean_ctor_set(x_76, 0, x_74); -return x_76; +lean_object* x_41; lean_object* x_42; uint8_t x_43; +x_41 = lean_ctor_get(x_37, 0); +x_42 = lean_ctor_get(x_37, 1); +lean_dec(x_42); +x_43 = !lean_is_exclusive(x_38); +if (x_43 == 0) +{ +lean_object* x_44; uint8_t x_45; +x_44 = lean_ctor_get(x_38, 0); +lean_dec(x_44); +x_45 = !lean_is_exclusive(x_39); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +x_47 = l_Lean_MetavarContext_assignExpr(x_46, x_5, x_41); +lean_ctor_set(x_39, 1, x_47); +return x_37; } else { -lean_object* x_79; lean_object* x_80; -x_79 = lean_ctor_get(x_76, 1); -lean_inc(x_79); -lean_dec(x_76); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_48 = lean_ctor_get(x_39, 0); +x_49 = lean_ctor_get(x_39, 1); +x_50 = lean_ctor_get(x_39, 2); +x_51 = lean_ctor_get(x_39, 3); +x_52 = lean_ctor_get(x_39, 4); +x_53 = lean_ctor_get(x_39, 5); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_39); +lean_inc(x_41); +x_54 = l_Lean_MetavarContext_assignExpr(x_49, x_5, x_41); +x_55 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_55, 0, x_48); +lean_ctor_set(x_55, 1, x_54); +lean_ctor_set(x_55, 2, x_50); +lean_ctor_set(x_55, 3, x_51); +lean_ctor_set(x_55, 4, x_52); +lean_ctor_set(x_55, 5, x_53); +lean_ctor_set(x_38, 0, x_55); +return x_37; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_56 = lean_ctor_get(x_38, 1); +lean_inc(x_56); +lean_dec(x_38); +x_57 = lean_ctor_get(x_39, 0); +lean_inc(x_57); +x_58 = lean_ctor_get(x_39, 1); +lean_inc(x_58); +x_59 = lean_ctor_get(x_39, 2); +lean_inc(x_59); +x_60 = lean_ctor_get(x_39, 3); +lean_inc(x_60); +x_61 = lean_ctor_get(x_39, 4); +lean_inc(x_61); +x_62 = lean_ctor_get(x_39, 5); +lean_inc(x_62); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + lean_ctor_release(x_39, 3); + lean_ctor_release(x_39, 4); + lean_ctor_release(x_39, 5); + x_63 = x_39; +} else { + lean_dec_ref(x_39); + x_63 = lean_box(0); +} +lean_inc(x_41); +x_64 = l_Lean_MetavarContext_assignExpr(x_58, x_5, x_41); +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(0, 6, 0); +} else { + x_65 = x_63; +} +lean_ctor_set(x_65, 0, x_57); +lean_ctor_set(x_65, 1, x_64); +lean_ctor_set(x_65, 2, x_59); +lean_ctor_set(x_65, 3, x_60); +lean_ctor_set(x_65, 4, x_61); +lean_ctor_set(x_65, 5, x_62); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_56); +lean_ctor_set(x_37, 1, x_66); +return x_37; +} +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_67 = lean_ctor_get(x_37, 0); +lean_inc(x_67); +lean_dec(x_37); +x_68 = lean_ctor_get(x_38, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + x_69 = x_38; +} else { + lean_dec_ref(x_38); + x_69 = lean_box(0); +} +x_70 = lean_ctor_get(x_39, 0); +lean_inc(x_70); +x_71 = lean_ctor_get(x_39, 1); +lean_inc(x_71); +x_72 = lean_ctor_get(x_39, 2); +lean_inc(x_72); +x_73 = lean_ctor_get(x_39, 3); +lean_inc(x_73); +x_74 = lean_ctor_get(x_39, 4); +lean_inc(x_74); +x_75 = lean_ctor_get(x_39, 5); +lean_inc(x_75); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + lean_ctor_release(x_39, 2); + lean_ctor_release(x_39, 3); + lean_ctor_release(x_39, 4); + lean_ctor_release(x_39, 5); + x_76 = x_39; +} else { + lean_dec_ref(x_39); + x_76 = lean_box(0); +} +lean_inc(x_67); +x_77 = l_Lean_MetavarContext_assignExpr(x_71, x_5, x_67); +if (lean_is_scalar(x_76)) { + x_78 = lean_alloc_ctor(0, 6, 0); +} else { + x_78 = x_76; +} +lean_ctor_set(x_78, 0, x_70); +lean_ctor_set(x_78, 1, x_77); +lean_ctor_set(x_78, 2, x_72); +lean_ctor_set(x_78, 3, x_73); +lean_ctor_set(x_78, 4, x_74); +lean_ctor_set(x_78, 5, x_75); +if (lean_is_scalar(x_69)) { + x_79 = lean_alloc_ctor(0, 2, 0); +} else { + x_79 = x_69; +} +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_68); x_80 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_80, 0, x_74); +lean_ctor_set(x_80, 0, x_67); lean_ctor_set(x_80, 1, x_79); return x_80; } @@ -6500,21 +8710,23 @@ return x_80; else { uint8_t x_81; -lean_dec(x_68); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_5); lean_dec(x_3); -x_81 = !lean_is_exclusive(x_73); +x_81 = !lean_is_exclusive(x_33); if (x_81 == 0) { -return x_73; +return x_33; } else { lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_73, 0); -x_83 = lean_ctor_get(x_73, 1); +x_82 = lean_ctor_get(x_33, 0); +x_83 = lean_ctor_get(x_33, 1); lean_inc(x_83); lean_inc(x_82); -lean_dec(x_73); +lean_dec(x_33); x_84 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_84, 0, x_82); lean_ctor_set(x_84, 1, x_83); @@ -6522,41 +8734,7322 @@ return x_84; } } } +} +} else { -uint8_t x_85; -lean_dec(x_68); +lean_object* x_85; lean_object* x_86; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_85 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_85, 0, x_5); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_4); +return x_86; +} +} +} +else +{ +lean_object* x_87; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_7); +lean_dec(x_5); lean_dec(x_3); lean_dec(x_1); -x_85 = !lean_is_exclusive(x_70); -if (x_85 == 0) -{ -lean_object* x_86; lean_object* x_87; -x_86 = lean_ctor_get(x_70, 0); -lean_dec(x_86); -x_87 = lean_ctor_get(x_71, 0); -lean_inc(x_87); -lean_dec(x_71); -lean_ctor_set(x_70, 0, x_87); -return x_70; +x_87 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_87, 0, x_2); +lean_ctor_set(x_87, 1, x_4); +return x_87; +} } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_70, 1); -lean_inc(x_88); -lean_dec(x_70); -x_89 = lean_ctor_get(x_71, 0); +lean_object* x_88; lean_object* x_89; +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_88 = lean_box(1); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_88); +lean_ctor_set(x_89, 1, x_4); +return x_89; +} +} +} +else +{ +lean_object* x_90; lean_object* x_91; +lean_dec(x_7); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_90 = lean_box(0); +x_91 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_4); +return x_91; +} +} +} +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_get_size(x_6); +x_11 = lean_nat_dec_lt(x_7, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +x_12 = lean_nat_dec_eq(x_5, x_2); +if (x_12 == 0) +{ +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_13 = 0; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_9); +return x_15; +} +else +{ +lean_object* x_16; +lean_inc(x_8); +x_16 = l_Lean_Meta_mkLambda(x_4, x_3, x_8, x_9); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_1, x_17, x_8, x_18); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_8); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_16); +if (x_20 == 0) +{ +return x_16; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_16, 0); +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_16); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_array_fget(x_6, x_7); +lean_inc(x_8); +x_25 = l_Lean_Meta_getFVarLocalDecl(x_24, x_8, x_9); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_LocalDecl_type(x_26); +lean_dec(x_26); +lean_inc(x_8); +lean_inc(x_28); +x_29 = l_Lean_Meta_isClassQuick___main(x_28, x_8, x_27); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +switch (lean_obj_tag(x_30)) { +case 0: +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_28); +lean_dec(x_24); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_unsigned_to_nat(1u); +x_33 = lean_nat_add(x_7, x_32); +lean_dec(x_7); +x_7 = x_33; +x_9 = x_31; +goto _start; +} +case 1: +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +lean_dec(x_28); +x_35 = lean_ctor_get(x_29, 1); +lean_inc(x_35); +lean_dec(x_29); +x_36 = lean_ctor_get(x_30, 0); +lean_inc(x_36); +lean_dec(x_30); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_7, x_37); +lean_dec(x_7); +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_35, 2); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_40, 2); +x_43 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_40, 2, x_43); +x_44 = !lean_is_exclusive(x_8); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_8, 2); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_36); +lean_ctor_set(x_46, 1, x_24); +x_47 = lean_array_push(x_45, x_46); +lean_ctor_set(x_8, 2, x_47); +x_48 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_38, x_8, x_35); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +x_50 = lean_ctor_get(x_49, 2); +lean_inc(x_50); +x_51 = !lean_is_exclusive(x_48); +if (x_51 == 0) +{ +lean_object* x_52; uint8_t x_53; +x_52 = lean_ctor_get(x_48, 1); +lean_dec(x_52); +x_53 = !lean_is_exclusive(x_49); +if (x_53 == 0) +{ +lean_object* x_54; uint8_t x_55; +x_54 = lean_ctor_get(x_49, 2); +lean_dec(x_54); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 2); +lean_dec(x_56); +lean_ctor_set(x_50, 2, x_42); +return x_48; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_50, 0); +x_58 = lean_ctor_get(x_50, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_50); +x_59 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +lean_ctor_set(x_59, 2, x_42); +lean_ctor_set(x_49, 2, x_59); +return x_48; +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_60 = lean_ctor_get(x_49, 0); +x_61 = lean_ctor_get(x_49, 1); +x_62 = lean_ctor_get(x_49, 3); +x_63 = lean_ctor_get(x_49, 4); +x_64 = lean_ctor_get(x_49, 5); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_49); +x_65 = lean_ctor_get(x_50, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_50, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + lean_ctor_release(x_50, 2); + x_67 = x_50; +} else { + lean_dec_ref(x_50); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(0, 3, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +lean_ctor_set(x_68, 2, x_42); +x_69 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_69, 0, x_60); +lean_ctor_set(x_69, 1, x_61); +lean_ctor_set(x_69, 2, x_68); +lean_ctor_set(x_69, 3, x_62); +lean_ctor_set(x_69, 4, x_63); +lean_ctor_set(x_69, 5, x_64); +lean_ctor_set(x_48, 1, x_69); +return x_48; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_70 = lean_ctor_get(x_48, 0); +lean_inc(x_70); +lean_dec(x_48); +x_71 = lean_ctor_get(x_49, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_49, 1); +lean_inc(x_72); +x_73 = lean_ctor_get(x_49, 3); +lean_inc(x_73); +x_74 = lean_ctor_get(x_49, 4); +lean_inc(x_74); +x_75 = lean_ctor_get(x_49, 5); +lean_inc(x_75); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + lean_ctor_release(x_49, 2); + lean_ctor_release(x_49, 3); + lean_ctor_release(x_49, 4); + lean_ctor_release(x_49, 5); + x_76 = x_49; +} else { + lean_dec_ref(x_49); + x_76 = lean_box(0); +} +x_77 = lean_ctor_get(x_50, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_50, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + lean_ctor_release(x_50, 2); + x_79 = x_50; +} else { + lean_dec_ref(x_50); + x_79 = lean_box(0); +} +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(0, 3, 0); +} else { + x_80 = x_79; +} +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_78); +lean_ctor_set(x_80, 2, x_42); +if (lean_is_scalar(x_76)) { + x_81 = lean_alloc_ctor(0, 6, 0); +} else { + x_81 = x_76; +} +lean_ctor_set(x_81, 0, x_71); +lean_ctor_set(x_81, 1, x_72); +lean_ctor_set(x_81, 2, x_80); +lean_ctor_set(x_81, 3, x_73); +lean_ctor_set(x_81, 4, x_74); +lean_ctor_set(x_81, 5, x_75); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_70); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_83 = lean_ctor_get(x_48, 1); +lean_inc(x_83); +x_84 = lean_ctor_get(x_83, 2); +lean_inc(x_84); +x_85 = !lean_is_exclusive(x_48); +if (x_85 == 0) +{ +lean_object* x_86; uint8_t x_87; +x_86 = lean_ctor_get(x_48, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_83); +if (x_87 == 0) +{ +lean_object* x_88; uint8_t x_89; +x_88 = lean_ctor_get(x_83, 2); +lean_dec(x_88); +x_89 = !lean_is_exclusive(x_84); +if (x_89 == 0) +{ +lean_object* x_90; +x_90 = lean_ctor_get(x_84, 2); +lean_dec(x_90); +lean_ctor_set(x_84, 2, x_42); +return x_48; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_84, 0); +x_92 = lean_ctor_get(x_84, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_84); +x_93 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +lean_ctor_set(x_93, 2, x_42); +lean_ctor_set(x_83, 2, x_93); +return x_48; +} +} +else +{ +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_94 = lean_ctor_get(x_83, 0); +x_95 = lean_ctor_get(x_83, 1); +x_96 = lean_ctor_get(x_83, 3); +x_97 = lean_ctor_get(x_83, 4); +x_98 = lean_ctor_get(x_83, 5); +lean_inc(x_98); +lean_inc(x_97); +lean_inc(x_96); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_83); +x_99 = lean_ctor_get(x_84, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_84, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + lean_ctor_release(x_84, 2); + x_101 = x_84; +} else { + lean_dec_ref(x_84); + x_101 = lean_box(0); +} +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(0, 3, 0); +} else { + x_102 = x_101; +} +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +lean_ctor_set(x_102, 2, x_42); +x_103 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_103, 0, x_94); +lean_ctor_set(x_103, 1, x_95); +lean_ctor_set(x_103, 2, x_102); +lean_ctor_set(x_103, 3, x_96); +lean_ctor_set(x_103, 4, x_97); +lean_ctor_set(x_103, 5, x_98); +lean_ctor_set(x_48, 1, x_103); +return x_48; +} +} +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; +x_104 = lean_ctor_get(x_48, 0); +lean_inc(x_104); +lean_dec(x_48); +x_105 = lean_ctor_get(x_83, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_83, 1); +lean_inc(x_106); +x_107 = lean_ctor_get(x_83, 3); +lean_inc(x_107); +x_108 = lean_ctor_get(x_83, 4); +lean_inc(x_108); +x_109 = lean_ctor_get(x_83, 5); +lean_inc(x_109); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + lean_ctor_release(x_83, 2); + lean_ctor_release(x_83, 3); + lean_ctor_release(x_83, 4); + lean_ctor_release(x_83, 5); + x_110 = x_83; +} else { + lean_dec_ref(x_83); + x_110 = lean_box(0); +} +x_111 = lean_ctor_get(x_84, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_84, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + lean_ctor_release(x_84, 2); + x_113 = x_84; +} else { + lean_dec_ref(x_84); + x_113 = lean_box(0); +} +if (lean_is_scalar(x_113)) { + x_114 = lean_alloc_ctor(0, 3, 0); +} else { + x_114 = x_113; +} +lean_ctor_set(x_114, 0, x_111); +lean_ctor_set(x_114, 1, x_112); +lean_ctor_set(x_114, 2, x_42); +if (lean_is_scalar(x_110)) { + x_115 = lean_alloc_ctor(0, 6, 0); +} else { + x_115 = x_110; +} +lean_ctor_set(x_115, 0, x_105); +lean_ctor_set(x_115, 1, x_106); +lean_ctor_set(x_115, 2, x_114); +lean_ctor_set(x_115, 3, x_107); +lean_ctor_set(x_115, 4, x_108); +lean_ctor_set(x_115, 5, x_109); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_104); +lean_ctor_set(x_116, 1, x_115); +return x_116; +} +} +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_117 = lean_ctor_get(x_8, 0); +x_118 = lean_ctor_get(x_8, 1); +x_119 = lean_ctor_get(x_8, 2); +x_120 = lean_ctor_get(x_8, 3); +x_121 = lean_ctor_get(x_8, 4); +lean_inc(x_121); +lean_inc(x_120); +lean_inc(x_119); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_8); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_36); +lean_ctor_set(x_122, 1, x_24); +x_123 = lean_array_push(x_119, x_122); +x_124 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_124, 0, x_117); +lean_ctor_set(x_124, 1, x_118); +lean_ctor_set(x_124, 2, x_123); +lean_ctor_set(x_124, 3, x_120); +lean_ctor_set(x_124, 4, x_121); +x_125 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_38, x_124, x_35); +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_126 = lean_ctor_get(x_125, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_126, 2); +lean_inc(x_127); +x_128 = lean_ctor_get(x_125, 0); +lean_inc(x_128); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_129 = x_125; +} else { + lean_dec_ref(x_125); + x_129 = lean_box(0); +} +x_130 = lean_ctor_get(x_126, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_126, 1); +lean_inc(x_131); +x_132 = lean_ctor_get(x_126, 3); +lean_inc(x_132); +x_133 = lean_ctor_get(x_126, 4); +lean_inc(x_133); +x_134 = lean_ctor_get(x_126, 5); +lean_inc(x_134); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + lean_ctor_release(x_126, 2); + lean_ctor_release(x_126, 3); + lean_ctor_release(x_126, 4); + lean_ctor_release(x_126, 5); + x_135 = x_126; +} else { + lean_dec_ref(x_126); + x_135 = lean_box(0); +} +x_136 = lean_ctor_get(x_127, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_127, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + lean_ctor_release(x_127, 2); + x_138 = x_127; +} else { + lean_dec_ref(x_127); + x_138 = lean_box(0); +} +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(0, 3, 0); +} else { + x_139 = x_138; +} +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +lean_ctor_set(x_139, 2, x_42); +if (lean_is_scalar(x_135)) { + x_140 = lean_alloc_ctor(0, 6, 0); +} else { + x_140 = x_135; +} +lean_ctor_set(x_140, 0, x_130); +lean_ctor_set(x_140, 1, x_131); +lean_ctor_set(x_140, 2, x_139); +lean_ctor_set(x_140, 3, x_132); +lean_ctor_set(x_140, 4, x_133); +lean_ctor_set(x_140, 5, x_134); +if (lean_is_scalar(x_129)) { + x_141 = lean_alloc_ctor(0, 2, 0); +} else { + x_141 = x_129; +} +lean_ctor_set(x_141, 0, x_128); +lean_ctor_set(x_141, 1, x_140); +return x_141; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_142 = lean_ctor_get(x_125, 1); +lean_inc(x_142); +x_143 = lean_ctor_get(x_142, 2); +lean_inc(x_143); +x_144 = lean_ctor_get(x_125, 0); +lean_inc(x_144); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_145 = x_125; +} else { + lean_dec_ref(x_125); + x_145 = lean_box(0); +} +x_146 = lean_ctor_get(x_142, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_142, 1); +lean_inc(x_147); +x_148 = lean_ctor_get(x_142, 3); +lean_inc(x_148); +x_149 = lean_ctor_get(x_142, 4); +lean_inc(x_149); +x_150 = lean_ctor_get(x_142, 5); +lean_inc(x_150); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + lean_ctor_release(x_142, 2); + lean_ctor_release(x_142, 3); + lean_ctor_release(x_142, 4); + lean_ctor_release(x_142, 5); + x_151 = x_142; +} else { + lean_dec_ref(x_142); + x_151 = lean_box(0); +} +x_152 = lean_ctor_get(x_143, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_143, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + lean_ctor_release(x_143, 2); + x_154 = x_143; +} else { + lean_dec_ref(x_143); + x_154 = lean_box(0); +} +if (lean_is_scalar(x_154)) { + x_155 = lean_alloc_ctor(0, 3, 0); +} else { + x_155 = x_154; +} +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_153); +lean_ctor_set(x_155, 2, x_42); +if (lean_is_scalar(x_151)) { + x_156 = lean_alloc_ctor(0, 6, 0); +} else { + x_156 = x_151; +} +lean_ctor_set(x_156, 0, x_146); +lean_ctor_set(x_156, 1, x_147); +lean_ctor_set(x_156, 2, x_155); +lean_ctor_set(x_156, 3, x_148); +lean_ctor_set(x_156, 4, x_149); +lean_ctor_set(x_156, 5, x_150); +if (lean_is_scalar(x_145)) { + x_157 = lean_alloc_ctor(1, 2, 0); +} else { + x_157 = x_145; +} +lean_ctor_set(x_157, 0, x_144); +lean_ctor_set(x_157, 1, x_156); +return x_157; +} +} +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_158 = lean_ctor_get(x_40, 0); +x_159 = lean_ctor_get(x_40, 1); +x_160 = lean_ctor_get(x_40, 2); +lean_inc(x_160); +lean_inc(x_159); +lean_inc(x_158); +lean_dec(x_40); +x_161 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_162 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_162, 0, x_158); +lean_ctor_set(x_162, 1, x_159); +lean_ctor_set(x_162, 2, x_161); +lean_ctor_set(x_35, 2, x_162); +x_163 = lean_ctor_get(x_8, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_8, 1); +lean_inc(x_164); +x_165 = lean_ctor_get(x_8, 2); +lean_inc(x_165); +x_166 = lean_ctor_get(x_8, 3); +lean_inc(x_166); +x_167 = lean_ctor_get(x_8, 4); +lean_inc(x_167); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + x_168 = x_8; +} else { + lean_dec_ref(x_8); + x_168 = lean_box(0); +} +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_36); +lean_ctor_set(x_169, 1, x_24); +x_170 = lean_array_push(x_165, x_169); +if (lean_is_scalar(x_168)) { + x_171 = lean_alloc_ctor(0, 5, 0); +} else { + x_171 = x_168; +} +lean_ctor_set(x_171, 0, x_163); +lean_ctor_set(x_171, 1, x_164); +lean_ctor_set(x_171, 2, x_170); +lean_ctor_set(x_171, 3, x_166); +lean_ctor_set(x_171, 4, x_167); +x_172 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_38, x_171, x_35); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; 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; +x_173 = lean_ctor_get(x_172, 1); +lean_inc(x_173); +x_174 = lean_ctor_get(x_173, 2); +lean_inc(x_174); +x_175 = lean_ctor_get(x_172, 0); +lean_inc(x_175); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_176 = x_172; +} else { + lean_dec_ref(x_172); + x_176 = lean_box(0); +} +x_177 = lean_ctor_get(x_173, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_173, 1); +lean_inc(x_178); +x_179 = lean_ctor_get(x_173, 3); +lean_inc(x_179); +x_180 = lean_ctor_get(x_173, 4); +lean_inc(x_180); +x_181 = lean_ctor_get(x_173, 5); +lean_inc(x_181); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + lean_ctor_release(x_173, 2); + lean_ctor_release(x_173, 3); + lean_ctor_release(x_173, 4); + lean_ctor_release(x_173, 5); + x_182 = x_173; +} else { + lean_dec_ref(x_173); + x_182 = lean_box(0); +} +x_183 = lean_ctor_get(x_174, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_174, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + lean_ctor_release(x_174, 2); + x_185 = x_174; +} else { + lean_dec_ref(x_174); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(0, 3, 0); +} else { + x_186 = x_185; +} +lean_ctor_set(x_186, 0, x_183); +lean_ctor_set(x_186, 1, x_184); +lean_ctor_set(x_186, 2, x_160); +if (lean_is_scalar(x_182)) { + x_187 = lean_alloc_ctor(0, 6, 0); +} else { + x_187 = x_182; +} +lean_ctor_set(x_187, 0, x_177); +lean_ctor_set(x_187, 1, x_178); +lean_ctor_set(x_187, 2, x_186); +lean_ctor_set(x_187, 3, x_179); +lean_ctor_set(x_187, 4, x_180); +lean_ctor_set(x_187, 5, x_181); +if (lean_is_scalar(x_176)) { + x_188 = lean_alloc_ctor(0, 2, 0); +} else { + x_188 = x_176; +} +lean_ctor_set(x_188, 0, x_175); +lean_ctor_set(x_188, 1, x_187); +return x_188; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_189 = lean_ctor_get(x_172, 1); +lean_inc(x_189); +x_190 = lean_ctor_get(x_189, 2); +lean_inc(x_190); +x_191 = lean_ctor_get(x_172, 0); +lean_inc(x_191); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_192 = x_172; +} else { + lean_dec_ref(x_172); + x_192 = lean_box(0); +} +x_193 = lean_ctor_get(x_189, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_189, 1); +lean_inc(x_194); +x_195 = lean_ctor_get(x_189, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_189, 4); +lean_inc(x_196); +x_197 = lean_ctor_get(x_189, 5); +lean_inc(x_197); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + lean_ctor_release(x_189, 2); + lean_ctor_release(x_189, 3); + lean_ctor_release(x_189, 4); + lean_ctor_release(x_189, 5); + x_198 = x_189; +} else { + lean_dec_ref(x_189); + x_198 = lean_box(0); +} +x_199 = lean_ctor_get(x_190, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_190, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + lean_ctor_release(x_190, 2); + x_201 = x_190; +} else { + lean_dec_ref(x_190); + x_201 = lean_box(0); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(0, 3, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +lean_ctor_set(x_202, 2, x_160); +if (lean_is_scalar(x_198)) { + x_203 = lean_alloc_ctor(0, 6, 0); +} else { + x_203 = x_198; +} +lean_ctor_set(x_203, 0, x_193); +lean_ctor_set(x_203, 1, x_194); +lean_ctor_set(x_203, 2, x_202); +lean_ctor_set(x_203, 3, x_195); +lean_ctor_set(x_203, 4, x_196); +lean_ctor_set(x_203, 5, x_197); +if (lean_is_scalar(x_192)) { + x_204 = lean_alloc_ctor(1, 2, 0); +} else { + x_204 = x_192; +} +lean_ctor_set(x_204, 0, x_191); +lean_ctor_set(x_204, 1, x_203); +return x_204; +} +} +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_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_205 = lean_ctor_get(x_35, 2); +x_206 = lean_ctor_get(x_35, 0); +x_207 = lean_ctor_get(x_35, 1); +x_208 = lean_ctor_get(x_35, 3); +x_209 = lean_ctor_get(x_35, 4); +x_210 = lean_ctor_get(x_35, 5); +lean_inc(x_210); +lean_inc(x_209); +lean_inc(x_208); +lean_inc(x_205); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_35); +x_211 = lean_ctor_get(x_205, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_205, 1); +lean_inc(x_212); +x_213 = lean_ctor_get(x_205, 2); +lean_inc(x_213); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + x_214 = x_205; +} else { + lean_dec_ref(x_205); + x_214 = lean_box(0); +} +x_215 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_214)) { + x_216 = lean_alloc_ctor(0, 3, 0); +} else { + x_216 = x_214; +} +lean_ctor_set(x_216, 0, x_211); +lean_ctor_set(x_216, 1, x_212); +lean_ctor_set(x_216, 2, x_215); +x_217 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_217, 0, x_206); +lean_ctor_set(x_217, 1, x_207); +lean_ctor_set(x_217, 2, x_216); +lean_ctor_set(x_217, 3, x_208); +lean_ctor_set(x_217, 4, x_209); +lean_ctor_set(x_217, 5, x_210); +x_218 = lean_ctor_get(x_8, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_8, 1); +lean_inc(x_219); +x_220 = lean_ctor_get(x_8, 2); +lean_inc(x_220); +x_221 = lean_ctor_get(x_8, 3); +lean_inc(x_221); +x_222 = lean_ctor_get(x_8, 4); +lean_inc(x_222); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + x_223 = x_8; +} else { + lean_dec_ref(x_8); + x_223 = lean_box(0); +} +x_224 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_224, 0, x_36); +lean_ctor_set(x_224, 1, x_24); +x_225 = lean_array_push(x_220, x_224); +if (lean_is_scalar(x_223)) { + x_226 = lean_alloc_ctor(0, 5, 0); +} else { + x_226 = x_223; +} +lean_ctor_set(x_226, 0, x_218); +lean_ctor_set(x_226, 1, x_219); +lean_ctor_set(x_226, 2, x_225); +lean_ctor_set(x_226, 3, x_221); +lean_ctor_set(x_226, 4, x_222); +x_227 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_38, x_226, x_217); +if (lean_obj_tag(x_227) == 0) +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +x_228 = lean_ctor_get(x_227, 1); +lean_inc(x_228); +x_229 = lean_ctor_get(x_228, 2); +lean_inc(x_229); +x_230 = lean_ctor_get(x_227, 0); +lean_inc(x_230); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_231 = x_227; +} else { + lean_dec_ref(x_227); + x_231 = lean_box(0); +} +x_232 = lean_ctor_get(x_228, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_228, 1); +lean_inc(x_233); +x_234 = lean_ctor_get(x_228, 3); +lean_inc(x_234); +x_235 = lean_ctor_get(x_228, 4); +lean_inc(x_235); +x_236 = lean_ctor_get(x_228, 5); +lean_inc(x_236); +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + lean_ctor_release(x_228, 2); + lean_ctor_release(x_228, 3); + lean_ctor_release(x_228, 4); + lean_ctor_release(x_228, 5); + x_237 = x_228; +} else { + lean_dec_ref(x_228); + x_237 = lean_box(0); +} +x_238 = lean_ctor_get(x_229, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_229, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + lean_ctor_release(x_229, 2); + x_240 = x_229; +} else { + lean_dec_ref(x_229); + x_240 = lean_box(0); +} +if (lean_is_scalar(x_240)) { + x_241 = lean_alloc_ctor(0, 3, 0); +} else { + x_241 = x_240; +} +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +lean_ctor_set(x_241, 2, x_213); +if (lean_is_scalar(x_237)) { + x_242 = lean_alloc_ctor(0, 6, 0); +} else { + x_242 = x_237; +} +lean_ctor_set(x_242, 0, x_232); +lean_ctor_set(x_242, 1, x_233); +lean_ctor_set(x_242, 2, x_241); +lean_ctor_set(x_242, 3, x_234); +lean_ctor_set(x_242, 4, x_235); +lean_ctor_set(x_242, 5, x_236); +if (lean_is_scalar(x_231)) { + x_243 = lean_alloc_ctor(0, 2, 0); +} else { + x_243 = x_231; +} +lean_ctor_set(x_243, 0, x_230); +lean_ctor_set(x_243, 1, x_242); +return x_243; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_244 = lean_ctor_get(x_227, 1); +lean_inc(x_244); +x_245 = lean_ctor_get(x_244, 2); +lean_inc(x_245); +x_246 = lean_ctor_get(x_227, 0); +lean_inc(x_246); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_247 = x_227; +} else { + lean_dec_ref(x_227); + x_247 = lean_box(0); +} +x_248 = lean_ctor_get(x_244, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_244, 1); +lean_inc(x_249); +x_250 = lean_ctor_get(x_244, 3); +lean_inc(x_250); +x_251 = lean_ctor_get(x_244, 4); +lean_inc(x_251); +x_252 = lean_ctor_get(x_244, 5); +lean_inc(x_252); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + lean_ctor_release(x_244, 2); + lean_ctor_release(x_244, 3); + lean_ctor_release(x_244, 4); + lean_ctor_release(x_244, 5); + x_253 = x_244; +} else { + lean_dec_ref(x_244); + x_253 = lean_box(0); +} +x_254 = lean_ctor_get(x_245, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_245, 1); +lean_inc(x_255); +if (lean_is_exclusive(x_245)) { + lean_ctor_release(x_245, 0); + lean_ctor_release(x_245, 1); + lean_ctor_release(x_245, 2); + x_256 = x_245; +} else { + lean_dec_ref(x_245); + x_256 = lean_box(0); +} +if (lean_is_scalar(x_256)) { + x_257 = lean_alloc_ctor(0, 3, 0); +} else { + x_257 = x_256; +} +lean_ctor_set(x_257, 0, x_254); +lean_ctor_set(x_257, 1, x_255); +lean_ctor_set(x_257, 2, x_213); +if (lean_is_scalar(x_253)) { + x_258 = lean_alloc_ctor(0, 6, 0); +} else { + x_258 = x_253; +} +lean_ctor_set(x_258, 0, x_248); +lean_ctor_set(x_258, 1, x_249); +lean_ctor_set(x_258, 2, x_257); +lean_ctor_set(x_258, 3, x_250); +lean_ctor_set(x_258, 4, x_251); +lean_ctor_set(x_258, 5, x_252); +if (lean_is_scalar(x_247)) { + x_259 = lean_alloc_ctor(1, 2, 0); +} else { + x_259 = x_247; +} +lean_ctor_set(x_259, 0, x_246); +lean_ctor_set(x_259, 1, x_258); +return x_259; +} +} +} +default: +{ +lean_object* x_260; lean_object* x_261; +x_260 = lean_ctor_get(x_29, 1); +lean_inc(x_260); +lean_dec(x_29); +lean_inc(x_8); +x_261 = l_Lean_Meta_isClassExpensive___main(x_28, x_8, x_260); +if (lean_obj_tag(x_261) == 0) +{ +lean_object* x_262; +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +if (lean_obj_tag(x_262) == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_24); +x_263 = lean_ctor_get(x_261, 1); +lean_inc(x_263); +lean_dec(x_261); +x_264 = lean_unsigned_to_nat(1u); +x_265 = lean_nat_add(x_7, x_264); +lean_dec(x_7); +x_7 = x_265; +x_9 = x_263; +goto _start; +} +else +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; +x_267 = lean_ctor_get(x_261, 1); +lean_inc(x_267); +lean_dec(x_261); +x_268 = lean_ctor_get(x_262, 0); +lean_inc(x_268); +lean_dec(x_262); +x_269 = lean_unsigned_to_nat(1u); +x_270 = lean_nat_add(x_7, x_269); +lean_dec(x_7); +x_271 = !lean_is_exclusive(x_267); +if (x_271 == 0) +{ +lean_object* x_272; uint8_t x_273; +x_272 = lean_ctor_get(x_267, 2); +x_273 = !lean_is_exclusive(x_272); +if (x_273 == 0) +{ +lean_object* x_274; lean_object* x_275; uint8_t x_276; +x_274 = lean_ctor_get(x_272, 2); +x_275 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_272, 2, x_275); +x_276 = !lean_is_exclusive(x_8); +if (x_276 == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +x_277 = lean_ctor_get(x_8, 2); +x_278 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_278, 0, x_268); +lean_ctor_set(x_278, 1, x_24); +x_279 = lean_array_push(x_277, x_278); +lean_ctor_set(x_8, 2, x_279); +x_280 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_270, x_8, x_267); +if (lean_obj_tag(x_280) == 0) +{ +lean_object* x_281; lean_object* x_282; uint8_t x_283; +x_281 = lean_ctor_get(x_280, 1); +lean_inc(x_281); +x_282 = lean_ctor_get(x_281, 2); +lean_inc(x_282); +x_283 = !lean_is_exclusive(x_280); +if (x_283 == 0) +{ +lean_object* x_284; uint8_t x_285; +x_284 = lean_ctor_get(x_280, 1); +lean_dec(x_284); +x_285 = !lean_is_exclusive(x_281); +if (x_285 == 0) +{ +lean_object* x_286; uint8_t x_287; +x_286 = lean_ctor_get(x_281, 2); +lean_dec(x_286); +x_287 = !lean_is_exclusive(x_282); +if (x_287 == 0) +{ +lean_object* x_288; +x_288 = lean_ctor_get(x_282, 2); +lean_dec(x_288); +lean_ctor_set(x_282, 2, x_274); +return x_280; +} +else +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_289 = lean_ctor_get(x_282, 0); +x_290 = lean_ctor_get(x_282, 1); +lean_inc(x_290); +lean_inc(x_289); +lean_dec(x_282); +x_291 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_291, 0, x_289); +lean_ctor_set(x_291, 1, x_290); +lean_ctor_set(x_291, 2, x_274); +lean_ctor_set(x_281, 2, x_291); +return x_280; +} +} +else +{ +lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_292 = lean_ctor_get(x_281, 0); +x_293 = lean_ctor_get(x_281, 1); +x_294 = lean_ctor_get(x_281, 3); +x_295 = lean_ctor_get(x_281, 4); +x_296 = lean_ctor_get(x_281, 5); +lean_inc(x_296); +lean_inc(x_295); +lean_inc(x_294); +lean_inc(x_293); +lean_inc(x_292); +lean_dec(x_281); +x_297 = lean_ctor_get(x_282, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_282, 1); +lean_inc(x_298); +if (lean_is_exclusive(x_282)) { + lean_ctor_release(x_282, 0); + lean_ctor_release(x_282, 1); + lean_ctor_release(x_282, 2); + x_299 = x_282; +} else { + lean_dec_ref(x_282); + x_299 = lean_box(0); +} +if (lean_is_scalar(x_299)) { + x_300 = lean_alloc_ctor(0, 3, 0); +} else { + x_300 = x_299; +} +lean_ctor_set(x_300, 0, x_297); +lean_ctor_set(x_300, 1, x_298); +lean_ctor_set(x_300, 2, x_274); +x_301 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_301, 0, x_292); +lean_ctor_set(x_301, 1, x_293); +lean_ctor_set(x_301, 2, x_300); +lean_ctor_set(x_301, 3, x_294); +lean_ctor_set(x_301, 4, x_295); +lean_ctor_set(x_301, 5, x_296); +lean_ctor_set(x_280, 1, x_301); +return x_280; +} +} +else +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_302 = lean_ctor_get(x_280, 0); +lean_inc(x_302); +lean_dec(x_280); +x_303 = lean_ctor_get(x_281, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_281, 1); +lean_inc(x_304); +x_305 = lean_ctor_get(x_281, 3); +lean_inc(x_305); +x_306 = lean_ctor_get(x_281, 4); +lean_inc(x_306); +x_307 = lean_ctor_get(x_281, 5); +lean_inc(x_307); +if (lean_is_exclusive(x_281)) { + lean_ctor_release(x_281, 0); + lean_ctor_release(x_281, 1); + lean_ctor_release(x_281, 2); + lean_ctor_release(x_281, 3); + lean_ctor_release(x_281, 4); + lean_ctor_release(x_281, 5); + x_308 = x_281; +} else { + lean_dec_ref(x_281); + x_308 = lean_box(0); +} +x_309 = lean_ctor_get(x_282, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_282, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_282)) { + lean_ctor_release(x_282, 0); + lean_ctor_release(x_282, 1); + lean_ctor_release(x_282, 2); + x_311 = x_282; +} else { + lean_dec_ref(x_282); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(0, 3, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_310); +lean_ctor_set(x_312, 2, x_274); +if (lean_is_scalar(x_308)) { + x_313 = lean_alloc_ctor(0, 6, 0); +} else { + x_313 = x_308; +} +lean_ctor_set(x_313, 0, x_303); +lean_ctor_set(x_313, 1, x_304); +lean_ctor_set(x_313, 2, x_312); +lean_ctor_set(x_313, 3, x_305); +lean_ctor_set(x_313, 4, x_306); +lean_ctor_set(x_313, 5, x_307); +x_314 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_314, 0, x_302); +lean_ctor_set(x_314, 1, x_313); +return x_314; +} +} +else +{ +lean_object* x_315; lean_object* x_316; uint8_t x_317; +x_315 = lean_ctor_get(x_280, 1); +lean_inc(x_315); +x_316 = lean_ctor_get(x_315, 2); +lean_inc(x_316); +x_317 = !lean_is_exclusive(x_280); +if (x_317 == 0) +{ +lean_object* x_318; uint8_t x_319; +x_318 = lean_ctor_get(x_280, 1); +lean_dec(x_318); +x_319 = !lean_is_exclusive(x_315); +if (x_319 == 0) +{ +lean_object* x_320; uint8_t x_321; +x_320 = lean_ctor_get(x_315, 2); +lean_dec(x_320); +x_321 = !lean_is_exclusive(x_316); +if (x_321 == 0) +{ +lean_object* x_322; +x_322 = lean_ctor_get(x_316, 2); +lean_dec(x_322); +lean_ctor_set(x_316, 2, x_274); +return x_280; +} +else +{ +lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_323 = lean_ctor_get(x_316, 0); +x_324 = lean_ctor_get(x_316, 1); +lean_inc(x_324); +lean_inc(x_323); +lean_dec(x_316); +x_325 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_325, 0, x_323); +lean_ctor_set(x_325, 1, x_324); +lean_ctor_set(x_325, 2, x_274); +lean_ctor_set(x_315, 2, x_325); +return x_280; +} +} +else +{ +lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_326 = lean_ctor_get(x_315, 0); +x_327 = lean_ctor_get(x_315, 1); +x_328 = lean_ctor_get(x_315, 3); +x_329 = lean_ctor_get(x_315, 4); +x_330 = lean_ctor_get(x_315, 5); +lean_inc(x_330); +lean_inc(x_329); +lean_inc(x_328); +lean_inc(x_327); +lean_inc(x_326); +lean_dec(x_315); +x_331 = lean_ctor_get(x_316, 0); +lean_inc(x_331); +x_332 = lean_ctor_get(x_316, 1); +lean_inc(x_332); +if (lean_is_exclusive(x_316)) { + lean_ctor_release(x_316, 0); + lean_ctor_release(x_316, 1); + lean_ctor_release(x_316, 2); + x_333 = x_316; +} else { + lean_dec_ref(x_316); + x_333 = lean_box(0); +} +if (lean_is_scalar(x_333)) { + x_334 = lean_alloc_ctor(0, 3, 0); +} else { + x_334 = x_333; +} +lean_ctor_set(x_334, 0, x_331); +lean_ctor_set(x_334, 1, x_332); +lean_ctor_set(x_334, 2, x_274); +x_335 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_335, 0, x_326); +lean_ctor_set(x_335, 1, x_327); +lean_ctor_set(x_335, 2, x_334); +lean_ctor_set(x_335, 3, x_328); +lean_ctor_set(x_335, 4, x_329); +lean_ctor_set(x_335, 5, x_330); +lean_ctor_set(x_280, 1, x_335); +return x_280; +} +} +else +{ +lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; +x_336 = lean_ctor_get(x_280, 0); +lean_inc(x_336); +lean_dec(x_280); +x_337 = lean_ctor_get(x_315, 0); +lean_inc(x_337); +x_338 = lean_ctor_get(x_315, 1); +lean_inc(x_338); +x_339 = lean_ctor_get(x_315, 3); +lean_inc(x_339); +x_340 = lean_ctor_get(x_315, 4); +lean_inc(x_340); +x_341 = lean_ctor_get(x_315, 5); +lean_inc(x_341); +if (lean_is_exclusive(x_315)) { + lean_ctor_release(x_315, 0); + lean_ctor_release(x_315, 1); + lean_ctor_release(x_315, 2); + lean_ctor_release(x_315, 3); + lean_ctor_release(x_315, 4); + lean_ctor_release(x_315, 5); + x_342 = x_315; +} else { + lean_dec_ref(x_315); + x_342 = lean_box(0); +} +x_343 = lean_ctor_get(x_316, 0); +lean_inc(x_343); +x_344 = lean_ctor_get(x_316, 1); +lean_inc(x_344); +if (lean_is_exclusive(x_316)) { + lean_ctor_release(x_316, 0); + lean_ctor_release(x_316, 1); + lean_ctor_release(x_316, 2); + x_345 = x_316; +} else { + lean_dec_ref(x_316); + x_345 = lean_box(0); +} +if (lean_is_scalar(x_345)) { + x_346 = lean_alloc_ctor(0, 3, 0); +} else { + x_346 = x_345; +} +lean_ctor_set(x_346, 0, x_343); +lean_ctor_set(x_346, 1, x_344); +lean_ctor_set(x_346, 2, x_274); +if (lean_is_scalar(x_342)) { + x_347 = lean_alloc_ctor(0, 6, 0); +} else { + x_347 = x_342; +} +lean_ctor_set(x_347, 0, x_337); +lean_ctor_set(x_347, 1, x_338); +lean_ctor_set(x_347, 2, x_346); +lean_ctor_set(x_347, 3, x_339); +lean_ctor_set(x_347, 4, x_340); +lean_ctor_set(x_347, 5, x_341); +x_348 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_348, 0, x_336); +lean_ctor_set(x_348, 1, x_347); +return x_348; +} +} +} +else +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_349 = lean_ctor_get(x_8, 0); +x_350 = lean_ctor_get(x_8, 1); +x_351 = lean_ctor_get(x_8, 2); +x_352 = lean_ctor_get(x_8, 3); +x_353 = lean_ctor_get(x_8, 4); +lean_inc(x_353); +lean_inc(x_352); +lean_inc(x_351); +lean_inc(x_350); +lean_inc(x_349); +lean_dec(x_8); +x_354 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_354, 0, x_268); +lean_ctor_set(x_354, 1, x_24); +x_355 = lean_array_push(x_351, x_354); +x_356 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_356, 0, x_349); +lean_ctor_set(x_356, 1, x_350); +lean_ctor_set(x_356, 2, x_355); +lean_ctor_set(x_356, 3, x_352); +lean_ctor_set(x_356, 4, x_353); +x_357 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_270, x_356, x_267); +if (lean_obj_tag(x_357) == 0) +{ +lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; 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; +x_358 = lean_ctor_get(x_357, 1); +lean_inc(x_358); +x_359 = lean_ctor_get(x_358, 2); +lean_inc(x_359); +x_360 = lean_ctor_get(x_357, 0); +lean_inc(x_360); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + x_361 = x_357; +} else { + lean_dec_ref(x_357); + x_361 = lean_box(0); +} +x_362 = lean_ctor_get(x_358, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_358, 1); +lean_inc(x_363); +x_364 = lean_ctor_get(x_358, 3); +lean_inc(x_364); +x_365 = lean_ctor_get(x_358, 4); +lean_inc(x_365); +x_366 = lean_ctor_get(x_358, 5); +lean_inc(x_366); +if (lean_is_exclusive(x_358)) { + lean_ctor_release(x_358, 0); + lean_ctor_release(x_358, 1); + lean_ctor_release(x_358, 2); + lean_ctor_release(x_358, 3); + lean_ctor_release(x_358, 4); + lean_ctor_release(x_358, 5); + x_367 = x_358; +} else { + lean_dec_ref(x_358); + x_367 = lean_box(0); +} +x_368 = lean_ctor_get(x_359, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_359, 1); +lean_inc(x_369); +if (lean_is_exclusive(x_359)) { + lean_ctor_release(x_359, 0); + lean_ctor_release(x_359, 1); + lean_ctor_release(x_359, 2); + x_370 = x_359; +} else { + lean_dec_ref(x_359); + x_370 = lean_box(0); +} +if (lean_is_scalar(x_370)) { + x_371 = lean_alloc_ctor(0, 3, 0); +} else { + x_371 = x_370; +} +lean_ctor_set(x_371, 0, x_368); +lean_ctor_set(x_371, 1, x_369); +lean_ctor_set(x_371, 2, x_274); +if (lean_is_scalar(x_367)) { + x_372 = lean_alloc_ctor(0, 6, 0); +} else { + x_372 = x_367; +} +lean_ctor_set(x_372, 0, x_362); +lean_ctor_set(x_372, 1, x_363); +lean_ctor_set(x_372, 2, x_371); +lean_ctor_set(x_372, 3, x_364); +lean_ctor_set(x_372, 4, x_365); +lean_ctor_set(x_372, 5, x_366); +if (lean_is_scalar(x_361)) { + x_373 = lean_alloc_ctor(0, 2, 0); +} else { + x_373 = x_361; +} +lean_ctor_set(x_373, 0, x_360); +lean_ctor_set(x_373, 1, x_372); +return x_373; +} +else +{ +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; +x_374 = lean_ctor_get(x_357, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_374, 2); +lean_inc(x_375); +x_376 = lean_ctor_get(x_357, 0); +lean_inc(x_376); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + x_377 = x_357; +} else { + lean_dec_ref(x_357); + x_377 = lean_box(0); +} +x_378 = lean_ctor_get(x_374, 0); +lean_inc(x_378); +x_379 = lean_ctor_get(x_374, 1); +lean_inc(x_379); +x_380 = lean_ctor_get(x_374, 3); +lean_inc(x_380); +x_381 = lean_ctor_get(x_374, 4); +lean_inc(x_381); +x_382 = lean_ctor_get(x_374, 5); +lean_inc(x_382); +if (lean_is_exclusive(x_374)) { + lean_ctor_release(x_374, 0); + lean_ctor_release(x_374, 1); + lean_ctor_release(x_374, 2); + lean_ctor_release(x_374, 3); + lean_ctor_release(x_374, 4); + lean_ctor_release(x_374, 5); + x_383 = x_374; +} else { + lean_dec_ref(x_374); + x_383 = lean_box(0); +} +x_384 = lean_ctor_get(x_375, 0); +lean_inc(x_384); +x_385 = lean_ctor_get(x_375, 1); +lean_inc(x_385); +if (lean_is_exclusive(x_375)) { + lean_ctor_release(x_375, 0); + lean_ctor_release(x_375, 1); + lean_ctor_release(x_375, 2); + x_386 = x_375; +} else { + lean_dec_ref(x_375); + x_386 = lean_box(0); +} +if (lean_is_scalar(x_386)) { + x_387 = lean_alloc_ctor(0, 3, 0); +} else { + x_387 = x_386; +} +lean_ctor_set(x_387, 0, x_384); +lean_ctor_set(x_387, 1, x_385); +lean_ctor_set(x_387, 2, x_274); +if (lean_is_scalar(x_383)) { + x_388 = lean_alloc_ctor(0, 6, 0); +} else { + x_388 = x_383; +} +lean_ctor_set(x_388, 0, x_378); +lean_ctor_set(x_388, 1, x_379); +lean_ctor_set(x_388, 2, x_387); +lean_ctor_set(x_388, 3, x_380); +lean_ctor_set(x_388, 4, x_381); +lean_ctor_set(x_388, 5, x_382); +if (lean_is_scalar(x_377)) { + x_389 = lean_alloc_ctor(1, 2, 0); +} else { + x_389 = x_377; +} +lean_ctor_set(x_389, 0, x_376); +lean_ctor_set(x_389, 1, x_388); +return x_389; +} +} +} +else +{ +lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; +x_390 = lean_ctor_get(x_272, 0); +x_391 = lean_ctor_get(x_272, 1); +x_392 = lean_ctor_get(x_272, 2); +lean_inc(x_392); +lean_inc(x_391); +lean_inc(x_390); +lean_dec(x_272); +x_393 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_394 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_394, 0, x_390); +lean_ctor_set(x_394, 1, x_391); +lean_ctor_set(x_394, 2, x_393); +lean_ctor_set(x_267, 2, x_394); +x_395 = lean_ctor_get(x_8, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_8, 1); +lean_inc(x_396); +x_397 = lean_ctor_get(x_8, 2); +lean_inc(x_397); +x_398 = lean_ctor_get(x_8, 3); +lean_inc(x_398); +x_399 = lean_ctor_get(x_8, 4); +lean_inc(x_399); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + x_400 = x_8; +} else { + lean_dec_ref(x_8); + x_400 = lean_box(0); +} +x_401 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_401, 0, x_268); +lean_ctor_set(x_401, 1, x_24); +x_402 = lean_array_push(x_397, x_401); +if (lean_is_scalar(x_400)) { + x_403 = lean_alloc_ctor(0, 5, 0); +} else { + x_403 = x_400; +} +lean_ctor_set(x_403, 0, x_395); +lean_ctor_set(x_403, 1, x_396); +lean_ctor_set(x_403, 2, x_402); +lean_ctor_set(x_403, 3, x_398); +lean_ctor_set(x_403, 4, x_399); +x_404 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_270, x_403, x_267); +if (lean_obj_tag(x_404) == 0) +{ +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; 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; +x_405 = lean_ctor_get(x_404, 1); +lean_inc(x_405); +x_406 = lean_ctor_get(x_405, 2); +lean_inc(x_406); +x_407 = lean_ctor_get(x_404, 0); +lean_inc(x_407); +if (lean_is_exclusive(x_404)) { + lean_ctor_release(x_404, 0); + lean_ctor_release(x_404, 1); + x_408 = x_404; +} else { + lean_dec_ref(x_404); + x_408 = lean_box(0); +} +x_409 = lean_ctor_get(x_405, 0); +lean_inc(x_409); +x_410 = lean_ctor_get(x_405, 1); +lean_inc(x_410); +x_411 = lean_ctor_get(x_405, 3); +lean_inc(x_411); +x_412 = lean_ctor_get(x_405, 4); +lean_inc(x_412); +x_413 = lean_ctor_get(x_405, 5); +lean_inc(x_413); +if (lean_is_exclusive(x_405)) { + lean_ctor_release(x_405, 0); + lean_ctor_release(x_405, 1); + lean_ctor_release(x_405, 2); + lean_ctor_release(x_405, 3); + lean_ctor_release(x_405, 4); + lean_ctor_release(x_405, 5); + x_414 = x_405; +} else { + lean_dec_ref(x_405); + x_414 = lean_box(0); +} +x_415 = lean_ctor_get(x_406, 0); +lean_inc(x_415); +x_416 = lean_ctor_get(x_406, 1); +lean_inc(x_416); +if (lean_is_exclusive(x_406)) { + lean_ctor_release(x_406, 0); + lean_ctor_release(x_406, 1); + lean_ctor_release(x_406, 2); + x_417 = x_406; +} else { + lean_dec_ref(x_406); + x_417 = lean_box(0); +} +if (lean_is_scalar(x_417)) { + x_418 = lean_alloc_ctor(0, 3, 0); +} else { + x_418 = x_417; +} +lean_ctor_set(x_418, 0, x_415); +lean_ctor_set(x_418, 1, x_416); +lean_ctor_set(x_418, 2, x_392); +if (lean_is_scalar(x_414)) { + x_419 = lean_alloc_ctor(0, 6, 0); +} else { + x_419 = x_414; +} +lean_ctor_set(x_419, 0, x_409); +lean_ctor_set(x_419, 1, x_410); +lean_ctor_set(x_419, 2, x_418); +lean_ctor_set(x_419, 3, x_411); +lean_ctor_set(x_419, 4, x_412); +lean_ctor_set(x_419, 5, x_413); +if (lean_is_scalar(x_408)) { + x_420 = lean_alloc_ctor(0, 2, 0); +} else { + x_420 = x_408; +} +lean_ctor_set(x_420, 0, x_407); +lean_ctor_set(x_420, 1, x_419); +return x_420; +} +else +{ +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; +x_421 = lean_ctor_get(x_404, 1); +lean_inc(x_421); +x_422 = lean_ctor_get(x_421, 2); +lean_inc(x_422); +x_423 = lean_ctor_get(x_404, 0); +lean_inc(x_423); +if (lean_is_exclusive(x_404)) { + lean_ctor_release(x_404, 0); + lean_ctor_release(x_404, 1); + x_424 = x_404; +} else { + lean_dec_ref(x_404); + x_424 = lean_box(0); +} +x_425 = lean_ctor_get(x_421, 0); +lean_inc(x_425); +x_426 = lean_ctor_get(x_421, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_421, 3); +lean_inc(x_427); +x_428 = lean_ctor_get(x_421, 4); +lean_inc(x_428); +x_429 = lean_ctor_get(x_421, 5); +lean_inc(x_429); +if (lean_is_exclusive(x_421)) { + lean_ctor_release(x_421, 0); + lean_ctor_release(x_421, 1); + lean_ctor_release(x_421, 2); + lean_ctor_release(x_421, 3); + lean_ctor_release(x_421, 4); + lean_ctor_release(x_421, 5); + x_430 = x_421; +} else { + lean_dec_ref(x_421); + x_430 = lean_box(0); +} +x_431 = lean_ctor_get(x_422, 0); +lean_inc(x_431); +x_432 = lean_ctor_get(x_422, 1); +lean_inc(x_432); +if (lean_is_exclusive(x_422)) { + lean_ctor_release(x_422, 0); + lean_ctor_release(x_422, 1); + lean_ctor_release(x_422, 2); + x_433 = x_422; +} else { + lean_dec_ref(x_422); + x_433 = lean_box(0); +} +if (lean_is_scalar(x_433)) { + x_434 = lean_alloc_ctor(0, 3, 0); +} else { + x_434 = x_433; +} +lean_ctor_set(x_434, 0, x_431); +lean_ctor_set(x_434, 1, x_432); +lean_ctor_set(x_434, 2, x_392); +if (lean_is_scalar(x_430)) { + x_435 = lean_alloc_ctor(0, 6, 0); +} else { + x_435 = x_430; +} +lean_ctor_set(x_435, 0, x_425); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_434); +lean_ctor_set(x_435, 3, x_427); +lean_ctor_set(x_435, 4, x_428); +lean_ctor_set(x_435, 5, x_429); +if (lean_is_scalar(x_424)) { + x_436 = lean_alloc_ctor(1, 2, 0); +} else { + x_436 = x_424; +} +lean_ctor_set(x_436, 0, x_423); +lean_ctor_set(x_436, 1, x_435); +return x_436; +} +} +} +else +{ +lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_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; +x_437 = lean_ctor_get(x_267, 2); +x_438 = lean_ctor_get(x_267, 0); +x_439 = lean_ctor_get(x_267, 1); +x_440 = lean_ctor_get(x_267, 3); +x_441 = lean_ctor_get(x_267, 4); +x_442 = lean_ctor_get(x_267, 5); +lean_inc(x_442); +lean_inc(x_441); +lean_inc(x_440); +lean_inc(x_437); +lean_inc(x_439); +lean_inc(x_438); +lean_dec(x_267); +x_443 = lean_ctor_get(x_437, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_437, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_437, 2); +lean_inc(x_445); +if (lean_is_exclusive(x_437)) { + lean_ctor_release(x_437, 0); + lean_ctor_release(x_437, 1); + lean_ctor_release(x_437, 2); + x_446 = x_437; +} else { + lean_dec_ref(x_437); + x_446 = lean_box(0); +} +x_447 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_446)) { + x_448 = lean_alloc_ctor(0, 3, 0); +} else { + x_448 = x_446; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_447); +x_449 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_449, 0, x_438); +lean_ctor_set(x_449, 1, x_439); +lean_ctor_set(x_449, 2, x_448); +lean_ctor_set(x_449, 3, x_440); +lean_ctor_set(x_449, 4, x_441); +lean_ctor_set(x_449, 5, x_442); +x_450 = lean_ctor_get(x_8, 0); +lean_inc(x_450); +x_451 = lean_ctor_get(x_8, 1); +lean_inc(x_451); +x_452 = lean_ctor_get(x_8, 2); +lean_inc(x_452); +x_453 = lean_ctor_get(x_8, 3); +lean_inc(x_453); +x_454 = lean_ctor_get(x_8, 4); +lean_inc(x_454); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + x_455 = x_8; +} else { + lean_dec_ref(x_8); + x_455 = lean_box(0); +} +x_456 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_456, 0, x_268); +lean_ctor_set(x_456, 1, x_24); +x_457 = lean_array_push(x_452, x_456); +if (lean_is_scalar(x_455)) { + x_458 = lean_alloc_ctor(0, 5, 0); +} else { + x_458 = x_455; +} +lean_ctor_set(x_458, 0, x_450); +lean_ctor_set(x_458, 1, x_451); +lean_ctor_set(x_458, 2, x_457); +lean_ctor_set(x_458, 3, x_453); +lean_ctor_set(x_458, 4, x_454); +x_459 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_270, x_458, x_449); +if (lean_obj_tag(x_459) == 0) +{ +lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; +x_460 = lean_ctor_get(x_459, 1); +lean_inc(x_460); +x_461 = lean_ctor_get(x_460, 2); +lean_inc(x_461); +x_462 = lean_ctor_get(x_459, 0); +lean_inc(x_462); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + x_463 = x_459; +} else { + lean_dec_ref(x_459); + x_463 = lean_box(0); +} +x_464 = lean_ctor_get(x_460, 0); +lean_inc(x_464); +x_465 = lean_ctor_get(x_460, 1); +lean_inc(x_465); +x_466 = lean_ctor_get(x_460, 3); +lean_inc(x_466); +x_467 = lean_ctor_get(x_460, 4); +lean_inc(x_467); +x_468 = lean_ctor_get(x_460, 5); +lean_inc(x_468); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + lean_ctor_release(x_460, 4); + lean_ctor_release(x_460, 5); + x_469 = x_460; +} else { + lean_dec_ref(x_460); + x_469 = lean_box(0); +} +x_470 = lean_ctor_get(x_461, 0); +lean_inc(x_470); +x_471 = lean_ctor_get(x_461, 1); +lean_inc(x_471); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + x_472 = x_461; +} else { + lean_dec_ref(x_461); + x_472 = lean_box(0); +} +if (lean_is_scalar(x_472)) { + x_473 = lean_alloc_ctor(0, 3, 0); +} else { + x_473 = x_472; +} +lean_ctor_set(x_473, 0, x_470); +lean_ctor_set(x_473, 1, x_471); +lean_ctor_set(x_473, 2, x_445); +if (lean_is_scalar(x_469)) { + x_474 = lean_alloc_ctor(0, 6, 0); +} else { + x_474 = x_469; +} +lean_ctor_set(x_474, 0, x_464); +lean_ctor_set(x_474, 1, x_465); +lean_ctor_set(x_474, 2, x_473); +lean_ctor_set(x_474, 3, x_466); +lean_ctor_set(x_474, 4, x_467); +lean_ctor_set(x_474, 5, x_468); +if (lean_is_scalar(x_463)) { + x_475 = lean_alloc_ctor(0, 2, 0); +} else { + x_475 = x_463; +} +lean_ctor_set(x_475, 0, x_462); +lean_ctor_set(x_475, 1, x_474); +return x_475; +} +else +{ +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; +x_476 = lean_ctor_get(x_459, 1); +lean_inc(x_476); +x_477 = lean_ctor_get(x_476, 2); +lean_inc(x_477); +x_478 = lean_ctor_get(x_459, 0); +lean_inc(x_478); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + x_479 = x_459; +} else { + lean_dec_ref(x_459); + x_479 = lean_box(0); +} +x_480 = lean_ctor_get(x_476, 0); +lean_inc(x_480); +x_481 = lean_ctor_get(x_476, 1); +lean_inc(x_481); +x_482 = lean_ctor_get(x_476, 3); +lean_inc(x_482); +x_483 = lean_ctor_get(x_476, 4); +lean_inc(x_483); +x_484 = lean_ctor_get(x_476, 5); +lean_inc(x_484); +if (lean_is_exclusive(x_476)) { + lean_ctor_release(x_476, 0); + lean_ctor_release(x_476, 1); + lean_ctor_release(x_476, 2); + lean_ctor_release(x_476, 3); + lean_ctor_release(x_476, 4); + lean_ctor_release(x_476, 5); + x_485 = x_476; +} else { + lean_dec_ref(x_476); + x_485 = lean_box(0); +} +x_486 = lean_ctor_get(x_477, 0); +lean_inc(x_486); +x_487 = lean_ctor_get(x_477, 1); +lean_inc(x_487); +if (lean_is_exclusive(x_477)) { + lean_ctor_release(x_477, 0); + lean_ctor_release(x_477, 1); + lean_ctor_release(x_477, 2); + x_488 = x_477; +} else { + lean_dec_ref(x_477); + x_488 = lean_box(0); +} +if (lean_is_scalar(x_488)) { + x_489 = lean_alloc_ctor(0, 3, 0); +} else { + x_489 = x_488; +} +lean_ctor_set(x_489, 0, x_486); +lean_ctor_set(x_489, 1, x_487); +lean_ctor_set(x_489, 2, x_445); +if (lean_is_scalar(x_485)) { + x_490 = lean_alloc_ctor(0, 6, 0); +} else { + x_490 = x_485; +} +lean_ctor_set(x_490, 0, x_480); +lean_ctor_set(x_490, 1, x_481); +lean_ctor_set(x_490, 2, x_489); +lean_ctor_set(x_490, 3, x_482); +lean_ctor_set(x_490, 4, x_483); +lean_ctor_set(x_490, 5, x_484); +if (lean_is_scalar(x_479)) { + x_491 = lean_alloc_ctor(1, 2, 0); +} else { + x_491 = x_479; +} +lean_ctor_set(x_491, 0, x_478); +lean_ctor_set(x_491, 1, x_490); +return x_491; +} +} +} +} +else +{ +uint8_t x_492; +lean_dec(x_24); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_492 = !lean_is_exclusive(x_261); +if (x_492 == 0) +{ +return x_261; +} +else +{ +lean_object* x_493; lean_object* x_494; lean_object* x_495; +x_493 = lean_ctor_get(x_261, 0); +x_494 = lean_ctor_get(x_261, 1); +lean_inc(x_494); +lean_inc(x_493); +lean_dec(x_261); +x_495 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_495, 0, x_493); +lean_ctor_set(x_495, 1, x_494); +return x_495; +} +} +} +} +} +else +{ +uint8_t x_496; +lean_dec(x_28); +lean_dec(x_24); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_496 = !lean_is_exclusive(x_29); +if (x_496 == 0) +{ +return x_29; +} +else +{ +lean_object* x_497; lean_object* x_498; lean_object* x_499; +x_497 = lean_ctor_get(x_29, 0); +x_498 = lean_ctor_get(x_29, 1); +lean_inc(x_498); +lean_inc(x_497); +lean_dec(x_29); +x_499 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_499, 0, x_497); +lean_ctor_set(x_499, 1, x_498); +return x_499; +} +} +} +else +{ +uint8_t x_500; +lean_dec(x_24); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_500 = !lean_is_exclusive(x_25); +if (x_500 == 0) +{ +return x_25; +} +else +{ +lean_object* x_501; lean_object* x_502; lean_object* x_503; +x_501 = lean_ctor_get(x_25, 0); +x_502 = lean_ctor_get(x_25, 1); +lean_inc(x_502); +lean_inc(x_501); +lean_dec(x_25); +x_503 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_503, 0, x_501); +lean_ctor_set(x_503, 1, x_502); +return x_503; +} +} +} +} +} +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = l_Lean_Expr_isForall(x_9); +if (x_12 == 0) +{ +uint8_t x_13; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_13 = lean_nat_dec_eq(x_1, x_2); +lean_dec(x_2); +lean_dec(x_1); +if (x_13 == 0) +{ +uint8_t x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_10); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_14 = 0; +x_15 = lean_box(x_14); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_11); +return x_16; +} +else +{ +lean_object* x_17; +lean_inc(x_10); +x_17 = l_Lean_Meta_mkLambda(x_3, x_4, x_10, x_11); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_5, x_18, x_10, x_19); +return x_20; +} +else +{ +uint8_t x_21; +lean_dec(x_10); +lean_dec(x_5); +x_21 = !lean_is_exclusive(x_17); +if (x_21 == 0) +{ +return x_17; +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_17, 0); +x_23 = lean_ctor_get(x_17, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_17); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_22); +lean_ctor_set(x_24, 1, x_23); +return x_24; +} +} +} +} +else +{ +lean_object* x_25; +x_25 = l___private_Init_Lean_Meta_Basic_4__forallTelescopeReducingAuxAux___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__2(x_5, x_2, x_4, x_6, x_7, x_8, x_3, x_1, x_9, x_10, x_11); +return x_25; +} +} +} +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_15 = lean_expr_instantiate_rev_range(x_9, x_8, x_10, x_7); +x_16 = lean_alloc_closure((void*)(l_Lean_Meta_whnf), 3, 1); +lean_closure_set(x_16, 0, x_15); +x_17 = lean_box(x_4); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +lean_inc(x_3); +lean_inc(x_7); +lean_inc(x_2); +lean_inc(x_10); +x_18 = lean_alloc_closure((void*)(l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4___lambda__1___boxed), 11, 8); +lean_closure_set(x_18, 0, x_10); +lean_closure_set(x_18, 1, x_2); +lean_closure_set(x_18, 2, x_7); +lean_closure_set(x_18, 3, x_3); +lean_closure_set(x_18, 4, x_1); +lean_closure_set(x_18, 5, x_17); +lean_closure_set(x_18, 6, x_5); +lean_closure_set(x_18, 7, x_6); +x_19 = lean_array_get_size(x_11); +x_20 = lean_nat_dec_lt(x_12, x_19); +lean_dec(x_19); +if (x_20 == 0) +{ +lean_object* x_21; +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_21 = l_ReaderT_bind___at_Lean_Meta_isClassExpensive___main___spec__4___rarg(x_16, x_18, x_13, x_14); +return x_21; +} +else +{ +lean_object* x_22; lean_object* x_23; +lean_dec(x_18); +lean_dec(x_16); +x_22 = lean_array_fget(x_11, x_12); +lean_inc(x_13); +x_23 = l_Lean_Meta_getFVarLocalDecl(x_22, x_13, x_14); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +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_LocalDecl_type(x_24); +lean_dec(x_24); +lean_inc(x_13); +lean_inc(x_26); +x_27 = l_Lean_Meta_isClassQuick___main(x_26, x_13, x_25); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +switch (lean_obj_tag(x_28)) { +case 0: +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +lean_dec(x_26); +lean_dec(x_22); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_unsigned_to_nat(1u); +x_31 = lean_nat_add(x_12, x_30); +lean_dec(x_12); +x_12 = x_31; +x_14 = x_29; +goto _start; +} +case 1: +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +lean_dec(x_26); +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_dec(x_27); +x_34 = lean_ctor_get(x_28, 0); +lean_inc(x_34); +lean_dec(x_28); +x_35 = lean_unsigned_to_nat(1u); +x_36 = lean_nat_add(x_12, x_35); +lean_dec(x_12); +x_37 = !lean_is_exclusive(x_33); +if (x_37 == 0) +{ +lean_object* x_38; uint8_t x_39; +x_38 = lean_ctor_get(x_33, 2); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_38, 2); +x_41 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_38, 2, x_41); +x_42 = !lean_is_exclusive(x_13); +if (x_42 == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_13, 2); +x_44 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_44, 0, x_34); +lean_ctor_set(x_44, 1, x_22); +x_45 = lean_array_push(x_43, x_44); +lean_ctor_set(x_13, 2, x_45); +x_46 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_36, x_13, x_33); +if (lean_obj_tag(x_46) == 0) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = lean_ctor_get(x_46, 1); +lean_inc(x_47); +x_48 = lean_ctor_get(x_47, 2); +lean_inc(x_48); +x_49 = !lean_is_exclusive(x_46); +if (x_49 == 0) +{ +lean_object* x_50; uint8_t x_51; +x_50 = lean_ctor_get(x_46, 1); +lean_dec(x_50); +x_51 = !lean_is_exclusive(x_47); +if (x_51 == 0) +{ +lean_object* x_52; uint8_t x_53; +x_52 = lean_ctor_get(x_47, 2); +lean_dec(x_52); +x_53 = !lean_is_exclusive(x_48); +if (x_53 == 0) +{ +lean_object* x_54; +x_54 = lean_ctor_get(x_48, 2); +lean_dec(x_54); +lean_ctor_set(x_48, 2, x_40); +return x_46; +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_48, 0); +x_56 = lean_ctor_get(x_48, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_48); +x_57 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set(x_57, 2, x_40); +lean_ctor_set(x_47, 2, x_57); +return x_46; +} +} +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; +x_58 = lean_ctor_get(x_47, 0); +x_59 = lean_ctor_get(x_47, 1); +x_60 = lean_ctor_get(x_47, 3); +x_61 = lean_ctor_get(x_47, 4); +x_62 = lean_ctor_get(x_47, 5); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_inc(x_59); +lean_inc(x_58); +lean_dec(x_47); +x_63 = lean_ctor_get(x_48, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_48, 1); +lean_inc(x_64); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + lean_ctor_release(x_48, 2); + x_65 = x_48; +} else { + lean_dec_ref(x_48); + x_65 = lean_box(0); +} +if (lean_is_scalar(x_65)) { + x_66 = lean_alloc_ctor(0, 3, 0); +} else { + x_66 = x_65; +} +lean_ctor_set(x_66, 0, x_63); +lean_ctor_set(x_66, 1, x_64); +lean_ctor_set(x_66, 2, x_40); +x_67 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_67, 0, x_58); +lean_ctor_set(x_67, 1, x_59); +lean_ctor_set(x_67, 2, x_66); +lean_ctor_set(x_67, 3, x_60); +lean_ctor_set(x_67, 4, x_61); +lean_ctor_set(x_67, 5, x_62); +lean_ctor_set(x_46, 1, x_67); +return x_46; +} +} +else +{ +lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_68 = lean_ctor_get(x_46, 0); +lean_inc(x_68); +lean_dec(x_46); +x_69 = lean_ctor_get(x_47, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_47, 1); +lean_inc(x_70); +x_71 = lean_ctor_get(x_47, 3); +lean_inc(x_71); +x_72 = lean_ctor_get(x_47, 4); +lean_inc(x_72); +x_73 = lean_ctor_get(x_47, 5); +lean_inc(x_73); +if (lean_is_exclusive(x_47)) { + lean_ctor_release(x_47, 0); + lean_ctor_release(x_47, 1); + lean_ctor_release(x_47, 2); + lean_ctor_release(x_47, 3); + lean_ctor_release(x_47, 4); + lean_ctor_release(x_47, 5); + x_74 = x_47; +} else { + lean_dec_ref(x_47); + x_74 = lean_box(0); +} +x_75 = lean_ctor_get(x_48, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_48, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_48)) { + lean_ctor_release(x_48, 0); + lean_ctor_release(x_48, 1); + lean_ctor_release(x_48, 2); + x_77 = x_48; +} else { + lean_dec_ref(x_48); + x_77 = lean_box(0); +} +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(0, 3, 0); +} else { + x_78 = x_77; +} +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_76); +lean_ctor_set(x_78, 2, x_40); +if (lean_is_scalar(x_74)) { + x_79 = lean_alloc_ctor(0, 6, 0); +} else { + x_79 = x_74; +} +lean_ctor_set(x_79, 0, x_69); +lean_ctor_set(x_79, 1, x_70); +lean_ctor_set(x_79, 2, x_78); +lean_ctor_set(x_79, 3, x_71); +lean_ctor_set(x_79, 4, x_72); +lean_ctor_set(x_79, 5, x_73); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_68); +lean_ctor_set(x_80, 1, x_79); +return x_80; +} +} +else +{ +lean_object* x_81; lean_object* x_82; uint8_t x_83; +x_81 = lean_ctor_get(x_46, 1); +lean_inc(x_81); +x_82 = lean_ctor_get(x_81, 2); +lean_inc(x_82); +x_83 = !lean_is_exclusive(x_46); +if (x_83 == 0) +{ +lean_object* x_84; uint8_t x_85; +x_84 = lean_ctor_get(x_46, 1); +lean_dec(x_84); +x_85 = !lean_is_exclusive(x_81); +if (x_85 == 0) +{ +lean_object* x_86; uint8_t x_87; +x_86 = lean_ctor_get(x_81, 2); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_82); +if (x_87 == 0) +{ +lean_object* x_88; +x_88 = lean_ctor_get(x_82, 2); +lean_dec(x_88); +lean_ctor_set(x_82, 2, x_40); +return x_46; +} +else +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; +x_89 = lean_ctor_get(x_82, 0); +x_90 = lean_ctor_get(x_82, 1); +lean_inc(x_90); lean_inc(x_89); -lean_dec(x_71); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_89); -lean_ctor_set(x_90, 1, x_88); -return x_90; +lean_dec(x_82); +x_91 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_91, 0, x_89); +lean_ctor_set(x_91, 1, x_90); +lean_ctor_set(x_91, 2, x_40); +lean_ctor_set(x_81, 2, x_91); +return x_46; +} +} +else +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +x_92 = lean_ctor_get(x_81, 0); +x_93 = lean_ctor_get(x_81, 1); +x_94 = lean_ctor_get(x_81, 3); +x_95 = lean_ctor_get(x_81, 4); +x_96 = lean_ctor_get(x_81, 5); +lean_inc(x_96); +lean_inc(x_95); +lean_inc(x_94); +lean_inc(x_93); +lean_inc(x_92); +lean_dec(x_81); +x_97 = lean_ctor_get(x_82, 0); +lean_inc(x_97); +x_98 = lean_ctor_get(x_82, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + lean_ctor_release(x_82, 2); + x_99 = x_82; +} else { + lean_dec_ref(x_82); + x_99 = lean_box(0); +} +if (lean_is_scalar(x_99)) { + x_100 = lean_alloc_ctor(0, 3, 0); +} else { + x_100 = x_99; +} +lean_ctor_set(x_100, 0, x_97); +lean_ctor_set(x_100, 1, x_98); +lean_ctor_set(x_100, 2, x_40); +x_101 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_101, 0, x_92); +lean_ctor_set(x_101, 1, x_93); +lean_ctor_set(x_101, 2, x_100); +lean_ctor_set(x_101, 3, x_94); +lean_ctor_set(x_101, 4, x_95); +lean_ctor_set(x_101, 5, x_96); +lean_ctor_set(x_46, 1, x_101); +return x_46; +} +} +else +{ +lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_102 = lean_ctor_get(x_46, 0); +lean_inc(x_102); +lean_dec(x_46); +x_103 = lean_ctor_get(x_81, 0); +lean_inc(x_103); +x_104 = lean_ctor_get(x_81, 1); +lean_inc(x_104); +x_105 = lean_ctor_get(x_81, 3); +lean_inc(x_105); +x_106 = lean_ctor_get(x_81, 4); +lean_inc(x_106); +x_107 = lean_ctor_get(x_81, 5); +lean_inc(x_107); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + lean_ctor_release(x_81, 2); + lean_ctor_release(x_81, 3); + lean_ctor_release(x_81, 4); + lean_ctor_release(x_81, 5); + x_108 = x_81; +} else { + lean_dec_ref(x_81); + x_108 = lean_box(0); +} +x_109 = lean_ctor_get(x_82, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_82, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_82)) { + lean_ctor_release(x_82, 0); + lean_ctor_release(x_82, 1); + lean_ctor_release(x_82, 2); + x_111 = x_82; +} else { + lean_dec_ref(x_82); + x_111 = lean_box(0); +} +if (lean_is_scalar(x_111)) { + x_112 = lean_alloc_ctor(0, 3, 0); +} else { + x_112 = x_111; +} +lean_ctor_set(x_112, 0, x_109); +lean_ctor_set(x_112, 1, x_110); +lean_ctor_set(x_112, 2, x_40); +if (lean_is_scalar(x_108)) { + x_113 = lean_alloc_ctor(0, 6, 0); +} else { + x_113 = x_108; +} +lean_ctor_set(x_113, 0, x_103); +lean_ctor_set(x_113, 1, x_104); +lean_ctor_set(x_113, 2, x_112); +lean_ctor_set(x_113, 3, x_105); +lean_ctor_set(x_113, 4, x_106); +lean_ctor_set(x_113, 5, x_107); +x_114 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_114, 0, x_102); +lean_ctor_set(x_114, 1, x_113); +return x_114; +} +} +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_115 = lean_ctor_get(x_13, 0); +x_116 = lean_ctor_get(x_13, 1); +x_117 = lean_ctor_get(x_13, 2); +x_118 = lean_ctor_get(x_13, 3); +x_119 = lean_ctor_get(x_13, 4); +lean_inc(x_119); +lean_inc(x_118); +lean_inc(x_117); +lean_inc(x_116); +lean_inc(x_115); +lean_dec(x_13); +x_120 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_120, 0, x_34); +lean_ctor_set(x_120, 1, x_22); +x_121 = lean_array_push(x_117, x_120); +x_122 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_122, 0, x_115); +lean_ctor_set(x_122, 1, x_116); +lean_ctor_set(x_122, 2, x_121); +lean_ctor_set(x_122, 3, x_118); +lean_ctor_set(x_122, 4, x_119); +x_123 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_36, x_122, x_33); +if (lean_obj_tag(x_123) == 0) +{ +lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +x_125 = lean_ctor_get(x_124, 2); +lean_inc(x_125); +x_126 = lean_ctor_get(x_123, 0); +lean_inc(x_126); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_127 = x_123; +} else { + lean_dec_ref(x_123); + x_127 = lean_box(0); +} +x_128 = lean_ctor_get(x_124, 0); +lean_inc(x_128); +x_129 = lean_ctor_get(x_124, 1); +lean_inc(x_129); +x_130 = lean_ctor_get(x_124, 3); +lean_inc(x_130); +x_131 = lean_ctor_get(x_124, 4); +lean_inc(x_131); +x_132 = lean_ctor_get(x_124, 5); +lean_inc(x_132); +if (lean_is_exclusive(x_124)) { + lean_ctor_release(x_124, 0); + lean_ctor_release(x_124, 1); + lean_ctor_release(x_124, 2); + lean_ctor_release(x_124, 3); + lean_ctor_release(x_124, 4); + lean_ctor_release(x_124, 5); + x_133 = x_124; +} else { + lean_dec_ref(x_124); + x_133 = lean_box(0); +} +x_134 = lean_ctor_get(x_125, 0); +lean_inc(x_134); +x_135 = lean_ctor_get(x_125, 1); +lean_inc(x_135); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + lean_ctor_release(x_125, 2); + x_136 = x_125; +} else { + lean_dec_ref(x_125); + x_136 = lean_box(0); +} +if (lean_is_scalar(x_136)) { + x_137 = lean_alloc_ctor(0, 3, 0); +} else { + x_137 = x_136; +} +lean_ctor_set(x_137, 0, x_134); +lean_ctor_set(x_137, 1, x_135); +lean_ctor_set(x_137, 2, x_40); +if (lean_is_scalar(x_133)) { + x_138 = lean_alloc_ctor(0, 6, 0); +} else { + x_138 = x_133; +} +lean_ctor_set(x_138, 0, x_128); +lean_ctor_set(x_138, 1, x_129); +lean_ctor_set(x_138, 2, x_137); +lean_ctor_set(x_138, 3, x_130); +lean_ctor_set(x_138, 4, x_131); +lean_ctor_set(x_138, 5, x_132); +if (lean_is_scalar(x_127)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_127; +} +lean_ctor_set(x_139, 0, x_126); +lean_ctor_set(x_139, 1, x_138); +return x_139; +} +else +{ +lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_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; +x_140 = lean_ctor_get(x_123, 1); +lean_inc(x_140); +x_141 = lean_ctor_get(x_140, 2); +lean_inc(x_141); +x_142 = lean_ctor_get(x_123, 0); +lean_inc(x_142); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_143 = x_123; +} else { + lean_dec_ref(x_123); + x_143 = lean_box(0); +} +x_144 = lean_ctor_get(x_140, 0); +lean_inc(x_144); +x_145 = lean_ctor_get(x_140, 1); +lean_inc(x_145); +x_146 = lean_ctor_get(x_140, 3); +lean_inc(x_146); +x_147 = lean_ctor_get(x_140, 4); +lean_inc(x_147); +x_148 = lean_ctor_get(x_140, 5); +lean_inc(x_148); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + lean_ctor_release(x_140, 2); + lean_ctor_release(x_140, 3); + lean_ctor_release(x_140, 4); + lean_ctor_release(x_140, 5); + x_149 = x_140; +} else { + lean_dec_ref(x_140); + x_149 = lean_box(0); +} +x_150 = lean_ctor_get(x_141, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_141, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_141)) { + lean_ctor_release(x_141, 0); + lean_ctor_release(x_141, 1); + lean_ctor_release(x_141, 2); + x_152 = x_141; +} else { + lean_dec_ref(x_141); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(0, 3, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_150); +lean_ctor_set(x_153, 1, x_151); +lean_ctor_set(x_153, 2, x_40); +if (lean_is_scalar(x_149)) { + x_154 = lean_alloc_ctor(0, 6, 0); +} else { + x_154 = x_149; +} +lean_ctor_set(x_154, 0, x_144); +lean_ctor_set(x_154, 1, x_145); +lean_ctor_set(x_154, 2, x_153); +lean_ctor_set(x_154, 3, x_146); +lean_ctor_set(x_154, 4, x_147); +lean_ctor_set(x_154, 5, x_148); +if (lean_is_scalar(x_143)) { + x_155 = lean_alloc_ctor(1, 2, 0); +} else { + x_155 = x_143; +} +lean_ctor_set(x_155, 0, x_142); +lean_ctor_set(x_155, 1, x_154); +return x_155; +} +} +} +else +{ +lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +x_156 = lean_ctor_get(x_38, 0); +x_157 = lean_ctor_get(x_38, 1); +x_158 = lean_ctor_get(x_38, 2); +lean_inc(x_158); +lean_inc(x_157); +lean_inc(x_156); +lean_dec(x_38); +x_159 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_160 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_160, 0, x_156); +lean_ctor_set(x_160, 1, x_157); +lean_ctor_set(x_160, 2, x_159); +lean_ctor_set(x_33, 2, x_160); +x_161 = lean_ctor_get(x_13, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_13, 1); +lean_inc(x_162); +x_163 = lean_ctor_get(x_13, 2); +lean_inc(x_163); +x_164 = lean_ctor_get(x_13, 3); +lean_inc(x_164); +x_165 = lean_ctor_get(x_13, 4); +lean_inc(x_165); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + lean_ctor_release(x_13, 1); + lean_ctor_release(x_13, 2); + lean_ctor_release(x_13, 3); + lean_ctor_release(x_13, 4); + x_166 = x_13; +} else { + lean_dec_ref(x_13); + x_166 = lean_box(0); +} +x_167 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_167, 0, x_34); +lean_ctor_set(x_167, 1, x_22); +x_168 = lean_array_push(x_163, x_167); +if (lean_is_scalar(x_166)) { + x_169 = lean_alloc_ctor(0, 5, 0); +} else { + x_169 = x_166; +} +lean_ctor_set(x_169, 0, x_161); +lean_ctor_set(x_169, 1, x_162); +lean_ctor_set(x_169, 2, x_168); +lean_ctor_set(x_169, 3, x_164); +lean_ctor_set(x_169, 4, x_165); +x_170 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_36, x_169, x_33); +if (lean_obj_tag(x_170) == 0) +{ +lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +x_171 = lean_ctor_get(x_170, 1); +lean_inc(x_171); +x_172 = lean_ctor_get(x_171, 2); +lean_inc(x_172); +x_173 = lean_ctor_get(x_170, 0); +lean_inc(x_173); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_174 = x_170; +} else { + lean_dec_ref(x_170); + x_174 = lean_box(0); +} +x_175 = lean_ctor_get(x_171, 0); +lean_inc(x_175); +x_176 = lean_ctor_get(x_171, 1); +lean_inc(x_176); +x_177 = lean_ctor_get(x_171, 3); +lean_inc(x_177); +x_178 = lean_ctor_get(x_171, 4); +lean_inc(x_178); +x_179 = lean_ctor_get(x_171, 5); +lean_inc(x_179); +if (lean_is_exclusive(x_171)) { + lean_ctor_release(x_171, 0); + lean_ctor_release(x_171, 1); + lean_ctor_release(x_171, 2); + lean_ctor_release(x_171, 3); + lean_ctor_release(x_171, 4); + lean_ctor_release(x_171, 5); + x_180 = x_171; +} else { + lean_dec_ref(x_171); + x_180 = lean_box(0); +} +x_181 = lean_ctor_get(x_172, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_172, 1); +lean_inc(x_182); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + lean_ctor_release(x_172, 2); + x_183 = x_172; +} else { + lean_dec_ref(x_172); + x_183 = lean_box(0); +} +if (lean_is_scalar(x_183)) { + x_184 = lean_alloc_ctor(0, 3, 0); +} else { + x_184 = x_183; +} +lean_ctor_set(x_184, 0, x_181); +lean_ctor_set(x_184, 1, x_182); +lean_ctor_set(x_184, 2, x_158); +if (lean_is_scalar(x_180)) { + x_185 = lean_alloc_ctor(0, 6, 0); +} else { + x_185 = x_180; +} +lean_ctor_set(x_185, 0, x_175); +lean_ctor_set(x_185, 1, x_176); +lean_ctor_set(x_185, 2, x_184); +lean_ctor_set(x_185, 3, x_177); +lean_ctor_set(x_185, 4, x_178); +lean_ctor_set(x_185, 5, x_179); +if (lean_is_scalar(x_174)) { + x_186 = lean_alloc_ctor(0, 2, 0); +} else { + x_186 = x_174; +} +lean_ctor_set(x_186, 0, x_173); +lean_ctor_set(x_186, 1, x_185); +return x_186; +} +else +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; +x_187 = lean_ctor_get(x_170, 1); +lean_inc(x_187); +x_188 = lean_ctor_get(x_187, 2); +lean_inc(x_188); +x_189 = lean_ctor_get(x_170, 0); +lean_inc(x_189); +if (lean_is_exclusive(x_170)) { + lean_ctor_release(x_170, 0); + lean_ctor_release(x_170, 1); + x_190 = x_170; +} else { + lean_dec_ref(x_170); + x_190 = lean_box(0); +} +x_191 = lean_ctor_get(x_187, 0); +lean_inc(x_191); +x_192 = lean_ctor_get(x_187, 1); +lean_inc(x_192); +x_193 = lean_ctor_get(x_187, 3); +lean_inc(x_193); +x_194 = lean_ctor_get(x_187, 4); +lean_inc(x_194); +x_195 = lean_ctor_get(x_187, 5); +lean_inc(x_195); +if (lean_is_exclusive(x_187)) { + lean_ctor_release(x_187, 0); + lean_ctor_release(x_187, 1); + lean_ctor_release(x_187, 2); + lean_ctor_release(x_187, 3); + lean_ctor_release(x_187, 4); + lean_ctor_release(x_187, 5); + x_196 = x_187; +} else { + lean_dec_ref(x_187); + x_196 = lean_box(0); +} +x_197 = lean_ctor_get(x_188, 0); +lean_inc(x_197); +x_198 = lean_ctor_get(x_188, 1); +lean_inc(x_198); +if (lean_is_exclusive(x_188)) { + lean_ctor_release(x_188, 0); + lean_ctor_release(x_188, 1); + lean_ctor_release(x_188, 2); + x_199 = x_188; +} else { + lean_dec_ref(x_188); + x_199 = lean_box(0); +} +if (lean_is_scalar(x_199)) { + x_200 = lean_alloc_ctor(0, 3, 0); +} else { + x_200 = x_199; +} +lean_ctor_set(x_200, 0, x_197); +lean_ctor_set(x_200, 1, x_198); +lean_ctor_set(x_200, 2, x_158); +if (lean_is_scalar(x_196)) { + x_201 = lean_alloc_ctor(0, 6, 0); +} else { + x_201 = x_196; +} +lean_ctor_set(x_201, 0, x_191); +lean_ctor_set(x_201, 1, x_192); +lean_ctor_set(x_201, 2, x_200); +lean_ctor_set(x_201, 3, x_193); +lean_ctor_set(x_201, 4, x_194); +lean_ctor_set(x_201, 5, x_195); +if (lean_is_scalar(x_190)) { + x_202 = lean_alloc_ctor(1, 2, 0); +} else { + x_202 = x_190; +} +lean_ctor_set(x_202, 0, x_189); +lean_ctor_set(x_202, 1, x_201); +return x_202; +} +} +} +else +{ +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; +x_203 = lean_ctor_get(x_33, 2); +x_204 = lean_ctor_get(x_33, 0); +x_205 = lean_ctor_get(x_33, 1); +x_206 = lean_ctor_get(x_33, 3); +x_207 = lean_ctor_get(x_33, 4); +x_208 = lean_ctor_get(x_33, 5); +lean_inc(x_208); +lean_inc(x_207); +lean_inc(x_206); +lean_inc(x_203); +lean_inc(x_205); +lean_inc(x_204); +lean_dec(x_33); +x_209 = lean_ctor_get(x_203, 0); +lean_inc(x_209); +x_210 = lean_ctor_get(x_203, 1); +lean_inc(x_210); +x_211 = lean_ctor_get(x_203, 2); +lean_inc(x_211); +if (lean_is_exclusive(x_203)) { + lean_ctor_release(x_203, 0); + lean_ctor_release(x_203, 1); + lean_ctor_release(x_203, 2); + x_212 = x_203; +} else { + lean_dec_ref(x_203); + x_212 = lean_box(0); +} +x_213 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_212)) { + x_214 = lean_alloc_ctor(0, 3, 0); +} else { + x_214 = x_212; +} +lean_ctor_set(x_214, 0, x_209); +lean_ctor_set(x_214, 1, x_210); +lean_ctor_set(x_214, 2, x_213); +x_215 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_215, 0, x_204); +lean_ctor_set(x_215, 1, x_205); +lean_ctor_set(x_215, 2, x_214); +lean_ctor_set(x_215, 3, x_206); +lean_ctor_set(x_215, 4, x_207); +lean_ctor_set(x_215, 5, x_208); +x_216 = lean_ctor_get(x_13, 0); +lean_inc(x_216); +x_217 = lean_ctor_get(x_13, 1); +lean_inc(x_217); +x_218 = lean_ctor_get(x_13, 2); +lean_inc(x_218); +x_219 = lean_ctor_get(x_13, 3); +lean_inc(x_219); +x_220 = lean_ctor_get(x_13, 4); +lean_inc(x_220); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + lean_ctor_release(x_13, 1); + lean_ctor_release(x_13, 2); + lean_ctor_release(x_13, 3); + lean_ctor_release(x_13, 4); + x_221 = x_13; +} else { + lean_dec_ref(x_13); + x_221 = lean_box(0); +} +x_222 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_222, 0, x_34); +lean_ctor_set(x_222, 1, x_22); +x_223 = lean_array_push(x_218, x_222); +if (lean_is_scalar(x_221)) { + x_224 = lean_alloc_ctor(0, 5, 0); +} else { + x_224 = x_221; +} +lean_ctor_set(x_224, 0, x_216); +lean_ctor_set(x_224, 1, x_217); +lean_ctor_set(x_224, 2, x_223); +lean_ctor_set(x_224, 3, x_219); +lean_ctor_set(x_224, 4, x_220); +x_225 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_36, x_224, x_215); +if (lean_obj_tag(x_225) == 0) +{ +lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; 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_226 = lean_ctor_get(x_225, 1); +lean_inc(x_226); +x_227 = lean_ctor_get(x_226, 2); +lean_inc(x_227); +x_228 = lean_ctor_get(x_225, 0); +lean_inc(x_228); +if (lean_is_exclusive(x_225)) { + lean_ctor_release(x_225, 0); + lean_ctor_release(x_225, 1); + x_229 = x_225; +} else { + lean_dec_ref(x_225); + x_229 = lean_box(0); +} +x_230 = lean_ctor_get(x_226, 0); +lean_inc(x_230); +x_231 = lean_ctor_get(x_226, 1); +lean_inc(x_231); +x_232 = lean_ctor_get(x_226, 3); +lean_inc(x_232); +x_233 = lean_ctor_get(x_226, 4); +lean_inc(x_233); +x_234 = lean_ctor_get(x_226, 5); +lean_inc(x_234); +if (lean_is_exclusive(x_226)) { + lean_ctor_release(x_226, 0); + lean_ctor_release(x_226, 1); + lean_ctor_release(x_226, 2); + lean_ctor_release(x_226, 3); + lean_ctor_release(x_226, 4); + lean_ctor_release(x_226, 5); + x_235 = x_226; +} else { + lean_dec_ref(x_226); + x_235 = lean_box(0); +} +x_236 = lean_ctor_get(x_227, 0); +lean_inc(x_236); +x_237 = lean_ctor_get(x_227, 1); +lean_inc(x_237); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + lean_ctor_release(x_227, 2); + x_238 = x_227; +} else { + lean_dec_ref(x_227); + x_238 = lean_box(0); +} +if (lean_is_scalar(x_238)) { + x_239 = lean_alloc_ctor(0, 3, 0); +} else { + x_239 = x_238; +} +lean_ctor_set(x_239, 0, x_236); +lean_ctor_set(x_239, 1, x_237); +lean_ctor_set(x_239, 2, x_211); +if (lean_is_scalar(x_235)) { + x_240 = lean_alloc_ctor(0, 6, 0); +} else { + x_240 = x_235; +} +lean_ctor_set(x_240, 0, x_230); +lean_ctor_set(x_240, 1, x_231); +lean_ctor_set(x_240, 2, x_239); +lean_ctor_set(x_240, 3, x_232); +lean_ctor_set(x_240, 4, x_233); +lean_ctor_set(x_240, 5, x_234); +if (lean_is_scalar(x_229)) { + x_241 = lean_alloc_ctor(0, 2, 0); +} else { + x_241 = x_229; +} +lean_ctor_set(x_241, 0, x_228); +lean_ctor_set(x_241, 1, x_240); +return x_241; +} +else +{ +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; +x_242 = lean_ctor_get(x_225, 1); +lean_inc(x_242); +x_243 = lean_ctor_get(x_242, 2); +lean_inc(x_243); +x_244 = lean_ctor_get(x_225, 0); +lean_inc(x_244); +if (lean_is_exclusive(x_225)) { + lean_ctor_release(x_225, 0); + lean_ctor_release(x_225, 1); + x_245 = x_225; +} else { + lean_dec_ref(x_225); + x_245 = lean_box(0); +} +x_246 = lean_ctor_get(x_242, 0); +lean_inc(x_246); +x_247 = lean_ctor_get(x_242, 1); +lean_inc(x_247); +x_248 = lean_ctor_get(x_242, 3); +lean_inc(x_248); +x_249 = lean_ctor_get(x_242, 4); +lean_inc(x_249); +x_250 = lean_ctor_get(x_242, 5); +lean_inc(x_250); +if (lean_is_exclusive(x_242)) { + lean_ctor_release(x_242, 0); + lean_ctor_release(x_242, 1); + lean_ctor_release(x_242, 2); + lean_ctor_release(x_242, 3); + lean_ctor_release(x_242, 4); + lean_ctor_release(x_242, 5); + x_251 = x_242; +} else { + lean_dec_ref(x_242); + x_251 = lean_box(0); +} +x_252 = lean_ctor_get(x_243, 0); +lean_inc(x_252); +x_253 = lean_ctor_get(x_243, 1); +lean_inc(x_253); +if (lean_is_exclusive(x_243)) { + lean_ctor_release(x_243, 0); + lean_ctor_release(x_243, 1); + lean_ctor_release(x_243, 2); + x_254 = x_243; +} else { + lean_dec_ref(x_243); + x_254 = lean_box(0); +} +if (lean_is_scalar(x_254)) { + x_255 = lean_alloc_ctor(0, 3, 0); +} else { + x_255 = x_254; +} +lean_ctor_set(x_255, 0, x_252); +lean_ctor_set(x_255, 1, x_253); +lean_ctor_set(x_255, 2, x_211); +if (lean_is_scalar(x_251)) { + x_256 = lean_alloc_ctor(0, 6, 0); +} else { + x_256 = x_251; +} +lean_ctor_set(x_256, 0, x_246); +lean_ctor_set(x_256, 1, x_247); +lean_ctor_set(x_256, 2, x_255); +lean_ctor_set(x_256, 3, x_248); +lean_ctor_set(x_256, 4, x_249); +lean_ctor_set(x_256, 5, x_250); +if (lean_is_scalar(x_245)) { + x_257 = lean_alloc_ctor(1, 2, 0); +} else { + x_257 = x_245; +} +lean_ctor_set(x_257, 0, x_244); +lean_ctor_set(x_257, 1, x_256); +return x_257; +} +} +} +default: +{ +lean_object* x_258; lean_object* x_259; +x_258 = lean_ctor_get(x_27, 1); +lean_inc(x_258); +lean_dec(x_27); +lean_inc(x_13); +x_259 = l_Lean_Meta_isClassExpensive___main(x_26, x_13, x_258); +if (lean_obj_tag(x_259) == 0) +{ +lean_object* x_260; +x_260 = lean_ctor_get(x_259, 0); +lean_inc(x_260); +if (lean_obj_tag(x_260) == 0) +{ +lean_object* x_261; lean_object* x_262; lean_object* x_263; +lean_dec(x_22); +x_261 = lean_ctor_get(x_259, 1); +lean_inc(x_261); +lean_dec(x_259); +x_262 = lean_unsigned_to_nat(1u); +x_263 = lean_nat_add(x_12, x_262); +lean_dec(x_12); +x_12 = x_263; +x_14 = x_261; +goto _start; +} +else +{ +lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; +x_265 = lean_ctor_get(x_259, 1); +lean_inc(x_265); +lean_dec(x_259); +x_266 = lean_ctor_get(x_260, 0); +lean_inc(x_266); +lean_dec(x_260); +x_267 = lean_unsigned_to_nat(1u); +x_268 = lean_nat_add(x_12, x_267); +lean_dec(x_12); +x_269 = !lean_is_exclusive(x_265); +if (x_269 == 0) +{ +lean_object* x_270; uint8_t x_271; +x_270 = lean_ctor_get(x_265, 2); +x_271 = !lean_is_exclusive(x_270); +if (x_271 == 0) +{ +lean_object* x_272; lean_object* x_273; uint8_t x_274; +x_272 = lean_ctor_get(x_270, 2); +x_273 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_270, 2, x_273); +x_274 = !lean_is_exclusive(x_13); +if (x_274 == 0) +{ +lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +x_275 = lean_ctor_get(x_13, 2); +x_276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_276, 0, x_266); +lean_ctor_set(x_276, 1, x_22); +x_277 = lean_array_push(x_275, x_276); +lean_ctor_set(x_13, 2, x_277); +x_278 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_268, x_13, x_265); +if (lean_obj_tag(x_278) == 0) +{ +lean_object* x_279; lean_object* x_280; uint8_t x_281; +x_279 = lean_ctor_get(x_278, 1); +lean_inc(x_279); +x_280 = lean_ctor_get(x_279, 2); +lean_inc(x_280); +x_281 = !lean_is_exclusive(x_278); +if (x_281 == 0) +{ +lean_object* x_282; uint8_t x_283; +x_282 = lean_ctor_get(x_278, 1); +lean_dec(x_282); +x_283 = !lean_is_exclusive(x_279); +if (x_283 == 0) +{ +lean_object* x_284; uint8_t x_285; +x_284 = lean_ctor_get(x_279, 2); +lean_dec(x_284); +x_285 = !lean_is_exclusive(x_280); +if (x_285 == 0) +{ +lean_object* x_286; +x_286 = lean_ctor_get(x_280, 2); +lean_dec(x_286); +lean_ctor_set(x_280, 2, x_272); +return x_278; +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; +x_287 = lean_ctor_get(x_280, 0); +x_288 = lean_ctor_get(x_280, 1); +lean_inc(x_288); +lean_inc(x_287); +lean_dec(x_280); +x_289 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_289, 0, x_287); +lean_ctor_set(x_289, 1, x_288); +lean_ctor_set(x_289, 2, x_272); +lean_ctor_set(x_279, 2, x_289); +return x_278; +} +} +else +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_290 = lean_ctor_get(x_279, 0); +x_291 = lean_ctor_get(x_279, 1); +x_292 = lean_ctor_get(x_279, 3); +x_293 = lean_ctor_get(x_279, 4); +x_294 = lean_ctor_get(x_279, 5); +lean_inc(x_294); +lean_inc(x_293); +lean_inc(x_292); +lean_inc(x_291); +lean_inc(x_290); +lean_dec(x_279); +x_295 = lean_ctor_get(x_280, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_280, 1); +lean_inc(x_296); +if (lean_is_exclusive(x_280)) { + lean_ctor_release(x_280, 0); + lean_ctor_release(x_280, 1); + lean_ctor_release(x_280, 2); + x_297 = x_280; +} else { + lean_dec_ref(x_280); + x_297 = lean_box(0); +} +if (lean_is_scalar(x_297)) { + x_298 = lean_alloc_ctor(0, 3, 0); +} else { + x_298 = x_297; +} +lean_ctor_set(x_298, 0, x_295); +lean_ctor_set(x_298, 1, x_296); +lean_ctor_set(x_298, 2, x_272); +x_299 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_299, 0, x_290); +lean_ctor_set(x_299, 1, x_291); +lean_ctor_set(x_299, 2, x_298); +lean_ctor_set(x_299, 3, x_292); +lean_ctor_set(x_299, 4, x_293); +lean_ctor_set(x_299, 5, x_294); +lean_ctor_set(x_278, 1, x_299); +return x_278; +} +} +else +{ +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; +x_300 = lean_ctor_get(x_278, 0); +lean_inc(x_300); +lean_dec(x_278); +x_301 = lean_ctor_get(x_279, 0); +lean_inc(x_301); +x_302 = lean_ctor_get(x_279, 1); +lean_inc(x_302); +x_303 = lean_ctor_get(x_279, 3); +lean_inc(x_303); +x_304 = lean_ctor_get(x_279, 4); +lean_inc(x_304); +x_305 = lean_ctor_get(x_279, 5); +lean_inc(x_305); +if (lean_is_exclusive(x_279)) { + lean_ctor_release(x_279, 0); + lean_ctor_release(x_279, 1); + lean_ctor_release(x_279, 2); + lean_ctor_release(x_279, 3); + lean_ctor_release(x_279, 4); + lean_ctor_release(x_279, 5); + x_306 = x_279; +} else { + lean_dec_ref(x_279); + x_306 = lean_box(0); +} +x_307 = lean_ctor_get(x_280, 0); +lean_inc(x_307); +x_308 = lean_ctor_get(x_280, 1); +lean_inc(x_308); +if (lean_is_exclusive(x_280)) { + lean_ctor_release(x_280, 0); + lean_ctor_release(x_280, 1); + lean_ctor_release(x_280, 2); + x_309 = x_280; +} else { + lean_dec_ref(x_280); + x_309 = lean_box(0); +} +if (lean_is_scalar(x_309)) { + x_310 = lean_alloc_ctor(0, 3, 0); +} else { + x_310 = x_309; +} +lean_ctor_set(x_310, 0, x_307); +lean_ctor_set(x_310, 1, x_308); +lean_ctor_set(x_310, 2, x_272); +if (lean_is_scalar(x_306)) { + x_311 = lean_alloc_ctor(0, 6, 0); +} else { + x_311 = x_306; +} +lean_ctor_set(x_311, 0, x_301); +lean_ctor_set(x_311, 1, x_302); +lean_ctor_set(x_311, 2, x_310); +lean_ctor_set(x_311, 3, x_303); +lean_ctor_set(x_311, 4, x_304); +lean_ctor_set(x_311, 5, x_305); +x_312 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_312, 0, x_300); +lean_ctor_set(x_312, 1, x_311); +return x_312; +} +} +else +{ +lean_object* x_313; lean_object* x_314; uint8_t x_315; +x_313 = lean_ctor_get(x_278, 1); +lean_inc(x_313); +x_314 = lean_ctor_get(x_313, 2); +lean_inc(x_314); +x_315 = !lean_is_exclusive(x_278); +if (x_315 == 0) +{ +lean_object* x_316; uint8_t x_317; +x_316 = lean_ctor_get(x_278, 1); +lean_dec(x_316); +x_317 = !lean_is_exclusive(x_313); +if (x_317 == 0) +{ +lean_object* x_318; uint8_t x_319; +x_318 = lean_ctor_get(x_313, 2); +lean_dec(x_318); +x_319 = !lean_is_exclusive(x_314); +if (x_319 == 0) +{ +lean_object* x_320; +x_320 = lean_ctor_get(x_314, 2); +lean_dec(x_320); +lean_ctor_set(x_314, 2, x_272); +return x_278; +} +else +{ +lean_object* x_321; lean_object* x_322; lean_object* x_323; +x_321 = lean_ctor_get(x_314, 0); +x_322 = lean_ctor_get(x_314, 1); +lean_inc(x_322); +lean_inc(x_321); +lean_dec(x_314); +x_323 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_323, 0, x_321); +lean_ctor_set(x_323, 1, x_322); +lean_ctor_set(x_323, 2, x_272); +lean_ctor_set(x_313, 2, x_323); +return x_278; +} +} +else +{ +lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_324 = lean_ctor_get(x_313, 0); +x_325 = lean_ctor_get(x_313, 1); +x_326 = lean_ctor_get(x_313, 3); +x_327 = lean_ctor_get(x_313, 4); +x_328 = lean_ctor_get(x_313, 5); +lean_inc(x_328); +lean_inc(x_327); +lean_inc(x_326); +lean_inc(x_325); +lean_inc(x_324); +lean_dec(x_313); +x_329 = lean_ctor_get(x_314, 0); +lean_inc(x_329); +x_330 = lean_ctor_get(x_314, 1); +lean_inc(x_330); +if (lean_is_exclusive(x_314)) { + lean_ctor_release(x_314, 0); + lean_ctor_release(x_314, 1); + lean_ctor_release(x_314, 2); + x_331 = x_314; +} else { + lean_dec_ref(x_314); + x_331 = lean_box(0); +} +if (lean_is_scalar(x_331)) { + x_332 = lean_alloc_ctor(0, 3, 0); +} else { + x_332 = x_331; +} +lean_ctor_set(x_332, 0, x_329); +lean_ctor_set(x_332, 1, x_330); +lean_ctor_set(x_332, 2, x_272); +x_333 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_333, 0, x_324); +lean_ctor_set(x_333, 1, x_325); +lean_ctor_set(x_333, 2, x_332); +lean_ctor_set(x_333, 3, x_326); +lean_ctor_set(x_333, 4, x_327); +lean_ctor_set(x_333, 5, x_328); +lean_ctor_set(x_278, 1, x_333); +return x_278; +} +} +else +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; +x_334 = lean_ctor_get(x_278, 0); +lean_inc(x_334); +lean_dec(x_278); +x_335 = lean_ctor_get(x_313, 0); +lean_inc(x_335); +x_336 = lean_ctor_get(x_313, 1); +lean_inc(x_336); +x_337 = lean_ctor_get(x_313, 3); +lean_inc(x_337); +x_338 = lean_ctor_get(x_313, 4); +lean_inc(x_338); +x_339 = lean_ctor_get(x_313, 5); +lean_inc(x_339); +if (lean_is_exclusive(x_313)) { + lean_ctor_release(x_313, 0); + lean_ctor_release(x_313, 1); + lean_ctor_release(x_313, 2); + lean_ctor_release(x_313, 3); + lean_ctor_release(x_313, 4); + lean_ctor_release(x_313, 5); + x_340 = x_313; +} else { + lean_dec_ref(x_313); + x_340 = lean_box(0); +} +x_341 = lean_ctor_get(x_314, 0); +lean_inc(x_341); +x_342 = lean_ctor_get(x_314, 1); +lean_inc(x_342); +if (lean_is_exclusive(x_314)) { + lean_ctor_release(x_314, 0); + lean_ctor_release(x_314, 1); + lean_ctor_release(x_314, 2); + x_343 = x_314; +} else { + lean_dec_ref(x_314); + x_343 = lean_box(0); +} +if (lean_is_scalar(x_343)) { + x_344 = lean_alloc_ctor(0, 3, 0); +} else { + x_344 = x_343; +} +lean_ctor_set(x_344, 0, x_341); +lean_ctor_set(x_344, 1, x_342); +lean_ctor_set(x_344, 2, x_272); +if (lean_is_scalar(x_340)) { + x_345 = lean_alloc_ctor(0, 6, 0); +} else { + x_345 = x_340; +} +lean_ctor_set(x_345, 0, x_335); +lean_ctor_set(x_345, 1, x_336); +lean_ctor_set(x_345, 2, x_344); +lean_ctor_set(x_345, 3, x_337); +lean_ctor_set(x_345, 4, x_338); +lean_ctor_set(x_345, 5, x_339); +x_346 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_346, 0, x_334); +lean_ctor_set(x_346, 1, x_345); +return x_346; +} +} +} +else +{ +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; +x_347 = lean_ctor_get(x_13, 0); +x_348 = lean_ctor_get(x_13, 1); +x_349 = lean_ctor_get(x_13, 2); +x_350 = lean_ctor_get(x_13, 3); +x_351 = lean_ctor_get(x_13, 4); +lean_inc(x_351); +lean_inc(x_350); +lean_inc(x_349); +lean_inc(x_348); +lean_inc(x_347); +lean_dec(x_13); +x_352 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_352, 0, x_266); +lean_ctor_set(x_352, 1, x_22); +x_353 = lean_array_push(x_349, x_352); +x_354 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_354, 0, x_347); +lean_ctor_set(x_354, 1, x_348); +lean_ctor_set(x_354, 2, x_353); +lean_ctor_set(x_354, 3, x_350); +lean_ctor_set(x_354, 4, x_351); +x_355 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_268, x_354, x_265); +if (lean_obj_tag(x_355) == 0) +{ +lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; +x_356 = lean_ctor_get(x_355, 1); +lean_inc(x_356); +x_357 = lean_ctor_get(x_356, 2); +lean_inc(x_357); +x_358 = lean_ctor_get(x_355, 0); +lean_inc(x_358); +if (lean_is_exclusive(x_355)) { + lean_ctor_release(x_355, 0); + lean_ctor_release(x_355, 1); + x_359 = x_355; +} else { + lean_dec_ref(x_355); + x_359 = lean_box(0); +} +x_360 = lean_ctor_get(x_356, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_356, 1); +lean_inc(x_361); +x_362 = lean_ctor_get(x_356, 3); +lean_inc(x_362); +x_363 = lean_ctor_get(x_356, 4); +lean_inc(x_363); +x_364 = lean_ctor_get(x_356, 5); +lean_inc(x_364); +if (lean_is_exclusive(x_356)) { + lean_ctor_release(x_356, 0); + lean_ctor_release(x_356, 1); + lean_ctor_release(x_356, 2); + lean_ctor_release(x_356, 3); + lean_ctor_release(x_356, 4); + lean_ctor_release(x_356, 5); + x_365 = x_356; +} else { + lean_dec_ref(x_356); + x_365 = lean_box(0); +} +x_366 = lean_ctor_get(x_357, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_357, 1); +lean_inc(x_367); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + lean_ctor_release(x_357, 2); + x_368 = x_357; +} else { + lean_dec_ref(x_357); + x_368 = lean_box(0); +} +if (lean_is_scalar(x_368)) { + x_369 = lean_alloc_ctor(0, 3, 0); +} else { + x_369 = x_368; +} +lean_ctor_set(x_369, 0, x_366); +lean_ctor_set(x_369, 1, x_367); +lean_ctor_set(x_369, 2, x_272); +if (lean_is_scalar(x_365)) { + x_370 = lean_alloc_ctor(0, 6, 0); +} else { + x_370 = x_365; +} +lean_ctor_set(x_370, 0, x_360); +lean_ctor_set(x_370, 1, x_361); +lean_ctor_set(x_370, 2, x_369); +lean_ctor_set(x_370, 3, x_362); +lean_ctor_set(x_370, 4, x_363); +lean_ctor_set(x_370, 5, x_364); +if (lean_is_scalar(x_359)) { + x_371 = lean_alloc_ctor(0, 2, 0); +} else { + x_371 = x_359; +} +lean_ctor_set(x_371, 0, x_358); +lean_ctor_set(x_371, 1, x_370); +return x_371; +} +else +{ +lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; 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; +x_372 = lean_ctor_get(x_355, 1); +lean_inc(x_372); +x_373 = lean_ctor_get(x_372, 2); +lean_inc(x_373); +x_374 = lean_ctor_get(x_355, 0); +lean_inc(x_374); +if (lean_is_exclusive(x_355)) { + lean_ctor_release(x_355, 0); + lean_ctor_release(x_355, 1); + x_375 = x_355; +} else { + lean_dec_ref(x_355); + x_375 = lean_box(0); +} +x_376 = lean_ctor_get(x_372, 0); +lean_inc(x_376); +x_377 = lean_ctor_get(x_372, 1); +lean_inc(x_377); +x_378 = lean_ctor_get(x_372, 3); +lean_inc(x_378); +x_379 = lean_ctor_get(x_372, 4); +lean_inc(x_379); +x_380 = lean_ctor_get(x_372, 5); +lean_inc(x_380); +if (lean_is_exclusive(x_372)) { + lean_ctor_release(x_372, 0); + lean_ctor_release(x_372, 1); + lean_ctor_release(x_372, 2); + lean_ctor_release(x_372, 3); + lean_ctor_release(x_372, 4); + lean_ctor_release(x_372, 5); + x_381 = x_372; +} else { + lean_dec_ref(x_372); + x_381 = lean_box(0); +} +x_382 = lean_ctor_get(x_373, 0); +lean_inc(x_382); +x_383 = lean_ctor_get(x_373, 1); +lean_inc(x_383); +if (lean_is_exclusive(x_373)) { + lean_ctor_release(x_373, 0); + lean_ctor_release(x_373, 1); + lean_ctor_release(x_373, 2); + x_384 = x_373; +} else { + lean_dec_ref(x_373); + x_384 = lean_box(0); +} +if (lean_is_scalar(x_384)) { + x_385 = lean_alloc_ctor(0, 3, 0); +} else { + x_385 = x_384; +} +lean_ctor_set(x_385, 0, x_382); +lean_ctor_set(x_385, 1, x_383); +lean_ctor_set(x_385, 2, x_272); +if (lean_is_scalar(x_381)) { + x_386 = lean_alloc_ctor(0, 6, 0); +} else { + x_386 = x_381; +} +lean_ctor_set(x_386, 0, x_376); +lean_ctor_set(x_386, 1, x_377); +lean_ctor_set(x_386, 2, x_385); +lean_ctor_set(x_386, 3, x_378); +lean_ctor_set(x_386, 4, x_379); +lean_ctor_set(x_386, 5, x_380); +if (lean_is_scalar(x_375)) { + x_387 = lean_alloc_ctor(1, 2, 0); +} else { + x_387 = x_375; +} +lean_ctor_set(x_387, 0, x_374); +lean_ctor_set(x_387, 1, x_386); +return x_387; +} +} +} +else +{ +lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_388 = lean_ctor_get(x_270, 0); +x_389 = lean_ctor_get(x_270, 1); +x_390 = lean_ctor_get(x_270, 2); +lean_inc(x_390); +lean_inc(x_389); +lean_inc(x_388); +lean_dec(x_270); +x_391 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_392 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_392, 0, x_388); +lean_ctor_set(x_392, 1, x_389); +lean_ctor_set(x_392, 2, x_391); +lean_ctor_set(x_265, 2, x_392); +x_393 = lean_ctor_get(x_13, 0); +lean_inc(x_393); +x_394 = lean_ctor_get(x_13, 1); +lean_inc(x_394); +x_395 = lean_ctor_get(x_13, 2); +lean_inc(x_395); +x_396 = lean_ctor_get(x_13, 3); +lean_inc(x_396); +x_397 = lean_ctor_get(x_13, 4); +lean_inc(x_397); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + lean_ctor_release(x_13, 1); + lean_ctor_release(x_13, 2); + lean_ctor_release(x_13, 3); + lean_ctor_release(x_13, 4); + x_398 = x_13; +} else { + lean_dec_ref(x_13); + x_398 = lean_box(0); +} +x_399 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_399, 0, x_266); +lean_ctor_set(x_399, 1, x_22); +x_400 = lean_array_push(x_395, x_399); +if (lean_is_scalar(x_398)) { + x_401 = lean_alloc_ctor(0, 5, 0); +} else { + x_401 = x_398; +} +lean_ctor_set(x_401, 0, x_393); +lean_ctor_set(x_401, 1, x_394); +lean_ctor_set(x_401, 2, x_400); +lean_ctor_set(x_401, 3, x_396); +lean_ctor_set(x_401, 4, x_397); +x_402 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_268, x_401, x_265); +if (lean_obj_tag(x_402) == 0) +{ +lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; 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; +x_403 = lean_ctor_get(x_402, 1); +lean_inc(x_403); +x_404 = lean_ctor_get(x_403, 2); +lean_inc(x_404); +x_405 = lean_ctor_get(x_402, 0); +lean_inc(x_405); +if (lean_is_exclusive(x_402)) { + lean_ctor_release(x_402, 0); + lean_ctor_release(x_402, 1); + x_406 = x_402; +} else { + lean_dec_ref(x_402); + x_406 = lean_box(0); +} +x_407 = lean_ctor_get(x_403, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_403, 1); +lean_inc(x_408); +x_409 = lean_ctor_get(x_403, 3); +lean_inc(x_409); +x_410 = lean_ctor_get(x_403, 4); +lean_inc(x_410); +x_411 = lean_ctor_get(x_403, 5); +lean_inc(x_411); +if (lean_is_exclusive(x_403)) { + lean_ctor_release(x_403, 0); + lean_ctor_release(x_403, 1); + lean_ctor_release(x_403, 2); + lean_ctor_release(x_403, 3); + lean_ctor_release(x_403, 4); + lean_ctor_release(x_403, 5); + x_412 = x_403; +} else { + lean_dec_ref(x_403); + x_412 = lean_box(0); +} +x_413 = lean_ctor_get(x_404, 0); +lean_inc(x_413); +x_414 = lean_ctor_get(x_404, 1); +lean_inc(x_414); +if (lean_is_exclusive(x_404)) { + lean_ctor_release(x_404, 0); + lean_ctor_release(x_404, 1); + lean_ctor_release(x_404, 2); + x_415 = x_404; +} else { + lean_dec_ref(x_404); + x_415 = lean_box(0); +} +if (lean_is_scalar(x_415)) { + x_416 = lean_alloc_ctor(0, 3, 0); +} else { + x_416 = x_415; +} +lean_ctor_set(x_416, 0, x_413); +lean_ctor_set(x_416, 1, x_414); +lean_ctor_set(x_416, 2, x_390); +if (lean_is_scalar(x_412)) { + x_417 = lean_alloc_ctor(0, 6, 0); +} else { + x_417 = x_412; +} +lean_ctor_set(x_417, 0, x_407); +lean_ctor_set(x_417, 1, x_408); +lean_ctor_set(x_417, 2, x_416); +lean_ctor_set(x_417, 3, x_409); +lean_ctor_set(x_417, 4, x_410); +lean_ctor_set(x_417, 5, x_411); +if (lean_is_scalar(x_406)) { + x_418 = lean_alloc_ctor(0, 2, 0); +} else { + x_418 = x_406; +} +lean_ctor_set(x_418, 0, x_405); +lean_ctor_set(x_418, 1, x_417); +return x_418; +} +else +{ +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; +x_419 = lean_ctor_get(x_402, 1); +lean_inc(x_419); +x_420 = lean_ctor_get(x_419, 2); +lean_inc(x_420); +x_421 = lean_ctor_get(x_402, 0); +lean_inc(x_421); +if (lean_is_exclusive(x_402)) { + lean_ctor_release(x_402, 0); + lean_ctor_release(x_402, 1); + x_422 = x_402; +} else { + lean_dec_ref(x_402); + x_422 = lean_box(0); +} +x_423 = lean_ctor_get(x_419, 0); +lean_inc(x_423); +x_424 = lean_ctor_get(x_419, 1); +lean_inc(x_424); +x_425 = lean_ctor_get(x_419, 3); +lean_inc(x_425); +x_426 = lean_ctor_get(x_419, 4); +lean_inc(x_426); +x_427 = lean_ctor_get(x_419, 5); +lean_inc(x_427); +if (lean_is_exclusive(x_419)) { + lean_ctor_release(x_419, 0); + lean_ctor_release(x_419, 1); + lean_ctor_release(x_419, 2); + lean_ctor_release(x_419, 3); + lean_ctor_release(x_419, 4); + lean_ctor_release(x_419, 5); + x_428 = x_419; +} else { + lean_dec_ref(x_419); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_420, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_420, 1); +lean_inc(x_430); +if (lean_is_exclusive(x_420)) { + lean_ctor_release(x_420, 0); + lean_ctor_release(x_420, 1); + lean_ctor_release(x_420, 2); + x_431 = x_420; +} else { + lean_dec_ref(x_420); + x_431 = lean_box(0); +} +if (lean_is_scalar(x_431)) { + x_432 = lean_alloc_ctor(0, 3, 0); +} else { + x_432 = x_431; +} +lean_ctor_set(x_432, 0, x_429); +lean_ctor_set(x_432, 1, x_430); +lean_ctor_set(x_432, 2, x_390); +if (lean_is_scalar(x_428)) { + x_433 = lean_alloc_ctor(0, 6, 0); +} else { + x_433 = x_428; +} +lean_ctor_set(x_433, 0, x_423); +lean_ctor_set(x_433, 1, x_424); +lean_ctor_set(x_433, 2, x_432); +lean_ctor_set(x_433, 3, x_425); +lean_ctor_set(x_433, 4, x_426); +lean_ctor_set(x_433, 5, x_427); +if (lean_is_scalar(x_422)) { + x_434 = lean_alloc_ctor(1, 2, 0); +} else { + x_434 = x_422; +} +lean_ctor_set(x_434, 0, x_421); +lean_ctor_set(x_434, 1, x_433); +return x_434; +} +} +} +else +{ +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; +x_435 = lean_ctor_get(x_265, 2); +x_436 = lean_ctor_get(x_265, 0); +x_437 = lean_ctor_get(x_265, 1); +x_438 = lean_ctor_get(x_265, 3); +x_439 = lean_ctor_get(x_265, 4); +x_440 = lean_ctor_get(x_265, 5); +lean_inc(x_440); +lean_inc(x_439); +lean_inc(x_438); +lean_inc(x_435); +lean_inc(x_437); +lean_inc(x_436); +lean_dec(x_265); +x_441 = lean_ctor_get(x_435, 0); +lean_inc(x_441); +x_442 = lean_ctor_get(x_435, 1); +lean_inc(x_442); +x_443 = lean_ctor_get(x_435, 2); +lean_inc(x_443); +if (lean_is_exclusive(x_435)) { + lean_ctor_release(x_435, 0); + lean_ctor_release(x_435, 1); + lean_ctor_release(x_435, 2); + x_444 = x_435; +} else { + lean_dec_ref(x_435); + x_444 = lean_box(0); +} +x_445 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_444)) { + x_446 = lean_alloc_ctor(0, 3, 0); +} else { + x_446 = x_444; +} +lean_ctor_set(x_446, 0, x_441); +lean_ctor_set(x_446, 1, x_442); +lean_ctor_set(x_446, 2, x_445); +x_447 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_447, 0, x_436); +lean_ctor_set(x_447, 1, x_437); +lean_ctor_set(x_447, 2, x_446); +lean_ctor_set(x_447, 3, x_438); +lean_ctor_set(x_447, 4, x_439); +lean_ctor_set(x_447, 5, x_440); +x_448 = lean_ctor_get(x_13, 0); +lean_inc(x_448); +x_449 = lean_ctor_get(x_13, 1); +lean_inc(x_449); +x_450 = lean_ctor_get(x_13, 2); +lean_inc(x_450); +x_451 = lean_ctor_get(x_13, 3); +lean_inc(x_451); +x_452 = lean_ctor_get(x_13, 4); +lean_inc(x_452); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + lean_ctor_release(x_13, 1); + lean_ctor_release(x_13, 2); + lean_ctor_release(x_13, 3); + lean_ctor_release(x_13, 4); + x_453 = x_13; +} else { + lean_dec_ref(x_13); + x_453 = lean_box(0); +} +x_454 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_454, 0, x_266); +lean_ctor_set(x_454, 1, x_22); +x_455 = lean_array_push(x_450, x_454); +if (lean_is_scalar(x_453)) { + x_456 = lean_alloc_ctor(0, 5, 0); +} else { + x_456 = x_453; +} +lean_ctor_set(x_456, 0, x_448); +lean_ctor_set(x_456, 1, x_449); +lean_ctor_set(x_456, 2, x_455); +lean_ctor_set(x_456, 3, x_451); +lean_ctor_set(x_456, 4, x_452); +x_457 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_268, x_456, x_447); +if (lean_obj_tag(x_457) == 0) +{ +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; +x_458 = lean_ctor_get(x_457, 1); +lean_inc(x_458); +x_459 = lean_ctor_get(x_458, 2); +lean_inc(x_459); +x_460 = lean_ctor_get(x_457, 0); +lean_inc(x_460); +if (lean_is_exclusive(x_457)) { + lean_ctor_release(x_457, 0); + lean_ctor_release(x_457, 1); + x_461 = x_457; +} else { + lean_dec_ref(x_457); + x_461 = lean_box(0); +} +x_462 = lean_ctor_get(x_458, 0); +lean_inc(x_462); +x_463 = lean_ctor_get(x_458, 1); +lean_inc(x_463); +x_464 = lean_ctor_get(x_458, 3); +lean_inc(x_464); +x_465 = lean_ctor_get(x_458, 4); +lean_inc(x_465); +x_466 = lean_ctor_get(x_458, 5); +lean_inc(x_466); +if (lean_is_exclusive(x_458)) { + lean_ctor_release(x_458, 0); + lean_ctor_release(x_458, 1); + lean_ctor_release(x_458, 2); + lean_ctor_release(x_458, 3); + lean_ctor_release(x_458, 4); + lean_ctor_release(x_458, 5); + x_467 = x_458; +} else { + lean_dec_ref(x_458); + x_467 = lean_box(0); +} +x_468 = lean_ctor_get(x_459, 0); +lean_inc(x_468); +x_469 = lean_ctor_get(x_459, 1); +lean_inc(x_469); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + lean_ctor_release(x_459, 2); + x_470 = x_459; +} else { + lean_dec_ref(x_459); + x_470 = lean_box(0); +} +if (lean_is_scalar(x_470)) { + x_471 = lean_alloc_ctor(0, 3, 0); +} else { + x_471 = x_470; +} +lean_ctor_set(x_471, 0, x_468); +lean_ctor_set(x_471, 1, x_469); +lean_ctor_set(x_471, 2, x_443); +if (lean_is_scalar(x_467)) { + x_472 = lean_alloc_ctor(0, 6, 0); +} else { + x_472 = x_467; +} +lean_ctor_set(x_472, 0, x_462); +lean_ctor_set(x_472, 1, x_463); +lean_ctor_set(x_472, 2, x_471); +lean_ctor_set(x_472, 3, x_464); +lean_ctor_set(x_472, 4, x_465); +lean_ctor_set(x_472, 5, x_466); +if (lean_is_scalar(x_461)) { + x_473 = lean_alloc_ctor(0, 2, 0); +} else { + x_473 = x_461; +} +lean_ctor_set(x_473, 0, x_460); +lean_ctor_set(x_473, 1, x_472); +return x_473; +} +else +{ +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; +x_474 = lean_ctor_get(x_457, 1); +lean_inc(x_474); +x_475 = lean_ctor_get(x_474, 2); +lean_inc(x_475); +x_476 = lean_ctor_get(x_457, 0); +lean_inc(x_476); +if (lean_is_exclusive(x_457)) { + lean_ctor_release(x_457, 0); + lean_ctor_release(x_457, 1); + x_477 = x_457; +} else { + lean_dec_ref(x_457); + x_477 = lean_box(0); +} +x_478 = lean_ctor_get(x_474, 0); +lean_inc(x_478); +x_479 = lean_ctor_get(x_474, 1); +lean_inc(x_479); +x_480 = lean_ctor_get(x_474, 3); +lean_inc(x_480); +x_481 = lean_ctor_get(x_474, 4); +lean_inc(x_481); +x_482 = lean_ctor_get(x_474, 5); +lean_inc(x_482); +if (lean_is_exclusive(x_474)) { + lean_ctor_release(x_474, 0); + lean_ctor_release(x_474, 1); + lean_ctor_release(x_474, 2); + lean_ctor_release(x_474, 3); + lean_ctor_release(x_474, 4); + lean_ctor_release(x_474, 5); + x_483 = x_474; +} else { + lean_dec_ref(x_474); + x_483 = lean_box(0); +} +x_484 = lean_ctor_get(x_475, 0); +lean_inc(x_484); +x_485 = lean_ctor_get(x_475, 1); +lean_inc(x_485); +if (lean_is_exclusive(x_475)) { + lean_ctor_release(x_475, 0); + lean_ctor_release(x_475, 1); + lean_ctor_release(x_475, 2); + x_486 = x_475; +} else { + lean_dec_ref(x_475); + x_486 = lean_box(0); +} +if (lean_is_scalar(x_486)) { + x_487 = lean_alloc_ctor(0, 3, 0); +} else { + x_487 = x_486; +} +lean_ctor_set(x_487, 0, x_484); +lean_ctor_set(x_487, 1, x_485); +lean_ctor_set(x_487, 2, x_443); +if (lean_is_scalar(x_483)) { + x_488 = lean_alloc_ctor(0, 6, 0); +} else { + x_488 = x_483; +} +lean_ctor_set(x_488, 0, x_478); +lean_ctor_set(x_488, 1, x_479); +lean_ctor_set(x_488, 2, x_487); +lean_ctor_set(x_488, 3, x_480); +lean_ctor_set(x_488, 4, x_481); +lean_ctor_set(x_488, 5, x_482); +if (lean_is_scalar(x_477)) { + x_489 = lean_alloc_ctor(1, 2, 0); +} else { + x_489 = x_477; +} +lean_ctor_set(x_489, 0, x_476); +lean_ctor_set(x_489, 1, x_488); +return x_489; } } } } +else +{ +uint8_t x_490; +lean_dec(x_22); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_490 = !lean_is_exclusive(x_259); +if (x_490 == 0) +{ +return x_259; +} +else +{ +lean_object* x_491; lean_object* x_492; lean_object* x_493; +x_491 = lean_ctor_get(x_259, 0); +x_492 = lean_ctor_get(x_259, 1); +lean_inc(x_492); +lean_inc(x_491); +lean_dec(x_259); +x_493 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_493, 0, x_491); +lean_ctor_set(x_493, 1, x_492); +return x_493; +} +} +} +} +} +else +{ +uint8_t x_494; +lean_dec(x_26); +lean_dec(x_22); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_494 = !lean_is_exclusive(x_27); +if (x_494 == 0) +{ +return x_27; +} +else +{ +lean_object* x_495; lean_object* x_496; lean_object* x_497; +x_495 = lean_ctor_get(x_27, 0); +x_496 = lean_ctor_get(x_27, 1); +lean_inc(x_496); +lean_inc(x_495); +lean_dec(x_27); +x_497 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_497, 0, x_495); +lean_ctor_set(x_497, 1, x_496); +return x_497; +} +} +} +else +{ +uint8_t x_498; +lean_dec(x_22); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_498 = !lean_is_exclusive(x_23); +if (x_498 == 0) +{ +return x_23; +} +else +{ +lean_object* x_499; lean_object* x_500; lean_object* x_501; +x_499 = lean_ctor_get(x_23, 0); +x_500 = lean_ctor_get(x_23, 1); +lean_inc(x_500); +lean_inc(x_499); +lean_dec(x_23); +x_501 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_501, 0, x_499); +lean_ctor_set(x_501, 1, x_500); +return x_501; +} +} +} +} +} +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; uint8_t x_11; +x_10 = lean_array_get_size(x_6); +x_11 = lean_nat_dec_lt(x_7, x_10); +lean_dec(x_10); +if (x_11 == 0) +{ +uint8_t x_12; +lean_dec(x_7); +x_12 = lean_nat_dec_eq(x_5, x_2); +if (x_12 == 0) +{ +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_13 = 0; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_9); +return x_15; +} +else +{ +lean_object* x_16; +lean_inc(x_8); +x_16 = l_Lean_Meta_mkLambda(x_4, x_3, x_8, x_9); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_1, x_17, x_8, x_18); +return x_19; +} +else +{ +uint8_t x_20; +lean_dec(x_8); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_16); +if (x_20 == 0) +{ +return x_16; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_16, 0); +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_16); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; +x_24 = lean_array_fget(x_6, x_7); +lean_inc(x_8); +x_25 = l_Lean_Meta_getFVarLocalDecl(x_24, x_8, x_9); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_LocalDecl_type(x_26); +lean_dec(x_26); +lean_inc(x_8); +lean_inc(x_28); +x_29 = l_Lean_Meta_isClassQuick___main(x_28, x_8, x_27); +if (lean_obj_tag(x_29) == 0) +{ +lean_object* x_30; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +switch (lean_obj_tag(x_30)) { +case 0: +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +lean_dec(x_28); +lean_dec(x_24); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_unsigned_to_nat(1u); +x_33 = lean_nat_add(x_7, x_32); +lean_dec(x_7); +x_7 = x_33; +x_9 = x_31; +goto _start; +} +case 1: +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +lean_dec(x_28); +x_35 = lean_ctor_get(x_29, 1); +lean_inc(x_35); +lean_dec(x_29); +x_36 = lean_ctor_get(x_30, 0); +lean_inc(x_36); +lean_dec(x_30); +x_37 = lean_unsigned_to_nat(1u); +x_38 = lean_nat_add(x_7, x_37); +lean_dec(x_7); +x_39 = !lean_is_exclusive(x_35); +if (x_39 == 0) +{ +lean_object* x_40; uint8_t x_41; +x_40 = lean_ctor_get(x_35, 2); +x_41 = !lean_is_exclusive(x_40); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = lean_ctor_get(x_40, 2); +x_43 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_40, 2, x_43); +x_44 = !lean_is_exclusive(x_8); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_45 = lean_ctor_get(x_8, 2); +x_46 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_46, 0, x_36); +lean_ctor_set(x_46, 1, x_24); +x_47 = lean_array_push(x_45, x_46); +lean_ctor_set(x_8, 2, x_47); +x_48 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_38, x_8, x_35); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_49 = lean_ctor_get(x_48, 1); +lean_inc(x_49); +x_50 = lean_ctor_get(x_49, 2); +lean_inc(x_50); +x_51 = !lean_is_exclusive(x_48); +if (x_51 == 0) +{ +lean_object* x_52; uint8_t x_53; +x_52 = lean_ctor_get(x_48, 1); +lean_dec(x_52); +x_53 = !lean_is_exclusive(x_49); +if (x_53 == 0) +{ +lean_object* x_54; uint8_t x_55; +x_54 = lean_ctor_get(x_49, 2); +lean_dec(x_54); +x_55 = !lean_is_exclusive(x_50); +if (x_55 == 0) +{ +lean_object* x_56; +x_56 = lean_ctor_get(x_50, 2); +lean_dec(x_56); +lean_ctor_set(x_50, 2, x_42); +return x_48; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_50, 0); +x_58 = lean_ctor_get(x_50, 1); +lean_inc(x_58); +lean_inc(x_57); +lean_dec(x_50); +x_59 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_59, 0, x_57); +lean_ctor_set(x_59, 1, x_58); +lean_ctor_set(x_59, 2, x_42); +lean_ctor_set(x_49, 2, x_59); +return x_48; +} +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_60 = lean_ctor_get(x_49, 0); +x_61 = lean_ctor_get(x_49, 1); +x_62 = lean_ctor_get(x_49, 3); +x_63 = lean_ctor_get(x_49, 4); +x_64 = lean_ctor_get(x_49, 5); +lean_inc(x_64); +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_49); +x_65 = lean_ctor_get(x_50, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_50, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + lean_ctor_release(x_50, 2); + x_67 = x_50; +} else { + lean_dec_ref(x_50); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(0, 3, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +lean_ctor_set(x_68, 2, x_42); +x_69 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_69, 0, x_60); +lean_ctor_set(x_69, 1, x_61); +lean_ctor_set(x_69, 2, x_68); +lean_ctor_set(x_69, 3, x_62); +lean_ctor_set(x_69, 4, x_63); +lean_ctor_set(x_69, 5, x_64); +lean_ctor_set(x_48, 1, x_69); +return x_48; +} +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_70 = lean_ctor_get(x_48, 0); +lean_inc(x_70); +lean_dec(x_48); +x_71 = lean_ctor_get(x_49, 0); +lean_inc(x_71); +x_72 = lean_ctor_get(x_49, 1); +lean_inc(x_72); +x_73 = lean_ctor_get(x_49, 3); +lean_inc(x_73); +x_74 = lean_ctor_get(x_49, 4); +lean_inc(x_74); +x_75 = lean_ctor_get(x_49, 5); +lean_inc(x_75); +if (lean_is_exclusive(x_49)) { + lean_ctor_release(x_49, 0); + lean_ctor_release(x_49, 1); + lean_ctor_release(x_49, 2); + lean_ctor_release(x_49, 3); + lean_ctor_release(x_49, 4); + lean_ctor_release(x_49, 5); + x_76 = x_49; +} else { + lean_dec_ref(x_49); + x_76 = lean_box(0); +} +x_77 = lean_ctor_get(x_50, 0); +lean_inc(x_77); +x_78 = lean_ctor_get(x_50, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_50)) { + lean_ctor_release(x_50, 0); + lean_ctor_release(x_50, 1); + lean_ctor_release(x_50, 2); + x_79 = x_50; +} else { + lean_dec_ref(x_50); + x_79 = lean_box(0); +} +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(0, 3, 0); +} else { + x_80 = x_79; +} +lean_ctor_set(x_80, 0, x_77); +lean_ctor_set(x_80, 1, x_78); +lean_ctor_set(x_80, 2, x_42); +if (lean_is_scalar(x_76)) { + x_81 = lean_alloc_ctor(0, 6, 0); +} else { + x_81 = x_76; +} +lean_ctor_set(x_81, 0, x_71); +lean_ctor_set(x_81, 1, x_72); +lean_ctor_set(x_81, 2, x_80); +lean_ctor_set(x_81, 3, x_73); +lean_ctor_set(x_81, 4, x_74); +lean_ctor_set(x_81, 5, x_75); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_70); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +else +{ +lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_83 = lean_ctor_get(x_48, 1); +lean_inc(x_83); +x_84 = lean_ctor_get(x_83, 2); +lean_inc(x_84); +x_85 = !lean_is_exclusive(x_48); +if (x_85 == 0) +{ +lean_object* x_86; uint8_t x_87; +x_86 = lean_ctor_get(x_48, 1); +lean_dec(x_86); +x_87 = !lean_is_exclusive(x_83); +if (x_87 == 0) +{ +lean_object* x_88; uint8_t x_89; +x_88 = lean_ctor_get(x_83, 2); +lean_dec(x_88); +x_89 = !lean_is_exclusive(x_84); +if (x_89 == 0) +{ +lean_object* x_90; +x_90 = lean_ctor_get(x_84, 2); +lean_dec(x_90); +lean_ctor_set(x_84, 2, x_42); +return x_48; +} +else +{ +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_84, 0); +x_92 = lean_ctor_get(x_84, 1); +lean_inc(x_92); +lean_inc(x_91); +lean_dec(x_84); +x_93 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_93, 0, x_91); +lean_ctor_set(x_93, 1, x_92); +lean_ctor_set(x_93, 2, x_42); +lean_ctor_set(x_83, 2, x_93); +return x_48; +} +} +else +{ +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_94 = lean_ctor_get(x_83, 0); +x_95 = lean_ctor_get(x_83, 1); +x_96 = lean_ctor_get(x_83, 3); +x_97 = lean_ctor_get(x_83, 4); +x_98 = lean_ctor_get(x_83, 5); +lean_inc(x_98); +lean_inc(x_97); +lean_inc(x_96); +lean_inc(x_95); +lean_inc(x_94); +lean_dec(x_83); +x_99 = lean_ctor_get(x_84, 0); +lean_inc(x_99); +x_100 = lean_ctor_get(x_84, 1); +lean_inc(x_100); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + lean_ctor_release(x_84, 2); + x_101 = x_84; +} else { + lean_dec_ref(x_84); + x_101 = lean_box(0); +} +if (lean_is_scalar(x_101)) { + x_102 = lean_alloc_ctor(0, 3, 0); +} else { + x_102 = x_101; +} +lean_ctor_set(x_102, 0, x_99); +lean_ctor_set(x_102, 1, x_100); +lean_ctor_set(x_102, 2, x_42); +x_103 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_103, 0, x_94); +lean_ctor_set(x_103, 1, x_95); +lean_ctor_set(x_103, 2, x_102); +lean_ctor_set(x_103, 3, x_96); +lean_ctor_set(x_103, 4, x_97); +lean_ctor_set(x_103, 5, x_98); +lean_ctor_set(x_48, 1, x_103); +return x_48; +} +} +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; +x_104 = lean_ctor_get(x_48, 0); +lean_inc(x_104); +lean_dec(x_48); +x_105 = lean_ctor_get(x_83, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_83, 1); +lean_inc(x_106); +x_107 = lean_ctor_get(x_83, 3); +lean_inc(x_107); +x_108 = lean_ctor_get(x_83, 4); +lean_inc(x_108); +x_109 = lean_ctor_get(x_83, 5); +lean_inc(x_109); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + lean_ctor_release(x_83, 2); + lean_ctor_release(x_83, 3); + lean_ctor_release(x_83, 4); + lean_ctor_release(x_83, 5); + x_110 = x_83; +} else { + lean_dec_ref(x_83); + x_110 = lean_box(0); +} +x_111 = lean_ctor_get(x_84, 0); +lean_inc(x_111); +x_112 = lean_ctor_get(x_84, 1); +lean_inc(x_112); +if (lean_is_exclusive(x_84)) { + lean_ctor_release(x_84, 0); + lean_ctor_release(x_84, 1); + lean_ctor_release(x_84, 2); + x_113 = x_84; +} else { + lean_dec_ref(x_84); + x_113 = lean_box(0); +} +if (lean_is_scalar(x_113)) { + x_114 = lean_alloc_ctor(0, 3, 0); +} else { + x_114 = x_113; +} +lean_ctor_set(x_114, 0, x_111); +lean_ctor_set(x_114, 1, x_112); +lean_ctor_set(x_114, 2, x_42); +if (lean_is_scalar(x_110)) { + x_115 = lean_alloc_ctor(0, 6, 0); +} else { + x_115 = x_110; +} +lean_ctor_set(x_115, 0, x_105); +lean_ctor_set(x_115, 1, x_106); +lean_ctor_set(x_115, 2, x_114); +lean_ctor_set(x_115, 3, x_107); +lean_ctor_set(x_115, 4, x_108); +lean_ctor_set(x_115, 5, x_109); +x_116 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_116, 0, x_104); +lean_ctor_set(x_116, 1, x_115); +return x_116; +} +} +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +x_117 = lean_ctor_get(x_8, 0); +x_118 = lean_ctor_get(x_8, 1); +x_119 = lean_ctor_get(x_8, 2); +x_120 = lean_ctor_get(x_8, 3); +x_121 = lean_ctor_get(x_8, 4); +lean_inc(x_121); +lean_inc(x_120); +lean_inc(x_119); +lean_inc(x_118); +lean_inc(x_117); +lean_dec(x_8); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_36); +lean_ctor_set(x_122, 1, x_24); +x_123 = lean_array_push(x_119, x_122); +x_124 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_124, 0, x_117); +lean_ctor_set(x_124, 1, x_118); +lean_ctor_set(x_124, 2, x_123); +lean_ctor_set(x_124, 3, x_120); +lean_ctor_set(x_124, 4, x_121); +x_125 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_38, x_124, x_35); +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; +x_126 = lean_ctor_get(x_125, 1); +lean_inc(x_126); +x_127 = lean_ctor_get(x_126, 2); +lean_inc(x_127); +x_128 = lean_ctor_get(x_125, 0); +lean_inc(x_128); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_129 = x_125; +} else { + lean_dec_ref(x_125); + x_129 = lean_box(0); +} +x_130 = lean_ctor_get(x_126, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_126, 1); +lean_inc(x_131); +x_132 = lean_ctor_get(x_126, 3); +lean_inc(x_132); +x_133 = lean_ctor_get(x_126, 4); +lean_inc(x_133); +x_134 = lean_ctor_get(x_126, 5); +lean_inc(x_134); +if (lean_is_exclusive(x_126)) { + lean_ctor_release(x_126, 0); + lean_ctor_release(x_126, 1); + lean_ctor_release(x_126, 2); + lean_ctor_release(x_126, 3); + lean_ctor_release(x_126, 4); + lean_ctor_release(x_126, 5); + x_135 = x_126; +} else { + lean_dec_ref(x_126); + x_135 = lean_box(0); +} +x_136 = lean_ctor_get(x_127, 0); +lean_inc(x_136); +x_137 = lean_ctor_get(x_127, 1); +lean_inc(x_137); +if (lean_is_exclusive(x_127)) { + lean_ctor_release(x_127, 0); + lean_ctor_release(x_127, 1); + lean_ctor_release(x_127, 2); + x_138 = x_127; +} else { + lean_dec_ref(x_127); + x_138 = lean_box(0); +} +if (lean_is_scalar(x_138)) { + x_139 = lean_alloc_ctor(0, 3, 0); +} else { + x_139 = x_138; +} +lean_ctor_set(x_139, 0, x_136); +lean_ctor_set(x_139, 1, x_137); +lean_ctor_set(x_139, 2, x_42); +if (lean_is_scalar(x_135)) { + x_140 = lean_alloc_ctor(0, 6, 0); +} else { + x_140 = x_135; +} +lean_ctor_set(x_140, 0, x_130); +lean_ctor_set(x_140, 1, x_131); +lean_ctor_set(x_140, 2, x_139); +lean_ctor_set(x_140, 3, x_132); +lean_ctor_set(x_140, 4, x_133); +lean_ctor_set(x_140, 5, x_134); +if (lean_is_scalar(x_129)) { + x_141 = lean_alloc_ctor(0, 2, 0); +} else { + x_141 = x_129; +} +lean_ctor_set(x_141, 0, x_128); +lean_ctor_set(x_141, 1, x_140); +return x_141; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_142 = lean_ctor_get(x_125, 1); +lean_inc(x_142); +x_143 = lean_ctor_get(x_142, 2); +lean_inc(x_143); +x_144 = lean_ctor_get(x_125, 0); +lean_inc(x_144); +if (lean_is_exclusive(x_125)) { + lean_ctor_release(x_125, 0); + lean_ctor_release(x_125, 1); + x_145 = x_125; +} else { + lean_dec_ref(x_125); + x_145 = lean_box(0); +} +x_146 = lean_ctor_get(x_142, 0); +lean_inc(x_146); +x_147 = lean_ctor_get(x_142, 1); +lean_inc(x_147); +x_148 = lean_ctor_get(x_142, 3); +lean_inc(x_148); +x_149 = lean_ctor_get(x_142, 4); +lean_inc(x_149); +x_150 = lean_ctor_get(x_142, 5); +lean_inc(x_150); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + lean_ctor_release(x_142, 2); + lean_ctor_release(x_142, 3); + lean_ctor_release(x_142, 4); + lean_ctor_release(x_142, 5); + x_151 = x_142; +} else { + lean_dec_ref(x_142); + x_151 = lean_box(0); +} +x_152 = lean_ctor_get(x_143, 0); +lean_inc(x_152); +x_153 = lean_ctor_get(x_143, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_143)) { + lean_ctor_release(x_143, 0); + lean_ctor_release(x_143, 1); + lean_ctor_release(x_143, 2); + x_154 = x_143; +} else { + lean_dec_ref(x_143); + x_154 = lean_box(0); +} +if (lean_is_scalar(x_154)) { + x_155 = lean_alloc_ctor(0, 3, 0); +} else { + x_155 = x_154; +} +lean_ctor_set(x_155, 0, x_152); +lean_ctor_set(x_155, 1, x_153); +lean_ctor_set(x_155, 2, x_42); +if (lean_is_scalar(x_151)) { + x_156 = lean_alloc_ctor(0, 6, 0); +} else { + x_156 = x_151; +} +lean_ctor_set(x_156, 0, x_146); +lean_ctor_set(x_156, 1, x_147); +lean_ctor_set(x_156, 2, x_155); +lean_ctor_set(x_156, 3, x_148); +lean_ctor_set(x_156, 4, x_149); +lean_ctor_set(x_156, 5, x_150); +if (lean_is_scalar(x_145)) { + x_157 = lean_alloc_ctor(1, 2, 0); +} else { + x_157 = x_145; +} +lean_ctor_set(x_157, 0, x_144); +lean_ctor_set(x_157, 1, x_156); +return x_157; +} +} +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_158 = lean_ctor_get(x_40, 0); +x_159 = lean_ctor_get(x_40, 1); +x_160 = lean_ctor_get(x_40, 2); +lean_inc(x_160); +lean_inc(x_159); +lean_inc(x_158); +lean_dec(x_40); +x_161 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_162 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_162, 0, x_158); +lean_ctor_set(x_162, 1, x_159); +lean_ctor_set(x_162, 2, x_161); +lean_ctor_set(x_35, 2, x_162); +x_163 = lean_ctor_get(x_8, 0); +lean_inc(x_163); +x_164 = lean_ctor_get(x_8, 1); +lean_inc(x_164); +x_165 = lean_ctor_get(x_8, 2); +lean_inc(x_165); +x_166 = lean_ctor_get(x_8, 3); +lean_inc(x_166); +x_167 = lean_ctor_get(x_8, 4); +lean_inc(x_167); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + x_168 = x_8; +} else { + lean_dec_ref(x_8); + x_168 = lean_box(0); +} +x_169 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_169, 0, x_36); +lean_ctor_set(x_169, 1, x_24); +x_170 = lean_array_push(x_165, x_169); +if (lean_is_scalar(x_168)) { + x_171 = lean_alloc_ctor(0, 5, 0); +} else { + x_171 = x_168; +} +lean_ctor_set(x_171, 0, x_163); +lean_ctor_set(x_171, 1, x_164); +lean_ctor_set(x_171, 2, x_170); +lean_ctor_set(x_171, 3, x_166); +lean_ctor_set(x_171, 4, x_167); +x_172 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_38, x_171, x_35); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; 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; +x_173 = lean_ctor_get(x_172, 1); +lean_inc(x_173); +x_174 = lean_ctor_get(x_173, 2); +lean_inc(x_174); +x_175 = lean_ctor_get(x_172, 0); +lean_inc(x_175); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_176 = x_172; +} else { + lean_dec_ref(x_172); + x_176 = lean_box(0); +} +x_177 = lean_ctor_get(x_173, 0); +lean_inc(x_177); +x_178 = lean_ctor_get(x_173, 1); +lean_inc(x_178); +x_179 = lean_ctor_get(x_173, 3); +lean_inc(x_179); +x_180 = lean_ctor_get(x_173, 4); +lean_inc(x_180); +x_181 = lean_ctor_get(x_173, 5); +lean_inc(x_181); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + lean_ctor_release(x_173, 2); + lean_ctor_release(x_173, 3); + lean_ctor_release(x_173, 4); + lean_ctor_release(x_173, 5); + x_182 = x_173; +} else { + lean_dec_ref(x_173); + x_182 = lean_box(0); +} +x_183 = lean_ctor_get(x_174, 0); +lean_inc(x_183); +x_184 = lean_ctor_get(x_174, 1); +lean_inc(x_184); +if (lean_is_exclusive(x_174)) { + lean_ctor_release(x_174, 0); + lean_ctor_release(x_174, 1); + lean_ctor_release(x_174, 2); + x_185 = x_174; +} else { + lean_dec_ref(x_174); + x_185 = lean_box(0); +} +if (lean_is_scalar(x_185)) { + x_186 = lean_alloc_ctor(0, 3, 0); +} else { + x_186 = x_185; +} +lean_ctor_set(x_186, 0, x_183); +lean_ctor_set(x_186, 1, x_184); +lean_ctor_set(x_186, 2, x_160); +if (lean_is_scalar(x_182)) { + x_187 = lean_alloc_ctor(0, 6, 0); +} else { + x_187 = x_182; +} +lean_ctor_set(x_187, 0, x_177); +lean_ctor_set(x_187, 1, x_178); +lean_ctor_set(x_187, 2, x_186); +lean_ctor_set(x_187, 3, x_179); +lean_ctor_set(x_187, 4, x_180); +lean_ctor_set(x_187, 5, x_181); +if (lean_is_scalar(x_176)) { + x_188 = lean_alloc_ctor(0, 2, 0); +} else { + x_188 = x_176; +} +lean_ctor_set(x_188, 0, x_175); +lean_ctor_set(x_188, 1, x_187); +return x_188; +} +else +{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_189 = lean_ctor_get(x_172, 1); +lean_inc(x_189); +x_190 = lean_ctor_get(x_189, 2); +lean_inc(x_190); +x_191 = lean_ctor_get(x_172, 0); +lean_inc(x_191); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_192 = x_172; +} else { + lean_dec_ref(x_172); + x_192 = lean_box(0); +} +x_193 = lean_ctor_get(x_189, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_189, 1); +lean_inc(x_194); +x_195 = lean_ctor_get(x_189, 3); +lean_inc(x_195); +x_196 = lean_ctor_get(x_189, 4); +lean_inc(x_196); +x_197 = lean_ctor_get(x_189, 5); +lean_inc(x_197); +if (lean_is_exclusive(x_189)) { + lean_ctor_release(x_189, 0); + lean_ctor_release(x_189, 1); + lean_ctor_release(x_189, 2); + lean_ctor_release(x_189, 3); + lean_ctor_release(x_189, 4); + lean_ctor_release(x_189, 5); + x_198 = x_189; +} else { + lean_dec_ref(x_189); + x_198 = lean_box(0); +} +x_199 = lean_ctor_get(x_190, 0); +lean_inc(x_199); +x_200 = lean_ctor_get(x_190, 1); +lean_inc(x_200); +if (lean_is_exclusive(x_190)) { + lean_ctor_release(x_190, 0); + lean_ctor_release(x_190, 1); + lean_ctor_release(x_190, 2); + x_201 = x_190; +} else { + lean_dec_ref(x_190); + x_201 = lean_box(0); +} +if (lean_is_scalar(x_201)) { + x_202 = lean_alloc_ctor(0, 3, 0); +} else { + x_202 = x_201; +} +lean_ctor_set(x_202, 0, x_199); +lean_ctor_set(x_202, 1, x_200); +lean_ctor_set(x_202, 2, x_160); +if (lean_is_scalar(x_198)) { + x_203 = lean_alloc_ctor(0, 6, 0); +} else { + x_203 = x_198; +} +lean_ctor_set(x_203, 0, x_193); +lean_ctor_set(x_203, 1, x_194); +lean_ctor_set(x_203, 2, x_202); +lean_ctor_set(x_203, 3, x_195); +lean_ctor_set(x_203, 4, x_196); +lean_ctor_set(x_203, 5, x_197); +if (lean_is_scalar(x_192)) { + x_204 = lean_alloc_ctor(1, 2, 0); +} else { + x_204 = x_192; +} +lean_ctor_set(x_204, 0, x_191); +lean_ctor_set(x_204, 1, x_203); +return x_204; +} +} +} +else +{ +lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_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_205 = lean_ctor_get(x_35, 2); +x_206 = lean_ctor_get(x_35, 0); +x_207 = lean_ctor_get(x_35, 1); +x_208 = lean_ctor_get(x_35, 3); +x_209 = lean_ctor_get(x_35, 4); +x_210 = lean_ctor_get(x_35, 5); +lean_inc(x_210); +lean_inc(x_209); +lean_inc(x_208); +lean_inc(x_205); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_35); +x_211 = lean_ctor_get(x_205, 0); +lean_inc(x_211); +x_212 = lean_ctor_get(x_205, 1); +lean_inc(x_212); +x_213 = lean_ctor_get(x_205, 2); +lean_inc(x_213); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + lean_ctor_release(x_205, 2); + x_214 = x_205; +} else { + lean_dec_ref(x_205); + x_214 = lean_box(0); +} +x_215 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_214)) { + x_216 = lean_alloc_ctor(0, 3, 0); +} else { + x_216 = x_214; +} +lean_ctor_set(x_216, 0, x_211); +lean_ctor_set(x_216, 1, x_212); +lean_ctor_set(x_216, 2, x_215); +x_217 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_217, 0, x_206); +lean_ctor_set(x_217, 1, x_207); +lean_ctor_set(x_217, 2, x_216); +lean_ctor_set(x_217, 3, x_208); +lean_ctor_set(x_217, 4, x_209); +lean_ctor_set(x_217, 5, x_210); +x_218 = lean_ctor_get(x_8, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_8, 1); +lean_inc(x_219); +x_220 = lean_ctor_get(x_8, 2); +lean_inc(x_220); +x_221 = lean_ctor_get(x_8, 3); +lean_inc(x_221); +x_222 = lean_ctor_get(x_8, 4); +lean_inc(x_222); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + x_223 = x_8; +} else { + lean_dec_ref(x_8); + x_223 = lean_box(0); +} +x_224 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_224, 0, x_36); +lean_ctor_set(x_224, 1, x_24); +x_225 = lean_array_push(x_220, x_224); +if (lean_is_scalar(x_223)) { + x_226 = lean_alloc_ctor(0, 5, 0); +} else { + x_226 = x_223; +} +lean_ctor_set(x_226, 0, x_218); +lean_ctor_set(x_226, 1, x_219); +lean_ctor_set(x_226, 2, x_225); +lean_ctor_set(x_226, 3, x_221); +lean_ctor_set(x_226, 4, x_222); +x_227 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_38, x_226, x_217); +if (lean_obj_tag(x_227) == 0) +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; +x_228 = lean_ctor_get(x_227, 1); +lean_inc(x_228); +x_229 = lean_ctor_get(x_228, 2); +lean_inc(x_229); +x_230 = lean_ctor_get(x_227, 0); +lean_inc(x_230); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_231 = x_227; +} else { + lean_dec_ref(x_227); + x_231 = lean_box(0); +} +x_232 = lean_ctor_get(x_228, 0); +lean_inc(x_232); +x_233 = lean_ctor_get(x_228, 1); +lean_inc(x_233); +x_234 = lean_ctor_get(x_228, 3); +lean_inc(x_234); +x_235 = lean_ctor_get(x_228, 4); +lean_inc(x_235); +x_236 = lean_ctor_get(x_228, 5); +lean_inc(x_236); +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + lean_ctor_release(x_228, 2); + lean_ctor_release(x_228, 3); + lean_ctor_release(x_228, 4); + lean_ctor_release(x_228, 5); + x_237 = x_228; +} else { + lean_dec_ref(x_228); + x_237 = lean_box(0); +} +x_238 = lean_ctor_get(x_229, 0); +lean_inc(x_238); +x_239 = lean_ctor_get(x_229, 1); +lean_inc(x_239); +if (lean_is_exclusive(x_229)) { + lean_ctor_release(x_229, 0); + lean_ctor_release(x_229, 1); + lean_ctor_release(x_229, 2); + x_240 = x_229; +} else { + lean_dec_ref(x_229); + x_240 = lean_box(0); +} +if (lean_is_scalar(x_240)) { + x_241 = lean_alloc_ctor(0, 3, 0); +} else { + x_241 = x_240; +} +lean_ctor_set(x_241, 0, x_238); +lean_ctor_set(x_241, 1, x_239); +lean_ctor_set(x_241, 2, x_213); +if (lean_is_scalar(x_237)) { + x_242 = lean_alloc_ctor(0, 6, 0); +} else { + x_242 = x_237; +} +lean_ctor_set(x_242, 0, x_232); +lean_ctor_set(x_242, 1, x_233); +lean_ctor_set(x_242, 2, x_241); +lean_ctor_set(x_242, 3, x_234); +lean_ctor_set(x_242, 4, x_235); +lean_ctor_set(x_242, 5, x_236); +if (lean_is_scalar(x_231)) { + x_243 = lean_alloc_ctor(0, 2, 0); +} else { + x_243 = x_231; +} +lean_ctor_set(x_243, 0, x_230); +lean_ctor_set(x_243, 1, x_242); +return x_243; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_244 = lean_ctor_get(x_227, 1); +lean_inc(x_244); +x_245 = lean_ctor_get(x_244, 2); +lean_inc(x_245); +x_246 = lean_ctor_get(x_227, 0); +lean_inc(x_246); +if (lean_is_exclusive(x_227)) { + lean_ctor_release(x_227, 0); + lean_ctor_release(x_227, 1); + x_247 = x_227; +} else { + lean_dec_ref(x_227); + x_247 = lean_box(0); +} +x_248 = lean_ctor_get(x_244, 0); +lean_inc(x_248); +x_249 = lean_ctor_get(x_244, 1); +lean_inc(x_249); +x_250 = lean_ctor_get(x_244, 3); +lean_inc(x_250); +x_251 = lean_ctor_get(x_244, 4); +lean_inc(x_251); +x_252 = lean_ctor_get(x_244, 5); +lean_inc(x_252); +if (lean_is_exclusive(x_244)) { + lean_ctor_release(x_244, 0); + lean_ctor_release(x_244, 1); + lean_ctor_release(x_244, 2); + lean_ctor_release(x_244, 3); + lean_ctor_release(x_244, 4); + lean_ctor_release(x_244, 5); + x_253 = x_244; +} else { + lean_dec_ref(x_244); + x_253 = lean_box(0); +} +x_254 = lean_ctor_get(x_245, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_245, 1); +lean_inc(x_255); +if (lean_is_exclusive(x_245)) { + lean_ctor_release(x_245, 0); + lean_ctor_release(x_245, 1); + lean_ctor_release(x_245, 2); + x_256 = x_245; +} else { + lean_dec_ref(x_245); + x_256 = lean_box(0); +} +if (lean_is_scalar(x_256)) { + x_257 = lean_alloc_ctor(0, 3, 0); +} else { + x_257 = x_256; +} +lean_ctor_set(x_257, 0, x_254); +lean_ctor_set(x_257, 1, x_255); +lean_ctor_set(x_257, 2, x_213); +if (lean_is_scalar(x_253)) { + x_258 = lean_alloc_ctor(0, 6, 0); +} else { + x_258 = x_253; +} +lean_ctor_set(x_258, 0, x_248); +lean_ctor_set(x_258, 1, x_249); +lean_ctor_set(x_258, 2, x_257); +lean_ctor_set(x_258, 3, x_250); +lean_ctor_set(x_258, 4, x_251); +lean_ctor_set(x_258, 5, x_252); +if (lean_is_scalar(x_247)) { + x_259 = lean_alloc_ctor(1, 2, 0); +} else { + x_259 = x_247; +} +lean_ctor_set(x_259, 0, x_246); +lean_ctor_set(x_259, 1, x_258); +return x_259; +} +} +} +default: +{ +lean_object* x_260; lean_object* x_261; +x_260 = lean_ctor_get(x_29, 1); +lean_inc(x_260); +lean_dec(x_29); +lean_inc(x_8); +x_261 = l_Lean_Meta_isClassExpensive___main(x_28, x_8, x_260); +if (lean_obj_tag(x_261) == 0) +{ +lean_object* x_262; +x_262 = lean_ctor_get(x_261, 0); +lean_inc(x_262); +if (lean_obj_tag(x_262) == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; +lean_dec(x_24); +x_263 = lean_ctor_get(x_261, 1); +lean_inc(x_263); +lean_dec(x_261); +x_264 = lean_unsigned_to_nat(1u); +x_265 = lean_nat_add(x_7, x_264); +lean_dec(x_7); +x_7 = x_265; +x_9 = x_263; +goto _start; +} +else +{ +lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; +x_267 = lean_ctor_get(x_261, 1); +lean_inc(x_267); +lean_dec(x_261); +x_268 = lean_ctor_get(x_262, 0); +lean_inc(x_268); +lean_dec(x_262); +x_269 = lean_unsigned_to_nat(1u); +x_270 = lean_nat_add(x_7, x_269); +lean_dec(x_7); +x_271 = !lean_is_exclusive(x_267); +if (x_271 == 0) +{ +lean_object* x_272; uint8_t x_273; +x_272 = lean_ctor_get(x_267, 2); +x_273 = !lean_is_exclusive(x_272); +if (x_273 == 0) +{ +lean_object* x_274; lean_object* x_275; uint8_t x_276; +x_274 = lean_ctor_get(x_272, 2); +x_275 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +lean_ctor_set(x_272, 2, x_275); +x_276 = !lean_is_exclusive(x_8); +if (x_276 == 0) +{ +lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; +x_277 = lean_ctor_get(x_8, 2); +x_278 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_278, 0, x_268); +lean_ctor_set(x_278, 1, x_24); +x_279 = lean_array_push(x_277, x_278); +lean_ctor_set(x_8, 2, x_279); +x_280 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_270, x_8, x_267); +if (lean_obj_tag(x_280) == 0) +{ +lean_object* x_281; lean_object* x_282; uint8_t x_283; +x_281 = lean_ctor_get(x_280, 1); +lean_inc(x_281); +x_282 = lean_ctor_get(x_281, 2); +lean_inc(x_282); +x_283 = !lean_is_exclusive(x_280); +if (x_283 == 0) +{ +lean_object* x_284; uint8_t x_285; +x_284 = lean_ctor_get(x_280, 1); +lean_dec(x_284); +x_285 = !lean_is_exclusive(x_281); +if (x_285 == 0) +{ +lean_object* x_286; uint8_t x_287; +x_286 = lean_ctor_get(x_281, 2); +lean_dec(x_286); +x_287 = !lean_is_exclusive(x_282); +if (x_287 == 0) +{ +lean_object* x_288; +x_288 = lean_ctor_get(x_282, 2); +lean_dec(x_288); +lean_ctor_set(x_282, 2, x_274); +return x_280; +} +else +{ +lean_object* x_289; lean_object* x_290; lean_object* x_291; +x_289 = lean_ctor_get(x_282, 0); +x_290 = lean_ctor_get(x_282, 1); +lean_inc(x_290); +lean_inc(x_289); +lean_dec(x_282); +x_291 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_291, 0, x_289); +lean_ctor_set(x_291, 1, x_290); +lean_ctor_set(x_291, 2, x_274); +lean_ctor_set(x_281, 2, x_291); +return x_280; +} +} +else +{ +lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +x_292 = lean_ctor_get(x_281, 0); +x_293 = lean_ctor_get(x_281, 1); +x_294 = lean_ctor_get(x_281, 3); +x_295 = lean_ctor_get(x_281, 4); +x_296 = lean_ctor_get(x_281, 5); +lean_inc(x_296); +lean_inc(x_295); +lean_inc(x_294); +lean_inc(x_293); +lean_inc(x_292); +lean_dec(x_281); +x_297 = lean_ctor_get(x_282, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_282, 1); +lean_inc(x_298); +if (lean_is_exclusive(x_282)) { + lean_ctor_release(x_282, 0); + lean_ctor_release(x_282, 1); + lean_ctor_release(x_282, 2); + x_299 = x_282; +} else { + lean_dec_ref(x_282); + x_299 = lean_box(0); +} +if (lean_is_scalar(x_299)) { + x_300 = lean_alloc_ctor(0, 3, 0); +} else { + x_300 = x_299; +} +lean_ctor_set(x_300, 0, x_297); +lean_ctor_set(x_300, 1, x_298); +lean_ctor_set(x_300, 2, x_274); +x_301 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_301, 0, x_292); +lean_ctor_set(x_301, 1, x_293); +lean_ctor_set(x_301, 2, x_300); +lean_ctor_set(x_301, 3, x_294); +lean_ctor_set(x_301, 4, x_295); +lean_ctor_set(x_301, 5, x_296); +lean_ctor_set(x_280, 1, x_301); +return x_280; +} +} +else +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; +x_302 = lean_ctor_get(x_280, 0); +lean_inc(x_302); +lean_dec(x_280); +x_303 = lean_ctor_get(x_281, 0); +lean_inc(x_303); +x_304 = lean_ctor_get(x_281, 1); +lean_inc(x_304); +x_305 = lean_ctor_get(x_281, 3); +lean_inc(x_305); +x_306 = lean_ctor_get(x_281, 4); +lean_inc(x_306); +x_307 = lean_ctor_get(x_281, 5); +lean_inc(x_307); +if (lean_is_exclusive(x_281)) { + lean_ctor_release(x_281, 0); + lean_ctor_release(x_281, 1); + lean_ctor_release(x_281, 2); + lean_ctor_release(x_281, 3); + lean_ctor_release(x_281, 4); + lean_ctor_release(x_281, 5); + x_308 = x_281; +} else { + lean_dec_ref(x_281); + x_308 = lean_box(0); +} +x_309 = lean_ctor_get(x_282, 0); +lean_inc(x_309); +x_310 = lean_ctor_get(x_282, 1); +lean_inc(x_310); +if (lean_is_exclusive(x_282)) { + lean_ctor_release(x_282, 0); + lean_ctor_release(x_282, 1); + lean_ctor_release(x_282, 2); + x_311 = x_282; +} else { + lean_dec_ref(x_282); + x_311 = lean_box(0); +} +if (lean_is_scalar(x_311)) { + x_312 = lean_alloc_ctor(0, 3, 0); +} else { + x_312 = x_311; +} +lean_ctor_set(x_312, 0, x_309); +lean_ctor_set(x_312, 1, x_310); +lean_ctor_set(x_312, 2, x_274); +if (lean_is_scalar(x_308)) { + x_313 = lean_alloc_ctor(0, 6, 0); +} else { + x_313 = x_308; +} +lean_ctor_set(x_313, 0, x_303); +lean_ctor_set(x_313, 1, x_304); +lean_ctor_set(x_313, 2, x_312); +lean_ctor_set(x_313, 3, x_305); +lean_ctor_set(x_313, 4, x_306); +lean_ctor_set(x_313, 5, x_307); +x_314 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_314, 0, x_302); +lean_ctor_set(x_314, 1, x_313); +return x_314; +} +} +else +{ +lean_object* x_315; lean_object* x_316; uint8_t x_317; +x_315 = lean_ctor_get(x_280, 1); +lean_inc(x_315); +x_316 = lean_ctor_get(x_315, 2); +lean_inc(x_316); +x_317 = !lean_is_exclusive(x_280); +if (x_317 == 0) +{ +lean_object* x_318; uint8_t x_319; +x_318 = lean_ctor_get(x_280, 1); +lean_dec(x_318); +x_319 = !lean_is_exclusive(x_315); +if (x_319 == 0) +{ +lean_object* x_320; uint8_t x_321; +x_320 = lean_ctor_get(x_315, 2); +lean_dec(x_320); +x_321 = !lean_is_exclusive(x_316); +if (x_321 == 0) +{ +lean_object* x_322; +x_322 = lean_ctor_get(x_316, 2); +lean_dec(x_322); +lean_ctor_set(x_316, 2, x_274); +return x_280; +} +else +{ +lean_object* x_323; lean_object* x_324; lean_object* x_325; +x_323 = lean_ctor_get(x_316, 0); +x_324 = lean_ctor_get(x_316, 1); +lean_inc(x_324); +lean_inc(x_323); +lean_dec(x_316); +x_325 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_325, 0, x_323); +lean_ctor_set(x_325, 1, x_324); +lean_ctor_set(x_325, 2, x_274); +lean_ctor_set(x_315, 2, x_325); +return x_280; +} +} +else +{ +lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_326 = lean_ctor_get(x_315, 0); +x_327 = lean_ctor_get(x_315, 1); +x_328 = lean_ctor_get(x_315, 3); +x_329 = lean_ctor_get(x_315, 4); +x_330 = lean_ctor_get(x_315, 5); +lean_inc(x_330); +lean_inc(x_329); +lean_inc(x_328); +lean_inc(x_327); +lean_inc(x_326); +lean_dec(x_315); +x_331 = lean_ctor_get(x_316, 0); +lean_inc(x_331); +x_332 = lean_ctor_get(x_316, 1); +lean_inc(x_332); +if (lean_is_exclusive(x_316)) { + lean_ctor_release(x_316, 0); + lean_ctor_release(x_316, 1); + lean_ctor_release(x_316, 2); + x_333 = x_316; +} else { + lean_dec_ref(x_316); + x_333 = lean_box(0); +} +if (lean_is_scalar(x_333)) { + x_334 = lean_alloc_ctor(0, 3, 0); +} else { + x_334 = x_333; +} +lean_ctor_set(x_334, 0, x_331); +lean_ctor_set(x_334, 1, x_332); +lean_ctor_set(x_334, 2, x_274); +x_335 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_335, 0, x_326); +lean_ctor_set(x_335, 1, x_327); +lean_ctor_set(x_335, 2, x_334); +lean_ctor_set(x_335, 3, x_328); +lean_ctor_set(x_335, 4, x_329); +lean_ctor_set(x_335, 5, x_330); +lean_ctor_set(x_280, 1, x_335); +return x_280; +} +} +else +{ +lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; +x_336 = lean_ctor_get(x_280, 0); +lean_inc(x_336); +lean_dec(x_280); +x_337 = lean_ctor_get(x_315, 0); +lean_inc(x_337); +x_338 = lean_ctor_get(x_315, 1); +lean_inc(x_338); +x_339 = lean_ctor_get(x_315, 3); +lean_inc(x_339); +x_340 = lean_ctor_get(x_315, 4); +lean_inc(x_340); +x_341 = lean_ctor_get(x_315, 5); +lean_inc(x_341); +if (lean_is_exclusive(x_315)) { + lean_ctor_release(x_315, 0); + lean_ctor_release(x_315, 1); + lean_ctor_release(x_315, 2); + lean_ctor_release(x_315, 3); + lean_ctor_release(x_315, 4); + lean_ctor_release(x_315, 5); + x_342 = x_315; +} else { + lean_dec_ref(x_315); + x_342 = lean_box(0); +} +x_343 = lean_ctor_get(x_316, 0); +lean_inc(x_343); +x_344 = lean_ctor_get(x_316, 1); +lean_inc(x_344); +if (lean_is_exclusive(x_316)) { + lean_ctor_release(x_316, 0); + lean_ctor_release(x_316, 1); + lean_ctor_release(x_316, 2); + x_345 = x_316; +} else { + lean_dec_ref(x_316); + x_345 = lean_box(0); +} +if (lean_is_scalar(x_345)) { + x_346 = lean_alloc_ctor(0, 3, 0); +} else { + x_346 = x_345; +} +lean_ctor_set(x_346, 0, x_343); +lean_ctor_set(x_346, 1, x_344); +lean_ctor_set(x_346, 2, x_274); +if (lean_is_scalar(x_342)) { + x_347 = lean_alloc_ctor(0, 6, 0); +} else { + x_347 = x_342; +} +lean_ctor_set(x_347, 0, x_337); +lean_ctor_set(x_347, 1, x_338); +lean_ctor_set(x_347, 2, x_346); +lean_ctor_set(x_347, 3, x_339); +lean_ctor_set(x_347, 4, x_340); +lean_ctor_set(x_347, 5, x_341); +x_348 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_348, 0, x_336); +lean_ctor_set(x_348, 1, x_347); +return x_348; +} +} +} +else +{ +lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_349 = lean_ctor_get(x_8, 0); +x_350 = lean_ctor_get(x_8, 1); +x_351 = lean_ctor_get(x_8, 2); +x_352 = lean_ctor_get(x_8, 3); +x_353 = lean_ctor_get(x_8, 4); +lean_inc(x_353); +lean_inc(x_352); +lean_inc(x_351); +lean_inc(x_350); +lean_inc(x_349); +lean_dec(x_8); +x_354 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_354, 0, x_268); +lean_ctor_set(x_354, 1, x_24); +x_355 = lean_array_push(x_351, x_354); +x_356 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_356, 0, x_349); +lean_ctor_set(x_356, 1, x_350); +lean_ctor_set(x_356, 2, x_355); +lean_ctor_set(x_356, 3, x_352); +lean_ctor_set(x_356, 4, x_353); +x_357 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_270, x_356, x_267); +if (lean_obj_tag(x_357) == 0) +{ +lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; 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; +x_358 = lean_ctor_get(x_357, 1); +lean_inc(x_358); +x_359 = lean_ctor_get(x_358, 2); +lean_inc(x_359); +x_360 = lean_ctor_get(x_357, 0); +lean_inc(x_360); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + x_361 = x_357; +} else { + lean_dec_ref(x_357); + x_361 = lean_box(0); +} +x_362 = lean_ctor_get(x_358, 0); +lean_inc(x_362); +x_363 = lean_ctor_get(x_358, 1); +lean_inc(x_363); +x_364 = lean_ctor_get(x_358, 3); +lean_inc(x_364); +x_365 = lean_ctor_get(x_358, 4); +lean_inc(x_365); +x_366 = lean_ctor_get(x_358, 5); +lean_inc(x_366); +if (lean_is_exclusive(x_358)) { + lean_ctor_release(x_358, 0); + lean_ctor_release(x_358, 1); + lean_ctor_release(x_358, 2); + lean_ctor_release(x_358, 3); + lean_ctor_release(x_358, 4); + lean_ctor_release(x_358, 5); + x_367 = x_358; +} else { + lean_dec_ref(x_358); + x_367 = lean_box(0); +} +x_368 = lean_ctor_get(x_359, 0); +lean_inc(x_368); +x_369 = lean_ctor_get(x_359, 1); +lean_inc(x_369); +if (lean_is_exclusive(x_359)) { + lean_ctor_release(x_359, 0); + lean_ctor_release(x_359, 1); + lean_ctor_release(x_359, 2); + x_370 = x_359; +} else { + lean_dec_ref(x_359); + x_370 = lean_box(0); +} +if (lean_is_scalar(x_370)) { + x_371 = lean_alloc_ctor(0, 3, 0); +} else { + x_371 = x_370; +} +lean_ctor_set(x_371, 0, x_368); +lean_ctor_set(x_371, 1, x_369); +lean_ctor_set(x_371, 2, x_274); +if (lean_is_scalar(x_367)) { + x_372 = lean_alloc_ctor(0, 6, 0); +} else { + x_372 = x_367; +} +lean_ctor_set(x_372, 0, x_362); +lean_ctor_set(x_372, 1, x_363); +lean_ctor_set(x_372, 2, x_371); +lean_ctor_set(x_372, 3, x_364); +lean_ctor_set(x_372, 4, x_365); +lean_ctor_set(x_372, 5, x_366); +if (lean_is_scalar(x_361)) { + x_373 = lean_alloc_ctor(0, 2, 0); +} else { + x_373 = x_361; +} +lean_ctor_set(x_373, 0, x_360); +lean_ctor_set(x_373, 1, x_372); +return x_373; +} +else +{ +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; +x_374 = lean_ctor_get(x_357, 1); +lean_inc(x_374); +x_375 = lean_ctor_get(x_374, 2); +lean_inc(x_375); +x_376 = lean_ctor_get(x_357, 0); +lean_inc(x_376); +if (lean_is_exclusive(x_357)) { + lean_ctor_release(x_357, 0); + lean_ctor_release(x_357, 1); + x_377 = x_357; +} else { + lean_dec_ref(x_357); + x_377 = lean_box(0); +} +x_378 = lean_ctor_get(x_374, 0); +lean_inc(x_378); +x_379 = lean_ctor_get(x_374, 1); +lean_inc(x_379); +x_380 = lean_ctor_get(x_374, 3); +lean_inc(x_380); +x_381 = lean_ctor_get(x_374, 4); +lean_inc(x_381); +x_382 = lean_ctor_get(x_374, 5); +lean_inc(x_382); +if (lean_is_exclusive(x_374)) { + lean_ctor_release(x_374, 0); + lean_ctor_release(x_374, 1); + lean_ctor_release(x_374, 2); + lean_ctor_release(x_374, 3); + lean_ctor_release(x_374, 4); + lean_ctor_release(x_374, 5); + x_383 = x_374; +} else { + lean_dec_ref(x_374); + x_383 = lean_box(0); +} +x_384 = lean_ctor_get(x_375, 0); +lean_inc(x_384); +x_385 = lean_ctor_get(x_375, 1); +lean_inc(x_385); +if (lean_is_exclusive(x_375)) { + lean_ctor_release(x_375, 0); + lean_ctor_release(x_375, 1); + lean_ctor_release(x_375, 2); + x_386 = x_375; +} else { + lean_dec_ref(x_375); + x_386 = lean_box(0); +} +if (lean_is_scalar(x_386)) { + x_387 = lean_alloc_ctor(0, 3, 0); +} else { + x_387 = x_386; +} +lean_ctor_set(x_387, 0, x_384); +lean_ctor_set(x_387, 1, x_385); +lean_ctor_set(x_387, 2, x_274); +if (lean_is_scalar(x_383)) { + x_388 = lean_alloc_ctor(0, 6, 0); +} else { + x_388 = x_383; +} +lean_ctor_set(x_388, 0, x_378); +lean_ctor_set(x_388, 1, x_379); +lean_ctor_set(x_388, 2, x_387); +lean_ctor_set(x_388, 3, x_380); +lean_ctor_set(x_388, 4, x_381); +lean_ctor_set(x_388, 5, x_382); +if (lean_is_scalar(x_377)) { + x_389 = lean_alloc_ctor(1, 2, 0); +} else { + x_389 = x_377; +} +lean_ctor_set(x_389, 0, x_376); +lean_ctor_set(x_389, 1, x_388); +return x_389; +} +} +} +else +{ +lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; +x_390 = lean_ctor_get(x_272, 0); +x_391 = lean_ctor_get(x_272, 1); +x_392 = lean_ctor_get(x_272, 2); +lean_inc(x_392); +lean_inc(x_391); +lean_inc(x_390); +lean_dec(x_272); +x_393 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +x_394 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_394, 0, x_390); +lean_ctor_set(x_394, 1, x_391); +lean_ctor_set(x_394, 2, x_393); +lean_ctor_set(x_267, 2, x_394); +x_395 = lean_ctor_get(x_8, 0); +lean_inc(x_395); +x_396 = lean_ctor_get(x_8, 1); +lean_inc(x_396); +x_397 = lean_ctor_get(x_8, 2); +lean_inc(x_397); +x_398 = lean_ctor_get(x_8, 3); +lean_inc(x_398); +x_399 = lean_ctor_get(x_8, 4); +lean_inc(x_399); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + x_400 = x_8; +} else { + lean_dec_ref(x_8); + x_400 = lean_box(0); +} +x_401 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_401, 0, x_268); +lean_ctor_set(x_401, 1, x_24); +x_402 = lean_array_push(x_397, x_401); +if (lean_is_scalar(x_400)) { + x_403 = lean_alloc_ctor(0, 5, 0); +} else { + x_403 = x_400; +} +lean_ctor_set(x_403, 0, x_395); +lean_ctor_set(x_403, 1, x_396); +lean_ctor_set(x_403, 2, x_402); +lean_ctor_set(x_403, 3, x_398); +lean_ctor_set(x_403, 4, x_399); +x_404 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_270, x_403, x_267); +if (lean_obj_tag(x_404) == 0) +{ +lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; 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; +x_405 = lean_ctor_get(x_404, 1); +lean_inc(x_405); +x_406 = lean_ctor_get(x_405, 2); +lean_inc(x_406); +x_407 = lean_ctor_get(x_404, 0); +lean_inc(x_407); +if (lean_is_exclusive(x_404)) { + lean_ctor_release(x_404, 0); + lean_ctor_release(x_404, 1); + x_408 = x_404; +} else { + lean_dec_ref(x_404); + x_408 = lean_box(0); +} +x_409 = lean_ctor_get(x_405, 0); +lean_inc(x_409); +x_410 = lean_ctor_get(x_405, 1); +lean_inc(x_410); +x_411 = lean_ctor_get(x_405, 3); +lean_inc(x_411); +x_412 = lean_ctor_get(x_405, 4); +lean_inc(x_412); +x_413 = lean_ctor_get(x_405, 5); +lean_inc(x_413); +if (lean_is_exclusive(x_405)) { + lean_ctor_release(x_405, 0); + lean_ctor_release(x_405, 1); + lean_ctor_release(x_405, 2); + lean_ctor_release(x_405, 3); + lean_ctor_release(x_405, 4); + lean_ctor_release(x_405, 5); + x_414 = x_405; +} else { + lean_dec_ref(x_405); + x_414 = lean_box(0); +} +x_415 = lean_ctor_get(x_406, 0); +lean_inc(x_415); +x_416 = lean_ctor_get(x_406, 1); +lean_inc(x_416); +if (lean_is_exclusive(x_406)) { + lean_ctor_release(x_406, 0); + lean_ctor_release(x_406, 1); + lean_ctor_release(x_406, 2); + x_417 = x_406; +} else { + lean_dec_ref(x_406); + x_417 = lean_box(0); +} +if (lean_is_scalar(x_417)) { + x_418 = lean_alloc_ctor(0, 3, 0); +} else { + x_418 = x_417; +} +lean_ctor_set(x_418, 0, x_415); +lean_ctor_set(x_418, 1, x_416); +lean_ctor_set(x_418, 2, x_392); +if (lean_is_scalar(x_414)) { + x_419 = lean_alloc_ctor(0, 6, 0); +} else { + x_419 = x_414; +} +lean_ctor_set(x_419, 0, x_409); +lean_ctor_set(x_419, 1, x_410); +lean_ctor_set(x_419, 2, x_418); +lean_ctor_set(x_419, 3, x_411); +lean_ctor_set(x_419, 4, x_412); +lean_ctor_set(x_419, 5, x_413); +if (lean_is_scalar(x_408)) { + x_420 = lean_alloc_ctor(0, 2, 0); +} else { + x_420 = x_408; +} +lean_ctor_set(x_420, 0, x_407); +lean_ctor_set(x_420, 1, x_419); +return x_420; +} +else +{ +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; +x_421 = lean_ctor_get(x_404, 1); +lean_inc(x_421); +x_422 = lean_ctor_get(x_421, 2); +lean_inc(x_422); +x_423 = lean_ctor_get(x_404, 0); +lean_inc(x_423); +if (lean_is_exclusive(x_404)) { + lean_ctor_release(x_404, 0); + lean_ctor_release(x_404, 1); + x_424 = x_404; +} else { + lean_dec_ref(x_404); + x_424 = lean_box(0); +} +x_425 = lean_ctor_get(x_421, 0); +lean_inc(x_425); +x_426 = lean_ctor_get(x_421, 1); +lean_inc(x_426); +x_427 = lean_ctor_get(x_421, 3); +lean_inc(x_427); +x_428 = lean_ctor_get(x_421, 4); +lean_inc(x_428); +x_429 = lean_ctor_get(x_421, 5); +lean_inc(x_429); +if (lean_is_exclusive(x_421)) { + lean_ctor_release(x_421, 0); + lean_ctor_release(x_421, 1); + lean_ctor_release(x_421, 2); + lean_ctor_release(x_421, 3); + lean_ctor_release(x_421, 4); + lean_ctor_release(x_421, 5); + x_430 = x_421; +} else { + lean_dec_ref(x_421); + x_430 = lean_box(0); +} +x_431 = lean_ctor_get(x_422, 0); +lean_inc(x_431); +x_432 = lean_ctor_get(x_422, 1); +lean_inc(x_432); +if (lean_is_exclusive(x_422)) { + lean_ctor_release(x_422, 0); + lean_ctor_release(x_422, 1); + lean_ctor_release(x_422, 2); + x_433 = x_422; +} else { + lean_dec_ref(x_422); + x_433 = lean_box(0); +} +if (lean_is_scalar(x_433)) { + x_434 = lean_alloc_ctor(0, 3, 0); +} else { + x_434 = x_433; +} +lean_ctor_set(x_434, 0, x_431); +lean_ctor_set(x_434, 1, x_432); +lean_ctor_set(x_434, 2, x_392); +if (lean_is_scalar(x_430)) { + x_435 = lean_alloc_ctor(0, 6, 0); +} else { + x_435 = x_430; +} +lean_ctor_set(x_435, 0, x_425); +lean_ctor_set(x_435, 1, x_426); +lean_ctor_set(x_435, 2, x_434); +lean_ctor_set(x_435, 3, x_427); +lean_ctor_set(x_435, 4, x_428); +lean_ctor_set(x_435, 5, x_429); +if (lean_is_scalar(x_424)) { + x_436 = lean_alloc_ctor(1, 2, 0); +} else { + x_436 = x_424; +} +lean_ctor_set(x_436, 0, x_423); +lean_ctor_set(x_436, 1, x_435); +return x_436; +} +} +} +else +{ +lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_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; +x_437 = lean_ctor_get(x_267, 2); +x_438 = lean_ctor_get(x_267, 0); +x_439 = lean_ctor_get(x_267, 1); +x_440 = lean_ctor_get(x_267, 3); +x_441 = lean_ctor_get(x_267, 4); +x_442 = lean_ctor_get(x_267, 5); +lean_inc(x_442); +lean_inc(x_441); +lean_inc(x_440); +lean_inc(x_437); +lean_inc(x_439); +lean_inc(x_438); +lean_dec(x_267); +x_443 = lean_ctor_get(x_437, 0); +lean_inc(x_443); +x_444 = lean_ctor_get(x_437, 1); +lean_inc(x_444); +x_445 = lean_ctor_get(x_437, 2); +lean_inc(x_445); +if (lean_is_exclusive(x_437)) { + lean_ctor_release(x_437, 0); + lean_ctor_release(x_437, 1); + lean_ctor_release(x_437, 2); + x_446 = x_437; +} else { + lean_dec_ref(x_437); + x_446 = lean_box(0); +} +x_447 = l_Lean_Meta_resettingSynthInstanceCache___rarg___closed__1; +if (lean_is_scalar(x_446)) { + x_448 = lean_alloc_ctor(0, 3, 0); +} else { + x_448 = x_446; +} +lean_ctor_set(x_448, 0, x_443); +lean_ctor_set(x_448, 1, x_444); +lean_ctor_set(x_448, 2, x_447); +x_449 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_449, 0, x_438); +lean_ctor_set(x_449, 1, x_439); +lean_ctor_set(x_449, 2, x_448); +lean_ctor_set(x_449, 3, x_440); +lean_ctor_set(x_449, 4, x_441); +lean_ctor_set(x_449, 5, x_442); +x_450 = lean_ctor_get(x_8, 0); +lean_inc(x_450); +x_451 = lean_ctor_get(x_8, 1); +lean_inc(x_451); +x_452 = lean_ctor_get(x_8, 2); +lean_inc(x_452); +x_453 = lean_ctor_get(x_8, 3); +lean_inc(x_453); +x_454 = lean_ctor_get(x_8, 4); +lean_inc(x_454); +if (lean_is_exclusive(x_8)) { + lean_ctor_release(x_8, 0); + lean_ctor_release(x_8, 1); + lean_ctor_release(x_8, 2); + lean_ctor_release(x_8, 3); + lean_ctor_release(x_8, 4); + x_455 = x_8; +} else { + lean_dec_ref(x_8); + x_455 = lean_box(0); +} +x_456 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_456, 0, x_268); +lean_ctor_set(x_456, 1, x_24); +x_457 = lean_array_push(x_452, x_456); +if (lean_is_scalar(x_455)) { + x_458 = lean_alloc_ctor(0, 5, 0); +} else { + x_458 = x_455; +} +lean_ctor_set(x_458, 0, x_450); +lean_ctor_set(x_458, 1, x_451); +lean_ctor_set(x_458, 2, x_457); +lean_ctor_set(x_458, 3, x_453); +lean_ctor_set(x_458, 4, x_454); +x_459 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_270, x_458, x_449); +if (lean_obj_tag(x_459) == 0) +{ +lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; +x_460 = lean_ctor_get(x_459, 1); +lean_inc(x_460); +x_461 = lean_ctor_get(x_460, 2); +lean_inc(x_461); +x_462 = lean_ctor_get(x_459, 0); +lean_inc(x_462); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + x_463 = x_459; +} else { + lean_dec_ref(x_459); + x_463 = lean_box(0); +} +x_464 = lean_ctor_get(x_460, 0); +lean_inc(x_464); +x_465 = lean_ctor_get(x_460, 1); +lean_inc(x_465); +x_466 = lean_ctor_get(x_460, 3); +lean_inc(x_466); +x_467 = lean_ctor_get(x_460, 4); +lean_inc(x_467); +x_468 = lean_ctor_get(x_460, 5); +lean_inc(x_468); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + lean_ctor_release(x_460, 2); + lean_ctor_release(x_460, 3); + lean_ctor_release(x_460, 4); + lean_ctor_release(x_460, 5); + x_469 = x_460; +} else { + lean_dec_ref(x_460); + x_469 = lean_box(0); +} +x_470 = lean_ctor_get(x_461, 0); +lean_inc(x_470); +x_471 = lean_ctor_get(x_461, 1); +lean_inc(x_471); +if (lean_is_exclusive(x_461)) { + lean_ctor_release(x_461, 0); + lean_ctor_release(x_461, 1); + lean_ctor_release(x_461, 2); + x_472 = x_461; +} else { + lean_dec_ref(x_461); + x_472 = lean_box(0); +} +if (lean_is_scalar(x_472)) { + x_473 = lean_alloc_ctor(0, 3, 0); +} else { + x_473 = x_472; +} +lean_ctor_set(x_473, 0, x_470); +lean_ctor_set(x_473, 1, x_471); +lean_ctor_set(x_473, 2, x_445); +if (lean_is_scalar(x_469)) { + x_474 = lean_alloc_ctor(0, 6, 0); +} else { + x_474 = x_469; +} +lean_ctor_set(x_474, 0, x_464); +lean_ctor_set(x_474, 1, x_465); +lean_ctor_set(x_474, 2, x_473); +lean_ctor_set(x_474, 3, x_466); +lean_ctor_set(x_474, 4, x_467); +lean_ctor_set(x_474, 5, x_468); +if (lean_is_scalar(x_463)) { + x_475 = lean_alloc_ctor(0, 2, 0); +} else { + x_475 = x_463; +} +lean_ctor_set(x_475, 0, x_462); +lean_ctor_set(x_475, 1, x_474); +return x_475; +} +else +{ +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; +x_476 = lean_ctor_get(x_459, 1); +lean_inc(x_476); +x_477 = lean_ctor_get(x_476, 2); +lean_inc(x_477); +x_478 = lean_ctor_get(x_459, 0); +lean_inc(x_478); +if (lean_is_exclusive(x_459)) { + lean_ctor_release(x_459, 0); + lean_ctor_release(x_459, 1); + x_479 = x_459; +} else { + lean_dec_ref(x_459); + x_479 = lean_box(0); +} +x_480 = lean_ctor_get(x_476, 0); +lean_inc(x_480); +x_481 = lean_ctor_get(x_476, 1); +lean_inc(x_481); +x_482 = lean_ctor_get(x_476, 3); +lean_inc(x_482); +x_483 = lean_ctor_get(x_476, 4); +lean_inc(x_483); +x_484 = lean_ctor_get(x_476, 5); +lean_inc(x_484); +if (lean_is_exclusive(x_476)) { + lean_ctor_release(x_476, 0); + lean_ctor_release(x_476, 1); + lean_ctor_release(x_476, 2); + lean_ctor_release(x_476, 3); + lean_ctor_release(x_476, 4); + lean_ctor_release(x_476, 5); + x_485 = x_476; +} else { + lean_dec_ref(x_476); + x_485 = lean_box(0); +} +x_486 = lean_ctor_get(x_477, 0); +lean_inc(x_486); +x_487 = lean_ctor_get(x_477, 1); +lean_inc(x_487); +if (lean_is_exclusive(x_477)) { + lean_ctor_release(x_477, 0); + lean_ctor_release(x_477, 1); + lean_ctor_release(x_477, 2); + x_488 = x_477; +} else { + lean_dec_ref(x_477); + x_488 = lean_box(0); +} +if (lean_is_scalar(x_488)) { + x_489 = lean_alloc_ctor(0, 3, 0); +} else { + x_489 = x_488; +} +lean_ctor_set(x_489, 0, x_486); +lean_ctor_set(x_489, 1, x_487); +lean_ctor_set(x_489, 2, x_445); +if (lean_is_scalar(x_485)) { + x_490 = lean_alloc_ctor(0, 6, 0); +} else { + x_490 = x_485; +} +lean_ctor_set(x_490, 0, x_480); +lean_ctor_set(x_490, 1, x_481); +lean_ctor_set(x_490, 2, x_489); +lean_ctor_set(x_490, 3, x_482); +lean_ctor_set(x_490, 4, x_483); +lean_ctor_set(x_490, 5, x_484); +if (lean_is_scalar(x_479)) { + x_491 = lean_alloc_ctor(1, 2, 0); +} else { + x_491 = x_479; +} +lean_ctor_set(x_491, 0, x_478); +lean_ctor_set(x_491, 1, x_490); +return x_491; +} +} +} +} +else +{ +uint8_t x_492; +lean_dec(x_24); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_492 = !lean_is_exclusive(x_261); +if (x_492 == 0) +{ +return x_261; +} +else +{ +lean_object* x_493; lean_object* x_494; lean_object* x_495; +x_493 = lean_ctor_get(x_261, 0); +x_494 = lean_ctor_get(x_261, 1); +lean_inc(x_494); +lean_inc(x_493); +lean_dec(x_261); +x_495 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_495, 0, x_493); +lean_ctor_set(x_495, 1, x_494); +return x_495; +} +} +} +} +} +else +{ +uint8_t x_496; +lean_dec(x_28); +lean_dec(x_24); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_496 = !lean_is_exclusive(x_29); +if (x_496 == 0) +{ +return x_29; +} +else +{ +lean_object* x_497; lean_object* x_498; lean_object* x_499; +x_497 = lean_ctor_get(x_29, 0); +x_498 = lean_ctor_get(x_29, 1); +lean_inc(x_498); +lean_inc(x_497); +lean_dec(x_29); +x_499 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_499, 0, x_497); +lean_ctor_set(x_499, 1, x_498); +return x_499; +} +} +} +else +{ +uint8_t x_500; +lean_dec(x_24); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_500 = !lean_is_exclusive(x_25); +if (x_500 == 0) +{ +return x_25; +} +else +{ +lean_object* x_501; lean_object* x_502; lean_object* x_503; +x_501 = lean_ctor_get(x_25, 0); +x_502 = lean_ctor_get(x_25, 1); +lean_inc(x_502); +lean_inc(x_501); +lean_dec(x_25); +x_503 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_503, 0, x_501); +lean_ctor_set(x_503, 1, x_502); +return x_503; +} +} +} +} +} +lean_object* l___private_Init_Lean_Meta_Basic_4__forallTelescopeReducingAuxAux___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +if (lean_obj_tag(x_9) == 7) +{ +if (lean_obj_tag(x_5) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; uint64_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_26 = lean_ctor_get(x_9, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +x_28 = lean_ctor_get(x_9, 2); +lean_inc(x_28); +x_29 = lean_ctor_get_uint64(x_9, sizeof(void*)*3); +lean_dec(x_9); +x_30 = lean_array_get_size(x_7); +x_31 = lean_expr_instantiate_rev_range(x_27, x_8, x_30, x_7); +lean_dec(x_30); +lean_dec(x_27); +x_32 = l_Lean_Meta_mkFreshId___rarg(x_11); +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 = (uint8_t)((x_29 << 24) >> 61); +lean_inc(x_33); +x_36 = lean_local_ctx_mk_local_decl(x_6, x_33, x_26, x_31, x_35); +x_37 = l_Lean_mkFVar(x_33); +x_38 = lean_array_push(x_7, x_37); +x_6 = x_36; +x_7 = x_38; +x_9 = x_28; +x_11 = x_34; +goto _start; +} +else +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; uint64_t x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_40 = lean_ctor_get(x_9, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_9, 1); +lean_inc(x_41); +x_42 = lean_ctor_get(x_9, 2); +lean_inc(x_42); +x_43 = lean_ctor_get_uint64(x_9, sizeof(void*)*3); +lean_dec(x_9); +x_44 = lean_ctor_get(x_5, 0); +lean_inc(x_44); +x_45 = lean_array_get_size(x_7); +x_46 = lean_nat_dec_lt(x_45, x_44); +lean_dec(x_44); +if (x_46 == 0) +{ +uint8_t x_47; +lean_dec(x_42); +lean_dec(x_41); +lean_dec(x_40); +lean_dec(x_5); +x_47 = !lean_is_exclusive(x_10); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_10, 1); +lean_dec(x_48); +lean_ctor_set(x_10, 1, x_6); +lean_inc(x_7); +x_49 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_7, x_45, x_7, x_8, x_10, x_11); +lean_dec(x_45); +lean_dec(x_7); +lean_dec(x_2); +return x_49; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; +x_50 = lean_ctor_get(x_10, 0); +x_51 = lean_ctor_get(x_10, 2); +x_52 = lean_ctor_get(x_10, 3); +x_53 = lean_ctor_get(x_10, 4); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_dec(x_10); +x_54 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_54, 0, x_50); +lean_ctor_set(x_54, 1, x_6); +lean_ctor_set(x_54, 2, x_51); +lean_ctor_set(x_54, 3, x_52); +lean_ctor_set(x_54, 4, x_53); +lean_inc(x_7); +x_55 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_7, x_45, x_7, x_8, x_54, x_11); +lean_dec(x_45); +lean_dec(x_7); +lean_dec(x_2); +return x_55; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_56 = lean_expr_instantiate_rev_range(x_41, x_8, x_45, x_7); +lean_dec(x_45); +lean_dec(x_41); +x_57 = l_Lean_Meta_mkFreshId___rarg(x_11); +x_58 = lean_ctor_get(x_57, 0); +lean_inc(x_58); +x_59 = lean_ctor_get(x_57, 1); +lean_inc(x_59); +lean_dec(x_57); +x_60 = (uint8_t)((x_43 << 24) >> 61); +lean_inc(x_58); +x_61 = lean_local_ctx_mk_local_decl(x_6, x_58, x_40, x_56, x_60); +x_62 = l_Lean_mkFVar(x_58); +x_63 = lean_array_push(x_7, x_62); +x_6 = x_61; +x_7 = x_63; +x_9 = x_42; +x_11 = x_59; +goto _start; +} +} +} +else +{ +lean_object* x_65; +x_65 = lean_box(0); +x_12 = x_65; +goto block_25; +} +block_25: +{ +lean_object* x_13; uint8_t x_14; +lean_dec(x_12); +x_13 = lean_array_get_size(x_7); +x_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +lean_object* x_15; +x_15 = lean_ctor_get(x_10, 1); +lean_dec(x_15); +lean_inc(x_6); +lean_ctor_set(x_10, 1, x_6); +if (x_4 == 0) +{ +lean_object* x_16; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_inc(x_7); +x_16 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_7, x_13, x_7, x_8, x_10, x_11); +lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_2); +return x_16; +} +else +{ +lean_object* x_17; +lean_inc(x_8); +lean_inc(x_7); +x_17 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13, x_7, x_8, x_10, x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_17; +} +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_10, 0); +x_19 = lean_ctor_get(x_10, 2); +x_20 = lean_ctor_get(x_10, 3); +x_21 = lean_ctor_get(x_10, 4); +lean_inc(x_21); +lean_inc(x_20); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_10); +lean_inc(x_6); +x_22 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_22, 0, x_18); +lean_ctor_set(x_22, 1, x_6); +lean_ctor_set(x_22, 2, x_19); +lean_ctor_set(x_22, 3, x_20); +lean_ctor_set(x_22, 4, x_21); +if (x_4 == 0) +{ +lean_object* x_23; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_inc(x_7); +x_23 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_7, x_13, x_7, x_8, x_22, x_11); +lean_dec(x_13); +lean_dec(x_7); +lean_dec(x_2); +return x_23; +} +else +{ +lean_object* x_24; +lean_inc(x_8); +lean_inc(x_7); +x_24 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13, x_7, x_8, x_22, x_11); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +return x_24; +} +} +} +} +} +lean_object* l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAux___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; +lean_inc(x_6); +x_8 = l_Lean_Meta_whnf(x_4, x_6, x_7); +if (lean_obj_tag(x_8) == 0) +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_8); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_8, 0); +x_11 = lean_ctor_get(x_8, 1); +x_12 = l_Lean_Expr_isForall(x_10); +if (x_12 == 0) +{ +lean_object* x_13; uint8_t x_14; +lean_dec(x_10); +lean_dec(x_5); +x_13 = l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAux___at___private_Init_Lean_Meta_FunInfo_6__getFunInfoAux___spec__2___closed__1; +x_14 = lean_nat_dec_eq(x_13, x_2); +lean_dec(x_2); +if (x_14 == 0) +{ +uint8_t x_15; lean_object* x_16; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_15 = 0; +x_16 = lean_box(x_15); +lean_ctor_set(x_8, 0, x_16); +return x_8; +} +else +{ +lean_object* x_17; lean_object* x_18; +lean_free_object(x_8); +x_17 = l_Array_empty___closed__1; +lean_inc(x_6); +x_18 = l_Lean_Meta_mkLambda(x_17, x_3, x_6, x_11); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_1, x_19, x_6, x_20); +return x_21; +} +else +{ +uint8_t x_22; +lean_dec(x_6); +lean_dec(x_1); +x_22 = !lean_is_exclusive(x_18); +if (x_22 == 0) +{ +return x_18; +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_18, 0); +x_24 = lean_ctor_get(x_18, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_18); +x_25 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +return x_25; +} +} +} +} +else +{ +lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_free_object(x_8); +x_26 = lean_ctor_get(x_6, 1); +lean_inc(x_26); +x_27 = 1; +x_28 = l_Array_empty___closed__1; +x_29 = lean_unsigned_to_nat(0u); +x_30 = l___private_Init_Lean_Meta_Basic_4__forallTelescopeReducingAuxAux___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__2(x_1, x_2, x_3, x_27, x_5, x_26, x_28, x_29, x_10, x_6, x_11); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_31 = lean_ctor_get(x_8, 0); +x_32 = lean_ctor_get(x_8, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_8); +x_33 = l_Lean_Expr_isForall(x_31); +if (x_33 == 0) +{ +lean_object* x_34; uint8_t x_35; +lean_dec(x_31); +lean_dec(x_5); +x_34 = l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAux___at___private_Init_Lean_Meta_FunInfo_6__getFunInfoAux___spec__2___closed__1; +x_35 = lean_nat_dec_eq(x_34, x_2); +lean_dec(x_2); +if (x_35 == 0) +{ +uint8_t x_36; lean_object* x_37; lean_object* x_38; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_36 = 0; +x_37 = lean_box(x_36); +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_32); +return x_38; +} +else +{ +lean_object* x_39; lean_object* x_40; +x_39 = l_Array_empty___closed__1; +lean_inc(x_6); +x_40 = l_Lean_Meta_mkLambda(x_39, x_3, x_6, x_32); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +lean_dec(x_40); +x_43 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_1, x_41, x_6, x_42); +return x_43; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_6); +lean_dec(x_1); +x_44 = lean_ctor_get(x_40, 0); +lean_inc(x_44); +x_45 = lean_ctor_get(x_40, 1); +lean_inc(x_45); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_46 = x_40; +} else { + lean_dec_ref(x_40); + x_46 = lean_box(0); +} +if (lean_is_scalar(x_46)) { + x_47 = lean_alloc_ctor(1, 2, 0); +} else { + x_47 = x_46; +} +lean_ctor_set(x_47, 0, x_44); +lean_ctor_set(x_47, 1, x_45); +return x_47; +} +} +} +else +{ +lean_object* x_48; uint8_t x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_48 = lean_ctor_get(x_6, 1); +lean_inc(x_48); +x_49 = 1; +x_50 = l_Array_empty___closed__1; +x_51 = lean_unsigned_to_nat(0u); +x_52 = l___private_Init_Lean_Meta_Basic_4__forallTelescopeReducingAuxAux___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__2(x_1, x_2, x_3, x_49, x_5, x_48, x_50, x_51, x_31, x_6, x_32); +return x_52; +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_53 = !lean_is_exclusive(x_8); +if (x_53 == 0) +{ +return x_8; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_8, 0); +x_55 = lean_ctor_get(x_8, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_8); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +} +lean_object* l_Lean_Meta_CheckAssignment_assignToConstFun(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +lean_inc(x_4); +lean_inc(x_1); +x_6 = l_Lean_Meta_inferType(x_1, x_4, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +lean_inc(x_2); +x_9 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_9, 0, x_2); +x_10 = l___private_Init_Lean_Meta_Basic_5__forallTelescopeReducingAux___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__1(x_1, x_2, x_3, x_7, x_9, x_4, x_8); +return x_10; +} +else +{ +uint8_t x_11; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_6); +if (x_11 == 0) +{ +return x_6; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_6, 0); +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_6); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +} +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +return x_10; +} +} +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___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, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_6); +lean_dec(x_6); +x_13 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_12, x_7, x_8, x_9, x_10, x_11); +return x_13; +} +} +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* 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) { +_start: +{ +uint8_t x_15; lean_object* x_16; +x_15 = lean_unbox(x_4); +lean_dec(x_4); +x_16 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__4(x_1, x_2, x_3, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_11); +lean_dec(x_9); +lean_dec(x_8); +return x_16; +} +} +lean_object* l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Meta_withNewLocalInstances___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_2); +return x_10; +} +} +lean_object* l___private_Init_Lean_Meta_Basic_4__forallTelescopeReducingAuxAux___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; lean_object* x_13; +x_12 = lean_unbox(x_4); +lean_dec(x_4); +x_13 = l___private_Init_Lean_Meta_Basic_4__forallTelescopeReducingAuxAux___main___at_Lean_Meta_CheckAssignment_assignToConstFun___spec__2(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +return x_13; } } uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { @@ -6617,244 +16110,244 @@ lean_dec(x_4); x_6 = l_Lean_LocalContext_containsFVar(x_5, x_1); if (x_6 == 0) { -lean_object* x_7; lean_object* x_8; +lean_object* x_7; lean_object* x_8; lean_object* x_9; x_7 = lean_ctor_get(x_2, 0); lean_inc(x_7); -x_8 = l_Lean_LocalContext_findFVar_x3f(x_7, x_1); -if (lean_obj_tag(x_8) == 0) +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +lean_dec(x_7); +x_9 = l_Lean_LocalContext_findFVar_x3f(x_8, x_1); +if (lean_obj_tag(x_9) == 0) { -lean_object* x_9; uint8_t x_10; -x_9 = lean_ctor_get(x_2, 3); -lean_inc(x_9); +lean_object* x_10; uint8_t x_11; +x_10 = lean_ctor_get(x_2, 3); +lean_inc(x_10); lean_dec(x_2); -x_10 = l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(x_9, x_1); -lean_dec(x_9); -if (x_10 == 0) +x_11 = l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(x_10, x_1); +lean_dec(x_10); +if (x_11 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_11 = l_Lean_Expr_fvarId_x21(x_1); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = l_Lean_Expr_fvarId_x21(x_1); lean_dec(x_1); -x_12 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_12, 0, x_11); -x_13 = lean_alloc_ctor(1, 2, 0); +x_13 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -return x_13; -} -else -{ -lean_object* x_14; -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_1); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_13); lean_ctor_set(x_14, 1, x_3); return x_14; } -} else { lean_object* x_15; -x_15 = lean_ctor_get(x_8, 0); -lean_inc(x_15); -lean_dec(x_8); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; uint8_t x_17; -lean_dec(x_15); -x_16 = lean_ctor_get(x_2, 3); -lean_inc(x_16); -lean_dec(x_2); -x_17 = l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(x_16, x_1); -lean_dec(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_18 = l_Lean_Expr_fvarId_x21(x_1); -lean_dec(x_1); -x_19 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_19, 0, x_18); -x_20 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_3); -return x_20; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set(x_15, 1, x_3); +return x_15; +} } else { -lean_object* x_21; -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_1); +lean_object* x_16; +x_16 = lean_ctor_get(x_9, 0); +lean_inc(x_16); +lean_dec(x_9); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; uint8_t x_18; +lean_dec(x_16); +x_17 = lean_ctor_get(x_2, 3); +lean_inc(x_17); +lean_dec(x_2); +x_18 = l_Array_contains___at_Lean_Meta_CheckAssignment_check___main___spec__2(x_17, x_1); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = l_Lean_Expr_fvarId_x21(x_1); +lean_dec(x_1); +x_20 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_20, 0, x_19); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_20); lean_ctor_set(x_21, 1, x_3); return x_21; } +else +{ +lean_object* x_22; +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_1); +lean_ctor_set(x_22, 1, x_3); +return x_22; +} } else { -lean_object* x_22; lean_object* x_23; uint8_t x_46; +lean_object* x_23; lean_object* x_24; uint8_t x_47; lean_dec(x_1); -x_22 = lean_ctor_get(x_15, 4); -lean_inc(x_22); -lean_dec(x_15); -x_46 = l_Lean_Expr_hasExprMVar(x_22); -if (x_46 == 0) -{ -uint8_t x_47; -x_47 = l_Lean_Expr_hasFVar(x_22); +x_23 = lean_ctor_get(x_16, 4); +lean_inc(x_23); +lean_dec(x_16); +x_47 = l_Lean_Expr_hasExprMVar(x_23); if (x_47 == 0) { -lean_object* x_48; -lean_dec(x_2); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_22); -lean_ctor_set(x_48, 1, x_3); -return x_48; -} -else +uint8_t x_48; +x_48 = l_Lean_Expr_hasFVar(x_23); +if (x_48 == 0) { lean_object* x_49; -x_49 = lean_box(0); -x_23 = x_49; -goto block_45; -} +lean_dec(x_2); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_23); +lean_ctor_set(x_49, 1, x_3); +return x_49; } else { lean_object* x_50; x_50 = lean_box(0); -x_23 = x_50; -goto block_45; -} -block_45: -{ -lean_object* x_24; lean_object* x_25; -lean_dec(x_23); -x_24 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_22, x_2, x_3); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -lean_inc(x_2); -lean_inc(x_22); -x_27 = l_Lean_Meta_CheckAssignment_check___main(x_22, x_2, x_26); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -lean_inc(x_28); -x_30 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_22, x_28, x_2, x_29); -lean_dec(x_2); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) -{ -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); -lean_dec(x_32); -lean_ctor_set(x_30, 0, x_28); -return x_30; -} -else -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_28); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -else -{ -uint8_t x_35; -lean_dec(x_22); -lean_dec(x_2); -x_35 = !lean_is_exclusive(x_27); -if (x_35 == 0) -{ -return x_27; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_27, 0); -x_37 = lean_ctor_get(x_27, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_27); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -else -{ -uint8_t x_39; -lean_dec(x_22); -lean_dec(x_2); -x_39 = !lean_is_exclusive(x_24); -if (x_39 == 0) -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_24, 0); -lean_dec(x_40); -x_41 = lean_ctor_get(x_25, 0); -lean_inc(x_41); -lean_dec(x_25); -lean_ctor_set(x_24, 0, x_41); -return x_24; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_24, 1); -lean_inc(x_42); -lean_dec(x_24); -x_43 = lean_ctor_get(x_25, 0); -lean_inc(x_43); -lean_dec(x_25); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_42); -return x_44; -} -} -} -} +x_24 = x_50; +goto block_46; } } else { lean_object* x_51; +x_51 = lean_box(0); +x_24 = x_51; +goto block_46; +} +block_46: +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_24); +x_25 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_23, x_2, x_3); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +lean_inc(x_2); +lean_inc(x_23); +x_28 = l_Lean_Meta_CheckAssignment_check___main(x_23, x_2, x_27); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_28, 1); +lean_inc(x_30); +lean_dec(x_28); +lean_inc(x_29); +x_31 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_23, x_29, x_2, x_30); lean_dec(x_2); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_1); -lean_ctor_set(x_51, 1, x_3); -return x_51; +x_32 = !lean_is_exclusive(x_31); +if (x_32 == 0) +{ +lean_object* x_33; +x_33 = lean_ctor_get(x_31, 0); +lean_dec(x_33); +lean_ctor_set(x_31, 0, x_29); +return x_31; +} +else +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_29); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +else +{ +uint8_t x_36; +lean_dec(x_23); +lean_dec(x_2); +x_36 = !lean_is_exclusive(x_28); +if (x_36 == 0) +{ +return x_28; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_28, 0); +x_38 = lean_ctor_get(x_28, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_28); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +else +{ +uint8_t x_40; +lean_dec(x_23); +lean_dec(x_2); +x_40 = !lean_is_exclusive(x_25); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_25, 0); +lean_dec(x_41); +x_42 = lean_ctor_get(x_26, 0); +lean_inc(x_42); +lean_dec(x_26); +lean_ctor_set(x_25, 0, x_42); +return x_25; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_25, 1); +lean_inc(x_43); +lean_dec(x_25); +x_44 = lean_ctor_get(x_26, 0); +lean_inc(x_44); +lean_dec(x_26); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_43); +return x_45; +} +} +} +} +} +} +else +{ +lean_object* x_52; +lean_dec(x_2); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_1); +lean_ctor_set(x_52, 1, x_3); +return x_52; } } } lean_object* l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { -lean_object* x_4; lean_object* x_5; lean_object* x_6; +lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; x_4 = l_Lean_Expr_mvarId_x21(x_1); x_5 = lean_ctor_get(x_3, 0); lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_5); -x_6 = lean_metavar_ctx_get_expr_assignment(x_5, x_4); -if (lean_obj_tag(x_6) == 0) -{ -lean_object* x_7; uint8_t x_8; +x_6 = lean_ctor_get(x_5, 1); +lean_inc(x_6); +lean_dec(x_5); x_7 = lean_ctor_get(x_2, 1); lean_inc(x_7); x_8 = lean_name_eq(x_4, x_7); @@ -6863,12 +16356,12 @@ if (x_8 == 0) { lean_object* x_9; lean_inc(x_4); -lean_inc(x_5); -x_9 = lean_metavar_ctx_find_decl(x_5, x_4); +lean_inc(x_6); +x_9 = lean_metavar_ctx_find_decl(x_6, x_4); if (lean_obj_tag(x_9) == 0) { lean_object* x_10; lean_object* x_11; -lean_dec(x_5); +lean_dec(x_6); lean_dec(x_2); lean_dec(x_1); x_10 = lean_alloc_ctor(4, 1, 0); @@ -6881,7 +16374,7 @@ return x_11; else { uint8_t x_12; -x_12 = lean_ctor_get_uint8(x_2, sizeof(void*)*4 + 1); +x_12 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); if (x_12 == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; @@ -6902,9 +16395,9 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; uint8_t x_20; x_18 = lean_ctor_get(x_13, 3); lean_inc(x_18); -x_19 = lean_ctor_get(x_5, 0); +x_19 = lean_ctor_get(x_6, 0); lean_inc(x_19); -lean_dec(x_5); +lean_dec(x_6); x_20 = lean_nat_dec_eq(x_18, x_19); lean_dec(x_19); lean_dec(x_18); @@ -6931,32 +16424,20 @@ x_23 = lean_ctor_get_uint8(x_13, sizeof(void*)*5); x_24 = l_Lean_MetavarKind_isSyntheticOpaque(x_23); if (x_24 == 0) { -uint8_t x_25; -x_25 = lean_ctor_get_uint8(x_2, sizeof(void*)*4); -if (x_25 == 0) -{ -lean_object* x_26; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_4); -lean_dec(x_2); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_1); -lean_ctor_set(x_26, 1, x_3); -return x_26; -} -else -{ -uint8_t x_27; -lean_inc(x_16); -x_27 = l_Lean_LocalContext_isSubPrefixOf(x_16, x_14); +lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_25 = lean_ctor_get(x_2, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_ctor_get_uint8(x_26, sizeof(void*)*1 + 1); +lean_dec(x_26); if (x_27 == 0) { lean_object* x_28; lean_dec(x_16); lean_dec(x_15); +lean_dec(x_14); lean_dec(x_13); lean_dec(x_4); lean_dec(x_2); @@ -6967,277 +16448,212 @@ return x_28; } else { -lean_object* x_29; lean_object* x_30; -lean_dec(x_1); -x_29 = lean_ctor_get(x_13, 2); -lean_inc(x_29); -lean_dec(x_13); -lean_inc(x_2); -x_30 = l_Lean_Meta_CheckAssignment_check___main(x_29, x_2, x_3); -if (lean_obj_tag(x_30) == 0) +uint8_t x_29; +lean_inc(x_16); +x_29 = l_Lean_LocalContext_isSubPrefixOf(x_16, x_14); +if (x_29 == 0) { -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = lean_ctor_get(x_15, 4); -lean_inc(x_33); -lean_dec(x_15); -x_34 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_16, x_33, x_31, x_2, x_32); -lean_dec(x_2); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -lean_object* x_36; uint8_t x_37; -x_36 = lean_ctor_get(x_34, 1); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_34, 0); -x_39 = lean_ctor_get(x_36, 0); -lean_inc(x_38); -x_40 = l_Lean_MetavarContext_assignExpr(x_39, x_4, x_38); -lean_ctor_set(x_36, 0, x_40); -return x_34; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; -x_41 = lean_ctor_get(x_34, 0); -x_42 = lean_ctor_get(x_36, 0); -x_43 = lean_ctor_get(x_36, 1); -x_44 = lean_ctor_get(x_36, 2); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_36); -lean_inc(x_41); -x_45 = l_Lean_MetavarContext_assignExpr(x_42, x_4, x_41); -x_46 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_43); -lean_ctor_set(x_46, 2, x_44); -lean_ctor_set(x_34, 1, x_46); -return x_34; -} -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_47 = lean_ctor_get(x_34, 1); -x_48 = lean_ctor_get(x_34, 0); -lean_inc(x_47); -lean_inc(x_48); -lean_dec(x_34); -x_49 = lean_ctor_get(x_47, 0); -lean_inc(x_49); -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); -x_51 = lean_ctor_get(x_47, 2); -lean_inc(x_51); -if (lean_is_exclusive(x_47)) { - lean_ctor_release(x_47, 0); - lean_ctor_release(x_47, 1); - lean_ctor_release(x_47, 2); - x_52 = x_47; -} else { - lean_dec_ref(x_47); - x_52 = lean_box(0); -} -lean_inc(x_48); -x_53 = l_Lean_MetavarContext_assignExpr(x_49, x_4, x_48); -if (lean_is_scalar(x_52)) { - x_54 = lean_alloc_ctor(0, 3, 0); -} else { - x_54 = x_52; -} -lean_ctor_set(x_54, 0, x_53); -lean_ctor_set(x_54, 1, x_50); -lean_ctor_set(x_54, 2, x_51); -x_55 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_55, 0, x_48); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -else -{ -uint8_t x_56; +lean_object* x_30; lean_dec(x_16); lean_dec(x_15); +lean_dec(x_13); lean_dec(x_4); lean_dec(x_2); -x_56 = !lean_is_exclusive(x_30); -if (x_56 == 0) -{ +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_1); +lean_ctor_set(x_30, 1, x_3); return x_30; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_30, 0); -x_58 = lean_ctor_get(x_30, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_30); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} -} -} -} -else -{ -lean_object* x_60; lean_object* x_61; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); +lean_object* x_31; lean_object* x_32; +lean_dec(x_1); +x_31 = lean_ctor_get(x_13, 2); +lean_inc(x_31); lean_dec(x_13); -lean_dec(x_2); -lean_dec(x_1); -x_60 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_60, 0, x_4); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_3); -return x_61; -} -} -} -else -{ -lean_object* x_62; -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_62 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_62, 0, x_1); -lean_ctor_set(x_62, 1, x_3); -return x_62; -} -} -else -{ -lean_object* x_63; lean_object* x_64; -lean_dec(x_9); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_63 = lean_box(1); -x_64 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_3); -return x_64; -} -} -} -else -{ -lean_object* x_65; lean_object* x_66; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_65 = lean_box(0); -x_66 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_3); -return x_66; -} -} -else -{ -lean_object* x_67; lean_object* x_68; uint8_t x_91; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_1); -x_67 = lean_ctor_get(x_6, 0); -lean_inc(x_67); -lean_dec(x_6); -x_91 = l_Lean_Expr_hasExprMVar(x_67); -if (x_91 == 0) -{ -uint8_t x_92; -x_92 = l_Lean_Expr_hasFVar(x_67); -if (x_92 == 0) -{ -lean_object* x_93; -lean_dec(x_2); -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_67); -lean_ctor_set(x_93, 1, x_3); -return x_93; -} -else -{ -lean_object* x_94; -x_94 = lean_box(0); -x_68 = x_94; -goto block_90; -} -} -else -{ -lean_object* x_95; -x_95 = lean_box(0); -x_68 = x_95; -goto block_90; -} -block_90: -{ -lean_object* x_69; lean_object* x_70; -lean_dec(x_68); -x_69 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_67, x_2, x_3); -x_70 = lean_ctor_get(x_69, 0); -lean_inc(x_70); -if (lean_obj_tag(x_70) == 0) -{ -lean_object* x_71; lean_object* x_72; -x_71 = lean_ctor_get(x_69, 1); -lean_inc(x_71); -lean_dec(x_69); lean_inc(x_2); -lean_inc(x_67); -x_72 = l_Lean_Meta_CheckAssignment_check___main(x_67, x_2, x_71); -if (lean_obj_tag(x_72) == 0) +x_32 = l_Lean_Meta_CheckAssignment_check___main(x_31, x_2, x_3); +if (lean_obj_tag(x_32) == 0) { -lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_73 = lean_ctor_get(x_72, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_72, 1); -lean_inc(x_74); -lean_dec(x_72); -lean_inc(x_73); -x_75 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_67, x_73, x_2, x_74); +lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; +x_33 = lean_ctor_get(x_32, 0); +lean_inc(x_33); +x_34 = lean_ctor_get(x_32, 1); +lean_inc(x_34); +lean_dec(x_32); +x_35 = lean_ctor_get(x_15, 4); +lean_inc(x_35); +lean_dec(x_15); +x_36 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_16, x_35, x_33, x_2, x_34); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_75); -if (x_76 == 0) +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); +x_39 = !lean_is_exclusive(x_36); +if (x_39 == 0) { -lean_object* x_77; -x_77 = lean_ctor_get(x_75, 0); -lean_dec(x_77); -lean_ctor_set(x_75, 0, x_73); -return x_75; +lean_object* x_40; lean_object* x_41; uint8_t x_42; +x_40 = lean_ctor_get(x_36, 0); +x_41 = lean_ctor_get(x_36, 1); +lean_dec(x_41); +x_42 = !lean_is_exclusive(x_37); +if (x_42 == 0) +{ +lean_object* x_43; uint8_t x_44; +x_43 = lean_ctor_get(x_37, 0); +lean_dec(x_43); +x_44 = !lean_is_exclusive(x_38); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_38, 1); +lean_inc(x_40); +x_46 = l_Lean_MetavarContext_assignExpr(x_45, x_4, x_40); +lean_ctor_set(x_38, 1, x_46); +return x_36; } else { -lean_object* x_78; lean_object* x_79; -x_78 = lean_ctor_get(x_75, 1); -lean_inc(x_78); -lean_dec(x_75); +lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; +x_47 = lean_ctor_get(x_38, 0); +x_48 = lean_ctor_get(x_38, 1); +x_49 = lean_ctor_get(x_38, 2); +x_50 = lean_ctor_get(x_38, 3); +x_51 = lean_ctor_get(x_38, 4); +x_52 = lean_ctor_get(x_38, 5); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_50); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_38); +lean_inc(x_40); +x_53 = l_Lean_MetavarContext_assignExpr(x_48, x_4, x_40); +x_54 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_54, 0, x_47); +lean_ctor_set(x_54, 1, x_53); +lean_ctor_set(x_54, 2, x_49); +lean_ctor_set(x_54, 3, x_50); +lean_ctor_set(x_54, 4, x_51); +lean_ctor_set(x_54, 5, x_52); +lean_ctor_set(x_37, 0, x_54); +return x_36; +} +} +else +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; +x_55 = lean_ctor_get(x_37, 1); +lean_inc(x_55); +lean_dec(x_37); +x_56 = lean_ctor_get(x_38, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_38, 1); +lean_inc(x_57); +x_58 = lean_ctor_get(x_38, 2); +lean_inc(x_58); +x_59 = lean_ctor_get(x_38, 3); +lean_inc(x_59); +x_60 = lean_ctor_get(x_38, 4); +lean_inc(x_60); +x_61 = lean_ctor_get(x_38, 5); +lean_inc(x_61); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + lean_ctor_release(x_38, 2); + lean_ctor_release(x_38, 3); + lean_ctor_release(x_38, 4); + lean_ctor_release(x_38, 5); + x_62 = x_38; +} else { + lean_dec_ref(x_38); + x_62 = lean_box(0); +} +lean_inc(x_40); +x_63 = l_Lean_MetavarContext_assignExpr(x_57, x_4, x_40); +if (lean_is_scalar(x_62)) { + x_64 = lean_alloc_ctor(0, 6, 0); +} else { + x_64 = x_62; +} +lean_ctor_set(x_64, 0, x_56); +lean_ctor_set(x_64, 1, x_63); +lean_ctor_set(x_64, 2, x_58); +lean_ctor_set(x_64, 3, x_59); +lean_ctor_set(x_64, 4, x_60); +lean_ctor_set(x_64, 5, x_61); +x_65 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_55); +lean_ctor_set(x_36, 1, x_65); +return x_36; +} +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_66 = lean_ctor_get(x_36, 0); +lean_inc(x_66); +lean_dec(x_36); +x_67 = lean_ctor_get(x_37, 1); +lean_inc(x_67); +if (lean_is_exclusive(x_37)) { + lean_ctor_release(x_37, 0); + lean_ctor_release(x_37, 1); + x_68 = x_37; +} else { + lean_dec_ref(x_37); + x_68 = lean_box(0); +} +x_69 = lean_ctor_get(x_38, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_38, 1); +lean_inc(x_70); +x_71 = lean_ctor_get(x_38, 2); +lean_inc(x_71); +x_72 = lean_ctor_get(x_38, 3); +lean_inc(x_72); +x_73 = lean_ctor_get(x_38, 4); +lean_inc(x_73); +x_74 = lean_ctor_get(x_38, 5); +lean_inc(x_74); +if (lean_is_exclusive(x_38)) { + lean_ctor_release(x_38, 0); + lean_ctor_release(x_38, 1); + lean_ctor_release(x_38, 2); + lean_ctor_release(x_38, 3); + lean_ctor_release(x_38, 4); + lean_ctor_release(x_38, 5); + x_75 = x_38; +} else { + lean_dec_ref(x_38); + x_75 = lean_box(0); +} +lean_inc(x_66); +x_76 = l_Lean_MetavarContext_assignExpr(x_70, x_4, x_66); +if (lean_is_scalar(x_75)) { + x_77 = lean_alloc_ctor(0, 6, 0); +} else { + x_77 = x_75; +} +lean_ctor_set(x_77, 0, x_69); +lean_ctor_set(x_77, 1, x_76); +lean_ctor_set(x_77, 2, x_71); +lean_ctor_set(x_77, 3, x_72); +lean_ctor_set(x_77, 4, x_73); +lean_ctor_set(x_77, 5, x_74); +if (lean_is_scalar(x_68)) { + x_78 = lean_alloc_ctor(0, 2, 0); +} else { + x_78 = x_68; +} +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_67); x_79 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_79, 0, x_73); +lean_ctor_set(x_79, 0, x_66); lean_ctor_set(x_79, 1, x_78); return x_79; } @@ -7245,21 +16661,23 @@ return x_79; else { uint8_t x_80; -lean_dec(x_67); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_4); lean_dec(x_2); -x_80 = !lean_is_exclusive(x_72); +x_80 = !lean_is_exclusive(x_32); if (x_80 == 0) { -return x_72; +return x_32; } else { lean_object* x_81; lean_object* x_82; lean_object* x_83; -x_81 = lean_ctor_get(x_72, 0); -x_82 = lean_ctor_get(x_72, 1); +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_72); +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); @@ -7267,39 +16685,7659 @@ return x_83; } } } +} +} else { -uint8_t x_84; -lean_dec(x_67); +lean_object* x_84; lean_object* x_85; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); lean_dec(x_2); -x_84 = !lean_is_exclusive(x_69); -if (x_84 == 0) +lean_dec(x_1); +x_84 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_84, 0, x_4); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_3); +return x_85; +} +} +} +else { -lean_object* x_85; lean_object* x_86; -x_85 = lean_ctor_get(x_69, 0); -lean_dec(x_85); -x_86 = lean_ctor_get(x_70, 0); -lean_inc(x_86); -lean_dec(x_70); -lean_ctor_set(x_69, 0, x_86); -return x_69; +lean_object* x_86; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +x_86 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_86, 0, x_1); +lean_ctor_set(x_86, 1, x_3); +return x_86; +} +} +else +{ +lean_object* x_87; lean_object* x_88; +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_87 = lean_box(1); +x_88 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_88, 0, x_87); +lean_ctor_set(x_88, 1, x_3); +return x_88; +} +} +} +else +{ +lean_object* x_89; lean_object* x_90; +lean_dec(x_6); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_89 = lean_box(0); +x_90 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_3); +return x_90; +} +} +} +lean_object* l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_array_get_size(x_2); +x_6 = lean_nat_dec_lt(x_1, x_5); +lean_dec(x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +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; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_40; +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); +x_40 = l_Lean_Expr_hasExprMVar(x_10); +if (x_40 == 0) +{ +uint8_t x_41; +x_41 = l_Lean_Expr_hasFVar(x_10); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_42 = lean_unsigned_to_nat(1u); +x_43 = lean_nat_add(x_1, x_42); +lean_inc(x_10); +x_44 = x_10; +lean_dec(x_10); +x_45 = lean_array_fset(x_13, x_1, x_44); +lean_dec(x_1); +x_1 = x_43; +x_2 = x_45; +goto _start; +} +else +{ +x_14 = x_11; +goto block_39; +} +} +else +{ +x_14 = x_11; +goto block_39; +} +block_39: +{ +lean_object* x_15; lean_object* x_16; +lean_dec(x_14); +x_15 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_10, x_3, x_4); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +if (lean_obj_tag(x_16) == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +lean_inc(x_3); +lean_inc(x_10); +x_18 = l_Lean_Meta_CheckAssignment_check___main(x_10, x_3, x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +lean_inc(x_19); +lean_inc(x_10); +x_21 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_10, x_19, x_3, x_20); +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +x_23 = lean_unsigned_to_nat(1u); +x_24 = lean_nat_add(x_1, x_23); +x_25 = x_19; +lean_dec(x_10); +x_26 = lean_array_fset(x_13, x_1, x_25); +lean_dec(x_1); +x_1 = x_24; +x_2 = x_26; +x_4 = x_22; +goto _start; +} +else +{ +uint8_t x_28; +lean_dec(x_13); +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_18); +if (x_28 == 0) +{ +return x_18; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_18, 0); +x_30 = lean_ctor_get(x_18, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_18); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; +} +} +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_32 = lean_ctor_get(x_15, 1); +lean_inc(x_32); +lean_dec(x_15); +x_33 = lean_ctor_get(x_16, 0); +lean_inc(x_33); +lean_dec(x_16); +x_34 = lean_unsigned_to_nat(1u); +x_35 = lean_nat_add(x_1, x_34); +x_36 = x_33; +lean_dec(x_10); +x_37 = lean_array_fset(x_13, x_1, x_36); +lean_dec(x_1); +x_1 = x_35; +x_2 = x_37; +x_4 = x_32; +goto _start; +} +} +} +} +} +uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(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_Expr_isFVar(x_7); +lean_dec(x_7); +if (x_8 == 0) +{ +uint8_t x_9; +lean_dec(x_4); +x_9 = 1; +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_unsigned_to_nat(1u); +x_11 = lean_nat_add(x_4, x_10); +lean_dec(x_4); +x_4 = x_11; +goto _start; +} +} +} +} +lean_object* l_Lean_Expr_withAppAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +switch (lean_obj_tag(x_2)) { +case 0: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_23; lean_object* x_39; lean_object* x_40; uint8_t x_95; +lean_dec(x_4); +x_95 = l_Lean_Expr_isMVar(x_2); +if (x_95 == 0) +{ +uint8_t x_96; +lean_dec(x_1); +x_96 = l_Lean_Expr_hasExprMVar(x_2); +if (x_96 == 0) +{ +uint8_t x_97; +x_97 = l_Lean_Expr_hasFVar(x_2); +if (x_97 == 0) +{ +x_7 = x_2; +x_8 = x_6; +goto block_22; +} +else +{ +lean_object* x_98; +x_98 = lean_box(0); +x_23 = x_98; +goto block_38; +} +} +else +{ +lean_object* x_99; +x_99 = lean_box(0); +x_23 = x_99; +goto block_38; +} +} +else +{ +lean_object* x_100; lean_object* x_101; uint8_t x_102; +x_100 = lean_ctor_get(x_5, 0); +lean_inc(x_100); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +lean_dec(x_100); +x_102 = lean_ctor_get_uint8(x_101, sizeof(void*)*1 + 1); +lean_dec(x_101); +if (x_102 == 0) +{ +uint8_t x_103; +lean_dec(x_1); +x_103 = l_Lean_Expr_hasExprMVar(x_2); +if (x_103 == 0) +{ +uint8_t x_104; +x_104 = l_Lean_Expr_hasFVar(x_2); +if (x_104 == 0) +{ +x_7 = x_2; +x_8 = x_6; +goto block_22; +} +else +{ +lean_object* x_105; +x_105 = lean_box(0); +x_23 = x_105; +goto block_38; +} +} +else +{ +lean_object* x_106; +x_106 = lean_box(0); +x_23 = x_106; +goto block_38; +} +} +else +{ +lean_object* x_107; lean_object* x_108; uint8_t x_109; +x_107 = lean_array_get_size(x_3); +x_108 = lean_unsigned_to_nat(0u); +x_109 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_107, x_108); +lean_dec(x_107); +if (x_109 == 0) +{ +lean_object* x_110; uint8_t x_126; +x_126 = l_Lean_Expr_hasExprMVar(x_2); +if (x_126 == 0) +{ +uint8_t x_127; +x_127 = l_Lean_Expr_hasFVar(x_2); +if (x_127 == 0) +{ +x_39 = x_2; +x_40 = x_6; +goto block_94; +} +else +{ +lean_object* x_128; +x_128 = lean_box(0); +x_110 = x_128; +goto block_125; +} +} +else +{ +lean_object* x_129; +x_129 = lean_box(0); +x_110 = x_129; +goto block_125; +} +block_125: +{ +lean_object* x_111; lean_object* x_112; +lean_dec(x_110); +x_111 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +if (lean_obj_tag(x_112) == 0) +{ +lean_object* x_113; lean_object* x_114; +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +lean_inc(x_5); +lean_inc(x_2); +x_114 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_113); +if (lean_obj_tag(x_114) == 0) +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +lean_dec(x_114); +lean_inc(x_115); +x_117 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_115, x_5, x_116); +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +lean_dec(x_117); +x_39 = x_115; +x_40 = x_118; +goto block_94; +} +else +{ +uint8_t x_119; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_119 = !lean_is_exclusive(x_114); +if (x_119 == 0) +{ +return x_114; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; +x_120 = lean_ctor_get(x_114, 0); +x_121 = lean_ctor_get(x_114, 1); +lean_inc(x_121); +lean_inc(x_120); +lean_dec(x_114); +x_122 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_122, 0, x_120); +lean_ctor_set(x_122, 1, x_121); +return x_122; +} +} +} +else +{ +lean_object* x_123; lean_object* x_124; +lean_dec(x_2); +x_123 = lean_ctor_get(x_111, 1); +lean_inc(x_123); +lean_dec(x_111); +x_124 = lean_ctor_get(x_112, 0); +lean_inc(x_124); +lean_dec(x_112); +x_39 = x_124; +x_40 = x_123; +goto block_94; +} +} +} +else +{ +uint8_t x_130; +lean_dec(x_1); +x_130 = l_Lean_Expr_hasExprMVar(x_2); +if (x_130 == 0) +{ +uint8_t x_131; +x_131 = l_Lean_Expr_hasFVar(x_2); +if (x_131 == 0) +{ +x_7 = x_2; +x_8 = x_6; +goto block_22; +} +else +{ +lean_object* x_132; +x_132 = lean_box(0); +x_23 = x_132; +goto block_38; +} +} +else +{ +lean_object* x_133; +x_133 = lean_box(0); +x_23 = x_133; +goto block_38; +} +} +} +} +block_22: +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_unsigned_to_nat(0u); +x_10 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_9, x_3, x_5, x_8); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +x_13 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_12, x_12, x_9, x_7); +lean_dec(x_12); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +x_16 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_14, x_14, x_9, x_7); +lean_dec(x_14); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +else +{ +uint8_t x_18; +lean_dec(x_7); +x_18 = !lean_is_exclusive(x_10); +if (x_18 == 0) +{ +return x_10; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_10, 0); +x_20 = lean_ctor_get(x_10, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_10); +x_21 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_21, 0, x_19); +lean_ctor_set(x_21, 1, x_20); +return x_21; +} +} +} +block_38: +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_23); +x_24 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +lean_inc(x_5); +lean_inc(x_2); +x_27 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_26); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +lean_inc(x_28); +x_30 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_28, x_5, x_29); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +lean_dec(x_30); +x_7 = x_28; +x_8 = x_31; +goto block_22; +} +else +{ +uint8_t x_32; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_32 = !lean_is_exclusive(x_27); +if (x_32 == 0) +{ +return x_27; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_27, 0); +x_34 = lean_ctor_get(x_27, 1); +lean_inc(x_34); +lean_inc(x_33); +lean_dec(x_27); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +return x_35; +} +} +} +else +{ +lean_object* x_36; lean_object* x_37; +lean_dec(x_2); +x_36 = lean_ctor_get(x_24, 1); +lean_inc(x_36); +lean_dec(x_24); +x_37 = lean_ctor_get(x_25, 0); +lean_inc(x_37); +lean_dec(x_25); +x_7 = x_37; +x_8 = x_36; +goto block_22; +} +} +block_94: +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_42 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_41, x_3, x_5, x_40); +if (lean_obj_tag(x_42) == 0) +{ +uint8_t x_43; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_43 = !lean_is_exclusive(x_42); +if (x_43 == 0) +{ +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_42, 0); +x_45 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_44, x_44, x_41, x_39); +lean_dec(x_44); +lean_ctor_set(x_42, 0, x_45); +return x_42; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_46 = lean_ctor_get(x_42, 0); +x_47 = lean_ctor_get(x_42, 1); +lean_inc(x_47); +lean_inc(x_46); +lean_dec(x_42); +x_48 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_46, x_46, x_41, x_39); +lean_dec(x_46); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +} +else +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_42, 0); +lean_inc(x_50); +if (lean_obj_tag(x_50) == 2) +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_42, 1); +lean_inc(x_51); +lean_dec(x_42); +x_52 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_52, 0, x_1); +lean_inc(x_5); +x_53 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_52, x_5, x_51); +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, 0); +lean_inc(x_54); +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +lean_dec(x_53); +lean_inc(x_5); +x_56 = l_Lean_Meta_CheckAssignment_check___main(x_54, x_5, x_55); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +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 = lean_ctor_get(x_5, 2); +lean_inc(x_59); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +x_61 = lean_ctor_get(x_59, 4); +lean_inc(x_61); +lean_dec(x_59); +x_62 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_60, x_61, x_57, x_5, x_58); +x_63 = lean_ctor_get(x_62, 0); +lean_inc(x_63); +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_63); +x_66 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_66, 0, x_39); +lean_closure_set(x_66, 1, x_65); +lean_closure_set(x_66, 2, x_63); +x_67 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_66, x_5, x_64); +if (lean_obj_tag(x_67) == 0) +{ +lean_object* x_68; uint8_t x_69; +x_68 = lean_ctor_get(x_67, 0); +lean_inc(x_68); +x_69 = lean_unbox(x_68); +lean_dec(x_68); +if (x_69 == 0) +{ +uint8_t x_70; +lean_dec(x_63); +x_70 = !lean_is_exclusive(x_67); +if (x_70 == 0) +{ +lean_object* x_71; +x_71 = lean_ctor_get(x_67, 0); +lean_dec(x_71); +lean_ctor_set_tag(x_67, 1); +lean_ctor_set(x_67, 0, x_50); +return x_67; +} +else +{ +lean_object* x_72; lean_object* x_73; +x_72 = lean_ctor_get(x_67, 1); +lean_inc(x_72); +lean_dec(x_67); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_50); +lean_ctor_set(x_73, 1, x_72); +return x_73; +} +} +else +{ +uint8_t x_74; +lean_dec(x_50); +x_74 = !lean_is_exclusive(x_67); +if (x_74 == 0) +{ +lean_object* x_75; +x_75 = lean_ctor_get(x_67, 0); +lean_dec(x_75); +lean_ctor_set(x_67, 0, x_63); +return x_67; +} +else +{ +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_67, 1); +lean_inc(x_76); +lean_dec(x_67); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_63); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +else +{ +uint8_t x_78; +lean_dec(x_63); +lean_dec(x_50); +x_78 = !lean_is_exclusive(x_67); +if (x_78 == 0) +{ +return x_67; +} +else +{ +lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_79 = lean_ctor_get(x_67, 0); +x_80 = lean_ctor_get(x_67, 1); +lean_inc(x_80); +lean_inc(x_79); +lean_dec(x_67); +x_81 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +return x_81; +} +} +} +else +{ +uint8_t x_82; +lean_dec(x_50); +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_3); +x_82 = !lean_is_exclusive(x_56); +if (x_82 == 0) +{ +return x_56; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_56, 0); +x_84 = lean_ctor_get(x_56, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_56); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +} +else +{ +uint8_t x_86; +lean_dec(x_50); +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_3); +x_86 = !lean_is_exclusive(x_53); +if (x_86 == 0) +{ +return x_53; } else { lean_object* x_87; lean_object* x_88; lean_object* x_89; -x_87 = lean_ctor_get(x_69, 1); -lean_inc(x_87); -lean_dec(x_69); -x_88 = lean_ctor_get(x_70, 0); +x_87 = lean_ctor_get(x_53, 0); +x_88 = lean_ctor_get(x_53, 1); lean_inc(x_88); -lean_dec(x_70); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_87); +lean_inc(x_87); +lean_dec(x_53); +x_89 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); return x_89; } } } +else +{ +uint8_t x_90; +lean_dec(x_39); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_90 = !lean_is_exclusive(x_42); +if (x_90 == 0) +{ +lean_object* x_91; +x_91 = lean_ctor_get(x_42, 0); +lean_dec(x_91); +return x_42; +} +else +{ +lean_object* x_92; lean_object* x_93; +x_92 = lean_ctor_get(x_42, 1); +lean_inc(x_92); +lean_dec(x_42); +x_93 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_93, 0, x_50); +lean_ctor_set(x_93, 1, x_92); +return x_93; +} +} +} +} +} +case 1: +{ +lean_object* x_134; lean_object* x_135; lean_object* x_150; lean_object* x_166; lean_object* x_167; uint8_t x_222; +lean_dec(x_4); +x_222 = l_Lean_Expr_isMVar(x_2); +if (x_222 == 0) +{ +uint8_t x_223; +lean_dec(x_1); +x_223 = l_Lean_Expr_hasExprMVar(x_2); +if (x_223 == 0) +{ +uint8_t x_224; +x_224 = l_Lean_Expr_hasFVar(x_2); +if (x_224 == 0) +{ +x_134 = x_2; +x_135 = x_6; +goto block_149; +} +else +{ +lean_object* x_225; +x_225 = lean_box(0); +x_150 = x_225; +goto block_165; +} +} +else +{ +lean_object* x_226; +x_226 = lean_box(0); +x_150 = x_226; +goto block_165; +} +} +else +{ +lean_object* x_227; lean_object* x_228; uint8_t x_229; +x_227 = lean_ctor_get(x_5, 0); +lean_inc(x_227); +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +lean_dec(x_227); +x_229 = lean_ctor_get_uint8(x_228, sizeof(void*)*1 + 1); +lean_dec(x_228); +if (x_229 == 0) +{ +uint8_t x_230; +lean_dec(x_1); +x_230 = l_Lean_Expr_hasExprMVar(x_2); +if (x_230 == 0) +{ +uint8_t x_231; +x_231 = l_Lean_Expr_hasFVar(x_2); +if (x_231 == 0) +{ +x_134 = x_2; +x_135 = x_6; +goto block_149; +} +else +{ +lean_object* x_232; +x_232 = lean_box(0); +x_150 = x_232; +goto block_165; +} +} +else +{ +lean_object* x_233; +x_233 = lean_box(0); +x_150 = x_233; +goto block_165; +} +} +else +{ +lean_object* x_234; lean_object* x_235; uint8_t x_236; +x_234 = lean_array_get_size(x_3); +x_235 = lean_unsigned_to_nat(0u); +x_236 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_234, x_235); +lean_dec(x_234); +if (x_236 == 0) +{ +lean_object* x_237; uint8_t x_253; +x_253 = l_Lean_Expr_hasExprMVar(x_2); +if (x_253 == 0) +{ +uint8_t x_254; +x_254 = l_Lean_Expr_hasFVar(x_2); +if (x_254 == 0) +{ +x_166 = x_2; +x_167 = x_6; +goto block_221; +} +else +{ +lean_object* x_255; +x_255 = lean_box(0); +x_237 = x_255; +goto block_252; +} +} +else +{ +lean_object* x_256; +x_256 = lean_box(0); +x_237 = x_256; +goto block_252; +} +block_252: +{ +lean_object* x_238; lean_object* x_239; +lean_dec(x_237); +x_238 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +if (lean_obj_tag(x_239) == 0) +{ +lean_object* x_240; lean_object* x_241; +x_240 = lean_ctor_get(x_238, 1); +lean_inc(x_240); +lean_dec(x_238); +lean_inc(x_5); +lean_inc(x_2); +x_241 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_240); +if (lean_obj_tag(x_241) == 0) +{ +lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; +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); +lean_inc(x_242); +x_244 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_242, x_5, x_243); +x_245 = lean_ctor_get(x_244, 1); +lean_inc(x_245); +lean_dec(x_244); +x_166 = x_242; +x_167 = x_245; +goto block_221; +} +else +{ +uint8_t x_246; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_246 = !lean_is_exclusive(x_241); +if (x_246 == 0) +{ +return x_241; +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; +x_247 = lean_ctor_get(x_241, 0); +x_248 = lean_ctor_get(x_241, 1); +lean_inc(x_248); +lean_inc(x_247); +lean_dec(x_241); +x_249 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_249, 0, x_247); +lean_ctor_set(x_249, 1, x_248); +return x_249; +} +} +} +else +{ +lean_object* x_250; lean_object* x_251; +lean_dec(x_2); +x_250 = lean_ctor_get(x_238, 1); +lean_inc(x_250); +lean_dec(x_238); +x_251 = lean_ctor_get(x_239, 0); +lean_inc(x_251); +lean_dec(x_239); +x_166 = x_251; +x_167 = x_250; +goto block_221; +} +} +} +else +{ +uint8_t x_257; +lean_dec(x_1); +x_257 = l_Lean_Expr_hasExprMVar(x_2); +if (x_257 == 0) +{ +uint8_t x_258; +x_258 = l_Lean_Expr_hasFVar(x_2); +if (x_258 == 0) +{ +x_134 = x_2; +x_135 = x_6; +goto block_149; +} +else +{ +lean_object* x_259; +x_259 = lean_box(0); +x_150 = x_259; +goto block_165; +} +} +else +{ +lean_object* x_260; +x_260 = lean_box(0); +x_150 = x_260; +goto block_165; +} +} +} +} +block_149: +{ +lean_object* x_136; lean_object* x_137; +x_136 = lean_unsigned_to_nat(0u); +x_137 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_136, x_3, x_5, x_135); +if (lean_obj_tag(x_137) == 0) +{ +uint8_t x_138; +x_138 = !lean_is_exclusive(x_137); +if (x_138 == 0) +{ +lean_object* x_139; lean_object* x_140; +x_139 = lean_ctor_get(x_137, 0); +x_140 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_139, x_139, x_136, x_134); +lean_dec(x_139); +lean_ctor_set(x_137, 0, x_140); +return x_137; +} +else +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +x_141 = lean_ctor_get(x_137, 0); +x_142 = lean_ctor_get(x_137, 1); +lean_inc(x_142); +lean_inc(x_141); +lean_dec(x_137); +x_143 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_141, x_141, x_136, x_134); +lean_dec(x_141); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_142); +return x_144; +} +} +else +{ +uint8_t x_145; +lean_dec(x_134); +x_145 = !lean_is_exclusive(x_137); +if (x_145 == 0) +{ +return x_137; +} +else +{ +lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_146 = lean_ctor_get(x_137, 0); +x_147 = lean_ctor_get(x_137, 1); +lean_inc(x_147); +lean_inc(x_146); +lean_dec(x_137); +x_148 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_148, 0, x_146); +lean_ctor_set(x_148, 1, x_147); +return x_148; +} +} +} +block_165: +{ +lean_object* x_151; lean_object* x_152; +lean_dec(x_150); +x_151 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_152 = lean_ctor_get(x_151, 0); +lean_inc(x_152); +if (lean_obj_tag(x_152) == 0) +{ +lean_object* x_153; lean_object* x_154; +x_153 = lean_ctor_get(x_151, 1); +lean_inc(x_153); +lean_dec(x_151); +lean_inc(x_5); +lean_inc(x_2); +x_154 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_153); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_154, 1); +lean_inc(x_156); +lean_dec(x_154); +lean_inc(x_155); +x_157 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_155, x_5, x_156); +x_158 = lean_ctor_get(x_157, 1); +lean_inc(x_158); +lean_dec(x_157); +x_134 = x_155; +x_135 = x_158; +goto block_149; +} +else +{ +uint8_t x_159; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_159 = !lean_is_exclusive(x_154); +if (x_159 == 0) +{ +return x_154; +} +else +{ +lean_object* x_160; lean_object* x_161; lean_object* x_162; +x_160 = lean_ctor_get(x_154, 0); +x_161 = lean_ctor_get(x_154, 1); +lean_inc(x_161); +lean_inc(x_160); +lean_dec(x_154); +x_162 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_162, 0, x_160); +lean_ctor_set(x_162, 1, x_161); +return x_162; +} +} +} +else +{ +lean_object* x_163; lean_object* x_164; +lean_dec(x_2); +x_163 = lean_ctor_get(x_151, 1); +lean_inc(x_163); +lean_dec(x_151); +x_164 = lean_ctor_get(x_152, 0); +lean_inc(x_164); +lean_dec(x_152); +x_134 = x_164; +x_135 = x_163; +goto block_149; +} +} +block_221: +{ +lean_object* x_168; lean_object* x_169; +x_168 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_169 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_168, x_3, x_5, x_167); +if (lean_obj_tag(x_169) == 0) +{ +uint8_t x_170; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_170 = !lean_is_exclusive(x_169); +if (x_170 == 0) +{ +lean_object* x_171; lean_object* x_172; +x_171 = lean_ctor_get(x_169, 0); +x_172 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_171, x_171, x_168, x_166); +lean_dec(x_171); +lean_ctor_set(x_169, 0, x_172); +return x_169; +} +else +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_173 = lean_ctor_get(x_169, 0); +x_174 = lean_ctor_get(x_169, 1); +lean_inc(x_174); +lean_inc(x_173); +lean_dec(x_169); +x_175 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_173, x_173, x_168, x_166); +lean_dec(x_173); +x_176 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_176, 0, x_175); +lean_ctor_set(x_176, 1, x_174); +return x_176; +} +} +else +{ +lean_object* x_177; +x_177 = lean_ctor_get(x_169, 0); +lean_inc(x_177); +if (lean_obj_tag(x_177) == 2) +{ +lean_object* x_178; lean_object* x_179; lean_object* x_180; +x_178 = lean_ctor_get(x_169, 1); +lean_inc(x_178); +lean_dec(x_169); +x_179 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_179, 0, x_1); +lean_inc(x_5); +x_180 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_179, x_5, x_178); +if (lean_obj_tag(x_180) == 0) +{ +lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_181 = lean_ctor_get(x_180, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_180, 1); +lean_inc(x_182); +lean_dec(x_180); +lean_inc(x_5); +x_183 = l_Lean_Meta_CheckAssignment_check___main(x_181, x_5, x_182); +if (lean_obj_tag(x_183) == 0) +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; +x_184 = lean_ctor_get(x_183, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_183, 1); +lean_inc(x_185); +lean_dec(x_183); +x_186 = lean_ctor_get(x_5, 2); +lean_inc(x_186); +x_187 = lean_ctor_get(x_186, 1); +lean_inc(x_187); +x_188 = lean_ctor_get(x_186, 4); +lean_inc(x_188); +lean_dec(x_186); +x_189 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_187, x_188, x_184, x_5, x_185); +x_190 = lean_ctor_get(x_189, 0); +lean_inc(x_190); +x_191 = lean_ctor_get(x_189, 1); +lean_inc(x_191); +lean_dec(x_189); +x_192 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_190); +x_193 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_193, 0, x_166); +lean_closure_set(x_193, 1, x_192); +lean_closure_set(x_193, 2, x_190); +x_194 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_193, x_5, x_191); +if (lean_obj_tag(x_194) == 0) +{ +lean_object* x_195; uint8_t x_196; +x_195 = lean_ctor_get(x_194, 0); +lean_inc(x_195); +x_196 = lean_unbox(x_195); +lean_dec(x_195); +if (x_196 == 0) +{ +uint8_t x_197; +lean_dec(x_190); +x_197 = !lean_is_exclusive(x_194); +if (x_197 == 0) +{ +lean_object* x_198; +x_198 = lean_ctor_get(x_194, 0); +lean_dec(x_198); +lean_ctor_set_tag(x_194, 1); +lean_ctor_set(x_194, 0, x_177); +return x_194; +} +else +{ +lean_object* x_199; lean_object* x_200; +x_199 = lean_ctor_get(x_194, 1); +lean_inc(x_199); +lean_dec(x_194); +x_200 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_200, 0, x_177); +lean_ctor_set(x_200, 1, x_199); +return x_200; +} +} +else +{ +uint8_t x_201; +lean_dec(x_177); +x_201 = !lean_is_exclusive(x_194); +if (x_201 == 0) +{ +lean_object* x_202; +x_202 = lean_ctor_get(x_194, 0); +lean_dec(x_202); +lean_ctor_set(x_194, 0, x_190); +return x_194; +} +else +{ +lean_object* x_203; lean_object* x_204; +x_203 = lean_ctor_get(x_194, 1); +lean_inc(x_203); +lean_dec(x_194); +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_190); +lean_ctor_set(x_204, 1, x_203); +return x_204; +} +} +} +else +{ +uint8_t x_205; +lean_dec(x_190); +lean_dec(x_177); +x_205 = !lean_is_exclusive(x_194); +if (x_205 == 0) +{ +return x_194; +} +else +{ +lean_object* x_206; lean_object* x_207; lean_object* x_208; +x_206 = lean_ctor_get(x_194, 0); +x_207 = lean_ctor_get(x_194, 1); +lean_inc(x_207); +lean_inc(x_206); +lean_dec(x_194); +x_208 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_208, 0, x_206); +lean_ctor_set(x_208, 1, x_207); +return x_208; +} +} +} +else +{ +uint8_t x_209; +lean_dec(x_177); +lean_dec(x_166); +lean_dec(x_5); +lean_dec(x_3); +x_209 = !lean_is_exclusive(x_183); +if (x_209 == 0) +{ +return x_183; +} +else +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_210 = lean_ctor_get(x_183, 0); +x_211 = lean_ctor_get(x_183, 1); +lean_inc(x_211); +lean_inc(x_210); +lean_dec(x_183); +x_212 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_212, 0, x_210); +lean_ctor_set(x_212, 1, x_211); +return x_212; +} +} +} +else +{ +uint8_t x_213; +lean_dec(x_177); +lean_dec(x_166); +lean_dec(x_5); +lean_dec(x_3); +x_213 = !lean_is_exclusive(x_180); +if (x_213 == 0) +{ +return x_180; +} +else +{ +lean_object* x_214; lean_object* x_215; lean_object* x_216; +x_214 = lean_ctor_get(x_180, 0); +x_215 = lean_ctor_get(x_180, 1); +lean_inc(x_215); +lean_inc(x_214); +lean_dec(x_180); +x_216 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_216, 0, x_214); +lean_ctor_set(x_216, 1, x_215); +return x_216; +} +} +} +else +{ +uint8_t x_217; +lean_dec(x_166); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_217 = !lean_is_exclusive(x_169); +if (x_217 == 0) +{ +lean_object* x_218; +x_218 = lean_ctor_get(x_169, 0); +lean_dec(x_218); +return x_169; +} +else +{ +lean_object* x_219; lean_object* x_220; +x_219 = lean_ctor_get(x_169, 1); +lean_inc(x_219); +lean_dec(x_169); +x_220 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_220, 0, x_177); +lean_ctor_set(x_220, 1, x_219); +return x_220; +} +} +} +} +} +case 2: +{ +lean_object* x_261; lean_object* x_262; lean_object* x_277; lean_object* x_293; lean_object* x_294; uint8_t x_349; +lean_dec(x_4); +x_349 = l_Lean_Expr_isMVar(x_2); +if (x_349 == 0) +{ +uint8_t x_350; +lean_dec(x_1); +x_350 = l_Lean_Expr_hasExprMVar(x_2); +if (x_350 == 0) +{ +uint8_t x_351; +x_351 = l_Lean_Expr_hasFVar(x_2); +if (x_351 == 0) +{ +x_261 = x_2; +x_262 = x_6; +goto block_276; +} +else +{ +lean_object* x_352; +x_352 = lean_box(0); +x_277 = x_352; +goto block_292; +} +} +else +{ +lean_object* x_353; +x_353 = lean_box(0); +x_277 = x_353; +goto block_292; +} +} +else +{ +lean_object* x_354; lean_object* x_355; uint8_t x_356; +x_354 = lean_ctor_get(x_5, 0); +lean_inc(x_354); +x_355 = lean_ctor_get(x_354, 0); +lean_inc(x_355); +lean_dec(x_354); +x_356 = lean_ctor_get_uint8(x_355, sizeof(void*)*1 + 1); +lean_dec(x_355); +if (x_356 == 0) +{ +uint8_t x_357; +lean_dec(x_1); +x_357 = l_Lean_Expr_hasExprMVar(x_2); +if (x_357 == 0) +{ +uint8_t x_358; +x_358 = l_Lean_Expr_hasFVar(x_2); +if (x_358 == 0) +{ +x_261 = x_2; +x_262 = x_6; +goto block_276; +} +else +{ +lean_object* x_359; +x_359 = lean_box(0); +x_277 = x_359; +goto block_292; +} +} +else +{ +lean_object* x_360; +x_360 = lean_box(0); +x_277 = x_360; +goto block_292; +} +} +else +{ +lean_object* x_361; lean_object* x_362; uint8_t x_363; +x_361 = lean_array_get_size(x_3); +x_362 = lean_unsigned_to_nat(0u); +x_363 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_361, x_362); +lean_dec(x_361); +if (x_363 == 0) +{ +lean_object* x_364; uint8_t x_380; +x_380 = l_Lean_Expr_hasExprMVar(x_2); +if (x_380 == 0) +{ +uint8_t x_381; +x_381 = l_Lean_Expr_hasFVar(x_2); +if (x_381 == 0) +{ +x_293 = x_2; +x_294 = x_6; +goto block_348; +} +else +{ +lean_object* x_382; +x_382 = lean_box(0); +x_364 = x_382; +goto block_379; +} +} +else +{ +lean_object* x_383; +x_383 = lean_box(0); +x_364 = x_383; +goto block_379; +} +block_379: +{ +lean_object* x_365; lean_object* x_366; +lean_dec(x_364); +x_365 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_366 = lean_ctor_get(x_365, 0); +lean_inc(x_366); +if (lean_obj_tag(x_366) == 0) +{ +lean_object* x_367; lean_object* x_368; +x_367 = lean_ctor_get(x_365, 1); +lean_inc(x_367); +lean_dec(x_365); +lean_inc(x_5); +lean_inc(x_2); +x_368 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_367); +if (lean_obj_tag(x_368) == 0) +{ +lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; +x_369 = lean_ctor_get(x_368, 0); +lean_inc(x_369); +x_370 = lean_ctor_get(x_368, 1); +lean_inc(x_370); +lean_dec(x_368); +lean_inc(x_369); +x_371 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_369, x_5, x_370); +x_372 = lean_ctor_get(x_371, 1); +lean_inc(x_372); +lean_dec(x_371); +x_293 = x_369; +x_294 = x_372; +goto block_348; +} +else +{ +uint8_t x_373; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_373 = !lean_is_exclusive(x_368); +if (x_373 == 0) +{ +return x_368; +} +else +{ +lean_object* x_374; lean_object* x_375; lean_object* x_376; +x_374 = lean_ctor_get(x_368, 0); +x_375 = lean_ctor_get(x_368, 1); +lean_inc(x_375); +lean_inc(x_374); +lean_dec(x_368); +x_376 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_376, 0, x_374); +lean_ctor_set(x_376, 1, x_375); +return x_376; +} +} +} +else +{ +lean_object* x_377; lean_object* x_378; +lean_dec(x_2); +x_377 = lean_ctor_get(x_365, 1); +lean_inc(x_377); +lean_dec(x_365); +x_378 = lean_ctor_get(x_366, 0); +lean_inc(x_378); +lean_dec(x_366); +x_293 = x_378; +x_294 = x_377; +goto block_348; +} +} +} +else +{ +uint8_t x_384; +lean_dec(x_1); +x_384 = l_Lean_Expr_hasExprMVar(x_2); +if (x_384 == 0) +{ +uint8_t x_385; +x_385 = l_Lean_Expr_hasFVar(x_2); +if (x_385 == 0) +{ +x_261 = x_2; +x_262 = x_6; +goto block_276; +} +else +{ +lean_object* x_386; +x_386 = lean_box(0); +x_277 = x_386; +goto block_292; +} +} +else +{ +lean_object* x_387; +x_387 = lean_box(0); +x_277 = x_387; +goto block_292; +} +} +} +} +block_276: +{ +lean_object* x_263; lean_object* x_264; +x_263 = lean_unsigned_to_nat(0u); +x_264 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_263, x_3, x_5, x_262); +if (lean_obj_tag(x_264) == 0) +{ +uint8_t x_265; +x_265 = !lean_is_exclusive(x_264); +if (x_265 == 0) +{ +lean_object* x_266; lean_object* x_267; +x_266 = lean_ctor_get(x_264, 0); +x_267 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_266, x_266, x_263, x_261); +lean_dec(x_266); +lean_ctor_set(x_264, 0, x_267); +return x_264; +} +else +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; +x_268 = lean_ctor_get(x_264, 0); +x_269 = lean_ctor_get(x_264, 1); +lean_inc(x_269); +lean_inc(x_268); +lean_dec(x_264); +x_270 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_268, x_268, x_263, x_261); +lean_dec(x_268); +x_271 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_271, 0, x_270); +lean_ctor_set(x_271, 1, x_269); +return x_271; +} +} +else +{ +uint8_t x_272; +lean_dec(x_261); +x_272 = !lean_is_exclusive(x_264); +if (x_272 == 0) +{ +return x_264; +} +else +{ +lean_object* x_273; lean_object* x_274; lean_object* x_275; +x_273 = lean_ctor_get(x_264, 0); +x_274 = lean_ctor_get(x_264, 1); +lean_inc(x_274); +lean_inc(x_273); +lean_dec(x_264); +x_275 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_275, 0, x_273); +lean_ctor_set(x_275, 1, x_274); +return x_275; +} +} +} +block_292: +{ +lean_object* x_278; lean_object* x_279; +lean_dec(x_277); +x_278 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_279 = lean_ctor_get(x_278, 0); +lean_inc(x_279); +if (lean_obj_tag(x_279) == 0) +{ +lean_object* x_280; lean_object* x_281; +x_280 = lean_ctor_get(x_278, 1); +lean_inc(x_280); +lean_dec(x_278); +lean_inc(x_5); +lean_inc(x_2); +x_281 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_280); +if (lean_obj_tag(x_281) == 0) +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; +x_282 = lean_ctor_get(x_281, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_281, 1); +lean_inc(x_283); +lean_dec(x_281); +lean_inc(x_282); +x_284 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_282, x_5, x_283); +x_285 = lean_ctor_get(x_284, 1); +lean_inc(x_285); +lean_dec(x_284); +x_261 = x_282; +x_262 = x_285; +goto block_276; +} +else +{ +uint8_t x_286; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_286 = !lean_is_exclusive(x_281); +if (x_286 == 0) +{ +return x_281; +} +else +{ +lean_object* x_287; lean_object* x_288; lean_object* x_289; +x_287 = lean_ctor_get(x_281, 0); +x_288 = lean_ctor_get(x_281, 1); +lean_inc(x_288); +lean_inc(x_287); +lean_dec(x_281); +x_289 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_289, 0, x_287); +lean_ctor_set(x_289, 1, x_288); +return x_289; +} +} +} +else +{ +lean_object* x_290; lean_object* x_291; +lean_dec(x_2); +x_290 = lean_ctor_get(x_278, 1); +lean_inc(x_290); +lean_dec(x_278); +x_291 = lean_ctor_get(x_279, 0); +lean_inc(x_291); +lean_dec(x_279); +x_261 = x_291; +x_262 = x_290; +goto block_276; +} +} +block_348: +{ +lean_object* x_295; lean_object* x_296; +x_295 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_296 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_295, x_3, x_5, x_294); +if (lean_obj_tag(x_296) == 0) +{ +uint8_t x_297; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_297 = !lean_is_exclusive(x_296); +if (x_297 == 0) +{ +lean_object* x_298; lean_object* x_299; +x_298 = lean_ctor_get(x_296, 0); +x_299 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_298, x_298, x_295, x_293); +lean_dec(x_298); +lean_ctor_set(x_296, 0, x_299); +return x_296; +} +else +{ +lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; +x_300 = lean_ctor_get(x_296, 0); +x_301 = lean_ctor_get(x_296, 1); +lean_inc(x_301); +lean_inc(x_300); +lean_dec(x_296); +x_302 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_300, x_300, x_295, x_293); +lean_dec(x_300); +x_303 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_303, 0, x_302); +lean_ctor_set(x_303, 1, x_301); +return x_303; +} +} +else +{ +lean_object* x_304; +x_304 = lean_ctor_get(x_296, 0); +lean_inc(x_304); +if (lean_obj_tag(x_304) == 2) +{ +lean_object* x_305; lean_object* x_306; lean_object* x_307; +x_305 = lean_ctor_get(x_296, 1); +lean_inc(x_305); +lean_dec(x_296); +x_306 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_306, 0, x_1); +lean_inc(x_5); +x_307 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_306, x_5, x_305); +if (lean_obj_tag(x_307) == 0) +{ +lean_object* x_308; lean_object* x_309; lean_object* x_310; +x_308 = lean_ctor_get(x_307, 0); +lean_inc(x_308); +x_309 = lean_ctor_get(x_307, 1); +lean_inc(x_309); +lean_dec(x_307); +lean_inc(x_5); +x_310 = l_Lean_Meta_CheckAssignment_check___main(x_308, x_5, x_309); +if (lean_obj_tag(x_310) == 0) +{ +lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; +x_311 = lean_ctor_get(x_310, 0); +lean_inc(x_311); +x_312 = lean_ctor_get(x_310, 1); +lean_inc(x_312); +lean_dec(x_310); +x_313 = lean_ctor_get(x_5, 2); +lean_inc(x_313); +x_314 = lean_ctor_get(x_313, 1); +lean_inc(x_314); +x_315 = lean_ctor_get(x_313, 4); +lean_inc(x_315); +lean_dec(x_313); +x_316 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_314, x_315, x_311, x_5, x_312); +x_317 = lean_ctor_get(x_316, 0); +lean_inc(x_317); +x_318 = lean_ctor_get(x_316, 1); +lean_inc(x_318); +lean_dec(x_316); +x_319 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_317); +x_320 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_320, 0, x_293); +lean_closure_set(x_320, 1, x_319); +lean_closure_set(x_320, 2, x_317); +x_321 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_320, x_5, x_318); +if (lean_obj_tag(x_321) == 0) +{ +lean_object* x_322; uint8_t x_323; +x_322 = lean_ctor_get(x_321, 0); +lean_inc(x_322); +x_323 = lean_unbox(x_322); +lean_dec(x_322); +if (x_323 == 0) +{ +uint8_t x_324; +lean_dec(x_317); +x_324 = !lean_is_exclusive(x_321); +if (x_324 == 0) +{ +lean_object* x_325; +x_325 = lean_ctor_get(x_321, 0); +lean_dec(x_325); +lean_ctor_set_tag(x_321, 1); +lean_ctor_set(x_321, 0, x_304); +return x_321; +} +else +{ +lean_object* x_326; lean_object* x_327; +x_326 = lean_ctor_get(x_321, 1); +lean_inc(x_326); +lean_dec(x_321); +x_327 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_327, 0, x_304); +lean_ctor_set(x_327, 1, x_326); +return x_327; +} +} +else +{ +uint8_t x_328; +lean_dec(x_304); +x_328 = !lean_is_exclusive(x_321); +if (x_328 == 0) +{ +lean_object* x_329; +x_329 = lean_ctor_get(x_321, 0); +lean_dec(x_329); +lean_ctor_set(x_321, 0, x_317); +return x_321; +} +else +{ +lean_object* x_330; lean_object* x_331; +x_330 = lean_ctor_get(x_321, 1); +lean_inc(x_330); +lean_dec(x_321); +x_331 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_331, 0, x_317); +lean_ctor_set(x_331, 1, x_330); +return x_331; +} +} +} +else +{ +uint8_t x_332; +lean_dec(x_317); +lean_dec(x_304); +x_332 = !lean_is_exclusive(x_321); +if (x_332 == 0) +{ +return x_321; +} +else +{ +lean_object* x_333; lean_object* x_334; lean_object* x_335; +x_333 = lean_ctor_get(x_321, 0); +x_334 = lean_ctor_get(x_321, 1); +lean_inc(x_334); +lean_inc(x_333); +lean_dec(x_321); +x_335 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_335, 0, x_333); +lean_ctor_set(x_335, 1, x_334); +return x_335; +} +} +} +else +{ +uint8_t x_336; +lean_dec(x_304); +lean_dec(x_293); +lean_dec(x_5); +lean_dec(x_3); +x_336 = !lean_is_exclusive(x_310); +if (x_336 == 0) +{ +return x_310; +} +else +{ +lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_337 = lean_ctor_get(x_310, 0); +x_338 = lean_ctor_get(x_310, 1); +lean_inc(x_338); +lean_inc(x_337); +lean_dec(x_310); +x_339 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_339, 0, x_337); +lean_ctor_set(x_339, 1, x_338); +return x_339; +} +} +} +else +{ +uint8_t x_340; +lean_dec(x_304); +lean_dec(x_293); +lean_dec(x_5); +lean_dec(x_3); +x_340 = !lean_is_exclusive(x_307); +if (x_340 == 0) +{ +return x_307; +} +else +{ +lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_341 = lean_ctor_get(x_307, 0); +x_342 = lean_ctor_get(x_307, 1); +lean_inc(x_342); +lean_inc(x_341); +lean_dec(x_307); +x_343 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_343, 0, x_341); +lean_ctor_set(x_343, 1, x_342); +return x_343; +} +} +} +else +{ +uint8_t x_344; +lean_dec(x_293); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_344 = !lean_is_exclusive(x_296); +if (x_344 == 0) +{ +lean_object* x_345; +x_345 = lean_ctor_get(x_296, 0); +lean_dec(x_345); +return x_296; +} +else +{ +lean_object* x_346; lean_object* x_347; +x_346 = lean_ctor_get(x_296, 1); +lean_inc(x_346); +lean_dec(x_296); +x_347 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_347, 0, x_304); +lean_ctor_set(x_347, 1, x_346); +return x_347; +} +} +} +} +} +case 3: +{ +lean_object* x_388; lean_object* x_389; lean_object* x_404; lean_object* x_420; lean_object* x_421; uint8_t x_476; +lean_dec(x_4); +x_476 = l_Lean_Expr_isMVar(x_2); +if (x_476 == 0) +{ +uint8_t x_477; +lean_dec(x_1); +x_477 = l_Lean_Expr_hasExprMVar(x_2); +if (x_477 == 0) +{ +uint8_t x_478; +x_478 = l_Lean_Expr_hasFVar(x_2); +if (x_478 == 0) +{ +x_388 = x_2; +x_389 = x_6; +goto block_403; +} +else +{ +lean_object* x_479; +x_479 = lean_box(0); +x_404 = x_479; +goto block_419; +} +} +else +{ +lean_object* x_480; +x_480 = lean_box(0); +x_404 = x_480; +goto block_419; +} +} +else +{ +lean_object* x_481; lean_object* x_482; uint8_t x_483; +x_481 = lean_ctor_get(x_5, 0); +lean_inc(x_481); +x_482 = lean_ctor_get(x_481, 0); +lean_inc(x_482); +lean_dec(x_481); +x_483 = lean_ctor_get_uint8(x_482, sizeof(void*)*1 + 1); +lean_dec(x_482); +if (x_483 == 0) +{ +uint8_t x_484; +lean_dec(x_1); +x_484 = l_Lean_Expr_hasExprMVar(x_2); +if (x_484 == 0) +{ +uint8_t x_485; +x_485 = l_Lean_Expr_hasFVar(x_2); +if (x_485 == 0) +{ +x_388 = x_2; +x_389 = x_6; +goto block_403; +} +else +{ +lean_object* x_486; +x_486 = lean_box(0); +x_404 = x_486; +goto block_419; +} +} +else +{ +lean_object* x_487; +x_487 = lean_box(0); +x_404 = x_487; +goto block_419; +} +} +else +{ +lean_object* x_488; lean_object* x_489; uint8_t x_490; +x_488 = lean_array_get_size(x_3); +x_489 = lean_unsigned_to_nat(0u); +x_490 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_488, x_489); +lean_dec(x_488); +if (x_490 == 0) +{ +lean_object* x_491; uint8_t x_507; +x_507 = l_Lean_Expr_hasExprMVar(x_2); +if (x_507 == 0) +{ +uint8_t x_508; +x_508 = l_Lean_Expr_hasFVar(x_2); +if (x_508 == 0) +{ +x_420 = x_2; +x_421 = x_6; +goto block_475; +} +else +{ +lean_object* x_509; +x_509 = lean_box(0); +x_491 = x_509; +goto block_506; +} +} +else +{ +lean_object* x_510; +x_510 = lean_box(0); +x_491 = x_510; +goto block_506; +} +block_506: +{ +lean_object* x_492; lean_object* x_493; +lean_dec(x_491); +x_492 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_493 = lean_ctor_get(x_492, 0); +lean_inc(x_493); +if (lean_obj_tag(x_493) == 0) +{ +lean_object* x_494; lean_object* x_495; +x_494 = lean_ctor_get(x_492, 1); +lean_inc(x_494); +lean_dec(x_492); +lean_inc(x_5); +lean_inc(x_2); +x_495 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_494); +if (lean_obj_tag(x_495) == 0) +{ +lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; +x_496 = lean_ctor_get(x_495, 0); +lean_inc(x_496); +x_497 = lean_ctor_get(x_495, 1); +lean_inc(x_497); +lean_dec(x_495); +lean_inc(x_496); +x_498 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_496, x_5, x_497); +x_499 = lean_ctor_get(x_498, 1); +lean_inc(x_499); +lean_dec(x_498); +x_420 = x_496; +x_421 = x_499; +goto block_475; +} +else +{ +uint8_t x_500; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_500 = !lean_is_exclusive(x_495); +if (x_500 == 0) +{ +return x_495; +} +else +{ +lean_object* x_501; lean_object* x_502; lean_object* x_503; +x_501 = lean_ctor_get(x_495, 0); +x_502 = lean_ctor_get(x_495, 1); +lean_inc(x_502); +lean_inc(x_501); +lean_dec(x_495); +x_503 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_503, 0, x_501); +lean_ctor_set(x_503, 1, x_502); +return x_503; +} +} +} +else +{ +lean_object* x_504; lean_object* x_505; +lean_dec(x_2); +x_504 = lean_ctor_get(x_492, 1); +lean_inc(x_504); +lean_dec(x_492); +x_505 = lean_ctor_get(x_493, 0); +lean_inc(x_505); +lean_dec(x_493); +x_420 = x_505; +x_421 = x_504; +goto block_475; +} +} +} +else +{ +uint8_t x_511; +lean_dec(x_1); +x_511 = l_Lean_Expr_hasExprMVar(x_2); +if (x_511 == 0) +{ +uint8_t x_512; +x_512 = l_Lean_Expr_hasFVar(x_2); +if (x_512 == 0) +{ +x_388 = x_2; +x_389 = x_6; +goto block_403; +} +else +{ +lean_object* x_513; +x_513 = lean_box(0); +x_404 = x_513; +goto block_419; +} +} +else +{ +lean_object* x_514; +x_514 = lean_box(0); +x_404 = x_514; +goto block_419; +} +} +} +} +block_403: +{ +lean_object* x_390; lean_object* x_391; +x_390 = lean_unsigned_to_nat(0u); +x_391 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_390, x_3, x_5, x_389); +if (lean_obj_tag(x_391) == 0) +{ +uint8_t x_392; +x_392 = !lean_is_exclusive(x_391); +if (x_392 == 0) +{ +lean_object* x_393; lean_object* x_394; +x_393 = lean_ctor_get(x_391, 0); +x_394 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_393, x_393, x_390, x_388); +lean_dec(x_393); +lean_ctor_set(x_391, 0, x_394); +return x_391; +} +else +{ +lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; +x_395 = lean_ctor_get(x_391, 0); +x_396 = lean_ctor_get(x_391, 1); +lean_inc(x_396); +lean_inc(x_395); +lean_dec(x_391); +x_397 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_395, x_395, x_390, x_388); +lean_dec(x_395); +x_398 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_398, 0, x_397); +lean_ctor_set(x_398, 1, x_396); +return x_398; +} +} +else +{ +uint8_t x_399; +lean_dec(x_388); +x_399 = !lean_is_exclusive(x_391); +if (x_399 == 0) +{ +return x_391; +} +else +{ +lean_object* x_400; lean_object* x_401; lean_object* x_402; +x_400 = lean_ctor_get(x_391, 0); +x_401 = lean_ctor_get(x_391, 1); +lean_inc(x_401); +lean_inc(x_400); +lean_dec(x_391); +x_402 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_402, 0, x_400); +lean_ctor_set(x_402, 1, x_401); +return x_402; +} +} +} +block_419: +{ +lean_object* x_405; lean_object* x_406; +lean_dec(x_404); +x_405 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_406 = lean_ctor_get(x_405, 0); +lean_inc(x_406); +if (lean_obj_tag(x_406) == 0) +{ +lean_object* x_407; lean_object* x_408; +x_407 = lean_ctor_get(x_405, 1); +lean_inc(x_407); +lean_dec(x_405); +lean_inc(x_5); +lean_inc(x_2); +x_408 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_407); +if (lean_obj_tag(x_408) == 0) +{ +lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; +x_409 = lean_ctor_get(x_408, 0); +lean_inc(x_409); +x_410 = lean_ctor_get(x_408, 1); +lean_inc(x_410); +lean_dec(x_408); +lean_inc(x_409); +x_411 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_409, x_5, x_410); +x_412 = lean_ctor_get(x_411, 1); +lean_inc(x_412); +lean_dec(x_411); +x_388 = x_409; +x_389 = x_412; +goto block_403; +} +else +{ +uint8_t x_413; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_413 = !lean_is_exclusive(x_408); +if (x_413 == 0) +{ +return x_408; +} +else +{ +lean_object* x_414; lean_object* x_415; lean_object* x_416; +x_414 = lean_ctor_get(x_408, 0); +x_415 = lean_ctor_get(x_408, 1); +lean_inc(x_415); +lean_inc(x_414); +lean_dec(x_408); +x_416 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_416, 0, x_414); +lean_ctor_set(x_416, 1, x_415); +return x_416; +} +} +} +else +{ +lean_object* x_417; lean_object* x_418; +lean_dec(x_2); +x_417 = lean_ctor_get(x_405, 1); +lean_inc(x_417); +lean_dec(x_405); +x_418 = lean_ctor_get(x_406, 0); +lean_inc(x_418); +lean_dec(x_406); +x_388 = x_418; +x_389 = x_417; +goto block_403; +} +} +block_475: +{ +lean_object* x_422; lean_object* x_423; +x_422 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_423 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_422, x_3, x_5, x_421); +if (lean_obj_tag(x_423) == 0) +{ +uint8_t x_424; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_424 = !lean_is_exclusive(x_423); +if (x_424 == 0) +{ +lean_object* x_425; lean_object* x_426; +x_425 = lean_ctor_get(x_423, 0); +x_426 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_425, x_425, x_422, x_420); +lean_dec(x_425); +lean_ctor_set(x_423, 0, x_426); +return x_423; +} +else +{ +lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; +x_427 = lean_ctor_get(x_423, 0); +x_428 = lean_ctor_get(x_423, 1); +lean_inc(x_428); +lean_inc(x_427); +lean_dec(x_423); +x_429 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_427, x_427, x_422, x_420); +lean_dec(x_427); +x_430 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_430, 0, x_429); +lean_ctor_set(x_430, 1, x_428); +return x_430; +} +} +else +{ +lean_object* x_431; +x_431 = lean_ctor_get(x_423, 0); +lean_inc(x_431); +if (lean_obj_tag(x_431) == 2) +{ +lean_object* x_432; lean_object* x_433; lean_object* x_434; +x_432 = lean_ctor_get(x_423, 1); +lean_inc(x_432); +lean_dec(x_423); +x_433 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_433, 0, x_1); +lean_inc(x_5); +x_434 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_433, x_5, x_432); +if (lean_obj_tag(x_434) == 0) +{ +lean_object* x_435; lean_object* x_436; lean_object* x_437; +x_435 = lean_ctor_get(x_434, 0); +lean_inc(x_435); +x_436 = lean_ctor_get(x_434, 1); +lean_inc(x_436); +lean_dec(x_434); +lean_inc(x_5); +x_437 = l_Lean_Meta_CheckAssignment_check___main(x_435, x_5, x_436); +if (lean_obj_tag(x_437) == 0) +{ +lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; +x_438 = lean_ctor_get(x_437, 0); +lean_inc(x_438); +x_439 = lean_ctor_get(x_437, 1); +lean_inc(x_439); +lean_dec(x_437); +x_440 = lean_ctor_get(x_5, 2); +lean_inc(x_440); +x_441 = lean_ctor_get(x_440, 1); +lean_inc(x_441); +x_442 = lean_ctor_get(x_440, 4); +lean_inc(x_442); +lean_dec(x_440); +x_443 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_441, x_442, x_438, x_5, x_439); +x_444 = lean_ctor_get(x_443, 0); +lean_inc(x_444); +x_445 = lean_ctor_get(x_443, 1); +lean_inc(x_445); +lean_dec(x_443); +x_446 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_444); +x_447 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_447, 0, x_420); +lean_closure_set(x_447, 1, x_446); +lean_closure_set(x_447, 2, x_444); +x_448 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_447, x_5, x_445); +if (lean_obj_tag(x_448) == 0) +{ +lean_object* x_449; uint8_t x_450; +x_449 = lean_ctor_get(x_448, 0); +lean_inc(x_449); +x_450 = lean_unbox(x_449); +lean_dec(x_449); +if (x_450 == 0) +{ +uint8_t x_451; +lean_dec(x_444); +x_451 = !lean_is_exclusive(x_448); +if (x_451 == 0) +{ +lean_object* x_452; +x_452 = lean_ctor_get(x_448, 0); +lean_dec(x_452); +lean_ctor_set_tag(x_448, 1); +lean_ctor_set(x_448, 0, x_431); +return x_448; +} +else +{ +lean_object* x_453; lean_object* x_454; +x_453 = lean_ctor_get(x_448, 1); +lean_inc(x_453); +lean_dec(x_448); +x_454 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_454, 0, x_431); +lean_ctor_set(x_454, 1, x_453); +return x_454; +} +} +else +{ +uint8_t x_455; +lean_dec(x_431); +x_455 = !lean_is_exclusive(x_448); +if (x_455 == 0) +{ +lean_object* x_456; +x_456 = lean_ctor_get(x_448, 0); +lean_dec(x_456); +lean_ctor_set(x_448, 0, x_444); +return x_448; +} +else +{ +lean_object* x_457; lean_object* x_458; +x_457 = lean_ctor_get(x_448, 1); +lean_inc(x_457); +lean_dec(x_448); +x_458 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_458, 0, x_444); +lean_ctor_set(x_458, 1, x_457); +return x_458; +} +} +} +else +{ +uint8_t x_459; +lean_dec(x_444); +lean_dec(x_431); +x_459 = !lean_is_exclusive(x_448); +if (x_459 == 0) +{ +return x_448; +} +else +{ +lean_object* x_460; lean_object* x_461; lean_object* x_462; +x_460 = lean_ctor_get(x_448, 0); +x_461 = lean_ctor_get(x_448, 1); +lean_inc(x_461); +lean_inc(x_460); +lean_dec(x_448); +x_462 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_462, 0, x_460); +lean_ctor_set(x_462, 1, x_461); +return x_462; +} +} +} +else +{ +uint8_t x_463; +lean_dec(x_431); +lean_dec(x_420); +lean_dec(x_5); +lean_dec(x_3); +x_463 = !lean_is_exclusive(x_437); +if (x_463 == 0) +{ +return x_437; +} +else +{ +lean_object* x_464; lean_object* x_465; lean_object* x_466; +x_464 = lean_ctor_get(x_437, 0); +x_465 = lean_ctor_get(x_437, 1); +lean_inc(x_465); +lean_inc(x_464); +lean_dec(x_437); +x_466 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_466, 0, x_464); +lean_ctor_set(x_466, 1, x_465); +return x_466; +} +} +} +else +{ +uint8_t x_467; +lean_dec(x_431); +lean_dec(x_420); +lean_dec(x_5); +lean_dec(x_3); +x_467 = !lean_is_exclusive(x_434); +if (x_467 == 0) +{ +return x_434; +} +else +{ +lean_object* x_468; lean_object* x_469; lean_object* x_470; +x_468 = lean_ctor_get(x_434, 0); +x_469 = lean_ctor_get(x_434, 1); +lean_inc(x_469); +lean_inc(x_468); +lean_dec(x_434); +x_470 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_470, 0, x_468); +lean_ctor_set(x_470, 1, x_469); +return x_470; +} +} +} +else +{ +uint8_t x_471; +lean_dec(x_420); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_471 = !lean_is_exclusive(x_423); +if (x_471 == 0) +{ +lean_object* x_472; +x_472 = lean_ctor_get(x_423, 0); +lean_dec(x_472); +return x_423; +} +else +{ +lean_object* x_473; lean_object* x_474; +x_473 = lean_ctor_get(x_423, 1); +lean_inc(x_473); +lean_dec(x_423); +x_474 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_474, 0, x_431); +lean_ctor_set(x_474, 1, x_473); +return x_474; +} +} +} +} +} +case 4: +{ +lean_object* x_515; lean_object* x_516; lean_object* x_531; lean_object* x_547; lean_object* x_548; uint8_t x_603; +lean_dec(x_4); +x_603 = l_Lean_Expr_isMVar(x_2); +if (x_603 == 0) +{ +uint8_t x_604; +lean_dec(x_1); +x_604 = l_Lean_Expr_hasExprMVar(x_2); +if (x_604 == 0) +{ +uint8_t x_605; +x_605 = l_Lean_Expr_hasFVar(x_2); +if (x_605 == 0) +{ +x_515 = x_2; +x_516 = x_6; +goto block_530; +} +else +{ +lean_object* x_606; +x_606 = lean_box(0); +x_531 = x_606; +goto block_546; +} +} +else +{ +lean_object* x_607; +x_607 = lean_box(0); +x_531 = x_607; +goto block_546; +} +} +else +{ +lean_object* x_608; lean_object* x_609; uint8_t x_610; +x_608 = lean_ctor_get(x_5, 0); +lean_inc(x_608); +x_609 = lean_ctor_get(x_608, 0); +lean_inc(x_609); +lean_dec(x_608); +x_610 = lean_ctor_get_uint8(x_609, sizeof(void*)*1 + 1); +lean_dec(x_609); +if (x_610 == 0) +{ +uint8_t x_611; +lean_dec(x_1); +x_611 = l_Lean_Expr_hasExprMVar(x_2); +if (x_611 == 0) +{ +uint8_t x_612; +x_612 = l_Lean_Expr_hasFVar(x_2); +if (x_612 == 0) +{ +x_515 = x_2; +x_516 = x_6; +goto block_530; +} +else +{ +lean_object* x_613; +x_613 = lean_box(0); +x_531 = x_613; +goto block_546; +} +} +else +{ +lean_object* x_614; +x_614 = lean_box(0); +x_531 = x_614; +goto block_546; +} +} +else +{ +lean_object* x_615; lean_object* x_616; uint8_t x_617; +x_615 = lean_array_get_size(x_3); +x_616 = lean_unsigned_to_nat(0u); +x_617 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_615, x_616); +lean_dec(x_615); +if (x_617 == 0) +{ +lean_object* x_618; uint8_t x_634; +x_634 = l_Lean_Expr_hasExprMVar(x_2); +if (x_634 == 0) +{ +uint8_t x_635; +x_635 = l_Lean_Expr_hasFVar(x_2); +if (x_635 == 0) +{ +x_547 = x_2; +x_548 = x_6; +goto block_602; +} +else +{ +lean_object* x_636; +x_636 = lean_box(0); +x_618 = x_636; +goto block_633; +} +} +else +{ +lean_object* x_637; +x_637 = lean_box(0); +x_618 = x_637; +goto block_633; +} +block_633: +{ +lean_object* x_619; lean_object* x_620; +lean_dec(x_618); +x_619 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_620 = lean_ctor_get(x_619, 0); +lean_inc(x_620); +if (lean_obj_tag(x_620) == 0) +{ +lean_object* x_621; lean_object* x_622; +x_621 = lean_ctor_get(x_619, 1); +lean_inc(x_621); +lean_dec(x_619); +lean_inc(x_5); +lean_inc(x_2); +x_622 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_621); +if (lean_obj_tag(x_622) == 0) +{ +lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; +x_623 = lean_ctor_get(x_622, 0); +lean_inc(x_623); +x_624 = lean_ctor_get(x_622, 1); +lean_inc(x_624); +lean_dec(x_622); +lean_inc(x_623); +x_625 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_623, x_5, x_624); +x_626 = lean_ctor_get(x_625, 1); +lean_inc(x_626); +lean_dec(x_625); +x_547 = x_623; +x_548 = x_626; +goto block_602; +} +else +{ +uint8_t x_627; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_627 = !lean_is_exclusive(x_622); +if (x_627 == 0) +{ +return x_622; +} +else +{ +lean_object* x_628; lean_object* x_629; lean_object* x_630; +x_628 = lean_ctor_get(x_622, 0); +x_629 = lean_ctor_get(x_622, 1); +lean_inc(x_629); +lean_inc(x_628); +lean_dec(x_622); +x_630 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_630, 0, x_628); +lean_ctor_set(x_630, 1, x_629); +return x_630; +} +} +} +else +{ +lean_object* x_631; lean_object* x_632; +lean_dec(x_2); +x_631 = lean_ctor_get(x_619, 1); +lean_inc(x_631); +lean_dec(x_619); +x_632 = lean_ctor_get(x_620, 0); +lean_inc(x_632); +lean_dec(x_620); +x_547 = x_632; +x_548 = x_631; +goto block_602; +} +} +} +else +{ +uint8_t x_638; +lean_dec(x_1); +x_638 = l_Lean_Expr_hasExprMVar(x_2); +if (x_638 == 0) +{ +uint8_t x_639; +x_639 = l_Lean_Expr_hasFVar(x_2); +if (x_639 == 0) +{ +x_515 = x_2; +x_516 = x_6; +goto block_530; +} +else +{ +lean_object* x_640; +x_640 = lean_box(0); +x_531 = x_640; +goto block_546; +} +} +else +{ +lean_object* x_641; +x_641 = lean_box(0); +x_531 = x_641; +goto block_546; +} +} +} +} +block_530: +{ +lean_object* x_517; lean_object* x_518; +x_517 = lean_unsigned_to_nat(0u); +x_518 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_517, x_3, x_5, x_516); +if (lean_obj_tag(x_518) == 0) +{ +uint8_t x_519; +x_519 = !lean_is_exclusive(x_518); +if (x_519 == 0) +{ +lean_object* x_520; lean_object* x_521; +x_520 = lean_ctor_get(x_518, 0); +x_521 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_520, x_520, x_517, x_515); +lean_dec(x_520); +lean_ctor_set(x_518, 0, x_521); +return x_518; +} +else +{ +lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; +x_522 = lean_ctor_get(x_518, 0); +x_523 = lean_ctor_get(x_518, 1); +lean_inc(x_523); +lean_inc(x_522); +lean_dec(x_518); +x_524 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_522, x_522, x_517, x_515); +lean_dec(x_522); +x_525 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_525, 0, x_524); +lean_ctor_set(x_525, 1, x_523); +return x_525; +} +} +else +{ +uint8_t x_526; +lean_dec(x_515); +x_526 = !lean_is_exclusive(x_518); +if (x_526 == 0) +{ +return x_518; +} +else +{ +lean_object* x_527; lean_object* x_528; lean_object* x_529; +x_527 = lean_ctor_get(x_518, 0); +x_528 = lean_ctor_get(x_518, 1); +lean_inc(x_528); +lean_inc(x_527); +lean_dec(x_518); +x_529 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_529, 0, x_527); +lean_ctor_set(x_529, 1, x_528); +return x_529; +} +} +} +block_546: +{ +lean_object* x_532; lean_object* x_533; +lean_dec(x_531); +x_532 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_533 = lean_ctor_get(x_532, 0); +lean_inc(x_533); +if (lean_obj_tag(x_533) == 0) +{ +lean_object* x_534; lean_object* x_535; +x_534 = lean_ctor_get(x_532, 1); +lean_inc(x_534); +lean_dec(x_532); +lean_inc(x_5); +lean_inc(x_2); +x_535 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_534); +if (lean_obj_tag(x_535) == 0) +{ +lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; +x_536 = lean_ctor_get(x_535, 0); +lean_inc(x_536); +x_537 = lean_ctor_get(x_535, 1); +lean_inc(x_537); +lean_dec(x_535); +lean_inc(x_536); +x_538 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_536, x_5, x_537); +x_539 = lean_ctor_get(x_538, 1); +lean_inc(x_539); +lean_dec(x_538); +x_515 = x_536; +x_516 = x_539; +goto block_530; +} +else +{ +uint8_t x_540; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_540 = !lean_is_exclusive(x_535); +if (x_540 == 0) +{ +return x_535; +} +else +{ +lean_object* x_541; lean_object* x_542; lean_object* x_543; +x_541 = lean_ctor_get(x_535, 0); +x_542 = lean_ctor_get(x_535, 1); +lean_inc(x_542); +lean_inc(x_541); +lean_dec(x_535); +x_543 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_543, 0, x_541); +lean_ctor_set(x_543, 1, x_542); +return x_543; +} +} +} +else +{ +lean_object* x_544; lean_object* x_545; +lean_dec(x_2); +x_544 = lean_ctor_get(x_532, 1); +lean_inc(x_544); +lean_dec(x_532); +x_545 = lean_ctor_get(x_533, 0); +lean_inc(x_545); +lean_dec(x_533); +x_515 = x_545; +x_516 = x_544; +goto block_530; +} +} +block_602: +{ +lean_object* x_549; lean_object* x_550; +x_549 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_550 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_549, x_3, x_5, x_548); +if (lean_obj_tag(x_550) == 0) +{ +uint8_t x_551; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_551 = !lean_is_exclusive(x_550); +if (x_551 == 0) +{ +lean_object* x_552; lean_object* x_553; +x_552 = lean_ctor_get(x_550, 0); +x_553 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_552, x_552, x_549, x_547); +lean_dec(x_552); +lean_ctor_set(x_550, 0, x_553); +return x_550; +} +else +{ +lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; +x_554 = lean_ctor_get(x_550, 0); +x_555 = lean_ctor_get(x_550, 1); +lean_inc(x_555); +lean_inc(x_554); +lean_dec(x_550); +x_556 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_554, x_554, x_549, x_547); +lean_dec(x_554); +x_557 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_557, 0, x_556); +lean_ctor_set(x_557, 1, x_555); +return x_557; +} +} +else +{ +lean_object* x_558; +x_558 = lean_ctor_get(x_550, 0); +lean_inc(x_558); +if (lean_obj_tag(x_558) == 2) +{ +lean_object* x_559; lean_object* x_560; lean_object* x_561; +x_559 = lean_ctor_get(x_550, 1); +lean_inc(x_559); +lean_dec(x_550); +x_560 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_560, 0, x_1); +lean_inc(x_5); +x_561 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_560, x_5, x_559); +if (lean_obj_tag(x_561) == 0) +{ +lean_object* x_562; lean_object* x_563; lean_object* x_564; +x_562 = lean_ctor_get(x_561, 0); +lean_inc(x_562); +x_563 = lean_ctor_get(x_561, 1); +lean_inc(x_563); +lean_dec(x_561); +lean_inc(x_5); +x_564 = l_Lean_Meta_CheckAssignment_check___main(x_562, x_5, x_563); +if (lean_obj_tag(x_564) == 0) +{ +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; +x_565 = lean_ctor_get(x_564, 0); +lean_inc(x_565); +x_566 = lean_ctor_get(x_564, 1); +lean_inc(x_566); +lean_dec(x_564); +x_567 = lean_ctor_get(x_5, 2); +lean_inc(x_567); +x_568 = lean_ctor_get(x_567, 1); +lean_inc(x_568); +x_569 = lean_ctor_get(x_567, 4); +lean_inc(x_569); +lean_dec(x_567); +x_570 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_568, x_569, x_565, x_5, x_566); +x_571 = lean_ctor_get(x_570, 0); +lean_inc(x_571); +x_572 = lean_ctor_get(x_570, 1); +lean_inc(x_572); +lean_dec(x_570); +x_573 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_571); +x_574 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_574, 0, x_547); +lean_closure_set(x_574, 1, x_573); +lean_closure_set(x_574, 2, x_571); +x_575 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_574, x_5, x_572); +if (lean_obj_tag(x_575) == 0) +{ +lean_object* x_576; uint8_t x_577; +x_576 = lean_ctor_get(x_575, 0); +lean_inc(x_576); +x_577 = lean_unbox(x_576); +lean_dec(x_576); +if (x_577 == 0) +{ +uint8_t x_578; +lean_dec(x_571); +x_578 = !lean_is_exclusive(x_575); +if (x_578 == 0) +{ +lean_object* x_579; +x_579 = lean_ctor_get(x_575, 0); +lean_dec(x_579); +lean_ctor_set_tag(x_575, 1); +lean_ctor_set(x_575, 0, x_558); +return x_575; +} +else +{ +lean_object* x_580; lean_object* x_581; +x_580 = lean_ctor_get(x_575, 1); +lean_inc(x_580); +lean_dec(x_575); +x_581 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_581, 0, x_558); +lean_ctor_set(x_581, 1, x_580); +return x_581; +} +} +else +{ +uint8_t x_582; +lean_dec(x_558); +x_582 = !lean_is_exclusive(x_575); +if (x_582 == 0) +{ +lean_object* x_583; +x_583 = lean_ctor_get(x_575, 0); +lean_dec(x_583); +lean_ctor_set(x_575, 0, x_571); +return x_575; +} +else +{ +lean_object* x_584; lean_object* x_585; +x_584 = lean_ctor_get(x_575, 1); +lean_inc(x_584); +lean_dec(x_575); +x_585 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_585, 0, x_571); +lean_ctor_set(x_585, 1, x_584); +return x_585; +} +} +} +else +{ +uint8_t x_586; +lean_dec(x_571); +lean_dec(x_558); +x_586 = !lean_is_exclusive(x_575); +if (x_586 == 0) +{ +return x_575; +} +else +{ +lean_object* x_587; lean_object* x_588; lean_object* x_589; +x_587 = lean_ctor_get(x_575, 0); +x_588 = lean_ctor_get(x_575, 1); +lean_inc(x_588); +lean_inc(x_587); +lean_dec(x_575); +x_589 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_589, 0, x_587); +lean_ctor_set(x_589, 1, x_588); +return x_589; +} +} +} +else +{ +uint8_t x_590; +lean_dec(x_558); +lean_dec(x_547); +lean_dec(x_5); +lean_dec(x_3); +x_590 = !lean_is_exclusive(x_564); +if (x_590 == 0) +{ +return x_564; +} +else +{ +lean_object* x_591; lean_object* x_592; lean_object* x_593; +x_591 = lean_ctor_get(x_564, 0); +x_592 = lean_ctor_get(x_564, 1); +lean_inc(x_592); +lean_inc(x_591); +lean_dec(x_564); +x_593 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_593, 0, x_591); +lean_ctor_set(x_593, 1, x_592); +return x_593; +} +} +} +else +{ +uint8_t x_594; +lean_dec(x_558); +lean_dec(x_547); +lean_dec(x_5); +lean_dec(x_3); +x_594 = !lean_is_exclusive(x_561); +if (x_594 == 0) +{ +return x_561; +} +else +{ +lean_object* x_595; lean_object* x_596; lean_object* x_597; +x_595 = lean_ctor_get(x_561, 0); +x_596 = lean_ctor_get(x_561, 1); +lean_inc(x_596); +lean_inc(x_595); +lean_dec(x_561); +x_597 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_597, 0, x_595); +lean_ctor_set(x_597, 1, x_596); +return x_597; +} +} +} +else +{ +uint8_t x_598; +lean_dec(x_547); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_598 = !lean_is_exclusive(x_550); +if (x_598 == 0) +{ +lean_object* x_599; +x_599 = lean_ctor_get(x_550, 0); +lean_dec(x_599); +return x_550; +} +else +{ +lean_object* x_600; lean_object* x_601; +x_600 = lean_ctor_get(x_550, 1); +lean_inc(x_600); +lean_dec(x_550); +x_601 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_601, 0, x_558); +lean_ctor_set(x_601, 1, x_600); +return x_601; +} +} +} +} +} +case 5: +{ +lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; +x_642 = lean_ctor_get(x_2, 0); +lean_inc(x_642); +x_643 = lean_ctor_get(x_2, 1); +lean_inc(x_643); +lean_dec(x_2); +x_644 = lean_array_set(x_3, x_4, x_643); +x_645 = lean_unsigned_to_nat(1u); +x_646 = lean_nat_sub(x_4, x_645); +lean_dec(x_4); +x_2 = x_642; +x_3 = x_644; +x_4 = x_646; +goto _start; +} +case 6: +{ +lean_object* x_648; lean_object* x_649; lean_object* x_664; lean_object* x_680; lean_object* x_681; uint8_t x_736; +lean_dec(x_4); +x_736 = l_Lean_Expr_isMVar(x_2); +if (x_736 == 0) +{ +uint8_t x_737; +lean_dec(x_1); +x_737 = l_Lean_Expr_hasExprMVar(x_2); +if (x_737 == 0) +{ +uint8_t x_738; +x_738 = l_Lean_Expr_hasFVar(x_2); +if (x_738 == 0) +{ +x_648 = x_2; +x_649 = x_6; +goto block_663; +} +else +{ +lean_object* x_739; +x_739 = lean_box(0); +x_664 = x_739; +goto block_679; +} +} +else +{ +lean_object* x_740; +x_740 = lean_box(0); +x_664 = x_740; +goto block_679; +} +} +else +{ +lean_object* x_741; lean_object* x_742; uint8_t x_743; +x_741 = lean_ctor_get(x_5, 0); +lean_inc(x_741); +x_742 = lean_ctor_get(x_741, 0); +lean_inc(x_742); +lean_dec(x_741); +x_743 = lean_ctor_get_uint8(x_742, sizeof(void*)*1 + 1); +lean_dec(x_742); +if (x_743 == 0) +{ +uint8_t x_744; +lean_dec(x_1); +x_744 = l_Lean_Expr_hasExprMVar(x_2); +if (x_744 == 0) +{ +uint8_t x_745; +x_745 = l_Lean_Expr_hasFVar(x_2); +if (x_745 == 0) +{ +x_648 = x_2; +x_649 = x_6; +goto block_663; +} +else +{ +lean_object* x_746; +x_746 = lean_box(0); +x_664 = x_746; +goto block_679; +} +} +else +{ +lean_object* x_747; +x_747 = lean_box(0); +x_664 = x_747; +goto block_679; +} +} +else +{ +lean_object* x_748; lean_object* x_749; uint8_t x_750; +x_748 = lean_array_get_size(x_3); +x_749 = lean_unsigned_to_nat(0u); +x_750 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_748, x_749); +lean_dec(x_748); +if (x_750 == 0) +{ +lean_object* x_751; uint8_t x_767; +x_767 = l_Lean_Expr_hasExprMVar(x_2); +if (x_767 == 0) +{ +uint8_t x_768; +x_768 = l_Lean_Expr_hasFVar(x_2); +if (x_768 == 0) +{ +x_680 = x_2; +x_681 = x_6; +goto block_735; +} +else +{ +lean_object* x_769; +x_769 = lean_box(0); +x_751 = x_769; +goto block_766; +} +} +else +{ +lean_object* x_770; +x_770 = lean_box(0); +x_751 = x_770; +goto block_766; +} +block_766: +{ +lean_object* x_752; lean_object* x_753; +lean_dec(x_751); +x_752 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_753 = lean_ctor_get(x_752, 0); +lean_inc(x_753); +if (lean_obj_tag(x_753) == 0) +{ +lean_object* x_754; lean_object* x_755; +x_754 = lean_ctor_get(x_752, 1); +lean_inc(x_754); +lean_dec(x_752); +lean_inc(x_5); +lean_inc(x_2); +x_755 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_754); +if (lean_obj_tag(x_755) == 0) +{ +lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; +x_756 = lean_ctor_get(x_755, 0); +lean_inc(x_756); +x_757 = lean_ctor_get(x_755, 1); +lean_inc(x_757); +lean_dec(x_755); +lean_inc(x_756); +x_758 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_756, x_5, x_757); +x_759 = lean_ctor_get(x_758, 1); +lean_inc(x_759); +lean_dec(x_758); +x_680 = x_756; +x_681 = x_759; +goto block_735; +} +else +{ +uint8_t x_760; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_760 = !lean_is_exclusive(x_755); +if (x_760 == 0) +{ +return x_755; +} +else +{ +lean_object* x_761; lean_object* x_762; lean_object* x_763; +x_761 = lean_ctor_get(x_755, 0); +x_762 = lean_ctor_get(x_755, 1); +lean_inc(x_762); +lean_inc(x_761); +lean_dec(x_755); +x_763 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_763, 0, x_761); +lean_ctor_set(x_763, 1, x_762); +return x_763; +} +} +} +else +{ +lean_object* x_764; lean_object* x_765; +lean_dec(x_2); +x_764 = lean_ctor_get(x_752, 1); +lean_inc(x_764); +lean_dec(x_752); +x_765 = lean_ctor_get(x_753, 0); +lean_inc(x_765); +lean_dec(x_753); +x_680 = x_765; +x_681 = x_764; +goto block_735; +} +} +} +else +{ +uint8_t x_771; +lean_dec(x_1); +x_771 = l_Lean_Expr_hasExprMVar(x_2); +if (x_771 == 0) +{ +uint8_t x_772; +x_772 = l_Lean_Expr_hasFVar(x_2); +if (x_772 == 0) +{ +x_648 = x_2; +x_649 = x_6; +goto block_663; +} +else +{ +lean_object* x_773; +x_773 = lean_box(0); +x_664 = x_773; +goto block_679; +} +} +else +{ +lean_object* x_774; +x_774 = lean_box(0); +x_664 = x_774; +goto block_679; +} +} +} +} +block_663: +{ +lean_object* x_650; lean_object* x_651; +x_650 = lean_unsigned_to_nat(0u); +x_651 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_650, x_3, x_5, x_649); +if (lean_obj_tag(x_651) == 0) +{ +uint8_t x_652; +x_652 = !lean_is_exclusive(x_651); +if (x_652 == 0) +{ +lean_object* x_653; lean_object* x_654; +x_653 = lean_ctor_get(x_651, 0); +x_654 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_653, x_653, x_650, x_648); +lean_dec(x_653); +lean_ctor_set(x_651, 0, x_654); +return x_651; +} +else +{ +lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; +x_655 = lean_ctor_get(x_651, 0); +x_656 = lean_ctor_get(x_651, 1); +lean_inc(x_656); +lean_inc(x_655); +lean_dec(x_651); +x_657 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_655, x_655, x_650, x_648); +lean_dec(x_655); +x_658 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_658, 0, x_657); +lean_ctor_set(x_658, 1, x_656); +return x_658; +} +} +else +{ +uint8_t x_659; +lean_dec(x_648); +x_659 = !lean_is_exclusive(x_651); +if (x_659 == 0) +{ +return x_651; +} +else +{ +lean_object* x_660; lean_object* x_661; lean_object* x_662; +x_660 = lean_ctor_get(x_651, 0); +x_661 = lean_ctor_get(x_651, 1); +lean_inc(x_661); +lean_inc(x_660); +lean_dec(x_651); +x_662 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_662, 0, x_660); +lean_ctor_set(x_662, 1, x_661); +return x_662; +} +} +} +block_679: +{ +lean_object* x_665; lean_object* x_666; +lean_dec(x_664); +x_665 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_666 = lean_ctor_get(x_665, 0); +lean_inc(x_666); +if (lean_obj_tag(x_666) == 0) +{ +lean_object* x_667; lean_object* x_668; +x_667 = lean_ctor_get(x_665, 1); +lean_inc(x_667); +lean_dec(x_665); +lean_inc(x_5); +lean_inc(x_2); +x_668 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_667); +if (lean_obj_tag(x_668) == 0) +{ +lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; +x_669 = lean_ctor_get(x_668, 0); +lean_inc(x_669); +x_670 = lean_ctor_get(x_668, 1); +lean_inc(x_670); +lean_dec(x_668); +lean_inc(x_669); +x_671 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_669, x_5, x_670); +x_672 = lean_ctor_get(x_671, 1); +lean_inc(x_672); +lean_dec(x_671); +x_648 = x_669; +x_649 = x_672; +goto block_663; +} +else +{ +uint8_t x_673; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_673 = !lean_is_exclusive(x_668); +if (x_673 == 0) +{ +return x_668; +} +else +{ +lean_object* x_674; lean_object* x_675; lean_object* x_676; +x_674 = lean_ctor_get(x_668, 0); +x_675 = lean_ctor_get(x_668, 1); +lean_inc(x_675); +lean_inc(x_674); +lean_dec(x_668); +x_676 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_676, 0, x_674); +lean_ctor_set(x_676, 1, x_675); +return x_676; +} +} +} +else +{ +lean_object* x_677; lean_object* x_678; +lean_dec(x_2); +x_677 = lean_ctor_get(x_665, 1); +lean_inc(x_677); +lean_dec(x_665); +x_678 = lean_ctor_get(x_666, 0); +lean_inc(x_678); +lean_dec(x_666); +x_648 = x_678; +x_649 = x_677; +goto block_663; +} +} +block_735: +{ +lean_object* x_682; lean_object* x_683; +x_682 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_683 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_682, x_3, x_5, x_681); +if (lean_obj_tag(x_683) == 0) +{ +uint8_t x_684; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_684 = !lean_is_exclusive(x_683); +if (x_684 == 0) +{ +lean_object* x_685; lean_object* x_686; +x_685 = lean_ctor_get(x_683, 0); +x_686 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_685, x_685, x_682, x_680); +lean_dec(x_685); +lean_ctor_set(x_683, 0, x_686); +return x_683; +} +else +{ +lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; +x_687 = lean_ctor_get(x_683, 0); +x_688 = lean_ctor_get(x_683, 1); +lean_inc(x_688); +lean_inc(x_687); +lean_dec(x_683); +x_689 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_687, x_687, x_682, x_680); +lean_dec(x_687); +x_690 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_690, 0, x_689); +lean_ctor_set(x_690, 1, x_688); +return x_690; +} +} +else +{ +lean_object* x_691; +x_691 = lean_ctor_get(x_683, 0); +lean_inc(x_691); +if (lean_obj_tag(x_691) == 2) +{ +lean_object* x_692; lean_object* x_693; lean_object* x_694; +x_692 = lean_ctor_get(x_683, 1); +lean_inc(x_692); +lean_dec(x_683); +x_693 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_693, 0, x_1); +lean_inc(x_5); +x_694 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_693, x_5, x_692); +if (lean_obj_tag(x_694) == 0) +{ +lean_object* x_695; lean_object* x_696; lean_object* x_697; +x_695 = lean_ctor_get(x_694, 0); +lean_inc(x_695); +x_696 = lean_ctor_get(x_694, 1); +lean_inc(x_696); +lean_dec(x_694); +lean_inc(x_5); +x_697 = l_Lean_Meta_CheckAssignment_check___main(x_695, x_5, x_696); +if (lean_obj_tag(x_697) == 0) +{ +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; +x_698 = lean_ctor_get(x_697, 0); +lean_inc(x_698); +x_699 = lean_ctor_get(x_697, 1); +lean_inc(x_699); +lean_dec(x_697); +x_700 = lean_ctor_get(x_5, 2); +lean_inc(x_700); +x_701 = lean_ctor_get(x_700, 1); +lean_inc(x_701); +x_702 = lean_ctor_get(x_700, 4); +lean_inc(x_702); +lean_dec(x_700); +x_703 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_701, x_702, x_698, x_5, x_699); +x_704 = lean_ctor_get(x_703, 0); +lean_inc(x_704); +x_705 = lean_ctor_get(x_703, 1); +lean_inc(x_705); +lean_dec(x_703); +x_706 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_704); +x_707 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_707, 0, x_680); +lean_closure_set(x_707, 1, x_706); +lean_closure_set(x_707, 2, x_704); +x_708 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_707, x_5, x_705); +if (lean_obj_tag(x_708) == 0) +{ +lean_object* x_709; uint8_t x_710; +x_709 = lean_ctor_get(x_708, 0); +lean_inc(x_709); +x_710 = lean_unbox(x_709); +lean_dec(x_709); +if (x_710 == 0) +{ +uint8_t x_711; +lean_dec(x_704); +x_711 = !lean_is_exclusive(x_708); +if (x_711 == 0) +{ +lean_object* x_712; +x_712 = lean_ctor_get(x_708, 0); +lean_dec(x_712); +lean_ctor_set_tag(x_708, 1); +lean_ctor_set(x_708, 0, x_691); +return x_708; +} +else +{ +lean_object* x_713; lean_object* x_714; +x_713 = lean_ctor_get(x_708, 1); +lean_inc(x_713); +lean_dec(x_708); +x_714 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_714, 0, x_691); +lean_ctor_set(x_714, 1, x_713); +return x_714; +} +} +else +{ +uint8_t x_715; +lean_dec(x_691); +x_715 = !lean_is_exclusive(x_708); +if (x_715 == 0) +{ +lean_object* x_716; +x_716 = lean_ctor_get(x_708, 0); +lean_dec(x_716); +lean_ctor_set(x_708, 0, x_704); +return x_708; +} +else +{ +lean_object* x_717; lean_object* x_718; +x_717 = lean_ctor_get(x_708, 1); +lean_inc(x_717); +lean_dec(x_708); +x_718 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_718, 0, x_704); +lean_ctor_set(x_718, 1, x_717); +return x_718; +} +} +} +else +{ +uint8_t x_719; +lean_dec(x_704); +lean_dec(x_691); +x_719 = !lean_is_exclusive(x_708); +if (x_719 == 0) +{ +return x_708; +} +else +{ +lean_object* x_720; lean_object* x_721; lean_object* x_722; +x_720 = lean_ctor_get(x_708, 0); +x_721 = lean_ctor_get(x_708, 1); +lean_inc(x_721); +lean_inc(x_720); +lean_dec(x_708); +x_722 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_722, 0, x_720); +lean_ctor_set(x_722, 1, x_721); +return x_722; +} +} +} +else +{ +uint8_t x_723; +lean_dec(x_691); +lean_dec(x_680); +lean_dec(x_5); +lean_dec(x_3); +x_723 = !lean_is_exclusive(x_697); +if (x_723 == 0) +{ +return x_697; +} +else +{ +lean_object* x_724; lean_object* x_725; lean_object* x_726; +x_724 = lean_ctor_get(x_697, 0); +x_725 = lean_ctor_get(x_697, 1); +lean_inc(x_725); +lean_inc(x_724); +lean_dec(x_697); +x_726 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_726, 0, x_724); +lean_ctor_set(x_726, 1, x_725); +return x_726; +} +} +} +else +{ +uint8_t x_727; +lean_dec(x_691); +lean_dec(x_680); +lean_dec(x_5); +lean_dec(x_3); +x_727 = !lean_is_exclusive(x_694); +if (x_727 == 0) +{ +return x_694; +} +else +{ +lean_object* x_728; lean_object* x_729; lean_object* x_730; +x_728 = lean_ctor_get(x_694, 0); +x_729 = lean_ctor_get(x_694, 1); +lean_inc(x_729); +lean_inc(x_728); +lean_dec(x_694); +x_730 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_730, 0, x_728); +lean_ctor_set(x_730, 1, x_729); +return x_730; +} +} +} +else +{ +uint8_t x_731; +lean_dec(x_680); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_731 = !lean_is_exclusive(x_683); +if (x_731 == 0) +{ +lean_object* x_732; +x_732 = lean_ctor_get(x_683, 0); +lean_dec(x_732); +return x_683; +} +else +{ +lean_object* x_733; lean_object* x_734; +x_733 = lean_ctor_get(x_683, 1); +lean_inc(x_733); +lean_dec(x_683); +x_734 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_734, 0, x_691); +lean_ctor_set(x_734, 1, x_733); +return x_734; +} +} +} +} +} +case 7: +{ +lean_object* x_775; lean_object* x_776; lean_object* x_791; lean_object* x_807; lean_object* x_808; uint8_t x_863; +lean_dec(x_4); +x_863 = l_Lean_Expr_isMVar(x_2); +if (x_863 == 0) +{ +uint8_t x_864; +lean_dec(x_1); +x_864 = l_Lean_Expr_hasExprMVar(x_2); +if (x_864 == 0) +{ +uint8_t x_865; +x_865 = l_Lean_Expr_hasFVar(x_2); +if (x_865 == 0) +{ +x_775 = x_2; +x_776 = x_6; +goto block_790; +} +else +{ +lean_object* x_866; +x_866 = lean_box(0); +x_791 = x_866; +goto block_806; +} +} +else +{ +lean_object* x_867; +x_867 = lean_box(0); +x_791 = x_867; +goto block_806; +} +} +else +{ +lean_object* x_868; lean_object* x_869; uint8_t x_870; +x_868 = lean_ctor_get(x_5, 0); +lean_inc(x_868); +x_869 = lean_ctor_get(x_868, 0); +lean_inc(x_869); +lean_dec(x_868); +x_870 = lean_ctor_get_uint8(x_869, sizeof(void*)*1 + 1); +lean_dec(x_869); +if (x_870 == 0) +{ +uint8_t x_871; +lean_dec(x_1); +x_871 = l_Lean_Expr_hasExprMVar(x_2); +if (x_871 == 0) +{ +uint8_t x_872; +x_872 = l_Lean_Expr_hasFVar(x_2); +if (x_872 == 0) +{ +x_775 = x_2; +x_776 = x_6; +goto block_790; +} +else +{ +lean_object* x_873; +x_873 = lean_box(0); +x_791 = x_873; +goto block_806; +} +} +else +{ +lean_object* x_874; +x_874 = lean_box(0); +x_791 = x_874; +goto block_806; +} +} +else +{ +lean_object* x_875; lean_object* x_876; uint8_t x_877; +x_875 = lean_array_get_size(x_3); +x_876 = lean_unsigned_to_nat(0u); +x_877 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_875, x_876); +lean_dec(x_875); +if (x_877 == 0) +{ +lean_object* x_878; uint8_t x_894; +x_894 = l_Lean_Expr_hasExprMVar(x_2); +if (x_894 == 0) +{ +uint8_t x_895; +x_895 = l_Lean_Expr_hasFVar(x_2); +if (x_895 == 0) +{ +x_807 = x_2; +x_808 = x_6; +goto block_862; +} +else +{ +lean_object* x_896; +x_896 = lean_box(0); +x_878 = x_896; +goto block_893; +} +} +else +{ +lean_object* x_897; +x_897 = lean_box(0); +x_878 = x_897; +goto block_893; +} +block_893: +{ +lean_object* x_879; lean_object* x_880; +lean_dec(x_878); +x_879 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_880 = lean_ctor_get(x_879, 0); +lean_inc(x_880); +if (lean_obj_tag(x_880) == 0) +{ +lean_object* x_881; lean_object* x_882; +x_881 = lean_ctor_get(x_879, 1); +lean_inc(x_881); +lean_dec(x_879); +lean_inc(x_5); +lean_inc(x_2); +x_882 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_881); +if (lean_obj_tag(x_882) == 0) +{ +lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; +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); +lean_inc(x_883); +x_885 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_883, x_5, x_884); +x_886 = lean_ctor_get(x_885, 1); +lean_inc(x_886); +lean_dec(x_885); +x_807 = x_883; +x_808 = x_886; +goto block_862; +} +else +{ +uint8_t x_887; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_887 = !lean_is_exclusive(x_882); +if (x_887 == 0) +{ +return x_882; +} +else +{ +lean_object* x_888; lean_object* x_889; lean_object* x_890; +x_888 = lean_ctor_get(x_882, 0); +x_889 = lean_ctor_get(x_882, 1); +lean_inc(x_889); +lean_inc(x_888); +lean_dec(x_882); +x_890 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_890, 0, x_888); +lean_ctor_set(x_890, 1, x_889); +return x_890; +} +} +} +else +{ +lean_object* x_891; lean_object* x_892; +lean_dec(x_2); +x_891 = lean_ctor_get(x_879, 1); +lean_inc(x_891); +lean_dec(x_879); +x_892 = lean_ctor_get(x_880, 0); +lean_inc(x_892); +lean_dec(x_880); +x_807 = x_892; +x_808 = x_891; +goto block_862; +} +} +} +else +{ +uint8_t x_898; +lean_dec(x_1); +x_898 = l_Lean_Expr_hasExprMVar(x_2); +if (x_898 == 0) +{ +uint8_t x_899; +x_899 = l_Lean_Expr_hasFVar(x_2); +if (x_899 == 0) +{ +x_775 = x_2; +x_776 = x_6; +goto block_790; +} +else +{ +lean_object* x_900; +x_900 = lean_box(0); +x_791 = x_900; +goto block_806; +} +} +else +{ +lean_object* x_901; +x_901 = lean_box(0); +x_791 = x_901; +goto block_806; +} +} +} +} +block_790: +{ +lean_object* x_777; lean_object* x_778; +x_777 = lean_unsigned_to_nat(0u); +x_778 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_777, x_3, x_5, x_776); +if (lean_obj_tag(x_778) == 0) +{ +uint8_t x_779; +x_779 = !lean_is_exclusive(x_778); +if (x_779 == 0) +{ +lean_object* x_780; lean_object* x_781; +x_780 = lean_ctor_get(x_778, 0); +x_781 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_780, x_780, x_777, x_775); +lean_dec(x_780); +lean_ctor_set(x_778, 0, x_781); +return x_778; +} +else +{ +lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; +x_782 = lean_ctor_get(x_778, 0); +x_783 = lean_ctor_get(x_778, 1); +lean_inc(x_783); +lean_inc(x_782); +lean_dec(x_778); +x_784 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_782, x_782, x_777, x_775); +lean_dec(x_782); +x_785 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_785, 0, x_784); +lean_ctor_set(x_785, 1, x_783); +return x_785; +} +} +else +{ +uint8_t x_786; +lean_dec(x_775); +x_786 = !lean_is_exclusive(x_778); +if (x_786 == 0) +{ +return x_778; +} +else +{ +lean_object* x_787; lean_object* x_788; lean_object* x_789; +x_787 = lean_ctor_get(x_778, 0); +x_788 = lean_ctor_get(x_778, 1); +lean_inc(x_788); +lean_inc(x_787); +lean_dec(x_778); +x_789 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_789, 0, x_787); +lean_ctor_set(x_789, 1, x_788); +return x_789; +} +} +} +block_806: +{ +lean_object* x_792; lean_object* x_793; +lean_dec(x_791); +x_792 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_793 = lean_ctor_get(x_792, 0); +lean_inc(x_793); +if (lean_obj_tag(x_793) == 0) +{ +lean_object* x_794; lean_object* x_795; +x_794 = lean_ctor_get(x_792, 1); +lean_inc(x_794); +lean_dec(x_792); +lean_inc(x_5); +lean_inc(x_2); +x_795 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_794); +if (lean_obj_tag(x_795) == 0) +{ +lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; +x_796 = lean_ctor_get(x_795, 0); +lean_inc(x_796); +x_797 = lean_ctor_get(x_795, 1); +lean_inc(x_797); +lean_dec(x_795); +lean_inc(x_796); +x_798 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_796, x_5, x_797); +x_799 = lean_ctor_get(x_798, 1); +lean_inc(x_799); +lean_dec(x_798); +x_775 = x_796; +x_776 = x_799; +goto block_790; +} +else +{ +uint8_t x_800; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_800 = !lean_is_exclusive(x_795); +if (x_800 == 0) +{ +return x_795; +} +else +{ +lean_object* x_801; lean_object* x_802; lean_object* x_803; +x_801 = lean_ctor_get(x_795, 0); +x_802 = lean_ctor_get(x_795, 1); +lean_inc(x_802); +lean_inc(x_801); +lean_dec(x_795); +x_803 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_803, 0, x_801); +lean_ctor_set(x_803, 1, x_802); +return x_803; +} +} +} +else +{ +lean_object* x_804; lean_object* x_805; +lean_dec(x_2); +x_804 = lean_ctor_get(x_792, 1); +lean_inc(x_804); +lean_dec(x_792); +x_805 = lean_ctor_get(x_793, 0); +lean_inc(x_805); +lean_dec(x_793); +x_775 = x_805; +x_776 = x_804; +goto block_790; +} +} +block_862: +{ +lean_object* x_809; lean_object* x_810; +x_809 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_810 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_809, x_3, x_5, x_808); +if (lean_obj_tag(x_810) == 0) +{ +uint8_t x_811; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_811 = !lean_is_exclusive(x_810); +if (x_811 == 0) +{ +lean_object* x_812; lean_object* x_813; +x_812 = lean_ctor_get(x_810, 0); +x_813 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_812, x_812, x_809, x_807); +lean_dec(x_812); +lean_ctor_set(x_810, 0, x_813); +return x_810; +} +else +{ +lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; +x_814 = lean_ctor_get(x_810, 0); +x_815 = lean_ctor_get(x_810, 1); +lean_inc(x_815); +lean_inc(x_814); +lean_dec(x_810); +x_816 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_814, x_814, x_809, x_807); +lean_dec(x_814); +x_817 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_817, 0, x_816); +lean_ctor_set(x_817, 1, x_815); +return x_817; +} +} +else +{ +lean_object* x_818; +x_818 = lean_ctor_get(x_810, 0); +lean_inc(x_818); +if (lean_obj_tag(x_818) == 2) +{ +lean_object* x_819; lean_object* x_820; lean_object* x_821; +x_819 = lean_ctor_get(x_810, 1); +lean_inc(x_819); +lean_dec(x_810); +x_820 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_820, 0, x_1); +lean_inc(x_5); +x_821 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_820, x_5, x_819); +if (lean_obj_tag(x_821) == 0) +{ +lean_object* x_822; lean_object* x_823; lean_object* x_824; +x_822 = lean_ctor_get(x_821, 0); +lean_inc(x_822); +x_823 = lean_ctor_get(x_821, 1); +lean_inc(x_823); +lean_dec(x_821); +lean_inc(x_5); +x_824 = l_Lean_Meta_CheckAssignment_check___main(x_822, x_5, x_823); +if (lean_obj_tag(x_824) == 0) +{ +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; +x_825 = lean_ctor_get(x_824, 0); +lean_inc(x_825); +x_826 = lean_ctor_get(x_824, 1); +lean_inc(x_826); +lean_dec(x_824); +x_827 = lean_ctor_get(x_5, 2); +lean_inc(x_827); +x_828 = lean_ctor_get(x_827, 1); +lean_inc(x_828); +x_829 = lean_ctor_get(x_827, 4); +lean_inc(x_829); +lean_dec(x_827); +x_830 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_828, x_829, x_825, x_5, x_826); +x_831 = lean_ctor_get(x_830, 0); +lean_inc(x_831); +x_832 = lean_ctor_get(x_830, 1); +lean_inc(x_832); +lean_dec(x_830); +x_833 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_831); +x_834 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_834, 0, x_807); +lean_closure_set(x_834, 1, x_833); +lean_closure_set(x_834, 2, x_831); +x_835 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_834, x_5, x_832); +if (lean_obj_tag(x_835) == 0) +{ +lean_object* x_836; uint8_t x_837; +x_836 = lean_ctor_get(x_835, 0); +lean_inc(x_836); +x_837 = lean_unbox(x_836); +lean_dec(x_836); +if (x_837 == 0) +{ +uint8_t x_838; +lean_dec(x_831); +x_838 = !lean_is_exclusive(x_835); +if (x_838 == 0) +{ +lean_object* x_839; +x_839 = lean_ctor_get(x_835, 0); +lean_dec(x_839); +lean_ctor_set_tag(x_835, 1); +lean_ctor_set(x_835, 0, x_818); +return x_835; +} +else +{ +lean_object* x_840; lean_object* x_841; +x_840 = lean_ctor_get(x_835, 1); +lean_inc(x_840); +lean_dec(x_835); +x_841 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_841, 0, x_818); +lean_ctor_set(x_841, 1, x_840); +return x_841; +} +} +else +{ +uint8_t x_842; +lean_dec(x_818); +x_842 = !lean_is_exclusive(x_835); +if (x_842 == 0) +{ +lean_object* x_843; +x_843 = lean_ctor_get(x_835, 0); +lean_dec(x_843); +lean_ctor_set(x_835, 0, x_831); +return x_835; +} +else +{ +lean_object* x_844; lean_object* x_845; +x_844 = lean_ctor_get(x_835, 1); +lean_inc(x_844); +lean_dec(x_835); +x_845 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_845, 0, x_831); +lean_ctor_set(x_845, 1, x_844); +return x_845; +} +} +} +else +{ +uint8_t x_846; +lean_dec(x_831); +lean_dec(x_818); +x_846 = !lean_is_exclusive(x_835); +if (x_846 == 0) +{ +return x_835; +} +else +{ +lean_object* x_847; lean_object* x_848; lean_object* x_849; +x_847 = lean_ctor_get(x_835, 0); +x_848 = lean_ctor_get(x_835, 1); +lean_inc(x_848); +lean_inc(x_847); +lean_dec(x_835); +x_849 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_849, 0, x_847); +lean_ctor_set(x_849, 1, x_848); +return x_849; +} +} +} +else +{ +uint8_t x_850; +lean_dec(x_818); +lean_dec(x_807); +lean_dec(x_5); +lean_dec(x_3); +x_850 = !lean_is_exclusive(x_824); +if (x_850 == 0) +{ +return x_824; +} +else +{ +lean_object* x_851; lean_object* x_852; lean_object* x_853; +x_851 = lean_ctor_get(x_824, 0); +x_852 = lean_ctor_get(x_824, 1); +lean_inc(x_852); +lean_inc(x_851); +lean_dec(x_824); +x_853 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_853, 0, x_851); +lean_ctor_set(x_853, 1, x_852); +return x_853; +} +} +} +else +{ +uint8_t x_854; +lean_dec(x_818); +lean_dec(x_807); +lean_dec(x_5); +lean_dec(x_3); +x_854 = !lean_is_exclusive(x_821); +if (x_854 == 0) +{ +return x_821; +} +else +{ +lean_object* x_855; lean_object* x_856; lean_object* x_857; +x_855 = lean_ctor_get(x_821, 0); +x_856 = lean_ctor_get(x_821, 1); +lean_inc(x_856); +lean_inc(x_855); +lean_dec(x_821); +x_857 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_857, 0, x_855); +lean_ctor_set(x_857, 1, x_856); +return x_857; +} +} +} +else +{ +uint8_t x_858; +lean_dec(x_807); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_858 = !lean_is_exclusive(x_810); +if (x_858 == 0) +{ +lean_object* x_859; +x_859 = lean_ctor_get(x_810, 0); +lean_dec(x_859); +return x_810; +} +else +{ +lean_object* x_860; lean_object* x_861; +x_860 = lean_ctor_get(x_810, 1); +lean_inc(x_860); +lean_dec(x_810); +x_861 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_861, 0, x_818); +lean_ctor_set(x_861, 1, x_860); +return x_861; +} +} +} +} +} +case 8: +{ +lean_object* x_902; lean_object* x_903; lean_object* x_918; lean_object* x_934; lean_object* x_935; uint8_t x_990; +lean_dec(x_4); +x_990 = l_Lean_Expr_isMVar(x_2); +if (x_990 == 0) +{ +uint8_t x_991; +lean_dec(x_1); +x_991 = l_Lean_Expr_hasExprMVar(x_2); +if (x_991 == 0) +{ +uint8_t x_992; +x_992 = l_Lean_Expr_hasFVar(x_2); +if (x_992 == 0) +{ +x_902 = x_2; +x_903 = x_6; +goto block_917; +} +else +{ +lean_object* x_993; +x_993 = lean_box(0); +x_918 = x_993; +goto block_933; +} +} +else +{ +lean_object* x_994; +x_994 = lean_box(0); +x_918 = x_994; +goto block_933; +} +} +else +{ +lean_object* x_995; lean_object* x_996; uint8_t x_997; +x_995 = lean_ctor_get(x_5, 0); +lean_inc(x_995); +x_996 = lean_ctor_get(x_995, 0); +lean_inc(x_996); +lean_dec(x_995); +x_997 = lean_ctor_get_uint8(x_996, sizeof(void*)*1 + 1); +lean_dec(x_996); +if (x_997 == 0) +{ +uint8_t x_998; +lean_dec(x_1); +x_998 = l_Lean_Expr_hasExprMVar(x_2); +if (x_998 == 0) +{ +uint8_t x_999; +x_999 = l_Lean_Expr_hasFVar(x_2); +if (x_999 == 0) +{ +x_902 = x_2; +x_903 = x_6; +goto block_917; +} +else +{ +lean_object* x_1000; +x_1000 = lean_box(0); +x_918 = x_1000; +goto block_933; +} +} +else +{ +lean_object* x_1001; +x_1001 = lean_box(0); +x_918 = x_1001; +goto block_933; +} +} +else +{ +lean_object* x_1002; lean_object* x_1003; uint8_t x_1004; +x_1002 = lean_array_get_size(x_3); +x_1003 = lean_unsigned_to_nat(0u); +x_1004 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_1002, x_1003); +lean_dec(x_1002); +if (x_1004 == 0) +{ +lean_object* x_1005; uint8_t x_1021; +x_1021 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1021 == 0) +{ +uint8_t x_1022; +x_1022 = l_Lean_Expr_hasFVar(x_2); +if (x_1022 == 0) +{ +x_934 = x_2; +x_935 = x_6; +goto block_989; +} +else +{ +lean_object* x_1023; +x_1023 = lean_box(0); +x_1005 = x_1023; +goto block_1020; +} +} +else +{ +lean_object* x_1024; +x_1024 = lean_box(0); +x_1005 = x_1024; +goto block_1020; +} +block_1020: +{ +lean_object* x_1006; lean_object* x_1007; +lean_dec(x_1005); +x_1006 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_1007 = lean_ctor_get(x_1006, 0); +lean_inc(x_1007); +if (lean_obj_tag(x_1007) == 0) +{ +lean_object* x_1008; lean_object* x_1009; +x_1008 = lean_ctor_get(x_1006, 1); +lean_inc(x_1008); +lean_dec(x_1006); +lean_inc(x_5); +lean_inc(x_2); +x_1009 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_1008); +if (lean_obj_tag(x_1009) == 0) +{ +lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; +x_1010 = lean_ctor_get(x_1009, 0); +lean_inc(x_1010); +x_1011 = lean_ctor_get(x_1009, 1); +lean_inc(x_1011); +lean_dec(x_1009); +lean_inc(x_1010); +x_1012 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_1010, x_5, x_1011); +x_1013 = lean_ctor_get(x_1012, 1); +lean_inc(x_1013); +lean_dec(x_1012); +x_934 = x_1010; +x_935 = x_1013; +goto block_989; +} +else +{ +uint8_t x_1014; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1014 = !lean_is_exclusive(x_1009); +if (x_1014 == 0) +{ +return x_1009; +} +else +{ +lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; +x_1015 = lean_ctor_get(x_1009, 0); +x_1016 = lean_ctor_get(x_1009, 1); +lean_inc(x_1016); +lean_inc(x_1015); +lean_dec(x_1009); +x_1017 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1017, 0, x_1015); +lean_ctor_set(x_1017, 1, x_1016); +return x_1017; +} +} +} +else +{ +lean_object* x_1018; lean_object* x_1019; +lean_dec(x_2); +x_1018 = lean_ctor_get(x_1006, 1); +lean_inc(x_1018); +lean_dec(x_1006); +x_1019 = lean_ctor_get(x_1007, 0); +lean_inc(x_1019); +lean_dec(x_1007); +x_934 = x_1019; +x_935 = x_1018; +goto block_989; +} +} +} +else +{ +uint8_t x_1025; +lean_dec(x_1); +x_1025 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1025 == 0) +{ +uint8_t x_1026; +x_1026 = l_Lean_Expr_hasFVar(x_2); +if (x_1026 == 0) +{ +x_902 = x_2; +x_903 = x_6; +goto block_917; +} +else +{ +lean_object* x_1027; +x_1027 = lean_box(0); +x_918 = x_1027; +goto block_933; +} +} +else +{ +lean_object* x_1028; +x_1028 = lean_box(0); +x_918 = x_1028; +goto block_933; +} +} +} +} +block_917: +{ +lean_object* x_904; lean_object* x_905; +x_904 = lean_unsigned_to_nat(0u); +x_905 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_904, x_3, x_5, x_903); +if (lean_obj_tag(x_905) == 0) +{ +uint8_t x_906; +x_906 = !lean_is_exclusive(x_905); +if (x_906 == 0) +{ +lean_object* x_907; lean_object* x_908; +x_907 = lean_ctor_get(x_905, 0); +x_908 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_907, x_907, x_904, x_902); +lean_dec(x_907); +lean_ctor_set(x_905, 0, x_908); +return x_905; +} +else +{ +lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; +x_909 = lean_ctor_get(x_905, 0); +x_910 = lean_ctor_get(x_905, 1); +lean_inc(x_910); +lean_inc(x_909); +lean_dec(x_905); +x_911 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_909, x_909, x_904, x_902); +lean_dec(x_909); +x_912 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_912, 0, x_911); +lean_ctor_set(x_912, 1, x_910); +return x_912; +} +} +else +{ +uint8_t x_913; +lean_dec(x_902); +x_913 = !lean_is_exclusive(x_905); +if (x_913 == 0) +{ +return x_905; +} +else +{ +lean_object* x_914; lean_object* x_915; lean_object* x_916; +x_914 = lean_ctor_get(x_905, 0); +x_915 = lean_ctor_get(x_905, 1); +lean_inc(x_915); +lean_inc(x_914); +lean_dec(x_905); +x_916 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_916, 0, x_914); +lean_ctor_set(x_916, 1, x_915); +return x_916; +} +} +} +block_933: +{ +lean_object* x_919; lean_object* x_920; +lean_dec(x_918); +x_919 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_920 = lean_ctor_get(x_919, 0); +lean_inc(x_920); +if (lean_obj_tag(x_920) == 0) +{ +lean_object* x_921; lean_object* x_922; +x_921 = lean_ctor_get(x_919, 1); +lean_inc(x_921); +lean_dec(x_919); +lean_inc(x_5); +lean_inc(x_2); +x_922 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_921); +if (lean_obj_tag(x_922) == 0) +{ +lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; +x_923 = lean_ctor_get(x_922, 0); +lean_inc(x_923); +x_924 = lean_ctor_get(x_922, 1); +lean_inc(x_924); +lean_dec(x_922); +lean_inc(x_923); +x_925 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_923, x_5, x_924); +x_926 = lean_ctor_get(x_925, 1); +lean_inc(x_926); +lean_dec(x_925); +x_902 = x_923; +x_903 = x_926; +goto block_917; +} +else +{ +uint8_t x_927; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_927 = !lean_is_exclusive(x_922); +if (x_927 == 0) +{ +return x_922; +} +else +{ +lean_object* x_928; lean_object* x_929; lean_object* x_930; +x_928 = lean_ctor_get(x_922, 0); +x_929 = lean_ctor_get(x_922, 1); +lean_inc(x_929); +lean_inc(x_928); +lean_dec(x_922); +x_930 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_930, 0, x_928); +lean_ctor_set(x_930, 1, x_929); +return x_930; +} +} +} +else +{ +lean_object* x_931; lean_object* x_932; +lean_dec(x_2); +x_931 = lean_ctor_get(x_919, 1); +lean_inc(x_931); +lean_dec(x_919); +x_932 = lean_ctor_get(x_920, 0); +lean_inc(x_932); +lean_dec(x_920); +x_902 = x_932; +x_903 = x_931; +goto block_917; +} +} +block_989: +{ +lean_object* x_936; lean_object* x_937; +x_936 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_937 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_936, x_3, x_5, x_935); +if (lean_obj_tag(x_937) == 0) +{ +uint8_t x_938; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_938 = !lean_is_exclusive(x_937); +if (x_938 == 0) +{ +lean_object* x_939; lean_object* x_940; +x_939 = lean_ctor_get(x_937, 0); +x_940 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_939, x_939, x_936, x_934); +lean_dec(x_939); +lean_ctor_set(x_937, 0, x_940); +return x_937; +} +else +{ +lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; +x_941 = lean_ctor_get(x_937, 0); +x_942 = lean_ctor_get(x_937, 1); +lean_inc(x_942); +lean_inc(x_941); +lean_dec(x_937); +x_943 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_941, x_941, x_936, x_934); +lean_dec(x_941); +x_944 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_944, 0, x_943); +lean_ctor_set(x_944, 1, x_942); +return x_944; +} +} +else +{ +lean_object* x_945; +x_945 = lean_ctor_get(x_937, 0); +lean_inc(x_945); +if (lean_obj_tag(x_945) == 2) +{ +lean_object* x_946; lean_object* x_947; lean_object* x_948; +x_946 = lean_ctor_get(x_937, 1); +lean_inc(x_946); +lean_dec(x_937); +x_947 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_947, 0, x_1); +lean_inc(x_5); +x_948 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_947, x_5, x_946); +if (lean_obj_tag(x_948) == 0) +{ +lean_object* x_949; lean_object* x_950; lean_object* x_951; +x_949 = lean_ctor_get(x_948, 0); +lean_inc(x_949); +x_950 = lean_ctor_get(x_948, 1); +lean_inc(x_950); +lean_dec(x_948); +lean_inc(x_5); +x_951 = l_Lean_Meta_CheckAssignment_check___main(x_949, x_5, x_950); +if (lean_obj_tag(x_951) == 0) +{ +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; +x_952 = lean_ctor_get(x_951, 0); +lean_inc(x_952); +x_953 = lean_ctor_get(x_951, 1); +lean_inc(x_953); +lean_dec(x_951); +x_954 = lean_ctor_get(x_5, 2); +lean_inc(x_954); +x_955 = lean_ctor_get(x_954, 1); +lean_inc(x_955); +x_956 = lean_ctor_get(x_954, 4); +lean_inc(x_956); +lean_dec(x_954); +x_957 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_955, x_956, x_952, x_5, x_953); +x_958 = lean_ctor_get(x_957, 0); +lean_inc(x_958); +x_959 = lean_ctor_get(x_957, 1); +lean_inc(x_959); +lean_dec(x_957); +x_960 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_958); +x_961 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_961, 0, x_934); +lean_closure_set(x_961, 1, x_960); +lean_closure_set(x_961, 2, x_958); +x_962 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_961, x_5, x_959); +if (lean_obj_tag(x_962) == 0) +{ +lean_object* x_963; uint8_t x_964; +x_963 = lean_ctor_get(x_962, 0); +lean_inc(x_963); +x_964 = lean_unbox(x_963); +lean_dec(x_963); +if (x_964 == 0) +{ +uint8_t x_965; +lean_dec(x_958); +x_965 = !lean_is_exclusive(x_962); +if (x_965 == 0) +{ +lean_object* x_966; +x_966 = lean_ctor_get(x_962, 0); +lean_dec(x_966); +lean_ctor_set_tag(x_962, 1); +lean_ctor_set(x_962, 0, x_945); +return x_962; +} +else +{ +lean_object* x_967; lean_object* x_968; +x_967 = lean_ctor_get(x_962, 1); +lean_inc(x_967); +lean_dec(x_962); +x_968 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_968, 0, x_945); +lean_ctor_set(x_968, 1, x_967); +return x_968; +} +} +else +{ +uint8_t x_969; +lean_dec(x_945); +x_969 = !lean_is_exclusive(x_962); +if (x_969 == 0) +{ +lean_object* x_970; +x_970 = lean_ctor_get(x_962, 0); +lean_dec(x_970); +lean_ctor_set(x_962, 0, x_958); +return x_962; +} +else +{ +lean_object* x_971; lean_object* x_972; +x_971 = lean_ctor_get(x_962, 1); +lean_inc(x_971); +lean_dec(x_962); +x_972 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_972, 0, x_958); +lean_ctor_set(x_972, 1, x_971); +return x_972; +} +} +} +else +{ +uint8_t x_973; +lean_dec(x_958); +lean_dec(x_945); +x_973 = !lean_is_exclusive(x_962); +if (x_973 == 0) +{ +return x_962; +} +else +{ +lean_object* x_974; lean_object* x_975; lean_object* x_976; +x_974 = lean_ctor_get(x_962, 0); +x_975 = lean_ctor_get(x_962, 1); +lean_inc(x_975); +lean_inc(x_974); +lean_dec(x_962); +x_976 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_976, 0, x_974); +lean_ctor_set(x_976, 1, x_975); +return x_976; +} +} +} +else +{ +uint8_t x_977; +lean_dec(x_945); +lean_dec(x_934); +lean_dec(x_5); +lean_dec(x_3); +x_977 = !lean_is_exclusive(x_951); +if (x_977 == 0) +{ +return x_951; +} +else +{ +lean_object* x_978; lean_object* x_979; lean_object* x_980; +x_978 = lean_ctor_get(x_951, 0); +x_979 = lean_ctor_get(x_951, 1); +lean_inc(x_979); +lean_inc(x_978); +lean_dec(x_951); +x_980 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_980, 0, x_978); +lean_ctor_set(x_980, 1, x_979); +return x_980; +} +} +} +else +{ +uint8_t x_981; +lean_dec(x_945); +lean_dec(x_934); +lean_dec(x_5); +lean_dec(x_3); +x_981 = !lean_is_exclusive(x_948); +if (x_981 == 0) +{ +return x_948; +} +else +{ +lean_object* x_982; lean_object* x_983; lean_object* x_984; +x_982 = lean_ctor_get(x_948, 0); +x_983 = lean_ctor_get(x_948, 1); +lean_inc(x_983); +lean_inc(x_982); +lean_dec(x_948); +x_984 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_984, 0, x_982); +lean_ctor_set(x_984, 1, x_983); +return x_984; +} +} +} +else +{ +uint8_t x_985; +lean_dec(x_934); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_985 = !lean_is_exclusive(x_937); +if (x_985 == 0) +{ +lean_object* x_986; +x_986 = lean_ctor_get(x_937, 0); +lean_dec(x_986); +return x_937; +} +else +{ +lean_object* x_987; lean_object* x_988; +x_987 = lean_ctor_get(x_937, 1); +lean_inc(x_987); +lean_dec(x_937); +x_988 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_988, 0, x_945); +lean_ctor_set(x_988, 1, x_987); +return x_988; +} +} +} +} +} +case 9: +{ +lean_object* x_1029; lean_object* x_1030; lean_object* x_1045; lean_object* x_1061; lean_object* x_1062; uint8_t x_1117; +lean_dec(x_4); +x_1117 = l_Lean_Expr_isMVar(x_2); +if (x_1117 == 0) +{ +uint8_t x_1118; +lean_dec(x_1); +x_1118 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1118 == 0) +{ +uint8_t x_1119; +x_1119 = l_Lean_Expr_hasFVar(x_2); +if (x_1119 == 0) +{ +x_1029 = x_2; +x_1030 = x_6; +goto block_1044; +} +else +{ +lean_object* x_1120; +x_1120 = lean_box(0); +x_1045 = x_1120; +goto block_1060; +} +} +else +{ +lean_object* x_1121; +x_1121 = lean_box(0); +x_1045 = x_1121; +goto block_1060; +} +} +else +{ +lean_object* x_1122; lean_object* x_1123; uint8_t x_1124; +x_1122 = lean_ctor_get(x_5, 0); +lean_inc(x_1122); +x_1123 = lean_ctor_get(x_1122, 0); +lean_inc(x_1123); +lean_dec(x_1122); +x_1124 = lean_ctor_get_uint8(x_1123, sizeof(void*)*1 + 1); +lean_dec(x_1123); +if (x_1124 == 0) +{ +uint8_t x_1125; +lean_dec(x_1); +x_1125 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1125 == 0) +{ +uint8_t x_1126; +x_1126 = l_Lean_Expr_hasFVar(x_2); +if (x_1126 == 0) +{ +x_1029 = x_2; +x_1030 = x_6; +goto block_1044; +} +else +{ +lean_object* x_1127; +x_1127 = lean_box(0); +x_1045 = x_1127; +goto block_1060; +} +} +else +{ +lean_object* x_1128; +x_1128 = lean_box(0); +x_1045 = x_1128; +goto block_1060; +} +} +else +{ +lean_object* x_1129; lean_object* x_1130; uint8_t x_1131; +x_1129 = lean_array_get_size(x_3); +x_1130 = lean_unsigned_to_nat(0u); +x_1131 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_1129, x_1130); +lean_dec(x_1129); +if (x_1131 == 0) +{ +lean_object* x_1132; uint8_t x_1148; +x_1148 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1148 == 0) +{ +uint8_t x_1149; +x_1149 = l_Lean_Expr_hasFVar(x_2); +if (x_1149 == 0) +{ +x_1061 = x_2; +x_1062 = x_6; +goto block_1116; +} +else +{ +lean_object* x_1150; +x_1150 = lean_box(0); +x_1132 = x_1150; +goto block_1147; +} +} +else +{ +lean_object* x_1151; +x_1151 = lean_box(0); +x_1132 = x_1151; +goto block_1147; +} +block_1147: +{ +lean_object* x_1133; lean_object* x_1134; +lean_dec(x_1132); +x_1133 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_1134 = lean_ctor_get(x_1133, 0); +lean_inc(x_1134); +if (lean_obj_tag(x_1134) == 0) +{ +lean_object* x_1135; lean_object* x_1136; +x_1135 = lean_ctor_get(x_1133, 1); +lean_inc(x_1135); +lean_dec(x_1133); +lean_inc(x_5); +lean_inc(x_2); +x_1136 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_1135); +if (lean_obj_tag(x_1136) == 0) +{ +lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; +x_1137 = lean_ctor_get(x_1136, 0); +lean_inc(x_1137); +x_1138 = lean_ctor_get(x_1136, 1); +lean_inc(x_1138); +lean_dec(x_1136); +lean_inc(x_1137); +x_1139 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_1137, x_5, x_1138); +x_1140 = lean_ctor_get(x_1139, 1); +lean_inc(x_1140); +lean_dec(x_1139); +x_1061 = x_1137; +x_1062 = x_1140; +goto block_1116; +} +else +{ +uint8_t x_1141; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1141 = !lean_is_exclusive(x_1136); +if (x_1141 == 0) +{ +return x_1136; +} +else +{ +lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; +x_1142 = lean_ctor_get(x_1136, 0); +x_1143 = lean_ctor_get(x_1136, 1); +lean_inc(x_1143); +lean_inc(x_1142); +lean_dec(x_1136); +x_1144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1144, 0, x_1142); +lean_ctor_set(x_1144, 1, x_1143); +return x_1144; +} +} +} +else +{ +lean_object* x_1145; lean_object* x_1146; +lean_dec(x_2); +x_1145 = lean_ctor_get(x_1133, 1); +lean_inc(x_1145); +lean_dec(x_1133); +x_1146 = lean_ctor_get(x_1134, 0); +lean_inc(x_1146); +lean_dec(x_1134); +x_1061 = x_1146; +x_1062 = x_1145; +goto block_1116; +} +} +} +else +{ +uint8_t x_1152; +lean_dec(x_1); +x_1152 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1152 == 0) +{ +uint8_t x_1153; +x_1153 = l_Lean_Expr_hasFVar(x_2); +if (x_1153 == 0) +{ +x_1029 = x_2; +x_1030 = x_6; +goto block_1044; +} +else +{ +lean_object* x_1154; +x_1154 = lean_box(0); +x_1045 = x_1154; +goto block_1060; +} +} +else +{ +lean_object* x_1155; +x_1155 = lean_box(0); +x_1045 = x_1155; +goto block_1060; +} +} +} +} +block_1044: +{ +lean_object* x_1031; lean_object* x_1032; +x_1031 = lean_unsigned_to_nat(0u); +x_1032 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_1031, x_3, x_5, x_1030); +if (lean_obj_tag(x_1032) == 0) +{ +uint8_t x_1033; +x_1033 = !lean_is_exclusive(x_1032); +if (x_1033 == 0) +{ +lean_object* x_1034; lean_object* x_1035; +x_1034 = lean_ctor_get(x_1032, 0); +x_1035 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1034, x_1034, x_1031, x_1029); +lean_dec(x_1034); +lean_ctor_set(x_1032, 0, x_1035); +return x_1032; +} +else +{ +lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; +x_1036 = lean_ctor_get(x_1032, 0); +x_1037 = lean_ctor_get(x_1032, 1); +lean_inc(x_1037); +lean_inc(x_1036); +lean_dec(x_1032); +x_1038 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1036, x_1036, x_1031, x_1029); +lean_dec(x_1036); +x_1039 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1039, 0, x_1038); +lean_ctor_set(x_1039, 1, x_1037); +return x_1039; +} +} +else +{ +uint8_t x_1040; +lean_dec(x_1029); +x_1040 = !lean_is_exclusive(x_1032); +if (x_1040 == 0) +{ +return x_1032; +} +else +{ +lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; +x_1041 = lean_ctor_get(x_1032, 0); +x_1042 = lean_ctor_get(x_1032, 1); +lean_inc(x_1042); +lean_inc(x_1041); +lean_dec(x_1032); +x_1043 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1043, 0, x_1041); +lean_ctor_set(x_1043, 1, x_1042); +return x_1043; +} +} +} +block_1060: +{ +lean_object* x_1046; lean_object* x_1047; +lean_dec(x_1045); +x_1046 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_1047 = lean_ctor_get(x_1046, 0); +lean_inc(x_1047); +if (lean_obj_tag(x_1047) == 0) +{ +lean_object* x_1048; lean_object* x_1049; +x_1048 = lean_ctor_get(x_1046, 1); +lean_inc(x_1048); +lean_dec(x_1046); +lean_inc(x_5); +lean_inc(x_2); +x_1049 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_1048); +if (lean_obj_tag(x_1049) == 0) +{ +lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; +x_1050 = lean_ctor_get(x_1049, 0); +lean_inc(x_1050); +x_1051 = lean_ctor_get(x_1049, 1); +lean_inc(x_1051); +lean_dec(x_1049); +lean_inc(x_1050); +x_1052 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_1050, x_5, x_1051); +x_1053 = lean_ctor_get(x_1052, 1); +lean_inc(x_1053); +lean_dec(x_1052); +x_1029 = x_1050; +x_1030 = x_1053; +goto block_1044; +} +else +{ +uint8_t x_1054; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_1054 = !lean_is_exclusive(x_1049); +if (x_1054 == 0) +{ +return x_1049; +} +else +{ +lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; +x_1055 = lean_ctor_get(x_1049, 0); +x_1056 = lean_ctor_get(x_1049, 1); +lean_inc(x_1056); +lean_inc(x_1055); +lean_dec(x_1049); +x_1057 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1057, 0, x_1055); +lean_ctor_set(x_1057, 1, x_1056); +return x_1057; +} +} +} +else +{ +lean_object* x_1058; lean_object* x_1059; +lean_dec(x_2); +x_1058 = lean_ctor_get(x_1046, 1); +lean_inc(x_1058); +lean_dec(x_1046); +x_1059 = lean_ctor_get(x_1047, 0); +lean_inc(x_1059); +lean_dec(x_1047); +x_1029 = x_1059; +x_1030 = x_1058; +goto block_1044; +} +} +block_1116: +{ +lean_object* x_1063; lean_object* x_1064; +x_1063 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_1064 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_1063, x_3, x_5, x_1062); +if (lean_obj_tag(x_1064) == 0) +{ +uint8_t x_1065; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_1065 = !lean_is_exclusive(x_1064); +if (x_1065 == 0) +{ +lean_object* x_1066; lean_object* x_1067; +x_1066 = lean_ctor_get(x_1064, 0); +x_1067 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1066, x_1066, x_1063, x_1061); +lean_dec(x_1066); +lean_ctor_set(x_1064, 0, x_1067); +return x_1064; +} +else +{ +lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; +x_1068 = lean_ctor_get(x_1064, 0); +x_1069 = lean_ctor_get(x_1064, 1); +lean_inc(x_1069); +lean_inc(x_1068); +lean_dec(x_1064); +x_1070 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1068, x_1068, x_1063, x_1061); +lean_dec(x_1068); +x_1071 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1071, 0, x_1070); +lean_ctor_set(x_1071, 1, x_1069); +return x_1071; +} +} +else +{ +lean_object* x_1072; +x_1072 = lean_ctor_get(x_1064, 0); +lean_inc(x_1072); +if (lean_obj_tag(x_1072) == 2) +{ +lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; +x_1073 = lean_ctor_get(x_1064, 1); +lean_inc(x_1073); +lean_dec(x_1064); +x_1074 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_1074, 0, x_1); +lean_inc(x_5); +x_1075 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_1074, x_5, x_1073); +if (lean_obj_tag(x_1075) == 0) +{ +lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; +x_1076 = lean_ctor_get(x_1075, 0); +lean_inc(x_1076); +x_1077 = lean_ctor_get(x_1075, 1); +lean_inc(x_1077); +lean_dec(x_1075); +lean_inc(x_5); +x_1078 = l_Lean_Meta_CheckAssignment_check___main(x_1076, x_5, x_1077); +if (lean_obj_tag(x_1078) == 0) +{ +lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; +x_1079 = lean_ctor_get(x_1078, 0); +lean_inc(x_1079); +x_1080 = lean_ctor_get(x_1078, 1); +lean_inc(x_1080); +lean_dec(x_1078); +x_1081 = lean_ctor_get(x_5, 2); +lean_inc(x_1081); +x_1082 = lean_ctor_get(x_1081, 1); +lean_inc(x_1082); +x_1083 = lean_ctor_get(x_1081, 4); +lean_inc(x_1083); +lean_dec(x_1081); +x_1084 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_1082, x_1083, x_1079, x_5, x_1080); +x_1085 = lean_ctor_get(x_1084, 0); +lean_inc(x_1085); +x_1086 = lean_ctor_get(x_1084, 1); +lean_inc(x_1086); +lean_dec(x_1084); +x_1087 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_1085); +x_1088 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_1088, 0, x_1061); +lean_closure_set(x_1088, 1, x_1087); +lean_closure_set(x_1088, 2, x_1085); +x_1089 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_1088, x_5, x_1086); +if (lean_obj_tag(x_1089) == 0) +{ +lean_object* x_1090; uint8_t x_1091; +x_1090 = lean_ctor_get(x_1089, 0); +lean_inc(x_1090); +x_1091 = lean_unbox(x_1090); +lean_dec(x_1090); +if (x_1091 == 0) +{ +uint8_t x_1092; +lean_dec(x_1085); +x_1092 = !lean_is_exclusive(x_1089); +if (x_1092 == 0) +{ +lean_object* x_1093; +x_1093 = lean_ctor_get(x_1089, 0); +lean_dec(x_1093); +lean_ctor_set_tag(x_1089, 1); +lean_ctor_set(x_1089, 0, x_1072); +return x_1089; +} +else +{ +lean_object* x_1094; lean_object* x_1095; +x_1094 = lean_ctor_get(x_1089, 1); +lean_inc(x_1094); +lean_dec(x_1089); +x_1095 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1095, 0, x_1072); +lean_ctor_set(x_1095, 1, x_1094); +return x_1095; +} +} +else +{ +uint8_t x_1096; +lean_dec(x_1072); +x_1096 = !lean_is_exclusive(x_1089); +if (x_1096 == 0) +{ +lean_object* x_1097; +x_1097 = lean_ctor_get(x_1089, 0); +lean_dec(x_1097); +lean_ctor_set(x_1089, 0, x_1085); +return x_1089; +} +else +{ +lean_object* x_1098; lean_object* x_1099; +x_1098 = lean_ctor_get(x_1089, 1); +lean_inc(x_1098); +lean_dec(x_1089); +x_1099 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1099, 0, x_1085); +lean_ctor_set(x_1099, 1, x_1098); +return x_1099; +} +} +} +else +{ +uint8_t x_1100; +lean_dec(x_1085); +lean_dec(x_1072); +x_1100 = !lean_is_exclusive(x_1089); +if (x_1100 == 0) +{ +return x_1089; +} +else +{ +lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; +x_1101 = lean_ctor_get(x_1089, 0); +x_1102 = lean_ctor_get(x_1089, 1); +lean_inc(x_1102); +lean_inc(x_1101); +lean_dec(x_1089); +x_1103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1103, 0, x_1101); +lean_ctor_set(x_1103, 1, x_1102); +return x_1103; +} +} +} +else +{ +uint8_t x_1104; +lean_dec(x_1072); +lean_dec(x_1061); +lean_dec(x_5); +lean_dec(x_3); +x_1104 = !lean_is_exclusive(x_1078); +if (x_1104 == 0) +{ +return x_1078; +} +else +{ +lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; +x_1105 = lean_ctor_get(x_1078, 0); +x_1106 = lean_ctor_get(x_1078, 1); +lean_inc(x_1106); +lean_inc(x_1105); +lean_dec(x_1078); +x_1107 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1107, 0, x_1105); +lean_ctor_set(x_1107, 1, x_1106); +return x_1107; +} +} +} +else +{ +uint8_t x_1108; +lean_dec(x_1072); +lean_dec(x_1061); +lean_dec(x_5); +lean_dec(x_3); +x_1108 = !lean_is_exclusive(x_1075); +if (x_1108 == 0) +{ +return x_1075; +} +else +{ +lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; +x_1109 = lean_ctor_get(x_1075, 0); +x_1110 = lean_ctor_get(x_1075, 1); +lean_inc(x_1110); +lean_inc(x_1109); +lean_dec(x_1075); +x_1111 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1111, 0, x_1109); +lean_ctor_set(x_1111, 1, x_1110); +return x_1111; +} +} +} +else +{ +uint8_t x_1112; +lean_dec(x_1061); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_1112 = !lean_is_exclusive(x_1064); +if (x_1112 == 0) +{ +lean_object* x_1113; +x_1113 = lean_ctor_get(x_1064, 0); +lean_dec(x_1113); +return x_1064; +} +else +{ +lean_object* x_1114; lean_object* x_1115; +x_1114 = lean_ctor_get(x_1064, 1); +lean_inc(x_1114); +lean_dec(x_1064); +x_1115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1115, 0, x_1072); +lean_ctor_set(x_1115, 1, x_1114); +return x_1115; +} +} +} +} +} +case 10: +{ +lean_object* x_1156; lean_object* x_1157; lean_object* x_1172; lean_object* x_1188; lean_object* x_1189; uint8_t x_1244; +lean_dec(x_4); +x_1244 = l_Lean_Expr_isMVar(x_2); +if (x_1244 == 0) +{ +uint8_t x_1245; +lean_dec(x_1); +x_1245 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1245 == 0) +{ +uint8_t x_1246; +x_1246 = l_Lean_Expr_hasFVar(x_2); +if (x_1246 == 0) +{ +x_1156 = x_2; +x_1157 = x_6; +goto block_1171; +} +else +{ +lean_object* x_1247; +x_1247 = lean_box(0); +x_1172 = x_1247; +goto block_1187; +} +} +else +{ +lean_object* x_1248; +x_1248 = lean_box(0); +x_1172 = x_1248; +goto block_1187; +} +} +else +{ +lean_object* x_1249; lean_object* x_1250; uint8_t x_1251; +x_1249 = lean_ctor_get(x_5, 0); +lean_inc(x_1249); +x_1250 = lean_ctor_get(x_1249, 0); +lean_inc(x_1250); +lean_dec(x_1249); +x_1251 = lean_ctor_get_uint8(x_1250, sizeof(void*)*1 + 1); +lean_dec(x_1250); +if (x_1251 == 0) +{ +uint8_t x_1252; +lean_dec(x_1); +x_1252 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1252 == 0) +{ +uint8_t x_1253; +x_1253 = l_Lean_Expr_hasFVar(x_2); +if (x_1253 == 0) +{ +x_1156 = x_2; +x_1157 = x_6; +goto block_1171; +} +else +{ +lean_object* x_1254; +x_1254 = lean_box(0); +x_1172 = x_1254; +goto block_1187; +} +} +else +{ +lean_object* x_1255; +x_1255 = lean_box(0); +x_1172 = x_1255; +goto block_1187; +} +} +else +{ +lean_object* x_1256; lean_object* x_1257; uint8_t x_1258; +x_1256 = lean_array_get_size(x_3); +x_1257 = lean_unsigned_to_nat(0u); +x_1258 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_1256, x_1257); +lean_dec(x_1256); +if (x_1258 == 0) +{ +lean_object* x_1259; uint8_t x_1275; +x_1275 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1275 == 0) +{ +uint8_t x_1276; +x_1276 = l_Lean_Expr_hasFVar(x_2); +if (x_1276 == 0) +{ +x_1188 = x_2; +x_1189 = x_6; +goto block_1243; +} +else +{ +lean_object* x_1277; +x_1277 = lean_box(0); +x_1259 = x_1277; +goto block_1274; +} +} +else +{ +lean_object* x_1278; +x_1278 = lean_box(0); +x_1259 = x_1278; +goto block_1274; +} +block_1274: +{ +lean_object* x_1260; lean_object* x_1261; +lean_dec(x_1259); +x_1260 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_1261 = lean_ctor_get(x_1260, 0); +lean_inc(x_1261); +if (lean_obj_tag(x_1261) == 0) +{ +lean_object* x_1262; lean_object* x_1263; +x_1262 = lean_ctor_get(x_1260, 1); +lean_inc(x_1262); +lean_dec(x_1260); +lean_inc(x_5); +lean_inc(x_2); +x_1263 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_1262); +if (lean_obj_tag(x_1263) == 0) +{ +lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; +x_1264 = lean_ctor_get(x_1263, 0); +lean_inc(x_1264); +x_1265 = lean_ctor_get(x_1263, 1); +lean_inc(x_1265); +lean_dec(x_1263); +lean_inc(x_1264); +x_1266 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_1264, x_5, x_1265); +x_1267 = lean_ctor_get(x_1266, 1); +lean_inc(x_1267); +lean_dec(x_1266); +x_1188 = x_1264; +x_1189 = x_1267; +goto block_1243; +} +else +{ +uint8_t x_1268; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1268 = !lean_is_exclusive(x_1263); +if (x_1268 == 0) +{ +return x_1263; +} +else +{ +lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; +x_1269 = lean_ctor_get(x_1263, 0); +x_1270 = lean_ctor_get(x_1263, 1); +lean_inc(x_1270); +lean_inc(x_1269); +lean_dec(x_1263); +x_1271 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1271, 0, x_1269); +lean_ctor_set(x_1271, 1, x_1270); +return x_1271; +} +} +} +else +{ +lean_object* x_1272; lean_object* x_1273; +lean_dec(x_2); +x_1272 = lean_ctor_get(x_1260, 1); +lean_inc(x_1272); +lean_dec(x_1260); +x_1273 = lean_ctor_get(x_1261, 0); +lean_inc(x_1273); +lean_dec(x_1261); +x_1188 = x_1273; +x_1189 = x_1272; +goto block_1243; +} +} +} +else +{ +uint8_t x_1279; +lean_dec(x_1); +x_1279 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1279 == 0) +{ +uint8_t x_1280; +x_1280 = l_Lean_Expr_hasFVar(x_2); +if (x_1280 == 0) +{ +x_1156 = x_2; +x_1157 = x_6; +goto block_1171; +} +else +{ +lean_object* x_1281; +x_1281 = lean_box(0); +x_1172 = x_1281; +goto block_1187; +} +} +else +{ +lean_object* x_1282; +x_1282 = lean_box(0); +x_1172 = x_1282; +goto block_1187; +} +} +} +} +block_1171: +{ +lean_object* x_1158; lean_object* x_1159; +x_1158 = lean_unsigned_to_nat(0u); +x_1159 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_1158, x_3, x_5, x_1157); +if (lean_obj_tag(x_1159) == 0) +{ +uint8_t x_1160; +x_1160 = !lean_is_exclusive(x_1159); +if (x_1160 == 0) +{ +lean_object* x_1161; lean_object* x_1162; +x_1161 = lean_ctor_get(x_1159, 0); +x_1162 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1161, x_1161, x_1158, x_1156); +lean_dec(x_1161); +lean_ctor_set(x_1159, 0, x_1162); +return x_1159; +} +else +{ +lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; +x_1163 = lean_ctor_get(x_1159, 0); +x_1164 = lean_ctor_get(x_1159, 1); +lean_inc(x_1164); +lean_inc(x_1163); +lean_dec(x_1159); +x_1165 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1163, x_1163, x_1158, x_1156); +lean_dec(x_1163); +x_1166 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1166, 0, x_1165); +lean_ctor_set(x_1166, 1, x_1164); +return x_1166; +} +} +else +{ +uint8_t x_1167; +lean_dec(x_1156); +x_1167 = !lean_is_exclusive(x_1159); +if (x_1167 == 0) +{ +return x_1159; +} +else +{ +lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; +x_1168 = lean_ctor_get(x_1159, 0); +x_1169 = lean_ctor_get(x_1159, 1); +lean_inc(x_1169); +lean_inc(x_1168); +lean_dec(x_1159); +x_1170 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1170, 0, x_1168); +lean_ctor_set(x_1170, 1, x_1169); +return x_1170; +} +} +} +block_1187: +{ +lean_object* x_1173; lean_object* x_1174; +lean_dec(x_1172); +x_1173 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_1174 = lean_ctor_get(x_1173, 0); +lean_inc(x_1174); +if (lean_obj_tag(x_1174) == 0) +{ +lean_object* x_1175; lean_object* x_1176; +x_1175 = lean_ctor_get(x_1173, 1); +lean_inc(x_1175); +lean_dec(x_1173); +lean_inc(x_5); +lean_inc(x_2); +x_1176 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_1175); +if (lean_obj_tag(x_1176) == 0) +{ +lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; +x_1177 = lean_ctor_get(x_1176, 0); +lean_inc(x_1177); +x_1178 = lean_ctor_get(x_1176, 1); +lean_inc(x_1178); +lean_dec(x_1176); +lean_inc(x_1177); +x_1179 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_1177, x_5, x_1178); +x_1180 = lean_ctor_get(x_1179, 1); +lean_inc(x_1180); +lean_dec(x_1179); +x_1156 = x_1177; +x_1157 = x_1180; +goto block_1171; +} +else +{ +uint8_t x_1181; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_1181 = !lean_is_exclusive(x_1176); +if (x_1181 == 0) +{ +return x_1176; +} +else +{ +lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; +x_1182 = lean_ctor_get(x_1176, 0); +x_1183 = lean_ctor_get(x_1176, 1); +lean_inc(x_1183); +lean_inc(x_1182); +lean_dec(x_1176); +x_1184 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1184, 0, x_1182); +lean_ctor_set(x_1184, 1, x_1183); +return x_1184; +} +} +} +else +{ +lean_object* x_1185; lean_object* x_1186; +lean_dec(x_2); +x_1185 = lean_ctor_get(x_1173, 1); +lean_inc(x_1185); +lean_dec(x_1173); +x_1186 = lean_ctor_get(x_1174, 0); +lean_inc(x_1186); +lean_dec(x_1174); +x_1156 = x_1186; +x_1157 = x_1185; +goto block_1171; +} +} +block_1243: +{ +lean_object* x_1190; lean_object* x_1191; +x_1190 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_1191 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_1190, x_3, x_5, x_1189); +if (lean_obj_tag(x_1191) == 0) +{ +uint8_t x_1192; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_1192 = !lean_is_exclusive(x_1191); +if (x_1192 == 0) +{ +lean_object* x_1193; lean_object* x_1194; +x_1193 = lean_ctor_get(x_1191, 0); +x_1194 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1193, x_1193, x_1190, x_1188); +lean_dec(x_1193); +lean_ctor_set(x_1191, 0, x_1194); +return x_1191; +} +else +{ +lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; +x_1195 = lean_ctor_get(x_1191, 0); +x_1196 = lean_ctor_get(x_1191, 1); +lean_inc(x_1196); +lean_inc(x_1195); +lean_dec(x_1191); +x_1197 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1195, x_1195, x_1190, x_1188); +lean_dec(x_1195); +x_1198 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1198, 0, x_1197); +lean_ctor_set(x_1198, 1, x_1196); +return x_1198; +} +} +else +{ +lean_object* x_1199; +x_1199 = lean_ctor_get(x_1191, 0); +lean_inc(x_1199); +if (lean_obj_tag(x_1199) == 2) +{ +lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; +x_1200 = lean_ctor_get(x_1191, 1); +lean_inc(x_1200); +lean_dec(x_1191); +x_1201 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_1201, 0, x_1); +lean_inc(x_5); +x_1202 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_1201, x_5, x_1200); +if (lean_obj_tag(x_1202) == 0) +{ +lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; +x_1203 = lean_ctor_get(x_1202, 0); +lean_inc(x_1203); +x_1204 = lean_ctor_get(x_1202, 1); +lean_inc(x_1204); +lean_dec(x_1202); +lean_inc(x_5); +x_1205 = l_Lean_Meta_CheckAssignment_check___main(x_1203, x_5, x_1204); +if (lean_obj_tag(x_1205) == 0) +{ +lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; +x_1206 = lean_ctor_get(x_1205, 0); +lean_inc(x_1206); +x_1207 = lean_ctor_get(x_1205, 1); +lean_inc(x_1207); +lean_dec(x_1205); +x_1208 = lean_ctor_get(x_5, 2); +lean_inc(x_1208); +x_1209 = lean_ctor_get(x_1208, 1); +lean_inc(x_1209); +x_1210 = lean_ctor_get(x_1208, 4); +lean_inc(x_1210); +lean_dec(x_1208); +x_1211 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_1209, x_1210, x_1206, x_5, x_1207); +x_1212 = lean_ctor_get(x_1211, 0); +lean_inc(x_1212); +x_1213 = lean_ctor_get(x_1211, 1); +lean_inc(x_1213); +lean_dec(x_1211); +x_1214 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_1212); +x_1215 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_1215, 0, x_1188); +lean_closure_set(x_1215, 1, x_1214); +lean_closure_set(x_1215, 2, x_1212); +x_1216 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_1215, x_5, x_1213); +if (lean_obj_tag(x_1216) == 0) +{ +lean_object* x_1217; uint8_t x_1218; +x_1217 = lean_ctor_get(x_1216, 0); +lean_inc(x_1217); +x_1218 = lean_unbox(x_1217); +lean_dec(x_1217); +if (x_1218 == 0) +{ +uint8_t x_1219; +lean_dec(x_1212); +x_1219 = !lean_is_exclusive(x_1216); +if (x_1219 == 0) +{ +lean_object* x_1220; +x_1220 = lean_ctor_get(x_1216, 0); +lean_dec(x_1220); +lean_ctor_set_tag(x_1216, 1); +lean_ctor_set(x_1216, 0, x_1199); +return x_1216; +} +else +{ +lean_object* x_1221; lean_object* x_1222; +x_1221 = lean_ctor_get(x_1216, 1); +lean_inc(x_1221); +lean_dec(x_1216); +x_1222 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1222, 0, x_1199); +lean_ctor_set(x_1222, 1, x_1221); +return x_1222; +} +} +else +{ +uint8_t x_1223; +lean_dec(x_1199); +x_1223 = !lean_is_exclusive(x_1216); +if (x_1223 == 0) +{ +lean_object* x_1224; +x_1224 = lean_ctor_get(x_1216, 0); +lean_dec(x_1224); +lean_ctor_set(x_1216, 0, x_1212); +return x_1216; +} +else +{ +lean_object* x_1225; lean_object* x_1226; +x_1225 = lean_ctor_get(x_1216, 1); +lean_inc(x_1225); +lean_dec(x_1216); +x_1226 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1226, 0, x_1212); +lean_ctor_set(x_1226, 1, x_1225); +return x_1226; +} +} +} +else +{ +uint8_t x_1227; +lean_dec(x_1212); +lean_dec(x_1199); +x_1227 = !lean_is_exclusive(x_1216); +if (x_1227 == 0) +{ +return x_1216; +} +else +{ +lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; +x_1228 = lean_ctor_get(x_1216, 0); +x_1229 = lean_ctor_get(x_1216, 1); +lean_inc(x_1229); +lean_inc(x_1228); +lean_dec(x_1216); +x_1230 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1230, 0, x_1228); +lean_ctor_set(x_1230, 1, x_1229); +return x_1230; +} +} +} +else +{ +uint8_t x_1231; +lean_dec(x_1199); +lean_dec(x_1188); +lean_dec(x_5); +lean_dec(x_3); +x_1231 = !lean_is_exclusive(x_1205); +if (x_1231 == 0) +{ +return x_1205; +} +else +{ +lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; +x_1232 = lean_ctor_get(x_1205, 0); +x_1233 = lean_ctor_get(x_1205, 1); +lean_inc(x_1233); +lean_inc(x_1232); +lean_dec(x_1205); +x_1234 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1234, 0, x_1232); +lean_ctor_set(x_1234, 1, x_1233); +return x_1234; +} +} +} +else +{ +uint8_t x_1235; +lean_dec(x_1199); +lean_dec(x_1188); +lean_dec(x_5); +lean_dec(x_3); +x_1235 = !lean_is_exclusive(x_1202); +if (x_1235 == 0) +{ +return x_1202; +} +else +{ +lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; +x_1236 = lean_ctor_get(x_1202, 0); +x_1237 = lean_ctor_get(x_1202, 1); +lean_inc(x_1237); +lean_inc(x_1236); +lean_dec(x_1202); +x_1238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1238, 0, x_1236); +lean_ctor_set(x_1238, 1, x_1237); +return x_1238; +} +} +} +else +{ +uint8_t x_1239; +lean_dec(x_1188); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_1239 = !lean_is_exclusive(x_1191); +if (x_1239 == 0) +{ +lean_object* x_1240; +x_1240 = lean_ctor_get(x_1191, 0); +lean_dec(x_1240); +return x_1191; +} +else +{ +lean_object* x_1241; lean_object* x_1242; +x_1241 = lean_ctor_get(x_1191, 1); +lean_inc(x_1241); +lean_dec(x_1191); +x_1242 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1242, 0, x_1199); +lean_ctor_set(x_1242, 1, x_1241); +return x_1242; +} +} +} +} +} +case 11: +{ +lean_object* x_1283; lean_object* x_1284; lean_object* x_1299; lean_object* x_1315; lean_object* x_1316; uint8_t x_1371; +lean_dec(x_4); +x_1371 = l_Lean_Expr_isMVar(x_2); +if (x_1371 == 0) +{ +uint8_t x_1372; +lean_dec(x_1); +x_1372 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1372 == 0) +{ +uint8_t x_1373; +x_1373 = l_Lean_Expr_hasFVar(x_2); +if (x_1373 == 0) +{ +x_1283 = x_2; +x_1284 = x_6; +goto block_1298; +} +else +{ +lean_object* x_1374; +x_1374 = lean_box(0); +x_1299 = x_1374; +goto block_1314; +} +} +else +{ +lean_object* x_1375; +x_1375 = lean_box(0); +x_1299 = x_1375; +goto block_1314; +} +} +else +{ +lean_object* x_1376; lean_object* x_1377; uint8_t x_1378; +x_1376 = lean_ctor_get(x_5, 0); +lean_inc(x_1376); +x_1377 = lean_ctor_get(x_1376, 0); +lean_inc(x_1377); +lean_dec(x_1376); +x_1378 = lean_ctor_get_uint8(x_1377, sizeof(void*)*1 + 1); +lean_dec(x_1377); +if (x_1378 == 0) +{ +uint8_t x_1379; +lean_dec(x_1); +x_1379 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1379 == 0) +{ +uint8_t x_1380; +x_1380 = l_Lean_Expr_hasFVar(x_2); +if (x_1380 == 0) +{ +x_1283 = x_2; +x_1284 = x_6; +goto block_1298; +} +else +{ +lean_object* x_1381; +x_1381 = lean_box(0); +x_1299 = x_1381; +goto block_1314; +} +} +else +{ +lean_object* x_1382; +x_1382 = lean_box(0); +x_1299 = x_1382; +goto block_1314; +} +} +else +{ +lean_object* x_1383; lean_object* x_1384; uint8_t x_1385; +x_1383 = lean_array_get_size(x_3); +x_1384 = lean_unsigned_to_nat(0u); +x_1385 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_1383, x_1384); +lean_dec(x_1383); +if (x_1385 == 0) +{ +lean_object* x_1386; uint8_t x_1402; +x_1402 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1402 == 0) +{ +uint8_t x_1403; +x_1403 = l_Lean_Expr_hasFVar(x_2); +if (x_1403 == 0) +{ +x_1315 = x_2; +x_1316 = x_6; +goto block_1370; +} +else +{ +lean_object* x_1404; +x_1404 = lean_box(0); +x_1386 = x_1404; +goto block_1401; +} +} +else +{ +lean_object* x_1405; +x_1405 = lean_box(0); +x_1386 = x_1405; +goto block_1401; +} +block_1401: +{ +lean_object* x_1387; lean_object* x_1388; +lean_dec(x_1386); +x_1387 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_1388 = lean_ctor_get(x_1387, 0); +lean_inc(x_1388); +if (lean_obj_tag(x_1388) == 0) +{ +lean_object* x_1389; lean_object* x_1390; +x_1389 = lean_ctor_get(x_1387, 1); +lean_inc(x_1389); +lean_dec(x_1387); +lean_inc(x_5); +lean_inc(x_2); +x_1390 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_1389); +if (lean_obj_tag(x_1390) == 0) +{ +lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; +x_1391 = lean_ctor_get(x_1390, 0); +lean_inc(x_1391); +x_1392 = lean_ctor_get(x_1390, 1); +lean_inc(x_1392); +lean_dec(x_1390); +lean_inc(x_1391); +x_1393 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_1391, x_5, x_1392); +x_1394 = lean_ctor_get(x_1393, 1); +lean_inc(x_1394); +lean_dec(x_1393); +x_1315 = x_1391; +x_1316 = x_1394; +goto block_1370; +} +else +{ +uint8_t x_1395; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1395 = !lean_is_exclusive(x_1390); +if (x_1395 == 0) +{ +return x_1390; +} +else +{ +lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; +x_1396 = lean_ctor_get(x_1390, 0); +x_1397 = lean_ctor_get(x_1390, 1); +lean_inc(x_1397); +lean_inc(x_1396); +lean_dec(x_1390); +x_1398 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1398, 0, x_1396); +lean_ctor_set(x_1398, 1, x_1397); +return x_1398; +} +} +} +else +{ +lean_object* x_1399; lean_object* x_1400; +lean_dec(x_2); +x_1399 = lean_ctor_get(x_1387, 1); +lean_inc(x_1399); +lean_dec(x_1387); +x_1400 = lean_ctor_get(x_1388, 0); +lean_inc(x_1400); +lean_dec(x_1388); +x_1315 = x_1400; +x_1316 = x_1399; +goto block_1370; +} +} +} +else +{ +uint8_t x_1406; +lean_dec(x_1); +x_1406 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1406 == 0) +{ +uint8_t x_1407; +x_1407 = l_Lean_Expr_hasFVar(x_2); +if (x_1407 == 0) +{ +x_1283 = x_2; +x_1284 = x_6; +goto block_1298; +} +else +{ +lean_object* x_1408; +x_1408 = lean_box(0); +x_1299 = x_1408; +goto block_1314; +} +} +else +{ +lean_object* x_1409; +x_1409 = lean_box(0); +x_1299 = x_1409; +goto block_1314; +} +} +} +} +block_1298: +{ +lean_object* x_1285; lean_object* x_1286; +x_1285 = lean_unsigned_to_nat(0u); +x_1286 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_1285, x_3, x_5, x_1284); +if (lean_obj_tag(x_1286) == 0) +{ +uint8_t x_1287; +x_1287 = !lean_is_exclusive(x_1286); +if (x_1287 == 0) +{ +lean_object* x_1288; lean_object* x_1289; +x_1288 = lean_ctor_get(x_1286, 0); +x_1289 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1288, x_1288, x_1285, x_1283); +lean_dec(x_1288); +lean_ctor_set(x_1286, 0, x_1289); +return x_1286; +} +else +{ +lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; +x_1290 = lean_ctor_get(x_1286, 0); +x_1291 = lean_ctor_get(x_1286, 1); +lean_inc(x_1291); +lean_inc(x_1290); +lean_dec(x_1286); +x_1292 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1290, x_1290, x_1285, x_1283); +lean_dec(x_1290); +x_1293 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1293, 0, x_1292); +lean_ctor_set(x_1293, 1, x_1291); +return x_1293; +} +} +else +{ +uint8_t x_1294; +lean_dec(x_1283); +x_1294 = !lean_is_exclusive(x_1286); +if (x_1294 == 0) +{ +return x_1286; +} +else +{ +lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; +x_1295 = lean_ctor_get(x_1286, 0); +x_1296 = lean_ctor_get(x_1286, 1); +lean_inc(x_1296); +lean_inc(x_1295); +lean_dec(x_1286); +x_1297 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1297, 0, x_1295); +lean_ctor_set(x_1297, 1, x_1296); +return x_1297; +} +} +} +block_1314: +{ +lean_object* x_1300; lean_object* x_1301; +lean_dec(x_1299); +x_1300 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_1301 = lean_ctor_get(x_1300, 0); +lean_inc(x_1301); +if (lean_obj_tag(x_1301) == 0) +{ +lean_object* x_1302; lean_object* x_1303; +x_1302 = lean_ctor_get(x_1300, 1); +lean_inc(x_1302); +lean_dec(x_1300); +lean_inc(x_5); +lean_inc(x_2); +x_1303 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_1302); +if (lean_obj_tag(x_1303) == 0) +{ +lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; +x_1304 = lean_ctor_get(x_1303, 0); +lean_inc(x_1304); +x_1305 = lean_ctor_get(x_1303, 1); +lean_inc(x_1305); +lean_dec(x_1303); +lean_inc(x_1304); +x_1306 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_1304, x_5, x_1305); +x_1307 = lean_ctor_get(x_1306, 1); +lean_inc(x_1307); +lean_dec(x_1306); +x_1283 = x_1304; +x_1284 = x_1307; +goto block_1298; +} +else +{ +uint8_t x_1308; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_1308 = !lean_is_exclusive(x_1303); +if (x_1308 == 0) +{ +return x_1303; +} +else +{ +lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; +x_1309 = lean_ctor_get(x_1303, 0); +x_1310 = lean_ctor_get(x_1303, 1); +lean_inc(x_1310); +lean_inc(x_1309); +lean_dec(x_1303); +x_1311 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1311, 0, x_1309); +lean_ctor_set(x_1311, 1, x_1310); +return x_1311; +} +} +} +else +{ +lean_object* x_1312; lean_object* x_1313; +lean_dec(x_2); +x_1312 = lean_ctor_get(x_1300, 1); +lean_inc(x_1312); +lean_dec(x_1300); +x_1313 = lean_ctor_get(x_1301, 0); +lean_inc(x_1313); +lean_dec(x_1301); +x_1283 = x_1313; +x_1284 = x_1312; +goto block_1298; +} +} +block_1370: +{ +lean_object* x_1317; lean_object* x_1318; +x_1317 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_1318 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_1317, x_3, x_5, x_1316); +if (lean_obj_tag(x_1318) == 0) +{ +uint8_t x_1319; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_1319 = !lean_is_exclusive(x_1318); +if (x_1319 == 0) +{ +lean_object* x_1320; lean_object* x_1321; +x_1320 = lean_ctor_get(x_1318, 0); +x_1321 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1320, x_1320, x_1317, x_1315); +lean_dec(x_1320); +lean_ctor_set(x_1318, 0, x_1321); +return x_1318; +} +else +{ +lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; +x_1322 = lean_ctor_get(x_1318, 0); +x_1323 = lean_ctor_get(x_1318, 1); +lean_inc(x_1323); +lean_inc(x_1322); +lean_dec(x_1318); +x_1324 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1322, x_1322, x_1317, x_1315); +lean_dec(x_1322); +x_1325 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1325, 0, x_1324); +lean_ctor_set(x_1325, 1, x_1323); +return x_1325; +} +} +else +{ +lean_object* x_1326; +x_1326 = lean_ctor_get(x_1318, 0); +lean_inc(x_1326); +if (lean_obj_tag(x_1326) == 2) +{ +lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; +x_1327 = lean_ctor_get(x_1318, 1); +lean_inc(x_1327); +lean_dec(x_1318); +x_1328 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_1328, 0, x_1); +lean_inc(x_5); +x_1329 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_1328, x_5, x_1327); +if (lean_obj_tag(x_1329) == 0) +{ +lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; +x_1330 = lean_ctor_get(x_1329, 0); +lean_inc(x_1330); +x_1331 = lean_ctor_get(x_1329, 1); +lean_inc(x_1331); +lean_dec(x_1329); +lean_inc(x_5); +x_1332 = l_Lean_Meta_CheckAssignment_check___main(x_1330, x_5, x_1331); +if (lean_obj_tag(x_1332) == 0) +{ +lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; +x_1333 = lean_ctor_get(x_1332, 0); +lean_inc(x_1333); +x_1334 = lean_ctor_get(x_1332, 1); +lean_inc(x_1334); +lean_dec(x_1332); +x_1335 = lean_ctor_get(x_5, 2); +lean_inc(x_1335); +x_1336 = lean_ctor_get(x_1335, 1); +lean_inc(x_1336); +x_1337 = lean_ctor_get(x_1335, 4); +lean_inc(x_1337); +lean_dec(x_1335); +x_1338 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_1336, x_1337, x_1333, x_5, x_1334); +x_1339 = lean_ctor_get(x_1338, 0); +lean_inc(x_1339); +x_1340 = lean_ctor_get(x_1338, 1); +lean_inc(x_1340); +lean_dec(x_1338); +x_1341 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_1339); +x_1342 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_1342, 0, x_1315); +lean_closure_set(x_1342, 1, x_1341); +lean_closure_set(x_1342, 2, x_1339); +x_1343 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_1342, x_5, x_1340); +if (lean_obj_tag(x_1343) == 0) +{ +lean_object* x_1344; uint8_t x_1345; +x_1344 = lean_ctor_get(x_1343, 0); +lean_inc(x_1344); +x_1345 = lean_unbox(x_1344); +lean_dec(x_1344); +if (x_1345 == 0) +{ +uint8_t x_1346; +lean_dec(x_1339); +x_1346 = !lean_is_exclusive(x_1343); +if (x_1346 == 0) +{ +lean_object* x_1347; +x_1347 = lean_ctor_get(x_1343, 0); +lean_dec(x_1347); +lean_ctor_set_tag(x_1343, 1); +lean_ctor_set(x_1343, 0, x_1326); +return x_1343; +} +else +{ +lean_object* x_1348; lean_object* x_1349; +x_1348 = lean_ctor_get(x_1343, 1); +lean_inc(x_1348); +lean_dec(x_1343); +x_1349 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1349, 0, x_1326); +lean_ctor_set(x_1349, 1, x_1348); +return x_1349; +} +} +else +{ +uint8_t x_1350; +lean_dec(x_1326); +x_1350 = !lean_is_exclusive(x_1343); +if (x_1350 == 0) +{ +lean_object* x_1351; +x_1351 = lean_ctor_get(x_1343, 0); +lean_dec(x_1351); +lean_ctor_set(x_1343, 0, x_1339); +return x_1343; +} +else +{ +lean_object* x_1352; lean_object* x_1353; +x_1352 = lean_ctor_get(x_1343, 1); +lean_inc(x_1352); +lean_dec(x_1343); +x_1353 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1353, 0, x_1339); +lean_ctor_set(x_1353, 1, x_1352); +return x_1353; +} +} +} +else +{ +uint8_t x_1354; +lean_dec(x_1339); +lean_dec(x_1326); +x_1354 = !lean_is_exclusive(x_1343); +if (x_1354 == 0) +{ +return x_1343; +} +else +{ +lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; +x_1355 = lean_ctor_get(x_1343, 0); +x_1356 = lean_ctor_get(x_1343, 1); +lean_inc(x_1356); +lean_inc(x_1355); +lean_dec(x_1343); +x_1357 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1357, 0, x_1355); +lean_ctor_set(x_1357, 1, x_1356); +return x_1357; +} +} +} +else +{ +uint8_t x_1358; +lean_dec(x_1326); +lean_dec(x_1315); +lean_dec(x_5); +lean_dec(x_3); +x_1358 = !lean_is_exclusive(x_1332); +if (x_1358 == 0) +{ +return x_1332; +} +else +{ +lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; +x_1359 = lean_ctor_get(x_1332, 0); +x_1360 = lean_ctor_get(x_1332, 1); +lean_inc(x_1360); +lean_inc(x_1359); +lean_dec(x_1332); +x_1361 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1361, 0, x_1359); +lean_ctor_set(x_1361, 1, x_1360); +return x_1361; +} +} +} +else +{ +uint8_t x_1362; +lean_dec(x_1326); +lean_dec(x_1315); +lean_dec(x_5); +lean_dec(x_3); +x_1362 = !lean_is_exclusive(x_1329); +if (x_1362 == 0) +{ +return x_1329; +} +else +{ +lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; +x_1363 = lean_ctor_get(x_1329, 0); +x_1364 = lean_ctor_get(x_1329, 1); +lean_inc(x_1364); +lean_inc(x_1363); +lean_dec(x_1329); +x_1365 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1365, 0, x_1363); +lean_ctor_set(x_1365, 1, x_1364); +return x_1365; +} +} +} +else +{ +uint8_t x_1366; +lean_dec(x_1315); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_1366 = !lean_is_exclusive(x_1318); +if (x_1366 == 0) +{ +lean_object* x_1367; +x_1367 = lean_ctor_get(x_1318, 0); +lean_dec(x_1367); +return x_1318; +} +else +{ +lean_object* x_1368; lean_object* x_1369; +x_1368 = lean_ctor_get(x_1318, 1); +lean_inc(x_1368); +lean_dec(x_1318); +x_1369 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1369, 0, x_1326); +lean_ctor_set(x_1369, 1, x_1368); +return x_1369; +} +} +} +} +} +default: +{ +lean_object* x_1410; lean_object* x_1411; lean_object* x_1426; lean_object* x_1442; lean_object* x_1443; uint8_t x_1498; +lean_dec(x_4); +x_1498 = l_Lean_Expr_isMVar(x_2); +if (x_1498 == 0) +{ +uint8_t x_1499; +lean_dec(x_1); +x_1499 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1499 == 0) +{ +uint8_t x_1500; +x_1500 = l_Lean_Expr_hasFVar(x_2); +if (x_1500 == 0) +{ +x_1410 = x_2; +x_1411 = x_6; +goto block_1425; +} +else +{ +lean_object* x_1501; +x_1501 = lean_box(0); +x_1426 = x_1501; +goto block_1441; +} +} +else +{ +lean_object* x_1502; +x_1502 = lean_box(0); +x_1426 = x_1502; +goto block_1441; +} +} +else +{ +lean_object* x_1503; lean_object* x_1504; uint8_t x_1505; +x_1503 = lean_ctor_get(x_5, 0); +lean_inc(x_1503); +x_1504 = lean_ctor_get(x_1503, 0); +lean_inc(x_1504); +lean_dec(x_1503); +x_1505 = lean_ctor_get_uint8(x_1504, sizeof(void*)*1 + 1); +lean_dec(x_1504); +if (x_1505 == 0) +{ +uint8_t x_1506; +lean_dec(x_1); +x_1506 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1506 == 0) +{ +uint8_t x_1507; +x_1507 = l_Lean_Expr_hasFVar(x_2); +if (x_1507 == 0) +{ +x_1410 = x_2; +x_1411 = x_6; +goto block_1425; +} +else +{ +lean_object* x_1508; +x_1508 = lean_box(0); +x_1426 = x_1508; +goto block_1441; +} +} +else +{ +lean_object* x_1509; +x_1509 = lean_box(0); +x_1426 = x_1509; +goto block_1441; +} +} +else +{ +lean_object* x_1510; lean_object* x_1511; uint8_t x_1512; +x_1510 = lean_array_get_size(x_3); +x_1511 = lean_unsigned_to_nat(0u); +x_1512 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_3, x_3, x_1510, x_1511); +lean_dec(x_1510); +if (x_1512 == 0) +{ +lean_object* x_1513; uint8_t x_1529; +x_1529 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1529 == 0) +{ +uint8_t x_1530; +x_1530 = l_Lean_Expr_hasFVar(x_2); +if (x_1530 == 0) +{ +x_1442 = x_2; +x_1443 = x_6; +goto block_1497; +} +else +{ +lean_object* x_1531; +x_1531 = lean_box(0); +x_1513 = x_1531; +goto block_1528; +} +} +else +{ +lean_object* x_1532; +x_1532 = lean_box(0); +x_1513 = x_1532; +goto block_1528; +} +block_1528: +{ +lean_object* x_1514; lean_object* x_1515; +lean_dec(x_1513); +x_1514 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_1515 = lean_ctor_get(x_1514, 0); +lean_inc(x_1515); +if (lean_obj_tag(x_1515) == 0) +{ +lean_object* x_1516; lean_object* x_1517; +x_1516 = lean_ctor_get(x_1514, 1); +lean_inc(x_1516); +lean_dec(x_1514); +lean_inc(x_5); +lean_inc(x_2); +x_1517 = l_Lean_Meta_CheckAssignment_checkMVar___at_Lean_Meta_CheckAssignment_check___main___spec__4(x_2, x_5, x_1516); +if (lean_obj_tag(x_1517) == 0) +{ +lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; +x_1518 = lean_ctor_get(x_1517, 0); +lean_inc(x_1518); +x_1519 = lean_ctor_get(x_1517, 1); +lean_inc(x_1519); +lean_dec(x_1517); +lean_inc(x_1518); +x_1520 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_1518, x_5, x_1519); +x_1521 = lean_ctor_get(x_1520, 1); +lean_inc(x_1521); +lean_dec(x_1520); +x_1442 = x_1518; +x_1443 = x_1521; +goto block_1497; +} +else +{ +uint8_t x_1522; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_1522 = !lean_is_exclusive(x_1517); +if (x_1522 == 0) +{ +return x_1517; +} +else +{ +lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; +x_1523 = lean_ctor_get(x_1517, 0); +x_1524 = lean_ctor_get(x_1517, 1); +lean_inc(x_1524); +lean_inc(x_1523); +lean_dec(x_1517); +x_1525 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1525, 0, x_1523); +lean_ctor_set(x_1525, 1, x_1524); +return x_1525; +} +} +} +else +{ +lean_object* x_1526; lean_object* x_1527; +lean_dec(x_2); +x_1526 = lean_ctor_get(x_1514, 1); +lean_inc(x_1526); +lean_dec(x_1514); +x_1527 = lean_ctor_get(x_1515, 0); +lean_inc(x_1527); +lean_dec(x_1515); +x_1442 = x_1527; +x_1443 = x_1526; +goto block_1497; +} +} +} +else +{ +uint8_t x_1533; +lean_dec(x_1); +x_1533 = l_Lean_Expr_hasExprMVar(x_2); +if (x_1533 == 0) +{ +uint8_t x_1534; +x_1534 = l_Lean_Expr_hasFVar(x_2); +if (x_1534 == 0) +{ +x_1410 = x_2; +x_1411 = x_6; +goto block_1425; +} +else +{ +lean_object* x_1535; +x_1535 = lean_box(0); +x_1426 = x_1535; +goto block_1441; +} +} +else +{ +lean_object* x_1536; +x_1536 = lean_box(0); +x_1426 = x_1536; +goto block_1441; +} +} +} +} +block_1425: +{ +lean_object* x_1412; lean_object* x_1413; +x_1412 = lean_unsigned_to_nat(0u); +x_1413 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_1412, x_3, x_5, x_1411); +if (lean_obj_tag(x_1413) == 0) +{ +uint8_t x_1414; +x_1414 = !lean_is_exclusive(x_1413); +if (x_1414 == 0) +{ +lean_object* x_1415; lean_object* x_1416; +x_1415 = lean_ctor_get(x_1413, 0); +x_1416 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1415, x_1415, x_1412, x_1410); +lean_dec(x_1415); +lean_ctor_set(x_1413, 0, x_1416); +return x_1413; +} +else +{ +lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; +x_1417 = lean_ctor_get(x_1413, 0); +x_1418 = lean_ctor_get(x_1413, 1); +lean_inc(x_1418); +lean_inc(x_1417); +lean_dec(x_1413); +x_1419 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1417, x_1417, x_1412, x_1410); +lean_dec(x_1417); +x_1420 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1420, 0, x_1419); +lean_ctor_set(x_1420, 1, x_1418); +return x_1420; +} +} +else +{ +uint8_t x_1421; +lean_dec(x_1410); +x_1421 = !lean_is_exclusive(x_1413); +if (x_1421 == 0) +{ +return x_1413; +} +else +{ +lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; +x_1422 = lean_ctor_get(x_1413, 0); +x_1423 = lean_ctor_get(x_1413, 1); +lean_inc(x_1423); +lean_inc(x_1422); +lean_dec(x_1413); +x_1424 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1424, 0, x_1422); +lean_ctor_set(x_1424, 1, x_1423); +return x_1424; +} +} +} +block_1441: +{ +lean_object* x_1427; lean_object* x_1428; +lean_dec(x_1426); +x_1427 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_2, x_5, x_6); +x_1428 = lean_ctor_get(x_1427, 0); +lean_inc(x_1428); +if (lean_obj_tag(x_1428) == 0) +{ +lean_object* x_1429; lean_object* x_1430; +x_1429 = lean_ctor_get(x_1427, 1); +lean_inc(x_1429); +lean_dec(x_1427); +lean_inc(x_5); +lean_inc(x_2); +x_1430 = l_Lean_Meta_CheckAssignment_check___main(x_2, x_5, x_1429); +if (lean_obj_tag(x_1430) == 0) +{ +lean_object* x_1431; lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; +x_1431 = lean_ctor_get(x_1430, 0); +lean_inc(x_1431); +x_1432 = lean_ctor_get(x_1430, 1); +lean_inc(x_1432); +lean_dec(x_1430); +lean_inc(x_1431); +x_1433 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_2, x_1431, x_5, x_1432); +x_1434 = lean_ctor_get(x_1433, 1); +lean_inc(x_1434); +lean_dec(x_1433); +x_1410 = x_1431; +x_1411 = x_1434; +goto block_1425; +} +else +{ +uint8_t x_1435; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +x_1435 = !lean_is_exclusive(x_1430); +if (x_1435 == 0) +{ +return x_1430; +} +else +{ +lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; +x_1436 = lean_ctor_get(x_1430, 0); +x_1437 = lean_ctor_get(x_1430, 1); +lean_inc(x_1437); +lean_inc(x_1436); +lean_dec(x_1430); +x_1438 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1438, 0, x_1436); +lean_ctor_set(x_1438, 1, x_1437); +return x_1438; +} +} +} +else +{ +lean_object* x_1439; lean_object* x_1440; +lean_dec(x_2); +x_1439 = lean_ctor_get(x_1427, 1); +lean_inc(x_1439); +lean_dec(x_1427); +x_1440 = lean_ctor_get(x_1428, 0); +lean_inc(x_1440); +lean_dec(x_1428); +x_1410 = x_1440; +x_1411 = x_1439; +goto block_1425; +} +} +block_1497: +{ +lean_object* x_1444; lean_object* x_1445; +x_1444 = lean_unsigned_to_nat(0u); +lean_inc(x_5); +lean_inc(x_3); +x_1445 = l_Array_umapMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__5(x_1444, x_3, x_5, x_1443); +if (lean_obj_tag(x_1445) == 0) +{ +uint8_t x_1446; +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_1446 = !lean_is_exclusive(x_1445); +if (x_1446 == 0) +{ +lean_object* x_1447; lean_object* x_1448; +x_1447 = lean_ctor_get(x_1445, 0); +x_1448 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1447, x_1447, x_1444, x_1442); +lean_dec(x_1447); +lean_ctor_set(x_1445, 0, x_1448); +return x_1445; +} +else +{ +lean_object* x_1449; lean_object* x_1450; lean_object* x_1451; lean_object* x_1452; +x_1449 = lean_ctor_get(x_1445, 0); +x_1450 = lean_ctor_get(x_1445, 1); +lean_inc(x_1450); +lean_inc(x_1449); +lean_dec(x_1445); +x_1451 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1449, x_1449, x_1444, x_1442); +lean_dec(x_1449); +x_1452 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1452, 0, x_1451); +lean_ctor_set(x_1452, 1, x_1450); +return x_1452; +} +} +else +{ +lean_object* x_1453; +x_1453 = lean_ctor_get(x_1445, 0); +lean_inc(x_1453); +if (lean_obj_tag(x_1453) == 2) +{ +lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; +x_1454 = lean_ctor_get(x_1445, 1); +lean_inc(x_1454); +lean_dec(x_1445); +x_1455 = lean_alloc_closure((void*)(l_Lean_Meta_inferType), 3, 1); +lean_closure_set(x_1455, 0, x_1); +lean_inc(x_5); +x_1456 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_1455, x_5, x_1454); +if (lean_obj_tag(x_1456) == 0) +{ +lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; +x_1457 = lean_ctor_get(x_1456, 0); +lean_inc(x_1457); +x_1458 = lean_ctor_get(x_1456, 1); +lean_inc(x_1458); +lean_dec(x_1456); +lean_inc(x_5); +x_1459 = l_Lean_Meta_CheckAssignment_check___main(x_1457, x_5, x_1458); +if (lean_obj_tag(x_1459) == 0) +{ +lean_object* x_1460; lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; lean_object* x_1468; lean_object* x_1469; lean_object* x_1470; +x_1460 = lean_ctor_get(x_1459, 0); +lean_inc(x_1460); +x_1461 = lean_ctor_get(x_1459, 1); +lean_inc(x_1461); +lean_dec(x_1459); +x_1462 = lean_ctor_get(x_5, 2); +lean_inc(x_1462); +x_1463 = lean_ctor_get(x_1462, 1); +lean_inc(x_1463); +x_1464 = lean_ctor_get(x_1462, 4); +lean_inc(x_1464); +lean_dec(x_1462); +x_1465 = l_Lean_Meta_CheckAssignment_mkAuxMVar(x_1463, x_1464, x_1460, x_5, x_1461); +x_1466 = lean_ctor_get(x_1465, 0); +lean_inc(x_1466); +x_1467 = lean_ctor_get(x_1465, 1); +lean_inc(x_1467); +lean_dec(x_1465); +x_1468 = lean_array_get_size(x_3); +lean_dec(x_3); +lean_inc(x_1466); +x_1469 = lean_alloc_closure((void*)(l_Lean_Meta_CheckAssignment_assignToConstFun), 5, 3); +lean_closure_set(x_1469, 0, x_1442); +lean_closure_set(x_1469, 1, x_1468); +lean_closure_set(x_1469, 2, x_1466); +x_1470 = l_Lean_Meta_CheckAssignment_liftMetaM___rarg(x_1469, x_5, x_1467); +if (lean_obj_tag(x_1470) == 0) +{ +lean_object* x_1471; uint8_t x_1472; +x_1471 = lean_ctor_get(x_1470, 0); +lean_inc(x_1471); +x_1472 = lean_unbox(x_1471); +lean_dec(x_1471); +if (x_1472 == 0) +{ +uint8_t x_1473; +lean_dec(x_1466); +x_1473 = !lean_is_exclusive(x_1470); +if (x_1473 == 0) +{ +lean_object* x_1474; +x_1474 = lean_ctor_get(x_1470, 0); +lean_dec(x_1474); +lean_ctor_set_tag(x_1470, 1); +lean_ctor_set(x_1470, 0, x_1453); +return x_1470; +} +else +{ +lean_object* x_1475; lean_object* x_1476; +x_1475 = lean_ctor_get(x_1470, 1); +lean_inc(x_1475); +lean_dec(x_1470); +x_1476 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1476, 0, x_1453); +lean_ctor_set(x_1476, 1, x_1475); +return x_1476; +} +} +else +{ +uint8_t x_1477; +lean_dec(x_1453); +x_1477 = !lean_is_exclusive(x_1470); +if (x_1477 == 0) +{ +lean_object* x_1478; +x_1478 = lean_ctor_get(x_1470, 0); +lean_dec(x_1478); +lean_ctor_set(x_1470, 0, x_1466); +return x_1470; +} +else +{ +lean_object* x_1479; lean_object* x_1480; +x_1479 = lean_ctor_get(x_1470, 1); +lean_inc(x_1479); +lean_dec(x_1470); +x_1480 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1480, 0, x_1466); +lean_ctor_set(x_1480, 1, x_1479); +return x_1480; +} +} +} +else +{ +uint8_t x_1481; +lean_dec(x_1466); +lean_dec(x_1453); +x_1481 = !lean_is_exclusive(x_1470); +if (x_1481 == 0) +{ +return x_1470; +} +else +{ +lean_object* x_1482; lean_object* x_1483; lean_object* x_1484; +x_1482 = lean_ctor_get(x_1470, 0); +x_1483 = lean_ctor_get(x_1470, 1); +lean_inc(x_1483); +lean_inc(x_1482); +lean_dec(x_1470); +x_1484 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1484, 0, x_1482); +lean_ctor_set(x_1484, 1, x_1483); +return x_1484; +} +} +} +else +{ +uint8_t x_1485; +lean_dec(x_1453); +lean_dec(x_1442); +lean_dec(x_5); +lean_dec(x_3); +x_1485 = !lean_is_exclusive(x_1459); +if (x_1485 == 0) +{ +return x_1459; +} +else +{ +lean_object* x_1486; lean_object* x_1487; lean_object* x_1488; +x_1486 = lean_ctor_get(x_1459, 0); +x_1487 = lean_ctor_get(x_1459, 1); +lean_inc(x_1487); +lean_inc(x_1486); +lean_dec(x_1459); +x_1488 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1488, 0, x_1486); +lean_ctor_set(x_1488, 1, x_1487); +return x_1488; +} +} +} +else +{ +uint8_t x_1489; +lean_dec(x_1453); +lean_dec(x_1442); +lean_dec(x_5); +lean_dec(x_3); +x_1489 = !lean_is_exclusive(x_1456); +if (x_1489 == 0) +{ +return x_1456; +} +else +{ +lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; +x_1490 = lean_ctor_get(x_1456, 0); +x_1491 = lean_ctor_get(x_1456, 1); +lean_inc(x_1491); +lean_inc(x_1490); +lean_dec(x_1456); +x_1492 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1492, 0, x_1490); +lean_ctor_set(x_1492, 1, x_1491); +return x_1492; +} +} +} +else +{ +uint8_t x_1493; +lean_dec(x_1442); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_1493 = !lean_is_exclusive(x_1445); +if (x_1493 == 0) +{ +lean_object* x_1494; +x_1494 = lean_ctor_get(x_1445, 0); +lean_dec(x_1494); +return x_1445; +} +else +{ +lean_object* x_1495; lean_object* x_1496; +x_1495 = lean_ctor_get(x_1445, 1); +lean_inc(x_1495); +lean_dec(x_1445); +x_1496 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1496, 0, x_1453); +lean_ctor_set(x_1496, 1, x_1495); +return x_1496; +} +} +} +} +} } } } @@ -7354,7 +24392,7 @@ block_44: { lean_object* x_23; lean_object* x_24; lean_dec(x_22); -x_23 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_1, x_2, x_3); +x_23 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_1, x_2, x_3); x_24 = lean_ctor_get(x_23, 0); lean_inc(x_24); if (lean_obj_tag(x_24) == 0) @@ -7375,7 +24413,7 @@ x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); lean_dec(x_26); lean_inc(x_27); -x_29 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_1, x_27, x_2, x_28); +x_29 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_1, x_27, x_2, x_28); lean_dec(x_2); x_30 = !lean_is_exclusive(x_29); if (x_30 == 0) @@ -7493,7 +24531,7 @@ block_72: { lean_object* x_51; lean_object* x_52; lean_dec(x_50); -x_51 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_1, x_2, x_3); +x_51 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_1, x_2, x_3); x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); if (lean_obj_tag(x_52) == 0) @@ -7514,7 +24552,7 @@ x_56 = lean_ctor_get(x_54, 1); lean_inc(x_56); lean_dec(x_54); lean_inc(x_55); -x_57 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_1, x_55, x_2, x_56); +x_57 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_1, x_55, x_2, x_56); lean_dec(x_2); x_58 = !lean_is_exclusive(x_57); if (x_58 == 0) @@ -7598,1326 +24636,1098 @@ return x_71; } case 5: { -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_112; uint8_t x_128; -x_78 = lean_ctor_get(x_1, 0); -lean_inc(x_78); -x_79 = lean_ctor_get(x_1, 1); +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_78 = lean_unsigned_to_nat(0u); +x_79 = l_Lean_Expr_getAppNumArgsAux___main(x_1, x_78); +x_80 = l_Lean_Expr_getAppArgs___closed__1; lean_inc(x_79); -x_128 = l_Lean_Expr_hasExprMVar(x_78); -if (x_128 == 0) -{ -uint8_t x_129; -x_129 = l_Lean_Expr_hasFVar(x_78); -if (x_129 == 0) -{ -x_80 = x_78; -x_81 = x_3; -goto block_111; -} -else -{ -lean_object* x_130; -x_130 = lean_box(0); -x_112 = x_130; -goto block_127; -} -} -else -{ -lean_object* x_131; -x_131 = lean_box(0); -x_112 = x_131; -goto block_127; -} -block_111: -{ -lean_object* x_82; lean_object* x_83; lean_object* x_91; uint8_t x_107; -x_107 = l_Lean_Expr_hasExprMVar(x_79); -if (x_107 == 0) -{ -uint8_t x_108; -x_108 = l_Lean_Expr_hasFVar(x_79); -if (x_108 == 0) -{ -lean_dec(x_2); -x_82 = x_79; -x_83 = x_81; -goto block_90; -} -else -{ -lean_object* x_109; -x_109 = lean_box(0); -x_91 = x_109; -goto block_106; -} -} -else -{ -lean_object* x_110; -x_110 = lean_box(0); -x_91 = x_110; -goto block_106; -} -block_90: -{ -if (lean_obj_tag(x_1) == 5) -{ -lean_object* x_84; lean_object* x_85; -x_84 = lean_expr_update_app(x_1, x_80, x_82); -x_85 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_83); -return x_85; -} -else -{ -lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; -lean_dec(x_82); -lean_dec(x_80); -lean_dec(x_1); -x_86 = l_Lean_Expr_Inhabited; -x_87 = l_Lean_Expr_updateApp_x21___closed__1; -x_88 = lean_panic_fn(x_86, x_87); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_88); -lean_ctor_set(x_89, 1, x_83); -return x_89; -} -} -block_106: -{ -lean_object* x_92; lean_object* x_93; -lean_dec(x_91); -x_92 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_79, x_2, x_81); -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; lean_object* x_95; -x_94 = lean_ctor_get(x_92, 1); -lean_inc(x_94); -lean_dec(x_92); -lean_inc(x_2); -lean_inc(x_79); -x_95 = l_Lean_Meta_CheckAssignment_check___main(x_79, x_2, 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; -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); -lean_inc(x_96); -x_98 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_79, x_96, x_2, x_97); -lean_dec(x_2); -x_99 = lean_ctor_get(x_98, 1); -lean_inc(x_99); -lean_dec(x_98); -x_82 = x_96; -x_83 = x_99; -goto block_90; -} -else -{ -uint8_t x_100; -lean_dec(x_80); +x_81 = lean_mk_array(x_79, x_80); +x_82 = lean_unsigned_to_nat(1u); +x_83 = lean_nat_sub(x_79, x_82); lean_dec(x_79); -lean_dec(x_2); -lean_dec(x_1); -x_100 = !lean_is_exclusive(x_95); -if (x_100 == 0) -{ -return x_95; -} -else -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; -x_101 = lean_ctor_get(x_95, 0); -x_102 = lean_ctor_get(x_95, 1); -lean_inc(x_102); -lean_inc(x_101); -lean_dec(x_95); -x_103 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -return x_103; -} -} -} -else -{ -lean_object* x_104; lean_object* x_105; -lean_dec(x_79); -lean_dec(x_2); -x_104 = lean_ctor_get(x_92, 1); -lean_inc(x_104); -lean_dec(x_92); -x_105 = lean_ctor_get(x_93, 0); -lean_inc(x_105); -lean_dec(x_93); -x_82 = x_105; -x_83 = x_104; -goto block_90; -} -} -} -block_127: -{ -lean_object* x_113; lean_object* x_114; -lean_dec(x_112); -x_113 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_78, x_2, x_3); -x_114 = lean_ctor_get(x_113, 0); -lean_inc(x_114); -if (lean_obj_tag(x_114) == 0) -{ -lean_object* x_115; lean_object* x_116; -x_115 = lean_ctor_get(x_113, 1); -lean_inc(x_115); -lean_dec(x_113); -lean_inc(x_2); -lean_inc(x_78); -x_116 = l_Lean_Meta_CheckAssignment_check___main(x_78, x_2, x_115); -if (lean_obj_tag(x_116) == 0) -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -x_117 = lean_ctor_get(x_116, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_116, 1); -lean_inc(x_118); -lean_dec(x_116); -lean_inc(x_117); -x_119 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_78, x_117, x_2, x_118); -x_120 = lean_ctor_get(x_119, 1); -lean_inc(x_120); -lean_dec(x_119); -x_80 = x_117; -x_81 = x_120; -goto block_111; -} -else -{ -uint8_t x_121; -lean_dec(x_79); -lean_dec(x_78); -lean_dec(x_2); -lean_dec(x_1); -x_121 = !lean_is_exclusive(x_116); -if (x_121 == 0) -{ -return x_116; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_116, 0); -x_123 = lean_ctor_get(x_116, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_116); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -return x_124; -} -} -} -else -{ -lean_object* x_125; lean_object* x_126; -lean_dec(x_78); -x_125 = lean_ctor_get(x_113, 1); -lean_inc(x_125); -lean_dec(x_113); -x_126 = lean_ctor_get(x_114, 0); -lean_inc(x_126); -lean_dec(x_114); -x_80 = x_126; -x_81 = x_125; -goto block_111; -} -} +lean_inc(x_1); +x_84 = l_Lean_Expr_withAppAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__7(x_1, x_1, x_81, x_83, x_2, x_3); +return x_84; } case 6: { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_168; uint8_t x_184; -x_132 = lean_ctor_get(x_1, 1); -lean_inc(x_132); -x_133 = lean_ctor_get(x_1, 2); -lean_inc(x_133); -x_184 = l_Lean_Expr_hasExprMVar(x_132); -if (x_184 == 0) +lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_121; uint8_t x_137; +x_85 = lean_ctor_get(x_1, 1); +lean_inc(x_85); +x_86 = lean_ctor_get(x_1, 2); +lean_inc(x_86); +x_137 = l_Lean_Expr_hasExprMVar(x_85); +if (x_137 == 0) { -uint8_t x_185; -x_185 = l_Lean_Expr_hasFVar(x_132); -if (x_185 == 0) +uint8_t x_138; +x_138 = l_Lean_Expr_hasFVar(x_85); +if (x_138 == 0) { -x_134 = x_132; -x_135 = x_3; -goto block_167; +x_87 = x_85; +x_88 = x_3; +goto block_120; } else { -lean_object* x_186; -x_186 = lean_box(0); -x_168 = x_186; -goto block_183; +lean_object* x_139; +x_139 = lean_box(0); +x_121 = x_139; +goto block_136; } } else { -lean_object* x_187; -x_187 = lean_box(0); -x_168 = x_187; -goto block_183; +lean_object* x_140; +x_140 = lean_box(0); +x_121 = x_140; +goto block_136; } -block_167: +block_120: { -lean_object* x_136; lean_object* x_137; lean_object* x_147; uint8_t x_163; -x_163 = l_Lean_Expr_hasExprMVar(x_133); -if (x_163 == 0) +lean_object* x_89; lean_object* x_90; lean_object* x_100; uint8_t x_116; +x_116 = l_Lean_Expr_hasExprMVar(x_86); +if (x_116 == 0) { -uint8_t x_164; -x_164 = l_Lean_Expr_hasFVar(x_133); -if (x_164 == 0) +uint8_t x_117; +x_117 = l_Lean_Expr_hasFVar(x_86); +if (x_117 == 0) { lean_dec(x_2); -x_136 = x_133; -x_137 = x_135; -goto block_146; +x_89 = x_86; +x_90 = x_88; +goto block_99; } else { -lean_object* x_165; -x_165 = lean_box(0); -x_147 = x_165; -goto block_162; +lean_object* x_118; +x_118 = lean_box(0); +x_100 = x_118; +goto block_115; } } else { -lean_object* x_166; -x_166 = lean_box(0); -x_147 = x_166; -goto block_162; +lean_object* x_119; +x_119 = lean_box(0); +x_100 = x_119; +goto block_115; } -block_146: +block_99: { if (lean_obj_tag(x_1) == 6) { -uint64_t x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; -x_138 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); -x_139 = (uint8_t)((x_138 << 24) >> 61); -x_140 = lean_expr_update_lambda(x_1, x_139, x_134, x_136); -x_141 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_141, 0, x_140); -lean_ctor_set(x_141, 1, x_137); -return x_141; +uint64_t x_91; uint8_t x_92; lean_object* x_93; lean_object* x_94; +x_91 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_92 = (uint8_t)((x_91 << 24) >> 61); +x_93 = lean_expr_update_lambda(x_1, x_92, x_87, x_89); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_90); +return x_94; } else { -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -lean_dec(x_136); -lean_dec(x_134); +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +lean_dec(x_89); +lean_dec(x_87); lean_dec(x_1); -x_142 = l_Lean_Expr_Inhabited; -x_143 = l_Lean_Expr_updateLambdaE_x21___closed__1; -x_144 = lean_panic_fn(x_142, x_143); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_137); -return x_145; +x_95 = l_Lean_Expr_Inhabited; +x_96 = l_Lean_Expr_updateLambdaE_x21___closed__1; +x_97 = lean_panic_fn(x_95, x_96); +x_98 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_98, 0, x_97); +lean_ctor_set(x_98, 1, x_90); +return x_98; } } -block_162: +block_115: { -lean_object* x_148; lean_object* x_149; -lean_dec(x_147); -x_148 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_133, x_2, x_135); -x_149 = lean_ctor_get(x_148, 0); -lean_inc(x_149); -if (lean_obj_tag(x_149) == 0) +lean_object* x_101; lean_object* x_102; +lean_dec(x_100); +x_101 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_86, x_2, x_88); +x_102 = lean_ctor_get(x_101, 0); +lean_inc(x_102); +if (lean_obj_tag(x_102) == 0) { -lean_object* x_150; lean_object* x_151; -x_150 = lean_ctor_get(x_148, 1); -lean_inc(x_150); -lean_dec(x_148); +lean_object* x_103; lean_object* x_104; +x_103 = lean_ctor_get(x_101, 1); +lean_inc(x_103); +lean_dec(x_101); lean_inc(x_2); -lean_inc(x_133); -x_151 = l_Lean_Meta_CheckAssignment_check___main(x_133, x_2, x_150); -if (lean_obj_tag(x_151) == 0) +lean_inc(x_86); +x_104 = l_Lean_Meta_CheckAssignment_check___main(x_86, x_2, x_103); +if (lean_obj_tag(x_104) == 0) { -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -x_152 = lean_ctor_get(x_151, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_151, 1); -lean_inc(x_153); -lean_dec(x_151); -lean_inc(x_152); -x_154 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_133, x_152, x_2, x_153); +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_105 = lean_ctor_get(x_104, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_104, 1); +lean_inc(x_106); +lean_dec(x_104); +lean_inc(x_105); +x_107 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_86, x_105, x_2, x_106); lean_dec(x_2); -x_155 = lean_ctor_get(x_154, 1); -lean_inc(x_155); -lean_dec(x_154); -x_136 = x_152; -x_137 = x_155; -goto block_146; +x_108 = lean_ctor_get(x_107, 1); +lean_inc(x_108); +lean_dec(x_107); +x_89 = x_105; +x_90 = x_108; +goto block_99; } else { -uint8_t x_156; -lean_dec(x_134); -lean_dec(x_133); +uint8_t x_109; +lean_dec(x_87); +lean_dec(x_86); lean_dec(x_2); lean_dec(x_1); -x_156 = !lean_is_exclusive(x_151); -if (x_156 == 0) +x_109 = !lean_is_exclusive(x_104); +if (x_109 == 0) { -return x_151; +return x_104; } else { -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_151, 0); -x_158 = lean_ctor_get(x_151, 1); -lean_inc(x_158); -lean_inc(x_157); -lean_dec(x_151); -x_159 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_159, 0, x_157); -lean_ctor_set(x_159, 1, x_158); -return x_159; +lean_object* x_110; lean_object* x_111; lean_object* x_112; +x_110 = lean_ctor_get(x_104, 0); +x_111 = lean_ctor_get(x_104, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_104); +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +return x_112; } } } else { -lean_object* x_160; lean_object* x_161; -lean_dec(x_133); +lean_object* x_113; lean_object* x_114; +lean_dec(x_86); lean_dec(x_2); -x_160 = lean_ctor_get(x_148, 1); -lean_inc(x_160); -lean_dec(x_148); -x_161 = lean_ctor_get(x_149, 0); -lean_inc(x_161); -lean_dec(x_149); -x_136 = x_161; -x_137 = x_160; -goto block_146; +x_113 = lean_ctor_get(x_101, 1); +lean_inc(x_113); +lean_dec(x_101); +x_114 = lean_ctor_get(x_102, 0); +lean_inc(x_114); +lean_dec(x_102); +x_89 = x_114; +x_90 = x_113; +goto block_99; } } } -block_183: +block_136: { -lean_object* x_169; lean_object* x_170; -lean_dec(x_168); -x_169 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_132, x_2, x_3); -x_170 = lean_ctor_get(x_169, 0); -lean_inc(x_170); -if (lean_obj_tag(x_170) == 0) +lean_object* x_122; lean_object* x_123; +lean_dec(x_121); +x_122 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_85, x_2, x_3); +x_123 = lean_ctor_get(x_122, 0); +lean_inc(x_123); +if (lean_obj_tag(x_123) == 0) { -lean_object* x_171; lean_object* x_172; -x_171 = lean_ctor_get(x_169, 1); -lean_inc(x_171); -lean_dec(x_169); +lean_object* x_124; lean_object* x_125; +x_124 = lean_ctor_get(x_122, 1); +lean_inc(x_124); +lean_dec(x_122); lean_inc(x_2); +lean_inc(x_85); +x_125 = l_Lean_Meta_CheckAssignment_check___main(x_85, x_2, x_124); +if (lean_obj_tag(x_125) == 0) +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +x_126 = lean_ctor_get(x_125, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_125, 1); +lean_inc(x_127); +lean_dec(x_125); +lean_inc(x_126); +x_128 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_85, x_126, x_2, x_127); +x_129 = lean_ctor_get(x_128, 1); +lean_inc(x_129); +lean_dec(x_128); +x_87 = x_126; +x_88 = x_129; +goto block_120; +} +else +{ +uint8_t x_130; +lean_dec(x_86); +lean_dec(x_85); +lean_dec(x_2); +lean_dec(x_1); +x_130 = !lean_is_exclusive(x_125); +if (x_130 == 0) +{ +return x_125; +} +else +{ +lean_object* x_131; lean_object* x_132; lean_object* x_133; +x_131 = lean_ctor_get(x_125, 0); +x_132 = lean_ctor_get(x_125, 1); lean_inc(x_132); -x_172 = l_Lean_Meta_CheckAssignment_check___main(x_132, x_2, x_171); -if (lean_obj_tag(x_172) == 0) -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_173 = lean_ctor_get(x_172, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_172, 1); -lean_inc(x_174); -lean_dec(x_172); -lean_inc(x_173); -x_175 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_132, x_173, x_2, x_174); -x_176 = lean_ctor_get(x_175, 1); -lean_inc(x_176); -lean_dec(x_175); -x_134 = x_173; -x_135 = x_176; -goto block_167; -} -else -{ -uint8_t x_177; -lean_dec(x_133); -lean_dec(x_132); -lean_dec(x_2); -lean_dec(x_1); -x_177 = !lean_is_exclusive(x_172); -if (x_177 == 0) -{ -return x_172; -} -else -{ -lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_178 = lean_ctor_get(x_172, 0); -x_179 = lean_ctor_get(x_172, 1); -lean_inc(x_179); -lean_inc(x_178); -lean_dec(x_172); -x_180 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_180, 0, x_178); -lean_ctor_set(x_180, 1, x_179); -return x_180; +lean_inc(x_131); +lean_dec(x_125); +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_131); +lean_ctor_set(x_133, 1, x_132); +return x_133; } } } else { -lean_object* x_181; lean_object* x_182; -lean_dec(x_132); -x_181 = lean_ctor_get(x_169, 1); -lean_inc(x_181); -lean_dec(x_169); -x_182 = lean_ctor_get(x_170, 0); -lean_inc(x_182); -lean_dec(x_170); -x_134 = x_182; -x_135 = x_181; -goto block_167; +lean_object* x_134; lean_object* x_135; +lean_dec(x_85); +x_134 = lean_ctor_get(x_122, 1); +lean_inc(x_134); +lean_dec(x_122); +x_135 = lean_ctor_get(x_123, 0); +lean_inc(x_135); +lean_dec(x_123); +x_87 = x_135; +x_88 = x_134; +goto block_120; } } } case 7: { -lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_224; uint8_t x_240; -x_188 = lean_ctor_get(x_1, 1); -lean_inc(x_188); -x_189 = lean_ctor_get(x_1, 2); -lean_inc(x_189); -x_240 = l_Lean_Expr_hasExprMVar(x_188); -if (x_240 == 0) +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_177; uint8_t x_193; +x_141 = lean_ctor_get(x_1, 1); +lean_inc(x_141); +x_142 = lean_ctor_get(x_1, 2); +lean_inc(x_142); +x_193 = l_Lean_Expr_hasExprMVar(x_141); +if (x_193 == 0) { -uint8_t x_241; -x_241 = l_Lean_Expr_hasFVar(x_188); -if (x_241 == 0) +uint8_t x_194; +x_194 = l_Lean_Expr_hasFVar(x_141); +if (x_194 == 0) { -x_190 = x_188; -x_191 = x_3; -goto block_223; +x_143 = x_141; +x_144 = x_3; +goto block_176; } else { -lean_object* x_242; -x_242 = lean_box(0); -x_224 = x_242; -goto block_239; +lean_object* x_195; +x_195 = lean_box(0); +x_177 = x_195; +goto block_192; } } else { -lean_object* x_243; -x_243 = lean_box(0); -x_224 = x_243; -goto block_239; +lean_object* x_196; +x_196 = lean_box(0); +x_177 = x_196; +goto block_192; } -block_223: +block_176: { -lean_object* x_192; lean_object* x_193; lean_object* x_203; uint8_t x_219; -x_219 = l_Lean_Expr_hasExprMVar(x_189); -if (x_219 == 0) +lean_object* x_145; lean_object* x_146; lean_object* x_156; uint8_t x_172; +x_172 = l_Lean_Expr_hasExprMVar(x_142); +if (x_172 == 0) { -uint8_t x_220; -x_220 = l_Lean_Expr_hasFVar(x_189); -if (x_220 == 0) +uint8_t x_173; +x_173 = l_Lean_Expr_hasFVar(x_142); +if (x_173 == 0) { lean_dec(x_2); -x_192 = x_189; -x_193 = x_191; -goto block_202; +x_145 = x_142; +x_146 = x_144; +goto block_155; } else { -lean_object* x_221; -x_221 = lean_box(0); -x_203 = x_221; -goto block_218; +lean_object* x_174; +x_174 = lean_box(0); +x_156 = x_174; +goto block_171; } } else { -lean_object* x_222; -x_222 = lean_box(0); -x_203 = x_222; -goto block_218; +lean_object* x_175; +x_175 = lean_box(0); +x_156 = x_175; +goto block_171; } -block_202: +block_155: { if (lean_obj_tag(x_1) == 7) { -uint64_t x_194; uint8_t x_195; lean_object* x_196; lean_object* x_197; -x_194 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); -x_195 = (uint8_t)((x_194 << 24) >> 61); -x_196 = lean_expr_update_forall(x_1, x_195, x_190, x_192); -x_197 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_193); -return x_197; +uint64_t x_147; uint8_t x_148; lean_object* x_149; lean_object* x_150; +x_147 = lean_ctor_get_uint64(x_1, sizeof(void*)*3); +x_148 = (uint8_t)((x_147 << 24) >> 61); +x_149 = lean_expr_update_forall(x_1, x_148, x_143, x_145); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_149); +lean_ctor_set(x_150, 1, x_146); +return x_150; } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; -lean_dec(x_192); -lean_dec(x_190); +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_dec(x_145); +lean_dec(x_143); lean_dec(x_1); -x_198 = l_Lean_Expr_Inhabited; -x_199 = l_Lean_Expr_updateForallE_x21___closed__1; -x_200 = lean_panic_fn(x_198, x_199); -x_201 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_201, 0, x_200); -lean_ctor_set(x_201, 1, x_193); -return x_201; +x_151 = l_Lean_Expr_Inhabited; +x_152 = l_Lean_Expr_updateForallE_x21___closed__1; +x_153 = lean_panic_fn(x_151, x_152); +x_154 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_146); +return x_154; } } -block_218: +block_171: { -lean_object* x_204; lean_object* x_205; -lean_dec(x_203); -x_204 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_189, x_2, x_191); -x_205 = lean_ctor_get(x_204, 0); -lean_inc(x_205); -if (lean_obj_tag(x_205) == 0) +lean_object* x_157; lean_object* x_158; +lean_dec(x_156); +x_157 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_142, x_2, x_144); +x_158 = lean_ctor_get(x_157, 0); +lean_inc(x_158); +if (lean_obj_tag(x_158) == 0) { -lean_object* x_206; lean_object* x_207; -x_206 = lean_ctor_get(x_204, 1); -lean_inc(x_206); -lean_dec(x_204); +lean_object* x_159; lean_object* x_160; +x_159 = lean_ctor_get(x_157, 1); +lean_inc(x_159); +lean_dec(x_157); lean_inc(x_2); -lean_inc(x_189); -x_207 = l_Lean_Meta_CheckAssignment_check___main(x_189, x_2, x_206); -if (lean_obj_tag(x_207) == 0) +lean_inc(x_142); +x_160 = l_Lean_Meta_CheckAssignment_check___main(x_142, x_2, x_159); +if (lean_obj_tag(x_160) == 0) { -lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; -x_208 = lean_ctor_get(x_207, 0); -lean_inc(x_208); -x_209 = lean_ctor_get(x_207, 1); -lean_inc(x_209); -lean_dec(x_207); -lean_inc(x_208); -x_210 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_189, x_208, x_2, x_209); +lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_161 = lean_ctor_get(x_160, 0); +lean_inc(x_161); +x_162 = lean_ctor_get(x_160, 1); +lean_inc(x_162); +lean_dec(x_160); +lean_inc(x_161); +x_163 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_142, x_161, x_2, x_162); lean_dec(x_2); -x_211 = lean_ctor_get(x_210, 1); -lean_inc(x_211); -lean_dec(x_210); -x_192 = x_208; -x_193 = x_211; -goto block_202; +x_164 = lean_ctor_get(x_163, 1); +lean_inc(x_164); +lean_dec(x_163); +x_145 = x_161; +x_146 = x_164; +goto block_155; } else { -uint8_t x_212; -lean_dec(x_190); -lean_dec(x_189); +uint8_t x_165; +lean_dec(x_143); +lean_dec(x_142); lean_dec(x_2); lean_dec(x_1); -x_212 = !lean_is_exclusive(x_207); -if (x_212 == 0) +x_165 = !lean_is_exclusive(x_160); +if (x_165 == 0) { -return x_207; +return x_160; } else { -lean_object* x_213; lean_object* x_214; lean_object* x_215; -x_213 = lean_ctor_get(x_207, 0); -x_214 = lean_ctor_get(x_207, 1); -lean_inc(x_214); -lean_inc(x_213); -lean_dec(x_207); -x_215 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_215, 0, x_213); -lean_ctor_set(x_215, 1, x_214); -return x_215; +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_160, 0); +x_167 = lean_ctor_get(x_160, 1); +lean_inc(x_167); +lean_inc(x_166); +lean_dec(x_160); +x_168 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_168, 0, x_166); +lean_ctor_set(x_168, 1, x_167); +return x_168; } } } else { -lean_object* x_216; lean_object* x_217; -lean_dec(x_189); +lean_object* x_169; lean_object* x_170; +lean_dec(x_142); lean_dec(x_2); -x_216 = lean_ctor_get(x_204, 1); -lean_inc(x_216); -lean_dec(x_204); -x_217 = lean_ctor_get(x_205, 0); -lean_inc(x_217); -lean_dec(x_205); -x_192 = x_217; -x_193 = x_216; -goto block_202; +x_169 = lean_ctor_get(x_157, 1); +lean_inc(x_169); +lean_dec(x_157); +x_170 = lean_ctor_get(x_158, 0); +lean_inc(x_170); +lean_dec(x_158); +x_145 = x_170; +x_146 = x_169; +goto block_155; } } } -block_239: +block_192: { -lean_object* x_225; lean_object* x_226; -lean_dec(x_224); -x_225 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_188, x_2, x_3); -x_226 = lean_ctor_get(x_225, 0); -lean_inc(x_226); -if (lean_obj_tag(x_226) == 0) +lean_object* x_178; lean_object* x_179; +lean_dec(x_177); +x_178 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_141, x_2, x_3); +x_179 = lean_ctor_get(x_178, 0); +lean_inc(x_179); +if (lean_obj_tag(x_179) == 0) { -lean_object* x_227; lean_object* x_228; -x_227 = lean_ctor_get(x_225, 1); -lean_inc(x_227); -lean_dec(x_225); +lean_object* x_180; lean_object* x_181; +x_180 = lean_ctor_get(x_178, 1); +lean_inc(x_180); +lean_dec(x_178); lean_inc(x_2); +lean_inc(x_141); +x_181 = l_Lean_Meta_CheckAssignment_check___main(x_141, x_2, x_180); +if (lean_obj_tag(x_181) == 0) +{ +lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; +x_182 = lean_ctor_get(x_181, 0); +lean_inc(x_182); +x_183 = lean_ctor_get(x_181, 1); +lean_inc(x_183); +lean_dec(x_181); +lean_inc(x_182); +x_184 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_141, x_182, x_2, x_183); +x_185 = lean_ctor_get(x_184, 1); +lean_inc(x_185); +lean_dec(x_184); +x_143 = x_182; +x_144 = x_185; +goto block_176; +} +else +{ +uint8_t x_186; +lean_dec(x_142); +lean_dec(x_141); +lean_dec(x_2); +lean_dec(x_1); +x_186 = !lean_is_exclusive(x_181); +if (x_186 == 0) +{ +return x_181; +} +else +{ +lean_object* x_187; lean_object* x_188; lean_object* x_189; +x_187 = lean_ctor_get(x_181, 0); +x_188 = lean_ctor_get(x_181, 1); lean_inc(x_188); -x_228 = l_Lean_Meta_CheckAssignment_check___main(x_188, x_2, x_227); -if (lean_obj_tag(x_228) == 0) -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; -x_229 = lean_ctor_get(x_228, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_228, 1); -lean_inc(x_230); -lean_dec(x_228); -lean_inc(x_229); -x_231 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_188, x_229, x_2, x_230); -x_232 = lean_ctor_get(x_231, 1); -lean_inc(x_232); -lean_dec(x_231); -x_190 = x_229; -x_191 = x_232; -goto block_223; -} -else -{ -uint8_t x_233; -lean_dec(x_189); -lean_dec(x_188); -lean_dec(x_2); -lean_dec(x_1); -x_233 = !lean_is_exclusive(x_228); -if (x_233 == 0) -{ -return x_228; -} -else -{ -lean_object* x_234; lean_object* x_235; lean_object* x_236; -x_234 = lean_ctor_get(x_228, 0); -x_235 = lean_ctor_get(x_228, 1); -lean_inc(x_235); -lean_inc(x_234); -lean_dec(x_228); -x_236 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_236, 0, x_234); -lean_ctor_set(x_236, 1, x_235); -return x_236; +lean_inc(x_187); +lean_dec(x_181); +x_189 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_189, 0, x_187); +lean_ctor_set(x_189, 1, x_188); +return x_189; } } } else { -lean_object* x_237; lean_object* x_238; -lean_dec(x_188); -x_237 = lean_ctor_get(x_225, 1); -lean_inc(x_237); -lean_dec(x_225); -x_238 = lean_ctor_get(x_226, 0); -lean_inc(x_238); -lean_dec(x_226); -x_190 = x_238; -x_191 = x_237; -goto block_223; +lean_object* x_190; lean_object* x_191; +lean_dec(x_141); +x_190 = lean_ctor_get(x_178, 1); +lean_inc(x_190); +lean_dec(x_178); +x_191 = lean_ctor_get(x_179, 0); +lean_inc(x_191); +lean_dec(x_179); +x_143 = x_191; +x_144 = x_190; +goto block_176; } } } case 8: { -lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_302; uint8_t x_318; -x_244 = lean_ctor_get(x_1, 1); -lean_inc(x_244); -x_245 = lean_ctor_get(x_1, 2); -lean_inc(x_245); -x_246 = lean_ctor_get(x_1, 3); -lean_inc(x_246); -x_318 = l_Lean_Expr_hasExprMVar(x_244); -if (x_318 == 0) +lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_255; uint8_t x_271; +x_197 = lean_ctor_get(x_1, 1); +lean_inc(x_197); +x_198 = lean_ctor_get(x_1, 2); +lean_inc(x_198); +x_199 = lean_ctor_get(x_1, 3); +lean_inc(x_199); +x_271 = l_Lean_Expr_hasExprMVar(x_197); +if (x_271 == 0) { -uint8_t x_319; -x_319 = l_Lean_Expr_hasFVar(x_244); -if (x_319 == 0) +uint8_t x_272; +x_272 = l_Lean_Expr_hasFVar(x_197); +if (x_272 == 0) { -x_247 = x_244; -x_248 = x_3; -goto block_301; +x_200 = x_197; +x_201 = x_3; +goto block_254; } else { -lean_object* x_320; -x_320 = lean_box(0); -x_302 = x_320; -goto block_317; +lean_object* x_273; +x_273 = lean_box(0); +x_255 = x_273; +goto block_270; } } else { -lean_object* x_321; -x_321 = lean_box(0); -x_302 = x_321; -goto block_317; +lean_object* x_274; +x_274 = lean_box(0); +x_255 = x_274; +goto block_270; } -block_301: +block_254: { -lean_object* x_249; lean_object* x_250; lean_object* x_281; uint8_t x_297; -x_297 = l_Lean_Expr_hasExprMVar(x_245); -if (x_297 == 0) +lean_object* x_202; lean_object* x_203; lean_object* x_234; uint8_t x_250; +x_250 = l_Lean_Expr_hasExprMVar(x_198); +if (x_250 == 0) { -uint8_t x_298; -x_298 = l_Lean_Expr_hasFVar(x_245); -if (x_298 == 0) +uint8_t x_251; +x_251 = l_Lean_Expr_hasFVar(x_198); +if (x_251 == 0) { -x_249 = x_245; -x_250 = x_248; -goto block_280; +x_202 = x_198; +x_203 = x_201; +goto block_233; } else { -lean_object* x_299; -x_299 = lean_box(0); -x_281 = x_299; -goto block_296; +lean_object* x_252; +x_252 = lean_box(0); +x_234 = x_252; +goto block_249; } } else { -lean_object* x_300; -x_300 = lean_box(0); -x_281 = x_300; -goto block_296; +lean_object* x_253; +x_253 = lean_box(0); +x_234 = x_253; +goto block_249; } -block_280: +block_233: { -lean_object* x_251; lean_object* x_252; lean_object* x_260; uint8_t x_276; -x_276 = l_Lean_Expr_hasExprMVar(x_246); -if (x_276 == 0) +lean_object* x_204; lean_object* x_205; lean_object* x_213; uint8_t x_229; +x_229 = l_Lean_Expr_hasExprMVar(x_199); +if (x_229 == 0) { -uint8_t x_277; -x_277 = l_Lean_Expr_hasFVar(x_246); -if (x_277 == 0) +uint8_t x_230; +x_230 = l_Lean_Expr_hasFVar(x_199); +if (x_230 == 0) { lean_dec(x_2); -x_251 = x_246; -x_252 = x_250; -goto block_259; +x_204 = x_199; +x_205 = x_203; +goto block_212; } else { -lean_object* x_278; -x_278 = lean_box(0); -x_260 = x_278; -goto block_275; +lean_object* x_231; +x_231 = lean_box(0); +x_213 = x_231; +goto block_228; } } else { -lean_object* x_279; -x_279 = lean_box(0); -x_260 = x_279; -goto block_275; +lean_object* x_232; +x_232 = lean_box(0); +x_213 = x_232; +goto block_228; } -block_259: +block_212: { if (lean_obj_tag(x_1) == 8) { -lean_object* x_253; lean_object* x_254; -x_253 = lean_expr_update_let(x_1, x_247, x_249, x_251); -x_254 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_254, 0, x_253); -lean_ctor_set(x_254, 1, x_252); -return x_254; +lean_object* x_206; lean_object* x_207; +x_206 = lean_expr_update_let(x_1, x_200, x_202, x_204); +x_207 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_207, 0, x_206); +lean_ctor_set(x_207, 1, x_205); +return x_207; } else { -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; -lean_dec(x_251); -lean_dec(x_249); -lean_dec(x_247); +lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; +lean_dec(x_204); +lean_dec(x_202); +lean_dec(x_200); lean_dec(x_1); -x_255 = l_Lean_Expr_Inhabited; -x_256 = l_Lean_Expr_updateLet_x21___closed__1; -x_257 = lean_panic_fn(x_255, x_256); -x_258 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_258, 0, x_257); -lean_ctor_set(x_258, 1, x_252); -return x_258; +x_208 = l_Lean_Expr_Inhabited; +x_209 = l_Lean_Expr_updateLet_x21___closed__1; +x_210 = lean_panic_fn(x_208, x_209); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_205); +return x_211; } } -block_275: +block_228: { -lean_object* x_261; lean_object* x_262; -lean_dec(x_260); -x_261 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_246, x_2, x_250); -x_262 = lean_ctor_get(x_261, 0); -lean_inc(x_262); -if (lean_obj_tag(x_262) == 0) +lean_object* x_214; lean_object* x_215; +lean_dec(x_213); +x_214 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_199, x_2, x_203); +x_215 = lean_ctor_get(x_214, 0); +lean_inc(x_215); +if (lean_obj_tag(x_215) == 0) { -lean_object* x_263; lean_object* x_264; -x_263 = lean_ctor_get(x_261, 1); -lean_inc(x_263); -lean_dec(x_261); +lean_object* x_216; lean_object* x_217; +x_216 = lean_ctor_get(x_214, 1); +lean_inc(x_216); +lean_dec(x_214); lean_inc(x_2); -lean_inc(x_246); -x_264 = l_Lean_Meta_CheckAssignment_check___main(x_246, x_2, x_263); -if (lean_obj_tag(x_264) == 0) +lean_inc(x_199); +x_217 = l_Lean_Meta_CheckAssignment_check___main(x_199, x_2, x_216); +if (lean_obj_tag(x_217) == 0) { -lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; -x_265 = lean_ctor_get(x_264, 0); -lean_inc(x_265); -x_266 = lean_ctor_get(x_264, 1); -lean_inc(x_266); -lean_dec(x_264); -lean_inc(x_265); -x_267 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_246, x_265, x_2, x_266); +lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_218 = lean_ctor_get(x_217, 0); +lean_inc(x_218); +x_219 = lean_ctor_get(x_217, 1); +lean_inc(x_219); +lean_dec(x_217); +lean_inc(x_218); +x_220 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_199, x_218, x_2, x_219); lean_dec(x_2); -x_268 = lean_ctor_get(x_267, 1); -lean_inc(x_268); -lean_dec(x_267); -x_251 = x_265; -x_252 = x_268; -goto block_259; +x_221 = lean_ctor_get(x_220, 1); +lean_inc(x_221); +lean_dec(x_220); +x_204 = x_218; +x_205 = x_221; +goto block_212; } else { -uint8_t x_269; -lean_dec(x_249); -lean_dec(x_247); -lean_dec(x_246); +uint8_t x_222; +lean_dec(x_202); +lean_dec(x_200); +lean_dec(x_199); lean_dec(x_2); lean_dec(x_1); -x_269 = !lean_is_exclusive(x_264); -if (x_269 == 0) +x_222 = !lean_is_exclusive(x_217); +if (x_222 == 0) { -return x_264; +return x_217; } else { -lean_object* x_270; lean_object* x_271; lean_object* x_272; -x_270 = lean_ctor_get(x_264, 0); -x_271 = lean_ctor_get(x_264, 1); -lean_inc(x_271); -lean_inc(x_270); -lean_dec(x_264); -x_272 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_272, 0, x_270); -lean_ctor_set(x_272, 1, x_271); -return x_272; +lean_object* x_223; lean_object* x_224; lean_object* x_225; +x_223 = lean_ctor_get(x_217, 0); +x_224 = lean_ctor_get(x_217, 1); +lean_inc(x_224); +lean_inc(x_223); +lean_dec(x_217); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_223); +lean_ctor_set(x_225, 1, x_224); +return x_225; } } } else { -lean_object* x_273; lean_object* x_274; -lean_dec(x_246); +lean_object* x_226; lean_object* x_227; +lean_dec(x_199); lean_dec(x_2); -x_273 = lean_ctor_get(x_261, 1); -lean_inc(x_273); -lean_dec(x_261); -x_274 = lean_ctor_get(x_262, 0); -lean_inc(x_274); -lean_dec(x_262); -x_251 = x_274; -x_252 = x_273; -goto block_259; +x_226 = lean_ctor_get(x_214, 1); +lean_inc(x_226); +lean_dec(x_214); +x_227 = lean_ctor_get(x_215, 0); +lean_inc(x_227); +lean_dec(x_215); +x_204 = x_227; +x_205 = x_226; +goto block_212; } } } -block_296: +block_249: { -lean_object* x_282; lean_object* x_283; -lean_dec(x_281); -x_282 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_245, x_2, x_248); -x_283 = lean_ctor_get(x_282, 0); -lean_inc(x_283); -if (lean_obj_tag(x_283) == 0) +lean_object* x_235; lean_object* x_236; +lean_dec(x_234); +x_235 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_198, x_2, x_201); +x_236 = lean_ctor_get(x_235, 0); +lean_inc(x_236); +if (lean_obj_tag(x_236) == 0) { -lean_object* x_284; lean_object* x_285; -x_284 = lean_ctor_get(x_282, 1); -lean_inc(x_284); -lean_dec(x_282); +lean_object* x_237; lean_object* x_238; +x_237 = lean_ctor_get(x_235, 1); +lean_inc(x_237); +lean_dec(x_235); lean_inc(x_2); +lean_inc(x_198); +x_238 = l_Lean_Meta_CheckAssignment_check___main(x_198, x_2, x_237); +if (lean_obj_tag(x_238) == 0) +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_238, 1); +lean_inc(x_240); +lean_dec(x_238); +lean_inc(x_239); +x_241 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_198, x_239, x_2, x_240); +x_242 = lean_ctor_get(x_241, 1); +lean_inc(x_242); +lean_dec(x_241); +x_202 = x_239; +x_203 = x_242; +goto block_233; +} +else +{ +uint8_t x_243; +lean_dec(x_200); +lean_dec(x_199); +lean_dec(x_198); +lean_dec(x_2); +lean_dec(x_1); +x_243 = !lean_is_exclusive(x_238); +if (x_243 == 0) +{ +return x_238; +} +else +{ +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_238, 0); +x_245 = lean_ctor_get(x_238, 1); lean_inc(x_245); -x_285 = l_Lean_Meta_CheckAssignment_check___main(x_245, x_2, x_284); -if (lean_obj_tag(x_285) == 0) -{ -lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; -x_286 = lean_ctor_get(x_285, 0); -lean_inc(x_286); -x_287 = lean_ctor_get(x_285, 1); -lean_inc(x_287); -lean_dec(x_285); -lean_inc(x_286); -x_288 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_245, x_286, x_2, x_287); -x_289 = lean_ctor_get(x_288, 1); -lean_inc(x_289); -lean_dec(x_288); -x_249 = x_286; -x_250 = x_289; -goto block_280; -} -else -{ -uint8_t x_290; -lean_dec(x_247); -lean_dec(x_246); -lean_dec(x_245); -lean_dec(x_2); -lean_dec(x_1); -x_290 = !lean_is_exclusive(x_285); -if (x_290 == 0) -{ -return x_285; -} -else -{ -lean_object* x_291; lean_object* x_292; lean_object* x_293; -x_291 = lean_ctor_get(x_285, 0); -x_292 = lean_ctor_get(x_285, 1); -lean_inc(x_292); -lean_inc(x_291); -lean_dec(x_285); -x_293 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_293, 0, x_291); -lean_ctor_set(x_293, 1, x_292); -return x_293; -} -} -} -else -{ -lean_object* x_294; lean_object* x_295; -lean_dec(x_245); -x_294 = lean_ctor_get(x_282, 1); -lean_inc(x_294); -lean_dec(x_282); -x_295 = lean_ctor_get(x_283, 0); -lean_inc(x_295); -lean_dec(x_283); -x_249 = x_295; -x_250 = x_294; -goto block_280; -} -} -} -block_317: -{ -lean_object* x_303; lean_object* x_304; -lean_dec(x_302); -x_303 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_244, x_2, x_3); -x_304 = lean_ctor_get(x_303, 0); -lean_inc(x_304); -if (lean_obj_tag(x_304) == 0) -{ -lean_object* x_305; lean_object* x_306; -x_305 = lean_ctor_get(x_303, 1); -lean_inc(x_305); -lean_dec(x_303); -lean_inc(x_2); lean_inc(x_244); -x_306 = l_Lean_Meta_CheckAssignment_check___main(x_244, x_2, x_305); -if (lean_obj_tag(x_306) == 0) -{ -lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; -x_307 = lean_ctor_get(x_306, 0); -lean_inc(x_307); -x_308 = lean_ctor_get(x_306, 1); -lean_inc(x_308); -lean_dec(x_306); -lean_inc(x_307); -x_309 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_244, x_307, x_2, x_308); -x_310 = lean_ctor_get(x_309, 1); -lean_inc(x_310); -lean_dec(x_309); -x_247 = x_307; -x_248 = x_310; -goto block_301; +lean_dec(x_238); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +return x_246; +} +} } else { -uint8_t x_311; -lean_dec(x_246); -lean_dec(x_245); -lean_dec(x_244); +lean_object* x_247; lean_object* x_248; +lean_dec(x_198); +x_247 = lean_ctor_get(x_235, 1); +lean_inc(x_247); +lean_dec(x_235); +x_248 = lean_ctor_get(x_236, 0); +lean_inc(x_248); +lean_dec(x_236); +x_202 = x_248; +x_203 = x_247; +goto block_233; +} +} +} +block_270: +{ +lean_object* x_256; lean_object* x_257; +lean_dec(x_255); +x_256 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_197, x_2, x_3); +x_257 = lean_ctor_get(x_256, 0); +lean_inc(x_257); +if (lean_obj_tag(x_257) == 0) +{ +lean_object* x_258; lean_object* x_259; +x_258 = lean_ctor_get(x_256, 1); +lean_inc(x_258); +lean_dec(x_256); +lean_inc(x_2); +lean_inc(x_197); +x_259 = l_Lean_Meta_CheckAssignment_check___main(x_197, x_2, x_258); +if (lean_obj_tag(x_259) == 0) +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_260 = lean_ctor_get(x_259, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_259, 1); +lean_inc(x_261); +lean_dec(x_259); +lean_inc(x_260); +x_262 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_197, x_260, x_2, x_261); +x_263 = lean_ctor_get(x_262, 1); +lean_inc(x_263); +lean_dec(x_262); +x_200 = x_260; +x_201 = x_263; +goto block_254; +} +else +{ +uint8_t x_264; +lean_dec(x_199); +lean_dec(x_198); +lean_dec(x_197); lean_dec(x_2); lean_dec(x_1); -x_311 = !lean_is_exclusive(x_306); -if (x_311 == 0) +x_264 = !lean_is_exclusive(x_259); +if (x_264 == 0) { -return x_306; +return x_259; } else { -lean_object* x_312; lean_object* x_313; lean_object* x_314; -x_312 = lean_ctor_get(x_306, 0); -x_313 = lean_ctor_get(x_306, 1); -lean_inc(x_313); -lean_inc(x_312); -lean_dec(x_306); -x_314 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_314, 0, x_312); -lean_ctor_set(x_314, 1, x_313); -return x_314; +lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_265 = lean_ctor_get(x_259, 0); +x_266 = lean_ctor_get(x_259, 1); +lean_inc(x_266); +lean_inc(x_265); +lean_dec(x_259); +x_267 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_267, 0, x_265); +lean_ctor_set(x_267, 1, x_266); +return x_267; } } } else { -lean_object* x_315; lean_object* x_316; -lean_dec(x_244); -x_315 = lean_ctor_get(x_303, 1); -lean_inc(x_315); -lean_dec(x_303); -x_316 = lean_ctor_get(x_304, 0); -lean_inc(x_316); -lean_dec(x_304); -x_247 = x_316; -x_248 = x_315; -goto block_301; +lean_object* x_268; lean_object* x_269; +lean_dec(x_197); +x_268 = lean_ctor_get(x_256, 1); +lean_inc(x_268); +lean_dec(x_256); +x_269 = lean_ctor_get(x_257, 0); +lean_inc(x_269); +lean_dec(x_257); +x_200 = x_269; +x_201 = x_268; +goto block_254; } } } case 10: { -lean_object* x_322; lean_object* x_323; uint8_t x_339; -x_322 = lean_ctor_get(x_1, 1); -lean_inc(x_322); -x_339 = l_Lean_Expr_hasExprMVar(x_322); -if (x_339 == 0) +lean_object* x_275; lean_object* x_276; uint8_t x_292; +x_275 = lean_ctor_get(x_1, 1); +lean_inc(x_275); +x_292 = l_Lean_Expr_hasExprMVar(x_275); +if (x_292 == 0) { -uint8_t x_340; -x_340 = l_Lean_Expr_hasFVar(x_322); -if (x_340 == 0) +uint8_t x_293; +x_293 = l_Lean_Expr_hasFVar(x_275); +if (x_293 == 0) { lean_dec(x_2); -x_4 = x_322; +x_4 = x_275; x_5 = x_3; goto block_12; } else { -lean_object* x_341; -x_341 = lean_box(0); -x_323 = x_341; -goto block_338; +lean_object* x_294; +x_294 = lean_box(0); +x_276 = x_294; +goto block_291; } } else { -lean_object* x_342; -x_342 = lean_box(0); -x_323 = x_342; -goto block_338; +lean_object* x_295; +x_295 = lean_box(0); +x_276 = x_295; +goto block_291; } -block_338: +block_291: { -lean_object* x_324; lean_object* x_325; -lean_dec(x_323); -x_324 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_322, x_2, x_3); -x_325 = lean_ctor_get(x_324, 0); -lean_inc(x_325); -if (lean_obj_tag(x_325) == 0) +lean_object* x_277; lean_object* x_278; +lean_dec(x_276); +x_277 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_275, x_2, x_3); +x_278 = lean_ctor_get(x_277, 0); +lean_inc(x_278); +if (lean_obj_tag(x_278) == 0) { -lean_object* x_326; lean_object* x_327; -x_326 = lean_ctor_get(x_324, 1); -lean_inc(x_326); -lean_dec(x_324); +lean_object* x_279; lean_object* x_280; +x_279 = lean_ctor_get(x_277, 1); +lean_inc(x_279); +lean_dec(x_277); lean_inc(x_2); -lean_inc(x_322); -x_327 = l_Lean_Meta_CheckAssignment_check___main(x_322, x_2, x_326); -if (lean_obj_tag(x_327) == 0) +lean_inc(x_275); +x_280 = l_Lean_Meta_CheckAssignment_check___main(x_275, x_2, x_279); +if (lean_obj_tag(x_280) == 0) { -lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; -x_328 = lean_ctor_get(x_327, 0); -lean_inc(x_328); -x_329 = lean_ctor_get(x_327, 1); -lean_inc(x_329); -lean_dec(x_327); -lean_inc(x_328); -x_330 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_322, x_328, x_2, x_329); +lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; +x_281 = lean_ctor_get(x_280, 0); +lean_inc(x_281); +x_282 = lean_ctor_get(x_280, 1); +lean_inc(x_282); +lean_dec(x_280); +lean_inc(x_281); +x_283 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_275, x_281, x_2, x_282); lean_dec(x_2); -x_331 = lean_ctor_get(x_330, 1); -lean_inc(x_331); -lean_dec(x_330); -x_4 = x_328; -x_5 = x_331; +x_284 = lean_ctor_get(x_283, 1); +lean_inc(x_284); +lean_dec(x_283); +x_4 = x_281; +x_5 = x_284; goto block_12; } else { -uint8_t x_332; -lean_dec(x_322); +uint8_t x_285; +lean_dec(x_275); lean_dec(x_2); lean_dec(x_1); -x_332 = !lean_is_exclusive(x_327); -if (x_332 == 0) +x_285 = !lean_is_exclusive(x_280); +if (x_285 == 0) { -return x_327; +return x_280; } else { -lean_object* x_333; lean_object* x_334; lean_object* x_335; -x_333 = lean_ctor_get(x_327, 0); -x_334 = lean_ctor_get(x_327, 1); -lean_inc(x_334); -lean_inc(x_333); -lean_dec(x_327); -x_335 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_335, 0, x_333); -lean_ctor_set(x_335, 1, x_334); -return x_335; +lean_object* x_286; lean_object* x_287; lean_object* x_288; +x_286 = lean_ctor_get(x_280, 0); +x_287 = lean_ctor_get(x_280, 1); +lean_inc(x_287); +lean_inc(x_286); +lean_dec(x_280); +x_288 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_288, 0, x_286); +lean_ctor_set(x_288, 1, x_287); +return x_288; } } } else { -lean_object* x_336; lean_object* x_337; -lean_dec(x_322); +lean_object* x_289; lean_object* x_290; +lean_dec(x_275); lean_dec(x_2); -x_336 = lean_ctor_get(x_324, 1); -lean_inc(x_336); -lean_dec(x_324); -x_337 = lean_ctor_get(x_325, 0); -lean_inc(x_337); -lean_dec(x_325); -x_4 = x_337; -x_5 = x_336; +x_289 = lean_ctor_get(x_277, 1); +lean_inc(x_289); +lean_dec(x_277); +x_290 = lean_ctor_get(x_278, 0); +lean_inc(x_290); +lean_dec(x_278); +x_4 = x_290; +x_5 = x_289; goto block_12; } } } case 11: { -lean_object* x_343; lean_object* x_344; uint8_t x_360; -x_343 = lean_ctor_get(x_1, 2); -lean_inc(x_343); -x_360 = l_Lean_Expr_hasExprMVar(x_343); -if (x_360 == 0) +lean_object* x_296; lean_object* x_297; uint8_t x_313; +x_296 = lean_ctor_get(x_1, 2); +lean_inc(x_296); +x_313 = l_Lean_Expr_hasExprMVar(x_296); +if (x_313 == 0) { -uint8_t x_361; -x_361 = l_Lean_Expr_hasFVar(x_343); -if (x_361 == 0) +uint8_t x_314; +x_314 = l_Lean_Expr_hasFVar(x_296); +if (x_314 == 0) { lean_dec(x_2); -x_13 = x_343; +x_13 = x_296; x_14 = x_3; goto block_21; } else { -lean_object* x_362; -x_362 = lean_box(0); -x_344 = x_362; -goto block_359; +lean_object* x_315; +x_315 = lean_box(0); +x_297 = x_315; +goto block_312; } } else { -lean_object* x_363; -x_363 = lean_box(0); -x_344 = x_363; -goto block_359; +lean_object* x_316; +x_316 = lean_box(0); +x_297 = x_316; +goto block_312; } -block_359: +block_312: { -lean_object* x_345; lean_object* x_346; -lean_dec(x_344); -x_345 = l___private_Init_Lean_Meta_ExprDefEq_7__findCached_x3f(x_343, x_2, x_3); -x_346 = lean_ctor_get(x_345, 0); -lean_inc(x_346); -if (lean_obj_tag(x_346) == 0) +lean_object* x_298; lean_object* x_299; +lean_dec(x_297); +x_298 = l___private_Init_Lean_Meta_ExprDefEq_8__findCached_x3f(x_296, x_2, x_3); +x_299 = lean_ctor_get(x_298, 0); +lean_inc(x_299); +if (lean_obj_tag(x_299) == 0) { -lean_object* x_347; lean_object* x_348; -x_347 = lean_ctor_get(x_345, 1); -lean_inc(x_347); -lean_dec(x_345); +lean_object* x_300; lean_object* x_301; +x_300 = lean_ctor_get(x_298, 1); +lean_inc(x_300); +lean_dec(x_298); lean_inc(x_2); -lean_inc(x_343); -x_348 = l_Lean_Meta_CheckAssignment_check___main(x_343, x_2, x_347); -if (lean_obj_tag(x_348) == 0) +lean_inc(x_296); +x_301 = l_Lean_Meta_CheckAssignment_check___main(x_296, x_2, x_300); +if (lean_obj_tag(x_301) == 0) { -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; -x_349 = lean_ctor_get(x_348, 0); -lean_inc(x_349); -x_350 = lean_ctor_get(x_348, 1); -lean_inc(x_350); -lean_dec(x_348); -lean_inc(x_349); -x_351 = l___private_Init_Lean_Meta_ExprDefEq_8__cache(x_343, x_349, x_2, x_350); +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; +x_302 = lean_ctor_get(x_301, 0); +lean_inc(x_302); +x_303 = lean_ctor_get(x_301, 1); +lean_inc(x_303); +lean_dec(x_301); +lean_inc(x_302); +x_304 = l___private_Init_Lean_Meta_ExprDefEq_9__cache(x_296, x_302, x_2, x_303); lean_dec(x_2); -x_352 = lean_ctor_get(x_351, 1); -lean_inc(x_352); -lean_dec(x_351); -x_13 = x_349; -x_14 = x_352; +x_305 = lean_ctor_get(x_304, 1); +lean_inc(x_305); +lean_dec(x_304); +x_13 = x_302; +x_14 = x_305; goto block_21; } else { -uint8_t x_353; -lean_dec(x_343); +uint8_t x_306; +lean_dec(x_296); lean_dec(x_2); lean_dec(x_1); -x_353 = !lean_is_exclusive(x_348); -if (x_353 == 0) +x_306 = !lean_is_exclusive(x_301); +if (x_306 == 0) { -return x_348; +return x_301; } else { -lean_object* x_354; lean_object* x_355; lean_object* x_356; -x_354 = lean_ctor_get(x_348, 0); -x_355 = lean_ctor_get(x_348, 1); -lean_inc(x_355); -lean_inc(x_354); -lean_dec(x_348); -x_356 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_356, 0, x_354); -lean_ctor_set(x_356, 1, x_355); -return x_356; +lean_object* x_307; lean_object* x_308; lean_object* x_309; +x_307 = lean_ctor_get(x_301, 0); +x_308 = lean_ctor_get(x_301, 1); +lean_inc(x_308); +lean_inc(x_307); +lean_dec(x_301); +x_309 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_309, 0, x_307); +lean_ctor_set(x_309, 1, x_308); +return x_309; } } } else { -lean_object* x_357; lean_object* x_358; -lean_dec(x_343); +lean_object* x_310; lean_object* x_311; +lean_dec(x_296); lean_dec(x_2); -x_357 = lean_ctor_get(x_345, 1); -lean_inc(x_357); -lean_dec(x_345); -x_358 = lean_ctor_get(x_346, 0); -lean_inc(x_358); -lean_dec(x_346); -x_13 = x_358; -x_14 = x_357; +x_310 = lean_ctor_get(x_298, 1); +lean_inc(x_310); +lean_dec(x_298); +x_311 = lean_ctor_get(x_299, 0); +lean_inc(x_311); +lean_dec(x_299); +x_13 = x_311; +x_14 = x_310; goto block_21; } } } case 12: { -lean_object* x_364; lean_object* x_365; lean_object* x_366; +lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_dec(x_1); -x_364 = l_Lean_Meta_CheckAssignment_check___main___closed__1; -x_365 = l_unreachable_x21___rarg(x_364); -x_366 = lean_apply_2(x_365, x_2, x_3); -return x_366; +x_317 = l_Lean_Meta_CheckAssignment_check___main___closed__1; +x_318 = l_unreachable_x21___rarg(x_317); +x_319 = lean_apply_2(x_318, x_2, x_3); +return x_319; } default: { -lean_object* x_367; +lean_object* x_320; lean_dec(x_2); -x_367 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_367, 0, x_1); -lean_ctor_set(x_367, 1, x_3); -return x_367; +x_320 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_320, 0, x_1); +lean_ctor_set(x_320, 1, x_3); +return x_320; } } block_12: @@ -8996,6 +25806,18 @@ x_4 = lean_box(x_3); return x_4; } } +lean_object* l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +uint8_t x_5; lean_object* x_6; +x_5 = l_Array_anyRangeMAux___main___at_Lean_Meta_CheckAssignment_check___main___spec__6(x_1, x_2, x_3, x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_6 = lean_box(x_5); +return x_6; +} +} lean_object* l_Lean_Meta_CheckAssignment_check(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -9004,25 +25826,7 @@ x_4 = l_Lean_Meta_CheckAssignment_check___main(x_1, x_2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("assign"); -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Meta_isExprDefEq___closed__2; -x_2 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__3() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__1() { _start: { lean_object* x_1; @@ -9030,27 +25834,17 @@ x_1 = lean_mk_string("occursCheck"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__4() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; -x_2 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__3; +x_1 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; +x_2 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_formatEntry___closed__2; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__6() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__3() { _start: { lean_object* x_1; @@ -9058,17 +25852,17 @@ x_1 = lean_mk_string("outOfScopeFVar"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__7() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; -x_2 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__6; +x_1 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; +x_2 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__3; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__8() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__5() { _start: { lean_object* x_1; @@ -9076,27 +25870,27 @@ x_1 = lean_mk_string(" @ "); return x_1; } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__9() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__8; +x_1 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__5; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__10() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__9; +x_1 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__6; 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_Meta_ExprDefEq_10__checkAssignmentFailure___closed__11() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__8() { _start: { lean_object* x_1; @@ -9104,17 +25898,17 @@ x_1 = lean_mk_string("readOnlyMVarWithBiggerLCtx"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__12() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; -x_2 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__11; +x_1 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; +x_2 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__8; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure(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: { switch (lean_obj_tag(x_4)) { @@ -9136,7 +25930,7 @@ goto block_31; else { lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; -x_35 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__4; +x_35 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__2; x_36 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_35, x_5, x_6); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); @@ -9178,7 +25972,7 @@ x_17 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_2, x_15, x_16); x_18 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_18, 0, x_14); lean_ctor_set(x_18, 1, x_17); -x_19 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; +x_19 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; x_20 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_20, 0, x_18); lean_ctor_set(x_20, 1, x_19); @@ -9187,7 +25981,7 @@ lean_ctor_set(x_21, 0, x_3); x_22 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_22, 0, x_20); lean_ctor_set(x_22, 1, x_21); -x_23 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__4; +x_23 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__2; x_24 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_23, x_22, x_5, x_8); x_25 = !lean_is_exclusive(x_24); if (x_25 == 0) @@ -9246,7 +26040,7 @@ goto block_72; else { lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; uint8_t x_80; -x_76 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__7; +x_76 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__4; x_77 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_76, x_5, x_6); x_78 = lean_ctor_get(x_77, 0); lean_inc(x_78); @@ -9279,7 +26073,7 @@ lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean x_47 = l_Lean_mkFVar(x_42); x_48 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_48, 0, x_47); -x_49 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__10; +x_49 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__7; x_50 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_50, 0, x_48); lean_ctor_set(x_50, 1, x_49); @@ -9299,7 +26093,7 @@ x_58 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_2, x_56, x_57); x_59 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_59, 0, x_55); lean_ctor_set(x_59, 1, x_58); -x_60 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; +x_60 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; x_61 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_61, 0, x_59); lean_ctor_set(x_61, 1, x_60); @@ -9308,7 +26102,7 @@ lean_ctor_set(x_62, 0, x_3); x_63 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_63, 0, x_61); lean_ctor_set(x_63, 1, x_62); -x_64 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__7; +x_64 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__4; x_65 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_64, x_63, x_5, x_44); x_66 = !lean_is_exclusive(x_65); if (x_66 == 0) @@ -9356,7 +26150,7 @@ goto block_111; else { lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; -x_115 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__12; +x_115 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__9; x_116 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_115, x_5, x_6); x_117 = lean_ctor_get(x_116, 0); lean_inc(x_117); @@ -9389,7 +26183,7 @@ lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean x_86 = l_Lean_mkMVar(x_81); x_87 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_87, 0, x_86); -x_88 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__10; +x_88 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__7; x_89 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_89, 0, x_87); lean_ctor_set(x_89, 1, x_88); @@ -9409,7 +26203,7 @@ x_97 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_2, x_95, x_96); x_98 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_98, 0, x_94); lean_ctor_set(x_98, 1, x_97); -x_99 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; +x_99 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; x_100 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_100, 0, x_98); lean_ctor_set(x_100, 1, x_99); @@ -9418,7 +26212,7 @@ lean_ctor_set(x_101, 0, x_3); x_102 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_102, 0, x_100); lean_ctor_set(x_102, 1, x_101); -x_103 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__12; +x_103 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__9; x_104 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_103, x_102, x_5, x_83); x_105 = !lean_is_exclusive(x_104); if (x_105 == 0) @@ -9445,7 +26239,7 @@ return x_110; } } } -default: +case 4: { 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_dec(x_3); @@ -9475,20 +26269,33 @@ lean_ctor_set(x_128, 0, x_127); lean_ctor_set(x_128, 1, x_6); return x_128; } +default: +{ +lean_object* x_129; lean_object* x_130; +lean_dec(x_3); +lean_dec(x_1); +x_129 = lean_ctor_get(x_4, 0); +lean_inc(x_129); +lean_dec(x_4); +x_130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_130, 0, x_129); +lean_ctor_set(x_130, 1, x_6); +return x_130; } } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +} +lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { lean_object* x_7; -x_7 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_5); lean_dec(x_2); return x_7; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_11__visit(lean_object* x_1, lean_object* x_2) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__visit(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; @@ -10638,6 +27445,115 @@ lean_dec(x_6); return x_11; } } +lean_object* l_mkHashMap___at_Lean_Meta_checkAssignmentAux___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_mkHashMapImp___rarg(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Meta_checkAssignmentAux___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(8u); +x_2 = l_mkHashMapImp___rarg(x_1); +return x_2; +} +} +lean_object* l_Lean_Meta_checkAssignmentAux(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_8 = lean_ctor_get(x_7, 1); +lean_inc(x_8); +x_9 = l_Lean_MetavarContext_getDecl(x_8, x_1); +lean_inc(x_3); +lean_inc(x_1); +lean_inc(x_6); +x_10 = lean_alloc_ctor(0, 4, 1); +lean_ctor_set(x_10, 0, x_6); +lean_ctor_set(x_10, 1, x_1); +lean_ctor_set(x_10, 2, x_9); +lean_ctor_set(x_10, 3, x_3); +lean_ctor_set_uint8(x_10, sizeof(void*)*4, x_4); +x_11 = l_Lean_Meta_checkAssignmentAux___closed__1; +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_7); +lean_ctor_set(x_12, 1, x_11); +lean_inc(x_5); +x_13 = l_Lean_Meta_CheckAssignment_check___main(x_5, x_10, x_12); +if (lean_obj_tag(x_13) == 0) +{ +uint8_t x_14; +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_1); +x_14 = !lean_is_exclusive(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_13, 0); +x_16 = lean_ctor_get(x_13, 1); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_15); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +lean_ctor_set(x_13, 1, x_18); +lean_ctor_set(x_13, 0, x_17); +return x_13; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_19 = lean_ctor_get(x_13, 0); +x_20 = lean_ctor_get(x_13, 1); +lean_inc(x_20); +lean_inc(x_19); +lean_dec(x_13); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_19); +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_24 = lean_ctor_get(x_13, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_13, 1); +lean_inc(x_25); +lean_dec(x_13); +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +lean_dec(x_25); +x_27 = l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure(x_1, x_3, x_5, x_24, x_6, x_26); +lean_dec(x_6); +lean_dec(x_3); +return x_27; +} +} +} +lean_object* l_Lean_Meta_checkAssignmentAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +_start: +{ +uint8_t x_8; lean_object* x_9; +x_8 = lean_unbox(x_4); +lean_dec(x_4); +x_9 = l_Lean_Meta_checkAssignmentAux(x_1, x_2, x_3, x_8, x_5, x_6, x_7); +lean_dec(x_2); +return x_9; +} +} uint8_t l_Array_anyRangeMAux___main___at_Lean_Meta_checkAssignment___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -10677,309 +27593,183 @@ return x_10; } } } -lean_object* l_mkHashMap___at_Lean_Meta_checkAssignment___spec__2(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_mkHashMapImp___rarg(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Meta_checkAssignment___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_unsigned_to_nat(8u); -x_2 = l_mkHashMapImp___rarg(x_1); -return x_2; -} -} lean_object* l_Lean_Meta_checkAssignment(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_69; -x_69 = l_Lean_Expr_hasExprMVar(x_3); -if (x_69 == 0) +lean_object* x_6; uint8_t x_47; +x_47 = l_Lean_Expr_hasExprMVar(x_3); +if (x_47 == 0) { -uint8_t x_70; -x_70 = l_Lean_Expr_hasFVar(x_3); -if (x_70 == 0) +uint8_t x_48; +x_48 = l_Lean_Expr_hasFVar(x_3); +if (x_48 == 0) { -lean_object* x_71; lean_object* x_72; +lean_object* x_49; lean_object* x_50; lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_71 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_71, 0, x_3); -x_72 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_72, 0, x_71); -lean_ctor_set(x_72, 1, x_5); -return x_72; +x_49 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_49, 0, x_3); +x_50 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_50, 0, x_49); +lean_ctor_set(x_50, 1, x_5); +return x_50; } else { -lean_object* x_73; -x_73 = lean_box(0); -x_6 = x_73; -goto block_68; +lean_object* x_51; +x_51 = lean_box(0); +x_6 = x_51; +goto block_46; } } else { -lean_object* x_74; -x_74 = lean_box(0); -x_6 = x_74; -goto block_68; +lean_object* x_52; +x_52 = lean_box(0); +x_6 = x_52; +goto block_46; } -block_68: +block_46: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; +lean_object* x_7; lean_dec(x_6); -x_7 = lean_ctor_get(x_5, 0); -lean_inc(x_7); -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); -x_9 = lean_ctor_get(x_5, 2); +lean_inc(x_1); +x_7 = l_Lean_Meta_getMVarDecl(x_1, x_4, x_5); +if (lean_obj_tag(x_7) == 0) +{ +uint8_t x_8; +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_7, 1); +x_11 = lean_array_get_size(x_2); +x_12 = lean_unsigned_to_nat(0u); lean_inc(x_9); -x_10 = lean_ctor_get(x_5, 3); -lean_inc(x_10); -x_11 = lean_ctor_get(x_5, 4); -lean_inc(x_11); -x_12 = lean_ctor_get(x_5, 5); -lean_inc(x_12); -lean_inc(x_8); -x_13 = l_Lean_MetavarContext_getDecl(x_8, x_1); -x_14 = lean_array_get_size(x_2); -x_15 = lean_unsigned_to_nat(0u); -lean_inc(x_13); -x_16 = l_Array_anyRangeMAux___main___at_Lean_Meta_checkAssignment___spec__1(x_2, x_13, x_2, x_14, x_15); -lean_dec(x_14); -x_17 = lean_ctor_get(x_4, 0); -lean_inc(x_17); -x_18 = lean_ctor_get_uint8(x_17, sizeof(void*)*1 + 1); -lean_dec(x_17); -x_19 = lean_ctor_get(x_4, 1); -lean_inc(x_19); -lean_inc(x_3); -lean_inc(x_13); -lean_inc(x_19); -lean_inc(x_8); -x_20 = l_Lean_Meta_CheckAssignmentQuick_check___main(x_16, x_18, x_8, x_19, x_13, x_1, x_2, x_3); -x_21 = lean_unbox(x_20); -lean_dec(x_20); -if (x_21 == 0) -{ -uint8_t x_22; -x_22 = !lean_is_exclusive(x_5); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_23 = lean_ctor_get(x_5, 5); -lean_dec(x_23); -x_24 = lean_ctor_get(x_5, 4); -lean_dec(x_24); -x_25 = lean_ctor_get(x_5, 3); -lean_dec(x_25); -x_26 = lean_ctor_get(x_5, 2); -lean_dec(x_26); -x_27 = lean_ctor_get(x_5, 1); -lean_dec(x_27); -x_28 = lean_ctor_get(x_5, 0); -lean_dec(x_28); -lean_inc(x_2); -lean_inc(x_1); -x_29 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_29, 0, x_19); -lean_ctor_set(x_29, 1, x_1); -lean_ctor_set(x_29, 2, x_13); -lean_ctor_set(x_29, 3, x_2); -lean_ctor_set_uint8(x_29, sizeof(void*)*4, x_18); -lean_ctor_set_uint8(x_29, sizeof(void*)*4 + 1, x_16); -x_30 = l_Lean_Meta_checkAssignment___closed__1; -lean_inc(x_8); -x_31 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_31, 0, x_8); -lean_ctor_set(x_31, 1, x_10); -lean_ctor_set(x_31, 2, x_30); -lean_inc(x_3); -x_32 = l_Lean_Meta_CheckAssignment_check___main(x_3, x_29, x_31); -if (lean_obj_tag(x_32) == 0) -{ -uint8_t x_33; -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_ctor_get(x_32, 1); -x_36 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_36, 0, x_34); -x_37 = lean_ctor_get(x_35, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_35, 1); -lean_inc(x_38); -lean_dec(x_35); -lean_ctor_set(x_5, 3, x_38); -lean_ctor_set(x_5, 1, x_37); -lean_ctor_set(x_32, 1, x_5); -lean_ctor_set(x_32, 0, x_36); -return x_32; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_39 = lean_ctor_get(x_32, 0); -x_40 = lean_ctor_get(x_32, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_32); -x_41 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_41, 0, x_39); -x_42 = lean_ctor_get(x_40, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -lean_ctor_set(x_5, 3, x_43); -lean_ctor_set(x_5, 1, x_42); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_41); -lean_ctor_set(x_44, 1, x_5); -return x_44; -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_45 = lean_ctor_get(x_32, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_32, 1); -lean_inc(x_46); -lean_dec(x_32); -x_47 = lean_ctor_get(x_46, 1); -lean_inc(x_47); -lean_dec(x_46); -lean_ctor_set(x_5, 3, x_47); -x_48 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure(x_1, x_2, x_3, x_45, x_4, x_5); -lean_dec(x_4); -lean_dec(x_2); -return x_48; -} -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -lean_dec(x_5); -lean_inc(x_2); -lean_inc(x_1); -x_49 = lean_alloc_ctor(0, 4, 2); -lean_ctor_set(x_49, 0, x_19); -lean_ctor_set(x_49, 1, x_1); -lean_ctor_set(x_49, 2, x_13); -lean_ctor_set(x_49, 3, x_2); -lean_ctor_set_uint8(x_49, sizeof(void*)*4, x_18); -lean_ctor_set_uint8(x_49, sizeof(void*)*4 + 1, x_16); -x_50 = l_Lean_Meta_checkAssignment___closed__1; -lean_inc(x_8); -x_51 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_51, 0, x_8); -lean_ctor_set(x_51, 1, x_10); -lean_ctor_set(x_51, 2, x_50); -lean_inc(x_3); -x_52 = l_Lean_Meta_CheckAssignment_check___main(x_3, x_49, x_51); -if (lean_obj_tag(x_52) == 0) -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -lean_dec(x_8); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_53 = lean_ctor_get(x_52, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_52, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_52)) { - lean_ctor_release(x_52, 0); - lean_ctor_release(x_52, 1); - x_55 = x_52; -} else { - lean_dec_ref(x_52); - x_55 = lean_box(0); -} -x_56 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_56, 0, x_53); -x_57 = lean_ctor_get(x_54, 0); -lean_inc(x_57); -x_58 = lean_ctor_get(x_54, 1); -lean_inc(x_58); -lean_dec(x_54); -x_59 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_59, 0, x_7); -lean_ctor_set(x_59, 1, x_57); -lean_ctor_set(x_59, 2, x_9); -lean_ctor_set(x_59, 3, x_58); -lean_ctor_set(x_59, 4, x_11); -lean_ctor_set(x_59, 5, x_12); -if (lean_is_scalar(x_55)) { - x_60 = lean_alloc_ctor(0, 2, 0); -} else { - x_60 = x_55; -} -lean_ctor_set(x_60, 0, x_56); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; -x_61 = lean_ctor_get(x_52, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_52, 1); -lean_inc(x_62); -lean_dec(x_52); -x_63 = lean_ctor_get(x_62, 1); -lean_inc(x_63); -lean_dec(x_62); -x_64 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_64, 0, x_7); -lean_ctor_set(x_64, 1, x_8); -lean_ctor_set(x_64, 2, x_9); -lean_ctor_set(x_64, 3, x_63); -lean_ctor_set(x_64, 4, x_11); -lean_ctor_set(x_64, 5, x_12); -x_65 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure(x_1, x_2, x_3, x_61, x_4, x_64); -lean_dec(x_4); -lean_dec(x_2); -return x_65; -} -} -} -else -{ -lean_object* x_66; lean_object* x_67; -lean_dec(x_19); -lean_dec(x_13); -lean_dec(x_12); +x_13 = l_Array_anyRangeMAux___main___at_Lean_Meta_checkAssignment___spec__1(x_2, x_9, x_2, x_11, x_12); lean_dec(x_11); -lean_dec(x_10); +x_14 = lean_ctor_get(x_10, 1); +lean_inc(x_14); +x_15 = lean_ctor_get(x_4, 0); +lean_inc(x_15); +x_16 = lean_ctor_get_uint8(x_15, sizeof(void*)*1 + 1); +lean_dec(x_15); +x_17 = lean_ctor_get(x_4, 1); +lean_inc(x_17); +lean_inc(x_3); +lean_inc(x_9); +x_18 = l_Lean_Meta_CheckAssignmentQuick_check___main(x_13, x_16, x_14, x_17, x_9, x_1, x_2, x_3); +x_19 = lean_unbox(x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_free_object(x_7); +x_20 = l_Lean_Meta_instantiateMVars(x_3, x_4, x_10); +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +lean_dec(x_20); +x_23 = l_Lean_Meta_checkAssignmentAux(x_1, x_9, x_2, x_13, x_21, x_4, x_22); +lean_dec(x_9); +return x_23; +} +else +{ +lean_object* x_24; lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); lean_dec(x_4); lean_dec(x_2); lean_dec(x_1); -x_66 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_66, 0, x_3); -x_67 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_5); -return x_67; +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_3); +lean_ctor_set(x_7, 0, x_24); +return x_7; +} +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; +x_25 = lean_ctor_get(x_7, 0); +x_26 = lean_ctor_get(x_7, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_7); +x_27 = lean_array_get_size(x_2); +x_28 = lean_unsigned_to_nat(0u); +lean_inc(x_25); +x_29 = l_Array_anyRangeMAux___main___at_Lean_Meta_checkAssignment___spec__1(x_2, x_25, x_2, x_27, x_28); +lean_dec(x_27); +x_30 = lean_ctor_get(x_26, 1); +lean_inc(x_30); +x_31 = lean_ctor_get(x_4, 0); +lean_inc(x_31); +x_32 = lean_ctor_get_uint8(x_31, sizeof(void*)*1 + 1); +lean_dec(x_31); +x_33 = lean_ctor_get(x_4, 1); +lean_inc(x_33); +lean_inc(x_3); +lean_inc(x_25); +x_34 = l_Lean_Meta_CheckAssignmentQuick_check___main(x_29, x_32, x_30, x_33, x_25, x_1, x_2, x_3); +x_35 = lean_unbox(x_34); +lean_dec(x_34); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_36 = l_Lean_Meta_instantiateMVars(x_3, x_4, x_26); +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_Meta_checkAssignmentAux(x_1, x_25, x_2, x_29, x_37, x_4, x_38); +lean_dec(x_25); +return x_39; +} +else +{ +lean_object* x_40; lean_object* x_41; +lean_dec(x_25); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_40 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_40, 0, x_3); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_26); +return x_41; +} +} +} +else +{ +uint8_t x_42; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_42 = !lean_is_exclusive(x_7); +if (x_42 == 0) +{ +return x_7; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_7, 0); +x_44 = lean_ctor_get(x_7, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_7); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_43); +lean_ctor_set(x_45, 1, x_44); +return x_45; +} } } } @@ -10996,7 +27786,7 @@ x_7 = lean_box(x_6); return x_7; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; uint8_t x_10; @@ -11101,35 +27891,35 @@ return x_30; } } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_4); lean_dec(x_3); return x_9; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___main(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); return x_9; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_4); lean_dec(x_3); return x_9; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__processAssignmentFOApproxAux(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_Meta_ExprDefEq_14__processAssignmentFOApproxAux(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; uint8_t x_13; @@ -11161,7 +27951,7 @@ lean_dec(x_15); lean_dec(x_14); x_18 = l_Lean_Expr_getAppFn___main(x_3); lean_dec(x_3); -x_19 = l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___main(x_1, x_18, x_2, x_12, x_6, x_6, x_4, x_5); +x_19 = l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___main(x_1, x_18, x_2, x_12, x_6, x_6, x_4, x_5); lean_dec(x_12); return x_19; } @@ -11174,7 +27964,7 @@ x_21 = lean_nat_sub(x_14, x_15); lean_dec(x_15); lean_dec(x_14); x_22 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_21, x_12, x_6, x_20); -x_23 = l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___main(x_1, x_22, x_2, x_12, x_6, x_21, x_4, x_5); +x_23 = l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___main(x_1, x_22, x_2, x_12, x_6, x_21, x_4, x_5); lean_dec(x_12); return x_23; } @@ -11188,7 +27978,7 @@ lean_dec(x_15); x_25 = l___private_Init_Lean_Expr_2__mkAppRangeAux___main(x_24, x_2, x_6, x_1); x_26 = l_Lean_Expr_getAppFn___main(x_3); lean_dec(x_3); -x_27 = l___private_Init_Lean_Meta_ExprDefEq_12__isDefEqFOApprox___main(x_25, x_26, x_2, x_12, x_24, x_6, x_4, x_5); +x_27 = l___private_Init_Lean_Meta_ExprDefEq_13__isDefEqFOApprox___main(x_25, x_26, x_2, x_12, x_24, x_6, x_4, x_5); lean_dec(x_12); return x_27; } @@ -11209,16 +27999,16 @@ return x_30; } } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_13__processAssignmentFOApproxAux___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_Meta_ExprDefEq_14__processAssignmentFOApproxAux___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_Meta_ExprDefEq_13__processAssignmentFOApproxAux(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApproxAux(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); return x_6; } } -lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; @@ -11234,7 +28024,7 @@ lean_inc(x_8); lean_inc(x_7); lean_ctor_set(x_5, 5, x_10); lean_inc(x_4); -x_19 = l___private_Init_Lean_Meta_ExprDefEq_13__processAssignmentFOApproxAux(x_1, x_2, x_3, x_4, x_5); +x_19 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApproxAux(x_1, x_2, x_3, x_4, x_5); if (lean_obj_tag(x_19) == 0) { lean_object* x_20; uint8_t x_21; @@ -11422,7 +28212,7 @@ lean_ctor_set(x_53, 3, x_49); lean_ctor_set(x_53, 4, x_50); lean_ctor_set(x_53, 5, x_52); lean_inc(x_4); -x_61 = l___private_Init_Lean_Meta_ExprDefEq_13__processAssignmentFOApproxAux(x_1, x_2, x_3, x_4, x_53); +x_61 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApproxAux(x_1, x_2, x_3, x_4, x_53); if (lean_obj_tag(x_61) == 0) { lean_object* x_62; uint8_t x_63; @@ -11578,7 +28368,7 @@ return x_59; } } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__1() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__1() { _start: { lean_object* x_1; @@ -11586,17 +28376,17 @@ x_1 = lean_mk_string("foApprox"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__2() { +lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Meta_isExprDefEq___closed__2; -x_2 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__1; +x_2 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___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_Meta_ExprDefEq_15__processAssignmentFOApprox___main(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; lean_object* x_33; uint8_t x_34; @@ -11612,7 +28402,7 @@ goto block_32; else { lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -x_35 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__2; +x_35 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__2; x_36 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_35, x_4, x_5); x_37 = lean_ctor_get(x_36, 0); lean_inc(x_37); @@ -11646,7 +28436,7 @@ x_46 = l_Lean_MessageData_arrayExpr_toMessageData___main(x_2, x_44, x_45); x_47 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_47, 0, x_43); lean_ctor_set(x_47, 1, x_46); -x_48 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; +x_48 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; x_49 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_49, 0, x_47); lean_ctor_set(x_49, 1, x_48); @@ -11670,7 +28460,7 @@ lean_object* x_7; lean_inc(x_4); lean_inc(x_3); lean_inc(x_1); -x_7 = l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___spec__1(x_1, x_2, x_3, x_4, x_6); +x_7 = l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___spec__1(x_1, x_2, x_3, x_4, x_6); if (lean_obj_tag(x_7) == 0) { lean_object* x_8; uint8_t x_9; @@ -11812,42 +28602,42 @@ return x_31; } } } -lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +lean_object* l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___spec__1(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___spec__1(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); return x_6; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___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_Meta_ExprDefEq_15__processAssignmentFOApprox___main___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; -x_6 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); return x_6; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox(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_Meta_ExprDefEq_15__processAssignmentFOApprox(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_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_2, x_3, x_4, x_5); return x_6; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___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_Meta_ExprDefEq_15__processAssignmentFOApprox___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_Meta_ExprDefEq_14__processAssignmentFOApprox(x_1, x_2, x_3, x_4, x_5); +x_6 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox(x_1, x_2, x_3, x_4, x_5); lean_dec(x_2); return x_6; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__simpAssignmentArgAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_16__simpAssignmentArgAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { switch (lean_obj_tag(x_1)) { @@ -11966,15 +28756,15 @@ return x_24; } } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_15__simpAssignmentArgAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_16__simpAssignmentArgAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; -x_4 = l___private_Init_Lean_Meta_ExprDefEq_15__simpAssignmentArgAux___main(x_1, x_2, x_3); +x_4 = l___private_Init_Lean_Meta_ExprDefEq_16__simpAssignmentArgAux___main(x_1, x_2, x_3); return x_4; } } -lean_object* l___private_Init_Lean_Meta_ExprDefEq_16__simpAssignmentArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__simpAssignmentArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; uint8_t x_5; @@ -11984,7 +28774,7 @@ lean_dec(x_4); if (x_5 == 0) { lean_object* x_6; -x_6 = l___private_Init_Lean_Meta_ExprDefEq_15__simpAssignmentArgAux___main(x_1, x_2, x_3); +x_6 = l___private_Init_Lean_Meta_ExprDefEq_16__simpAssignmentArgAux___main(x_1, x_2, x_3); return x_6; } else @@ -11996,2007 +28786,11 @@ lean_inc(x_8); x_9 = lean_ctor_get(x_7, 1); lean_inc(x_9); lean_dec(x_7); -x_10 = l___private_Init_Lean_Meta_ExprDefEq_15__simpAssignmentArgAux___main(x_8, x_2, x_9); +x_10 = l___private_Init_Lean_Meta_ExprDefEq_16__simpAssignmentArgAux___main(x_8, x_2, x_9); return x_10; } } } -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("checkTypes"); -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; -x_2 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("typeMismatch"); -return x_1; -} -} -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; -x_2 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Array_iterateMAux___main___at_Lean_ppGoal___spec__6___closed__4; -x_2 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -lean_object* l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; lean_object* x_6; lean_object* x_495; uint8_t x_496; -x_495 = lean_ctor_get(x_4, 4); -lean_inc(x_495); -x_496 = lean_ctor_get_uint8(x_495, sizeof(void*)*1); -lean_dec(x_495); -if (x_496 == 0) -{ -uint8_t x_497; -x_497 = 0; -x_5 = x_497; -x_6 = x_4; -goto block_494; -} -else -{ -lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; -x_498 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__2; -x_499 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_498, x_3, x_4); -x_500 = lean_ctor_get(x_499, 0); -lean_inc(x_500); -x_501 = lean_ctor_get(x_499, 1); -lean_inc(x_501); -lean_dec(x_499); -x_502 = lean_unbox(x_500); -lean_dec(x_500); -x_5 = x_502; -x_6 = x_501; -goto block_494; -} -block_494: -{ -if (x_5 == 0) -{ -uint8_t x_7; -x_7 = !lean_is_exclusive(x_6); -if (x_7 == 0) -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_ctor_get(x_6, 4); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -uint8_t x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; lean_object* x_36; lean_object* x_37; lean_object* x_57; -x_10 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); -x_11 = 0; -lean_ctor_set_uint8(x_8, sizeof(void*)*1, x_11); -lean_inc(x_3); -lean_inc(x_1); -x_57 = l_Lean_Meta_inferType(x_1, x_3, x_6); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_57, 0); -lean_inc(x_58); -x_59 = lean_ctor_get(x_57, 1); -lean_inc(x_59); -lean_dec(x_57); -lean_inc(x_3); -lean_inc(x_2); -x_60 = l_Lean_Meta_inferType(x_2, x_3, x_59); -if (lean_obj_tag(x_60) == 0) -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_61 = lean_ctor_get(x_3, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_60, 1); -lean_inc(x_63); -lean_dec(x_60); -x_64 = lean_ctor_get(x_3, 1); -lean_inc(x_64); -x_65 = lean_ctor_get(x_3, 2); -lean_inc(x_65); -x_66 = lean_ctor_get(x_3, 3); -lean_inc(x_66); -x_67 = lean_ctor_get(x_3, 4); -lean_inc(x_67); -x_68 = !lean_is_exclusive(x_61); -if (x_68 == 0) -{ -uint8_t x_69; lean_object* x_70; lean_object* x_71; -x_69 = 1; -lean_ctor_set_uint8(x_61, sizeof(void*)*1 + 6, x_69); -x_70 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_70, 0, x_61); -lean_ctor_set(x_70, 1, x_64); -lean_ctor_set(x_70, 2, x_65); -lean_ctor_set(x_70, 3, x_66); -lean_ctor_set(x_70, 4, x_67); -lean_inc(x_62); -lean_inc(x_58); -x_71 = l_Lean_Meta_isExprDefEqAux(x_58, x_62, x_70, x_63); -if (lean_obj_tag(x_71) == 0) -{ -lean_object* x_72; uint8_t x_73; -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_unbox(x_72); -if (x_73 == 0) -{ -lean_object* x_74; lean_object* x_75; uint8_t x_76; -x_74 = lean_ctor_get(x_71, 1); -lean_inc(x_74); -lean_dec(x_71); -x_75 = lean_ctor_get(x_74, 4); -lean_inc(x_75); -x_76 = lean_ctor_get_uint8(x_75, sizeof(void*)*1); -lean_dec(x_75); -if (x_76 == 0) -{ -uint8_t x_77; -lean_dec(x_62); -lean_dec(x_58); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_77 = lean_unbox(x_72); -lean_dec(x_72); -x_12 = x_77; -x_13 = x_74; -goto block_35; -} -else -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_78 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4; -x_79 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_78, x_3, x_74); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_unbox(x_80); -lean_dec(x_80); -if (x_81 == 0) -{ -lean_object* x_82; uint8_t x_83; -lean_dec(x_62); -lean_dec(x_58); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_82 = lean_ctor_get(x_79, 1); -lean_inc(x_82); -lean_dec(x_79); -x_83 = lean_unbox(x_72); -lean_dec(x_72); -x_12 = x_83; -x_13 = x_82; -goto block_35; -} -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; 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; uint8_t x_99; -x_84 = lean_ctor_get(x_79, 1); -lean_inc(x_84); -lean_dec(x_79); -x_85 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_85, 0, x_1); -x_86 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; -x_87 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_87, 0, x_85); -lean_ctor_set(x_87, 1, x_86); -x_88 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_88, 0, x_58); -x_89 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_89, 0, x_87); -lean_ctor_set(x_89, 1, x_88); -x_90 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; -x_91 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -x_92 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_92, 0, x_2); -x_93 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_93, 0, x_91); -lean_ctor_set(x_93, 1, x_92); -x_94 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_94, 0, x_93); -lean_ctor_set(x_94, 1, x_86); -x_95 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_95, 0, x_62); -x_96 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -x_97 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_78, x_96, x_3, x_84); -lean_dec(x_3); -x_98 = lean_ctor_get(x_97, 1); -lean_inc(x_98); -lean_dec(x_97); -x_99 = lean_unbox(x_72); -lean_dec(x_72); -x_12 = x_99; -x_13 = x_98; -goto block_35; -} -} -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; -lean_dec(x_62); -lean_dec(x_58); -x_100 = lean_ctor_get(x_71, 1); -lean_inc(x_100); -lean_dec(x_71); -x_101 = l_Lean_Expr_mvarId_x21(x_1); -lean_dec(x_1); -x_102 = l_Lean_Meta_assignExprMVar(x_101, x_2, x_3, x_100); -lean_dec(x_3); -if (lean_obj_tag(x_102) == 0) -{ -lean_object* x_103; uint8_t x_104; -x_103 = lean_ctor_get(x_102, 1); -lean_inc(x_103); -lean_dec(x_102); -x_104 = lean_unbox(x_72); -lean_dec(x_72); -x_12 = x_104; -x_13 = x_103; -goto block_35; -} -else -{ -lean_object* x_105; lean_object* x_106; -lean_dec(x_72); -x_105 = lean_ctor_get(x_102, 0); -lean_inc(x_105); -x_106 = lean_ctor_get(x_102, 1); -lean_inc(x_106); -lean_dec(x_102); -x_36 = x_105; -x_37 = x_106; -goto block_56; -} -} -} -else -{ -lean_object* x_107; lean_object* x_108; -lean_dec(x_62); -lean_dec(x_58); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_107 = lean_ctor_get(x_71, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_71, 1); -lean_inc(x_108); -lean_dec(x_71); -x_36 = x_107; -x_37 = x_108; -goto block_56; -} -} -else -{ -lean_object* x_109; uint8_t x_110; uint8_t x_111; uint8_t x_112; uint8_t x_113; uint8_t x_114; uint8_t x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_109 = lean_ctor_get(x_61, 0); -x_110 = lean_ctor_get_uint8(x_61, sizeof(void*)*1); -x_111 = lean_ctor_get_uint8(x_61, sizeof(void*)*1 + 1); -x_112 = lean_ctor_get_uint8(x_61, sizeof(void*)*1 + 2); -x_113 = lean_ctor_get_uint8(x_61, sizeof(void*)*1 + 3); -x_114 = lean_ctor_get_uint8(x_61, sizeof(void*)*1 + 4); -x_115 = lean_ctor_get_uint8(x_61, sizeof(void*)*1 + 5); -lean_inc(x_109); -lean_dec(x_61); -x_116 = 1; -x_117 = lean_alloc_ctor(0, 1, 7); -lean_ctor_set(x_117, 0, x_109); -lean_ctor_set_uint8(x_117, sizeof(void*)*1, x_110); -lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 1, x_111); -lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 2, x_112); -lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 3, x_113); -lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 4, x_114); -lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 5, x_115); -lean_ctor_set_uint8(x_117, sizeof(void*)*1 + 6, x_116); -x_118 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_64); -lean_ctor_set(x_118, 2, x_65); -lean_ctor_set(x_118, 3, x_66); -lean_ctor_set(x_118, 4, x_67); -lean_inc(x_62); -lean_inc(x_58); -x_119 = l_Lean_Meta_isExprDefEqAux(x_58, x_62, x_118, x_63); -if (lean_obj_tag(x_119) == 0) -{ -lean_object* x_120; uint8_t x_121; -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_unbox(x_120); -if (x_121 == 0) -{ -lean_object* x_122; lean_object* x_123; uint8_t x_124; -x_122 = lean_ctor_get(x_119, 1); -lean_inc(x_122); -lean_dec(x_119); -x_123 = lean_ctor_get(x_122, 4); -lean_inc(x_123); -x_124 = lean_ctor_get_uint8(x_123, sizeof(void*)*1); -lean_dec(x_123); -if (x_124 == 0) -{ -uint8_t x_125; -lean_dec(x_62); -lean_dec(x_58); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_125 = lean_unbox(x_120); -lean_dec(x_120); -x_12 = x_125; -x_13 = x_122; -goto block_35; -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; -x_126 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4; -x_127 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_126, x_3, x_122); -x_128 = lean_ctor_get(x_127, 0); -lean_inc(x_128); -x_129 = lean_unbox(x_128); -lean_dec(x_128); -if (x_129 == 0) -{ -lean_object* x_130; uint8_t x_131; -lean_dec(x_62); -lean_dec(x_58); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_130 = lean_ctor_get(x_127, 1); -lean_inc(x_130); -lean_dec(x_127); -x_131 = lean_unbox(x_120); -lean_dec(x_120); -x_12 = x_131; -x_13 = x_130; -goto block_35; -} -else -{ -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; uint8_t x_147; -x_132 = lean_ctor_get(x_127, 1); -lean_inc(x_132); -lean_dec(x_127); -x_133 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_133, 0, x_1); -x_134 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; -x_135 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_135, 0, x_133); -lean_ctor_set(x_135, 1, x_134); -x_136 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_136, 0, x_58); -x_137 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_137, 0, x_135); -lean_ctor_set(x_137, 1, x_136); -x_138 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; -x_139 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_139, 0, x_137); -lean_ctor_set(x_139, 1, x_138); -x_140 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_140, 0, x_2); -x_141 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_141, 0, x_139); -lean_ctor_set(x_141, 1, x_140); -x_142 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_134); -x_143 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_143, 0, x_62); -x_144 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_144, 0, x_142); -lean_ctor_set(x_144, 1, x_143); -x_145 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_126, x_144, x_3, x_132); -lean_dec(x_3); -x_146 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -lean_dec(x_145); -x_147 = lean_unbox(x_120); -lean_dec(x_120); -x_12 = x_147; -x_13 = x_146; -goto block_35; -} -} -} -else -{ -lean_object* x_148; lean_object* x_149; lean_object* x_150; -lean_dec(x_62); -lean_dec(x_58); -x_148 = lean_ctor_get(x_119, 1); -lean_inc(x_148); -lean_dec(x_119); -x_149 = l_Lean_Expr_mvarId_x21(x_1); -lean_dec(x_1); -x_150 = l_Lean_Meta_assignExprMVar(x_149, x_2, x_3, x_148); -lean_dec(x_3); -if (lean_obj_tag(x_150) == 0) -{ -lean_object* x_151; uint8_t x_152; -x_151 = lean_ctor_get(x_150, 1); -lean_inc(x_151); -lean_dec(x_150); -x_152 = lean_unbox(x_120); -lean_dec(x_120); -x_12 = x_152; -x_13 = x_151; -goto block_35; -} -else -{ -lean_object* x_153; lean_object* x_154; -lean_dec(x_120); -x_153 = lean_ctor_get(x_150, 0); -lean_inc(x_153); -x_154 = lean_ctor_get(x_150, 1); -lean_inc(x_154); -lean_dec(x_150); -x_36 = x_153; -x_37 = x_154; -goto block_56; -} -} -} -else -{ -lean_object* x_155; lean_object* x_156; -lean_dec(x_62); -lean_dec(x_58); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_155 = lean_ctor_get(x_119, 0); -lean_inc(x_155); -x_156 = lean_ctor_get(x_119, 1); -lean_inc(x_156); -lean_dec(x_119); -x_36 = x_155; -x_37 = x_156; -goto block_56; -} -} -} -else -{ -lean_object* x_157; lean_object* x_158; -lean_dec(x_58); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_157 = lean_ctor_get(x_60, 0); -lean_inc(x_157); -x_158 = lean_ctor_get(x_60, 1); -lean_inc(x_158); -lean_dec(x_60); -x_36 = x_157; -x_37 = x_158; -goto block_56; -} -} -else -{ -lean_object* x_159; lean_object* x_160; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_159 = lean_ctor_get(x_57, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_57, 1); -lean_inc(x_160); -lean_dec(x_57); -x_36 = x_159; -x_37 = x_160; -goto block_56; -} -block_35: -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_13, 4); -x_16 = !lean_is_exclusive(x_15); -if (x_16 == 0) -{ -lean_object* x_17; lean_object* x_18; -lean_ctor_set_uint8(x_15, sizeof(void*)*1, x_10); -x_17 = lean_box(x_12); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_13); -return x_18; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_15, 0); -lean_inc(x_19); -lean_dec(x_15); -x_20 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set_uint8(x_20, sizeof(void*)*1, x_10); -lean_ctor_set(x_13, 4, x_20); -x_21 = lean_box(x_12); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_13); -return x_22; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_23 = lean_ctor_get(x_13, 4); -x_24 = lean_ctor_get(x_13, 0); -x_25 = lean_ctor_get(x_13, 1); -x_26 = lean_ctor_get(x_13, 2); -x_27 = lean_ctor_get(x_13, 3); -x_28 = lean_ctor_get(x_13, 5); -lean_inc(x_28); -lean_inc(x_23); -lean_inc(x_27); -lean_inc(x_26); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_13); -x_29 = lean_ctor_get(x_23, 0); -lean_inc(x_29); -if (lean_is_exclusive(x_23)) { - lean_ctor_release(x_23, 0); - x_30 = x_23; -} else { - lean_dec_ref(x_23); - x_30 = lean_box(0); -} -if (lean_is_scalar(x_30)) { - x_31 = lean_alloc_ctor(0, 1, 1); -} else { - x_31 = x_30; -} -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set_uint8(x_31, sizeof(void*)*1, x_10); -x_32 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_32, 0, x_24); -lean_ctor_set(x_32, 1, x_25); -lean_ctor_set(x_32, 2, x_26); -lean_ctor_set(x_32, 3, x_27); -lean_ctor_set(x_32, 4, x_31); -lean_ctor_set(x_32, 5, x_28); -x_33 = lean_box(x_12); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} -} -block_56: -{ -uint8_t x_38; -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; uint8_t x_40; -x_39 = lean_ctor_get(x_37, 4); -x_40 = !lean_is_exclusive(x_39); -if (x_40 == 0) -{ -lean_object* x_41; -lean_ctor_set_uint8(x_39, sizeof(void*)*1, x_10); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_36); -lean_ctor_set(x_41, 1, x_37); -return x_41; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_39, 0); -lean_inc(x_42); -lean_dec(x_39); -x_43 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set_uint8(x_43, sizeof(void*)*1, x_10); -lean_ctor_set(x_37, 4, x_43); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_36); -lean_ctor_set(x_44, 1, x_37); -return x_44; -} -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_45 = lean_ctor_get(x_37, 4); -x_46 = lean_ctor_get(x_37, 0); -x_47 = lean_ctor_get(x_37, 1); -x_48 = lean_ctor_get(x_37, 2); -x_49 = lean_ctor_get(x_37, 3); -x_50 = lean_ctor_get(x_37, 5); -lean_inc(x_50); -lean_inc(x_45); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_37); -x_51 = lean_ctor_get(x_45, 0); -lean_inc(x_51); -if (lean_is_exclusive(x_45)) { - lean_ctor_release(x_45, 0); - x_52 = x_45; -} else { - lean_dec_ref(x_45); - x_52 = lean_box(0); -} -if (lean_is_scalar(x_52)) { - x_53 = lean_alloc_ctor(0, 1, 1); -} else { - x_53 = x_52; -} -lean_ctor_set(x_53, 0, x_51); -lean_ctor_set_uint8(x_53, sizeof(void*)*1, x_10); -x_54 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_54, 0, x_46); -lean_ctor_set(x_54, 1, x_47); -lean_ctor_set(x_54, 2, x_48); -lean_ctor_set(x_54, 3, x_49); -lean_ctor_set(x_54, 4, x_53); -lean_ctor_set(x_54, 5, x_50); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_36); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -else -{ -uint8_t x_161; lean_object* x_162; uint8_t x_163; lean_object* x_164; uint8_t x_165; lean_object* x_166; lean_object* x_181; lean_object* x_182; lean_object* x_196; -x_161 = lean_ctor_get_uint8(x_8, sizeof(void*)*1); -x_162 = lean_ctor_get(x_8, 0); -lean_inc(x_162); -lean_dec(x_8); -x_163 = 0; -x_164 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_164, 0, x_162); -lean_ctor_set_uint8(x_164, sizeof(void*)*1, x_163); -lean_ctor_set(x_6, 4, x_164); -lean_inc(x_3); -lean_inc(x_1); -x_196 = l_Lean_Meta_inferType(x_1, x_3, x_6); -if (lean_obj_tag(x_196) == 0) -{ -lean_object* x_197; lean_object* x_198; lean_object* x_199; -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); -lean_inc(x_198); -lean_dec(x_196); -lean_inc(x_3); -lean_inc(x_2); -x_199 = l_Lean_Meta_inferType(x_2, x_3, x_198); -if (lean_obj_tag(x_199) == 0) -{ -lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; uint8_t x_212; uint8_t x_213; lean_object* x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; -x_200 = lean_ctor_get(x_3, 0); -lean_inc(x_200); -x_201 = lean_ctor_get(x_199, 0); -lean_inc(x_201); -x_202 = lean_ctor_get(x_199, 1); -lean_inc(x_202); -lean_dec(x_199); -x_203 = lean_ctor_get(x_3, 1); -lean_inc(x_203); -x_204 = lean_ctor_get(x_3, 2); -lean_inc(x_204); -x_205 = lean_ctor_get(x_3, 3); -lean_inc(x_205); -x_206 = lean_ctor_get(x_3, 4); -lean_inc(x_206); -x_207 = lean_ctor_get(x_200, 0); -lean_inc(x_207); -x_208 = lean_ctor_get_uint8(x_200, sizeof(void*)*1); -x_209 = lean_ctor_get_uint8(x_200, sizeof(void*)*1 + 1); -x_210 = lean_ctor_get_uint8(x_200, sizeof(void*)*1 + 2); -x_211 = lean_ctor_get_uint8(x_200, sizeof(void*)*1 + 3); -x_212 = lean_ctor_get_uint8(x_200, sizeof(void*)*1 + 4); -x_213 = lean_ctor_get_uint8(x_200, sizeof(void*)*1 + 5); -if (lean_is_exclusive(x_200)) { - lean_ctor_release(x_200, 0); - x_214 = x_200; -} else { - lean_dec_ref(x_200); - x_214 = lean_box(0); -} -x_215 = 1; -if (lean_is_scalar(x_214)) { - x_216 = lean_alloc_ctor(0, 1, 7); -} else { - x_216 = x_214; -} -lean_ctor_set(x_216, 0, x_207); -lean_ctor_set_uint8(x_216, sizeof(void*)*1, x_208); -lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 1, x_209); -lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 2, x_210); -lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 3, x_211); -lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 4, x_212); -lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 5, x_213); -lean_ctor_set_uint8(x_216, sizeof(void*)*1 + 6, x_215); -x_217 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_217, 0, x_216); -lean_ctor_set(x_217, 1, x_203); -lean_ctor_set(x_217, 2, x_204); -lean_ctor_set(x_217, 3, x_205); -lean_ctor_set(x_217, 4, x_206); -lean_inc(x_201); -lean_inc(x_197); -x_218 = l_Lean_Meta_isExprDefEqAux(x_197, x_201, x_217, x_202); -if (lean_obj_tag(x_218) == 0) -{ -lean_object* x_219; uint8_t x_220; -x_219 = lean_ctor_get(x_218, 0); -lean_inc(x_219); -x_220 = lean_unbox(x_219); -if (x_220 == 0) -{ -lean_object* x_221; lean_object* x_222; uint8_t x_223; -x_221 = lean_ctor_get(x_218, 1); -lean_inc(x_221); -lean_dec(x_218); -x_222 = lean_ctor_get(x_221, 4); -lean_inc(x_222); -x_223 = lean_ctor_get_uint8(x_222, sizeof(void*)*1); -lean_dec(x_222); -if (x_223 == 0) -{ -uint8_t x_224; -lean_dec(x_201); -lean_dec(x_197); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_224 = lean_unbox(x_219); -lean_dec(x_219); -x_165 = x_224; -x_166 = x_221; -goto block_180; -} -else -{ -lean_object* x_225; lean_object* x_226; lean_object* x_227; uint8_t x_228; -x_225 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4; -x_226 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_225, x_3, x_221); -x_227 = lean_ctor_get(x_226, 0); -lean_inc(x_227); -x_228 = lean_unbox(x_227); -lean_dec(x_227); -if (x_228 == 0) -{ -lean_object* x_229; uint8_t x_230; -lean_dec(x_201); -lean_dec(x_197); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_229 = lean_ctor_get(x_226, 1); -lean_inc(x_229); -lean_dec(x_226); -x_230 = lean_unbox(x_219); -lean_dec(x_219); -x_165 = x_230; -x_166 = x_229; -goto block_180; -} -else -{ -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; uint8_t x_246; -x_231 = lean_ctor_get(x_226, 1); -lean_inc(x_231); -lean_dec(x_226); -x_232 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_232, 0, x_1); -x_233 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; -x_234 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_234, 0, x_232); -lean_ctor_set(x_234, 1, x_233); -x_235 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_235, 0, x_197); -x_236 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_236, 0, x_234); -lean_ctor_set(x_236, 1, x_235); -x_237 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; -x_238 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_238, 0, x_236); -lean_ctor_set(x_238, 1, x_237); -x_239 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_239, 0, x_2); -x_240 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_240, 0, x_238); -lean_ctor_set(x_240, 1, x_239); -x_241 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_241, 0, x_240); -lean_ctor_set(x_241, 1, x_233); -x_242 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_242, 0, x_201); -x_243 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_243, 0, x_241); -lean_ctor_set(x_243, 1, x_242); -x_244 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_225, x_243, x_3, x_231); -lean_dec(x_3); -x_245 = lean_ctor_get(x_244, 1); -lean_inc(x_245); -lean_dec(x_244); -x_246 = lean_unbox(x_219); -lean_dec(x_219); -x_165 = x_246; -x_166 = x_245; -goto block_180; -} -} -} -else -{ -lean_object* x_247; lean_object* x_248; lean_object* x_249; -lean_dec(x_201); -lean_dec(x_197); -x_247 = lean_ctor_get(x_218, 1); -lean_inc(x_247); -lean_dec(x_218); -x_248 = l_Lean_Expr_mvarId_x21(x_1); -lean_dec(x_1); -x_249 = l_Lean_Meta_assignExprMVar(x_248, x_2, x_3, x_247); -lean_dec(x_3); -if (lean_obj_tag(x_249) == 0) -{ -lean_object* x_250; uint8_t x_251; -x_250 = lean_ctor_get(x_249, 1); -lean_inc(x_250); -lean_dec(x_249); -x_251 = lean_unbox(x_219); -lean_dec(x_219); -x_165 = x_251; -x_166 = x_250; -goto block_180; -} -else -{ -lean_object* x_252; lean_object* x_253; -lean_dec(x_219); -x_252 = lean_ctor_get(x_249, 0); -lean_inc(x_252); -x_253 = lean_ctor_get(x_249, 1); -lean_inc(x_253); -lean_dec(x_249); -x_181 = x_252; -x_182 = x_253; -goto block_195; -} -} -} -else -{ -lean_object* x_254; lean_object* x_255; -lean_dec(x_201); -lean_dec(x_197); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_254 = lean_ctor_get(x_218, 0); -lean_inc(x_254); -x_255 = lean_ctor_get(x_218, 1); -lean_inc(x_255); -lean_dec(x_218); -x_181 = x_254; -x_182 = x_255; -goto block_195; -} -} -else -{ -lean_object* x_256; lean_object* x_257; -lean_dec(x_197); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_256 = lean_ctor_get(x_199, 0); -lean_inc(x_256); -x_257 = lean_ctor_get(x_199, 1); -lean_inc(x_257); -lean_dec(x_199); -x_181 = x_256; -x_182 = x_257; -goto block_195; -} -} -else -{ -lean_object* x_258; lean_object* x_259; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_258 = lean_ctor_get(x_196, 0); -lean_inc(x_258); -x_259 = lean_ctor_get(x_196, 1); -lean_inc(x_259); -lean_dec(x_196); -x_181 = x_258; -x_182 = x_259; -goto block_195; -} -block_180: -{ -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; -x_167 = lean_ctor_get(x_166, 4); -lean_inc(x_167); -x_168 = lean_ctor_get(x_166, 0); -lean_inc(x_168); -x_169 = lean_ctor_get(x_166, 1); -lean_inc(x_169); -x_170 = lean_ctor_get(x_166, 2); -lean_inc(x_170); -x_171 = lean_ctor_get(x_166, 3); -lean_inc(x_171); -x_172 = lean_ctor_get(x_166, 5); -lean_inc(x_172); -if (lean_is_exclusive(x_166)) { - lean_ctor_release(x_166, 0); - lean_ctor_release(x_166, 1); - lean_ctor_release(x_166, 2); - lean_ctor_release(x_166, 3); - lean_ctor_release(x_166, 4); - lean_ctor_release(x_166, 5); - x_173 = x_166; -} else { - lean_dec_ref(x_166); - x_173 = lean_box(0); -} -x_174 = lean_ctor_get(x_167, 0); -lean_inc(x_174); -if (lean_is_exclusive(x_167)) { - lean_ctor_release(x_167, 0); - x_175 = x_167; -} else { - lean_dec_ref(x_167); - x_175 = lean_box(0); -} -if (lean_is_scalar(x_175)) { - x_176 = lean_alloc_ctor(0, 1, 1); -} else { - x_176 = x_175; -} -lean_ctor_set(x_176, 0, x_174); -lean_ctor_set_uint8(x_176, sizeof(void*)*1, x_161); -if (lean_is_scalar(x_173)) { - x_177 = lean_alloc_ctor(0, 6, 0); -} else { - x_177 = x_173; -} -lean_ctor_set(x_177, 0, x_168); -lean_ctor_set(x_177, 1, x_169); -lean_ctor_set(x_177, 2, x_170); -lean_ctor_set(x_177, 3, x_171); -lean_ctor_set(x_177, 4, x_176); -lean_ctor_set(x_177, 5, x_172); -x_178 = lean_box(x_165); -x_179 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_179, 0, x_178); -lean_ctor_set(x_179, 1, x_177); -return x_179; -} -block_195: -{ -lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; -x_183 = lean_ctor_get(x_182, 4); -lean_inc(x_183); -x_184 = lean_ctor_get(x_182, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_182, 1); -lean_inc(x_185); -x_186 = lean_ctor_get(x_182, 2); -lean_inc(x_186); -x_187 = lean_ctor_get(x_182, 3); -lean_inc(x_187); -x_188 = lean_ctor_get(x_182, 5); -lean_inc(x_188); -if (lean_is_exclusive(x_182)) { - lean_ctor_release(x_182, 0); - lean_ctor_release(x_182, 1); - lean_ctor_release(x_182, 2); - lean_ctor_release(x_182, 3); - lean_ctor_release(x_182, 4); - lean_ctor_release(x_182, 5); - x_189 = x_182; -} else { - lean_dec_ref(x_182); - x_189 = lean_box(0); -} -x_190 = lean_ctor_get(x_183, 0); -lean_inc(x_190); -if (lean_is_exclusive(x_183)) { - lean_ctor_release(x_183, 0); - x_191 = x_183; -} else { - lean_dec_ref(x_183); - x_191 = lean_box(0); -} -if (lean_is_scalar(x_191)) { - x_192 = lean_alloc_ctor(0, 1, 1); -} else { - x_192 = x_191; -} -lean_ctor_set(x_192, 0, x_190); -lean_ctor_set_uint8(x_192, sizeof(void*)*1, x_161); -if (lean_is_scalar(x_189)) { - x_193 = lean_alloc_ctor(0, 6, 0); -} else { - x_193 = x_189; -} -lean_ctor_set(x_193, 0, x_184); -lean_ctor_set(x_193, 1, x_185); -lean_ctor_set(x_193, 2, x_186); -lean_ctor_set(x_193, 3, x_187); -lean_ctor_set(x_193, 4, x_192); -lean_ctor_set(x_193, 5, x_188); -x_194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_194, 0, x_181); -lean_ctor_set(x_194, 1, x_193); -return x_194; -} -} -} -else -{ -lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; uint8_t x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; lean_object* x_273; lean_object* x_288; lean_object* x_289; lean_object* x_303; -x_260 = lean_ctor_get(x_6, 4); -x_261 = lean_ctor_get(x_6, 0); -x_262 = lean_ctor_get(x_6, 1); -x_263 = lean_ctor_get(x_6, 2); -x_264 = lean_ctor_get(x_6, 3); -x_265 = lean_ctor_get(x_6, 5); -lean_inc(x_265); -lean_inc(x_260); -lean_inc(x_264); -lean_inc(x_263); -lean_inc(x_262); -lean_inc(x_261); -lean_dec(x_6); -x_266 = lean_ctor_get_uint8(x_260, sizeof(void*)*1); -x_267 = lean_ctor_get(x_260, 0); -lean_inc(x_267); -if (lean_is_exclusive(x_260)) { - lean_ctor_release(x_260, 0); - x_268 = x_260; -} else { - lean_dec_ref(x_260); - x_268 = lean_box(0); -} -x_269 = 0; -if (lean_is_scalar(x_268)) { - x_270 = lean_alloc_ctor(0, 1, 1); -} else { - x_270 = x_268; -} -lean_ctor_set(x_270, 0, x_267); -lean_ctor_set_uint8(x_270, sizeof(void*)*1, x_269); -x_271 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_271, 0, x_261); -lean_ctor_set(x_271, 1, x_262); -lean_ctor_set(x_271, 2, x_263); -lean_ctor_set(x_271, 3, x_264); -lean_ctor_set(x_271, 4, x_270); -lean_ctor_set(x_271, 5, x_265); -lean_inc(x_3); -lean_inc(x_1); -x_303 = l_Lean_Meta_inferType(x_1, x_3, x_271); -if (lean_obj_tag(x_303) == 0) -{ -lean_object* x_304; lean_object* x_305; lean_object* x_306; -x_304 = lean_ctor_get(x_303, 0); -lean_inc(x_304); -x_305 = lean_ctor_get(x_303, 1); -lean_inc(x_305); -lean_dec(x_303); -lean_inc(x_3); -lean_inc(x_2); -x_306 = l_Lean_Meta_inferType(x_2, x_3, x_305); -if (lean_obj_tag(x_306) == 0) -{ -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; uint8_t x_315; uint8_t x_316; uint8_t x_317; uint8_t x_318; uint8_t x_319; uint8_t x_320; lean_object* x_321; uint8_t x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; -x_307 = lean_ctor_get(x_3, 0); -lean_inc(x_307); -x_308 = lean_ctor_get(x_306, 0); -lean_inc(x_308); -x_309 = lean_ctor_get(x_306, 1); -lean_inc(x_309); -lean_dec(x_306); -x_310 = lean_ctor_get(x_3, 1); -lean_inc(x_310); -x_311 = lean_ctor_get(x_3, 2); -lean_inc(x_311); -x_312 = lean_ctor_get(x_3, 3); -lean_inc(x_312); -x_313 = lean_ctor_get(x_3, 4); -lean_inc(x_313); -x_314 = lean_ctor_get(x_307, 0); -lean_inc(x_314); -x_315 = lean_ctor_get_uint8(x_307, sizeof(void*)*1); -x_316 = lean_ctor_get_uint8(x_307, sizeof(void*)*1 + 1); -x_317 = lean_ctor_get_uint8(x_307, sizeof(void*)*1 + 2); -x_318 = lean_ctor_get_uint8(x_307, sizeof(void*)*1 + 3); -x_319 = lean_ctor_get_uint8(x_307, sizeof(void*)*1 + 4); -x_320 = lean_ctor_get_uint8(x_307, sizeof(void*)*1 + 5); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - x_321 = x_307; -} else { - lean_dec_ref(x_307); - x_321 = lean_box(0); -} -x_322 = 1; -if (lean_is_scalar(x_321)) { - x_323 = lean_alloc_ctor(0, 1, 7); -} else { - x_323 = x_321; -} -lean_ctor_set(x_323, 0, x_314); -lean_ctor_set_uint8(x_323, sizeof(void*)*1, x_315); -lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 1, x_316); -lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 2, x_317); -lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 3, x_318); -lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 4, x_319); -lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 5, x_320); -lean_ctor_set_uint8(x_323, sizeof(void*)*1 + 6, x_322); -x_324 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_324, 0, x_323); -lean_ctor_set(x_324, 1, x_310); -lean_ctor_set(x_324, 2, x_311); -lean_ctor_set(x_324, 3, x_312); -lean_ctor_set(x_324, 4, x_313); -lean_inc(x_308); -lean_inc(x_304); -x_325 = l_Lean_Meta_isExprDefEqAux(x_304, x_308, x_324, x_309); -if (lean_obj_tag(x_325) == 0) -{ -lean_object* x_326; uint8_t x_327; -x_326 = lean_ctor_get(x_325, 0); -lean_inc(x_326); -x_327 = lean_unbox(x_326); -if (x_327 == 0) -{ -lean_object* x_328; lean_object* x_329; uint8_t x_330; -x_328 = lean_ctor_get(x_325, 1); -lean_inc(x_328); -lean_dec(x_325); -x_329 = lean_ctor_get(x_328, 4); -lean_inc(x_329); -x_330 = lean_ctor_get_uint8(x_329, sizeof(void*)*1); -lean_dec(x_329); -if (x_330 == 0) -{ -uint8_t x_331; -lean_dec(x_308); -lean_dec(x_304); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_331 = lean_unbox(x_326); -lean_dec(x_326); -x_272 = x_331; -x_273 = x_328; -goto block_287; -} -else -{ -lean_object* x_332; lean_object* x_333; lean_object* x_334; uint8_t x_335; -x_332 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4; -x_333 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_332, x_3, x_328); -x_334 = lean_ctor_get(x_333, 0); -lean_inc(x_334); -x_335 = lean_unbox(x_334); -lean_dec(x_334); -if (x_335 == 0) -{ -lean_object* x_336; uint8_t x_337; -lean_dec(x_308); -lean_dec(x_304); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_336 = lean_ctor_get(x_333, 1); -lean_inc(x_336); -lean_dec(x_333); -x_337 = lean_unbox(x_326); -lean_dec(x_326); -x_272 = x_337; -x_273 = x_336; -goto block_287; -} -else -{ -lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; uint8_t x_353; -x_338 = lean_ctor_get(x_333, 1); -lean_inc(x_338); -lean_dec(x_333); -x_339 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_339, 0, x_1); -x_340 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; -x_341 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_341, 0, x_339); -lean_ctor_set(x_341, 1, x_340); -x_342 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_342, 0, x_304); -x_343 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_343, 0, x_341); -lean_ctor_set(x_343, 1, x_342); -x_344 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; -x_345 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_345, 0, x_343); -lean_ctor_set(x_345, 1, x_344); -x_346 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_346, 0, x_2); -x_347 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_347, 0, x_345); -lean_ctor_set(x_347, 1, x_346); -x_348 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_348, 0, x_347); -lean_ctor_set(x_348, 1, x_340); -x_349 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_349, 0, x_308); -x_350 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_350, 0, x_348); -lean_ctor_set(x_350, 1, x_349); -x_351 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_332, x_350, x_3, x_338); -lean_dec(x_3); -x_352 = lean_ctor_get(x_351, 1); -lean_inc(x_352); -lean_dec(x_351); -x_353 = lean_unbox(x_326); -lean_dec(x_326); -x_272 = x_353; -x_273 = x_352; -goto block_287; -} -} -} -else -{ -lean_object* x_354; lean_object* x_355; lean_object* x_356; -lean_dec(x_308); -lean_dec(x_304); -x_354 = lean_ctor_get(x_325, 1); -lean_inc(x_354); -lean_dec(x_325); -x_355 = l_Lean_Expr_mvarId_x21(x_1); -lean_dec(x_1); -x_356 = l_Lean_Meta_assignExprMVar(x_355, x_2, x_3, x_354); -lean_dec(x_3); -if (lean_obj_tag(x_356) == 0) -{ -lean_object* x_357; uint8_t x_358; -x_357 = lean_ctor_get(x_356, 1); -lean_inc(x_357); -lean_dec(x_356); -x_358 = lean_unbox(x_326); -lean_dec(x_326); -x_272 = x_358; -x_273 = x_357; -goto block_287; -} -else -{ -lean_object* x_359; lean_object* x_360; -lean_dec(x_326); -x_359 = lean_ctor_get(x_356, 0); -lean_inc(x_359); -x_360 = lean_ctor_get(x_356, 1); -lean_inc(x_360); -lean_dec(x_356); -x_288 = x_359; -x_289 = x_360; -goto block_302; -} -} -} -else -{ -lean_object* x_361; lean_object* x_362; -lean_dec(x_308); -lean_dec(x_304); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_361 = lean_ctor_get(x_325, 0); -lean_inc(x_361); -x_362 = lean_ctor_get(x_325, 1); -lean_inc(x_362); -lean_dec(x_325); -x_288 = x_361; -x_289 = x_362; -goto block_302; -} -} -else -{ -lean_object* x_363; lean_object* x_364; -lean_dec(x_304); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_363 = lean_ctor_get(x_306, 0); -lean_inc(x_363); -x_364 = lean_ctor_get(x_306, 1); -lean_inc(x_364); -lean_dec(x_306); -x_288 = x_363; -x_289 = x_364; -goto block_302; -} -} -else -{ -lean_object* x_365; lean_object* x_366; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_365 = lean_ctor_get(x_303, 0); -lean_inc(x_365); -x_366 = lean_ctor_get(x_303, 1); -lean_inc(x_366); -lean_dec(x_303); -x_288 = x_365; -x_289 = x_366; -goto block_302; -} -block_287: -{ -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_274 = lean_ctor_get(x_273, 4); -lean_inc(x_274); -x_275 = lean_ctor_get(x_273, 0); -lean_inc(x_275); -x_276 = lean_ctor_get(x_273, 1); -lean_inc(x_276); -x_277 = lean_ctor_get(x_273, 2); -lean_inc(x_277); -x_278 = lean_ctor_get(x_273, 3); -lean_inc(x_278); -x_279 = lean_ctor_get(x_273, 5); -lean_inc(x_279); -if (lean_is_exclusive(x_273)) { - lean_ctor_release(x_273, 0); - lean_ctor_release(x_273, 1); - lean_ctor_release(x_273, 2); - lean_ctor_release(x_273, 3); - lean_ctor_release(x_273, 4); - lean_ctor_release(x_273, 5); - x_280 = x_273; -} else { - lean_dec_ref(x_273); - x_280 = lean_box(0); -} -x_281 = lean_ctor_get(x_274, 0); -lean_inc(x_281); -if (lean_is_exclusive(x_274)) { - lean_ctor_release(x_274, 0); - x_282 = x_274; -} else { - lean_dec_ref(x_274); - x_282 = lean_box(0); -} -if (lean_is_scalar(x_282)) { - x_283 = lean_alloc_ctor(0, 1, 1); -} else { - x_283 = x_282; -} -lean_ctor_set(x_283, 0, x_281); -lean_ctor_set_uint8(x_283, sizeof(void*)*1, x_266); -if (lean_is_scalar(x_280)) { - x_284 = lean_alloc_ctor(0, 6, 0); -} else { - x_284 = x_280; -} -lean_ctor_set(x_284, 0, x_275); -lean_ctor_set(x_284, 1, x_276); -lean_ctor_set(x_284, 2, x_277); -lean_ctor_set(x_284, 3, x_278); -lean_ctor_set(x_284, 4, x_283); -lean_ctor_set(x_284, 5, x_279); -x_285 = lean_box(x_272); -x_286 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_286, 0, x_285); -lean_ctor_set(x_286, 1, x_284); -return x_286; -} -block_302: -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; -x_290 = lean_ctor_get(x_289, 4); -lean_inc(x_290); -x_291 = lean_ctor_get(x_289, 0); -lean_inc(x_291); -x_292 = lean_ctor_get(x_289, 1); -lean_inc(x_292); -x_293 = lean_ctor_get(x_289, 2); -lean_inc(x_293); -x_294 = lean_ctor_get(x_289, 3); -lean_inc(x_294); -x_295 = lean_ctor_get(x_289, 5); -lean_inc(x_295); -if (lean_is_exclusive(x_289)) { - lean_ctor_release(x_289, 0); - lean_ctor_release(x_289, 1); - lean_ctor_release(x_289, 2); - lean_ctor_release(x_289, 3); - lean_ctor_release(x_289, 4); - lean_ctor_release(x_289, 5); - x_296 = x_289; -} else { - lean_dec_ref(x_289); - x_296 = lean_box(0); -} -x_297 = lean_ctor_get(x_290, 0); -lean_inc(x_297); -if (lean_is_exclusive(x_290)) { - lean_ctor_release(x_290, 0); - x_298 = x_290; -} else { - lean_dec_ref(x_290); - x_298 = lean_box(0); -} -if (lean_is_scalar(x_298)) { - x_299 = lean_alloc_ctor(0, 1, 1); -} else { - x_299 = x_298; -} -lean_ctor_set(x_299, 0, x_297); -lean_ctor_set_uint8(x_299, sizeof(void*)*1, x_266); -if (lean_is_scalar(x_296)) { - x_300 = lean_alloc_ctor(0, 6, 0); -} else { - x_300 = x_296; -} -lean_ctor_set(x_300, 0, x_291); -lean_ctor_set(x_300, 1, x_292); -lean_ctor_set(x_300, 2, x_293); -lean_ctor_set(x_300, 3, x_294); -lean_ctor_set(x_300, 4, x_299); -lean_ctor_set(x_300, 5, x_295); -x_301 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_301, 0, x_288); -lean_ctor_set(x_301, 1, x_300); -return x_301; -} -} -} -else -{ -lean_object* x_367; lean_object* x_368; lean_object* x_369; uint8_t x_370; lean_object* x_371; lean_object* x_381; lean_object* x_382; lean_object* x_390; -x_367 = l___private_Init_Lean_Util_Trace_3__getResetTraces___at_Lean_Meta_check___spec__1___rarg(x_6); -x_368 = lean_ctor_get(x_367, 0); -lean_inc(x_368); -x_369 = lean_ctor_get(x_367, 1); -lean_inc(x_369); -lean_dec(x_367); -lean_inc(x_3); -lean_inc(x_1); -x_390 = l_Lean_Meta_inferType(x_1, x_3, x_369); -if (lean_obj_tag(x_390) == 0) -{ -lean_object* x_391; lean_object* x_392; lean_object* x_393; -x_391 = lean_ctor_get(x_390, 0); -lean_inc(x_391); -x_392 = lean_ctor_get(x_390, 1); -lean_inc(x_392); -lean_dec(x_390); -lean_inc(x_3); -lean_inc(x_2); -x_393 = l_Lean_Meta_inferType(x_2, x_3, x_392); -if (lean_obj_tag(x_393) == 0) -{ -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; uint8_t x_401; -x_394 = lean_ctor_get(x_3, 0); -lean_inc(x_394); -x_395 = lean_ctor_get(x_393, 0); -lean_inc(x_395); -x_396 = lean_ctor_get(x_393, 1); -lean_inc(x_396); -lean_dec(x_393); -x_397 = lean_ctor_get(x_3, 1); -lean_inc(x_397); -x_398 = lean_ctor_get(x_3, 2); -lean_inc(x_398); -x_399 = lean_ctor_get(x_3, 3); -lean_inc(x_399); -x_400 = lean_ctor_get(x_3, 4); -lean_inc(x_400); -x_401 = !lean_is_exclusive(x_394); -if (x_401 == 0) -{ -uint8_t x_402; lean_object* x_403; lean_object* x_404; -x_402 = 1; -lean_ctor_set_uint8(x_394, sizeof(void*)*1 + 6, x_402); -x_403 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_403, 0, x_394); -lean_ctor_set(x_403, 1, x_397); -lean_ctor_set(x_403, 2, x_398); -lean_ctor_set(x_403, 3, x_399); -lean_ctor_set(x_403, 4, x_400); -lean_inc(x_395); -lean_inc(x_391); -x_404 = l_Lean_Meta_isExprDefEqAux(x_391, x_395, x_403, x_396); -if (lean_obj_tag(x_404) == 0) -{ -lean_object* x_405; uint8_t x_406; -x_405 = lean_ctor_get(x_404, 0); -lean_inc(x_405); -x_406 = lean_unbox(x_405); -if (x_406 == 0) -{ -lean_object* x_407; lean_object* x_408; uint8_t x_409; -x_407 = lean_ctor_get(x_404, 1); -lean_inc(x_407); -lean_dec(x_404); -x_408 = lean_ctor_get(x_407, 4); -lean_inc(x_408); -x_409 = lean_ctor_get_uint8(x_408, sizeof(void*)*1); -lean_dec(x_408); -if (x_409 == 0) -{ -uint8_t x_410; -lean_dec(x_395); -lean_dec(x_391); -lean_dec(x_2); -lean_dec(x_1); -x_410 = lean_unbox(x_405); -lean_dec(x_405); -x_370 = x_410; -x_371 = x_407; -goto block_380; -} -else -{ -lean_object* x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; -x_411 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4; -x_412 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_411, x_3, x_407); -x_413 = lean_ctor_get(x_412, 0); -lean_inc(x_413); -x_414 = lean_unbox(x_413); -lean_dec(x_413); -if (x_414 == 0) -{ -lean_object* x_415; uint8_t x_416; -lean_dec(x_395); -lean_dec(x_391); -lean_dec(x_2); -lean_dec(x_1); -x_415 = lean_ctor_get(x_412, 1); -lean_inc(x_415); -lean_dec(x_412); -x_416 = lean_unbox(x_405); -lean_dec(x_405); -x_370 = x_416; -x_371 = x_415; -goto block_380; -} -else -{ -lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; uint8_t x_432; -x_417 = lean_ctor_get(x_412, 1); -lean_inc(x_417); -lean_dec(x_412); -x_418 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_418, 0, x_1); -x_419 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; -x_420 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_420, 0, x_418); -lean_ctor_set(x_420, 1, x_419); -x_421 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_421, 0, x_391); -x_422 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_422, 0, x_420); -lean_ctor_set(x_422, 1, x_421); -x_423 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; -x_424 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_424, 0, x_422); -lean_ctor_set(x_424, 1, x_423); -x_425 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_425, 0, x_2); -x_426 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_426, 0, x_424); -lean_ctor_set(x_426, 1, x_425); -x_427 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_427, 0, x_426); -lean_ctor_set(x_427, 1, x_419); -x_428 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_428, 0, x_395); -x_429 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_429, 0, x_427); -lean_ctor_set(x_429, 1, x_428); -x_430 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_411, x_429, x_3, x_417); -x_431 = lean_ctor_get(x_430, 1); -lean_inc(x_431); -lean_dec(x_430); -x_432 = lean_unbox(x_405); -lean_dec(x_405); -x_370 = x_432; -x_371 = x_431; -goto block_380; -} -} -} -else -{ -lean_object* x_433; lean_object* x_434; lean_object* x_435; -lean_dec(x_395); -lean_dec(x_391); -x_433 = lean_ctor_get(x_404, 1); -lean_inc(x_433); -lean_dec(x_404); -x_434 = l_Lean_Expr_mvarId_x21(x_1); -lean_dec(x_1); -x_435 = l_Lean_Meta_assignExprMVar(x_434, x_2, x_3, x_433); -if (lean_obj_tag(x_435) == 0) -{ -lean_object* x_436; uint8_t x_437; -x_436 = lean_ctor_get(x_435, 1); -lean_inc(x_436); -lean_dec(x_435); -x_437 = lean_unbox(x_405); -lean_dec(x_405); -x_370 = x_437; -x_371 = x_436; -goto block_380; -} -else -{ -lean_object* x_438; lean_object* x_439; -lean_dec(x_405); -x_438 = lean_ctor_get(x_435, 0); -lean_inc(x_438); -x_439 = lean_ctor_get(x_435, 1); -lean_inc(x_439); -lean_dec(x_435); -x_381 = x_438; -x_382 = x_439; -goto block_389; -} -} -} -else -{ -lean_object* x_440; lean_object* x_441; -lean_dec(x_395); -lean_dec(x_391); -lean_dec(x_2); -lean_dec(x_1); -x_440 = lean_ctor_get(x_404, 0); -lean_inc(x_440); -x_441 = lean_ctor_get(x_404, 1); -lean_inc(x_441); -lean_dec(x_404); -x_381 = x_440; -x_382 = x_441; -goto block_389; -} -} -else -{ -lean_object* x_442; uint8_t x_443; uint8_t x_444; uint8_t x_445; uint8_t x_446; uint8_t x_447; uint8_t x_448; uint8_t x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; -x_442 = lean_ctor_get(x_394, 0); -x_443 = lean_ctor_get_uint8(x_394, sizeof(void*)*1); -x_444 = lean_ctor_get_uint8(x_394, sizeof(void*)*1 + 1); -x_445 = lean_ctor_get_uint8(x_394, sizeof(void*)*1 + 2); -x_446 = lean_ctor_get_uint8(x_394, sizeof(void*)*1 + 3); -x_447 = lean_ctor_get_uint8(x_394, sizeof(void*)*1 + 4); -x_448 = lean_ctor_get_uint8(x_394, sizeof(void*)*1 + 5); -lean_inc(x_442); -lean_dec(x_394); -x_449 = 1; -x_450 = lean_alloc_ctor(0, 1, 7); -lean_ctor_set(x_450, 0, x_442); -lean_ctor_set_uint8(x_450, sizeof(void*)*1, x_443); -lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 1, x_444); -lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 2, x_445); -lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 3, x_446); -lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 4, x_447); -lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 5, x_448); -lean_ctor_set_uint8(x_450, sizeof(void*)*1 + 6, x_449); -x_451 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_451, 0, x_450); -lean_ctor_set(x_451, 1, x_397); -lean_ctor_set(x_451, 2, x_398); -lean_ctor_set(x_451, 3, x_399); -lean_ctor_set(x_451, 4, x_400); -lean_inc(x_395); -lean_inc(x_391); -x_452 = l_Lean_Meta_isExprDefEqAux(x_391, x_395, x_451, x_396); -if (lean_obj_tag(x_452) == 0) -{ -lean_object* x_453; uint8_t x_454; -x_453 = lean_ctor_get(x_452, 0); -lean_inc(x_453); -x_454 = lean_unbox(x_453); -if (x_454 == 0) -{ -lean_object* x_455; lean_object* x_456; uint8_t x_457; -x_455 = lean_ctor_get(x_452, 1); -lean_inc(x_455); -lean_dec(x_452); -x_456 = lean_ctor_get(x_455, 4); -lean_inc(x_456); -x_457 = lean_ctor_get_uint8(x_456, sizeof(void*)*1); -lean_dec(x_456); -if (x_457 == 0) -{ -uint8_t x_458; -lean_dec(x_395); -lean_dec(x_391); -lean_dec(x_2); -lean_dec(x_1); -x_458 = lean_unbox(x_453); -lean_dec(x_453); -x_370 = x_458; -x_371 = x_455; -goto block_380; -} -else -{ -lean_object* x_459; lean_object* x_460; lean_object* x_461; uint8_t x_462; -x_459 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4; -x_460 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_459, x_3, x_455); -x_461 = lean_ctor_get(x_460, 0); -lean_inc(x_461); -x_462 = lean_unbox(x_461); -lean_dec(x_461); -if (x_462 == 0) -{ -lean_object* x_463; uint8_t x_464; -lean_dec(x_395); -lean_dec(x_391); -lean_dec(x_2); -lean_dec(x_1); -x_463 = lean_ctor_get(x_460, 1); -lean_inc(x_463); -lean_dec(x_460); -x_464 = lean_unbox(x_453); -lean_dec(x_453); -x_370 = x_464; -x_371 = x_463; -goto block_380; -} -else -{ -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; uint8_t x_480; -x_465 = lean_ctor_get(x_460, 1); -lean_inc(x_465); -lean_dec(x_460); -x_466 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_466, 0, x_1); -x_467 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5; -x_468 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_468, 0, x_466); -lean_ctor_set(x_468, 1, x_467); -x_469 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_469, 0, x_391); -x_470 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_470, 0, x_468); -lean_ctor_set(x_470, 1, x_469); -x_471 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; -x_472 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_472, 0, x_470); -lean_ctor_set(x_472, 1, x_471); -x_473 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_473, 0, x_2); -x_474 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_474, 0, x_472); -lean_ctor_set(x_474, 1, x_473); -x_475 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_475, 0, x_474); -lean_ctor_set(x_475, 1, x_467); -x_476 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_476, 0, x_395); -x_477 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_477, 0, x_475); -lean_ctor_set(x_477, 1, x_476); -x_478 = l_Lean_MonadTracerAdapter_addTrace___at_Lean_Meta_isTypeCorrect___spec__1(x_459, x_477, x_3, x_465); -x_479 = lean_ctor_get(x_478, 1); -lean_inc(x_479); -lean_dec(x_478); -x_480 = lean_unbox(x_453); -lean_dec(x_453); -x_370 = x_480; -x_371 = x_479; -goto block_380; -} -} -} -else -{ -lean_object* x_481; lean_object* x_482; lean_object* x_483; -lean_dec(x_395); -lean_dec(x_391); -x_481 = lean_ctor_get(x_452, 1); -lean_inc(x_481); -lean_dec(x_452); -x_482 = l_Lean_Expr_mvarId_x21(x_1); -lean_dec(x_1); -x_483 = l_Lean_Meta_assignExprMVar(x_482, x_2, x_3, x_481); -if (lean_obj_tag(x_483) == 0) -{ -lean_object* x_484; uint8_t x_485; -x_484 = lean_ctor_get(x_483, 1); -lean_inc(x_484); -lean_dec(x_483); -x_485 = lean_unbox(x_453); -lean_dec(x_453); -x_370 = x_485; -x_371 = x_484; -goto block_380; -} -else -{ -lean_object* x_486; lean_object* x_487; -lean_dec(x_453); -x_486 = lean_ctor_get(x_483, 0); -lean_inc(x_486); -x_487 = lean_ctor_get(x_483, 1); -lean_inc(x_487); -lean_dec(x_483); -x_381 = x_486; -x_382 = x_487; -goto block_389; -} -} -} -else -{ -lean_object* x_488; lean_object* x_489; -lean_dec(x_395); -lean_dec(x_391); -lean_dec(x_2); -lean_dec(x_1); -x_488 = lean_ctor_get(x_452, 0); -lean_inc(x_488); -x_489 = lean_ctor_get(x_452, 1); -lean_inc(x_489); -lean_dec(x_452); -x_381 = x_488; -x_382 = x_489; -goto block_389; -} -} -} -else -{ -lean_object* x_490; lean_object* x_491; -lean_dec(x_391); -lean_dec(x_2); -lean_dec(x_1); -x_490 = lean_ctor_get(x_393, 0); -lean_inc(x_490); -x_491 = lean_ctor_get(x_393, 1); -lean_inc(x_491); -lean_dec(x_393); -x_381 = x_490; -x_382 = x_491; -goto block_389; -} -} -else -{ -lean_object* x_492; lean_object* x_493; -lean_dec(x_2); -lean_dec(x_1); -x_492 = lean_ctor_get(x_390, 0); -lean_inc(x_492); -x_493 = lean_ctor_get(x_390, 1); -lean_inc(x_493); -lean_dec(x_390); -x_381 = x_492; -x_382 = x_493; -goto block_389; -} -block_380: -{ -lean_object* x_372; lean_object* x_373; uint8_t x_374; -x_372 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__2; -x_373 = l___private_Init_Lean_Util_Trace_2__addNode___at_Lean_Meta_check___spec__2(x_368, x_372, x_3, x_371); -lean_dec(x_3); -x_374 = !lean_is_exclusive(x_373); -if (x_374 == 0) -{ -lean_object* x_375; lean_object* x_376; -x_375 = lean_ctor_get(x_373, 0); -lean_dec(x_375); -x_376 = lean_box(x_370); -lean_ctor_set(x_373, 0, x_376); -return x_373; -} -else -{ -lean_object* x_377; lean_object* x_378; lean_object* x_379; -x_377 = lean_ctor_get(x_373, 1); -lean_inc(x_377); -lean_dec(x_373); -x_378 = lean_box(x_370); -x_379 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_379, 0, x_378); -lean_ctor_set(x_379, 1, x_377); -return x_379; -} -} -block_389: -{ -lean_object* x_383; lean_object* x_384; uint8_t x_385; -x_383 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__2; -x_384 = l___private_Init_Lean_Util_Trace_2__addNode___at_Lean_Meta_check___spec__2(x_368, x_383, x_3, x_382); -lean_dec(x_3); -x_385 = !lean_is_exclusive(x_384); -if (x_385 == 0) -{ -lean_object* x_386; -x_386 = lean_ctor_get(x_384, 0); -lean_dec(x_386); -lean_ctor_set_tag(x_384, 1); -lean_ctor_set(x_384, 0, x_381); -return x_384; -} -else -{ -lean_object* x_387; lean_object* x_388; -x_387 = lean_ctor_get(x_384, 1); -lean_inc(x_387); -lean_dec(x_384); -x_388 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_388, 0, x_381); -lean_ctor_set(x_388, 1, x_387); -return x_388; -} -} -} -} -} -} lean_object* l_Lean_Meta_withNewLocalInstances___main___at___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { @@ -14036,7 +28830,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign(x_1, x_17, x_8, x_18); +x_19 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_1, x_17, x_8, x_18); return x_19; } else @@ -16255,7 +31049,7 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -x_20 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign(x_5, x_18, x_10, x_19); +x_20 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_5, x_18, x_10, x_19); return x_20; } else @@ -18535,7 +33329,7 @@ lean_inc(x_17); x_18 = lean_ctor_get(x_16, 1); lean_inc(x_18); lean_dec(x_16); -x_19 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign(x_1, x_17, x_8, x_18); +x_19 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_1, x_17, x_8, x_18); return x_19; } else @@ -20981,7 +35775,7 @@ lean_inc(x_19); x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); lean_dec(x_18); -x_21 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign(x_1, x_19, x_6, x_20); +x_21 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_1, x_19, x_6, x_20); return x_21; } else @@ -21067,7 +35861,7 @@ lean_inc(x_41); x_42 = lean_ctor_get(x_40, 1); lean_inc(x_42); lean_dec(x_40); -x_43 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign(x_1, x_41, x_6, x_42); +x_43 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_1, x_41, x_6, x_42); return x_43; } else @@ -21496,7 +36290,7 @@ lean_object* _init_l___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; +x_1 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; x_2 = l_Lean_Meta_isTypeCorrect___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; @@ -21574,7 +36368,7 @@ else lean_object* x_126; lean_dec(x_8); lean_dec(x_2); -x_126 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_13); +x_126 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_13); lean_dec(x_5); return x_126; } @@ -21635,7 +36429,7 @@ lean_object* x_27; lean_object* x_28; x_27 = lean_ctor_get(x_17, 1); lean_inc(x_27); lean_dec(x_17); -x_28 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_27); +x_28 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_27); lean_dec(x_5); return x_28; } @@ -21668,7 +36462,7 @@ if (x_35 == 0) lean_object* x_36; lean_dec(x_12); lean_dec(x_5); -x_36 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign(x_1, x_32, x_6, x_33); +x_36 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_1, x_32, x_6, x_33); return x_36; } else @@ -21714,7 +36508,7 @@ else { lean_object* x_47; lean_free_object(x_37); -x_47 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_41); +x_47 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_41); lean_dec(x_5); return x_47; } @@ -21770,7 +36564,7 @@ lean_object* x_60; lean_object* x_61; x_60 = lean_ctor_get(x_49, 1); lean_inc(x_60); lean_dec(x_49); -x_61 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_60); +x_61 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_60); lean_dec(x_5); return x_61; } @@ -21784,7 +36578,7 @@ lean_dec(x_49); lean_inc(x_1); x_63 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_63, 0, x_1); -x_64 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; +x_64 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; x_65 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_65, 0, x_63); lean_ctor_set(x_65, 1, x_64); @@ -21832,7 +36626,7 @@ lean_object* x_77; lean_object* x_78; x_77 = lean_ctor_get(x_68, 1); lean_inc(x_77); lean_dec(x_68); -x_78 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_77); +x_78 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_77); lean_dec(x_5); return x_78; } @@ -21869,7 +36663,7 @@ return x_84; else { lean_object* x_85; -x_85 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_79); +x_85 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_79); lean_dec(x_5); return x_85; } @@ -21920,7 +36714,7 @@ lean_object* x_95; lean_object* x_96; x_95 = lean_ctor_get(x_87, 1); lean_inc(x_95); lean_dec(x_87); -x_96 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_95); +x_96 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_95); lean_dec(x_5); return x_96; } @@ -21934,7 +36728,7 @@ lean_dec(x_87); lean_inc(x_1); x_98 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_98, 0, x_1); -x_99 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; +x_99 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; x_100 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_100, 0, x_98); lean_ctor_set(x_100, 1, x_99); @@ -21978,7 +36772,7 @@ lean_object* x_109; lean_object* x_110; x_109 = lean_ctor_get(x_103, 1); lean_inc(x_109); lean_dec(x_103); -x_110 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_109); +x_110 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_5, x_12, x_6, x_109); lean_dec(x_5); return x_110; } @@ -21994,7 +36788,7 @@ lean_dec(x_5); x_111 = lean_ctor_get(x_37, 1); lean_inc(x_111); lean_dec(x_37); -x_112 = l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign(x_1, x_32, x_6, x_111); +x_112 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign(x_1, x_32, x_6, x_111); return x_112; } } @@ -22068,7 +36862,7 @@ x_132 = lean_ctor_get(x_6, 0); lean_inc(x_132); x_133 = lean_array_fget(x_5, x_4); lean_inc(x_6); -x_134 = l___private_Init_Lean_Meta_ExprDefEq_16__simpAssignmentArg(x_133, x_6, x_7); +x_134 = l___private_Init_Lean_Meta_ExprDefEq_17__simpAssignmentArg(x_133, x_6, x_7); 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; @@ -22089,61 +36883,61 @@ lean_inc(x_5); x_138 = lean_array_fset(x_5, x_4, x_135); if (lean_obj_tag(x_135) == 1) { -lean_object* x_156; lean_object* x_157; uint8_t x_158; -x_156 = lean_ctor_get(x_135, 0); -lean_inc(x_156); -x_157 = lean_array_get_size(x_138); -x_158 = lean_nat_dec_le(x_4, x_157); -if (x_158 == 0) +lean_object* x_178; lean_object* x_179; uint8_t x_180; +x_178 = lean_ctor_get(x_135, 0); +lean_inc(x_178); +x_179 = lean_array_get_size(x_138); +x_180 = lean_nat_dec_le(x_4, x_179); +if (x_180 == 0) { -lean_object* x_159; uint8_t x_160; -x_159 = lean_unsigned_to_nat(0u); -x_160 = l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___spec__2(x_4, x_5, lean_box(0), x_135, x_138, x_157, x_159); +lean_object* x_181; uint8_t x_182; +x_181 = lean_unsigned_to_nat(0u); +x_182 = l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___spec__2(x_4, x_5, lean_box(0), x_135, x_138, x_179, x_181); +lean_dec(x_179); lean_dec(x_135); lean_dec(x_5); -if (x_160 == 0) +if (x_182 == 0) { -lean_object* x_161; uint8_t x_162; -lean_dec(x_157); -x_161 = lean_ctor_get(x_2, 1); -lean_inc(x_161); -x_162 = l_Lean_LocalContext_contains(x_161, x_156); -lean_dec(x_156); -if (x_162 == 0) +lean_object* x_183; uint8_t x_184; +x_183 = lean_ctor_get(x_2, 1); +lean_inc(x_183); +x_184 = l_Lean_LocalContext_contains(x_183, x_178); +lean_dec(x_178); +if (x_184 == 0) { -lean_object* x_163; lean_object* x_164; +lean_object* x_185; lean_object* x_186; lean_dec(x_137); lean_dec(x_132); -x_163 = lean_unsigned_to_nat(1u); -x_164 = lean_nat_add(x_4, x_163); +x_185 = lean_unsigned_to_nat(1u); +x_186 = lean_nat_add(x_4, x_185); lean_dec(x_4); -x_4 = x_164; +x_4 = x_186; x_5 = x_138; x_7 = x_136; goto _start; } else { -uint8_t x_166; -x_166 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 2); -if (x_166 == 0) +uint8_t x_188; +x_188 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 2); +if (x_188 == 0) { -lean_object* x_167; +lean_object* x_189; lean_dec(x_4); lean_dec(x_2); -x_167 = lean_box(0); -x_139 = x_167; -goto block_155; +x_189 = lean_box(0); +x_139 = x_189; +goto block_177; } else { -lean_object* x_168; lean_object* x_169; +lean_object* x_190; lean_object* x_191; lean_dec(x_137); lean_dec(x_132); -x_168 = lean_unsigned_to_nat(1u); -x_169 = lean_nat_add(x_4, x_168); +x_190 = lean_unsigned_to_nat(1u); +x_191 = lean_nat_add(x_4, x_190); lean_dec(x_4); -x_4 = x_169; +x_4 = x_191; x_5 = x_138; x_7 = x_136; goto _start; @@ -22152,297 +36946,275 @@ goto _start; } else { -uint8_t x_171; -lean_dec(x_156); -lean_dec(x_137); +lean_object* x_193; +lean_dec(x_178); lean_dec(x_4); lean_dec(x_2); -x_171 = lean_ctor_get_uint8(x_132, sizeof(void*)*1); -if (x_171 == 0) -{ -uint8_t x_172; -lean_dec(x_138); -x_172 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 3); -lean_dec(x_132); -if (x_172 == 0) -{ -uint8_t x_173; lean_object* x_174; lean_object* x_175; -lean_dec(x_157); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_1); -x_173 = 0; -x_174 = lean_box(x_173); -x_175 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_175, 0, x_174); -lean_ctor_set(x_175, 1, x_136); -return x_175; -} -else -{ -lean_object* x_176; -x_176 = l___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox(x_1, x_157, x_3, x_6, x_136); -return x_176; +x_193 = lean_box(0); +x_139 = x_193; +goto block_177; } } else { -uint8_t x_177; -x_177 = l_Lean_Expr_isApp(x_3); -if (x_177 == 0) -{ -uint8_t x_178; -lean_dec(x_138); -x_178 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 3); -lean_dec(x_132); -if (x_178 == 0) -{ -uint8_t x_179; lean_object* x_180; lean_object* x_181; -lean_dec(x_157); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_1); -x_179 = 0; -x_180 = lean_box(x_179); -x_181 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_181, 0, x_180); -lean_ctor_set(x_181, 1, x_136); -return x_181; -} -else -{ -lean_object* x_182; -x_182 = l___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox(x_1, x_157, x_3, x_6, x_136); -return x_182; -} -} -else -{ -lean_object* x_183; -lean_dec(x_157); -lean_dec(x_132); -x_183 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_138, x_3, x_6, x_136); -lean_dec(x_138); -return x_183; -} -} -} -} -else -{ -lean_object* x_184; uint8_t x_185; -x_184 = lean_unsigned_to_nat(0u); -x_185 = l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___spec__3(x_4, x_5, lean_box(0), x_135, lean_box(0), x_138, x_4, x_184); +lean_object* x_194; uint8_t x_195; +lean_dec(x_179); +x_194 = lean_unsigned_to_nat(0u); +x_195 = l_Array_anyRangeMAux___main___at___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___spec__3(x_4, x_5, lean_box(0), x_135, lean_box(0), x_138, x_4, x_194); lean_dec(x_135); lean_dec(x_5); -if (x_185 == 0) +if (x_195 == 0) { -lean_object* x_186; uint8_t x_187; -lean_dec(x_157); -x_186 = lean_ctor_get(x_2, 1); -lean_inc(x_186); -x_187 = l_Lean_LocalContext_contains(x_186, x_156); -lean_dec(x_156); -if (x_187 == 0) -{ -lean_object* x_188; lean_object* x_189; -lean_dec(x_137); -lean_dec(x_132); -x_188 = lean_unsigned_to_nat(1u); -x_189 = lean_nat_add(x_4, x_188); -lean_dec(x_4); -x_4 = x_189; -x_5 = x_138; -x_7 = x_136; -goto _start; -} -else -{ -uint8_t x_191; -x_191 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 2); -if (x_191 == 0) -{ -lean_object* x_192; -lean_dec(x_4); -lean_dec(x_2); -x_192 = lean_box(0); -x_139 = x_192; -goto block_155; -} -else -{ -lean_object* x_193; lean_object* x_194; -lean_dec(x_137); -lean_dec(x_132); -x_193 = lean_unsigned_to_nat(1u); -x_194 = lean_nat_add(x_4, x_193); -lean_dec(x_4); -x_4 = x_194; -x_5 = x_138; -x_7 = x_136; -goto _start; -} -} -} -else -{ -uint8_t x_196; -lean_dec(x_156); -lean_dec(x_137); -lean_dec(x_4); -lean_dec(x_2); -x_196 = lean_ctor_get_uint8(x_132, sizeof(void*)*1); -if (x_196 == 0) -{ -uint8_t x_197; -lean_dec(x_138); -x_197 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 3); -lean_dec(x_132); +lean_object* x_196; uint8_t x_197; +x_196 = lean_ctor_get(x_2, 1); +lean_inc(x_196); +x_197 = l_Lean_LocalContext_contains(x_196, x_178); +lean_dec(x_178); if (x_197 == 0) { -uint8_t x_198; lean_object* x_199; lean_object* x_200; -lean_dec(x_157); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_1); -x_198 = 0; -x_199 = lean_box(x_198); -x_200 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_200, 0, x_199); -lean_ctor_set(x_200, 1, x_136); -return x_200; -} -else -{ -lean_object* x_201; -x_201 = l___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox(x_1, x_157, x_3, x_6, x_136); -return x_201; -} -} -else -{ -uint8_t x_202; -x_202 = l_Lean_Expr_isApp(x_3); -if (x_202 == 0) -{ -uint8_t x_203; -lean_dec(x_138); -x_203 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 3); +lean_object* x_198; lean_object* x_199; +lean_dec(x_137); lean_dec(x_132); -if (x_203 == 0) -{ -uint8_t x_204; lean_object* x_205; lean_object* x_206; -lean_dec(x_157); -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_1); -x_204 = 0; -x_205 = lean_box(x_204); -x_206 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_206, 0, x_205); -lean_ctor_set(x_206, 1, x_136); -return x_206; +x_198 = lean_unsigned_to_nat(1u); +x_199 = lean_nat_add(x_4, x_198); +lean_dec(x_4); +x_4 = x_199; +x_5 = x_138; +x_7 = x_136; +goto _start; } else { -lean_object* x_207; -x_207 = l___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox(x_1, x_157, x_3, x_6, x_136); -return x_207; -} +uint8_t x_201; +x_201 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 2); +if (x_201 == 0) +{ +lean_object* x_202; +lean_dec(x_4); +lean_dec(x_2); +x_202 = lean_box(0); +x_139 = x_202; +goto block_177; } else { -lean_object* x_208; -lean_dec(x_157); +lean_object* x_203; lean_object* x_204; +lean_dec(x_137); lean_dec(x_132); -x_208 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_138, x_3, x_6, x_136); -lean_dec(x_138); -return x_208; -} -} +x_203 = lean_unsigned_to_nat(1u); +x_204 = lean_nat_add(x_4, x_203); +lean_dec(x_4); +x_4 = x_204; +x_5 = x_138; +x_7 = x_136; +goto _start; } } } else { -uint8_t x_209; +lean_object* x_206; +lean_dec(x_178); +lean_dec(x_4); +lean_dec(x_2); +x_206 = lean_box(0); +x_139 = x_206; +goto block_177; +} +} +} +else +{ +uint8_t x_207; lean_dec(x_137); lean_dec(x_135); lean_dec(x_5); lean_dec(x_4); lean_dec(x_2); -x_209 = lean_ctor_get_uint8(x_132, sizeof(void*)*1); -if (x_209 == 0) +x_207 = lean_ctor_get_uint8(x_132, sizeof(void*)*1); +if (x_207 == 0) { -uint8_t x_210; -x_210 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 3); +uint8_t x_208; +x_208 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 3); lean_dec(x_132); -if (x_210 == 0) +if (x_208 == 0) { -uint8_t x_211; lean_object* x_212; lean_object* x_213; +uint8_t x_209; lean_object* x_210; lean_object* x_211; lean_dec(x_138); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_211 = 0; -x_212 = lean_box(x_211); -x_213 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_213, 0, x_212); -lean_ctor_set(x_213, 1, x_136); +x_209 = 0; +x_210 = lean_box(x_209); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_210); +lean_ctor_set(x_211, 1, x_136); +return x_211; +} +else +{ +lean_object* x_212; lean_object* x_213; +x_212 = lean_array_get_size(x_138); +lean_dec(x_138); +x_213 = l___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox(x_1, x_212, x_3, x_6, x_136); return x_213; } -else -{ -lean_object* x_214; lean_object* x_215; -x_214 = lean_array_get_size(x_138); -lean_dec(x_138); -x_215 = l___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox(x_1, x_214, x_3, x_6, x_136); -return x_215; -} } else { -uint8_t x_216; -x_216 = l_Lean_Expr_isApp(x_3); -if (x_216 == 0) +uint8_t x_214; +x_214 = l_Lean_Expr_isApp(x_3); +if (x_214 == 0) { -uint8_t x_217; -x_217 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 3); +uint8_t x_215; +x_215 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 3); lean_dec(x_132); -if (x_217 == 0) +if (x_215 == 0) { -uint8_t x_218; lean_object* x_219; lean_object* x_220; +uint8_t x_216; lean_object* x_217; lean_object* x_218; lean_dec(x_138); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_218 = 0; -x_219 = lean_box(x_218); -x_220 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_220, 0, x_219); -lean_ctor_set(x_220, 1, x_136); +x_216 = 0; +x_217 = lean_box(x_216); +x_218 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_218, 0, x_217); +lean_ctor_set(x_218, 1, x_136); +return x_218; +} +else +{ +lean_object* x_219; lean_object* x_220; +x_219 = lean_array_get_size(x_138); +lean_dec(x_138); +x_220 = l___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox(x_1, x_219, x_3, x_6, x_136); return x_220; } -else -{ -lean_object* x_221; lean_object* x_222; -x_221 = lean_array_get_size(x_138); -lean_dec(x_138); -x_222 = l___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox(x_1, x_221, x_3, x_6, x_136); -return x_222; -} } else { -lean_object* x_223; +lean_object* x_221; +lean_inc(x_6); +lean_inc(x_3); +lean_inc(x_1); +x_221 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_138, x_3, x_6, x_136); +if (lean_obj_tag(x_221) == 0) +{ +lean_object* x_222; uint8_t x_223; +x_222 = lean_ctor_get(x_221, 0); +lean_inc(x_222); +x_223 = lean_unbox(x_222); +if (x_223 == 0) +{ +uint8_t x_224; +lean_dec(x_222); +x_224 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 3); lean_dec(x_132); -x_223 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_138, x_3, x_6, x_136); +if (x_224 == 0) +{ +uint8_t x_225; lean_dec(x_138); -return x_223; +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_225 = !lean_is_exclusive(x_221); +if (x_225 == 0) +{ +lean_object* x_226; uint8_t x_227; lean_object* x_228; +x_226 = lean_ctor_get(x_221, 0); +lean_dec(x_226); +x_227 = 0; +x_228 = lean_box(x_227); +lean_ctor_set(x_221, 0, x_228); +return x_221; +} +else +{ +lean_object* x_229; uint8_t x_230; lean_object* x_231; lean_object* x_232; +x_229 = lean_ctor_get(x_221, 1); +lean_inc(x_229); +lean_dec(x_221); +x_230 = 0; +x_231 = lean_box(x_230); +x_232 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_232, 0, x_231); +lean_ctor_set(x_232, 1, x_229); +return x_232; +} +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = lean_ctor_get(x_221, 1); +lean_inc(x_233); +lean_dec(x_221); +x_234 = lean_array_get_size(x_138); +lean_dec(x_138); +x_235 = l___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox(x_1, x_234, x_3, x_6, x_233); +return x_235; +} +} +else +{ +uint8_t x_236; +lean_dec(x_138); +lean_dec(x_132); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_236 = !lean_is_exclusive(x_221); +if (x_236 == 0) +{ +lean_object* x_237; +x_237 = lean_ctor_get(x_221, 0); +lean_dec(x_237); +return x_221; +} +else +{ +lean_object* x_238; lean_object* x_239; +x_238 = lean_ctor_get(x_221, 1); +lean_inc(x_238); +lean_dec(x_221); +x_239 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_239, 0, x_222); +lean_ctor_set(x_239, 1, x_238); +return x_239; } } } -block_155: +else +{ +uint8_t x_240; +lean_dec(x_138); +lean_dec(x_132); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_240 = !lean_is_exclusive(x_221); +if (x_240 == 0) +{ +return x_221; +} +else +{ +lean_object* x_241; lean_object* x_242; lean_object* x_243; +x_241 = lean_ctor_get(x_221, 0); +x_242 = lean_ctor_get(x_221, 1); +lean_inc(x_242); +lean_inc(x_241); +lean_dec(x_221); +x_243 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_243, 0, x_241); +lean_ctor_set(x_243, 1, x_242); +return x_243; +} +} +} +} +} +block_177: { uint8_t x_140; lean_dec(x_139); @@ -22521,17 +37293,129 @@ else { lean_object* x_154; lean_dec(x_137); +lean_inc(x_6); +lean_inc(x_3); +lean_inc(x_1); +x_154 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main(x_1, x_138, x_3, x_6, x_136); +if (lean_obj_tag(x_154) == 0) +{ +lean_object* x_155; uint8_t x_156; +x_155 = lean_ctor_get(x_154, 0); +lean_inc(x_155); +x_156 = lean_unbox(x_155); +if (x_156 == 0) +{ +uint8_t x_157; +lean_dec(x_155); +x_157 = lean_ctor_get_uint8(x_132, sizeof(void*)*1 + 3); lean_dec(x_132); -x_154 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main(x_1, x_138, x_3, x_6, x_136); +if (x_157 == 0) +{ +uint8_t x_158; lean_dec(x_138); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_158 = !lean_is_exclusive(x_154); +if (x_158 == 0) +{ +lean_object* x_159; uint8_t x_160; lean_object* x_161; +x_159 = lean_ctor_get(x_154, 0); +lean_dec(x_159); +x_160 = 0; +x_161 = lean_box(x_160); +lean_ctor_set(x_154, 0, x_161); return x_154; } +else +{ +lean_object* x_162; uint8_t x_163; lean_object* x_164; lean_object* x_165; +x_162 = lean_ctor_get(x_154, 1); +lean_inc(x_162); +lean_dec(x_154); +x_163 = 0; +x_164 = lean_box(x_163); +x_165 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_165, 0, x_164); +lean_ctor_set(x_165, 1, x_162); +return x_165; +} +} +else +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; +x_166 = lean_ctor_get(x_154, 1); +lean_inc(x_166); +lean_dec(x_154); +x_167 = lean_array_get_size(x_138); +lean_dec(x_138); +x_168 = l___private_Init_Lean_Meta_ExprDefEq_18__processConstApprox(x_1, x_167, x_3, x_6, x_166); +return x_168; +} +} +else +{ +uint8_t x_169; +lean_dec(x_138); +lean_dec(x_132); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_169 = !lean_is_exclusive(x_154); +if (x_169 == 0) +{ +lean_object* x_170; +x_170 = lean_ctor_get(x_154, 0); +lean_dec(x_170); +return x_154; +} +else +{ +lean_object* x_171; lean_object* x_172; +x_171 = lean_ctor_get(x_154, 1); +lean_inc(x_171); +lean_dec(x_154); +x_172 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_172, 0, x_155); +lean_ctor_set(x_172, 1, x_171); +return x_172; +} +} +} +else +{ +uint8_t x_173; +lean_dec(x_138); +lean_dec(x_132); +lean_dec(x_6); +lean_dec(x_3); +lean_dec(x_1); +x_173 = !lean_is_exclusive(x_154); +if (x_173 == 0) +{ +return x_154; +} +else +{ +lean_object* x_174; lean_object* x_175; lean_object* x_176; +x_174 = lean_ctor_get(x_154, 0); +x_175 = lean_ctor_get(x_154, 1); +lean_inc(x_175); +lean_inc(x_174); +lean_dec(x_154); +x_176 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_176, 0, x_174); +lean_ctor_set(x_176, 1, x_175); +return x_176; +} +} +} } } } else { -uint8_t x_224; +uint8_t x_244; lean_dec(x_132); lean_dec(x_6); lean_dec(x_5); @@ -22539,23 +37423,23 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_224 = !lean_is_exclusive(x_134); -if (x_224 == 0) +x_244 = !lean_is_exclusive(x_134); +if (x_244 == 0) { return x_134; } else { -lean_object* x_225; lean_object* x_226; lean_object* x_227; -x_225 = lean_ctor_get(x_134, 0); -x_226 = lean_ctor_get(x_134, 1); -lean_inc(x_226); -lean_inc(x_225); +lean_object* x_245; lean_object* x_246; lean_object* x_247; +x_245 = lean_ctor_get(x_134, 0); +x_246 = lean_ctor_get(x_134, 1); +lean_inc(x_246); +lean_inc(x_245); lean_dec(x_134); -x_227 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_227, 0, x_225); -lean_ctor_set(x_227, 1, x_226); -return x_227; +x_247 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_247, 0, x_245); +lean_ctor_set(x_247, 1, x_246); +return x_247; } } } @@ -22628,7 +37512,7 @@ goto block_304; else { lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; uint8_t x_312; -x_308 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; +x_308 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; x_309 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_308, x_3, x_4); x_310 = lean_ctor_get(x_309, 0); lean_inc(x_310); @@ -23685,7 +38569,7 @@ goto block_288; else { lean_object* x_291; lean_object* x_292; lean_object* x_293; uint8_t x_294; -x_291 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; +x_291 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; x_292 = l___private_Init_Lean_Util_Trace_5__checkTraceOptionM___at_Lean_Meta_check___spec__3(x_291, x_3, x_249); x_293 = lean_ctor_get(x_292, 0); lean_inc(x_293); @@ -23709,7 +38593,7 @@ lean_dec(x_292); lean_inc(x_1); x_297 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_297, 0, x_1); -x_298 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5; +x_298 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8; x_299 = lean_alloc_ctor(9, 2, 0); lean_ctor_set(x_299, 0, x_297); lean_ctor_set(x_299, 1, x_298); @@ -23760,7 +38644,7 @@ lean_inc(x_264); x_265 = lean_ctor_get(x_263, 1); lean_inc(x_265); lean_dec(x_263); -x_266 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; +x_266 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; x_267 = l___private_Init_Lean_Util_Trace_2__addNode___at_Lean_Meta_check___spec__2(x_248, x_266, x_3, x_265); lean_dec(x_3); x_268 = !lean_is_exclusive(x_267); @@ -23792,7 +38676,7 @@ lean_inc(x_272); x_273 = lean_ctor_get(x_263, 1); lean_inc(x_273); lean_dec(x_263); -x_274 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; +x_274 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; x_275 = l___private_Init_Lean_Util_Trace_2__addNode___at_Lean_Meta_check___spec__2(x_248, x_274, x_3, x_273); lean_dec(x_3); x_276 = !lean_is_exclusive(x_275); @@ -23829,7 +38713,7 @@ lean_inc(x_280); x_281 = lean_ctor_get(x_253, 1); lean_inc(x_281); lean_dec(x_253); -x_282 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; +x_282 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; x_283 = l___private_Init_Lean_Util_Trace_2__addNode___at_Lean_Meta_check___spec__2(x_248, x_282, x_3, x_281); lean_dec(x_3); x_284 = !lean_is_exclusive(x_283); @@ -35911,7 +50795,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; x_4 = lean_ctor_get(x_3, 1); lean_inc(x_4); lean_dec(x_3); -x_5 = l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__2; +x_5 = l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__2; x_6 = l_Lean_registerTraceClass(x_5, x_4); if (lean_obj_tag(x_6) == 0) { @@ -35935,7 +50819,7 @@ lean_object* x_13; lean_object* x_14; lean_object* x_15; x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec(x_12); -x_14 = l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2; +x_14 = l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2; x_15 = l_Lean_registerTraceClass(x_14, x_13); return x_15; } @@ -36067,6 +50951,22 @@ if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___spec__1___closed__1 = _init_l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___spec__1___closed__1(); lean_mark_persistent(l_Lean_Meta_try___at___private_Init_Lean_Meta_ExprDefEq_1__isDefEqEta___spec__1___closed__1); +l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__1 = _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__1); +l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2 = _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__2); +l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__3 = _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__3); +l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__4 = _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__4); +l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__5 = _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__5); +l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6 = _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__6); +l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7 = _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__7); +l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8 = _init_l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_7__checkTypesAndAssign___closed__8); l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__1 = _init_l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__1(); lean_mark_persistent(l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__1); l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__2 = _init_l_Lean_Meta_CheckAssignment_Lean_MonadCache___closed__2(); @@ -36077,46 +50977,30 @@ l_Lean_Meta_CheckAssignment_Lean_MonadCache = _init_l_Lean_Meta_CheckAssignment_ lean_mark_persistent(l_Lean_Meta_CheckAssignment_Lean_MonadCache); l_Lean_Meta_CheckAssignment_check___main___closed__1 = _init_l_Lean_Meta_CheckAssignment_check___main___closed__1(); lean_mark_persistent(l_Lean_Meta_CheckAssignment_check___main___closed__1); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__1 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__1); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__2); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__3 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__3); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__4 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__4); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__5); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__6 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__6(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__6); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__7 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__7(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__7); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__8 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__8(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__8); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__9 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__9(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__9); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__10 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__10(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__10); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__11 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__11(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__11); -l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__12 = _init_l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__12(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_10__checkAssignmentFailure___closed__12); -l_Lean_Meta_checkAssignment___closed__1 = _init_l_Lean_Meta_checkAssignment___closed__1(); -lean_mark_persistent(l_Lean_Meta_checkAssignment___closed__1); -l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__1 = _init_l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__1); -l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__2 = _init_l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_14__processAssignmentFOApprox___main___closed__2); -l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__1 = _init_l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__1(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__1); -l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__2 = _init_l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__2(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__2); -l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__3 = _init_l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__3); -l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4 = _init_l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__4); -l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5 = _init_l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5(); -lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_17__checkTypesAndAssign___closed__5); +l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__1 = _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__1); +l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__2 = _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__2); +l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__3 = _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__3); +l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__4 = _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__4); +l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__5 = _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__5(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__5); +l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__6 = _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__6(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__6); +l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__7 = _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__7(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__7); +l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__8 = _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__8(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__8); +l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__9 = _init_l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__9(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_11__checkAssignmentFailure___closed__9); +l_Lean_Meta_checkAssignmentAux___closed__1 = _init_l_Lean_Meta_checkAssignmentAux___closed__1(); +lean_mark_persistent(l_Lean_Meta_checkAssignmentAux___closed__1); +l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__1 = _init_l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__1); +l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__2 = _init_l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_15__processAssignmentFOApprox___main___closed__2); l___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___closed__1 = _init_l___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___closed__1(); lean_mark_persistent(l___private_Init_Lean_Meta_ExprDefEq_19__processAssignmentAux___main___closed__1); l___private_Init_Lean_Meta_ExprDefEq_23__isDefEqLeft___closed__1 = _init_l___private_Init_Lean_Meta_ExprDefEq_23__isDefEqLeft___closed__1(); diff --git a/stage0/stdlib/Init/Lean/Parser/Command.c b/stage0/stdlib/Init/Lean/Parser/Command.c index de4a381626..356cf9a1bb 100644 --- a/stage0/stdlib/Init/Lean/Parser/Command.c +++ b/stage0/stdlib/Init/Lean/Parser/Command.c @@ -240,7 +240,6 @@ lean_object* l_Lean_Parser_tokenFn(lean_object*, lean_object*); lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Command_attributes___elambda__1___spec__1(uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_init__quot___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_stxQuot___elambda__1___closed__1; -extern lean_object* l_Lean_Parser_Term_listLit___closed__4; lean_object* l_Lean_Parser_Command_section___elambda__1___closed__8; lean_object* l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(lean_object*); lean_object* l_Lean_Parser_Command_declModifiers___closed__13; @@ -250,7 +249,6 @@ lean_object* l_Lean_Parser_Command_commentBody___closed__1; lean_object* l_Lean_Parser_Command_attribute___closed__12; lean_object* l_Lean_Parser_Command_export___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_extends; -extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_init__quot___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__13; @@ -474,6 +472,7 @@ lean_object* l_Lean_Parser_Command_namespace___elambda__1(lean_object*, lean_obj lean_object* l_Lean_Parser_Command_section___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_attrArg; lean_object* l_Lean_Parser_Command_variables___closed__4; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__1; lean_object* l_Lean_Parser_Command_protected___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__15; lean_object* l_Lean_Parser_Command_openSimple___closed__3; @@ -688,7 +687,6 @@ lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__5; extern lean_object* l_Lean_Parser_Term_letIdLhs___closed__1; lean_object* l_Lean_Parser_Command_init__quot___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_optType___elambda__1(lean_object*, lean_object*); -extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_stxQuot___closed__3; lean_object* l_Lean_Parser_Command_synth___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_declValEqns___elambda__1___closed__1; @@ -748,6 +746,7 @@ lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__4; extern lean_object* l_Lean_Parser_numLit; lean_object* l_Lean_Parser_Command_noncomputable___closed__1; lean_object* l_Lean_Parser_Command_openRenamingItem___closed__5; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__2; lean_object* l_Lean_Parser_Command_universe___elambda__1___closed__8; lean_object* l_Lean_Parser_Command_noncomputable___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_resolve__name___elambda__1___closed__5; @@ -763,7 +762,6 @@ lean_object* l_Lean_Parser_numLit___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_abbrev___closed__1; lean_object* l_Lean_Parser_Command_open___closed__1; lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__1; -extern lean_object* l_Lean_Parser_Term_instBinder___closed__1; lean_object* l_Lean_Parser_Command_structImplicitBinder; lean_object* l_Lean_Parser_Command_partial___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_set__option___closed__8; @@ -790,11 +788,11 @@ lean_object* l_Lean_Parser_Command_set__option___elambda__1___closed__13; lean_object* l_Lean_Parser_Command_axiom___elambda__1___closed__2; lean_object* l_Lean_Parser_Command_structCtor___closed__5; extern lean_object* l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__2; -extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_docComment___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_private___closed__4; lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_openHiding___elambda__1___closed__5; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_resolve__name___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_private___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_declModifiers___elambda__1(lean_object*, lean_object*); @@ -889,6 +887,7 @@ lean_object* l_Lean_Parser_Command_openOnly___closed__2; extern lean_object* l_Lean_Parser_unicodeSymbolFn___closed__1; lean_object* l_Lean_Parser_Term_stxQuot___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_structureTk___elambda__1___closed__4; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_section___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_openRenamingItem___elambda__1___closed__12; lean_object* l_Lean_Parser_Command_structImplicitBinder___elambda__1___closed__4; @@ -1031,6 +1030,7 @@ lean_object* l_Lean_Parser_Term_stxQuot___closed__1; lean_object* l_Lean_Parser_Command_partial___elambda__1___closed__2; lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__14; lean_object* l_Lean_Parser_Command_attrArg___closed__3; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; lean_object* l_Lean_Parser_Command_export___elambda__1___closed__6; lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Command_structExplicitBinder___elambda__1___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_def___closed__4; @@ -1095,6 +1095,7 @@ lean_object* l_Lean_Parser_Command_declId___closed__6; lean_object* l_Lean_Parser_Command_structExplicitBinder___closed__7; lean_object* l_Lean_Parser_Command_universe; lean_object* l_Lean_Parser_Command_constant___elambda__1___closed__9; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_object* l_Lean_Parser_Command_resolve__name___closed__4; lean_object* l_Lean_Parser_Command_structInstBinder___closed__7; lean_object* l_Lean_Parser_Term_stxQuot___closed__4; @@ -1134,7 +1135,6 @@ lean_object* l_Lean_Parser_Command_declValEqns; lean_object* l_Lean_Parser_Command_declModifiers___closed__9; lean_object* l_Lean_Parser_Command_declaration___closed__14; lean_object* l_Lean_Parser_Command_example___closed__1; -extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__6; extern lean_object* l_Lean_Parser_Level_paren___closed__1; lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__3; lean_object* l___regBuiltinParser_Lean_Parser_Command_synth(lean_object*); @@ -3125,13 +3125,13 @@ lean_object* x_26; lean_object* x_27; uint8_t x_28; x_26 = lean_ctor_get(x_25, 1); lean_inc(x_26); lean_dec(x_25); -x_27 = l_Lean_Parser_Term_listLit___elambda__1___closed__6; +x_27 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; x_28 = lean_string_dec_eq(x_26, x_27); lean_dec(x_26); if (x_28 == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_29 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_29 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_30 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_29, x_21); x_31 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_15); @@ -3154,7 +3154,7 @@ else { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_dec(x_25); -x_37 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_37 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_38 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_37, x_21); x_39 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; x_40 = l_Lean_Parser_ParserState_mkNode(x_38, x_39, x_15); @@ -3167,7 +3167,7 @@ else { lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_dec(x_23); -x_42 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_42 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_43 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_42, x_21); x_44 = l_Lean_Parser_Command_attributes___elambda__1___closed__2; x_45 = l_Lean_Parser_ParserState_mkNode(x_43, x_44, x_15); @@ -3231,7 +3231,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Command_attributes___closed__2; -x_2 = l_Lean_Parser_Term_listLit___closed__4; +x_2 = l_Lean_Parser_Term_structInstArrayRef___closed__2; x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; } @@ -12872,13 +12872,13 @@ lean_object* x_83; lean_object* x_84; uint8_t x_85; x_83 = lean_ctor_get(x_82, 1); lean_inc(x_83); lean_dec(x_82); -x_84 = l_Lean_Parser_Term_listLit___elambda__1___closed__5; +x_84 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; x_85 = lean_string_dec_eq(x_83, x_84); lean_dec(x_83); if (x_85 == 0) { lean_object* x_86; lean_object* x_87; -x_86 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_86 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_7); x_87 = l_Lean_Parser_ParserState_mkErrorsAt(x_79, x_86, x_7); x_53 = x_87; @@ -12894,7 +12894,7 @@ else { lean_object* x_88; lean_object* x_89; lean_dec(x_82); -x_88 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_88 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_7); x_89 = l_Lean_Parser_ParserState_mkErrorsAt(x_79, x_88, x_7); x_53 = x_89; @@ -12905,7 +12905,7 @@ else { lean_object* x_90; lean_object* x_91; lean_dec(x_80); -x_90 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_90 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_7); x_91 = l_Lean_Parser_ParserState_mkErrorsAt(x_79, x_90, x_7); x_53 = x_91; @@ -12944,13 +12944,13 @@ lean_object* x_25; lean_object* x_26; uint8_t x_27; x_25 = lean_ctor_get(x_24, 1); lean_inc(x_25); lean_dec(x_24); -x_26 = l_Lean_Parser_Term_listLit___elambda__1___closed__6; +x_26 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; x_27 = lean_string_dec_eq(x_25, x_26); lean_dec(x_25); if (x_27 == 0) { lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_28 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_28 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_29 = l_Lean_Parser_ParserState_mkErrorsAt(x_21, x_28, x_20); x_30 = l_Lean_Parser_Command_structInstBinder___elambda__1___closed__2; x_31 = l_Lean_Parser_ParserState_mkNode(x_29, x_30, x_15); @@ -12973,7 +12973,7 @@ else { lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_dec(x_24); -x_36 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_36 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_37 = l_Lean_Parser_ParserState_mkErrorsAt(x_21, x_36, x_20); x_38 = l_Lean_Parser_Command_structInstBinder___elambda__1___closed__2; x_39 = l_Lean_Parser_ParserState_mkNode(x_37, x_38, x_15); @@ -12986,7 +12986,7 @@ else { lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_dec(x_22); -x_41 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_41 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_42 = l_Lean_Parser_ParserState_mkErrorsAt(x_21, x_41, x_20); x_43 = l_Lean_Parser_Command_structInstBinder___elambda__1___closed__2; x_44 = l_Lean_Parser_ParserState_mkNode(x_42, x_43, x_15); @@ -13119,7 +13119,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Command_optDeclSig; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_listLit___closed__4; +x_3 = l_Lean_Parser_Term_structInstArrayRef___closed__2; x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); return x_4; } @@ -13148,7 +13148,7 @@ lean_object* _init_l_Lean_Parser_Command_structInstBinder___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_instBinder___closed__1; +x_1 = l_Lean_Parser_Term_structInstArrayRef___closed__1; x_2 = l_Lean_Parser_Command_structInstBinder___closed__3; x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; @@ -20961,13 +20961,13 @@ lean_object* x_47; lean_object* x_48; uint8_t x_49; x_47 = lean_ctor_get(x_46, 1); lean_inc(x_47); lean_dec(x_46); -x_48 = l_Lean_Parser_Term_listLit___elambda__1___closed__6; +x_48 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; x_49 = lean_string_dec_eq(x_47, x_48); lean_dec(x_47); if (x_49 == 0) { lean_object* x_50; lean_object* x_51; -x_50 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_50 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_51 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_50, x_42); x_16 = x_51; goto block_36; @@ -20983,7 +20983,7 @@ else { lean_object* x_52; lean_object* x_53; lean_dec(x_46); -x_52 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_52 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_53 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_52, x_42); x_16 = x_53; goto block_36; @@ -20993,7 +20993,7 @@ else { lean_object* x_54; lean_object* x_55; lean_dec(x_44); -x_54 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_54 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_55 = l_Lean_Parser_ParserState_mkErrorsAt(x_43, x_54, x_42); x_16 = x_55; goto block_36; @@ -21050,13 +21050,13 @@ lean_object* x_70; lean_object* x_71; uint8_t x_72; x_70 = lean_ctor_get(x_69, 1); lean_inc(x_70); lean_dec(x_69); -x_71 = l_Lean_Parser_Term_listLit___elambda__1___closed__5; +x_71 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; x_72 = lean_string_dec_eq(x_70, x_71); lean_dec(x_70); if (x_72 == 0) { lean_object* x_73; lean_object* x_74; -x_73 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_73 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; x_74 = l_Lean_Parser_ParserState_mkErrorsAt(x_66, x_73, x_65); x_37 = x_74; goto block_62; @@ -21072,7 +21072,7 @@ else { lean_object* x_75; lean_object* x_76; lean_dec(x_69); -x_75 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_75 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; x_76 = l_Lean_Parser_ParserState_mkErrorsAt(x_66, x_75, x_65); x_37 = x_76; goto block_62; @@ -21082,7 +21082,7 @@ else { lean_object* x_77; lean_object* x_78; lean_dec(x_67); -x_77 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_77 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; x_78 = l_Lean_Parser_ParserState_mkErrorsAt(x_66, x_77, x_65); x_37 = x_78; goto block_62; @@ -21261,7 +21261,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_ident; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_listLit___closed__4; +x_3 = l_Lean_Parser_Term_structInstArrayRef___closed__2; x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); return x_4; } @@ -21280,7 +21280,7 @@ lean_object* _init_l_Lean_Parser_Command_attribute___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_instBinder___closed__1; +x_1 = l_Lean_Parser_Term_structInstArrayRef___closed__1; x_2 = l_Lean_Parser_Command_attribute___closed__5; x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; diff --git a/stage0/stdlib/Init/Lean/Parser/Syntax.c b/stage0/stdlib/Init/Lean/Parser/Syntax.c index 8eb3af6b07..97bc476217 100644 --- a/stage0/stdlib/Init/Lean/Parser/Syntax.c +++ b/stage0/stdlib/Init/Lean/Parser/Syntax.c @@ -142,12 +142,10 @@ lean_object* l_Lean_Parser_Command_infixr; lean_object* l_Lean_Parser_tokenFn(lean_object*, lean_object*); lean_object* l_Lean_Parser_Syntax_sepBy___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_infixr___elambda__1___closed__6; -extern lean_object* l_Lean_Parser_Term_listLit___closed__4; lean_object* l_Lean_Parser_Command_macroTailDefault___elambda__1(lean_object*, lean_object*); lean_object* l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(lean_object*); lean_object* l_Lean_Parser_maxPrec___elambda__1___closed__2; lean_object* l_Lean_Parser_Syntax_sepBy___elambda__1___closed__3; -extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__5; lean_object* l_Lean_Parser_Syntax_ident___elambda__1___closed__2; lean_object* l_Lean_Parser_Command_macro___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_macroHead___closed__1; @@ -300,6 +298,7 @@ lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1(lean_object*, lean_obj extern lean_object* l_Lean_Parser_Term_tacticStxQuot___closed__2; extern lean_object* l_Lean_Parser_Term_namedHole___elambda__1___closed__8; lean_object* l_Lean_Parser_Syntax_paren___closed__5; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__1; lean_object* l_Lean_Parser_Command_prefix___elambda__1___closed__3; lean_object* l_Lean_Parser_Syntax_optional___elambda__1___closed__1; lean_object* l_Lean_Parser_Syntax_paren___elambda__1___closed__4; @@ -404,7 +403,6 @@ extern lean_object* l_Lean_Parser_Tactic_orelse___elambda__1___closed__2; lean_object* l_Lean_Parser_Command_quotedSymbolPrec___closed__1; lean_object* l_Lean_Parser_Command_reserve___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Syntax_paren(lean_object*); -extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__12; lean_object* l_Lean_Parser_Command_notation___elambda__1___closed__2; lean_object* l_Lean_Parser_Syntax_char___elambda__1___closed__4; extern lean_object* l_Lean_Parser_Term_str___elambda__1___closed__1; @@ -433,6 +431,7 @@ lean_object* l_Lean_Parser_Syntax_sepBy___elambda__1___closed__5; lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1___closed__9; extern lean_object* l_Lean_Parser_numLit; lean_object* l_Lean_Parser_Syntax_num___elambda__1___closed__2; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__2; lean_object* l_Lean_Parser_Syntax_paren___closed__2; lean_object* l_Lean_Parser_Command_mixfixKind___elambda__1(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_haveAssign___closed__1; @@ -446,7 +445,6 @@ lean_object* l_Lean_Parser_Command_macro; lean_object* l_Lean_Parser_Command_syntax___closed__6; lean_object* l_Lean_Parser_Syntax_str___elambda__1___closed__2; lean_object* l_Lean_Parser_Syntax_lookahead___elambda__1___closed__2; -extern lean_object* l_Lean_Parser_Term_instBinder___closed__1; lean_object* l_Lean_Parser_Command_notation___elambda__1___closed__1; lean_object* l_Lean_Parser_precedence___closed__5; lean_object* l_Lean_Parser_Syntax_optional___closed__3; @@ -463,7 +461,7 @@ lean_object* l_Lean_Parser_Syntax_cat___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Command_reserve___closed__6; lean_object* l_Lean_Parser_Syntax_sepBy1___closed__1; extern lean_object* l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__2; -extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__9; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_syntaxCat___elambda__1___closed__4; lean_object* l_Lean_Parser_Command_quotedSymbolPrec___closed__2; lean_object* l_Lean_Parser_Command_mixfix___elambda__1___closed__3; @@ -524,6 +522,7 @@ lean_object* l_Lean_Parser_Command_quotedSymbolPrec___elambda__1___closed__4; lean_object* l_Lean_Parser_Syntax_sepBy1___closed__3; lean_object* l_Lean_Parser_Syntax_sepBy1___closed__5; lean_object* l_Lean_Parser_Command_notation___closed__9; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; lean_object* l_Lean_Parser_Syntax_lookahead___elambda__1___closed__7; lean_object* l_Lean_Parser_Command_macro___elambda__1___closed__4; lean_object* l_Lean_Parser_Syntax_atom___elambda__1___closed__3; @@ -598,6 +597,7 @@ lean_object* l_Lean_Parser_Command_infix___elambda__1___closed__3; lean_object* l_Lean_Parser_Command_macro__rules___closed__2; lean_object* l_Lean_Parser_Command_syntax___closed__9; lean_object* l_Lean_Parser_Command_macroTailDefault___closed__2; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; lean_object* l_Lean_Parser_Syntax_atom___closed__2; lean_object* l_Lean_Parser_precedence___closed__2; lean_object* l_Lean_Parser_Syntax_char___elambda__1(lean_object*, lean_object*); @@ -644,6 +644,7 @@ lean_object* l_Lean_Parser_Syntax_atom___closed__3; lean_object* l_Lean_Parser_Command_macroArgSimple___elambda__1___closed__5; extern lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__1; lean_object* l_Lean_Parser_Syntax_orelse___closed__4; +extern lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_object* l_Lean_Parser_Command_syntax___closed__8; lean_object* l_Lean_Parser_precedence___closed__4; lean_object* l_Lean_Parser_Command_prefix___elambda__1___closed__4; @@ -673,7 +674,6 @@ lean_object* l_Lean_Parser_Command_mixfix___closed__7; lean_object* l_Lean_Parser_Command_prefix___elambda__1___closed__1; lean_object* l_Lean_Parser_Command_syntaxCat___closed__2; lean_object* l_Lean_Parser_Command_macro___elambda__1___closed__6; -extern lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__6; lean_object* l_Lean_Parser_Command_macroTailCommand___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_maxPrec___closed__2; lean_object* l_Lean_Parser_optPrecedence___closed__1; @@ -7721,13 +7721,13 @@ lean_object* x_41; lean_object* x_42; uint8_t x_43; x_41 = lean_ctor_get(x_40, 1); lean_inc(x_41); lean_dec(x_40); -x_42 = l_Lean_Parser_Term_listLit___elambda__1___closed__5; +x_42 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; x_43 = lean_string_dec_eq(x_41, x_42); lean_dec(x_41); if (x_43 == 0) { lean_object* x_44; lean_object* x_45; -x_44 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_44 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_5); x_45 = l_Lean_Parser_ParserState_mkErrorsAt(x_37, x_44, x_5); x_18 = x_45; @@ -7743,7 +7743,7 @@ else { lean_object* x_46; lean_object* x_47; lean_dec(x_40); -x_46 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_46 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_5); x_47 = l_Lean_Parser_ParserState_mkErrorsAt(x_37, x_46, x_5); x_18 = x_47; @@ -7754,7 +7754,7 @@ else { lean_object* x_48; lean_object* x_49; lean_dec(x_38); -x_48 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_48 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_5); x_49 = l_Lean_Parser_ParserState_mkErrorsAt(x_37, x_48, x_5); x_18 = x_49; @@ -7832,13 +7832,13 @@ lean_object* x_27; lean_object* x_28; uint8_t x_29; x_27 = lean_ctor_get(x_26, 1); lean_inc(x_27); lean_dec(x_26); -x_28 = l_Lean_Parser_Term_listLit___elambda__1___closed__6; +x_28 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; x_29 = lean_string_dec_eq(x_27, x_28); lean_dec(x_27); if (x_29 == 0) { lean_object* x_30; lean_object* x_31; -x_30 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_30 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_31 = l_Lean_Parser_ParserState_mkErrorsAt(x_23, x_30, x_22); x_6 = x_31; goto block_17; @@ -7854,7 +7854,7 @@ else { lean_object* x_32; lean_object* x_33; lean_dec(x_26); -x_32 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_32 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_33 = l_Lean_Parser_ParserState_mkErrorsAt(x_23, x_32, x_22); x_6 = x_33; goto block_17; @@ -7864,7 +7864,7 @@ else { lean_object* x_34; lean_object* x_35; lean_dec(x_24); -x_34 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_34 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_35 = l_Lean_Parser_ParserState_mkErrorsAt(x_23, x_34, x_22); x_6 = x_35; goto block_17; @@ -7895,7 +7895,7 @@ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_ident; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_listLit___closed__4; +x_3 = l_Lean_Parser_Term_structInstArrayRef___closed__2; x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); return x_4; } @@ -7904,7 +7904,7 @@ lean_object* _init_l_Lean_Parser_Command_optKind___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_instBinder___closed__1; +x_1 = l_Lean_Parser_Term_structInstArrayRef___closed__1; x_2 = l_Lean_Parser_Command_optKind___closed__1; x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; diff --git a/stage0/stdlib/Init/Lean/Parser/Term.c b/stage0/stdlib/Init/Lean/Parser/Term.c index cecdaaf21d..1543fafd4a 100644 --- a/stage0/stdlib/Init/Lean/Parser/Term.c +++ b/stage0/stdlib/Init/Lean/Parser/Term.c @@ -27,7 +27,6 @@ lean_object* l_Lean_Parser_Term_doExpr___closed__1; lean_object* l_Lean_Parser_Term_matchAlt___closed__5; lean_object* l_Lean_Parser_Term_doPat___closed__7; lean_object* l_Lean_Parser_Term_iff___elambda__1___closed__1; -lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_not; extern lean_object* l_Lean_Name_toString___closed__1; lean_object* l_Lean_Parser_Term_letIdDecl; @@ -35,6 +34,7 @@ lean_object* l_Lean_Parser_Term_heq___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_parser_x21___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_matchAlts___closed__3; lean_object* l_Lean_Parser_Term_infixL___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_iff(lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_suffices(lean_object*); lean_object* l_Lean_Parser_Term_arrayLit___closed__3; @@ -130,6 +130,7 @@ lean_object* l_Lean_Parser_Term_inaccessible___closed__1; lean_object* l_Lean_Parser_Term_not___closed__6; lean_object* l_Lean_Parser_Term_matchAlts(uint8_t); lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__7; +lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__4; lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_lt___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_namedArgument___closed__7; @@ -212,6 +213,7 @@ lean_object* l_Lean_Parser_Term_div___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_if___closed__10; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_prop; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_seqLeft___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_hole___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__2; @@ -266,7 +268,6 @@ lean_object* l_Lean_Parser_Term_listLit___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_emptyC(lean_object*); lean_object* l_Lean_Parser_Term_quotedName___closed__3; extern lean_object* l_Lean_Parser_dollarSymbol___closed__1; -lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__10; extern lean_object* l_Lean_Parser_ident; lean_object* l_Lean_Parser_Term_seq___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_sortApp___closed__2; @@ -299,6 +300,7 @@ lean_object* l_Lean_Parser_darrow; lean_object* l_Lean_Parser_Term_arrow___closed__2; lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_uminus___elambda__1(lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_structInstLVal___closed__7; lean_object* l_Lean_Parser_Term_doPat___closed__2; lean_object* l_Lean_Parser_Term_heq___closed__2; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__1(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); @@ -311,6 +313,7 @@ lean_object* l_Lean_Parser_Term_liftMethod___elambda__1(lean_object*, lean_objec lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_namedArgument___closed__3; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_tupleTail___elambda__1___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__3; lean_object* l___regBuiltinParser_Lean_Parser_Term_do(lean_object*); lean_object* l_Lean_Parser_Term_num___elambda__1___closed__2; extern lean_object* l_Lean_Parser_Level_num___elambda__1___closed__1; @@ -382,7 +385,6 @@ lean_object* l_Lean_Parser_Term_id___closed__4; lean_object* l_Lean_Parser_Term_show___closed__6; lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_listLit___closed__4; -lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__7; lean_object* l_Lean_Parser_Term_hole___closed__5; lean_object* l_Lean_Parser_Term_gt___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__4; @@ -401,7 +403,6 @@ lean_object* l_Lean_Parser_Term_suffices___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_parenSpecial___closed__1; lean_object* l_Lean_Parser_Term_not___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_listLit___closed__9; -lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_show___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_tupleTail___elambda__1(lean_object*, lean_object*); @@ -428,7 +429,6 @@ lean_object* l_Lean_Parser_Term_heq___elambda__1___closed__3; 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* lean_string_utf8_byte_size(lean_object*); lean_object* l_Lean_Parser_Term_if; lean_object* l_Lean_Parser_Term_paren; @@ -450,6 +450,7 @@ lean_object* l_Lean_Parser_Term_eq___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doPat___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_liftMethod___closed__4; lean_object* l_Lean_Parser_Term_have___closed__7; +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__2; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_not___closed__2; @@ -474,6 +475,7 @@ lean_object* l_Lean_Parser_Term_borrowed; lean_object* l_Lean_Parser_Term_and___closed__1; lean_object* l_Lean_Parser_Term_paren___closed__7; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__17; +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1; lean_object* l_Lean_Parser_Term_namedArgument___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_anonymousCtor___closed__2; lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__6; @@ -516,6 +518,7 @@ lean_object* l_Lean_Parser_Term_div___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_sort___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_arrayLit___closed__6; lean_object* l_Lean_Parser_Term_str; +lean_object* l_Lean_Parser_Term_structInstLVal___closed__5; lean_object* l_Lean_Parser_Term_binderTactic___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_depArrow___closed__8; lean_object* l_Lean_Parser_Term_dollarProj___elambda__1___closed__3; @@ -566,6 +569,7 @@ lean_object* l_Lean_Parser_Term_dollarProj___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_tupleTail___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_hole___closed__4; lean_object* l_Lean_Parser_Term_cons___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_structInstLVal___closed__3; lean_object* l_Lean_Parser_Term_fun___closed__6; lean_object* l_Lean_Parser_Term_num___closed__2; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__5; @@ -578,6 +582,7 @@ lean_object* l_Lean_Parser_Term_sort___closed__1; extern lean_object* l_Lean_Parser_termParser___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_arrayLit(lean_object*); lean_object* l_Lean_Parser_Term_do___closed__1; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__11; lean_object* l_Lean_Parser_Term_bracketedDoSeq; lean_object* l_Lean_Parser_Term_paren___closed__3; lean_object* l_Lean_Parser_Term_eq; @@ -799,6 +804,7 @@ lean_object* l_Lean_Parser_Term_if___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_namedHole___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_doId___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__7; +lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__1; lean_object* l_Lean_Parser_Term_fun___closed__1; lean_object* l_Lean_Parser_Term_bne___closed__3; lean_object* l_Lean_Parser_Term_explicitBinder___elambda__1___closed__4; @@ -825,6 +831,7 @@ lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__14; lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Term_anonymousCtor___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Parser_checkTailNoWs(lean_object*); lean_object* l_Lean_Parser_Term_subtype___elambda__1___closed__9; +lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__3; lean_object* l_Lean_Parser_Term_emptyC___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_orelse___closed__1; lean_object* l_Lean_Parser_Term_fromTerm; @@ -839,6 +846,8 @@ lean_object* l_Lean_Parser_Term_explicitBinder___closed__5; lean_object* l_Lean_Parser_Term_implicitBinder___elambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_bnot___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_namedPattern___elambda__1___closed__9; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__7; +lean_object* l_Lean_Parser_Term_structInstLVal; lean_object* l_Lean_Parser_Term_orM; lean_object* l_Lean_Parser_Term_tparser_x21___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_heq; @@ -898,6 +907,7 @@ lean_object* l_Lean_Parser_Term_ge___closed__3; lean_object* l_Lean_Parser_Term_structInstSource; lean_object* l_Lean_Parser_Term_quotedName___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doSeq___closed__2; +lean_object* l_Lean_Parser_Term_structInstLVal___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_doElem___closed__1; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__13; lean_object* l_Lean_Parser_Term_ne___closed__1; @@ -914,6 +924,7 @@ extern lean_object* l_List_repr___rarg___closed__2; lean_object* l_Lean_Parser_Term_match___closed__2; lean_object* l_Lean_Parser_Term_binderIdent___closed__2; lean_object* l_Lean_Parser_darrow___elambda__1___closed__3; +lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__5; lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_append___closed__1; @@ -959,6 +970,7 @@ lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_binderDefault___closed__2; lean_object* l_Lean_Parser_Term_orM___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_structInstField___closed__1; +lean_object* l_Lean_Parser_Term_structInstLVal___closed__6; lean_object* l_Lean_Parser_Term_le___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_nomatch___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_iff___elambda__1___closed__2; @@ -1051,6 +1063,7 @@ lean_object* l_Lean_Parser_Term_orM___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_equiv___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_explicitUniv___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_subtype___closed__3; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_arrayRef(lean_object*); lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_beq___elambda__1___closed__2; @@ -1124,7 +1137,6 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_str(lean_object*); lean_object* l_Lean_Parser_Term_map___closed__3; lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1(lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__11; lean_object* l_Lean_Parser_ParserState_popSyntax(lean_object*); lean_object* l_Lean_Parser_Term_parser_x21; extern lean_object* l_Lean_Parser_FirstTokens_toStr___closed__3; @@ -1169,7 +1181,6 @@ lean_object* l_Lean_Parser_Term_optType___elambda__1(lean_object*, lean_object*) lean_object* l_Lean_Parser_Term_sorry___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__12; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_where___elambda__1___spec__1(uint8_t, uint8_t, lean_object*, lean_object*); -lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_liftMethod___elambda__1___closed__4; lean_object* l___regBuiltinParser_Lean_Parser_Term_beq(lean_object*); lean_object* l_Lean_Parser_Term_tparser_x21___closed__5; @@ -1184,6 +1195,7 @@ lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Term_structInst___elambda__1 lean_object* l_Lean_Parser_Term_if___closed__2; lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__11; +lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__7; lean_object* l_Lean_Parser_Term_structInstField___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_andM; lean_object* l_Lean_Parser_Term_binderType___closed__5; @@ -1204,9 +1216,11 @@ lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_str___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_heq___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_depArrow___elambda__1___closed__16; +lean_object* l_Lean_Parser_Term_structInstLVal___closed__2; lean_object* l_Lean_Parser_Term_if___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_prop___elambda__1___closed__1; lean_object* l_Lean_Parser_darrow___elambda__1___closed__7; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__10; lean_object* l_Lean_Parser_Term_explicitBinder___closed__6; lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__7; lean_object* l_Lean_Parser_sepBy1Info(lean_object*, lean_object*); @@ -1283,6 +1297,7 @@ extern lean_object* l_Lean_Parser_numLit; lean_object* l_Lean_Parser_Term_mod___closed__2; lean_object* l_Lean_Parser_Term_leftArrow; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__2; lean_object* l_Lean_Parser_Term_have___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_namedPattern___closed__4; @@ -1307,6 +1322,7 @@ lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_ lean_object* l_Lean_Parser_Term_div___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_doExpr___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_let___closed__5; +lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__8; lean_object* l_Lean_Parser_Term_sub___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_proj(lean_object*); extern lean_object* l_PersistentArray_Stats_toString___closed__4; @@ -1333,6 +1349,7 @@ lean_object* l_Lean_Parser_Term_leftArrow___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_le___closed__1; lean_object* l_Lean_Parser_Term_sorry; lean_object* l_Lean_Parser_Term_tparser_x21___closed__3; +lean_object* l_Lean_Parser_Term_structInstLVal___closed__4; lean_object* l_Lean_Parser_Term_matchAlt; lean_object* l_Lean_Parser_Term_or___closed__3; lean_object* l_Lean_Parser_Term_inaccessible___elambda__1___closed__2; @@ -1340,6 +1357,7 @@ lean_object* l_Lean_Parser_Term_binderDefault___elambda__1(lean_object*, lean_ob lean_object* l_Lean_Parser_Term_nomatch___closed__2; lean_object* l_Lean_Parser_Term_type___elambda__1(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_not(lean_object*); +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__3; lean_object* l_Lean_Parser_Term_prop___closed__1; lean_object* l_Lean_Parser_Term_subst___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_binderType___boxed(lean_object*); @@ -1347,6 +1365,7 @@ lean_object* l_Lean_Parser_Term_binderType___closed__1; lean_object* l___regBuiltinParser_Lean_Parser_Term_match__syntax(lean_object*); lean_object* l_Lean_Parser_Term_cdot___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__8; +lean_object* l_Lean_Parser_Term_structInstLVal___closed__1; lean_object* l_Lean_Parser_Term_have___elambda__1(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_orelse(lean_object*); lean_object* l_Lean_Parser_Term_match___elambda__1___closed__2; @@ -1360,17 +1379,15 @@ lean_object* l_Lean_Parser_tryFn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_subst___closed__3; extern lean_object* l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__2; lean_object* l_Lean_Parser_Term_arrayLit___closed__5; -lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__9; lean_object* l_Lean_Parser_Term_if___closed__5; lean_object* l_Lean_Parser_Term_type___elambda__1___closed__8; uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* l___regBuiltinParser_Lean_Parser_Term_subst(lean_object*); lean_object* l_Lean_Parser_Term_anonymousCtor___closed__7; -lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__8; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_andthen___closed__2; lean_object* l_Lean_Parser_Term_lt___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_emptyC___elambda__1___closed__4; -lean_object* l_Lean_Parser_Term_instBinder___closed__8; lean_object* l___regBuiltinParser_Lean_Parser_Term_bor(lean_object*); lean_object* l_Lean_Parser_darrow___closed__1; lean_object* l_Lean_Parser_Term_matchAlts___elambda__1(uint8_t, lean_object*, lean_object*); @@ -1382,7 +1399,6 @@ lean_object* l_Lean_Parser_Term_letIdLhs___elambda__1(lean_object*, lean_object* lean_object* l_Lean_Parser_Term_forall___closed__2; lean_object* l_Lean_Parser_Term_num; lean_object* l_Lean_Parser_Term_bracketedDoSeq___elambda__1___closed__2; -lean_object* l_Lean_Parser_Term_listLit___closed__10; lean_object* l_Lean_Parser_Term_inaccessible___closed__7; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_let___elambda__1___closed__1; @@ -1438,6 +1454,7 @@ lean_object* l_Lean_Parser_Term_instBinder___elambda__1___closed__3; lean_object* l_Lean_Parser_Term_haveAssign___closed__4; lean_object* l_Lean_Parser_Term_seqRight___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_div___closed__2; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_mapConst___closed__2; lean_object* l_Lean_Parser_Term_emptyC___closed__3; lean_object* l_Lean_Parser_Term_structInstSource___closed__2; @@ -1486,6 +1503,7 @@ extern lean_object* l_Lean_mkHole___closed__1; lean_object* l_Lean_Parser_Term_forall___closed__4; lean_object* l_Lean_Parser_Term_add___closed__1; lean_object* l_Lean_Parser_categoryParser___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Parser_Term_structInstLVal___closed__8; lean_object* l_Lean_Parser_Term_letIdDecl___closed__3; lean_object* l_Lean_Parser_Term_le___closed__2; lean_object* l_Lean_Parser_Term_match___closed__8; @@ -1522,6 +1540,7 @@ lean_object* l_Lean_Parser_Term_pow___elambda__1___closed__2; lean_object* l_Lean_Parser_Term_binderDefault___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_id___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_cons___elambda__1___closed__2; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_structInst___elambda__1___closed__11; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__11(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_borrowed___elambda__1___closed__1; @@ -1541,6 +1560,7 @@ lean_object* l_Lean_Parser_Term_doLet___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_subst___closed__2; lean_object* l_Lean_Parser_Term_arrayLit___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_and___elambda__1___closed__2; +lean_object* l_Lean_Parser_Term_structInstArrayRef; lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_gt; @@ -1597,7 +1617,6 @@ lean_object* l___regBuiltinParser_Lean_Parser_Term_modN(lean_object*); lean_object* l_Lean_Parser_Term_typeSpec___closed__1; lean_object* l_Lean_Parser_Term_namedPattern___closed__8; lean_object* l_Lean_Parser_Term_parser_x21___elambda__1___closed__7; -lean_object* l_Lean_Parser_Term_proj___elambda__1___closed__6; lean_object* l_Lean_Parser_optionalFn(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_namedArgument___closed__6; lean_object* l_Lean_Parser_Term_implicitBinder___closed__1; @@ -1607,6 +1626,7 @@ lean_object* l_Lean_Parser_Term_doExpr___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_typeAscription___closed__2; lean_object* l_Lean_Parser_Term_seq___closed__3; lean_object* l_Lean_Parser_Term_matchAlts___closed__1; +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__4; lean_object* l_Lean_Parser_Term_structInst___closed__7; lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_liftMethod___elambda__1___closed__7; @@ -1661,6 +1681,7 @@ lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_forall___closed__5; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__18(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_pow; +lean_object* l_Lean_Parser_Term_structInstArrayRef___closed__6; lean_object* l_Lean_Parser_Term_letIdDecl___closed__4; lean_object* l_Lean_Parser_Term_leftArrow___closed__1; lean_object* l_Lean_Parser_Term_match__syntax___closed__6; @@ -1737,6 +1758,7 @@ lean_object* l_Lean_Parser_Term_structInstSource___elambda__1___closed__2; lean_object* l___regBuiltinParser_Lean_Parser_Term_hole(lean_object*); lean_object* l_Lean_Parser_Term_iff___closed__2; lean_object* l_Lean_Parser_Term_if___elambda__1___closed__12; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; lean_object* l_Lean_Parser_sepByFn___at_Lean_Parser_Term_structInst___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_fcomp___closed__2; lean_object* l_Lean_Parser_Term_where___closed__3; @@ -1833,6 +1855,7 @@ lean_object* l_Lean_Parser_Term_mapConstRev___closed__1; lean_object* l_Lean_Parser_Term_sorry___elambda__1___closed__5; lean_object* l_Lean_Parser_Term_forall___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_bindOp___elambda__1___closed__2; +lean_object* l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_do___elambda__1(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_letDecl___closed__3; lean_object* l_Lean_Parser_Term_namedHole___elambda__1___closed__4; @@ -1855,6 +1878,7 @@ lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__1; lean_object* l_Lean_Parser_Term_suffices___closed__6; lean_object* l___private_Init_Lean_Parser_Parser_2__sepByFnAux___main___at_Lean_Parser_Term_matchAlts___elambda__1___spec__2___closed__6; lean_object* l_Lean_Parser_Term_sortApp___elambda__1___closed__2; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_object* l_Lean_Parser_Term_depArrow___closed__7; lean_object* l_Lean_Parser_Term_seq___closed__1; lean_object* l_Lean_Parser_sepBy1Fn___at_Lean_Parser_Term_matchAlts___elambda__1___spec__13(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*); @@ -1901,12 +1925,12 @@ lean_object* l_Lean_Parser_Term_modN___closed__1; lean_object* l_Lean_Parser_Term_band___closed__1; lean_object* l_Lean_Parser_Term_parser_x21___closed__6; lean_object* l_Lean_Parser_Term_seq___closed__2; -lean_object* l_Lean_Parser_Term_listLit___elambda__1___closed__6; lean_object* l_Lean_Parser_Term_char___elambda__1___closed__3; extern lean_object* l_Lean_Parser_Level_paren___closed__1; lean_object* l_Lean_Parser_Term_where___closed__7; lean_object* l_Lean_Parser_fieldIdxFn(lean_object*, lean_object*); lean_object* l_Lean_Parser_Term_arrayRef___closed__3; +lean_object* l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__8; lean_object* l_Lean_Parser_Term_typeSpec___elambda__1___closed__4; lean_object* l_Lean_Parser_Term_hole___closed__1; lean_object* l_Lean_Parser_Term_match___elambda__1___closed__13; @@ -11796,6 +11820,852 @@ x_6 = l_Lean_Parser_addBuiltinParser(x_2, x_3, x_4, x_5, x_1); return x_6; } } +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("structInstArrayRef"); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_mkAppStx___closed__6; +x_2 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__1; +x_3 = lean_name_mk_string(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; uint8_t x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__1; +x_2 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__3; +x_3 = 1; +x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_repr___rarg___closed__2; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_List_repr___rarg___closed__3; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__7() { +_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_structInstArrayRef___elambda__1___closed__6; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInstArrayRef___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_structInstArrayRef___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_structInstArrayRef___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); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__10() { +_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_structInstArrayRef___elambda__1___closed__5; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__11() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__10; +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_structInstArrayRef___elambda__1___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__11; +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_Parser_Term_structInstArrayRef___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_3 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__4; +x_4 = lean_ctor_get(x_3, 1); +lean_inc(x_4); +x_5 = lean_ctor_get(x_2, 0); +lean_inc(x_5); +x_6 = lean_array_get_size(x_5); +lean_dec(x_5); +x_7 = lean_ctor_get(x_2, 1); +lean_inc(x_7); +lean_inc(x_1); +x_8 = lean_apply_2(x_4, x_1, x_2); +x_9 = lean_ctor_get(x_8, 3); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +return x_8; +} +else +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +lean_dec(x_9); +x_11 = lean_ctor_get(x_8, 1); +lean_inc(x_11); +x_12 = lean_nat_dec_eq(x_11, x_7); +lean_dec(x_11); +if (x_12 == 0) +{ +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_1); +return x_8; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_55; lean_object* x_56; +lean_inc(x_7); +x_13 = l_Lean_Parser_ParserState_restore(x_8, x_6, x_7); +lean_dec(x_6); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_array_get_size(x_14); +lean_dec(x_14); +lean_inc(x_1); +x_55 = l_Lean_Parser_tokenFn(x_1, x_13); +x_56 = lean_ctor_get(x_55, 3); +lean_inc(x_56); +if (lean_obj_tag(x_56) == 0) +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_55, 0); +lean_inc(x_57); +x_58 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_57); +lean_dec(x_57); +if (lean_obj_tag(x_58) == 2) +{ +lean_object* x_59; lean_object* x_60; uint8_t x_61; +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; +x_61 = lean_string_dec_eq(x_59, x_60); +lean_dec(x_59); +if (x_61 == 0) +{ +lean_object* x_62; lean_object* x_63; +x_62 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; +lean_inc(x_7); +x_63 = l_Lean_Parser_ParserState_mkErrorsAt(x_55, x_62, x_7); +x_16 = x_63; +goto block_54; +} +else +{ +x_16 = x_55; +goto block_54; +} +} +else +{ +lean_object* x_64; lean_object* x_65; +lean_dec(x_58); +x_64 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; +lean_inc(x_7); +x_65 = l_Lean_Parser_ParserState_mkErrorsAt(x_55, x_64, x_7); +x_16 = x_65; +goto block_54; +} +} +else +{ +lean_object* x_66; lean_object* x_67; +lean_dec(x_56); +x_66 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; +lean_inc(x_7); +x_67 = l_Lean_Parser_ParserState_mkErrorsAt(x_55, x_66, x_7); +x_16 = x_67; +goto block_54; +} +block_54: +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_16, 3); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_18 = l_Lean_Parser_termParser___closed__2; +x_19 = lean_unsigned_to_nat(0u); +lean_inc(x_1); +x_20 = l_Lean_Parser_categoryParser___elambda__1(x_18, x_19, x_1, x_16); +x_21 = lean_ctor_get(x_20, 3); +lean_inc(x_21); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_22 = lean_ctor_get(x_20, 1); +lean_inc(x_22); +x_23 = l_Lean_Parser_tokenFn(x_1, x_20); +x_24 = lean_ctor_get(x_23, 3); +lean_inc(x_24); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +x_26 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_25); +lean_dec(x_25); +if (lean_obj_tag(x_26) == 2) +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +lean_dec(x_26); +x_28 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; +x_29 = lean_string_dec_eq(x_27, x_28); +lean_dec(x_27); +if (x_29 == 0) +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_30 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; +x_31 = l_Lean_Parser_ParserState_mkErrorsAt(x_23, x_30, x_22); +x_32 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; +x_33 = l_Lean_Parser_ParserState_mkNode(x_31, x_32, x_15); +x_34 = l_Lean_Parser_mergeOrElseErrors(x_33, x_10, x_7); +lean_dec(x_7); +return x_34; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_22); +x_35 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; +x_36 = l_Lean_Parser_ParserState_mkNode(x_23, x_35, x_15); +x_37 = l_Lean_Parser_mergeOrElseErrors(x_36, x_10, x_7); +lean_dec(x_7); +return x_37; +} +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +lean_dec(x_26); +x_38 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; +x_39 = l_Lean_Parser_ParserState_mkErrorsAt(x_23, x_38, x_22); +x_40 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; +x_41 = l_Lean_Parser_ParserState_mkNode(x_39, x_40, x_15); +x_42 = l_Lean_Parser_mergeOrElseErrors(x_41, x_10, x_7); +lean_dec(x_7); +return x_42; +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_24); +x_43 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; +x_44 = l_Lean_Parser_ParserState_mkErrorsAt(x_23, x_43, x_22); +x_45 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; +x_46 = l_Lean_Parser_ParserState_mkNode(x_44, x_45, x_15); +x_47 = l_Lean_Parser_mergeOrElseErrors(x_46, x_10, x_7); +lean_dec(x_7); +return x_47; +} +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +lean_dec(x_21); +lean_dec(x_1); +x_48 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; +x_49 = l_Lean_Parser_ParserState_mkNode(x_20, x_48, x_15); +x_50 = l_Lean_Parser_mergeOrElseErrors(x_49, x_10, x_7); +lean_dec(x_7); +return x_50; +} +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +lean_dec(x_17); +lean_dec(x_1); +x_51 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; +x_52 = l_Lean_Parser_ParserState_mkNode(x_16, x_51, x_15); +x_53 = l_Lean_Parser_mergeOrElseErrors(x_52, x_10, x_7); +lean_dec(x_7); +return x_53; +} +} +} +} +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; +x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; +x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__2; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_structInstArrayRef___closed__2; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInstArrayRef___closed__1; +x_2 = l_Lean_Parser_Term_structInstArrayRef___closed__3; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2; +x_2 = l_Lean_Parser_Term_structInstArrayRef___closed__4; +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__4; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_structInstArrayRef___closed__5; +x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_structInstArrayRef___elambda__1), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstArrayRef___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInstArrayRef___closed__6; +x_2 = l_Lean_Parser_Term_structInstArrayRef___closed__7; +x_3 = lean_alloc_ctor(0, 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_Parser_Term_structInstArrayRef() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Term_structInstArrayRef___closed__8; +return x_1; +} +} +lean_object* _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Name_toString___closed__1; +x_2 = l_String_trim(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__2() { +_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_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__2; +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_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__3; +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_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_17; lean_object* x_34; lean_object* x_35; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_array_get_size(x_3); +lean_dec(x_3); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +lean_inc(x_1); +x_34 = l_Lean_Parser_tokenFn(x_1, x_2); +x_35 = lean_ctor_get(x_34, 3); +lean_inc(x_35); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_34, 0); +lean_inc(x_36); +x_37 = l_Array_back___at_Lean_Parser_checkStackTopFn___spec__1(x_36); +lean_dec(x_36); +if (lean_obj_tag(x_37) == 2) +{ +lean_object* x_38; lean_object* x_39; uint8_t x_40; +x_38 = lean_ctor_get(x_37, 1); +lean_inc(x_38); +lean_dec(x_37); +x_39 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1; +x_40 = lean_string_dec_eq(x_38, x_39); +lean_dec(x_38); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__4; +lean_inc(x_5); +x_42 = l_Lean_Parser_ParserState_mkErrorsAt(x_34, x_41, x_5); +x_17 = x_42; +goto block_33; +} +else +{ +x_17 = x_34; +goto block_33; +} +} +else +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_37); +x_43 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__4; +lean_inc(x_5); +x_44 = l_Lean_Parser_ParserState_mkErrorsAt(x_34, x_43, x_5); +x_17 = x_44; +goto block_33; +} +} +else +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_35); +x_45 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__4; +lean_inc(x_5); +x_46 = l_Lean_Parser_ParserState_mkErrorsAt(x_34, x_45, x_5); +x_17 = x_46; +goto block_33; +} +block_16: +{ +lean_object* x_7; +x_7 = lean_ctor_get(x_6, 3); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; uint8_t x_9; +lean_dec(x_4); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +x_9 = lean_nat_dec_eq(x_5, x_8); +lean_dec(x_8); +lean_dec(x_5); +if (x_9 == 0) +{ +x_2 = x_6; +goto _start; +} +else +{ +lean_object* x_11; lean_object* x_12; +lean_dec(x_1); +x_11 = l_Lean_Parser_manyAux___main___closed__1; +x_12 = l_Lean_Parser_ParserState_mkUnexpectedError(x_6, x_11); +return x_12; +} +} +else +{ +lean_object* x_13; uint8_t x_14; +lean_dec(x_7); +lean_dec(x_1); +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +x_14 = lean_nat_dec_eq(x_5, x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_dec(x_5); +lean_dec(x_4); +return x_6; +} +else +{ +lean_object* x_15; +x_15 = l_Lean_Parser_ParserState_restore(x_6, x_4, x_5); +lean_dec(x_4); +return x_15; +} +} +} +block_33: +{ +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_inc(x_1); +x_19 = l_Lean_Parser_ident___elambda__1(x_1, x_17); +x_20 = lean_ctor_get(x_19, 3); +lean_inc(x_20); +if (lean_obj_tag(x_20) == 0) +{ +x_6 = x_19; +goto block_16; +} +else +{ +lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +lean_dec(x_20); +x_22 = lean_ctor_get(x_19, 1); +lean_inc(x_22); +x_23 = lean_nat_dec_eq(x_22, x_5); +lean_dec(x_22); +if (x_23 == 0) +{ +lean_dec(x_21); +x_6 = x_19; +goto block_16; +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_inc(x_5); +x_24 = l_Lean_Parser_ParserState_restore(x_19, x_4, x_5); +lean_inc(x_1); +x_25 = l_Lean_Parser_Term_structInstArrayRef___elambda__1(x_1, x_24); +x_26 = l_Lean_Parser_mergeOrElseErrors(x_25, x_21, x_5); +x_6 = x_26; +goto block_16; +} +} +} +else +{ +lean_object* x_27; lean_object* x_28; uint8_t x_29; +x_27 = lean_ctor_get(x_18, 0); +lean_inc(x_27); +lean_dec(x_18); +x_28 = lean_ctor_get(x_17, 1); +lean_inc(x_28); +x_29 = lean_nat_dec_eq(x_28, x_5); +lean_dec(x_28); +if (x_29 == 0) +{ +lean_dec(x_27); +x_6 = x_17; +goto block_16; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +lean_inc(x_5); +x_30 = l_Lean_Parser_ParserState_restore(x_17, x_4, x_5); +lean_inc(x_1); +x_31 = l_Lean_Parser_Term_structInstArrayRef___elambda__1(x_1, x_30); +x_32 = l_Lean_Parser_mergeOrElseErrors(x_31, x_27, x_5); +x_6 = x_32; +goto block_16; +} +} +} +} +} +lean_object* l_Lean_Parser_Term_structInstLVal___elambda__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_3 = lean_ctor_get(x_2, 0); +lean_inc(x_3); +x_4 = lean_array_get_size(x_3); +lean_dec(x_3); +x_5 = lean_ctor_get(x_2, 1); +lean_inc(x_5); +lean_inc(x_1); +x_6 = l_Lean_Parser_ident___elambda__1(x_1, x_2); +x_7 = lean_ctor_get(x_6, 3); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +lean_dec(x_5); +lean_dec(x_4); +x_8 = lean_ctor_get(x_6, 0); +lean_inc(x_8); +x_9 = lean_array_get_size(x_8); +lean_dec(x_8); +x_10 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1(x_1, x_6); +x_11 = l_Lean_nullKind; +x_12 = l_Lean_Parser_ParserState_mkNode(x_10, x_11, x_9); +return x_12; +} +else +{ +lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_13 = lean_ctor_get(x_7, 0); +lean_inc(x_13); +lean_dec(x_7); +x_14 = lean_ctor_get(x_6, 1); +lean_inc(x_14); +x_15 = lean_nat_dec_eq(x_14, x_5); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_dec(x_13); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_1); +return x_6; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; +lean_inc(x_5); +x_16 = l_Lean_Parser_ParserState_restore(x_6, x_4, x_5); +lean_dec(x_4); +lean_inc(x_1); +x_17 = l_Lean_Parser_Term_structInstArrayRef___elambda__1(x_1, x_16); +x_18 = l_Lean_Parser_mergeOrElseErrors(x_17, x_13, x_5); +lean_dec(x_5); +x_19 = lean_ctor_get(x_18, 3); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_18, 0); +lean_inc(x_20); +x_21 = lean_array_get_size(x_20); +lean_dec(x_20); +x_22 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1(x_1, x_18); +x_23 = l_Lean_nullKind; +x_24 = l_Lean_Parser_ParserState_mkNode(x_22, x_23, x_21); +return x_24; +} +else +{ +lean_dec(x_19); +lean_dec(x_1); +return x_18; +} +} +} +} +} +lean_object* _init_l_Lean_Parser_Term_structInstLVal___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; +x_1 = l_Lean_Parser_ident; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_structInstArrayRef; +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = l_Lean_Parser_orelseInfo(x_2, x_4); +return x_5; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstLVal___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1; +x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstLVal___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_ident; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_structInstLVal___closed__2; +x_4 = l_Lean_Parser_andthenInfo(x_3, x_2); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstLVal___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_structInstArrayRef; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_structInstLVal___closed__3; +x_4 = l_Lean_Parser_orelseInfo(x_3, x_2); +return x_4; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstLVal___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_structInstLVal___closed__4; +x_2 = l_Lean_Parser_noFirstTokenInfo(x_1); +return x_2; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstLVal___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInstLVal___closed__1; +x_2 = l_Lean_Parser_Term_structInstLVal___closed__5; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstLVal___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_structInstLVal___elambda__1), 2, 0); +return x_1; +} +} +lean_object* _init_l_Lean_Parser_Term_structInstLVal___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInstLVal___closed__6; +x_2 = l_Lean_Parser_Term_structInstLVal___closed__7; +x_3 = lean_alloc_ctor(0, 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_Parser_Term_structInstLVal() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Parser_Term_structInstLVal___closed__8; +return x_1; +} +} lean_object* _init_l_Lean_Parser_Term_structInstField___elambda__1___closed__1() { _start: { @@ -11888,7 +12758,7 @@ lean_inc(x_14); x_15 = lean_array_get_size(x_14); lean_dec(x_14); lean_inc(x_1); -x_16 = l_Lean_Parser_ident___elambda__1(x_1, x_13); +x_16 = l_Lean_Parser_Term_structInstLVal___elambda__1(x_1, x_13); x_17 = lean_ctor_get(x_16, 3); lean_inc(x_17); if (lean_obj_tag(x_17) == 0) @@ -11989,7 +12859,7 @@ lean_object* _init_l_Lean_Parser_Term_structInstField___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_ident; +x_1 = l_Lean_Parser_Term_structInstLVal; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); x_3 = l_Lean_Parser_Term_haveAssign___closed__2; @@ -14571,88 +15441,6 @@ x_4 = l_Lean_Parser_mkAntiquot(x_1, x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Term_listLit___elambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_repr___rarg___closed__2; -x_2 = l_String_trim(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_listLit___elambda__1___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_List_repr___rarg___closed__3; -x_2 = l_String_trim(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_listLit___elambda__1___closed__7() { -_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_listLit___elambda__1___closed__6; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_listLit___elambda__1___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_listLit___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_listLit___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_listLit___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); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_listLit___elambda__1___closed__10() { -_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_listLit___elambda__1___closed__5; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_listLit___elambda__1___closed__11() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_listLit___elambda__1___closed__10; -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_listLit___elambda__1___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_listLit___elambda__1___closed__11; -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_Parser_Term_listLit___elambda__1(lean_object* x_1, lean_object* x_2) { _start: { @@ -14722,13 +15510,13 @@ lean_object* x_58; lean_object* x_59; uint8_t x_60; x_58 = lean_ctor_get(x_57, 1); lean_inc(x_58); lean_dec(x_57); -x_59 = l_Lean_Parser_Term_listLit___elambda__1___closed__5; +x_59 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; x_60 = lean_string_dec_eq(x_58, x_59); lean_dec(x_58); if (x_60 == 0) { lean_object* x_61; lean_object* x_62; -x_61 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_61 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_7); x_62 = l_Lean_Parser_ParserState_mkErrorsAt(x_54, x_61, x_7); x_16 = x_62; @@ -14744,7 +15532,7 @@ else { lean_object* x_63; lean_object* x_64; lean_dec(x_57); -x_63 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_63 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_7); x_64 = l_Lean_Parser_ParserState_mkErrorsAt(x_54, x_63, x_7); x_16 = x_64; @@ -14755,7 +15543,7 @@ else { lean_object* x_65; lean_object* x_66; lean_dec(x_55); -x_65 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_65 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_7); x_66 = l_Lean_Parser_ParserState_mkErrorsAt(x_54, x_65, x_7); x_16 = x_66; @@ -14795,13 +15583,13 @@ lean_object* x_26; lean_object* x_27; uint8_t x_28; x_26 = lean_ctor_get(x_25, 1); lean_inc(x_26); lean_dec(x_25); -x_27 = l_Lean_Parser_Term_listLit___elambda__1___closed__6; +x_27 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; x_28 = lean_string_dec_eq(x_26, x_27); lean_dec(x_26); if (x_28 == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_29 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_29 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_30 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_29, x_21); x_31 = l_Lean_Parser_Term_listLit___elambda__1___closed__2; x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_15); @@ -14824,7 +15612,7 @@ else { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_dec(x_25); -x_37 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_37 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_38 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_37, x_21); x_39 = l_Lean_Parser_Term_listLit___elambda__1___closed__2; x_40 = l_Lean_Parser_ParserState_mkNode(x_38, x_39, x_15); @@ -14837,7 +15625,7 @@ else { lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_dec(x_23); -x_42 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_42 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_43 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_42, x_21); x_44 = l_Lean_Parser_Term_listLit___elambda__1___closed__2; x_45 = l_Lean_Parser_ParserState_mkNode(x_43, x_44, x_15); @@ -14878,7 +15666,7 @@ lean_object* _init_l_Lean_Parser_Term_listLit___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_listLit___elambda__1___closed__5; +x_1 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; x_2 = l_Lean_Parser_Level_paren___closed__1; x_3 = l_Lean_Parser_symbolInfo(x_1, x_2); return x_3; @@ -14910,9 +15698,9 @@ lean_object* _init_l_Lean_Parser_Term_listLit___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_listLit___elambda__1___closed__6; -x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); +x_1 = l_Lean_Parser_Term_listLit___closed__3; +x_2 = l_Lean_Parser_Term_structInstArrayRef___closed__2; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; } } @@ -14920,7 +15708,7 @@ lean_object* _init_l_Lean_Parser_Term_listLit___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_listLit___closed__3; +x_1 = l_Lean_Parser_Term_listLit___closed__1; x_2 = l_Lean_Parser_Term_listLit___closed__4; x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; @@ -14930,35 +15718,25 @@ lean_object* _init_l_Lean_Parser_Term_listLit___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_listLit___closed__1; +x_1 = l_Lean_Parser_Term_listLit___elambda__1___closed__2; x_2 = l_Lean_Parser_Term_listLit___closed__5; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; } } lean_object* _init_l_Lean_Parser_Term_listLit___closed__7() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_listLit___elambda__1___closed__2; -x_2 = l_Lean_Parser_Term_listLit___closed__6; -x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_listLit___closed__8() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_listLit___elambda__1___closed__4; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_listLit___closed__7; +x_3 = l_Lean_Parser_Term_listLit___closed__6; x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Term_listLit___closed__9() { +lean_object* _init_l_Lean_Parser_Term_listLit___closed__8() { _start: { lean_object* x_1; @@ -14966,12 +15744,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_listLit___elambda__1), 2, 0) return x_1; } } -lean_object* _init_l_Lean_Parser_Term_listLit___closed__10() { +lean_object* _init_l_Lean_Parser_Term_listLit___closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_listLit___closed__8; -x_2 = l_Lean_Parser_Term_listLit___closed__9; +x_1 = l_Lean_Parser_Term_listLit___closed__7; +x_2 = l_Lean_Parser_Term_listLit___closed__8; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -14982,7 +15760,7 @@ lean_object* _init_l_Lean_Parser_Term_listLit() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Term_listLit___closed__10; +x_1 = l_Lean_Parser_Term_listLit___closed__9; return x_1; } } @@ -15244,13 +16022,13 @@ lean_object* x_26; lean_object* x_27; uint8_t x_28; x_26 = lean_ctor_get(x_25, 1); lean_inc(x_26); lean_dec(x_25); -x_27 = l_Lean_Parser_Term_listLit___elambda__1___closed__6; +x_27 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; x_28 = lean_string_dec_eq(x_26, x_27); lean_dec(x_26); if (x_28 == 0) { lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_29 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_29 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_30 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_29, x_21); x_31 = l_Lean_Parser_Term_arrayLit___elambda__1___closed__2; x_32 = l_Lean_Parser_ParserState_mkNode(x_30, x_31, x_15); @@ -15273,7 +16051,7 @@ else { lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_dec(x_25); -x_37 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_37 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_38 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_37, x_21); x_39 = l_Lean_Parser_Term_arrayLit___elambda__1___closed__2; x_40 = l_Lean_Parser_ParserState_mkNode(x_38, x_39, x_15); @@ -15286,7 +16064,7 @@ else { lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_dec(x_23); -x_42 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_42 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_43 = l_Lean_Parser_ParserState_mkErrorsAt(x_22, x_42, x_21); x_44 = l_Lean_Parser_Term_arrayLit___elambda__1___closed__2; x_45 = l_Lean_Parser_ParserState_mkNode(x_43, x_44, x_15); @@ -15338,7 +16116,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Term_arrayLit___closed__1; -x_2 = l_Lean_Parser_Term_listLit___closed__5; +x_2 = l_Lean_Parser_Term_listLit___closed__4; x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; } @@ -17493,13 +18271,13 @@ lean_object* x_64; lean_object* x_65; uint8_t x_66; x_64 = lean_ctor_get(x_63, 1); lean_inc(x_64); lean_dec(x_63); -x_65 = l_Lean_Parser_Term_listLit___elambda__1___closed__5; +x_65 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; x_66 = lean_string_dec_eq(x_64, x_65); lean_dec(x_64); if (x_66 == 0) { lean_object* x_67; lean_object* x_68; -x_67 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_67 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_7); x_68 = l_Lean_Parser_ParserState_mkErrorsAt(x_60, x_67, x_7); x_16 = x_68; @@ -17515,7 +18293,7 @@ else { lean_object* x_69; lean_object* x_70; lean_dec(x_63); -x_69 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_69 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_7); x_70 = l_Lean_Parser_ParserState_mkErrorsAt(x_60, x_69, x_7); x_16 = x_70; @@ -17526,7 +18304,7 @@ else { lean_object* x_71; lean_object* x_72; lean_dec(x_61); -x_71 = l_Lean_Parser_Term_listLit___elambda__1___closed__12; +x_71 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12; lean_inc(x_7); x_72 = l_Lean_Parser_ParserState_mkErrorsAt(x_60, x_71, x_7); x_16 = x_72; @@ -17574,13 +18352,13 @@ lean_object* x_29; lean_object* x_30; uint8_t x_31; x_29 = lean_ctor_get(x_28, 1); lean_inc(x_29); lean_dec(x_28); -x_30 = l_Lean_Parser_Term_listLit___elambda__1___closed__6; +x_30 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; x_31 = lean_string_dec_eq(x_29, x_30); lean_dec(x_29); if (x_31 == 0) { lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_32 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_32 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_33 = l_Lean_Parser_ParserState_mkErrorsAt(x_25, x_32, x_24); x_34 = l_Lean_Parser_Term_instBinder___elambda__1___closed__2; x_35 = l_Lean_Parser_ParserState_mkNode(x_33, x_34, x_15); @@ -17603,7 +18381,7 @@ else { lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_dec(x_28); -x_40 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_40 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_41 = l_Lean_Parser_ParserState_mkErrorsAt(x_25, x_40, x_24); x_42 = l_Lean_Parser_Term_instBinder___elambda__1___closed__2; x_43 = l_Lean_Parser_ParserState_mkNode(x_41, x_42, x_15); @@ -17616,7 +18394,7 @@ else { lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_dec(x_26); -x_45 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_45 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_46 = l_Lean_Parser_ParserState_mkErrorsAt(x_25, x_45, x_24); x_47 = l_Lean_Parser_Term_instBinder___elambda__1___closed__2; x_48 = l_Lean_Parser_ParserState_mkNode(x_46, x_47, x_15); @@ -17668,70 +18446,48 @@ return x_58; lean_object* _init_l_Lean_Parser_Term_instBinder___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Parser_Term_listLit___elambda__1___closed__5; -x_3 = l_Lean_Parser_symbolInfo(x_2, x_1); -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_optIdent; +x_2 = lean_ctor_get(x_1, 0); +lean_inc(x_2); +x_3 = l_Lean_Parser_Term_structInstArrayRef___closed__3; +x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); +return x_4; } } lean_object* _init_l_Lean_Parser_Term_instBinder___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Parser_Parser_14__antiquotNestedExpr___closed__2; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_listLit___closed__4; -x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); -return x_4; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Parser_Term_structInstArrayRef___closed__1; +x_2 = l_Lean_Parser_Term_instBinder___closed__1; +x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); +return x_3; } } lean_object* _init_l_Lean_Parser_Term_instBinder___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_optIdent; -x_2 = lean_ctor_get(x_1, 0); -lean_inc(x_2); -x_3 = l_Lean_Parser_Term_instBinder___closed__2; -x_4 = l_Lean_Parser_andthenInfo(x_2, x_3); -return x_4; -} -} -lean_object* _init_l_Lean_Parser_Term_instBinder___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_instBinder___closed__1; -x_2 = l_Lean_Parser_Term_instBinder___closed__3; -x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_instBinder___closed__5() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Term_instBinder___elambda__1___closed__2; -x_2 = l_Lean_Parser_Term_instBinder___closed__4; +x_2 = l_Lean_Parser_Term_instBinder___closed__2; x_3 = l_Lean_Parser_nodeInfo(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Term_instBinder___closed__6() { +lean_object* _init_l_Lean_Parser_Term_instBinder___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Term_instBinder___elambda__1___closed__4; x_2 = lean_ctor_get(x_1, 0); lean_inc(x_2); -x_3 = l_Lean_Parser_Term_instBinder___closed__5; +x_3 = l_Lean_Parser_Term_instBinder___closed__3; x_4 = l_Lean_Parser_orelseInfo(x_2, x_3); return x_4; } } -lean_object* _init_l_Lean_Parser_Term_instBinder___closed__7() { +lean_object* _init_l_Lean_Parser_Term_instBinder___closed__5() { _start: { lean_object* x_1; @@ -17739,12 +18495,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Term_instBinder___elambda__1), 2, return x_1; } } -lean_object* _init_l_Lean_Parser_Term_instBinder___closed__8() { +lean_object* _init_l_Lean_Parser_Term_instBinder___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_instBinder___closed__6; -x_2 = l_Lean_Parser_Term_instBinder___closed__7; +x_1 = l_Lean_Parser_Term_instBinder___closed__4; +x_2 = l_Lean_Parser_Term_instBinder___closed__5; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); @@ -17755,7 +18511,7 @@ lean_object* _init_l_Lean_Parser_Term_instBinder() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Term_instBinder___closed__8; +x_1 = l_Lean_Parser_Term_instBinder___closed__6; return x_1; } } @@ -17829,7 +18585,7 @@ x_7 = l_Lean_Parser_orelseInfo(x_4, x_6); x_8 = lean_ctor_get(x_3, 1); lean_inc(x_8); lean_dec(x_3); -x_9 = l_Lean_Parser_Term_instBinder___closed__7; +x_9 = l_Lean_Parser_Term_instBinder___closed__5; x_10 = lean_alloc_closure((void*)(l_Lean_Parser_orelseFn), 4, 2); lean_closure_set(x_10, 0, x_8); lean_closure_set(x_10, 1, x_9); @@ -31074,37 +31830,18 @@ return x_3; lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Name_toString___closed__1; -x_2 = l_String_trim(x_1); -return x_2; -} -} -lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__4() { -_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_proj___elambda__1___closed__3; -x_3 = lean_string_append(x_1, x_2); -return x_3; -} -} -lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__5() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_proj___elambda__1___closed__4; +x_1 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__2; x_2 = l_Lean_Parser_symbolNoWsFn___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; } } -lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__6() { +lean_object* _init_l_Lean_Parser_Term_proj___elambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_proj___elambda__1___closed__3; +x_1 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } @@ -31129,7 +31866,7 @@ if (x_40 == 0) { lean_object* x_41; lean_object* x_42; lean_dec(x_6); -x_41 = l_Lean_Parser_Term_proj___elambda__1___closed__5; +x_41 = l_Lean_Parser_Term_proj___elambda__1___closed__3; x_42 = l_Lean_Parser_ParserState_mkError(x_2, x_41); x_8 = x_42; goto block_38; @@ -31142,8 +31879,8 @@ lean_inc(x_43); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); lean_dec(x_43); -x_45 = l_Lean_Parser_Term_proj___elambda__1___closed__3; -x_46 = l_Lean_Parser_Term_proj___elambda__1___closed__5; +x_45 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1; +x_46 = l_Lean_Parser_Term_proj___elambda__1___closed__3; x_47 = lean_unsigned_to_nat(0u); x_48 = l_Lean_Parser_strAux___main(x_45, x_46, x_47, x_1, x_2); x_49 = lean_ctor_get(x_48, 3); @@ -31157,7 +31894,7 @@ x_50 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_50, 0, x_44); lean_ctor_set(x_50, 1, x_6); lean_ctor_set(x_50, 2, x_6); -x_51 = l_Lean_Parser_Term_proj___elambda__1___closed__6; +x_51 = l_Lean_Parser_Term_proj___elambda__1___closed__4; x_52 = lean_nat_add(x_6, x_51); lean_inc(x_52); x_53 = lean_alloc_ctor(0, 3, 0); @@ -31329,7 +32066,7 @@ lean_object* _init_l_Lean_Parser_Term_proj___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_proj___elambda__1___closed__3; +x_1 = l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1; x_2 = l_Lean_Parser_Term_proj___closed__2; x_3 = l_Lean_Parser_symbolNoWsInfo(x_1, x_2); return x_3; @@ -31528,7 +32265,7 @@ lean_object* _init_l_Lean_Parser_Term_arrayRef___elambda__1___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_listLit___elambda__1___closed__10; +x_1 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__10; x_2 = l_Lean_Parser_symbolNoWsFn___closed__1; x_3 = lean_string_append(x_1, x_2); return x_3; @@ -31538,7 +32275,7 @@ lean_object* _init_l_Lean_Parser_Term_arrayRef___elambda__1___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_listLit___elambda__1___closed__5; +x_1 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } @@ -31573,7 +32310,7 @@ lean_inc(x_43); x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); lean_dec(x_43); -x_45 = l_Lean_Parser_Term_listLit___elambda__1___closed__5; +x_45 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; x_46 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__3; x_47 = lean_unsigned_to_nat(0u); x_48 = l_Lean_Parser_strAux___main(x_45, x_46, x_47, x_1, x_2); @@ -31652,13 +32389,13 @@ lean_object* x_17; lean_object* x_18; uint8_t x_19; x_17 = lean_ctor_get(x_16, 1); lean_inc(x_17); lean_dec(x_16); -x_18 = l_Lean_Parser_Term_listLit___elambda__1___closed__6; +x_18 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6; x_19 = lean_string_dec_eq(x_17, x_18); lean_dec(x_17); if (x_19 == 0) { lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_20 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_20 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_21 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_20, x_12); x_22 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; x_23 = l_Lean_Parser_ParserState_mkTrailingNode(x_21, x_22, x_5); @@ -31679,7 +32416,7 @@ else { lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_dec(x_16); -x_26 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_26 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_27 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_26, x_12); x_28 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; x_29 = l_Lean_Parser_ParserState_mkTrailingNode(x_27, x_28, x_5); @@ -31691,7 +32428,7 @@ else { lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_dec(x_14); -x_30 = l_Lean_Parser_Term_listLit___elambda__1___closed__9; +x_30 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9; x_31 = l_Lean_Parser_ParserState_mkErrorsAt(x_13, x_30, x_12); x_32 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; x_33 = l_Lean_Parser_ParserState_mkTrailingNode(x_31, x_32, x_5); @@ -31727,7 +32464,7 @@ lean_object* _init_l_Lean_Parser_Term_arrayRef___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Term_listLit___elambda__1___closed__5; +x_1 = l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5; x_2 = l_Lean_Parser_Term_proj___closed__2; x_3 = l_Lean_Parser_symbolNoWsInfo(x_1, x_2); return x_3; @@ -31738,7 +32475,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Parser_Term_arrayRef___closed__1; -x_2 = l_Lean_Parser_Term_instBinder___closed__2; +x_2 = l_Lean_Parser_Term_structInstArrayRef___closed__3; x_3 = l_Lean_Parser_andthenInfo(x_1, x_2); return x_3; } @@ -38044,6 +38781,74 @@ lean_mark_persistent(l_Lean_Parser_Term_fun); res = l___regBuiltinParser_Lean_Parser_Term_fun(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__1 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__1); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__2); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__3 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__3); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__4 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__4); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__5); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__6); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__7 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__7); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__8 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__8); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__9); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__10 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__10(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__10); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__11 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__11(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__11); +l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12 = _init_l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___elambda__1___closed__12); +l_Lean_Parser_Term_structInstArrayRef___closed__1 = _init_l_Lean_Parser_Term_structInstArrayRef___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___closed__1); +l_Lean_Parser_Term_structInstArrayRef___closed__2 = _init_l_Lean_Parser_Term_structInstArrayRef___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___closed__2); +l_Lean_Parser_Term_structInstArrayRef___closed__3 = _init_l_Lean_Parser_Term_structInstArrayRef___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___closed__3); +l_Lean_Parser_Term_structInstArrayRef___closed__4 = _init_l_Lean_Parser_Term_structInstArrayRef___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___closed__4); +l_Lean_Parser_Term_structInstArrayRef___closed__5 = _init_l_Lean_Parser_Term_structInstArrayRef___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___closed__5); +l_Lean_Parser_Term_structInstArrayRef___closed__6 = _init_l_Lean_Parser_Term_structInstArrayRef___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___closed__6); +l_Lean_Parser_Term_structInstArrayRef___closed__7 = _init_l_Lean_Parser_Term_structInstArrayRef___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___closed__7); +l_Lean_Parser_Term_structInstArrayRef___closed__8 = _init_l_Lean_Parser_Term_structInstArrayRef___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef___closed__8); +l_Lean_Parser_Term_structInstArrayRef = _init_l_Lean_Parser_Term_structInstArrayRef(); +lean_mark_persistent(l_Lean_Parser_Term_structInstArrayRef); +l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1 = _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1(); +lean_mark_persistent(l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__1); +l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__2 = _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__2(); +lean_mark_persistent(l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__2); +l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__3 = _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__3(); +lean_mark_persistent(l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__3); +l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__4 = _init_l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__4(); +lean_mark_persistent(l_Lean_Parser_manyAux___main___at_Lean_Parser_Term_structInstLVal___elambda__1___spec__1___closed__4); +l_Lean_Parser_Term_structInstLVal___closed__1 = _init_l_Lean_Parser_Term_structInstLVal___closed__1(); +lean_mark_persistent(l_Lean_Parser_Term_structInstLVal___closed__1); +l_Lean_Parser_Term_structInstLVal___closed__2 = _init_l_Lean_Parser_Term_structInstLVal___closed__2(); +lean_mark_persistent(l_Lean_Parser_Term_structInstLVal___closed__2); +l_Lean_Parser_Term_structInstLVal___closed__3 = _init_l_Lean_Parser_Term_structInstLVal___closed__3(); +lean_mark_persistent(l_Lean_Parser_Term_structInstLVal___closed__3); +l_Lean_Parser_Term_structInstLVal___closed__4 = _init_l_Lean_Parser_Term_structInstLVal___closed__4(); +lean_mark_persistent(l_Lean_Parser_Term_structInstLVal___closed__4); +l_Lean_Parser_Term_structInstLVal___closed__5 = _init_l_Lean_Parser_Term_structInstLVal___closed__5(); +lean_mark_persistent(l_Lean_Parser_Term_structInstLVal___closed__5); +l_Lean_Parser_Term_structInstLVal___closed__6 = _init_l_Lean_Parser_Term_structInstLVal___closed__6(); +lean_mark_persistent(l_Lean_Parser_Term_structInstLVal___closed__6); +l_Lean_Parser_Term_structInstLVal___closed__7 = _init_l_Lean_Parser_Term_structInstLVal___closed__7(); +lean_mark_persistent(l_Lean_Parser_Term_structInstLVal___closed__7); +l_Lean_Parser_Term_structInstLVal___closed__8 = _init_l_Lean_Parser_Term_structInstLVal___closed__8(); +lean_mark_persistent(l_Lean_Parser_Term_structInstLVal___closed__8); +l_Lean_Parser_Term_structInstLVal = _init_l_Lean_Parser_Term_structInstLVal(); +lean_mark_persistent(l_Lean_Parser_Term_structInstLVal); l_Lean_Parser_Term_structInstField___elambda__1___closed__1 = _init_l_Lean_Parser_Term_structInstField___elambda__1___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_structInstField___elambda__1___closed__1); l_Lean_Parser_Term_structInstField___elambda__1___closed__2 = _init_l_Lean_Parser_Term_structInstField___elambda__1___closed__2(); @@ -38240,22 +39045,6 @@ l_Lean_Parser_Term_listLit___elambda__1___closed__3 = _init_l_Lean_Parser_Term_l lean_mark_persistent(l_Lean_Parser_Term_listLit___elambda__1___closed__3); l_Lean_Parser_Term_listLit___elambda__1___closed__4 = _init_l_Lean_Parser_Term_listLit___elambda__1___closed__4(); lean_mark_persistent(l_Lean_Parser_Term_listLit___elambda__1___closed__4); -l_Lean_Parser_Term_listLit___elambda__1___closed__5 = _init_l_Lean_Parser_Term_listLit___elambda__1___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_listLit___elambda__1___closed__5); -l_Lean_Parser_Term_listLit___elambda__1___closed__6 = _init_l_Lean_Parser_Term_listLit___elambda__1___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_listLit___elambda__1___closed__6); -l_Lean_Parser_Term_listLit___elambda__1___closed__7 = _init_l_Lean_Parser_Term_listLit___elambda__1___closed__7(); -lean_mark_persistent(l_Lean_Parser_Term_listLit___elambda__1___closed__7); -l_Lean_Parser_Term_listLit___elambda__1___closed__8 = _init_l_Lean_Parser_Term_listLit___elambda__1___closed__8(); -lean_mark_persistent(l_Lean_Parser_Term_listLit___elambda__1___closed__8); -l_Lean_Parser_Term_listLit___elambda__1___closed__9 = _init_l_Lean_Parser_Term_listLit___elambda__1___closed__9(); -lean_mark_persistent(l_Lean_Parser_Term_listLit___elambda__1___closed__9); -l_Lean_Parser_Term_listLit___elambda__1___closed__10 = _init_l_Lean_Parser_Term_listLit___elambda__1___closed__10(); -lean_mark_persistent(l_Lean_Parser_Term_listLit___elambda__1___closed__10); -l_Lean_Parser_Term_listLit___elambda__1___closed__11 = _init_l_Lean_Parser_Term_listLit___elambda__1___closed__11(); -lean_mark_persistent(l_Lean_Parser_Term_listLit___elambda__1___closed__11); -l_Lean_Parser_Term_listLit___elambda__1___closed__12 = _init_l_Lean_Parser_Term_listLit___elambda__1___closed__12(); -lean_mark_persistent(l_Lean_Parser_Term_listLit___elambda__1___closed__12); l_Lean_Parser_Term_listLit___closed__1 = _init_l_Lean_Parser_Term_listLit___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_listLit___closed__1); l_Lean_Parser_Term_listLit___closed__2 = _init_l_Lean_Parser_Term_listLit___closed__2(); @@ -38274,8 +39063,6 @@ l_Lean_Parser_Term_listLit___closed__8 = _init_l_Lean_Parser_Term_listLit___clos lean_mark_persistent(l_Lean_Parser_Term_listLit___closed__8); l_Lean_Parser_Term_listLit___closed__9 = _init_l_Lean_Parser_Term_listLit___closed__9(); lean_mark_persistent(l_Lean_Parser_Term_listLit___closed__9); -l_Lean_Parser_Term_listLit___closed__10 = _init_l_Lean_Parser_Term_listLit___closed__10(); -lean_mark_persistent(l_Lean_Parser_Term_listLit___closed__10); l_Lean_Parser_Term_listLit = _init_l_Lean_Parser_Term_listLit(); lean_mark_persistent(l_Lean_Parser_Term_listLit); res = l___regBuiltinParser_Lean_Parser_Term_listLit(lean_io_mk_world()); @@ -38492,10 +39279,6 @@ l_Lean_Parser_Term_instBinder___closed__5 = _init_l_Lean_Parser_Term_instBinder_ lean_mark_persistent(l_Lean_Parser_Term_instBinder___closed__5); l_Lean_Parser_Term_instBinder___closed__6 = _init_l_Lean_Parser_Term_instBinder___closed__6(); lean_mark_persistent(l_Lean_Parser_Term_instBinder___closed__6); -l_Lean_Parser_Term_instBinder___closed__7 = _init_l_Lean_Parser_Term_instBinder___closed__7(); -lean_mark_persistent(l_Lean_Parser_Term_instBinder___closed__7); -l_Lean_Parser_Term_instBinder___closed__8 = _init_l_Lean_Parser_Term_instBinder___closed__8(); -lean_mark_persistent(l_Lean_Parser_Term_instBinder___closed__8); l_Lean_Parser_Term_instBinder = _init_l_Lean_Parser_Term_instBinder(); lean_mark_persistent(l_Lean_Parser_Term_instBinder); l_Lean_Parser_Term_depArrow___elambda__1___closed__1 = _init_l_Lean_Parser_Term_depArrow___elambda__1___closed__1(); @@ -39468,10 +40251,6 @@ l_Lean_Parser_Term_proj___elambda__1___closed__3 = _init_l_Lean_Parser_Term_proj lean_mark_persistent(l_Lean_Parser_Term_proj___elambda__1___closed__3); l_Lean_Parser_Term_proj___elambda__1___closed__4 = _init_l_Lean_Parser_Term_proj___elambda__1___closed__4(); lean_mark_persistent(l_Lean_Parser_Term_proj___elambda__1___closed__4); -l_Lean_Parser_Term_proj___elambda__1___closed__5 = _init_l_Lean_Parser_Term_proj___elambda__1___closed__5(); -lean_mark_persistent(l_Lean_Parser_Term_proj___elambda__1___closed__5); -l_Lean_Parser_Term_proj___elambda__1___closed__6 = _init_l_Lean_Parser_Term_proj___elambda__1___closed__6(); -lean_mark_persistent(l_Lean_Parser_Term_proj___elambda__1___closed__6); l_Lean_Parser_Term_proj___closed__1 = _init_l_Lean_Parser_Term_proj___closed__1(); lean_mark_persistent(l_Lean_Parser_Term_proj___closed__1); l_Lean_Parser_Term_proj___closed__2 = _init_l_Lean_Parser_Term_proj___closed__2();