diff --git a/stage0/src/Init/Coe.lean b/stage0/src/Init/Coe.lean index 2da50508a9..5ecf9f7cba 100644 --- a/stage0/src/Init/Coe.lean +++ b/stage0/src/Init/Coe.lean @@ -53,17 +53,26 @@ class HasCoeToSort (a : Sort u) : Type (max u (v+1)) := @[inline] def liftT {a : Sort u} {b : Sort v} [HasLiftT a b] : a → b := @HasLiftT.lift a b _ -@[inline] def coeB {a : Sort u} {b : Sort v} [HasCoe a b] : a → b := +@[inline] def oldCoeB {a : Sort u} {b : Sort v} [HasCoe a b] : a → b := @HasCoe.coe a b _ -@[inline] def coeT {a : Sort u} {b : Sort v} [HasCoeT a b] : a → b := +@[inline] def oldCoeT {a : Sort u} {b : Sort v} [HasCoeT a b] : a → b := @HasCoeT.coe a b _ -@[inline] def coeFnB {a : Sort u} [HasCoeToFun.{u, v} a] : ∀ (x : a), HasCoeToFun.F.{u, v} x := +@[inline] def oldCoeFnB {a : Sort u} [HasCoeToFun.{u, v} a] : ∀ (x : a), HasCoeToFun.F.{u, v} x := HasCoeToFun.coe /- User Level coercion operators -/ +@[reducible, inline] def oldCoe {a : Sort u} {b : Sort v} [HasLiftT a b] : a → b := +liftT + +@[reducible, inline] def oldCoeFn {a : Sort u} [HasCoeToFun.{u, v} a] : ∀ (x : a), HasCoeToFun.F.{u, v} x := +HasCoeToFun.coe + +@[reducible, inline] def oldCoeSort {a : Sort u} [HasCoeToSort.{u, v} a] : a → HasCoeToSort.S.{u, v} a := +HasCoeToSort.coe + @[reducible, inline] def coe {a : Sort u} {b : Sort v} [HasLiftT a b] : a → b := liftT @@ -86,10 +95,10 @@ instance liftRefl {a : Sort u} : HasLiftT a a := ⟨id⟩ instance coeTrans {a : Sort u₁} {b : Sort u₂} {c : Sort u₃} [HasCoeT b c] [HasCoe a b] : HasCoeT a c := -⟨fun x => coeT (coeB x : b)⟩ +⟨fun x => oldCoeT (oldCoeB x : b)⟩ instance coeBase {a : Sort u} {b : Sort v} [HasCoe a b] : HasCoeT a b := -⟨coeB⟩ +⟨oldCoeB⟩ /- We add this instance directly into HasCoeT to avoid non-termination. @@ -117,23 +126,27 @@ class HasCoeTAux (a : Sort u) (b : Sort v) := (coe : a → b) instance coeTransAux {a : Sort u₁} {b : Sort u₂} {c : Sort u₃} [HasCoeTAux b c] [HasCoe a b] : HasCoeTAux a c := -⟨fun x => @HasCoeTAux.coe b c _ (coeB x)⟩ +⟨fun x => @HasCoeTAux.coe b c _ (oldCoeB x)⟩ instance coeBaseAux {a : Sort u} {b : Sort v} [HasCoe a b] : HasCoeTAux a b := -⟨coeB⟩ +⟨oldCoeB⟩ instance coeFnTrans {a : Sort u₁} {b : Sort u₂} [HasCoeToFun.{u₂, u₃} b] [HasCoeTAux a b] : HasCoeToFun.{u₁, u₃} a := { F := fun x => @HasCoeToFun.F.{u₂, u₃} b _ (@HasCoeTAux.coe a b _ x), - coe := fun x => coeFn (@HasCoeTAux.coe a b _ x) } + coe := fun x => oldCoeFn (@HasCoeTAux.coe a b _ x) } instance coeSortTrans {a : Sort u₁} {b : Sort u₂} [HasCoeToSort.{u₂, u₃} b] [HasCoeTAux a b] : HasCoeToSort.{u₁, u₃} a := { S := HasCoeToSort.S.{u₂, u₃} b, - coe := fun x => coeSort (@HasCoeTAux.coe a b _ x) } + coe := fun x => oldCoeSort (@HasCoeTAux.coe a b _ x) } /- Every coercion is also a lift -/ instance coeToLift {a : Sort u} {b : Sort v} [HasCoeT a b] : HasLiftT a b := -⟨coeT⟩ +⟨oldCoeT⟩ + +instance oldCoeToLift {a : Sort u} {b : Sort v} [HasCoeT a b] : HasLiftT a b := +⟨oldCoeT⟩ + /- basic coercions -/ @@ -148,7 +161,7 @@ instance coeBoolToProp : HasCoe Bool Prop := @[reducible] instance coeSortBool : HasCoeToSort Bool := ⟨Prop, fun y => y = true⟩ -instance coeDecidableEq (x : Bool) : Decidable (coe x) := +instance coeDecidableEq (x : Bool) : Decidable (oldCoe x) := inferInstanceAs (Decidable (x = true)) instance coeSubtype {a : Sort u} {p : a → Prop} : HasCoe {x // p x} a := @@ -161,22 +174,22 @@ universes ua ua₁ ua₂ ub ub₁ ub₂ /- Remark: we can't use [HasLiftT a₂ a₁] since it will produce non-termination whenever a type class resolution problem does not have a solution. -/ instance liftFn {a₁ : Sort ua₁} {a₂ : Sort ua₂} {b₁ : Sort ub₁} {b₂ : Sort ub₂} [HasLiftT b₁ b₂] [HasLift a₂ a₁] : HasLift (a₁ → b₁) (a₂ → b₂) := -⟨fun f x => coe (f (coe x))⟩ +⟨fun f x => oldCoe (f (oldCoe x))⟩ instance liftFnRange {a : Sort ua} {b₁ : Sort ub₁} {b₂ : Sort ub₂} [HasLiftT b₁ b₂] : HasLift (a → b₁) (a → b₂) := -⟨fun f x => coe (f x)⟩ +⟨fun f x => oldCoe (f x)⟩ instance liftFnDom {a₁ : Sort ua₁} {a₂ : Sort ua₂} {b : Sort ub} [HasLift a₂ a₁] : HasLift (a₁ → b) (a₂ → b) := -⟨fun f x => f (coe x)⟩ +⟨fun f x => f (oldCoe x)⟩ instance liftPair {a₁ : Type ua₁} {a₂ : Type ub₂} {b₁ : Type ub₁} {b₂ : Type ub₂} [HasLiftT a₁ a₂] [HasLiftT b₁ b₂] : HasLift (a₁ × b₁) (a₂ × b₂) := -⟨fun p => Prod.casesOn p (fun x y => (coe x, coe y))⟩ +⟨fun p => Prod.casesOn p (fun x y => (oldCoe x, oldCoe y))⟩ instance liftPair₁ {a₁ : Type ua₁} {a₂ : Type ua₂} {b : Type ub} [HasLiftT a₁ a₂] : HasLift (a₁ × b) (a₂ × b) := -⟨fun p => Prod.casesOn p (fun x y => (coe x, y))⟩ +⟨fun p => Prod.casesOn p (fun x y => (oldCoe x, y))⟩ instance liftPair₂ {a : Type ua} {b₁ : Type ub₁} {b₂ : Type ub₂} [HasLiftT b₁ b₂] : HasLift (a × b₁) (a × b₂) := -⟨fun p => Prod.casesOn p (fun x y => (x, coe y))⟩ +⟨fun p => Prod.casesOn p (fun x y => (x, oldCoe y))⟩ instance liftList {a : Type u} {b : Type v} [HasLiftT a b] : HasLift (List a) (List b) := -⟨fun l => List.map (@coe a b _) l⟩ +⟨fun l => List.map (@oldCoe a b _) l⟩ diff --git a/stage0/src/Init/Control/Except.lean b/stage0/src/Init/Control/Except.lean index 6e5ad2c9c4..d4435961cc 100644 --- a/stage0/src/Init/Control/Except.lean +++ b/stage0/src/Init/Control/Except.lean @@ -145,9 +145,6 @@ instance [MonadExcept ε m] {α : Type v} : HasOrelse (m α) := @[inline] def orelse' [MonadExcept ε m] {α : Type v} (t₁ t₂ : m α) (useFirstEx := true) : m α := catch t₁ $ fun e₁ => catch t₂ $ fun e₂ => throw (if useFirstEx then e₁ else e₂) -@[inline] def liftExcept {ε' : Type u} [MonadExcept ε m] [HasLiftT ε' ε] [Monad m] {α : Type v} : Except ε' α → m α -| Except.error e => throw (coe e) -| Except.ok a => pure a end MonadExcept export MonadExcept (throw catch) diff --git a/stage0/src/Init/Lean/Elab/BuiltinNotation.lean b/stage0/src/Init/Lean/Elab/BuiltinNotation.lean index 584fdb9540..0bb5d4897c 100644 --- a/stage0/src/Init/Lean/Elab/BuiltinNotation.lean +++ b/stage0/src/Init/Lean/Elab/BuiltinNotation.lean @@ -40,29 +40,29 @@ adaptExpander $ fun stx => match_syntax stx with | `({ $x // $p }) => `(Subtype (fun ($x:ident : _) => $p)) | _ => throwUnsupportedSyntax -@[builtinTermElab anonymousCtor] def elabAnoymousCtor : TermElab := -fun stx expectedType? => do -let ref := stx; -tryPostponeIfNoneOrMVar expectedType?; -match expectedType? with -| none => throwError ref "invalid constructor ⟨...⟩, expected type must be known" -| some expectedType => do - expectedType ← instantiateMVars ref expectedType; - let expectedType := expectedType.consumeMData; - match expectedType.getAppFn with - | Expr.const constName _ _ => do - env ← getEnv; - match env.find? constName with - | some (ConstantInfo.inductInfo val) => - if val.ctors.length != 1 then - throwError ref ("invalid constructor ⟨...⟩, '" ++ constName ++ "' must have only one constructor") - else - let ctor := mkCTermIdFrom ref val.ctors.head!; - let args := (stx.getArg 1).getArgs.getEvenElems; do - let newStx := mkAppStx ctor args; - withMacroExpansion ref newStx $ elabTerm newStx expectedType? - | _ => throwError ref ("invalid constructor ⟨...⟩, '" ++ constName ++ "' is not an inductive type") - | _ => throwError ref ("invalid constructor ⟨...⟩, expected type is not an inductive type " ++ indentExpr expectedType) +@[builtinTermElab anonymousCtor] def elabAnonymousCtor : TermElab := +fun stx expectedType? => match_syntax stx with +| `(⟨$args*⟩) => do + let ref := stx; + tryPostponeIfNoneOrMVar expectedType?; + match expectedType? with + | some expectedType => do + expectedType ← instantiateMVars ref expectedType; + let expectedType := expectedType.consumeMData; + match expectedType.getAppFn with + | Expr.const constName _ _ => do + env ← getEnv; + match env.find? constName with + | some (ConstantInfo.inductInfo val) => + match val.ctors with + | [ctor] => do + stx ← `($(mkCTermIdFrom ref ctor) $(args.getSepElems)*); + withMacroExpansion ref stx $ elabTerm stx expectedType? + | _ => throwError ref ("invalid constructor ⟨...⟩, '" ++ constName ++ "' must have only one constructor") + | _ => throwError ref ("invalid constructor ⟨...⟩, '" ++ constName ++ "' is not an inductive type") + | _ => throwError ref ("invalid constructor ⟨...⟩, expected type is not an inductive type " ++ indentExpr expectedType) + | none => throwError ref "invalid constructor ⟨...⟩, expected type must be known" +| _ => throwUnsupportedSyntax @[builtinTermElab «show»] def elabShow : TermElab := adaptExpander $ fun stx => match_syntax stx with diff --git a/stage0/src/Init/Lean/Elab/Quotation.lean b/stage0/src/Init/Lean/Elab/Quotation.lean index e3d72608e0..900f530950 100644 --- a/stage0/src/Init/Lean/Elab/Quotation.lean +++ b/stage0/src/Init/Lean/Elab/Quotation.lean @@ -276,7 +276,7 @@ private partial def compileStxMatch (ref : Syntax) : List Syntax → List Alt cond ← match info.argPats with | some pats => `(Syntax.isOfKind discr $(quote kind) && Array.size (Syntax.getArgs discr) == $(quote pats.size)) | none => `(Syntax.isOfKind discr $(quote kind)); - `(let discr := $discr; if coe $cond then $yes else $no) + `(let discr := $discr; if $cond = true then $yes else $no) | _, _ => unreachable! private partial def getPatternVarsAux : Syntax → List Syntax @@ -413,6 +413,9 @@ private unsafe partial def toPreterm : Syntax → TermElabM Expr | `Lean.Parser.Term.beq => let lhs := args.get! 0; let rhs := args.get! 2; toPreterm $ Unhygienic.run `(HasBeq.beq $lhs $rhs) + | `Lean.Parser.Term.eq => + let lhs := args.get! 0; let rhs := args.get! 2; + toPreterm $ Unhygienic.run `(Eq $lhs $rhs) | `Lean.Parser.Term.str => pure $ mkStrLit $ (stx.getArg 0).isStrLit?.getD "" | `Lean.Parser.Term.num => pure $ mkNatLit $ (stx.getArg 0).isNatLit?.getD 0 | `expr => pure $ unsafeCast $ stx.getArg 0 -- HACK: see below diff --git a/stage0/src/Init/Lean/Environment.lean b/stage0/src/Init/Lean/Environment.lean index 79abe699e0..9281f0c30b 100644 --- a/stage0/src/Init/Lean/Environment.lean +++ b/stage0/src/Init/Lean/Environment.lean @@ -478,6 +478,8 @@ partial def importModulesAux : List Import → (NameSet × Array ModuleData) → else do let s := s.insert i.module; mFile ← findOLean i.module; + unlessM (IO.fileExists mFile) $ + throw $ IO.userError $ "object file '" ++ mFile ++ "' of module " ++ toString i.module ++ " does not exist"; mod ← readModuleData mFile; (s, mods) ← importModulesAux mod.imports.toList (s, mods); let mods := mods.push mod; diff --git a/stage0/src/frontends/lean/elaborator.cpp b/stage0/src/frontends/lean/elaborator.cpp index afd7ee462d..9be90484c6 100644 --- a/stage0/src/frontends/lean/elaborator.cpp +++ b/stage0/src/frontends/lean/elaborator.cpp @@ -703,8 +703,8 @@ optional elaborator::mk_coercion_core(expr const & e, expr const & e_type, } level u_1 = get_level(e_type, ref); level u_2 = get_level(type, ref); - expr coe_to_lift = mk_app(mk_constant(get_coe_to_lift_name(), {u_1, u_2}), e_type, type, *inst); - expr coe = mk_app(mk_constant(get_coe_name(), {u_1, u_2}), e_type, type, coe_to_lift, e); + expr coe_to_lift = mk_app(mk_constant(get_old_coe_to_lift_name(), {u_1, u_2}), e_type, type, *inst); + expr coe = mk_app(mk_constant(get_old_coe_name(), {u_1, u_2}), e_type, type, coe_to_lift, e); return some_expr(coe); } else { return none_expr(); @@ -897,7 +897,7 @@ optional elaborator::mk_coercion_to_fn_sort(bool is_fn, expr const & e, ex try { bool mask[3] = { true, false, true }; expr args[2] = { e_type, e }; - expr new_e = mk_app(m_ctx, is_fn ? get_coe_fn_name() : get_coe_sort_name(), 3, mask, args); + expr new_e = mk_app(m_ctx, is_fn ? get_old_coe_fn_name() : get_old_coe_sort_name(), 3, mask, args); expr new_e_type = whnf(infer_type(new_e)); if ((is_fn && is_pi(new_e_type)) || (!is_fn && is_sort(new_e_type))) { return some_expr(new_e); diff --git a/stage0/src/frontends/lean/pp.cpp b/stage0/src/frontends/lean/pp.cpp index cd0b4b2817..d265aa6e9c 100644 --- a/stage0/src/frontends/lean/pp.cpp +++ b/stage0/src/frontends/lean/pp.cpp @@ -457,11 +457,11 @@ auto pretty_fn::pp_child_core(expr const & e, unsigned bp, bool ignore_hide) -> } static bool is_coercion(expr const & e) { - return is_app_of(e, get_coe_name()) && get_app_num_args(e) >= 4; + return is_app_of(e, get_old_coe_name()) && get_app_num_args(e) >= 4; } static bool is_coercion_fn(expr const & e) { - return is_app_of(e, get_coe_fn_name()) && get_app_num_args(e) >= 3; + return is_app_of(e, get_old_coe_fn_name()) && get_app_num_args(e) >= 3; } auto pretty_fn::pp_hide_coercion(expr const & e, unsigned bp, bool ignore_hide) -> result { diff --git a/stage0/src/library/constants.cpp b/stage0/src/library/constants.cpp index 5b5f9ddc5b..a94b4e999c 100644 --- a/stage0/src/library/constants.cpp +++ b/stage0/src/library/constants.cpp @@ -26,10 +26,10 @@ name const * g_cast = nullptr; name const * g_char = nullptr; name const * g_char_mk = nullptr; name const * g_char_of_nat = nullptr; -name const * g_coe = nullptr; -name const * g_coe_fn = nullptr; -name const * g_coe_sort = nullptr; -name const * g_coe_to_lift = nullptr; +name const * g_old_coe = nullptr; +name const * g_old_coe_fn = nullptr; +name const * g_old_coe_sort = nullptr; +name const * g_old_coe_to_lift = nullptr; name const * g_congr = nullptr; name const * g_congr_arg = nullptr; name const * g_congr_fun = nullptr; @@ -217,10 +217,10 @@ void initialize_constants() { g_char = new name{"Char"}; g_char_mk = new name{"Char", "mk"}; g_char_of_nat = new name{"Char", "ofNat"}; - g_coe = new name{"coe"}; - g_coe_fn = new name{"coeFn"}; - g_coe_sort = new name{"coeSort"}; - g_coe_to_lift = new name{"coeToLift"}; + g_old_coe = new name{"oldCoe"}; + g_old_coe_fn = new name{"oldCoeFn"}; + g_old_coe_sort = new name{"oldCoeSort"}; + g_old_coe_to_lift = new name{"oldCoeToLift"}; g_congr = new name{"congr"}; g_congr_arg = new name{"congrArg"}; g_congr_fun = new name{"congrFun"}; @@ -409,10 +409,10 @@ void finalize_constants() { delete g_char; delete g_char_mk; delete g_char_of_nat; - delete g_coe; - delete g_coe_fn; - delete g_coe_sort; - delete g_coe_to_lift; + delete g_old_coe; + delete g_old_coe_fn; + delete g_old_coe_sort; + delete g_old_coe_to_lift; delete g_congr; delete g_congr_arg; delete g_congr_fun; @@ -600,10 +600,10 @@ name const & get_cast_name() { return *g_cast; } name const & get_char_name() { return *g_char; } name const & get_char_mk_name() { return *g_char_mk; } name const & get_char_of_nat_name() { return *g_char_of_nat; } -name const & get_coe_name() { return *g_coe; } -name const & get_coe_fn_name() { return *g_coe_fn; } -name const & get_coe_sort_name() { return *g_coe_sort; } -name const & get_coe_to_lift_name() { return *g_coe_to_lift; } +name const & get_old_coe_name() { return *g_old_coe; } +name const & get_old_coe_fn_name() { return *g_old_coe_fn; } +name const & get_old_coe_sort_name() { return *g_old_coe_sort; } +name const & get_old_coe_to_lift_name() { return *g_old_coe_to_lift; } name const & get_congr_name() { return *g_congr; } name const & get_congr_arg_name() { return *g_congr_arg; } name const & get_congr_fun_name() { return *g_congr_fun; } diff --git a/stage0/src/library/constants.h b/stage0/src/library/constants.h index a7f7c1a58a..d7106bdac6 100644 --- a/stage0/src/library/constants.h +++ b/stage0/src/library/constants.h @@ -28,10 +28,10 @@ name const & get_cast_name(); name const & get_char_name(); name const & get_char_mk_name(); name const & get_char_of_nat_name(); -name const & get_coe_name(); -name const & get_coe_fn_name(); -name const & get_coe_sort_name(); -name const & get_coe_to_lift_name(); +name const & get_old_coe_name(); +name const & get_old_coe_fn_name(); +name const & get_old_coe_sort_name(); +name const & get_old_coe_to_lift_name(); name const & get_congr_name(); name const & get_congr_arg_name(); name const & get_congr_fun_name(); diff --git a/stage0/src/library/constants.txt b/stage0/src/library/constants.txt index 18bc7c0488..8076853049 100644 --- a/stage0/src/library/constants.txt +++ b/stage0/src/library/constants.txt @@ -21,10 +21,10 @@ cast Char Char.mk Char.ofNat -coe -coeFn -coeSort -coeToLift +oldCoe +oldCoeFn +oldCoeSort +oldCoeToLift congr congrArg congrFun diff --git a/stage0/stdlib/Init/Coe.c b/stage0/stdlib/Init/Coe.c index 23c4e71212..9810a4a3fa 100644 --- a/stage0/stdlib/Init/Coe.c +++ b/stage0/stdlib/Init/Coe.c @@ -20,53 +20,61 @@ lean_object* l_liftPair_u2082(lean_object*, lean_object*, lean_object*); lean_object* l_coeToLift___rarg(lean_object*); lean_object* l_liftFn(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_map___main___at_liftList___spec__1___rarg(lean_object*, lean_object*); +lean_object* l_oldCoeSort___rarg(lean_object*, lean_object*); lean_object* l_liftPair(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_coeSubtype___rarg(lean_object*); lean_object* l_coeBoolToProp; lean_object* l_coeBase(lean_object*, lean_object*); +lean_object* l_oldCoeT___rarg(lean_object*, lean_object*); lean_object* l_coeTrans(lean_object*, lean_object*, lean_object*); -lean_object* l_coeB___rarg(lean_object*, lean_object*); -lean_object* l_coeT(lean_object*, lean_object*); lean_object* l_coeFnTrans___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_liftList(lean_object*, lean_object*); lean_object* l_lift(lean_object*, lean_object*); +lean_object* l_oldCoeFnB___rarg(lean_object*, lean_object*); lean_object* l_liftRefl(lean_object*); lean_object* l_liftPair_u2081(lean_object*, lean_object*, lean_object*); lean_object* l_coeSortTrans(lean_object*, lean_object*); lean_object* l_liftPair_u2082___rarg(lean_object*, lean_object*); +lean_object* l_oldCoeFn(lean_object*); lean_object* l_coeSort___rarg(lean_object*, lean_object*); lean_object* l_liftPair___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_coeBaseAux(lean_object*, lean_object*); +lean_object* l_oldCoe(lean_object*, lean_object*); +lean_object* l_oldCoeFn___rarg(lean_object*, lean_object*); lean_object* l_coeFn(lean_object*); extern lean_object* l_Nat_HasOfNat___closed__1; +lean_object* l_oldCoe___rarg(lean_object*, lean_object*); lean_object* l_List_map___main___at_liftList___spec__1(lean_object*, lean_object*); +lean_object* l_oldCoeToLift(lean_object*, lean_object*); lean_object* l_liftT(lean_object*, lean_object*); lean_object* l_coeOption(lean_object*); lean_object* l_liftTrans___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_oldCoeB___rarg(lean_object*, lean_object*); lean_object* l_coeSubtype___boxed(lean_object*, lean_object*); lean_object* l_liftFnRange(lean_object*, lean_object*, lean_object*); lean_object* l_liftTrans(lean_object*, lean_object*, lean_object*); lean_object* l_coeTransAux(lean_object*, lean_object*, lean_object*); lean_object* l_liftFnDom___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_coeFnB___rarg(lean_object*, lean_object*); +lean_object* l_oldCoeSort(lean_object*); lean_object* l_coeFn___rarg(lean_object*, lean_object*); uint8_t l_coeDecidableEq(uint8_t); lean_object* l_coeSubtype___rarg___boxed(lean_object*); lean_object* l_coe___rarg(lean_object*, lean_object*); lean_object* l_liftFnDom(lean_object*, lean_object*, lean_object*); lean_object* l_coeTransAux___rarg(lean_object*, lean_object*, lean_object*); +lean_object* l_oldCoeFnB(lean_object*); lean_object* l_coe(lean_object*, lean_object*); lean_object* l_coeSortTrans___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_coeDecidableEq___boxed(lean_object*); lean_object* l_coeFnTrans(lean_object*, lean_object*); lean_object* l_liftPair_u2081___rarg(lean_object*, lean_object*); lean_object* l_coeTrans___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_coeFnB(lean_object*); -lean_object* l_coeB(lean_object*, lean_object*); lean_object* l_liftFn___rarg(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_coeT___rarg(lean_object*, lean_object*); +lean_object* l_oldCoeToLift___rarg(lean_object*); lean_object* l_coeSort(lean_object*); lean_object* l_coeSortBool; +lean_object* l_oldCoeT(lean_object*, lean_object*); +lean_object* l_oldCoeB(lean_object*, lean_object*); lean_object* l_coeToLift(lean_object*, lean_object*); lean_object* l_liftFnRange___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_lift___rarg(lean_object*, lean_object*); @@ -105,7 +113,7 @@ x_3 = lean_alloc_closure((void*)(l_liftT___rarg), 2, 0); return x_3; } } -lean_object* l_coeB___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_oldCoeB___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -113,15 +121,15 @@ x_3 = lean_apply_1(x_1, x_2); return x_3; } } -lean_object* l_coeB(lean_object* x_1, lean_object* x_2) { +lean_object* l_oldCoeB(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_coeB___rarg), 2, 0); +x_3 = lean_alloc_closure((void*)(l_oldCoeB___rarg), 2, 0); return x_3; } } -lean_object* l_coeT___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_oldCoeT___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -129,15 +137,15 @@ x_3 = lean_apply_1(x_1, x_2); return x_3; } } -lean_object* l_coeT(lean_object* x_1, lean_object* x_2) { +lean_object* l_oldCoeT(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_coeT___rarg), 2, 0); +x_3 = lean_alloc_closure((void*)(l_oldCoeT___rarg), 2, 0); return x_3; } } -lean_object* l_coeFnB___rarg(lean_object* x_1, lean_object* x_2) { +lean_object* l_oldCoeFnB___rarg(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; @@ -145,11 +153,59 @@ x_3 = lean_apply_1(x_1, x_2); return x_3; } } -lean_object* l_coeFnB(lean_object* x_1) { +lean_object* l_oldCoeFnB(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_coeFnB___rarg), 2, 0); +x_2 = lean_alloc_closure((void*)(l_oldCoeFnB___rarg), 2, 0); +return x_2; +} +} +lean_object* l_oldCoe___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_1, x_2); +return x_3; +} +} +lean_object* l_oldCoe(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_oldCoe___rarg), 2, 0); +return x_3; +} +} +lean_object* l_oldCoeFn___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_1, x_2); +return x_3; +} +} +lean_object* l_oldCoeFn(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_oldCoeFn___rarg), 2, 0); +return x_2; +} +} +lean_object* l_oldCoeSort___rarg(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_apply_1(x_1, x_2); +return x_3; +} +} +lean_object* l_oldCoeSort(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_oldCoeSort___rarg), 2, 0); return x_2; } } @@ -247,7 +303,7 @@ lean_object* l_coeBase___rarg(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_coeB___rarg), 2, 1); +x_2 = lean_alloc_closure((void*)(l_oldCoeB___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } @@ -298,7 +354,7 @@ lean_object* l_coeBaseAux___rarg(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_coeB___rarg), 2, 1); +x_2 = lean_alloc_closure((void*)(l_oldCoeB___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } @@ -349,7 +405,7 @@ lean_object* l_coeToLift___rarg(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_coeT___rarg), 2, 1); +x_2 = lean_alloc_closure((void*)(l_oldCoeT___rarg), 2, 1); lean_closure_set(x_2, 0, x_1); return x_2; } @@ -362,6 +418,23 @@ x_3 = lean_alloc_closure((void*)(l_coeToLift___rarg), 1, 0); return x_3; } } +lean_object* l_oldCoeToLift___rarg(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_oldCoeT___rarg), 2, 1); +lean_closure_set(x_2, 0, x_1); +return x_2; +} +} +lean_object* l_oldCoeToLift(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_oldCoeToLift___rarg), 1, 0); +return x_3; +} +} lean_object* _init_l_coeBoolToProp() { _start: { diff --git a/stage0/stdlib/Init/Control/Except.c b/stage0/stdlib/Init/Control/Except.c index d7013dd3dd..e0ffce03da 100644 --- a/stage0/stdlib/Init/Control/Except.c +++ b/stage0/stdlib/Init/Control/Except.c @@ -25,7 +25,6 @@ lean_object* l_ExceptT_pure(lean_object*, lean_object*); lean_object* l_Except_Monad___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ExceptT_MonadFail___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_ExceptT_lift___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_MonadExcept_liftExcept___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_ExceptT_adapt___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ExceptT_map___boxed(lean_object*, lean_object*); lean_object* l_ExceptT_MonadFunctor___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -42,7 +41,6 @@ lean_object* l_Except_toOption___rarg___boxed(lean_object*); lean_object* l_ExceptT_MonadExceptAdapter___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Except_bind(lean_object*, lean_object*, lean_object*); lean_object* l_ExceptT_MonadRun(lean_object*, lean_object*, lean_object*); -lean_object* l_MonadExcept_liftExcept___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_ExceptT_bindCont___at_ExceptT_Monad___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Except_Monad___closed__10; lean_object* l_ExceptT_catch___rarg___lambda__1(lean_object*, lean_object*, lean_object*); @@ -78,7 +76,6 @@ lean_object* l_ExceptT_bindCont(lean_object*, lean_object*); lean_object* l_ExceptT_bindCont___at_ExceptT_Monad___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Except_mapError___rarg(lean_object*, lean_object*); lean_object* l_finally___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_MonadExcept_liftExcept(lean_object*, lean_object*, lean_object*); lean_object* l_Except_toBool(lean_object*, lean_object*); lean_object* l_Except_toString___rarg___closed__2; lean_object* l_ExceptT_catch___boxed(lean_object*, lean_object*); @@ -2183,59 +2180,6 @@ lean_dec(x_2); return x_3; } } -lean_object* l_MonadExcept_liftExcept___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -if (lean_obj_tag(x_5) == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -lean_dec(x_3); -x_6 = lean_ctor_get(x_5, 0); -lean_inc(x_6); -lean_dec(x_5); -x_7 = lean_ctor_get(x_1, 0); -lean_inc(x_7); -lean_dec(x_1); -x_8 = lean_apply_1(x_2, x_6); -x_9 = lean_apply_2(x_7, lean_box(0), x_8); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -lean_dec(x_2); -lean_dec(x_1); -x_10 = lean_ctor_get(x_5, 0); -lean_inc(x_10); -lean_dec(x_5); -x_11 = lean_ctor_get(x_3, 0); -lean_inc(x_11); -lean_dec(x_3); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_apply_2(x_12, lean_box(0), x_10); -return x_13; -} -} -} -lean_object* l_MonadExcept_liftExcept(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = lean_alloc_closure((void*)(l_MonadExcept_liftExcept___rarg), 5, 0); -return x_4; -} -} -lean_object* l_MonadExcept_liftExcept___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_MonadExcept_liftExcept(x_1, x_2, x_3); -lean_dec(x_2); -return x_4; -} -} lean_object* l_ExceptT_MonadExcept___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { diff --git a/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c b/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c index 80b68ab3d5..2c88358283 100644 --- a/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c +++ b/stage0/stdlib/Init/Lean/Elab/BuiltinNotation.c @@ -50,6 +50,7 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBEq(lean_object*); lean_object* l_Lean_Elab_Term_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__23; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabNe___closed__3; +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__3; extern lean_object* l_Lean_Parser_Term_sub___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHEq___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabOr___closed__3; @@ -57,12 +58,12 @@ lean_object* l_Lean_Elab_Term_elabseqLeft___closed__2; lean_object* l_Lean_Elab_Term_elabMod___closed__2; lean_object* l_Lean_Elab_Term_elabPow(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabModN___closed__3; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__2; lean_object* l_Lean_Elab_Term_elabBOr___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabInfix(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__8; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__5; lean_object* l_Lean_Elab_Term_elabHave___closed__1; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__3; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__30; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabParserMacro___closed__1; extern lean_object* l_Lean_Parser_Term_eq___elambda__1___closed__2; @@ -72,15 +73,13 @@ lean_object* l_Lean_Elab_Term_elabInfixOp(lean_object*, lean_object*, lean_objec lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__18; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBNe(lean_object*); extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__1; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__15; lean_object* l_Lean_Elab_Term_getDeclName_x3f(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabOrElse___closed__1; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__14; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__1; lean_object* l_Lean_Elab_Term_elabBOr___closed__1; lean_object* l_Lean_Elab_Term_elabMul___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSub___closed__1; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__5; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__14; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabShow___closed__2; lean_object* l_Lean_Elab_Term_elabDollar___lambda__1___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_seqLeft___elambda__1___closed__1; @@ -89,6 +88,7 @@ lean_object* l_Lean_Elab_Term_elabseqLeft___closed__3; extern uint8_t l___private_Init_Lean_Elab_Term_4__isCDot___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnd(lean_object*); extern lean_object* l_Lean_Parser_Term_where___elambda__1___closed__2; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__11; lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__4; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSubtype___closed__1; extern lean_object* l_Lean_Parser_Term_seqLeft___elambda__1___closed__2; @@ -101,6 +101,7 @@ extern lean_object* l_Array_empty___closed__1; lean_object* l_Lean_Elab_Term_elabPow___closed__3; lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBAnd___closed__3; +extern lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__4; lean_object* l_Lean_Elab_Term_elabMod___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabIff___closed__1; extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__9; @@ -145,7 +146,6 @@ lean_object* l_Lean_Elab_Term_elabAndThen___closed__1; extern lean_object* l_Lean_Parser_Term_gt___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabEquiv(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn___main(lean_object*); -extern lean_object* l_Lean_Name_inhabited; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabOrElse___closed__3; lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__6; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__6; @@ -154,7 +154,6 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAdd___closed__2; lean_object* l_Lean_Elab_Term_elabLT___closed__3; extern lean_object* l_Lean_Parser_Term_typeAscription___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabDiv___closed__3; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__12; lean_object* l_Lean_Elab_Term_elabBNe(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabseq___closed__2; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__2; @@ -163,12 +162,14 @@ lean_object* lean_string_utf8_byte_size(lean_object*); extern lean_object* l_Lean_mkAppStx___closed__4; lean_object* l_Lean_Elab_Term_elabEquiv___closed__4; extern lean_object* l_Lean_Parser_Term_andM___elambda__1___closed__2; +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__2; lean_object* l_Lean_Elab_Term_elabLT___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDollarProj___closed__1; lean_object* l_Lean_Elab_Term_elabEquiv___closed__2; lean_object* l_Lean_Elab_Term_getMainModule___rarg(lean_object*); extern lean_object* l_Lean_Parser_Term_do___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabMod___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__6; lean_object* l_Lean_Elab_Term_elabAppend___closed__3; extern lean_object* l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__17; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabseqRight___closed__1; @@ -183,7 +184,6 @@ extern lean_object* l_Lean_mkAppStx___closed__8; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBAnd(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHEq(lean_object*); -extern lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__4; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMapConstRev(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAndThen___closed__3; lean_object* l_Lean_Elab_Term_elabMapRev(lean_object*, lean_object*, lean_object*, lean_object*); @@ -206,7 +206,6 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabPow(lean_object*); extern lean_object* l_Lean_Parser_Term_dollarProj___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabOr___closed__2; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__9; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__8; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLT___closed__3; lean_object* l_Lean_Elab_Term_elabMul___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabIff(lean_object*); @@ -216,15 +215,18 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHave___closed__2; extern lean_object* l_Lean_Parser_Term_div___elambda__1___closed__2; lean_object* lean_array_fget(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabGT___closed__1; lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabseq___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabModN(lean_object*); +extern lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__1; lean_object* l_Lean_Elab_Term_elabWhere___closed__1; lean_object* l_Lean_Elab_Term_elabMul(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabShow___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabseq___closed__2; +extern lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__3; extern lean_object* l_Lean_Parser_Term_band___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabseqRight___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHEq___closed__1; @@ -252,13 +254,11 @@ extern lean_object* l_Lean_Parser_Term_ge___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabseq___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabseqLeft___closed__2; lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__11; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__2; extern lean_object* l_Lean_Expr_heq_x3f___closed__2; lean_object* l_Lean_Elab_Term_elabDiv___closed__2; lean_object* l_Lean_Elab_Term_elabWhere___lambda__1(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_sub___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabDollarProj(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__1; extern lean_object* l_Lean_Parser_Term_seq___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__10; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabEq(lean_object*); @@ -272,18 +272,18 @@ extern lean_object* l_Lean_Parser_Term_doId___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabLE___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabOrElse(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabCons(lean_object*); -lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_equiv___elambda__1___closed__2; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__4; lean_object* l_Lean_Elab_Term_elabDiv___closed__1; lean_object* l_Lean_Elab_Term_elabBind(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__7; lean_object* l_Lean_Elab_Term_elabEquiv___closed__3; lean_object* l_Lean_Elab_Term_elabTParserMacro___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabShow___closed__3; -lean_object* l_List_head_x21___at_Lean_Elab_Term_elabAnoymousCtor___spec__1(lean_object*); lean_object* l_Lean_Elab_Term_ElabFComp(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDiv___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBNe___closed__3; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__8; lean_object* l_Lean_Elab_Term_elabProd___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTermAux___main(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_mod___elambda__1___closed__1; @@ -306,7 +306,6 @@ lean_object* l_Lean_Elab_Term_elabLE___closed__2; lean_object* l_Lean_Elab_Term_elabseqRight___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBOr___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabParserMacro___closed__3; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__4; lean_object* lean_name_mk_string(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDollarProj___lambda__1___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*); @@ -316,7 +315,6 @@ lean_object* l_Lean_Elab_Term_elabHEq(lean_object*, lean_object*, lean_object*, extern lean_object* l_Lean_Parser_Term_fun___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabMapConstRev(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabIf___closed__2; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__9; lean_object* l_Lean_Elab_Term_elabseqRight___closed__2; lean_object* l_Lean_Elab_Term_elabIff___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabLT___closed__2; @@ -328,11 +326,13 @@ extern lean_object* l_Lean_Parser_Term_orM___elambda__1___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDollar___closed__3; extern lean_object* l_Lean_Parser_Term_iff___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAppend___closed__3; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__9; lean_object* l_Lean_Elab_Term_elabLE(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabDollar___closed__1; extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__31; extern lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; lean_object* l_Lean_Elab_Term_elabOr___closed__1; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__3; extern lean_object* l_Lean_mkAppStx___closed__6; lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_elabMap___closed__3; @@ -346,6 +346,7 @@ uint8_t l_coeDecidableEq(uint8_t); extern lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteOption___rarg___closed__5; lean_object* l_Lean_Elab_Term_elabAppend___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__7; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__15; lean_object* l_Lean_Elab_Term_elabPow___closed__2; lean_object* l_Lean_Elab_Term_elabInfixOp___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBOr___closed__2; @@ -356,7 +357,6 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMapConst(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabGE___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMod___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMapRev(lean_object*); -extern lean_object* l_List_head_x21___rarg___closed__2; extern lean_object* l_Lean_Parser_Term_mapConstRev___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_beq___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBEq___closed__1; @@ -390,6 +390,7 @@ lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__4; lean_object* l_Lean_Elab_Term_elabBOr(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_seq___elambda__1___closed__1; extern lean_object* l_Lean_Parser_Term_haveAssign___elambda__1___closed__2; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__10; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMapConstRev___closed__3; lean_object* l_Lean_Elab_Term_elabAndM(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabOrElse___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -406,7 +407,6 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__3; lean_object* l_Lean_Elab_Term_elabDo___lambda__1___closed__3; extern lean_object* l_Lean_nullKind___closed__2; extern lean_object* l_Lean_Parser_Term_heq___elambda__1___closed__2; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__11; lean_object* l_Lean_Elab_Term_elabBEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAppend___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabWhere___closed__2; @@ -439,6 +439,7 @@ lean_object* l_Lean_Elab_Term_elabAnd___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabEq___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHave___closed__3; extern lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__12; lean_object* l_Lean_Elab_Term_elabShow___lambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBind(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabGT___closed__3; @@ -467,10 +468,10 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabCons___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDollarProj___closed__3; lean_object* l_Lean_Elab_Term_elabSubtype___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__1; -lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabGE___boxed(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_seqRight___elambda__1___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLT(lean_object*); +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor(lean_object*); extern lean_object* l_Lean_Parser_Term_mapRev___elambda__1___closed__2; extern lean_object* l___private_Init_Util_1__mkPanicMessage___closed__2; lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__1; @@ -483,7 +484,6 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBNe___closed__2; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__32; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabSubtype(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBAnd___closed__1; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__6; lean_object* l_Lean_Elab_Term_adaptExpander(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabTParserMacro___closed__2; lean_object* l_Lean_mkStxStrLit(lean_object*, lean_object*); @@ -506,10 +506,12 @@ extern lean_object* l_Lean_mkAppStx___closed__9; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabseqRight___closed__2; extern lean_object* l_Lean_Parser_Term_and___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__13; extern lean_object* l_Lean_Parser_Term_doExpr___elambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__5; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabGT(lean_object*); extern lean_object* l_Lean_Parser_Term_mapRev___elambda__1___closed__1; +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__1; lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__6; lean_object* l_Lean_Elab_Term_elabDo___lambda__1___closed__1; lean_object* l_Lean_mkTermIdFrom(lean_object*, lean_object*); @@ -517,8 +519,6 @@ lean_object* l_Lean_Elab_Term_elabGT___closed__2; extern lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; lean_object* l_Lean_Expr_consumeMData___main(lean_object*); lean_object* l_Lean_Elab_Term_elabGT___closed__1; -lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__1; -lean_object* l_List_head_x21___at_Lean_Elab_Term_elabAnoymousCtor___spec__1___boxed(lean_object*); lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_elabGT___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabHEq___closed__3; @@ -527,7 +527,6 @@ lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__15; lean_object* l_Lean_Elab_Term_elabHEq___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabOrM(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_addBuiltinTermElab(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabAnoymousCtor(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAndThen___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabEquiv(lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabEq___closed__3; @@ -538,7 +537,6 @@ lean_object* l_Lean_Elab_Term_elabAndThen___closed__3; lean_object* l_Lean_Elab_Term_elabseqLeft(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabParserMacro(lean_object*); lean_object* l_Lean_Elab_Term_elabIf(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__13; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMul___closed__2; lean_object* l_Lean_Elab_Term_elabDo(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMapConst___closed__1; @@ -550,8 +548,10 @@ uint8_t l_List_beq___main___at_Lean_Elab_Term_elabParserMacro___spec__1(lean_obj lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabShow(lean_object*); lean_object* l_Lean_Elab_Term_elabseqRight___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabNe(lean_object*); +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__5; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabMul___closed__1; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabDo___closed__2; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__14; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabNe___closed__2; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabLT___closed__1; @@ -568,10 +568,9 @@ lean_object* l_Lean_mkCTermIdFrom(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__2; lean_object* l_Lean_Elab_Term_elabCons(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabMod(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__3; +lean_object* l_Lean_Elab_Term_elabAnonymousCtor___closed__7; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabOr___closed__1; extern lean_object* l_Lean_Parser_Term_map___elambda__1___closed__2; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__10; lean_object* l_Lean_Elab_Term_elabSubtype___lambda__1___closed__5; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_ElabFComp___closed__2; extern lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__2; @@ -597,7 +596,6 @@ extern lean_object* l_Lean_Parser_Term_bne___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabDollar(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabIf___lambda__1___closed__3; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__25; -extern lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1; extern lean_object* l_Lean_Parser_Term_map___elambda__1___closed__1; lean_object* l___private_Init_Data_Array_Basic_3__iterateRevMAux___main___at_Lean_Elab_Term_elabWhere___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabAndThen(lean_object*, lean_object*, lean_object*, lean_object*); @@ -611,13 +609,11 @@ lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabBind___closed__2; extern lean_object* l_Lean_Parser_Term_modN___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabEquiv___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAndM___closed__1; -lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__2; lean_object* l_Lean_Elab_Term_elabNe___closed__2; extern lean_object* l_Lean_Parser_Term_and___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__7; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabOrM(lean_object*); extern lean_object* l___private_Init_Lean_Elab_Term_9__mkPairsAux___main___closed__5; -lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor(lean_object*); lean_object* l_Lean_Elab_Term_elabNe(lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_orelse___elambda__1___closed__1; lean_object* l_Lean_Elab_Term_ElabFComp___closed__2; @@ -645,13 +641,11 @@ extern lean_object* l_Lean_Parser_Term_mod___elambda__1___closed__2; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAndM___closed__2; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__22; lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__9; -lean_object* l_Lean_Elab_Term_elabAnoymousCtor___closed__7; lean_object* l_Lean_Elab_Term_elabParserMacro___lambda__1___closed__33; lean_object* l_Lean_Elab_Term_elabAdd(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_elabTParserMacro___lambda__1___closed__8; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabWhere(lean_object*); lean_object* l_Lean_Elab_Term_elabAndM___closed__1; -extern lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__3; lean_object* l_Lean_Elab_Term_elabAndM___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* _init_l_Lean_Elab_Term_elabDo___lambda__1___closed__1() { _start: @@ -1610,7 +1604,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1; +x_2 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -1804,7 +1798,7 @@ x_23 = lean_ctor_get(x_21, 0); x_24 = lean_box(0); x_25 = l_Lean_Elab_Term_elabIf___lambda__1___closed__1; x_26 = l_Lean_addMacroScope(x_23, x_25, x_19); -x_27 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__3; +x_27 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__3; x_28 = l_Lean_Elab_Term_elabIf___lambda__1___closed__3; x_29 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_29, 0, x_24); @@ -1846,7 +1840,7 @@ lean_dec(x_21); x_47 = lean_box(0); x_48 = l_Lean_Elab_Term_elabIf___lambda__1___closed__1; x_49 = l_Lean_addMacroScope(x_45, x_48, x_19); -x_50 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__3; +x_50 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__3; x_51 = l_Lean_Elab_Term_elabIf___lambda__1___closed__3; x_52 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_52, 0, x_47); @@ -2890,27 +2884,7 @@ x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); return x_5; } } -lean_object* l_List_head_x21___at_Lean_Elab_Term_elabAnoymousCtor___spec__1(lean_object* x_1) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_2 = l_Lean_Name_inhabited; -x_3 = l_List_head_x21___rarg___closed__2; -x_4 = lean_panic_fn(x_2, x_3); -return x_4; -} -else -{ -lean_object* x_5; -x_5 = lean_ctor_get(x_1, 0); -lean_inc(x_5); -return x_5; -} -} -} -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__1() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__1() { _start: { lean_object* x_1; @@ -2918,27 +2892,27 @@ x_1 = lean_mk_string("invalid constructor ⟨...⟩, expected type must be known return x_1; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__2() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabAnoymousCtor___closed__1; +x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__1; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__3() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabAnoymousCtor___closed__2; +x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__2; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__4() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__4() { _start: { lean_object* x_1; @@ -2946,27 +2920,27 @@ x_1 = lean_mk_string("invalid constructor ⟨...⟩, expected type is not an ind return x_1; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__5() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabAnoymousCtor___closed__4; +x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__4; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__6() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabAnoymousCtor___closed__5; +x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__5; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__7() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__7() { _start: { lean_object* x_1; @@ -2974,27 +2948,27 @@ x_1 = lean_mk_string("invalid constructor ⟨...⟩, '"); return x_1; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__8() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabAnoymousCtor___closed__7; +x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__7; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__9() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabAnoymousCtor___closed__8; +x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__8; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__10() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__10() { _start: { lean_object* x_1; @@ -3002,27 +2976,27 @@ x_1 = lean_mk_string("' is not an inductive type"); return x_1; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__11() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabAnoymousCtor___closed__10; +x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__10; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__12() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__12() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabAnoymousCtor___closed__11; +x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__11; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__13() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__13() { _start: { lean_object* x_1; @@ -3030,332 +3004,511 @@ x_1 = lean_mk_string("' must have only one constructor"); return x_1; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__14() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabAnoymousCtor___closed__13; +x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__13; x_2 = lean_alloc_ctor(2, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__15() { +lean_object* _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__15() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Term_elabAnoymousCtor___closed__14; +x_1 = l_Lean_Elab_Term_elabAnonymousCtor___closed__14; x_2 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -lean_object* l_Lean_Elab_Term_elabAnoymousCtor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +lean_object* l_Lean_Elab_Term_elabAnonymousCtor(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_tryPostponeIfNoneOrMVar(x_2, x_3, x_4); -if (lean_obj_tag(x_5) == 0) +uint8_t x_5; lean_object* x_139; uint8_t x_140; +x_139 = l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; +lean_inc(x_1); +x_140 = l_Lean_Syntax_isOfKind(x_1, x_139); +if (x_140 == 0) +{ +uint8_t x_141; +x_141 = 0; +x_5 = x_141; +goto block_138; +} +else +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +x_142 = l_Lean_Syntax_getArgs(x_1); +x_143 = lean_array_get_size(x_142); +lean_dec(x_142); +x_144 = lean_unsigned_to_nat(3u); +x_145 = lean_nat_dec_eq(x_143, x_144); +lean_dec(x_143); +x_5 = x_145; +goto block_138; +} +block_138: +{ +uint8_t x_6; +x_6 = l_coeDecidableEq(x_5); +if (x_6 == 0) +{ +lean_object* x_7; +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_7 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_4); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_unsigned_to_nat(1u); +x_9 = l_Lean_Syntax_getArg(x_1, x_8); +x_10 = l_Lean_Syntax_getArgs(x_9); +lean_dec(x_9); +x_11 = l_Lean_Elab_Term_tryPostponeIfNoneOrMVar(x_2, x_3, x_4); +if (lean_obj_tag(x_11) == 0) { if (lean_obj_tag(x_2) == 0) { -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = lean_ctor_get(x_5, 1); -lean_inc(x_6); -lean_dec(x_5); -x_7 = l_Lean_Elab_Term_elabAnoymousCtor___closed__3; -x_8 = l_Lean_Elab_Term_throwError___rarg(x_1, x_7, x_3, x_6); -lean_dec(x_1); -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_22; -x_9 = lean_ctor_get(x_5, 1); -lean_inc(x_9); -lean_dec(x_5); -x_10 = lean_ctor_get(x_2, 0); -lean_inc(x_10); -lean_inc(x_3); -x_11 = l_Lean_Elab_Term_instantiateMVars(x_1, x_10, x_3, x_9); -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_10); +x_12 = lean_ctor_get(x_11, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); lean_dec(x_11); -x_14 = l_Lean_Expr_consumeMData___main(x_12); -lean_dec(x_12); -x_22 = l_Lean_Expr_getAppFn___main(x_14); -if (lean_obj_tag(x_22) == 4) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_35; -lean_dec(x_14); -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -lean_dec(x_22); -x_24 = l_Lean_Elab_Term_getEnv___rarg(x_13); -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_23); -x_35 = lean_environment_find(x_25, x_23); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; -lean_dec(x_2); -x_36 = lean_box(0); -x_27 = x_36; -goto block_34; -} -else -{ -lean_object* x_37; -x_37 = lean_ctor_get(x_35, 0); -lean_inc(x_37); -lean_dec(x_35); -if (lean_obj_tag(x_37) == 5) -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_38 = lean_ctor_get(x_37, 0); -lean_inc(x_38); -lean_dec(x_37); -x_39 = lean_ctor_get(x_38, 4); -lean_inc(x_39); -lean_dec(x_38); -x_40 = lean_unsigned_to_nat(0u); -x_41 = l_List_lengthAux___main___rarg(x_39, x_40); -x_42 = lean_unsigned_to_nat(1u); -x_43 = lean_nat_dec_eq(x_41, x_42); -lean_dec(x_41); -if (x_43 == 0) -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -lean_dec(x_39); -lean_dec(x_2); -x_44 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_44, 0, x_23); -x_45 = l_Lean_Elab_Term_elabAnoymousCtor___closed__9; -x_46 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_46, 0, x_45); -lean_ctor_set(x_46, 1, x_44); -x_47 = l_Lean_Elab_Term_elabAnoymousCtor___closed__15; -x_48 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -x_49 = l_Lean_Elab_Term_throwError___rarg(x_1, x_48, x_3, x_26); +x_13 = l_Lean_Elab_Term_elabAnonymousCtor___closed__3; +x_14 = l_Lean_Elab_Term_throwError___rarg(x_1, x_13, x_3, x_12); lean_dec(x_1); -return x_49; +return x_14; } 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; uint8_t x_58; -lean_dec(x_23); -x_50 = l_List_head_x21___at_Lean_Elab_Term_elabAnoymousCtor___spec__1(x_39); -lean_dec(x_39); -x_51 = l_Lean_mkCTermIdFrom(x_1, x_50); -x_52 = l_Lean_Syntax_getArg(x_1, x_42); -x_53 = l_Lean_Syntax_getArgs(x_52); +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_28; +x_15 = lean_ctor_get(x_11, 1); +lean_inc(x_15); +lean_dec(x_11); +x_16 = lean_ctor_get(x_2, 0); +lean_inc(x_16); +lean_inc(x_3); +x_17 = l_Lean_Elab_Term_instantiateMVars(x_1, x_16, x_3, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = l_Lean_Expr_consumeMData___main(x_18); +lean_dec(x_18); +x_28 = l_Lean_Expr_getAppFn___main(x_20); +if (lean_obj_tag(x_28) == 4) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_41; lean_object* x_49; +lean_dec(x_20); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +lean_dec(x_28); +x_30 = l_Lean_Elab_Term_getEnv___rarg(x_19); +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_29); +x_49 = lean_environment_find(x_31, x_29); +if (lean_obj_tag(x_49) == 0) +{ +lean_object* x_50; +lean_dec(x_10); +lean_dec(x_2); +x_50 = lean_box(0); +x_33 = x_50; +goto block_40; +} +else +{ +lean_object* x_51; +x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_51); +lean_dec(x_49); +if (lean_obj_tag(x_51) == 5) +{ +lean_object* x_52; lean_object* x_53; +x_52 = lean_ctor_get(x_51, 0); +lean_inc(x_52); +lean_dec(x_51); +x_53 = lean_ctor_get(x_52, 4); +lean_inc(x_53); lean_dec(x_52); -x_54 = lean_unsigned_to_nat(2u); -x_55 = l_Array_empty___closed__1; -x_56 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_54, x_53, x_40, x_55); -lean_dec(x_53); -x_57 = l_Lean_mkAppStx(x_51, x_56); -x_58 = !lean_is_exclusive(x_3); -if (x_58 == 0) +if (lean_obj_tag(x_53) == 0) { -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; lean_object* x_63; -x_59 = lean_ctor_get(x_3, 8); -lean_inc(x_57); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_1); -lean_ctor_set(x_60, 1, x_57); -x_61 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_61, 0, x_60); -lean_ctor_set(x_61, 1, x_59); -lean_ctor_set(x_3, 8, x_61); -x_62 = 1; -x_63 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_62, x_57, x_3, x_26); -return x_63; -} -else -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint8_t x_74; uint8_t x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; -x_64 = lean_ctor_get(x_3, 0); -x_65 = lean_ctor_get(x_3, 1); -x_66 = lean_ctor_get(x_3, 2); -x_67 = lean_ctor_get(x_3, 3); -x_68 = lean_ctor_get(x_3, 4); -x_69 = lean_ctor_get(x_3, 5); -x_70 = lean_ctor_get(x_3, 6); -x_71 = lean_ctor_get(x_3, 7); -x_72 = lean_ctor_get(x_3, 8); -x_73 = lean_ctor_get(x_3, 9); -x_74 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); -x_75 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); -lean_inc(x_73); -lean_inc(x_72); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_69); -lean_inc(x_68); -lean_inc(x_67); -lean_inc(x_66); -lean_inc(x_65); -lean_inc(x_64); -lean_dec(x_3); -lean_inc(x_57); -x_76 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_76, 0, x_1); -lean_ctor_set(x_76, 1, x_57); -x_77 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_77, 0, x_76); -lean_ctor_set(x_77, 1, x_72); -x_78 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_78, 0, x_64); -lean_ctor_set(x_78, 1, x_65); -lean_ctor_set(x_78, 2, x_66); -lean_ctor_set(x_78, 3, x_67); -lean_ctor_set(x_78, 4, x_68); -lean_ctor_set(x_78, 5, x_69); -lean_ctor_set(x_78, 6, x_70); -lean_ctor_set(x_78, 7, x_71); -lean_ctor_set(x_78, 8, x_77); -lean_ctor_set(x_78, 9, x_73); -lean_ctor_set_uint8(x_78, sizeof(void*)*10, x_74); -lean_ctor_set_uint8(x_78, sizeof(void*)*10 + 1, x_75); -x_79 = 1; -x_80 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_79, x_57, x_78, x_26); -return x_80; -} -} -} -else -{ -lean_object* x_81; -lean_dec(x_37); +lean_object* x_54; +lean_dec(x_10); lean_dec(x_2); -x_81 = lean_box(0); -x_27 = x_81; -goto block_34; -} -} -block_34: -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; -lean_dec(x_27); -x_28 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_28, 0, x_23); -x_29 = l_Lean_Elab_Term_elabAnoymousCtor___closed__9; -x_30 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_30, 0, x_29); -lean_ctor_set(x_30, 1, x_28); -x_31 = l_Lean_Elab_Term_elabAnoymousCtor___closed__12; -x_32 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -x_33 = l_Lean_Elab_Term_throwError___rarg(x_1, x_32, x_3, x_26); -lean_dec(x_1); -return x_33; -} +x_54 = lean_box(0); +x_41 = x_54; +goto block_48; } else { -lean_object* x_82; -lean_dec(x_22); -lean_dec(x_2); -x_82 = lean_box(0); -x_15 = x_82; -goto block_21; -} -block_21: +lean_object* x_55; +x_55 = lean_ctor_get(x_53, 1); +lean_inc(x_55); +if (lean_obj_tag(x_55) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_dec(x_15); -x_16 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_16, 0, x_14); -x_17 = l_Lean_indentExpr(x_16); -x_18 = l_Lean_Elab_Term_elabAnoymousCtor___closed__6; -x_19 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_19, 0, x_18); -lean_ctor_set(x_19, 1, x_17); -x_20 = l_Lean_Elab_Term_throwError___rarg(x_1, x_19, x_3, x_13); -lean_dec(x_1); -return x_20; -} -} +uint8_t x_56; +lean_dec(x_29); +x_56 = !lean_is_exclusive(x_53); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75; +x_57 = lean_ctor_get(x_53, 0); +x_58 = lean_ctor_get(x_53, 1); +lean_dec(x_58); +x_59 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_32); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_61 = l_Lean_Elab_Term_getMainModule___rarg(x_60); +x_62 = lean_ctor_get(x_61, 1); +lean_inc(x_62); +lean_dec(x_61); +x_63 = l_Lean_mkCTermIdFrom(x_1, x_57); +x_64 = l_Array_empty___closed__1; +x_65 = lean_array_push(x_64, x_63); +x_66 = lean_unsigned_to_nat(2u); +x_67 = lean_unsigned_to_nat(0u); +x_68 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_66, x_10, x_67, x_64); +lean_dec(x_10); +x_69 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_68, x_68, x_67, x_64); +lean_dec(x_68); +x_70 = l_Lean_nullKind___closed__2; +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_70); +lean_ctor_set(x_71, 1, x_69); +x_72 = lean_array_push(x_65, x_71); +x_73 = l_Lean_mkAppStx___closed__8; +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_72); +x_75 = !lean_is_exclusive(x_3); +if (x_75 == 0) +{ +lean_object* x_76; lean_object* x_77; uint8_t x_78; lean_object* x_79; +x_76 = lean_ctor_get(x_3, 8); +lean_inc(x_74); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_1); +lean_ctor_set(x_77, 1, x_74); +lean_ctor_set(x_53, 1, x_76); +lean_ctor_set(x_53, 0, x_77); +lean_ctor_set(x_3, 8, x_53); +x_78 = 1; +x_79 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_78, x_74, x_3, x_62); +return x_79; } else { -uint8_t x_83; -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -x_83 = !lean_is_exclusive(x_5); -if (x_83 == 0) -{ -return x_5; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_5, 0); -x_85 = lean_ctor_get(x_5, 1); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; uint8_t x_91; lean_object* x_92; lean_object* x_93; uint8_t x_94; lean_object* x_95; +x_80 = lean_ctor_get(x_3, 0); +x_81 = lean_ctor_get(x_3, 1); +x_82 = lean_ctor_get(x_3, 2); +x_83 = lean_ctor_get(x_3, 3); +x_84 = lean_ctor_get(x_3, 4); +x_85 = lean_ctor_get(x_3, 5); +x_86 = lean_ctor_get(x_3, 6); +x_87 = lean_ctor_get(x_3, 7); +x_88 = lean_ctor_get(x_3, 8); +x_89 = lean_ctor_get(x_3, 9); +x_90 = lean_ctor_get_uint8(x_3, sizeof(void*)*10); +x_91 = lean_ctor_get_uint8(x_3, sizeof(void*)*10 + 1); +lean_inc(x_89); +lean_inc(x_88); +lean_inc(x_87); +lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); -lean_dec(x_5); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; +lean_inc(x_83); +lean_inc(x_82); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_3); +lean_inc(x_74); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_1); +lean_ctor_set(x_92, 1, x_74); +lean_ctor_set(x_53, 1, x_88); +lean_ctor_set(x_53, 0, x_92); +x_93 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_93, 0, x_80); +lean_ctor_set(x_93, 1, x_81); +lean_ctor_set(x_93, 2, x_82); +lean_ctor_set(x_93, 3, x_83); +lean_ctor_set(x_93, 4, x_84); +lean_ctor_set(x_93, 5, x_85); +lean_ctor_set(x_93, 6, x_86); +lean_ctor_set(x_93, 7, x_87); +lean_ctor_set(x_93, 8, x_53); +lean_ctor_set(x_93, 9, x_89); +lean_ctor_set_uint8(x_93, sizeof(void*)*10, x_90); +lean_ctor_set_uint8(x_93, sizeof(void*)*10 + 1, x_91); +x_94 = 1; +x_95 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_94, x_74, x_93, x_62); +return x_95; } } -} -} -lean_object* l_List_head_x21___at_Lean_Elab_Term_elabAnoymousCtor___spec__1___boxed(lean_object* x_1) { -_start: +else { -lean_object* x_2; -x_2 = l_List_head_x21___at_Lean_Elab_Term_elabAnoymousCtor___spec__1(x_1); +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; 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; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; uint8_t x_129; lean_object* x_130; +x_96 = lean_ctor_get(x_53, 0); +lean_inc(x_96); +lean_dec(x_53); +x_97 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_32); +x_98 = lean_ctor_get(x_97, 1); +lean_inc(x_98); +lean_dec(x_97); +x_99 = l_Lean_Elab_Term_getMainModule___rarg(x_98); +x_100 = lean_ctor_get(x_99, 1); +lean_inc(x_100); +lean_dec(x_99); +x_101 = l_Lean_mkCTermIdFrom(x_1, x_96); +x_102 = l_Array_empty___closed__1; +x_103 = lean_array_push(x_102, x_101); +x_104 = lean_unsigned_to_nat(2u); +x_105 = lean_unsigned_to_nat(0u); +x_106 = l_Array_foldlStepMAux___main___at_Lean_Elab_Term_elabParen___spec__1(x_104, x_10, x_105, x_102); +lean_dec(x_10); +x_107 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_106, x_106, x_105, x_102); +lean_dec(x_106); +x_108 = l_Lean_nullKind___closed__2; +x_109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_107); +x_110 = lean_array_push(x_103, x_109); +x_111 = l_Lean_mkAppStx___closed__8; +x_112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_110); +x_113 = lean_ctor_get(x_3, 0); +lean_inc(x_113); +x_114 = lean_ctor_get(x_3, 1); +lean_inc(x_114); +x_115 = lean_ctor_get(x_3, 2); +lean_inc(x_115); +x_116 = lean_ctor_get(x_3, 3); +lean_inc(x_116); +x_117 = lean_ctor_get(x_3, 4); +lean_inc(x_117); +x_118 = lean_ctor_get(x_3, 5); +lean_inc(x_118); +x_119 = lean_ctor_get(x_3, 6); +lean_inc(x_119); +x_120 = lean_ctor_get(x_3, 7); +lean_inc(x_120); +x_121 = lean_ctor_get(x_3, 8); +lean_inc(x_121); +x_122 = lean_ctor_get(x_3, 9); +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); +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_125 = x_3; +} else { + lean_dec_ref(x_3); + x_125 = lean_box(0); +} +lean_inc(x_112); +x_126 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_126, 0, x_1); +lean_ctor_set(x_126, 1, x_112); +x_127 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_121); +if (lean_is_scalar(x_125)) { + x_128 = lean_alloc_ctor(0, 10, 2); +} else { + x_128 = x_125; +} +lean_ctor_set(x_128, 0, x_113); +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); +lean_ctor_set(x_128, 5, x_118); +lean_ctor_set(x_128, 6, x_119); +lean_ctor_set(x_128, 7, x_120); +lean_ctor_set(x_128, 8, x_127); +lean_ctor_set(x_128, 9, x_122); +lean_ctor_set_uint8(x_128, sizeof(void*)*10, x_123); +lean_ctor_set_uint8(x_128, sizeof(void*)*10 + 1, x_124); +x_129 = 1; +x_130 = l_Lean_Elab_Term_elabTermAux___main(x_2, x_129, x_112, x_128, x_100); +return x_130; +} +} +else +{ +lean_object* x_131; +lean_dec(x_55); +lean_dec(x_53); +lean_dec(x_10); +lean_dec(x_2); +x_131 = lean_box(0); +x_41 = x_131; +goto block_48; +} +} +} +else +{ +lean_object* x_132; +lean_dec(x_51); +lean_dec(x_10); +lean_dec(x_2); +x_132 = lean_box(0); +x_33 = x_132; +goto block_40; +} +} +block_40: +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; +lean_dec(x_33); +x_34 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_34, 0, x_29); +x_35 = l_Lean_Elab_Term_elabAnonymousCtor___closed__9; +x_36 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_34); +x_37 = l_Lean_Elab_Term_elabAnonymousCtor___closed__12; +x_38 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +x_39 = l_Lean_Elab_Term_throwError___rarg(x_1, x_38, x_3, x_32); lean_dec(x_1); -return x_2; +return x_39; +} +block_48: +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; +lean_dec(x_41); +x_42 = lean_alloc_ctor(4, 1, 0); +lean_ctor_set(x_42, 0, x_29); +x_43 = l_Lean_Elab_Term_elabAnonymousCtor___closed__9; +x_44 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +x_45 = l_Lean_Elab_Term_elabAnonymousCtor___closed__15; +x_46 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +x_47 = l_Lean_Elab_Term_throwError___rarg(x_1, x_46, x_3, x_32); +lean_dec(x_1); +return x_47; } } -lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__1() { +else +{ +lean_object* x_133; +lean_dec(x_28); +lean_dec(x_10); +lean_dec(x_2); +x_133 = lean_box(0); +x_21 = x_133; +goto block_27; +} +block_27: +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_dec(x_21); +x_22 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_22, 0, x_20); +x_23 = l_Lean_indentExpr(x_22); +x_24 = l_Lean_Elab_Term_elabAnonymousCtor___closed__6; +x_25 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +x_26 = l_Lean_Elab_Term_throwError___rarg(x_1, x_25, x_3, x_19); +lean_dec(x_1); +return x_26; +} +} +} +else +{ +uint8_t x_134; +lean_dec(x_10); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_134 = !lean_is_exclusive(x_11); +if (x_134 == 0) +{ +return x_11; +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; +x_135 = lean_ctor_get(x_11, 0); +x_136 = lean_ctor_get(x_11, 1); +lean_inc(x_136); +lean_inc(x_135); +lean_dec(x_11); +x_137 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_137, 0, x_135); +lean_ctor_set(x_137, 1, x_136); +return x_137; +} +} +} +} +} +} +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("elabAnoymousCtor"); +x_1 = lean_mk_string("elabAnonymousCtor"); return x_1; } } -lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__2() { +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; -x_2 = l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__1; +x_2 = l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__1; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } } -lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__3() { +lean_object* _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__3() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabAnoymousCtor), 4, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabAnonymousCtor), 4, 0); return x_1; } } -lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor(lean_object* x_1) { +lean_object* l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_2 = l_Lean_Parser_Term_anonymousCtor___elambda__1___closed__2; -x_3 = l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__2; -x_4 = l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__3; +x_3 = l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__2; +x_4 = l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__3; x_5 = l_Lean_Elab_Term_addBuiltinTermElab(x_2, x_3, x_4, x_1); return x_5; } @@ -7390,7 +7543,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__4; +x_2 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__4; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -9126,43 +9279,43 @@ lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabSubtype___closed_ res = l___regBuiltinTermElab_Lean_Elab_Term_elabSubtype(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Term_elabAnoymousCtor___closed__1 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__1(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__1); -l_Lean_Elab_Term_elabAnoymousCtor___closed__2 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__2(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__2); -l_Lean_Elab_Term_elabAnoymousCtor___closed__3 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__3(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__3); -l_Lean_Elab_Term_elabAnoymousCtor___closed__4 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__4(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__4); -l_Lean_Elab_Term_elabAnoymousCtor___closed__5 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__5(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__5); -l_Lean_Elab_Term_elabAnoymousCtor___closed__6 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__6(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__6); -l_Lean_Elab_Term_elabAnoymousCtor___closed__7 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__7(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__7); -l_Lean_Elab_Term_elabAnoymousCtor___closed__8 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__8(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__8); -l_Lean_Elab_Term_elabAnoymousCtor___closed__9 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__9(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__9); -l_Lean_Elab_Term_elabAnoymousCtor___closed__10 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__10(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__10); -l_Lean_Elab_Term_elabAnoymousCtor___closed__11 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__11(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__11); -l_Lean_Elab_Term_elabAnoymousCtor___closed__12 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__12(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__12); -l_Lean_Elab_Term_elabAnoymousCtor___closed__13 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__13(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__13); -l_Lean_Elab_Term_elabAnoymousCtor___closed__14 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__14(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__14); -l_Lean_Elab_Term_elabAnoymousCtor___closed__15 = _init_l_Lean_Elab_Term_elabAnoymousCtor___closed__15(); -lean_mark_persistent(l_Lean_Elab_Term_elabAnoymousCtor___closed__15); -l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__1(); -lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__1); -l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__2(); -lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__2); -l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__3 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__3(); -lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor___closed__3); -res = l___regBuiltinTermElab_Lean_Elab_Term_elabAnoymousCtor(lean_io_mk_world()); +l_Lean_Elab_Term_elabAnonymousCtor___closed__1 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__1(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__1); +l_Lean_Elab_Term_elabAnonymousCtor___closed__2 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__2(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__2); +l_Lean_Elab_Term_elabAnonymousCtor___closed__3 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__3(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__3); +l_Lean_Elab_Term_elabAnonymousCtor___closed__4 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__4(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__4); +l_Lean_Elab_Term_elabAnonymousCtor___closed__5 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__5(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__5); +l_Lean_Elab_Term_elabAnonymousCtor___closed__6 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__6(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__6); +l_Lean_Elab_Term_elabAnonymousCtor___closed__7 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__7(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__7); +l_Lean_Elab_Term_elabAnonymousCtor___closed__8 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__8(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__8); +l_Lean_Elab_Term_elabAnonymousCtor___closed__9 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__9(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__9); +l_Lean_Elab_Term_elabAnonymousCtor___closed__10 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__10(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__10); +l_Lean_Elab_Term_elabAnonymousCtor___closed__11 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__11(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__11); +l_Lean_Elab_Term_elabAnonymousCtor___closed__12 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__12(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__12); +l_Lean_Elab_Term_elabAnonymousCtor___closed__13 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__13(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__13); +l_Lean_Elab_Term_elabAnonymousCtor___closed__14 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__14(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__14); +l_Lean_Elab_Term_elabAnonymousCtor___closed__15 = _init_l_Lean_Elab_Term_elabAnonymousCtor___closed__15(); +lean_mark_persistent(l_Lean_Elab_Term_elabAnonymousCtor___closed__15); +l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__1 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__1(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__1); +l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__2 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__2(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__2); +l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__3 = _init_l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__3(); +lean_mark_persistent(l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor___closed__3); +res = l___regBuiltinTermElab_Lean_Elab_Term_elabAnonymousCtor(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); l_Lean_Elab_Term_elabShow___lambda__1___closed__1 = _init_l_Lean_Elab_Term_elabShow___lambda__1___closed__1(); diff --git a/stage0/stdlib/Init/Lean/Elab/Quotation.c b/stage0/stdlib/Init/Lean/Elab/Quotation.c index cc0e9ccb00..9fdcd37d16 100644 --- a/stage0/stdlib/Init/Lean/Elab/Quotation.c +++ b/stage0/stdlib/Init/Lean/Elab/Quotation.c @@ -14,6 +14,7 @@ extern "C" { #endif lean_object* l_List_reverse___rarg(lean_object*); +extern lean_object* l_Lean_Expr_eq_x3f___closed__1; extern lean_object* l_Lean_mkHole___closed__3; lean_object* l_List_head_x21___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__2___closed__2; lean_object* l_Lean_Elab_Term_getEnv___rarg(lean_object*); @@ -62,6 +63,7 @@ lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__ lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__54; lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Option_HasRepr___rarg___closed__1; +extern lean_object* l_Lean_Parser_Term_eq___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__34; lean_object* l_Lean_Format_pretty(lean_object*, lean_object*); @@ -76,6 +78,7 @@ uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_Quotation_elabStxQuot___closed__3; lean_object* l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__4___boxed(lean_object*, lean_object*, lean_object*); +extern lean_object* l_Lean_Parser_Term_eq___elambda__1___closed__1; 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___private_Init_Lean_Elab_Quotation_9__compileStxMatch(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -95,6 +98,7 @@ lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toP extern lean_object* l_Array_empty___closed__1; lean_object* l_ReaderT_pure___at_Lean_Elab_Term_Quotation_HeadInfo_Inhabited___spec__1(lean_object*); extern lean_object* l_Lean_Literal_type___closed__5; +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__4; lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; extern lean_object* l_Lean_nameToExprAux___main___closed__7; lean_object* l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___lambda__1___closed__1; @@ -185,7 +189,6 @@ lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__9; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__35; -lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__4; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__45; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__18; @@ -221,14 +224,17 @@ extern lean_object* l_Lean_Elab_Term_elabParen___closed__4; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8___closed__4; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_Quotation_elabStxQuot___closed__2; lean_object* lean_array_fget(lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_declareBuiltinTermElab___closed__3; lean_object* l___regBuiltinTermElab_Lean_Elab_Term_Quotation_elabStxQuot___closed__1; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__5___closed__1; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Syntax_findAux___main(lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__1; extern lean_object* l_List_Monad; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__1___closed__1; +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__3; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8___boxed(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_band___elambda__1___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__36; @@ -293,6 +299,7 @@ lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__15; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__35; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__3; lean_object* l_Lean_Elab_Term_Quotation_HeadInfo_Inhabited; +extern lean_object* l___private_Init_Lean_Elab_Term_6__exceptionToSorry___closed__2; lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__3(lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Term_expandCDot_x3f___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; @@ -411,7 +418,6 @@ lean_object* l_Lean_Parser_Error_toString(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__8; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__28; lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__7; -lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Elab_Term_Quotation_isAntiquotSplicePat(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__10; @@ -432,6 +438,7 @@ lean_object* l_Array_umapMAux___main___at_Lean_Elab_Term_Quotation_match__syntax lean_object* l_ReaderT_pure___at_Lean_Elab_Term_Quotation_HeadInfo_Inhabited___spec__1___rarg(lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Parser_Term_let___elambda__1___closed__1; lean_object* l_Lean_Syntax_getArgs(lean_object*); +extern lean_object* l_Bool_HasRepr___closed__2; lean_object* l_Lean_Syntax_getKind(lean_object*); extern lean_object* l_Lean_Parser_Term_match__syntax___elambda__1___closed__2; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__5(lean_object*, lean_object*, lean_object*); @@ -441,7 +448,7 @@ lean_object* l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHe lean_object* lean_panic_fn(lean_object*, lean_object*); lean_object* l_ReaderT_pure___at_Lean_Elab_Term_Quotation_HeadInfo_Inhabited___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29; -lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_List_hasQuote___rarg(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___closed__16; lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__10; @@ -477,6 +484,7 @@ extern lean_object* l_Lean_Unhygienic_MonadQuotation___closed__2; lean_object* lean_get_namespace(lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__24; +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteOption___rarg___closed__1; extern lean_object* l_Lean_TraceState_Inhabited___closed__1; extern lean_object* l_Lean_Parser_Syntax_atom___elambda__1___closed__1; @@ -507,6 +515,7 @@ extern lean_object* l_Lean_Elab_Term_mkExplicitBinder___closed__4; lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__4; extern lean_object* l_Lean_mkHole___closed__2; lean_object* l___private_Init_Lean_Elab_Quotation_10__getPatternVarsAux___main___boxed(lean_object*); +extern lean_object* l_List_foldlM___main___at_Lean_parseSearchPath___spec__7___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___lambda__1(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__7; extern lean_object* l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; @@ -573,7 +582,7 @@ lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda_ lean_object* l_List_map___main___at___private_Init_Lean_Elab_Quotation_11__letBindRhss___main___spec__1(lean_object*); extern lean_object* l_List_zip___rarg___closed__1; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__26; lean_object* l___private_Init_Lean_Elab_Quotation_3__quoteOption___rarg___closed__6; lean_object* l_Lean_mkConst(lean_object*, lean_object*); @@ -590,12 +599,14 @@ lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand(lean_object*, lean_object lean_object* l_List_zipWith___main___rarg(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; lean_object* l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_hasQuote___rarg(lean_object*); lean_object* l_Lean_Elab_Term_Quotation_stxQuot_expand___closed__11; lean_object* l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(lean_object*, lean_object*, lean_object*); lean_object* lean_expand_match_syntax(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__2; extern lean_object* l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__2; +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__2; lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___spec__1___closed__6; lean_object* l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8___closed__3; lean_object* l___private_Init_Lean_Elab_Quotation_2__quoteList___main___rarg___closed__1; @@ -610,7 +621,6 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_match__syntax_expand___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_monadInhabited___rarg(lean_object*, lean_object*); lean_object* l_Lean_Elab_Term_Quotation_elabMatchSyntax___closed__1; -lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__3; uint8_t l_Lean_Syntax_isIdent(lean_object*); lean_object* l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__22; lean_object* l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__27; @@ -7879,16 +7889,20 @@ return x_3; lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("coe"); -return x_1; +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_List_foldlM___main___at_Lean_parseSearchPath___spec__7___closed__3; +x_3 = lean_alloc_ctor(2, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_1 = l_Bool_HasRepr___closed__2; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } @@ -7897,7 +7911,7 @@ lean_object* _init_l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___mai _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_1 = l_Bool_HasRepr___closed__2; x_2 = lean_unsigned_to_nat(0u); x_3 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__16; x_4 = lean_alloc_ctor(0, 3, 0); @@ -7912,7 +7926,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_2 = l_Bool_HasRepr___closed__2; x_3 = lean_name_mk_string(x_1, x_2); return x_3; } @@ -7922,7 +7936,7 @@ _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_2 = l___private_Init_Lean_Elab_Term_6__exceptionToSorry___closed__2; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_2); lean_ctor_set(x_3, 1, x_1); @@ -8498,7 +8512,7 @@ x_155 = l_Lean_Elab_Term_getMainModule___rarg(x_154); x_156 = !lean_is_exclusive(x_155); if (x_156 == 0) { -lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; +lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; x_157 = lean_ctor_get(x_155, 0); lean_inc(x_153); lean_inc(x_157); @@ -8522,381 +8536,378 @@ x_168 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___close x_169 = lean_array_push(x_168, x_167); x_170 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; x_171 = lean_array_push(x_169, x_170); -x_172 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; -x_173 = l_Lean_addMacroScope(x_157, x_172, x_153); -x_174 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; -x_175 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; -x_176 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_176, 0, x_124); -lean_ctor_set(x_176, 1, x_174); -lean_ctor_set(x_176, 2, x_173); -lean_ctor_set(x_176, 3, x_175); -x_177 = lean_array_push(x_130, x_176); -x_178 = lean_array_push(x_177, x_132); -x_179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_179, 0, x_134); -lean_ctor_set(x_179, 1, x_178); +x_172 = lean_array_push(x_130, x_151); +x_173 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_174 = lean_array_push(x_172, x_173); +x_175 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_176 = l_Lean_addMacroScope(x_157, x_175, x_153); +x_177 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +x_178 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_179 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_179, 0, x_124); +lean_ctor_set(x_179, 1, x_177); +lean_ctor_set(x_179, 2, x_176); +lean_ctor_set(x_179, 3, x_178); x_180 = lean_array_push(x_130, x_179); -x_181 = lean_array_push(x_130, x_151); +x_181 = lean_array_push(x_180, x_132); x_182 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_182, 0, x_147); +lean_ctor_set(x_182, 0, x_134); lean_ctor_set(x_182, 1, x_181); -x_183 = lean_array_push(x_180, x_182); -x_184 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_184, 0, x_150); -lean_ctor_set(x_184, 1, x_183); -x_185 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_186 = lean_array_push(x_185, x_184); -x_187 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; -x_188 = lean_array_push(x_186, x_187); -x_189 = lean_array_push(x_188, x_106); -x_190 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; -x_191 = lean_array_push(x_189, x_190); -x_192 = lean_array_push(x_191, x_116); -x_193 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_194 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_194, 0, x_193); -lean_ctor_set(x_194, 1, x_192); -x_195 = lean_array_push(x_171, x_194); -x_196 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_197 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_197, 0, x_196); -lean_ctor_set(x_197, 1, x_195); -lean_ctor_set(x_155, 0, x_197); +x_183 = lean_array_push(x_174, x_182); +x_184 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_185 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_185, 0, x_184); +lean_ctor_set(x_185, 1, x_183); +x_186 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; +x_187 = lean_array_push(x_186, x_185); +x_188 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_189 = lean_array_push(x_187, x_188); +x_190 = lean_array_push(x_189, x_106); +x_191 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; +x_192 = lean_array_push(x_190, x_191); +x_193 = lean_array_push(x_192, x_116); +x_194 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_194); +lean_ctor_set(x_195, 1, x_193); +x_196 = lean_array_push(x_171, x_195); +x_197 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_198 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_198, 0, x_197); +lean_ctor_set(x_198, 1, x_196); +lean_ctor_set(x_155, 0, x_198); return x_155; } else { -lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; -x_198 = lean_ctor_get(x_155, 0); -x_199 = lean_ctor_get(x_155, 1); +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; +x_199 = lean_ctor_get(x_155, 0); +x_200 = lean_ctor_get(x_155, 1); +lean_inc(x_200); lean_inc(x_199); -lean_inc(x_198); lean_dec(x_155); lean_inc(x_153); -lean_inc(x_198); -x_200 = l_Lean_addMacroScope(x_198, x_137, x_153); -x_201 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_201, 0, x_124); -lean_ctor_set(x_201, 1, x_139); -lean_ctor_set(x_201, 2, x_200); -lean_ctor_set(x_201, 3, x_27); -x_202 = lean_array_push(x_130, x_201); -x_203 = lean_array_push(x_202, x_132); +lean_inc(x_199); +x_201 = l_Lean_addMacroScope(x_199, x_137, x_153); +x_202 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_202, 0, x_124); +lean_ctor_set(x_202, 1, x_139); +lean_ctor_set(x_202, 2, x_201); +lean_ctor_set(x_202, 3, x_27); +x_203 = lean_array_push(x_130, x_202); x_204 = lean_array_push(x_203, x_132); -x_205 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; -x_206 = lean_array_push(x_204, x_205); -x_207 = lean_array_push(x_206, x_17); -x_208 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_209 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_209, 0, x_208); -lean_ctor_set(x_209, 1, x_207); -x_210 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_211 = lean_array_push(x_210, x_209); -x_212 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_213 = lean_array_push(x_211, x_212); -x_214 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; -x_215 = l_Lean_addMacroScope(x_198, x_214, x_153); -x_216 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; -x_217 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; -x_218 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_218, 0, x_124); -lean_ctor_set(x_218, 1, x_216); -lean_ctor_set(x_218, 2, x_215); -lean_ctor_set(x_218, 3, x_217); -x_219 = lean_array_push(x_130, x_218); -x_220 = lean_array_push(x_219, x_132); -x_221 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_221, 0, x_134); -lean_ctor_set(x_221, 1, x_220); -x_222 = lean_array_push(x_130, x_221); -x_223 = lean_array_push(x_130, x_151); -x_224 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_224, 0, x_147); -lean_ctor_set(x_224, 1, x_223); -x_225 = lean_array_push(x_222, x_224); -x_226 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_226, 0, x_150); -lean_ctor_set(x_226, 1, x_225); -x_227 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_228 = lean_array_push(x_227, x_226); -x_229 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; -x_230 = lean_array_push(x_228, x_229); -x_231 = lean_array_push(x_230, x_106); -x_232 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; -x_233 = lean_array_push(x_231, x_232); -x_234 = lean_array_push(x_233, x_116); -x_235 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_236 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_236, 0, x_235); -lean_ctor_set(x_236, 1, x_234); -x_237 = lean_array_push(x_213, x_236); -x_238 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_239 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_239, 0, x_238); -lean_ctor_set(x_239, 1, x_237); -x_240 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_240, 0, x_239); -lean_ctor_set(x_240, 1, x_199); -return x_240; +x_205 = lean_array_push(x_204, x_132); +x_206 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_207 = lean_array_push(x_205, x_206); +x_208 = lean_array_push(x_207, x_17); +x_209 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_210 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_210, 0, x_209); +lean_ctor_set(x_210, 1, x_208); +x_211 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_212 = lean_array_push(x_211, x_210); +x_213 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_214 = lean_array_push(x_212, x_213); +x_215 = lean_array_push(x_130, x_151); +x_216 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_217 = lean_array_push(x_215, x_216); +x_218 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_219 = l_Lean_addMacroScope(x_199, x_218, x_153); +x_220 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +x_221 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_222 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_222, 0, x_124); +lean_ctor_set(x_222, 1, x_220); +lean_ctor_set(x_222, 2, x_219); +lean_ctor_set(x_222, 3, x_221); +x_223 = lean_array_push(x_130, x_222); +x_224 = lean_array_push(x_223, x_132); +x_225 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_225, 0, x_134); +lean_ctor_set(x_225, 1, x_224); +x_226 = lean_array_push(x_217, x_225); +x_227 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_228 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_226); +x_229 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; +x_230 = lean_array_push(x_229, x_228); +x_231 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_232 = lean_array_push(x_230, x_231); +x_233 = lean_array_push(x_232, x_106); +x_234 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; +x_235 = lean_array_push(x_233, x_234); +x_236 = lean_array_push(x_235, x_116); +x_237 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_238 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_238, 0, x_237); +lean_ctor_set(x_238, 1, x_236); +x_239 = lean_array_push(x_214, x_238); +x_240 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_241 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_241, 0, x_240); +lean_ctor_set(x_241, 1, x_239); +x_242 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_200); +return x_242; } } else { -uint8_t x_241; +uint8_t x_243; lean_dec(x_108); lean_dec(x_106); lean_dec(x_17); lean_dec(x_4); -x_241 = !lean_is_exclusive(x_115); -if (x_241 == 0) +x_243 = !lean_is_exclusive(x_115); +if (x_243 == 0) { return x_115; } else { -lean_object* x_242; lean_object* x_243; lean_object* x_244; -x_242 = lean_ctor_get(x_115, 0); -x_243 = lean_ctor_get(x_115, 1); -lean_inc(x_243); -lean_inc(x_242); +lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_244 = lean_ctor_get(x_115, 0); +x_245 = lean_ctor_get(x_115, 1); +lean_inc(x_245); +lean_inc(x_244); lean_dec(x_115); -x_244 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_244, 0, x_242); -lean_ctor_set(x_244, 1, x_243); -return x_244; +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 { -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; -x_245 = lean_ctor_get(x_107, 0); -x_246 = lean_ctor_get(x_107, 1); -x_247 = lean_ctor_get(x_107, 2); -x_248 = lean_ctor_get(x_107, 3); -x_249 = lean_ctor_get(x_107, 4); -x_250 = lean_ctor_get(x_107, 5); +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; +x_247 = lean_ctor_get(x_107, 0); +x_248 = lean_ctor_get(x_107, 1); +x_249 = lean_ctor_get(x_107, 2); +x_250 = lean_ctor_get(x_107, 3); +x_251 = lean_ctor_get(x_107, 4); +x_252 = lean_ctor_get(x_107, 5); +lean_inc(x_252); +lean_inc(x_251); lean_inc(x_250); lean_inc(x_249); lean_inc(x_248); lean_inc(x_247); -lean_inc(x_246); -lean_inc(x_245); lean_dec(x_107); -x_251 = lean_nat_add(x_250, x_35); -x_252 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_252, 0, x_245); -lean_ctor_set(x_252, 1, x_246); -lean_ctor_set(x_252, 2, x_247); -lean_ctor_set(x_252, 3, x_248); -lean_ctor_set(x_252, 4, x_249); -lean_ctor_set(x_252, 5, x_251); -x_253 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_253, 0, x_37); -lean_ctor_set(x_253, 1, x_38); -lean_ctor_set(x_253, 2, x_39); -lean_ctor_set(x_253, 3, x_40); -lean_ctor_set(x_253, 4, x_41); -lean_ctor_set(x_253, 5, x_42); -lean_ctor_set(x_253, 6, x_43); -lean_ctor_set(x_253, 7, x_44); -lean_ctor_set(x_253, 8, x_45); -lean_ctor_set(x_253, 9, x_250); -lean_ctor_set_uint8(x_253, sizeof(void*)*10, x_46); -lean_ctor_set_uint8(x_253, sizeof(void*)*10 + 1, x_47); -x_254 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_110, x_253, x_252); -if (lean_obj_tag(x_254) == 0) +x_253 = lean_nat_add(x_252, x_35); +x_254 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_254, 0, x_247); +lean_ctor_set(x_254, 1, x_248); +lean_ctor_set(x_254, 2, x_249); +lean_ctor_set(x_254, 3, x_250); +lean_ctor_set(x_254, 4, x_251); +lean_ctor_set(x_254, 5, x_253); +x_255 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_255, 0, x_37); +lean_ctor_set(x_255, 1, x_38); +lean_ctor_set(x_255, 2, x_39); +lean_ctor_set(x_255, 3, x_40); +lean_ctor_set(x_255, 4, x_41); +lean_ctor_set(x_255, 5, x_42); +lean_ctor_set(x_255, 6, x_43); +lean_ctor_set(x_255, 7, x_44); +lean_ctor_set(x_255, 8, x_45); +lean_ctor_set(x_255, 9, x_252); +lean_ctor_set_uint8(x_255, sizeof(void*)*10, x_46); +lean_ctor_set_uint8(x_255, sizeof(void*)*10 + 1, x_47); +x_256 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_110, x_255, x_254); +if (lean_obj_tag(x_256) == 0) { -lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; -x_255 = lean_ctor_get(x_254, 0); -lean_inc(x_255); -x_256 = lean_ctor_get(x_254, 1); -lean_inc(x_256); -lean_dec(x_254); -x_257 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_256); -x_258 = lean_ctor_get(x_257, 0); +lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; +x_257 = lean_ctor_get(x_256, 0); +lean_inc(x_257); +x_258 = lean_ctor_get(x_256, 1); lean_inc(x_258); -x_259 = lean_ctor_get(x_257, 1); -lean_inc(x_259); -lean_dec(x_257); -x_260 = l_Lean_Elab_Term_getMainModule___rarg(x_259); -x_261 = lean_ctor_get(x_260, 0); +lean_dec(x_256); +x_259 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_258); +x_260 = lean_ctor_get(x_259, 0); +lean_inc(x_260); +x_261 = lean_ctor_get(x_259, 1); lean_inc(x_261); -x_262 = lean_ctor_get(x_260, 1); -lean_inc(x_262); -lean_dec(x_260); -x_263 = lean_box(0); -x_264 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; -lean_inc(x_258); -lean_inc(x_261); -x_265 = l_Lean_addMacroScope(x_261, x_264, x_258); -x_266 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -x_267 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; -x_268 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_268, 0, x_263); -lean_ctor_set(x_268, 1, x_266); -lean_ctor_set(x_268, 2, x_265); -lean_ctor_set(x_268, 3, x_267); -x_269 = l_Array_empty___closed__1; -x_270 = lean_array_push(x_269, x_268); -x_271 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; -x_272 = lean_array_push(x_270, x_271); -x_273 = l_Lean_mkTermIdFromIdent___closed__2; -x_274 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_274, 0, x_273); -lean_ctor_set(x_274, 1, x_272); -x_275 = lean_array_push(x_269, x_274); -x_276 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; -x_277 = l_Lean_addMacroScope(x_261, x_276, x_258); -x_278 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; -x_279 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_279, 0, x_263); -lean_ctor_set(x_279, 1, x_278); -lean_ctor_set(x_279, 2, x_277); -lean_ctor_set(x_279, 3, x_27); -x_280 = lean_array_push(x_269, x_279); -x_281 = lean_array_push(x_280, x_271); -x_282 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_282, 0, x_273); -lean_ctor_set(x_282, 1, x_281); -x_283 = lean_array_push(x_269, x_282); -x_284 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_108); -x_285 = lean_array_push(x_283, x_284); -x_286 = l_Lean_nullKind___closed__2; -x_287 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_287, 0, x_286); -lean_ctor_set(x_287, 1, x_285); -x_288 = lean_array_push(x_275, x_287); -x_289 = l_Lean_mkAppStx___closed__8; -x_290 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_290, 0, x_289); -lean_ctor_set(x_290, 1, x_288); -x_291 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_262); +lean_dec(x_259); +x_262 = l_Lean_Elab_Term_getMainModule___rarg(x_261); +x_263 = lean_ctor_get(x_262, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_262, 1); +lean_inc(x_264); +lean_dec(x_262); +x_265 = lean_box(0); +x_266 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; +lean_inc(x_260); +lean_inc(x_263); +x_267 = l_Lean_addMacroScope(x_263, x_266, x_260); +x_268 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; +x_269 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; +x_270 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_270, 0, x_265); +lean_ctor_set(x_270, 1, x_268); +lean_ctor_set(x_270, 2, x_267); +lean_ctor_set(x_270, 3, x_269); +x_271 = l_Array_empty___closed__1; +x_272 = lean_array_push(x_271, x_270); +x_273 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; +x_274 = lean_array_push(x_272, x_273); +x_275 = l_Lean_mkTermIdFromIdent___closed__2; +x_276 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_276, 0, x_275); +lean_ctor_set(x_276, 1, x_274); +x_277 = lean_array_push(x_271, x_276); +x_278 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_279 = l_Lean_addMacroScope(x_263, x_278, x_260); +x_280 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_281 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_281, 0, x_265); +lean_ctor_set(x_281, 1, x_280); +lean_ctor_set(x_281, 2, x_279); +lean_ctor_set(x_281, 3, x_27); +x_282 = lean_array_push(x_271, x_281); +x_283 = lean_array_push(x_282, x_273); +x_284 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_284, 0, x_275); +lean_ctor_set(x_284, 1, x_283); +x_285 = lean_array_push(x_271, x_284); +x_286 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_108); +x_287 = lean_array_push(x_285, x_286); +x_288 = l_Lean_nullKind___closed__2; +x_289 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_289, 0, x_288); +lean_ctor_set(x_289, 1, x_287); +x_290 = lean_array_push(x_277, x_289); +x_291 = l_Lean_mkAppStx___closed__8; +x_292 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_292, 0, x_291); +lean_ctor_set(x_292, 1, x_290); +x_293 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_264); lean_dec(x_4); -x_292 = lean_ctor_get(x_291, 0); -lean_inc(x_292); -x_293 = lean_ctor_get(x_291, 1); -lean_inc(x_293); -lean_dec(x_291); -x_294 = l_Lean_Elab_Term_getMainModule___rarg(x_293); -x_295 = lean_ctor_get(x_294, 0); +x_294 = lean_ctor_get(x_293, 0); +lean_inc(x_294); +x_295 = lean_ctor_get(x_293, 1); lean_inc(x_295); -x_296 = lean_ctor_get(x_294, 1); -lean_inc(x_296); -if (lean_is_exclusive(x_294)) { - lean_ctor_release(x_294, 0); - lean_ctor_release(x_294, 1); - x_297 = x_294; +lean_dec(x_293); +x_296 = l_Lean_Elab_Term_getMainModule___rarg(x_295); +x_297 = lean_ctor_get(x_296, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_296, 1); +lean_inc(x_298); +if (lean_is_exclusive(x_296)) { + lean_ctor_release(x_296, 0); + lean_ctor_release(x_296, 1); + x_299 = x_296; } else { - lean_dec_ref(x_294); - x_297 = lean_box(0); + lean_dec_ref(x_296); + x_299 = lean_box(0); } -lean_inc(x_292); -lean_inc(x_295); -x_298 = l_Lean_addMacroScope(x_295, x_276, x_292); -x_299 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_299, 0, x_263); -lean_ctor_set(x_299, 1, x_278); -lean_ctor_set(x_299, 2, x_298); -lean_ctor_set(x_299, 3, x_27); -x_300 = lean_array_push(x_269, x_299); -x_301 = lean_array_push(x_300, x_271); -x_302 = lean_array_push(x_301, x_271); -x_303 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; -x_304 = lean_array_push(x_302, x_303); -x_305 = lean_array_push(x_304, x_17); -x_306 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_307 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_307, 0, x_306); -lean_ctor_set(x_307, 1, x_305); -x_308 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_309 = lean_array_push(x_308, x_307); -x_310 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_311 = lean_array_push(x_309, x_310); -x_312 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; -x_313 = l_Lean_addMacroScope(x_295, x_312, x_292); -x_314 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; -x_315 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; -x_316 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_316, 0, x_263); -lean_ctor_set(x_316, 1, x_314); -lean_ctor_set(x_316, 2, x_313); -lean_ctor_set(x_316, 3, x_315); -x_317 = lean_array_push(x_269, x_316); -x_318 = lean_array_push(x_317, x_271); -x_319 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_319, 0, x_273); -lean_ctor_set(x_319, 1, x_318); -x_320 = lean_array_push(x_269, x_319); -x_321 = lean_array_push(x_269, x_290); -x_322 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_322, 0, x_286); -lean_ctor_set(x_322, 1, x_321); -x_323 = lean_array_push(x_320, x_322); +lean_inc(x_294); +lean_inc(x_297); +x_300 = l_Lean_addMacroScope(x_297, x_278, x_294); +x_301 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_301, 0, x_265); +lean_ctor_set(x_301, 1, x_280); +lean_ctor_set(x_301, 2, x_300); +lean_ctor_set(x_301, 3, x_27); +x_302 = lean_array_push(x_271, x_301); +x_303 = lean_array_push(x_302, x_273); +x_304 = lean_array_push(x_303, x_273); +x_305 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_306 = lean_array_push(x_304, x_305); +x_307 = lean_array_push(x_306, x_17); +x_308 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_309 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_309, 0, x_308); +lean_ctor_set(x_309, 1, x_307); +x_310 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_311 = lean_array_push(x_310, x_309); +x_312 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_313 = lean_array_push(x_311, x_312); +x_314 = lean_array_push(x_271, x_292); +x_315 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_316 = lean_array_push(x_314, x_315); +x_317 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_318 = l_Lean_addMacroScope(x_297, x_317, x_294); +x_319 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +x_320 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_321 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_321, 0, x_265); +lean_ctor_set(x_321, 1, x_319); +lean_ctor_set(x_321, 2, x_318); +lean_ctor_set(x_321, 3, x_320); +x_322 = lean_array_push(x_271, x_321); +x_323 = lean_array_push(x_322, x_273); x_324 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_324, 0, x_289); +lean_ctor_set(x_324, 0, x_275); lean_ctor_set(x_324, 1, x_323); -x_325 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_326 = lean_array_push(x_325, x_324); -x_327 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; -x_328 = lean_array_push(x_326, x_327); -x_329 = lean_array_push(x_328, x_106); -x_330 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; +x_325 = lean_array_push(x_316, x_324); +x_326 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_327 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_327, 0, x_326); +lean_ctor_set(x_327, 1, x_325); +x_328 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; +x_329 = lean_array_push(x_328, x_327); +x_330 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; x_331 = lean_array_push(x_329, x_330); -x_332 = lean_array_push(x_331, x_255); -x_333 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_334 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_334, 0, x_333); -lean_ctor_set(x_334, 1, x_332); -x_335 = lean_array_push(x_311, x_334); -x_336 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_332 = lean_array_push(x_331, x_106); +x_333 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; +x_334 = lean_array_push(x_332, x_333); +x_335 = lean_array_push(x_334, x_257); +x_336 = l_Lean_Parser_Term_if___elambda__1___closed__2; x_337 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_337, 0, x_336); lean_ctor_set(x_337, 1, x_335); -if (lean_is_scalar(x_297)) { - x_338 = lean_alloc_ctor(0, 2, 0); +x_338 = lean_array_push(x_313, x_337); +x_339 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_340 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_340, 0, x_339); +lean_ctor_set(x_340, 1, x_338); +if (lean_is_scalar(x_299)) { + x_341 = lean_alloc_ctor(0, 2, 0); } else { - x_338 = x_297; + x_341 = x_299; } -lean_ctor_set(x_338, 0, x_337); -lean_ctor_set(x_338, 1, x_296); -return x_338; +lean_ctor_set(x_341, 0, x_340); +lean_ctor_set(x_341, 1, x_298); +return x_341; } else { -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; +lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_dec(x_108); lean_dec(x_106); lean_dec(x_17); lean_dec(x_4); -x_339 = lean_ctor_get(x_254, 0); -lean_inc(x_339); -x_340 = lean_ctor_get(x_254, 1); -lean_inc(x_340); -if (lean_is_exclusive(x_254)) { - lean_ctor_release(x_254, 0); - lean_ctor_release(x_254, 1); - x_341 = x_254; +x_342 = lean_ctor_get(x_256, 0); +lean_inc(x_342); +x_343 = lean_ctor_get(x_256, 1); +lean_inc(x_343); +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_344 = x_256; } else { - lean_dec_ref(x_254); - x_341 = lean_box(0); + lean_dec_ref(x_256); + x_344 = lean_box(0); } -if (lean_is_scalar(x_341)) { - x_342 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_344)) { + x_345 = lean_alloc_ctor(1, 2, 0); } else { - x_342 = x_341; + x_345 = x_344; } -lean_ctor_set(x_342, 0, x_339); -lean_ctor_set(x_342, 1, x_340); -return x_342; +lean_ctor_set(x_345, 0, x_342); +lean_ctor_set(x_345, 1, x_343); +return x_345; } } } } else { -uint8_t x_343; +uint8_t x_346; lean_dec(x_45); lean_dec(x_44); lean_dec(x_43); @@ -8911,456 +8922,415 @@ lean_dec(x_21); lean_dec(x_17); lean_dec(x_4); lean_dec(x_2); -x_343 = !lean_is_exclusive(x_49); -if (x_343 == 0) +x_346 = !lean_is_exclusive(x_49); +if (x_346 == 0) { return x_49; } else { -lean_object* x_344; lean_object* x_345; lean_object* x_346; -x_344 = lean_ctor_get(x_49, 0); -x_345 = lean_ctor_get(x_49, 1); -lean_inc(x_345); -lean_inc(x_344); +lean_object* x_347; lean_object* x_348; lean_object* x_349; +x_347 = lean_ctor_get(x_49, 0); +x_348 = lean_ctor_get(x_49, 1); +lean_inc(x_348); +lean_inc(x_347); lean_dec(x_49); -x_346 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_346, 0, x_344); -lean_ctor_set(x_346, 1, x_345); -return x_346; +x_349 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_349, 0, x_347); +lean_ctor_set(x_349, 1, x_348); +return x_349; } } } 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; 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; uint8_t x_365; uint8_t x_366; lean_object* x_367; lean_object* x_368; -x_347 = lean_ctor_get(x_31, 0); -x_348 = lean_ctor_get(x_31, 1); -x_349 = lean_ctor_get(x_31, 2); -x_350 = lean_ctor_get(x_31, 3); -x_351 = lean_ctor_get(x_31, 4); -x_352 = lean_ctor_get(x_31, 5); +lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; uint8_t x_368; uint8_t x_369; lean_object* x_370; lean_object* x_371; +x_350 = lean_ctor_get(x_31, 0); +x_351 = lean_ctor_get(x_31, 1); +x_352 = lean_ctor_get(x_31, 2); +x_353 = lean_ctor_get(x_31, 3); +x_354 = lean_ctor_get(x_31, 4); +x_355 = lean_ctor_get(x_31, 5); +lean_inc(x_355); +lean_inc(x_354); +lean_inc(x_353); lean_inc(x_352); lean_inc(x_351); lean_inc(x_350); -lean_inc(x_349); -lean_inc(x_348); -lean_inc(x_347); lean_dec(x_31); -x_353 = lean_unsigned_to_nat(1u); -x_354 = lean_nat_add(x_352, x_353); -x_355 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_355, 0, x_347); -lean_ctor_set(x_355, 1, x_348); -lean_ctor_set(x_355, 2, x_349); -lean_ctor_set(x_355, 3, x_350); -lean_ctor_set(x_355, 4, x_351); -lean_ctor_set(x_355, 5, x_354); -x_356 = lean_ctor_get(x_4, 0); -lean_inc(x_356); -x_357 = lean_ctor_get(x_4, 1); -lean_inc(x_357); -x_358 = lean_ctor_get(x_4, 2); -lean_inc(x_358); -x_359 = lean_ctor_get(x_4, 3); +x_356 = lean_unsigned_to_nat(1u); +x_357 = lean_nat_add(x_355, x_356); +x_358 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_358, 0, x_350); +lean_ctor_set(x_358, 1, x_351); +lean_ctor_set(x_358, 2, x_352); +lean_ctor_set(x_358, 3, x_353); +lean_ctor_set(x_358, 4, x_354); +lean_ctor_set(x_358, 5, x_357); +x_359 = lean_ctor_get(x_4, 0); lean_inc(x_359); -x_360 = lean_ctor_get(x_4, 4); +x_360 = lean_ctor_get(x_4, 1); lean_inc(x_360); -x_361 = lean_ctor_get(x_4, 5); +x_361 = lean_ctor_get(x_4, 2); lean_inc(x_361); -x_362 = lean_ctor_get(x_4, 6); +x_362 = lean_ctor_get(x_4, 3); lean_inc(x_362); -x_363 = lean_ctor_get(x_4, 7); +x_363 = lean_ctor_get(x_4, 4); lean_inc(x_363); -x_364 = lean_ctor_get(x_4, 8); +x_364 = lean_ctor_get(x_4, 5); lean_inc(x_364); -x_365 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_366 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +x_365 = lean_ctor_get(x_4, 6); +lean_inc(x_365); +x_366 = lean_ctor_get(x_4, 7); +lean_inc(x_366); +x_367 = lean_ctor_get(x_4, 8); +lean_inc(x_367); +x_368 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_369 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +lean_inc(x_367); +lean_inc(x_366); +lean_inc(x_365); lean_inc(x_364); lean_inc(x_363); lean_inc(x_362); lean_inc(x_361); lean_inc(x_360); lean_inc(x_359); -lean_inc(x_358); -lean_inc(x_357); -lean_inc(x_356); -x_367 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_367, 0, x_356); -lean_ctor_set(x_367, 1, x_357); -lean_ctor_set(x_367, 2, x_358); -lean_ctor_set(x_367, 3, x_359); -lean_ctor_set(x_367, 4, x_360); -lean_ctor_set(x_367, 5, x_361); -lean_ctor_set(x_367, 6, x_362); -lean_ctor_set(x_367, 7, x_363); -lean_ctor_set(x_367, 8, x_364); -lean_ctor_set(x_367, 9, x_352); -lean_ctor_set_uint8(x_367, sizeof(void*)*10, x_365); -lean_ctor_set_uint8(x_367, sizeof(void*)*10 + 1, x_366); -x_368 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_32, x_30, x_367, x_355); -if (lean_obj_tag(x_368) == 0) +x_370 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_370, 0, x_359); +lean_ctor_set(x_370, 1, x_360); +lean_ctor_set(x_370, 2, x_361); +lean_ctor_set(x_370, 3, x_362); +lean_ctor_set(x_370, 4, x_363); +lean_ctor_set(x_370, 5, x_364); +lean_ctor_set(x_370, 6, x_365); +lean_ctor_set(x_370, 7, x_366); +lean_ctor_set(x_370, 8, x_367); +lean_ctor_set(x_370, 9, x_355); +lean_ctor_set_uint8(x_370, sizeof(void*)*10, x_368); +lean_ctor_set_uint8(x_370, sizeof(void*)*10 + 1, x_369); +x_371 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_32, x_30, x_370, x_358); +if (lean_obj_tag(x_371) == 0) { -lean_object* x_369; -x_369 = lean_ctor_get(x_25, 0); -lean_inc(x_369); -if (lean_obj_tag(x_369) == 0) +lean_object* x_372; +x_372 = lean_ctor_get(x_25, 0); +lean_inc(x_372); +if (lean_obj_tag(x_372) == 0) { -lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; 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_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; +lean_dec(x_367); +lean_dec(x_366); +lean_dec(x_365); lean_dec(x_364); lean_dec(x_363); lean_dec(x_362); lean_dec(x_361); lean_dec(x_360); lean_dec(x_359); -lean_dec(x_358); -lean_dec(x_357); -lean_dec(x_356); lean_dec(x_25); lean_dec(x_21); lean_dec(x_2); -x_370 = lean_ctor_get(x_368, 0); -lean_inc(x_370); -x_371 = lean_ctor_get(x_368, 1); -lean_inc(x_371); -lean_dec(x_368); -x_372 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_371); -lean_dec(x_4); -x_373 = lean_ctor_get(x_372, 0); +x_373 = lean_ctor_get(x_371, 0); lean_inc(x_373); -x_374 = lean_ctor_get(x_372, 1); +x_374 = lean_ctor_get(x_371, 1); lean_inc(x_374); -lean_dec(x_372); -x_375 = l_Lean_Elab_Term_getMainModule___rarg(x_374); +lean_dec(x_371); +x_375 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_374); +lean_dec(x_4); x_376 = lean_ctor_get(x_375, 0); lean_inc(x_376); x_377 = lean_ctor_get(x_375, 1); lean_inc(x_377); -if (lean_is_exclusive(x_375)) { - lean_ctor_release(x_375, 0); - lean_ctor_release(x_375, 1); - x_378 = x_375; +lean_dec(x_375); +x_378 = l_Lean_Elab_Term_getMainModule___rarg(x_377); +x_379 = lean_ctor_get(x_378, 0); +lean_inc(x_379); +x_380 = lean_ctor_get(x_378, 1); +lean_inc(x_380); +if (lean_is_exclusive(x_378)) { + lean_ctor_release(x_378, 0); + lean_ctor_release(x_378, 1); + x_381 = x_378; } else { - lean_dec_ref(x_375); - x_378 = lean_box(0); + lean_dec_ref(x_378); + x_381 = lean_box(0); } -x_379 = lean_box(0); -x_380 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; -x_381 = l_Lean_addMacroScope(x_376, x_380, x_373); -x_382 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; -x_383 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_383, 0, x_379); -lean_ctor_set(x_383, 1, x_382); -lean_ctor_set(x_383, 2, x_381); -lean_ctor_set(x_383, 3, x_27); -x_384 = l_Array_empty___closed__1; -x_385 = lean_array_push(x_384, x_383); -x_386 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; -x_387 = lean_array_push(x_385, x_386); +x_382 = lean_box(0); +x_383 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_384 = l_Lean_addMacroScope(x_379, x_383, x_376); +x_385 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_386 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_386, 0, x_382); +lean_ctor_set(x_386, 1, x_385); +lean_ctor_set(x_386, 2, x_384); +lean_ctor_set(x_386, 3, x_27); +x_387 = l_Array_empty___closed__1; x_388 = lean_array_push(x_387, x_386); -x_389 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_389 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; x_390 = lean_array_push(x_388, x_389); -x_391 = lean_array_push(x_390, x_17); -x_392 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_393 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_393, 0, x_392); -lean_ctor_set(x_393, 1, x_391); -x_394 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_395 = lean_array_push(x_394, x_393); -x_396 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_397 = lean_array_push(x_395, x_396); -x_398 = lean_array_push(x_397, x_370); -x_399 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_400 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_400, 0, x_399); -lean_ctor_set(x_400, 1, x_398); -if (lean_is_scalar(x_378)) { - x_401 = lean_alloc_ctor(0, 2, 0); +x_391 = lean_array_push(x_390, x_389); +x_392 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_393 = lean_array_push(x_391, x_392); +x_394 = lean_array_push(x_393, x_17); +x_395 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_396 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_396, 0, x_395); +lean_ctor_set(x_396, 1, x_394); +x_397 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_398 = lean_array_push(x_397, x_396); +x_399 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_400 = lean_array_push(x_398, x_399); +x_401 = lean_array_push(x_400, x_373); +x_402 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_403 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_403, 0, x_402); +lean_ctor_set(x_403, 1, x_401); +if (lean_is_scalar(x_381)) { + x_404 = lean_alloc_ctor(0, 2, 0); } else { - x_401 = x_378; + x_404 = x_381; } -lean_ctor_set(x_401, 0, x_400); -lean_ctor_set(x_401, 1, x_377); -return x_401; +lean_ctor_set(x_404, 0, x_403); +lean_ctor_set(x_404, 1, x_380); +return x_404; } else { -lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; -x_402 = lean_ctor_get(x_368, 0); -lean_inc(x_402); -x_403 = lean_ctor_get(x_368, 1); -lean_inc(x_403); -lean_dec(x_368); -x_404 = lean_ctor_get(x_369, 0); -lean_inc(x_404); -lean_dec(x_369); -x_405 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__6(x_25, x_21, x_27); -lean_dec(x_25); -x_406 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_405); -x_407 = lean_ctor_get(x_403, 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_371, 0); +lean_inc(x_405); +x_406 = lean_ctor_get(x_371, 1); +lean_inc(x_406); +lean_dec(x_371); +x_407 = lean_ctor_get(x_372, 0); lean_inc(x_407); -x_408 = lean_ctor_get(x_403, 1); -lean_inc(x_408); -x_409 = lean_ctor_get(x_403, 2); -lean_inc(x_409); -x_410 = lean_ctor_get(x_403, 3); +lean_dec(x_372); +x_408 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__6(x_25, x_21, x_27); +lean_dec(x_25); +x_409 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_408); +x_410 = lean_ctor_get(x_406, 0); lean_inc(x_410); -x_411 = lean_ctor_get(x_403, 4); +x_411 = lean_ctor_get(x_406, 1); lean_inc(x_411); -x_412 = lean_ctor_get(x_403, 5); +x_412 = lean_ctor_get(x_406, 2); lean_inc(x_412); -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_413 = x_403; +x_413 = lean_ctor_get(x_406, 3); +lean_inc(x_413); +x_414 = lean_ctor_get(x_406, 4); +lean_inc(x_414); +x_415 = lean_ctor_get(x_406, 5); +lean_inc(x_415); +if (lean_is_exclusive(x_406)) { + lean_ctor_release(x_406, 0); + lean_ctor_release(x_406, 1); + lean_ctor_release(x_406, 2); + lean_ctor_release(x_406, 3); + lean_ctor_release(x_406, 4); + lean_ctor_release(x_406, 5); + x_416 = x_406; } else { - lean_dec_ref(x_403); - x_413 = lean_box(0); + lean_dec_ref(x_406); + x_416 = lean_box(0); } -x_414 = lean_nat_add(x_412, x_353); -if (lean_is_scalar(x_413)) { - x_415 = lean_alloc_ctor(0, 6, 0); +x_417 = lean_nat_add(x_415, x_356); +if (lean_is_scalar(x_416)) { + x_418 = lean_alloc_ctor(0, 6, 0); } else { - x_415 = x_413; + x_418 = x_416; } -lean_ctor_set(x_415, 0, x_407); -lean_ctor_set(x_415, 1, x_408); -lean_ctor_set(x_415, 2, x_409); -lean_ctor_set(x_415, 3, x_410); -lean_ctor_set(x_415, 4, x_411); -lean_ctor_set(x_415, 5, x_414); -x_416 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_416, 0, x_356); -lean_ctor_set(x_416, 1, x_357); -lean_ctor_set(x_416, 2, x_358); -lean_ctor_set(x_416, 3, x_359); -lean_ctor_set(x_416, 4, x_360); -lean_ctor_set(x_416, 5, x_361); -lean_ctor_set(x_416, 6, x_362); -lean_ctor_set(x_416, 7, x_363); -lean_ctor_set(x_416, 8, x_364); -lean_ctor_set(x_416, 9, x_412); -lean_ctor_set_uint8(x_416, sizeof(void*)*10, x_365); -lean_ctor_set_uint8(x_416, sizeof(void*)*10 + 1, x_366); -x_417 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_406, x_416, x_415); -if (lean_obj_tag(x_417) == 0) +lean_ctor_set(x_418, 0, x_410); +lean_ctor_set(x_418, 1, x_411); +lean_ctor_set(x_418, 2, x_412); +lean_ctor_set(x_418, 3, x_413); +lean_ctor_set(x_418, 4, x_414); +lean_ctor_set(x_418, 5, x_417); +x_419 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_419, 0, x_359); +lean_ctor_set(x_419, 1, x_360); +lean_ctor_set(x_419, 2, x_361); +lean_ctor_set(x_419, 3, x_362); +lean_ctor_set(x_419, 4, x_363); +lean_ctor_set(x_419, 5, x_364); +lean_ctor_set(x_419, 6, x_365); +lean_ctor_set(x_419, 7, x_366); +lean_ctor_set(x_419, 8, x_367); +lean_ctor_set(x_419, 9, x_415); +lean_ctor_set_uint8(x_419, sizeof(void*)*10, x_368); +lean_ctor_set_uint8(x_419, sizeof(void*)*10 + 1, x_369); +x_420 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_409, x_419, x_418); +if (lean_obj_tag(x_420) == 0) { -lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; -x_418 = lean_ctor_get(x_417, 0); -lean_inc(x_418); -x_419 = lean_ctor_get(x_417, 1); -lean_inc(x_419); -lean_dec(x_417); -x_420 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_419); +lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; x_421 = lean_ctor_get(x_420, 0); lean_inc(x_421); x_422 = lean_ctor_get(x_420, 1); lean_inc(x_422); lean_dec(x_420); -x_423 = l_Lean_Elab_Term_getMainModule___rarg(x_422); +x_423 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_422); x_424 = lean_ctor_get(x_423, 0); lean_inc(x_424); x_425 = lean_ctor_get(x_423, 1); lean_inc(x_425); lean_dec(x_423); -x_426 = lean_box(0); -x_427 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; -lean_inc(x_421); +x_426 = l_Lean_Elab_Term_getMainModule___rarg(x_425); +x_427 = lean_ctor_get(x_426, 0); +lean_inc(x_427); +x_428 = lean_ctor_get(x_426, 1); +lean_inc(x_428); +lean_dec(x_426); +x_429 = lean_box(0); +x_430 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; lean_inc(x_424); -x_428 = l_Lean_addMacroScope(x_424, x_427, x_421); -x_429 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -x_430 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; -x_431 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_431, 0, x_426); -lean_ctor_set(x_431, 1, x_429); -lean_ctor_set(x_431, 2, x_428); -lean_ctor_set(x_431, 3, x_430); -x_432 = l_Array_empty___closed__1; -x_433 = lean_array_push(x_432, x_431); -x_434 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; -x_435 = lean_array_push(x_433, x_434); -x_436 = l_Lean_mkTermIdFromIdent___closed__2; -x_437 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_437, 0, x_436); -lean_ctor_set(x_437, 1, x_435); -x_438 = lean_array_push(x_432, x_437); -x_439 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; -x_440 = l_Lean_addMacroScope(x_424, x_439, x_421); -x_441 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; -x_442 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_442, 0, x_426); -lean_ctor_set(x_442, 1, x_441); -lean_ctor_set(x_442, 2, x_440); -lean_ctor_set(x_442, 3, x_27); -x_443 = lean_array_push(x_432, x_442); -x_444 = lean_array_push(x_443, x_434); -x_445 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_445, 0, x_436); +lean_inc(x_427); +x_431 = l_Lean_addMacroScope(x_427, x_430, x_424); +x_432 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; +x_433 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; +x_434 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_434, 0, x_429); +lean_ctor_set(x_434, 1, x_432); +lean_ctor_set(x_434, 2, x_431); +lean_ctor_set(x_434, 3, x_433); +x_435 = l_Array_empty___closed__1; +x_436 = lean_array_push(x_435, x_434); +x_437 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; +x_438 = lean_array_push(x_436, x_437); +x_439 = l_Lean_mkTermIdFromIdent___closed__2; +x_440 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_440, 0, x_439); +lean_ctor_set(x_440, 1, x_438); +x_441 = lean_array_push(x_435, x_440); +x_442 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_443 = l_Lean_addMacroScope(x_427, x_442, x_424); +x_444 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_445 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_445, 0, x_429); lean_ctor_set(x_445, 1, x_444); -x_446 = lean_array_push(x_432, x_445); -x_447 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_404); -x_448 = lean_array_push(x_446, x_447); -x_449 = l_Lean_nullKind___closed__2; -x_450 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_450, 0, x_449); -lean_ctor_set(x_450, 1, x_448); -x_451 = lean_array_push(x_438, x_450); -x_452 = l_Lean_mkAppStx___closed__8; +lean_ctor_set(x_445, 2, x_443); +lean_ctor_set(x_445, 3, x_27); +x_446 = lean_array_push(x_435, x_445); +x_447 = lean_array_push(x_446, x_437); +x_448 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_448, 0, x_439); +lean_ctor_set(x_448, 1, x_447); +x_449 = lean_array_push(x_435, x_448); +x_450 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_407); +x_451 = lean_array_push(x_449, x_450); +x_452 = l_Lean_nullKind___closed__2; x_453 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_453, 0, x_452); lean_ctor_set(x_453, 1, x_451); -x_454 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_425); +x_454 = lean_array_push(x_441, x_453); +x_455 = l_Lean_mkAppStx___closed__8; +x_456 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_456, 0, x_455); +lean_ctor_set(x_456, 1, x_454); +x_457 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_428); lean_dec(x_4); -x_455 = lean_ctor_get(x_454, 0); -lean_inc(x_455); -x_456 = lean_ctor_get(x_454, 1); -lean_inc(x_456); -lean_dec(x_454); -x_457 = l_Lean_Elab_Term_getMainModule___rarg(x_456); x_458 = lean_ctor_get(x_457, 0); lean_inc(x_458); x_459 = lean_ctor_get(x_457, 1); lean_inc(x_459); -if (lean_is_exclusive(x_457)) { - lean_ctor_release(x_457, 0); - lean_ctor_release(x_457, 1); - x_460 = x_457; +lean_dec(x_457); +x_460 = l_Lean_Elab_Term_getMainModule___rarg(x_459); +x_461 = lean_ctor_get(x_460, 0); +lean_inc(x_461); +x_462 = lean_ctor_get(x_460, 1); +lean_inc(x_462); +if (lean_is_exclusive(x_460)) { + lean_ctor_release(x_460, 0); + lean_ctor_release(x_460, 1); + x_463 = x_460; } else { - lean_dec_ref(x_457); - x_460 = lean_box(0); + lean_dec_ref(x_460); + x_463 = lean_box(0); } -lean_inc(x_455); lean_inc(x_458); -x_461 = l_Lean_addMacroScope(x_458, x_439, x_455); -x_462 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_462, 0, x_426); -lean_ctor_set(x_462, 1, x_441); -lean_ctor_set(x_462, 2, x_461); -lean_ctor_set(x_462, 3, x_27); -x_463 = lean_array_push(x_432, x_462); -x_464 = lean_array_push(x_463, x_434); -x_465 = lean_array_push(x_464, x_434); -x_466 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; -x_467 = lean_array_push(x_465, x_466); -x_468 = lean_array_push(x_467, x_17); -x_469 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_470 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_470, 0, x_469); -lean_ctor_set(x_470, 1, x_468); -x_471 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_472 = lean_array_push(x_471, x_470); -x_473 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_474 = lean_array_push(x_472, x_473); -x_475 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; -x_476 = l_Lean_addMacroScope(x_458, x_475, x_455); -x_477 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; -x_478 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; -x_479 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_479, 0, x_426); -lean_ctor_set(x_479, 1, x_477); -lean_ctor_set(x_479, 2, x_476); -lean_ctor_set(x_479, 3, x_478); -x_480 = lean_array_push(x_432, x_479); -x_481 = lean_array_push(x_480, x_434); -x_482 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_482, 0, x_436); -lean_ctor_set(x_482, 1, x_481); -x_483 = lean_array_push(x_432, x_482); -x_484 = lean_array_push(x_432, x_453); -x_485 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_485, 0, x_449); -lean_ctor_set(x_485, 1, x_484); -x_486 = lean_array_push(x_483, x_485); -x_487 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_487, 0, x_452); -lean_ctor_set(x_487, 1, x_486); -x_488 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_489 = lean_array_push(x_488, x_487); -x_490 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; -x_491 = lean_array_push(x_489, x_490); -x_492 = lean_array_push(x_491, x_402); -x_493 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; -x_494 = lean_array_push(x_492, x_493); -x_495 = lean_array_push(x_494, x_418); -x_496 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_497 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_497, 0, x_496); -lean_ctor_set(x_497, 1, x_495); -x_498 = lean_array_push(x_474, x_497); -x_499 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_500 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_500, 0, x_499); -lean_ctor_set(x_500, 1, x_498); -if (lean_is_scalar(x_460)) { - x_501 = lean_alloc_ctor(0, 2, 0); -} else { - x_501 = x_460; -} +lean_inc(x_461); +x_464 = l_Lean_addMacroScope(x_461, x_442, x_458); +x_465 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_465, 0, x_429); +lean_ctor_set(x_465, 1, x_444); +lean_ctor_set(x_465, 2, x_464); +lean_ctor_set(x_465, 3, x_27); +x_466 = lean_array_push(x_435, x_465); +x_467 = lean_array_push(x_466, x_437); +x_468 = lean_array_push(x_467, x_437); +x_469 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_470 = lean_array_push(x_468, x_469); +x_471 = lean_array_push(x_470, x_17); +x_472 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_473 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_473, 0, x_472); +lean_ctor_set(x_473, 1, x_471); +x_474 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_475 = lean_array_push(x_474, x_473); +x_476 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_477 = lean_array_push(x_475, x_476); +x_478 = lean_array_push(x_435, x_456); +x_479 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_480 = lean_array_push(x_478, x_479); +x_481 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_482 = l_Lean_addMacroScope(x_461, x_481, x_458); +x_483 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +x_484 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_485 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_485, 0, x_429); +lean_ctor_set(x_485, 1, x_483); +lean_ctor_set(x_485, 2, x_482); +lean_ctor_set(x_485, 3, x_484); +x_486 = lean_array_push(x_435, x_485); +x_487 = lean_array_push(x_486, x_437); +x_488 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_488, 0, x_439); +lean_ctor_set(x_488, 1, x_487); +x_489 = lean_array_push(x_480, x_488); +x_490 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_491 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_491, 0, x_490); +lean_ctor_set(x_491, 1, x_489); +x_492 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; +x_493 = lean_array_push(x_492, x_491); +x_494 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_495 = lean_array_push(x_493, x_494); +x_496 = lean_array_push(x_495, x_405); +x_497 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; +x_498 = lean_array_push(x_496, x_497); +x_499 = lean_array_push(x_498, x_421); +x_500 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_501 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_501, 0, x_500); -lean_ctor_set(x_501, 1, x_459); -return x_501; -} -else -{ -lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; -lean_dec(x_404); -lean_dec(x_402); -lean_dec(x_17); -lean_dec(x_4); -x_502 = lean_ctor_get(x_417, 0); -lean_inc(x_502); -x_503 = lean_ctor_get(x_417, 1); -lean_inc(x_503); -if (lean_is_exclusive(x_417)) { - lean_ctor_release(x_417, 0); - lean_ctor_release(x_417, 1); - x_504 = x_417; +lean_ctor_set(x_501, 1, x_499); +x_502 = lean_array_push(x_477, x_501); +x_503 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_504 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_504, 0, x_503); +lean_ctor_set(x_504, 1, x_502); +if (lean_is_scalar(x_463)) { + x_505 = lean_alloc_ctor(0, 2, 0); } else { - lean_dec_ref(x_417); - x_504 = lean_box(0); + x_505 = x_463; } -if (lean_is_scalar(x_504)) { - x_505 = lean_alloc_ctor(1, 2, 0); -} else { - x_505 = x_504; -} -lean_ctor_set(x_505, 0, x_502); -lean_ctor_set(x_505, 1, x_503); +lean_ctor_set(x_505, 0, x_504); +lean_ctor_set(x_505, 1, x_462); return x_505; } -} -} else { lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; -lean_dec(x_364); -lean_dec(x_363); -lean_dec(x_362); -lean_dec(x_361); -lean_dec(x_360); -lean_dec(x_359); -lean_dec(x_358); -lean_dec(x_357); -lean_dec(x_356); -lean_dec(x_25); -lean_dec(x_21); +lean_dec(x_407); +lean_dec(x_405); lean_dec(x_17); lean_dec(x_4); -lean_dec(x_2); -x_506 = lean_ctor_get(x_368, 0); +x_506 = lean_ctor_get(x_420, 0); lean_inc(x_506); -x_507 = lean_ctor_get(x_368, 1); +x_507 = lean_ctor_get(x_420, 1); lean_inc(x_507); -if (lean_is_exclusive(x_368)) { - lean_ctor_release(x_368, 0); - lean_ctor_release(x_368, 1); - x_508 = x_368; +if (lean_is_exclusive(x_420)) { + lean_ctor_release(x_420, 0); + lean_ctor_release(x_420, 1); + x_508 = x_420; } else { - lean_dec_ref(x_368); + lean_dec_ref(x_420); x_508 = lean_box(0); } if (lean_is_scalar(x_508)) { @@ -9376,1519 +9346,1555 @@ return x_509; } else { -uint8_t x_510; +lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; +lean_dec(x_367); +lean_dec(x_366); +lean_dec(x_365); +lean_dec(x_364); +lean_dec(x_363); +lean_dec(x_362); +lean_dec(x_361); +lean_dec(x_360); +lean_dec(x_359); lean_dec(x_25); lean_dec(x_21); -lean_dec(x_18); lean_dec(x_17); lean_dec(x_4); lean_dec(x_2); -x_510 = !lean_is_exclusive(x_29); -if (x_510 == 0) -{ -return x_29; -} -else -{ -lean_object* x_511; lean_object* x_512; lean_object* x_513; -x_511 = lean_ctor_get(x_29, 0); -x_512 = lean_ctor_get(x_29, 1); -lean_inc(x_512); +x_510 = lean_ctor_get(x_371, 0); +lean_inc(x_510); +x_511 = lean_ctor_get(x_371, 1); lean_inc(x_511); -lean_dec(x_29); -x_513 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_513, 0, x_511); -lean_ctor_set(x_513, 1, x_512); +if (lean_is_exclusive(x_371)) { + lean_ctor_release(x_371, 0); + lean_ctor_release(x_371, 1); + x_512 = x_371; +} else { + lean_dec_ref(x_371); + x_512 = lean_box(0); +} +if (lean_is_scalar(x_512)) { + x_513 = lean_alloc_ctor(1, 2, 0); +} else { + x_513 = x_512; +} +lean_ctor_set(x_513, 0, x_510); +lean_ctor_set(x_513, 1, x_511); return x_513; } } } else { -lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; -x_514 = lean_ctor_get(x_26, 0); -lean_inc(x_514); -lean_dec(x_26); -x_515 = lean_array_get_size(x_514); -lean_dec(x_514); -lean_inc(x_515); -x_516 = l_List_range(x_515); -x_517 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8(x_516, x_4, x_5); -x_518 = lean_ctor_get(x_517, 0); -lean_inc(x_518); -x_519 = lean_ctor_get(x_517, 1); -lean_inc(x_519); -lean_dec(x_517); -x_520 = lean_box(0); -lean_inc(x_21); -x_521 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__9(x_25, x_21, x_520); -lean_inc(x_4); -x_522 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__10(x_518, x_521, x_4, x_519); -if (lean_obj_tag(x_522) == 0) -{ -lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; -x_523 = lean_ctor_get(x_522, 0); -lean_inc(x_523); -x_524 = lean_ctor_get(x_522, 1); -lean_inc(x_524); -lean_dec(x_522); -x_525 = l_List_append___rarg(x_518, x_18); -x_526 = !lean_is_exclusive(x_524); -if (x_526 == 0) -{ -lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; uint8_t x_539; uint8_t x_540; lean_object* x_541; lean_object* x_542; -x_527 = lean_ctor_get(x_524, 5); -x_528 = lean_unsigned_to_nat(1u); -x_529 = lean_nat_add(x_527, x_528); -lean_ctor_set(x_524, 5, x_529); -x_530 = lean_ctor_get(x_4, 0); -lean_inc(x_530); -x_531 = lean_ctor_get(x_4, 1); -lean_inc(x_531); -x_532 = lean_ctor_get(x_4, 2); -lean_inc(x_532); -x_533 = lean_ctor_get(x_4, 3); -lean_inc(x_533); -x_534 = lean_ctor_get(x_4, 4); -lean_inc(x_534); -x_535 = lean_ctor_get(x_4, 5); -lean_inc(x_535); -x_536 = lean_ctor_get(x_4, 6); -lean_inc(x_536); -x_537 = lean_ctor_get(x_4, 7); -lean_inc(x_537); -x_538 = lean_ctor_get(x_4, 8); -lean_inc(x_538); -x_539 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_540 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -lean_inc(x_538); -lean_inc(x_537); -lean_inc(x_536); -lean_inc(x_535); -lean_inc(x_534); -lean_inc(x_533); -lean_inc(x_532); -lean_inc(x_531); -lean_inc(x_530); -x_541 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_541, 0, x_530); -lean_ctor_set(x_541, 1, x_531); -lean_ctor_set(x_541, 2, x_532); -lean_ctor_set(x_541, 3, x_533); -lean_ctor_set(x_541, 4, x_534); -lean_ctor_set(x_541, 5, x_535); -lean_ctor_set(x_541, 6, x_536); -lean_ctor_set(x_541, 7, x_537); -lean_ctor_set(x_541, 8, x_538); -lean_ctor_set(x_541, 9, x_527); -lean_ctor_set_uint8(x_541, sizeof(void*)*10, x_539); -lean_ctor_set_uint8(x_541, sizeof(void*)*10 + 1, x_540); -x_542 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_525, x_523, x_541, x_524); -if (lean_obj_tag(x_542) == 0) -{ -lean_object* x_543; -x_543 = lean_ctor_get(x_25, 0); -lean_inc(x_543); -if (lean_obj_tag(x_543) == 0) -{ -lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; uint8_t x_550; -lean_dec(x_538); -lean_dec(x_537); -lean_dec(x_536); -lean_dec(x_535); -lean_dec(x_534); -lean_dec(x_533); -lean_dec(x_532); -lean_dec(x_531); -lean_dec(x_530); -lean_dec(x_515); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_2); -x_544 = lean_ctor_get(x_542, 0); -lean_inc(x_544); -x_545 = lean_ctor_get(x_542, 1); -lean_inc(x_545); -lean_dec(x_542); -x_546 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_545); -lean_dec(x_4); -x_547 = lean_ctor_get(x_546, 0); -lean_inc(x_547); -x_548 = lean_ctor_get(x_546, 1); -lean_inc(x_548); -lean_dec(x_546); -x_549 = l_Lean_Elab_Term_getMainModule___rarg(x_548); -x_550 = !lean_is_exclusive(x_549); -if (x_550 == 0) -{ -lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; -x_551 = lean_ctor_get(x_549, 0); -x_552 = lean_box(0); -x_553 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; -x_554 = l_Lean_addMacroScope(x_551, x_553, x_547); -x_555 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; -x_556 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_556, 0, x_552); -lean_ctor_set(x_556, 1, x_555); -lean_ctor_set(x_556, 2, x_554); -lean_ctor_set(x_556, 3, x_520); -x_557 = l_Array_empty___closed__1; -x_558 = lean_array_push(x_557, x_556); -x_559 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; -x_560 = lean_array_push(x_558, x_559); -x_561 = lean_array_push(x_560, x_559); -x_562 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; -x_563 = lean_array_push(x_561, x_562); -x_564 = lean_array_push(x_563, x_17); -x_565 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_566 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_566, 0, x_565); -lean_ctor_set(x_566, 1, x_564); -x_567 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_568 = lean_array_push(x_567, x_566); -x_569 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_570 = lean_array_push(x_568, x_569); -x_571 = lean_array_push(x_570, x_544); -x_572 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_573 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_573, 0, x_572); -lean_ctor_set(x_573, 1, x_571); -lean_ctor_set(x_549, 0, x_573); -return x_549; -} -else -{ -lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; -x_574 = lean_ctor_get(x_549, 0); -x_575 = lean_ctor_get(x_549, 1); -lean_inc(x_575); -lean_inc(x_574); -lean_dec(x_549); -x_576 = lean_box(0); -x_577 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; -x_578 = l_Lean_addMacroScope(x_574, x_577, x_547); -x_579 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; -x_580 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_580, 0, x_576); -lean_ctor_set(x_580, 1, x_579); -lean_ctor_set(x_580, 2, x_578); -lean_ctor_set(x_580, 3, x_520); -x_581 = l_Array_empty___closed__1; -x_582 = lean_array_push(x_581, x_580); -x_583 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; -x_584 = lean_array_push(x_582, x_583); -x_585 = lean_array_push(x_584, x_583); -x_586 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; -x_587 = lean_array_push(x_585, x_586); -x_588 = lean_array_push(x_587, x_17); -x_589 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_590 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_590, 0, x_589); -lean_ctor_set(x_590, 1, x_588); -x_591 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_592 = lean_array_push(x_591, x_590); -x_593 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_594 = lean_array_push(x_592, x_593); -x_595 = lean_array_push(x_594, x_544); -x_596 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_597 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_597, 0, x_596); -lean_ctor_set(x_597, 1, x_595); -x_598 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_598, 0, x_597); -lean_ctor_set(x_598, 1, x_575); -return x_598; -} -} -else -{ -lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; uint8_t x_604; -x_599 = lean_ctor_get(x_542, 0); -lean_inc(x_599); -x_600 = lean_ctor_get(x_542, 1); -lean_inc(x_600); -lean_dec(x_542); -x_601 = lean_ctor_get(x_543, 0); -lean_inc(x_601); -lean_dec(x_543); -x_602 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__11(x_25, x_21, x_520); -lean_dec(x_25); -x_603 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_602); -x_604 = !lean_is_exclusive(x_600); -if (x_604 == 0) -{ -lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; -x_605 = lean_ctor_get(x_600, 5); -x_606 = lean_nat_add(x_605, x_528); -lean_ctor_set(x_600, 5, x_606); -x_607 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_607, 0, x_530); -lean_ctor_set(x_607, 1, x_531); -lean_ctor_set(x_607, 2, x_532); -lean_ctor_set(x_607, 3, x_533); -lean_ctor_set(x_607, 4, x_534); -lean_ctor_set(x_607, 5, x_535); -lean_ctor_set(x_607, 6, x_536); -lean_ctor_set(x_607, 7, x_537); -lean_ctor_set(x_607, 8, x_538); -lean_ctor_set(x_607, 9, x_605); -lean_ctor_set_uint8(x_607, sizeof(void*)*10, x_539); -lean_ctor_set_uint8(x_607, sizeof(void*)*10 + 1, x_540); -x_608 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_603, x_607, x_600); -if (lean_obj_tag(x_608) == 0) -{ -lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; uint8_t x_702; -x_609 = lean_ctor_get(x_608, 0); -lean_inc(x_609); -x_610 = lean_ctor_get(x_608, 1); -lean_inc(x_610); -lean_dec(x_608); -x_611 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_610); -x_612 = lean_ctor_get(x_611, 0); -lean_inc(x_612); -x_613 = lean_ctor_get(x_611, 1); -lean_inc(x_613); -lean_dec(x_611); -x_614 = l_Lean_Elab_Term_getMainModule___rarg(x_613); -x_615 = lean_ctor_get(x_614, 0); -lean_inc(x_615); -x_616 = lean_ctor_get(x_614, 1); -lean_inc(x_616); -lean_dec(x_614); -x_617 = lean_box(0); -x_618 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; -lean_inc(x_612); -lean_inc(x_615); -x_619 = l_Lean_addMacroScope(x_615, x_618, x_612); -x_620 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -x_621 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; -x_622 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_622, 0, x_617); -lean_ctor_set(x_622, 1, x_620); -lean_ctor_set(x_622, 2, x_619); -lean_ctor_set(x_622, 3, x_621); -x_623 = l_Array_empty___closed__1; -x_624 = lean_array_push(x_623, x_622); -x_625 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; -x_626 = lean_array_push(x_624, x_625); -x_627 = l_Lean_mkTermIdFromIdent___closed__2; -x_628 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_628, 0, x_627); -lean_ctor_set(x_628, 1, x_626); -x_629 = lean_array_push(x_623, x_628); -x_630 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; -lean_inc(x_612); -lean_inc(x_615); -x_631 = l_Lean_addMacroScope(x_615, x_630, x_612); -x_632 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; -x_633 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_633, 0, x_617); -lean_ctor_set(x_633, 1, x_632); -lean_ctor_set(x_633, 2, x_631); -lean_ctor_set(x_633, 3, x_520); -x_634 = lean_array_push(x_623, x_633); -x_635 = lean_array_push(x_634, x_625); -x_636 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_636, 0, x_627); -lean_ctor_set(x_636, 1, x_635); -x_637 = lean_array_push(x_623, x_636); -x_638 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_601); -lean_inc(x_637); -x_639 = lean_array_push(x_637, x_638); -x_640 = l_Lean_nullKind___closed__2; -x_641 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_641, 0, x_640); -lean_ctor_set(x_641, 1, x_639); -x_642 = lean_array_push(x_629, x_641); -x_643 = l_Lean_mkAppStx___closed__8; -x_644 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_644, 0, x_643); -lean_ctor_set(x_644, 1, x_642); -x_645 = lean_array_push(x_623, x_644); -x_646 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__26; -x_647 = lean_array_push(x_645, x_646); -x_648 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__31; -lean_inc(x_612); -lean_inc(x_615); -x_649 = l_Lean_addMacroScope(x_615, x_648, x_612); -x_650 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29; -x_651 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__33; -x_652 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_652, 0, x_617); -lean_ctor_set(x_652, 1, x_650); -lean_ctor_set(x_652, 2, x_649); -lean_ctor_set(x_652, 3, x_651); -x_653 = lean_array_push(x_623, x_652); -x_654 = lean_array_push(x_653, x_625); -x_655 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_655, 0, x_627); -lean_ctor_set(x_655, 1, x_654); -x_656 = lean_array_push(x_623, x_655); -x_657 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; -x_658 = l_Lean_addMacroScope(x_615, x_657, x_612); -x_659 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; -x_660 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36; -x_661 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_661, 0, x_617); -lean_ctor_set(x_661, 1, x_659); -lean_ctor_set(x_661, 2, x_658); -lean_ctor_set(x_661, 3, x_660); -x_662 = lean_array_push(x_623, x_661); -x_663 = lean_array_push(x_662, x_625); -x_664 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_664, 0, x_627); -lean_ctor_set(x_664, 1, x_663); -x_665 = lean_array_push(x_623, x_664); -x_666 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_666, 0, x_640); -lean_ctor_set(x_666, 1, x_637); -x_667 = lean_array_push(x_665, x_666); -x_668 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_668, 0, x_643); -lean_ctor_set(x_668, 1, x_667); -x_669 = lean_array_push(x_623, x_668); -x_670 = lean_array_push(x_669, x_625); -x_671 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_671, 0, x_640); -lean_ctor_set(x_671, 1, x_670); -x_672 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; -x_673 = lean_array_push(x_672, x_671); -x_674 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; -x_675 = lean_array_push(x_673, x_674); -x_676 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__2; -x_677 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_677, 0, x_676); -lean_ctor_set(x_677, 1, x_675); -x_678 = lean_array_push(x_623, x_677); -x_679 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_679, 0, x_640); -lean_ctor_set(x_679, 1, x_678); -x_680 = lean_array_push(x_656, x_679); -x_681 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_681, 0, x_643); -lean_ctor_set(x_681, 1, x_680); -x_682 = lean_array_push(x_623, x_681); -x_683 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38; -x_684 = lean_array_push(x_682, x_683); -x_685 = l_Nat_repr(x_515); -x_686 = l_Lean_numLitKind; -x_687 = l_Lean_mkStxLit(x_686, x_685, x_617); -x_688 = l_Lean_mkOptionalNode___closed__2; -x_689 = lean_array_push(x_688, x_687); -x_690 = l_Lean_Parser_Term_num___elambda__1___closed__1; -x_691 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_691, 0, x_690); -lean_ctor_set(x_691, 1, x_689); -x_692 = lean_array_push(x_684, x_691); -x_693 = l_Lean_Parser_Term_beq___elambda__1___closed__2; -x_694 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_694, 0, x_693); -lean_ctor_set(x_694, 1, x_692); -x_695 = lean_array_push(x_647, x_694); -x_696 = l_Lean_Parser_Term_band___elambda__1___closed__2; -x_697 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_697, 0, x_696); -lean_ctor_set(x_697, 1, x_695); -x_698 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_616); -lean_dec(x_4); -x_699 = lean_ctor_get(x_698, 0); -lean_inc(x_699); -x_700 = lean_ctor_get(x_698, 1); -lean_inc(x_700); -lean_dec(x_698); -x_701 = l_Lean_Elab_Term_getMainModule___rarg(x_700); -x_702 = !lean_is_exclusive(x_701); -if (x_702 == 0) -{ -lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; -x_703 = lean_ctor_get(x_701, 0); -lean_inc(x_699); -lean_inc(x_703); -x_704 = l_Lean_addMacroScope(x_703, x_630, x_699); -x_705 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_705, 0, x_617); -lean_ctor_set(x_705, 1, x_632); -lean_ctor_set(x_705, 2, x_704); -lean_ctor_set(x_705, 3, x_520); -x_706 = lean_array_push(x_623, x_705); -x_707 = lean_array_push(x_706, x_625); -x_708 = lean_array_push(x_707, x_625); -x_709 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; -x_710 = lean_array_push(x_708, x_709); -x_711 = lean_array_push(x_710, x_17); -x_712 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_713 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_713, 0, x_712); -lean_ctor_set(x_713, 1, x_711); -x_714 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_715 = lean_array_push(x_714, x_713); -x_716 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_717 = lean_array_push(x_715, x_716); -x_718 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; -x_719 = l_Lean_addMacroScope(x_703, x_718, x_699); -x_720 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; -x_721 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; -x_722 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_722, 0, x_617); -lean_ctor_set(x_722, 1, x_720); -lean_ctor_set(x_722, 2, x_719); -lean_ctor_set(x_722, 3, x_721); -x_723 = lean_array_push(x_623, x_722); -x_724 = lean_array_push(x_723, x_625); -x_725 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_725, 0, x_627); -lean_ctor_set(x_725, 1, x_724); -x_726 = lean_array_push(x_623, x_725); -x_727 = lean_array_push(x_623, x_697); -x_728 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_728, 0, x_640); -lean_ctor_set(x_728, 1, x_727); -x_729 = lean_array_push(x_726, x_728); -x_730 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_730, 0, x_643); -lean_ctor_set(x_730, 1, x_729); -x_731 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_732 = lean_array_push(x_731, x_730); -x_733 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; -x_734 = lean_array_push(x_732, x_733); -x_735 = lean_array_push(x_734, x_599); -x_736 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; -x_737 = lean_array_push(x_735, x_736); -x_738 = lean_array_push(x_737, x_609); -x_739 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_740 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_740, 0, x_739); -lean_ctor_set(x_740, 1, x_738); -x_741 = lean_array_push(x_717, x_740); -x_742 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_743 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_743, 0, x_742); -lean_ctor_set(x_743, 1, x_741); -lean_ctor_set(x_701, 0, x_743); -return x_701; -} -else -{ -lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; -x_744 = lean_ctor_get(x_701, 0); -x_745 = lean_ctor_get(x_701, 1); -lean_inc(x_745); -lean_inc(x_744); -lean_dec(x_701); -lean_inc(x_699); -lean_inc(x_744); -x_746 = l_Lean_addMacroScope(x_744, x_630, x_699); -x_747 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_747, 0, x_617); -lean_ctor_set(x_747, 1, x_632); -lean_ctor_set(x_747, 2, x_746); -lean_ctor_set(x_747, 3, x_520); -x_748 = lean_array_push(x_623, x_747); -x_749 = lean_array_push(x_748, x_625); -x_750 = lean_array_push(x_749, x_625); -x_751 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; -x_752 = lean_array_push(x_750, x_751); -x_753 = lean_array_push(x_752, x_17); -x_754 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_755 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_755, 0, x_754); -lean_ctor_set(x_755, 1, x_753); -x_756 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_757 = lean_array_push(x_756, x_755); -x_758 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_759 = lean_array_push(x_757, x_758); -x_760 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; -x_761 = l_Lean_addMacroScope(x_744, x_760, x_699); -x_762 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; -x_763 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; -x_764 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_764, 0, x_617); -lean_ctor_set(x_764, 1, x_762); -lean_ctor_set(x_764, 2, x_761); -lean_ctor_set(x_764, 3, x_763); -x_765 = lean_array_push(x_623, x_764); -x_766 = lean_array_push(x_765, x_625); -x_767 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_767, 0, x_627); -lean_ctor_set(x_767, 1, x_766); -x_768 = lean_array_push(x_623, x_767); -x_769 = lean_array_push(x_623, x_697); -x_770 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_770, 0, x_640); -lean_ctor_set(x_770, 1, x_769); -x_771 = lean_array_push(x_768, x_770); -x_772 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_772, 0, x_643); -lean_ctor_set(x_772, 1, x_771); -x_773 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_774 = lean_array_push(x_773, x_772); -x_775 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; -x_776 = lean_array_push(x_774, x_775); -x_777 = lean_array_push(x_776, x_599); -x_778 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; -x_779 = lean_array_push(x_777, x_778); -x_780 = lean_array_push(x_779, x_609); -x_781 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_782 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_782, 0, x_781); -lean_ctor_set(x_782, 1, x_780); -x_783 = lean_array_push(x_759, x_782); -x_784 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_785 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_785, 0, x_784); -lean_ctor_set(x_785, 1, x_783); -x_786 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_786, 0, x_785); -lean_ctor_set(x_786, 1, x_745); -return x_786; -} -} -else -{ -uint8_t x_787; -lean_dec(x_601); -lean_dec(x_599); -lean_dec(x_515); -lean_dec(x_17); -lean_dec(x_4); -x_787 = !lean_is_exclusive(x_608); -if (x_787 == 0) -{ -return x_608; -} -else -{ -lean_object* x_788; lean_object* x_789; lean_object* x_790; -x_788 = lean_ctor_get(x_608, 0); -x_789 = lean_ctor_get(x_608, 1); -lean_inc(x_789); -lean_inc(x_788); -lean_dec(x_608); -x_790 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_790, 0, x_788); -lean_ctor_set(x_790, 1, x_789); -return x_790; -} -} -} -else -{ -lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; -x_791 = lean_ctor_get(x_600, 0); -x_792 = lean_ctor_get(x_600, 1); -x_793 = lean_ctor_get(x_600, 2); -x_794 = lean_ctor_get(x_600, 3); -x_795 = lean_ctor_get(x_600, 4); -x_796 = lean_ctor_get(x_600, 5); -lean_inc(x_796); -lean_inc(x_795); -lean_inc(x_794); -lean_inc(x_793); -lean_inc(x_792); -lean_inc(x_791); -lean_dec(x_600); -x_797 = lean_nat_add(x_796, x_528); -x_798 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_798, 0, x_791); -lean_ctor_set(x_798, 1, x_792); -lean_ctor_set(x_798, 2, x_793); -lean_ctor_set(x_798, 3, x_794); -lean_ctor_set(x_798, 4, x_795); -lean_ctor_set(x_798, 5, x_797); -x_799 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_799, 0, x_530); -lean_ctor_set(x_799, 1, x_531); -lean_ctor_set(x_799, 2, x_532); -lean_ctor_set(x_799, 3, x_533); -lean_ctor_set(x_799, 4, x_534); -lean_ctor_set(x_799, 5, x_535); -lean_ctor_set(x_799, 6, x_536); -lean_ctor_set(x_799, 7, x_537); -lean_ctor_set(x_799, 8, x_538); -lean_ctor_set(x_799, 9, x_796); -lean_ctor_set_uint8(x_799, sizeof(void*)*10, x_539); -lean_ctor_set_uint8(x_799, sizeof(void*)*10 + 1, x_540); -x_800 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_603, x_799, x_798); -if (lean_obj_tag(x_800) == 0) -{ -lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; -x_801 = lean_ctor_get(x_800, 0); -lean_inc(x_801); -x_802 = lean_ctor_get(x_800, 1); -lean_inc(x_802); -lean_dec(x_800); -x_803 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_802); -x_804 = lean_ctor_get(x_803, 0); -lean_inc(x_804); -x_805 = lean_ctor_get(x_803, 1); -lean_inc(x_805); -lean_dec(x_803); -x_806 = l_Lean_Elab_Term_getMainModule___rarg(x_805); -x_807 = lean_ctor_get(x_806, 0); -lean_inc(x_807); -x_808 = lean_ctor_get(x_806, 1); -lean_inc(x_808); -lean_dec(x_806); -x_809 = lean_box(0); -x_810 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; -lean_inc(x_804); -lean_inc(x_807); -x_811 = l_Lean_addMacroScope(x_807, x_810, x_804); -x_812 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -x_813 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; -x_814 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_814, 0, x_809); -lean_ctor_set(x_814, 1, x_812); -lean_ctor_set(x_814, 2, x_811); -lean_ctor_set(x_814, 3, x_813); -x_815 = l_Array_empty___closed__1; -x_816 = lean_array_push(x_815, x_814); -x_817 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; -x_818 = lean_array_push(x_816, x_817); -x_819 = l_Lean_mkTermIdFromIdent___closed__2; -x_820 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_820, 0, x_819); -lean_ctor_set(x_820, 1, x_818); -x_821 = lean_array_push(x_815, x_820); -x_822 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; -lean_inc(x_804); -lean_inc(x_807); -x_823 = l_Lean_addMacroScope(x_807, x_822, x_804); -x_824 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; -x_825 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_825, 0, x_809); -lean_ctor_set(x_825, 1, x_824); -lean_ctor_set(x_825, 2, x_823); -lean_ctor_set(x_825, 3, x_520); -x_826 = lean_array_push(x_815, x_825); -x_827 = lean_array_push(x_826, x_817); -x_828 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_828, 0, x_819); -lean_ctor_set(x_828, 1, x_827); -x_829 = lean_array_push(x_815, x_828); -x_830 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_601); -lean_inc(x_829); -x_831 = lean_array_push(x_829, x_830); -x_832 = l_Lean_nullKind___closed__2; -x_833 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_833, 0, x_832); -lean_ctor_set(x_833, 1, x_831); -x_834 = lean_array_push(x_821, x_833); -x_835 = l_Lean_mkAppStx___closed__8; -x_836 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_836, 0, x_835); -lean_ctor_set(x_836, 1, x_834); -x_837 = lean_array_push(x_815, x_836); -x_838 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__26; -x_839 = lean_array_push(x_837, x_838); -x_840 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__31; -lean_inc(x_804); -lean_inc(x_807); -x_841 = l_Lean_addMacroScope(x_807, x_840, x_804); -x_842 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29; -x_843 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__33; -x_844 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_844, 0, x_809); -lean_ctor_set(x_844, 1, x_842); -lean_ctor_set(x_844, 2, x_841); -lean_ctor_set(x_844, 3, x_843); -x_845 = lean_array_push(x_815, x_844); -x_846 = lean_array_push(x_845, x_817); -x_847 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_847, 0, x_819); -lean_ctor_set(x_847, 1, x_846); -x_848 = lean_array_push(x_815, x_847); -x_849 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; -x_850 = l_Lean_addMacroScope(x_807, x_849, x_804); -x_851 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; -x_852 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36; -x_853 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_853, 0, x_809); -lean_ctor_set(x_853, 1, x_851); -lean_ctor_set(x_853, 2, x_850); -lean_ctor_set(x_853, 3, x_852); -x_854 = lean_array_push(x_815, x_853); -x_855 = lean_array_push(x_854, x_817); -x_856 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_856, 0, x_819); -lean_ctor_set(x_856, 1, x_855); -x_857 = lean_array_push(x_815, x_856); -x_858 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_858, 0, x_832); -lean_ctor_set(x_858, 1, x_829); -x_859 = lean_array_push(x_857, x_858); -x_860 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_860, 0, x_835); -lean_ctor_set(x_860, 1, x_859); -x_861 = lean_array_push(x_815, x_860); -x_862 = lean_array_push(x_861, x_817); -x_863 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_863, 0, x_832); -lean_ctor_set(x_863, 1, x_862); -x_864 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; -x_865 = lean_array_push(x_864, x_863); -x_866 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; -x_867 = lean_array_push(x_865, x_866); -x_868 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__2; -x_869 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_869, 0, x_868); -lean_ctor_set(x_869, 1, x_867); -x_870 = lean_array_push(x_815, x_869); -x_871 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_871, 0, x_832); -lean_ctor_set(x_871, 1, x_870); -x_872 = lean_array_push(x_848, x_871); -x_873 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_873, 0, x_835); -lean_ctor_set(x_873, 1, x_872); -x_874 = lean_array_push(x_815, x_873); -x_875 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38; -x_876 = lean_array_push(x_874, x_875); -x_877 = l_Nat_repr(x_515); -x_878 = l_Lean_numLitKind; -x_879 = l_Lean_mkStxLit(x_878, x_877, x_809); -x_880 = l_Lean_mkOptionalNode___closed__2; -x_881 = lean_array_push(x_880, x_879); -x_882 = l_Lean_Parser_Term_num___elambda__1___closed__1; -x_883 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_883, 0, x_882); -lean_ctor_set(x_883, 1, x_881); -x_884 = lean_array_push(x_876, x_883); -x_885 = l_Lean_Parser_Term_beq___elambda__1___closed__2; -x_886 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_886, 0, x_885); -lean_ctor_set(x_886, 1, x_884); -x_887 = lean_array_push(x_839, x_886); -x_888 = l_Lean_Parser_Term_band___elambda__1___closed__2; -x_889 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_889, 0, x_888); -lean_ctor_set(x_889, 1, x_887); -x_890 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_808); -lean_dec(x_4); -x_891 = lean_ctor_get(x_890, 0); -lean_inc(x_891); -x_892 = lean_ctor_get(x_890, 1); -lean_inc(x_892); -lean_dec(x_890); -x_893 = l_Lean_Elab_Term_getMainModule___rarg(x_892); -x_894 = lean_ctor_get(x_893, 0); -lean_inc(x_894); -x_895 = lean_ctor_get(x_893, 1); -lean_inc(x_895); -if (lean_is_exclusive(x_893)) { - lean_ctor_release(x_893, 0); - lean_ctor_release(x_893, 1); - x_896 = x_893; -} else { - lean_dec_ref(x_893); - x_896 = lean_box(0); -} -lean_inc(x_891); -lean_inc(x_894); -x_897 = l_Lean_addMacroScope(x_894, x_822, x_891); -x_898 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_898, 0, x_809); -lean_ctor_set(x_898, 1, x_824); -lean_ctor_set(x_898, 2, x_897); -lean_ctor_set(x_898, 3, x_520); -x_899 = lean_array_push(x_815, x_898); -x_900 = lean_array_push(x_899, x_817); -x_901 = lean_array_push(x_900, x_817); -x_902 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; -x_903 = lean_array_push(x_901, x_902); -x_904 = lean_array_push(x_903, x_17); -x_905 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_906 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_906, 0, x_905); -lean_ctor_set(x_906, 1, x_904); -x_907 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_908 = lean_array_push(x_907, x_906); -x_909 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_910 = lean_array_push(x_908, x_909); -x_911 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; -x_912 = l_Lean_addMacroScope(x_894, x_911, x_891); -x_913 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; -x_914 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; -x_915 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_915, 0, x_809); -lean_ctor_set(x_915, 1, x_913); -lean_ctor_set(x_915, 2, x_912); -lean_ctor_set(x_915, 3, x_914); -x_916 = lean_array_push(x_815, x_915); -x_917 = lean_array_push(x_916, x_817); -x_918 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_918, 0, x_819); -lean_ctor_set(x_918, 1, x_917); -x_919 = lean_array_push(x_815, x_918); -x_920 = lean_array_push(x_815, x_889); -x_921 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_921, 0, x_832); -lean_ctor_set(x_921, 1, x_920); -x_922 = lean_array_push(x_919, x_921); -x_923 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_923, 0, x_835); -lean_ctor_set(x_923, 1, x_922); -x_924 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_925 = lean_array_push(x_924, x_923); -x_926 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; -x_927 = lean_array_push(x_925, x_926); -x_928 = lean_array_push(x_927, x_599); -x_929 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; -x_930 = lean_array_push(x_928, x_929); -x_931 = lean_array_push(x_930, x_801); -x_932 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_933 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_933, 0, x_932); -lean_ctor_set(x_933, 1, x_931); -x_934 = lean_array_push(x_910, x_933); -x_935 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_936 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_936, 0, x_935); -lean_ctor_set(x_936, 1, x_934); -if (lean_is_scalar(x_896)) { - x_937 = lean_alloc_ctor(0, 2, 0); -} else { - x_937 = x_896; -} -lean_ctor_set(x_937, 0, x_936); -lean_ctor_set(x_937, 1, x_895); -return x_937; -} -else -{ -lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; -lean_dec(x_601); -lean_dec(x_599); -lean_dec(x_515); -lean_dec(x_17); -lean_dec(x_4); -x_938 = lean_ctor_get(x_800, 0); -lean_inc(x_938); -x_939 = lean_ctor_get(x_800, 1); -lean_inc(x_939); -if (lean_is_exclusive(x_800)) { - lean_ctor_release(x_800, 0); - lean_ctor_release(x_800, 1); - x_940 = x_800; -} else { - lean_dec_ref(x_800); - x_940 = lean_box(0); -} -if (lean_is_scalar(x_940)) { - x_941 = lean_alloc_ctor(1, 2, 0); -} else { - x_941 = x_940; -} -lean_ctor_set(x_941, 0, x_938); -lean_ctor_set(x_941, 1, x_939); -return x_941; -} -} -} -} -else -{ -uint8_t x_942; -lean_dec(x_538); -lean_dec(x_537); -lean_dec(x_536); -lean_dec(x_535); -lean_dec(x_534); -lean_dec(x_533); -lean_dec(x_532); -lean_dec(x_531); -lean_dec(x_530); -lean_dec(x_515); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_4); -lean_dec(x_2); -x_942 = !lean_is_exclusive(x_542); -if (x_942 == 0) -{ -return x_542; -} -else -{ -lean_object* x_943; lean_object* x_944; lean_object* x_945; -x_943 = lean_ctor_get(x_542, 0); -x_944 = lean_ctor_get(x_542, 1); -lean_inc(x_944); -lean_inc(x_943); -lean_dec(x_542); -x_945 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_945, 0, x_943); -lean_ctor_set(x_945, 1, x_944); -return x_945; -} -} -} -else -{ -lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; uint8_t x_964; uint8_t x_965; lean_object* x_966; lean_object* x_967; -x_946 = lean_ctor_get(x_524, 0); -x_947 = lean_ctor_get(x_524, 1); -x_948 = lean_ctor_get(x_524, 2); -x_949 = lean_ctor_get(x_524, 3); -x_950 = lean_ctor_get(x_524, 4); -x_951 = lean_ctor_get(x_524, 5); -lean_inc(x_951); -lean_inc(x_950); -lean_inc(x_949); -lean_inc(x_948); -lean_inc(x_947); -lean_inc(x_946); -lean_dec(x_524); -x_952 = lean_unsigned_to_nat(1u); -x_953 = lean_nat_add(x_951, x_952); -x_954 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_954, 0, x_946); -lean_ctor_set(x_954, 1, x_947); -lean_ctor_set(x_954, 2, x_948); -lean_ctor_set(x_954, 3, x_949); -lean_ctor_set(x_954, 4, x_950); -lean_ctor_set(x_954, 5, x_953); -x_955 = lean_ctor_get(x_4, 0); -lean_inc(x_955); -x_956 = lean_ctor_get(x_4, 1); -lean_inc(x_956); -x_957 = lean_ctor_get(x_4, 2); -lean_inc(x_957); -x_958 = lean_ctor_get(x_4, 3); -lean_inc(x_958); -x_959 = lean_ctor_get(x_4, 4); -lean_inc(x_959); -x_960 = lean_ctor_get(x_4, 5); -lean_inc(x_960); -x_961 = lean_ctor_get(x_4, 6); -lean_inc(x_961); -x_962 = lean_ctor_get(x_4, 7); -lean_inc(x_962); -x_963 = lean_ctor_get(x_4, 8); -lean_inc(x_963); -x_964 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); -x_965 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); -lean_inc(x_963); -lean_inc(x_962); -lean_inc(x_961); -lean_inc(x_960); -lean_inc(x_959); -lean_inc(x_958); -lean_inc(x_957); -lean_inc(x_956); -lean_inc(x_955); -x_966 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_966, 0, x_955); -lean_ctor_set(x_966, 1, x_956); -lean_ctor_set(x_966, 2, x_957); -lean_ctor_set(x_966, 3, x_958); -lean_ctor_set(x_966, 4, x_959); -lean_ctor_set(x_966, 5, x_960); -lean_ctor_set(x_966, 6, x_961); -lean_ctor_set(x_966, 7, x_962); -lean_ctor_set(x_966, 8, x_963); -lean_ctor_set(x_966, 9, x_951); -lean_ctor_set_uint8(x_966, sizeof(void*)*10, x_964); -lean_ctor_set_uint8(x_966, sizeof(void*)*10 + 1, x_965); -x_967 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_525, x_523, x_966, x_954); -if (lean_obj_tag(x_967) == 0) -{ -lean_object* x_968; -x_968 = lean_ctor_get(x_25, 0); -lean_inc(x_968); -if (lean_obj_tag(x_968) == 0) -{ -lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; -lean_dec(x_963); -lean_dec(x_962); -lean_dec(x_961); -lean_dec(x_960); -lean_dec(x_959); -lean_dec(x_958); -lean_dec(x_957); -lean_dec(x_956); -lean_dec(x_955); -lean_dec(x_515); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_2); -x_969 = lean_ctor_get(x_967, 0); -lean_inc(x_969); -x_970 = lean_ctor_get(x_967, 1); -lean_inc(x_970); -lean_dec(x_967); -x_971 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_970); -lean_dec(x_4); -x_972 = lean_ctor_get(x_971, 0); -lean_inc(x_972); -x_973 = lean_ctor_get(x_971, 1); -lean_inc(x_973); -lean_dec(x_971); -x_974 = l_Lean_Elab_Term_getMainModule___rarg(x_973); -x_975 = lean_ctor_get(x_974, 0); -lean_inc(x_975); -x_976 = lean_ctor_get(x_974, 1); -lean_inc(x_976); -if (lean_is_exclusive(x_974)) { - lean_ctor_release(x_974, 0); - lean_ctor_release(x_974, 1); - x_977 = x_974; -} else { - lean_dec_ref(x_974); - x_977 = lean_box(0); -} -x_978 = lean_box(0); -x_979 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; -x_980 = l_Lean_addMacroScope(x_975, x_979, x_972); -x_981 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; -x_982 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_982, 0, x_978); -lean_ctor_set(x_982, 1, x_981); -lean_ctor_set(x_982, 2, x_980); -lean_ctor_set(x_982, 3, x_520); -x_983 = l_Array_empty___closed__1; -x_984 = lean_array_push(x_983, x_982); -x_985 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; -x_986 = lean_array_push(x_984, x_985); -x_987 = lean_array_push(x_986, x_985); -x_988 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; -x_989 = lean_array_push(x_987, x_988); -x_990 = lean_array_push(x_989, x_17); -x_991 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_992 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_992, 0, x_991); -lean_ctor_set(x_992, 1, x_990); -x_993 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_994 = lean_array_push(x_993, x_992); -x_995 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_996 = lean_array_push(x_994, x_995); -x_997 = lean_array_push(x_996, x_969); -x_998 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_999 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_999, 0, x_998); -lean_ctor_set(x_999, 1, x_997); -if (lean_is_scalar(x_977)) { - x_1000 = lean_alloc_ctor(0, 2, 0); -} else { - x_1000 = x_977; -} -lean_ctor_set(x_1000, 0, x_999); -lean_ctor_set(x_1000, 1, x_976); -return x_1000; -} -else -{ -lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; -x_1001 = lean_ctor_get(x_967, 0); -lean_inc(x_1001); -x_1002 = lean_ctor_get(x_967, 1); -lean_inc(x_1002); -lean_dec(x_967); -x_1003 = lean_ctor_get(x_968, 0); -lean_inc(x_1003); -lean_dec(x_968); -x_1004 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__11(x_25, x_21, x_520); -lean_dec(x_25); -x_1005 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_1004); -x_1006 = lean_ctor_get(x_1002, 0); -lean_inc(x_1006); -x_1007 = lean_ctor_get(x_1002, 1); -lean_inc(x_1007); -x_1008 = lean_ctor_get(x_1002, 2); -lean_inc(x_1008); -x_1009 = lean_ctor_get(x_1002, 3); -lean_inc(x_1009); -x_1010 = lean_ctor_get(x_1002, 4); -lean_inc(x_1010); -x_1011 = lean_ctor_get(x_1002, 5); -lean_inc(x_1011); -if (lean_is_exclusive(x_1002)) { - lean_ctor_release(x_1002, 0); - lean_ctor_release(x_1002, 1); - lean_ctor_release(x_1002, 2); - lean_ctor_release(x_1002, 3); - lean_ctor_release(x_1002, 4); - lean_ctor_release(x_1002, 5); - x_1012 = x_1002; -} else { - lean_dec_ref(x_1002); - x_1012 = lean_box(0); -} -x_1013 = lean_nat_add(x_1011, x_952); -if (lean_is_scalar(x_1012)) { - x_1014 = lean_alloc_ctor(0, 6, 0); -} else { - x_1014 = x_1012; -} -lean_ctor_set(x_1014, 0, x_1006); -lean_ctor_set(x_1014, 1, x_1007); -lean_ctor_set(x_1014, 2, x_1008); -lean_ctor_set(x_1014, 3, x_1009); -lean_ctor_set(x_1014, 4, x_1010); -lean_ctor_set(x_1014, 5, x_1013); -x_1015 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_1015, 0, x_955); -lean_ctor_set(x_1015, 1, x_956); -lean_ctor_set(x_1015, 2, x_957); -lean_ctor_set(x_1015, 3, x_958); -lean_ctor_set(x_1015, 4, x_959); -lean_ctor_set(x_1015, 5, x_960); -lean_ctor_set(x_1015, 6, x_961); -lean_ctor_set(x_1015, 7, x_962); -lean_ctor_set(x_1015, 8, x_963); -lean_ctor_set(x_1015, 9, x_1011); -lean_ctor_set_uint8(x_1015, sizeof(void*)*10, x_964); -lean_ctor_set_uint8(x_1015, sizeof(void*)*10 + 1, x_965); -x_1016 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_1005, x_1015, x_1014); -if (lean_obj_tag(x_1016) == 0) -{ -lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; -x_1017 = lean_ctor_get(x_1016, 0); -lean_inc(x_1017); -x_1018 = lean_ctor_get(x_1016, 1); -lean_inc(x_1018); -lean_dec(x_1016); -x_1019 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1018); -x_1020 = lean_ctor_get(x_1019, 0); -lean_inc(x_1020); -x_1021 = lean_ctor_get(x_1019, 1); -lean_inc(x_1021); -lean_dec(x_1019); -x_1022 = l_Lean_Elab_Term_getMainModule___rarg(x_1021); -x_1023 = lean_ctor_get(x_1022, 0); -lean_inc(x_1023); -x_1024 = lean_ctor_get(x_1022, 1); -lean_inc(x_1024); -lean_dec(x_1022); -x_1025 = lean_box(0); -x_1026 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; -lean_inc(x_1020); -lean_inc(x_1023); -x_1027 = l_Lean_addMacroScope(x_1023, x_1026, x_1020); -x_1028 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; -x_1029 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; -x_1030 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1030, 0, x_1025); -lean_ctor_set(x_1030, 1, x_1028); -lean_ctor_set(x_1030, 2, x_1027); -lean_ctor_set(x_1030, 3, x_1029); -x_1031 = l_Array_empty___closed__1; -x_1032 = lean_array_push(x_1031, x_1030); -x_1033 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; -x_1034 = lean_array_push(x_1032, x_1033); -x_1035 = l_Lean_mkTermIdFromIdent___closed__2; -x_1036 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1036, 0, x_1035); -lean_ctor_set(x_1036, 1, x_1034); -x_1037 = lean_array_push(x_1031, x_1036); -x_1038 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; -lean_inc(x_1020); -lean_inc(x_1023); -x_1039 = l_Lean_addMacroScope(x_1023, x_1038, x_1020); -x_1040 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; -x_1041 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1041, 0, x_1025); -lean_ctor_set(x_1041, 1, x_1040); -lean_ctor_set(x_1041, 2, x_1039); -lean_ctor_set(x_1041, 3, x_520); -x_1042 = lean_array_push(x_1031, x_1041); -x_1043 = lean_array_push(x_1042, x_1033); -x_1044 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1044, 0, x_1035); -lean_ctor_set(x_1044, 1, x_1043); -x_1045 = lean_array_push(x_1031, x_1044); -x_1046 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_1003); -lean_inc(x_1045); -x_1047 = lean_array_push(x_1045, x_1046); -x_1048 = l_Lean_nullKind___closed__2; -x_1049 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1049, 0, x_1048); -lean_ctor_set(x_1049, 1, x_1047); -x_1050 = lean_array_push(x_1037, x_1049); -x_1051 = l_Lean_mkAppStx___closed__8; -x_1052 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1052, 0, x_1051); -lean_ctor_set(x_1052, 1, x_1050); -x_1053 = lean_array_push(x_1031, x_1052); -x_1054 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__26; -x_1055 = lean_array_push(x_1053, x_1054); -x_1056 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__31; -lean_inc(x_1020); -lean_inc(x_1023); -x_1057 = l_Lean_addMacroScope(x_1023, x_1056, x_1020); -x_1058 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29; -x_1059 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__33; -x_1060 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1060, 0, x_1025); -lean_ctor_set(x_1060, 1, x_1058); -lean_ctor_set(x_1060, 2, x_1057); -lean_ctor_set(x_1060, 3, x_1059); -x_1061 = lean_array_push(x_1031, x_1060); -x_1062 = lean_array_push(x_1061, x_1033); -x_1063 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1063, 0, x_1035); -lean_ctor_set(x_1063, 1, x_1062); -x_1064 = lean_array_push(x_1031, x_1063); -x_1065 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; -x_1066 = l_Lean_addMacroScope(x_1023, x_1065, x_1020); -x_1067 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; -x_1068 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36; -x_1069 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1069, 0, x_1025); -lean_ctor_set(x_1069, 1, x_1067); -lean_ctor_set(x_1069, 2, x_1066); -lean_ctor_set(x_1069, 3, x_1068); -x_1070 = lean_array_push(x_1031, x_1069); -x_1071 = lean_array_push(x_1070, x_1033); -x_1072 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1072, 0, x_1035); -lean_ctor_set(x_1072, 1, x_1071); -x_1073 = lean_array_push(x_1031, x_1072); -x_1074 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1074, 0, x_1048); -lean_ctor_set(x_1074, 1, x_1045); -x_1075 = lean_array_push(x_1073, x_1074); -x_1076 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1076, 0, x_1051); -lean_ctor_set(x_1076, 1, x_1075); -x_1077 = lean_array_push(x_1031, x_1076); -x_1078 = lean_array_push(x_1077, x_1033); -x_1079 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1079, 0, x_1048); -lean_ctor_set(x_1079, 1, x_1078); -x_1080 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; -x_1081 = lean_array_push(x_1080, x_1079); -x_1082 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; -x_1083 = lean_array_push(x_1081, x_1082); -x_1084 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__2; -x_1085 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1085, 0, x_1084); -lean_ctor_set(x_1085, 1, x_1083); -x_1086 = lean_array_push(x_1031, x_1085); -x_1087 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1087, 0, x_1048); -lean_ctor_set(x_1087, 1, x_1086); -x_1088 = lean_array_push(x_1064, x_1087); -x_1089 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1089, 0, x_1051); -lean_ctor_set(x_1089, 1, x_1088); -x_1090 = lean_array_push(x_1031, x_1089); -x_1091 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38; -x_1092 = lean_array_push(x_1090, x_1091); -x_1093 = l_Nat_repr(x_515); -x_1094 = l_Lean_numLitKind; -x_1095 = l_Lean_mkStxLit(x_1094, x_1093, x_1025); -x_1096 = l_Lean_mkOptionalNode___closed__2; -x_1097 = lean_array_push(x_1096, x_1095); -x_1098 = l_Lean_Parser_Term_num___elambda__1___closed__1; -x_1099 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1099, 0, x_1098); -lean_ctor_set(x_1099, 1, x_1097); -x_1100 = lean_array_push(x_1092, x_1099); -x_1101 = l_Lean_Parser_Term_beq___elambda__1___closed__2; -x_1102 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1102, 0, x_1101); -lean_ctor_set(x_1102, 1, x_1100); -x_1103 = lean_array_push(x_1055, x_1102); -x_1104 = l_Lean_Parser_Term_band___elambda__1___closed__2; -x_1105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1105, 0, x_1104); -lean_ctor_set(x_1105, 1, x_1103); -x_1106 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1024); -lean_dec(x_4); -x_1107 = lean_ctor_get(x_1106, 0); -lean_inc(x_1107); -x_1108 = lean_ctor_get(x_1106, 1); -lean_inc(x_1108); -lean_dec(x_1106); -x_1109 = l_Lean_Elab_Term_getMainModule___rarg(x_1108); -x_1110 = lean_ctor_get(x_1109, 0); -lean_inc(x_1110); -x_1111 = lean_ctor_get(x_1109, 1); -lean_inc(x_1111); -if (lean_is_exclusive(x_1109)) { - lean_ctor_release(x_1109, 0); - lean_ctor_release(x_1109, 1); - x_1112 = x_1109; -} else { - lean_dec_ref(x_1109); - x_1112 = lean_box(0); -} -lean_inc(x_1107); -lean_inc(x_1110); -x_1113 = l_Lean_addMacroScope(x_1110, x_1038, x_1107); -x_1114 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1114, 0, x_1025); -lean_ctor_set(x_1114, 1, x_1040); -lean_ctor_set(x_1114, 2, x_1113); -lean_ctor_set(x_1114, 3, x_520); -x_1115 = lean_array_push(x_1031, x_1114); -x_1116 = lean_array_push(x_1115, x_1033); -x_1117 = lean_array_push(x_1116, x_1033); -x_1118 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; -x_1119 = lean_array_push(x_1117, x_1118); -x_1120 = lean_array_push(x_1119, x_17); -x_1121 = l_Lean_Parser_Term_letIdDecl___closed__2; -x_1122 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1122, 0, x_1121); -lean_ctor_set(x_1122, 1, x_1120); -x_1123 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; -x_1124 = lean_array_push(x_1123, x_1122); -x_1125 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; -x_1126 = lean_array_push(x_1124, x_1125); -x_1127 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; -x_1128 = l_Lean_addMacroScope(x_1110, x_1127, x_1107); -x_1129 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; -x_1130 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; -x_1131 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_1131, 0, x_1025); -lean_ctor_set(x_1131, 1, x_1129); -lean_ctor_set(x_1131, 2, x_1128); -lean_ctor_set(x_1131, 3, x_1130); -x_1132 = lean_array_push(x_1031, x_1131); -x_1133 = lean_array_push(x_1132, x_1033); -x_1134 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1134, 0, x_1035); -lean_ctor_set(x_1134, 1, x_1133); -x_1135 = lean_array_push(x_1031, x_1134); -x_1136 = lean_array_push(x_1031, x_1105); -x_1137 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1137, 0, x_1048); -lean_ctor_set(x_1137, 1, x_1136); -x_1138 = lean_array_push(x_1135, x_1137); -x_1139 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1139, 0, x_1051); -lean_ctor_set(x_1139, 1, x_1138); -x_1140 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; -x_1141 = lean_array_push(x_1140, x_1139); -x_1142 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; -x_1143 = lean_array_push(x_1141, x_1142); -x_1144 = lean_array_push(x_1143, x_1001); -x_1145 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; -x_1146 = lean_array_push(x_1144, x_1145); -x_1147 = lean_array_push(x_1146, x_1017); -x_1148 = l_Lean_Parser_Term_if___elambda__1___closed__2; -x_1149 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1149, 0, x_1148); -lean_ctor_set(x_1149, 1, x_1147); -x_1150 = lean_array_push(x_1126, x_1149); -x_1151 = l_Lean_Parser_Term_let___elambda__1___closed__2; -x_1152 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1152, 0, x_1151); -lean_ctor_set(x_1152, 1, x_1150); -if (lean_is_scalar(x_1112)) { - x_1153 = lean_alloc_ctor(0, 2, 0); -} else { - x_1153 = x_1112; -} -lean_ctor_set(x_1153, 0, x_1152); -lean_ctor_set(x_1153, 1, x_1111); -return x_1153; -} -else -{ -lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; -lean_dec(x_1003); -lean_dec(x_1001); -lean_dec(x_515); -lean_dec(x_17); -lean_dec(x_4); -x_1154 = lean_ctor_get(x_1016, 0); -lean_inc(x_1154); -x_1155 = lean_ctor_get(x_1016, 1); -lean_inc(x_1155); -if (lean_is_exclusive(x_1016)) { - lean_ctor_release(x_1016, 0); - lean_ctor_release(x_1016, 1); - x_1156 = x_1016; -} else { - lean_dec_ref(x_1016); - x_1156 = lean_box(0); -} -if (lean_is_scalar(x_1156)) { - x_1157 = lean_alloc_ctor(1, 2, 0); -} else { - x_1157 = x_1156; -} -lean_ctor_set(x_1157, 0, x_1154); -lean_ctor_set(x_1157, 1, x_1155); -return x_1157; -} -} -} -else -{ -lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; -lean_dec(x_963); -lean_dec(x_962); -lean_dec(x_961); -lean_dec(x_960); -lean_dec(x_959); -lean_dec(x_958); -lean_dec(x_957); -lean_dec(x_956); -lean_dec(x_955); -lean_dec(x_515); -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_4); -lean_dec(x_2); -x_1158 = lean_ctor_get(x_967, 0); -lean_inc(x_1158); -x_1159 = lean_ctor_get(x_967, 1); -lean_inc(x_1159); -if (lean_is_exclusive(x_967)) { - lean_ctor_release(x_967, 0); - lean_ctor_release(x_967, 1); - x_1160 = x_967; -} else { - lean_dec_ref(x_967); - x_1160 = lean_box(0); -} -if (lean_is_scalar(x_1160)) { - x_1161 = lean_alloc_ctor(1, 2, 0); -} else { - x_1161 = x_1160; -} -lean_ctor_set(x_1161, 0, x_1158); -lean_ctor_set(x_1161, 1, x_1159); -return x_1161; -} -} -} -else -{ -uint8_t x_1162; -lean_dec(x_518); -lean_dec(x_515); +uint8_t x_514; lean_dec(x_25); lean_dec(x_21); lean_dec(x_18); lean_dec(x_17); lean_dec(x_4); lean_dec(x_2); -x_1162 = !lean_is_exclusive(x_522); -if (x_1162 == 0) +x_514 = !lean_is_exclusive(x_29); +if (x_514 == 0) { -return x_522; +return x_29; } else { -lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; -x_1163 = lean_ctor_get(x_522, 0); -x_1164 = lean_ctor_get(x_522, 1); -lean_inc(x_1164); +lean_object* x_515; lean_object* x_516; lean_object* x_517; +x_515 = lean_ctor_get(x_29, 0); +x_516 = lean_ctor_get(x_29, 1); +lean_inc(x_516); +lean_inc(x_515); +lean_dec(x_29); +x_517 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_517, 0, x_515); +lean_ctor_set(x_517, 1, x_516); +return x_517; +} +} +} +else +{ +lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; +x_518 = lean_ctor_get(x_26, 0); +lean_inc(x_518); +lean_dec(x_26); +x_519 = lean_array_get_size(x_518); +lean_dec(x_518); +lean_inc(x_519); +x_520 = l_List_range(x_519); +x_521 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__8(x_520, x_4, x_5); +x_522 = lean_ctor_get(x_521, 0); +lean_inc(x_522); +x_523 = lean_ctor_get(x_521, 1); +lean_inc(x_523); +lean_dec(x_521); +x_524 = lean_box(0); +lean_inc(x_21); +x_525 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__9(x_25, x_21, x_524); +lean_inc(x_4); +x_526 = l_List_mapM___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__10(x_522, x_525, x_4, x_523); +if (lean_obj_tag(x_526) == 0) +{ +lean_object* x_527; lean_object* x_528; lean_object* x_529; uint8_t x_530; +x_527 = lean_ctor_get(x_526, 0); +lean_inc(x_527); +x_528 = lean_ctor_get(x_526, 1); +lean_inc(x_528); +lean_dec(x_526); +x_529 = l_List_append___rarg(x_522, x_18); +x_530 = !lean_is_exclusive(x_528); +if (x_530 == 0) +{ +lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; uint8_t x_543; uint8_t x_544; lean_object* x_545; lean_object* x_546; +x_531 = lean_ctor_get(x_528, 5); +x_532 = lean_unsigned_to_nat(1u); +x_533 = lean_nat_add(x_531, x_532); +lean_ctor_set(x_528, 5, x_533); +x_534 = lean_ctor_get(x_4, 0); +lean_inc(x_534); +x_535 = lean_ctor_get(x_4, 1); +lean_inc(x_535); +x_536 = lean_ctor_get(x_4, 2); +lean_inc(x_536); +x_537 = lean_ctor_get(x_4, 3); +lean_inc(x_537); +x_538 = lean_ctor_get(x_4, 4); +lean_inc(x_538); +x_539 = lean_ctor_get(x_4, 5); +lean_inc(x_539); +x_540 = lean_ctor_get(x_4, 6); +lean_inc(x_540); +x_541 = lean_ctor_get(x_4, 7); +lean_inc(x_541); +x_542 = lean_ctor_get(x_4, 8); +lean_inc(x_542); +x_543 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_544 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +lean_inc(x_542); +lean_inc(x_541); +lean_inc(x_540); +lean_inc(x_539); +lean_inc(x_538); +lean_inc(x_537); +lean_inc(x_536); +lean_inc(x_535); +lean_inc(x_534); +x_545 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_545, 0, x_534); +lean_ctor_set(x_545, 1, x_535); +lean_ctor_set(x_545, 2, x_536); +lean_ctor_set(x_545, 3, x_537); +lean_ctor_set(x_545, 4, x_538); +lean_ctor_set(x_545, 5, x_539); +lean_ctor_set(x_545, 6, x_540); +lean_ctor_set(x_545, 7, x_541); +lean_ctor_set(x_545, 8, x_542); +lean_ctor_set(x_545, 9, x_531); +lean_ctor_set_uint8(x_545, sizeof(void*)*10, x_543); +lean_ctor_set_uint8(x_545, sizeof(void*)*10 + 1, x_544); +x_546 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_529, x_527, x_545, x_528); +if (lean_obj_tag(x_546) == 0) +{ +lean_object* x_547; +x_547 = lean_ctor_get(x_25, 0); +lean_inc(x_547); +if (lean_obj_tag(x_547) == 0) +{ +lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; uint8_t x_554; +lean_dec(x_542); +lean_dec(x_541); +lean_dec(x_540); +lean_dec(x_539); +lean_dec(x_538); +lean_dec(x_537); +lean_dec(x_536); +lean_dec(x_535); +lean_dec(x_534); +lean_dec(x_519); +lean_dec(x_25); +lean_dec(x_21); +lean_dec(x_2); +x_548 = lean_ctor_get(x_546, 0); +lean_inc(x_548); +x_549 = lean_ctor_get(x_546, 1); +lean_inc(x_549); +lean_dec(x_546); +x_550 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_549); +lean_dec(x_4); +x_551 = lean_ctor_get(x_550, 0); +lean_inc(x_551); +x_552 = lean_ctor_get(x_550, 1); +lean_inc(x_552); +lean_dec(x_550); +x_553 = l_Lean_Elab_Term_getMainModule___rarg(x_552); +x_554 = !lean_is_exclusive(x_553); +if (x_554 == 0) +{ +lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; +x_555 = lean_ctor_get(x_553, 0); +x_556 = lean_box(0); +x_557 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_558 = l_Lean_addMacroScope(x_555, x_557, x_551); +x_559 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_560 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_560, 0, x_556); +lean_ctor_set(x_560, 1, x_559); +lean_ctor_set(x_560, 2, x_558); +lean_ctor_set(x_560, 3, x_524); +x_561 = l_Array_empty___closed__1; +x_562 = lean_array_push(x_561, x_560); +x_563 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; +x_564 = lean_array_push(x_562, x_563); +x_565 = lean_array_push(x_564, x_563); +x_566 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_567 = lean_array_push(x_565, x_566); +x_568 = lean_array_push(x_567, x_17); +x_569 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_570 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_570, 0, x_569); +lean_ctor_set(x_570, 1, x_568); +x_571 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_572 = lean_array_push(x_571, x_570); +x_573 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_574 = lean_array_push(x_572, x_573); +x_575 = lean_array_push(x_574, x_548); +x_576 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_577 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_577, 0, x_576); +lean_ctor_set(x_577, 1, x_575); +lean_ctor_set(x_553, 0, x_577); +return x_553; +} +else +{ +lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; +x_578 = lean_ctor_get(x_553, 0); +x_579 = lean_ctor_get(x_553, 1); +lean_inc(x_579); +lean_inc(x_578); +lean_dec(x_553); +x_580 = lean_box(0); +x_581 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_582 = l_Lean_addMacroScope(x_578, x_581, x_551); +x_583 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_584 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_584, 0, x_580); +lean_ctor_set(x_584, 1, x_583); +lean_ctor_set(x_584, 2, x_582); +lean_ctor_set(x_584, 3, x_524); +x_585 = l_Array_empty___closed__1; +x_586 = lean_array_push(x_585, x_584); +x_587 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; +x_588 = lean_array_push(x_586, x_587); +x_589 = lean_array_push(x_588, x_587); +x_590 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_591 = lean_array_push(x_589, x_590); +x_592 = lean_array_push(x_591, x_17); +x_593 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_594 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_594, 0, x_593); +lean_ctor_set(x_594, 1, x_592); +x_595 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_596 = lean_array_push(x_595, x_594); +x_597 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_598 = lean_array_push(x_596, x_597); +x_599 = lean_array_push(x_598, x_548); +x_600 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_601 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_601, 0, x_600); +lean_ctor_set(x_601, 1, x_599); +x_602 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_602, 0, x_601); +lean_ctor_set(x_602, 1, x_579); +return x_602; +} +} +else +{ +lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; uint8_t x_608; +x_603 = lean_ctor_get(x_546, 0); +lean_inc(x_603); +x_604 = lean_ctor_get(x_546, 1); +lean_inc(x_604); +lean_dec(x_546); +x_605 = lean_ctor_get(x_547, 0); +lean_inc(x_605); +lean_dec(x_547); +x_606 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__11(x_25, x_21, x_524); +lean_dec(x_25); +x_607 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_606); +x_608 = !lean_is_exclusive(x_604); +if (x_608 == 0) +{ +lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; +x_609 = lean_ctor_get(x_604, 5); +x_610 = lean_nat_add(x_609, x_532); +lean_ctor_set(x_604, 5, x_610); +x_611 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_611, 0, x_534); +lean_ctor_set(x_611, 1, x_535); +lean_ctor_set(x_611, 2, x_536); +lean_ctor_set(x_611, 3, x_537); +lean_ctor_set(x_611, 4, x_538); +lean_ctor_set(x_611, 5, x_539); +lean_ctor_set(x_611, 6, x_540); +lean_ctor_set(x_611, 7, x_541); +lean_ctor_set(x_611, 8, x_542); +lean_ctor_set(x_611, 9, x_609); +lean_ctor_set_uint8(x_611, sizeof(void*)*10, x_543); +lean_ctor_set_uint8(x_611, sizeof(void*)*10 + 1, x_544); +x_612 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_607, x_611, x_604); +if (lean_obj_tag(x_612) == 0) +{ +lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_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; uint8_t x_706; +x_613 = lean_ctor_get(x_612, 0); +lean_inc(x_613); +x_614 = lean_ctor_get(x_612, 1); +lean_inc(x_614); +lean_dec(x_612); +x_615 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_614); +x_616 = lean_ctor_get(x_615, 0); +lean_inc(x_616); +x_617 = lean_ctor_get(x_615, 1); +lean_inc(x_617); +lean_dec(x_615); +x_618 = l_Lean_Elab_Term_getMainModule___rarg(x_617); +x_619 = lean_ctor_get(x_618, 0); +lean_inc(x_619); +x_620 = lean_ctor_get(x_618, 1); +lean_inc(x_620); +lean_dec(x_618); +x_621 = lean_box(0); +x_622 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; +lean_inc(x_616); +lean_inc(x_619); +x_623 = l_Lean_addMacroScope(x_619, x_622, x_616); +x_624 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; +x_625 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; +x_626 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_626, 0, x_621); +lean_ctor_set(x_626, 1, x_624); +lean_ctor_set(x_626, 2, x_623); +lean_ctor_set(x_626, 3, x_625); +x_627 = l_Array_empty___closed__1; +x_628 = lean_array_push(x_627, x_626); +x_629 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; +x_630 = lean_array_push(x_628, x_629); +x_631 = l_Lean_mkTermIdFromIdent___closed__2; +x_632 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_632, 0, x_631); +lean_ctor_set(x_632, 1, x_630); +x_633 = lean_array_push(x_627, x_632); +x_634 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +lean_inc(x_616); +lean_inc(x_619); +x_635 = l_Lean_addMacroScope(x_619, x_634, x_616); +x_636 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_637 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_637, 0, x_621); +lean_ctor_set(x_637, 1, x_636); +lean_ctor_set(x_637, 2, x_635); +lean_ctor_set(x_637, 3, x_524); +x_638 = lean_array_push(x_627, x_637); +x_639 = lean_array_push(x_638, x_629); +x_640 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_640, 0, x_631); +lean_ctor_set(x_640, 1, x_639); +x_641 = lean_array_push(x_627, x_640); +x_642 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_605); +lean_inc(x_641); +x_643 = lean_array_push(x_641, x_642); +x_644 = l_Lean_nullKind___closed__2; +x_645 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_645, 0, x_644); +lean_ctor_set(x_645, 1, x_643); +x_646 = lean_array_push(x_633, x_645); +x_647 = l_Lean_mkAppStx___closed__8; +x_648 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_648, 0, x_647); +lean_ctor_set(x_648, 1, x_646); +x_649 = lean_array_push(x_627, x_648); +x_650 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__26; +x_651 = lean_array_push(x_649, x_650); +x_652 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__31; +lean_inc(x_616); +lean_inc(x_619); +x_653 = l_Lean_addMacroScope(x_619, x_652, x_616); +x_654 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29; +x_655 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__33; +x_656 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_656, 0, x_621); +lean_ctor_set(x_656, 1, x_654); +lean_ctor_set(x_656, 2, x_653); +lean_ctor_set(x_656, 3, x_655); +x_657 = lean_array_push(x_627, x_656); +x_658 = lean_array_push(x_657, x_629); +x_659 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_659, 0, x_631); +lean_ctor_set(x_659, 1, x_658); +x_660 = lean_array_push(x_627, x_659); +x_661 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; +x_662 = l_Lean_addMacroScope(x_619, x_661, x_616); +x_663 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; +x_664 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36; +x_665 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_665, 0, x_621); +lean_ctor_set(x_665, 1, x_663); +lean_ctor_set(x_665, 2, x_662); +lean_ctor_set(x_665, 3, x_664); +x_666 = lean_array_push(x_627, x_665); +x_667 = lean_array_push(x_666, x_629); +x_668 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_668, 0, x_631); +lean_ctor_set(x_668, 1, x_667); +x_669 = lean_array_push(x_627, x_668); +x_670 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_670, 0, x_644); +lean_ctor_set(x_670, 1, x_641); +x_671 = lean_array_push(x_669, x_670); +x_672 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_672, 0, x_647); +lean_ctor_set(x_672, 1, x_671); +x_673 = lean_array_push(x_627, x_672); +x_674 = lean_array_push(x_673, x_629); +x_675 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_675, 0, x_644); +lean_ctor_set(x_675, 1, x_674); +x_676 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_677 = lean_array_push(x_676, x_675); +x_678 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_679 = lean_array_push(x_677, x_678); +x_680 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__2; +x_681 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_681, 0, x_680); +lean_ctor_set(x_681, 1, x_679); +x_682 = lean_array_push(x_627, x_681); +x_683 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_683, 0, x_644); +lean_ctor_set(x_683, 1, x_682); +x_684 = lean_array_push(x_660, x_683); +x_685 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_685, 0, x_647); +lean_ctor_set(x_685, 1, x_684); +x_686 = lean_array_push(x_627, x_685); +x_687 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38; +x_688 = lean_array_push(x_686, x_687); +x_689 = l_Nat_repr(x_519); +x_690 = l_Lean_numLitKind; +x_691 = l_Lean_mkStxLit(x_690, x_689, x_621); +x_692 = l_Lean_mkOptionalNode___closed__2; +x_693 = lean_array_push(x_692, x_691); +x_694 = l_Lean_Parser_Term_num___elambda__1___closed__1; +x_695 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_695, 0, x_694); +lean_ctor_set(x_695, 1, x_693); +x_696 = lean_array_push(x_688, x_695); +x_697 = l_Lean_Parser_Term_beq___elambda__1___closed__2; +x_698 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_698, 0, x_697); +lean_ctor_set(x_698, 1, x_696); +x_699 = lean_array_push(x_651, x_698); +x_700 = l_Lean_Parser_Term_band___elambda__1___closed__2; +x_701 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_701, 0, x_700); +lean_ctor_set(x_701, 1, x_699); +x_702 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_620); +lean_dec(x_4); +x_703 = lean_ctor_get(x_702, 0); +lean_inc(x_703); +x_704 = lean_ctor_get(x_702, 1); +lean_inc(x_704); +lean_dec(x_702); +x_705 = l_Lean_Elab_Term_getMainModule___rarg(x_704); +x_706 = !lean_is_exclusive(x_705); +if (x_706 == 0) +{ +lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; +x_707 = lean_ctor_get(x_705, 0); +lean_inc(x_703); +lean_inc(x_707); +x_708 = l_Lean_addMacroScope(x_707, x_634, x_703); +x_709 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_709, 0, x_621); +lean_ctor_set(x_709, 1, x_636); +lean_ctor_set(x_709, 2, x_708); +lean_ctor_set(x_709, 3, x_524); +x_710 = lean_array_push(x_627, x_709); +x_711 = lean_array_push(x_710, x_629); +x_712 = lean_array_push(x_711, x_629); +x_713 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_714 = lean_array_push(x_712, x_713); +x_715 = lean_array_push(x_714, x_17); +x_716 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_717 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_717, 0, x_716); +lean_ctor_set(x_717, 1, x_715); +x_718 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_719 = lean_array_push(x_718, x_717); +x_720 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_721 = lean_array_push(x_719, x_720); +x_722 = lean_array_push(x_627, x_701); +x_723 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_724 = lean_array_push(x_722, x_723); +x_725 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_726 = l_Lean_addMacroScope(x_707, x_725, x_703); +x_727 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +x_728 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_729 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_729, 0, x_621); +lean_ctor_set(x_729, 1, x_727); +lean_ctor_set(x_729, 2, x_726); +lean_ctor_set(x_729, 3, x_728); +x_730 = lean_array_push(x_627, x_729); +x_731 = lean_array_push(x_730, x_629); +x_732 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_732, 0, x_631); +lean_ctor_set(x_732, 1, x_731); +x_733 = lean_array_push(x_724, x_732); +x_734 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_735 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_735, 0, x_734); +lean_ctor_set(x_735, 1, x_733); +x_736 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; +x_737 = lean_array_push(x_736, x_735); +x_738 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_739 = lean_array_push(x_737, x_738); +x_740 = lean_array_push(x_739, x_603); +x_741 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; +x_742 = lean_array_push(x_740, x_741); +x_743 = lean_array_push(x_742, x_613); +x_744 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_745 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_745, 0, x_744); +lean_ctor_set(x_745, 1, x_743); +x_746 = lean_array_push(x_721, x_745); +x_747 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_748 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_748, 0, x_747); +lean_ctor_set(x_748, 1, x_746); +lean_ctor_set(x_705, 0, x_748); +return x_705; +} +else +{ +lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; +x_749 = lean_ctor_get(x_705, 0); +x_750 = lean_ctor_get(x_705, 1); +lean_inc(x_750); +lean_inc(x_749); +lean_dec(x_705); +lean_inc(x_703); +lean_inc(x_749); +x_751 = l_Lean_addMacroScope(x_749, x_634, x_703); +x_752 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_752, 0, x_621); +lean_ctor_set(x_752, 1, x_636); +lean_ctor_set(x_752, 2, x_751); +lean_ctor_set(x_752, 3, x_524); +x_753 = lean_array_push(x_627, x_752); +x_754 = lean_array_push(x_753, x_629); +x_755 = lean_array_push(x_754, x_629); +x_756 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_757 = lean_array_push(x_755, x_756); +x_758 = lean_array_push(x_757, x_17); +x_759 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_760 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_760, 0, x_759); +lean_ctor_set(x_760, 1, x_758); +x_761 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_762 = lean_array_push(x_761, x_760); +x_763 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_764 = lean_array_push(x_762, x_763); +x_765 = lean_array_push(x_627, x_701); +x_766 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_767 = lean_array_push(x_765, x_766); +x_768 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_769 = l_Lean_addMacroScope(x_749, x_768, x_703); +x_770 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +x_771 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_772 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_772, 0, x_621); +lean_ctor_set(x_772, 1, x_770); +lean_ctor_set(x_772, 2, x_769); +lean_ctor_set(x_772, 3, x_771); +x_773 = lean_array_push(x_627, x_772); +x_774 = lean_array_push(x_773, x_629); +x_775 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_775, 0, x_631); +lean_ctor_set(x_775, 1, x_774); +x_776 = lean_array_push(x_767, x_775); +x_777 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_778 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_778, 0, x_777); +lean_ctor_set(x_778, 1, x_776); +x_779 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; +x_780 = lean_array_push(x_779, x_778); +x_781 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_782 = lean_array_push(x_780, x_781); +x_783 = lean_array_push(x_782, x_603); +x_784 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; +x_785 = lean_array_push(x_783, x_784); +x_786 = lean_array_push(x_785, x_613); +x_787 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_788 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_788, 0, x_787); +lean_ctor_set(x_788, 1, x_786); +x_789 = lean_array_push(x_764, x_788); +x_790 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_791 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_791, 0, x_790); +lean_ctor_set(x_791, 1, x_789); +x_792 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_792, 0, x_791); +lean_ctor_set(x_792, 1, x_750); +return x_792; +} +} +else +{ +uint8_t x_793; +lean_dec(x_605); +lean_dec(x_603); +lean_dec(x_519); +lean_dec(x_17); +lean_dec(x_4); +x_793 = !lean_is_exclusive(x_612); +if (x_793 == 0) +{ +return x_612; +} +else +{ +lean_object* x_794; lean_object* x_795; lean_object* x_796; +x_794 = lean_ctor_get(x_612, 0); +x_795 = lean_ctor_get(x_612, 1); +lean_inc(x_795); +lean_inc(x_794); +lean_dec(x_612); +x_796 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_796, 0, x_794); +lean_ctor_set(x_796, 1, x_795); +return x_796; +} +} +} +else +{ +lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; +x_797 = lean_ctor_get(x_604, 0); +x_798 = lean_ctor_get(x_604, 1); +x_799 = lean_ctor_get(x_604, 2); +x_800 = lean_ctor_get(x_604, 3); +x_801 = lean_ctor_get(x_604, 4); +x_802 = lean_ctor_get(x_604, 5); +lean_inc(x_802); +lean_inc(x_801); +lean_inc(x_800); +lean_inc(x_799); +lean_inc(x_798); +lean_inc(x_797); +lean_dec(x_604); +x_803 = lean_nat_add(x_802, x_532); +x_804 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_804, 0, x_797); +lean_ctor_set(x_804, 1, x_798); +lean_ctor_set(x_804, 2, x_799); +lean_ctor_set(x_804, 3, x_800); +lean_ctor_set(x_804, 4, x_801); +lean_ctor_set(x_804, 5, x_803); +x_805 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_805, 0, x_534); +lean_ctor_set(x_805, 1, x_535); +lean_ctor_set(x_805, 2, x_536); +lean_ctor_set(x_805, 3, x_537); +lean_ctor_set(x_805, 4, x_538); +lean_ctor_set(x_805, 5, x_539); +lean_ctor_set(x_805, 6, x_540); +lean_ctor_set(x_805, 7, x_541); +lean_ctor_set(x_805, 8, x_542); +lean_ctor_set(x_805, 9, x_802); +lean_ctor_set_uint8(x_805, sizeof(void*)*10, x_543); +lean_ctor_set_uint8(x_805, sizeof(void*)*10 + 1, x_544); +x_806 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_607, x_805, x_804); +if (lean_obj_tag(x_806) == 0) +{ +lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; +x_807 = lean_ctor_get(x_806, 0); +lean_inc(x_807); +x_808 = lean_ctor_get(x_806, 1); +lean_inc(x_808); +lean_dec(x_806); +x_809 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_808); +x_810 = lean_ctor_get(x_809, 0); +lean_inc(x_810); +x_811 = lean_ctor_get(x_809, 1); +lean_inc(x_811); +lean_dec(x_809); +x_812 = l_Lean_Elab_Term_getMainModule___rarg(x_811); +x_813 = lean_ctor_get(x_812, 0); +lean_inc(x_813); +x_814 = lean_ctor_get(x_812, 1); +lean_inc(x_814); +lean_dec(x_812); +x_815 = lean_box(0); +x_816 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; +lean_inc(x_810); +lean_inc(x_813); +x_817 = l_Lean_addMacroScope(x_813, x_816, x_810); +x_818 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; +x_819 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; +x_820 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_820, 0, x_815); +lean_ctor_set(x_820, 1, x_818); +lean_ctor_set(x_820, 2, x_817); +lean_ctor_set(x_820, 3, x_819); +x_821 = l_Array_empty___closed__1; +x_822 = lean_array_push(x_821, x_820); +x_823 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; +x_824 = lean_array_push(x_822, x_823); +x_825 = l_Lean_mkTermIdFromIdent___closed__2; +x_826 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_826, 0, x_825); +lean_ctor_set(x_826, 1, x_824); +x_827 = lean_array_push(x_821, x_826); +x_828 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +lean_inc(x_810); +lean_inc(x_813); +x_829 = l_Lean_addMacroScope(x_813, x_828, x_810); +x_830 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_831 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_831, 0, x_815); +lean_ctor_set(x_831, 1, x_830); +lean_ctor_set(x_831, 2, x_829); +lean_ctor_set(x_831, 3, x_524); +x_832 = lean_array_push(x_821, x_831); +x_833 = lean_array_push(x_832, x_823); +x_834 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_834, 0, x_825); +lean_ctor_set(x_834, 1, x_833); +x_835 = lean_array_push(x_821, x_834); +x_836 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_605); +lean_inc(x_835); +x_837 = lean_array_push(x_835, x_836); +x_838 = l_Lean_nullKind___closed__2; +x_839 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_839, 0, x_838); +lean_ctor_set(x_839, 1, x_837); +x_840 = lean_array_push(x_827, x_839); +x_841 = l_Lean_mkAppStx___closed__8; +x_842 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_842, 0, x_841); +lean_ctor_set(x_842, 1, x_840); +x_843 = lean_array_push(x_821, x_842); +x_844 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__26; +x_845 = lean_array_push(x_843, x_844); +x_846 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__31; +lean_inc(x_810); +lean_inc(x_813); +x_847 = l_Lean_addMacroScope(x_813, x_846, x_810); +x_848 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29; +x_849 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__33; +x_850 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_850, 0, x_815); +lean_ctor_set(x_850, 1, x_848); +lean_ctor_set(x_850, 2, x_847); +lean_ctor_set(x_850, 3, x_849); +x_851 = lean_array_push(x_821, x_850); +x_852 = lean_array_push(x_851, x_823); +x_853 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_853, 0, x_825); +lean_ctor_set(x_853, 1, x_852); +x_854 = lean_array_push(x_821, x_853); +x_855 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; +x_856 = l_Lean_addMacroScope(x_813, x_855, x_810); +x_857 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; +x_858 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36; +x_859 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_859, 0, x_815); +lean_ctor_set(x_859, 1, x_857); +lean_ctor_set(x_859, 2, x_856); +lean_ctor_set(x_859, 3, x_858); +x_860 = lean_array_push(x_821, x_859); +x_861 = lean_array_push(x_860, x_823); +x_862 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_862, 0, x_825); +lean_ctor_set(x_862, 1, x_861); +x_863 = lean_array_push(x_821, x_862); +x_864 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_864, 0, x_838); +lean_ctor_set(x_864, 1, x_835); +x_865 = lean_array_push(x_863, x_864); +x_866 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_866, 0, x_841); +lean_ctor_set(x_866, 1, x_865); +x_867 = lean_array_push(x_821, x_866); +x_868 = lean_array_push(x_867, x_823); +x_869 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_869, 0, x_838); +lean_ctor_set(x_869, 1, x_868); +x_870 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_871 = lean_array_push(x_870, x_869); +x_872 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_873 = lean_array_push(x_871, x_872); +x_874 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__2; +x_875 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_875, 0, x_874); +lean_ctor_set(x_875, 1, x_873); +x_876 = lean_array_push(x_821, x_875); +x_877 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_877, 0, x_838); +lean_ctor_set(x_877, 1, x_876); +x_878 = lean_array_push(x_854, x_877); +x_879 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_879, 0, x_841); +lean_ctor_set(x_879, 1, x_878); +x_880 = lean_array_push(x_821, x_879); +x_881 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38; +x_882 = lean_array_push(x_880, x_881); +x_883 = l_Nat_repr(x_519); +x_884 = l_Lean_numLitKind; +x_885 = l_Lean_mkStxLit(x_884, x_883, x_815); +x_886 = l_Lean_mkOptionalNode___closed__2; +x_887 = lean_array_push(x_886, x_885); +x_888 = l_Lean_Parser_Term_num___elambda__1___closed__1; +x_889 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_889, 0, x_888); +lean_ctor_set(x_889, 1, x_887); +x_890 = lean_array_push(x_882, x_889); +x_891 = l_Lean_Parser_Term_beq___elambda__1___closed__2; +x_892 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_892, 0, x_891); +lean_ctor_set(x_892, 1, x_890); +x_893 = lean_array_push(x_845, x_892); +x_894 = l_Lean_Parser_Term_band___elambda__1___closed__2; +x_895 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_895, 0, x_894); +lean_ctor_set(x_895, 1, x_893); +x_896 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_814); +lean_dec(x_4); +x_897 = lean_ctor_get(x_896, 0); +lean_inc(x_897); +x_898 = lean_ctor_get(x_896, 1); +lean_inc(x_898); +lean_dec(x_896); +x_899 = l_Lean_Elab_Term_getMainModule___rarg(x_898); +x_900 = lean_ctor_get(x_899, 0); +lean_inc(x_900); +x_901 = lean_ctor_get(x_899, 1); +lean_inc(x_901); +if (lean_is_exclusive(x_899)) { + lean_ctor_release(x_899, 0); + lean_ctor_release(x_899, 1); + x_902 = x_899; +} else { + lean_dec_ref(x_899); + x_902 = lean_box(0); +} +lean_inc(x_897); +lean_inc(x_900); +x_903 = l_Lean_addMacroScope(x_900, x_828, x_897); +x_904 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_904, 0, x_815); +lean_ctor_set(x_904, 1, x_830); +lean_ctor_set(x_904, 2, x_903); +lean_ctor_set(x_904, 3, x_524); +x_905 = lean_array_push(x_821, x_904); +x_906 = lean_array_push(x_905, x_823); +x_907 = lean_array_push(x_906, x_823); +x_908 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_909 = lean_array_push(x_907, x_908); +x_910 = lean_array_push(x_909, x_17); +x_911 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_912 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_912, 0, x_911); +lean_ctor_set(x_912, 1, x_910); +x_913 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_914 = lean_array_push(x_913, x_912); +x_915 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_916 = lean_array_push(x_914, x_915); +x_917 = lean_array_push(x_821, x_895); +x_918 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_919 = lean_array_push(x_917, x_918); +x_920 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_921 = l_Lean_addMacroScope(x_900, x_920, x_897); +x_922 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +x_923 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_924 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_924, 0, x_815); +lean_ctor_set(x_924, 1, x_922); +lean_ctor_set(x_924, 2, x_921); +lean_ctor_set(x_924, 3, x_923); +x_925 = lean_array_push(x_821, x_924); +x_926 = lean_array_push(x_925, x_823); +x_927 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_927, 0, x_825); +lean_ctor_set(x_927, 1, x_926); +x_928 = lean_array_push(x_919, x_927); +x_929 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_930 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_930, 0, x_929); +lean_ctor_set(x_930, 1, x_928); +x_931 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; +x_932 = lean_array_push(x_931, x_930); +x_933 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_934 = lean_array_push(x_932, x_933); +x_935 = lean_array_push(x_934, x_603); +x_936 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; +x_937 = lean_array_push(x_935, x_936); +x_938 = lean_array_push(x_937, x_807); +x_939 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_940 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_940, 0, x_939); +lean_ctor_set(x_940, 1, x_938); +x_941 = lean_array_push(x_916, x_940); +x_942 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_943 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_943, 0, x_942); +lean_ctor_set(x_943, 1, x_941); +if (lean_is_scalar(x_902)) { + x_944 = lean_alloc_ctor(0, 2, 0); +} else { + x_944 = x_902; +} +lean_ctor_set(x_944, 0, x_943); +lean_ctor_set(x_944, 1, x_901); +return x_944; +} +else +{ +lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; +lean_dec(x_605); +lean_dec(x_603); +lean_dec(x_519); +lean_dec(x_17); +lean_dec(x_4); +x_945 = lean_ctor_get(x_806, 0); +lean_inc(x_945); +x_946 = lean_ctor_get(x_806, 1); +lean_inc(x_946); +if (lean_is_exclusive(x_806)) { + lean_ctor_release(x_806, 0); + lean_ctor_release(x_806, 1); + x_947 = x_806; +} else { + lean_dec_ref(x_806); + x_947 = lean_box(0); +} +if (lean_is_scalar(x_947)) { + x_948 = lean_alloc_ctor(1, 2, 0); +} else { + x_948 = x_947; +} +lean_ctor_set(x_948, 0, x_945); +lean_ctor_set(x_948, 1, x_946); +return x_948; +} +} +} +} +else +{ +uint8_t x_949; +lean_dec(x_542); +lean_dec(x_541); +lean_dec(x_540); +lean_dec(x_539); +lean_dec(x_538); +lean_dec(x_537); +lean_dec(x_536); +lean_dec(x_535); +lean_dec(x_534); +lean_dec(x_519); +lean_dec(x_25); +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_4); +lean_dec(x_2); +x_949 = !lean_is_exclusive(x_546); +if (x_949 == 0) +{ +return x_546; +} +else +{ +lean_object* x_950; lean_object* x_951; lean_object* x_952; +x_950 = lean_ctor_get(x_546, 0); +x_951 = lean_ctor_get(x_546, 1); +lean_inc(x_951); +lean_inc(x_950); +lean_dec(x_546); +x_952 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_952, 0, x_950); +lean_ctor_set(x_952, 1, x_951); +return x_952; +} +} +} +else +{ +lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; uint8_t x_971; uint8_t x_972; lean_object* x_973; lean_object* x_974; +x_953 = lean_ctor_get(x_528, 0); +x_954 = lean_ctor_get(x_528, 1); +x_955 = lean_ctor_get(x_528, 2); +x_956 = lean_ctor_get(x_528, 3); +x_957 = lean_ctor_get(x_528, 4); +x_958 = lean_ctor_get(x_528, 5); +lean_inc(x_958); +lean_inc(x_957); +lean_inc(x_956); +lean_inc(x_955); +lean_inc(x_954); +lean_inc(x_953); +lean_dec(x_528); +x_959 = lean_unsigned_to_nat(1u); +x_960 = lean_nat_add(x_958, x_959); +x_961 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_961, 0, x_953); +lean_ctor_set(x_961, 1, x_954); +lean_ctor_set(x_961, 2, x_955); +lean_ctor_set(x_961, 3, x_956); +lean_ctor_set(x_961, 4, x_957); +lean_ctor_set(x_961, 5, x_960); +x_962 = lean_ctor_get(x_4, 0); +lean_inc(x_962); +x_963 = lean_ctor_get(x_4, 1); +lean_inc(x_963); +x_964 = lean_ctor_get(x_4, 2); +lean_inc(x_964); +x_965 = lean_ctor_get(x_4, 3); +lean_inc(x_965); +x_966 = lean_ctor_get(x_4, 4); +lean_inc(x_966); +x_967 = lean_ctor_get(x_4, 5); +lean_inc(x_967); +x_968 = lean_ctor_get(x_4, 6); +lean_inc(x_968); +x_969 = lean_ctor_get(x_4, 7); +lean_inc(x_969); +x_970 = lean_ctor_get(x_4, 8); +lean_inc(x_970); +x_971 = lean_ctor_get_uint8(x_4, sizeof(void*)*10); +x_972 = lean_ctor_get_uint8(x_4, sizeof(void*)*10 + 1); +lean_inc(x_970); +lean_inc(x_969); +lean_inc(x_968); +lean_inc(x_967); +lean_inc(x_966); +lean_inc(x_965); +lean_inc(x_964); +lean_inc(x_963); +lean_inc(x_962); +x_973 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_973, 0, x_962); +lean_ctor_set(x_973, 1, x_963); +lean_ctor_set(x_973, 2, x_964); +lean_ctor_set(x_973, 3, x_965); +lean_ctor_set(x_973, 4, x_966); +lean_ctor_set(x_973, 5, x_967); +lean_ctor_set(x_973, 6, x_968); +lean_ctor_set(x_973, 7, x_969); +lean_ctor_set(x_973, 8, x_970); +lean_ctor_set(x_973, 9, x_958); +lean_ctor_set_uint8(x_973, sizeof(void*)*10, x_971); +lean_ctor_set_uint8(x_973, sizeof(void*)*10 + 1, x_972); +x_974 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_529, x_527, x_973, x_961); +if (lean_obj_tag(x_974) == 0) +{ +lean_object* x_975; +x_975 = lean_ctor_get(x_25, 0); +lean_inc(x_975); +if (lean_obj_tag(x_975) == 0) +{ +lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; +lean_dec(x_970); +lean_dec(x_969); +lean_dec(x_968); +lean_dec(x_967); +lean_dec(x_966); +lean_dec(x_965); +lean_dec(x_964); +lean_dec(x_963); +lean_dec(x_962); +lean_dec(x_519); +lean_dec(x_25); +lean_dec(x_21); +lean_dec(x_2); +x_976 = lean_ctor_get(x_974, 0); +lean_inc(x_976); +x_977 = lean_ctor_get(x_974, 1); +lean_inc(x_977); +lean_dec(x_974); +x_978 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_977); +lean_dec(x_4); +x_979 = lean_ctor_get(x_978, 0); +lean_inc(x_979); +x_980 = lean_ctor_get(x_978, 1); +lean_inc(x_980); +lean_dec(x_978); +x_981 = l_Lean_Elab_Term_getMainModule___rarg(x_980); +x_982 = lean_ctor_get(x_981, 0); +lean_inc(x_982); +x_983 = lean_ctor_get(x_981, 1); +lean_inc(x_983); +if (lean_is_exclusive(x_981)) { + lean_ctor_release(x_981, 0); + lean_ctor_release(x_981, 1); + x_984 = x_981; +} else { + lean_dec_ref(x_981); + x_984 = lean_box(0); +} +x_985 = lean_box(0); +x_986 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +x_987 = l_Lean_addMacroScope(x_982, x_986, x_979); +x_988 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_989 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_989, 0, x_985); +lean_ctor_set(x_989, 1, x_988); +lean_ctor_set(x_989, 2, x_987); +lean_ctor_set(x_989, 3, x_524); +x_990 = l_Array_empty___closed__1; +x_991 = lean_array_push(x_990, x_989); +x_992 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; +x_993 = lean_array_push(x_991, x_992); +x_994 = lean_array_push(x_993, x_992); +x_995 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_996 = lean_array_push(x_994, x_995); +x_997 = lean_array_push(x_996, x_17); +x_998 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_999 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_999, 0, x_998); +lean_ctor_set(x_999, 1, x_997); +x_1000 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_1001 = lean_array_push(x_1000, x_999); +x_1002 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_1003 = lean_array_push(x_1001, x_1002); +x_1004 = lean_array_push(x_1003, x_976); +x_1005 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_1006 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1006, 0, x_1005); +lean_ctor_set(x_1006, 1, x_1004); +if (lean_is_scalar(x_984)) { + x_1007 = lean_alloc_ctor(0, 2, 0); +} else { + x_1007 = x_984; +} +lean_ctor_set(x_1007, 0, x_1006); +lean_ctor_set(x_1007, 1, x_983); +return x_1007; +} +else +{ +lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; +x_1008 = lean_ctor_get(x_974, 0); +lean_inc(x_1008); +x_1009 = lean_ctor_get(x_974, 1); +lean_inc(x_1009); +lean_dec(x_974); +x_1010 = lean_ctor_get(x_975, 0); +lean_inc(x_1010); +lean_dec(x_975); +x_1011 = l_List_filterAux___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__11(x_25, x_21, x_524); +lean_dec(x_25); +x_1012 = l_List_map___main___at___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___spec__7(x_1011); +x_1013 = lean_ctor_get(x_1009, 0); +lean_inc(x_1013); +x_1014 = lean_ctor_get(x_1009, 1); +lean_inc(x_1014); +x_1015 = lean_ctor_get(x_1009, 2); +lean_inc(x_1015); +x_1016 = lean_ctor_get(x_1009, 3); +lean_inc(x_1016); +x_1017 = lean_ctor_get(x_1009, 4); +lean_inc(x_1017); +x_1018 = lean_ctor_get(x_1009, 5); +lean_inc(x_1018); +if (lean_is_exclusive(x_1009)) { + lean_ctor_release(x_1009, 0); + lean_ctor_release(x_1009, 1); + lean_ctor_release(x_1009, 2); + lean_ctor_release(x_1009, 3); + lean_ctor_release(x_1009, 4); + lean_ctor_release(x_1009, 5); + x_1019 = x_1009; +} else { + lean_dec_ref(x_1009); + x_1019 = lean_box(0); +} +x_1020 = lean_nat_add(x_1018, x_959); +if (lean_is_scalar(x_1019)) { + x_1021 = lean_alloc_ctor(0, 6, 0); +} else { + x_1021 = x_1019; +} +lean_ctor_set(x_1021, 0, x_1013); +lean_ctor_set(x_1021, 1, x_1014); +lean_ctor_set(x_1021, 2, x_1015); +lean_ctor_set(x_1021, 3, x_1016); +lean_ctor_set(x_1021, 4, x_1017); +lean_ctor_set(x_1021, 5, x_1020); +x_1022 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_1022, 0, x_962); +lean_ctor_set(x_1022, 1, x_963); +lean_ctor_set(x_1022, 2, x_964); +lean_ctor_set(x_1022, 3, x_965); +lean_ctor_set(x_1022, 4, x_966); +lean_ctor_set(x_1022, 5, x_967); +lean_ctor_set(x_1022, 6, x_968); +lean_ctor_set(x_1022, 7, x_969); +lean_ctor_set(x_1022, 8, x_970); +lean_ctor_set(x_1022, 9, x_1018); +lean_ctor_set_uint8(x_1022, sizeof(void*)*10, x_971); +lean_ctor_set_uint8(x_1022, sizeof(void*)*10 + 1, x_972); +x_1023 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main(x_1, x_2, x_1012, x_1022, x_1021); +if (lean_obj_tag(x_1023) == 0) +{ +lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; +x_1024 = lean_ctor_get(x_1023, 0); +lean_inc(x_1024); +x_1025 = lean_ctor_get(x_1023, 1); +lean_inc(x_1025); +lean_dec(x_1023); +x_1026 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1025); +x_1027 = lean_ctor_get(x_1026, 0); +lean_inc(x_1027); +x_1028 = lean_ctor_get(x_1026, 1); +lean_inc(x_1028); +lean_dec(x_1026); +x_1029 = l_Lean_Elab_Term_getMainModule___rarg(x_1028); +x_1030 = lean_ctor_get(x_1029, 0); +lean_inc(x_1030); +x_1031 = lean_ctor_get(x_1029, 1); +lean_inc(x_1031); +lean_dec(x_1029); +x_1032 = lean_box(0); +x_1033 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__8; +lean_inc(x_1027); +lean_inc(x_1030); +x_1034 = l_Lean_addMacroScope(x_1030, x_1033, x_1027); +x_1035 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__6; +x_1036 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__11; +x_1037 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1037, 0, x_1032); +lean_ctor_set(x_1037, 1, x_1035); +lean_ctor_set(x_1037, 2, x_1034); +lean_ctor_set(x_1037, 3, x_1036); +x_1038 = l_Array_empty___closed__1; +x_1039 = lean_array_push(x_1038, x_1037); +x_1040 = l___private_Init_Lean_Elab_Term_5__expandCDot___closed__4; +x_1041 = lean_array_push(x_1039, x_1040); +x_1042 = l_Lean_mkTermIdFromIdent___closed__2; +x_1043 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1043, 0, x_1042); +lean_ctor_set(x_1043, 1, x_1041); +x_1044 = lean_array_push(x_1038, x_1043); +x_1045 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__8; +lean_inc(x_1027); +lean_inc(x_1030); +x_1046 = l_Lean_addMacroScope(x_1030, x_1045, x_1027); +x_1047 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__7; +x_1048 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1048, 0, x_1032); +lean_ctor_set(x_1048, 1, x_1047); +lean_ctor_set(x_1048, 2, x_1046); +lean_ctor_set(x_1048, 3, x_524); +x_1049 = lean_array_push(x_1038, x_1048); +x_1050 = lean_array_push(x_1049, x_1040); +x_1051 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1051, 0, x_1042); +lean_ctor_set(x_1051, 1, x_1050); +x_1052 = lean_array_push(x_1038, x_1051); +x_1053 = l___private_Init_Lean_Elab_Quotation_1__quoteName___main(x_1010); +lean_inc(x_1052); +x_1054 = lean_array_push(x_1052, x_1053); +x_1055 = l_Lean_nullKind___closed__2; +x_1056 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1056, 0, x_1055); +lean_ctor_set(x_1056, 1, x_1054); +x_1057 = lean_array_push(x_1044, x_1056); +x_1058 = l_Lean_mkAppStx___closed__8; +x_1059 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1059, 0, x_1058); +lean_ctor_set(x_1059, 1, x_1057); +x_1060 = lean_array_push(x_1038, x_1059); +x_1061 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__26; +x_1062 = lean_array_push(x_1060, x_1061); +x_1063 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__31; +lean_inc(x_1027); +lean_inc(x_1030); +x_1064 = l_Lean_addMacroScope(x_1030, x_1063, x_1027); +x_1065 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__29; +x_1066 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__33; +x_1067 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1067, 0, x_1032); +lean_ctor_set(x_1067, 1, x_1065); +lean_ctor_set(x_1067, 2, x_1064); +lean_ctor_set(x_1067, 3, x_1066); +x_1068 = lean_array_push(x_1038, x_1067); +x_1069 = lean_array_push(x_1068, x_1040); +x_1070 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1070, 0, x_1042); +lean_ctor_set(x_1070, 1, x_1069); +x_1071 = lean_array_push(x_1038, x_1070); +x_1072 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__5; +x_1073 = l_Lean_addMacroScope(x_1030, x_1072, x_1027); +x_1074 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___lambda__2___closed__3; +x_1075 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__36; +x_1076 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1076, 0, x_1032); +lean_ctor_set(x_1076, 1, x_1074); +lean_ctor_set(x_1076, 2, x_1073); +lean_ctor_set(x_1076, 3, x_1075); +x_1077 = lean_array_push(x_1038, x_1076); +x_1078 = lean_array_push(x_1077, x_1040); +x_1079 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1079, 0, x_1042); +lean_ctor_set(x_1079, 1, x_1078); +x_1080 = lean_array_push(x_1038, x_1079); +x_1081 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1081, 0, x_1055); +lean_ctor_set(x_1081, 1, x_1052); +x_1082 = lean_array_push(x_1080, x_1081); +x_1083 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1083, 0, x_1058); +lean_ctor_set(x_1083, 1, x_1082); +x_1084 = lean_array_push(x_1038, x_1083); +x_1085 = lean_array_push(x_1084, x_1040); +x_1086 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1086, 0, x_1055); +lean_ctor_set(x_1086, 1, x_1085); +x_1087 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__43; +x_1088 = lean_array_push(x_1087, x_1086); +x_1089 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__59; +x_1090 = lean_array_push(x_1088, x_1089); +x_1091 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__2; +x_1092 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1092, 0, x_1091); +lean_ctor_set(x_1092, 1, x_1090); +x_1093 = lean_array_push(x_1038, x_1092); +x_1094 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1094, 0, x_1055); +lean_ctor_set(x_1094, 1, x_1093); +x_1095 = lean_array_push(x_1071, x_1094); +x_1096 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1096, 0, x_1058); +lean_ctor_set(x_1096, 1, x_1095); +x_1097 = lean_array_push(x_1038, x_1096); +x_1098 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__38; +x_1099 = lean_array_push(x_1097, x_1098); +x_1100 = l_Nat_repr(x_519); +x_1101 = l_Lean_numLitKind; +x_1102 = l_Lean_mkStxLit(x_1101, x_1100, x_1032); +x_1103 = l_Lean_mkOptionalNode___closed__2; +x_1104 = lean_array_push(x_1103, x_1102); +x_1105 = l_Lean_Parser_Term_num___elambda__1___closed__1; +x_1106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1106, 0, x_1105); +lean_ctor_set(x_1106, 1, x_1104); +x_1107 = lean_array_push(x_1099, x_1106); +x_1108 = l_Lean_Parser_Term_beq___elambda__1___closed__2; +x_1109 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1109, 0, x_1108); +lean_ctor_set(x_1109, 1, x_1107); +x_1110 = lean_array_push(x_1062, x_1109); +x_1111 = l_Lean_Parser_Term_band___elambda__1___closed__2; +x_1112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1112, 0, x_1111); +lean_ctor_set(x_1112, 1, x_1110); +x_1113 = l_Lean_Elab_Term_getCurrMacroScope(x_4, x_1031); +lean_dec(x_4); +x_1114 = lean_ctor_get(x_1113, 0); +lean_inc(x_1114); +x_1115 = lean_ctor_get(x_1113, 1); +lean_inc(x_1115); +lean_dec(x_1113); +x_1116 = l_Lean_Elab_Term_getMainModule___rarg(x_1115); +x_1117 = lean_ctor_get(x_1116, 0); +lean_inc(x_1117); +x_1118 = lean_ctor_get(x_1116, 1); +lean_inc(x_1118); +if (lean_is_exclusive(x_1116)) { + lean_ctor_release(x_1116, 0); + lean_ctor_release(x_1116, 1); + x_1119 = x_1116; +} else { + lean_dec_ref(x_1116); + x_1119 = lean_box(0); +} +lean_inc(x_1114); +lean_inc(x_1117); +x_1120 = l_Lean_addMacroScope(x_1117, x_1045, x_1114); +x_1121 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1121, 0, x_1032); +lean_ctor_set(x_1121, 1, x_1047); +lean_ctor_set(x_1121, 2, x_1120); +lean_ctor_set(x_1121, 3, x_524); +x_1122 = lean_array_push(x_1038, x_1121); +x_1123 = lean_array_push(x_1122, x_1040); +x_1124 = lean_array_push(x_1123, x_1040); +x_1125 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__4; +x_1126 = lean_array_push(x_1124, x_1125); +x_1127 = lean_array_push(x_1126, x_17); +x_1128 = l_Lean_Parser_Term_letIdDecl___closed__2; +x_1129 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1129, 0, x_1128); +lean_ctor_set(x_1129, 1, x_1127); +x_1130 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__2; +x_1131 = lean_array_push(x_1130, x_1129); +x_1132 = l___private_Init_Lean_Elab_Quotation_7__getHeadInfo___elambda__3___closed__10; +x_1133 = lean_array_push(x_1131, x_1132); +x_1134 = lean_array_push(x_1038, x_1112); +x_1135 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__15; +x_1136 = lean_array_push(x_1134, x_1135); +x_1137 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__18; +x_1138 = l_Lean_addMacroScope(x_1117, x_1137, x_1114); +x_1139 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__17; +x_1140 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__20; +x_1141 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_1141, 0, x_1032); +lean_ctor_set(x_1141, 1, x_1139); +lean_ctor_set(x_1141, 2, x_1138); +lean_ctor_set(x_1141, 3, x_1140); +x_1142 = lean_array_push(x_1038, x_1141); +x_1143 = lean_array_push(x_1142, x_1040); +x_1144 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1144, 0, x_1042); +lean_ctor_set(x_1144, 1, x_1143); +x_1145 = lean_array_push(x_1136, x_1144); +x_1146 = l_Lean_Parser_Term_eq___elambda__1___closed__2; +x_1147 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1147, 0, x_1146); +lean_ctor_set(x_1147, 1, x_1145); +x_1148 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__14; +x_1149 = lean_array_push(x_1148, x_1147); +x_1150 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__22; +x_1151 = lean_array_push(x_1149, x_1150); +x_1152 = lean_array_push(x_1151, x_1008); +x_1153 = l___private_Init_Lean_Elab_Quotation_9__compileStxMatch___main___closed__24; +x_1154 = lean_array_push(x_1152, x_1153); +x_1155 = lean_array_push(x_1154, x_1024); +x_1156 = l_Lean_Parser_Term_if___elambda__1___closed__2; +x_1157 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1157, 0, x_1156); +lean_ctor_set(x_1157, 1, x_1155); +x_1158 = lean_array_push(x_1133, x_1157); +x_1159 = l_Lean_Parser_Term_let___elambda__1___closed__2; +x_1160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1160, 0, x_1159); +lean_ctor_set(x_1160, 1, x_1158); +if (lean_is_scalar(x_1119)) { + x_1161 = lean_alloc_ctor(0, 2, 0); +} else { + x_1161 = x_1119; +} +lean_ctor_set(x_1161, 0, x_1160); +lean_ctor_set(x_1161, 1, x_1118); +return x_1161; +} +else +{ +lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; +lean_dec(x_1010); +lean_dec(x_1008); +lean_dec(x_519); +lean_dec(x_17); +lean_dec(x_4); +x_1162 = lean_ctor_get(x_1023, 0); +lean_inc(x_1162); +x_1163 = lean_ctor_get(x_1023, 1); lean_inc(x_1163); -lean_dec(x_522); -x_1165 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1165, 0, x_1163); -lean_ctor_set(x_1165, 1, x_1164); +if (lean_is_exclusive(x_1023)) { + lean_ctor_release(x_1023, 0); + lean_ctor_release(x_1023, 1); + x_1164 = x_1023; +} else { + lean_dec_ref(x_1023); + x_1164 = lean_box(0); +} +if (lean_is_scalar(x_1164)) { + x_1165 = lean_alloc_ctor(1, 2, 0); +} else { + x_1165 = x_1164; +} +lean_ctor_set(x_1165, 0, x_1162); +lean_ctor_set(x_1165, 1, x_1163); return x_1165; } } } +else +{ +lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; +lean_dec(x_970); +lean_dec(x_969); +lean_dec(x_968); +lean_dec(x_967); +lean_dec(x_966); +lean_dec(x_965); +lean_dec(x_964); +lean_dec(x_963); +lean_dec(x_962); +lean_dec(x_519); +lean_dec(x_25); +lean_dec(x_21); +lean_dec(x_17); +lean_dec(x_4); +lean_dec(x_2); +x_1166 = lean_ctor_get(x_974, 0); +lean_inc(x_1166); +x_1167 = lean_ctor_get(x_974, 1); +lean_inc(x_1167); +if (lean_is_exclusive(x_974)) { + lean_ctor_release(x_974, 0); + lean_ctor_release(x_974, 1); + x_1168 = x_974; +} else { + lean_dec_ref(x_974); + x_1168 = lean_box(0); +} +if (lean_is_scalar(x_1168)) { + x_1169 = lean_alloc_ctor(1, 2, 0); +} else { + x_1169 = x_1168; +} +lean_ctor_set(x_1169, 0, x_1166); +lean_ctor_set(x_1169, 1, x_1167); +return x_1169; +} +} +} +else +{ +uint8_t x_1170; +lean_dec(x_522); +lean_dec(x_519); +lean_dec(x_25); +lean_dec(x_21); +lean_dec(x_18); +lean_dec(x_17); +lean_dec(x_4); +lean_dec(x_2); +x_1170 = !lean_is_exclusive(x_526); +if (x_1170 == 0) +{ +return x_526; +} +else +{ +lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; +x_1171 = lean_ctor_get(x_526, 0); +x_1172 = lean_ctor_get(x_526, 1); +lean_inc(x_1172); +lean_inc(x_1171); +lean_dec(x_526); +x_1173 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1173, 0, x_1171); +lean_ctor_set(x_1173, 1, x_1172); +return x_1173; +} +} +} } } } @@ -14412,27 +14418,19 @@ goto _start; lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__1() { _start: { -lean_object* x_1; -x_1 = lean_mk_string("HasBeq.beq"); -return x_1; +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Expr_eq_x3f___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; } } lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__2() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__1; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___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_Elab_Quotation_13__toPreterm___main___lambda__1___closed__1; +x_1 = l_Lean_Expr_eq_x3f___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__2; +x_3 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__1; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -14440,106 +14438,9 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__4() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("HasBeq"); -return x_1; -} -} lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___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) { _start: { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_7 = l_Lean_mkAppStx___closed__1; -lean_inc(x_1); -x_8 = lean_name_mk_string(x_1, x_7); -x_9 = l_Lean_mkAppStx___closed__3; -x_10 = lean_name_mk_string(x_8, x_9); -x_11 = l_Lean_mkAppStx___closed__5; -x_12 = lean_name_mk_string(x_10, x_11); -x_13 = l_Lean_mkAppStx___closed__7; -lean_inc(x_12); -x_14 = lean_name_mk_string(x_12, x_13); -x_15 = l_Lean_mkTermIdFromIdent___closed__1; -x_16 = lean_name_mk_string(x_12, x_15); -x_17 = lean_box(0); -x_18 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__4; -lean_inc(x_1); -x_19 = lean_name_mk_string(x_1, x_18); -x_20 = l_Lean_Parser_Term_beq___elambda__1___closed__1; -x_21 = lean_name_mk_string(x_19, x_20); -x_22 = l_Lean_Unhygienic_MonadQuotation___closed__2; -lean_inc(x_21); -x_23 = l_Lean_addMacroScope(x_22, x_21, x_4); -x_24 = lean_box(0); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_21); -lean_ctor_set(x_25, 1, x_24); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -x_27 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__3; -x_28 = lean_alloc_ctor(3, 4, 0); -lean_ctor_set(x_28, 0, x_17); -lean_ctor_set(x_28, 1, x_27); -lean_ctor_set(x_28, 2, x_23); -lean_ctor_set(x_28, 3, x_26); -x_29 = l_Array_empty___closed__1; -x_30 = lean_array_push(x_29, x_28); -x_31 = l_Lean_nullKind___closed__1; -x_32 = lean_name_mk_string(x_1, x_31); -lean_inc(x_32); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_32); -lean_ctor_set(x_33, 1, x_29); -x_34 = lean_array_push(x_30, x_33); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_16); -lean_ctor_set(x_35, 1, x_34); -x_36 = lean_array_push(x_29, x_35); -x_37 = lean_array_push(x_29, x_2); -x_38 = lean_array_push(x_37, x_3); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_32); -lean_ctor_set(x_39, 1, x_38); -x_40 = lean_array_push(x_36, x_39); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_14); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_6); -return x_42; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Parser_Term_and___elambda__1___closed__1; -x_2 = lean_string_utf8_byte_size(x_1); -return x_2; -} -} -lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Term_and___elambda__1___closed__1; -x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__1; -x_4 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_2); -lean_ctor_set(x_4, 2, x_3); -return x_4; -} -} -lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; x_7 = l_Lean_mkAppStx___closed__1; lean_inc(x_1); @@ -14554,7 +14455,7 @@ x_14 = lean_name_mk_string(x_12, x_13); x_15 = l_Lean_mkTermIdFromIdent___closed__1; x_16 = lean_name_mk_string(x_12, x_15); x_17 = lean_box(0); -x_18 = l_Lean_Parser_Term_and___elambda__1___closed__1; +x_18 = l_Lean_Expr_eq_x3f___closed__1; lean_inc(x_1); x_19 = lean_name_mk_string(x_1, x_18); x_20 = l_Lean_Unhygienic_MonadQuotation___closed__2; @@ -14567,7 +14468,7 @@ lean_ctor_set(x_23, 1, 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_22); -x_25 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__2; +x_25 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__2; x_26 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_26, 0, x_17); lean_ctor_set(x_26, 1, x_25); @@ -14601,30 +14502,30 @@ lean_ctor_set(x_40, 1, x_6); return x_40; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string("ite"); +x_1 = lean_mk_string("HasBeq.beq"); return x_1; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__2() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1; +x_1 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__1; x_2 = lean_string_utf8_byte_size(x_1); return x_2; } } -lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__3() { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___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_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1; +x_1 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__1; x_2 = lean_unsigned_to_nat(0u); -x_3 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__2; +x_3 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__2; x_4 = lean_alloc_ctor(0, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -14632,7 +14533,199 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("HasBeq"); +return x_1; +} +} +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_7 = l_Lean_mkAppStx___closed__1; +lean_inc(x_1); +x_8 = lean_name_mk_string(x_1, x_7); +x_9 = l_Lean_mkAppStx___closed__3; +x_10 = lean_name_mk_string(x_8, x_9); +x_11 = l_Lean_mkAppStx___closed__5; +x_12 = lean_name_mk_string(x_10, x_11); +x_13 = l_Lean_mkAppStx___closed__7; +lean_inc(x_12); +x_14 = lean_name_mk_string(x_12, x_13); +x_15 = l_Lean_mkTermIdFromIdent___closed__1; +x_16 = lean_name_mk_string(x_12, x_15); +x_17 = lean_box(0); +x_18 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__4; +lean_inc(x_1); +x_19 = lean_name_mk_string(x_1, x_18); +x_20 = l_Lean_Parser_Term_beq___elambda__1___closed__1; +x_21 = lean_name_mk_string(x_19, x_20); +x_22 = l_Lean_Unhygienic_MonadQuotation___closed__2; +lean_inc(x_21); +x_23 = l_Lean_addMacroScope(x_22, x_21, x_4); +x_24 = lean_box(0); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_21); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_24); +x_27 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__3; +x_28 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_28, 0, x_17); +lean_ctor_set(x_28, 1, x_27); +lean_ctor_set(x_28, 2, x_23); +lean_ctor_set(x_28, 3, x_26); +x_29 = l_Array_empty___closed__1; +x_30 = lean_array_push(x_29, x_28); +x_31 = l_Lean_nullKind___closed__1; +x_32 = lean_name_mk_string(x_1, x_31); +lean_inc(x_32); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_29); +x_34 = lean_array_push(x_30, x_33); +x_35 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_35, 0, x_16); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_array_push(x_29, x_35); +x_37 = lean_array_push(x_29, x_2); +x_38 = lean_array_push(x_37, x_3); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_32); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_array_push(x_36, x_39); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_14); +lean_ctor_set(x_41, 1, x_40); +x_42 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_42, 0, x_41); +lean_ctor_set(x_42, 1, x_6); +return x_42; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Parser_Term_and___elambda__1___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Parser_Term_and___elambda__1___closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; 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_39; lean_object* x_40; +x_7 = l_Lean_mkAppStx___closed__1; +lean_inc(x_1); +x_8 = lean_name_mk_string(x_1, x_7); +x_9 = l_Lean_mkAppStx___closed__3; +x_10 = lean_name_mk_string(x_8, x_9); +x_11 = l_Lean_mkAppStx___closed__5; +x_12 = lean_name_mk_string(x_10, x_11); +x_13 = l_Lean_mkAppStx___closed__7; +lean_inc(x_12); +x_14 = lean_name_mk_string(x_12, x_13); +x_15 = l_Lean_mkTermIdFromIdent___closed__1; +x_16 = lean_name_mk_string(x_12, x_15); +x_17 = lean_box(0); +x_18 = l_Lean_Parser_Term_and___elambda__1___closed__1; +lean_inc(x_1); +x_19 = lean_name_mk_string(x_1, x_18); +x_20 = l_Lean_Unhygienic_MonadQuotation___closed__2; +lean_inc(x_19); +x_21 = l_Lean_addMacroScope(x_20, x_19, x_4); +x_22 = lean_box(0); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_19); +lean_ctor_set(x_23, 1, x_22); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_22); +x_25 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__2; +x_26 = lean_alloc_ctor(3, 4, 0); +lean_ctor_set(x_26, 0, x_17); +lean_ctor_set(x_26, 1, x_25); +lean_ctor_set(x_26, 2, x_21); +lean_ctor_set(x_26, 3, x_24); +x_27 = l_Array_empty___closed__1; +x_28 = lean_array_push(x_27, x_26); +x_29 = l_Lean_nullKind___closed__1; +x_30 = lean_name_mk_string(x_1, x_29); +lean_inc(x_30); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_27); +x_32 = lean_array_push(x_28, x_31); +x_33 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_33, 0, x_16); +lean_ctor_set(x_33, 1, x_32); +x_34 = lean_array_push(x_27, x_33); +x_35 = lean_array_push(x_27, x_2); +x_36 = lean_array_push(x_35, x_3); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_30); +lean_ctor_set(x_37, 1, x_36); +x_38 = lean_array_push(x_34, x_37); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_14); +lean_ctor_set(x_39, 1, x_38); +x_40 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_40, 0, x_39); +lean_ctor_set(x_40, 1, x_6); +return x_40; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("ite"); +return x_1; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__1; +x_2 = lean_string_utf8_byte_size(x_1); +return x_2; +} +} +lean_object* _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___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_Elab_Quotation_13__toPreterm___main___lambda__4___closed__1; +x_2 = lean_unsigned_to_nat(0u); +x_3 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__2; +x_4 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_4, 0, x_1); +lean_ctor_set(x_4, 1, x_2); +lean_ctor_set(x_4, 2, x_3); +return x_4; +} +} +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; @@ -14649,7 +14742,7 @@ x_15 = lean_name_mk_string(x_13, x_14); x_16 = l_Lean_mkTermIdFromIdent___closed__1; x_17 = lean_name_mk_string(x_13, x_16); x_18 = lean_box(0); -x_19 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1; +x_19 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__1; lean_inc(x_1); x_20 = lean_name_mk_string(x_1, x_19); x_21 = l_Lean_Unhygienic_MonadQuotation___closed__2; @@ -14662,7 +14755,7 @@ lean_ctor_set(x_24, 1, x_23); x_25 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_25, 0, x_24); lean_ctor_set(x_25, 1, x_23); -x_26 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__3; +x_26 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__3; x_27 = lean_alloc_ctor(3, 4, 0); lean_ctor_set(x_27, 0, x_18); lean_ctor_set(x_27, 1, x_26); @@ -14957,244 +15050,246 @@ x_78 = lean_string_dec_eq(x_28, x_77); if (x_78 == 0) { lean_object* x_79; uint8_t x_80; -lean_dec(x_4); -x_79 = l_Lean_Parser_Term_str___elambda__1___closed__1; +x_79 = l_Lean_Parser_Term_eq___elambda__1___closed__1; x_80 = lean_string_dec_eq(x_28, x_79); if (x_80 == 0) { lean_object* x_81; uint8_t x_82; -x_81 = l_Lean_Parser_Level_num___elambda__1___closed__1; +lean_dec(x_4); +x_81 = l_Lean_Parser_Term_str___elambda__1___closed__1; x_82 = lean_string_dec_eq(x_28, x_81); if (x_82 == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; +lean_object* x_83; uint8_t x_84; +x_83 = l_Lean_Parser_Level_num___elambda__1___closed__1; +x_84 = lean_string_dec_eq(x_28, x_83); +if (x_84 == 0) +{ +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_ctor_set(x_26, 1, x_39); lean_ctor_set(x_25, 1, x_45); lean_ctor_set(x_15, 1, x_54); -x_83 = l_System_FilePath_dirName___closed__1; -x_84 = l_Lean_Name_toStringWithSep___main(x_83, x_5); -x_85 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_85, 0, x_84); -x_86 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_86, 0, x_85); -x_87 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_88 = lean_alloc_ctor(9, 2, 0); +x_85 = l_System_FilePath_dirName___closed__1; +x_86 = l_Lean_Name_toStringWithSep___main(x_85, x_5); +x_87 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_87, 0, x_86); +x_88 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_86); -x_89 = l_Lean_Elab_Term_throwError___rarg(x_1, x_88, x_2, x_3); +x_89 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_90 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_90, 0, x_89); +lean_ctor_set(x_90, 1, x_88); +x_91 = l_Lean_Elab_Term_throwError___rarg(x_1, x_90, x_2, x_3); lean_dec(x_1); -return x_89; +return x_91; } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_free_object(x_5); lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_2); -x_90 = lean_unsigned_to_nat(0u); -x_91 = l_Lean_Syntax_getArg(x_1, x_90); +x_92 = lean_unsigned_to_nat(0u); +x_93 = l_Lean_Syntax_getArg(x_1, x_92); lean_dec(x_1); -x_92 = l_Lean_numLitKind; -x_93 = l_Lean_Syntax_isNatLitAux(x_92, x_91); -lean_dec(x_91); -if (lean_obj_tag(x_93) == 0) -{ -lean_object* x_94; lean_object* x_95; -x_94 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__5; -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_94); -lean_ctor_set(x_95, 1, x_3); -return x_95; -} -else -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -x_96 = lean_ctor_get(x_93, 0); -lean_inc(x_96); +x_94 = l_Lean_numLitKind; +x_95 = l_Lean_Syntax_isNatLitAux(x_94, x_93); lean_dec(x_93); -x_97 = l_Lean_mkNatLit(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_3); -return x_98; +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; lean_object* x_97; +x_96 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__5; +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_96); +lean_ctor_set(x_97, 1, x_3); +return x_97; +} +else +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_98 = lean_ctor_get(x_95, 0); +lean_inc(x_98); +lean_dec(x_95); +x_99 = l_Lean_mkNatLit(x_98); +x_100 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_100, 0, x_99); +lean_ctor_set(x_100, 1, x_3); +return x_100; } } } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_free_object(x_5); lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_2); -x_99 = lean_unsigned_to_nat(0u); -x_100 = l_Lean_Syntax_getArg(x_1, x_99); +x_101 = lean_unsigned_to_nat(0u); +x_102 = l_Lean_Syntax_getArg(x_1, x_101); lean_dec(x_1); -x_101 = l_Lean_Syntax_isStrLit_x3f(x_100); -lean_dec(x_100); -if (lean_obj_tag(x_101) == 0) +x_103 = l_Lean_Syntax_isStrLit_x3f(x_102); +lean_dec(x_102); +if (lean_obj_tag(x_103) == 0) { -lean_object* x_102; lean_object* x_103; -x_102 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__6; -x_103 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_3); -return x_103; +lean_object* x_104; lean_object* x_105; +x_104 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__6; +x_105 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_105, 0, x_104); +lean_ctor_set(x_105, 1, x_3); +return x_105; } else { -lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_104 = lean_ctor_get(x_101, 0); -lean_inc(x_104); -lean_dec(x_101); -x_105 = l_Lean_mkStrLit(x_104); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_3); -return x_106; +lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_106 = lean_ctor_get(x_103, 0); +lean_inc(x_106); +lean_dec(x_103); +x_107 = l_Lean_mkStrLit(x_106); +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_107); +lean_ctor_set(x_108, 1, x_3); +return x_108; } } } else { -lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; +lean_object* x_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_free_object(x_5); lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_107 = l_Lean_Syntax_inhabited; -x_108 = lean_unsigned_to_nat(0u); -x_109 = lean_array_get(x_107, x_4, x_108); -x_110 = lean_unsigned_to_nat(2u); -x_111 = lean_array_get(x_107, x_4, x_110); +x_109 = l_Lean_Syntax_inhabited; +x_110 = lean_unsigned_to_nat(0u); +x_111 = lean_array_get(x_109, x_4, x_110); +x_112 = lean_unsigned_to_nat(2u); +x_113 = lean_array_get(x_109, x_4, x_112); lean_dec(x_4); -x_112 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___boxed), 6, 3); -lean_closure_set(x_112, 0, x_27); -lean_closure_set(x_112, 1, x_109); -lean_closure_set(x_112, 2, x_111); -x_113 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_114 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_114, 0, x_113); -lean_closure_set(x_114, 1, x_112); -x_115 = l_Lean_Unhygienic_run___rarg(x_114); -x_1 = x_115; +x_114 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___boxed), 6, 3); +lean_closure_set(x_114, 0, x_27); +lean_closure_set(x_114, 1, x_111); +lean_closure_set(x_114, 2, x_113); +x_115 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_116 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_116, 0, x_115); +lean_closure_set(x_116, 1, x_114); +x_117 = l_Lean_Unhygienic_run___rarg(x_116); +x_1 = x_117; goto _start; } } 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; +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_free_object(x_5); lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_117 = l_Lean_Syntax_inhabited; -x_118 = lean_unsigned_to_nat(0u); -x_119 = lean_array_get(x_117, x_4, x_118); -x_120 = lean_unsigned_to_nat(2u); -x_121 = lean_array_get(x_117, x_4, x_120); +x_119 = l_Lean_Syntax_inhabited; +x_120 = lean_unsigned_to_nat(0u); +x_121 = lean_array_get(x_119, x_4, x_120); +x_122 = lean_unsigned_to_nat(2u); +x_123 = lean_array_get(x_119, x_4, x_122); lean_dec(x_4); -x_122 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed), 6, 3); -lean_closure_set(x_122, 0, x_27); -lean_closure_set(x_122, 1, x_119); -lean_closure_set(x_122, 2, x_121); -x_123 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_124 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_124, 0, x_123); -lean_closure_set(x_124, 1, x_122); -x_125 = l_Lean_Unhygienic_run___rarg(x_124); -x_1 = x_125; +x_124 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_124, 0, x_27); +lean_closure_set(x_124, 1, x_121); +lean_closure_set(x_124, 2, x_123); +x_125 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_126 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_126, 0, x_125); +lean_closure_set(x_126, 1, x_124); +x_127 = l_Lean_Unhygienic_run___rarg(x_126); +x_1 = x_127; goto _start; } } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133; +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_free_object(x_5); lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_127 = l_Lean_Syntax_inhabited; -x_128 = lean_unsigned_to_nat(1u); -x_129 = lean_array_get(x_127, x_4, x_128); +x_129 = l_Lean_Syntax_inhabited; +x_130 = lean_unsigned_to_nat(0u); +x_131 = lean_array_get(x_129, x_4, x_130); +x_132 = lean_unsigned_to_nat(2u); +x_133 = lean_array_get(x_129, x_4, x_132); lean_dec(x_4); -x_130 = l_Lean_Syntax_getArgs(x_129); -lean_dec(x_129); -x_131 = lean_array_get_size(x_130); -x_132 = lean_unsigned_to_nat(0u); -x_133 = lean_nat_dec_eq(x_131, x_132); -lean_dec(x_131); -if (x_133 == 0) +x_134 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_134, 0, x_27); +lean_closure_set(x_134, 1, x_131); +lean_closure_set(x_134, 2, x_133); +x_135 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_136 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_136, 0, x_135); +lean_closure_set(x_136, 1, x_134); +x_137 = l_Lean_Unhygienic_run___rarg(x_136); +x_1 = x_137; +goto _start; +} +} +else { -lean_object* x_134; -x_134 = lean_array_get(x_127, x_130, x_132); -lean_dec(x_130); -x_1 = x_134; +lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; +lean_free_object(x_5); +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_139 = l_Lean_Syntax_inhabited; +x_140 = lean_unsigned_to_nat(1u); +x_141 = lean_array_get(x_139, x_4, x_140); +lean_dec(x_4); +x_142 = l_Lean_Syntax_getArgs(x_141); +lean_dec(x_141); +x_143 = lean_array_get_size(x_142); +x_144 = lean_unsigned_to_nat(0u); +x_145 = lean_nat_dec_eq(x_143, x_144); +lean_dec(x_143); +if (x_145 == 0) +{ +lean_object* x_146; +x_146 = lean_array_get(x_139, x_142, x_144); +lean_dec(x_142); +x_1 = x_146; goto _start; } else { -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_dec(x_130); +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +lean_dec(x_142); lean_dec(x_2); -x_136 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_137 = lean_name_mk_string(x_27, x_136); -x_138 = l_Lean_Elab_Term_elabParen___closed__4; -x_139 = lean_name_mk_string(x_137, x_138); -x_140 = lean_box(0); -x_141 = l_Lean_mkConst(x_139, x_140); -x_142 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_142, 0, x_141); -lean_ctor_set(x_142, 1, x_3); -return x_142; +x_148 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_149 = lean_name_mk_string(x_27, x_148); +x_150 = l_Lean_Elab_Term_elabParen___closed__4; +x_151 = lean_name_mk_string(x_149, x_150); +x_152 = lean_box(0); +x_153 = l_Lean_mkConst(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_3); +return x_154; } } } else { -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -lean_free_object(x_5); -lean_free_object(x_26); -lean_free_object(x_25); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_1); -x_143 = l_Lean_Syntax_inhabited; -x_144 = lean_unsigned_to_nat(2u); -x_145 = lean_array_get(x_143, x_4, x_144); -x_146 = lean_unsigned_to_nat(4u); -x_147 = lean_array_get(x_143, x_4, x_146); -x_148 = lean_unsigned_to_nat(6u); -x_149 = lean_array_get(x_143, x_4, x_148); -lean_dec(x_4); -x_150 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed), 7, 4); -lean_closure_set(x_150, 0, x_27); -lean_closure_set(x_150, 1, x_145); -lean_closure_set(x_150, 2, x_147); -lean_closure_set(x_150, 3, x_149); -x_151 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_152 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_152, 0, x_151); -lean_closure_set(x_152, 1, x_150); -x_153 = l_Lean_Unhygienic_run___rarg(x_152); -x_1 = x_153; -goto _start; -} -} -else -{ -lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_free_object(x_5); lean_free_object(x_26); lean_free_object(x_25); @@ -15202,2016 +15297,2047 @@ lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); x_155 = l_Lean_Syntax_inhabited; -x_156 = lean_unsigned_to_nat(0u); +x_156 = lean_unsigned_to_nat(2u); x_157 = lean_array_get(x_155, x_4, x_156); -lean_inc(x_2); -x_158 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_157, x_2, x_3); -if (lean_obj_tag(x_158) == 0) -{ -lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; -x_159 = lean_ctor_get(x_158, 0); -lean_inc(x_159); -x_160 = lean_ctor_get(x_158, 1); -lean_inc(x_160); -lean_dec(x_158); -x_161 = lean_unsigned_to_nat(1u); -x_162 = lean_array_get(x_155, x_4, x_161); +x_158 = lean_unsigned_to_nat(4u); +x_159 = lean_array_get(x_155, x_4, x_158); +x_160 = lean_unsigned_to_nat(6u); +x_161 = lean_array_get(x_155, x_4, x_160); lean_dec(x_4); -x_163 = l_Lean_Syntax_getArgs(x_162); -lean_dec(x_162); -x_164 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__1(x_156, x_163, x_2, x_160); -if (lean_obj_tag(x_164) == 0) -{ -uint8_t x_165; -x_165 = !lean_is_exclusive(x_164); -if (x_165 == 0) -{ -lean_object* x_166; lean_object* x_167; -x_166 = lean_ctor_get(x_164, 0); -x_167 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_166, x_166, x_156, x_159); -lean_dec(x_166); -lean_ctor_set(x_164, 0, x_167); -return x_164; -} -else -{ -lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; -x_168 = lean_ctor_get(x_164, 0); -x_169 = lean_ctor_get(x_164, 1); -lean_inc(x_169); -lean_inc(x_168); -lean_dec(x_164); -x_170 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_168, x_168, x_156, x_159); -lean_dec(x_168); -x_171 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_169); -return x_171; +x_162 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_162, 0, x_27); +lean_closure_set(x_162, 1, x_157); +lean_closure_set(x_162, 2, x_159); +lean_closure_set(x_162, 3, x_161); +x_163 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_164 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_164, 0, x_163); +lean_closure_set(x_164, 1, x_162); +x_165 = l_Lean_Unhygienic_run___rarg(x_164); +x_1 = x_165; +goto _start; } } else { -uint8_t x_172; -lean_dec(x_159); -x_172 = !lean_is_exclusive(x_164); -if (x_172 == 0) -{ -return x_164; -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; -x_173 = lean_ctor_get(x_164, 0); -x_174 = lean_ctor_get(x_164, 1); -lean_inc(x_174); -lean_inc(x_173); -lean_dec(x_164); -x_175 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_175, 0, x_173); -lean_ctor_set(x_175, 1, x_174); -return x_175; -} -} -} -else -{ -uint8_t x_176; -lean_dec(x_4); -lean_dec(x_2); -x_176 = !lean_is_exclusive(x_158); -if (x_176 == 0) -{ -return x_158; -} -else -{ -lean_object* x_177; lean_object* x_178; lean_object* x_179; -x_177 = lean_ctor_get(x_158, 0); -x_178 = lean_ctor_get(x_158, 1); -lean_inc(x_178); -lean_inc(x_177); -lean_dec(x_158); -x_179 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_179, 0, x_177); -lean_ctor_set(x_179, 1, x_178); -return x_179; -} -} -} -} -else -{ -lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_free_object(x_5); lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_180 = l_Lean_Syntax_inhabited; -x_181 = lean_unsigned_to_nat(1u); -x_182 = lean_array_get(x_180, x_4, x_181); -x_183 = lean_unsigned_to_nat(0u); -x_184 = l_Lean_Syntax_getArg(x_182, x_183); -x_185 = l_Lean_Syntax_isIdent(x_184); -x_186 = lean_unsigned_to_nat(4u); -x_187 = l_Lean_Syntax_getArg(x_182, x_186); -lean_dec(x_182); -x_188 = lean_unsigned_to_nat(3u); -x_189 = lean_array_get(x_180, x_4, x_188); -lean_dec(x_4); -if (x_185 == 0) -{ -lean_object* x_276; -x_276 = l_Lean_Syntax_getIdAt(x_184, x_183); -lean_dec(x_184); -x_190 = x_276; -goto block_275; -} -else -{ -lean_object* x_277; -x_277 = l_Lean_Syntax_getId(x_184); -lean_dec(x_184); -x_190 = x_277; -goto block_275; -} -block_275: -{ -lean_object* x_191; +x_167 = l_Lean_Syntax_inhabited; +x_168 = lean_unsigned_to_nat(0u); +x_169 = lean_array_get(x_167, x_4, x_168); lean_inc(x_2); -x_191 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_187, x_2, x_3); -if (lean_obj_tag(x_191) == 0) +x_170 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_169, x_2, x_3); +if (lean_obj_tag(x_170) == 0) { -lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint8_t x_199; -x_192 = lean_ctor_get(x_191, 0); -lean_inc(x_192); -x_193 = lean_ctor_get(x_191, 1); -lean_inc(x_193); -lean_dec(x_191); -x_194 = l_Lean_Elab_Term_getLCtx(x_2, x_193); -x_195 = lean_ctor_get(x_194, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_194, 1); -lean_inc(x_196); -lean_dec(x_194); -x_197 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -lean_inc_n(x_190, 2); -x_198 = lean_local_ctx_mk_let_decl(x_195, x_190, x_190, x_197, x_192); -x_199 = !lean_is_exclusive(x_2); -if (x_199 == 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; +x_171 = lean_ctor_get(x_170, 0); +lean_inc(x_171); +x_172 = lean_ctor_get(x_170, 1); +lean_inc(x_172); +lean_dec(x_170); +x_173 = lean_unsigned_to_nat(1u); +x_174 = lean_array_get(x_167, x_4, x_173); +lean_dec(x_4); +x_175 = l_Lean_Syntax_getArgs(x_174); +lean_dec(x_174); +x_176 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__1(x_168, x_175, x_2, x_172); +if (lean_obj_tag(x_176) == 0) { -lean_object* x_200; uint8_t x_201; -x_200 = lean_ctor_get(x_2, 0); -x_201 = !lean_is_exclusive(x_200); -if (x_201 == 0) +uint8_t x_177; +x_177 = !lean_is_exclusive(x_176); +if (x_177 == 0) { -lean_object* x_202; lean_object* x_203; -x_202 = lean_ctor_get(x_200, 1); -lean_dec(x_202); -lean_inc(x_198); -lean_ctor_set(x_200, 1, x_198); -x_203 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_189, x_2, x_196); -if (lean_obj_tag(x_203) == 0) -{ -uint8_t x_204; -x_204 = !lean_is_exclusive(x_203); -if (x_204 == 0) -{ -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; -x_205 = lean_ctor_get(x_203, 0); -x_206 = l_Lean_mkFVar(x_190); -x_207 = l_Lean_mkOptionalNode___closed__2; -x_208 = lean_array_push(x_207, x_206); -x_209 = l_Lean_LocalContext_mkLambda(x_198, x_208, x_205); -lean_dec(x_205); -lean_dec(x_208); -lean_ctor_set(x_203, 0, x_209); -return x_203; +lean_object* x_178; lean_object* x_179; +x_178 = lean_ctor_get(x_176, 0); +x_179 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_178, x_178, x_168, x_171); +lean_dec(x_178); +lean_ctor_set(x_176, 0, x_179); +return x_176; } else { -lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; -x_210 = lean_ctor_get(x_203, 0); -x_211 = lean_ctor_get(x_203, 1); -lean_inc(x_211); -lean_inc(x_210); -lean_dec(x_203); -x_212 = l_Lean_mkFVar(x_190); -x_213 = l_Lean_mkOptionalNode___closed__2; -x_214 = lean_array_push(x_213, x_212); -x_215 = l_Lean_LocalContext_mkLambda(x_198, x_214, x_210); -lean_dec(x_210); -lean_dec(x_214); -x_216 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_216, 0, x_215); -lean_ctor_set(x_216, 1, x_211); -return x_216; +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_180 = lean_ctor_get(x_176, 0); +x_181 = lean_ctor_get(x_176, 1); +lean_inc(x_181); +lean_inc(x_180); +lean_dec(x_176); +x_182 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_180, x_180, x_168, x_171); +lean_dec(x_180); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_182); +lean_ctor_set(x_183, 1, x_181); +return x_183; } } else { -uint8_t x_217; -lean_dec(x_198); -lean_dec(x_190); -x_217 = !lean_is_exclusive(x_203); -if (x_217 == 0) +uint8_t x_184; +lean_dec(x_171); +x_184 = !lean_is_exclusive(x_176); +if (x_184 == 0) { -return x_203; +return x_176; } else { -lean_object* x_218; lean_object* x_219; lean_object* x_220; -x_218 = lean_ctor_get(x_203, 0); -x_219 = lean_ctor_get(x_203, 1); -lean_inc(x_219); -lean_inc(x_218); -lean_dec(x_203); -x_220 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_220, 0, x_218); -lean_ctor_set(x_220, 1, x_219); -return x_220; +lean_object* x_185; lean_object* x_186; lean_object* x_187; +x_185 = lean_ctor_get(x_176, 0); +x_186 = lean_ctor_get(x_176, 1); +lean_inc(x_186); +lean_inc(x_185); +lean_dec(x_176); +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; } } } else { -lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_221 = lean_ctor_get(x_200, 0); -x_222 = lean_ctor_get(x_200, 2); -x_223 = lean_ctor_get(x_200, 3); -x_224 = lean_ctor_get(x_200, 4); -lean_inc(x_224); -lean_inc(x_223); -lean_inc(x_222); -lean_inc(x_221); -lean_dec(x_200); -lean_inc(x_198); -x_225 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_225, 0, x_221); -lean_ctor_set(x_225, 1, x_198); -lean_ctor_set(x_225, 2, x_222); -lean_ctor_set(x_225, 3, x_223); -lean_ctor_set(x_225, 4, x_224); -lean_ctor_set(x_2, 0, x_225); -x_226 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_189, x_2, x_196); -if (lean_obj_tag(x_226) == 0) -{ -lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; -x_227 = lean_ctor_get(x_226, 0); -lean_inc(x_227); -x_228 = lean_ctor_get(x_226, 1); -lean_inc(x_228); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_229 = x_226; -} else { - lean_dec_ref(x_226); - x_229 = lean_box(0); -} -x_230 = l_Lean_mkFVar(x_190); -x_231 = l_Lean_mkOptionalNode___closed__2; -x_232 = lean_array_push(x_231, x_230); -x_233 = l_Lean_LocalContext_mkLambda(x_198, x_232, x_227); -lean_dec(x_227); -lean_dec(x_232); -if (lean_is_scalar(x_229)) { - x_234 = lean_alloc_ctor(0, 2, 0); -} else { - x_234 = x_229; -} -lean_ctor_set(x_234, 0, x_233); -lean_ctor_set(x_234, 1, x_228); -return x_234; -} -else -{ -lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; -lean_dec(x_198); -lean_dec(x_190); -x_235 = lean_ctor_get(x_226, 0); -lean_inc(x_235); -x_236 = lean_ctor_get(x_226, 1); -lean_inc(x_236); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_237 = x_226; -} else { - lean_dec_ref(x_226); - x_237 = lean_box(0); -} -if (lean_is_scalar(x_237)) { - x_238 = lean_alloc_ctor(1, 2, 0); -} else { - x_238 = x_237; -} -lean_ctor_set(x_238, 0, x_235); -lean_ctor_set(x_238, 1, x_236); -return x_238; -} -} -} -else -{ -lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; uint8_t x_249; uint8_t 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; -x_239 = lean_ctor_get(x_2, 0); -x_240 = lean_ctor_get(x_2, 1); -x_241 = lean_ctor_get(x_2, 2); -x_242 = lean_ctor_get(x_2, 3); -x_243 = lean_ctor_get(x_2, 4); -x_244 = lean_ctor_get(x_2, 5); -x_245 = lean_ctor_get(x_2, 6); -x_246 = lean_ctor_get(x_2, 7); -x_247 = lean_ctor_get(x_2, 8); -x_248 = lean_ctor_get(x_2, 9); -x_249 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_250 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -lean_inc(x_248); -lean_inc(x_247); -lean_inc(x_246); -lean_inc(x_245); -lean_inc(x_244); -lean_inc(x_243); -lean_inc(x_242); -lean_inc(x_241); -lean_inc(x_240); -lean_inc(x_239); +uint8_t x_188; +lean_dec(x_4); lean_dec(x_2); -x_251 = lean_ctor_get(x_239, 0); -lean_inc(x_251); -x_252 = lean_ctor_get(x_239, 2); -lean_inc(x_252); -x_253 = lean_ctor_get(x_239, 3); -lean_inc(x_253); -x_254 = lean_ctor_get(x_239, 4); -lean_inc(x_254); -if (lean_is_exclusive(x_239)) { - lean_ctor_release(x_239, 0); - lean_ctor_release(x_239, 1); - lean_ctor_release(x_239, 2); - lean_ctor_release(x_239, 3); - lean_ctor_release(x_239, 4); - x_255 = x_239; -} else { - lean_dec_ref(x_239); - x_255 = lean_box(0); -} -lean_inc(x_198); -if (lean_is_scalar(x_255)) { - x_256 = lean_alloc_ctor(0, 5, 0); -} else { - x_256 = x_255; -} -lean_ctor_set(x_256, 0, x_251); -lean_ctor_set(x_256, 1, x_198); -lean_ctor_set(x_256, 2, x_252); -lean_ctor_set(x_256, 3, x_253); -lean_ctor_set(x_256, 4, x_254); -x_257 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_257, 0, x_256); -lean_ctor_set(x_257, 1, x_240); -lean_ctor_set(x_257, 2, x_241); -lean_ctor_set(x_257, 3, x_242); -lean_ctor_set(x_257, 4, x_243); -lean_ctor_set(x_257, 5, x_244); -lean_ctor_set(x_257, 6, x_245); -lean_ctor_set(x_257, 7, x_246); -lean_ctor_set(x_257, 8, x_247); -lean_ctor_set(x_257, 9, x_248); -lean_ctor_set_uint8(x_257, sizeof(void*)*10, x_249); -lean_ctor_set_uint8(x_257, sizeof(void*)*10 + 1, x_250); -x_258 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_189, x_257, x_196); -if (lean_obj_tag(x_258) == 0) +x_188 = !lean_is_exclusive(x_170); +if (x_188 == 0) { -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_259 = lean_ctor_get(x_258, 0); -lean_inc(x_259); -x_260 = lean_ctor_get(x_258, 1); -lean_inc(x_260); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - x_261 = x_258; -} else { - lean_dec_ref(x_258); - x_261 = lean_box(0); -} -x_262 = l_Lean_mkFVar(x_190); -x_263 = l_Lean_mkOptionalNode___closed__2; -x_264 = lean_array_push(x_263, x_262); -x_265 = l_Lean_LocalContext_mkLambda(x_198, x_264, x_259); -lean_dec(x_259); -lean_dec(x_264); -if (lean_is_scalar(x_261)) { - x_266 = lean_alloc_ctor(0, 2, 0); -} else { - x_266 = x_261; -} -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_260); -return x_266; +return x_170; } else { -lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; -lean_dec(x_198); -lean_dec(x_190); -x_267 = lean_ctor_get(x_258, 0); -lean_inc(x_267); -x_268 = lean_ctor_get(x_258, 1); -lean_inc(x_268); -if (lean_is_exclusive(x_258)) { - lean_ctor_release(x_258, 0); - lean_ctor_release(x_258, 1); - x_269 = x_258; -} else { - lean_dec_ref(x_258); - x_269 = lean_box(0); -} -if (lean_is_scalar(x_269)) { - x_270 = lean_alloc_ctor(1, 2, 0); -} else { - x_270 = x_269; -} -lean_ctor_set(x_270, 0, x_267); -lean_ctor_set(x_270, 1, x_268); -return x_270; -} -} -} -else -{ -uint8_t x_271; -lean_dec(x_190); -lean_dec(x_189); -lean_dec(x_2); -x_271 = !lean_is_exclusive(x_191); -if (x_271 == 0) -{ +lean_object* x_189; lean_object* x_190; lean_object* x_191; +x_189 = lean_ctor_get(x_170, 0); +x_190 = lean_ctor_get(x_170, 1); +lean_inc(x_190); +lean_inc(x_189); +lean_dec(x_170); +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; } -else -{ -lean_object* x_272; lean_object* x_273; lean_object* x_274; -x_272 = lean_ctor_get(x_191, 0); -x_273 = lean_ctor_get(x_191, 1); -lean_inc(x_273); -lean_inc(x_272); -lean_dec(x_191); -x_274 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_274, 0, x_272); -lean_ctor_set(x_274, 1, x_273); -return x_274; -} -} } } } else { -lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; uint8_t x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_free_object(x_5); lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_278 = l_Lean_Syntax_inhabited; -x_279 = lean_unsigned_to_nat(1u); -x_280 = lean_array_get(x_278, x_4, x_279); -x_281 = l_Lean_Syntax_getArgs(x_280); -lean_dec(x_280); -x_282 = lean_unsigned_to_nat(3u); -x_283 = lean_array_get(x_278, x_4, x_282); +x_192 = l_Lean_Syntax_inhabited; +x_193 = lean_unsigned_to_nat(1u); +x_194 = lean_array_get(x_192, x_4, x_193); +x_195 = lean_unsigned_to_nat(0u); +x_196 = l_Lean_Syntax_getArg(x_194, x_195); +x_197 = l_Lean_Syntax_isIdent(x_196); +x_198 = lean_unsigned_to_nat(4u); +x_199 = l_Lean_Syntax_getArg(x_194, x_198); +lean_dec(x_194); +x_200 = lean_unsigned_to_nat(3u); +x_201 = lean_array_get(x_192, x_4, x_200); lean_dec(x_4); -x_284 = lean_array_get_size(x_281); -x_285 = lean_unsigned_to_nat(0u); -x_286 = lean_nat_dec_eq(x_284, x_285); -lean_dec(x_284); -if (x_286 == 0) +if (x_197 == 0) { -lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; -x_287 = lean_array_get(x_278, x_281, x_285); -x_288 = lean_name_mk_string(x_27, x_39); -x_289 = lean_name_mk_string(x_288, x_45); -x_290 = lean_name_mk_string(x_289, x_54); -lean_inc(x_290); -x_291 = lean_name_mk_string(x_290, x_63); -lean_inc(x_287); -x_292 = l_Lean_Syntax_isOfKind(x_287, x_291); -lean_dec(x_291); -if (x_292 == 0) +lean_object* x_288; +x_288 = l_Lean_Syntax_getIdAt(x_196, x_195); +lean_dec(x_196); +x_202 = x_288; +goto block_287; +} +else { -lean_object* x_293; lean_object* x_294; uint8_t x_295; -x_293 = l_Lean_mkHole___closed__1; -lean_inc(x_290); -x_294 = lean_name_mk_string(x_290, x_293); -lean_inc(x_287); -x_295 = l_Lean_Syntax_isOfKind(x_287, x_294); -lean_dec(x_294); -if (x_295 == 0) +lean_object* x_289; +x_289 = l_Lean_Syntax_getId(x_196); +lean_dec(x_196); +x_202 = x_289; +goto block_287; +} +block_287: { -lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; -x_296 = l_Lean_Syntax_getArg(x_287, x_279); -lean_dec(x_287); -x_297 = l_Lean_Syntax_getArg(x_296, x_285); -x_298 = l_Lean_Syntax_getIdAt(x_297, x_285); -lean_dec(x_297); -x_299 = l_Lean_Syntax_getArg(x_296, x_279); -lean_dec(x_296); -x_300 = l_Lean_Syntax_getArg(x_299, x_285); -lean_dec(x_299); -x_301 = l_Lean_Syntax_getArg(x_300, x_279); -lean_dec(x_300); +lean_object* x_203; lean_inc(x_2); -x_302 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_301, x_2, x_3); -if (lean_obj_tag(x_302) == 0) +x_203 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_199, x_2, x_3); +if (lean_obj_tag(x_203) == 0) { -lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; uint8_t x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; uint8_t x_327; -x_303 = lean_ctor_get(x_302, 0); -lean_inc(x_303); -x_304 = lean_ctor_get(x_302, 1); -lean_inc(x_304); -lean_dec(x_302); -x_305 = l_Lean_Elab_Term_getLCtx(x_2, x_304); -x_306 = lean_ctor_get(x_305, 0); -lean_inc(x_306); -x_307 = lean_ctor_get(x_305, 1); -lean_inc(x_307); -lean_dec(x_305); -x_308 = 0; -lean_inc_n(x_298, 2); -x_309 = lean_local_ctx_mk_local_decl(x_306, x_298, x_298, x_303, x_308); -x_310 = l_Array_eraseIdx___rarg(x_281, x_285); -x_311 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_307); -x_312 = lean_ctor_get(x_311, 1); -lean_inc(x_312); -lean_dec(x_311); -x_313 = l_Lean_Elab_Term_getMainModule___rarg(x_312); -x_314 = lean_ctor_get(x_313, 1); -lean_inc(x_314); -lean_dec(x_313); -x_315 = lean_name_mk_string(x_290, x_65); -x_316 = l_Lean_nullKind___closed__1; -x_317 = lean_name_mk_string(x_27, x_316); -x_318 = l_Array_empty___closed__1; -x_319 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_310, x_310, x_285, x_318); -lean_dec(x_310); -x_320 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_320, 0, x_317); -lean_ctor_set(x_320, 1, x_319); -x_321 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_322 = lean_array_push(x_321, x_320); -x_323 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_324 = lean_array_push(x_322, x_323); -x_325 = lean_array_push(x_324, x_283); -x_326 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_326, 0, x_315); -lean_ctor_set(x_326, 1, x_325); -x_327 = !lean_is_exclusive(x_2); -if (x_327 == 0) +lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; +x_204 = lean_ctor_get(x_203, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_203, 1); +lean_inc(x_205); +lean_dec(x_203); +x_206 = l_Lean_Elab_Term_getLCtx(x_2, x_205); +x_207 = lean_ctor_get(x_206, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_206, 1); +lean_inc(x_208); +lean_dec(x_206); +x_209 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +lean_inc_n(x_202, 2); +x_210 = lean_local_ctx_mk_let_decl(x_207, x_202, x_202, x_209, x_204); +x_211 = !lean_is_exclusive(x_2); +if (x_211 == 0) { -lean_object* x_328; uint8_t x_329; -x_328 = lean_ctor_get(x_2, 0); -x_329 = !lean_is_exclusive(x_328); -if (x_329 == 0) +lean_object* x_212; uint8_t x_213; +x_212 = lean_ctor_get(x_2, 0); +x_213 = !lean_is_exclusive(x_212); +if (x_213 == 0) { -lean_object* x_330; lean_object* x_331; -x_330 = lean_ctor_get(x_328, 1); -lean_dec(x_330); -lean_inc(x_309); -lean_ctor_set(x_328, 1, x_309); -x_331 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_326, x_2, x_314); -if (lean_obj_tag(x_331) == 0) +lean_object* x_214; lean_object* x_215; +x_214 = lean_ctor_get(x_212, 1); +lean_dec(x_214); +lean_inc(x_210); +lean_ctor_set(x_212, 1, x_210); +x_215 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_201, x_2, x_208); +if (lean_obj_tag(x_215) == 0) { -uint8_t x_332; -x_332 = !lean_is_exclusive(x_331); -if (x_332 == 0) +uint8_t x_216; +x_216 = !lean_is_exclusive(x_215); +if (x_216 == 0) { -lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; -x_333 = lean_ctor_get(x_331, 0); -x_334 = l_Lean_mkFVar(x_298); -x_335 = l_Lean_mkOptionalNode___closed__2; -x_336 = lean_array_push(x_335, x_334); -x_337 = l_Lean_LocalContext_mkLambda(x_309, x_336, x_333); -lean_dec(x_333); -lean_dec(x_336); -lean_ctor_set(x_331, 0, x_337); -return x_331; +lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_217 = lean_ctor_get(x_215, 0); +x_218 = l_Lean_mkFVar(x_202); +x_219 = l_Lean_mkOptionalNode___closed__2; +x_220 = lean_array_push(x_219, x_218); +x_221 = l_Lean_LocalContext_mkLambda(x_210, x_220, x_217); +lean_dec(x_217); +lean_dec(x_220); +lean_ctor_set(x_215, 0, x_221); +return x_215; } 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; -x_338 = lean_ctor_get(x_331, 0); -x_339 = lean_ctor_get(x_331, 1); -lean_inc(x_339); -lean_inc(x_338); -lean_dec(x_331); -x_340 = l_Lean_mkFVar(x_298); -x_341 = l_Lean_mkOptionalNode___closed__2; -x_342 = lean_array_push(x_341, x_340); -x_343 = l_Lean_LocalContext_mkLambda(x_309, x_342, x_338); -lean_dec(x_338); -lean_dec(x_342); -x_344 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_344, 0, x_343); -lean_ctor_set(x_344, 1, x_339); -return x_344; +lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; +x_222 = lean_ctor_get(x_215, 0); +x_223 = lean_ctor_get(x_215, 1); +lean_inc(x_223); +lean_inc(x_222); +lean_dec(x_215); +x_224 = l_Lean_mkFVar(x_202); +x_225 = l_Lean_mkOptionalNode___closed__2; +x_226 = lean_array_push(x_225, x_224); +x_227 = l_Lean_LocalContext_mkLambda(x_210, x_226, x_222); +lean_dec(x_222); +lean_dec(x_226); +x_228 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_228, 0, x_227); +lean_ctor_set(x_228, 1, x_223); +return x_228; } } else { -uint8_t x_345; +uint8_t x_229; +lean_dec(x_210); +lean_dec(x_202); +x_229 = !lean_is_exclusive(x_215); +if (x_229 == 0) +{ +return x_215; +} +else +{ +lean_object* x_230; lean_object* x_231; lean_object* x_232; +x_230 = lean_ctor_get(x_215, 0); +x_231 = lean_ctor_get(x_215, 1); +lean_inc(x_231); +lean_inc(x_230); +lean_dec(x_215); +x_232 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_232, 0, x_230); +lean_ctor_set(x_232, 1, x_231); +return x_232; +} +} +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; +x_233 = lean_ctor_get(x_212, 0); +x_234 = lean_ctor_get(x_212, 2); +x_235 = lean_ctor_get(x_212, 3); +x_236 = lean_ctor_get(x_212, 4); +lean_inc(x_236); +lean_inc(x_235); +lean_inc(x_234); +lean_inc(x_233); +lean_dec(x_212); +lean_inc(x_210); +x_237 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_237, 0, x_233); +lean_ctor_set(x_237, 1, x_210); +lean_ctor_set(x_237, 2, x_234); +lean_ctor_set(x_237, 3, x_235); +lean_ctor_set(x_237, 4, x_236); +lean_ctor_set(x_2, 0, x_237); +x_238 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_201, x_2, x_208); +if (lean_obj_tag(x_238) == 0) +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; +x_239 = lean_ctor_get(x_238, 0); +lean_inc(x_239); +x_240 = lean_ctor_get(x_238, 1); +lean_inc(x_240); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + x_241 = x_238; +} else { + lean_dec_ref(x_238); + x_241 = lean_box(0); +} +x_242 = l_Lean_mkFVar(x_202); +x_243 = l_Lean_mkOptionalNode___closed__2; +x_244 = lean_array_push(x_243, x_242); +x_245 = l_Lean_LocalContext_mkLambda(x_210, x_244, x_239); +lean_dec(x_239); +lean_dec(x_244); +if (lean_is_scalar(x_241)) { + x_246 = lean_alloc_ctor(0, 2, 0); +} else { + x_246 = x_241; +} +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_240); +return x_246; +} +else +{ +lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; +lean_dec(x_210); +lean_dec(x_202); +x_247 = lean_ctor_get(x_238, 0); +lean_inc(x_247); +x_248 = lean_ctor_get(x_238, 1); +lean_inc(x_248); +if (lean_is_exclusive(x_238)) { + lean_ctor_release(x_238, 0); + lean_ctor_release(x_238, 1); + x_249 = x_238; +} else { + lean_dec_ref(x_238); + 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; +} +} +} +else +{ +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; uint8_t x_261; uint8_t x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_251 = lean_ctor_get(x_2, 0); +x_252 = lean_ctor_get(x_2, 1); +x_253 = lean_ctor_get(x_2, 2); +x_254 = lean_ctor_get(x_2, 3); +x_255 = lean_ctor_get(x_2, 4); +x_256 = lean_ctor_get(x_2, 5); +x_257 = lean_ctor_get(x_2, 6); +x_258 = lean_ctor_get(x_2, 7); +x_259 = lean_ctor_get(x_2, 8); +x_260 = lean_ctor_get(x_2, 9); +x_261 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_262 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +lean_inc(x_260); +lean_inc(x_259); +lean_inc(x_258); +lean_inc(x_257); +lean_inc(x_256); +lean_inc(x_255); +lean_inc(x_254); +lean_inc(x_253); +lean_inc(x_252); +lean_inc(x_251); +lean_dec(x_2); +x_263 = lean_ctor_get(x_251, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_251, 2); +lean_inc(x_264); +x_265 = lean_ctor_get(x_251, 3); +lean_inc(x_265); +x_266 = lean_ctor_get(x_251, 4); +lean_inc(x_266); +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_267 = x_251; +} else { + lean_dec_ref(x_251); + x_267 = lean_box(0); +} +lean_inc(x_210); +if (lean_is_scalar(x_267)) { + x_268 = lean_alloc_ctor(0, 5, 0); +} else { + x_268 = x_267; +} +lean_ctor_set(x_268, 0, x_263); +lean_ctor_set(x_268, 1, x_210); +lean_ctor_set(x_268, 2, x_264); +lean_ctor_set(x_268, 3, x_265); +lean_ctor_set(x_268, 4, x_266); +x_269 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_269, 0, x_268); +lean_ctor_set(x_269, 1, x_252); +lean_ctor_set(x_269, 2, x_253); +lean_ctor_set(x_269, 3, x_254); +lean_ctor_set(x_269, 4, x_255); +lean_ctor_set(x_269, 5, x_256); +lean_ctor_set(x_269, 6, x_257); +lean_ctor_set(x_269, 7, x_258); +lean_ctor_set(x_269, 8, x_259); +lean_ctor_set(x_269, 9, x_260); +lean_ctor_set_uint8(x_269, sizeof(void*)*10, x_261); +lean_ctor_set_uint8(x_269, sizeof(void*)*10 + 1, x_262); +x_270 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_201, x_269, x_208); +if (lean_obj_tag(x_270) == 0) +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; +x_271 = lean_ctor_get(x_270, 0); +lean_inc(x_271); +x_272 = lean_ctor_get(x_270, 1); +lean_inc(x_272); +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_273 = x_270; +} else { + lean_dec_ref(x_270); + x_273 = lean_box(0); +} +x_274 = l_Lean_mkFVar(x_202); +x_275 = l_Lean_mkOptionalNode___closed__2; +x_276 = lean_array_push(x_275, x_274); +x_277 = l_Lean_LocalContext_mkLambda(x_210, x_276, x_271); +lean_dec(x_271); +lean_dec(x_276); +if (lean_is_scalar(x_273)) { + x_278 = lean_alloc_ctor(0, 2, 0); +} else { + x_278 = x_273; +} +lean_ctor_set(x_278, 0, x_277); +lean_ctor_set(x_278, 1, x_272); +return x_278; +} +else +{ +lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; +lean_dec(x_210); +lean_dec(x_202); +x_279 = lean_ctor_get(x_270, 0); +lean_inc(x_279); +x_280 = lean_ctor_get(x_270, 1); +lean_inc(x_280); +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_281 = x_270; +} else { + lean_dec_ref(x_270); + 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(x_282, 0, x_279); +lean_ctor_set(x_282, 1, x_280); +return x_282; +} +} +} +else +{ +uint8_t x_283; +lean_dec(x_202); +lean_dec(x_201); +lean_dec(x_2); +x_283 = !lean_is_exclusive(x_203); +if (x_283 == 0) +{ +return x_203; +} +else +{ +lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_284 = lean_ctor_get(x_203, 0); +x_285 = lean_ctor_get(x_203, 1); +lean_inc(x_285); +lean_inc(x_284); +lean_dec(x_203); +x_286 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_286, 0, x_284); +lean_ctor_set(x_286, 1, x_285); +return x_286; +} +} +} +} +} +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; uint8_t x_298; +lean_free_object(x_5); +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_290 = l_Lean_Syntax_inhabited; +x_291 = lean_unsigned_to_nat(1u); +x_292 = lean_array_get(x_290, x_4, x_291); +x_293 = l_Lean_Syntax_getArgs(x_292); +lean_dec(x_292); +x_294 = lean_unsigned_to_nat(3u); +x_295 = lean_array_get(x_290, x_4, x_294); +lean_dec(x_4); +x_296 = lean_array_get_size(x_293); +x_297 = lean_unsigned_to_nat(0u); +x_298 = lean_nat_dec_eq(x_296, x_297); +lean_dec(x_296); +if (x_298 == 0) +{ +lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; +x_299 = lean_array_get(x_290, x_293, x_297); +x_300 = lean_name_mk_string(x_27, x_39); +x_301 = lean_name_mk_string(x_300, x_45); +x_302 = lean_name_mk_string(x_301, x_54); +lean_inc(x_302); +x_303 = lean_name_mk_string(x_302, x_63); +lean_inc(x_299); +x_304 = l_Lean_Syntax_isOfKind(x_299, x_303); +lean_dec(x_303); +if (x_304 == 0) +{ +lean_object* x_305; lean_object* x_306; uint8_t x_307; +x_305 = l_Lean_mkHole___closed__1; +lean_inc(x_302); +x_306 = lean_name_mk_string(x_302, x_305); +lean_inc(x_299); +x_307 = l_Lean_Syntax_isOfKind(x_299, x_306); +lean_dec(x_306); +if (x_307 == 0) +{ +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_308 = l_Lean_Syntax_getArg(x_299, x_291); +lean_dec(x_299); +x_309 = l_Lean_Syntax_getArg(x_308, x_297); +x_310 = l_Lean_Syntax_getIdAt(x_309, x_297); lean_dec(x_309); -lean_dec(x_298); -x_345 = !lean_is_exclusive(x_331); -if (x_345 == 0) +x_311 = l_Lean_Syntax_getArg(x_308, x_291); +lean_dec(x_308); +x_312 = l_Lean_Syntax_getArg(x_311, x_297); +lean_dec(x_311); +x_313 = l_Lean_Syntax_getArg(x_312, x_291); +lean_dec(x_312); +lean_inc(x_2); +x_314 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_313, x_2, x_3); +if (lean_obj_tag(x_314) == 0) { -return x_331; +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; uint8_t x_339; +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_Lean_Elab_Term_getLCtx(x_2, x_316); +x_318 = lean_ctor_get(x_317, 0); +lean_inc(x_318); +x_319 = lean_ctor_get(x_317, 1); +lean_inc(x_319); +lean_dec(x_317); +x_320 = 0; +lean_inc_n(x_310, 2); +x_321 = lean_local_ctx_mk_local_decl(x_318, x_310, x_310, x_315, x_320); +x_322 = l_Array_eraseIdx___rarg(x_293, x_297); +x_323 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_319); +x_324 = lean_ctor_get(x_323, 1); +lean_inc(x_324); +lean_dec(x_323); +x_325 = l_Lean_Elab_Term_getMainModule___rarg(x_324); +x_326 = lean_ctor_get(x_325, 1); +lean_inc(x_326); +lean_dec(x_325); +x_327 = lean_name_mk_string(x_302, x_65); +x_328 = l_Lean_nullKind___closed__1; +x_329 = lean_name_mk_string(x_27, x_328); +x_330 = l_Array_empty___closed__1; +x_331 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_322, x_322, x_297, x_330); +lean_dec(x_322); +x_332 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_332, 0, x_329); +lean_ctor_set(x_332, 1, x_331); +x_333 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_334 = lean_array_push(x_333, x_332); +x_335 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_336 = lean_array_push(x_334, x_335); +x_337 = lean_array_push(x_336, x_295); +x_338 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_338, 0, x_327); +lean_ctor_set(x_338, 1, x_337); +x_339 = !lean_is_exclusive(x_2); +if (x_339 == 0) +{ +lean_object* x_340; uint8_t x_341; +x_340 = lean_ctor_get(x_2, 0); +x_341 = !lean_is_exclusive(x_340); +if (x_341 == 0) +{ +lean_object* x_342; lean_object* x_343; +x_342 = lean_ctor_get(x_340, 1); +lean_dec(x_342); +lean_inc(x_321); +lean_ctor_set(x_340, 1, x_321); +x_343 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_338, x_2, x_326); +if (lean_obj_tag(x_343) == 0) +{ +uint8_t x_344; +x_344 = !lean_is_exclusive(x_343); +if (x_344 == 0) +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; +x_345 = lean_ctor_get(x_343, 0); +x_346 = l_Lean_mkFVar(x_310); +x_347 = l_Lean_mkOptionalNode___closed__2; +x_348 = lean_array_push(x_347, x_346); +x_349 = l_Lean_LocalContext_mkLambda(x_321, x_348, x_345); +lean_dec(x_345); +lean_dec(x_348); +lean_ctor_set(x_343, 0, x_349); +return x_343; } else { -lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_346 = lean_ctor_get(x_331, 0); -x_347 = lean_ctor_get(x_331, 1); -lean_inc(x_347); -lean_inc(x_346); -lean_dec(x_331); -x_348 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_348, 0, x_346); -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; -x_349 = lean_ctor_get(x_328, 0); -x_350 = lean_ctor_get(x_328, 2); -x_351 = lean_ctor_get(x_328, 3); -x_352 = lean_ctor_get(x_328, 4); -lean_inc(x_352); +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; +x_350 = lean_ctor_get(x_343, 0); +x_351 = lean_ctor_get(x_343, 1); lean_inc(x_351); lean_inc(x_350); -lean_inc(x_349); -lean_dec(x_328); -lean_inc(x_309); -x_353 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_353, 0, x_349); -lean_ctor_set(x_353, 1, x_309); -lean_ctor_set(x_353, 2, x_350); -lean_ctor_set(x_353, 3, x_351); -lean_ctor_set(x_353, 4, x_352); -lean_ctor_set(x_2, 0, x_353); -x_354 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_326, x_2, x_314); -if (lean_obj_tag(x_354) == 0) -{ -lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; -x_355 = lean_ctor_get(x_354, 0); -lean_inc(x_355); -x_356 = lean_ctor_get(x_354, 1); -lean_inc(x_356); -if (lean_is_exclusive(x_354)) { - lean_ctor_release(x_354, 0); - lean_ctor_release(x_354, 1); - x_357 = x_354; -} else { - lean_dec_ref(x_354); - x_357 = lean_box(0); +lean_dec(x_343); +x_352 = l_Lean_mkFVar(x_310); +x_353 = l_Lean_mkOptionalNode___closed__2; +x_354 = lean_array_push(x_353, x_352); +x_355 = l_Lean_LocalContext_mkLambda(x_321, x_354, x_350); +lean_dec(x_350); +lean_dec(x_354); +x_356 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_356, 0, x_355); +lean_ctor_set(x_356, 1, x_351); +return x_356; } -x_358 = l_Lean_mkFVar(x_298); -x_359 = l_Lean_mkOptionalNode___closed__2; -x_360 = lean_array_push(x_359, x_358); -x_361 = l_Lean_LocalContext_mkLambda(x_309, x_360, x_355); -lean_dec(x_355); -lean_dec(x_360); -if (lean_is_scalar(x_357)) { - x_362 = lean_alloc_ctor(0, 2, 0); -} else { - x_362 = x_357; -} -lean_ctor_set(x_362, 0, x_361); -lean_ctor_set(x_362, 1, x_356); -return x_362; } else { -lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; -lean_dec(x_309); -lean_dec(x_298); -x_363 = lean_ctor_get(x_354, 0); -lean_inc(x_363); -x_364 = lean_ctor_get(x_354, 1); +uint8_t x_357; +lean_dec(x_321); +lean_dec(x_310); +x_357 = !lean_is_exclusive(x_343); +if (x_357 == 0) +{ +return x_343; +} +else +{ +lean_object* x_358; lean_object* x_359; lean_object* x_360; +x_358 = lean_ctor_get(x_343, 0); +x_359 = lean_ctor_get(x_343, 1); +lean_inc(x_359); +lean_inc(x_358); +lean_dec(x_343); +x_360 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_360, 0, x_358); +lean_ctor_set(x_360, 1, x_359); +return x_360; +} +} +} +else +{ +lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; +x_361 = lean_ctor_get(x_340, 0); +x_362 = lean_ctor_get(x_340, 2); +x_363 = lean_ctor_get(x_340, 3); +x_364 = lean_ctor_get(x_340, 4); lean_inc(x_364); -if (lean_is_exclusive(x_354)) { - lean_ctor_release(x_354, 0); - lean_ctor_release(x_354, 1); - x_365 = x_354; -} else { - lean_dec_ref(x_354); - x_365 = lean_box(0); -} -if (lean_is_scalar(x_365)) { - x_366 = lean_alloc_ctor(1, 2, 0); -} else { - x_366 = x_365; -} -lean_ctor_set(x_366, 0, x_363); -lean_ctor_set(x_366, 1, x_364); -return x_366; -} -} -} -else +lean_inc(x_363); +lean_inc(x_362); +lean_inc(x_361); +lean_dec(x_340); +lean_inc(x_321); +x_365 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_365, 0, x_361); +lean_ctor_set(x_365, 1, x_321); +lean_ctor_set(x_365, 2, x_362); +lean_ctor_set(x_365, 3, x_363); +lean_ctor_set(x_365, 4, x_364); +lean_ctor_set(x_2, 0, x_365); +x_366 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_338, x_2, x_326); +if (lean_obj_tag(x_366) == 0) { -lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; uint8_t x_378; 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; -x_367 = lean_ctor_get(x_2, 0); -x_368 = lean_ctor_get(x_2, 1); -x_369 = lean_ctor_get(x_2, 2); -x_370 = lean_ctor_get(x_2, 3); -x_371 = lean_ctor_get(x_2, 4); -x_372 = lean_ctor_get(x_2, 5); -x_373 = lean_ctor_get(x_2, 6); -x_374 = lean_ctor_get(x_2, 7); -x_375 = lean_ctor_get(x_2, 8); -x_376 = lean_ctor_get(x_2, 9); -x_377 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_378 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -lean_inc(x_376); -lean_inc(x_375); -lean_inc(x_374); -lean_inc(x_373); -lean_inc(x_372); -lean_inc(x_371); -lean_inc(x_370); -lean_inc(x_369); -lean_inc(x_368); +lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_367 = lean_ctor_get(x_366, 0); lean_inc(x_367); -lean_dec(x_2); -x_379 = lean_ctor_get(x_367, 0); -lean_inc(x_379); -x_380 = lean_ctor_get(x_367, 2); -lean_inc(x_380); -x_381 = lean_ctor_get(x_367, 3); -lean_inc(x_381); -x_382 = lean_ctor_get(x_367, 4); -lean_inc(x_382); -if (lean_is_exclusive(x_367)) { - lean_ctor_release(x_367, 0); - lean_ctor_release(x_367, 1); - lean_ctor_release(x_367, 2); - lean_ctor_release(x_367, 3); - lean_ctor_release(x_367, 4); - x_383 = x_367; +x_368 = lean_ctor_get(x_366, 1); +lean_inc(x_368); +if (lean_is_exclusive(x_366)) { + lean_ctor_release(x_366, 0); + lean_ctor_release(x_366, 1); + x_369 = x_366; } else { - lean_dec_ref(x_367); - x_383 = lean_box(0); + lean_dec_ref(x_366); + x_369 = lean_box(0); } -lean_inc(x_309); -if (lean_is_scalar(x_383)) { - x_384 = lean_alloc_ctor(0, 5, 0); +x_370 = l_Lean_mkFVar(x_310); +x_371 = l_Lean_mkOptionalNode___closed__2; +x_372 = lean_array_push(x_371, x_370); +x_373 = l_Lean_LocalContext_mkLambda(x_321, x_372, x_367); +lean_dec(x_367); +lean_dec(x_372); +if (lean_is_scalar(x_369)) { + x_374 = lean_alloc_ctor(0, 2, 0); } else { - x_384 = x_383; + x_374 = x_369; } -lean_ctor_set(x_384, 0, x_379); -lean_ctor_set(x_384, 1, x_309); -lean_ctor_set(x_384, 2, x_380); -lean_ctor_set(x_384, 3, x_381); -lean_ctor_set(x_384, 4, x_382); -x_385 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_385, 0, x_384); -lean_ctor_set(x_385, 1, x_368); -lean_ctor_set(x_385, 2, x_369); -lean_ctor_set(x_385, 3, x_370); -lean_ctor_set(x_385, 4, x_371); -lean_ctor_set(x_385, 5, x_372); -lean_ctor_set(x_385, 6, x_373); -lean_ctor_set(x_385, 7, x_374); -lean_ctor_set(x_385, 8, x_375); -lean_ctor_set(x_385, 9, x_376); -lean_ctor_set_uint8(x_385, sizeof(void*)*10, x_377); -lean_ctor_set_uint8(x_385, sizeof(void*)*10 + 1, x_378); -x_386 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_326, x_385, x_314); -if (lean_obj_tag(x_386) == 0) +lean_ctor_set(x_374, 0, x_373); +lean_ctor_set(x_374, 1, x_368); +return x_374; +} +else { -lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; -x_387 = lean_ctor_get(x_386, 0); -lean_inc(x_387); -x_388 = lean_ctor_get(x_386, 1); +lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; +lean_dec(x_321); +lean_dec(x_310); +x_375 = lean_ctor_get(x_366, 0); +lean_inc(x_375); +x_376 = lean_ctor_get(x_366, 1); +lean_inc(x_376); +if (lean_is_exclusive(x_366)) { + lean_ctor_release(x_366, 0); + lean_ctor_release(x_366, 1); + x_377 = x_366; +} else { + lean_dec_ref(x_366); + 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_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; uint8_t x_389; uint8_t 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; +x_379 = lean_ctor_get(x_2, 0); +x_380 = lean_ctor_get(x_2, 1); +x_381 = lean_ctor_get(x_2, 2); +x_382 = lean_ctor_get(x_2, 3); +x_383 = lean_ctor_get(x_2, 4); +x_384 = lean_ctor_get(x_2, 5); +x_385 = lean_ctor_get(x_2, 6); +x_386 = lean_ctor_get(x_2, 7); +x_387 = lean_ctor_get(x_2, 8); +x_388 = lean_ctor_get(x_2, 9); +x_389 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_390 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); lean_inc(x_388); -if (lean_is_exclusive(x_386)) { - lean_ctor_release(x_386, 0); - lean_ctor_release(x_386, 1); - x_389 = x_386; -} else { - lean_dec_ref(x_386); - x_389 = lean_box(0); -} -x_390 = l_Lean_mkFVar(x_298); -x_391 = l_Lean_mkOptionalNode___closed__2; -x_392 = lean_array_push(x_391, x_390); -x_393 = l_Lean_LocalContext_mkLambda(x_309, x_392, x_387); -lean_dec(x_387); -lean_dec(x_392); -if (lean_is_scalar(x_389)) { - x_394 = lean_alloc_ctor(0, 2, 0); -} else { - x_394 = x_389; -} -lean_ctor_set(x_394, 0, x_393); -lean_ctor_set(x_394, 1, x_388); -return x_394; -} -else -{ -lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; -lean_dec(x_309); -lean_dec(x_298); -x_395 = lean_ctor_get(x_386, 0); -lean_inc(x_395); -x_396 = lean_ctor_get(x_386, 1); -lean_inc(x_396); -if (lean_is_exclusive(x_386)) { - lean_ctor_release(x_386, 0); - lean_ctor_release(x_386, 1); - x_397 = x_386; -} else { - lean_dec_ref(x_386); - x_397 = lean_box(0); -} -if (lean_is_scalar(x_397)) { - x_398 = lean_alloc_ctor(1, 2, 0); -} else { - x_398 = x_397; -} -lean_ctor_set(x_398, 0, x_395); -lean_ctor_set(x_398, 1, x_396); -return x_398; -} -} -} -else -{ -uint8_t x_399; -lean_dec(x_298); -lean_dec(x_290); -lean_dec(x_283); -lean_dec(x_281); +lean_inc(x_387); +lean_inc(x_386); +lean_inc(x_385); +lean_inc(x_384); +lean_inc(x_383); +lean_inc(x_382); +lean_inc(x_381); +lean_inc(x_380); +lean_inc(x_379); lean_dec(x_2); -x_399 = !lean_is_exclusive(x_302); -if (x_399 == 0) -{ -return x_302; +x_391 = lean_ctor_get(x_379, 0); +lean_inc(x_391); +x_392 = lean_ctor_get(x_379, 2); +lean_inc(x_392); +x_393 = lean_ctor_get(x_379, 3); +lean_inc(x_393); +x_394 = lean_ctor_get(x_379, 4); +lean_inc(x_394); +if (lean_is_exclusive(x_379)) { + lean_ctor_release(x_379, 0); + lean_ctor_release(x_379, 1); + lean_ctor_release(x_379, 2); + lean_ctor_release(x_379, 3); + lean_ctor_release(x_379, 4); + x_395 = x_379; +} else { + lean_dec_ref(x_379); + x_395 = lean_box(0); } -else +lean_inc(x_321); +if (lean_is_scalar(x_395)) { + x_396 = lean_alloc_ctor(0, 5, 0); +} else { + x_396 = x_395; +} +lean_ctor_set(x_396, 0, x_391); +lean_ctor_set(x_396, 1, x_321); +lean_ctor_set(x_396, 2, x_392); +lean_ctor_set(x_396, 3, x_393); +lean_ctor_set(x_396, 4, x_394); +x_397 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_397, 0, x_396); +lean_ctor_set(x_397, 1, x_380); +lean_ctor_set(x_397, 2, x_381); +lean_ctor_set(x_397, 3, x_382); +lean_ctor_set(x_397, 4, x_383); +lean_ctor_set(x_397, 5, x_384); +lean_ctor_set(x_397, 6, x_385); +lean_ctor_set(x_397, 7, x_386); +lean_ctor_set(x_397, 8, x_387); +lean_ctor_set(x_397, 9, x_388); +lean_ctor_set_uint8(x_397, sizeof(void*)*10, x_389); +lean_ctor_set_uint8(x_397, sizeof(void*)*10 + 1, x_390); +x_398 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_338, x_397, x_326); +if (lean_obj_tag(x_398) == 0) { -lean_object* x_400; lean_object* x_401; lean_object* x_402; -x_400 = lean_ctor_get(x_302, 0); -x_401 = lean_ctor_get(x_302, 1); -lean_inc(x_401); +lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +x_399 = lean_ctor_get(x_398, 0); +lean_inc(x_399); +x_400 = lean_ctor_get(x_398, 1); lean_inc(x_400); -lean_dec(x_302); -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; +if (lean_is_exclusive(x_398)) { + lean_ctor_release(x_398, 0); + lean_ctor_release(x_398, 1); + x_401 = x_398; +} else { + lean_dec_ref(x_398); + x_401 = lean_box(0); } -} -} -else -{ -lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; uint8_t x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; uint8_t x_428; -lean_dec(x_287); -x_403 = l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; -x_404 = lean_name_mk_string(x_27, x_403); -x_405 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_406 = lean_ctor_get(x_405, 0); -lean_inc(x_406); -x_407 = lean_ctor_get(x_405, 1); -lean_inc(x_407); -lean_dec(x_405); -x_408 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -x_409 = 0; -lean_inc_n(x_404, 2); -x_410 = lean_local_ctx_mk_local_decl(x_406, x_404, x_404, x_408, x_409); -x_411 = l_Array_eraseIdx___rarg(x_281, x_285); -x_412 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_407); -x_413 = lean_ctor_get(x_412, 1); -lean_inc(x_413); -lean_dec(x_412); -x_414 = l_Lean_Elab_Term_getMainModule___rarg(x_413); -x_415 = lean_ctor_get(x_414, 1); -lean_inc(x_415); -lean_dec(x_414); -x_416 = lean_name_mk_string(x_290, x_65); -x_417 = l_Lean_nullKind___closed__1; -x_418 = lean_name_mk_string(x_27, x_417); -x_419 = l_Array_empty___closed__1; -x_420 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_411, x_411, x_285, x_419); -lean_dec(x_411); -x_421 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_421, 0, x_418); -lean_ctor_set(x_421, 1, x_420); -x_422 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_423 = lean_array_push(x_422, x_421); -x_424 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_425 = lean_array_push(x_423, x_424); -x_426 = lean_array_push(x_425, x_283); -x_427 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_427, 0, x_416); -lean_ctor_set(x_427, 1, x_426); -x_428 = !lean_is_exclusive(x_2); -if (x_428 == 0) -{ -lean_object* x_429; uint8_t x_430; -x_429 = lean_ctor_get(x_2, 0); -x_430 = !lean_is_exclusive(x_429); -if (x_430 == 0) -{ -lean_object* x_431; lean_object* x_432; -x_431 = lean_ctor_get(x_429, 1); -lean_dec(x_431); -lean_inc(x_410); -lean_ctor_set(x_429, 1, x_410); -x_432 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_427, x_2, x_415); -if (lean_obj_tag(x_432) == 0) -{ -uint8_t x_433; -x_433 = !lean_is_exclusive(x_432); -if (x_433 == 0) -{ -lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; -x_434 = lean_ctor_get(x_432, 0); -x_435 = l_Lean_mkFVar(x_404); -x_436 = l_Lean_mkOptionalNode___closed__2; -x_437 = lean_array_push(x_436, x_435); -x_438 = l_Lean_LocalContext_mkLambda(x_410, x_437, x_434); -lean_dec(x_434); -lean_dec(x_437); -lean_ctor_set(x_432, 0, x_438); -return x_432; -} -else -{ -lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; -x_439 = lean_ctor_get(x_432, 0); -x_440 = lean_ctor_get(x_432, 1); -lean_inc(x_440); -lean_inc(x_439); -lean_dec(x_432); -x_441 = l_Lean_mkFVar(x_404); -x_442 = l_Lean_mkOptionalNode___closed__2; -x_443 = lean_array_push(x_442, x_441); -x_444 = l_Lean_LocalContext_mkLambda(x_410, x_443, x_439); -lean_dec(x_439); -lean_dec(x_443); -x_445 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_445, 0, x_444); -lean_ctor_set(x_445, 1, x_440); -return x_445; -} -} -else -{ -uint8_t x_446; -lean_dec(x_410); +x_402 = l_Lean_mkFVar(x_310); +x_403 = l_Lean_mkOptionalNode___closed__2; +x_404 = lean_array_push(x_403, x_402); +x_405 = l_Lean_LocalContext_mkLambda(x_321, x_404, x_399); +lean_dec(x_399); lean_dec(x_404); -x_446 = !lean_is_exclusive(x_432); -if (x_446 == 0) -{ -return x_432; +if (lean_is_scalar(x_401)) { + x_406 = lean_alloc_ctor(0, 2, 0); +} else { + x_406 = x_401; +} +lean_ctor_set(x_406, 0, x_405); +lean_ctor_set(x_406, 1, x_400); +return x_406; } else { -lean_object* x_447; lean_object* x_448; lean_object* x_449; -x_447 = lean_ctor_get(x_432, 0); -x_448 = lean_ctor_get(x_432, 1); -lean_inc(x_448); -lean_inc(x_447); -lean_dec(x_432); -x_449 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_449, 0, x_447); -lean_ctor_set(x_449, 1, x_448); -return x_449; +lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; +lean_dec(x_321); +lean_dec(x_310); +x_407 = lean_ctor_get(x_398, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_398, 1); +lean_inc(x_408); +if (lean_is_exclusive(x_398)) { + lean_ctor_release(x_398, 0); + lean_ctor_release(x_398, 1); + x_409 = x_398; +} else { + lean_dec_ref(x_398); + x_409 = lean_box(0); +} +if (lean_is_scalar(x_409)) { + x_410 = lean_alloc_ctor(1, 2, 0); +} else { + x_410 = x_409; +} +lean_ctor_set(x_410, 0, x_407); +lean_ctor_set(x_410, 1, x_408); +return x_410; } } } else { -lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; -x_450 = lean_ctor_get(x_429, 0); -x_451 = lean_ctor_get(x_429, 2); -x_452 = lean_ctor_get(x_429, 3); -x_453 = lean_ctor_get(x_429, 4); -lean_inc(x_453); +uint8_t x_411; +lean_dec(x_310); +lean_dec(x_302); +lean_dec(x_295); +lean_dec(x_293); +lean_dec(x_2); +x_411 = !lean_is_exclusive(x_314); +if (x_411 == 0) +{ +return x_314; +} +else +{ +lean_object* x_412; lean_object* x_413; lean_object* x_414; +x_412 = lean_ctor_get(x_314, 0); +x_413 = lean_ctor_get(x_314, 1); +lean_inc(x_413); +lean_inc(x_412); +lean_dec(x_314); +x_414 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_414, 0, x_412); +lean_ctor_set(x_414, 1, x_413); +return x_414; +} +} +} +else +{ +lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; uint8_t x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; uint8_t x_440; +lean_dec(x_299); +x_415 = l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; +x_416 = lean_name_mk_string(x_27, x_415); +x_417 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_418 = lean_ctor_get(x_417, 0); +lean_inc(x_418); +x_419 = lean_ctor_get(x_417, 1); +lean_inc(x_419); +lean_dec(x_417); +x_420 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +x_421 = 0; +lean_inc_n(x_416, 2); +x_422 = lean_local_ctx_mk_local_decl(x_418, x_416, x_416, x_420, x_421); +x_423 = l_Array_eraseIdx___rarg(x_293, x_297); +x_424 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_419); +x_425 = lean_ctor_get(x_424, 1); +lean_inc(x_425); +lean_dec(x_424); +x_426 = l_Lean_Elab_Term_getMainModule___rarg(x_425); +x_427 = lean_ctor_get(x_426, 1); +lean_inc(x_427); +lean_dec(x_426); +x_428 = lean_name_mk_string(x_302, x_65); +x_429 = l_Lean_nullKind___closed__1; +x_430 = lean_name_mk_string(x_27, x_429); +x_431 = l_Array_empty___closed__1; +x_432 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_423, x_423, x_297, x_431); +lean_dec(x_423); +x_433 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_433, 0, x_430); +lean_ctor_set(x_433, 1, x_432); +x_434 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_435 = lean_array_push(x_434, x_433); +x_436 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_437 = lean_array_push(x_435, x_436); +x_438 = lean_array_push(x_437, x_295); +x_439 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_439, 0, x_428); +lean_ctor_set(x_439, 1, x_438); +x_440 = !lean_is_exclusive(x_2); +if (x_440 == 0) +{ +lean_object* x_441; uint8_t x_442; +x_441 = lean_ctor_get(x_2, 0); +x_442 = !lean_is_exclusive(x_441); +if (x_442 == 0) +{ +lean_object* x_443; lean_object* x_444; +x_443 = lean_ctor_get(x_441, 1); +lean_dec(x_443); +lean_inc(x_422); +lean_ctor_set(x_441, 1, x_422); +x_444 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_439, x_2, x_427); +if (lean_obj_tag(x_444) == 0) +{ +uint8_t x_445; +x_445 = !lean_is_exclusive(x_444); +if (x_445 == 0) +{ +lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; +x_446 = lean_ctor_get(x_444, 0); +x_447 = l_Lean_mkFVar(x_416); +x_448 = l_Lean_mkOptionalNode___closed__2; +x_449 = lean_array_push(x_448, x_447); +x_450 = l_Lean_LocalContext_mkLambda(x_422, x_449, x_446); +lean_dec(x_446); +lean_dec(x_449); +lean_ctor_set(x_444, 0, x_450); +return x_444; +} +else +{ +lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; +x_451 = lean_ctor_get(x_444, 0); +x_452 = lean_ctor_get(x_444, 1); lean_inc(x_452); lean_inc(x_451); -lean_inc(x_450); -lean_dec(x_429); -lean_inc(x_410); -x_454 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_454, 0, x_450); -lean_ctor_set(x_454, 1, x_410); -lean_ctor_set(x_454, 2, x_451); -lean_ctor_set(x_454, 3, x_452); -lean_ctor_set(x_454, 4, x_453); -lean_ctor_set(x_2, 0, x_454); -x_455 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_427, x_2, x_415); -if (lean_obj_tag(x_455) == 0) -{ -lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; -x_456 = lean_ctor_get(x_455, 0); -lean_inc(x_456); -x_457 = lean_ctor_get(x_455, 1); -lean_inc(x_457); -if (lean_is_exclusive(x_455)) { - lean_ctor_release(x_455, 0); - lean_ctor_release(x_455, 1); - x_458 = x_455; -} else { - lean_dec_ref(x_455); - x_458 = lean_box(0); +lean_dec(x_444); +x_453 = l_Lean_mkFVar(x_416); +x_454 = l_Lean_mkOptionalNode___closed__2; +x_455 = lean_array_push(x_454, x_453); +x_456 = l_Lean_LocalContext_mkLambda(x_422, x_455, x_451); +lean_dec(x_451); +lean_dec(x_455); +x_457 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_457, 0, x_456); +lean_ctor_set(x_457, 1, x_452); +return x_457; } -x_459 = l_Lean_mkFVar(x_404); -x_460 = l_Lean_mkOptionalNode___closed__2; -x_461 = lean_array_push(x_460, x_459); -x_462 = l_Lean_LocalContext_mkLambda(x_410, x_461, x_456); -lean_dec(x_456); -lean_dec(x_461); -if (lean_is_scalar(x_458)) { - x_463 = lean_alloc_ctor(0, 2, 0); -} else { - x_463 = x_458; -} -lean_ctor_set(x_463, 0, x_462); -lean_ctor_set(x_463, 1, x_457); -return x_463; } else { -lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; -lean_dec(x_410); -lean_dec(x_404); -x_464 = lean_ctor_get(x_455, 0); -lean_inc(x_464); -x_465 = lean_ctor_get(x_455, 1); +uint8_t x_458; +lean_dec(x_422); +lean_dec(x_416); +x_458 = !lean_is_exclusive(x_444); +if (x_458 == 0) +{ +return x_444; +} +else +{ +lean_object* x_459; lean_object* x_460; lean_object* x_461; +x_459 = lean_ctor_get(x_444, 0); +x_460 = lean_ctor_get(x_444, 1); +lean_inc(x_460); +lean_inc(x_459); +lean_dec(x_444); +x_461 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_461, 0, x_459); +lean_ctor_set(x_461, 1, x_460); +return x_461; +} +} +} +else +{ +lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; +x_462 = lean_ctor_get(x_441, 0); +x_463 = lean_ctor_get(x_441, 2); +x_464 = lean_ctor_get(x_441, 3); +x_465 = lean_ctor_get(x_441, 4); lean_inc(x_465); -if (lean_is_exclusive(x_455)) { - lean_ctor_release(x_455, 0); - lean_ctor_release(x_455, 1); - x_466 = x_455; -} else { - lean_dec_ref(x_455); - x_466 = lean_box(0); -} -if (lean_is_scalar(x_466)) { - x_467 = lean_alloc_ctor(1, 2, 0); -} else { - x_467 = x_466; -} -lean_ctor_set(x_467, 0, x_464); -lean_ctor_set(x_467, 1, x_465); -return x_467; -} -} -} -else +lean_inc(x_464); +lean_inc(x_463); +lean_inc(x_462); +lean_dec(x_441); +lean_inc(x_422); +x_466 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_466, 0, x_462); +lean_ctor_set(x_466, 1, x_422); +lean_ctor_set(x_466, 2, x_463); +lean_ctor_set(x_466, 3, x_464); +lean_ctor_set(x_466, 4, x_465); +lean_ctor_set(x_2, 0, x_466); +x_467 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_439, x_2, x_427); +if (lean_obj_tag(x_467) == 0) { -lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; uint8_t x_478; uint8_t 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; -x_468 = lean_ctor_get(x_2, 0); -x_469 = lean_ctor_get(x_2, 1); -x_470 = lean_ctor_get(x_2, 2); -x_471 = lean_ctor_get(x_2, 3); -x_472 = lean_ctor_get(x_2, 4); -x_473 = lean_ctor_get(x_2, 5); -x_474 = lean_ctor_get(x_2, 6); -x_475 = lean_ctor_get(x_2, 7); -x_476 = lean_ctor_get(x_2, 8); -x_477 = lean_ctor_get(x_2, 9); -x_478 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_479 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -lean_inc(x_477); -lean_inc(x_476); -lean_inc(x_475); -lean_inc(x_474); -lean_inc(x_473); -lean_inc(x_472); -lean_inc(x_471); -lean_inc(x_470); -lean_inc(x_469); +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_468 = lean_ctor_get(x_467, 0); lean_inc(x_468); -lean_dec(x_2); -x_480 = lean_ctor_get(x_468, 0); -lean_inc(x_480); -x_481 = lean_ctor_get(x_468, 2); -lean_inc(x_481); -x_482 = lean_ctor_get(x_468, 3); -lean_inc(x_482); -x_483 = lean_ctor_get(x_468, 4); -lean_inc(x_483); -if (lean_is_exclusive(x_468)) { - lean_ctor_release(x_468, 0); - lean_ctor_release(x_468, 1); - lean_ctor_release(x_468, 2); - lean_ctor_release(x_468, 3); - lean_ctor_release(x_468, 4); - x_484 = x_468; +x_469 = lean_ctor_get(x_467, 1); +lean_inc(x_469); +if (lean_is_exclusive(x_467)) { + lean_ctor_release(x_467, 0); + lean_ctor_release(x_467, 1); + x_470 = x_467; } else { - lean_dec_ref(x_468); - x_484 = lean_box(0); + lean_dec_ref(x_467); + x_470 = lean_box(0); } -lean_inc(x_410); -if (lean_is_scalar(x_484)) { - x_485 = lean_alloc_ctor(0, 5, 0); +x_471 = l_Lean_mkFVar(x_416); +x_472 = l_Lean_mkOptionalNode___closed__2; +x_473 = lean_array_push(x_472, x_471); +x_474 = l_Lean_LocalContext_mkLambda(x_422, x_473, x_468); +lean_dec(x_468); +lean_dec(x_473); +if (lean_is_scalar(x_470)) { + x_475 = lean_alloc_ctor(0, 2, 0); } else { - x_485 = x_484; + x_475 = x_470; } -lean_ctor_set(x_485, 0, x_480); -lean_ctor_set(x_485, 1, x_410); -lean_ctor_set(x_485, 2, x_481); -lean_ctor_set(x_485, 3, x_482); -lean_ctor_set(x_485, 4, x_483); -x_486 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_486, 0, x_485); -lean_ctor_set(x_486, 1, x_469); -lean_ctor_set(x_486, 2, x_470); -lean_ctor_set(x_486, 3, x_471); -lean_ctor_set(x_486, 4, x_472); -lean_ctor_set(x_486, 5, x_473); -lean_ctor_set(x_486, 6, x_474); -lean_ctor_set(x_486, 7, x_475); -lean_ctor_set(x_486, 8, x_476); -lean_ctor_set(x_486, 9, x_477); -lean_ctor_set_uint8(x_486, sizeof(void*)*10, x_478); -lean_ctor_set_uint8(x_486, sizeof(void*)*10 + 1, x_479); -x_487 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_427, x_486, x_415); -if (lean_obj_tag(x_487) == 0) +lean_ctor_set(x_475, 0, x_474); +lean_ctor_set(x_475, 1, x_469); +return x_475; +} +else { -lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; -x_488 = lean_ctor_get(x_487, 0); -lean_inc(x_488); -x_489 = lean_ctor_get(x_487, 1); +lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; +lean_dec(x_422); +lean_dec(x_416); +x_476 = lean_ctor_get(x_467, 0); +lean_inc(x_476); +x_477 = lean_ctor_get(x_467, 1); +lean_inc(x_477); +if (lean_is_exclusive(x_467)) { + lean_ctor_release(x_467, 0); + lean_ctor_release(x_467, 1); + x_478 = x_467; +} else { + lean_dec_ref(x_467); + x_478 = lean_box(0); +} +if (lean_is_scalar(x_478)) { + x_479 = lean_alloc_ctor(1, 2, 0); +} else { + x_479 = x_478; +} +lean_ctor_set(x_479, 0, x_476); +lean_ctor_set(x_479, 1, x_477); +return x_479; +} +} +} +else +{ +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; uint8_t x_490; uint8_t x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; +x_480 = lean_ctor_get(x_2, 0); +x_481 = lean_ctor_get(x_2, 1); +x_482 = lean_ctor_get(x_2, 2); +x_483 = lean_ctor_get(x_2, 3); +x_484 = lean_ctor_get(x_2, 4); +x_485 = lean_ctor_get(x_2, 5); +x_486 = lean_ctor_get(x_2, 6); +x_487 = lean_ctor_get(x_2, 7); +x_488 = lean_ctor_get(x_2, 8); +x_489 = lean_ctor_get(x_2, 9); +x_490 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_491 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); lean_inc(x_489); -if (lean_is_exclusive(x_487)) { - lean_ctor_release(x_487, 0); - lean_ctor_release(x_487, 1); - x_490 = x_487; +lean_inc(x_488); +lean_inc(x_487); +lean_inc(x_486); +lean_inc(x_485); +lean_inc(x_484); +lean_inc(x_483); +lean_inc(x_482); +lean_inc(x_481); +lean_inc(x_480); +lean_dec(x_2); +x_492 = lean_ctor_get(x_480, 0); +lean_inc(x_492); +x_493 = lean_ctor_get(x_480, 2); +lean_inc(x_493); +x_494 = lean_ctor_get(x_480, 3); +lean_inc(x_494); +x_495 = lean_ctor_get(x_480, 4); +lean_inc(x_495); +if (lean_is_exclusive(x_480)) { + lean_ctor_release(x_480, 0); + lean_ctor_release(x_480, 1); + lean_ctor_release(x_480, 2); + lean_ctor_release(x_480, 3); + lean_ctor_release(x_480, 4); + x_496 = x_480; } else { - lean_dec_ref(x_487); - x_490 = lean_box(0); + lean_dec_ref(x_480); + x_496 = lean_box(0); } -x_491 = l_Lean_mkFVar(x_404); -x_492 = l_Lean_mkOptionalNode___closed__2; -x_493 = lean_array_push(x_492, x_491); -x_494 = l_Lean_LocalContext_mkLambda(x_410, x_493, x_488); -lean_dec(x_488); -lean_dec(x_493); -if (lean_is_scalar(x_490)) { - x_495 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_422); +if (lean_is_scalar(x_496)) { + x_497 = lean_alloc_ctor(0, 5, 0); } else { - x_495 = x_490; + x_497 = x_496; } -lean_ctor_set(x_495, 0, x_494); -lean_ctor_set(x_495, 1, x_489); -return x_495; -} -else +lean_ctor_set(x_497, 0, x_492); +lean_ctor_set(x_497, 1, x_422); +lean_ctor_set(x_497, 2, x_493); +lean_ctor_set(x_497, 3, x_494); +lean_ctor_set(x_497, 4, x_495); +x_498 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_498, 0, x_497); +lean_ctor_set(x_498, 1, x_481); +lean_ctor_set(x_498, 2, x_482); +lean_ctor_set(x_498, 3, x_483); +lean_ctor_set(x_498, 4, x_484); +lean_ctor_set(x_498, 5, x_485); +lean_ctor_set(x_498, 6, x_486); +lean_ctor_set(x_498, 7, x_487); +lean_ctor_set(x_498, 8, x_488); +lean_ctor_set(x_498, 9, x_489); +lean_ctor_set_uint8(x_498, sizeof(void*)*10, x_490); +lean_ctor_set_uint8(x_498, sizeof(void*)*10 + 1, x_491); +x_499 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_439, x_498, x_427); +if (lean_obj_tag(x_499) == 0) { -lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; -lean_dec(x_410); -lean_dec(x_404); -x_496 = lean_ctor_get(x_487, 0); -lean_inc(x_496); -x_497 = lean_ctor_get(x_487, 1); -lean_inc(x_497); -if (lean_is_exclusive(x_487)) { - lean_ctor_release(x_487, 0); - lean_ctor_release(x_487, 1); - x_498 = x_487; +lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; +x_500 = lean_ctor_get(x_499, 0); +lean_inc(x_500); +x_501 = lean_ctor_get(x_499, 1); +lean_inc(x_501); +if (lean_is_exclusive(x_499)) { + lean_ctor_release(x_499, 0); + lean_ctor_release(x_499, 1); + x_502 = x_499; } else { - lean_dec_ref(x_487); - x_498 = lean_box(0); + lean_dec_ref(x_499); + x_502 = lean_box(0); } -if (lean_is_scalar(x_498)) { - x_499 = lean_alloc_ctor(1, 2, 0); -} else { - x_499 = x_498; -} -lean_ctor_set(x_499, 0, x_496); -lean_ctor_set(x_499, 1, x_497); -return x_499; -} -} -} -} -else -{ -lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; uint8_t x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; uint8_t x_524; -x_500 = l_Lean_Syntax_getIdAt(x_287, x_285); -lean_dec(x_287); -x_501 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_502 = lean_ctor_get(x_501, 0); -lean_inc(x_502); -x_503 = lean_ctor_get(x_501, 1); -lean_inc(x_503); -lean_dec(x_501); -x_504 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -x_505 = 0; -lean_inc_n(x_500, 2); -x_506 = lean_local_ctx_mk_local_decl(x_502, x_500, x_500, x_504, x_505); -x_507 = l_Array_eraseIdx___rarg(x_281, x_285); -x_508 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_503); -x_509 = lean_ctor_get(x_508, 1); -lean_inc(x_509); -lean_dec(x_508); -x_510 = l_Lean_Elab_Term_getMainModule___rarg(x_509); -x_511 = lean_ctor_get(x_510, 1); -lean_inc(x_511); -lean_dec(x_510); -x_512 = lean_name_mk_string(x_290, x_65); -x_513 = l_Lean_nullKind___closed__1; -x_514 = lean_name_mk_string(x_27, x_513); -x_515 = l_Array_empty___closed__1; -x_516 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_507, x_507, x_285, x_515); -lean_dec(x_507); -x_517 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_517, 0, x_514); -lean_ctor_set(x_517, 1, x_516); -x_518 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_519 = lean_array_push(x_518, x_517); -x_520 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_521 = lean_array_push(x_519, x_520); -x_522 = lean_array_push(x_521, x_283); -x_523 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_523, 0, x_512); -lean_ctor_set(x_523, 1, x_522); -x_524 = !lean_is_exclusive(x_2); -if (x_524 == 0) -{ -lean_object* x_525; uint8_t x_526; -x_525 = lean_ctor_get(x_2, 0); -x_526 = !lean_is_exclusive(x_525); -if (x_526 == 0) -{ -lean_object* x_527; lean_object* x_528; -x_527 = lean_ctor_get(x_525, 1); -lean_dec(x_527); -lean_inc(x_506); -lean_ctor_set(x_525, 1, x_506); -x_528 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_523, x_2, x_511); -if (lean_obj_tag(x_528) == 0) -{ -uint8_t x_529; -x_529 = !lean_is_exclusive(x_528); -if (x_529 == 0) -{ -lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; -x_530 = lean_ctor_get(x_528, 0); -x_531 = l_Lean_mkFVar(x_500); -x_532 = l_Lean_mkOptionalNode___closed__2; -x_533 = lean_array_push(x_532, x_531); -x_534 = l_Lean_LocalContext_mkLambda(x_506, x_533, x_530); -lean_dec(x_530); -lean_dec(x_533); -lean_ctor_set(x_528, 0, x_534); -return x_528; -} -else -{ -lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; -x_535 = lean_ctor_get(x_528, 0); -x_536 = lean_ctor_get(x_528, 1); -lean_inc(x_536); -lean_inc(x_535); -lean_dec(x_528); -x_537 = l_Lean_mkFVar(x_500); -x_538 = l_Lean_mkOptionalNode___closed__2; -x_539 = lean_array_push(x_538, x_537); -x_540 = l_Lean_LocalContext_mkLambda(x_506, x_539, x_535); -lean_dec(x_535); -lean_dec(x_539); -x_541 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_541, 0, x_540); -lean_ctor_set(x_541, 1, x_536); -return x_541; -} -} -else -{ -uint8_t x_542; -lean_dec(x_506); +x_503 = l_Lean_mkFVar(x_416); +x_504 = l_Lean_mkOptionalNode___closed__2; +x_505 = lean_array_push(x_504, x_503); +x_506 = l_Lean_LocalContext_mkLambda(x_422, x_505, x_500); lean_dec(x_500); -x_542 = !lean_is_exclusive(x_528); -if (x_542 == 0) -{ -return x_528; +lean_dec(x_505); +if (lean_is_scalar(x_502)) { + x_507 = lean_alloc_ctor(0, 2, 0); +} else { + x_507 = x_502; +} +lean_ctor_set(x_507, 0, x_506); +lean_ctor_set(x_507, 1, x_501); +return x_507; } else { -lean_object* x_543; lean_object* x_544; lean_object* x_545; -x_543 = lean_ctor_get(x_528, 0); -x_544 = lean_ctor_get(x_528, 1); -lean_inc(x_544); -lean_inc(x_543); -lean_dec(x_528); -x_545 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_545, 0, x_543); -lean_ctor_set(x_545, 1, x_544); -return x_545; +lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; +lean_dec(x_422); +lean_dec(x_416); +x_508 = lean_ctor_get(x_499, 0); +lean_inc(x_508); +x_509 = lean_ctor_get(x_499, 1); +lean_inc(x_509); +if (lean_is_exclusive(x_499)) { + lean_ctor_release(x_499, 0); + lean_ctor_release(x_499, 1); + x_510 = x_499; +} else { + lean_dec_ref(x_499); + x_510 = lean_box(0); +} +if (lean_is_scalar(x_510)) { + x_511 = lean_alloc_ctor(1, 2, 0); +} else { + x_511 = x_510; +} +lean_ctor_set(x_511, 0, x_508); +lean_ctor_set(x_511, 1, x_509); +return x_511; +} } } } else { -lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; -x_546 = lean_ctor_get(x_525, 0); -x_547 = lean_ctor_get(x_525, 2); -x_548 = lean_ctor_get(x_525, 3); -x_549 = lean_ctor_get(x_525, 4); -lean_inc(x_549); +lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; uint8_t x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; uint8_t x_536; +x_512 = l_Lean_Syntax_getIdAt(x_299, x_297); +lean_dec(x_299); +x_513 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_514 = lean_ctor_get(x_513, 0); +lean_inc(x_514); +x_515 = lean_ctor_get(x_513, 1); +lean_inc(x_515); +lean_dec(x_513); +x_516 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +x_517 = 0; +lean_inc_n(x_512, 2); +x_518 = lean_local_ctx_mk_local_decl(x_514, x_512, x_512, x_516, x_517); +x_519 = l_Array_eraseIdx___rarg(x_293, x_297); +x_520 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_515); +x_521 = lean_ctor_get(x_520, 1); +lean_inc(x_521); +lean_dec(x_520); +x_522 = l_Lean_Elab_Term_getMainModule___rarg(x_521); +x_523 = lean_ctor_get(x_522, 1); +lean_inc(x_523); +lean_dec(x_522); +x_524 = lean_name_mk_string(x_302, x_65); +x_525 = l_Lean_nullKind___closed__1; +x_526 = lean_name_mk_string(x_27, x_525); +x_527 = l_Array_empty___closed__1; +x_528 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_519, x_519, x_297, x_527); +lean_dec(x_519); +x_529 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_529, 0, x_526); +lean_ctor_set(x_529, 1, x_528); +x_530 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_531 = lean_array_push(x_530, x_529); +x_532 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_533 = lean_array_push(x_531, x_532); +x_534 = lean_array_push(x_533, x_295); +x_535 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_535, 0, x_524); +lean_ctor_set(x_535, 1, x_534); +x_536 = !lean_is_exclusive(x_2); +if (x_536 == 0) +{ +lean_object* x_537; uint8_t x_538; +x_537 = lean_ctor_get(x_2, 0); +x_538 = !lean_is_exclusive(x_537); +if (x_538 == 0) +{ +lean_object* x_539; lean_object* x_540; +x_539 = lean_ctor_get(x_537, 1); +lean_dec(x_539); +lean_inc(x_518); +lean_ctor_set(x_537, 1, x_518); +x_540 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_535, x_2, x_523); +if (lean_obj_tag(x_540) == 0) +{ +uint8_t x_541; +x_541 = !lean_is_exclusive(x_540); +if (x_541 == 0) +{ +lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; +x_542 = lean_ctor_get(x_540, 0); +x_543 = l_Lean_mkFVar(x_512); +x_544 = l_Lean_mkOptionalNode___closed__2; +x_545 = lean_array_push(x_544, x_543); +x_546 = l_Lean_LocalContext_mkLambda(x_518, x_545, x_542); +lean_dec(x_542); +lean_dec(x_545); +lean_ctor_set(x_540, 0, x_546); +return x_540; +} +else +{ +lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; +x_547 = lean_ctor_get(x_540, 0); +x_548 = lean_ctor_get(x_540, 1); lean_inc(x_548); lean_inc(x_547); -lean_inc(x_546); -lean_dec(x_525); -lean_inc(x_506); -x_550 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_550, 0, x_546); -lean_ctor_set(x_550, 1, x_506); -lean_ctor_set(x_550, 2, x_547); -lean_ctor_set(x_550, 3, x_548); -lean_ctor_set(x_550, 4, x_549); -lean_ctor_set(x_2, 0, x_550); -x_551 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_523, x_2, x_511); -if (lean_obj_tag(x_551) == 0) -{ -lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; -x_552 = lean_ctor_get(x_551, 0); -lean_inc(x_552); -x_553 = lean_ctor_get(x_551, 1); -lean_inc(x_553); -if (lean_is_exclusive(x_551)) { - lean_ctor_release(x_551, 0); - lean_ctor_release(x_551, 1); - x_554 = x_551; -} else { - lean_dec_ref(x_551); - x_554 = lean_box(0); +lean_dec(x_540); +x_549 = l_Lean_mkFVar(x_512); +x_550 = l_Lean_mkOptionalNode___closed__2; +x_551 = lean_array_push(x_550, x_549); +x_552 = l_Lean_LocalContext_mkLambda(x_518, x_551, x_547); +lean_dec(x_547); +lean_dec(x_551); +x_553 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_553, 0, x_552); +lean_ctor_set(x_553, 1, x_548); +return x_553; } -x_555 = l_Lean_mkFVar(x_500); -x_556 = l_Lean_mkOptionalNode___closed__2; -x_557 = lean_array_push(x_556, x_555); -x_558 = l_Lean_LocalContext_mkLambda(x_506, x_557, x_552); -lean_dec(x_552); -lean_dec(x_557); -if (lean_is_scalar(x_554)) { - x_559 = lean_alloc_ctor(0, 2, 0); -} else { - x_559 = x_554; -} -lean_ctor_set(x_559, 0, x_558); -lean_ctor_set(x_559, 1, x_553); -return x_559; } else { -lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; -lean_dec(x_506); -lean_dec(x_500); -x_560 = lean_ctor_get(x_551, 0); -lean_inc(x_560); -x_561 = lean_ctor_get(x_551, 1); +uint8_t x_554; +lean_dec(x_518); +lean_dec(x_512); +x_554 = !lean_is_exclusive(x_540); +if (x_554 == 0) +{ +return x_540; +} +else +{ +lean_object* x_555; lean_object* x_556; lean_object* x_557; +x_555 = lean_ctor_get(x_540, 0); +x_556 = lean_ctor_get(x_540, 1); +lean_inc(x_556); +lean_inc(x_555); +lean_dec(x_540); +x_557 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_557, 0, x_555); +lean_ctor_set(x_557, 1, x_556); +return x_557; +} +} +} +else +{ +lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; +x_558 = lean_ctor_get(x_537, 0); +x_559 = lean_ctor_get(x_537, 2); +x_560 = lean_ctor_get(x_537, 3); +x_561 = lean_ctor_get(x_537, 4); lean_inc(x_561); -if (lean_is_exclusive(x_551)) { - lean_ctor_release(x_551, 0); - lean_ctor_release(x_551, 1); - x_562 = x_551; -} else { - lean_dec_ref(x_551); - x_562 = lean_box(0); -} -if (lean_is_scalar(x_562)) { - x_563 = lean_alloc_ctor(1, 2, 0); -} else { - x_563 = x_562; -} -lean_ctor_set(x_563, 0, x_560); -lean_ctor_set(x_563, 1, x_561); -return x_563; -} -} -} -else +lean_inc(x_560); +lean_inc(x_559); +lean_inc(x_558); +lean_dec(x_537); +lean_inc(x_518); +x_562 = lean_alloc_ctor(0, 5, 0); +lean_ctor_set(x_562, 0, x_558); +lean_ctor_set(x_562, 1, x_518); +lean_ctor_set(x_562, 2, x_559); +lean_ctor_set(x_562, 3, x_560); +lean_ctor_set(x_562, 4, x_561); +lean_ctor_set(x_2, 0, x_562); +x_563 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_535, x_2, x_523); +if (lean_obj_tag(x_563) == 0) { -lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; uint8_t x_574; uint8_t x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; -x_564 = lean_ctor_get(x_2, 0); -x_565 = lean_ctor_get(x_2, 1); -x_566 = lean_ctor_get(x_2, 2); -x_567 = lean_ctor_get(x_2, 3); -x_568 = lean_ctor_get(x_2, 4); -x_569 = lean_ctor_get(x_2, 5); -x_570 = lean_ctor_get(x_2, 6); -x_571 = lean_ctor_get(x_2, 7); -x_572 = lean_ctor_get(x_2, 8); -x_573 = lean_ctor_get(x_2, 9); -x_574 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_575 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -lean_inc(x_573); -lean_inc(x_572); -lean_inc(x_571); -lean_inc(x_570); -lean_inc(x_569); -lean_inc(x_568); -lean_inc(x_567); -lean_inc(x_566); -lean_inc(x_565); +lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; +x_564 = lean_ctor_get(x_563, 0); lean_inc(x_564); -lean_dec(x_2); -x_576 = lean_ctor_get(x_564, 0); -lean_inc(x_576); -x_577 = lean_ctor_get(x_564, 2); -lean_inc(x_577); -x_578 = lean_ctor_get(x_564, 3); -lean_inc(x_578); -x_579 = lean_ctor_get(x_564, 4); -lean_inc(x_579); -if (lean_is_exclusive(x_564)) { - lean_ctor_release(x_564, 0); - lean_ctor_release(x_564, 1); - lean_ctor_release(x_564, 2); - lean_ctor_release(x_564, 3); - lean_ctor_release(x_564, 4); - x_580 = x_564; +x_565 = lean_ctor_get(x_563, 1); +lean_inc(x_565); +if (lean_is_exclusive(x_563)) { + lean_ctor_release(x_563, 0); + lean_ctor_release(x_563, 1); + x_566 = x_563; } else { - lean_dec_ref(x_564); - x_580 = lean_box(0); + lean_dec_ref(x_563); + x_566 = lean_box(0); } -lean_inc(x_506); -if (lean_is_scalar(x_580)) { - x_581 = lean_alloc_ctor(0, 5, 0); +x_567 = l_Lean_mkFVar(x_512); +x_568 = l_Lean_mkOptionalNode___closed__2; +x_569 = lean_array_push(x_568, x_567); +x_570 = l_Lean_LocalContext_mkLambda(x_518, x_569, x_564); +lean_dec(x_564); +lean_dec(x_569); +if (lean_is_scalar(x_566)) { + x_571 = lean_alloc_ctor(0, 2, 0); } else { - x_581 = x_580; + x_571 = x_566; } -lean_ctor_set(x_581, 0, x_576); -lean_ctor_set(x_581, 1, x_506); -lean_ctor_set(x_581, 2, x_577); -lean_ctor_set(x_581, 3, x_578); -lean_ctor_set(x_581, 4, x_579); -x_582 = lean_alloc_ctor(0, 10, 2); -lean_ctor_set(x_582, 0, x_581); -lean_ctor_set(x_582, 1, x_565); -lean_ctor_set(x_582, 2, x_566); -lean_ctor_set(x_582, 3, x_567); -lean_ctor_set(x_582, 4, x_568); -lean_ctor_set(x_582, 5, x_569); -lean_ctor_set(x_582, 6, x_570); -lean_ctor_set(x_582, 7, x_571); -lean_ctor_set(x_582, 8, x_572); -lean_ctor_set(x_582, 9, x_573); -lean_ctor_set_uint8(x_582, sizeof(void*)*10, x_574); -lean_ctor_set_uint8(x_582, sizeof(void*)*10 + 1, x_575); -x_583 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_523, x_582, x_511); -if (lean_obj_tag(x_583) == 0) +lean_ctor_set(x_571, 0, x_570); +lean_ctor_set(x_571, 1, x_565); +return x_571; +} +else { -lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; -x_584 = lean_ctor_get(x_583, 0); -lean_inc(x_584); -x_585 = lean_ctor_get(x_583, 1); +lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; +lean_dec(x_518); +lean_dec(x_512); +x_572 = lean_ctor_get(x_563, 0); +lean_inc(x_572); +x_573 = lean_ctor_get(x_563, 1); +lean_inc(x_573); +if (lean_is_exclusive(x_563)) { + lean_ctor_release(x_563, 0); + lean_ctor_release(x_563, 1); + x_574 = x_563; +} else { + lean_dec_ref(x_563); + x_574 = lean_box(0); +} +if (lean_is_scalar(x_574)) { + x_575 = lean_alloc_ctor(1, 2, 0); +} else { + x_575 = x_574; +} +lean_ctor_set(x_575, 0, x_572); +lean_ctor_set(x_575, 1, x_573); +return x_575; +} +} +} +else +{ +lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; uint8_t x_586; uint8_t x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; +x_576 = lean_ctor_get(x_2, 0); +x_577 = lean_ctor_get(x_2, 1); +x_578 = lean_ctor_get(x_2, 2); +x_579 = lean_ctor_get(x_2, 3); +x_580 = lean_ctor_get(x_2, 4); +x_581 = lean_ctor_get(x_2, 5); +x_582 = lean_ctor_get(x_2, 6); +x_583 = lean_ctor_get(x_2, 7); +x_584 = lean_ctor_get(x_2, 8); +x_585 = lean_ctor_get(x_2, 9); +x_586 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_587 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); lean_inc(x_585); -if (lean_is_exclusive(x_583)) { - lean_ctor_release(x_583, 0); - lean_ctor_release(x_583, 1); - x_586 = x_583; +lean_inc(x_584); +lean_inc(x_583); +lean_inc(x_582); +lean_inc(x_581); +lean_inc(x_580); +lean_inc(x_579); +lean_inc(x_578); +lean_inc(x_577); +lean_inc(x_576); +lean_dec(x_2); +x_588 = lean_ctor_get(x_576, 0); +lean_inc(x_588); +x_589 = lean_ctor_get(x_576, 2); +lean_inc(x_589); +x_590 = lean_ctor_get(x_576, 3); +lean_inc(x_590); +x_591 = lean_ctor_get(x_576, 4); +lean_inc(x_591); +if (lean_is_exclusive(x_576)) { + lean_ctor_release(x_576, 0); + lean_ctor_release(x_576, 1); + lean_ctor_release(x_576, 2); + lean_ctor_release(x_576, 3); + lean_ctor_release(x_576, 4); + x_592 = x_576; } else { - lean_dec_ref(x_583); - x_586 = lean_box(0); + lean_dec_ref(x_576); + x_592 = lean_box(0); } -x_587 = l_Lean_mkFVar(x_500); -x_588 = l_Lean_mkOptionalNode___closed__2; -x_589 = lean_array_push(x_588, x_587); -x_590 = l_Lean_LocalContext_mkLambda(x_506, x_589, x_584); -lean_dec(x_584); -lean_dec(x_589); -if (lean_is_scalar(x_586)) { - x_591 = lean_alloc_ctor(0, 2, 0); +lean_inc(x_518); +if (lean_is_scalar(x_592)) { + x_593 = lean_alloc_ctor(0, 5, 0); } else { - x_591 = x_586; + x_593 = x_592; } -lean_ctor_set(x_591, 0, x_590); -lean_ctor_set(x_591, 1, x_585); -return x_591; +lean_ctor_set(x_593, 0, x_588); +lean_ctor_set(x_593, 1, x_518); +lean_ctor_set(x_593, 2, x_589); +lean_ctor_set(x_593, 3, x_590); +lean_ctor_set(x_593, 4, x_591); +x_594 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_594, 0, x_593); +lean_ctor_set(x_594, 1, x_577); +lean_ctor_set(x_594, 2, x_578); +lean_ctor_set(x_594, 3, x_579); +lean_ctor_set(x_594, 4, x_580); +lean_ctor_set(x_594, 5, x_581); +lean_ctor_set(x_594, 6, x_582); +lean_ctor_set(x_594, 7, x_583); +lean_ctor_set(x_594, 8, x_584); +lean_ctor_set(x_594, 9, x_585); +lean_ctor_set_uint8(x_594, sizeof(void*)*10, x_586); +lean_ctor_set_uint8(x_594, sizeof(void*)*10 + 1, x_587); +x_595 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_535, x_594, x_523); +if (lean_obj_tag(x_595) == 0) +{ +lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; +x_596 = lean_ctor_get(x_595, 0); +lean_inc(x_596); +x_597 = lean_ctor_get(x_595, 1); +lean_inc(x_597); +if (lean_is_exclusive(x_595)) { + lean_ctor_release(x_595, 0); + lean_ctor_release(x_595, 1); + x_598 = x_595; +} else { + lean_dec_ref(x_595); + x_598 = lean_box(0); +} +x_599 = l_Lean_mkFVar(x_512); +x_600 = l_Lean_mkOptionalNode___closed__2; +x_601 = lean_array_push(x_600, x_599); +x_602 = l_Lean_LocalContext_mkLambda(x_518, x_601, x_596); +lean_dec(x_596); +lean_dec(x_601); +if (lean_is_scalar(x_598)) { + x_603 = lean_alloc_ctor(0, 2, 0); +} else { + x_603 = x_598; +} +lean_ctor_set(x_603, 0, x_602); +lean_ctor_set(x_603, 1, x_597); +return x_603; } else { -lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; -lean_dec(x_506); -lean_dec(x_500); -x_592 = lean_ctor_get(x_583, 0); -lean_inc(x_592); -x_593 = lean_ctor_get(x_583, 1); -lean_inc(x_593); -if (lean_is_exclusive(x_583)) { - lean_ctor_release(x_583, 0); - lean_ctor_release(x_583, 1); - x_594 = x_583; +lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; +lean_dec(x_518); +lean_dec(x_512); +x_604 = lean_ctor_get(x_595, 0); +lean_inc(x_604); +x_605 = lean_ctor_get(x_595, 1); +lean_inc(x_605); +if (lean_is_exclusive(x_595)) { + lean_ctor_release(x_595, 0); + lean_ctor_release(x_595, 1); + x_606 = x_595; } else { - lean_dec_ref(x_583); - x_594 = lean_box(0); + lean_dec_ref(x_595); + x_606 = lean_box(0); } -if (lean_is_scalar(x_594)) { - x_595 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_606)) { + x_607 = lean_alloc_ctor(1, 2, 0); } else { - x_595 = x_594; + x_607 = x_606; } -lean_ctor_set(x_595, 0, x_592); -lean_ctor_set(x_595, 1, x_593); -return x_595; +lean_ctor_set(x_607, 0, x_604); +lean_ctor_set(x_607, 1, x_605); +return x_607; } } } } else { -lean_dec(x_281); -x_1 = x_283; +lean_dec(x_293); +x_1 = x_295; goto _start; } } } else { -lean_object* x_597; lean_object* x_598; lean_object* x_599; +lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_free_object(x_5); lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); -x_597 = l_Lean_Syntax_inhabited; -x_598 = lean_unsigned_to_nat(0u); -x_599 = lean_array_get(x_597, x_4, x_598); +x_609 = l_Lean_Syntax_inhabited; +x_610 = lean_unsigned_to_nat(0u); +x_611 = lean_array_get(x_609, x_4, x_610); lean_dec(x_4); -if (lean_obj_tag(x_599) == 3) +if (lean_obj_tag(x_611) == 3) { -lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; -x_600 = lean_ctor_get(x_599, 2); -lean_inc(x_600); -x_601 = lean_ctor_get(x_599, 3); -lean_inc(x_601); -lean_dec(x_599); -x_602 = lean_box(0); +lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; +x_612 = lean_ctor_get(x_611, 2); +lean_inc(x_612); +x_613 = lean_ctor_get(x_611, 3); +lean_inc(x_613); +lean_dec(x_611); +x_614 = lean_box(0); lean_inc(x_2); -x_603 = l_Lean_Elab_Term_resolveName(x_1, x_600, x_601, x_602, x_2, x_3); +x_615 = l_Lean_Elab_Term_resolveName(x_1, x_612, x_613, x_614, x_2, x_3); lean_dec(x_1); -if (lean_obj_tag(x_603) == 0) +if (lean_obj_tag(x_615) == 0) { -lean_object* x_604; -x_604 = lean_ctor_get(x_603, 0); -lean_inc(x_604); -if (lean_obj_tag(x_604) == 0) +lean_object* x_616; +x_616 = lean_ctor_get(x_615, 0); +lean_inc(x_616); +if (lean_obj_tag(x_616) == 0) { -lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; -x_605 = lean_ctor_get(x_603, 1); -lean_inc(x_605); -lean_dec(x_603); -x_606 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; -x_607 = l_unreachable_x21___rarg(x_606); -x_608 = lean_apply_2(x_607, x_2, x_605); -return x_608; +lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; +x_617 = lean_ctor_get(x_615, 1); +lean_inc(x_617); +lean_dec(x_615); +x_618 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_619 = l_unreachable_x21___rarg(x_618); +x_620 = lean_apply_2(x_619, x_2, x_617); +return x_620; } else { -lean_object* x_609; lean_object* x_610; +lean_object* x_621; lean_object* x_622; lean_dec(x_2); -x_609 = lean_ctor_get(x_604, 0); -lean_inc(x_609); -lean_dec(x_604); -x_610 = lean_ctor_get(x_609, 0); -lean_inc(x_610); -switch (lean_obj_tag(x_610)) { +x_621 = lean_ctor_get(x_616, 0); +lean_inc(x_621); +lean_dec(x_616); +x_622 = lean_ctor_get(x_621, 0); +lean_inc(x_622); +switch (lean_obj_tag(x_622)) { case 0: { -uint8_t x_611; -x_611 = !lean_is_exclusive(x_603); -if (x_611 == 0) +uint8_t x_623; +x_623 = !lean_is_exclusive(x_615); +if (x_623 == 0) { -lean_object* x_612; lean_object* x_613; lean_object* x_614; -x_612 = lean_ctor_get(x_603, 0); -lean_dec(x_612); -x_613 = lean_ctor_get(x_609, 1); -lean_inc(x_613); -lean_dec(x_609); -x_614 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_610, x_613); -lean_ctor_set(x_603, 0, x_614); -return x_603; +lean_object* x_624; lean_object* x_625; lean_object* x_626; +x_624 = lean_ctor_get(x_615, 0); +lean_dec(x_624); +x_625 = lean_ctor_get(x_621, 1); +lean_inc(x_625); +lean_dec(x_621); +x_626 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_622, x_625); +lean_ctor_set(x_615, 0, x_626); +return x_615; } else { -lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; -x_615 = lean_ctor_get(x_603, 1); -lean_inc(x_615); -lean_dec(x_603); -x_616 = lean_ctor_get(x_609, 1); -lean_inc(x_616); -lean_dec(x_609); -x_617 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_610, x_616); -x_618 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_618, 0, x_617); -lean_ctor_set(x_618, 1, x_615); -return x_618; +lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; +x_627 = lean_ctor_get(x_615, 1); +lean_inc(x_627); +lean_dec(x_615); +x_628 = lean_ctor_get(x_621, 1); +lean_inc(x_628); +lean_dec(x_621); +x_629 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_622, x_628); +x_630 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_630, 0, x_629); +lean_ctor_set(x_630, 1, x_627); +return x_630; } } case 1: { -uint8_t x_619; -x_619 = !lean_is_exclusive(x_603); -if (x_619 == 0) +uint8_t x_631; +x_631 = !lean_is_exclusive(x_615); +if (x_631 == 0) { -lean_object* x_620; lean_object* x_621; lean_object* x_622; -x_620 = lean_ctor_get(x_603, 0); -lean_dec(x_620); -x_621 = lean_ctor_get(x_609, 1); -lean_inc(x_621); -lean_dec(x_609); -x_622 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_610, x_621); -lean_ctor_set(x_603, 0, x_622); -return x_603; +lean_object* x_632; lean_object* x_633; lean_object* x_634; +x_632 = lean_ctor_get(x_615, 0); +lean_dec(x_632); +x_633 = lean_ctor_get(x_621, 1); +lean_inc(x_633); +lean_dec(x_621); +x_634 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_622, x_633); +lean_ctor_set(x_615, 0, x_634); +return x_615; } else { -lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; -x_623 = lean_ctor_get(x_603, 1); -lean_inc(x_623); -lean_dec(x_603); -x_624 = lean_ctor_get(x_609, 1); -lean_inc(x_624); -lean_dec(x_609); -x_625 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_610, x_624); -x_626 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_626, 0, x_625); -lean_ctor_set(x_626, 1, x_623); -return x_626; +lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; +x_635 = lean_ctor_get(x_615, 1); +lean_inc(x_635); +lean_dec(x_615); +x_636 = lean_ctor_get(x_621, 1); +lean_inc(x_636); +lean_dec(x_621); +x_637 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_622, x_636); +x_638 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_638, 0, x_637); +lean_ctor_set(x_638, 1, x_635); +return x_638; } } case 2: { -uint8_t x_627; -x_627 = !lean_is_exclusive(x_603); -if (x_627 == 0) +uint8_t x_639; +x_639 = !lean_is_exclusive(x_615); +if (x_639 == 0) { -lean_object* x_628; lean_object* x_629; lean_object* x_630; -x_628 = lean_ctor_get(x_603, 0); -lean_dec(x_628); -x_629 = lean_ctor_get(x_609, 1); -lean_inc(x_629); -lean_dec(x_609); -x_630 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_610, x_629); -lean_ctor_set(x_603, 0, x_630); -return x_603; +lean_object* x_640; lean_object* x_641; lean_object* x_642; +x_640 = lean_ctor_get(x_615, 0); +lean_dec(x_640); +x_641 = lean_ctor_get(x_621, 1); +lean_inc(x_641); +lean_dec(x_621); +x_642 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_622, x_641); +lean_ctor_set(x_615, 0, x_642); +return x_615; } else { -lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; -x_631 = lean_ctor_get(x_603, 1); -lean_inc(x_631); -lean_dec(x_603); -x_632 = lean_ctor_get(x_609, 1); -lean_inc(x_632); -lean_dec(x_609); -x_633 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_610, x_632); -x_634 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_634, 0, x_633); -lean_ctor_set(x_634, 1, x_631); -return x_634; +lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; +x_643 = lean_ctor_get(x_615, 1); +lean_inc(x_643); +lean_dec(x_615); +x_644 = lean_ctor_get(x_621, 1); +lean_inc(x_644); +lean_dec(x_621); +x_645 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_622, x_644); +x_646 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_646, 0, x_645); +lean_ctor_set(x_646, 1, x_643); +return x_646; } } case 3: { -uint8_t x_635; -x_635 = !lean_is_exclusive(x_603); -if (x_635 == 0) +uint8_t x_647; +x_647 = !lean_is_exclusive(x_615); +if (x_647 == 0) { -lean_object* x_636; lean_object* x_637; lean_object* x_638; -x_636 = lean_ctor_get(x_603, 0); -lean_dec(x_636); -x_637 = lean_ctor_get(x_609, 1); -lean_inc(x_637); -lean_dec(x_609); -x_638 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_610, x_637); -lean_ctor_set(x_603, 0, x_638); -return x_603; +lean_object* x_648; lean_object* x_649; lean_object* x_650; +x_648 = lean_ctor_get(x_615, 0); +lean_dec(x_648); +x_649 = lean_ctor_get(x_621, 1); +lean_inc(x_649); +lean_dec(x_621); +x_650 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_622, x_649); +lean_ctor_set(x_615, 0, x_650); +return x_615; } else { -lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; -x_639 = lean_ctor_get(x_603, 1); -lean_inc(x_639); -lean_dec(x_603); -x_640 = lean_ctor_get(x_609, 1); -lean_inc(x_640); -lean_dec(x_609); -x_641 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_610, x_640); -x_642 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_642, 0, x_641); -lean_ctor_set(x_642, 1, x_639); -return x_642; +lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; +x_651 = lean_ctor_get(x_615, 1); +lean_inc(x_651); +lean_dec(x_615); +x_652 = lean_ctor_get(x_621, 1); +lean_inc(x_652); +lean_dec(x_621); +x_653 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_622, x_652); +x_654 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_654, 0, x_653); +lean_ctor_set(x_654, 1, x_651); +return x_654; } } case 4: { -uint8_t x_643; -x_643 = !lean_is_exclusive(x_603); -if (x_643 == 0) +uint8_t x_655; +x_655 = !lean_is_exclusive(x_615); +if (x_655 == 0) { -lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; -x_644 = lean_ctor_get(x_603, 0); -lean_dec(x_644); -x_645 = lean_ctor_get(x_609, 1); -lean_inc(x_645); -lean_dec(x_609); -x_646 = lean_ctor_get(x_610, 0); -lean_inc(x_646); -lean_dec(x_610); -x_647 = l_Lean_mkConst(x_646, x_602); -x_648 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_647, x_645); -lean_ctor_set(x_603, 0, x_648); -return x_603; +lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; +x_656 = lean_ctor_get(x_615, 0); +lean_dec(x_656); +x_657 = lean_ctor_get(x_621, 1); +lean_inc(x_657); +lean_dec(x_621); +x_658 = lean_ctor_get(x_622, 0); +lean_inc(x_658); +lean_dec(x_622); +x_659 = l_Lean_mkConst(x_658, x_614); +x_660 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_659, x_657); +lean_ctor_set(x_615, 0, x_660); +return x_615; } else { -lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; -x_649 = lean_ctor_get(x_603, 1); -lean_inc(x_649); -lean_dec(x_603); -x_650 = lean_ctor_get(x_609, 1); -lean_inc(x_650); -lean_dec(x_609); -x_651 = lean_ctor_get(x_610, 0); -lean_inc(x_651); -lean_dec(x_610); -x_652 = l_Lean_mkConst(x_651, x_602); -x_653 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_652, x_650); -x_654 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_654, 0, x_653); -lean_ctor_set(x_654, 1, x_649); -return x_654; +lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; +x_661 = lean_ctor_get(x_615, 1); +lean_inc(x_661); +lean_dec(x_615); +x_662 = lean_ctor_get(x_621, 1); +lean_inc(x_662); +lean_dec(x_621); +x_663 = lean_ctor_get(x_622, 0); +lean_inc(x_663); +lean_dec(x_622); +x_664 = l_Lean_mkConst(x_663, x_614); +x_665 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_664, x_662); +x_666 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_666, 0, x_665); +lean_ctor_set(x_666, 1, x_661); +return x_666; } } case 5: { -uint8_t x_655; -x_655 = !lean_is_exclusive(x_603); -if (x_655 == 0) +uint8_t x_667; +x_667 = !lean_is_exclusive(x_615); +if (x_667 == 0) { -lean_object* x_656; lean_object* x_657; lean_object* x_658; -x_656 = lean_ctor_get(x_603, 0); -lean_dec(x_656); -x_657 = lean_ctor_get(x_609, 1); -lean_inc(x_657); -lean_dec(x_609); -x_658 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_610, x_657); -lean_ctor_set(x_603, 0, x_658); -return x_603; +lean_object* x_668; lean_object* x_669; lean_object* x_670; +x_668 = lean_ctor_get(x_615, 0); +lean_dec(x_668); +x_669 = lean_ctor_get(x_621, 1); +lean_inc(x_669); +lean_dec(x_621); +x_670 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_622, x_669); +lean_ctor_set(x_615, 0, x_670); +return x_615; } else { -lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; -x_659 = lean_ctor_get(x_603, 1); -lean_inc(x_659); -lean_dec(x_603); -x_660 = lean_ctor_get(x_609, 1); -lean_inc(x_660); -lean_dec(x_609); -x_661 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_610, x_660); -x_662 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_662, 0, x_661); -lean_ctor_set(x_662, 1, x_659); -return x_662; +lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; +x_671 = lean_ctor_get(x_615, 1); +lean_inc(x_671); +lean_dec(x_615); +x_672 = lean_ctor_get(x_621, 1); +lean_inc(x_672); +lean_dec(x_621); +x_673 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_622, x_672); +x_674 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_674, 0, x_673); +lean_ctor_set(x_674, 1, x_671); +return x_674; } } case 6: { -uint8_t x_663; -x_663 = !lean_is_exclusive(x_603); -if (x_663 == 0) +uint8_t x_675; +x_675 = !lean_is_exclusive(x_615); +if (x_675 == 0) { -lean_object* x_664; lean_object* x_665; lean_object* x_666; -x_664 = lean_ctor_get(x_603, 0); -lean_dec(x_664); -x_665 = lean_ctor_get(x_609, 1); -lean_inc(x_665); -lean_dec(x_609); -x_666 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_610, x_665); -lean_ctor_set(x_603, 0, x_666); -return x_603; +lean_object* x_676; lean_object* x_677; lean_object* x_678; +x_676 = lean_ctor_get(x_615, 0); +lean_dec(x_676); +x_677 = lean_ctor_get(x_621, 1); +lean_inc(x_677); +lean_dec(x_621); +x_678 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_622, x_677); +lean_ctor_set(x_615, 0, x_678); +return x_615; } else { -lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; -x_667 = lean_ctor_get(x_603, 1); -lean_inc(x_667); -lean_dec(x_603); -x_668 = lean_ctor_get(x_609, 1); -lean_inc(x_668); -lean_dec(x_609); -x_669 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_610, x_668); -x_670 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_670, 0, x_669); -lean_ctor_set(x_670, 1, x_667); -return x_670; +lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; +x_679 = lean_ctor_get(x_615, 1); +lean_inc(x_679); +lean_dec(x_615); +x_680 = lean_ctor_get(x_621, 1); +lean_inc(x_680); +lean_dec(x_621); +x_681 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_622, x_680); +x_682 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_682, 0, x_681); +lean_ctor_set(x_682, 1, x_679); +return x_682; } } case 7: { -uint8_t x_671; -x_671 = !lean_is_exclusive(x_603); -if (x_671 == 0) +uint8_t x_683; +x_683 = !lean_is_exclusive(x_615); +if (x_683 == 0) { -lean_object* x_672; lean_object* x_673; lean_object* x_674; -x_672 = lean_ctor_get(x_603, 0); -lean_dec(x_672); -x_673 = lean_ctor_get(x_609, 1); -lean_inc(x_673); -lean_dec(x_609); -x_674 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_610, x_673); -lean_ctor_set(x_603, 0, x_674); -return x_603; +lean_object* x_684; lean_object* x_685; lean_object* x_686; +x_684 = lean_ctor_get(x_615, 0); +lean_dec(x_684); +x_685 = lean_ctor_get(x_621, 1); +lean_inc(x_685); +lean_dec(x_621); +x_686 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_622, x_685); +lean_ctor_set(x_615, 0, x_686); +return x_615; } else { -lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; -x_675 = lean_ctor_get(x_603, 1); -lean_inc(x_675); -lean_dec(x_603); -x_676 = lean_ctor_get(x_609, 1); -lean_inc(x_676); -lean_dec(x_609); -x_677 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_610, x_676); -x_678 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_678, 0, x_677); -lean_ctor_set(x_678, 1, x_675); -return x_678; +lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; +x_687 = lean_ctor_get(x_615, 1); +lean_inc(x_687); +lean_dec(x_615); +x_688 = lean_ctor_get(x_621, 1); +lean_inc(x_688); +lean_dec(x_621); +x_689 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_622, x_688); +x_690 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_690, 0, x_689); +lean_ctor_set(x_690, 1, x_687); +return x_690; } } case 8: { -uint8_t x_679; -x_679 = !lean_is_exclusive(x_603); -if (x_679 == 0) +uint8_t x_691; +x_691 = !lean_is_exclusive(x_615); +if (x_691 == 0) { -lean_object* x_680; lean_object* x_681; lean_object* x_682; -x_680 = lean_ctor_get(x_603, 0); -lean_dec(x_680); -x_681 = lean_ctor_get(x_609, 1); -lean_inc(x_681); -lean_dec(x_609); -x_682 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_610, x_681); -lean_ctor_set(x_603, 0, x_682); -return x_603; +lean_object* x_692; lean_object* x_693; lean_object* x_694; +x_692 = lean_ctor_get(x_615, 0); +lean_dec(x_692); +x_693 = lean_ctor_get(x_621, 1); +lean_inc(x_693); +lean_dec(x_621); +x_694 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_622, x_693); +lean_ctor_set(x_615, 0, x_694); +return x_615; } else { -lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; -x_683 = lean_ctor_get(x_603, 1); -lean_inc(x_683); -lean_dec(x_603); -x_684 = lean_ctor_get(x_609, 1); -lean_inc(x_684); -lean_dec(x_609); -x_685 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_610, x_684); -x_686 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_686, 0, x_685); -lean_ctor_set(x_686, 1, x_683); -return x_686; +lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; +x_695 = lean_ctor_get(x_615, 1); +lean_inc(x_695); +lean_dec(x_615); +x_696 = lean_ctor_get(x_621, 1); +lean_inc(x_696); +lean_dec(x_621); +x_697 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_622, x_696); +x_698 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_698, 0, x_697); +lean_ctor_set(x_698, 1, x_695); +return x_698; } } case 9: { -uint8_t x_687; -x_687 = !lean_is_exclusive(x_603); -if (x_687 == 0) +uint8_t x_699; +x_699 = !lean_is_exclusive(x_615); +if (x_699 == 0) { -lean_object* x_688; lean_object* x_689; lean_object* x_690; -x_688 = lean_ctor_get(x_603, 0); -lean_dec(x_688); -x_689 = lean_ctor_get(x_609, 1); -lean_inc(x_689); -lean_dec(x_609); -x_690 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_610, x_689); -lean_ctor_set(x_603, 0, x_690); -return x_603; +lean_object* x_700; lean_object* x_701; lean_object* x_702; +x_700 = lean_ctor_get(x_615, 0); +lean_dec(x_700); +x_701 = lean_ctor_get(x_621, 1); +lean_inc(x_701); +lean_dec(x_621); +x_702 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_622, x_701); +lean_ctor_set(x_615, 0, x_702); +return x_615; } else { -lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; -x_691 = lean_ctor_get(x_603, 1); -lean_inc(x_691); -lean_dec(x_603); -x_692 = lean_ctor_get(x_609, 1); -lean_inc(x_692); -lean_dec(x_609); -x_693 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_610, x_692); -x_694 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_694, 0, x_693); -lean_ctor_set(x_694, 1, x_691); -return x_694; +lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; +x_703 = lean_ctor_get(x_615, 1); +lean_inc(x_703); +lean_dec(x_615); +x_704 = lean_ctor_get(x_621, 1); +lean_inc(x_704); +lean_dec(x_621); +x_705 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_622, x_704); +x_706 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_706, 0, x_705); +lean_ctor_set(x_706, 1, x_703); +return x_706; } } case 10: { -uint8_t x_695; -x_695 = !lean_is_exclusive(x_603); -if (x_695 == 0) +uint8_t x_707; +x_707 = !lean_is_exclusive(x_615); +if (x_707 == 0) { -lean_object* x_696; lean_object* x_697; lean_object* x_698; -x_696 = lean_ctor_get(x_603, 0); -lean_dec(x_696); -x_697 = lean_ctor_get(x_609, 1); -lean_inc(x_697); -lean_dec(x_609); -x_698 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_610, x_697); -lean_ctor_set(x_603, 0, x_698); -return x_603; +lean_object* x_708; lean_object* x_709; lean_object* x_710; +x_708 = lean_ctor_get(x_615, 0); +lean_dec(x_708); +x_709 = lean_ctor_get(x_621, 1); +lean_inc(x_709); +lean_dec(x_621); +x_710 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_622, x_709); +lean_ctor_set(x_615, 0, x_710); +return x_615; } else { -lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; -x_699 = lean_ctor_get(x_603, 1); -lean_inc(x_699); -lean_dec(x_603); -x_700 = lean_ctor_get(x_609, 1); -lean_inc(x_700); -lean_dec(x_609); -x_701 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_610, x_700); -x_702 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_702, 0, x_701); -lean_ctor_set(x_702, 1, x_699); -return x_702; +lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; +x_711 = lean_ctor_get(x_615, 1); +lean_inc(x_711); +lean_dec(x_615); +x_712 = lean_ctor_get(x_621, 1); +lean_inc(x_712); +lean_dec(x_621); +x_713 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_622, x_712); +x_714 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_714, 0, x_713); +lean_ctor_set(x_714, 1, x_711); +return x_714; } } case 11: { -uint8_t x_703; -x_703 = !lean_is_exclusive(x_603); -if (x_703 == 0) +uint8_t x_715; +x_715 = !lean_is_exclusive(x_615); +if (x_715 == 0) { -lean_object* x_704; lean_object* x_705; lean_object* x_706; -x_704 = lean_ctor_get(x_603, 0); -lean_dec(x_704); -x_705 = lean_ctor_get(x_609, 1); -lean_inc(x_705); -lean_dec(x_609); -x_706 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_610, x_705); -lean_ctor_set(x_603, 0, x_706); -return x_603; +lean_object* x_716; lean_object* x_717; lean_object* x_718; +x_716 = lean_ctor_get(x_615, 0); +lean_dec(x_716); +x_717 = lean_ctor_get(x_621, 1); +lean_inc(x_717); +lean_dec(x_621); +x_718 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_622, x_717); +lean_ctor_set(x_615, 0, x_718); +return x_615; } else { -lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; -x_707 = lean_ctor_get(x_603, 1); -lean_inc(x_707); -lean_dec(x_603); -x_708 = lean_ctor_get(x_609, 1); -lean_inc(x_708); -lean_dec(x_609); -x_709 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_610, x_708); -x_710 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_710, 0, x_709); -lean_ctor_set(x_710, 1, x_707); -return x_710; +lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; +x_719 = lean_ctor_get(x_615, 1); +lean_inc(x_719); +lean_dec(x_615); +x_720 = lean_ctor_get(x_621, 1); +lean_inc(x_720); +lean_dec(x_621); +x_721 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_622, x_720); +x_722 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_722, 0, x_721); +lean_ctor_set(x_722, 1, x_719); +return x_722; } } default: { -uint8_t x_711; -x_711 = !lean_is_exclusive(x_603); -if (x_711 == 0) +uint8_t x_723; +x_723 = !lean_is_exclusive(x_615); +if (x_723 == 0) { -lean_object* x_712; lean_object* x_713; lean_object* x_714; -x_712 = lean_ctor_get(x_603, 0); -lean_dec(x_712); -x_713 = lean_ctor_get(x_609, 1); -lean_inc(x_713); -lean_dec(x_609); -x_714 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_610, x_713); -lean_ctor_set(x_603, 0, x_714); -return x_603; +lean_object* x_724; lean_object* x_725; lean_object* x_726; +x_724 = lean_ctor_get(x_615, 0); +lean_dec(x_724); +x_725 = lean_ctor_get(x_621, 1); +lean_inc(x_725); +lean_dec(x_621); +x_726 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_622, x_725); +lean_ctor_set(x_615, 0, x_726); +return x_615; } else { -lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; -x_715 = lean_ctor_get(x_603, 1); -lean_inc(x_715); -lean_dec(x_603); -x_716 = lean_ctor_get(x_609, 1); -lean_inc(x_716); -lean_dec(x_609); -x_717 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_610, x_716); -x_718 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_718, 0, x_717); -lean_ctor_set(x_718, 1, x_715); -return x_718; +lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; +x_727 = lean_ctor_get(x_615, 1); +lean_inc(x_727); +lean_dec(x_615); +x_728 = lean_ctor_get(x_621, 1); +lean_inc(x_728); +lean_dec(x_621); +x_729 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_622, x_728); +x_730 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_730, 0, x_729); +lean_ctor_set(x_730, 1, x_727); +return x_730; } } } @@ -17219,37 +17345,37 @@ return x_718; } else { -uint8_t x_719; +uint8_t x_731; lean_dec(x_2); -x_719 = !lean_is_exclusive(x_603); -if (x_719 == 0) +x_731 = !lean_is_exclusive(x_615); +if (x_731 == 0) { -return x_603; +return x_615; } else { -lean_object* x_720; lean_object* x_721; lean_object* x_722; -x_720 = lean_ctor_get(x_603, 0); -x_721 = lean_ctor_get(x_603, 1); -lean_inc(x_721); -lean_inc(x_720); -lean_dec(x_603); -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; +lean_object* x_732; lean_object* x_733; lean_object* x_734; +x_732 = lean_ctor_get(x_615, 0); +x_733 = lean_ctor_get(x_615, 1); +lean_inc(x_733); +lean_inc(x_732); +lean_dec(x_615); +x_734 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_734, 0, x_732); +lean_ctor_set(x_734, 1, x_733); +return x_734; } } } else { -lean_object* x_723; lean_object* x_724; lean_object* x_725; -lean_dec(x_599); +lean_object* x_735; lean_object* x_736; lean_object* x_737; +lean_dec(x_611); lean_dec(x_1); -x_723 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; -x_724 = l_unreachable_x21___rarg(x_723); -x_725 = lean_apply_2(x_724, x_2, x_3); -return x_725; +x_735 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_736 = l_unreachable_x21___rarg(x_735); +x_737 = lean_apply_2(x_736, x_2, x_3); +return x_737; } } } @@ -17257,1759 +17383,1791 @@ return x_725; } else { -lean_object* x_726; uint8_t x_727; +lean_object* x_738; uint8_t x_739; lean_dec(x_5); -x_726 = l_Lean_mkAppStx___closed__3; -x_727 = lean_string_dec_eq(x_34, x_726); -if (x_727 == 0) +x_738 = l_Lean_mkAppStx___closed__3; +x_739 = lean_string_dec_eq(x_34, x_738); +if (x_739 == 0) { -lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; lean_object* x_735; +lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_dec(x_4); lean_ctor_set(x_26, 1, x_39); -x_728 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_728, 0, x_15); -lean_ctor_set(x_728, 1, x_28); -lean_ctor_set_usize(x_728, 2, x_30); -x_729 = l_System_FilePath_dirName___closed__1; -x_730 = l_Lean_Name_toStringWithSep___main(x_729, x_728); -x_731 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_731, 0, x_730); -x_732 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_732, 0, x_731); -x_733 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_734 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_734, 0, x_733); -lean_ctor_set(x_734, 1, x_732); -x_735 = l_Lean_Elab_Term_throwError___rarg(x_1, x_734, x_2, x_3); -lean_dec(x_1); -return x_735; -} -else -{ -lean_object* x_736; uint8_t x_737; -lean_dec(x_34); -x_736 = l_Lean_mkAppStx___closed__5; -x_737 = lean_string_dec_eq(x_31, x_736); -if (x_737 == 0) -{ -lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; -lean_dec(x_4); -lean_ctor_set(x_26, 1, x_39); -lean_ctor_set(x_25, 1, x_726); -x_738 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_738, 0, x_15); -lean_ctor_set(x_738, 1, x_28); -lean_ctor_set_usize(x_738, 2, x_30); -x_739 = l_System_FilePath_dirName___closed__1; -x_740 = l_Lean_Name_toStringWithSep___main(x_739, x_738); -x_741 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_741, 0, x_740); -x_742 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_742, 0, x_741); -x_743 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_744 = lean_alloc_ctor(9, 2, 0); +x_740 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_740, 0, x_15); +lean_ctor_set(x_740, 1, x_28); +lean_ctor_set_usize(x_740, 2, x_30); +x_741 = l_System_FilePath_dirName___closed__1; +x_742 = l_Lean_Name_toStringWithSep___main(x_741, x_740); +x_743 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_743, 0, x_742); +x_744 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_744, 0, x_743); -lean_ctor_set(x_744, 1, x_742); -x_745 = l_Lean_Elab_Term_throwError___rarg(x_1, x_744, x_2, x_3); +x_745 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_746 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_746, 0, x_745); +lean_ctor_set(x_746, 1, x_744); +x_747 = l_Lean_Elab_Term_throwError___rarg(x_1, x_746, x_2, x_3); lean_dec(x_1); -return x_745; +return x_747; } else { -lean_object* x_746; uint8_t x_747; -lean_dec(x_31); -x_746 = l_Lean_mkTermIdFromIdent___closed__1; -x_747 = lean_string_dec_eq(x_28, x_746); -if (x_747 == 0) -{ lean_object* x_748; uint8_t x_749; -x_748 = l_Lean_Parser_Term_fun___elambda__1___closed__1; -x_749 = lean_string_dec_eq(x_28, x_748); +lean_dec(x_34); +x_748 = l_Lean_mkAppStx___closed__5; +x_749 = lean_string_dec_eq(x_31, x_748); if (x_749 == 0) { -lean_object* x_750; uint8_t x_751; -x_750 = l_Lean_Parser_Term_let___elambda__1___closed__1; -x_751 = lean_string_dec_eq(x_28, x_750); -if (x_751 == 0) -{ -lean_object* x_752; uint8_t x_753; -x_752 = l_Lean_mkAppStx___closed__7; -x_753 = lean_string_dec_eq(x_28, x_752); -if (x_753 == 0) -{ -lean_object* x_754; uint8_t x_755; -x_754 = l_Lean_Parser_Term_if___elambda__1___closed__1; -x_755 = lean_string_dec_eq(x_28, x_754); -if (x_755 == 0) -{ -lean_object* x_756; uint8_t x_757; -x_756 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__1; -x_757 = lean_string_dec_eq(x_28, x_756); -if (x_757 == 0) +lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; +lean_dec(x_4); +lean_ctor_set(x_26, 1, x_39); +lean_ctor_set(x_25, 1, x_738); +x_750 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_750, 0, x_15); +lean_ctor_set(x_750, 1, x_28); +lean_ctor_set_usize(x_750, 2, x_30); +x_751 = l_System_FilePath_dirName___closed__1; +x_752 = l_Lean_Name_toStringWithSep___main(x_751, x_750); +x_753 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_753, 0, x_752); +x_754 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_754, 0, x_753); +x_755 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_756 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_756, 0, x_755); +lean_ctor_set(x_756, 1, x_754); +x_757 = l_Lean_Elab_Term_throwError___rarg(x_1, x_756, x_2, x_3); +lean_dec(x_1); +return x_757; +} +else { lean_object* x_758; uint8_t x_759; -x_758 = l_Lean_Parser_Term_band___elambda__1___closed__1; +lean_dec(x_31); +x_758 = l_Lean_mkTermIdFromIdent___closed__1; x_759 = lean_string_dec_eq(x_28, x_758); if (x_759 == 0) { lean_object* x_760; uint8_t x_761; -x_760 = l_Lean_Parser_Term_beq___elambda__1___closed__1; +x_760 = l_Lean_Parser_Term_fun___elambda__1___closed__1; x_761 = lean_string_dec_eq(x_28, x_760); if (x_761 == 0) { lean_object* x_762; uint8_t x_763; -lean_dec(x_4); -x_762 = l_Lean_Parser_Term_str___elambda__1___closed__1; +x_762 = l_Lean_Parser_Term_let___elambda__1___closed__1; x_763 = lean_string_dec_eq(x_28, x_762); if (x_763 == 0) { lean_object* x_764; uint8_t x_765; -x_764 = l_Lean_Parser_Level_num___elambda__1___closed__1; +x_764 = l_Lean_mkAppStx___closed__7; x_765 = lean_string_dec_eq(x_28, x_764); if (x_765 == 0) { -lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; +lean_object* x_766; uint8_t x_767; +x_766 = l_Lean_Parser_Term_if___elambda__1___closed__1; +x_767 = lean_string_dec_eq(x_28, x_766); +if (x_767 == 0) +{ +lean_object* x_768; uint8_t x_769; +x_768 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__1; +x_769 = lean_string_dec_eq(x_28, x_768); +if (x_769 == 0) +{ +lean_object* x_770; uint8_t x_771; +x_770 = l_Lean_Parser_Term_band___elambda__1___closed__1; +x_771 = lean_string_dec_eq(x_28, x_770); +if (x_771 == 0) +{ +lean_object* x_772; uint8_t x_773; +x_772 = l_Lean_Parser_Term_beq___elambda__1___closed__1; +x_773 = lean_string_dec_eq(x_28, x_772); +if (x_773 == 0) +{ +lean_object* x_774; uint8_t x_775; +x_774 = l_Lean_Parser_Term_eq___elambda__1___closed__1; +x_775 = lean_string_dec_eq(x_28, x_774); +if (x_775 == 0) +{ +lean_object* x_776; uint8_t x_777; +lean_dec(x_4); +x_776 = l_Lean_Parser_Term_str___elambda__1___closed__1; +x_777 = lean_string_dec_eq(x_28, x_776); +if (x_777 == 0) +{ +lean_object* x_778; uint8_t x_779; +x_778 = l_Lean_Parser_Level_num___elambda__1___closed__1; +x_779 = lean_string_dec_eq(x_28, x_778); +if (x_779 == 0) +{ +lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_ctor_set(x_26, 1, x_39); -lean_ctor_set(x_25, 1, x_726); -lean_ctor_set(x_15, 1, x_736); -x_766 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_766, 0, x_15); -lean_ctor_set(x_766, 1, x_28); -lean_ctor_set_usize(x_766, 2, x_30); -x_767 = l_System_FilePath_dirName___closed__1; -x_768 = l_Lean_Name_toStringWithSep___main(x_767, x_766); -x_769 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_769, 0, x_768); -x_770 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_770, 0, x_769); -x_771 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_772 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_772, 0, x_771); -lean_ctor_set(x_772, 1, x_770); -x_773 = l_Lean_Elab_Term_throwError___rarg(x_1, x_772, x_2, x_3); +lean_ctor_set(x_25, 1, x_738); +lean_ctor_set(x_15, 1, x_748); +x_780 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_780, 0, x_15); +lean_ctor_set(x_780, 1, x_28); +lean_ctor_set_usize(x_780, 2, x_30); +x_781 = l_System_FilePath_dirName___closed__1; +x_782 = l_Lean_Name_toStringWithSep___main(x_781, x_780); +x_783 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_783, 0, x_782); +x_784 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_784, 0, x_783); +x_785 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_786 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_786, 0, x_785); +lean_ctor_set(x_786, 1, x_784); +x_787 = l_Lean_Elab_Term_throwError___rarg(x_1, x_786, x_2, x_3); lean_dec(x_1); -return x_773; -} -else -{ -lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; -lean_free_object(x_26); -lean_free_object(x_25); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_2); -x_774 = lean_unsigned_to_nat(0u); -x_775 = l_Lean_Syntax_getArg(x_1, x_774); -lean_dec(x_1); -x_776 = l_Lean_numLitKind; -x_777 = l_Lean_Syntax_isNatLitAux(x_776, x_775); -lean_dec(x_775); -if (lean_obj_tag(x_777) == 0) -{ -lean_object* x_778; lean_object* x_779; -x_778 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__5; -x_779 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_779, 0, x_778); -lean_ctor_set(x_779, 1, x_3); -return x_779; -} -else -{ -lean_object* x_780; lean_object* x_781; lean_object* x_782; -x_780 = lean_ctor_get(x_777, 0); -lean_inc(x_780); -lean_dec(x_777); -x_781 = l_Lean_mkNatLit(x_780); -x_782 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_782, 0, x_781); -lean_ctor_set(x_782, 1, x_3); -return x_782; -} -} -} -else -{ -lean_object* x_783; lean_object* x_784; lean_object* x_785; -lean_free_object(x_26); -lean_free_object(x_25); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_2); -x_783 = lean_unsigned_to_nat(0u); -x_784 = l_Lean_Syntax_getArg(x_1, x_783); -lean_dec(x_1); -x_785 = l_Lean_Syntax_isStrLit_x3f(x_784); -lean_dec(x_784); -if (lean_obj_tag(x_785) == 0) -{ -lean_object* x_786; lean_object* x_787; -x_786 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__6; -x_787 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_787, 0, x_786); -lean_ctor_set(x_787, 1, x_3); return x_787; } else { -lean_object* x_788; lean_object* x_789; lean_object* x_790; -x_788 = lean_ctor_get(x_785, 0); -lean_inc(x_788); -lean_dec(x_785); -x_789 = l_Lean_mkStrLit(x_788); -x_790 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_790, 0, x_789); -lean_ctor_set(x_790, 1, x_3); -return x_790; +lean_object* x_788; lean_object* x_789; lean_object* x_790; lean_object* x_791; +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_2); +x_788 = lean_unsigned_to_nat(0u); +x_789 = l_Lean_Syntax_getArg(x_1, x_788); +lean_dec(x_1); +x_790 = l_Lean_numLitKind; +x_791 = l_Lean_Syntax_isNatLitAux(x_790, x_789); +lean_dec(x_789); +if (lean_obj_tag(x_791) == 0) +{ +lean_object* x_792; lean_object* x_793; +x_792 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__5; +x_793 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_793, 0, x_792); +lean_ctor_set(x_793, 1, x_3); +return x_793; +} +else +{ +lean_object* x_794; lean_object* x_795; lean_object* x_796; +x_794 = lean_ctor_get(x_791, 0); +lean_inc(x_794); +lean_dec(x_791); +x_795 = l_Lean_mkNatLit(x_794); +x_796 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_796, 0, x_795); +lean_ctor_set(x_796, 1, x_3); +return x_796; } } } else { -lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; +lean_object* x_797; lean_object* x_798; lean_object* x_799; +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_2); +x_797 = lean_unsigned_to_nat(0u); +x_798 = l_Lean_Syntax_getArg(x_1, x_797); +lean_dec(x_1); +x_799 = l_Lean_Syntax_isStrLit_x3f(x_798); +lean_dec(x_798); +if (lean_obj_tag(x_799) == 0) +{ +lean_object* x_800; lean_object* x_801; +x_800 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__6; +x_801 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_801, 0, x_800); +lean_ctor_set(x_801, 1, x_3); +return x_801; +} +else +{ +lean_object* x_802; lean_object* x_803; lean_object* x_804; +x_802 = lean_ctor_get(x_799, 0); +lean_inc(x_802); +lean_dec(x_799); +x_803 = l_Lean_mkStrLit(x_802); +x_804 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_804, 0, x_803); +lean_ctor_set(x_804, 1, x_3); +return x_804; +} +} +} +else +{ +lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_791 = l_Lean_Syntax_inhabited; -x_792 = lean_unsigned_to_nat(0u); -x_793 = lean_array_get(x_791, x_4, x_792); -x_794 = lean_unsigned_to_nat(2u); -x_795 = lean_array_get(x_791, x_4, x_794); +x_805 = l_Lean_Syntax_inhabited; +x_806 = lean_unsigned_to_nat(0u); +x_807 = lean_array_get(x_805, x_4, x_806); +x_808 = lean_unsigned_to_nat(2u); +x_809 = lean_array_get(x_805, x_4, x_808); lean_dec(x_4); -x_796 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___boxed), 6, 3); -lean_closure_set(x_796, 0, x_27); -lean_closure_set(x_796, 1, x_793); -lean_closure_set(x_796, 2, x_795); -x_797 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_798 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_798, 0, x_797); -lean_closure_set(x_798, 1, x_796); -x_799 = l_Lean_Unhygienic_run___rarg(x_798); -x_1 = x_799; +x_810 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___boxed), 6, 3); +lean_closure_set(x_810, 0, x_27); +lean_closure_set(x_810, 1, x_807); +lean_closure_set(x_810, 2, x_809); +x_811 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_812 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_812, 0, x_811); +lean_closure_set(x_812, 1, x_810); +x_813 = l_Lean_Unhygienic_run___rarg(x_812); +x_1 = x_813; goto _start; } } else { -lean_object* x_801; lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; +lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_801 = l_Lean_Syntax_inhabited; -x_802 = lean_unsigned_to_nat(0u); -x_803 = lean_array_get(x_801, x_4, x_802); -x_804 = lean_unsigned_to_nat(2u); -x_805 = lean_array_get(x_801, x_4, x_804); -lean_dec(x_4); -x_806 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed), 6, 3); -lean_closure_set(x_806, 0, x_27); -lean_closure_set(x_806, 1, x_803); -lean_closure_set(x_806, 2, x_805); -x_807 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_808 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_808, 0, x_807); -lean_closure_set(x_808, 1, x_806); -x_809 = l_Lean_Unhygienic_run___rarg(x_808); -x_1 = x_809; -goto _start; -} -} -else -{ -lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; uint8_t x_817; -lean_free_object(x_26); -lean_free_object(x_25); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_1); -x_811 = l_Lean_Syntax_inhabited; -x_812 = lean_unsigned_to_nat(1u); -x_813 = lean_array_get(x_811, x_4, x_812); -lean_dec(x_4); -x_814 = l_Lean_Syntax_getArgs(x_813); -lean_dec(x_813); -x_815 = lean_array_get_size(x_814); +x_815 = l_Lean_Syntax_inhabited; x_816 = lean_unsigned_to_nat(0u); -x_817 = lean_nat_dec_eq(x_815, x_816); -lean_dec(x_815); -if (x_817 == 0) -{ -lean_object* x_818; -x_818 = lean_array_get(x_811, x_814, x_816); -lean_dec(x_814); -x_1 = x_818; +x_817 = lean_array_get(x_815, x_4, x_816); +x_818 = lean_unsigned_to_nat(2u); +x_819 = lean_array_get(x_815, x_4, x_818); +lean_dec(x_4); +x_820 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_820, 0, x_27); +lean_closure_set(x_820, 1, x_817); +lean_closure_set(x_820, 2, x_819); +x_821 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_822 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_822, 0, x_821); +lean_closure_set(x_822, 1, x_820); +x_823 = l_Lean_Unhygienic_run___rarg(x_822); +x_1 = x_823; goto _start; } -else -{ -lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; -lean_dec(x_814); -lean_dec(x_2); -x_820 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_821 = lean_name_mk_string(x_27, x_820); -x_822 = l_Lean_Elab_Term_elabParen___closed__4; -x_823 = lean_name_mk_string(x_821, x_822); -x_824 = lean_box(0); -x_825 = l_Lean_mkConst(x_823, x_824); -x_826 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_826, 0, x_825); -lean_ctor_set(x_826, 1, x_3); -return x_826; -} -} } else { -lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; +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_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_827 = l_Lean_Syntax_inhabited; +x_825 = l_Lean_Syntax_inhabited; +x_826 = lean_unsigned_to_nat(0u); +x_827 = lean_array_get(x_825, x_4, x_826); x_828 = lean_unsigned_to_nat(2u); -x_829 = lean_array_get(x_827, x_4, x_828); -x_830 = lean_unsigned_to_nat(4u); -x_831 = lean_array_get(x_827, x_4, x_830); -x_832 = lean_unsigned_to_nat(6u); -x_833 = lean_array_get(x_827, x_4, x_832); +x_829 = lean_array_get(x_825, x_4, x_828); lean_dec(x_4); -x_834 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed), 7, 4); -lean_closure_set(x_834, 0, x_27); -lean_closure_set(x_834, 1, x_829); -lean_closure_set(x_834, 2, x_831); -lean_closure_set(x_834, 3, x_833); -x_835 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_836 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_836, 0, x_835); -lean_closure_set(x_836, 1, x_834); -x_837 = l_Lean_Unhygienic_run___rarg(x_836); -x_1 = x_837; +x_830 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_830, 0, x_27); +lean_closure_set(x_830, 1, x_827); +lean_closure_set(x_830, 2, x_829); +x_831 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_832 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_832, 0, x_831); +lean_closure_set(x_832, 1, x_830); +x_833 = l_Lean_Unhygienic_run___rarg(x_832); +x_1 = x_833; goto _start; } } else { -lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; +lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; uint8_t x_841; lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_839 = l_Lean_Syntax_inhabited; +x_835 = l_Lean_Syntax_inhabited; +x_836 = lean_unsigned_to_nat(1u); +x_837 = lean_array_get(x_835, x_4, x_836); +lean_dec(x_4); +x_838 = l_Lean_Syntax_getArgs(x_837); +lean_dec(x_837); +x_839 = lean_array_get_size(x_838); x_840 = lean_unsigned_to_nat(0u); -x_841 = lean_array_get(x_839, x_4, x_840); -lean_inc(x_2); -x_842 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_841, x_2, x_3); -if (lean_obj_tag(x_842) == 0) +x_841 = lean_nat_dec_eq(x_839, x_840); +lean_dec(x_839); +if (x_841 == 0) { -lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; -x_843 = lean_ctor_get(x_842, 0); -lean_inc(x_843); -x_844 = lean_ctor_get(x_842, 1); -lean_inc(x_844); -lean_dec(x_842); -x_845 = lean_unsigned_to_nat(1u); -x_846 = lean_array_get(x_839, x_4, x_845); -lean_dec(x_4); -x_847 = l_Lean_Syntax_getArgs(x_846); -lean_dec(x_846); -x_848 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__1(x_840, x_847, x_2, x_844); -if (lean_obj_tag(x_848) == 0) -{ -lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; -x_849 = lean_ctor_get(x_848, 0); -lean_inc(x_849); -x_850 = lean_ctor_get(x_848, 1); -lean_inc(x_850); -if (lean_is_exclusive(x_848)) { - lean_ctor_release(x_848, 0); - lean_ctor_release(x_848, 1); - x_851 = x_848; -} else { - lean_dec_ref(x_848); - x_851 = lean_box(0); -} -x_852 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_849, x_849, x_840, x_843); -lean_dec(x_849); -if (lean_is_scalar(x_851)) { - x_853 = lean_alloc_ctor(0, 2, 0); -} else { - x_853 = x_851; -} -lean_ctor_set(x_853, 0, x_852); -lean_ctor_set(x_853, 1, x_850); -return x_853; +lean_object* x_842; +x_842 = lean_array_get(x_835, x_838, x_840); +lean_dec(x_838); +x_1 = x_842; +goto _start; } else { -lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; -lean_dec(x_843); -x_854 = lean_ctor_get(x_848, 0); -lean_inc(x_854); -x_855 = lean_ctor_get(x_848, 1); -lean_inc(x_855); -if (lean_is_exclusive(x_848)) { - lean_ctor_release(x_848, 0); - lean_ctor_release(x_848, 1); - x_856 = x_848; -} else { - lean_dec_ref(x_848); - x_856 = lean_box(0); -} -if (lean_is_scalar(x_856)) { - x_857 = lean_alloc_ctor(1, 2, 0); -} else { - x_857 = x_856; -} -lean_ctor_set(x_857, 0, x_854); -lean_ctor_set(x_857, 1, x_855); -return x_857; -} -} -else -{ -lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; -lean_dec(x_4); +lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; +lean_dec(x_838); lean_dec(x_2); -x_858 = lean_ctor_get(x_842, 0); -lean_inc(x_858); -x_859 = lean_ctor_get(x_842, 1); -lean_inc(x_859); -if (lean_is_exclusive(x_842)) { - lean_ctor_release(x_842, 0); - lean_ctor_release(x_842, 1); - x_860 = x_842; -} else { - lean_dec_ref(x_842); - x_860 = lean_box(0); -} -if (lean_is_scalar(x_860)) { - x_861 = lean_alloc_ctor(1, 2, 0); -} else { - x_861 = x_860; -} -lean_ctor_set(x_861, 0, x_858); -lean_ctor_set(x_861, 1, x_859); -return x_861; +x_844 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_845 = lean_name_mk_string(x_27, x_844); +x_846 = l_Lean_Elab_Term_elabParen___closed__4; +x_847 = lean_name_mk_string(x_845, x_846); +x_848 = lean_box(0); +x_849 = l_Lean_mkConst(x_847, x_848); +x_850 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_850, 0, x_849); +lean_ctor_set(x_850, 1, x_3); +return x_850; } } } else { -lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; uint8_t x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; +lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_862 = l_Lean_Syntax_inhabited; -x_863 = lean_unsigned_to_nat(1u); -x_864 = lean_array_get(x_862, x_4, x_863); -x_865 = lean_unsigned_to_nat(0u); -x_866 = l_Lean_Syntax_getArg(x_864, x_865); -x_867 = l_Lean_Syntax_isIdent(x_866); -x_868 = lean_unsigned_to_nat(4u); -x_869 = l_Lean_Syntax_getArg(x_864, x_868); -lean_dec(x_864); -x_870 = lean_unsigned_to_nat(3u); -x_871 = lean_array_get(x_862, x_4, x_870); +x_851 = l_Lean_Syntax_inhabited; +x_852 = lean_unsigned_to_nat(2u); +x_853 = lean_array_get(x_851, x_4, x_852); +x_854 = lean_unsigned_to_nat(4u); +x_855 = lean_array_get(x_851, x_4, x_854); +x_856 = lean_unsigned_to_nat(6u); +x_857 = lean_array_get(x_851, x_4, x_856); lean_dec(x_4); -if (x_867 == 0) -{ -lean_object* x_919; -x_919 = l_Lean_Syntax_getIdAt(x_866, x_865); -lean_dec(x_866); -x_872 = x_919; -goto block_918; -} -else -{ -lean_object* x_920; -x_920 = l_Lean_Syntax_getId(x_866); -lean_dec(x_866); -x_872 = x_920; -goto block_918; -} -block_918: -{ -lean_object* x_873; -lean_inc(x_2); -x_873 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_869, x_2, x_3); -if (lean_obj_tag(x_873) == 0) -{ -lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; uint8_t x_891; uint8_t x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; -x_874 = lean_ctor_get(x_873, 0); -lean_inc(x_874); -x_875 = lean_ctor_get(x_873, 1); -lean_inc(x_875); -lean_dec(x_873); -x_876 = l_Lean_Elab_Term_getLCtx(x_2, x_875); -x_877 = lean_ctor_get(x_876, 0); -lean_inc(x_877); -x_878 = lean_ctor_get(x_876, 1); -lean_inc(x_878); -lean_dec(x_876); -x_879 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -lean_inc_n(x_872, 2); -x_880 = lean_local_ctx_mk_let_decl(x_877, x_872, x_872, x_879, x_874); -x_881 = lean_ctor_get(x_2, 0); -lean_inc(x_881); -x_882 = lean_ctor_get(x_2, 1); -lean_inc(x_882); -x_883 = lean_ctor_get(x_2, 2); -lean_inc(x_883); -x_884 = lean_ctor_get(x_2, 3); -lean_inc(x_884); -x_885 = lean_ctor_get(x_2, 4); -lean_inc(x_885); -x_886 = lean_ctor_get(x_2, 5); -lean_inc(x_886); -x_887 = lean_ctor_get(x_2, 6); -lean_inc(x_887); -x_888 = lean_ctor_get(x_2, 7); -lean_inc(x_888); -x_889 = lean_ctor_get(x_2, 8); -lean_inc(x_889); -x_890 = lean_ctor_get(x_2, 9); -lean_inc(x_890); -x_891 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_892 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_893 = x_2; -} else { - lean_dec_ref(x_2); - x_893 = lean_box(0); -} -x_894 = lean_ctor_get(x_881, 0); -lean_inc(x_894); -x_895 = lean_ctor_get(x_881, 2); -lean_inc(x_895); -x_896 = lean_ctor_get(x_881, 3); -lean_inc(x_896); -x_897 = lean_ctor_get(x_881, 4); -lean_inc(x_897); -if (lean_is_exclusive(x_881)) { - lean_ctor_release(x_881, 0); - lean_ctor_release(x_881, 1); - lean_ctor_release(x_881, 2); - lean_ctor_release(x_881, 3); - lean_ctor_release(x_881, 4); - x_898 = x_881; -} else { - lean_dec_ref(x_881); - x_898 = lean_box(0); -} -lean_inc(x_880); -if (lean_is_scalar(x_898)) { - x_899 = lean_alloc_ctor(0, 5, 0); -} else { - x_899 = x_898; -} -lean_ctor_set(x_899, 0, x_894); -lean_ctor_set(x_899, 1, x_880); -lean_ctor_set(x_899, 2, x_895); -lean_ctor_set(x_899, 3, x_896); -lean_ctor_set(x_899, 4, x_897); -if (lean_is_scalar(x_893)) { - x_900 = lean_alloc_ctor(0, 10, 2); -} else { - x_900 = x_893; -} -lean_ctor_set(x_900, 0, x_899); -lean_ctor_set(x_900, 1, x_882); -lean_ctor_set(x_900, 2, x_883); -lean_ctor_set(x_900, 3, x_884); -lean_ctor_set(x_900, 4, x_885); -lean_ctor_set(x_900, 5, x_886); -lean_ctor_set(x_900, 6, x_887); -lean_ctor_set(x_900, 7, x_888); -lean_ctor_set(x_900, 8, x_889); -lean_ctor_set(x_900, 9, x_890); -lean_ctor_set_uint8(x_900, sizeof(void*)*10, x_891); -lean_ctor_set_uint8(x_900, sizeof(void*)*10 + 1, x_892); -x_901 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_871, x_900, x_878); -if (lean_obj_tag(x_901) == 0) -{ -lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; -x_902 = lean_ctor_get(x_901, 0); -lean_inc(x_902); -x_903 = lean_ctor_get(x_901, 1); -lean_inc(x_903); -if (lean_is_exclusive(x_901)) { - lean_ctor_release(x_901, 0); - lean_ctor_release(x_901, 1); - x_904 = x_901; -} else { - lean_dec_ref(x_901); - x_904 = lean_box(0); -} -x_905 = l_Lean_mkFVar(x_872); -x_906 = l_Lean_mkOptionalNode___closed__2; -x_907 = lean_array_push(x_906, x_905); -x_908 = l_Lean_LocalContext_mkLambda(x_880, x_907, x_902); -lean_dec(x_902); -lean_dec(x_907); -if (lean_is_scalar(x_904)) { - x_909 = lean_alloc_ctor(0, 2, 0); -} else { - x_909 = x_904; -} -lean_ctor_set(x_909, 0, x_908); -lean_ctor_set(x_909, 1, x_903); -return x_909; -} -else -{ -lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; -lean_dec(x_880); -lean_dec(x_872); -x_910 = lean_ctor_get(x_901, 0); -lean_inc(x_910); -x_911 = lean_ctor_get(x_901, 1); -lean_inc(x_911); -if (lean_is_exclusive(x_901)) { - lean_ctor_release(x_901, 0); - lean_ctor_release(x_901, 1); - x_912 = x_901; -} else { - lean_dec_ref(x_901); - x_912 = lean_box(0); -} -if (lean_is_scalar(x_912)) { - x_913 = lean_alloc_ctor(1, 2, 0); -} else { - x_913 = x_912; -} -lean_ctor_set(x_913, 0, x_910); -lean_ctor_set(x_913, 1, x_911); -return x_913; -} -} -else -{ -lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; -lean_dec(x_872); -lean_dec(x_871); -lean_dec(x_2); -x_914 = lean_ctor_get(x_873, 0); -lean_inc(x_914); -x_915 = lean_ctor_get(x_873, 1); -lean_inc(x_915); -if (lean_is_exclusive(x_873)) { - lean_ctor_release(x_873, 0); - lean_ctor_release(x_873, 1); - x_916 = x_873; -} else { - lean_dec_ref(x_873); - x_916 = lean_box(0); -} -if (lean_is_scalar(x_916)) { - x_917 = lean_alloc_ctor(1, 2, 0); -} else { - x_917 = x_916; -} -lean_ctor_set(x_917, 0, x_914); -lean_ctor_set(x_917, 1, x_915); -return x_917; -} -} -} -} -else -{ -lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; uint8_t x_929; -lean_free_object(x_26); -lean_free_object(x_25); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_1); -x_921 = l_Lean_Syntax_inhabited; -x_922 = lean_unsigned_to_nat(1u); -x_923 = lean_array_get(x_921, x_4, x_922); -x_924 = l_Lean_Syntax_getArgs(x_923); -lean_dec(x_923); -x_925 = lean_unsigned_to_nat(3u); -x_926 = lean_array_get(x_921, x_4, x_925); -lean_dec(x_4); -x_927 = lean_array_get_size(x_924); -x_928 = lean_unsigned_to_nat(0u); -x_929 = lean_nat_dec_eq(x_927, x_928); -lean_dec(x_927); -if (x_929 == 0) -{ -lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; uint8_t x_935; -x_930 = lean_array_get(x_921, x_924, x_928); -x_931 = lean_name_mk_string(x_27, x_39); -x_932 = lean_name_mk_string(x_931, x_726); -x_933 = lean_name_mk_string(x_932, x_736); -lean_inc(x_933); -x_934 = lean_name_mk_string(x_933, x_746); -lean_inc(x_930); -x_935 = l_Lean_Syntax_isOfKind(x_930, x_934); -lean_dec(x_934); -if (x_935 == 0) -{ -lean_object* x_936; lean_object* x_937; uint8_t x_938; -x_936 = l_Lean_mkHole___closed__1; -lean_inc(x_933); -x_937 = lean_name_mk_string(x_933, x_936); -lean_inc(x_930); -x_938 = l_Lean_Syntax_isOfKind(x_930, x_937); -lean_dec(x_937); -if (x_938 == 0) -{ -lean_object* x_939; lean_object* x_940; lean_object* x_941; lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; -x_939 = l_Lean_Syntax_getArg(x_930, x_922); -lean_dec(x_930); -x_940 = l_Lean_Syntax_getArg(x_939, x_928); -x_941 = l_Lean_Syntax_getIdAt(x_940, x_928); -lean_dec(x_940); -x_942 = l_Lean_Syntax_getArg(x_939, x_922); -lean_dec(x_939); -x_943 = l_Lean_Syntax_getArg(x_942, x_928); -lean_dec(x_942); -x_944 = l_Lean_Syntax_getArg(x_943, x_922); -lean_dec(x_943); -lean_inc(x_2); -x_945 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_944, x_2, x_3); -if (lean_obj_tag(x_945) == 0) -{ -lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; uint8_t x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; lean_object* x_960; lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; uint8_t x_980; uint8_t x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; -x_946 = lean_ctor_get(x_945, 0); -lean_inc(x_946); -x_947 = lean_ctor_get(x_945, 1); -lean_inc(x_947); -lean_dec(x_945); -x_948 = l_Lean_Elab_Term_getLCtx(x_2, x_947); -x_949 = lean_ctor_get(x_948, 0); -lean_inc(x_949); -x_950 = lean_ctor_get(x_948, 1); -lean_inc(x_950); -lean_dec(x_948); -x_951 = 0; -lean_inc_n(x_941, 2); -x_952 = lean_local_ctx_mk_local_decl(x_949, x_941, x_941, x_946, x_951); -x_953 = l_Array_eraseIdx___rarg(x_924, x_928); -x_954 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_950); -x_955 = lean_ctor_get(x_954, 1); -lean_inc(x_955); -lean_dec(x_954); -x_956 = l_Lean_Elab_Term_getMainModule___rarg(x_955); -x_957 = lean_ctor_get(x_956, 1); -lean_inc(x_957); -lean_dec(x_956); -x_958 = lean_name_mk_string(x_933, x_748); -x_959 = l_Lean_nullKind___closed__1; -x_960 = lean_name_mk_string(x_27, x_959); -x_961 = l_Array_empty___closed__1; -x_962 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_953, x_953, x_928, x_961); -lean_dec(x_953); -x_963 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_963, 0, x_960); -lean_ctor_set(x_963, 1, x_962); -x_964 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_965 = lean_array_push(x_964, x_963); -x_966 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_967 = lean_array_push(x_965, x_966); -x_968 = lean_array_push(x_967, x_926); -x_969 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_969, 0, x_958); -lean_ctor_set(x_969, 1, x_968); -x_970 = lean_ctor_get(x_2, 0); -lean_inc(x_970); -x_971 = lean_ctor_get(x_2, 1); -lean_inc(x_971); -x_972 = lean_ctor_get(x_2, 2); -lean_inc(x_972); -x_973 = lean_ctor_get(x_2, 3); -lean_inc(x_973); -x_974 = lean_ctor_get(x_2, 4); -lean_inc(x_974); -x_975 = lean_ctor_get(x_2, 5); -lean_inc(x_975); -x_976 = lean_ctor_get(x_2, 6); -lean_inc(x_976); -x_977 = lean_ctor_get(x_2, 7); -lean_inc(x_977); -x_978 = lean_ctor_get(x_2, 8); -lean_inc(x_978); -x_979 = lean_ctor_get(x_2, 9); -lean_inc(x_979); -x_980 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_981 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_982 = x_2; -} else { - lean_dec_ref(x_2); - x_982 = lean_box(0); -} -x_983 = lean_ctor_get(x_970, 0); -lean_inc(x_983); -x_984 = lean_ctor_get(x_970, 2); -lean_inc(x_984); -x_985 = lean_ctor_get(x_970, 3); -lean_inc(x_985); -x_986 = lean_ctor_get(x_970, 4); -lean_inc(x_986); -if (lean_is_exclusive(x_970)) { - lean_ctor_release(x_970, 0); - lean_ctor_release(x_970, 1); - lean_ctor_release(x_970, 2); - lean_ctor_release(x_970, 3); - lean_ctor_release(x_970, 4); - x_987 = x_970; -} else { - lean_dec_ref(x_970); - x_987 = lean_box(0); -} -lean_inc(x_952); -if (lean_is_scalar(x_987)) { - x_988 = lean_alloc_ctor(0, 5, 0); -} else { - x_988 = x_987; -} -lean_ctor_set(x_988, 0, x_983); -lean_ctor_set(x_988, 1, x_952); -lean_ctor_set(x_988, 2, x_984); -lean_ctor_set(x_988, 3, x_985); -lean_ctor_set(x_988, 4, x_986); -if (lean_is_scalar(x_982)) { - x_989 = lean_alloc_ctor(0, 10, 2); -} else { - x_989 = x_982; -} -lean_ctor_set(x_989, 0, x_988); -lean_ctor_set(x_989, 1, x_971); -lean_ctor_set(x_989, 2, x_972); -lean_ctor_set(x_989, 3, x_973); -lean_ctor_set(x_989, 4, x_974); -lean_ctor_set(x_989, 5, x_975); -lean_ctor_set(x_989, 6, x_976); -lean_ctor_set(x_989, 7, x_977); -lean_ctor_set(x_989, 8, x_978); -lean_ctor_set(x_989, 9, x_979); -lean_ctor_set_uint8(x_989, sizeof(void*)*10, x_980); -lean_ctor_set_uint8(x_989, sizeof(void*)*10 + 1, x_981); -x_990 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_969, x_989, x_957); -if (lean_obj_tag(x_990) == 0) -{ -lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; -x_991 = lean_ctor_get(x_990, 0); -lean_inc(x_991); -x_992 = lean_ctor_get(x_990, 1); -lean_inc(x_992); -if (lean_is_exclusive(x_990)) { - lean_ctor_release(x_990, 0); - lean_ctor_release(x_990, 1); - x_993 = x_990; -} else { - lean_dec_ref(x_990); - x_993 = lean_box(0); -} -x_994 = l_Lean_mkFVar(x_941); -x_995 = l_Lean_mkOptionalNode___closed__2; -x_996 = lean_array_push(x_995, x_994); -x_997 = l_Lean_LocalContext_mkLambda(x_952, x_996, x_991); -lean_dec(x_991); -lean_dec(x_996); -if (lean_is_scalar(x_993)) { - x_998 = lean_alloc_ctor(0, 2, 0); -} else { - x_998 = x_993; -} -lean_ctor_set(x_998, 0, x_997); -lean_ctor_set(x_998, 1, x_992); -return x_998; -} -else -{ -lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; -lean_dec(x_952); -lean_dec(x_941); -x_999 = lean_ctor_get(x_990, 0); -lean_inc(x_999); -x_1000 = lean_ctor_get(x_990, 1); -lean_inc(x_1000); -if (lean_is_exclusive(x_990)) { - lean_ctor_release(x_990, 0); - lean_ctor_release(x_990, 1); - x_1001 = x_990; -} else { - lean_dec_ref(x_990); - x_1001 = lean_box(0); -} -if (lean_is_scalar(x_1001)) { - x_1002 = lean_alloc_ctor(1, 2, 0); -} else { - x_1002 = x_1001; -} -lean_ctor_set(x_1002, 0, x_999); -lean_ctor_set(x_1002, 1, x_1000); -return x_1002; -} -} -else -{ -lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; lean_object* x_1006; -lean_dec(x_941); -lean_dec(x_933); -lean_dec(x_926); -lean_dec(x_924); -lean_dec(x_2); -x_1003 = lean_ctor_get(x_945, 0); -lean_inc(x_1003); -x_1004 = lean_ctor_get(x_945, 1); -lean_inc(x_1004); -if (lean_is_exclusive(x_945)) { - lean_ctor_release(x_945, 0); - lean_ctor_release(x_945, 1); - x_1005 = x_945; -} else { - lean_dec_ref(x_945); - x_1005 = lean_box(0); -} -if (lean_is_scalar(x_1005)) { - x_1006 = lean_alloc_ctor(1, 2, 0); -} else { - x_1006 = x_1005; -} -lean_ctor_set(x_1006, 0, x_1003); -lean_ctor_set(x_1006, 1, x_1004); -return x_1006; -} -} -else -{ -lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; uint8_t x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; uint8_t x_1042; uint8_t x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; -lean_dec(x_930); -x_1007 = l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; -x_1008 = lean_name_mk_string(x_27, x_1007); -x_1009 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_1010 = lean_ctor_get(x_1009, 0); -lean_inc(x_1010); -x_1011 = lean_ctor_get(x_1009, 1); -lean_inc(x_1011); -lean_dec(x_1009); -x_1012 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -x_1013 = 0; -lean_inc_n(x_1008, 2); -x_1014 = lean_local_ctx_mk_local_decl(x_1010, x_1008, x_1008, x_1012, x_1013); -x_1015 = l_Array_eraseIdx___rarg(x_924, x_928); -x_1016 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1011); -x_1017 = lean_ctor_get(x_1016, 1); -lean_inc(x_1017); -lean_dec(x_1016); -x_1018 = l_Lean_Elab_Term_getMainModule___rarg(x_1017); -x_1019 = lean_ctor_get(x_1018, 1); -lean_inc(x_1019); -lean_dec(x_1018); -x_1020 = lean_name_mk_string(x_933, x_748); -x_1021 = l_Lean_nullKind___closed__1; -x_1022 = lean_name_mk_string(x_27, x_1021); -x_1023 = l_Array_empty___closed__1; -x_1024 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1015, x_1015, x_928, x_1023); -lean_dec(x_1015); -x_1025 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1025, 0, x_1022); -lean_ctor_set(x_1025, 1, x_1024); -x_1026 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1027 = lean_array_push(x_1026, x_1025); -x_1028 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_1029 = lean_array_push(x_1027, x_1028); -x_1030 = lean_array_push(x_1029, x_926); -x_1031 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1031, 0, x_1020); -lean_ctor_set(x_1031, 1, x_1030); -x_1032 = lean_ctor_get(x_2, 0); -lean_inc(x_1032); -x_1033 = lean_ctor_get(x_2, 1); -lean_inc(x_1033); -x_1034 = lean_ctor_get(x_2, 2); -lean_inc(x_1034); -x_1035 = lean_ctor_get(x_2, 3); -lean_inc(x_1035); -x_1036 = lean_ctor_get(x_2, 4); -lean_inc(x_1036); -x_1037 = lean_ctor_get(x_2, 5); -lean_inc(x_1037); -x_1038 = lean_ctor_get(x_2, 6); -lean_inc(x_1038); -x_1039 = lean_ctor_get(x_2, 7); -lean_inc(x_1039); -x_1040 = lean_ctor_get(x_2, 8); -lean_inc(x_1040); -x_1041 = lean_ctor_get(x_2, 9); -lean_inc(x_1041); -x_1042 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1043 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1044 = x_2; -} else { - lean_dec_ref(x_2); - x_1044 = lean_box(0); -} -x_1045 = lean_ctor_get(x_1032, 0); -lean_inc(x_1045); -x_1046 = lean_ctor_get(x_1032, 2); -lean_inc(x_1046); -x_1047 = lean_ctor_get(x_1032, 3); -lean_inc(x_1047); -x_1048 = lean_ctor_get(x_1032, 4); -lean_inc(x_1048); -if (lean_is_exclusive(x_1032)) { - lean_ctor_release(x_1032, 0); - lean_ctor_release(x_1032, 1); - lean_ctor_release(x_1032, 2); - lean_ctor_release(x_1032, 3); - lean_ctor_release(x_1032, 4); - x_1049 = x_1032; -} else { - lean_dec_ref(x_1032); - x_1049 = lean_box(0); -} -lean_inc(x_1014); -if (lean_is_scalar(x_1049)) { - x_1050 = lean_alloc_ctor(0, 5, 0); -} else { - x_1050 = x_1049; -} -lean_ctor_set(x_1050, 0, x_1045); -lean_ctor_set(x_1050, 1, x_1014); -lean_ctor_set(x_1050, 2, x_1046); -lean_ctor_set(x_1050, 3, x_1047); -lean_ctor_set(x_1050, 4, x_1048); -if (lean_is_scalar(x_1044)) { - x_1051 = lean_alloc_ctor(0, 10, 2); -} else { - x_1051 = x_1044; -} -lean_ctor_set(x_1051, 0, x_1050); -lean_ctor_set(x_1051, 1, x_1033); -lean_ctor_set(x_1051, 2, x_1034); -lean_ctor_set(x_1051, 3, x_1035); -lean_ctor_set(x_1051, 4, x_1036); -lean_ctor_set(x_1051, 5, x_1037); -lean_ctor_set(x_1051, 6, x_1038); -lean_ctor_set(x_1051, 7, x_1039); -lean_ctor_set(x_1051, 8, x_1040); -lean_ctor_set(x_1051, 9, x_1041); -lean_ctor_set_uint8(x_1051, sizeof(void*)*10, x_1042); -lean_ctor_set_uint8(x_1051, sizeof(void*)*10 + 1, x_1043); -x_1052 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1031, x_1051, x_1019); -if (lean_obj_tag(x_1052) == 0) -{ -lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; -x_1053 = lean_ctor_get(x_1052, 0); -lean_inc(x_1053); -x_1054 = lean_ctor_get(x_1052, 1); -lean_inc(x_1054); -if (lean_is_exclusive(x_1052)) { - lean_ctor_release(x_1052, 0); - lean_ctor_release(x_1052, 1); - x_1055 = x_1052; -} else { - lean_dec_ref(x_1052); - x_1055 = lean_box(0); -} -x_1056 = l_Lean_mkFVar(x_1008); -x_1057 = l_Lean_mkOptionalNode___closed__2; -x_1058 = lean_array_push(x_1057, x_1056); -x_1059 = l_Lean_LocalContext_mkLambda(x_1014, x_1058, x_1053); -lean_dec(x_1053); -lean_dec(x_1058); -if (lean_is_scalar(x_1055)) { - x_1060 = lean_alloc_ctor(0, 2, 0); -} else { - x_1060 = x_1055; -} -lean_ctor_set(x_1060, 0, x_1059); -lean_ctor_set(x_1060, 1, x_1054); -return x_1060; -} -else -{ -lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; -lean_dec(x_1014); -lean_dec(x_1008); -x_1061 = lean_ctor_get(x_1052, 0); -lean_inc(x_1061); -x_1062 = lean_ctor_get(x_1052, 1); -lean_inc(x_1062); -if (lean_is_exclusive(x_1052)) { - lean_ctor_release(x_1052, 0); - lean_ctor_release(x_1052, 1); - x_1063 = x_1052; -} else { - lean_dec_ref(x_1052); - x_1063 = lean_box(0); -} -if (lean_is_scalar(x_1063)) { - x_1064 = lean_alloc_ctor(1, 2, 0); -} else { - x_1064 = x_1063; -} -lean_ctor_set(x_1064, 0, x_1061); -lean_ctor_set(x_1064, 1, x_1062); -return x_1064; -} -} -} -else -{ -lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; uint8_t x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; uint8_t x_1099; uint8_t x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; -x_1065 = l_Lean_Syntax_getIdAt(x_930, x_928); -lean_dec(x_930); -x_1066 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_1067 = lean_ctor_get(x_1066, 0); -lean_inc(x_1067); -x_1068 = lean_ctor_get(x_1066, 1); -lean_inc(x_1068); -lean_dec(x_1066); -x_1069 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -x_1070 = 0; -lean_inc_n(x_1065, 2); -x_1071 = lean_local_ctx_mk_local_decl(x_1067, x_1065, x_1065, x_1069, x_1070); -x_1072 = l_Array_eraseIdx___rarg(x_924, x_928); -x_1073 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1068); -x_1074 = lean_ctor_get(x_1073, 1); -lean_inc(x_1074); -lean_dec(x_1073); -x_1075 = l_Lean_Elab_Term_getMainModule___rarg(x_1074); -x_1076 = lean_ctor_get(x_1075, 1); -lean_inc(x_1076); -lean_dec(x_1075); -x_1077 = lean_name_mk_string(x_933, x_748); -x_1078 = l_Lean_nullKind___closed__1; -x_1079 = lean_name_mk_string(x_27, x_1078); -x_1080 = l_Array_empty___closed__1; -x_1081 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1072, x_1072, x_928, x_1080); -lean_dec(x_1072); -x_1082 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1082, 0, x_1079); -lean_ctor_set(x_1082, 1, x_1081); -x_1083 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1084 = lean_array_push(x_1083, x_1082); -x_1085 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_1086 = lean_array_push(x_1084, x_1085); -x_1087 = lean_array_push(x_1086, x_926); -x_1088 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1088, 0, x_1077); -lean_ctor_set(x_1088, 1, x_1087); -x_1089 = lean_ctor_get(x_2, 0); -lean_inc(x_1089); -x_1090 = lean_ctor_get(x_2, 1); -lean_inc(x_1090); -x_1091 = lean_ctor_get(x_2, 2); -lean_inc(x_1091); -x_1092 = lean_ctor_get(x_2, 3); -lean_inc(x_1092); -x_1093 = lean_ctor_get(x_2, 4); -lean_inc(x_1093); -x_1094 = lean_ctor_get(x_2, 5); -lean_inc(x_1094); -x_1095 = lean_ctor_get(x_2, 6); -lean_inc(x_1095); -x_1096 = lean_ctor_get(x_2, 7); -lean_inc(x_1096); -x_1097 = lean_ctor_get(x_2, 8); -lean_inc(x_1097); -x_1098 = lean_ctor_get(x_2, 9); -lean_inc(x_1098); -x_1099 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1100 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1101 = x_2; -} else { - lean_dec_ref(x_2); - x_1101 = lean_box(0); -} -x_1102 = lean_ctor_get(x_1089, 0); -lean_inc(x_1102); -x_1103 = lean_ctor_get(x_1089, 2); -lean_inc(x_1103); -x_1104 = lean_ctor_get(x_1089, 3); -lean_inc(x_1104); -x_1105 = lean_ctor_get(x_1089, 4); -lean_inc(x_1105); -if (lean_is_exclusive(x_1089)) { - lean_ctor_release(x_1089, 0); - lean_ctor_release(x_1089, 1); - lean_ctor_release(x_1089, 2); - lean_ctor_release(x_1089, 3); - lean_ctor_release(x_1089, 4); - x_1106 = x_1089; -} else { - lean_dec_ref(x_1089); - x_1106 = lean_box(0); -} -lean_inc(x_1071); -if (lean_is_scalar(x_1106)) { - x_1107 = lean_alloc_ctor(0, 5, 0); -} else { - x_1107 = x_1106; -} -lean_ctor_set(x_1107, 0, x_1102); -lean_ctor_set(x_1107, 1, x_1071); -lean_ctor_set(x_1107, 2, x_1103); -lean_ctor_set(x_1107, 3, x_1104); -lean_ctor_set(x_1107, 4, x_1105); -if (lean_is_scalar(x_1101)) { - x_1108 = lean_alloc_ctor(0, 10, 2); -} else { - x_1108 = x_1101; -} -lean_ctor_set(x_1108, 0, x_1107); -lean_ctor_set(x_1108, 1, x_1090); -lean_ctor_set(x_1108, 2, x_1091); -lean_ctor_set(x_1108, 3, x_1092); -lean_ctor_set(x_1108, 4, x_1093); -lean_ctor_set(x_1108, 5, x_1094); -lean_ctor_set(x_1108, 6, x_1095); -lean_ctor_set(x_1108, 7, x_1096); -lean_ctor_set(x_1108, 8, x_1097); -lean_ctor_set(x_1108, 9, x_1098); -lean_ctor_set_uint8(x_1108, sizeof(void*)*10, x_1099); -lean_ctor_set_uint8(x_1108, sizeof(void*)*10 + 1, x_1100); -x_1109 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1088, x_1108, x_1076); -if (lean_obj_tag(x_1109) == 0) -{ -lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; -x_1110 = lean_ctor_get(x_1109, 0); -lean_inc(x_1110); -x_1111 = lean_ctor_get(x_1109, 1); -lean_inc(x_1111); -if (lean_is_exclusive(x_1109)) { - lean_ctor_release(x_1109, 0); - lean_ctor_release(x_1109, 1); - x_1112 = x_1109; -} else { - lean_dec_ref(x_1109); - x_1112 = lean_box(0); -} -x_1113 = l_Lean_mkFVar(x_1065); -x_1114 = l_Lean_mkOptionalNode___closed__2; -x_1115 = lean_array_push(x_1114, x_1113); -x_1116 = l_Lean_LocalContext_mkLambda(x_1071, x_1115, x_1110); -lean_dec(x_1110); -lean_dec(x_1115); -if (lean_is_scalar(x_1112)) { - x_1117 = lean_alloc_ctor(0, 2, 0); -} else { - x_1117 = x_1112; -} -lean_ctor_set(x_1117, 0, x_1116); -lean_ctor_set(x_1117, 1, x_1111); -return x_1117; -} -else -{ -lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; -lean_dec(x_1071); -lean_dec(x_1065); -x_1118 = lean_ctor_get(x_1109, 0); -lean_inc(x_1118); -x_1119 = lean_ctor_get(x_1109, 1); -lean_inc(x_1119); -if (lean_is_exclusive(x_1109)) { - lean_ctor_release(x_1109, 0); - lean_ctor_release(x_1109, 1); - x_1120 = x_1109; -} else { - lean_dec_ref(x_1109); - x_1120 = lean_box(0); -} -if (lean_is_scalar(x_1120)) { - x_1121 = lean_alloc_ctor(1, 2, 0); -} else { - x_1121 = x_1120; -} -lean_ctor_set(x_1121, 0, x_1118); -lean_ctor_set(x_1121, 1, x_1119); -return x_1121; -} -} -} -else -{ -lean_dec(x_924); -x_1 = x_926; +x_858 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_858, 0, x_27); +lean_closure_set(x_858, 1, x_853); +lean_closure_set(x_858, 2, x_855); +lean_closure_set(x_858, 3, x_857); +x_859 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_860 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_860, 0, x_859); +lean_closure_set(x_860, 1, x_858); +x_861 = l_Lean_Unhygienic_run___rarg(x_860); +x_1 = x_861; goto _start; } } -} else { -lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; +lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_free_object(x_26); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); -x_1123 = l_Lean_Syntax_inhabited; -x_1124 = lean_unsigned_to_nat(0u); -x_1125 = lean_array_get(x_1123, x_4, x_1124); -lean_dec(x_4); -if (lean_obj_tag(x_1125) == 3) -{ -lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; -x_1126 = lean_ctor_get(x_1125, 2); -lean_inc(x_1126); -x_1127 = lean_ctor_get(x_1125, 3); -lean_inc(x_1127); -lean_dec(x_1125); -x_1128 = lean_box(0); -lean_inc(x_2); -x_1129 = l_Lean_Elab_Term_resolveName(x_1, x_1126, x_1127, x_1128, x_2, x_3); lean_dec(x_1); -if (lean_obj_tag(x_1129) == 0) +x_863 = l_Lean_Syntax_inhabited; +x_864 = lean_unsigned_to_nat(0u); +x_865 = lean_array_get(x_863, x_4, x_864); +lean_inc(x_2); +x_866 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_865, x_2, x_3); +if (lean_obj_tag(x_866) == 0) { -lean_object* x_1130; -x_1130 = lean_ctor_get(x_1129, 0); -lean_inc(x_1130); -if (lean_obj_tag(x_1130) == 0) +lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; +x_867 = lean_ctor_get(x_866, 0); +lean_inc(x_867); +x_868 = lean_ctor_get(x_866, 1); +lean_inc(x_868); +lean_dec(x_866); +x_869 = lean_unsigned_to_nat(1u); +x_870 = lean_array_get(x_863, x_4, x_869); +lean_dec(x_4); +x_871 = l_Lean_Syntax_getArgs(x_870); +lean_dec(x_870); +x_872 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__1(x_864, x_871, x_2, x_868); +if (lean_obj_tag(x_872) == 0) { -lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; -x_1131 = lean_ctor_get(x_1129, 1); -lean_inc(x_1131); -lean_dec(x_1129); -x_1132 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; -x_1133 = l_unreachable_x21___rarg(x_1132); -x_1134 = lean_apply_2(x_1133, x_2, x_1131); -return x_1134; +lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; +x_873 = lean_ctor_get(x_872, 0); +lean_inc(x_873); +x_874 = lean_ctor_get(x_872, 1); +lean_inc(x_874); +if (lean_is_exclusive(x_872)) { + lean_ctor_release(x_872, 0); + lean_ctor_release(x_872, 1); + x_875 = x_872; +} else { + lean_dec_ref(x_872); + x_875 = lean_box(0); +} +x_876 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_873, x_873, x_864, x_867); +lean_dec(x_873); +if (lean_is_scalar(x_875)) { + x_877 = lean_alloc_ctor(0, 2, 0); +} else { + x_877 = x_875; +} +lean_ctor_set(x_877, 0, x_876); +lean_ctor_set(x_877, 1, x_874); +return x_877; } else { -lean_object* x_1135; lean_object* x_1136; -lean_dec(x_2); -x_1135 = lean_ctor_get(x_1130, 0); -lean_inc(x_1135); -lean_dec(x_1130); -x_1136 = lean_ctor_get(x_1135, 0); -lean_inc(x_1136); -switch (lean_obj_tag(x_1136)) { -case 0: -{ -lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; -x_1137 = lean_ctor_get(x_1129, 1); -lean_inc(x_1137); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1138 = x_1129; +lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; +lean_dec(x_867); +x_878 = lean_ctor_get(x_872, 0); +lean_inc(x_878); +x_879 = lean_ctor_get(x_872, 1); +lean_inc(x_879); +if (lean_is_exclusive(x_872)) { + lean_ctor_release(x_872, 0); + lean_ctor_release(x_872, 1); + x_880 = x_872; } else { - lean_dec_ref(x_1129); - x_1138 = lean_box(0); + lean_dec_ref(x_872); + x_880 = lean_box(0); } -x_1139 = lean_ctor_get(x_1135, 1); -lean_inc(x_1139); -lean_dec(x_1135); -x_1140 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_1136, x_1139); -if (lean_is_scalar(x_1138)) { +if (lean_is_scalar(x_880)) { + x_881 = lean_alloc_ctor(1, 2, 0); +} else { + x_881 = x_880; +} +lean_ctor_set(x_881, 0, x_878); +lean_ctor_set(x_881, 1, x_879); +return x_881; +} +} +else +{ +lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; +lean_dec(x_4); +lean_dec(x_2); +x_882 = lean_ctor_get(x_866, 0); +lean_inc(x_882); +x_883 = lean_ctor_get(x_866, 1); +lean_inc(x_883); +if (lean_is_exclusive(x_866)) { + lean_ctor_release(x_866, 0); + lean_ctor_release(x_866, 1); + x_884 = x_866; +} else { + lean_dec_ref(x_866); + x_884 = lean_box(0); +} +if (lean_is_scalar(x_884)) { + x_885 = lean_alloc_ctor(1, 2, 0); +} else { + x_885 = x_884; +} +lean_ctor_set(x_885, 0, x_882); +lean_ctor_set(x_885, 1, x_883); +return x_885; +} +} +} +else +{ +lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; uint8_t x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_886 = l_Lean_Syntax_inhabited; +x_887 = lean_unsigned_to_nat(1u); +x_888 = lean_array_get(x_886, x_4, x_887); +x_889 = lean_unsigned_to_nat(0u); +x_890 = l_Lean_Syntax_getArg(x_888, x_889); +x_891 = l_Lean_Syntax_isIdent(x_890); +x_892 = lean_unsigned_to_nat(4u); +x_893 = l_Lean_Syntax_getArg(x_888, x_892); +lean_dec(x_888); +x_894 = lean_unsigned_to_nat(3u); +x_895 = lean_array_get(x_886, x_4, x_894); +lean_dec(x_4); +if (x_891 == 0) +{ +lean_object* x_943; +x_943 = l_Lean_Syntax_getIdAt(x_890, x_889); +lean_dec(x_890); +x_896 = x_943; +goto block_942; +} +else +{ +lean_object* x_944; +x_944 = l_Lean_Syntax_getId(x_890); +lean_dec(x_890); +x_896 = x_944; +goto block_942; +} +block_942: +{ +lean_object* x_897; +lean_inc(x_2); +x_897 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_893, x_2, x_3); +if (lean_obj_tag(x_897) == 0) +{ +lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; uint8_t x_915; uint8_t x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; +x_898 = lean_ctor_get(x_897, 0); +lean_inc(x_898); +x_899 = lean_ctor_get(x_897, 1); +lean_inc(x_899); +lean_dec(x_897); +x_900 = l_Lean_Elab_Term_getLCtx(x_2, x_899); +x_901 = lean_ctor_get(x_900, 0); +lean_inc(x_901); +x_902 = lean_ctor_get(x_900, 1); +lean_inc(x_902); +lean_dec(x_900); +x_903 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +lean_inc_n(x_896, 2); +x_904 = lean_local_ctx_mk_let_decl(x_901, x_896, x_896, x_903, x_898); +x_905 = lean_ctor_get(x_2, 0); +lean_inc(x_905); +x_906 = lean_ctor_get(x_2, 1); +lean_inc(x_906); +x_907 = lean_ctor_get(x_2, 2); +lean_inc(x_907); +x_908 = lean_ctor_get(x_2, 3); +lean_inc(x_908); +x_909 = lean_ctor_get(x_2, 4); +lean_inc(x_909); +x_910 = lean_ctor_get(x_2, 5); +lean_inc(x_910); +x_911 = lean_ctor_get(x_2, 6); +lean_inc(x_911); +x_912 = lean_ctor_get(x_2, 7); +lean_inc(x_912); +x_913 = lean_ctor_get(x_2, 8); +lean_inc(x_913); +x_914 = lean_ctor_get(x_2, 9); +lean_inc(x_914); +x_915 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_916 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_917 = x_2; +} else { + lean_dec_ref(x_2); + x_917 = lean_box(0); +} +x_918 = lean_ctor_get(x_905, 0); +lean_inc(x_918); +x_919 = lean_ctor_get(x_905, 2); +lean_inc(x_919); +x_920 = lean_ctor_get(x_905, 3); +lean_inc(x_920); +x_921 = lean_ctor_get(x_905, 4); +lean_inc(x_921); +if (lean_is_exclusive(x_905)) { + lean_ctor_release(x_905, 0); + lean_ctor_release(x_905, 1); + lean_ctor_release(x_905, 2); + lean_ctor_release(x_905, 3); + lean_ctor_release(x_905, 4); + x_922 = x_905; +} else { + lean_dec_ref(x_905); + x_922 = lean_box(0); +} +lean_inc(x_904); +if (lean_is_scalar(x_922)) { + x_923 = lean_alloc_ctor(0, 5, 0); +} else { + x_923 = x_922; +} +lean_ctor_set(x_923, 0, x_918); +lean_ctor_set(x_923, 1, x_904); +lean_ctor_set(x_923, 2, x_919); +lean_ctor_set(x_923, 3, x_920); +lean_ctor_set(x_923, 4, x_921); +if (lean_is_scalar(x_917)) { + x_924 = lean_alloc_ctor(0, 10, 2); +} else { + x_924 = x_917; +} +lean_ctor_set(x_924, 0, x_923); +lean_ctor_set(x_924, 1, x_906); +lean_ctor_set(x_924, 2, x_907); +lean_ctor_set(x_924, 3, x_908); +lean_ctor_set(x_924, 4, x_909); +lean_ctor_set(x_924, 5, x_910); +lean_ctor_set(x_924, 6, x_911); +lean_ctor_set(x_924, 7, x_912); +lean_ctor_set(x_924, 8, x_913); +lean_ctor_set(x_924, 9, x_914); +lean_ctor_set_uint8(x_924, sizeof(void*)*10, x_915); +lean_ctor_set_uint8(x_924, sizeof(void*)*10 + 1, x_916); +x_925 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_895, x_924, x_902); +if (lean_obj_tag(x_925) == 0) +{ +lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; +x_926 = lean_ctor_get(x_925, 0); +lean_inc(x_926); +x_927 = lean_ctor_get(x_925, 1); +lean_inc(x_927); +if (lean_is_exclusive(x_925)) { + lean_ctor_release(x_925, 0); + lean_ctor_release(x_925, 1); + x_928 = x_925; +} else { + lean_dec_ref(x_925); + x_928 = lean_box(0); +} +x_929 = l_Lean_mkFVar(x_896); +x_930 = l_Lean_mkOptionalNode___closed__2; +x_931 = lean_array_push(x_930, x_929); +x_932 = l_Lean_LocalContext_mkLambda(x_904, x_931, x_926); +lean_dec(x_926); +lean_dec(x_931); +if (lean_is_scalar(x_928)) { + x_933 = lean_alloc_ctor(0, 2, 0); +} else { + x_933 = x_928; +} +lean_ctor_set(x_933, 0, x_932); +lean_ctor_set(x_933, 1, x_927); +return x_933; +} +else +{ +lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; +lean_dec(x_904); +lean_dec(x_896); +x_934 = lean_ctor_get(x_925, 0); +lean_inc(x_934); +x_935 = lean_ctor_get(x_925, 1); +lean_inc(x_935); +if (lean_is_exclusive(x_925)) { + lean_ctor_release(x_925, 0); + lean_ctor_release(x_925, 1); + x_936 = x_925; +} else { + lean_dec_ref(x_925); + x_936 = lean_box(0); +} +if (lean_is_scalar(x_936)) { + x_937 = lean_alloc_ctor(1, 2, 0); +} else { + x_937 = x_936; +} +lean_ctor_set(x_937, 0, x_934); +lean_ctor_set(x_937, 1, x_935); +return x_937; +} +} +else +{ +lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; +lean_dec(x_896); +lean_dec(x_895); +lean_dec(x_2); +x_938 = lean_ctor_get(x_897, 0); +lean_inc(x_938); +x_939 = lean_ctor_get(x_897, 1); +lean_inc(x_939); +if (lean_is_exclusive(x_897)) { + lean_ctor_release(x_897, 0); + lean_ctor_release(x_897, 1); + x_940 = x_897; +} else { + lean_dec_ref(x_897); + x_940 = lean_box(0); +} +if (lean_is_scalar(x_940)) { + x_941 = lean_alloc_ctor(1, 2, 0); +} else { + x_941 = x_940; +} +lean_ctor_set(x_941, 0, x_938); +lean_ctor_set(x_941, 1, x_939); +return x_941; +} +} +} +} +else +{ +lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; uint8_t x_953; +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_945 = l_Lean_Syntax_inhabited; +x_946 = lean_unsigned_to_nat(1u); +x_947 = lean_array_get(x_945, x_4, x_946); +x_948 = l_Lean_Syntax_getArgs(x_947); +lean_dec(x_947); +x_949 = lean_unsigned_to_nat(3u); +x_950 = lean_array_get(x_945, x_4, x_949); +lean_dec(x_4); +x_951 = lean_array_get_size(x_948); +x_952 = lean_unsigned_to_nat(0u); +x_953 = lean_nat_dec_eq(x_951, x_952); +lean_dec(x_951); +if (x_953 == 0) +{ +lean_object* x_954; lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; uint8_t x_959; +x_954 = lean_array_get(x_945, x_948, x_952); +x_955 = lean_name_mk_string(x_27, x_39); +x_956 = lean_name_mk_string(x_955, x_738); +x_957 = lean_name_mk_string(x_956, x_748); +lean_inc(x_957); +x_958 = lean_name_mk_string(x_957, x_758); +lean_inc(x_954); +x_959 = l_Lean_Syntax_isOfKind(x_954, x_958); +lean_dec(x_958); +if (x_959 == 0) +{ +lean_object* x_960; lean_object* x_961; uint8_t x_962; +x_960 = l_Lean_mkHole___closed__1; +lean_inc(x_957); +x_961 = lean_name_mk_string(x_957, x_960); +lean_inc(x_954); +x_962 = l_Lean_Syntax_isOfKind(x_954, x_961); +lean_dec(x_961); +if (x_962 == 0) +{ +lean_object* x_963; lean_object* x_964; lean_object* x_965; lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; +x_963 = l_Lean_Syntax_getArg(x_954, x_946); +lean_dec(x_954); +x_964 = l_Lean_Syntax_getArg(x_963, x_952); +x_965 = l_Lean_Syntax_getIdAt(x_964, x_952); +lean_dec(x_964); +x_966 = l_Lean_Syntax_getArg(x_963, x_946); +lean_dec(x_963); +x_967 = l_Lean_Syntax_getArg(x_966, x_952); +lean_dec(x_966); +x_968 = l_Lean_Syntax_getArg(x_967, x_946); +lean_dec(x_967); +lean_inc(x_2); +x_969 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_968, x_2, x_3); +if (lean_obj_tag(x_969) == 0) +{ +lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; uint8_t x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; uint8_t x_1004; uint8_t x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; +x_970 = lean_ctor_get(x_969, 0); +lean_inc(x_970); +x_971 = lean_ctor_get(x_969, 1); +lean_inc(x_971); +lean_dec(x_969); +x_972 = l_Lean_Elab_Term_getLCtx(x_2, x_971); +x_973 = lean_ctor_get(x_972, 0); +lean_inc(x_973); +x_974 = lean_ctor_get(x_972, 1); +lean_inc(x_974); +lean_dec(x_972); +x_975 = 0; +lean_inc_n(x_965, 2); +x_976 = lean_local_ctx_mk_local_decl(x_973, x_965, x_965, x_970, x_975); +x_977 = l_Array_eraseIdx___rarg(x_948, x_952); +x_978 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_974); +x_979 = lean_ctor_get(x_978, 1); +lean_inc(x_979); +lean_dec(x_978); +x_980 = l_Lean_Elab_Term_getMainModule___rarg(x_979); +x_981 = lean_ctor_get(x_980, 1); +lean_inc(x_981); +lean_dec(x_980); +x_982 = lean_name_mk_string(x_957, x_760); +x_983 = l_Lean_nullKind___closed__1; +x_984 = lean_name_mk_string(x_27, x_983); +x_985 = l_Array_empty___closed__1; +x_986 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_977, x_977, x_952, x_985); +lean_dec(x_977); +x_987 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_987, 0, x_984); +lean_ctor_set(x_987, 1, x_986); +x_988 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_989 = lean_array_push(x_988, x_987); +x_990 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_991 = lean_array_push(x_989, x_990); +x_992 = lean_array_push(x_991, x_950); +x_993 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_993, 0, x_982); +lean_ctor_set(x_993, 1, x_992); +x_994 = lean_ctor_get(x_2, 0); +lean_inc(x_994); +x_995 = lean_ctor_get(x_2, 1); +lean_inc(x_995); +x_996 = lean_ctor_get(x_2, 2); +lean_inc(x_996); +x_997 = lean_ctor_get(x_2, 3); +lean_inc(x_997); +x_998 = lean_ctor_get(x_2, 4); +lean_inc(x_998); +x_999 = lean_ctor_get(x_2, 5); +lean_inc(x_999); +x_1000 = lean_ctor_get(x_2, 6); +lean_inc(x_1000); +x_1001 = lean_ctor_get(x_2, 7); +lean_inc(x_1001); +x_1002 = lean_ctor_get(x_2, 8); +lean_inc(x_1002); +x_1003 = lean_ctor_get(x_2, 9); +lean_inc(x_1003); +x_1004 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_1005 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_1006 = x_2; +} else { + lean_dec_ref(x_2); + x_1006 = lean_box(0); +} +x_1007 = lean_ctor_get(x_994, 0); +lean_inc(x_1007); +x_1008 = lean_ctor_get(x_994, 2); +lean_inc(x_1008); +x_1009 = lean_ctor_get(x_994, 3); +lean_inc(x_1009); +x_1010 = lean_ctor_get(x_994, 4); +lean_inc(x_1010); +if (lean_is_exclusive(x_994)) { + lean_ctor_release(x_994, 0); + lean_ctor_release(x_994, 1); + lean_ctor_release(x_994, 2); + lean_ctor_release(x_994, 3); + lean_ctor_release(x_994, 4); + x_1011 = x_994; +} else { + lean_dec_ref(x_994); + x_1011 = lean_box(0); +} +lean_inc(x_976); +if (lean_is_scalar(x_1011)) { + x_1012 = lean_alloc_ctor(0, 5, 0); +} else { + x_1012 = x_1011; +} +lean_ctor_set(x_1012, 0, x_1007); +lean_ctor_set(x_1012, 1, x_976); +lean_ctor_set(x_1012, 2, x_1008); +lean_ctor_set(x_1012, 3, x_1009); +lean_ctor_set(x_1012, 4, x_1010); +if (lean_is_scalar(x_1006)) { + x_1013 = lean_alloc_ctor(0, 10, 2); +} else { + x_1013 = x_1006; +} +lean_ctor_set(x_1013, 0, x_1012); +lean_ctor_set(x_1013, 1, x_995); +lean_ctor_set(x_1013, 2, x_996); +lean_ctor_set(x_1013, 3, x_997); +lean_ctor_set(x_1013, 4, x_998); +lean_ctor_set(x_1013, 5, x_999); +lean_ctor_set(x_1013, 6, x_1000); +lean_ctor_set(x_1013, 7, x_1001); +lean_ctor_set(x_1013, 8, x_1002); +lean_ctor_set(x_1013, 9, x_1003); +lean_ctor_set_uint8(x_1013, sizeof(void*)*10, x_1004); +lean_ctor_set_uint8(x_1013, sizeof(void*)*10 + 1, x_1005); +x_1014 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_993, x_1013, x_981); +if (lean_obj_tag(x_1014) == 0) +{ +lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; +x_1015 = lean_ctor_get(x_1014, 0); +lean_inc(x_1015); +x_1016 = lean_ctor_get(x_1014, 1); +lean_inc(x_1016); +if (lean_is_exclusive(x_1014)) { + lean_ctor_release(x_1014, 0); + lean_ctor_release(x_1014, 1); + x_1017 = x_1014; +} else { + lean_dec_ref(x_1014); + x_1017 = lean_box(0); +} +x_1018 = l_Lean_mkFVar(x_965); +x_1019 = l_Lean_mkOptionalNode___closed__2; +x_1020 = lean_array_push(x_1019, x_1018); +x_1021 = l_Lean_LocalContext_mkLambda(x_976, x_1020, x_1015); +lean_dec(x_1015); +lean_dec(x_1020); +if (lean_is_scalar(x_1017)) { + x_1022 = lean_alloc_ctor(0, 2, 0); +} else { + x_1022 = x_1017; +} +lean_ctor_set(x_1022, 0, x_1021); +lean_ctor_set(x_1022, 1, x_1016); +return x_1022; +} +else +{ +lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; +lean_dec(x_976); +lean_dec(x_965); +x_1023 = lean_ctor_get(x_1014, 0); +lean_inc(x_1023); +x_1024 = lean_ctor_get(x_1014, 1); +lean_inc(x_1024); +if (lean_is_exclusive(x_1014)) { + lean_ctor_release(x_1014, 0); + lean_ctor_release(x_1014, 1); + x_1025 = x_1014; +} else { + lean_dec_ref(x_1014); + x_1025 = lean_box(0); +} +if (lean_is_scalar(x_1025)) { + x_1026 = lean_alloc_ctor(1, 2, 0); +} else { + x_1026 = x_1025; +} +lean_ctor_set(x_1026, 0, x_1023); +lean_ctor_set(x_1026, 1, x_1024); +return x_1026; +} +} +else +{ +lean_object* x_1027; lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; +lean_dec(x_965); +lean_dec(x_957); +lean_dec(x_950); +lean_dec(x_948); +lean_dec(x_2); +x_1027 = lean_ctor_get(x_969, 0); +lean_inc(x_1027); +x_1028 = lean_ctor_get(x_969, 1); +lean_inc(x_1028); +if (lean_is_exclusive(x_969)) { + lean_ctor_release(x_969, 0); + lean_ctor_release(x_969, 1); + x_1029 = x_969; +} else { + lean_dec_ref(x_969); + x_1029 = lean_box(0); +} +if (lean_is_scalar(x_1029)) { + x_1030 = lean_alloc_ctor(1, 2, 0); +} else { + x_1030 = x_1029; +} +lean_ctor_set(x_1030, 0, x_1027); +lean_ctor_set(x_1030, 1, x_1028); +return x_1030; +} +} +else +{ +lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; uint8_t x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; uint8_t x_1066; uint8_t x_1067; lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; +lean_dec(x_954); +x_1031 = l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; +x_1032 = lean_name_mk_string(x_27, x_1031); +x_1033 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_1034 = lean_ctor_get(x_1033, 0); +lean_inc(x_1034); +x_1035 = lean_ctor_get(x_1033, 1); +lean_inc(x_1035); +lean_dec(x_1033); +x_1036 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +x_1037 = 0; +lean_inc_n(x_1032, 2); +x_1038 = lean_local_ctx_mk_local_decl(x_1034, x_1032, x_1032, x_1036, x_1037); +x_1039 = l_Array_eraseIdx___rarg(x_948, x_952); +x_1040 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1035); +x_1041 = lean_ctor_get(x_1040, 1); +lean_inc(x_1041); +lean_dec(x_1040); +x_1042 = l_Lean_Elab_Term_getMainModule___rarg(x_1041); +x_1043 = lean_ctor_get(x_1042, 1); +lean_inc(x_1043); +lean_dec(x_1042); +x_1044 = lean_name_mk_string(x_957, x_760); +x_1045 = l_Lean_nullKind___closed__1; +x_1046 = lean_name_mk_string(x_27, x_1045); +x_1047 = l_Array_empty___closed__1; +x_1048 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1039, x_1039, x_952, x_1047); +lean_dec(x_1039); +x_1049 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1049, 0, x_1046); +lean_ctor_set(x_1049, 1, x_1048); +x_1050 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1051 = lean_array_push(x_1050, x_1049); +x_1052 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_1053 = lean_array_push(x_1051, x_1052); +x_1054 = lean_array_push(x_1053, x_950); +x_1055 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1055, 0, x_1044); +lean_ctor_set(x_1055, 1, x_1054); +x_1056 = lean_ctor_get(x_2, 0); +lean_inc(x_1056); +x_1057 = lean_ctor_get(x_2, 1); +lean_inc(x_1057); +x_1058 = lean_ctor_get(x_2, 2); +lean_inc(x_1058); +x_1059 = lean_ctor_get(x_2, 3); +lean_inc(x_1059); +x_1060 = lean_ctor_get(x_2, 4); +lean_inc(x_1060); +x_1061 = lean_ctor_get(x_2, 5); +lean_inc(x_1061); +x_1062 = lean_ctor_get(x_2, 6); +lean_inc(x_1062); +x_1063 = lean_ctor_get(x_2, 7); +lean_inc(x_1063); +x_1064 = lean_ctor_get(x_2, 8); +lean_inc(x_1064); +x_1065 = lean_ctor_get(x_2, 9); +lean_inc(x_1065); +x_1066 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_1067 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_1068 = x_2; +} else { + lean_dec_ref(x_2); + x_1068 = lean_box(0); +} +x_1069 = lean_ctor_get(x_1056, 0); +lean_inc(x_1069); +x_1070 = lean_ctor_get(x_1056, 2); +lean_inc(x_1070); +x_1071 = lean_ctor_get(x_1056, 3); +lean_inc(x_1071); +x_1072 = lean_ctor_get(x_1056, 4); +lean_inc(x_1072); +if (lean_is_exclusive(x_1056)) { + lean_ctor_release(x_1056, 0); + lean_ctor_release(x_1056, 1); + lean_ctor_release(x_1056, 2); + lean_ctor_release(x_1056, 3); + lean_ctor_release(x_1056, 4); + x_1073 = x_1056; +} else { + lean_dec_ref(x_1056); + x_1073 = lean_box(0); +} +lean_inc(x_1038); +if (lean_is_scalar(x_1073)) { + x_1074 = lean_alloc_ctor(0, 5, 0); +} else { + x_1074 = x_1073; +} +lean_ctor_set(x_1074, 0, x_1069); +lean_ctor_set(x_1074, 1, x_1038); +lean_ctor_set(x_1074, 2, x_1070); +lean_ctor_set(x_1074, 3, x_1071); +lean_ctor_set(x_1074, 4, x_1072); +if (lean_is_scalar(x_1068)) { + x_1075 = lean_alloc_ctor(0, 10, 2); +} else { + x_1075 = x_1068; +} +lean_ctor_set(x_1075, 0, x_1074); +lean_ctor_set(x_1075, 1, x_1057); +lean_ctor_set(x_1075, 2, x_1058); +lean_ctor_set(x_1075, 3, x_1059); +lean_ctor_set(x_1075, 4, x_1060); +lean_ctor_set(x_1075, 5, x_1061); +lean_ctor_set(x_1075, 6, x_1062); +lean_ctor_set(x_1075, 7, x_1063); +lean_ctor_set(x_1075, 8, x_1064); +lean_ctor_set(x_1075, 9, x_1065); +lean_ctor_set_uint8(x_1075, sizeof(void*)*10, x_1066); +lean_ctor_set_uint8(x_1075, sizeof(void*)*10 + 1, x_1067); +x_1076 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1055, x_1075, x_1043); +if (lean_obj_tag(x_1076) == 0) +{ +lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; +x_1077 = lean_ctor_get(x_1076, 0); +lean_inc(x_1077); +x_1078 = lean_ctor_get(x_1076, 1); +lean_inc(x_1078); +if (lean_is_exclusive(x_1076)) { + lean_ctor_release(x_1076, 0); + lean_ctor_release(x_1076, 1); + x_1079 = x_1076; +} else { + lean_dec_ref(x_1076); + x_1079 = lean_box(0); +} +x_1080 = l_Lean_mkFVar(x_1032); +x_1081 = l_Lean_mkOptionalNode___closed__2; +x_1082 = lean_array_push(x_1081, x_1080); +x_1083 = l_Lean_LocalContext_mkLambda(x_1038, x_1082, x_1077); +lean_dec(x_1077); +lean_dec(x_1082); +if (lean_is_scalar(x_1079)) { + x_1084 = lean_alloc_ctor(0, 2, 0); +} else { + x_1084 = x_1079; +} +lean_ctor_set(x_1084, 0, x_1083); +lean_ctor_set(x_1084, 1, x_1078); +return x_1084; +} +else +{ +lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; +lean_dec(x_1038); +lean_dec(x_1032); +x_1085 = lean_ctor_get(x_1076, 0); +lean_inc(x_1085); +x_1086 = lean_ctor_get(x_1076, 1); +lean_inc(x_1086); +if (lean_is_exclusive(x_1076)) { + lean_ctor_release(x_1076, 0); + lean_ctor_release(x_1076, 1); + x_1087 = x_1076; +} else { + lean_dec_ref(x_1076); + x_1087 = lean_box(0); +} +if (lean_is_scalar(x_1087)) { + x_1088 = lean_alloc_ctor(1, 2, 0); +} else { + x_1088 = x_1087; +} +lean_ctor_set(x_1088, 0, x_1085); +lean_ctor_set(x_1088, 1, x_1086); +return x_1088; +} +} +} +else +{ +lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; uint8_t x_1094; lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; lean_object* x_1108; lean_object* x_1109; lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; uint8_t x_1123; uint8_t x_1124; lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; +x_1089 = l_Lean_Syntax_getIdAt(x_954, x_952); +lean_dec(x_954); +x_1090 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_1091 = lean_ctor_get(x_1090, 0); +lean_inc(x_1091); +x_1092 = lean_ctor_get(x_1090, 1); +lean_inc(x_1092); +lean_dec(x_1090); +x_1093 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +x_1094 = 0; +lean_inc_n(x_1089, 2); +x_1095 = lean_local_ctx_mk_local_decl(x_1091, x_1089, x_1089, x_1093, x_1094); +x_1096 = l_Array_eraseIdx___rarg(x_948, x_952); +x_1097 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1092); +x_1098 = lean_ctor_get(x_1097, 1); +lean_inc(x_1098); +lean_dec(x_1097); +x_1099 = l_Lean_Elab_Term_getMainModule___rarg(x_1098); +x_1100 = lean_ctor_get(x_1099, 1); +lean_inc(x_1100); +lean_dec(x_1099); +x_1101 = lean_name_mk_string(x_957, x_760); +x_1102 = l_Lean_nullKind___closed__1; +x_1103 = lean_name_mk_string(x_27, x_1102); +x_1104 = l_Array_empty___closed__1; +x_1105 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1096, x_1096, x_952, x_1104); +lean_dec(x_1096); +x_1106 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1106, 0, x_1103); +lean_ctor_set(x_1106, 1, x_1105); +x_1107 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1108 = lean_array_push(x_1107, x_1106); +x_1109 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_1110 = lean_array_push(x_1108, x_1109); +x_1111 = lean_array_push(x_1110, x_950); +x_1112 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1112, 0, x_1101); +lean_ctor_set(x_1112, 1, x_1111); +x_1113 = lean_ctor_get(x_2, 0); +lean_inc(x_1113); +x_1114 = lean_ctor_get(x_2, 1); +lean_inc(x_1114); +x_1115 = lean_ctor_get(x_2, 2); +lean_inc(x_1115); +x_1116 = lean_ctor_get(x_2, 3); +lean_inc(x_1116); +x_1117 = lean_ctor_get(x_2, 4); +lean_inc(x_1117); +x_1118 = lean_ctor_get(x_2, 5); +lean_inc(x_1118); +x_1119 = lean_ctor_get(x_2, 6); +lean_inc(x_1119); +x_1120 = lean_ctor_get(x_2, 7); +lean_inc(x_1120); +x_1121 = lean_ctor_get(x_2, 8); +lean_inc(x_1121); +x_1122 = lean_ctor_get(x_2, 9); +lean_inc(x_1122); +x_1123 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_1124 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_1125 = x_2; +} else { + lean_dec_ref(x_2); + x_1125 = lean_box(0); +} +x_1126 = lean_ctor_get(x_1113, 0); +lean_inc(x_1126); +x_1127 = lean_ctor_get(x_1113, 2); +lean_inc(x_1127); +x_1128 = lean_ctor_get(x_1113, 3); +lean_inc(x_1128); +x_1129 = lean_ctor_get(x_1113, 4); +lean_inc(x_1129); +if (lean_is_exclusive(x_1113)) { + lean_ctor_release(x_1113, 0); + lean_ctor_release(x_1113, 1); + lean_ctor_release(x_1113, 2); + lean_ctor_release(x_1113, 3); + lean_ctor_release(x_1113, 4); + x_1130 = x_1113; +} else { + lean_dec_ref(x_1113); + x_1130 = lean_box(0); +} +lean_inc(x_1095); +if (lean_is_scalar(x_1130)) { + x_1131 = lean_alloc_ctor(0, 5, 0); +} else { + x_1131 = x_1130; +} +lean_ctor_set(x_1131, 0, x_1126); +lean_ctor_set(x_1131, 1, x_1095); +lean_ctor_set(x_1131, 2, x_1127); +lean_ctor_set(x_1131, 3, x_1128); +lean_ctor_set(x_1131, 4, x_1129); +if (lean_is_scalar(x_1125)) { + x_1132 = lean_alloc_ctor(0, 10, 2); +} else { + x_1132 = x_1125; +} +lean_ctor_set(x_1132, 0, x_1131); +lean_ctor_set(x_1132, 1, x_1114); +lean_ctor_set(x_1132, 2, x_1115); +lean_ctor_set(x_1132, 3, x_1116); +lean_ctor_set(x_1132, 4, x_1117); +lean_ctor_set(x_1132, 5, x_1118); +lean_ctor_set(x_1132, 6, x_1119); +lean_ctor_set(x_1132, 7, x_1120); +lean_ctor_set(x_1132, 8, x_1121); +lean_ctor_set(x_1132, 9, x_1122); +lean_ctor_set_uint8(x_1132, sizeof(void*)*10, x_1123); +lean_ctor_set_uint8(x_1132, sizeof(void*)*10 + 1, x_1124); +x_1133 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1112, x_1132, x_1100); +if (lean_obj_tag(x_1133) == 0) +{ +lean_object* x_1134; lean_object* x_1135; lean_object* x_1136; lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; +x_1134 = lean_ctor_get(x_1133, 0); +lean_inc(x_1134); +x_1135 = lean_ctor_get(x_1133, 1); +lean_inc(x_1135); +if (lean_is_exclusive(x_1133)) { + lean_ctor_release(x_1133, 0); + lean_ctor_release(x_1133, 1); + x_1136 = x_1133; +} else { + lean_dec_ref(x_1133); + x_1136 = lean_box(0); +} +x_1137 = l_Lean_mkFVar(x_1089); +x_1138 = l_Lean_mkOptionalNode___closed__2; +x_1139 = lean_array_push(x_1138, x_1137); +x_1140 = l_Lean_LocalContext_mkLambda(x_1095, x_1139, x_1134); +lean_dec(x_1134); +lean_dec(x_1139); +if (lean_is_scalar(x_1136)) { x_1141 = lean_alloc_ctor(0, 2, 0); } else { - x_1141 = x_1138; + x_1141 = x_1136; } lean_ctor_set(x_1141, 0, x_1140); -lean_ctor_set(x_1141, 1, x_1137); +lean_ctor_set(x_1141, 1, x_1135); return x_1141; } +else +{ +lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; +lean_dec(x_1095); +lean_dec(x_1089); +x_1142 = lean_ctor_get(x_1133, 0); +lean_inc(x_1142); +x_1143 = lean_ctor_get(x_1133, 1); +lean_inc(x_1143); +if (lean_is_exclusive(x_1133)) { + lean_ctor_release(x_1133, 0); + lean_ctor_release(x_1133, 1); + x_1144 = x_1133; +} else { + lean_dec_ref(x_1133); + x_1144 = lean_box(0); +} +if (lean_is_scalar(x_1144)) { + x_1145 = lean_alloc_ctor(1, 2, 0); +} else { + x_1145 = x_1144; +} +lean_ctor_set(x_1145, 0, x_1142); +lean_ctor_set(x_1145, 1, x_1143); +return x_1145; +} +} +} +else +{ +lean_dec(x_948); +x_1 = x_950; +goto _start; +} +} +} +else +{ +lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; +lean_free_object(x_26); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +x_1147 = l_Lean_Syntax_inhabited; +x_1148 = lean_unsigned_to_nat(0u); +x_1149 = lean_array_get(x_1147, x_4, x_1148); +lean_dec(x_4); +if (lean_obj_tag(x_1149) == 3) +{ +lean_object* x_1150; lean_object* x_1151; lean_object* x_1152; lean_object* x_1153; +x_1150 = lean_ctor_get(x_1149, 2); +lean_inc(x_1150); +x_1151 = lean_ctor_get(x_1149, 3); +lean_inc(x_1151); +lean_dec(x_1149); +x_1152 = lean_box(0); +lean_inc(x_2); +x_1153 = l_Lean_Elab_Term_resolveName(x_1, x_1150, x_1151, x_1152, x_2, x_3); +lean_dec(x_1); +if (lean_obj_tag(x_1153) == 0) +{ +lean_object* x_1154; +x_1154 = lean_ctor_get(x_1153, 0); +lean_inc(x_1154); +if (lean_obj_tag(x_1154) == 0) +{ +lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; +x_1155 = lean_ctor_get(x_1153, 1); +lean_inc(x_1155); +lean_dec(x_1153); +x_1156 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_1157 = l_unreachable_x21___rarg(x_1156); +x_1158 = lean_apply_2(x_1157, x_2, x_1155); +return x_1158; +} +else +{ +lean_object* x_1159; lean_object* x_1160; +lean_dec(x_2); +x_1159 = lean_ctor_get(x_1154, 0); +lean_inc(x_1159); +lean_dec(x_1154); +x_1160 = lean_ctor_get(x_1159, 0); +lean_inc(x_1160); +switch (lean_obj_tag(x_1160)) { +case 0: +{ +lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; +x_1161 = lean_ctor_get(x_1153, 1); +lean_inc(x_1161); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1162 = x_1153; +} else { + lean_dec_ref(x_1153); + x_1162 = lean_box(0); +} +x_1163 = lean_ctor_get(x_1159, 1); +lean_inc(x_1163); +lean_dec(x_1159); +x_1164 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_1160, x_1163); +if (lean_is_scalar(x_1162)) { + x_1165 = lean_alloc_ctor(0, 2, 0); +} else { + x_1165 = x_1162; +} +lean_ctor_set(x_1165, 0, x_1164); +lean_ctor_set(x_1165, 1, x_1161); +return x_1165; +} case 1: { -lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; lean_object* x_1145; lean_object* x_1146; -x_1142 = lean_ctor_get(x_1129, 1); -lean_inc(x_1142); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1143 = x_1129; +lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; +x_1166 = lean_ctor_get(x_1153, 1); +lean_inc(x_1166); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1167 = x_1153; } else { - lean_dec_ref(x_1129); - x_1143 = lean_box(0); + lean_dec_ref(x_1153); + x_1167 = lean_box(0); } -x_1144 = lean_ctor_get(x_1135, 1); -lean_inc(x_1144); -lean_dec(x_1135); -x_1145 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_1136, x_1144); -if (lean_is_scalar(x_1143)) { - x_1146 = lean_alloc_ctor(0, 2, 0); +x_1168 = lean_ctor_get(x_1159, 1); +lean_inc(x_1168); +lean_dec(x_1159); +x_1169 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_1160, x_1168); +if (lean_is_scalar(x_1167)) { + x_1170 = lean_alloc_ctor(0, 2, 0); } else { - x_1146 = x_1143; + x_1170 = x_1167; } -lean_ctor_set(x_1146, 0, x_1145); -lean_ctor_set(x_1146, 1, x_1142); -return x_1146; +lean_ctor_set(x_1170, 0, x_1169); +lean_ctor_set(x_1170, 1, x_1166); +return x_1170; } case 2: { -lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; -x_1147 = lean_ctor_get(x_1129, 1); -lean_inc(x_1147); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1148 = x_1129; +lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; +x_1171 = lean_ctor_get(x_1153, 1); +lean_inc(x_1171); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1172 = x_1153; } else { - lean_dec_ref(x_1129); - x_1148 = lean_box(0); + lean_dec_ref(x_1153); + x_1172 = lean_box(0); } -x_1149 = lean_ctor_get(x_1135, 1); -lean_inc(x_1149); -lean_dec(x_1135); -x_1150 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_1136, x_1149); -if (lean_is_scalar(x_1148)) { - x_1151 = lean_alloc_ctor(0, 2, 0); +x_1173 = lean_ctor_get(x_1159, 1); +lean_inc(x_1173); +lean_dec(x_1159); +x_1174 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_1160, x_1173); +if (lean_is_scalar(x_1172)) { + x_1175 = lean_alloc_ctor(0, 2, 0); } else { - x_1151 = x_1148; + x_1175 = x_1172; } -lean_ctor_set(x_1151, 0, x_1150); -lean_ctor_set(x_1151, 1, x_1147); -return x_1151; +lean_ctor_set(x_1175, 0, x_1174); +lean_ctor_set(x_1175, 1, x_1171); +return x_1175; } case 3: { -lean_object* x_1152; lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; -x_1152 = lean_ctor_get(x_1129, 1); -lean_inc(x_1152); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1153 = x_1129; +lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; +x_1176 = lean_ctor_get(x_1153, 1); +lean_inc(x_1176); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1177 = x_1153; } else { - lean_dec_ref(x_1129); - x_1153 = lean_box(0); + lean_dec_ref(x_1153); + x_1177 = lean_box(0); } -x_1154 = lean_ctor_get(x_1135, 1); -lean_inc(x_1154); -lean_dec(x_1135); -x_1155 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_1136, x_1154); -if (lean_is_scalar(x_1153)) { - x_1156 = lean_alloc_ctor(0, 2, 0); +x_1178 = lean_ctor_get(x_1159, 1); +lean_inc(x_1178); +lean_dec(x_1159); +x_1179 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_1160, x_1178); +if (lean_is_scalar(x_1177)) { + x_1180 = lean_alloc_ctor(0, 2, 0); } else { - x_1156 = x_1153; + x_1180 = x_1177; } -lean_ctor_set(x_1156, 0, x_1155); -lean_ctor_set(x_1156, 1, x_1152); -return x_1156; +lean_ctor_set(x_1180, 0, x_1179); +lean_ctor_set(x_1180, 1, x_1176); +return x_1180; } case 4: { -lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; -x_1157 = lean_ctor_get(x_1129, 1); -lean_inc(x_1157); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1158 = x_1129; +lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; +x_1181 = lean_ctor_get(x_1153, 1); +lean_inc(x_1181); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1182 = x_1153; } else { - lean_dec_ref(x_1129); - x_1158 = lean_box(0); + lean_dec_ref(x_1153); + x_1182 = lean_box(0); } -x_1159 = lean_ctor_get(x_1135, 1); -lean_inc(x_1159); -lean_dec(x_1135); -x_1160 = lean_ctor_get(x_1136, 0); -lean_inc(x_1160); -lean_dec(x_1136); -x_1161 = l_Lean_mkConst(x_1160, x_1128); -x_1162 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_1161, x_1159); -if (lean_is_scalar(x_1158)) { - x_1163 = lean_alloc_ctor(0, 2, 0); +x_1183 = lean_ctor_get(x_1159, 1); +lean_inc(x_1183); +lean_dec(x_1159); +x_1184 = lean_ctor_get(x_1160, 0); +lean_inc(x_1184); +lean_dec(x_1160); +x_1185 = l_Lean_mkConst(x_1184, x_1152); +x_1186 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_1185, x_1183); +if (lean_is_scalar(x_1182)) { + x_1187 = lean_alloc_ctor(0, 2, 0); } else { - x_1163 = x_1158; + x_1187 = x_1182; } -lean_ctor_set(x_1163, 0, x_1162); -lean_ctor_set(x_1163, 1, x_1157); -return x_1163; +lean_ctor_set(x_1187, 0, x_1186); +lean_ctor_set(x_1187, 1, x_1181); +return x_1187; } case 5: { -lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; -x_1164 = lean_ctor_get(x_1129, 1); -lean_inc(x_1164); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1165 = x_1129; +lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; +x_1188 = lean_ctor_get(x_1153, 1); +lean_inc(x_1188); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1189 = x_1153; } else { - lean_dec_ref(x_1129); - x_1165 = lean_box(0); + lean_dec_ref(x_1153); + x_1189 = lean_box(0); } -x_1166 = lean_ctor_get(x_1135, 1); -lean_inc(x_1166); -lean_dec(x_1135); -x_1167 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_1136, x_1166); -if (lean_is_scalar(x_1165)) { - x_1168 = lean_alloc_ctor(0, 2, 0); +x_1190 = lean_ctor_get(x_1159, 1); +lean_inc(x_1190); +lean_dec(x_1159); +x_1191 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_1160, x_1190); +if (lean_is_scalar(x_1189)) { + x_1192 = lean_alloc_ctor(0, 2, 0); } else { - x_1168 = x_1165; + x_1192 = x_1189; } -lean_ctor_set(x_1168, 0, x_1167); -lean_ctor_set(x_1168, 1, x_1164); -return x_1168; +lean_ctor_set(x_1192, 0, x_1191); +lean_ctor_set(x_1192, 1, x_1188); +return x_1192; } case 6: { -lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; -x_1169 = lean_ctor_get(x_1129, 1); -lean_inc(x_1169); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1170 = x_1129; +lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; +x_1193 = lean_ctor_get(x_1153, 1); +lean_inc(x_1193); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1194 = x_1153; } else { - lean_dec_ref(x_1129); - x_1170 = lean_box(0); + lean_dec_ref(x_1153); + x_1194 = lean_box(0); } -x_1171 = lean_ctor_get(x_1135, 1); -lean_inc(x_1171); -lean_dec(x_1135); -x_1172 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_1136, x_1171); -if (lean_is_scalar(x_1170)) { - x_1173 = lean_alloc_ctor(0, 2, 0); +x_1195 = lean_ctor_get(x_1159, 1); +lean_inc(x_1195); +lean_dec(x_1159); +x_1196 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_1160, x_1195); +if (lean_is_scalar(x_1194)) { + x_1197 = lean_alloc_ctor(0, 2, 0); } else { - x_1173 = x_1170; + x_1197 = x_1194; } -lean_ctor_set(x_1173, 0, x_1172); -lean_ctor_set(x_1173, 1, x_1169); -return x_1173; +lean_ctor_set(x_1197, 0, x_1196); +lean_ctor_set(x_1197, 1, x_1193); +return x_1197; } case 7: { -lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; -x_1174 = lean_ctor_get(x_1129, 1); -lean_inc(x_1174); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1175 = x_1129; +lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; +x_1198 = lean_ctor_get(x_1153, 1); +lean_inc(x_1198); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1199 = x_1153; } else { - lean_dec_ref(x_1129); - x_1175 = lean_box(0); + lean_dec_ref(x_1153); + x_1199 = lean_box(0); } -x_1176 = lean_ctor_get(x_1135, 1); -lean_inc(x_1176); -lean_dec(x_1135); -x_1177 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_1136, x_1176); -if (lean_is_scalar(x_1175)) { - x_1178 = lean_alloc_ctor(0, 2, 0); +x_1200 = lean_ctor_get(x_1159, 1); +lean_inc(x_1200); +lean_dec(x_1159); +x_1201 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_1160, x_1200); +if (lean_is_scalar(x_1199)) { + x_1202 = lean_alloc_ctor(0, 2, 0); } else { - x_1178 = x_1175; + x_1202 = x_1199; } -lean_ctor_set(x_1178, 0, x_1177); -lean_ctor_set(x_1178, 1, x_1174); -return x_1178; +lean_ctor_set(x_1202, 0, x_1201); +lean_ctor_set(x_1202, 1, x_1198); +return x_1202; } case 8: { -lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; -x_1179 = lean_ctor_get(x_1129, 1); -lean_inc(x_1179); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1180 = x_1129; +lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; +x_1203 = lean_ctor_get(x_1153, 1); +lean_inc(x_1203); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1204 = x_1153; } else { - lean_dec_ref(x_1129); - x_1180 = lean_box(0); + lean_dec_ref(x_1153); + x_1204 = lean_box(0); } -x_1181 = lean_ctor_get(x_1135, 1); -lean_inc(x_1181); -lean_dec(x_1135); -x_1182 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_1136, x_1181); -if (lean_is_scalar(x_1180)) { - x_1183 = lean_alloc_ctor(0, 2, 0); +x_1205 = lean_ctor_get(x_1159, 1); +lean_inc(x_1205); +lean_dec(x_1159); +x_1206 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_1160, x_1205); +if (lean_is_scalar(x_1204)) { + x_1207 = lean_alloc_ctor(0, 2, 0); } else { - x_1183 = x_1180; + x_1207 = x_1204; } -lean_ctor_set(x_1183, 0, x_1182); -lean_ctor_set(x_1183, 1, x_1179); -return x_1183; +lean_ctor_set(x_1207, 0, x_1206); +lean_ctor_set(x_1207, 1, x_1203); +return x_1207; } case 9: { -lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; -x_1184 = lean_ctor_get(x_1129, 1); -lean_inc(x_1184); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1185 = x_1129; +lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; +x_1208 = lean_ctor_get(x_1153, 1); +lean_inc(x_1208); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1209 = x_1153; } else { - lean_dec_ref(x_1129); - x_1185 = lean_box(0); + lean_dec_ref(x_1153); + x_1209 = lean_box(0); } -x_1186 = lean_ctor_get(x_1135, 1); -lean_inc(x_1186); -lean_dec(x_1135); -x_1187 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_1136, x_1186); -if (lean_is_scalar(x_1185)) { - x_1188 = lean_alloc_ctor(0, 2, 0); +x_1210 = lean_ctor_get(x_1159, 1); +lean_inc(x_1210); +lean_dec(x_1159); +x_1211 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_1160, x_1210); +if (lean_is_scalar(x_1209)) { + x_1212 = lean_alloc_ctor(0, 2, 0); } else { - x_1188 = x_1185; + x_1212 = x_1209; } -lean_ctor_set(x_1188, 0, x_1187); -lean_ctor_set(x_1188, 1, x_1184); -return x_1188; +lean_ctor_set(x_1212, 0, x_1211); +lean_ctor_set(x_1212, 1, x_1208); +return x_1212; } case 10: { -lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; -x_1189 = lean_ctor_get(x_1129, 1); -lean_inc(x_1189); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1190 = x_1129; +lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; +x_1213 = lean_ctor_get(x_1153, 1); +lean_inc(x_1213); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1214 = x_1153; } else { - lean_dec_ref(x_1129); - x_1190 = lean_box(0); + lean_dec_ref(x_1153); + x_1214 = lean_box(0); } -x_1191 = lean_ctor_get(x_1135, 1); -lean_inc(x_1191); -lean_dec(x_1135); -x_1192 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_1136, x_1191); -if (lean_is_scalar(x_1190)) { - x_1193 = lean_alloc_ctor(0, 2, 0); +x_1215 = lean_ctor_get(x_1159, 1); +lean_inc(x_1215); +lean_dec(x_1159); +x_1216 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_1160, x_1215); +if (lean_is_scalar(x_1214)) { + x_1217 = lean_alloc_ctor(0, 2, 0); } else { - x_1193 = x_1190; + x_1217 = x_1214; } -lean_ctor_set(x_1193, 0, x_1192); -lean_ctor_set(x_1193, 1, x_1189); -return x_1193; +lean_ctor_set(x_1217, 0, x_1216); +lean_ctor_set(x_1217, 1, x_1213); +return x_1217; } case 11: { -lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; -x_1194 = lean_ctor_get(x_1129, 1); -lean_inc(x_1194); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1195 = x_1129; +lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; +x_1218 = lean_ctor_get(x_1153, 1); +lean_inc(x_1218); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1219 = x_1153; } else { - lean_dec_ref(x_1129); - x_1195 = lean_box(0); + lean_dec_ref(x_1153); + x_1219 = lean_box(0); } -x_1196 = lean_ctor_get(x_1135, 1); -lean_inc(x_1196); -lean_dec(x_1135); -x_1197 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_1136, x_1196); -if (lean_is_scalar(x_1195)) { - x_1198 = lean_alloc_ctor(0, 2, 0); +x_1220 = lean_ctor_get(x_1159, 1); +lean_inc(x_1220); +lean_dec(x_1159); +x_1221 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_1160, x_1220); +if (lean_is_scalar(x_1219)) { + x_1222 = lean_alloc_ctor(0, 2, 0); } else { - x_1198 = x_1195; + x_1222 = x_1219; } -lean_ctor_set(x_1198, 0, x_1197); -lean_ctor_set(x_1198, 1, x_1194); -return x_1198; +lean_ctor_set(x_1222, 0, x_1221); +lean_ctor_set(x_1222, 1, x_1218); +return x_1222; } default: { -lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; -x_1199 = lean_ctor_get(x_1129, 1); -lean_inc(x_1199); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1200 = x_1129; +lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; +x_1223 = lean_ctor_get(x_1153, 1); +lean_inc(x_1223); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1224 = x_1153; } else { - lean_dec_ref(x_1129); - x_1200 = lean_box(0); + lean_dec_ref(x_1153); + x_1224 = lean_box(0); } -x_1201 = lean_ctor_get(x_1135, 1); -lean_inc(x_1201); -lean_dec(x_1135); -x_1202 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_1136, x_1201); -if (lean_is_scalar(x_1200)) { - x_1203 = lean_alloc_ctor(0, 2, 0); +x_1225 = lean_ctor_get(x_1159, 1); +lean_inc(x_1225); +lean_dec(x_1159); +x_1226 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_1160, x_1225); +if (lean_is_scalar(x_1224)) { + x_1227 = lean_alloc_ctor(0, 2, 0); } else { - x_1203 = x_1200; + x_1227 = x_1224; } -lean_ctor_set(x_1203, 0, x_1202); -lean_ctor_set(x_1203, 1, x_1199); -return x_1203; +lean_ctor_set(x_1227, 0, x_1226); +lean_ctor_set(x_1227, 1, x_1223); +return x_1227; } } } } else { -lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; +lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_dec(x_2); -x_1204 = lean_ctor_get(x_1129, 0); -lean_inc(x_1204); -x_1205 = lean_ctor_get(x_1129, 1); -lean_inc(x_1205); -if (lean_is_exclusive(x_1129)) { - lean_ctor_release(x_1129, 0); - lean_ctor_release(x_1129, 1); - x_1206 = x_1129; +x_1228 = lean_ctor_get(x_1153, 0); +lean_inc(x_1228); +x_1229 = lean_ctor_get(x_1153, 1); +lean_inc(x_1229); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1230 = x_1153; } else { - lean_dec_ref(x_1129); - x_1206 = lean_box(0); + lean_dec_ref(x_1153); + x_1230 = lean_box(0); } -if (lean_is_scalar(x_1206)) { - x_1207 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1230)) { + x_1231 = lean_alloc_ctor(1, 2, 0); } else { - x_1207 = x_1206; + x_1231 = x_1230; } -lean_ctor_set(x_1207, 0, x_1204); -lean_ctor_set(x_1207, 1, x_1205); -return x_1207; +lean_ctor_set(x_1231, 0, x_1228); +lean_ctor_set(x_1231, 1, x_1229); +return x_1231; } } else { -lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; -lean_dec(x_1125); +lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; +lean_dec(x_1149); lean_dec(x_1); -x_1208 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; -x_1209 = l_unreachable_x21___rarg(x_1208); -x_1210 = lean_apply_2(x_1209, x_2, x_3); -return x_1210; +x_1232 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_1233 = l_unreachable_x21___rarg(x_1232); +x_1234 = lean_apply_2(x_1233, x_2, x_3); +return x_1234; } } } @@ -19019,1254 +19177,886 @@ return x_1210; } else { -lean_object* x_1211; size_t x_1212; lean_object* x_1213; uint8_t x_1214; -x_1211 = lean_ctor_get(x_26, 1); -x_1212 = lean_ctor_get_usize(x_26, 2); -lean_inc(x_1211); +lean_object* x_1235; size_t x_1236; lean_object* x_1237; uint8_t x_1238; +x_1235 = lean_ctor_get(x_26, 1); +x_1236 = lean_ctor_get_usize(x_26, 2); +lean_inc(x_1235); lean_dec(x_26); -x_1213 = l_Lean_mkAppStx___closed__1; -x_1214 = lean_string_dec_eq(x_1211, x_1213); -lean_dec(x_1211); -if (x_1214 == 0) +x_1237 = l_Lean_mkAppStx___closed__1; +x_1238 = lean_string_dec_eq(x_1235, x_1237); +lean_dec(x_1235); +if (x_1238 == 0) { -lean_object* x_1215; +lean_object* x_1239; lean_free_object(x_25); lean_dec(x_34); lean_free_object(x_15); lean_dec(x_31); lean_dec(x_28); lean_dec(x_4); -x_1215 = lean_box(0); -x_6 = x_1215; +x_1239 = lean_box(0); +x_6 = x_1239; goto block_14; } else { -lean_object* x_1216; lean_object* x_1217; uint8_t x_1218; +lean_object* x_1240; lean_object* x_1241; uint8_t x_1242; if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); - x_1216 = x_5; + x_1240 = x_5; } else { lean_dec_ref(x_5); - x_1216 = lean_box(0); + x_1240 = lean_box(0); } -x_1217 = l_Lean_mkAppStx___closed__3; -x_1218 = lean_string_dec_eq(x_34, x_1217); -if (x_1218 == 0) -{ -lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; lean_object* x_1226; lean_object* x_1227; -lean_dec(x_4); -x_1219 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1219, 0, x_27); -lean_ctor_set(x_1219, 1, x_1213); -lean_ctor_set_usize(x_1219, 2, x_1212); -lean_ctor_set(x_25, 0, x_1219); -if (lean_is_scalar(x_1216)) { - x_1220 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1220 = x_1216; -} -lean_ctor_set(x_1220, 0, x_15); -lean_ctor_set(x_1220, 1, x_28); -lean_ctor_set_usize(x_1220, 2, x_30); -x_1221 = l_System_FilePath_dirName___closed__1; -x_1222 = l_Lean_Name_toStringWithSep___main(x_1221, x_1220); -x_1223 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1223, 0, x_1222); -x_1224 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1224, 0, x_1223); -x_1225 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_1226 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1226, 0, x_1225); -lean_ctor_set(x_1226, 1, x_1224); -x_1227 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1226, x_2, x_3); -lean_dec(x_1); -return x_1227; -} -else -{ -lean_object* x_1228; uint8_t x_1229; -lean_dec(x_34); -x_1228 = l_Lean_mkAppStx___closed__5; -x_1229 = lean_string_dec_eq(x_31, x_1228); -if (x_1229 == 0) -{ -lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; -lean_dec(x_4); -x_1230 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1230, 0, x_27); -lean_ctor_set(x_1230, 1, x_1213); -lean_ctor_set_usize(x_1230, 2, x_1212); -lean_ctor_set(x_25, 1, x_1217); -lean_ctor_set(x_25, 0, x_1230); -if (lean_is_scalar(x_1216)) { - x_1231 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1231 = x_1216; -} -lean_ctor_set(x_1231, 0, x_15); -lean_ctor_set(x_1231, 1, x_28); -lean_ctor_set_usize(x_1231, 2, x_30); -x_1232 = l_System_FilePath_dirName___closed__1; -x_1233 = l_Lean_Name_toStringWithSep___main(x_1232, x_1231); -x_1234 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1234, 0, x_1233); -x_1235 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1235, 0, x_1234); -x_1236 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_1237 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1237, 0, x_1236); -lean_ctor_set(x_1237, 1, x_1235); -x_1238 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1237, x_2, x_3); -lean_dec(x_1); -return x_1238; -} -else -{ -lean_object* x_1239; uint8_t x_1240; -lean_dec(x_31); -x_1239 = l_Lean_mkTermIdFromIdent___closed__1; -x_1240 = lean_string_dec_eq(x_28, x_1239); -if (x_1240 == 0) -{ -lean_object* x_1241; uint8_t x_1242; -x_1241 = l_Lean_Parser_Term_fun___elambda__1___closed__1; -x_1242 = lean_string_dec_eq(x_28, x_1241); +x_1241 = l_Lean_mkAppStx___closed__3; +x_1242 = lean_string_dec_eq(x_34, x_1241); if (x_1242 == 0) { -lean_object* x_1243; uint8_t x_1244; -x_1243 = l_Lean_Parser_Term_let___elambda__1___closed__1; -x_1244 = lean_string_dec_eq(x_28, x_1243); -if (x_1244 == 0) -{ -lean_object* x_1245; uint8_t x_1246; -x_1245 = l_Lean_mkAppStx___closed__7; -x_1246 = lean_string_dec_eq(x_28, x_1245); -if (x_1246 == 0) -{ -lean_object* x_1247; uint8_t x_1248; -x_1247 = l_Lean_Parser_Term_if___elambda__1___closed__1; -x_1248 = lean_string_dec_eq(x_28, x_1247); -if (x_1248 == 0) -{ -lean_object* x_1249; uint8_t x_1250; -x_1249 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__1; -x_1250 = lean_string_dec_eq(x_28, x_1249); -if (x_1250 == 0) -{ -lean_object* x_1251; uint8_t x_1252; -x_1251 = l_Lean_Parser_Term_band___elambda__1___closed__1; -x_1252 = lean_string_dec_eq(x_28, x_1251); -if (x_1252 == 0) -{ -lean_object* x_1253; uint8_t x_1254; -x_1253 = l_Lean_Parser_Term_beq___elambda__1___closed__1; -x_1254 = lean_string_dec_eq(x_28, x_1253); -if (x_1254 == 0) -{ -lean_object* x_1255; uint8_t x_1256; +lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; lean_dec(x_4); -x_1255 = l_Lean_Parser_Term_str___elambda__1___closed__1; -x_1256 = lean_string_dec_eq(x_28, x_1255); -if (x_1256 == 0) -{ -lean_object* x_1257; uint8_t x_1258; -x_1257 = l_Lean_Parser_Level_num___elambda__1___closed__1; -x_1258 = lean_string_dec_eq(x_28, x_1257); -if (x_1258 == 0) -{ -lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; -x_1259 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1259, 0, x_27); -lean_ctor_set(x_1259, 1, x_1213); -lean_ctor_set_usize(x_1259, 2, x_1212); -lean_ctor_set(x_25, 1, x_1217); -lean_ctor_set(x_25, 0, x_1259); -lean_ctor_set(x_15, 1, x_1228); -if (lean_is_scalar(x_1216)) { - x_1260 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +x_1243 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1243, 0, x_27); +lean_ctor_set(x_1243, 1, x_1237); +lean_ctor_set_usize(x_1243, 2, x_1236); +lean_ctor_set(x_25, 0, x_1243); +if (lean_is_scalar(x_1240)) { + x_1244 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); } else { - x_1260 = x_1216; + x_1244 = x_1240; } -lean_ctor_set(x_1260, 0, x_15); -lean_ctor_set(x_1260, 1, x_28); -lean_ctor_set_usize(x_1260, 2, x_30); -x_1261 = l_System_FilePath_dirName___closed__1; -x_1262 = l_Lean_Name_toStringWithSep___main(x_1261, x_1260); -x_1263 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1263, 0, x_1262); -x_1264 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1264, 0, x_1263); -x_1265 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_1266 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1266, 0, x_1265); -lean_ctor_set(x_1266, 1, x_1264); -x_1267 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1266, x_2, x_3); +lean_ctor_set(x_1244, 0, x_15); +lean_ctor_set(x_1244, 1, x_28); +lean_ctor_set_usize(x_1244, 2, x_30); +x_1245 = l_System_FilePath_dirName___closed__1; +x_1246 = l_Lean_Name_toStringWithSep___main(x_1245, x_1244); +x_1247 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1247, 0, x_1246); +x_1248 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1248, 0, x_1247); +x_1249 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_1250 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1250, 0, x_1249); +lean_ctor_set(x_1250, 1, x_1248); +x_1251 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1250, x_2, x_3); lean_dec(x_1); -return x_1267; +return x_1251; } else { -lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; -lean_dec(x_1216); -lean_free_object(x_25); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_2); -x_1268 = lean_unsigned_to_nat(0u); -x_1269 = l_Lean_Syntax_getArg(x_1, x_1268); +lean_object* x_1252; uint8_t x_1253; +lean_dec(x_34); +x_1252 = l_Lean_mkAppStx___closed__5; +x_1253 = lean_string_dec_eq(x_31, x_1252); +if (x_1253 == 0) +{ +lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; +lean_dec(x_4); +x_1254 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1254, 0, x_27); +lean_ctor_set(x_1254, 1, x_1237); +lean_ctor_set_usize(x_1254, 2, x_1236); +lean_ctor_set(x_25, 1, x_1241); +lean_ctor_set(x_25, 0, x_1254); +if (lean_is_scalar(x_1240)) { + x_1255 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1255 = x_1240; +} +lean_ctor_set(x_1255, 0, x_15); +lean_ctor_set(x_1255, 1, x_28); +lean_ctor_set_usize(x_1255, 2, x_30); +x_1256 = l_System_FilePath_dirName___closed__1; +x_1257 = l_Lean_Name_toStringWithSep___main(x_1256, x_1255); +x_1258 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1258, 0, x_1257); +x_1259 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1259, 0, x_1258); +x_1260 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_1261 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1261, 0, x_1260); +lean_ctor_set(x_1261, 1, x_1259); +x_1262 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1261, x_2, x_3); lean_dec(x_1); -x_1270 = l_Lean_numLitKind; -x_1271 = l_Lean_Syntax_isNatLitAux(x_1270, x_1269); -lean_dec(x_1269); -if (lean_obj_tag(x_1271) == 0) -{ -lean_object* x_1272; lean_object* x_1273; -x_1272 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__5; -x_1273 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1273, 0, x_1272); -lean_ctor_set(x_1273, 1, x_3); -return x_1273; +return x_1262; } else { -lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; -x_1274 = lean_ctor_get(x_1271, 0); -lean_inc(x_1274); -lean_dec(x_1271); -x_1275 = l_Lean_mkNatLit(x_1274); -x_1276 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1276, 0, x_1275); -lean_ctor_set(x_1276, 1, x_3); -return x_1276; -} -} -} -else +lean_object* x_1263; uint8_t x_1264; +lean_dec(x_31); +x_1263 = l_Lean_mkTermIdFromIdent___closed__1; +x_1264 = lean_string_dec_eq(x_28, x_1263); +if (x_1264 == 0) { -lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; -lean_dec(x_1216); -lean_free_object(x_25); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_2); -x_1277 = lean_unsigned_to_nat(0u); -x_1278 = l_Lean_Syntax_getArg(x_1, x_1277); -lean_dec(x_1); -x_1279 = l_Lean_Syntax_isStrLit_x3f(x_1278); -lean_dec(x_1278); -if (lean_obj_tag(x_1279) == 0) +lean_object* x_1265; uint8_t x_1266; +x_1265 = l_Lean_Parser_Term_fun___elambda__1___closed__1; +x_1266 = lean_string_dec_eq(x_28, x_1265); +if (x_1266 == 0) { -lean_object* x_1280; lean_object* x_1281; -x_1280 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__6; -x_1281 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1281, 0, x_1280); -lean_ctor_set(x_1281, 1, x_3); -return x_1281; -} -else +lean_object* x_1267; uint8_t x_1268; +x_1267 = l_Lean_Parser_Term_let___elambda__1___closed__1; +x_1268 = lean_string_dec_eq(x_28, x_1267); +if (x_1268 == 0) { -lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; -x_1282 = lean_ctor_get(x_1279, 0); -lean_inc(x_1282); -lean_dec(x_1279); -x_1283 = l_Lean_mkStrLit(x_1282); -x_1284 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1284, 0, x_1283); -lean_ctor_set(x_1284, 1, x_3); -return x_1284; -} -} -} -else +lean_object* x_1269; uint8_t x_1270; +x_1269 = l_Lean_mkAppStx___closed__7; +x_1270 = lean_string_dec_eq(x_28, x_1269); +if (x_1270 == 0) +{ +lean_object* x_1271; uint8_t x_1272; +x_1271 = l_Lean_Parser_Term_if___elambda__1___closed__1; +x_1272 = lean_string_dec_eq(x_28, x_1271); +if (x_1272 == 0) +{ +lean_object* x_1273; uint8_t x_1274; +x_1273 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__1; +x_1274 = lean_string_dec_eq(x_28, x_1273); +if (x_1274 == 0) +{ +lean_object* x_1275; uint8_t x_1276; +x_1275 = l_Lean_Parser_Term_band___elambda__1___closed__1; +x_1276 = lean_string_dec_eq(x_28, x_1275); +if (x_1276 == 0) +{ +lean_object* x_1277; uint8_t x_1278; +x_1277 = l_Lean_Parser_Term_beq___elambda__1___closed__1; +x_1278 = lean_string_dec_eq(x_28, x_1277); +if (x_1278 == 0) +{ +lean_object* x_1279; uint8_t x_1280; +x_1279 = l_Lean_Parser_Term_eq___elambda__1___closed__1; +x_1280 = lean_string_dec_eq(x_28, x_1279); +if (x_1280 == 0) +{ +lean_object* x_1281; uint8_t x_1282; +lean_dec(x_4); +x_1281 = l_Lean_Parser_Term_str___elambda__1___closed__1; +x_1282 = lean_string_dec_eq(x_28, x_1281); +if (x_1282 == 0) +{ +lean_object* x_1283; uint8_t x_1284; +x_1283 = l_Lean_Parser_Level_num___elambda__1___closed__1; +x_1284 = lean_string_dec_eq(x_28, x_1283); +if (x_1284 == 0) { lean_object* x_1285; lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; -lean_dec(x_1216); -lean_free_object(x_25); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_1); -x_1285 = l_Lean_Syntax_inhabited; -x_1286 = lean_unsigned_to_nat(0u); -x_1287 = lean_array_get(x_1285, x_4, x_1286); -x_1288 = lean_unsigned_to_nat(2u); -x_1289 = lean_array_get(x_1285, x_4, x_1288); -lean_dec(x_4); -x_1290 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___boxed), 6, 3); -lean_closure_set(x_1290, 0, x_27); -lean_closure_set(x_1290, 1, x_1287); -lean_closure_set(x_1290, 2, x_1289); -x_1291 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1292 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_1292, 0, x_1291); -lean_closure_set(x_1292, 1, x_1290); -x_1293 = l_Lean_Unhygienic_run___rarg(x_1292); -x_1 = x_1293; -goto _start; +x_1285 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1285, 0, x_27); +lean_ctor_set(x_1285, 1, x_1237); +lean_ctor_set_usize(x_1285, 2, x_1236); +lean_ctor_set(x_25, 1, x_1241); +lean_ctor_set(x_25, 0, x_1285); +lean_ctor_set(x_15, 1, x_1252); +if (lean_is_scalar(x_1240)) { + x_1286 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1286 = x_1240; } +lean_ctor_set(x_1286, 0, x_15); +lean_ctor_set(x_1286, 1, x_28); +lean_ctor_set_usize(x_1286, 2, x_30); +x_1287 = l_System_FilePath_dirName___closed__1; +x_1288 = l_Lean_Name_toStringWithSep___main(x_1287, x_1286); +x_1289 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1289, 0, x_1288); +x_1290 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1290, 0, x_1289); +x_1291 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_1292 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1292, 0, x_1291); +lean_ctor_set(x_1292, 1, x_1290); +x_1293 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1292, x_2, x_3); +lean_dec(x_1); +return x_1293; } else { -lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; -lean_dec(x_1216); +lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; +lean_dec(x_1240); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); -lean_dec(x_1); -x_1295 = l_Lean_Syntax_inhabited; -x_1296 = lean_unsigned_to_nat(0u); -x_1297 = lean_array_get(x_1295, x_4, x_1296); -x_1298 = lean_unsigned_to_nat(2u); -x_1299 = lean_array_get(x_1295, x_4, x_1298); -lean_dec(x_4); -x_1300 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed), 6, 3); -lean_closure_set(x_1300, 0, x_27); -lean_closure_set(x_1300, 1, x_1297); -lean_closure_set(x_1300, 2, x_1299); -x_1301 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1302 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_1302, 0, x_1301); -lean_closure_set(x_1302, 1, x_1300); -x_1303 = l_Lean_Unhygienic_run___rarg(x_1302); -x_1 = x_1303; -goto _start; -} -} -else -{ -lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; uint8_t x_1311; -lean_dec(x_1216); -lean_free_object(x_25); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_1); -x_1305 = l_Lean_Syntax_inhabited; -x_1306 = lean_unsigned_to_nat(1u); -x_1307 = lean_array_get(x_1305, x_4, x_1306); -lean_dec(x_4); -x_1308 = l_Lean_Syntax_getArgs(x_1307); -lean_dec(x_1307); -x_1309 = lean_array_get_size(x_1308); -x_1310 = lean_unsigned_to_nat(0u); -x_1311 = lean_nat_dec_eq(x_1309, x_1310); -lean_dec(x_1309); -if (x_1311 == 0) -{ -lean_object* x_1312; -x_1312 = lean_array_get(x_1305, x_1308, x_1310); -lean_dec(x_1308); -x_1 = x_1312; -goto _start; -} -else -{ -lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; -lean_dec(x_1308); lean_dec(x_2); -x_1314 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_1315 = lean_name_mk_string(x_27, x_1314); -x_1316 = l_Lean_Elab_Term_elabParen___closed__4; -x_1317 = lean_name_mk_string(x_1315, x_1316); -x_1318 = lean_box(0); -x_1319 = l_Lean_mkConst(x_1317, x_1318); -x_1320 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1320, 0, x_1319); -lean_ctor_set(x_1320, 1, x_3); -return x_1320; +x_1294 = lean_unsigned_to_nat(0u); +x_1295 = l_Lean_Syntax_getArg(x_1, x_1294); +lean_dec(x_1); +x_1296 = l_Lean_numLitKind; +x_1297 = l_Lean_Syntax_isNatLitAux(x_1296, x_1295); +lean_dec(x_1295); +if (lean_obj_tag(x_1297) == 0) +{ +lean_object* x_1298; lean_object* x_1299; +x_1298 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__5; +x_1299 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1299, 0, x_1298); +lean_ctor_set(x_1299, 1, x_3); +return x_1299; +} +else +{ +lean_object* x_1300; lean_object* x_1301; lean_object* x_1302; +x_1300 = lean_ctor_get(x_1297, 0); +lean_inc(x_1300); +lean_dec(x_1297); +x_1301 = l_Lean_mkNatLit(x_1300); +x_1302 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1302, 0, x_1301); +lean_ctor_set(x_1302, 1, x_3); +return x_1302; } } } else { -lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; -lean_dec(x_1216); +lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; +lean_dec(x_1240); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_2); +x_1303 = lean_unsigned_to_nat(0u); +x_1304 = l_Lean_Syntax_getArg(x_1, x_1303); +lean_dec(x_1); +x_1305 = l_Lean_Syntax_isStrLit_x3f(x_1304); +lean_dec(x_1304); +if (lean_obj_tag(x_1305) == 0) +{ +lean_object* x_1306; lean_object* x_1307; +x_1306 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__6; +x_1307 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1307, 0, x_1306); +lean_ctor_set(x_1307, 1, x_3); +return x_1307; +} +else +{ +lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; +x_1308 = lean_ctor_get(x_1305, 0); +lean_inc(x_1308); +lean_dec(x_1305); +x_1309 = l_Lean_mkStrLit(x_1308); +x_1310 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1310, 0, x_1309); +lean_ctor_set(x_1310, 1, x_3); +return x_1310; +} +} +} +else +{ +lean_object* x_1311; lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; +lean_dec(x_1240); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_1311 = l_Lean_Syntax_inhabited; +x_1312 = lean_unsigned_to_nat(0u); +x_1313 = lean_array_get(x_1311, x_4, x_1312); +x_1314 = lean_unsigned_to_nat(2u); +x_1315 = lean_array_get(x_1311, x_4, x_1314); +lean_dec(x_4); +x_1316 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___boxed), 6, 3); +lean_closure_set(x_1316, 0, x_27); +lean_closure_set(x_1316, 1, x_1313); +lean_closure_set(x_1316, 2, x_1315); +x_1317 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1318 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_1318, 0, x_1317); +lean_closure_set(x_1318, 1, x_1316); +x_1319 = l_Lean_Unhygienic_run___rarg(x_1318); +x_1 = x_1319; +goto _start; +} +} +else +{ +lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; +lean_dec(x_1240); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); x_1321 = l_Lean_Syntax_inhabited; -x_1322 = lean_unsigned_to_nat(2u); +x_1322 = lean_unsigned_to_nat(0u); x_1323 = lean_array_get(x_1321, x_4, x_1322); -x_1324 = lean_unsigned_to_nat(4u); +x_1324 = lean_unsigned_to_nat(2u); x_1325 = lean_array_get(x_1321, x_4, x_1324); -x_1326 = lean_unsigned_to_nat(6u); -x_1327 = lean_array_get(x_1321, x_4, x_1326); lean_dec(x_4); -x_1328 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed), 7, 4); -lean_closure_set(x_1328, 0, x_27); -lean_closure_set(x_1328, 1, x_1323); -lean_closure_set(x_1328, 2, x_1325); -lean_closure_set(x_1328, 3, x_1327); -x_1329 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1330 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_1330, 0, x_1329); -lean_closure_set(x_1330, 1, x_1328); -x_1331 = l_Lean_Unhygienic_run___rarg(x_1330); -x_1 = x_1331; +x_1326 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_1326, 0, x_27); +lean_closure_set(x_1326, 1, x_1323); +lean_closure_set(x_1326, 2, x_1325); +x_1327 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1328 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_1328, 0, x_1327); +lean_closure_set(x_1328, 1, x_1326); +x_1329 = l_Lean_Unhygienic_run___rarg(x_1328); +x_1 = x_1329; goto _start; } } else { -lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; -lean_dec(x_1216); +lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; +lean_dec(x_1240); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_1333 = l_Lean_Syntax_inhabited; -x_1334 = lean_unsigned_to_nat(0u); -x_1335 = lean_array_get(x_1333, x_4, x_1334); -lean_inc(x_2); -x_1336 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1335, x_2, x_3); -if (lean_obj_tag(x_1336) == 0) -{ -lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; -x_1337 = lean_ctor_get(x_1336, 0); -lean_inc(x_1337); -x_1338 = lean_ctor_get(x_1336, 1); -lean_inc(x_1338); -lean_dec(x_1336); -x_1339 = lean_unsigned_to_nat(1u); -x_1340 = lean_array_get(x_1333, x_4, x_1339); +x_1331 = l_Lean_Syntax_inhabited; +x_1332 = lean_unsigned_to_nat(0u); +x_1333 = lean_array_get(x_1331, x_4, x_1332); +x_1334 = lean_unsigned_to_nat(2u); +x_1335 = lean_array_get(x_1331, x_4, x_1334); lean_dec(x_4); -x_1341 = l_Lean_Syntax_getArgs(x_1340); -lean_dec(x_1340); -x_1342 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__1(x_1334, x_1341, x_2, x_1338); -if (lean_obj_tag(x_1342) == 0) -{ -lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; -x_1343 = lean_ctor_get(x_1342, 0); -lean_inc(x_1343); -x_1344 = lean_ctor_get(x_1342, 1); -lean_inc(x_1344); -if (lean_is_exclusive(x_1342)) { - lean_ctor_release(x_1342, 0); - lean_ctor_release(x_1342, 1); - x_1345 = x_1342; -} else { - lean_dec_ref(x_1342); - x_1345 = lean_box(0); +x_1336 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_1336, 0, x_27); +lean_closure_set(x_1336, 1, x_1333); +lean_closure_set(x_1336, 2, x_1335); +x_1337 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1338 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_1338, 0, x_1337); +lean_closure_set(x_1338, 1, x_1336); +x_1339 = l_Lean_Unhygienic_run___rarg(x_1338); +x_1 = x_1339; +goto _start; } -x_1346 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1343, x_1343, x_1334, x_1337); +} +else +{ +lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; uint8_t x_1347; +lean_dec(x_1240); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_1341 = l_Lean_Syntax_inhabited; +x_1342 = lean_unsigned_to_nat(1u); +x_1343 = lean_array_get(x_1341, x_4, x_1342); +lean_dec(x_4); +x_1344 = l_Lean_Syntax_getArgs(x_1343); lean_dec(x_1343); -if (lean_is_scalar(x_1345)) { - x_1347 = lean_alloc_ctor(0, 2, 0); -} else { - x_1347 = x_1345; -} -lean_ctor_set(x_1347, 0, x_1346); -lean_ctor_set(x_1347, 1, x_1344); -return x_1347; +x_1345 = lean_array_get_size(x_1344); +x_1346 = lean_unsigned_to_nat(0u); +x_1347 = lean_nat_dec_eq(x_1345, x_1346); +lean_dec(x_1345); +if (x_1347 == 0) +{ +lean_object* x_1348; +x_1348 = lean_array_get(x_1341, x_1344, x_1346); +lean_dec(x_1344); +x_1 = x_1348; +goto _start; } else { -lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; -lean_dec(x_1337); -x_1348 = lean_ctor_get(x_1342, 0); -lean_inc(x_1348); -x_1349 = lean_ctor_get(x_1342, 1); -lean_inc(x_1349); -if (lean_is_exclusive(x_1342)) { - lean_ctor_release(x_1342, 0); - lean_ctor_release(x_1342, 1); - x_1350 = x_1342; -} else { - lean_dec_ref(x_1342); - x_1350 = lean_box(0); -} -if (lean_is_scalar(x_1350)) { - x_1351 = lean_alloc_ctor(1, 2, 0); -} else { - x_1351 = x_1350; -} -lean_ctor_set(x_1351, 0, x_1348); -lean_ctor_set(x_1351, 1, x_1349); -return x_1351; -} -} -else -{ -lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; -lean_dec(x_4); +lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; +lean_dec(x_1344); lean_dec(x_2); -x_1352 = lean_ctor_get(x_1336, 0); -lean_inc(x_1352); -x_1353 = lean_ctor_get(x_1336, 1); -lean_inc(x_1353); -if (lean_is_exclusive(x_1336)) { - lean_ctor_release(x_1336, 0); - lean_ctor_release(x_1336, 1); - x_1354 = x_1336; -} else { - lean_dec_ref(x_1336); - x_1354 = lean_box(0); -} -if (lean_is_scalar(x_1354)) { - x_1355 = lean_alloc_ctor(1, 2, 0); -} else { - x_1355 = x_1354; -} -lean_ctor_set(x_1355, 0, x_1352); -lean_ctor_set(x_1355, 1, x_1353); -return x_1355; +x_1350 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_1351 = lean_name_mk_string(x_27, x_1350); +x_1352 = l_Lean_Elab_Term_elabParen___closed__4; +x_1353 = lean_name_mk_string(x_1351, x_1352); +x_1354 = lean_box(0); +x_1355 = l_Lean_mkConst(x_1353, x_1354); +x_1356 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1356, 0, x_1355); +lean_ctor_set(x_1356, 1, x_3); +return x_1356; } } } else { -lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; uint8_t x_1361; lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; -lean_dec(x_1216); +lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; +lean_dec(x_1240); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_1356 = l_Lean_Syntax_inhabited; -x_1357 = lean_unsigned_to_nat(1u); -x_1358 = lean_array_get(x_1356, x_4, x_1357); -x_1359 = lean_unsigned_to_nat(0u); -x_1360 = l_Lean_Syntax_getArg(x_1358, x_1359); -x_1361 = l_Lean_Syntax_isIdent(x_1360); -x_1362 = lean_unsigned_to_nat(4u); -x_1363 = l_Lean_Syntax_getArg(x_1358, x_1362); -lean_dec(x_1358); -x_1364 = lean_unsigned_to_nat(3u); -x_1365 = lean_array_get(x_1356, x_4, x_1364); +x_1357 = l_Lean_Syntax_inhabited; +x_1358 = lean_unsigned_to_nat(2u); +x_1359 = lean_array_get(x_1357, x_4, x_1358); +x_1360 = lean_unsigned_to_nat(4u); +x_1361 = lean_array_get(x_1357, x_4, x_1360); +x_1362 = lean_unsigned_to_nat(6u); +x_1363 = lean_array_get(x_1357, x_4, x_1362); lean_dec(x_4); -if (x_1361 == 0) -{ -lean_object* x_1413; -x_1413 = l_Lean_Syntax_getIdAt(x_1360, x_1359); -lean_dec(x_1360); -x_1366 = x_1413; -goto block_1412; +x_1364 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_1364, 0, x_27); +lean_closure_set(x_1364, 1, x_1359); +lean_closure_set(x_1364, 2, x_1361); +lean_closure_set(x_1364, 3, x_1363); +x_1365 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1366 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_1366, 0, x_1365); +lean_closure_set(x_1366, 1, x_1364); +x_1367 = l_Lean_Unhygienic_run___rarg(x_1366); +x_1 = x_1367; +goto _start; +} } else { -lean_object* x_1414; -x_1414 = l_Lean_Syntax_getId(x_1360); -lean_dec(x_1360); -x_1366 = x_1414; -goto block_1412; -} -block_1412: -{ -lean_object* x_1367; +lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; +lean_dec(x_1240); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_1369 = l_Lean_Syntax_inhabited; +x_1370 = lean_unsigned_to_nat(0u); +x_1371 = lean_array_get(x_1369, x_4, x_1370); lean_inc(x_2); -x_1367 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1363, x_2, x_3); -if (lean_obj_tag(x_1367) == 0) +x_1372 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1371, x_2, x_3); +if (lean_obj_tag(x_1372) == 0) { -lean_object* x_1368; lean_object* x_1369; lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; lean_object* x_1382; lean_object* x_1383; lean_object* x_1384; uint8_t x_1385; uint8_t x_1386; lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; lean_object* x_1395; -x_1368 = lean_ctor_get(x_1367, 0); -lean_inc(x_1368); -x_1369 = lean_ctor_get(x_1367, 1); -lean_inc(x_1369); -lean_dec(x_1367); -x_1370 = l_Lean_Elab_Term_getLCtx(x_2, x_1369); -x_1371 = lean_ctor_get(x_1370, 0); -lean_inc(x_1371); -x_1372 = lean_ctor_get(x_1370, 1); -lean_inc(x_1372); -lean_dec(x_1370); -x_1373 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -lean_inc_n(x_1366, 2); -x_1374 = lean_local_ctx_mk_let_decl(x_1371, x_1366, x_1366, x_1373, x_1368); -x_1375 = lean_ctor_get(x_2, 0); -lean_inc(x_1375); -x_1376 = lean_ctor_get(x_2, 1); -lean_inc(x_1376); -x_1377 = lean_ctor_get(x_2, 2); -lean_inc(x_1377); -x_1378 = lean_ctor_get(x_2, 3); -lean_inc(x_1378); -x_1379 = lean_ctor_get(x_2, 4); -lean_inc(x_1379); -x_1380 = lean_ctor_get(x_2, 5); -lean_inc(x_1380); -x_1381 = lean_ctor_get(x_2, 6); -lean_inc(x_1381); -x_1382 = lean_ctor_get(x_2, 7); -lean_inc(x_1382); -x_1383 = lean_ctor_get(x_2, 8); -lean_inc(x_1383); -x_1384 = lean_ctor_get(x_2, 9); -lean_inc(x_1384); -x_1385 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1386 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1387 = x_2; -} else { - lean_dec_ref(x_2); - x_1387 = lean_box(0); -} -x_1388 = lean_ctor_get(x_1375, 0); -lean_inc(x_1388); -x_1389 = lean_ctor_get(x_1375, 2); -lean_inc(x_1389); -x_1390 = lean_ctor_get(x_1375, 3); -lean_inc(x_1390); -x_1391 = lean_ctor_get(x_1375, 4); -lean_inc(x_1391); -if (lean_is_exclusive(x_1375)) { - lean_ctor_release(x_1375, 0); - lean_ctor_release(x_1375, 1); - lean_ctor_release(x_1375, 2); - lean_ctor_release(x_1375, 3); - lean_ctor_release(x_1375, 4); - x_1392 = x_1375; -} else { - lean_dec_ref(x_1375); - x_1392 = lean_box(0); -} +lean_object* x_1373; lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; +x_1373 = lean_ctor_get(x_1372, 0); +lean_inc(x_1373); +x_1374 = lean_ctor_get(x_1372, 1); lean_inc(x_1374); -if (lean_is_scalar(x_1392)) { - x_1393 = lean_alloc_ctor(0, 5, 0); -} else { - x_1393 = x_1392; -} -lean_ctor_set(x_1393, 0, x_1388); -lean_ctor_set(x_1393, 1, x_1374); -lean_ctor_set(x_1393, 2, x_1389); -lean_ctor_set(x_1393, 3, x_1390); -lean_ctor_set(x_1393, 4, x_1391); -if (lean_is_scalar(x_1387)) { - x_1394 = lean_alloc_ctor(0, 10, 2); -} else { - x_1394 = x_1387; -} -lean_ctor_set(x_1394, 0, x_1393); -lean_ctor_set(x_1394, 1, x_1376); -lean_ctor_set(x_1394, 2, x_1377); -lean_ctor_set(x_1394, 3, x_1378); -lean_ctor_set(x_1394, 4, x_1379); -lean_ctor_set(x_1394, 5, x_1380); -lean_ctor_set(x_1394, 6, x_1381); -lean_ctor_set(x_1394, 7, x_1382); -lean_ctor_set(x_1394, 8, x_1383); -lean_ctor_set(x_1394, 9, x_1384); -lean_ctor_set_uint8(x_1394, sizeof(void*)*10, x_1385); -lean_ctor_set_uint8(x_1394, sizeof(void*)*10 + 1, x_1386); -x_1395 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1365, x_1394, x_1372); -if (lean_obj_tag(x_1395) == 0) +lean_dec(x_1372); +x_1375 = lean_unsigned_to_nat(1u); +x_1376 = lean_array_get(x_1369, x_4, x_1375); +lean_dec(x_4); +x_1377 = l_Lean_Syntax_getArgs(x_1376); +lean_dec(x_1376); +x_1378 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__1(x_1370, x_1377, x_2, x_1374); +if (lean_obj_tag(x_1378) == 0) { -lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; lean_object* x_1403; -x_1396 = lean_ctor_get(x_1395, 0); -lean_inc(x_1396); -x_1397 = lean_ctor_get(x_1395, 1); -lean_inc(x_1397); -if (lean_is_exclusive(x_1395)) { - lean_ctor_release(x_1395, 0); - lean_ctor_release(x_1395, 1); - x_1398 = x_1395; +lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; lean_object* x_1382; lean_object* x_1383; +x_1379 = lean_ctor_get(x_1378, 0); +lean_inc(x_1379); +x_1380 = lean_ctor_get(x_1378, 1); +lean_inc(x_1380); +if (lean_is_exclusive(x_1378)) { + lean_ctor_release(x_1378, 0); + lean_ctor_release(x_1378, 1); + x_1381 = x_1378; } else { - lean_dec_ref(x_1395); - x_1398 = lean_box(0); + lean_dec_ref(x_1378); + x_1381 = lean_box(0); } -x_1399 = l_Lean_mkFVar(x_1366); -x_1400 = l_Lean_mkOptionalNode___closed__2; -x_1401 = lean_array_push(x_1400, x_1399); -x_1402 = l_Lean_LocalContext_mkLambda(x_1374, x_1401, x_1396); -lean_dec(x_1396); -lean_dec(x_1401); -if (lean_is_scalar(x_1398)) { - x_1403 = lean_alloc_ctor(0, 2, 0); +x_1382 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1379, x_1379, x_1370, x_1373); +lean_dec(x_1379); +if (lean_is_scalar(x_1381)) { + x_1383 = lean_alloc_ctor(0, 2, 0); } else { - x_1403 = x_1398; + x_1383 = x_1381; } -lean_ctor_set(x_1403, 0, x_1402); -lean_ctor_set(x_1403, 1, x_1397); -return x_1403; +lean_ctor_set(x_1383, 0, x_1382); +lean_ctor_set(x_1383, 1, x_1380); +return x_1383; } else { -lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; lean_object* x_1407; -lean_dec(x_1374); -lean_dec(x_1366); -x_1404 = lean_ctor_get(x_1395, 0); -lean_inc(x_1404); -x_1405 = lean_ctor_get(x_1395, 1); -lean_inc(x_1405); -if (lean_is_exclusive(x_1395)) { - lean_ctor_release(x_1395, 0); - lean_ctor_release(x_1395, 1); - x_1406 = x_1395; +lean_object* x_1384; lean_object* x_1385; lean_object* x_1386; lean_object* x_1387; +lean_dec(x_1373); +x_1384 = lean_ctor_get(x_1378, 0); +lean_inc(x_1384); +x_1385 = lean_ctor_get(x_1378, 1); +lean_inc(x_1385); +if (lean_is_exclusive(x_1378)) { + lean_ctor_release(x_1378, 0); + lean_ctor_release(x_1378, 1); + x_1386 = x_1378; } else { - lean_dec_ref(x_1395); - x_1406 = lean_box(0); + lean_dec_ref(x_1378); + x_1386 = lean_box(0); } -if (lean_is_scalar(x_1406)) { - x_1407 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1386)) { + x_1387 = lean_alloc_ctor(1, 2, 0); } else { - x_1407 = x_1406; + x_1387 = x_1386; } -lean_ctor_set(x_1407, 0, x_1404); -lean_ctor_set(x_1407, 1, x_1405); -return x_1407; +lean_ctor_set(x_1387, 0, x_1384); +lean_ctor_set(x_1387, 1, x_1385); +return x_1387; } } else { -lean_object* x_1408; lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; -lean_dec(x_1366); -lean_dec(x_1365); +lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; +lean_dec(x_4); lean_dec(x_2); -x_1408 = lean_ctor_get(x_1367, 0); -lean_inc(x_1408); -x_1409 = lean_ctor_get(x_1367, 1); -lean_inc(x_1409); -if (lean_is_exclusive(x_1367)) { - lean_ctor_release(x_1367, 0); - lean_ctor_release(x_1367, 1); - x_1410 = x_1367; +x_1388 = lean_ctor_get(x_1372, 0); +lean_inc(x_1388); +x_1389 = lean_ctor_get(x_1372, 1); +lean_inc(x_1389); +if (lean_is_exclusive(x_1372)) { + lean_ctor_release(x_1372, 0); + lean_ctor_release(x_1372, 1); + x_1390 = x_1372; } else { - lean_dec_ref(x_1367); - x_1410 = lean_box(0); + lean_dec_ref(x_1372); + x_1390 = lean_box(0); } -if (lean_is_scalar(x_1410)) { - x_1411 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1390)) { + x_1391 = lean_alloc_ctor(1, 2, 0); } else { - x_1411 = x_1410; -} -lean_ctor_set(x_1411, 0, x_1408); -lean_ctor_set(x_1411, 1, x_1409); -return x_1411; + x_1391 = x_1390; } +lean_ctor_set(x_1391, 0, x_1388); +lean_ctor_set(x_1391, 1, x_1389); +return x_1391; } } } else { -lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; uint8_t x_1423; -lean_dec(x_1216); +lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; lean_object* x_1395; lean_object* x_1396; uint8_t x_1397; lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; +lean_dec(x_1240); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_1415 = l_Lean_Syntax_inhabited; -x_1416 = lean_unsigned_to_nat(1u); -x_1417 = lean_array_get(x_1415, x_4, x_1416); -x_1418 = l_Lean_Syntax_getArgs(x_1417); -lean_dec(x_1417); -x_1419 = lean_unsigned_to_nat(3u); -x_1420 = lean_array_get(x_1415, x_4, x_1419); +x_1392 = l_Lean_Syntax_inhabited; +x_1393 = lean_unsigned_to_nat(1u); +x_1394 = lean_array_get(x_1392, x_4, x_1393); +x_1395 = lean_unsigned_to_nat(0u); +x_1396 = l_Lean_Syntax_getArg(x_1394, x_1395); +x_1397 = l_Lean_Syntax_isIdent(x_1396); +x_1398 = lean_unsigned_to_nat(4u); +x_1399 = l_Lean_Syntax_getArg(x_1394, x_1398); +lean_dec(x_1394); +x_1400 = lean_unsigned_to_nat(3u); +x_1401 = lean_array_get(x_1392, x_4, x_1400); lean_dec(x_4); -x_1421 = lean_array_get_size(x_1418); -x_1422 = lean_unsigned_to_nat(0u); -x_1423 = lean_nat_dec_eq(x_1421, x_1422); -lean_dec(x_1421); -if (x_1423 == 0) +if (x_1397 == 0) { -lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; uint8_t x_1429; -x_1424 = lean_array_get(x_1415, x_1418, x_1422); -x_1425 = lean_name_mk_string(x_27, x_1213); -x_1426 = lean_name_mk_string(x_1425, x_1217); -x_1427 = lean_name_mk_string(x_1426, x_1228); -lean_inc(x_1427); -x_1428 = lean_name_mk_string(x_1427, x_1239); -lean_inc(x_1424); -x_1429 = l_Lean_Syntax_isOfKind(x_1424, x_1428); -lean_dec(x_1428); -if (x_1429 == 0) +lean_object* x_1449; +x_1449 = l_Lean_Syntax_getIdAt(x_1396, x_1395); +lean_dec(x_1396); +x_1402 = x_1449; +goto block_1448; +} +else { -lean_object* x_1430; lean_object* x_1431; uint8_t x_1432; -x_1430 = l_Lean_mkHole___closed__1; -lean_inc(x_1427); -x_1431 = lean_name_mk_string(x_1427, x_1430); -lean_inc(x_1424); -x_1432 = l_Lean_Syntax_isOfKind(x_1424, x_1431); -lean_dec(x_1431); -if (x_1432 == 0) +lean_object* x_1450; +x_1450 = l_Lean_Syntax_getId(x_1396); +lean_dec(x_1396); +x_1402 = x_1450; +goto block_1448; +} +block_1448: { -lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; -x_1433 = l_Lean_Syntax_getArg(x_1424, x_1416); -lean_dec(x_1424); -x_1434 = l_Lean_Syntax_getArg(x_1433, x_1422); -x_1435 = l_Lean_Syntax_getIdAt(x_1434, x_1422); -lean_dec(x_1434); -x_1436 = l_Lean_Syntax_getArg(x_1433, x_1416); -lean_dec(x_1433); -x_1437 = l_Lean_Syntax_getArg(x_1436, x_1422); -lean_dec(x_1436); -x_1438 = l_Lean_Syntax_getArg(x_1437, x_1416); -lean_dec(x_1437); +lean_object* x_1403; lean_inc(x_2); -x_1439 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1438, x_2, x_3); -if (lean_obj_tag(x_1439) == 0) +x_1403 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1399, x_2, x_3); +if (lean_obj_tag(x_1403) == 0) { -lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; uint8_t x_1445; lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; lean_object* x_1450; lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; 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; lean_object* x_1471; lean_object* x_1472; lean_object* x_1473; uint8_t x_1474; uint8_t x_1475; lean_object* x_1476; lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; lean_object* x_1482; lean_object* x_1483; lean_object* x_1484; -x_1440 = lean_ctor_get(x_1439, 0); +lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; uint8_t x_1421; uint8_t x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; lean_object* x_1429; lean_object* x_1430; lean_object* x_1431; +x_1404 = lean_ctor_get(x_1403, 0); +lean_inc(x_1404); +x_1405 = lean_ctor_get(x_1403, 1); +lean_inc(x_1405); +lean_dec(x_1403); +x_1406 = l_Lean_Elab_Term_getLCtx(x_2, x_1405); +x_1407 = lean_ctor_get(x_1406, 0); +lean_inc(x_1407); +x_1408 = lean_ctor_get(x_1406, 1); +lean_inc(x_1408); +lean_dec(x_1406); +x_1409 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +lean_inc_n(x_1402, 2); +x_1410 = lean_local_ctx_mk_let_decl(x_1407, x_1402, x_1402, x_1409, x_1404); +x_1411 = lean_ctor_get(x_2, 0); +lean_inc(x_1411); +x_1412 = lean_ctor_get(x_2, 1); +lean_inc(x_1412); +x_1413 = lean_ctor_get(x_2, 2); +lean_inc(x_1413); +x_1414 = lean_ctor_get(x_2, 3); +lean_inc(x_1414); +x_1415 = lean_ctor_get(x_2, 4); +lean_inc(x_1415); +x_1416 = lean_ctor_get(x_2, 5); +lean_inc(x_1416); +x_1417 = lean_ctor_get(x_2, 6); +lean_inc(x_1417); +x_1418 = lean_ctor_get(x_2, 7); +lean_inc(x_1418); +x_1419 = lean_ctor_get(x_2, 8); +lean_inc(x_1419); +x_1420 = lean_ctor_get(x_2, 9); +lean_inc(x_1420); +x_1421 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_1422 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_1423 = x_2; +} else { + lean_dec_ref(x_2); + x_1423 = lean_box(0); +} +x_1424 = lean_ctor_get(x_1411, 0); +lean_inc(x_1424); +x_1425 = lean_ctor_get(x_1411, 2); +lean_inc(x_1425); +x_1426 = lean_ctor_get(x_1411, 3); +lean_inc(x_1426); +x_1427 = lean_ctor_get(x_1411, 4); +lean_inc(x_1427); +if (lean_is_exclusive(x_1411)) { + lean_ctor_release(x_1411, 0); + lean_ctor_release(x_1411, 1); + lean_ctor_release(x_1411, 2); + lean_ctor_release(x_1411, 3); + lean_ctor_release(x_1411, 4); + x_1428 = x_1411; +} else { + lean_dec_ref(x_1411); + x_1428 = lean_box(0); +} +lean_inc(x_1410); +if (lean_is_scalar(x_1428)) { + x_1429 = lean_alloc_ctor(0, 5, 0); +} else { + x_1429 = x_1428; +} +lean_ctor_set(x_1429, 0, x_1424); +lean_ctor_set(x_1429, 1, x_1410); +lean_ctor_set(x_1429, 2, x_1425); +lean_ctor_set(x_1429, 3, x_1426); +lean_ctor_set(x_1429, 4, x_1427); +if (lean_is_scalar(x_1423)) { + x_1430 = lean_alloc_ctor(0, 10, 2); +} else { + x_1430 = x_1423; +} +lean_ctor_set(x_1430, 0, x_1429); +lean_ctor_set(x_1430, 1, x_1412); +lean_ctor_set(x_1430, 2, x_1413); +lean_ctor_set(x_1430, 3, x_1414); +lean_ctor_set(x_1430, 4, x_1415); +lean_ctor_set(x_1430, 5, x_1416); +lean_ctor_set(x_1430, 6, x_1417); +lean_ctor_set(x_1430, 7, x_1418); +lean_ctor_set(x_1430, 8, x_1419); +lean_ctor_set(x_1430, 9, x_1420); +lean_ctor_set_uint8(x_1430, sizeof(void*)*10, x_1421); +lean_ctor_set_uint8(x_1430, sizeof(void*)*10 + 1, x_1422); +x_1431 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1401, x_1430, x_1408); +if (lean_obj_tag(x_1431) == 0) +{ +lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; +x_1432 = lean_ctor_get(x_1431, 0); +lean_inc(x_1432); +x_1433 = lean_ctor_get(x_1431, 1); +lean_inc(x_1433); +if (lean_is_exclusive(x_1431)) { + lean_ctor_release(x_1431, 0); + lean_ctor_release(x_1431, 1); + x_1434 = x_1431; +} else { + lean_dec_ref(x_1431); + x_1434 = lean_box(0); +} +x_1435 = l_Lean_mkFVar(x_1402); +x_1436 = l_Lean_mkOptionalNode___closed__2; +x_1437 = lean_array_push(x_1436, x_1435); +x_1438 = l_Lean_LocalContext_mkLambda(x_1410, x_1437, x_1432); +lean_dec(x_1432); +lean_dec(x_1437); +if (lean_is_scalar(x_1434)) { + x_1439 = lean_alloc_ctor(0, 2, 0); +} else { + x_1439 = x_1434; +} +lean_ctor_set(x_1439, 0, x_1438); +lean_ctor_set(x_1439, 1, x_1433); +return x_1439; +} +else +{ +lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; +lean_dec(x_1410); +lean_dec(x_1402); +x_1440 = lean_ctor_get(x_1431, 0); lean_inc(x_1440); -x_1441 = lean_ctor_get(x_1439, 1); +x_1441 = lean_ctor_get(x_1431, 1); lean_inc(x_1441); -lean_dec(x_1439); -x_1442 = l_Lean_Elab_Term_getLCtx(x_2, x_1441); -x_1443 = lean_ctor_get(x_1442, 0); -lean_inc(x_1443); -x_1444 = lean_ctor_get(x_1442, 1); -lean_inc(x_1444); -lean_dec(x_1442); -x_1445 = 0; -lean_inc_n(x_1435, 2); -x_1446 = lean_local_ctx_mk_local_decl(x_1443, x_1435, x_1435, x_1440, x_1445); -x_1447 = l_Array_eraseIdx___rarg(x_1418, x_1422); -x_1448 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1444); -x_1449 = lean_ctor_get(x_1448, 1); -lean_inc(x_1449); -lean_dec(x_1448); -x_1450 = l_Lean_Elab_Term_getMainModule___rarg(x_1449); -x_1451 = lean_ctor_get(x_1450, 1); -lean_inc(x_1451); -lean_dec(x_1450); -x_1452 = lean_name_mk_string(x_1427, x_1241); -x_1453 = l_Lean_nullKind___closed__1; -x_1454 = lean_name_mk_string(x_27, x_1453); -x_1455 = l_Array_empty___closed__1; -x_1456 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1447, x_1447, x_1422, x_1455); -lean_dec(x_1447); -x_1457 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1457, 0, x_1454); -lean_ctor_set(x_1457, 1, x_1456); -x_1458 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1459 = lean_array_push(x_1458, x_1457); -x_1460 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_1461 = lean_array_push(x_1459, x_1460); -x_1462 = lean_array_push(x_1461, x_1420); -x_1463 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1463, 0, x_1452); -lean_ctor_set(x_1463, 1, x_1462); -x_1464 = lean_ctor_get(x_2, 0); -lean_inc(x_1464); -x_1465 = lean_ctor_get(x_2, 1); -lean_inc(x_1465); -x_1466 = lean_ctor_get(x_2, 2); -lean_inc(x_1466); -x_1467 = lean_ctor_get(x_2, 3); -lean_inc(x_1467); -x_1468 = lean_ctor_get(x_2, 4); -lean_inc(x_1468); -x_1469 = lean_ctor_get(x_2, 5); -lean_inc(x_1469); -x_1470 = lean_ctor_get(x_2, 6); -lean_inc(x_1470); -x_1471 = lean_ctor_get(x_2, 7); -lean_inc(x_1471); -x_1472 = lean_ctor_get(x_2, 8); -lean_inc(x_1472); -x_1473 = lean_ctor_get(x_2, 9); -lean_inc(x_1473); -x_1474 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1475 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1476 = x_2; +if (lean_is_exclusive(x_1431)) { + lean_ctor_release(x_1431, 0); + lean_ctor_release(x_1431, 1); + x_1442 = x_1431; } else { - lean_dec_ref(x_2); - x_1476 = lean_box(0); + lean_dec_ref(x_1431); + x_1442 = lean_box(0); } -x_1477 = lean_ctor_get(x_1464, 0); -lean_inc(x_1477); -x_1478 = lean_ctor_get(x_1464, 2); -lean_inc(x_1478); -x_1479 = lean_ctor_get(x_1464, 3); -lean_inc(x_1479); -x_1480 = lean_ctor_get(x_1464, 4); -lean_inc(x_1480); -if (lean_is_exclusive(x_1464)) { - lean_ctor_release(x_1464, 0); - lean_ctor_release(x_1464, 1); - lean_ctor_release(x_1464, 2); - lean_ctor_release(x_1464, 3); - lean_ctor_release(x_1464, 4); - x_1481 = x_1464; +if (lean_is_scalar(x_1442)) { + x_1443 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_1464); - x_1481 = lean_box(0); + x_1443 = x_1442; } -lean_inc(x_1446); -if (lean_is_scalar(x_1481)) { - x_1482 = lean_alloc_ctor(0, 5, 0); -} else { - x_1482 = x_1481; -} -lean_ctor_set(x_1482, 0, x_1477); -lean_ctor_set(x_1482, 1, x_1446); -lean_ctor_set(x_1482, 2, x_1478); -lean_ctor_set(x_1482, 3, x_1479); -lean_ctor_set(x_1482, 4, x_1480); -if (lean_is_scalar(x_1476)) { - x_1483 = lean_alloc_ctor(0, 10, 2); -} else { - x_1483 = x_1476; -} -lean_ctor_set(x_1483, 0, x_1482); -lean_ctor_set(x_1483, 1, x_1465); -lean_ctor_set(x_1483, 2, x_1466); -lean_ctor_set(x_1483, 3, x_1467); -lean_ctor_set(x_1483, 4, x_1468); -lean_ctor_set(x_1483, 5, x_1469); -lean_ctor_set(x_1483, 6, x_1470); -lean_ctor_set(x_1483, 7, x_1471); -lean_ctor_set(x_1483, 8, x_1472); -lean_ctor_set(x_1483, 9, x_1473); -lean_ctor_set_uint8(x_1483, sizeof(void*)*10, x_1474); -lean_ctor_set_uint8(x_1483, sizeof(void*)*10 + 1, x_1475); -x_1484 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1463, x_1483, x_1451); -if (lean_obj_tag(x_1484) == 0) -{ -lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; -x_1485 = lean_ctor_get(x_1484, 0); -lean_inc(x_1485); -x_1486 = lean_ctor_get(x_1484, 1); -lean_inc(x_1486); -if (lean_is_exclusive(x_1484)) { - lean_ctor_release(x_1484, 0); - lean_ctor_release(x_1484, 1); - x_1487 = x_1484; -} else { - lean_dec_ref(x_1484); - x_1487 = lean_box(0); -} -x_1488 = l_Lean_mkFVar(x_1435); -x_1489 = l_Lean_mkOptionalNode___closed__2; -x_1490 = lean_array_push(x_1489, x_1488); -x_1491 = l_Lean_LocalContext_mkLambda(x_1446, x_1490, x_1485); -lean_dec(x_1485); -lean_dec(x_1490); -if (lean_is_scalar(x_1487)) { - x_1492 = lean_alloc_ctor(0, 2, 0); -} else { - x_1492 = x_1487; -} -lean_ctor_set(x_1492, 0, x_1491); -lean_ctor_set(x_1492, 1, x_1486); -return x_1492; -} -else -{ -lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; -lean_dec(x_1446); -lean_dec(x_1435); -x_1493 = lean_ctor_get(x_1484, 0); -lean_inc(x_1493); -x_1494 = lean_ctor_get(x_1484, 1); -lean_inc(x_1494); -if (lean_is_exclusive(x_1484)) { - lean_ctor_release(x_1484, 0); - lean_ctor_release(x_1484, 1); - x_1495 = x_1484; -} else { - lean_dec_ref(x_1484); - x_1495 = lean_box(0); -} -if (lean_is_scalar(x_1495)) { - x_1496 = lean_alloc_ctor(1, 2, 0); -} else { - x_1496 = x_1495; -} -lean_ctor_set(x_1496, 0, x_1493); -lean_ctor_set(x_1496, 1, x_1494); -return x_1496; +lean_ctor_set(x_1443, 0, x_1440); +lean_ctor_set(x_1443, 1, x_1441); +return x_1443; } } else { -lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; -lean_dec(x_1435); -lean_dec(x_1427); -lean_dec(x_1420); -lean_dec(x_1418); +lean_object* x_1444; lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; +lean_dec(x_1402); +lean_dec(x_1401); lean_dec(x_2); -x_1497 = lean_ctor_get(x_1439, 0); -lean_inc(x_1497); -x_1498 = lean_ctor_get(x_1439, 1); -lean_inc(x_1498); -if (lean_is_exclusive(x_1439)) { - lean_ctor_release(x_1439, 0); - lean_ctor_release(x_1439, 1); - x_1499 = x_1439; +x_1444 = lean_ctor_get(x_1403, 0); +lean_inc(x_1444); +x_1445 = lean_ctor_get(x_1403, 1); +lean_inc(x_1445); +if (lean_is_exclusive(x_1403)) { + lean_ctor_release(x_1403, 0); + lean_ctor_release(x_1403, 1); + x_1446 = x_1403; } else { - lean_dec_ref(x_1439); - x_1499 = lean_box(0); + lean_dec_ref(x_1403); + x_1446 = lean_box(0); } -if (lean_is_scalar(x_1499)) { - x_1500 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1446)) { + x_1447 = lean_alloc_ctor(1, 2, 0); } else { - x_1500 = x_1499; + x_1447 = x_1446; +} +lean_ctor_set(x_1447, 0, x_1444); +lean_ctor_set(x_1447, 1, x_1445); +return x_1447; +} } -lean_ctor_set(x_1500, 0, x_1497); -lean_ctor_set(x_1500, 1, x_1498); -return x_1500; } } else { -lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; uint8_t x_1507; lean_object* x_1508; lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; lean_object* x_1527; lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; uint8_t x_1536; uint8_t x_1537; lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; lean_object* x_1546; -lean_dec(x_1424); -x_1501 = l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; -x_1502 = lean_name_mk_string(x_27, x_1501); -x_1503 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_1504 = lean_ctor_get(x_1503, 0); +lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; uint8_t x_1459; +lean_dec(x_1240); +lean_free_object(x_25); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_1451 = l_Lean_Syntax_inhabited; +x_1452 = lean_unsigned_to_nat(1u); +x_1453 = lean_array_get(x_1451, x_4, x_1452); +x_1454 = l_Lean_Syntax_getArgs(x_1453); +lean_dec(x_1453); +x_1455 = lean_unsigned_to_nat(3u); +x_1456 = lean_array_get(x_1451, x_4, x_1455); +lean_dec(x_4); +x_1457 = lean_array_get_size(x_1454); +x_1458 = lean_unsigned_to_nat(0u); +x_1459 = lean_nat_dec_eq(x_1457, x_1458); +lean_dec(x_1457); +if (x_1459 == 0) +{ +lean_object* x_1460; lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; lean_object* x_1464; uint8_t x_1465; +x_1460 = lean_array_get(x_1451, x_1454, x_1458); +x_1461 = lean_name_mk_string(x_27, x_1237); +x_1462 = lean_name_mk_string(x_1461, x_1241); +x_1463 = lean_name_mk_string(x_1462, x_1252); +lean_inc(x_1463); +x_1464 = lean_name_mk_string(x_1463, x_1263); +lean_inc(x_1460); +x_1465 = l_Lean_Syntax_isOfKind(x_1460, x_1464); +lean_dec(x_1464); +if (x_1465 == 0) +{ +lean_object* x_1466; lean_object* x_1467; uint8_t x_1468; +x_1466 = l_Lean_mkHole___closed__1; +lean_inc(x_1463); +x_1467 = lean_name_mk_string(x_1463, x_1466); +lean_inc(x_1460); +x_1468 = l_Lean_Syntax_isOfKind(x_1460, x_1467); +lean_dec(x_1467); +if (x_1468 == 0) +{ +lean_object* x_1469; lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; +x_1469 = l_Lean_Syntax_getArg(x_1460, x_1452); +lean_dec(x_1460); +x_1470 = l_Lean_Syntax_getArg(x_1469, x_1458); +x_1471 = l_Lean_Syntax_getIdAt(x_1470, x_1458); +lean_dec(x_1470); +x_1472 = l_Lean_Syntax_getArg(x_1469, x_1452); +lean_dec(x_1469); +x_1473 = l_Lean_Syntax_getArg(x_1472, x_1458); +lean_dec(x_1472); +x_1474 = l_Lean_Syntax_getArg(x_1473, x_1452); +lean_dec(x_1473); +lean_inc(x_2); +x_1475 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1474, x_2, x_3); +if (lean_obj_tag(x_1475) == 0) +{ +lean_object* x_1476; lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; uint8_t x_1481; lean_object* x_1482; lean_object* x_1483; lean_object* x_1484; lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; lean_object* x_1508; lean_object* x_1509; uint8_t x_1510; uint8_t x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; +x_1476 = lean_ctor_get(x_1475, 0); +lean_inc(x_1476); +x_1477 = lean_ctor_get(x_1475, 1); +lean_inc(x_1477); +lean_dec(x_1475); +x_1478 = l_Lean_Elab_Term_getLCtx(x_2, x_1477); +x_1479 = lean_ctor_get(x_1478, 0); +lean_inc(x_1479); +x_1480 = lean_ctor_get(x_1478, 1); +lean_inc(x_1480); +lean_dec(x_1478); +x_1481 = 0; +lean_inc_n(x_1471, 2); +x_1482 = lean_local_ctx_mk_local_decl(x_1479, x_1471, x_1471, x_1476, x_1481); +x_1483 = l_Array_eraseIdx___rarg(x_1454, x_1458); +x_1484 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1480); +x_1485 = lean_ctor_get(x_1484, 1); +lean_inc(x_1485); +lean_dec(x_1484); +x_1486 = l_Lean_Elab_Term_getMainModule___rarg(x_1485); +x_1487 = lean_ctor_get(x_1486, 1); +lean_inc(x_1487); +lean_dec(x_1486); +x_1488 = lean_name_mk_string(x_1463, x_1265); +x_1489 = l_Lean_nullKind___closed__1; +x_1490 = lean_name_mk_string(x_27, x_1489); +x_1491 = l_Array_empty___closed__1; +x_1492 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1483, x_1483, x_1458, x_1491); +lean_dec(x_1483); +x_1493 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1493, 0, x_1490); +lean_ctor_set(x_1493, 1, x_1492); +x_1494 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1495 = lean_array_push(x_1494, x_1493); +x_1496 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_1497 = lean_array_push(x_1495, x_1496); +x_1498 = lean_array_push(x_1497, x_1456); +x_1499 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1499, 0, x_1488); +lean_ctor_set(x_1499, 1, x_1498); +x_1500 = lean_ctor_get(x_2, 0); +lean_inc(x_1500); +x_1501 = lean_ctor_get(x_2, 1); +lean_inc(x_1501); +x_1502 = lean_ctor_get(x_2, 2); +lean_inc(x_1502); +x_1503 = lean_ctor_get(x_2, 3); +lean_inc(x_1503); +x_1504 = lean_ctor_get(x_2, 4); lean_inc(x_1504); -x_1505 = lean_ctor_get(x_1503, 1); +x_1505 = lean_ctor_get(x_2, 5); lean_inc(x_1505); -lean_dec(x_1503); -x_1506 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -x_1507 = 0; -lean_inc_n(x_1502, 2); -x_1508 = lean_local_ctx_mk_local_decl(x_1504, x_1502, x_1502, x_1506, x_1507); -x_1509 = l_Array_eraseIdx___rarg(x_1418, x_1422); -x_1510 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1505); -x_1511 = lean_ctor_get(x_1510, 1); -lean_inc(x_1511); -lean_dec(x_1510); -x_1512 = l_Lean_Elab_Term_getMainModule___rarg(x_1511); -x_1513 = lean_ctor_get(x_1512, 1); -lean_inc(x_1513); -lean_dec(x_1512); -x_1514 = lean_name_mk_string(x_1427, x_1241); -x_1515 = l_Lean_nullKind___closed__1; -x_1516 = lean_name_mk_string(x_27, x_1515); -x_1517 = l_Array_empty___closed__1; -x_1518 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1509, x_1509, x_1422, x_1517); -lean_dec(x_1509); -x_1519 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1519, 0, x_1516); -lean_ctor_set(x_1519, 1, x_1518); -x_1520 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1521 = lean_array_push(x_1520, x_1519); -x_1522 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_1523 = lean_array_push(x_1521, x_1522); -x_1524 = lean_array_push(x_1523, x_1420); -x_1525 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1525, 0, x_1514); -lean_ctor_set(x_1525, 1, x_1524); -x_1526 = lean_ctor_get(x_2, 0); -lean_inc(x_1526); -x_1527 = lean_ctor_get(x_2, 1); -lean_inc(x_1527); -x_1528 = lean_ctor_get(x_2, 2); -lean_inc(x_1528); -x_1529 = lean_ctor_get(x_2, 3); -lean_inc(x_1529); -x_1530 = lean_ctor_get(x_2, 4); -lean_inc(x_1530); -x_1531 = lean_ctor_get(x_2, 5); -lean_inc(x_1531); -x_1532 = lean_ctor_get(x_2, 6); -lean_inc(x_1532); -x_1533 = lean_ctor_get(x_2, 7); -lean_inc(x_1533); -x_1534 = lean_ctor_get(x_2, 8); -lean_inc(x_1534); -x_1535 = lean_ctor_get(x_2, 9); -lean_inc(x_1535); -x_1536 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1537 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1538 = x_2; -} else { - lean_dec_ref(x_2); - x_1538 = lean_box(0); -} -x_1539 = lean_ctor_get(x_1526, 0); -lean_inc(x_1539); -x_1540 = lean_ctor_get(x_1526, 2); -lean_inc(x_1540); -x_1541 = lean_ctor_get(x_1526, 3); -lean_inc(x_1541); -x_1542 = lean_ctor_get(x_1526, 4); -lean_inc(x_1542); -if (lean_is_exclusive(x_1526)) { - lean_ctor_release(x_1526, 0); - lean_ctor_release(x_1526, 1); - lean_ctor_release(x_1526, 2); - lean_ctor_release(x_1526, 3); - lean_ctor_release(x_1526, 4); - x_1543 = x_1526; -} else { - lean_dec_ref(x_1526); - x_1543 = lean_box(0); -} +x_1506 = lean_ctor_get(x_2, 6); +lean_inc(x_1506); +x_1507 = lean_ctor_get(x_2, 7); +lean_inc(x_1507); +x_1508 = lean_ctor_get(x_2, 8); lean_inc(x_1508); -if (lean_is_scalar(x_1543)) { - x_1544 = lean_alloc_ctor(0, 5, 0); -} else { - x_1544 = x_1543; -} -lean_ctor_set(x_1544, 0, x_1539); -lean_ctor_set(x_1544, 1, x_1508); -lean_ctor_set(x_1544, 2, x_1540); -lean_ctor_set(x_1544, 3, x_1541); -lean_ctor_set(x_1544, 4, x_1542); -if (lean_is_scalar(x_1538)) { - x_1545 = lean_alloc_ctor(0, 10, 2); -} else { - x_1545 = x_1538; -} -lean_ctor_set(x_1545, 0, x_1544); -lean_ctor_set(x_1545, 1, x_1527); -lean_ctor_set(x_1545, 2, x_1528); -lean_ctor_set(x_1545, 3, x_1529); -lean_ctor_set(x_1545, 4, x_1530); -lean_ctor_set(x_1545, 5, x_1531); -lean_ctor_set(x_1545, 6, x_1532); -lean_ctor_set(x_1545, 7, x_1533); -lean_ctor_set(x_1545, 8, x_1534); -lean_ctor_set(x_1545, 9, x_1535); -lean_ctor_set_uint8(x_1545, sizeof(void*)*10, x_1536); -lean_ctor_set_uint8(x_1545, sizeof(void*)*10 + 1, x_1537); -x_1546 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1525, x_1545, x_1513); -if (lean_obj_tag(x_1546) == 0) -{ -lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; -x_1547 = lean_ctor_get(x_1546, 0); -lean_inc(x_1547); -x_1548 = lean_ctor_get(x_1546, 1); -lean_inc(x_1548); -if (lean_is_exclusive(x_1546)) { - lean_ctor_release(x_1546, 0); - lean_ctor_release(x_1546, 1); - x_1549 = x_1546; -} else { - lean_dec_ref(x_1546); - x_1549 = lean_box(0); -} -x_1550 = l_Lean_mkFVar(x_1502); -x_1551 = l_Lean_mkOptionalNode___closed__2; -x_1552 = lean_array_push(x_1551, x_1550); -x_1553 = l_Lean_LocalContext_mkLambda(x_1508, x_1552, x_1547); -lean_dec(x_1547); -lean_dec(x_1552); -if (lean_is_scalar(x_1549)) { - x_1554 = lean_alloc_ctor(0, 2, 0); -} else { - x_1554 = x_1549; -} -lean_ctor_set(x_1554, 0, x_1553); -lean_ctor_set(x_1554, 1, x_1548); -return x_1554; -} -else -{ -lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; lean_object* x_1558; -lean_dec(x_1508); -lean_dec(x_1502); -x_1555 = lean_ctor_get(x_1546, 0); -lean_inc(x_1555); -x_1556 = lean_ctor_get(x_1546, 1); -lean_inc(x_1556); -if (lean_is_exclusive(x_1546)) { - lean_ctor_release(x_1546, 0); - lean_ctor_release(x_1546, 1); - x_1557 = x_1546; -} else { - lean_dec_ref(x_1546); - x_1557 = lean_box(0); -} -if (lean_is_scalar(x_1557)) { - x_1558 = lean_alloc_ctor(1, 2, 0); -} else { - x_1558 = x_1557; -} -lean_ctor_set(x_1558, 0, x_1555); -lean_ctor_set(x_1558, 1, x_1556); -return x_1558; -} -} -} -else -{ -lean_object* x_1559; lean_object* x_1560; lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; uint8_t x_1564; lean_object* x_1565; lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; lean_object* x_1572; lean_object* x_1573; lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; lean_object* x_1591; lean_object* x_1592; uint8_t x_1593; uint8_t x_1594; lean_object* x_1595; lean_object* x_1596; lean_object* x_1597; lean_object* x_1598; lean_object* x_1599; lean_object* x_1600; lean_object* x_1601; lean_object* x_1602; lean_object* x_1603; -x_1559 = l_Lean_Syntax_getIdAt(x_1424, x_1422); -lean_dec(x_1424); -x_1560 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_1561 = lean_ctor_get(x_1560, 0); -lean_inc(x_1561); -x_1562 = lean_ctor_get(x_1560, 1); -lean_inc(x_1562); -lean_dec(x_1560); -x_1563 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -x_1564 = 0; -lean_inc_n(x_1559, 2); -x_1565 = lean_local_ctx_mk_local_decl(x_1561, x_1559, x_1559, x_1563, x_1564); -x_1566 = l_Array_eraseIdx___rarg(x_1418, x_1422); -x_1567 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1562); -x_1568 = lean_ctor_get(x_1567, 1); -lean_inc(x_1568); -lean_dec(x_1567); -x_1569 = l_Lean_Elab_Term_getMainModule___rarg(x_1568); -x_1570 = lean_ctor_get(x_1569, 1); -lean_inc(x_1570); -lean_dec(x_1569); -x_1571 = lean_name_mk_string(x_1427, x_1241); -x_1572 = l_Lean_nullKind___closed__1; -x_1573 = lean_name_mk_string(x_27, x_1572); -x_1574 = l_Array_empty___closed__1; -x_1575 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1566, x_1566, x_1422, x_1574); -lean_dec(x_1566); -x_1576 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1576, 0, x_1573); -lean_ctor_set(x_1576, 1, x_1575); -x_1577 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1578 = lean_array_push(x_1577, x_1576); -x_1579 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_1580 = lean_array_push(x_1578, x_1579); -x_1581 = lean_array_push(x_1580, x_1420); -x_1582 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1582, 0, x_1571); -lean_ctor_set(x_1582, 1, x_1581); -x_1583 = lean_ctor_get(x_2, 0); -lean_inc(x_1583); -x_1584 = lean_ctor_get(x_2, 1); -lean_inc(x_1584); -x_1585 = lean_ctor_get(x_2, 2); -lean_inc(x_1585); -x_1586 = lean_ctor_get(x_2, 3); -lean_inc(x_1586); -x_1587 = lean_ctor_get(x_2, 4); -lean_inc(x_1587); -x_1588 = lean_ctor_get(x_2, 5); -lean_inc(x_1588); -x_1589 = lean_ctor_get(x_2, 6); -lean_inc(x_1589); -x_1590 = lean_ctor_get(x_2, 7); -lean_inc(x_1590); -x_1591 = lean_ctor_get(x_2, 8); -lean_inc(x_1591); -x_1592 = lean_ctor_get(x_2, 9); -lean_inc(x_1592); -x_1593 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1594 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_1509 = lean_ctor_get(x_2, 9); +lean_inc(x_1509); +x_1510 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_1511 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -20278,554 +20068,954 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); - x_1595 = x_2; + x_1512 = x_2; } else { lean_dec_ref(x_2); - x_1595 = lean_box(0); + x_1512 = lean_box(0); } -x_1596 = lean_ctor_get(x_1583, 0); -lean_inc(x_1596); -x_1597 = lean_ctor_get(x_1583, 2); -lean_inc(x_1597); -x_1598 = lean_ctor_get(x_1583, 3); -lean_inc(x_1598); -x_1599 = lean_ctor_get(x_1583, 4); -lean_inc(x_1599); -if (lean_is_exclusive(x_1583)) { - lean_ctor_release(x_1583, 0); - lean_ctor_release(x_1583, 1); - lean_ctor_release(x_1583, 2); - lean_ctor_release(x_1583, 3); - lean_ctor_release(x_1583, 4); - x_1600 = x_1583; +x_1513 = lean_ctor_get(x_1500, 0); +lean_inc(x_1513); +x_1514 = lean_ctor_get(x_1500, 2); +lean_inc(x_1514); +x_1515 = lean_ctor_get(x_1500, 3); +lean_inc(x_1515); +x_1516 = lean_ctor_get(x_1500, 4); +lean_inc(x_1516); +if (lean_is_exclusive(x_1500)) { + lean_ctor_release(x_1500, 0); + lean_ctor_release(x_1500, 1); + lean_ctor_release(x_1500, 2); + lean_ctor_release(x_1500, 3); + lean_ctor_release(x_1500, 4); + x_1517 = x_1500; } else { - lean_dec_ref(x_1583); - x_1600 = lean_box(0); + lean_dec_ref(x_1500); + x_1517 = lean_box(0); } +lean_inc(x_1482); +if (lean_is_scalar(x_1517)) { + x_1518 = lean_alloc_ctor(0, 5, 0); +} else { + x_1518 = x_1517; +} +lean_ctor_set(x_1518, 0, x_1513); +lean_ctor_set(x_1518, 1, x_1482); +lean_ctor_set(x_1518, 2, x_1514); +lean_ctor_set(x_1518, 3, x_1515); +lean_ctor_set(x_1518, 4, x_1516); +if (lean_is_scalar(x_1512)) { + x_1519 = lean_alloc_ctor(0, 10, 2); +} else { + x_1519 = x_1512; +} +lean_ctor_set(x_1519, 0, x_1518); +lean_ctor_set(x_1519, 1, x_1501); +lean_ctor_set(x_1519, 2, x_1502); +lean_ctor_set(x_1519, 3, x_1503); +lean_ctor_set(x_1519, 4, x_1504); +lean_ctor_set(x_1519, 5, x_1505); +lean_ctor_set(x_1519, 6, x_1506); +lean_ctor_set(x_1519, 7, x_1507); +lean_ctor_set(x_1519, 8, x_1508); +lean_ctor_set(x_1519, 9, x_1509); +lean_ctor_set_uint8(x_1519, sizeof(void*)*10, x_1510); +lean_ctor_set_uint8(x_1519, sizeof(void*)*10 + 1, x_1511); +x_1520 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1499, x_1519, x_1487); +if (lean_obj_tag(x_1520) == 0) +{ +lean_object* x_1521; lean_object* x_1522; lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; lean_object* x_1527; lean_object* x_1528; +x_1521 = lean_ctor_get(x_1520, 0); +lean_inc(x_1521); +x_1522 = lean_ctor_get(x_1520, 1); +lean_inc(x_1522); +if (lean_is_exclusive(x_1520)) { + lean_ctor_release(x_1520, 0); + lean_ctor_release(x_1520, 1); + x_1523 = x_1520; +} else { + lean_dec_ref(x_1520); + x_1523 = lean_box(0); +} +x_1524 = l_Lean_mkFVar(x_1471); +x_1525 = l_Lean_mkOptionalNode___closed__2; +x_1526 = lean_array_push(x_1525, x_1524); +x_1527 = l_Lean_LocalContext_mkLambda(x_1482, x_1526, x_1521); +lean_dec(x_1521); +lean_dec(x_1526); +if (lean_is_scalar(x_1523)) { + x_1528 = lean_alloc_ctor(0, 2, 0); +} else { + x_1528 = x_1523; +} +lean_ctor_set(x_1528, 0, x_1527); +lean_ctor_set(x_1528, 1, x_1522); +return x_1528; +} +else +{ +lean_object* x_1529; lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; +lean_dec(x_1482); +lean_dec(x_1471); +x_1529 = lean_ctor_get(x_1520, 0); +lean_inc(x_1529); +x_1530 = lean_ctor_get(x_1520, 1); +lean_inc(x_1530); +if (lean_is_exclusive(x_1520)) { + lean_ctor_release(x_1520, 0); + lean_ctor_release(x_1520, 1); + x_1531 = x_1520; +} else { + lean_dec_ref(x_1520); + x_1531 = lean_box(0); +} +if (lean_is_scalar(x_1531)) { + x_1532 = lean_alloc_ctor(1, 2, 0); +} else { + x_1532 = x_1531; +} +lean_ctor_set(x_1532, 0, x_1529); +lean_ctor_set(x_1532, 1, x_1530); +return x_1532; +} +} +else +{ +lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; +lean_dec(x_1471); +lean_dec(x_1463); +lean_dec(x_1456); +lean_dec(x_1454); +lean_dec(x_2); +x_1533 = lean_ctor_get(x_1475, 0); +lean_inc(x_1533); +x_1534 = lean_ctor_get(x_1475, 1); +lean_inc(x_1534); +if (lean_is_exclusive(x_1475)) { + lean_ctor_release(x_1475, 0); + lean_ctor_release(x_1475, 1); + x_1535 = x_1475; +} else { + lean_dec_ref(x_1475); + x_1535 = lean_box(0); +} +if (lean_is_scalar(x_1535)) { + x_1536 = lean_alloc_ctor(1, 2, 0); +} else { + x_1536 = x_1535; +} +lean_ctor_set(x_1536, 0, x_1533); +lean_ctor_set(x_1536, 1, x_1534); +return x_1536; +} +} +else +{ +lean_object* x_1537; lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; uint8_t x_1543; lean_object* x_1544; lean_object* x_1545; lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; lean_object* x_1554; lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; uint8_t x_1572; uint8_t x_1573; lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; +lean_dec(x_1460); +x_1537 = l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; +x_1538 = lean_name_mk_string(x_27, x_1537); +x_1539 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_1540 = lean_ctor_get(x_1539, 0); +lean_inc(x_1540); +x_1541 = lean_ctor_get(x_1539, 1); +lean_inc(x_1541); +lean_dec(x_1539); +x_1542 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +x_1543 = 0; +lean_inc_n(x_1538, 2); +x_1544 = lean_local_ctx_mk_local_decl(x_1540, x_1538, x_1538, x_1542, x_1543); +x_1545 = l_Array_eraseIdx___rarg(x_1454, x_1458); +x_1546 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1541); +x_1547 = lean_ctor_get(x_1546, 1); +lean_inc(x_1547); +lean_dec(x_1546); +x_1548 = l_Lean_Elab_Term_getMainModule___rarg(x_1547); +x_1549 = lean_ctor_get(x_1548, 1); +lean_inc(x_1549); +lean_dec(x_1548); +x_1550 = lean_name_mk_string(x_1463, x_1265); +x_1551 = l_Lean_nullKind___closed__1; +x_1552 = lean_name_mk_string(x_27, x_1551); +x_1553 = l_Array_empty___closed__1; +x_1554 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1545, x_1545, x_1458, x_1553); +lean_dec(x_1545); +x_1555 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1555, 0, x_1552); +lean_ctor_set(x_1555, 1, x_1554); +x_1556 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1557 = lean_array_push(x_1556, x_1555); +x_1558 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_1559 = lean_array_push(x_1557, x_1558); +x_1560 = lean_array_push(x_1559, x_1456); +x_1561 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1561, 0, x_1550); +lean_ctor_set(x_1561, 1, x_1560); +x_1562 = lean_ctor_get(x_2, 0); +lean_inc(x_1562); +x_1563 = lean_ctor_get(x_2, 1); +lean_inc(x_1563); +x_1564 = lean_ctor_get(x_2, 2); +lean_inc(x_1564); +x_1565 = lean_ctor_get(x_2, 3); lean_inc(x_1565); -if (lean_is_scalar(x_1600)) { - x_1601 = lean_alloc_ctor(0, 5, 0); +x_1566 = lean_ctor_get(x_2, 4); +lean_inc(x_1566); +x_1567 = lean_ctor_get(x_2, 5); +lean_inc(x_1567); +x_1568 = lean_ctor_get(x_2, 6); +lean_inc(x_1568); +x_1569 = lean_ctor_get(x_2, 7); +lean_inc(x_1569); +x_1570 = lean_ctor_get(x_2, 8); +lean_inc(x_1570); +x_1571 = lean_ctor_get(x_2, 9); +lean_inc(x_1571); +x_1572 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_1573 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_1574 = x_2; } else { - x_1601 = x_1600; + lean_dec_ref(x_2); + x_1574 = lean_box(0); } -lean_ctor_set(x_1601, 0, x_1596); -lean_ctor_set(x_1601, 1, x_1565); -lean_ctor_set(x_1601, 2, x_1597); -lean_ctor_set(x_1601, 3, x_1598); -lean_ctor_set(x_1601, 4, x_1599); -if (lean_is_scalar(x_1595)) { - x_1602 = lean_alloc_ctor(0, 10, 2); +x_1575 = lean_ctor_get(x_1562, 0); +lean_inc(x_1575); +x_1576 = lean_ctor_get(x_1562, 2); +lean_inc(x_1576); +x_1577 = lean_ctor_get(x_1562, 3); +lean_inc(x_1577); +x_1578 = lean_ctor_get(x_1562, 4); +lean_inc(x_1578); +if (lean_is_exclusive(x_1562)) { + lean_ctor_release(x_1562, 0); + lean_ctor_release(x_1562, 1); + lean_ctor_release(x_1562, 2); + lean_ctor_release(x_1562, 3); + lean_ctor_release(x_1562, 4); + x_1579 = x_1562; } else { - x_1602 = x_1595; + lean_dec_ref(x_1562); + x_1579 = lean_box(0); } -lean_ctor_set(x_1602, 0, x_1601); -lean_ctor_set(x_1602, 1, x_1584); -lean_ctor_set(x_1602, 2, x_1585); -lean_ctor_set(x_1602, 3, x_1586); -lean_ctor_set(x_1602, 4, x_1587); -lean_ctor_set(x_1602, 5, x_1588); -lean_ctor_set(x_1602, 6, x_1589); -lean_ctor_set(x_1602, 7, x_1590); -lean_ctor_set(x_1602, 8, x_1591); -lean_ctor_set(x_1602, 9, x_1592); -lean_ctor_set_uint8(x_1602, sizeof(void*)*10, x_1593); -lean_ctor_set_uint8(x_1602, sizeof(void*)*10 + 1, x_1594); -x_1603 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1582, x_1602, x_1570); -if (lean_obj_tag(x_1603) == 0) +lean_inc(x_1544); +if (lean_is_scalar(x_1579)) { + x_1580 = lean_alloc_ctor(0, 5, 0); +} else { + x_1580 = x_1579; +} +lean_ctor_set(x_1580, 0, x_1575); +lean_ctor_set(x_1580, 1, x_1544); +lean_ctor_set(x_1580, 2, x_1576); +lean_ctor_set(x_1580, 3, x_1577); +lean_ctor_set(x_1580, 4, x_1578); +if (lean_is_scalar(x_1574)) { + x_1581 = lean_alloc_ctor(0, 10, 2); +} else { + x_1581 = x_1574; +} +lean_ctor_set(x_1581, 0, x_1580); +lean_ctor_set(x_1581, 1, x_1563); +lean_ctor_set(x_1581, 2, x_1564); +lean_ctor_set(x_1581, 3, x_1565); +lean_ctor_set(x_1581, 4, x_1566); +lean_ctor_set(x_1581, 5, x_1567); +lean_ctor_set(x_1581, 6, x_1568); +lean_ctor_set(x_1581, 7, x_1569); +lean_ctor_set(x_1581, 8, x_1570); +lean_ctor_set(x_1581, 9, x_1571); +lean_ctor_set_uint8(x_1581, sizeof(void*)*10, x_1572); +lean_ctor_set_uint8(x_1581, sizeof(void*)*10 + 1, x_1573); +x_1582 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1561, x_1581, x_1549); +if (lean_obj_tag(x_1582) == 0) { -lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; -x_1604 = lean_ctor_get(x_1603, 0); +lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; +x_1583 = lean_ctor_get(x_1582, 0); +lean_inc(x_1583); +x_1584 = lean_ctor_get(x_1582, 1); +lean_inc(x_1584); +if (lean_is_exclusive(x_1582)) { + lean_ctor_release(x_1582, 0); + lean_ctor_release(x_1582, 1); + x_1585 = x_1582; +} else { + lean_dec_ref(x_1582); + x_1585 = lean_box(0); +} +x_1586 = l_Lean_mkFVar(x_1538); +x_1587 = l_Lean_mkOptionalNode___closed__2; +x_1588 = lean_array_push(x_1587, x_1586); +x_1589 = l_Lean_LocalContext_mkLambda(x_1544, x_1588, x_1583); +lean_dec(x_1583); +lean_dec(x_1588); +if (lean_is_scalar(x_1585)) { + x_1590 = lean_alloc_ctor(0, 2, 0); +} else { + x_1590 = x_1585; +} +lean_ctor_set(x_1590, 0, x_1589); +lean_ctor_set(x_1590, 1, x_1584); +return x_1590; +} +else +{ +lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; +lean_dec(x_1544); +lean_dec(x_1538); +x_1591 = lean_ctor_get(x_1582, 0); +lean_inc(x_1591); +x_1592 = lean_ctor_get(x_1582, 1); +lean_inc(x_1592); +if (lean_is_exclusive(x_1582)) { + lean_ctor_release(x_1582, 0); + lean_ctor_release(x_1582, 1); + x_1593 = x_1582; +} else { + lean_dec_ref(x_1582); + x_1593 = lean_box(0); +} +if (lean_is_scalar(x_1593)) { + x_1594 = lean_alloc_ctor(1, 2, 0); +} else { + x_1594 = x_1593; +} +lean_ctor_set(x_1594, 0, x_1591); +lean_ctor_set(x_1594, 1, x_1592); +return x_1594; +} +} +} +else +{ +lean_object* x_1595; lean_object* x_1596; lean_object* x_1597; lean_object* x_1598; lean_object* x_1599; uint8_t x_1600; lean_object* x_1601; lean_object* x_1602; lean_object* x_1603; lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; lean_object* x_1621; lean_object* x_1622; lean_object* x_1623; lean_object* x_1624; lean_object* x_1625; lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; uint8_t x_1629; uint8_t x_1630; lean_object* x_1631; lean_object* x_1632; lean_object* x_1633; lean_object* x_1634; lean_object* x_1635; lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; +x_1595 = l_Lean_Syntax_getIdAt(x_1460, x_1458); +lean_dec(x_1460); +x_1596 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_1597 = lean_ctor_get(x_1596, 0); +lean_inc(x_1597); +x_1598 = lean_ctor_get(x_1596, 1); +lean_inc(x_1598); +lean_dec(x_1596); +x_1599 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +x_1600 = 0; +lean_inc_n(x_1595, 2); +x_1601 = lean_local_ctx_mk_local_decl(x_1597, x_1595, x_1595, x_1599, x_1600); +x_1602 = l_Array_eraseIdx___rarg(x_1454, x_1458); +x_1603 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1598); +x_1604 = lean_ctor_get(x_1603, 1); lean_inc(x_1604); -x_1605 = lean_ctor_get(x_1603, 1); -lean_inc(x_1605); -if (lean_is_exclusive(x_1603)) { - lean_ctor_release(x_1603, 0); - lean_ctor_release(x_1603, 1); - x_1606 = x_1603; +lean_dec(x_1603); +x_1605 = l_Lean_Elab_Term_getMainModule___rarg(x_1604); +x_1606 = lean_ctor_get(x_1605, 1); +lean_inc(x_1606); +lean_dec(x_1605); +x_1607 = lean_name_mk_string(x_1463, x_1265); +x_1608 = l_Lean_nullKind___closed__1; +x_1609 = lean_name_mk_string(x_27, x_1608); +x_1610 = l_Array_empty___closed__1; +x_1611 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1602, x_1602, x_1458, x_1610); +lean_dec(x_1602); +x_1612 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1612, 0, x_1609); +lean_ctor_set(x_1612, 1, x_1611); +x_1613 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_1614 = lean_array_push(x_1613, x_1612); +x_1615 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_1616 = lean_array_push(x_1614, x_1615); +x_1617 = lean_array_push(x_1616, x_1456); +x_1618 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1618, 0, x_1607); +lean_ctor_set(x_1618, 1, x_1617); +x_1619 = lean_ctor_get(x_2, 0); +lean_inc(x_1619); +x_1620 = lean_ctor_get(x_2, 1); +lean_inc(x_1620); +x_1621 = lean_ctor_get(x_2, 2); +lean_inc(x_1621); +x_1622 = lean_ctor_get(x_2, 3); +lean_inc(x_1622); +x_1623 = lean_ctor_get(x_2, 4); +lean_inc(x_1623); +x_1624 = lean_ctor_get(x_2, 5); +lean_inc(x_1624); +x_1625 = lean_ctor_get(x_2, 6); +lean_inc(x_1625); +x_1626 = lean_ctor_get(x_2, 7); +lean_inc(x_1626); +x_1627 = lean_ctor_get(x_2, 8); +lean_inc(x_1627); +x_1628 = lean_ctor_get(x_2, 9); +lean_inc(x_1628); +x_1629 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_1630 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_1631 = x_2; } else { - lean_dec_ref(x_1603); - x_1606 = lean_box(0); + lean_dec_ref(x_2); + x_1631 = lean_box(0); } -x_1607 = l_Lean_mkFVar(x_1559); -x_1608 = l_Lean_mkOptionalNode___closed__2; -x_1609 = lean_array_push(x_1608, x_1607); -x_1610 = l_Lean_LocalContext_mkLambda(x_1565, x_1609, x_1604); -lean_dec(x_1604); -lean_dec(x_1609); -if (lean_is_scalar(x_1606)) { - x_1611 = lean_alloc_ctor(0, 2, 0); +x_1632 = lean_ctor_get(x_1619, 0); +lean_inc(x_1632); +x_1633 = lean_ctor_get(x_1619, 2); +lean_inc(x_1633); +x_1634 = lean_ctor_get(x_1619, 3); +lean_inc(x_1634); +x_1635 = lean_ctor_get(x_1619, 4); +lean_inc(x_1635); +if (lean_is_exclusive(x_1619)) { + lean_ctor_release(x_1619, 0); + lean_ctor_release(x_1619, 1); + lean_ctor_release(x_1619, 2); + lean_ctor_release(x_1619, 3); + lean_ctor_release(x_1619, 4); + x_1636 = x_1619; } else { - x_1611 = x_1606; + lean_dec_ref(x_1619); + x_1636 = lean_box(0); } -lean_ctor_set(x_1611, 0, x_1610); -lean_ctor_set(x_1611, 1, x_1605); -return x_1611; +lean_inc(x_1601); +if (lean_is_scalar(x_1636)) { + x_1637 = lean_alloc_ctor(0, 5, 0); +} else { + x_1637 = x_1636; +} +lean_ctor_set(x_1637, 0, x_1632); +lean_ctor_set(x_1637, 1, x_1601); +lean_ctor_set(x_1637, 2, x_1633); +lean_ctor_set(x_1637, 3, x_1634); +lean_ctor_set(x_1637, 4, x_1635); +if (lean_is_scalar(x_1631)) { + x_1638 = lean_alloc_ctor(0, 10, 2); +} else { + x_1638 = x_1631; +} +lean_ctor_set(x_1638, 0, x_1637); +lean_ctor_set(x_1638, 1, x_1620); +lean_ctor_set(x_1638, 2, x_1621); +lean_ctor_set(x_1638, 3, x_1622); +lean_ctor_set(x_1638, 4, x_1623); +lean_ctor_set(x_1638, 5, x_1624); +lean_ctor_set(x_1638, 6, x_1625); +lean_ctor_set(x_1638, 7, x_1626); +lean_ctor_set(x_1638, 8, x_1627); +lean_ctor_set(x_1638, 9, x_1628); +lean_ctor_set_uint8(x_1638, sizeof(void*)*10, x_1629); +lean_ctor_set_uint8(x_1638, sizeof(void*)*10 + 1, x_1630); +x_1639 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1618, x_1638, x_1606); +if (lean_obj_tag(x_1639) == 0) +{ +lean_object* x_1640; lean_object* x_1641; lean_object* x_1642; lean_object* x_1643; lean_object* x_1644; lean_object* x_1645; lean_object* x_1646; lean_object* x_1647; +x_1640 = lean_ctor_get(x_1639, 0); +lean_inc(x_1640); +x_1641 = lean_ctor_get(x_1639, 1); +lean_inc(x_1641); +if (lean_is_exclusive(x_1639)) { + lean_ctor_release(x_1639, 0); + lean_ctor_release(x_1639, 1); + x_1642 = x_1639; +} else { + lean_dec_ref(x_1639); + x_1642 = lean_box(0); +} +x_1643 = l_Lean_mkFVar(x_1595); +x_1644 = l_Lean_mkOptionalNode___closed__2; +x_1645 = lean_array_push(x_1644, x_1643); +x_1646 = l_Lean_LocalContext_mkLambda(x_1601, x_1645, x_1640); +lean_dec(x_1640); +lean_dec(x_1645); +if (lean_is_scalar(x_1642)) { + x_1647 = lean_alloc_ctor(0, 2, 0); +} else { + x_1647 = x_1642; +} +lean_ctor_set(x_1647, 0, x_1646); +lean_ctor_set(x_1647, 1, x_1641); +return x_1647; } else { -lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; -lean_dec(x_1565); -lean_dec(x_1559); -x_1612 = lean_ctor_get(x_1603, 0); -lean_inc(x_1612); -x_1613 = lean_ctor_get(x_1603, 1); -lean_inc(x_1613); -if (lean_is_exclusive(x_1603)) { - lean_ctor_release(x_1603, 0); - lean_ctor_release(x_1603, 1); - x_1614 = x_1603; +lean_object* x_1648; lean_object* x_1649; lean_object* x_1650; lean_object* x_1651; +lean_dec(x_1601); +lean_dec(x_1595); +x_1648 = lean_ctor_get(x_1639, 0); +lean_inc(x_1648); +x_1649 = lean_ctor_get(x_1639, 1); +lean_inc(x_1649); +if (lean_is_exclusive(x_1639)) { + lean_ctor_release(x_1639, 0); + lean_ctor_release(x_1639, 1); + x_1650 = x_1639; } else { - lean_dec_ref(x_1603); - x_1614 = lean_box(0); + lean_dec_ref(x_1639); + x_1650 = lean_box(0); } -if (lean_is_scalar(x_1614)) { - x_1615 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1650)) { + x_1651 = lean_alloc_ctor(1, 2, 0); } else { - x_1615 = x_1614; + x_1651 = x_1650; } -lean_ctor_set(x_1615, 0, x_1612); -lean_ctor_set(x_1615, 1, x_1613); -return x_1615; +lean_ctor_set(x_1651, 0, x_1648); +lean_ctor_set(x_1651, 1, x_1649); +return x_1651; } } } else { -lean_dec(x_1418); -x_1 = x_1420; +lean_dec(x_1454); +x_1 = x_1456; goto _start; } } } else { -lean_object* x_1617; lean_object* x_1618; lean_object* x_1619; -lean_dec(x_1216); +lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; +lean_dec(x_1240); lean_free_object(x_25); lean_free_object(x_15); lean_dec(x_28); -x_1617 = l_Lean_Syntax_inhabited; -x_1618 = lean_unsigned_to_nat(0u); -x_1619 = lean_array_get(x_1617, x_4, x_1618); +x_1653 = l_Lean_Syntax_inhabited; +x_1654 = lean_unsigned_to_nat(0u); +x_1655 = lean_array_get(x_1653, x_4, x_1654); lean_dec(x_4); -if (lean_obj_tag(x_1619) == 3) +if (lean_obj_tag(x_1655) == 3) { -lean_object* x_1620; lean_object* x_1621; lean_object* x_1622; lean_object* x_1623; -x_1620 = lean_ctor_get(x_1619, 2); -lean_inc(x_1620); -x_1621 = lean_ctor_get(x_1619, 3); -lean_inc(x_1621); -lean_dec(x_1619); -x_1622 = lean_box(0); +lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; lean_object* x_1659; +x_1656 = lean_ctor_get(x_1655, 2); +lean_inc(x_1656); +x_1657 = lean_ctor_get(x_1655, 3); +lean_inc(x_1657); +lean_dec(x_1655); +x_1658 = lean_box(0); lean_inc(x_2); -x_1623 = l_Lean_Elab_Term_resolveName(x_1, x_1620, x_1621, x_1622, x_2, x_3); +x_1659 = l_Lean_Elab_Term_resolveName(x_1, x_1656, x_1657, x_1658, x_2, x_3); lean_dec(x_1); -if (lean_obj_tag(x_1623) == 0) +if (lean_obj_tag(x_1659) == 0) { -lean_object* x_1624; -x_1624 = lean_ctor_get(x_1623, 0); -lean_inc(x_1624); -if (lean_obj_tag(x_1624) == 0) +lean_object* x_1660; +x_1660 = lean_ctor_get(x_1659, 0); +lean_inc(x_1660); +if (lean_obj_tag(x_1660) == 0) { -lean_object* x_1625; lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; -x_1625 = lean_ctor_get(x_1623, 1); -lean_inc(x_1625); -lean_dec(x_1623); -x_1626 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; -x_1627 = l_unreachable_x21___rarg(x_1626); -x_1628 = lean_apply_2(x_1627, x_2, x_1625); -return x_1628; +lean_object* x_1661; lean_object* x_1662; lean_object* x_1663; lean_object* x_1664; +x_1661 = lean_ctor_get(x_1659, 1); +lean_inc(x_1661); +lean_dec(x_1659); +x_1662 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_1663 = l_unreachable_x21___rarg(x_1662); +x_1664 = lean_apply_2(x_1663, x_2, x_1661); +return x_1664; } else { -lean_object* x_1629; lean_object* x_1630; +lean_object* x_1665; lean_object* x_1666; lean_dec(x_2); -x_1629 = lean_ctor_get(x_1624, 0); -lean_inc(x_1629); -lean_dec(x_1624); -x_1630 = lean_ctor_get(x_1629, 0); -lean_inc(x_1630); -switch (lean_obj_tag(x_1630)) { +x_1665 = lean_ctor_get(x_1660, 0); +lean_inc(x_1665); +lean_dec(x_1660); +x_1666 = lean_ctor_get(x_1665, 0); +lean_inc(x_1666); +switch (lean_obj_tag(x_1666)) { case 0: { -lean_object* x_1631; lean_object* x_1632; lean_object* x_1633; lean_object* x_1634; lean_object* x_1635; -x_1631 = lean_ctor_get(x_1623, 1); -lean_inc(x_1631); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1632 = x_1623; +lean_object* x_1667; lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; lean_object* x_1671; +x_1667 = lean_ctor_get(x_1659, 1); +lean_inc(x_1667); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1668 = x_1659; } else { - lean_dec_ref(x_1623); - x_1632 = lean_box(0); + lean_dec_ref(x_1659); + x_1668 = lean_box(0); } -x_1633 = lean_ctor_get(x_1629, 1); -lean_inc(x_1633); -lean_dec(x_1629); -x_1634 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_1630, x_1633); -if (lean_is_scalar(x_1632)) { - x_1635 = lean_alloc_ctor(0, 2, 0); +x_1669 = lean_ctor_get(x_1665, 1); +lean_inc(x_1669); +lean_dec(x_1665); +x_1670 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_1666, x_1669); +if (lean_is_scalar(x_1668)) { + x_1671 = lean_alloc_ctor(0, 2, 0); } else { - x_1635 = x_1632; + x_1671 = x_1668; } -lean_ctor_set(x_1635, 0, x_1634); -lean_ctor_set(x_1635, 1, x_1631); -return x_1635; +lean_ctor_set(x_1671, 0, x_1670); +lean_ctor_set(x_1671, 1, x_1667); +return x_1671; } case 1: { -lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; -x_1636 = lean_ctor_get(x_1623, 1); -lean_inc(x_1636); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1637 = x_1623; +lean_object* x_1672; lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; lean_object* x_1676; +x_1672 = lean_ctor_get(x_1659, 1); +lean_inc(x_1672); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1673 = x_1659; } else { - lean_dec_ref(x_1623); - x_1637 = lean_box(0); + lean_dec_ref(x_1659); + x_1673 = lean_box(0); } -x_1638 = lean_ctor_get(x_1629, 1); -lean_inc(x_1638); -lean_dec(x_1629); -x_1639 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_1630, x_1638); -if (lean_is_scalar(x_1637)) { - x_1640 = lean_alloc_ctor(0, 2, 0); +x_1674 = lean_ctor_get(x_1665, 1); +lean_inc(x_1674); +lean_dec(x_1665); +x_1675 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_1666, x_1674); +if (lean_is_scalar(x_1673)) { + x_1676 = lean_alloc_ctor(0, 2, 0); } else { - x_1640 = x_1637; + x_1676 = x_1673; } -lean_ctor_set(x_1640, 0, x_1639); -lean_ctor_set(x_1640, 1, x_1636); -return x_1640; +lean_ctor_set(x_1676, 0, x_1675); +lean_ctor_set(x_1676, 1, x_1672); +return x_1676; } case 2: { -lean_object* x_1641; lean_object* x_1642; lean_object* x_1643; lean_object* x_1644; lean_object* x_1645; -x_1641 = lean_ctor_get(x_1623, 1); -lean_inc(x_1641); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1642 = x_1623; +lean_object* x_1677; lean_object* x_1678; lean_object* x_1679; lean_object* x_1680; lean_object* x_1681; +x_1677 = lean_ctor_get(x_1659, 1); +lean_inc(x_1677); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1678 = x_1659; } else { - lean_dec_ref(x_1623); - x_1642 = lean_box(0); + lean_dec_ref(x_1659); + x_1678 = lean_box(0); } -x_1643 = lean_ctor_get(x_1629, 1); -lean_inc(x_1643); -lean_dec(x_1629); -x_1644 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_1630, x_1643); -if (lean_is_scalar(x_1642)) { - x_1645 = lean_alloc_ctor(0, 2, 0); +x_1679 = lean_ctor_get(x_1665, 1); +lean_inc(x_1679); +lean_dec(x_1665); +x_1680 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_1666, x_1679); +if (lean_is_scalar(x_1678)) { + x_1681 = lean_alloc_ctor(0, 2, 0); } else { - x_1645 = x_1642; + x_1681 = x_1678; } -lean_ctor_set(x_1645, 0, x_1644); -lean_ctor_set(x_1645, 1, x_1641); -return x_1645; +lean_ctor_set(x_1681, 0, x_1680); +lean_ctor_set(x_1681, 1, x_1677); +return x_1681; } case 3: { -lean_object* x_1646; lean_object* x_1647; lean_object* x_1648; lean_object* x_1649; lean_object* x_1650; -x_1646 = lean_ctor_get(x_1623, 1); -lean_inc(x_1646); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1647 = x_1623; +lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; lean_object* x_1685; lean_object* x_1686; +x_1682 = lean_ctor_get(x_1659, 1); +lean_inc(x_1682); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1683 = x_1659; } else { - lean_dec_ref(x_1623); - x_1647 = lean_box(0); + lean_dec_ref(x_1659); + x_1683 = lean_box(0); } -x_1648 = lean_ctor_get(x_1629, 1); -lean_inc(x_1648); -lean_dec(x_1629); -x_1649 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_1630, x_1648); -if (lean_is_scalar(x_1647)) { - x_1650 = lean_alloc_ctor(0, 2, 0); +x_1684 = lean_ctor_get(x_1665, 1); +lean_inc(x_1684); +lean_dec(x_1665); +x_1685 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_1666, x_1684); +if (lean_is_scalar(x_1683)) { + x_1686 = lean_alloc_ctor(0, 2, 0); } else { - x_1650 = x_1647; + x_1686 = x_1683; } -lean_ctor_set(x_1650, 0, x_1649); -lean_ctor_set(x_1650, 1, x_1646); -return x_1650; +lean_ctor_set(x_1686, 0, x_1685); +lean_ctor_set(x_1686, 1, x_1682); +return x_1686; } case 4: { -lean_object* x_1651; lean_object* x_1652; lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; -x_1651 = lean_ctor_get(x_1623, 1); -lean_inc(x_1651); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1652 = x_1623; +lean_object* x_1687; lean_object* x_1688; lean_object* x_1689; lean_object* x_1690; lean_object* x_1691; lean_object* x_1692; lean_object* x_1693; +x_1687 = lean_ctor_get(x_1659, 1); +lean_inc(x_1687); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1688 = x_1659; } else { - lean_dec_ref(x_1623); - x_1652 = lean_box(0); + lean_dec_ref(x_1659); + x_1688 = lean_box(0); } -x_1653 = lean_ctor_get(x_1629, 1); -lean_inc(x_1653); -lean_dec(x_1629); -x_1654 = lean_ctor_get(x_1630, 0); -lean_inc(x_1654); -lean_dec(x_1630); -x_1655 = l_Lean_mkConst(x_1654, x_1622); -x_1656 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_1655, x_1653); -if (lean_is_scalar(x_1652)) { - x_1657 = lean_alloc_ctor(0, 2, 0); +x_1689 = lean_ctor_get(x_1665, 1); +lean_inc(x_1689); +lean_dec(x_1665); +x_1690 = lean_ctor_get(x_1666, 0); +lean_inc(x_1690); +lean_dec(x_1666); +x_1691 = l_Lean_mkConst(x_1690, x_1658); +x_1692 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_1691, x_1689); +if (lean_is_scalar(x_1688)) { + x_1693 = lean_alloc_ctor(0, 2, 0); } else { - x_1657 = x_1652; + x_1693 = x_1688; } -lean_ctor_set(x_1657, 0, x_1656); -lean_ctor_set(x_1657, 1, x_1651); -return x_1657; +lean_ctor_set(x_1693, 0, x_1692); +lean_ctor_set(x_1693, 1, x_1687); +return x_1693; } case 5: { -lean_object* x_1658; lean_object* x_1659; lean_object* x_1660; lean_object* x_1661; lean_object* x_1662; -x_1658 = lean_ctor_get(x_1623, 1); -lean_inc(x_1658); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1659 = x_1623; +lean_object* x_1694; lean_object* x_1695; lean_object* x_1696; lean_object* x_1697; lean_object* x_1698; +x_1694 = lean_ctor_get(x_1659, 1); +lean_inc(x_1694); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1695 = x_1659; } else { - lean_dec_ref(x_1623); - x_1659 = lean_box(0); + lean_dec_ref(x_1659); + x_1695 = lean_box(0); } -x_1660 = lean_ctor_get(x_1629, 1); -lean_inc(x_1660); -lean_dec(x_1629); -x_1661 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_1630, x_1660); -if (lean_is_scalar(x_1659)) { - x_1662 = lean_alloc_ctor(0, 2, 0); +x_1696 = lean_ctor_get(x_1665, 1); +lean_inc(x_1696); +lean_dec(x_1665); +x_1697 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_1666, x_1696); +if (lean_is_scalar(x_1695)) { + x_1698 = lean_alloc_ctor(0, 2, 0); } else { - x_1662 = x_1659; + x_1698 = x_1695; } -lean_ctor_set(x_1662, 0, x_1661); -lean_ctor_set(x_1662, 1, x_1658); -return x_1662; +lean_ctor_set(x_1698, 0, x_1697); +lean_ctor_set(x_1698, 1, x_1694); +return x_1698; } case 6: { -lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; lean_object* x_1667; -x_1663 = lean_ctor_get(x_1623, 1); -lean_inc(x_1663); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1664 = x_1623; +lean_object* x_1699; lean_object* x_1700; lean_object* x_1701; lean_object* x_1702; lean_object* x_1703; +x_1699 = lean_ctor_get(x_1659, 1); +lean_inc(x_1699); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1700 = x_1659; } else { - lean_dec_ref(x_1623); - x_1664 = lean_box(0); + lean_dec_ref(x_1659); + x_1700 = lean_box(0); } -x_1665 = lean_ctor_get(x_1629, 1); -lean_inc(x_1665); -lean_dec(x_1629); -x_1666 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_1630, x_1665); -if (lean_is_scalar(x_1664)) { - x_1667 = lean_alloc_ctor(0, 2, 0); +x_1701 = lean_ctor_get(x_1665, 1); +lean_inc(x_1701); +lean_dec(x_1665); +x_1702 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_1666, x_1701); +if (lean_is_scalar(x_1700)) { + x_1703 = lean_alloc_ctor(0, 2, 0); } else { - x_1667 = x_1664; + x_1703 = x_1700; } -lean_ctor_set(x_1667, 0, x_1666); -lean_ctor_set(x_1667, 1, x_1663); -return x_1667; +lean_ctor_set(x_1703, 0, x_1702); +lean_ctor_set(x_1703, 1, x_1699); +return x_1703; } case 7: { -lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; lean_object* x_1671; lean_object* x_1672; -x_1668 = lean_ctor_get(x_1623, 1); -lean_inc(x_1668); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1669 = x_1623; +lean_object* x_1704; lean_object* x_1705; lean_object* x_1706; lean_object* x_1707; lean_object* x_1708; +x_1704 = lean_ctor_get(x_1659, 1); +lean_inc(x_1704); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1705 = x_1659; } else { - lean_dec_ref(x_1623); - x_1669 = lean_box(0); + lean_dec_ref(x_1659); + x_1705 = lean_box(0); } -x_1670 = lean_ctor_get(x_1629, 1); -lean_inc(x_1670); -lean_dec(x_1629); -x_1671 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_1630, x_1670); -if (lean_is_scalar(x_1669)) { - x_1672 = lean_alloc_ctor(0, 2, 0); +x_1706 = lean_ctor_get(x_1665, 1); +lean_inc(x_1706); +lean_dec(x_1665); +x_1707 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_1666, x_1706); +if (lean_is_scalar(x_1705)) { + x_1708 = lean_alloc_ctor(0, 2, 0); } else { - x_1672 = x_1669; + x_1708 = x_1705; } -lean_ctor_set(x_1672, 0, x_1671); -lean_ctor_set(x_1672, 1, x_1668); -return x_1672; +lean_ctor_set(x_1708, 0, x_1707); +lean_ctor_set(x_1708, 1, x_1704); +return x_1708; } case 8: { -lean_object* x_1673; lean_object* x_1674; lean_object* x_1675; lean_object* x_1676; lean_object* x_1677; -x_1673 = lean_ctor_get(x_1623, 1); -lean_inc(x_1673); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1674 = x_1623; +lean_object* x_1709; lean_object* x_1710; lean_object* x_1711; lean_object* x_1712; lean_object* x_1713; +x_1709 = lean_ctor_get(x_1659, 1); +lean_inc(x_1709); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1710 = x_1659; } else { - lean_dec_ref(x_1623); - x_1674 = lean_box(0); + lean_dec_ref(x_1659); + x_1710 = lean_box(0); } -x_1675 = lean_ctor_get(x_1629, 1); -lean_inc(x_1675); -lean_dec(x_1629); -x_1676 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_1630, x_1675); -if (lean_is_scalar(x_1674)) { - x_1677 = lean_alloc_ctor(0, 2, 0); +x_1711 = lean_ctor_get(x_1665, 1); +lean_inc(x_1711); +lean_dec(x_1665); +x_1712 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_1666, x_1711); +if (lean_is_scalar(x_1710)) { + x_1713 = lean_alloc_ctor(0, 2, 0); } else { - x_1677 = x_1674; + x_1713 = x_1710; } -lean_ctor_set(x_1677, 0, x_1676); -lean_ctor_set(x_1677, 1, x_1673); -return x_1677; +lean_ctor_set(x_1713, 0, x_1712); +lean_ctor_set(x_1713, 1, x_1709); +return x_1713; } case 9: { -lean_object* x_1678; lean_object* x_1679; lean_object* x_1680; lean_object* x_1681; lean_object* x_1682; -x_1678 = lean_ctor_get(x_1623, 1); -lean_inc(x_1678); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1679 = x_1623; +lean_object* x_1714; lean_object* x_1715; lean_object* x_1716; lean_object* x_1717; lean_object* x_1718; +x_1714 = lean_ctor_get(x_1659, 1); +lean_inc(x_1714); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1715 = x_1659; } else { - lean_dec_ref(x_1623); - x_1679 = lean_box(0); + lean_dec_ref(x_1659); + x_1715 = lean_box(0); } -x_1680 = lean_ctor_get(x_1629, 1); -lean_inc(x_1680); -lean_dec(x_1629); -x_1681 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_1630, x_1680); -if (lean_is_scalar(x_1679)) { - x_1682 = lean_alloc_ctor(0, 2, 0); +x_1716 = lean_ctor_get(x_1665, 1); +lean_inc(x_1716); +lean_dec(x_1665); +x_1717 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_1666, x_1716); +if (lean_is_scalar(x_1715)) { + x_1718 = lean_alloc_ctor(0, 2, 0); } else { - x_1682 = x_1679; + x_1718 = x_1715; } -lean_ctor_set(x_1682, 0, x_1681); -lean_ctor_set(x_1682, 1, x_1678); -return x_1682; +lean_ctor_set(x_1718, 0, x_1717); +lean_ctor_set(x_1718, 1, x_1714); +return x_1718; } case 10: { -lean_object* x_1683; lean_object* x_1684; lean_object* x_1685; lean_object* x_1686; lean_object* x_1687; -x_1683 = lean_ctor_get(x_1623, 1); -lean_inc(x_1683); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1684 = x_1623; +lean_object* x_1719; lean_object* x_1720; lean_object* x_1721; lean_object* x_1722; lean_object* x_1723; +x_1719 = lean_ctor_get(x_1659, 1); +lean_inc(x_1719); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1720 = x_1659; } else { - lean_dec_ref(x_1623); - x_1684 = lean_box(0); + lean_dec_ref(x_1659); + x_1720 = lean_box(0); } -x_1685 = lean_ctor_get(x_1629, 1); -lean_inc(x_1685); -lean_dec(x_1629); -x_1686 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_1630, x_1685); -if (lean_is_scalar(x_1684)) { - x_1687 = lean_alloc_ctor(0, 2, 0); +x_1721 = lean_ctor_get(x_1665, 1); +lean_inc(x_1721); +lean_dec(x_1665); +x_1722 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_1666, x_1721); +if (lean_is_scalar(x_1720)) { + x_1723 = lean_alloc_ctor(0, 2, 0); } else { - x_1687 = x_1684; + x_1723 = x_1720; } -lean_ctor_set(x_1687, 0, x_1686); -lean_ctor_set(x_1687, 1, x_1683); -return x_1687; +lean_ctor_set(x_1723, 0, x_1722); +lean_ctor_set(x_1723, 1, x_1719); +return x_1723; } case 11: { -lean_object* x_1688; lean_object* x_1689; lean_object* x_1690; lean_object* x_1691; lean_object* x_1692; -x_1688 = lean_ctor_get(x_1623, 1); -lean_inc(x_1688); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1689 = x_1623; +lean_object* x_1724; lean_object* x_1725; lean_object* x_1726; lean_object* x_1727; lean_object* x_1728; +x_1724 = lean_ctor_get(x_1659, 1); +lean_inc(x_1724); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1725 = x_1659; } else { - lean_dec_ref(x_1623); - x_1689 = lean_box(0); + lean_dec_ref(x_1659); + x_1725 = lean_box(0); } -x_1690 = lean_ctor_get(x_1629, 1); -lean_inc(x_1690); -lean_dec(x_1629); -x_1691 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_1630, x_1690); -if (lean_is_scalar(x_1689)) { - x_1692 = lean_alloc_ctor(0, 2, 0); +x_1726 = lean_ctor_get(x_1665, 1); +lean_inc(x_1726); +lean_dec(x_1665); +x_1727 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_1666, x_1726); +if (lean_is_scalar(x_1725)) { + x_1728 = lean_alloc_ctor(0, 2, 0); } else { - x_1692 = x_1689; + x_1728 = x_1725; } -lean_ctor_set(x_1692, 0, x_1691); -lean_ctor_set(x_1692, 1, x_1688); -return x_1692; +lean_ctor_set(x_1728, 0, x_1727); +lean_ctor_set(x_1728, 1, x_1724); +return x_1728; } default: { -lean_object* x_1693; lean_object* x_1694; lean_object* x_1695; lean_object* x_1696; lean_object* x_1697; -x_1693 = lean_ctor_get(x_1623, 1); -lean_inc(x_1693); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1694 = x_1623; +lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; lean_object* x_1732; lean_object* x_1733; +x_1729 = lean_ctor_get(x_1659, 1); +lean_inc(x_1729); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1730 = x_1659; } else { - lean_dec_ref(x_1623); - x_1694 = lean_box(0); + lean_dec_ref(x_1659); + x_1730 = lean_box(0); } -x_1695 = lean_ctor_get(x_1629, 1); -lean_inc(x_1695); -lean_dec(x_1629); -x_1696 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_1630, x_1695); -if (lean_is_scalar(x_1694)) { - x_1697 = lean_alloc_ctor(0, 2, 0); +x_1731 = lean_ctor_get(x_1665, 1); +lean_inc(x_1731); +lean_dec(x_1665); +x_1732 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_1666, x_1731); +if (lean_is_scalar(x_1730)) { + x_1733 = lean_alloc_ctor(0, 2, 0); } else { - x_1697 = x_1694; + x_1733 = x_1730; } -lean_ctor_set(x_1697, 0, x_1696); -lean_ctor_set(x_1697, 1, x_1693); -return x_1697; +lean_ctor_set(x_1733, 0, x_1732); +lean_ctor_set(x_1733, 1, x_1729); +return x_1733; } } } } else { -lean_object* x_1698; lean_object* x_1699; lean_object* x_1700; lean_object* x_1701; +lean_object* x_1734; lean_object* x_1735; lean_object* x_1736; lean_object* x_1737; lean_dec(x_2); -x_1698 = lean_ctor_get(x_1623, 0); -lean_inc(x_1698); -x_1699 = lean_ctor_get(x_1623, 1); -lean_inc(x_1699); -if (lean_is_exclusive(x_1623)) { - lean_ctor_release(x_1623, 0); - lean_ctor_release(x_1623, 1); - x_1700 = x_1623; +x_1734 = lean_ctor_get(x_1659, 0); +lean_inc(x_1734); +x_1735 = lean_ctor_get(x_1659, 1); +lean_inc(x_1735); +if (lean_is_exclusive(x_1659)) { + lean_ctor_release(x_1659, 0); + lean_ctor_release(x_1659, 1); + x_1736 = x_1659; } else { - lean_dec_ref(x_1623); - x_1700 = lean_box(0); + lean_dec_ref(x_1659); + x_1736 = lean_box(0); } -if (lean_is_scalar(x_1700)) { - x_1701 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_1736)) { + x_1737 = lean_alloc_ctor(1, 2, 0); } else { - x_1701 = x_1700; + x_1737 = x_1736; } -lean_ctor_set(x_1701, 0, x_1698); -lean_ctor_set(x_1701, 1, x_1699); -return x_1701; +lean_ctor_set(x_1737, 0, x_1734); +lean_ctor_set(x_1737, 1, x_1735); +return x_1737; } } else { -lean_object* x_1702; lean_object* x_1703; lean_object* x_1704; -lean_dec(x_1619); +lean_object* x_1738; lean_object* x_1739; lean_object* x_1740; +lean_dec(x_1655); lean_dec(x_1); -x_1702 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; -x_1703 = l_unreachable_x21___rarg(x_1702); -x_1704 = lean_apply_2(x_1703, x_2, x_3); -return x_1704; +x_1738 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_1739 = l_unreachable_x21___rarg(x_1738); +x_1740 = lean_apply_2(x_1739, x_2, x_3); +return x_1740; } } } @@ -20835,418 +21025,322 @@ return x_1704; } else { -lean_object* x_1705; size_t x_1706; lean_object* x_1707; size_t x_1708; lean_object* x_1709; lean_object* x_1710; uint8_t x_1711; -x_1705 = lean_ctor_get(x_25, 1); -x_1706 = lean_ctor_get_usize(x_25, 2); -lean_inc(x_1705); +lean_object* x_1741; size_t x_1742; lean_object* x_1743; size_t x_1744; lean_object* x_1745; lean_object* x_1746; uint8_t x_1747; +x_1741 = lean_ctor_get(x_25, 1); +x_1742 = lean_ctor_get_usize(x_25, 2); +lean_inc(x_1741); lean_dec(x_25); -x_1707 = lean_ctor_get(x_26, 1); -lean_inc(x_1707); -x_1708 = lean_ctor_get_usize(x_26, 2); +x_1743 = lean_ctor_get(x_26, 1); +lean_inc(x_1743); +x_1744 = lean_ctor_get_usize(x_26, 2); if (lean_is_exclusive(x_26)) { lean_ctor_release(x_26, 0); lean_ctor_release(x_26, 1); - x_1709 = x_26; + x_1745 = x_26; } else { lean_dec_ref(x_26); - x_1709 = lean_box(0); + x_1745 = lean_box(0); } -x_1710 = l_Lean_mkAppStx___closed__1; -x_1711 = lean_string_dec_eq(x_1707, x_1710); -lean_dec(x_1707); -if (x_1711 == 0) +x_1746 = l_Lean_mkAppStx___closed__1; +x_1747 = lean_string_dec_eq(x_1743, x_1746); +lean_dec(x_1743); +if (x_1747 == 0) { -lean_object* x_1712; -lean_dec(x_1709); -lean_dec(x_1705); +lean_object* x_1748; +lean_dec(x_1745); +lean_dec(x_1741); lean_free_object(x_15); lean_dec(x_31); lean_dec(x_28); lean_dec(x_4); -x_1712 = lean_box(0); -x_6 = x_1712; +x_1748 = lean_box(0); +x_6 = x_1748; goto block_14; } else { -lean_object* x_1713; lean_object* x_1714; uint8_t x_1715; +lean_object* x_1749; lean_object* x_1750; uint8_t x_1751; if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); - x_1713 = x_5; + x_1749 = x_5; } else { lean_dec_ref(x_5); - x_1713 = lean_box(0); + x_1749 = lean_box(0); } -x_1714 = l_Lean_mkAppStx___closed__3; -x_1715 = lean_string_dec_eq(x_1705, x_1714); -if (x_1715 == 0) -{ -lean_object* x_1716; lean_object* x_1717; lean_object* x_1718; lean_object* x_1719; lean_object* x_1720; lean_object* x_1721; lean_object* x_1722; lean_object* x_1723; lean_object* x_1724; lean_object* x_1725; -lean_dec(x_4); -if (lean_is_scalar(x_1709)) { - x_1716 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1716 = x_1709; -} -lean_ctor_set(x_1716, 0, x_27); -lean_ctor_set(x_1716, 1, x_1710); -lean_ctor_set_usize(x_1716, 2, x_1708); -x_1717 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1717, 0, x_1716); -lean_ctor_set(x_1717, 1, x_1705); -lean_ctor_set_usize(x_1717, 2, x_1706); -lean_ctor_set(x_15, 0, x_1717); -if (lean_is_scalar(x_1713)) { - x_1718 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1718 = x_1713; -} -lean_ctor_set(x_1718, 0, x_15); -lean_ctor_set(x_1718, 1, x_28); -lean_ctor_set_usize(x_1718, 2, x_30); -x_1719 = l_System_FilePath_dirName___closed__1; -x_1720 = l_Lean_Name_toStringWithSep___main(x_1719, x_1718); -x_1721 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1721, 0, x_1720); -x_1722 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1722, 0, x_1721); -x_1723 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_1724 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1724, 0, x_1723); -lean_ctor_set(x_1724, 1, x_1722); -x_1725 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1724, x_2, x_3); -lean_dec(x_1); -return x_1725; -} -else -{ -lean_object* x_1726; uint8_t x_1727; -lean_dec(x_1705); -x_1726 = l_Lean_mkAppStx___closed__5; -x_1727 = lean_string_dec_eq(x_31, x_1726); -if (x_1727 == 0) -{ -lean_object* x_1728; lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; lean_object* x_1732; lean_object* x_1733; lean_object* x_1734; lean_object* x_1735; lean_object* x_1736; lean_object* x_1737; -lean_dec(x_4); -if (lean_is_scalar(x_1709)) { - x_1728 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1728 = x_1709; -} -lean_ctor_set(x_1728, 0, x_27); -lean_ctor_set(x_1728, 1, x_1710); -lean_ctor_set_usize(x_1728, 2, x_1708); -x_1729 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1729, 0, x_1728); -lean_ctor_set(x_1729, 1, x_1714); -lean_ctor_set_usize(x_1729, 2, x_1706); -lean_ctor_set(x_15, 0, x_1729); -if (lean_is_scalar(x_1713)) { - x_1730 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_1730 = x_1713; -} -lean_ctor_set(x_1730, 0, x_15); -lean_ctor_set(x_1730, 1, x_28); -lean_ctor_set_usize(x_1730, 2, x_30); -x_1731 = l_System_FilePath_dirName___closed__1; -x_1732 = l_Lean_Name_toStringWithSep___main(x_1731, x_1730); -x_1733 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1733, 0, x_1732); -x_1734 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1734, 0, x_1733); -x_1735 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_1736 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1736, 0, x_1735); -lean_ctor_set(x_1736, 1, x_1734); -x_1737 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1736, x_2, x_3); -lean_dec(x_1); -return x_1737; -} -else -{ -lean_object* x_1738; uint8_t x_1739; -lean_dec(x_31); -x_1738 = l_Lean_mkTermIdFromIdent___closed__1; -x_1739 = lean_string_dec_eq(x_28, x_1738); -if (x_1739 == 0) -{ -lean_object* x_1740; uint8_t x_1741; -x_1740 = l_Lean_Parser_Term_fun___elambda__1___closed__1; -x_1741 = lean_string_dec_eq(x_28, x_1740); -if (x_1741 == 0) -{ -lean_object* x_1742; uint8_t x_1743; -x_1742 = l_Lean_Parser_Term_let___elambda__1___closed__1; -x_1743 = lean_string_dec_eq(x_28, x_1742); -if (x_1743 == 0) -{ -lean_object* x_1744; uint8_t x_1745; -x_1744 = l_Lean_mkAppStx___closed__7; -x_1745 = lean_string_dec_eq(x_28, x_1744); -if (x_1745 == 0) -{ -lean_object* x_1746; uint8_t x_1747; -x_1746 = l_Lean_Parser_Term_if___elambda__1___closed__1; -x_1747 = lean_string_dec_eq(x_28, x_1746); -if (x_1747 == 0) -{ -lean_object* x_1748; uint8_t x_1749; -x_1748 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__1; -x_1749 = lean_string_dec_eq(x_28, x_1748); -if (x_1749 == 0) -{ -lean_object* x_1750; uint8_t x_1751; -x_1750 = l_Lean_Parser_Term_band___elambda__1___closed__1; -x_1751 = lean_string_dec_eq(x_28, x_1750); +x_1750 = l_Lean_mkAppStx___closed__3; +x_1751 = lean_string_dec_eq(x_1741, x_1750); if (x_1751 == 0) { -lean_object* x_1752; uint8_t x_1753; -x_1752 = l_Lean_Parser_Term_beq___elambda__1___closed__1; -x_1753 = lean_string_dec_eq(x_28, x_1752); -if (x_1753 == 0) -{ -lean_object* x_1754; uint8_t x_1755; +lean_object* x_1752; lean_object* x_1753; lean_object* x_1754; lean_object* x_1755; lean_object* x_1756; lean_object* x_1757; lean_object* x_1758; lean_object* x_1759; lean_object* x_1760; lean_object* x_1761; lean_dec(x_4); -x_1754 = l_Lean_Parser_Term_str___elambda__1___closed__1; -x_1755 = lean_string_dec_eq(x_28, x_1754); -if (x_1755 == 0) -{ -lean_object* x_1756; uint8_t x_1757; -x_1756 = l_Lean_Parser_Level_num___elambda__1___closed__1; -x_1757 = lean_string_dec_eq(x_28, x_1756); -if (x_1757 == 0) -{ -lean_object* x_1758; lean_object* x_1759; lean_object* x_1760; lean_object* x_1761; lean_object* x_1762; lean_object* x_1763; lean_object* x_1764; lean_object* x_1765; lean_object* x_1766; lean_object* x_1767; -if (lean_is_scalar(x_1709)) { - x_1758 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +if (lean_is_scalar(x_1745)) { + x_1752 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); } else { - x_1758 = x_1709; + x_1752 = x_1745; } -lean_ctor_set(x_1758, 0, x_27); -lean_ctor_set(x_1758, 1, x_1710); -lean_ctor_set_usize(x_1758, 2, x_1708); -x_1759 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_1759, 0, x_1758); -lean_ctor_set(x_1759, 1, x_1714); -lean_ctor_set_usize(x_1759, 2, x_1706); -lean_ctor_set(x_15, 1, x_1726); -lean_ctor_set(x_15, 0, x_1759); -if (lean_is_scalar(x_1713)) { - x_1760 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1752, 0, x_27); +lean_ctor_set(x_1752, 1, x_1746); +lean_ctor_set_usize(x_1752, 2, x_1744); +x_1753 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1753, 0, x_1752); +lean_ctor_set(x_1753, 1, x_1741); +lean_ctor_set_usize(x_1753, 2, x_1742); +lean_ctor_set(x_15, 0, x_1753); +if (lean_is_scalar(x_1749)) { + x_1754 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); } else { - x_1760 = x_1713; + x_1754 = x_1749; } -lean_ctor_set(x_1760, 0, x_15); -lean_ctor_set(x_1760, 1, x_28); -lean_ctor_set_usize(x_1760, 2, x_30); -x_1761 = l_System_FilePath_dirName___closed__1; -x_1762 = l_Lean_Name_toStringWithSep___main(x_1761, x_1760); -x_1763 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_1763, 0, x_1762); -x_1764 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_1764, 0, x_1763); -x_1765 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_1766 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_1766, 0, x_1765); -lean_ctor_set(x_1766, 1, x_1764); -x_1767 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1766, x_2, x_3); +lean_ctor_set(x_1754, 0, x_15); +lean_ctor_set(x_1754, 1, x_28); +lean_ctor_set_usize(x_1754, 2, x_30); +x_1755 = l_System_FilePath_dirName___closed__1; +x_1756 = l_Lean_Name_toStringWithSep___main(x_1755, x_1754); +x_1757 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1757, 0, x_1756); +x_1758 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1758, 0, x_1757); +x_1759 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_1760 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1760, 0, x_1759); +lean_ctor_set(x_1760, 1, x_1758); +x_1761 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1760, x_2, x_3); lean_dec(x_1); -return x_1767; +return x_1761; } else { -lean_object* x_1768; lean_object* x_1769; lean_object* x_1770; lean_object* x_1771; -lean_dec(x_1713); -lean_dec(x_1709); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_2); -x_1768 = lean_unsigned_to_nat(0u); -x_1769 = l_Lean_Syntax_getArg(x_1, x_1768); -lean_dec(x_1); -x_1770 = l_Lean_numLitKind; -x_1771 = l_Lean_Syntax_isNatLitAux(x_1770, x_1769); -lean_dec(x_1769); -if (lean_obj_tag(x_1771) == 0) +lean_object* x_1762; uint8_t x_1763; +lean_dec(x_1741); +x_1762 = l_Lean_mkAppStx___closed__5; +x_1763 = lean_string_dec_eq(x_31, x_1762); +if (x_1763 == 0) { -lean_object* x_1772; lean_object* x_1773; -x_1772 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__5; -x_1773 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1773, 0, x_1772); -lean_ctor_set(x_1773, 1, x_3); +lean_object* x_1764; lean_object* x_1765; lean_object* x_1766; lean_object* x_1767; lean_object* x_1768; lean_object* x_1769; lean_object* x_1770; lean_object* x_1771; lean_object* x_1772; lean_object* x_1773; +lean_dec(x_4); +if (lean_is_scalar(x_1745)) { + x_1764 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1764 = x_1745; +} +lean_ctor_set(x_1764, 0, x_27); +lean_ctor_set(x_1764, 1, x_1746); +lean_ctor_set_usize(x_1764, 2, x_1744); +x_1765 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1765, 0, x_1764); +lean_ctor_set(x_1765, 1, x_1750); +lean_ctor_set_usize(x_1765, 2, x_1742); +lean_ctor_set(x_15, 0, x_1765); +if (lean_is_scalar(x_1749)) { + x_1766 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1766 = x_1749; +} +lean_ctor_set(x_1766, 0, x_15); +lean_ctor_set(x_1766, 1, x_28); +lean_ctor_set_usize(x_1766, 2, x_30); +x_1767 = l_System_FilePath_dirName___closed__1; +x_1768 = l_Lean_Name_toStringWithSep___main(x_1767, x_1766); +x_1769 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1769, 0, x_1768); +x_1770 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1770, 0, x_1769); +x_1771 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_1772 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1772, 0, x_1771); +lean_ctor_set(x_1772, 1, x_1770); +x_1773 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1772, x_2, x_3); +lean_dec(x_1); return x_1773; } else { -lean_object* x_1774; lean_object* x_1775; lean_object* x_1776; -x_1774 = lean_ctor_get(x_1771, 0); -lean_inc(x_1774); -lean_dec(x_1771); -x_1775 = l_Lean_mkNatLit(x_1774); -x_1776 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1776, 0, x_1775); -lean_ctor_set(x_1776, 1, x_3); -return x_1776; +lean_object* x_1774; uint8_t x_1775; +lean_dec(x_31); +x_1774 = l_Lean_mkTermIdFromIdent___closed__1; +x_1775 = lean_string_dec_eq(x_28, x_1774); +if (x_1775 == 0) +{ +lean_object* x_1776; uint8_t x_1777; +x_1776 = l_Lean_Parser_Term_fun___elambda__1___closed__1; +x_1777 = lean_string_dec_eq(x_28, x_1776); +if (x_1777 == 0) +{ +lean_object* x_1778; uint8_t x_1779; +x_1778 = l_Lean_Parser_Term_let___elambda__1___closed__1; +x_1779 = lean_string_dec_eq(x_28, x_1778); +if (x_1779 == 0) +{ +lean_object* x_1780; uint8_t x_1781; +x_1780 = l_Lean_mkAppStx___closed__7; +x_1781 = lean_string_dec_eq(x_28, x_1780); +if (x_1781 == 0) +{ +lean_object* x_1782; uint8_t x_1783; +x_1782 = l_Lean_Parser_Term_if___elambda__1___closed__1; +x_1783 = lean_string_dec_eq(x_28, x_1782); +if (x_1783 == 0) +{ +lean_object* x_1784; uint8_t x_1785; +x_1784 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__1; +x_1785 = lean_string_dec_eq(x_28, x_1784); +if (x_1785 == 0) +{ +lean_object* x_1786; uint8_t x_1787; +x_1786 = l_Lean_Parser_Term_band___elambda__1___closed__1; +x_1787 = lean_string_dec_eq(x_28, x_1786); +if (x_1787 == 0) +{ +lean_object* x_1788; uint8_t x_1789; +x_1788 = l_Lean_Parser_Term_beq___elambda__1___closed__1; +x_1789 = lean_string_dec_eq(x_28, x_1788); +if (x_1789 == 0) +{ +lean_object* x_1790; uint8_t x_1791; +x_1790 = l_Lean_Parser_Term_eq___elambda__1___closed__1; +x_1791 = lean_string_dec_eq(x_28, x_1790); +if (x_1791 == 0) +{ +lean_object* x_1792; uint8_t x_1793; +lean_dec(x_4); +x_1792 = l_Lean_Parser_Term_str___elambda__1___closed__1; +x_1793 = lean_string_dec_eq(x_28, x_1792); +if (x_1793 == 0) +{ +lean_object* x_1794; uint8_t x_1795; +x_1794 = l_Lean_Parser_Level_num___elambda__1___closed__1; +x_1795 = lean_string_dec_eq(x_28, x_1794); +if (x_1795 == 0) +{ +lean_object* x_1796; lean_object* x_1797; lean_object* x_1798; lean_object* x_1799; lean_object* x_1800; lean_object* x_1801; lean_object* x_1802; lean_object* x_1803; lean_object* x_1804; lean_object* x_1805; +if (lean_is_scalar(x_1745)) { + x_1796 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1796 = x_1745; } +lean_ctor_set(x_1796, 0, x_27); +lean_ctor_set(x_1796, 1, x_1746); +lean_ctor_set_usize(x_1796, 2, x_1744); +x_1797 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_1797, 0, x_1796); +lean_ctor_set(x_1797, 1, x_1750); +lean_ctor_set_usize(x_1797, 2, x_1742); +lean_ctor_set(x_15, 1, x_1762); +lean_ctor_set(x_15, 0, x_1797); +if (lean_is_scalar(x_1749)) { + x_1798 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_1798 = x_1749; } +lean_ctor_set(x_1798, 0, x_15); +lean_ctor_set(x_1798, 1, x_28); +lean_ctor_set_usize(x_1798, 2, x_30); +x_1799 = l_System_FilePath_dirName___closed__1; +x_1800 = l_Lean_Name_toStringWithSep___main(x_1799, x_1798); +x_1801 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_1801, 0, x_1800); +x_1802 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_1802, 0, x_1801); +x_1803 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_1804 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_1804, 0, x_1803); +lean_ctor_set(x_1804, 1, x_1802); +x_1805 = l_Lean_Elab_Term_throwError___rarg(x_1, x_1804, x_2, x_3); +lean_dec(x_1); +return x_1805; } else { -lean_object* x_1777; lean_object* x_1778; lean_object* x_1779; -lean_dec(x_1713); -lean_dec(x_1709); +lean_object* x_1806; lean_object* x_1807; lean_object* x_1808; lean_object* x_1809; +lean_dec(x_1749); +lean_dec(x_1745); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_2); -x_1777 = lean_unsigned_to_nat(0u); -x_1778 = l_Lean_Syntax_getArg(x_1, x_1777); +x_1806 = lean_unsigned_to_nat(0u); +x_1807 = l_Lean_Syntax_getArg(x_1, x_1806); lean_dec(x_1); -x_1779 = l_Lean_Syntax_isStrLit_x3f(x_1778); -lean_dec(x_1778); -if (lean_obj_tag(x_1779) == 0) -{ -lean_object* x_1780; lean_object* x_1781; -x_1780 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__6; -x_1781 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1781, 0, x_1780); -lean_ctor_set(x_1781, 1, x_3); -return x_1781; -} -else -{ -lean_object* x_1782; lean_object* x_1783; lean_object* x_1784; -x_1782 = lean_ctor_get(x_1779, 0); -lean_inc(x_1782); -lean_dec(x_1779); -x_1783 = l_Lean_mkStrLit(x_1782); -x_1784 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1784, 0, x_1783); -lean_ctor_set(x_1784, 1, x_3); -return x_1784; -} -} -} -else -{ -lean_object* x_1785; lean_object* x_1786; lean_object* x_1787; lean_object* x_1788; lean_object* x_1789; lean_object* x_1790; lean_object* x_1791; lean_object* x_1792; lean_object* x_1793; -lean_dec(x_1713); -lean_dec(x_1709); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_1); -x_1785 = l_Lean_Syntax_inhabited; -x_1786 = lean_unsigned_to_nat(0u); -x_1787 = lean_array_get(x_1785, x_4, x_1786); -x_1788 = lean_unsigned_to_nat(2u); -x_1789 = lean_array_get(x_1785, x_4, x_1788); -lean_dec(x_4); -x_1790 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___boxed), 6, 3); -lean_closure_set(x_1790, 0, x_27); -lean_closure_set(x_1790, 1, x_1787); -lean_closure_set(x_1790, 2, x_1789); -x_1791 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1792 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_1792, 0, x_1791); -lean_closure_set(x_1792, 1, x_1790); -x_1793 = l_Lean_Unhygienic_run___rarg(x_1792); -x_1 = x_1793; -goto _start; -} -} -else -{ -lean_object* x_1795; lean_object* x_1796; lean_object* x_1797; lean_object* x_1798; lean_object* x_1799; lean_object* x_1800; lean_object* x_1801; lean_object* x_1802; lean_object* x_1803; -lean_dec(x_1713); -lean_dec(x_1709); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_1); -x_1795 = l_Lean_Syntax_inhabited; -x_1796 = lean_unsigned_to_nat(0u); -x_1797 = lean_array_get(x_1795, x_4, x_1796); -x_1798 = lean_unsigned_to_nat(2u); -x_1799 = lean_array_get(x_1795, x_4, x_1798); -lean_dec(x_4); -x_1800 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed), 6, 3); -lean_closure_set(x_1800, 0, x_27); -lean_closure_set(x_1800, 1, x_1797); -lean_closure_set(x_1800, 2, x_1799); -x_1801 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_1802 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_1802, 0, x_1801); -lean_closure_set(x_1802, 1, x_1800); -x_1803 = l_Lean_Unhygienic_run___rarg(x_1802); -x_1 = x_1803; -goto _start; -} -} -else -{ -lean_object* x_1805; lean_object* x_1806; lean_object* x_1807; lean_object* x_1808; lean_object* x_1809; lean_object* x_1810; uint8_t x_1811; -lean_dec(x_1713); -lean_dec(x_1709); -lean_free_object(x_15); -lean_dec(x_28); -lean_dec(x_1); -x_1805 = l_Lean_Syntax_inhabited; -x_1806 = lean_unsigned_to_nat(1u); -x_1807 = lean_array_get(x_1805, x_4, x_1806); -lean_dec(x_4); -x_1808 = l_Lean_Syntax_getArgs(x_1807); +x_1808 = l_Lean_numLitKind; +x_1809 = l_Lean_Syntax_isNatLitAux(x_1808, x_1807); lean_dec(x_1807); -x_1809 = lean_array_get_size(x_1808); -x_1810 = lean_unsigned_to_nat(0u); -x_1811 = lean_nat_dec_eq(x_1809, x_1810); +if (lean_obj_tag(x_1809) == 0) +{ +lean_object* x_1810; lean_object* x_1811; +x_1810 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__5; +x_1811 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1811, 0, x_1810); +lean_ctor_set(x_1811, 1, x_3); +return x_1811; +} +else +{ +lean_object* x_1812; lean_object* x_1813; lean_object* x_1814; +x_1812 = lean_ctor_get(x_1809, 0); +lean_inc(x_1812); lean_dec(x_1809); -if (x_1811 == 0) -{ -lean_object* x_1812; -x_1812 = lean_array_get(x_1805, x_1808, x_1810); -lean_dec(x_1808); -x_1 = x_1812; -goto _start; +x_1813 = l_Lean_mkNatLit(x_1812); +x_1814 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1814, 0, x_1813); +lean_ctor_set(x_1814, 1, x_3); +return x_1814; +} +} } else { -lean_object* x_1814; lean_object* x_1815; lean_object* x_1816; lean_object* x_1817; lean_object* x_1818; lean_object* x_1819; lean_object* x_1820; -lean_dec(x_1808); +lean_object* x_1815; lean_object* x_1816; lean_object* x_1817; +lean_dec(x_1749); +lean_dec(x_1745); +lean_free_object(x_15); +lean_dec(x_28); lean_dec(x_2); -x_1814 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_1815 = lean_name_mk_string(x_27, x_1814); -x_1816 = l_Lean_Elab_Term_elabParen___closed__4; -x_1817 = lean_name_mk_string(x_1815, x_1816); -x_1818 = lean_box(0); -x_1819 = l_Lean_mkConst(x_1817, x_1818); -x_1820 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_1820, 0, x_1819); -lean_ctor_set(x_1820, 1, x_3); -return x_1820; +x_1815 = lean_unsigned_to_nat(0u); +x_1816 = l_Lean_Syntax_getArg(x_1, x_1815); +lean_dec(x_1); +x_1817 = l_Lean_Syntax_isStrLit_x3f(x_1816); +lean_dec(x_1816); +if (lean_obj_tag(x_1817) == 0) +{ +lean_object* x_1818; lean_object* x_1819; +x_1818 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__6; +x_1819 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1819, 0, x_1818); +lean_ctor_set(x_1819, 1, x_3); +return x_1819; +} +else +{ +lean_object* x_1820; lean_object* x_1821; lean_object* x_1822; +x_1820 = lean_ctor_get(x_1817, 0); +lean_inc(x_1820); +lean_dec(x_1817); +x_1821 = l_Lean_mkStrLit(x_1820); +x_1822 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1822, 0, x_1821); +lean_ctor_set(x_1822, 1, x_3); +return x_1822; } } } else { -lean_object* x_1821; lean_object* x_1822; lean_object* x_1823; lean_object* x_1824; lean_object* x_1825; lean_object* x_1826; lean_object* x_1827; lean_object* x_1828; lean_object* x_1829; lean_object* x_1830; lean_object* x_1831; -lean_dec(x_1713); -lean_dec(x_1709); +lean_object* x_1823; lean_object* x_1824; lean_object* x_1825; lean_object* x_1826; lean_object* x_1827; lean_object* x_1828; lean_object* x_1829; lean_object* x_1830; lean_object* x_1831; +lean_dec(x_1749); +lean_dec(x_1745); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_1821 = l_Lean_Syntax_inhabited; -x_1822 = lean_unsigned_to_nat(2u); -x_1823 = lean_array_get(x_1821, x_4, x_1822); -x_1824 = lean_unsigned_to_nat(4u); -x_1825 = lean_array_get(x_1821, x_4, x_1824); -x_1826 = lean_unsigned_to_nat(6u); -x_1827 = lean_array_get(x_1821, x_4, x_1826); +x_1823 = l_Lean_Syntax_inhabited; +x_1824 = lean_unsigned_to_nat(0u); +x_1825 = lean_array_get(x_1823, x_4, x_1824); +x_1826 = lean_unsigned_to_nat(2u); +x_1827 = lean_array_get(x_1823, x_4, x_1826); lean_dec(x_4); -x_1828 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed), 7, 4); +x_1828 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___boxed), 6, 3); lean_closure_set(x_1828, 0, x_27); -lean_closure_set(x_1828, 1, x_1823); -lean_closure_set(x_1828, 2, x_1825); -lean_closure_set(x_1828, 3, x_1827); +lean_closure_set(x_1828, 1, x_1825); +lean_closure_set(x_1828, 2, x_1827); x_1829 = l_Lean_Unhygienic_MonadQuotation___closed__4; x_1830 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); lean_closure_set(x_1830, 0, x_1829); @@ -21258,679 +21352,319 @@ goto _start; } else { -lean_object* x_1833; lean_object* x_1834; lean_object* x_1835; lean_object* x_1836; -lean_dec(x_1713); -lean_dec(x_1709); +lean_object* x_1833; lean_object* x_1834; lean_object* x_1835; lean_object* x_1836; lean_object* x_1837; lean_object* x_1838; lean_object* x_1839; lean_object* x_1840; lean_object* x_1841; +lean_dec(x_1749); +lean_dec(x_1745); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); x_1833 = l_Lean_Syntax_inhabited; x_1834 = lean_unsigned_to_nat(0u); x_1835 = lean_array_get(x_1833, x_4, x_1834); -lean_inc(x_2); -x_1836 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1835, x_2, x_3); -if (lean_obj_tag(x_1836) == 0) -{ -lean_object* x_1837; lean_object* x_1838; lean_object* x_1839; lean_object* x_1840; lean_object* x_1841; lean_object* x_1842; -x_1837 = lean_ctor_get(x_1836, 0); -lean_inc(x_1837); -x_1838 = lean_ctor_get(x_1836, 1); -lean_inc(x_1838); -lean_dec(x_1836); -x_1839 = lean_unsigned_to_nat(1u); -x_1840 = lean_array_get(x_1833, x_4, x_1839); +x_1836 = lean_unsigned_to_nat(2u); +x_1837 = lean_array_get(x_1833, x_4, x_1836); lean_dec(x_4); -x_1841 = l_Lean_Syntax_getArgs(x_1840); -lean_dec(x_1840); -x_1842 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__1(x_1834, x_1841, x_2, x_1838); -if (lean_obj_tag(x_1842) == 0) -{ -lean_object* x_1843; lean_object* x_1844; lean_object* x_1845; lean_object* x_1846; lean_object* x_1847; -x_1843 = lean_ctor_get(x_1842, 0); -lean_inc(x_1843); -x_1844 = lean_ctor_get(x_1842, 1); -lean_inc(x_1844); -if (lean_is_exclusive(x_1842)) { - lean_ctor_release(x_1842, 0); - lean_ctor_release(x_1842, 1); - x_1845 = x_1842; -} else { - lean_dec_ref(x_1842); - x_1845 = lean_box(0); -} -x_1846 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1843, x_1843, x_1834, x_1837); -lean_dec(x_1843); -if (lean_is_scalar(x_1845)) { - x_1847 = lean_alloc_ctor(0, 2, 0); -} else { - x_1847 = x_1845; -} -lean_ctor_set(x_1847, 0, x_1846); -lean_ctor_set(x_1847, 1, x_1844); -return x_1847; -} -else -{ -lean_object* x_1848; lean_object* x_1849; lean_object* x_1850; lean_object* x_1851; -lean_dec(x_1837); -x_1848 = lean_ctor_get(x_1842, 0); -lean_inc(x_1848); -x_1849 = lean_ctor_get(x_1842, 1); -lean_inc(x_1849); -if (lean_is_exclusive(x_1842)) { - lean_ctor_release(x_1842, 0); - lean_ctor_release(x_1842, 1); - x_1850 = x_1842; -} else { - lean_dec_ref(x_1842); - x_1850 = lean_box(0); -} -if (lean_is_scalar(x_1850)) { - x_1851 = lean_alloc_ctor(1, 2, 0); -} else { - x_1851 = x_1850; -} -lean_ctor_set(x_1851, 0, x_1848); -lean_ctor_set(x_1851, 1, x_1849); -return x_1851; +x_1838 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_1838, 0, x_27); +lean_closure_set(x_1838, 1, x_1835); +lean_closure_set(x_1838, 2, x_1837); +x_1839 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1840 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_1840, 0, x_1839); +lean_closure_set(x_1840, 1, x_1838); +x_1841 = l_Lean_Unhygienic_run___rarg(x_1840); +x_1 = x_1841; +goto _start; } } else { -lean_object* x_1852; lean_object* x_1853; lean_object* x_1854; lean_object* x_1855; -lean_dec(x_4); -lean_dec(x_2); -x_1852 = lean_ctor_get(x_1836, 0); -lean_inc(x_1852); -x_1853 = lean_ctor_get(x_1836, 1); -lean_inc(x_1853); -if (lean_is_exclusive(x_1836)) { - lean_ctor_release(x_1836, 0); - lean_ctor_release(x_1836, 1); - x_1854 = x_1836; -} else { - lean_dec_ref(x_1836); - x_1854 = lean_box(0); -} -if (lean_is_scalar(x_1854)) { - x_1855 = lean_alloc_ctor(1, 2, 0); -} else { - x_1855 = x_1854; -} -lean_ctor_set(x_1855, 0, x_1852); -lean_ctor_set(x_1855, 1, x_1853); -return x_1855; -} -} -} -else -{ -lean_object* x_1856; lean_object* x_1857; lean_object* x_1858; lean_object* x_1859; lean_object* x_1860; uint8_t x_1861; lean_object* x_1862; lean_object* x_1863; lean_object* x_1864; lean_object* x_1865; lean_object* x_1866; -lean_dec(x_1713); -lean_dec(x_1709); +lean_object* x_1843; lean_object* x_1844; lean_object* x_1845; lean_object* x_1846; lean_object* x_1847; lean_object* x_1848; lean_object* x_1849; lean_object* x_1850; lean_object* x_1851; +lean_dec(x_1749); +lean_dec(x_1745); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_1856 = l_Lean_Syntax_inhabited; -x_1857 = lean_unsigned_to_nat(1u); -x_1858 = lean_array_get(x_1856, x_4, x_1857); -x_1859 = lean_unsigned_to_nat(0u); -x_1860 = l_Lean_Syntax_getArg(x_1858, x_1859); -x_1861 = l_Lean_Syntax_isIdent(x_1860); -x_1862 = lean_unsigned_to_nat(4u); -x_1863 = l_Lean_Syntax_getArg(x_1858, x_1862); -lean_dec(x_1858); -x_1864 = lean_unsigned_to_nat(3u); -x_1865 = lean_array_get(x_1856, x_4, x_1864); +x_1843 = l_Lean_Syntax_inhabited; +x_1844 = lean_unsigned_to_nat(0u); +x_1845 = lean_array_get(x_1843, x_4, x_1844); +x_1846 = lean_unsigned_to_nat(2u); +x_1847 = lean_array_get(x_1843, x_4, x_1846); lean_dec(x_4); -if (x_1861 == 0) -{ -lean_object* x_1913; -x_1913 = l_Lean_Syntax_getIdAt(x_1860, x_1859); -lean_dec(x_1860); -x_1866 = x_1913; -goto block_1912; +x_1848 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_1848, 0, x_27); +lean_closure_set(x_1848, 1, x_1845); +lean_closure_set(x_1848, 2, x_1847); +x_1849 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1850 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_1850, 0, x_1849); +lean_closure_set(x_1850, 1, x_1848); +x_1851 = l_Lean_Unhygienic_run___rarg(x_1850); +x_1 = x_1851; +goto _start; +} } else { -lean_object* x_1914; -x_1914 = l_Lean_Syntax_getId(x_1860); -lean_dec(x_1860); -x_1866 = x_1914; -goto block_1912; -} -block_1912: +lean_object* x_1853; lean_object* x_1854; lean_object* x_1855; lean_object* x_1856; lean_object* x_1857; lean_object* x_1858; uint8_t x_1859; +lean_dec(x_1749); +lean_dec(x_1745); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_1853 = l_Lean_Syntax_inhabited; +x_1854 = lean_unsigned_to_nat(1u); +x_1855 = lean_array_get(x_1853, x_4, x_1854); +lean_dec(x_4); +x_1856 = l_Lean_Syntax_getArgs(x_1855); +lean_dec(x_1855); +x_1857 = lean_array_get_size(x_1856); +x_1858 = lean_unsigned_to_nat(0u); +x_1859 = lean_nat_dec_eq(x_1857, x_1858); +lean_dec(x_1857); +if (x_1859 == 0) { -lean_object* x_1867; +lean_object* x_1860; +x_1860 = lean_array_get(x_1853, x_1856, x_1858); +lean_dec(x_1856); +x_1 = x_1860; +goto _start; +} +else +{ +lean_object* x_1862; lean_object* x_1863; lean_object* x_1864; lean_object* x_1865; lean_object* x_1866; lean_object* x_1867; lean_object* x_1868; +lean_dec(x_1856); +lean_dec(x_2); +x_1862 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_1863 = lean_name_mk_string(x_27, x_1862); +x_1864 = l_Lean_Elab_Term_elabParen___closed__4; +x_1865 = lean_name_mk_string(x_1863, x_1864); +x_1866 = lean_box(0); +x_1867 = l_Lean_mkConst(x_1865, x_1866); +x_1868 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1868, 0, x_1867); +lean_ctor_set(x_1868, 1, x_3); +return x_1868; +} +} +} +else +{ +lean_object* x_1869; lean_object* x_1870; lean_object* x_1871; lean_object* x_1872; lean_object* x_1873; lean_object* x_1874; lean_object* x_1875; lean_object* x_1876; lean_object* x_1877; lean_object* x_1878; lean_object* x_1879; +lean_dec(x_1749); +lean_dec(x_1745); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_1869 = l_Lean_Syntax_inhabited; +x_1870 = lean_unsigned_to_nat(2u); +x_1871 = lean_array_get(x_1869, x_4, x_1870); +x_1872 = lean_unsigned_to_nat(4u); +x_1873 = lean_array_get(x_1869, x_4, x_1872); +x_1874 = lean_unsigned_to_nat(6u); +x_1875 = lean_array_get(x_1869, x_4, x_1874); +lean_dec(x_4); +x_1876 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_1876, 0, x_27); +lean_closure_set(x_1876, 1, x_1871); +lean_closure_set(x_1876, 2, x_1873); +lean_closure_set(x_1876, 3, x_1875); +x_1877 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_1878 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_1878, 0, x_1877); +lean_closure_set(x_1878, 1, x_1876); +x_1879 = l_Lean_Unhygienic_run___rarg(x_1878); +x_1 = x_1879; +goto _start; +} +} +else +{ +lean_object* x_1881; lean_object* x_1882; lean_object* x_1883; lean_object* x_1884; +lean_dec(x_1749); +lean_dec(x_1745); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_1881 = l_Lean_Syntax_inhabited; +x_1882 = lean_unsigned_to_nat(0u); +x_1883 = lean_array_get(x_1881, x_4, x_1882); lean_inc(x_2); -x_1867 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1863, x_2, x_3); -if (lean_obj_tag(x_1867) == 0) +x_1884 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1883, x_2, x_3); +if (lean_obj_tag(x_1884) == 0) { -lean_object* x_1868; lean_object* x_1869; lean_object* x_1870; lean_object* x_1871; lean_object* x_1872; lean_object* x_1873; lean_object* x_1874; lean_object* x_1875; lean_object* x_1876; lean_object* x_1877; lean_object* x_1878; lean_object* x_1879; lean_object* x_1880; lean_object* x_1881; lean_object* x_1882; lean_object* x_1883; lean_object* x_1884; uint8_t x_1885; uint8_t x_1886; lean_object* x_1887; lean_object* x_1888; lean_object* x_1889; lean_object* x_1890; lean_object* x_1891; lean_object* x_1892; lean_object* x_1893; lean_object* x_1894; lean_object* x_1895; -x_1868 = lean_ctor_get(x_1867, 0); -lean_inc(x_1868); -x_1869 = lean_ctor_get(x_1867, 1); -lean_inc(x_1869); -lean_dec(x_1867); -x_1870 = l_Lean_Elab_Term_getLCtx(x_2, x_1869); -x_1871 = lean_ctor_get(x_1870, 0); -lean_inc(x_1871); -x_1872 = lean_ctor_get(x_1870, 1); -lean_inc(x_1872); -lean_dec(x_1870); -x_1873 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -lean_inc_n(x_1866, 2); -x_1874 = lean_local_ctx_mk_let_decl(x_1871, x_1866, x_1866, x_1873, x_1868); -x_1875 = lean_ctor_get(x_2, 0); -lean_inc(x_1875); -x_1876 = lean_ctor_get(x_2, 1); -lean_inc(x_1876); -x_1877 = lean_ctor_get(x_2, 2); -lean_inc(x_1877); -x_1878 = lean_ctor_get(x_2, 3); -lean_inc(x_1878); -x_1879 = lean_ctor_get(x_2, 4); -lean_inc(x_1879); -x_1880 = lean_ctor_get(x_2, 5); -lean_inc(x_1880); -x_1881 = lean_ctor_get(x_2, 6); -lean_inc(x_1881); -x_1882 = lean_ctor_get(x_2, 7); -lean_inc(x_1882); -x_1883 = lean_ctor_get(x_2, 8); -lean_inc(x_1883); -x_1884 = lean_ctor_get(x_2, 9); -lean_inc(x_1884); -x_1885 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1886 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1887 = x_2; -} else { - lean_dec_ref(x_2); - x_1887 = lean_box(0); -} -x_1888 = lean_ctor_get(x_1875, 0); -lean_inc(x_1888); -x_1889 = lean_ctor_get(x_1875, 2); -lean_inc(x_1889); -x_1890 = lean_ctor_get(x_1875, 3); -lean_inc(x_1890); -x_1891 = lean_ctor_get(x_1875, 4); +lean_object* x_1885; lean_object* x_1886; lean_object* x_1887; lean_object* x_1888; lean_object* x_1889; lean_object* x_1890; +x_1885 = lean_ctor_get(x_1884, 0); +lean_inc(x_1885); +x_1886 = lean_ctor_get(x_1884, 1); +lean_inc(x_1886); +lean_dec(x_1884); +x_1887 = lean_unsigned_to_nat(1u); +x_1888 = lean_array_get(x_1881, x_4, x_1887); +lean_dec(x_4); +x_1889 = l_Lean_Syntax_getArgs(x_1888); +lean_dec(x_1888); +x_1890 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__1(x_1882, x_1889, x_2, x_1886); +if (lean_obj_tag(x_1890) == 0) +{ +lean_object* x_1891; lean_object* x_1892; lean_object* x_1893; lean_object* x_1894; lean_object* x_1895; +x_1891 = lean_ctor_get(x_1890, 0); lean_inc(x_1891); -if (lean_is_exclusive(x_1875)) { - lean_ctor_release(x_1875, 0); - lean_ctor_release(x_1875, 1); - lean_ctor_release(x_1875, 2); - lean_ctor_release(x_1875, 3); - lean_ctor_release(x_1875, 4); - x_1892 = x_1875; +x_1892 = lean_ctor_get(x_1890, 1); +lean_inc(x_1892); +if (lean_is_exclusive(x_1890)) { + lean_ctor_release(x_1890, 0); + lean_ctor_release(x_1890, 1); + x_1893 = x_1890; } else { - lean_dec_ref(x_1875); - x_1892 = lean_box(0); + lean_dec_ref(x_1890); + x_1893 = lean_box(0); } -lean_inc(x_1874); -if (lean_is_scalar(x_1892)) { - x_1893 = lean_alloc_ctor(0, 5, 0); +x_1894 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_1891, x_1891, x_1882, x_1885); +lean_dec(x_1891); +if (lean_is_scalar(x_1893)) { + x_1895 = lean_alloc_ctor(0, 2, 0); } else { - x_1893 = x_1892; + x_1895 = x_1893; } -lean_ctor_set(x_1893, 0, x_1888); -lean_ctor_set(x_1893, 1, x_1874); -lean_ctor_set(x_1893, 2, x_1889); -lean_ctor_set(x_1893, 3, x_1890); -lean_ctor_set(x_1893, 4, x_1891); -if (lean_is_scalar(x_1887)) { - x_1894 = lean_alloc_ctor(0, 10, 2); -} else { - x_1894 = x_1887; +lean_ctor_set(x_1895, 0, x_1894); +lean_ctor_set(x_1895, 1, x_1892); +return x_1895; } -lean_ctor_set(x_1894, 0, x_1893); -lean_ctor_set(x_1894, 1, x_1876); -lean_ctor_set(x_1894, 2, x_1877); -lean_ctor_set(x_1894, 3, x_1878); -lean_ctor_set(x_1894, 4, x_1879); -lean_ctor_set(x_1894, 5, x_1880); -lean_ctor_set(x_1894, 6, x_1881); -lean_ctor_set(x_1894, 7, x_1882); -lean_ctor_set(x_1894, 8, x_1883); -lean_ctor_set(x_1894, 9, x_1884); -lean_ctor_set_uint8(x_1894, sizeof(void*)*10, x_1885); -lean_ctor_set_uint8(x_1894, sizeof(void*)*10 + 1, x_1886); -x_1895 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1865, x_1894, x_1872); -if (lean_obj_tag(x_1895) == 0) +else { -lean_object* x_1896; lean_object* x_1897; lean_object* x_1898; lean_object* x_1899; lean_object* x_1900; lean_object* x_1901; lean_object* x_1902; lean_object* x_1903; -x_1896 = lean_ctor_get(x_1895, 0); +lean_object* x_1896; lean_object* x_1897; lean_object* x_1898; lean_object* x_1899; +lean_dec(x_1885); +x_1896 = lean_ctor_get(x_1890, 0); lean_inc(x_1896); -x_1897 = lean_ctor_get(x_1895, 1); +x_1897 = lean_ctor_get(x_1890, 1); lean_inc(x_1897); -if (lean_is_exclusive(x_1895)) { - lean_ctor_release(x_1895, 0); - lean_ctor_release(x_1895, 1); - x_1898 = x_1895; +if (lean_is_exclusive(x_1890)) { + lean_ctor_release(x_1890, 0); + lean_ctor_release(x_1890, 1); + x_1898 = x_1890; } else { - lean_dec_ref(x_1895); + lean_dec_ref(x_1890); x_1898 = lean_box(0); } -x_1899 = l_Lean_mkFVar(x_1866); -x_1900 = l_Lean_mkOptionalNode___closed__2; -x_1901 = lean_array_push(x_1900, x_1899); -x_1902 = l_Lean_LocalContext_mkLambda(x_1874, x_1901, x_1896); -lean_dec(x_1896); -lean_dec(x_1901); if (lean_is_scalar(x_1898)) { - x_1903 = lean_alloc_ctor(0, 2, 0); + x_1899 = lean_alloc_ctor(1, 2, 0); } else { - x_1903 = x_1898; + x_1899 = x_1898; } -lean_ctor_set(x_1903, 0, x_1902); -lean_ctor_set(x_1903, 1, x_1897); +lean_ctor_set(x_1899, 0, x_1896); +lean_ctor_set(x_1899, 1, x_1897); +return x_1899; +} +} +else +{ +lean_object* x_1900; lean_object* x_1901; lean_object* x_1902; lean_object* x_1903; +lean_dec(x_4); +lean_dec(x_2); +x_1900 = lean_ctor_get(x_1884, 0); +lean_inc(x_1900); +x_1901 = lean_ctor_get(x_1884, 1); +lean_inc(x_1901); +if (lean_is_exclusive(x_1884)) { + lean_ctor_release(x_1884, 0); + lean_ctor_release(x_1884, 1); + x_1902 = x_1884; +} else { + lean_dec_ref(x_1884); + x_1902 = lean_box(0); +} +if (lean_is_scalar(x_1902)) { + x_1903 = lean_alloc_ctor(1, 2, 0); +} else { + x_1903 = x_1902; +} +lean_ctor_set(x_1903, 0, x_1900); +lean_ctor_set(x_1903, 1, x_1901); return x_1903; } -else -{ -lean_object* x_1904; lean_object* x_1905; lean_object* x_1906; lean_object* x_1907; -lean_dec(x_1874); -lean_dec(x_1866); -x_1904 = lean_ctor_get(x_1895, 0); -lean_inc(x_1904); -x_1905 = lean_ctor_get(x_1895, 1); -lean_inc(x_1905); -if (lean_is_exclusive(x_1895)) { - lean_ctor_release(x_1895, 0); - lean_ctor_release(x_1895, 1); - x_1906 = x_1895; -} else { - lean_dec_ref(x_1895); - x_1906 = lean_box(0); -} -if (lean_is_scalar(x_1906)) { - x_1907 = lean_alloc_ctor(1, 2, 0); -} else { - x_1907 = x_1906; -} -lean_ctor_set(x_1907, 0, x_1904); -lean_ctor_set(x_1907, 1, x_1905); -return x_1907; } } else { -lean_object* x_1908; lean_object* x_1909; lean_object* x_1910; lean_object* x_1911; -lean_dec(x_1866); -lean_dec(x_1865); -lean_dec(x_2); -x_1908 = lean_ctor_get(x_1867, 0); -lean_inc(x_1908); -x_1909 = lean_ctor_get(x_1867, 1); -lean_inc(x_1909); -if (lean_is_exclusive(x_1867)) { - lean_ctor_release(x_1867, 0); - lean_ctor_release(x_1867, 1); - x_1910 = x_1867; -} else { - lean_dec_ref(x_1867); - x_1910 = lean_box(0); -} -if (lean_is_scalar(x_1910)) { - x_1911 = lean_alloc_ctor(1, 2, 0); -} else { - x_1911 = x_1910; -} -lean_ctor_set(x_1911, 0, x_1908); -lean_ctor_set(x_1911, 1, x_1909); -return x_1911; -} -} -} -} -else -{ -lean_object* x_1915; lean_object* x_1916; lean_object* x_1917; lean_object* x_1918; lean_object* x_1919; lean_object* x_1920; lean_object* x_1921; lean_object* x_1922; uint8_t x_1923; -lean_dec(x_1713); -lean_dec(x_1709); +lean_object* x_1904; lean_object* x_1905; lean_object* x_1906; lean_object* x_1907; lean_object* x_1908; uint8_t x_1909; lean_object* x_1910; lean_object* x_1911; lean_object* x_1912; lean_object* x_1913; lean_object* x_1914; +lean_dec(x_1749); +lean_dec(x_1745); lean_free_object(x_15); lean_dec(x_28); lean_dec(x_1); -x_1915 = l_Lean_Syntax_inhabited; -x_1916 = lean_unsigned_to_nat(1u); -x_1917 = lean_array_get(x_1915, x_4, x_1916); -x_1918 = l_Lean_Syntax_getArgs(x_1917); -lean_dec(x_1917); -x_1919 = lean_unsigned_to_nat(3u); -x_1920 = lean_array_get(x_1915, x_4, x_1919); +x_1904 = l_Lean_Syntax_inhabited; +x_1905 = lean_unsigned_to_nat(1u); +x_1906 = lean_array_get(x_1904, x_4, x_1905); +x_1907 = lean_unsigned_to_nat(0u); +x_1908 = l_Lean_Syntax_getArg(x_1906, x_1907); +x_1909 = l_Lean_Syntax_isIdent(x_1908); +x_1910 = lean_unsigned_to_nat(4u); +x_1911 = l_Lean_Syntax_getArg(x_1906, x_1910); +lean_dec(x_1906); +x_1912 = lean_unsigned_to_nat(3u); +x_1913 = lean_array_get(x_1904, x_4, x_1912); lean_dec(x_4); -x_1921 = lean_array_get_size(x_1918); -x_1922 = lean_unsigned_to_nat(0u); -x_1923 = lean_nat_dec_eq(x_1921, x_1922); -lean_dec(x_1921); -if (x_1923 == 0) +if (x_1909 == 0) { -lean_object* x_1924; lean_object* x_1925; lean_object* x_1926; lean_object* x_1927; lean_object* x_1928; uint8_t x_1929; -x_1924 = lean_array_get(x_1915, x_1918, x_1922); -x_1925 = lean_name_mk_string(x_27, x_1710); -x_1926 = lean_name_mk_string(x_1925, x_1714); -x_1927 = lean_name_mk_string(x_1926, x_1726); -lean_inc(x_1927); -x_1928 = lean_name_mk_string(x_1927, x_1738); -lean_inc(x_1924); -x_1929 = l_Lean_Syntax_isOfKind(x_1924, x_1928); -lean_dec(x_1928); -if (x_1929 == 0) +lean_object* x_1961; +x_1961 = l_Lean_Syntax_getIdAt(x_1908, x_1907); +lean_dec(x_1908); +x_1914 = x_1961; +goto block_1960; +} +else { -lean_object* x_1930; lean_object* x_1931; uint8_t x_1932; -x_1930 = l_Lean_mkHole___closed__1; -lean_inc(x_1927); -x_1931 = lean_name_mk_string(x_1927, x_1930); -lean_inc(x_1924); -x_1932 = l_Lean_Syntax_isOfKind(x_1924, x_1931); -lean_dec(x_1931); -if (x_1932 == 0) +lean_object* x_1962; +x_1962 = l_Lean_Syntax_getId(x_1908); +lean_dec(x_1908); +x_1914 = x_1962; +goto block_1960; +} +block_1960: { -lean_object* x_1933; lean_object* x_1934; lean_object* x_1935; lean_object* x_1936; lean_object* x_1937; lean_object* x_1938; lean_object* x_1939; -x_1933 = l_Lean_Syntax_getArg(x_1924, x_1916); -lean_dec(x_1924); -x_1934 = l_Lean_Syntax_getArg(x_1933, x_1922); -x_1935 = l_Lean_Syntax_getIdAt(x_1934, x_1922); -lean_dec(x_1934); -x_1936 = l_Lean_Syntax_getArg(x_1933, x_1916); -lean_dec(x_1933); -x_1937 = l_Lean_Syntax_getArg(x_1936, x_1922); -lean_dec(x_1936); -x_1938 = l_Lean_Syntax_getArg(x_1937, x_1916); -lean_dec(x_1937); +lean_object* x_1915; lean_inc(x_2); -x_1939 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1938, x_2, x_3); -if (lean_obj_tag(x_1939) == 0) +x_1915 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1911, x_2, x_3); +if (lean_obj_tag(x_1915) == 0) { -lean_object* x_1940; lean_object* x_1941; lean_object* x_1942; lean_object* x_1943; lean_object* x_1944; uint8_t x_1945; lean_object* x_1946; lean_object* x_1947; lean_object* x_1948; lean_object* x_1949; lean_object* x_1950; lean_object* x_1951; lean_object* x_1952; lean_object* x_1953; lean_object* x_1954; lean_object* x_1955; lean_object* x_1956; lean_object* x_1957; lean_object* x_1958; lean_object* x_1959; lean_object* x_1960; lean_object* x_1961; lean_object* x_1962; lean_object* x_1963; lean_object* x_1964; lean_object* x_1965; lean_object* x_1966; lean_object* x_1967; lean_object* x_1968; lean_object* x_1969; lean_object* x_1970; lean_object* x_1971; lean_object* x_1972; lean_object* x_1973; uint8_t x_1974; uint8_t x_1975; lean_object* x_1976; lean_object* x_1977; lean_object* x_1978; lean_object* x_1979; lean_object* x_1980; lean_object* x_1981; lean_object* x_1982; lean_object* x_1983; lean_object* x_1984; -x_1940 = lean_ctor_get(x_1939, 0); -lean_inc(x_1940); -x_1941 = lean_ctor_get(x_1939, 1); -lean_inc(x_1941); -lean_dec(x_1939); -x_1942 = l_Lean_Elab_Term_getLCtx(x_2, x_1941); -x_1943 = lean_ctor_get(x_1942, 0); -lean_inc(x_1943); -x_1944 = lean_ctor_get(x_1942, 1); -lean_inc(x_1944); -lean_dec(x_1942); -x_1945 = 0; -lean_inc_n(x_1935, 2); -x_1946 = lean_local_ctx_mk_local_decl(x_1943, x_1935, x_1935, x_1940, x_1945); -x_1947 = l_Array_eraseIdx___rarg(x_1918, x_1922); -x_1948 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1944); -x_1949 = lean_ctor_get(x_1948, 1); -lean_inc(x_1949); -lean_dec(x_1948); -x_1950 = l_Lean_Elab_Term_getMainModule___rarg(x_1949); -x_1951 = lean_ctor_get(x_1950, 1); -lean_inc(x_1951); -lean_dec(x_1950); -x_1952 = lean_name_mk_string(x_1927, x_1740); -x_1953 = l_Lean_nullKind___closed__1; -x_1954 = lean_name_mk_string(x_27, x_1953); -x_1955 = l_Array_empty___closed__1; -x_1956 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1947, x_1947, x_1922, x_1955); -lean_dec(x_1947); -x_1957 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1957, 0, x_1954); -lean_ctor_set(x_1957, 1, x_1956); -x_1958 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_1959 = lean_array_push(x_1958, x_1957); -x_1960 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_1961 = lean_array_push(x_1959, x_1960); -x_1962 = lean_array_push(x_1961, x_1920); -x_1963 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_1963, 0, x_1952); -lean_ctor_set(x_1963, 1, x_1962); -x_1964 = lean_ctor_get(x_2, 0); -lean_inc(x_1964); -x_1965 = lean_ctor_get(x_2, 1); -lean_inc(x_1965); -x_1966 = lean_ctor_get(x_2, 2); -lean_inc(x_1966); -x_1967 = lean_ctor_get(x_2, 3); -lean_inc(x_1967); -x_1968 = lean_ctor_get(x_2, 4); -lean_inc(x_1968); -x_1969 = lean_ctor_get(x_2, 5); -lean_inc(x_1969); -x_1970 = lean_ctor_get(x_2, 6); -lean_inc(x_1970); -x_1971 = lean_ctor_get(x_2, 7); -lean_inc(x_1971); -x_1972 = lean_ctor_get(x_2, 8); -lean_inc(x_1972); -x_1973 = lean_ctor_get(x_2, 9); -lean_inc(x_1973); -x_1974 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_1975 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_1976 = x_2; -} else { - lean_dec_ref(x_2); - x_1976 = lean_box(0); -} -x_1977 = lean_ctor_get(x_1964, 0); -lean_inc(x_1977); -x_1978 = lean_ctor_get(x_1964, 2); -lean_inc(x_1978); -x_1979 = lean_ctor_get(x_1964, 3); -lean_inc(x_1979); -x_1980 = lean_ctor_get(x_1964, 4); -lean_inc(x_1980); -if (lean_is_exclusive(x_1964)) { - lean_ctor_release(x_1964, 0); - lean_ctor_release(x_1964, 1); - lean_ctor_release(x_1964, 2); - lean_ctor_release(x_1964, 3); - lean_ctor_release(x_1964, 4); - x_1981 = x_1964; -} else { - lean_dec_ref(x_1964); - x_1981 = lean_box(0); -} -lean_inc(x_1946); -if (lean_is_scalar(x_1981)) { - x_1982 = lean_alloc_ctor(0, 5, 0); -} else { - x_1982 = x_1981; -} -lean_ctor_set(x_1982, 0, x_1977); -lean_ctor_set(x_1982, 1, x_1946); -lean_ctor_set(x_1982, 2, x_1978); -lean_ctor_set(x_1982, 3, x_1979); -lean_ctor_set(x_1982, 4, x_1980); -if (lean_is_scalar(x_1976)) { - x_1983 = lean_alloc_ctor(0, 10, 2); -} else { - x_1983 = x_1976; -} -lean_ctor_set(x_1983, 0, x_1982); -lean_ctor_set(x_1983, 1, x_1965); -lean_ctor_set(x_1983, 2, x_1966); -lean_ctor_set(x_1983, 3, x_1967); -lean_ctor_set(x_1983, 4, x_1968); -lean_ctor_set(x_1983, 5, x_1969); -lean_ctor_set(x_1983, 6, x_1970); -lean_ctor_set(x_1983, 7, x_1971); -lean_ctor_set(x_1983, 8, x_1972); -lean_ctor_set(x_1983, 9, x_1973); -lean_ctor_set_uint8(x_1983, sizeof(void*)*10, x_1974); -lean_ctor_set_uint8(x_1983, sizeof(void*)*10 + 1, x_1975); -x_1984 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1963, x_1983, x_1951); -if (lean_obj_tag(x_1984) == 0) -{ -lean_object* x_1985; lean_object* x_1986; lean_object* x_1987; lean_object* x_1988; lean_object* x_1989; lean_object* x_1990; lean_object* x_1991; lean_object* x_1992; -x_1985 = lean_ctor_get(x_1984, 0); -lean_inc(x_1985); -x_1986 = lean_ctor_get(x_1984, 1); -lean_inc(x_1986); -if (lean_is_exclusive(x_1984)) { - lean_ctor_release(x_1984, 0); - lean_ctor_release(x_1984, 1); - x_1987 = x_1984; -} else { - lean_dec_ref(x_1984); - x_1987 = lean_box(0); -} -x_1988 = l_Lean_mkFVar(x_1935); -x_1989 = l_Lean_mkOptionalNode___closed__2; -x_1990 = lean_array_push(x_1989, x_1988); -x_1991 = l_Lean_LocalContext_mkLambda(x_1946, x_1990, x_1985); -lean_dec(x_1985); -lean_dec(x_1990); -if (lean_is_scalar(x_1987)) { - x_1992 = lean_alloc_ctor(0, 2, 0); -} else { - x_1992 = x_1987; -} -lean_ctor_set(x_1992, 0, x_1991); -lean_ctor_set(x_1992, 1, x_1986); -return x_1992; -} -else -{ -lean_object* x_1993; lean_object* x_1994; lean_object* x_1995; lean_object* x_1996; -lean_dec(x_1946); -lean_dec(x_1935); -x_1993 = lean_ctor_get(x_1984, 0); -lean_inc(x_1993); -x_1994 = lean_ctor_get(x_1984, 1); -lean_inc(x_1994); -if (lean_is_exclusive(x_1984)) { - lean_ctor_release(x_1984, 0); - lean_ctor_release(x_1984, 1); - x_1995 = x_1984; -} else { - lean_dec_ref(x_1984); - x_1995 = lean_box(0); -} -if (lean_is_scalar(x_1995)) { - x_1996 = lean_alloc_ctor(1, 2, 0); -} else { - x_1996 = x_1995; -} -lean_ctor_set(x_1996, 0, x_1993); -lean_ctor_set(x_1996, 1, x_1994); -return x_1996; -} -} -else -{ -lean_object* x_1997; lean_object* x_1998; lean_object* x_1999; lean_object* x_2000; -lean_dec(x_1935); -lean_dec(x_1927); -lean_dec(x_1920); +lean_object* x_1916; lean_object* x_1917; lean_object* x_1918; lean_object* x_1919; lean_object* x_1920; lean_object* x_1921; lean_object* x_1922; lean_object* x_1923; lean_object* x_1924; lean_object* x_1925; lean_object* x_1926; lean_object* x_1927; lean_object* x_1928; lean_object* x_1929; lean_object* x_1930; lean_object* x_1931; lean_object* x_1932; uint8_t x_1933; uint8_t x_1934; lean_object* x_1935; lean_object* x_1936; lean_object* x_1937; lean_object* x_1938; lean_object* x_1939; lean_object* x_1940; lean_object* x_1941; lean_object* x_1942; lean_object* x_1943; +x_1916 = lean_ctor_get(x_1915, 0); +lean_inc(x_1916); +x_1917 = lean_ctor_get(x_1915, 1); +lean_inc(x_1917); +lean_dec(x_1915); +x_1918 = l_Lean_Elab_Term_getLCtx(x_2, x_1917); +x_1919 = lean_ctor_get(x_1918, 0); +lean_inc(x_1919); +x_1920 = lean_ctor_get(x_1918, 1); +lean_inc(x_1920); lean_dec(x_1918); -lean_dec(x_2); -x_1997 = lean_ctor_get(x_1939, 0); -lean_inc(x_1997); -x_1998 = lean_ctor_get(x_1939, 1); -lean_inc(x_1998); -if (lean_is_exclusive(x_1939)) { - lean_ctor_release(x_1939, 0); - lean_ctor_release(x_1939, 1); - x_1999 = x_1939; -} else { - lean_dec_ref(x_1939); - x_1999 = lean_box(0); -} -if (lean_is_scalar(x_1999)) { - x_2000 = lean_alloc_ctor(1, 2, 0); -} else { - x_2000 = x_1999; -} -lean_ctor_set(x_2000, 0, x_1997); -lean_ctor_set(x_2000, 1, x_1998); -return x_2000; -} -} -else -{ -lean_object* x_2001; lean_object* x_2002; lean_object* x_2003; lean_object* x_2004; lean_object* x_2005; lean_object* x_2006; uint8_t x_2007; lean_object* x_2008; lean_object* x_2009; lean_object* x_2010; lean_object* x_2011; lean_object* x_2012; lean_object* x_2013; lean_object* x_2014; lean_object* x_2015; lean_object* x_2016; lean_object* x_2017; lean_object* x_2018; lean_object* x_2019; lean_object* x_2020; lean_object* x_2021; lean_object* x_2022; lean_object* x_2023; lean_object* x_2024; lean_object* x_2025; lean_object* x_2026; lean_object* x_2027; lean_object* x_2028; lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; lean_object* x_2032; lean_object* x_2033; lean_object* x_2034; lean_object* x_2035; uint8_t x_2036; uint8_t x_2037; lean_object* x_2038; lean_object* x_2039; lean_object* x_2040; lean_object* x_2041; lean_object* x_2042; lean_object* x_2043; lean_object* x_2044; lean_object* x_2045; lean_object* x_2046; -lean_dec(x_1924); -x_2001 = l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; -x_2002 = lean_name_mk_string(x_27, x_2001); -x_2003 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_2004 = lean_ctor_get(x_2003, 0); -lean_inc(x_2004); -x_2005 = lean_ctor_get(x_2003, 1); -lean_inc(x_2005); -lean_dec(x_2003); -x_2006 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -x_2007 = 0; -lean_inc_n(x_2002, 2); -x_2008 = lean_local_ctx_mk_local_decl(x_2004, x_2002, x_2002, x_2006, x_2007); -x_2009 = l_Array_eraseIdx___rarg(x_1918, x_1922); -x_2010 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2005); -x_2011 = lean_ctor_get(x_2010, 1); -lean_inc(x_2011); -lean_dec(x_2010); -x_2012 = l_Lean_Elab_Term_getMainModule___rarg(x_2011); -x_2013 = lean_ctor_get(x_2012, 1); -lean_inc(x_2013); -lean_dec(x_2012); -x_2014 = lean_name_mk_string(x_1927, x_1740); -x_2015 = l_Lean_nullKind___closed__1; -x_2016 = lean_name_mk_string(x_27, x_2015); -x_2017 = l_Array_empty___closed__1; -x_2018 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2009, x_2009, x_1922, x_2017); -lean_dec(x_2009); -x_2019 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2019, 0, x_2016); -lean_ctor_set(x_2019, 1, x_2018); -x_2020 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2021 = lean_array_push(x_2020, x_2019); -x_2022 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_2023 = lean_array_push(x_2021, x_2022); -x_2024 = lean_array_push(x_2023, x_1920); -x_2025 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2025, 0, x_2014); -lean_ctor_set(x_2025, 1, x_2024); -x_2026 = lean_ctor_get(x_2, 0); -lean_inc(x_2026); -x_2027 = lean_ctor_get(x_2, 1); -lean_inc(x_2027); -x_2028 = lean_ctor_get(x_2, 2); -lean_inc(x_2028); -x_2029 = lean_ctor_get(x_2, 3); -lean_inc(x_2029); -x_2030 = lean_ctor_get(x_2, 4); -lean_inc(x_2030); -x_2031 = lean_ctor_get(x_2, 5); -lean_inc(x_2031); -x_2032 = lean_ctor_get(x_2, 6); -lean_inc(x_2032); -x_2033 = lean_ctor_get(x_2, 7); -lean_inc(x_2033); -x_2034 = lean_ctor_get(x_2, 8); -lean_inc(x_2034); -x_2035 = lean_ctor_get(x_2, 9); -lean_inc(x_2035); -x_2036 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2037 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_1921 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +lean_inc_n(x_1914, 2); +x_1922 = lean_local_ctx_mk_let_decl(x_1919, x_1914, x_1914, x_1921, x_1916); +x_1923 = lean_ctor_get(x_2, 0); +lean_inc(x_1923); +x_1924 = lean_ctor_get(x_2, 1); +lean_inc(x_1924); +x_1925 = lean_ctor_get(x_2, 2); +lean_inc(x_1925); +x_1926 = lean_ctor_get(x_2, 3); +lean_inc(x_1926); +x_1927 = lean_ctor_get(x_2, 4); +lean_inc(x_1927); +x_1928 = lean_ctor_get(x_2, 5); +lean_inc(x_1928); +x_1929 = lean_ctor_get(x_2, 6); +lean_inc(x_1929); +x_1930 = lean_ctor_get(x_2, 7); +lean_inc(x_1930); +x_1931 = lean_ctor_get(x_2, 8); +lean_inc(x_1931); +x_1932 = lean_ctor_get(x_2, 9); +lean_inc(x_1932); +x_1933 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_1934 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -21942,180 +21676,483 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); - x_2038 = x_2; + x_1935 = x_2; } else { lean_dec_ref(x_2); - x_2038 = lean_box(0); + x_1935 = lean_box(0); } -x_2039 = lean_ctor_get(x_2026, 0); -lean_inc(x_2039); -x_2040 = lean_ctor_get(x_2026, 2); -lean_inc(x_2040); -x_2041 = lean_ctor_get(x_2026, 3); -lean_inc(x_2041); -x_2042 = lean_ctor_get(x_2026, 4); -lean_inc(x_2042); -if (lean_is_exclusive(x_2026)) { - lean_ctor_release(x_2026, 0); - lean_ctor_release(x_2026, 1); - lean_ctor_release(x_2026, 2); - lean_ctor_release(x_2026, 3); - lean_ctor_release(x_2026, 4); - x_2043 = x_2026; +x_1936 = lean_ctor_get(x_1923, 0); +lean_inc(x_1936); +x_1937 = lean_ctor_get(x_1923, 2); +lean_inc(x_1937); +x_1938 = lean_ctor_get(x_1923, 3); +lean_inc(x_1938); +x_1939 = lean_ctor_get(x_1923, 4); +lean_inc(x_1939); +if (lean_is_exclusive(x_1923)) { + lean_ctor_release(x_1923, 0); + lean_ctor_release(x_1923, 1); + lean_ctor_release(x_1923, 2); + lean_ctor_release(x_1923, 3); + lean_ctor_release(x_1923, 4); + x_1940 = x_1923; } else { - lean_dec_ref(x_2026); + lean_dec_ref(x_1923); + x_1940 = lean_box(0); +} +lean_inc(x_1922); +if (lean_is_scalar(x_1940)) { + x_1941 = lean_alloc_ctor(0, 5, 0); +} else { + x_1941 = x_1940; +} +lean_ctor_set(x_1941, 0, x_1936); +lean_ctor_set(x_1941, 1, x_1922); +lean_ctor_set(x_1941, 2, x_1937); +lean_ctor_set(x_1941, 3, x_1938); +lean_ctor_set(x_1941, 4, x_1939); +if (lean_is_scalar(x_1935)) { + x_1942 = lean_alloc_ctor(0, 10, 2); +} else { + x_1942 = x_1935; +} +lean_ctor_set(x_1942, 0, x_1941); +lean_ctor_set(x_1942, 1, x_1924); +lean_ctor_set(x_1942, 2, x_1925); +lean_ctor_set(x_1942, 3, x_1926); +lean_ctor_set(x_1942, 4, x_1927); +lean_ctor_set(x_1942, 5, x_1928); +lean_ctor_set(x_1942, 6, x_1929); +lean_ctor_set(x_1942, 7, x_1930); +lean_ctor_set(x_1942, 8, x_1931); +lean_ctor_set(x_1942, 9, x_1932); +lean_ctor_set_uint8(x_1942, sizeof(void*)*10, x_1933); +lean_ctor_set_uint8(x_1942, sizeof(void*)*10 + 1, x_1934); +x_1943 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1913, x_1942, x_1920); +if (lean_obj_tag(x_1943) == 0) +{ +lean_object* x_1944; lean_object* x_1945; lean_object* x_1946; lean_object* x_1947; lean_object* x_1948; lean_object* x_1949; lean_object* x_1950; lean_object* x_1951; +x_1944 = lean_ctor_get(x_1943, 0); +lean_inc(x_1944); +x_1945 = lean_ctor_get(x_1943, 1); +lean_inc(x_1945); +if (lean_is_exclusive(x_1943)) { + lean_ctor_release(x_1943, 0); + lean_ctor_release(x_1943, 1); + x_1946 = x_1943; +} else { + lean_dec_ref(x_1943); + x_1946 = lean_box(0); +} +x_1947 = l_Lean_mkFVar(x_1914); +x_1948 = l_Lean_mkOptionalNode___closed__2; +x_1949 = lean_array_push(x_1948, x_1947); +x_1950 = l_Lean_LocalContext_mkLambda(x_1922, x_1949, x_1944); +lean_dec(x_1944); +lean_dec(x_1949); +if (lean_is_scalar(x_1946)) { + x_1951 = lean_alloc_ctor(0, 2, 0); +} else { + x_1951 = x_1946; +} +lean_ctor_set(x_1951, 0, x_1950); +lean_ctor_set(x_1951, 1, x_1945); +return x_1951; +} +else +{ +lean_object* x_1952; lean_object* x_1953; lean_object* x_1954; lean_object* x_1955; +lean_dec(x_1922); +lean_dec(x_1914); +x_1952 = lean_ctor_get(x_1943, 0); +lean_inc(x_1952); +x_1953 = lean_ctor_get(x_1943, 1); +lean_inc(x_1953); +if (lean_is_exclusive(x_1943)) { + lean_ctor_release(x_1943, 0); + lean_ctor_release(x_1943, 1); + x_1954 = x_1943; +} else { + lean_dec_ref(x_1943); + x_1954 = lean_box(0); +} +if (lean_is_scalar(x_1954)) { + x_1955 = lean_alloc_ctor(1, 2, 0); +} else { + x_1955 = x_1954; +} +lean_ctor_set(x_1955, 0, x_1952); +lean_ctor_set(x_1955, 1, x_1953); +return x_1955; +} +} +else +{ +lean_object* x_1956; lean_object* x_1957; lean_object* x_1958; lean_object* x_1959; +lean_dec(x_1914); +lean_dec(x_1913); +lean_dec(x_2); +x_1956 = lean_ctor_get(x_1915, 0); +lean_inc(x_1956); +x_1957 = lean_ctor_get(x_1915, 1); +lean_inc(x_1957); +if (lean_is_exclusive(x_1915)) { + lean_ctor_release(x_1915, 0); + lean_ctor_release(x_1915, 1); + x_1958 = x_1915; +} else { + lean_dec_ref(x_1915); + x_1958 = lean_box(0); +} +if (lean_is_scalar(x_1958)) { + x_1959 = lean_alloc_ctor(1, 2, 0); +} else { + x_1959 = x_1958; +} +lean_ctor_set(x_1959, 0, x_1956); +lean_ctor_set(x_1959, 1, x_1957); +return x_1959; +} +} +} +} +else +{ +lean_object* x_1963; lean_object* x_1964; lean_object* x_1965; lean_object* x_1966; lean_object* x_1967; lean_object* x_1968; lean_object* x_1969; lean_object* x_1970; uint8_t x_1971; +lean_dec(x_1749); +lean_dec(x_1745); +lean_free_object(x_15); +lean_dec(x_28); +lean_dec(x_1); +x_1963 = l_Lean_Syntax_inhabited; +x_1964 = lean_unsigned_to_nat(1u); +x_1965 = lean_array_get(x_1963, x_4, x_1964); +x_1966 = l_Lean_Syntax_getArgs(x_1965); +lean_dec(x_1965); +x_1967 = lean_unsigned_to_nat(3u); +x_1968 = lean_array_get(x_1963, x_4, x_1967); +lean_dec(x_4); +x_1969 = lean_array_get_size(x_1966); +x_1970 = lean_unsigned_to_nat(0u); +x_1971 = lean_nat_dec_eq(x_1969, x_1970); +lean_dec(x_1969); +if (x_1971 == 0) +{ +lean_object* x_1972; lean_object* x_1973; lean_object* x_1974; lean_object* x_1975; lean_object* x_1976; uint8_t x_1977; +x_1972 = lean_array_get(x_1963, x_1966, x_1970); +x_1973 = lean_name_mk_string(x_27, x_1746); +x_1974 = lean_name_mk_string(x_1973, x_1750); +x_1975 = lean_name_mk_string(x_1974, x_1762); +lean_inc(x_1975); +x_1976 = lean_name_mk_string(x_1975, x_1774); +lean_inc(x_1972); +x_1977 = l_Lean_Syntax_isOfKind(x_1972, x_1976); +lean_dec(x_1976); +if (x_1977 == 0) +{ +lean_object* x_1978; lean_object* x_1979; uint8_t x_1980; +x_1978 = l_Lean_mkHole___closed__1; +lean_inc(x_1975); +x_1979 = lean_name_mk_string(x_1975, x_1978); +lean_inc(x_1972); +x_1980 = l_Lean_Syntax_isOfKind(x_1972, x_1979); +lean_dec(x_1979); +if (x_1980 == 0) +{ +lean_object* x_1981; lean_object* x_1982; lean_object* x_1983; lean_object* x_1984; lean_object* x_1985; lean_object* x_1986; lean_object* x_1987; +x_1981 = l_Lean_Syntax_getArg(x_1972, x_1964); +lean_dec(x_1972); +x_1982 = l_Lean_Syntax_getArg(x_1981, x_1970); +x_1983 = l_Lean_Syntax_getIdAt(x_1982, x_1970); +lean_dec(x_1982); +x_1984 = l_Lean_Syntax_getArg(x_1981, x_1964); +lean_dec(x_1981); +x_1985 = l_Lean_Syntax_getArg(x_1984, x_1970); +lean_dec(x_1984); +x_1986 = l_Lean_Syntax_getArg(x_1985, x_1964); +lean_dec(x_1985); +lean_inc(x_2); +x_1987 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_1986, x_2, x_3); +if (lean_obj_tag(x_1987) == 0) +{ +lean_object* x_1988; lean_object* x_1989; lean_object* x_1990; lean_object* x_1991; lean_object* x_1992; uint8_t x_1993; lean_object* x_1994; lean_object* x_1995; lean_object* x_1996; lean_object* x_1997; lean_object* x_1998; lean_object* x_1999; lean_object* x_2000; lean_object* x_2001; lean_object* x_2002; lean_object* x_2003; lean_object* x_2004; lean_object* x_2005; lean_object* x_2006; lean_object* x_2007; lean_object* x_2008; lean_object* x_2009; lean_object* x_2010; lean_object* x_2011; lean_object* x_2012; lean_object* x_2013; lean_object* x_2014; lean_object* x_2015; lean_object* x_2016; lean_object* x_2017; lean_object* x_2018; lean_object* x_2019; lean_object* x_2020; lean_object* x_2021; uint8_t x_2022; uint8_t x_2023; lean_object* x_2024; lean_object* x_2025; lean_object* x_2026; lean_object* x_2027; lean_object* x_2028; lean_object* x_2029; lean_object* x_2030; lean_object* x_2031; lean_object* x_2032; +x_1988 = lean_ctor_get(x_1987, 0); +lean_inc(x_1988); +x_1989 = lean_ctor_get(x_1987, 1); +lean_inc(x_1989); +lean_dec(x_1987); +x_1990 = l_Lean_Elab_Term_getLCtx(x_2, x_1989); +x_1991 = lean_ctor_get(x_1990, 0); +lean_inc(x_1991); +x_1992 = lean_ctor_get(x_1990, 1); +lean_inc(x_1992); +lean_dec(x_1990); +x_1993 = 0; +lean_inc_n(x_1983, 2); +x_1994 = lean_local_ctx_mk_local_decl(x_1991, x_1983, x_1983, x_1988, x_1993); +x_1995 = l_Array_eraseIdx___rarg(x_1966, x_1970); +x_1996 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_1992); +x_1997 = lean_ctor_get(x_1996, 1); +lean_inc(x_1997); +lean_dec(x_1996); +x_1998 = l_Lean_Elab_Term_getMainModule___rarg(x_1997); +x_1999 = lean_ctor_get(x_1998, 1); +lean_inc(x_1999); +lean_dec(x_1998); +x_2000 = lean_name_mk_string(x_1975, x_1776); +x_2001 = l_Lean_nullKind___closed__1; +x_2002 = lean_name_mk_string(x_27, x_2001); +x_2003 = l_Array_empty___closed__1; +x_2004 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_1995, x_1995, x_1970, x_2003); +lean_dec(x_1995); +x_2005 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2005, 0, x_2002); +lean_ctor_set(x_2005, 1, x_2004); +x_2006 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2007 = lean_array_push(x_2006, x_2005); +x_2008 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_2009 = lean_array_push(x_2007, x_2008); +x_2010 = lean_array_push(x_2009, x_1968); +x_2011 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2011, 0, x_2000); +lean_ctor_set(x_2011, 1, x_2010); +x_2012 = lean_ctor_get(x_2, 0); +lean_inc(x_2012); +x_2013 = lean_ctor_get(x_2, 1); +lean_inc(x_2013); +x_2014 = lean_ctor_get(x_2, 2); +lean_inc(x_2014); +x_2015 = lean_ctor_get(x_2, 3); +lean_inc(x_2015); +x_2016 = lean_ctor_get(x_2, 4); +lean_inc(x_2016); +x_2017 = lean_ctor_get(x_2, 5); +lean_inc(x_2017); +x_2018 = lean_ctor_get(x_2, 6); +lean_inc(x_2018); +x_2019 = lean_ctor_get(x_2, 7); +lean_inc(x_2019); +x_2020 = lean_ctor_get(x_2, 8); +lean_inc(x_2020); +x_2021 = lean_ctor_get(x_2, 9); +lean_inc(x_2021); +x_2022 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_2023 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_2024 = x_2; +} else { + lean_dec_ref(x_2); + x_2024 = lean_box(0); +} +x_2025 = lean_ctor_get(x_2012, 0); +lean_inc(x_2025); +x_2026 = lean_ctor_get(x_2012, 2); +lean_inc(x_2026); +x_2027 = lean_ctor_get(x_2012, 3); +lean_inc(x_2027); +x_2028 = lean_ctor_get(x_2012, 4); +lean_inc(x_2028); +if (lean_is_exclusive(x_2012)) { + lean_ctor_release(x_2012, 0); + lean_ctor_release(x_2012, 1); + lean_ctor_release(x_2012, 2); + lean_ctor_release(x_2012, 3); + lean_ctor_release(x_2012, 4); + x_2029 = x_2012; +} else { + lean_dec_ref(x_2012); + x_2029 = lean_box(0); +} +lean_inc(x_1994); +if (lean_is_scalar(x_2029)) { + x_2030 = lean_alloc_ctor(0, 5, 0); +} else { + x_2030 = x_2029; +} +lean_ctor_set(x_2030, 0, x_2025); +lean_ctor_set(x_2030, 1, x_1994); +lean_ctor_set(x_2030, 2, x_2026); +lean_ctor_set(x_2030, 3, x_2027); +lean_ctor_set(x_2030, 4, x_2028); +if (lean_is_scalar(x_2024)) { + x_2031 = lean_alloc_ctor(0, 10, 2); +} else { + x_2031 = x_2024; +} +lean_ctor_set(x_2031, 0, x_2030); +lean_ctor_set(x_2031, 1, x_2013); +lean_ctor_set(x_2031, 2, x_2014); +lean_ctor_set(x_2031, 3, x_2015); +lean_ctor_set(x_2031, 4, x_2016); +lean_ctor_set(x_2031, 5, x_2017); +lean_ctor_set(x_2031, 6, x_2018); +lean_ctor_set(x_2031, 7, x_2019); +lean_ctor_set(x_2031, 8, x_2020); +lean_ctor_set(x_2031, 9, x_2021); +lean_ctor_set_uint8(x_2031, sizeof(void*)*10, x_2022); +lean_ctor_set_uint8(x_2031, sizeof(void*)*10 + 1, x_2023); +x_2032 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2011, x_2031, x_1999); +if (lean_obj_tag(x_2032) == 0) +{ +lean_object* x_2033; lean_object* x_2034; lean_object* x_2035; lean_object* x_2036; lean_object* x_2037; lean_object* x_2038; lean_object* x_2039; lean_object* x_2040; +x_2033 = lean_ctor_get(x_2032, 0); +lean_inc(x_2033); +x_2034 = lean_ctor_get(x_2032, 1); +lean_inc(x_2034); +if (lean_is_exclusive(x_2032)) { + lean_ctor_release(x_2032, 0); + lean_ctor_release(x_2032, 1); + x_2035 = x_2032; +} else { + lean_dec_ref(x_2032); + x_2035 = lean_box(0); +} +x_2036 = l_Lean_mkFVar(x_1983); +x_2037 = l_Lean_mkOptionalNode___closed__2; +x_2038 = lean_array_push(x_2037, x_2036); +x_2039 = l_Lean_LocalContext_mkLambda(x_1994, x_2038, x_2033); +lean_dec(x_2033); +lean_dec(x_2038); +if (lean_is_scalar(x_2035)) { + x_2040 = lean_alloc_ctor(0, 2, 0); +} else { + x_2040 = x_2035; +} +lean_ctor_set(x_2040, 0, x_2039); +lean_ctor_set(x_2040, 1, x_2034); +return x_2040; +} +else +{ +lean_object* x_2041; lean_object* x_2042; lean_object* x_2043; lean_object* x_2044; +lean_dec(x_1994); +lean_dec(x_1983); +x_2041 = lean_ctor_get(x_2032, 0); +lean_inc(x_2041); +x_2042 = lean_ctor_get(x_2032, 1); +lean_inc(x_2042); +if (lean_is_exclusive(x_2032)) { + lean_ctor_release(x_2032, 0); + lean_ctor_release(x_2032, 1); + x_2043 = x_2032; +} else { + lean_dec_ref(x_2032); x_2043 = lean_box(0); } -lean_inc(x_2008); if (lean_is_scalar(x_2043)) { - x_2044 = lean_alloc_ctor(0, 5, 0); + x_2044 = lean_alloc_ctor(1, 2, 0); } else { x_2044 = x_2043; } -lean_ctor_set(x_2044, 0, x_2039); -lean_ctor_set(x_2044, 1, x_2008); -lean_ctor_set(x_2044, 2, x_2040); -lean_ctor_set(x_2044, 3, x_2041); -lean_ctor_set(x_2044, 4, x_2042); -if (lean_is_scalar(x_2038)) { - x_2045 = lean_alloc_ctor(0, 10, 2); -} else { - x_2045 = x_2038; -} -lean_ctor_set(x_2045, 0, x_2044); -lean_ctor_set(x_2045, 1, x_2027); -lean_ctor_set(x_2045, 2, x_2028); -lean_ctor_set(x_2045, 3, x_2029); -lean_ctor_set(x_2045, 4, x_2030); -lean_ctor_set(x_2045, 5, x_2031); -lean_ctor_set(x_2045, 6, x_2032); -lean_ctor_set(x_2045, 7, x_2033); -lean_ctor_set(x_2045, 8, x_2034); -lean_ctor_set(x_2045, 9, x_2035); -lean_ctor_set_uint8(x_2045, sizeof(void*)*10, x_2036); -lean_ctor_set_uint8(x_2045, sizeof(void*)*10 + 1, x_2037); -x_2046 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2025, x_2045, x_2013); -if (lean_obj_tag(x_2046) == 0) -{ -lean_object* x_2047; lean_object* x_2048; lean_object* x_2049; lean_object* x_2050; lean_object* x_2051; lean_object* x_2052; lean_object* x_2053; lean_object* x_2054; -x_2047 = lean_ctor_get(x_2046, 0); -lean_inc(x_2047); -x_2048 = lean_ctor_get(x_2046, 1); -lean_inc(x_2048); -if (lean_is_exclusive(x_2046)) { - lean_ctor_release(x_2046, 0); - lean_ctor_release(x_2046, 1); - x_2049 = x_2046; -} else { - lean_dec_ref(x_2046); - x_2049 = lean_box(0); -} -x_2050 = l_Lean_mkFVar(x_2002); -x_2051 = l_Lean_mkOptionalNode___closed__2; -x_2052 = lean_array_push(x_2051, x_2050); -x_2053 = l_Lean_LocalContext_mkLambda(x_2008, x_2052, x_2047); -lean_dec(x_2047); -lean_dec(x_2052); -if (lean_is_scalar(x_2049)) { - x_2054 = lean_alloc_ctor(0, 2, 0); -} else { - x_2054 = x_2049; -} -lean_ctor_set(x_2054, 0, x_2053); -lean_ctor_set(x_2054, 1, x_2048); -return x_2054; -} -else -{ -lean_object* x_2055; lean_object* x_2056; lean_object* x_2057; lean_object* x_2058; -lean_dec(x_2008); -lean_dec(x_2002); -x_2055 = lean_ctor_get(x_2046, 0); -lean_inc(x_2055); -x_2056 = lean_ctor_get(x_2046, 1); -lean_inc(x_2056); -if (lean_is_exclusive(x_2046)) { - lean_ctor_release(x_2046, 0); - lean_ctor_release(x_2046, 1); - x_2057 = x_2046; -} else { - lean_dec_ref(x_2046); - x_2057 = lean_box(0); -} -if (lean_is_scalar(x_2057)) { - x_2058 = lean_alloc_ctor(1, 2, 0); -} else { - x_2058 = x_2057; -} -lean_ctor_set(x_2058, 0, x_2055); -lean_ctor_set(x_2058, 1, x_2056); -return x_2058; -} +lean_ctor_set(x_2044, 0, x_2041); +lean_ctor_set(x_2044, 1, x_2042); +return x_2044; } } else { -lean_object* x_2059; lean_object* x_2060; lean_object* x_2061; lean_object* x_2062; lean_object* x_2063; uint8_t x_2064; lean_object* x_2065; lean_object* x_2066; lean_object* x_2067; lean_object* x_2068; lean_object* x_2069; lean_object* x_2070; lean_object* x_2071; lean_object* x_2072; lean_object* x_2073; lean_object* x_2074; lean_object* x_2075; lean_object* x_2076; lean_object* x_2077; lean_object* x_2078; lean_object* x_2079; lean_object* x_2080; lean_object* x_2081; lean_object* x_2082; lean_object* x_2083; lean_object* x_2084; lean_object* x_2085; lean_object* x_2086; lean_object* x_2087; lean_object* x_2088; lean_object* x_2089; lean_object* x_2090; lean_object* x_2091; lean_object* x_2092; uint8_t x_2093; uint8_t x_2094; lean_object* x_2095; lean_object* x_2096; lean_object* x_2097; lean_object* x_2098; lean_object* x_2099; lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; lean_object* x_2103; -x_2059 = l_Lean_Syntax_getIdAt(x_1924, x_1922); -lean_dec(x_1924); -x_2060 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_2061 = lean_ctor_get(x_2060, 0); +lean_object* x_2045; lean_object* x_2046; lean_object* x_2047; lean_object* x_2048; +lean_dec(x_1983); +lean_dec(x_1975); +lean_dec(x_1968); +lean_dec(x_1966); +lean_dec(x_2); +x_2045 = lean_ctor_get(x_1987, 0); +lean_inc(x_2045); +x_2046 = lean_ctor_get(x_1987, 1); +lean_inc(x_2046); +if (lean_is_exclusive(x_1987)) { + lean_ctor_release(x_1987, 0); + lean_ctor_release(x_1987, 1); + x_2047 = x_1987; +} else { + lean_dec_ref(x_1987); + x_2047 = lean_box(0); +} +if (lean_is_scalar(x_2047)) { + x_2048 = lean_alloc_ctor(1, 2, 0); +} else { + x_2048 = x_2047; +} +lean_ctor_set(x_2048, 0, x_2045); +lean_ctor_set(x_2048, 1, x_2046); +return x_2048; +} +} +else +{ +lean_object* x_2049; lean_object* x_2050; lean_object* x_2051; lean_object* x_2052; lean_object* x_2053; lean_object* x_2054; uint8_t x_2055; lean_object* x_2056; lean_object* x_2057; lean_object* x_2058; lean_object* x_2059; lean_object* x_2060; lean_object* x_2061; lean_object* x_2062; lean_object* x_2063; lean_object* x_2064; lean_object* x_2065; lean_object* x_2066; lean_object* x_2067; lean_object* x_2068; lean_object* x_2069; lean_object* x_2070; lean_object* x_2071; lean_object* x_2072; lean_object* x_2073; lean_object* x_2074; lean_object* x_2075; lean_object* x_2076; lean_object* x_2077; lean_object* x_2078; lean_object* x_2079; lean_object* x_2080; lean_object* x_2081; lean_object* x_2082; lean_object* x_2083; uint8_t x_2084; uint8_t x_2085; lean_object* x_2086; lean_object* x_2087; lean_object* x_2088; lean_object* x_2089; lean_object* x_2090; lean_object* x_2091; lean_object* x_2092; lean_object* x_2093; lean_object* x_2094; +lean_dec(x_1972); +x_2049 = l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; +x_2050 = lean_name_mk_string(x_27, x_2049); +x_2051 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_2052 = lean_ctor_get(x_2051, 0); +lean_inc(x_2052); +x_2053 = lean_ctor_get(x_2051, 1); +lean_inc(x_2053); +lean_dec(x_2051); +x_2054 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +x_2055 = 0; +lean_inc_n(x_2050, 2); +x_2056 = lean_local_ctx_mk_local_decl(x_2052, x_2050, x_2050, x_2054, x_2055); +x_2057 = l_Array_eraseIdx___rarg(x_1966, x_1970); +x_2058 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2053); +x_2059 = lean_ctor_get(x_2058, 1); +lean_inc(x_2059); +lean_dec(x_2058); +x_2060 = l_Lean_Elab_Term_getMainModule___rarg(x_2059); +x_2061 = lean_ctor_get(x_2060, 1); lean_inc(x_2061); -x_2062 = lean_ctor_get(x_2060, 1); -lean_inc(x_2062); lean_dec(x_2060); -x_2063 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -x_2064 = 0; -lean_inc_n(x_2059, 2); -x_2065 = lean_local_ctx_mk_local_decl(x_2061, x_2059, x_2059, x_2063, x_2064); -x_2066 = l_Array_eraseIdx___rarg(x_1918, x_1922); -x_2067 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2062); -x_2068 = lean_ctor_get(x_2067, 1); -lean_inc(x_2068); -lean_dec(x_2067); -x_2069 = l_Lean_Elab_Term_getMainModule___rarg(x_2068); -x_2070 = lean_ctor_get(x_2069, 1); -lean_inc(x_2070); -lean_dec(x_2069); -x_2071 = lean_name_mk_string(x_1927, x_1740); -x_2072 = l_Lean_nullKind___closed__1; -x_2073 = lean_name_mk_string(x_27, x_2072); -x_2074 = l_Array_empty___closed__1; -x_2075 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2066, x_2066, x_1922, x_2074); -lean_dec(x_2066); -x_2076 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2076, 0, x_2073); -lean_ctor_set(x_2076, 1, x_2075); -x_2077 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2078 = lean_array_push(x_2077, x_2076); -x_2079 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_2080 = lean_array_push(x_2078, x_2079); -x_2081 = lean_array_push(x_2080, x_1920); -x_2082 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2082, 0, x_2071); -lean_ctor_set(x_2082, 1, x_2081); -x_2083 = lean_ctor_get(x_2, 0); +x_2062 = lean_name_mk_string(x_1975, x_1776); +x_2063 = l_Lean_nullKind___closed__1; +x_2064 = lean_name_mk_string(x_27, x_2063); +x_2065 = l_Array_empty___closed__1; +x_2066 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2057, x_2057, x_1970, x_2065); +lean_dec(x_2057); +x_2067 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2067, 0, x_2064); +lean_ctor_set(x_2067, 1, x_2066); +x_2068 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2069 = lean_array_push(x_2068, x_2067); +x_2070 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_2071 = lean_array_push(x_2069, x_2070); +x_2072 = lean_array_push(x_2071, x_1968); +x_2073 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2073, 0, x_2062); +lean_ctor_set(x_2073, 1, x_2072); +x_2074 = lean_ctor_get(x_2, 0); +lean_inc(x_2074); +x_2075 = lean_ctor_get(x_2, 1); +lean_inc(x_2075); +x_2076 = lean_ctor_get(x_2, 2); +lean_inc(x_2076); +x_2077 = lean_ctor_get(x_2, 3); +lean_inc(x_2077); +x_2078 = lean_ctor_get(x_2, 4); +lean_inc(x_2078); +x_2079 = lean_ctor_get(x_2, 5); +lean_inc(x_2079); +x_2080 = lean_ctor_get(x_2, 6); +lean_inc(x_2080); +x_2081 = lean_ctor_get(x_2, 7); +lean_inc(x_2081); +x_2082 = lean_ctor_get(x_2, 8); +lean_inc(x_2082); +x_2083 = lean_ctor_get(x_2, 9); lean_inc(x_2083); -x_2084 = lean_ctor_get(x_2, 1); -lean_inc(x_2084); -x_2085 = lean_ctor_get(x_2, 2); -lean_inc(x_2085); -x_2086 = lean_ctor_get(x_2, 3); -lean_inc(x_2086); -x_2087 = lean_ctor_get(x_2, 4); -lean_inc(x_2087); -x_2088 = lean_ctor_get(x_2, 5); -lean_inc(x_2088); -x_2089 = lean_ctor_get(x_2, 6); -lean_inc(x_2089); -x_2090 = lean_ctor_get(x_2, 7); -lean_inc(x_2090); -x_2091 = lean_ctor_get(x_2, 8); -lean_inc(x_2091); -x_2092 = lean_ctor_get(x_2, 9); -lean_inc(x_2092); -x_2093 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2094 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_2084 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_2085 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -22127,554 +22164,739 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); - x_2095 = x_2; + x_2086 = x_2; } else { lean_dec_ref(x_2); - x_2095 = lean_box(0); + x_2086 = lean_box(0); } -x_2096 = lean_ctor_get(x_2083, 0); +x_2087 = lean_ctor_get(x_2074, 0); +lean_inc(x_2087); +x_2088 = lean_ctor_get(x_2074, 2); +lean_inc(x_2088); +x_2089 = lean_ctor_get(x_2074, 3); +lean_inc(x_2089); +x_2090 = lean_ctor_get(x_2074, 4); +lean_inc(x_2090); +if (lean_is_exclusive(x_2074)) { + lean_ctor_release(x_2074, 0); + lean_ctor_release(x_2074, 1); + lean_ctor_release(x_2074, 2); + lean_ctor_release(x_2074, 3); + lean_ctor_release(x_2074, 4); + x_2091 = x_2074; +} else { + lean_dec_ref(x_2074); + x_2091 = lean_box(0); +} +lean_inc(x_2056); +if (lean_is_scalar(x_2091)) { + x_2092 = lean_alloc_ctor(0, 5, 0); +} else { + x_2092 = x_2091; +} +lean_ctor_set(x_2092, 0, x_2087); +lean_ctor_set(x_2092, 1, x_2056); +lean_ctor_set(x_2092, 2, x_2088); +lean_ctor_set(x_2092, 3, x_2089); +lean_ctor_set(x_2092, 4, x_2090); +if (lean_is_scalar(x_2086)) { + x_2093 = lean_alloc_ctor(0, 10, 2); +} else { + x_2093 = x_2086; +} +lean_ctor_set(x_2093, 0, x_2092); +lean_ctor_set(x_2093, 1, x_2075); +lean_ctor_set(x_2093, 2, x_2076); +lean_ctor_set(x_2093, 3, x_2077); +lean_ctor_set(x_2093, 4, x_2078); +lean_ctor_set(x_2093, 5, x_2079); +lean_ctor_set(x_2093, 6, x_2080); +lean_ctor_set(x_2093, 7, x_2081); +lean_ctor_set(x_2093, 8, x_2082); +lean_ctor_set(x_2093, 9, x_2083); +lean_ctor_set_uint8(x_2093, sizeof(void*)*10, x_2084); +lean_ctor_set_uint8(x_2093, sizeof(void*)*10 + 1, x_2085); +x_2094 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2073, x_2093, x_2061); +if (lean_obj_tag(x_2094) == 0) +{ +lean_object* x_2095; lean_object* x_2096; lean_object* x_2097; lean_object* x_2098; lean_object* x_2099; lean_object* x_2100; lean_object* x_2101; lean_object* x_2102; +x_2095 = lean_ctor_get(x_2094, 0); +lean_inc(x_2095); +x_2096 = lean_ctor_get(x_2094, 1); lean_inc(x_2096); -x_2097 = lean_ctor_get(x_2083, 2); -lean_inc(x_2097); -x_2098 = lean_ctor_get(x_2083, 3); -lean_inc(x_2098); -x_2099 = lean_ctor_get(x_2083, 4); -lean_inc(x_2099); -if (lean_is_exclusive(x_2083)) { - lean_ctor_release(x_2083, 0); - lean_ctor_release(x_2083, 1); - lean_ctor_release(x_2083, 2); - lean_ctor_release(x_2083, 3); - lean_ctor_release(x_2083, 4); - x_2100 = x_2083; +if (lean_is_exclusive(x_2094)) { + lean_ctor_release(x_2094, 0); + lean_ctor_release(x_2094, 1); + x_2097 = x_2094; } else { - lean_dec_ref(x_2083); - x_2100 = lean_box(0); + lean_dec_ref(x_2094); + x_2097 = lean_box(0); } -lean_inc(x_2065); -if (lean_is_scalar(x_2100)) { - x_2101 = lean_alloc_ctor(0, 5, 0); +x_2098 = l_Lean_mkFVar(x_2050); +x_2099 = l_Lean_mkOptionalNode___closed__2; +x_2100 = lean_array_push(x_2099, x_2098); +x_2101 = l_Lean_LocalContext_mkLambda(x_2056, x_2100, x_2095); +lean_dec(x_2095); +lean_dec(x_2100); +if (lean_is_scalar(x_2097)) { + x_2102 = lean_alloc_ctor(0, 2, 0); } else { - x_2101 = x_2100; -} -lean_ctor_set(x_2101, 0, x_2096); -lean_ctor_set(x_2101, 1, x_2065); -lean_ctor_set(x_2101, 2, x_2097); -lean_ctor_set(x_2101, 3, x_2098); -lean_ctor_set(x_2101, 4, x_2099); -if (lean_is_scalar(x_2095)) { - x_2102 = lean_alloc_ctor(0, 10, 2); -} else { - x_2102 = x_2095; + x_2102 = x_2097; } lean_ctor_set(x_2102, 0, x_2101); -lean_ctor_set(x_2102, 1, x_2084); -lean_ctor_set(x_2102, 2, x_2085); -lean_ctor_set(x_2102, 3, x_2086); -lean_ctor_set(x_2102, 4, x_2087); -lean_ctor_set(x_2102, 5, x_2088); -lean_ctor_set(x_2102, 6, x_2089); -lean_ctor_set(x_2102, 7, x_2090); -lean_ctor_set(x_2102, 8, x_2091); -lean_ctor_set(x_2102, 9, x_2092); -lean_ctor_set_uint8(x_2102, sizeof(void*)*10, x_2093); -lean_ctor_set_uint8(x_2102, sizeof(void*)*10 + 1, x_2094); -x_2103 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2082, x_2102, x_2070); -if (lean_obj_tag(x_2103) == 0) +lean_ctor_set(x_2102, 1, x_2096); +return x_2102; +} +else { -lean_object* x_2104; lean_object* x_2105; lean_object* x_2106; lean_object* x_2107; lean_object* x_2108; lean_object* x_2109; lean_object* x_2110; lean_object* x_2111; -x_2104 = lean_ctor_get(x_2103, 0); +lean_object* x_2103; lean_object* x_2104; lean_object* x_2105; lean_object* x_2106; +lean_dec(x_2056); +lean_dec(x_2050); +x_2103 = lean_ctor_get(x_2094, 0); +lean_inc(x_2103); +x_2104 = lean_ctor_get(x_2094, 1); lean_inc(x_2104); -x_2105 = lean_ctor_get(x_2103, 1); -lean_inc(x_2105); -if (lean_is_exclusive(x_2103)) { - lean_ctor_release(x_2103, 0); - lean_ctor_release(x_2103, 1); - x_2106 = x_2103; +if (lean_is_exclusive(x_2094)) { + lean_ctor_release(x_2094, 0); + lean_ctor_release(x_2094, 1); + x_2105 = x_2094; } else { - lean_dec_ref(x_2103); - x_2106 = lean_box(0); + lean_dec_ref(x_2094); + x_2105 = lean_box(0); } -x_2107 = l_Lean_mkFVar(x_2059); -x_2108 = l_Lean_mkOptionalNode___closed__2; -x_2109 = lean_array_push(x_2108, x_2107); -x_2110 = l_Lean_LocalContext_mkLambda(x_2065, x_2109, x_2104); -lean_dec(x_2104); -lean_dec(x_2109); -if (lean_is_scalar(x_2106)) { - x_2111 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_2105)) { + x_2106 = lean_alloc_ctor(1, 2, 0); } else { - x_2111 = x_2106; + x_2106 = x_2105; +} +lean_ctor_set(x_2106, 0, x_2103); +lean_ctor_set(x_2106, 1, x_2104); +return x_2106; +} } -lean_ctor_set(x_2111, 0, x_2110); -lean_ctor_set(x_2111, 1, x_2105); -return x_2111; } else { -lean_object* x_2112; lean_object* x_2113; lean_object* x_2114; lean_object* x_2115; -lean_dec(x_2065); -lean_dec(x_2059); -x_2112 = lean_ctor_get(x_2103, 0); -lean_inc(x_2112); -x_2113 = lean_ctor_get(x_2103, 1); +lean_object* x_2107; lean_object* x_2108; lean_object* x_2109; lean_object* x_2110; lean_object* x_2111; uint8_t x_2112; lean_object* x_2113; lean_object* x_2114; lean_object* x_2115; lean_object* x_2116; lean_object* x_2117; lean_object* x_2118; lean_object* x_2119; lean_object* x_2120; lean_object* x_2121; lean_object* x_2122; lean_object* x_2123; lean_object* x_2124; lean_object* x_2125; lean_object* x_2126; lean_object* x_2127; lean_object* x_2128; lean_object* x_2129; lean_object* x_2130; lean_object* x_2131; lean_object* x_2132; lean_object* x_2133; lean_object* x_2134; lean_object* x_2135; lean_object* x_2136; lean_object* x_2137; lean_object* x_2138; lean_object* x_2139; lean_object* x_2140; uint8_t x_2141; uint8_t x_2142; lean_object* x_2143; lean_object* x_2144; lean_object* x_2145; lean_object* x_2146; lean_object* x_2147; lean_object* x_2148; lean_object* x_2149; lean_object* x_2150; lean_object* x_2151; +x_2107 = l_Lean_Syntax_getIdAt(x_1972, x_1970); +lean_dec(x_1972); +x_2108 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_2109 = lean_ctor_get(x_2108, 0); +lean_inc(x_2109); +x_2110 = lean_ctor_get(x_2108, 1); +lean_inc(x_2110); +lean_dec(x_2108); +x_2111 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +x_2112 = 0; +lean_inc_n(x_2107, 2); +x_2113 = lean_local_ctx_mk_local_decl(x_2109, x_2107, x_2107, x_2111, x_2112); +x_2114 = l_Array_eraseIdx___rarg(x_1966, x_1970); +x_2115 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2110); +x_2116 = lean_ctor_get(x_2115, 1); +lean_inc(x_2116); +lean_dec(x_2115); +x_2117 = l_Lean_Elab_Term_getMainModule___rarg(x_2116); +x_2118 = lean_ctor_get(x_2117, 1); +lean_inc(x_2118); +lean_dec(x_2117); +x_2119 = lean_name_mk_string(x_1975, x_1776); +x_2120 = l_Lean_nullKind___closed__1; +x_2121 = lean_name_mk_string(x_27, x_2120); +x_2122 = l_Array_empty___closed__1; +x_2123 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2114, x_2114, x_1970, x_2122); +lean_dec(x_2114); +x_2124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2124, 0, x_2121); +lean_ctor_set(x_2124, 1, x_2123); +x_2125 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2126 = lean_array_push(x_2125, x_2124); +x_2127 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_2128 = lean_array_push(x_2126, x_2127); +x_2129 = lean_array_push(x_2128, x_1968); +x_2130 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2130, 0, x_2119); +lean_ctor_set(x_2130, 1, x_2129); +x_2131 = lean_ctor_get(x_2, 0); +lean_inc(x_2131); +x_2132 = lean_ctor_get(x_2, 1); +lean_inc(x_2132); +x_2133 = lean_ctor_get(x_2, 2); +lean_inc(x_2133); +x_2134 = lean_ctor_get(x_2, 3); +lean_inc(x_2134); +x_2135 = lean_ctor_get(x_2, 4); +lean_inc(x_2135); +x_2136 = lean_ctor_get(x_2, 5); +lean_inc(x_2136); +x_2137 = lean_ctor_get(x_2, 6); +lean_inc(x_2137); +x_2138 = lean_ctor_get(x_2, 7); +lean_inc(x_2138); +x_2139 = lean_ctor_get(x_2, 8); +lean_inc(x_2139); +x_2140 = lean_ctor_get(x_2, 9); +lean_inc(x_2140); +x_2141 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_2142 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_2143 = x_2; +} else { + lean_dec_ref(x_2); + x_2143 = lean_box(0); +} +x_2144 = lean_ctor_get(x_2131, 0); +lean_inc(x_2144); +x_2145 = lean_ctor_get(x_2131, 2); +lean_inc(x_2145); +x_2146 = lean_ctor_get(x_2131, 3); +lean_inc(x_2146); +x_2147 = lean_ctor_get(x_2131, 4); +lean_inc(x_2147); +if (lean_is_exclusive(x_2131)) { + lean_ctor_release(x_2131, 0); + lean_ctor_release(x_2131, 1); + lean_ctor_release(x_2131, 2); + lean_ctor_release(x_2131, 3); + lean_ctor_release(x_2131, 4); + x_2148 = x_2131; +} else { + lean_dec_ref(x_2131); + x_2148 = lean_box(0); +} lean_inc(x_2113); -if (lean_is_exclusive(x_2103)) { - lean_ctor_release(x_2103, 0); - lean_ctor_release(x_2103, 1); - x_2114 = x_2103; +if (lean_is_scalar(x_2148)) { + x_2149 = lean_alloc_ctor(0, 5, 0); } else { - lean_dec_ref(x_2103); - x_2114 = lean_box(0); + x_2149 = x_2148; } -if (lean_is_scalar(x_2114)) { - x_2115 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2149, 0, x_2144); +lean_ctor_set(x_2149, 1, x_2113); +lean_ctor_set(x_2149, 2, x_2145); +lean_ctor_set(x_2149, 3, x_2146); +lean_ctor_set(x_2149, 4, x_2147); +if (lean_is_scalar(x_2143)) { + x_2150 = lean_alloc_ctor(0, 10, 2); } else { - x_2115 = x_2114; + x_2150 = x_2143; } -lean_ctor_set(x_2115, 0, x_2112); -lean_ctor_set(x_2115, 1, x_2113); -return x_2115; +lean_ctor_set(x_2150, 0, x_2149); +lean_ctor_set(x_2150, 1, x_2132); +lean_ctor_set(x_2150, 2, x_2133); +lean_ctor_set(x_2150, 3, x_2134); +lean_ctor_set(x_2150, 4, x_2135); +lean_ctor_set(x_2150, 5, x_2136); +lean_ctor_set(x_2150, 6, x_2137); +lean_ctor_set(x_2150, 7, x_2138); +lean_ctor_set(x_2150, 8, x_2139); +lean_ctor_set(x_2150, 9, x_2140); +lean_ctor_set_uint8(x_2150, sizeof(void*)*10, x_2141); +lean_ctor_set_uint8(x_2150, sizeof(void*)*10 + 1, x_2142); +x_2151 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2130, x_2150, x_2118); +if (lean_obj_tag(x_2151) == 0) +{ +lean_object* x_2152; lean_object* x_2153; lean_object* x_2154; lean_object* x_2155; lean_object* x_2156; lean_object* x_2157; lean_object* x_2158; lean_object* x_2159; +x_2152 = lean_ctor_get(x_2151, 0); +lean_inc(x_2152); +x_2153 = lean_ctor_get(x_2151, 1); +lean_inc(x_2153); +if (lean_is_exclusive(x_2151)) { + lean_ctor_release(x_2151, 0); + lean_ctor_release(x_2151, 1); + x_2154 = x_2151; +} else { + lean_dec_ref(x_2151); + x_2154 = lean_box(0); +} +x_2155 = l_Lean_mkFVar(x_2107); +x_2156 = l_Lean_mkOptionalNode___closed__2; +x_2157 = lean_array_push(x_2156, x_2155); +x_2158 = l_Lean_LocalContext_mkLambda(x_2113, x_2157, x_2152); +lean_dec(x_2152); +lean_dec(x_2157); +if (lean_is_scalar(x_2154)) { + x_2159 = lean_alloc_ctor(0, 2, 0); +} else { + x_2159 = x_2154; +} +lean_ctor_set(x_2159, 0, x_2158); +lean_ctor_set(x_2159, 1, x_2153); +return x_2159; +} +else +{ +lean_object* x_2160; lean_object* x_2161; lean_object* x_2162; lean_object* x_2163; +lean_dec(x_2113); +lean_dec(x_2107); +x_2160 = lean_ctor_get(x_2151, 0); +lean_inc(x_2160); +x_2161 = lean_ctor_get(x_2151, 1); +lean_inc(x_2161); +if (lean_is_exclusive(x_2151)) { + lean_ctor_release(x_2151, 0); + lean_ctor_release(x_2151, 1); + x_2162 = x_2151; +} else { + lean_dec_ref(x_2151); + x_2162 = lean_box(0); +} +if (lean_is_scalar(x_2162)) { + x_2163 = lean_alloc_ctor(1, 2, 0); +} else { + x_2163 = x_2162; +} +lean_ctor_set(x_2163, 0, x_2160); +lean_ctor_set(x_2163, 1, x_2161); +return x_2163; } } } else { -lean_dec(x_1918); -x_1 = x_1920; +lean_dec(x_1966); +x_1 = x_1968; goto _start; } } } else { -lean_object* x_2117; lean_object* x_2118; lean_object* x_2119; -lean_dec(x_1713); -lean_dec(x_1709); +lean_object* x_2165; lean_object* x_2166; lean_object* x_2167; +lean_dec(x_1749); +lean_dec(x_1745); lean_free_object(x_15); lean_dec(x_28); -x_2117 = l_Lean_Syntax_inhabited; -x_2118 = lean_unsigned_to_nat(0u); -x_2119 = lean_array_get(x_2117, x_4, x_2118); +x_2165 = l_Lean_Syntax_inhabited; +x_2166 = lean_unsigned_to_nat(0u); +x_2167 = lean_array_get(x_2165, x_4, x_2166); lean_dec(x_4); -if (lean_obj_tag(x_2119) == 3) +if (lean_obj_tag(x_2167) == 3) { -lean_object* x_2120; lean_object* x_2121; lean_object* x_2122; lean_object* x_2123; -x_2120 = lean_ctor_get(x_2119, 2); -lean_inc(x_2120); -x_2121 = lean_ctor_get(x_2119, 3); -lean_inc(x_2121); -lean_dec(x_2119); -x_2122 = lean_box(0); +lean_object* x_2168; lean_object* x_2169; lean_object* x_2170; lean_object* x_2171; +x_2168 = lean_ctor_get(x_2167, 2); +lean_inc(x_2168); +x_2169 = lean_ctor_get(x_2167, 3); +lean_inc(x_2169); +lean_dec(x_2167); +x_2170 = lean_box(0); lean_inc(x_2); -x_2123 = l_Lean_Elab_Term_resolveName(x_1, x_2120, x_2121, x_2122, x_2, x_3); +x_2171 = l_Lean_Elab_Term_resolveName(x_1, x_2168, x_2169, x_2170, x_2, x_3); lean_dec(x_1); -if (lean_obj_tag(x_2123) == 0) +if (lean_obj_tag(x_2171) == 0) { -lean_object* x_2124; -x_2124 = lean_ctor_get(x_2123, 0); -lean_inc(x_2124); -if (lean_obj_tag(x_2124) == 0) +lean_object* x_2172; +x_2172 = lean_ctor_get(x_2171, 0); +lean_inc(x_2172); +if (lean_obj_tag(x_2172) == 0) { -lean_object* x_2125; lean_object* x_2126; lean_object* x_2127; lean_object* x_2128; -x_2125 = lean_ctor_get(x_2123, 1); -lean_inc(x_2125); -lean_dec(x_2123); -x_2126 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; -x_2127 = l_unreachable_x21___rarg(x_2126); -x_2128 = lean_apply_2(x_2127, x_2, x_2125); -return x_2128; +lean_object* x_2173; lean_object* x_2174; lean_object* x_2175; lean_object* x_2176; +x_2173 = lean_ctor_get(x_2171, 1); +lean_inc(x_2173); +lean_dec(x_2171); +x_2174 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_2175 = l_unreachable_x21___rarg(x_2174); +x_2176 = lean_apply_2(x_2175, x_2, x_2173); +return x_2176; } else { -lean_object* x_2129; lean_object* x_2130; +lean_object* x_2177; lean_object* x_2178; lean_dec(x_2); -x_2129 = lean_ctor_get(x_2124, 0); -lean_inc(x_2129); -lean_dec(x_2124); -x_2130 = lean_ctor_get(x_2129, 0); -lean_inc(x_2130); -switch (lean_obj_tag(x_2130)) { +x_2177 = lean_ctor_get(x_2172, 0); +lean_inc(x_2177); +lean_dec(x_2172); +x_2178 = lean_ctor_get(x_2177, 0); +lean_inc(x_2178); +switch (lean_obj_tag(x_2178)) { case 0: { -lean_object* x_2131; lean_object* x_2132; lean_object* x_2133; lean_object* x_2134; lean_object* x_2135; -x_2131 = lean_ctor_get(x_2123, 1); -lean_inc(x_2131); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2132 = x_2123; +lean_object* x_2179; lean_object* x_2180; lean_object* x_2181; lean_object* x_2182; lean_object* x_2183; +x_2179 = lean_ctor_get(x_2171, 1); +lean_inc(x_2179); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2180 = x_2171; } else { - lean_dec_ref(x_2123); - x_2132 = lean_box(0); + lean_dec_ref(x_2171); + x_2180 = lean_box(0); } -x_2133 = lean_ctor_get(x_2129, 1); -lean_inc(x_2133); -lean_dec(x_2129); -x_2134 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_2130, x_2133); -if (lean_is_scalar(x_2132)) { - x_2135 = lean_alloc_ctor(0, 2, 0); +x_2181 = lean_ctor_get(x_2177, 1); +lean_inc(x_2181); +lean_dec(x_2177); +x_2182 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_2178, x_2181); +if (lean_is_scalar(x_2180)) { + x_2183 = lean_alloc_ctor(0, 2, 0); } else { - x_2135 = x_2132; + x_2183 = x_2180; } -lean_ctor_set(x_2135, 0, x_2134); -lean_ctor_set(x_2135, 1, x_2131); -return x_2135; +lean_ctor_set(x_2183, 0, x_2182); +lean_ctor_set(x_2183, 1, x_2179); +return x_2183; } case 1: { -lean_object* x_2136; lean_object* x_2137; lean_object* x_2138; lean_object* x_2139; lean_object* x_2140; -x_2136 = lean_ctor_get(x_2123, 1); -lean_inc(x_2136); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2137 = x_2123; +lean_object* x_2184; lean_object* x_2185; lean_object* x_2186; lean_object* x_2187; lean_object* x_2188; +x_2184 = lean_ctor_get(x_2171, 1); +lean_inc(x_2184); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2185 = x_2171; } else { - lean_dec_ref(x_2123); - x_2137 = lean_box(0); + lean_dec_ref(x_2171); + x_2185 = lean_box(0); } -x_2138 = lean_ctor_get(x_2129, 1); -lean_inc(x_2138); -lean_dec(x_2129); -x_2139 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_2130, x_2138); -if (lean_is_scalar(x_2137)) { - x_2140 = lean_alloc_ctor(0, 2, 0); +x_2186 = lean_ctor_get(x_2177, 1); +lean_inc(x_2186); +lean_dec(x_2177); +x_2187 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_2178, x_2186); +if (lean_is_scalar(x_2185)) { + x_2188 = lean_alloc_ctor(0, 2, 0); } else { - x_2140 = x_2137; + x_2188 = x_2185; } -lean_ctor_set(x_2140, 0, x_2139); -lean_ctor_set(x_2140, 1, x_2136); -return x_2140; +lean_ctor_set(x_2188, 0, x_2187); +lean_ctor_set(x_2188, 1, x_2184); +return x_2188; } case 2: { -lean_object* x_2141; lean_object* x_2142; lean_object* x_2143; lean_object* x_2144; lean_object* x_2145; -x_2141 = lean_ctor_get(x_2123, 1); -lean_inc(x_2141); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2142 = x_2123; +lean_object* x_2189; lean_object* x_2190; lean_object* x_2191; lean_object* x_2192; lean_object* x_2193; +x_2189 = lean_ctor_get(x_2171, 1); +lean_inc(x_2189); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2190 = x_2171; } else { - lean_dec_ref(x_2123); - x_2142 = lean_box(0); + lean_dec_ref(x_2171); + x_2190 = lean_box(0); } -x_2143 = lean_ctor_get(x_2129, 1); -lean_inc(x_2143); -lean_dec(x_2129); -x_2144 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_2130, x_2143); -if (lean_is_scalar(x_2142)) { - x_2145 = lean_alloc_ctor(0, 2, 0); +x_2191 = lean_ctor_get(x_2177, 1); +lean_inc(x_2191); +lean_dec(x_2177); +x_2192 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_2178, x_2191); +if (lean_is_scalar(x_2190)) { + x_2193 = lean_alloc_ctor(0, 2, 0); } else { - x_2145 = x_2142; + x_2193 = x_2190; } -lean_ctor_set(x_2145, 0, x_2144); -lean_ctor_set(x_2145, 1, x_2141); -return x_2145; +lean_ctor_set(x_2193, 0, x_2192); +lean_ctor_set(x_2193, 1, x_2189); +return x_2193; } case 3: { -lean_object* x_2146; lean_object* x_2147; lean_object* x_2148; lean_object* x_2149; lean_object* x_2150; -x_2146 = lean_ctor_get(x_2123, 1); -lean_inc(x_2146); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2147 = x_2123; +lean_object* x_2194; lean_object* x_2195; lean_object* x_2196; lean_object* x_2197; lean_object* x_2198; +x_2194 = lean_ctor_get(x_2171, 1); +lean_inc(x_2194); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2195 = x_2171; } else { - lean_dec_ref(x_2123); - x_2147 = lean_box(0); + lean_dec_ref(x_2171); + x_2195 = lean_box(0); } -x_2148 = lean_ctor_get(x_2129, 1); -lean_inc(x_2148); -lean_dec(x_2129); -x_2149 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_2130, x_2148); -if (lean_is_scalar(x_2147)) { - x_2150 = lean_alloc_ctor(0, 2, 0); +x_2196 = lean_ctor_get(x_2177, 1); +lean_inc(x_2196); +lean_dec(x_2177); +x_2197 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_2178, x_2196); +if (lean_is_scalar(x_2195)) { + x_2198 = lean_alloc_ctor(0, 2, 0); } else { - x_2150 = x_2147; + x_2198 = x_2195; } -lean_ctor_set(x_2150, 0, x_2149); -lean_ctor_set(x_2150, 1, x_2146); -return x_2150; +lean_ctor_set(x_2198, 0, x_2197); +lean_ctor_set(x_2198, 1, x_2194); +return x_2198; } case 4: { -lean_object* x_2151; lean_object* x_2152; lean_object* x_2153; lean_object* x_2154; lean_object* x_2155; lean_object* x_2156; lean_object* x_2157; -x_2151 = lean_ctor_get(x_2123, 1); -lean_inc(x_2151); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2152 = x_2123; +lean_object* x_2199; lean_object* x_2200; lean_object* x_2201; lean_object* x_2202; lean_object* x_2203; lean_object* x_2204; lean_object* x_2205; +x_2199 = lean_ctor_get(x_2171, 1); +lean_inc(x_2199); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2200 = x_2171; } else { - lean_dec_ref(x_2123); - x_2152 = lean_box(0); + lean_dec_ref(x_2171); + x_2200 = lean_box(0); } -x_2153 = lean_ctor_get(x_2129, 1); -lean_inc(x_2153); -lean_dec(x_2129); -x_2154 = lean_ctor_get(x_2130, 0); -lean_inc(x_2154); -lean_dec(x_2130); -x_2155 = l_Lean_mkConst(x_2154, x_2122); -x_2156 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_2155, x_2153); -if (lean_is_scalar(x_2152)) { - x_2157 = lean_alloc_ctor(0, 2, 0); +x_2201 = lean_ctor_get(x_2177, 1); +lean_inc(x_2201); +lean_dec(x_2177); +x_2202 = lean_ctor_get(x_2178, 0); +lean_inc(x_2202); +lean_dec(x_2178); +x_2203 = l_Lean_mkConst(x_2202, x_2170); +x_2204 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_2203, x_2201); +if (lean_is_scalar(x_2200)) { + x_2205 = lean_alloc_ctor(0, 2, 0); } else { - x_2157 = x_2152; + x_2205 = x_2200; } -lean_ctor_set(x_2157, 0, x_2156); -lean_ctor_set(x_2157, 1, x_2151); -return x_2157; +lean_ctor_set(x_2205, 0, x_2204); +lean_ctor_set(x_2205, 1, x_2199); +return x_2205; } case 5: { -lean_object* x_2158; lean_object* x_2159; lean_object* x_2160; lean_object* x_2161; lean_object* x_2162; -x_2158 = lean_ctor_get(x_2123, 1); -lean_inc(x_2158); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2159 = x_2123; +lean_object* x_2206; lean_object* x_2207; lean_object* x_2208; lean_object* x_2209; lean_object* x_2210; +x_2206 = lean_ctor_get(x_2171, 1); +lean_inc(x_2206); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2207 = x_2171; } else { - lean_dec_ref(x_2123); - x_2159 = lean_box(0); + lean_dec_ref(x_2171); + x_2207 = lean_box(0); } -x_2160 = lean_ctor_get(x_2129, 1); -lean_inc(x_2160); -lean_dec(x_2129); -x_2161 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_2130, x_2160); -if (lean_is_scalar(x_2159)) { - x_2162 = lean_alloc_ctor(0, 2, 0); +x_2208 = lean_ctor_get(x_2177, 1); +lean_inc(x_2208); +lean_dec(x_2177); +x_2209 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_2178, x_2208); +if (lean_is_scalar(x_2207)) { + x_2210 = lean_alloc_ctor(0, 2, 0); } else { - x_2162 = x_2159; + x_2210 = x_2207; } -lean_ctor_set(x_2162, 0, x_2161); -lean_ctor_set(x_2162, 1, x_2158); -return x_2162; +lean_ctor_set(x_2210, 0, x_2209); +lean_ctor_set(x_2210, 1, x_2206); +return x_2210; } case 6: { -lean_object* x_2163; lean_object* x_2164; lean_object* x_2165; lean_object* x_2166; lean_object* x_2167; -x_2163 = lean_ctor_get(x_2123, 1); -lean_inc(x_2163); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2164 = x_2123; +lean_object* x_2211; lean_object* x_2212; lean_object* x_2213; lean_object* x_2214; lean_object* x_2215; +x_2211 = lean_ctor_get(x_2171, 1); +lean_inc(x_2211); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2212 = x_2171; } else { - lean_dec_ref(x_2123); - x_2164 = lean_box(0); + lean_dec_ref(x_2171); + x_2212 = lean_box(0); } -x_2165 = lean_ctor_get(x_2129, 1); -lean_inc(x_2165); -lean_dec(x_2129); -x_2166 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_2130, x_2165); -if (lean_is_scalar(x_2164)) { - x_2167 = lean_alloc_ctor(0, 2, 0); +x_2213 = lean_ctor_get(x_2177, 1); +lean_inc(x_2213); +lean_dec(x_2177); +x_2214 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_2178, x_2213); +if (lean_is_scalar(x_2212)) { + x_2215 = lean_alloc_ctor(0, 2, 0); } else { - x_2167 = x_2164; + x_2215 = x_2212; } -lean_ctor_set(x_2167, 0, x_2166); -lean_ctor_set(x_2167, 1, x_2163); -return x_2167; +lean_ctor_set(x_2215, 0, x_2214); +lean_ctor_set(x_2215, 1, x_2211); +return x_2215; } case 7: { -lean_object* x_2168; lean_object* x_2169; lean_object* x_2170; lean_object* x_2171; lean_object* x_2172; -x_2168 = lean_ctor_get(x_2123, 1); -lean_inc(x_2168); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2169 = x_2123; +lean_object* x_2216; lean_object* x_2217; lean_object* x_2218; lean_object* x_2219; lean_object* x_2220; +x_2216 = lean_ctor_get(x_2171, 1); +lean_inc(x_2216); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2217 = x_2171; } else { - lean_dec_ref(x_2123); - x_2169 = lean_box(0); + lean_dec_ref(x_2171); + x_2217 = lean_box(0); } -x_2170 = lean_ctor_get(x_2129, 1); -lean_inc(x_2170); -lean_dec(x_2129); -x_2171 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_2130, x_2170); -if (lean_is_scalar(x_2169)) { - x_2172 = lean_alloc_ctor(0, 2, 0); +x_2218 = lean_ctor_get(x_2177, 1); +lean_inc(x_2218); +lean_dec(x_2177); +x_2219 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_2178, x_2218); +if (lean_is_scalar(x_2217)) { + x_2220 = lean_alloc_ctor(0, 2, 0); } else { - x_2172 = x_2169; + x_2220 = x_2217; } -lean_ctor_set(x_2172, 0, x_2171); -lean_ctor_set(x_2172, 1, x_2168); -return x_2172; +lean_ctor_set(x_2220, 0, x_2219); +lean_ctor_set(x_2220, 1, x_2216); +return x_2220; } case 8: { -lean_object* x_2173; lean_object* x_2174; lean_object* x_2175; lean_object* x_2176; lean_object* x_2177; -x_2173 = lean_ctor_get(x_2123, 1); -lean_inc(x_2173); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2174 = x_2123; +lean_object* x_2221; lean_object* x_2222; lean_object* x_2223; lean_object* x_2224; lean_object* x_2225; +x_2221 = lean_ctor_get(x_2171, 1); +lean_inc(x_2221); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2222 = x_2171; } else { - lean_dec_ref(x_2123); - x_2174 = lean_box(0); + lean_dec_ref(x_2171); + x_2222 = lean_box(0); } -x_2175 = lean_ctor_get(x_2129, 1); -lean_inc(x_2175); -lean_dec(x_2129); -x_2176 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_2130, x_2175); -if (lean_is_scalar(x_2174)) { - x_2177 = lean_alloc_ctor(0, 2, 0); +x_2223 = lean_ctor_get(x_2177, 1); +lean_inc(x_2223); +lean_dec(x_2177); +x_2224 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_2178, x_2223); +if (lean_is_scalar(x_2222)) { + x_2225 = lean_alloc_ctor(0, 2, 0); } else { - x_2177 = x_2174; + x_2225 = x_2222; } -lean_ctor_set(x_2177, 0, x_2176); -lean_ctor_set(x_2177, 1, x_2173); -return x_2177; +lean_ctor_set(x_2225, 0, x_2224); +lean_ctor_set(x_2225, 1, x_2221); +return x_2225; } case 9: { -lean_object* x_2178; lean_object* x_2179; lean_object* x_2180; lean_object* x_2181; lean_object* x_2182; -x_2178 = lean_ctor_get(x_2123, 1); -lean_inc(x_2178); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2179 = x_2123; +lean_object* x_2226; lean_object* x_2227; lean_object* x_2228; lean_object* x_2229; lean_object* x_2230; +x_2226 = lean_ctor_get(x_2171, 1); +lean_inc(x_2226); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2227 = x_2171; } else { - lean_dec_ref(x_2123); - x_2179 = lean_box(0); + lean_dec_ref(x_2171); + x_2227 = lean_box(0); } -x_2180 = lean_ctor_get(x_2129, 1); -lean_inc(x_2180); -lean_dec(x_2129); -x_2181 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_2130, x_2180); -if (lean_is_scalar(x_2179)) { - x_2182 = lean_alloc_ctor(0, 2, 0); +x_2228 = lean_ctor_get(x_2177, 1); +lean_inc(x_2228); +lean_dec(x_2177); +x_2229 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_2178, x_2228); +if (lean_is_scalar(x_2227)) { + x_2230 = lean_alloc_ctor(0, 2, 0); } else { - x_2182 = x_2179; + x_2230 = x_2227; } -lean_ctor_set(x_2182, 0, x_2181); -lean_ctor_set(x_2182, 1, x_2178); -return x_2182; +lean_ctor_set(x_2230, 0, x_2229); +lean_ctor_set(x_2230, 1, x_2226); +return x_2230; } case 10: { -lean_object* x_2183; lean_object* x_2184; lean_object* x_2185; lean_object* x_2186; lean_object* x_2187; -x_2183 = lean_ctor_get(x_2123, 1); -lean_inc(x_2183); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2184 = x_2123; +lean_object* x_2231; lean_object* x_2232; lean_object* x_2233; lean_object* x_2234; lean_object* x_2235; +x_2231 = lean_ctor_get(x_2171, 1); +lean_inc(x_2231); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2232 = x_2171; } else { - lean_dec_ref(x_2123); - x_2184 = lean_box(0); + lean_dec_ref(x_2171); + x_2232 = lean_box(0); } -x_2185 = lean_ctor_get(x_2129, 1); -lean_inc(x_2185); -lean_dec(x_2129); -x_2186 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_2130, x_2185); -if (lean_is_scalar(x_2184)) { - x_2187 = lean_alloc_ctor(0, 2, 0); +x_2233 = lean_ctor_get(x_2177, 1); +lean_inc(x_2233); +lean_dec(x_2177); +x_2234 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_2178, x_2233); +if (lean_is_scalar(x_2232)) { + x_2235 = lean_alloc_ctor(0, 2, 0); } else { - x_2187 = x_2184; + x_2235 = x_2232; } -lean_ctor_set(x_2187, 0, x_2186); -lean_ctor_set(x_2187, 1, x_2183); -return x_2187; +lean_ctor_set(x_2235, 0, x_2234); +lean_ctor_set(x_2235, 1, x_2231); +return x_2235; } case 11: { -lean_object* x_2188; lean_object* x_2189; lean_object* x_2190; lean_object* x_2191; lean_object* x_2192; -x_2188 = lean_ctor_get(x_2123, 1); -lean_inc(x_2188); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2189 = x_2123; +lean_object* x_2236; lean_object* x_2237; lean_object* x_2238; lean_object* x_2239; lean_object* x_2240; +x_2236 = lean_ctor_get(x_2171, 1); +lean_inc(x_2236); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2237 = x_2171; } else { - lean_dec_ref(x_2123); - x_2189 = lean_box(0); + lean_dec_ref(x_2171); + x_2237 = lean_box(0); } -x_2190 = lean_ctor_get(x_2129, 1); -lean_inc(x_2190); -lean_dec(x_2129); -x_2191 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_2130, x_2190); -if (lean_is_scalar(x_2189)) { - x_2192 = lean_alloc_ctor(0, 2, 0); +x_2238 = lean_ctor_get(x_2177, 1); +lean_inc(x_2238); +lean_dec(x_2177); +x_2239 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_2178, x_2238); +if (lean_is_scalar(x_2237)) { + x_2240 = lean_alloc_ctor(0, 2, 0); } else { - x_2192 = x_2189; + x_2240 = x_2237; } -lean_ctor_set(x_2192, 0, x_2191); -lean_ctor_set(x_2192, 1, x_2188); -return x_2192; +lean_ctor_set(x_2240, 0, x_2239); +lean_ctor_set(x_2240, 1, x_2236); +return x_2240; } default: { -lean_object* x_2193; lean_object* x_2194; lean_object* x_2195; lean_object* x_2196; lean_object* x_2197; -x_2193 = lean_ctor_get(x_2123, 1); -lean_inc(x_2193); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2194 = x_2123; +lean_object* x_2241; lean_object* x_2242; lean_object* x_2243; lean_object* x_2244; lean_object* x_2245; +x_2241 = lean_ctor_get(x_2171, 1); +lean_inc(x_2241); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2242 = x_2171; } else { - lean_dec_ref(x_2123); - x_2194 = lean_box(0); + lean_dec_ref(x_2171); + x_2242 = lean_box(0); } -x_2195 = lean_ctor_get(x_2129, 1); -lean_inc(x_2195); -lean_dec(x_2129); -x_2196 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_2130, x_2195); -if (lean_is_scalar(x_2194)) { - x_2197 = lean_alloc_ctor(0, 2, 0); +x_2243 = lean_ctor_get(x_2177, 1); +lean_inc(x_2243); +lean_dec(x_2177); +x_2244 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_2178, x_2243); +if (lean_is_scalar(x_2242)) { + x_2245 = lean_alloc_ctor(0, 2, 0); } else { - x_2197 = x_2194; + x_2245 = x_2242; } -lean_ctor_set(x_2197, 0, x_2196); -lean_ctor_set(x_2197, 1, x_2193); -return x_2197; +lean_ctor_set(x_2245, 0, x_2244); +lean_ctor_set(x_2245, 1, x_2241); +return x_2245; } } } } else { -lean_object* x_2198; lean_object* x_2199; lean_object* x_2200; lean_object* x_2201; +lean_object* x_2246; lean_object* x_2247; lean_object* x_2248; lean_object* x_2249; lean_dec(x_2); -x_2198 = lean_ctor_get(x_2123, 0); -lean_inc(x_2198); -x_2199 = lean_ctor_get(x_2123, 1); -lean_inc(x_2199); -if (lean_is_exclusive(x_2123)) { - lean_ctor_release(x_2123, 0); - lean_ctor_release(x_2123, 1); - x_2200 = x_2123; +x_2246 = lean_ctor_get(x_2171, 0); +lean_inc(x_2246); +x_2247 = lean_ctor_get(x_2171, 1); +lean_inc(x_2247); +if (lean_is_exclusive(x_2171)) { + lean_ctor_release(x_2171, 0); + lean_ctor_release(x_2171, 1); + x_2248 = x_2171; } else { - lean_dec_ref(x_2123); - x_2200 = lean_box(0); + lean_dec_ref(x_2171); + x_2248 = lean_box(0); } -if (lean_is_scalar(x_2200)) { - x_2201 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2248)) { + x_2249 = lean_alloc_ctor(1, 2, 0); } else { - x_2201 = x_2200; + x_2249 = x_2248; } -lean_ctor_set(x_2201, 0, x_2198); -lean_ctor_set(x_2201, 1, x_2199); -return x_2201; +lean_ctor_set(x_2249, 0, x_2246); +lean_ctor_set(x_2249, 1, x_2247); +return x_2249; } } else { -lean_object* x_2202; lean_object* x_2203; lean_object* x_2204; -lean_dec(x_2119); +lean_object* x_2250; lean_object* x_2251; lean_object* x_2252; +lean_dec(x_2167); lean_dec(x_1); -x_2202 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; -x_2203 = l_unreachable_x21___rarg(x_2202); -x_2204 = lean_apply_2(x_2203, x_2, x_3); -return x_2204; +x_2250 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_2251 = l_unreachable_x21___rarg(x_2250); +x_2252 = lean_apply_2(x_2251, x_2, x_3); +return x_2252; } } } @@ -22684,783 +22906,558 @@ return x_2204; } else { -size_t x_2205; lean_object* x_2206; size_t x_2207; lean_object* x_2208; size_t x_2209; lean_object* x_2210; lean_object* x_2211; size_t x_2212; lean_object* x_2213; lean_object* x_2214; uint8_t x_2215; -x_2205 = lean_ctor_get_usize(x_5, 2); -x_2206 = lean_ctor_get(x_15, 1); -x_2207 = lean_ctor_get_usize(x_15, 2); -lean_inc(x_2206); +size_t x_2253; lean_object* x_2254; size_t x_2255; lean_object* x_2256; size_t x_2257; lean_object* x_2258; lean_object* x_2259; size_t x_2260; lean_object* x_2261; lean_object* x_2262; uint8_t x_2263; +x_2253 = lean_ctor_get_usize(x_5, 2); +x_2254 = lean_ctor_get(x_15, 1); +x_2255 = lean_ctor_get_usize(x_15, 2); +lean_inc(x_2254); lean_dec(x_15); -x_2208 = lean_ctor_get(x_25, 1); -lean_inc(x_2208); -x_2209 = lean_ctor_get_usize(x_25, 2); +x_2256 = lean_ctor_get(x_25, 1); +lean_inc(x_2256); +x_2257 = lean_ctor_get_usize(x_25, 2); if (lean_is_exclusive(x_25)) { lean_ctor_release(x_25, 0); lean_ctor_release(x_25, 1); - x_2210 = x_25; + x_2258 = x_25; } else { lean_dec_ref(x_25); - x_2210 = lean_box(0); + x_2258 = lean_box(0); } -x_2211 = lean_ctor_get(x_26, 1); -lean_inc(x_2211); -x_2212 = lean_ctor_get_usize(x_26, 2); +x_2259 = lean_ctor_get(x_26, 1); +lean_inc(x_2259); +x_2260 = lean_ctor_get_usize(x_26, 2); if (lean_is_exclusive(x_26)) { lean_ctor_release(x_26, 0); lean_ctor_release(x_26, 1); - x_2213 = x_26; + x_2261 = x_26; } else { lean_dec_ref(x_26); - x_2213 = lean_box(0); + x_2261 = lean_box(0); } -x_2214 = l_Lean_mkAppStx___closed__1; -x_2215 = lean_string_dec_eq(x_2211, x_2214); -lean_dec(x_2211); -if (x_2215 == 0) +x_2262 = l_Lean_mkAppStx___closed__1; +x_2263 = lean_string_dec_eq(x_2259, x_2262); +lean_dec(x_2259); +if (x_2263 == 0) { -lean_object* x_2216; -lean_dec(x_2213); -lean_dec(x_2210); -lean_dec(x_2208); -lean_dec(x_2206); +lean_object* x_2264; +lean_dec(x_2261); +lean_dec(x_2258); +lean_dec(x_2256); +lean_dec(x_2254); lean_dec(x_28); lean_dec(x_4); -x_2216 = lean_box(0); -x_6 = x_2216; +x_2264 = lean_box(0); +x_6 = x_2264; goto block_14; } else { -lean_object* x_2217; lean_object* x_2218; uint8_t x_2219; +lean_object* x_2265; lean_object* x_2266; uint8_t x_2267; if (lean_is_exclusive(x_5)) { lean_ctor_release(x_5, 0); lean_ctor_release(x_5, 1); - x_2217 = x_5; + x_2265 = x_5; } else { lean_dec_ref(x_5); - x_2217 = lean_box(0); + x_2265 = lean_box(0); } -x_2218 = l_Lean_mkAppStx___closed__3; -x_2219 = lean_string_dec_eq(x_2208, x_2218); -if (x_2219 == 0) +x_2266 = l_Lean_mkAppStx___closed__3; +x_2267 = lean_string_dec_eq(x_2256, x_2266); +if (x_2267 == 0) { -lean_object* x_2220; lean_object* x_2221; lean_object* x_2222; lean_object* x_2223; lean_object* x_2224; lean_object* x_2225; lean_object* x_2226; lean_object* x_2227; lean_object* x_2228; lean_object* x_2229; lean_object* x_2230; +lean_object* x_2268; lean_object* x_2269; lean_object* x_2270; lean_object* x_2271; lean_object* x_2272; lean_object* x_2273; lean_object* x_2274; lean_object* x_2275; lean_object* x_2276; lean_object* x_2277; lean_object* x_2278; lean_dec(x_4); -if (lean_is_scalar(x_2213)) { - x_2220 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +if (lean_is_scalar(x_2261)) { + x_2268 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); } else { - x_2220 = x_2213; + x_2268 = x_2261; } -lean_ctor_set(x_2220, 0, x_27); -lean_ctor_set(x_2220, 1, x_2214); -lean_ctor_set_usize(x_2220, 2, x_2212); -if (lean_is_scalar(x_2210)) { - x_2221 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_2268, 0, x_27); +lean_ctor_set(x_2268, 1, x_2262); +lean_ctor_set_usize(x_2268, 2, x_2260); +if (lean_is_scalar(x_2258)) { + x_2269 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); } else { - x_2221 = x_2210; + x_2269 = x_2258; } -lean_ctor_set(x_2221, 0, x_2220); -lean_ctor_set(x_2221, 1, x_2208); -lean_ctor_set_usize(x_2221, 2, x_2209); -x_2222 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_2222, 0, x_2221); -lean_ctor_set(x_2222, 1, x_2206); -lean_ctor_set_usize(x_2222, 2, x_2207); -if (lean_is_scalar(x_2217)) { - x_2223 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2223 = x_2217; -} -lean_ctor_set(x_2223, 0, x_2222); -lean_ctor_set(x_2223, 1, x_28); -lean_ctor_set_usize(x_2223, 2, x_2205); -x_2224 = l_System_FilePath_dirName___closed__1; -x_2225 = l_Lean_Name_toStringWithSep___main(x_2224, x_2223); -x_2226 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2226, 0, x_2225); -x_2227 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2227, 0, x_2226); -x_2228 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_2229 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2229, 0, x_2228); -lean_ctor_set(x_2229, 1, x_2227); -x_2230 = l_Lean_Elab_Term_throwError___rarg(x_1, x_2229, x_2, x_3); -lean_dec(x_1); -return x_2230; -} -else -{ -lean_object* x_2231; uint8_t x_2232; -lean_dec(x_2208); -x_2231 = l_Lean_mkAppStx___closed__5; -x_2232 = lean_string_dec_eq(x_2206, x_2231); -if (x_2232 == 0) -{ -lean_object* x_2233; lean_object* x_2234; lean_object* x_2235; lean_object* x_2236; lean_object* x_2237; lean_object* x_2238; lean_object* x_2239; lean_object* x_2240; lean_object* x_2241; lean_object* x_2242; lean_object* x_2243; -lean_dec(x_4); -if (lean_is_scalar(x_2213)) { - x_2233 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2233 = x_2213; -} -lean_ctor_set(x_2233, 0, x_27); -lean_ctor_set(x_2233, 1, x_2214); -lean_ctor_set_usize(x_2233, 2, x_2212); -if (lean_is_scalar(x_2210)) { - x_2234 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2234 = x_2210; -} -lean_ctor_set(x_2234, 0, x_2233); -lean_ctor_set(x_2234, 1, x_2218); -lean_ctor_set_usize(x_2234, 2, x_2209); -x_2235 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_2235, 0, x_2234); -lean_ctor_set(x_2235, 1, x_2206); -lean_ctor_set_usize(x_2235, 2, x_2207); -if (lean_is_scalar(x_2217)) { - x_2236 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2236 = x_2217; -} -lean_ctor_set(x_2236, 0, x_2235); -lean_ctor_set(x_2236, 1, x_28); -lean_ctor_set_usize(x_2236, 2, x_2205); -x_2237 = l_System_FilePath_dirName___closed__1; -x_2238 = l_Lean_Name_toStringWithSep___main(x_2237, x_2236); -x_2239 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_2239, 0, x_2238); -x_2240 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_2240, 0, x_2239); -x_2241 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_2242 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2242, 0, x_2241); -lean_ctor_set(x_2242, 1, x_2240); -x_2243 = l_Lean_Elab_Term_throwError___rarg(x_1, x_2242, x_2, x_3); -lean_dec(x_1); -return x_2243; -} -else -{ -lean_object* x_2244; uint8_t x_2245; -lean_dec(x_2206); -x_2244 = l_Lean_mkTermIdFromIdent___closed__1; -x_2245 = lean_string_dec_eq(x_28, x_2244); -if (x_2245 == 0) -{ -lean_object* x_2246; uint8_t x_2247; -x_2246 = l_Lean_Parser_Term_fun___elambda__1___closed__1; -x_2247 = lean_string_dec_eq(x_28, x_2246); -if (x_2247 == 0) -{ -lean_object* x_2248; uint8_t x_2249; -x_2248 = l_Lean_Parser_Term_let___elambda__1___closed__1; -x_2249 = lean_string_dec_eq(x_28, x_2248); -if (x_2249 == 0) -{ -lean_object* x_2250; uint8_t x_2251; -x_2250 = l_Lean_mkAppStx___closed__7; -x_2251 = lean_string_dec_eq(x_28, x_2250); -if (x_2251 == 0) -{ -lean_object* x_2252; uint8_t x_2253; -x_2252 = l_Lean_Parser_Term_if___elambda__1___closed__1; -x_2253 = lean_string_dec_eq(x_28, x_2252); -if (x_2253 == 0) -{ -lean_object* x_2254; uint8_t x_2255; -x_2254 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__1; -x_2255 = lean_string_dec_eq(x_28, x_2254); -if (x_2255 == 0) -{ -lean_object* x_2256; uint8_t x_2257; -x_2256 = l_Lean_Parser_Term_band___elambda__1___closed__1; -x_2257 = lean_string_dec_eq(x_28, x_2256); -if (x_2257 == 0) -{ -lean_object* x_2258; uint8_t x_2259; -x_2258 = l_Lean_Parser_Term_beq___elambda__1___closed__1; -x_2259 = lean_string_dec_eq(x_28, x_2258); -if (x_2259 == 0) -{ -lean_object* x_2260; uint8_t x_2261; -lean_dec(x_4); -x_2260 = l_Lean_Parser_Term_str___elambda__1___closed__1; -x_2261 = lean_string_dec_eq(x_28, x_2260); -if (x_2261 == 0) -{ -lean_object* x_2262; uint8_t x_2263; -x_2262 = l_Lean_Parser_Level_num___elambda__1___closed__1; -x_2263 = lean_string_dec_eq(x_28, x_2262); -if (x_2263 == 0) -{ -lean_object* x_2264; lean_object* x_2265; lean_object* x_2266; lean_object* x_2267; lean_object* x_2268; lean_object* x_2269; lean_object* x_2270; lean_object* x_2271; lean_object* x_2272; lean_object* x_2273; lean_object* x_2274; -if (lean_is_scalar(x_2213)) { - x_2264 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2264 = x_2213; -} -lean_ctor_set(x_2264, 0, x_27); -lean_ctor_set(x_2264, 1, x_2214); -lean_ctor_set_usize(x_2264, 2, x_2212); -if (lean_is_scalar(x_2210)) { - x_2265 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2265 = x_2210; -} -lean_ctor_set(x_2265, 0, x_2264); -lean_ctor_set(x_2265, 1, x_2218); -lean_ctor_set_usize(x_2265, 2, x_2209); -x_2266 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -lean_ctor_set(x_2266, 0, x_2265); -lean_ctor_set(x_2266, 1, x_2231); -lean_ctor_set_usize(x_2266, 2, x_2207); -if (lean_is_scalar(x_2217)) { - x_2267 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); -} else { - x_2267 = x_2217; -} -lean_ctor_set(x_2267, 0, x_2266); -lean_ctor_set(x_2267, 1, x_28); -lean_ctor_set_usize(x_2267, 2, x_2205); -x_2268 = l_System_FilePath_dirName___closed__1; -x_2269 = l_Lean_Name_toStringWithSep___main(x_2268, x_2267); -x_2270 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2269, 0, x_2268); +lean_ctor_set(x_2269, 1, x_2256); +lean_ctor_set_usize(x_2269, 2, x_2257); +x_2270 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); lean_ctor_set(x_2270, 0, x_2269); -x_2271 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2270, 1, x_2254); +lean_ctor_set_usize(x_2270, 2, x_2255); +if (lean_is_scalar(x_2265)) { + x_2271 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2271 = x_2265; +} lean_ctor_set(x_2271, 0, x_2270); -x_2272 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; -x_2273 = lean_alloc_ctor(9, 2, 0); -lean_ctor_set(x_2273, 0, x_2272); -lean_ctor_set(x_2273, 1, x_2271); -x_2274 = l_Lean_Elab_Term_throwError___rarg(x_1, x_2273, x_2, x_3); +lean_ctor_set(x_2271, 1, x_28); +lean_ctor_set_usize(x_2271, 2, x_2253); +x_2272 = l_System_FilePath_dirName___closed__1; +x_2273 = l_Lean_Name_toStringWithSep___main(x_2272, x_2271); +x_2274 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2274, 0, x_2273); +x_2275 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2275, 0, x_2274); +x_2276 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_2277 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2277, 0, x_2276); +lean_ctor_set(x_2277, 1, x_2275); +x_2278 = l_Lean_Elab_Term_throwError___rarg(x_1, x_2277, x_2, x_3); lean_dec(x_1); -return x_2274; +return x_2278; } else { -lean_object* x_2275; lean_object* x_2276; lean_object* x_2277; lean_object* x_2278; -lean_dec(x_2217); -lean_dec(x_2213); -lean_dec(x_2210); -lean_dec(x_28); -lean_dec(x_2); -x_2275 = lean_unsigned_to_nat(0u); -x_2276 = l_Lean_Syntax_getArg(x_1, x_2275); -lean_dec(x_1); -x_2277 = l_Lean_numLitKind; -x_2278 = l_Lean_Syntax_isNatLitAux(x_2277, x_2276); -lean_dec(x_2276); -if (lean_obj_tag(x_2278) == 0) +lean_object* x_2279; uint8_t x_2280; +lean_dec(x_2256); +x_2279 = l_Lean_mkAppStx___closed__5; +x_2280 = lean_string_dec_eq(x_2254, x_2279); +if (x_2280 == 0) { -lean_object* x_2279; lean_object* x_2280; -x_2279 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__5; -x_2280 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2280, 0, x_2279); -lean_ctor_set(x_2280, 1, x_3); -return x_2280; +lean_object* x_2281; lean_object* x_2282; lean_object* x_2283; lean_object* x_2284; lean_object* x_2285; lean_object* x_2286; lean_object* x_2287; lean_object* x_2288; lean_object* x_2289; lean_object* x_2290; lean_object* x_2291; +lean_dec(x_4); +if (lean_is_scalar(x_2261)) { + x_2281 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2281 = x_2261; } -else -{ -lean_object* x_2281; lean_object* x_2282; lean_object* x_2283; -x_2281 = lean_ctor_get(x_2278, 0); -lean_inc(x_2281); -lean_dec(x_2278); -x_2282 = l_Lean_mkNatLit(x_2281); -x_2283 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2281, 0, x_27); +lean_ctor_set(x_2281, 1, x_2262); +lean_ctor_set_usize(x_2281, 2, x_2260); +if (lean_is_scalar(x_2258)) { + x_2282 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2282 = x_2258; +} +lean_ctor_set(x_2282, 0, x_2281); +lean_ctor_set(x_2282, 1, x_2266); +lean_ctor_set_usize(x_2282, 2, x_2257); +x_2283 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); lean_ctor_set(x_2283, 0, x_2282); -lean_ctor_set(x_2283, 1, x_3); -return x_2283; +lean_ctor_set(x_2283, 1, x_2254); +lean_ctor_set_usize(x_2283, 2, x_2255); +if (lean_is_scalar(x_2265)) { + x_2284 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2284 = x_2265; } -} -} -else -{ -lean_object* x_2284; lean_object* x_2285; lean_object* x_2286; -lean_dec(x_2217); -lean_dec(x_2213); -lean_dec(x_2210); -lean_dec(x_28); -lean_dec(x_2); -x_2284 = lean_unsigned_to_nat(0u); -x_2285 = l_Lean_Syntax_getArg(x_1, x_2284); -lean_dec(x_1); -x_2286 = l_Lean_Syntax_isStrLit_x3f(x_2285); -lean_dec(x_2285); -if (lean_obj_tag(x_2286) == 0) -{ -lean_object* x_2287; lean_object* x_2288; -x_2287 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__6; -x_2288 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2284, 0, x_2283); +lean_ctor_set(x_2284, 1, x_28); +lean_ctor_set_usize(x_2284, 2, x_2253); +x_2285 = l_System_FilePath_dirName___closed__1; +x_2286 = l_Lean_Name_toStringWithSep___main(x_2285, x_2284); +x_2287 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2287, 0, x_2286); +x_2288 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_2288, 0, x_2287); -lean_ctor_set(x_2288, 1, x_3); -return x_2288; -} -else -{ -lean_object* x_2289; lean_object* x_2290; lean_object* x_2291; -x_2289 = lean_ctor_get(x_2286, 0); -lean_inc(x_2289); -lean_dec(x_2286); -x_2290 = l_Lean_mkStrLit(x_2289); -x_2291 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2291, 0, x_2290); -lean_ctor_set(x_2291, 1, x_3); +x_2289 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_2290 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2290, 0, x_2289); +lean_ctor_set(x_2290, 1, x_2288); +x_2291 = l_Lean_Elab_Term_throwError___rarg(x_1, x_2290, x_2, x_3); +lean_dec(x_1); return x_2291; } -} -} else { -lean_object* x_2292; lean_object* x_2293; lean_object* x_2294; lean_object* x_2295; lean_object* x_2296; lean_object* x_2297; lean_object* x_2298; lean_object* x_2299; lean_object* x_2300; -lean_dec(x_2217); -lean_dec(x_2213); -lean_dec(x_2210); -lean_dec(x_28); -lean_dec(x_1); -x_2292 = l_Lean_Syntax_inhabited; -x_2293 = lean_unsigned_to_nat(0u); -x_2294 = lean_array_get(x_2292, x_4, x_2293); -x_2295 = lean_unsigned_to_nat(2u); -x_2296 = lean_array_get(x_2292, x_4, x_2295); +lean_object* x_2292; uint8_t x_2293; +lean_dec(x_2254); +x_2292 = l_Lean_mkTermIdFromIdent___closed__1; +x_2293 = lean_string_dec_eq(x_28, x_2292); +if (x_2293 == 0) +{ +lean_object* x_2294; uint8_t x_2295; +x_2294 = l_Lean_Parser_Term_fun___elambda__1___closed__1; +x_2295 = lean_string_dec_eq(x_28, x_2294); +if (x_2295 == 0) +{ +lean_object* x_2296; uint8_t x_2297; +x_2296 = l_Lean_Parser_Term_let___elambda__1___closed__1; +x_2297 = lean_string_dec_eq(x_28, x_2296); +if (x_2297 == 0) +{ +lean_object* x_2298; uint8_t x_2299; +x_2298 = l_Lean_mkAppStx___closed__7; +x_2299 = lean_string_dec_eq(x_28, x_2298); +if (x_2299 == 0) +{ +lean_object* x_2300; uint8_t x_2301; +x_2300 = l_Lean_Parser_Term_if___elambda__1___closed__1; +x_2301 = lean_string_dec_eq(x_28, x_2300); +if (x_2301 == 0) +{ +lean_object* x_2302; uint8_t x_2303; +x_2302 = l___private_Init_Lean_Parser_Parser_13__antiquotNestedExpr___elambda__1___rarg___closed__1; +x_2303 = lean_string_dec_eq(x_28, x_2302); +if (x_2303 == 0) +{ +lean_object* x_2304; uint8_t x_2305; +x_2304 = l_Lean_Parser_Term_band___elambda__1___closed__1; +x_2305 = lean_string_dec_eq(x_28, x_2304); +if (x_2305 == 0) +{ +lean_object* x_2306; uint8_t x_2307; +x_2306 = l_Lean_Parser_Term_beq___elambda__1___closed__1; +x_2307 = lean_string_dec_eq(x_28, x_2306); +if (x_2307 == 0) +{ +lean_object* x_2308; uint8_t x_2309; +x_2308 = l_Lean_Parser_Term_eq___elambda__1___closed__1; +x_2309 = lean_string_dec_eq(x_28, x_2308); +if (x_2309 == 0) +{ +lean_object* x_2310; uint8_t x_2311; lean_dec(x_4); -x_2297 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___boxed), 6, 3); -lean_closure_set(x_2297, 0, x_27); -lean_closure_set(x_2297, 1, x_2294); -lean_closure_set(x_2297, 2, x_2296); -x_2298 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_2299 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_2299, 0, x_2298); -lean_closure_set(x_2299, 1, x_2297); -x_2300 = l_Lean_Unhygienic_run___rarg(x_2299); -x_1 = x_2300; -goto _start; -} -} -else +x_2310 = l_Lean_Parser_Term_str___elambda__1___closed__1; +x_2311 = lean_string_dec_eq(x_28, x_2310); +if (x_2311 == 0) { -lean_object* x_2302; lean_object* x_2303; lean_object* x_2304; lean_object* x_2305; lean_object* x_2306; lean_object* x_2307; lean_object* x_2308; lean_object* x_2309; lean_object* x_2310; -lean_dec(x_2217); -lean_dec(x_2213); -lean_dec(x_2210); -lean_dec(x_28); +lean_object* x_2312; uint8_t x_2313; +x_2312 = l_Lean_Parser_Level_num___elambda__1___closed__1; +x_2313 = lean_string_dec_eq(x_28, x_2312); +if (x_2313 == 0) +{ +lean_object* x_2314; lean_object* x_2315; lean_object* x_2316; lean_object* x_2317; lean_object* x_2318; lean_object* x_2319; lean_object* x_2320; lean_object* x_2321; lean_object* x_2322; lean_object* x_2323; lean_object* x_2324; +if (lean_is_scalar(x_2261)) { + x_2314 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2314 = x_2261; +} +lean_ctor_set(x_2314, 0, x_27); +lean_ctor_set(x_2314, 1, x_2262); +lean_ctor_set_usize(x_2314, 2, x_2260); +if (lean_is_scalar(x_2258)) { + x_2315 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2315 = x_2258; +} +lean_ctor_set(x_2315, 0, x_2314); +lean_ctor_set(x_2315, 1, x_2266); +lean_ctor_set_usize(x_2315, 2, x_2257); +x_2316 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +lean_ctor_set(x_2316, 0, x_2315); +lean_ctor_set(x_2316, 1, x_2279); +lean_ctor_set_usize(x_2316, 2, x_2255); +if (lean_is_scalar(x_2265)) { + x_2317 = lean_alloc_ctor(1, 2, sizeof(size_t)*1); +} else { + x_2317 = x_2265; +} +lean_ctor_set(x_2317, 0, x_2316); +lean_ctor_set(x_2317, 1, x_28); +lean_ctor_set_usize(x_2317, 2, x_2253); +x_2318 = l_System_FilePath_dirName___closed__1; +x_2319 = l_Lean_Name_toStringWithSep___main(x_2318, x_2317); +x_2320 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_2320, 0, x_2319); +x_2321 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_2321, 0, x_2320); +x_2322 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__3; +x_2323 = lean_alloc_ctor(9, 2, 0); +lean_ctor_set(x_2323, 0, x_2322); +lean_ctor_set(x_2323, 1, x_2321); +x_2324 = l_Lean_Elab_Term_throwError___rarg(x_1, x_2323, x_2, x_3); lean_dec(x_1); -x_2302 = l_Lean_Syntax_inhabited; -x_2303 = lean_unsigned_to_nat(0u); -x_2304 = lean_array_get(x_2302, x_4, x_2303); -x_2305 = lean_unsigned_to_nat(2u); -x_2306 = lean_array_get(x_2302, x_4, x_2305); -lean_dec(x_4); -x_2307 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed), 6, 3); -lean_closure_set(x_2307, 0, x_27); -lean_closure_set(x_2307, 1, x_2304); -lean_closure_set(x_2307, 2, x_2306); -x_2308 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_2309 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_2309, 0, x_2308); -lean_closure_set(x_2309, 1, x_2307); -x_2310 = l_Lean_Unhygienic_run___rarg(x_2309); -x_1 = x_2310; -goto _start; -} +return x_2324; } else { -lean_object* x_2312; lean_object* x_2313; lean_object* x_2314; lean_object* x_2315; lean_object* x_2316; lean_object* x_2317; uint8_t x_2318; -lean_dec(x_2217); -lean_dec(x_2213); -lean_dec(x_2210); +lean_object* x_2325; lean_object* x_2326; lean_object* x_2327; lean_object* x_2328; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); lean_dec(x_28); -lean_dec(x_1); -x_2312 = l_Lean_Syntax_inhabited; -x_2313 = lean_unsigned_to_nat(1u); -x_2314 = lean_array_get(x_2312, x_4, x_2313); -lean_dec(x_4); -x_2315 = l_Lean_Syntax_getArgs(x_2314); -lean_dec(x_2314); -x_2316 = lean_array_get_size(x_2315); -x_2317 = lean_unsigned_to_nat(0u); -x_2318 = lean_nat_dec_eq(x_2316, x_2317); -lean_dec(x_2316); -if (x_2318 == 0) -{ -lean_object* x_2319; -x_2319 = lean_array_get(x_2312, x_2315, x_2317); -lean_dec(x_2315); -x_1 = x_2319; -goto _start; -} -else -{ -lean_object* x_2321; lean_object* x_2322; lean_object* x_2323; lean_object* x_2324; lean_object* x_2325; lean_object* x_2326; lean_object* x_2327; -lean_dec(x_2315); lean_dec(x_2); -x_2321 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; -x_2322 = lean_name_mk_string(x_27, x_2321); -x_2323 = l_Lean_Elab_Term_elabParen___closed__4; -x_2324 = lean_name_mk_string(x_2322, x_2323); -x_2325 = lean_box(0); -x_2326 = l_Lean_mkConst(x_2324, x_2325); -x_2327 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_2327, 0, x_2326); -lean_ctor_set(x_2327, 1, x_3); -return x_2327; +x_2325 = lean_unsigned_to_nat(0u); +x_2326 = l_Lean_Syntax_getArg(x_1, x_2325); +lean_dec(x_1); +x_2327 = l_Lean_numLitKind; +x_2328 = l_Lean_Syntax_isNatLitAux(x_2327, x_2326); +lean_dec(x_2326); +if (lean_obj_tag(x_2328) == 0) +{ +lean_object* x_2329; lean_object* x_2330; +x_2329 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__5; +x_2330 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2330, 0, x_2329); +lean_ctor_set(x_2330, 1, x_3); +return x_2330; +} +else +{ +lean_object* x_2331; lean_object* x_2332; lean_object* x_2333; +x_2331 = lean_ctor_get(x_2328, 0); +lean_inc(x_2331); +lean_dec(x_2328); +x_2332 = l_Lean_mkNatLit(x_2331); +x_2333 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2333, 0, x_2332); +lean_ctor_set(x_2333, 1, x_3); +return x_2333; } } } else { -lean_object* x_2328; lean_object* x_2329; lean_object* x_2330; lean_object* x_2331; lean_object* x_2332; lean_object* x_2333; lean_object* x_2334; lean_object* x_2335; lean_object* x_2336; lean_object* x_2337; lean_object* x_2338; -lean_dec(x_2217); -lean_dec(x_2213); -lean_dec(x_2210); +lean_object* x_2334; lean_object* x_2335; lean_object* x_2336; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); +lean_dec(x_28); +lean_dec(x_2); +x_2334 = lean_unsigned_to_nat(0u); +x_2335 = l_Lean_Syntax_getArg(x_1, x_2334); +lean_dec(x_1); +x_2336 = l_Lean_Syntax_isStrLit_x3f(x_2335); +lean_dec(x_2335); +if (lean_obj_tag(x_2336) == 0) +{ +lean_object* x_2337; lean_object* x_2338; +x_2337 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__6; +x_2338 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2338, 0, x_2337); +lean_ctor_set(x_2338, 1, x_3); +return x_2338; +} +else +{ +lean_object* x_2339; lean_object* x_2340; lean_object* x_2341; +x_2339 = lean_ctor_get(x_2336, 0); +lean_inc(x_2339); +lean_dec(x_2336); +x_2340 = l_Lean_mkStrLit(x_2339); +x_2341 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2341, 0, x_2340); +lean_ctor_set(x_2341, 1, x_3); +return x_2341; +} +} +} +else +{ +lean_object* x_2342; lean_object* x_2343; lean_object* x_2344; lean_object* x_2345; lean_object* x_2346; lean_object* x_2347; lean_object* x_2348; lean_object* x_2349; lean_object* x_2350; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); lean_dec(x_28); lean_dec(x_1); -x_2328 = l_Lean_Syntax_inhabited; -x_2329 = lean_unsigned_to_nat(2u); -x_2330 = lean_array_get(x_2328, x_4, x_2329); -x_2331 = lean_unsigned_to_nat(4u); -x_2332 = lean_array_get(x_2328, x_4, x_2331); -x_2333 = lean_unsigned_to_nat(6u); -x_2334 = lean_array_get(x_2328, x_4, x_2333); +x_2342 = l_Lean_Syntax_inhabited; +x_2343 = lean_unsigned_to_nat(0u); +x_2344 = lean_array_get(x_2342, x_4, x_2343); +x_2345 = lean_unsigned_to_nat(2u); +x_2346 = lean_array_get(x_2342, x_4, x_2345); lean_dec(x_4); -x_2335 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed), 7, 4); -lean_closure_set(x_2335, 0, x_27); -lean_closure_set(x_2335, 1, x_2330); -lean_closure_set(x_2335, 2, x_2332); -lean_closure_set(x_2335, 3, x_2334); -x_2336 = l_Lean_Unhygienic_MonadQuotation___closed__4; -x_2337 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); -lean_closure_set(x_2337, 0, x_2336); -lean_closure_set(x_2337, 1, x_2335); -x_2338 = l_Lean_Unhygienic_run___rarg(x_2337); -x_1 = x_2338; +x_2347 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___boxed), 6, 3); +lean_closure_set(x_2347, 0, x_27); +lean_closure_set(x_2347, 1, x_2344); +lean_closure_set(x_2347, 2, x_2346); +x_2348 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2349 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_2349, 0, x_2348); +lean_closure_set(x_2349, 1, x_2347); +x_2350 = l_Lean_Unhygienic_run___rarg(x_2349); +x_1 = x_2350; goto _start; } } else { -lean_object* x_2340; lean_object* x_2341; lean_object* x_2342; lean_object* x_2343; -lean_dec(x_2217); -lean_dec(x_2213); -lean_dec(x_2210); +lean_object* x_2352; lean_object* x_2353; lean_object* x_2354; lean_object* x_2355; lean_object* x_2356; lean_object* x_2357; lean_object* x_2358; lean_object* x_2359; lean_object* x_2360; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); lean_dec(x_28); lean_dec(x_1); -x_2340 = l_Lean_Syntax_inhabited; -x_2341 = lean_unsigned_to_nat(0u); -x_2342 = lean_array_get(x_2340, x_4, x_2341); -lean_inc(x_2); -x_2343 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2342, x_2, x_3); -if (lean_obj_tag(x_2343) == 0) -{ -lean_object* x_2344; lean_object* x_2345; lean_object* x_2346; lean_object* x_2347; lean_object* x_2348; lean_object* x_2349; -x_2344 = lean_ctor_get(x_2343, 0); -lean_inc(x_2344); -x_2345 = lean_ctor_get(x_2343, 1); -lean_inc(x_2345); -lean_dec(x_2343); -x_2346 = lean_unsigned_to_nat(1u); -x_2347 = lean_array_get(x_2340, x_4, x_2346); +x_2352 = l_Lean_Syntax_inhabited; +x_2353 = lean_unsigned_to_nat(0u); +x_2354 = lean_array_get(x_2352, x_4, x_2353); +x_2355 = lean_unsigned_to_nat(2u); +x_2356 = lean_array_get(x_2352, x_4, x_2355); lean_dec(x_4); -x_2348 = l_Lean_Syntax_getArgs(x_2347); -lean_dec(x_2347); -x_2349 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__1(x_2341, x_2348, x_2, x_2345); -if (lean_obj_tag(x_2349) == 0) -{ -lean_object* x_2350; lean_object* x_2351; lean_object* x_2352; lean_object* x_2353; lean_object* x_2354; -x_2350 = lean_ctor_get(x_2349, 0); -lean_inc(x_2350); -x_2351 = lean_ctor_get(x_2349, 1); -lean_inc(x_2351); -if (lean_is_exclusive(x_2349)) { - lean_ctor_release(x_2349, 0); - lean_ctor_release(x_2349, 1); - x_2352 = x_2349; -} else { - lean_dec_ref(x_2349); - x_2352 = lean_box(0); -} -x_2353 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2350, x_2350, x_2341, x_2344); -lean_dec(x_2350); -if (lean_is_scalar(x_2352)) { - x_2354 = lean_alloc_ctor(0, 2, 0); -} else { - x_2354 = x_2352; -} -lean_ctor_set(x_2354, 0, x_2353); -lean_ctor_set(x_2354, 1, x_2351); -return x_2354; -} -else -{ -lean_object* x_2355; lean_object* x_2356; lean_object* x_2357; lean_object* x_2358; -lean_dec(x_2344); -x_2355 = lean_ctor_get(x_2349, 0); -lean_inc(x_2355); -x_2356 = lean_ctor_get(x_2349, 1); -lean_inc(x_2356); -if (lean_is_exclusive(x_2349)) { - lean_ctor_release(x_2349, 0); - lean_ctor_release(x_2349, 1); - x_2357 = x_2349; -} else { - lean_dec_ref(x_2349); - x_2357 = lean_box(0); -} -if (lean_is_scalar(x_2357)) { - x_2358 = lean_alloc_ctor(1, 2, 0); -} else { - x_2358 = x_2357; -} -lean_ctor_set(x_2358, 0, x_2355); -lean_ctor_set(x_2358, 1, x_2356); -return x_2358; +x_2357 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___boxed), 6, 3); +lean_closure_set(x_2357, 0, x_27); +lean_closure_set(x_2357, 1, x_2354); +lean_closure_set(x_2357, 2, x_2356); +x_2358 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2359 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_2359, 0, x_2358); +lean_closure_set(x_2359, 1, x_2357); +x_2360 = l_Lean_Unhygienic_run___rarg(x_2359); +x_1 = x_2360; +goto _start; } } else { -lean_object* x_2359; lean_object* x_2360; lean_object* x_2361; lean_object* x_2362; -lean_dec(x_4); -lean_dec(x_2); -x_2359 = lean_ctor_get(x_2343, 0); -lean_inc(x_2359); -x_2360 = lean_ctor_get(x_2343, 1); -lean_inc(x_2360); -if (lean_is_exclusive(x_2343)) { - lean_ctor_release(x_2343, 0); - lean_ctor_release(x_2343, 1); - x_2361 = x_2343; -} else { - lean_dec_ref(x_2343); - x_2361 = lean_box(0); -} -if (lean_is_scalar(x_2361)) { - x_2362 = lean_alloc_ctor(1, 2, 0); -} else { - x_2362 = x_2361; -} -lean_ctor_set(x_2362, 0, x_2359); -lean_ctor_set(x_2362, 1, x_2360); -return x_2362; -} -} -} -else -{ -lean_object* x_2363; lean_object* x_2364; lean_object* x_2365; lean_object* x_2366; lean_object* x_2367; uint8_t x_2368; lean_object* x_2369; lean_object* x_2370; lean_object* x_2371; lean_object* x_2372; lean_object* x_2373; -lean_dec(x_2217); -lean_dec(x_2213); -lean_dec(x_2210); +lean_object* x_2362; lean_object* x_2363; lean_object* x_2364; lean_object* x_2365; lean_object* x_2366; lean_object* x_2367; lean_object* x_2368; lean_object* x_2369; lean_object* x_2370; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); lean_dec(x_28); lean_dec(x_1); -x_2363 = l_Lean_Syntax_inhabited; -x_2364 = lean_unsigned_to_nat(1u); -x_2365 = lean_array_get(x_2363, x_4, x_2364); -x_2366 = lean_unsigned_to_nat(0u); -x_2367 = l_Lean_Syntax_getArg(x_2365, x_2366); -x_2368 = l_Lean_Syntax_isIdent(x_2367); -x_2369 = lean_unsigned_to_nat(4u); -x_2370 = l_Lean_Syntax_getArg(x_2365, x_2369); -lean_dec(x_2365); -x_2371 = lean_unsigned_to_nat(3u); -x_2372 = lean_array_get(x_2363, x_4, x_2371); +x_2362 = l_Lean_Syntax_inhabited; +x_2363 = lean_unsigned_to_nat(0u); +x_2364 = lean_array_get(x_2362, x_4, x_2363); +x_2365 = lean_unsigned_to_nat(2u); +x_2366 = lean_array_get(x_2362, x_4, x_2365); lean_dec(x_4); -if (x_2368 == 0) -{ -lean_object* x_2420; -x_2420 = l_Lean_Syntax_getIdAt(x_2367, x_2366); -lean_dec(x_2367); -x_2373 = x_2420; -goto block_2419; +x_2367 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed), 6, 3); +lean_closure_set(x_2367, 0, x_27); +lean_closure_set(x_2367, 1, x_2364); +lean_closure_set(x_2367, 2, x_2366); +x_2368 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2369 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_2369, 0, x_2368); +lean_closure_set(x_2369, 1, x_2367); +x_2370 = l_Lean_Unhygienic_run___rarg(x_2369); +x_1 = x_2370; +goto _start; +} } else { -lean_object* x_2421; -x_2421 = l_Lean_Syntax_getId(x_2367); -lean_dec(x_2367); -x_2373 = x_2421; -goto block_2419; -} -block_2419: -{ -lean_object* x_2374; -lean_inc(x_2); -x_2374 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2370, x_2, x_3); -if (lean_obj_tag(x_2374) == 0) -{ -lean_object* x_2375; lean_object* x_2376; lean_object* x_2377; lean_object* x_2378; lean_object* x_2379; lean_object* x_2380; lean_object* x_2381; lean_object* x_2382; lean_object* x_2383; lean_object* x_2384; lean_object* x_2385; lean_object* x_2386; lean_object* x_2387; lean_object* x_2388; lean_object* x_2389; lean_object* x_2390; lean_object* x_2391; uint8_t x_2392; uint8_t x_2393; lean_object* x_2394; lean_object* x_2395; lean_object* x_2396; lean_object* x_2397; lean_object* x_2398; lean_object* x_2399; lean_object* x_2400; lean_object* x_2401; lean_object* x_2402; -x_2375 = lean_ctor_get(x_2374, 0); -lean_inc(x_2375); -x_2376 = lean_ctor_get(x_2374, 1); -lean_inc(x_2376); +lean_object* x_2372; lean_object* x_2373; lean_object* x_2374; lean_object* x_2375; lean_object* x_2376; lean_object* x_2377; uint8_t x_2378; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); +lean_dec(x_28); +lean_dec(x_1); +x_2372 = l_Lean_Syntax_inhabited; +x_2373 = lean_unsigned_to_nat(1u); +x_2374 = lean_array_get(x_2372, x_4, x_2373); +lean_dec(x_4); +x_2375 = l_Lean_Syntax_getArgs(x_2374); lean_dec(x_2374); -x_2377 = l_Lean_Elab_Term_getLCtx(x_2, x_2376); -x_2378 = lean_ctor_get(x_2377, 0); -lean_inc(x_2378); -x_2379 = lean_ctor_get(x_2377, 1); -lean_inc(x_2379); -lean_dec(x_2377); -x_2380 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -lean_inc_n(x_2373, 2); -x_2381 = lean_local_ctx_mk_let_decl(x_2378, x_2373, x_2373, x_2380, x_2375); -x_2382 = lean_ctor_get(x_2, 0); -lean_inc(x_2382); -x_2383 = lean_ctor_get(x_2, 1); -lean_inc(x_2383); -x_2384 = lean_ctor_get(x_2, 2); -lean_inc(x_2384); -x_2385 = lean_ctor_get(x_2, 3); -lean_inc(x_2385); -x_2386 = lean_ctor_get(x_2, 4); -lean_inc(x_2386); -x_2387 = lean_ctor_get(x_2, 5); -lean_inc(x_2387); -x_2388 = lean_ctor_get(x_2, 6); -lean_inc(x_2388); -x_2389 = lean_ctor_get(x_2, 7); -lean_inc(x_2389); -x_2390 = lean_ctor_get(x_2, 8); -lean_inc(x_2390); -x_2391 = lean_ctor_get(x_2, 9); -lean_inc(x_2391); -x_2392 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2393 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); -if (lean_is_exclusive(x_2)) { - lean_ctor_release(x_2, 0); - lean_ctor_release(x_2, 1); - lean_ctor_release(x_2, 2); - lean_ctor_release(x_2, 3); - lean_ctor_release(x_2, 4); - lean_ctor_release(x_2, 5); - lean_ctor_release(x_2, 6); - lean_ctor_release(x_2, 7); - lean_ctor_release(x_2, 8); - lean_ctor_release(x_2, 9); - x_2394 = x_2; -} else { - lean_dec_ref(x_2); - x_2394 = lean_box(0); -} -x_2395 = lean_ctor_get(x_2382, 0); -lean_inc(x_2395); -x_2396 = lean_ctor_get(x_2382, 2); -lean_inc(x_2396); -x_2397 = lean_ctor_get(x_2382, 3); -lean_inc(x_2397); -x_2398 = lean_ctor_get(x_2382, 4); -lean_inc(x_2398); -if (lean_is_exclusive(x_2382)) { - lean_ctor_release(x_2382, 0); - lean_ctor_release(x_2382, 1); - lean_ctor_release(x_2382, 2); - lean_ctor_release(x_2382, 3); - lean_ctor_release(x_2382, 4); - x_2399 = x_2382; -} else { - lean_dec_ref(x_2382); - x_2399 = lean_box(0); -} -lean_inc(x_2381); -if (lean_is_scalar(x_2399)) { - x_2400 = lean_alloc_ctor(0, 5, 0); -} else { - x_2400 = x_2399; -} -lean_ctor_set(x_2400, 0, x_2395); -lean_ctor_set(x_2400, 1, x_2381); -lean_ctor_set(x_2400, 2, x_2396); -lean_ctor_set(x_2400, 3, x_2397); -lean_ctor_set(x_2400, 4, x_2398); -if (lean_is_scalar(x_2394)) { - x_2401 = lean_alloc_ctor(0, 10, 2); -} else { - x_2401 = x_2394; -} -lean_ctor_set(x_2401, 0, x_2400); -lean_ctor_set(x_2401, 1, x_2383); -lean_ctor_set(x_2401, 2, x_2384); -lean_ctor_set(x_2401, 3, x_2385); -lean_ctor_set(x_2401, 4, x_2386); -lean_ctor_set(x_2401, 5, x_2387); -lean_ctor_set(x_2401, 6, x_2388); -lean_ctor_set(x_2401, 7, x_2389); -lean_ctor_set(x_2401, 8, x_2390); -lean_ctor_set(x_2401, 9, x_2391); -lean_ctor_set_uint8(x_2401, sizeof(void*)*10, x_2392); -lean_ctor_set_uint8(x_2401, sizeof(void*)*10 + 1, x_2393); -x_2402 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2372, x_2401, x_2379); -if (lean_obj_tag(x_2402) == 0) +x_2376 = lean_array_get_size(x_2375); +x_2377 = lean_unsigned_to_nat(0u); +x_2378 = lean_nat_dec_eq(x_2376, x_2377); +lean_dec(x_2376); +if (x_2378 == 0) { -lean_object* x_2403; lean_object* x_2404; lean_object* x_2405; lean_object* x_2406; lean_object* x_2407; lean_object* x_2408; lean_object* x_2409; lean_object* x_2410; -x_2403 = lean_ctor_get(x_2402, 0); -lean_inc(x_2403); -x_2404 = lean_ctor_get(x_2402, 1); -lean_inc(x_2404); -if (lean_is_exclusive(x_2402)) { - lean_ctor_release(x_2402, 0); - lean_ctor_release(x_2402, 1); - x_2405 = x_2402; -} else { - lean_dec_ref(x_2402); - x_2405 = lean_box(0); -} -x_2406 = l_Lean_mkFVar(x_2373); -x_2407 = l_Lean_mkOptionalNode___closed__2; -x_2408 = lean_array_push(x_2407, x_2406); -x_2409 = l_Lean_LocalContext_mkLambda(x_2381, x_2408, x_2403); -lean_dec(x_2403); -lean_dec(x_2408); -if (lean_is_scalar(x_2405)) { - x_2410 = lean_alloc_ctor(0, 2, 0); -} else { - x_2410 = x_2405; -} -lean_ctor_set(x_2410, 0, x_2409); -lean_ctor_set(x_2410, 1, x_2404); -return x_2410; +lean_object* x_2379; +x_2379 = lean_array_get(x_2372, x_2375, x_2377); +lean_dec(x_2375); +x_1 = x_2379; +goto _start; } else { -lean_object* x_2411; lean_object* x_2412; lean_object* x_2413; lean_object* x_2414; -lean_dec(x_2381); -lean_dec(x_2373); -x_2411 = lean_ctor_get(x_2402, 0); +lean_object* x_2381; lean_object* x_2382; lean_object* x_2383; lean_object* x_2384; lean_object* x_2385; lean_object* x_2386; lean_object* x_2387; +lean_dec(x_2375); +lean_dec(x_2); +x_2381 = l___private_Init_Lean_Compiler_InitAttr_2__isUnitType___closed__1; +x_2382 = lean_name_mk_string(x_27, x_2381); +x_2383 = l_Lean_Elab_Term_elabParen___closed__4; +x_2384 = lean_name_mk_string(x_2382, x_2383); +x_2385 = lean_box(0); +x_2386 = l_Lean_mkConst(x_2384, x_2385); +x_2387 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_2387, 0, x_2386); +lean_ctor_set(x_2387, 1, x_3); +return x_2387; +} +} +} +else +{ +lean_object* x_2388; lean_object* x_2389; lean_object* x_2390; lean_object* x_2391; lean_object* x_2392; lean_object* x_2393; lean_object* x_2394; lean_object* x_2395; lean_object* x_2396; lean_object* x_2397; lean_object* x_2398; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); +lean_dec(x_28); +lean_dec(x_1); +x_2388 = l_Lean_Syntax_inhabited; +x_2389 = lean_unsigned_to_nat(2u); +x_2390 = lean_array_get(x_2388, x_4, x_2389); +x_2391 = lean_unsigned_to_nat(4u); +x_2392 = lean_array_get(x_2388, x_4, x_2391); +x_2393 = lean_unsigned_to_nat(6u); +x_2394 = lean_array_get(x_2388, x_4, x_2393); +lean_dec(x_4); +x_2395 = lean_alloc_closure((void*)(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___boxed), 7, 4); +lean_closure_set(x_2395, 0, x_27); +lean_closure_set(x_2395, 1, x_2390); +lean_closure_set(x_2395, 2, x_2392); +lean_closure_set(x_2395, 3, x_2394); +x_2396 = l_Lean_Unhygienic_MonadQuotation___closed__4; +x_2397 = lean_alloc_closure((void*)(l_ReaderT_bind___at___private_Init_Lean_Elab_Quotation_8__explodeHeadPat___spec__1___rarg), 4, 2); +lean_closure_set(x_2397, 0, x_2396); +lean_closure_set(x_2397, 1, x_2395); +x_2398 = l_Lean_Unhygienic_run___rarg(x_2397); +x_1 = x_2398; +goto _start; +} +} +else +{ +lean_object* x_2400; lean_object* x_2401; lean_object* x_2402; lean_object* x_2403; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); +lean_dec(x_28); +lean_dec(x_1); +x_2400 = l_Lean_Syntax_inhabited; +x_2401 = lean_unsigned_to_nat(0u); +x_2402 = lean_array_get(x_2400, x_4, x_2401); +lean_inc(x_2); +x_2403 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2402, x_2, x_3); +if (lean_obj_tag(x_2403) == 0) +{ +lean_object* x_2404; lean_object* x_2405; lean_object* x_2406; lean_object* x_2407; lean_object* x_2408; lean_object* x_2409; +x_2404 = lean_ctor_get(x_2403, 0); +lean_inc(x_2404); +x_2405 = lean_ctor_get(x_2403, 1); +lean_inc(x_2405); +lean_dec(x_2403); +x_2406 = lean_unsigned_to_nat(1u); +x_2407 = lean_array_get(x_2400, x_4, x_2406); +lean_dec(x_4); +x_2408 = l_Lean_Syntax_getArgs(x_2407); +lean_dec(x_2407); +x_2409 = l_Array_umapMAux___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__1(x_2401, x_2408, x_2, x_2405); +if (lean_obj_tag(x_2409) == 0) +{ +lean_object* x_2410; lean_object* x_2411; lean_object* x_2412; lean_object* x_2413; lean_object* x_2414; +x_2410 = lean_ctor_get(x_2409, 0); +lean_inc(x_2410); +x_2411 = lean_ctor_get(x_2409, 1); lean_inc(x_2411); -x_2412 = lean_ctor_get(x_2402, 1); -lean_inc(x_2412); -if (lean_is_exclusive(x_2402)) { - lean_ctor_release(x_2402, 0); - lean_ctor_release(x_2402, 1); - x_2413 = x_2402; +if (lean_is_exclusive(x_2409)) { + lean_ctor_release(x_2409, 0); + lean_ctor_release(x_2409, 1); + x_2412 = x_2409; } else { - lean_dec_ref(x_2402); - x_2413 = lean_box(0); + lean_dec_ref(x_2409); + x_2412 = lean_box(0); } -if (lean_is_scalar(x_2413)) { - x_2414 = lean_alloc_ctor(1, 2, 0); +x_2413 = l_Array_iterateMAux___main___at_Lean_mkAppN___spec__1(x_2410, x_2410, x_2401, x_2404); +lean_dec(x_2410); +if (lean_is_scalar(x_2412)) { + x_2414 = lean_alloc_ctor(0, 2, 0); } else { - x_2414 = x_2413; + x_2414 = x_2412; } -lean_ctor_set(x_2414, 0, x_2411); -lean_ctor_set(x_2414, 1, x_2412); +lean_ctor_set(x_2414, 0, x_2413); +lean_ctor_set(x_2414, 1, x_2411); return x_2414; } -} else { lean_object* x_2415; lean_object* x_2416; lean_object* x_2417; lean_object* x_2418; -lean_dec(x_2373); -lean_dec(x_2372); -lean_dec(x_2); -x_2415 = lean_ctor_get(x_2374, 0); +lean_dec(x_2404); +x_2415 = lean_ctor_get(x_2409, 0); lean_inc(x_2415); -x_2416 = lean_ctor_get(x_2374, 1); +x_2416 = lean_ctor_get(x_2409, 1); lean_inc(x_2416); -if (lean_is_exclusive(x_2374)) { - lean_ctor_release(x_2374, 0); - lean_ctor_release(x_2374, 1); - x_2417 = x_2374; +if (lean_is_exclusive(x_2409)) { + lean_ctor_release(x_2409, 0); + lean_ctor_release(x_2409, 1); + x_2417 = x_2409; } else { - lean_dec_ref(x_2374); + lean_dec_ref(x_2409); x_2417 = lean_box(0); } if (lean_is_scalar(x_2417)) { @@ -23473,130 +23470,114 @@ lean_ctor_set(x_2418, 1, x_2416); return x_2418; } } +else +{ +lean_object* x_2419; lean_object* x_2420; lean_object* x_2421; lean_object* x_2422; +lean_dec(x_4); +lean_dec(x_2); +x_2419 = lean_ctor_get(x_2403, 0); +lean_inc(x_2419); +x_2420 = lean_ctor_get(x_2403, 1); +lean_inc(x_2420); +if (lean_is_exclusive(x_2403)) { + lean_ctor_release(x_2403, 0); + lean_ctor_release(x_2403, 1); + x_2421 = x_2403; +} else { + lean_dec_ref(x_2403); + x_2421 = lean_box(0); +} +if (lean_is_scalar(x_2421)) { + x_2422 = lean_alloc_ctor(1, 2, 0); +} else { + x_2422 = x_2421; +} +lean_ctor_set(x_2422, 0, x_2419); +lean_ctor_set(x_2422, 1, x_2420); +return x_2422; +} } } else { -lean_object* x_2422; lean_object* x_2423; lean_object* x_2424; lean_object* x_2425; lean_object* x_2426; lean_object* x_2427; lean_object* x_2428; lean_object* x_2429; uint8_t x_2430; -lean_dec(x_2217); -lean_dec(x_2213); -lean_dec(x_2210); +lean_object* x_2423; lean_object* x_2424; lean_object* x_2425; lean_object* x_2426; lean_object* x_2427; uint8_t x_2428; lean_object* x_2429; lean_object* x_2430; lean_object* x_2431; lean_object* x_2432; lean_object* x_2433; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); lean_dec(x_28); lean_dec(x_1); -x_2422 = l_Lean_Syntax_inhabited; -x_2423 = lean_unsigned_to_nat(1u); -x_2424 = lean_array_get(x_2422, x_4, x_2423); -x_2425 = l_Lean_Syntax_getArgs(x_2424); -lean_dec(x_2424); -x_2426 = lean_unsigned_to_nat(3u); -x_2427 = lean_array_get(x_2422, x_4, x_2426); +x_2423 = l_Lean_Syntax_inhabited; +x_2424 = lean_unsigned_to_nat(1u); +x_2425 = lean_array_get(x_2423, x_4, x_2424); +x_2426 = lean_unsigned_to_nat(0u); +x_2427 = l_Lean_Syntax_getArg(x_2425, x_2426); +x_2428 = l_Lean_Syntax_isIdent(x_2427); +x_2429 = lean_unsigned_to_nat(4u); +x_2430 = l_Lean_Syntax_getArg(x_2425, x_2429); +lean_dec(x_2425); +x_2431 = lean_unsigned_to_nat(3u); +x_2432 = lean_array_get(x_2423, x_4, x_2431); lean_dec(x_4); -x_2428 = lean_array_get_size(x_2425); -x_2429 = lean_unsigned_to_nat(0u); -x_2430 = lean_nat_dec_eq(x_2428, x_2429); -lean_dec(x_2428); -if (x_2430 == 0) +if (x_2428 == 0) { -lean_object* x_2431; lean_object* x_2432; lean_object* x_2433; lean_object* x_2434; lean_object* x_2435; uint8_t x_2436; -x_2431 = lean_array_get(x_2422, x_2425, x_2429); -x_2432 = lean_name_mk_string(x_27, x_2214); -x_2433 = lean_name_mk_string(x_2432, x_2218); -x_2434 = lean_name_mk_string(x_2433, x_2231); -lean_inc(x_2434); -x_2435 = lean_name_mk_string(x_2434, x_2244); -lean_inc(x_2431); -x_2436 = l_Lean_Syntax_isOfKind(x_2431, x_2435); -lean_dec(x_2435); -if (x_2436 == 0) +lean_object* x_2480; +x_2480 = l_Lean_Syntax_getIdAt(x_2427, x_2426); +lean_dec(x_2427); +x_2433 = x_2480; +goto block_2479; +} +else { -lean_object* x_2437; lean_object* x_2438; uint8_t x_2439; -x_2437 = l_Lean_mkHole___closed__1; -lean_inc(x_2434); -x_2438 = lean_name_mk_string(x_2434, x_2437); -lean_inc(x_2431); -x_2439 = l_Lean_Syntax_isOfKind(x_2431, x_2438); -lean_dec(x_2438); -if (x_2439 == 0) +lean_object* x_2481; +x_2481 = l_Lean_Syntax_getId(x_2427); +lean_dec(x_2427); +x_2433 = x_2481; +goto block_2479; +} +block_2479: { -lean_object* x_2440; lean_object* x_2441; lean_object* x_2442; lean_object* x_2443; lean_object* x_2444; lean_object* x_2445; lean_object* x_2446; -x_2440 = l_Lean_Syntax_getArg(x_2431, x_2423); -lean_dec(x_2431); -x_2441 = l_Lean_Syntax_getArg(x_2440, x_2429); -x_2442 = l_Lean_Syntax_getIdAt(x_2441, x_2429); -lean_dec(x_2441); -x_2443 = l_Lean_Syntax_getArg(x_2440, x_2423); -lean_dec(x_2440); -x_2444 = l_Lean_Syntax_getArg(x_2443, x_2429); -lean_dec(x_2443); -x_2445 = l_Lean_Syntax_getArg(x_2444, x_2423); -lean_dec(x_2444); +lean_object* x_2434; lean_inc(x_2); -x_2446 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2445, x_2, x_3); -if (lean_obj_tag(x_2446) == 0) +x_2434 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2430, x_2, x_3); +if (lean_obj_tag(x_2434) == 0) { -lean_object* x_2447; lean_object* x_2448; lean_object* x_2449; lean_object* x_2450; lean_object* x_2451; uint8_t x_2452; lean_object* x_2453; lean_object* x_2454; lean_object* x_2455; lean_object* x_2456; lean_object* x_2457; lean_object* x_2458; lean_object* x_2459; lean_object* x_2460; lean_object* x_2461; lean_object* x_2462; lean_object* x_2463; lean_object* x_2464; lean_object* x_2465; lean_object* x_2466; lean_object* x_2467; lean_object* x_2468; lean_object* x_2469; lean_object* x_2470; lean_object* x_2471; lean_object* x_2472; lean_object* x_2473; lean_object* x_2474; lean_object* x_2475; lean_object* x_2476; lean_object* x_2477; lean_object* x_2478; lean_object* x_2479; lean_object* x_2480; uint8_t x_2481; uint8_t x_2482; lean_object* x_2483; lean_object* x_2484; lean_object* x_2485; lean_object* x_2486; lean_object* x_2487; lean_object* x_2488; lean_object* x_2489; lean_object* x_2490; lean_object* x_2491; -x_2447 = lean_ctor_get(x_2446, 0); +lean_object* x_2435; lean_object* x_2436; lean_object* x_2437; lean_object* x_2438; lean_object* x_2439; lean_object* x_2440; lean_object* x_2441; lean_object* x_2442; lean_object* x_2443; lean_object* x_2444; lean_object* x_2445; lean_object* x_2446; lean_object* x_2447; lean_object* x_2448; lean_object* x_2449; lean_object* x_2450; lean_object* x_2451; uint8_t x_2452; uint8_t x_2453; lean_object* x_2454; lean_object* x_2455; lean_object* x_2456; lean_object* x_2457; lean_object* x_2458; lean_object* x_2459; lean_object* x_2460; lean_object* x_2461; lean_object* x_2462; +x_2435 = lean_ctor_get(x_2434, 0); +lean_inc(x_2435); +x_2436 = lean_ctor_get(x_2434, 1); +lean_inc(x_2436); +lean_dec(x_2434); +x_2437 = l_Lean_Elab_Term_getLCtx(x_2, x_2436); +x_2438 = lean_ctor_get(x_2437, 0); +lean_inc(x_2438); +x_2439 = lean_ctor_get(x_2437, 1); +lean_inc(x_2439); +lean_dec(x_2437); +x_2440 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +lean_inc_n(x_2433, 2); +x_2441 = lean_local_ctx_mk_let_decl(x_2438, x_2433, x_2433, x_2440, x_2435); +x_2442 = lean_ctor_get(x_2, 0); +lean_inc(x_2442); +x_2443 = lean_ctor_get(x_2, 1); +lean_inc(x_2443); +x_2444 = lean_ctor_get(x_2, 2); +lean_inc(x_2444); +x_2445 = lean_ctor_get(x_2, 3); +lean_inc(x_2445); +x_2446 = lean_ctor_get(x_2, 4); +lean_inc(x_2446); +x_2447 = lean_ctor_get(x_2, 5); lean_inc(x_2447); -x_2448 = lean_ctor_get(x_2446, 1); +x_2448 = lean_ctor_get(x_2, 6); lean_inc(x_2448); -lean_dec(x_2446); -x_2449 = l_Lean_Elab_Term_getLCtx(x_2, x_2448); -x_2450 = lean_ctor_get(x_2449, 0); +x_2449 = lean_ctor_get(x_2, 7); +lean_inc(x_2449); +x_2450 = lean_ctor_get(x_2, 8); lean_inc(x_2450); -x_2451 = lean_ctor_get(x_2449, 1); +x_2451 = lean_ctor_get(x_2, 9); lean_inc(x_2451); -lean_dec(x_2449); -x_2452 = 0; -lean_inc_n(x_2442, 2); -x_2453 = lean_local_ctx_mk_local_decl(x_2450, x_2442, x_2442, x_2447, x_2452); -x_2454 = l_Array_eraseIdx___rarg(x_2425, x_2429); -x_2455 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2451); -x_2456 = lean_ctor_get(x_2455, 1); -lean_inc(x_2456); -lean_dec(x_2455); -x_2457 = l_Lean_Elab_Term_getMainModule___rarg(x_2456); -x_2458 = lean_ctor_get(x_2457, 1); -lean_inc(x_2458); -lean_dec(x_2457); -x_2459 = lean_name_mk_string(x_2434, x_2246); -x_2460 = l_Lean_nullKind___closed__1; -x_2461 = lean_name_mk_string(x_27, x_2460); -x_2462 = l_Array_empty___closed__1; -x_2463 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2454, x_2454, x_2429, x_2462); -lean_dec(x_2454); -x_2464 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2464, 0, x_2461); -lean_ctor_set(x_2464, 1, x_2463); -x_2465 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2466 = lean_array_push(x_2465, x_2464); -x_2467 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_2468 = lean_array_push(x_2466, x_2467); -x_2469 = lean_array_push(x_2468, x_2427); -x_2470 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2470, 0, x_2459); -lean_ctor_set(x_2470, 1, x_2469); -x_2471 = lean_ctor_get(x_2, 0); -lean_inc(x_2471); -x_2472 = lean_ctor_get(x_2, 1); -lean_inc(x_2472); -x_2473 = lean_ctor_get(x_2, 2); -lean_inc(x_2473); -x_2474 = lean_ctor_get(x_2, 3); -lean_inc(x_2474); -x_2475 = lean_ctor_get(x_2, 4); -lean_inc(x_2475); -x_2476 = lean_ctor_get(x_2, 5); -lean_inc(x_2476); -x_2477 = lean_ctor_get(x_2, 6); -lean_inc(x_2477); -x_2478 = lean_ctor_get(x_2, 7); -lean_inc(x_2478); -x_2479 = lean_ctor_get(x_2, 8); -lean_inc(x_2479); -x_2480 = lean_ctor_get(x_2, 9); -lean_inc(x_2480); -x_2481 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2482 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_2452 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_2453 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -23608,210 +23589,268 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); - x_2483 = x_2; + x_2454 = x_2; } else { lean_dec_ref(x_2); - x_2483 = lean_box(0); + x_2454 = lean_box(0); } -x_2484 = lean_ctor_get(x_2471, 0); -lean_inc(x_2484); -x_2485 = lean_ctor_get(x_2471, 2); -lean_inc(x_2485); -x_2486 = lean_ctor_get(x_2471, 3); -lean_inc(x_2486); -x_2487 = lean_ctor_get(x_2471, 4); -lean_inc(x_2487); -if (lean_is_exclusive(x_2471)) { - lean_ctor_release(x_2471, 0); - lean_ctor_release(x_2471, 1); - lean_ctor_release(x_2471, 2); - lean_ctor_release(x_2471, 3); - lean_ctor_release(x_2471, 4); - x_2488 = x_2471; +x_2455 = lean_ctor_get(x_2442, 0); +lean_inc(x_2455); +x_2456 = lean_ctor_get(x_2442, 2); +lean_inc(x_2456); +x_2457 = lean_ctor_get(x_2442, 3); +lean_inc(x_2457); +x_2458 = lean_ctor_get(x_2442, 4); +lean_inc(x_2458); +if (lean_is_exclusive(x_2442)) { + lean_ctor_release(x_2442, 0); + lean_ctor_release(x_2442, 1); + lean_ctor_release(x_2442, 2); + lean_ctor_release(x_2442, 3); + lean_ctor_release(x_2442, 4); + x_2459 = x_2442; } else { - lean_dec_ref(x_2471); - x_2488 = lean_box(0); + lean_dec_ref(x_2442); + x_2459 = lean_box(0); } -lean_inc(x_2453); -if (lean_is_scalar(x_2488)) { - x_2489 = lean_alloc_ctor(0, 5, 0); +lean_inc(x_2441); +if (lean_is_scalar(x_2459)) { + x_2460 = lean_alloc_ctor(0, 5, 0); } else { - x_2489 = x_2488; + x_2460 = x_2459; } -lean_ctor_set(x_2489, 0, x_2484); -lean_ctor_set(x_2489, 1, x_2453); -lean_ctor_set(x_2489, 2, x_2485); -lean_ctor_set(x_2489, 3, x_2486); -lean_ctor_set(x_2489, 4, x_2487); -if (lean_is_scalar(x_2483)) { - x_2490 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_2460, 0, x_2455); +lean_ctor_set(x_2460, 1, x_2441); +lean_ctor_set(x_2460, 2, x_2456); +lean_ctor_set(x_2460, 3, x_2457); +lean_ctor_set(x_2460, 4, x_2458); +if (lean_is_scalar(x_2454)) { + x_2461 = lean_alloc_ctor(0, 10, 2); } else { - x_2490 = x_2483; + x_2461 = x_2454; } -lean_ctor_set(x_2490, 0, x_2489); -lean_ctor_set(x_2490, 1, x_2472); -lean_ctor_set(x_2490, 2, x_2473); -lean_ctor_set(x_2490, 3, x_2474); -lean_ctor_set(x_2490, 4, x_2475); -lean_ctor_set(x_2490, 5, x_2476); -lean_ctor_set(x_2490, 6, x_2477); -lean_ctor_set(x_2490, 7, x_2478); -lean_ctor_set(x_2490, 8, x_2479); -lean_ctor_set(x_2490, 9, x_2480); -lean_ctor_set_uint8(x_2490, sizeof(void*)*10, x_2481); -lean_ctor_set_uint8(x_2490, sizeof(void*)*10 + 1, x_2482); -x_2491 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2470, x_2490, x_2458); -if (lean_obj_tag(x_2491) == 0) +lean_ctor_set(x_2461, 0, x_2460); +lean_ctor_set(x_2461, 1, x_2443); +lean_ctor_set(x_2461, 2, x_2444); +lean_ctor_set(x_2461, 3, x_2445); +lean_ctor_set(x_2461, 4, x_2446); +lean_ctor_set(x_2461, 5, x_2447); +lean_ctor_set(x_2461, 6, x_2448); +lean_ctor_set(x_2461, 7, x_2449); +lean_ctor_set(x_2461, 8, x_2450); +lean_ctor_set(x_2461, 9, x_2451); +lean_ctor_set_uint8(x_2461, sizeof(void*)*10, x_2452); +lean_ctor_set_uint8(x_2461, sizeof(void*)*10 + 1, x_2453); +x_2462 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2432, x_2461, x_2439); +if (lean_obj_tag(x_2462) == 0) { -lean_object* x_2492; lean_object* x_2493; lean_object* x_2494; lean_object* x_2495; lean_object* x_2496; lean_object* x_2497; lean_object* x_2498; lean_object* x_2499; -x_2492 = lean_ctor_get(x_2491, 0); -lean_inc(x_2492); -x_2493 = lean_ctor_get(x_2491, 1); -lean_inc(x_2493); -if (lean_is_exclusive(x_2491)) { - lean_ctor_release(x_2491, 0); - lean_ctor_release(x_2491, 1); - x_2494 = x_2491; +lean_object* x_2463; lean_object* x_2464; lean_object* x_2465; lean_object* x_2466; lean_object* x_2467; lean_object* x_2468; lean_object* x_2469; lean_object* x_2470; +x_2463 = lean_ctor_get(x_2462, 0); +lean_inc(x_2463); +x_2464 = lean_ctor_get(x_2462, 1); +lean_inc(x_2464); +if (lean_is_exclusive(x_2462)) { + lean_ctor_release(x_2462, 0); + lean_ctor_release(x_2462, 1); + x_2465 = x_2462; } else { - lean_dec_ref(x_2491); - x_2494 = lean_box(0); + lean_dec_ref(x_2462); + x_2465 = lean_box(0); } -x_2495 = l_Lean_mkFVar(x_2442); -x_2496 = l_Lean_mkOptionalNode___closed__2; -x_2497 = lean_array_push(x_2496, x_2495); -x_2498 = l_Lean_LocalContext_mkLambda(x_2453, x_2497, x_2492); -lean_dec(x_2492); -lean_dec(x_2497); -if (lean_is_scalar(x_2494)) { - x_2499 = lean_alloc_ctor(0, 2, 0); +x_2466 = l_Lean_mkFVar(x_2433); +x_2467 = l_Lean_mkOptionalNode___closed__2; +x_2468 = lean_array_push(x_2467, x_2466); +x_2469 = l_Lean_LocalContext_mkLambda(x_2441, x_2468, x_2463); +lean_dec(x_2463); +lean_dec(x_2468); +if (lean_is_scalar(x_2465)) { + x_2470 = lean_alloc_ctor(0, 2, 0); } else { - x_2499 = x_2494; + x_2470 = x_2465; } -lean_ctor_set(x_2499, 0, x_2498); -lean_ctor_set(x_2499, 1, x_2493); -return x_2499; +lean_ctor_set(x_2470, 0, x_2469); +lean_ctor_set(x_2470, 1, x_2464); +return x_2470; } else { -lean_object* x_2500; lean_object* x_2501; lean_object* x_2502; lean_object* x_2503; -lean_dec(x_2453); -lean_dec(x_2442); -x_2500 = lean_ctor_get(x_2491, 0); -lean_inc(x_2500); -x_2501 = lean_ctor_get(x_2491, 1); -lean_inc(x_2501); -if (lean_is_exclusive(x_2491)) { - lean_ctor_release(x_2491, 0); - lean_ctor_release(x_2491, 1); - x_2502 = x_2491; +lean_object* x_2471; lean_object* x_2472; lean_object* x_2473; lean_object* x_2474; +lean_dec(x_2441); +lean_dec(x_2433); +x_2471 = lean_ctor_get(x_2462, 0); +lean_inc(x_2471); +x_2472 = lean_ctor_get(x_2462, 1); +lean_inc(x_2472); +if (lean_is_exclusive(x_2462)) { + lean_ctor_release(x_2462, 0); + lean_ctor_release(x_2462, 1); + x_2473 = x_2462; } else { - lean_dec_ref(x_2491); - x_2502 = lean_box(0); + lean_dec_ref(x_2462); + x_2473 = lean_box(0); } -if (lean_is_scalar(x_2502)) { - x_2503 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2473)) { + x_2474 = lean_alloc_ctor(1, 2, 0); } else { - x_2503 = x_2502; + x_2474 = x_2473; } -lean_ctor_set(x_2503, 0, x_2500); -lean_ctor_set(x_2503, 1, x_2501); -return x_2503; +lean_ctor_set(x_2474, 0, x_2471); +lean_ctor_set(x_2474, 1, x_2472); +return x_2474; } } else { -lean_object* x_2504; lean_object* x_2505; lean_object* x_2506; lean_object* x_2507; -lean_dec(x_2442); -lean_dec(x_2434); -lean_dec(x_2427); -lean_dec(x_2425); +lean_object* x_2475; lean_object* x_2476; lean_object* x_2477; lean_object* x_2478; +lean_dec(x_2433); +lean_dec(x_2432); lean_dec(x_2); -x_2504 = lean_ctor_get(x_2446, 0); -lean_inc(x_2504); -x_2505 = lean_ctor_get(x_2446, 1); -lean_inc(x_2505); -if (lean_is_exclusive(x_2446)) { - lean_ctor_release(x_2446, 0); - lean_ctor_release(x_2446, 1); - x_2506 = x_2446; +x_2475 = lean_ctor_get(x_2434, 0); +lean_inc(x_2475); +x_2476 = lean_ctor_get(x_2434, 1); +lean_inc(x_2476); +if (lean_is_exclusive(x_2434)) { + lean_ctor_release(x_2434, 0); + lean_ctor_release(x_2434, 1); + x_2477 = x_2434; } else { - lean_dec_ref(x_2446); - x_2506 = lean_box(0); + lean_dec_ref(x_2434); + x_2477 = lean_box(0); } -if (lean_is_scalar(x_2506)) { - x_2507 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2477)) { + x_2478 = lean_alloc_ctor(1, 2, 0); } else { - x_2507 = x_2506; + x_2478 = x_2477; +} +lean_ctor_set(x_2478, 0, x_2475); +lean_ctor_set(x_2478, 1, x_2476); +return x_2478; +} } -lean_ctor_set(x_2507, 0, x_2504); -lean_ctor_set(x_2507, 1, x_2505); -return x_2507; } } else { -lean_object* x_2508; lean_object* x_2509; lean_object* x_2510; lean_object* x_2511; lean_object* x_2512; lean_object* x_2513; uint8_t x_2514; lean_object* x_2515; lean_object* x_2516; lean_object* x_2517; lean_object* x_2518; lean_object* x_2519; lean_object* x_2520; lean_object* x_2521; lean_object* x_2522; lean_object* x_2523; lean_object* x_2524; lean_object* x_2525; lean_object* x_2526; lean_object* x_2527; lean_object* x_2528; lean_object* x_2529; lean_object* x_2530; lean_object* x_2531; lean_object* x_2532; lean_object* x_2533; lean_object* x_2534; lean_object* x_2535; lean_object* x_2536; lean_object* x_2537; lean_object* x_2538; lean_object* x_2539; lean_object* x_2540; lean_object* x_2541; lean_object* x_2542; uint8_t x_2543; uint8_t x_2544; lean_object* x_2545; lean_object* x_2546; lean_object* x_2547; lean_object* x_2548; lean_object* x_2549; lean_object* x_2550; lean_object* x_2551; lean_object* x_2552; lean_object* x_2553; -lean_dec(x_2431); -x_2508 = l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; -x_2509 = lean_name_mk_string(x_27, x_2508); -x_2510 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_2511 = lean_ctor_get(x_2510, 0); +lean_object* x_2482; lean_object* x_2483; lean_object* x_2484; lean_object* x_2485; lean_object* x_2486; lean_object* x_2487; lean_object* x_2488; lean_object* x_2489; uint8_t x_2490; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); +lean_dec(x_28); +lean_dec(x_1); +x_2482 = l_Lean_Syntax_inhabited; +x_2483 = lean_unsigned_to_nat(1u); +x_2484 = lean_array_get(x_2482, x_4, x_2483); +x_2485 = l_Lean_Syntax_getArgs(x_2484); +lean_dec(x_2484); +x_2486 = lean_unsigned_to_nat(3u); +x_2487 = lean_array_get(x_2482, x_4, x_2486); +lean_dec(x_4); +x_2488 = lean_array_get_size(x_2485); +x_2489 = lean_unsigned_to_nat(0u); +x_2490 = lean_nat_dec_eq(x_2488, x_2489); +lean_dec(x_2488); +if (x_2490 == 0) +{ +lean_object* x_2491; lean_object* x_2492; lean_object* x_2493; lean_object* x_2494; lean_object* x_2495; uint8_t x_2496; +x_2491 = lean_array_get(x_2482, x_2485, x_2489); +x_2492 = lean_name_mk_string(x_27, x_2262); +x_2493 = lean_name_mk_string(x_2492, x_2266); +x_2494 = lean_name_mk_string(x_2493, x_2279); +lean_inc(x_2494); +x_2495 = lean_name_mk_string(x_2494, x_2292); +lean_inc(x_2491); +x_2496 = l_Lean_Syntax_isOfKind(x_2491, x_2495); +lean_dec(x_2495); +if (x_2496 == 0) +{ +lean_object* x_2497; lean_object* x_2498; uint8_t x_2499; +x_2497 = l_Lean_mkHole___closed__1; +lean_inc(x_2494); +x_2498 = lean_name_mk_string(x_2494, x_2497); +lean_inc(x_2491); +x_2499 = l_Lean_Syntax_isOfKind(x_2491, x_2498); +lean_dec(x_2498); +if (x_2499 == 0) +{ +lean_object* x_2500; lean_object* x_2501; lean_object* x_2502; lean_object* x_2503; lean_object* x_2504; lean_object* x_2505; lean_object* x_2506; +x_2500 = l_Lean_Syntax_getArg(x_2491, x_2483); +lean_dec(x_2491); +x_2501 = l_Lean_Syntax_getArg(x_2500, x_2489); +x_2502 = l_Lean_Syntax_getIdAt(x_2501, x_2489); +lean_dec(x_2501); +x_2503 = l_Lean_Syntax_getArg(x_2500, x_2483); +lean_dec(x_2500); +x_2504 = l_Lean_Syntax_getArg(x_2503, x_2489); +lean_dec(x_2503); +x_2505 = l_Lean_Syntax_getArg(x_2504, x_2483); +lean_dec(x_2504); +lean_inc(x_2); +x_2506 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2505, x_2, x_3); +if (lean_obj_tag(x_2506) == 0) +{ +lean_object* x_2507; lean_object* x_2508; lean_object* x_2509; lean_object* x_2510; lean_object* x_2511; uint8_t x_2512; lean_object* x_2513; lean_object* x_2514; lean_object* x_2515; lean_object* x_2516; lean_object* x_2517; lean_object* x_2518; lean_object* x_2519; lean_object* x_2520; lean_object* x_2521; lean_object* x_2522; lean_object* x_2523; lean_object* x_2524; lean_object* x_2525; lean_object* x_2526; lean_object* x_2527; lean_object* x_2528; lean_object* x_2529; lean_object* x_2530; lean_object* x_2531; lean_object* x_2532; lean_object* x_2533; lean_object* x_2534; lean_object* x_2535; lean_object* x_2536; lean_object* x_2537; lean_object* x_2538; lean_object* x_2539; lean_object* x_2540; uint8_t x_2541; uint8_t x_2542; lean_object* x_2543; lean_object* x_2544; lean_object* x_2545; lean_object* x_2546; lean_object* x_2547; lean_object* x_2548; lean_object* x_2549; lean_object* x_2550; lean_object* x_2551; +x_2507 = lean_ctor_get(x_2506, 0); +lean_inc(x_2507); +x_2508 = lean_ctor_get(x_2506, 1); +lean_inc(x_2508); +lean_dec(x_2506); +x_2509 = l_Lean_Elab_Term_getLCtx(x_2, x_2508); +x_2510 = lean_ctor_get(x_2509, 0); +lean_inc(x_2510); +x_2511 = lean_ctor_get(x_2509, 1); lean_inc(x_2511); -x_2512 = lean_ctor_get(x_2510, 1); -lean_inc(x_2512); -lean_dec(x_2510); -x_2513 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -x_2514 = 0; -lean_inc_n(x_2509, 2); -x_2515 = lean_local_ctx_mk_local_decl(x_2511, x_2509, x_2509, x_2513, x_2514); -x_2516 = l_Array_eraseIdx___rarg(x_2425, x_2429); -x_2517 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2512); +lean_dec(x_2509); +x_2512 = 0; +lean_inc_n(x_2502, 2); +x_2513 = lean_local_ctx_mk_local_decl(x_2510, x_2502, x_2502, x_2507, x_2512); +x_2514 = l_Array_eraseIdx___rarg(x_2485, x_2489); +x_2515 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2511); +x_2516 = lean_ctor_get(x_2515, 1); +lean_inc(x_2516); +lean_dec(x_2515); +x_2517 = l_Lean_Elab_Term_getMainModule___rarg(x_2516); x_2518 = lean_ctor_get(x_2517, 1); lean_inc(x_2518); lean_dec(x_2517); -x_2519 = l_Lean_Elab_Term_getMainModule___rarg(x_2518); -x_2520 = lean_ctor_get(x_2519, 1); -lean_inc(x_2520); -lean_dec(x_2519); -x_2521 = lean_name_mk_string(x_2434, x_2246); -x_2522 = l_Lean_nullKind___closed__1; -x_2523 = lean_name_mk_string(x_27, x_2522); -x_2524 = l_Array_empty___closed__1; -x_2525 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2516, x_2516, x_2429, x_2524); -lean_dec(x_2516); -x_2526 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2526, 0, x_2523); -lean_ctor_set(x_2526, 1, x_2525); -x_2527 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2528 = lean_array_push(x_2527, x_2526); -x_2529 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_2530 = lean_array_push(x_2528, x_2529); -x_2531 = lean_array_push(x_2530, x_2427); -x_2532 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2532, 0, x_2521); -lean_ctor_set(x_2532, 1, x_2531); -x_2533 = lean_ctor_get(x_2, 0); +x_2519 = lean_name_mk_string(x_2494, x_2294); +x_2520 = l_Lean_nullKind___closed__1; +x_2521 = lean_name_mk_string(x_27, x_2520); +x_2522 = l_Array_empty___closed__1; +x_2523 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2514, x_2514, x_2489, x_2522); +lean_dec(x_2514); +x_2524 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2524, 0, x_2521); +lean_ctor_set(x_2524, 1, x_2523); +x_2525 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2526 = lean_array_push(x_2525, x_2524); +x_2527 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_2528 = lean_array_push(x_2526, x_2527); +x_2529 = lean_array_push(x_2528, x_2487); +x_2530 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2530, 0, x_2519); +lean_ctor_set(x_2530, 1, x_2529); +x_2531 = lean_ctor_get(x_2, 0); +lean_inc(x_2531); +x_2532 = lean_ctor_get(x_2, 1); +lean_inc(x_2532); +x_2533 = lean_ctor_get(x_2, 2); lean_inc(x_2533); -x_2534 = lean_ctor_get(x_2, 1); +x_2534 = lean_ctor_get(x_2, 3); lean_inc(x_2534); -x_2535 = lean_ctor_get(x_2, 2); +x_2535 = lean_ctor_get(x_2, 4); lean_inc(x_2535); -x_2536 = lean_ctor_get(x_2, 3); +x_2536 = lean_ctor_get(x_2, 5); lean_inc(x_2536); -x_2537 = lean_ctor_get(x_2, 4); +x_2537 = lean_ctor_get(x_2, 6); lean_inc(x_2537); -x_2538 = lean_ctor_get(x_2, 5); +x_2538 = lean_ctor_get(x_2, 7); lean_inc(x_2538); -x_2539 = lean_ctor_get(x_2, 6); +x_2539 = lean_ctor_get(x_2, 8); lean_inc(x_2539); -x_2540 = lean_ctor_get(x_2, 7); +x_2540 = lean_ctor_get(x_2, 9); lean_inc(x_2540); -x_2541 = lean_ctor_get(x_2, 8); -lean_inc(x_2541); -x_2542 = lean_ctor_get(x_2, 9); -lean_inc(x_2542); -x_2543 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2544 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_2541 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_2542 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -23823,180 +23862,210 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); - x_2545 = x_2; + x_2543 = x_2; } else { lean_dec_ref(x_2); - x_2545 = lean_box(0); + x_2543 = lean_box(0); } -x_2546 = lean_ctor_get(x_2533, 0); +x_2544 = lean_ctor_get(x_2531, 0); +lean_inc(x_2544); +x_2545 = lean_ctor_get(x_2531, 2); +lean_inc(x_2545); +x_2546 = lean_ctor_get(x_2531, 3); lean_inc(x_2546); -x_2547 = lean_ctor_get(x_2533, 2); +x_2547 = lean_ctor_get(x_2531, 4); lean_inc(x_2547); -x_2548 = lean_ctor_get(x_2533, 3); -lean_inc(x_2548); -x_2549 = lean_ctor_get(x_2533, 4); -lean_inc(x_2549); -if (lean_is_exclusive(x_2533)) { - lean_ctor_release(x_2533, 0); - lean_ctor_release(x_2533, 1); - lean_ctor_release(x_2533, 2); - lean_ctor_release(x_2533, 3); - lean_ctor_release(x_2533, 4); - x_2550 = x_2533; +if (lean_is_exclusive(x_2531)) { + lean_ctor_release(x_2531, 0); + lean_ctor_release(x_2531, 1); + lean_ctor_release(x_2531, 2); + lean_ctor_release(x_2531, 3); + lean_ctor_release(x_2531, 4); + x_2548 = x_2531; } else { - lean_dec_ref(x_2533); - x_2550 = lean_box(0); + lean_dec_ref(x_2531); + x_2548 = lean_box(0); } -lean_inc(x_2515); -if (lean_is_scalar(x_2550)) { - x_2551 = lean_alloc_ctor(0, 5, 0); +lean_inc(x_2513); +if (lean_is_scalar(x_2548)) { + x_2549 = lean_alloc_ctor(0, 5, 0); } else { - x_2551 = x_2550; + x_2549 = x_2548; } -lean_ctor_set(x_2551, 0, x_2546); -lean_ctor_set(x_2551, 1, x_2515); -lean_ctor_set(x_2551, 2, x_2547); -lean_ctor_set(x_2551, 3, x_2548); -lean_ctor_set(x_2551, 4, x_2549); -if (lean_is_scalar(x_2545)) { - x_2552 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_2549, 0, x_2544); +lean_ctor_set(x_2549, 1, x_2513); +lean_ctor_set(x_2549, 2, x_2545); +lean_ctor_set(x_2549, 3, x_2546); +lean_ctor_set(x_2549, 4, x_2547); +if (lean_is_scalar(x_2543)) { + x_2550 = lean_alloc_ctor(0, 10, 2); } else { - x_2552 = x_2545; + x_2550 = x_2543; } -lean_ctor_set(x_2552, 0, x_2551); -lean_ctor_set(x_2552, 1, x_2534); -lean_ctor_set(x_2552, 2, x_2535); -lean_ctor_set(x_2552, 3, x_2536); -lean_ctor_set(x_2552, 4, x_2537); -lean_ctor_set(x_2552, 5, x_2538); -lean_ctor_set(x_2552, 6, x_2539); -lean_ctor_set(x_2552, 7, x_2540); -lean_ctor_set(x_2552, 8, x_2541); -lean_ctor_set(x_2552, 9, x_2542); -lean_ctor_set_uint8(x_2552, sizeof(void*)*10, x_2543); -lean_ctor_set_uint8(x_2552, sizeof(void*)*10 + 1, x_2544); -x_2553 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2532, x_2552, x_2520); -if (lean_obj_tag(x_2553) == 0) +lean_ctor_set(x_2550, 0, x_2549); +lean_ctor_set(x_2550, 1, x_2532); +lean_ctor_set(x_2550, 2, x_2533); +lean_ctor_set(x_2550, 3, x_2534); +lean_ctor_set(x_2550, 4, x_2535); +lean_ctor_set(x_2550, 5, x_2536); +lean_ctor_set(x_2550, 6, x_2537); +lean_ctor_set(x_2550, 7, x_2538); +lean_ctor_set(x_2550, 8, x_2539); +lean_ctor_set(x_2550, 9, x_2540); +lean_ctor_set_uint8(x_2550, sizeof(void*)*10, x_2541); +lean_ctor_set_uint8(x_2550, sizeof(void*)*10 + 1, x_2542); +x_2551 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2530, x_2550, x_2518); +if (lean_obj_tag(x_2551) == 0) { -lean_object* x_2554; lean_object* x_2555; lean_object* x_2556; lean_object* x_2557; lean_object* x_2558; lean_object* x_2559; lean_object* x_2560; lean_object* x_2561; -x_2554 = lean_ctor_get(x_2553, 0); -lean_inc(x_2554); -x_2555 = lean_ctor_get(x_2553, 1); -lean_inc(x_2555); -if (lean_is_exclusive(x_2553)) { - lean_ctor_release(x_2553, 0); - lean_ctor_release(x_2553, 1); - x_2556 = x_2553; +lean_object* x_2552; lean_object* x_2553; lean_object* x_2554; lean_object* x_2555; lean_object* x_2556; lean_object* x_2557; lean_object* x_2558; lean_object* x_2559; +x_2552 = lean_ctor_get(x_2551, 0); +lean_inc(x_2552); +x_2553 = lean_ctor_get(x_2551, 1); +lean_inc(x_2553); +if (lean_is_exclusive(x_2551)) { + lean_ctor_release(x_2551, 0); + lean_ctor_release(x_2551, 1); + x_2554 = x_2551; } else { - lean_dec_ref(x_2553); - x_2556 = lean_box(0); + lean_dec_ref(x_2551); + x_2554 = lean_box(0); } -x_2557 = l_Lean_mkFVar(x_2509); -x_2558 = l_Lean_mkOptionalNode___closed__2; -x_2559 = lean_array_push(x_2558, x_2557); -x_2560 = l_Lean_LocalContext_mkLambda(x_2515, x_2559, x_2554); -lean_dec(x_2554); -lean_dec(x_2559); -if (lean_is_scalar(x_2556)) { - x_2561 = lean_alloc_ctor(0, 2, 0); +x_2555 = l_Lean_mkFVar(x_2502); +x_2556 = l_Lean_mkOptionalNode___closed__2; +x_2557 = lean_array_push(x_2556, x_2555); +x_2558 = l_Lean_LocalContext_mkLambda(x_2513, x_2557, x_2552); +lean_dec(x_2552); +lean_dec(x_2557); +if (lean_is_scalar(x_2554)) { + x_2559 = lean_alloc_ctor(0, 2, 0); } else { - x_2561 = x_2556; + x_2559 = x_2554; } -lean_ctor_set(x_2561, 0, x_2560); -lean_ctor_set(x_2561, 1, x_2555); -return x_2561; +lean_ctor_set(x_2559, 0, x_2558); +lean_ctor_set(x_2559, 1, x_2553); +return x_2559; } else { -lean_object* x_2562; lean_object* x_2563; lean_object* x_2564; lean_object* x_2565; -lean_dec(x_2515); -lean_dec(x_2509); -x_2562 = lean_ctor_get(x_2553, 0); -lean_inc(x_2562); -x_2563 = lean_ctor_get(x_2553, 1); -lean_inc(x_2563); -if (lean_is_exclusive(x_2553)) { - lean_ctor_release(x_2553, 0); - lean_ctor_release(x_2553, 1); - x_2564 = x_2553; +lean_object* x_2560; lean_object* x_2561; lean_object* x_2562; lean_object* x_2563; +lean_dec(x_2513); +lean_dec(x_2502); +x_2560 = lean_ctor_get(x_2551, 0); +lean_inc(x_2560); +x_2561 = lean_ctor_get(x_2551, 1); +lean_inc(x_2561); +if (lean_is_exclusive(x_2551)) { + lean_ctor_release(x_2551, 0); + lean_ctor_release(x_2551, 1); + x_2562 = x_2551; } else { - lean_dec_ref(x_2553); - x_2564 = lean_box(0); + lean_dec_ref(x_2551); + x_2562 = lean_box(0); } -if (lean_is_scalar(x_2564)) { - x_2565 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2562)) { + x_2563 = lean_alloc_ctor(1, 2, 0); } else { - x_2565 = x_2564; -} -lean_ctor_set(x_2565, 0, x_2562); -lean_ctor_set(x_2565, 1, x_2563); -return x_2565; + x_2563 = x_2562; } +lean_ctor_set(x_2563, 0, x_2560); +lean_ctor_set(x_2563, 1, x_2561); +return x_2563; } } else { -lean_object* x_2566; lean_object* x_2567; lean_object* x_2568; lean_object* x_2569; lean_object* x_2570; uint8_t x_2571; lean_object* x_2572; lean_object* x_2573; lean_object* x_2574; lean_object* x_2575; lean_object* x_2576; lean_object* x_2577; lean_object* x_2578; lean_object* x_2579; lean_object* x_2580; lean_object* x_2581; lean_object* x_2582; lean_object* x_2583; lean_object* x_2584; lean_object* x_2585; lean_object* x_2586; lean_object* x_2587; lean_object* x_2588; lean_object* x_2589; lean_object* x_2590; lean_object* x_2591; lean_object* x_2592; lean_object* x_2593; lean_object* x_2594; lean_object* x_2595; lean_object* x_2596; lean_object* x_2597; lean_object* x_2598; lean_object* x_2599; uint8_t x_2600; uint8_t x_2601; lean_object* x_2602; lean_object* x_2603; lean_object* x_2604; lean_object* x_2605; lean_object* x_2606; lean_object* x_2607; lean_object* x_2608; lean_object* x_2609; lean_object* x_2610; -x_2566 = l_Lean_Syntax_getIdAt(x_2431, x_2429); -lean_dec(x_2431); -x_2567 = l_Lean_Elab_Term_getLCtx(x_2, x_3); -x_2568 = lean_ctor_get(x_2567, 0); -lean_inc(x_2568); -x_2569 = lean_ctor_get(x_2567, 1); -lean_inc(x_2569); -lean_dec(x_2567); -x_2570 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; -x_2571 = 0; -lean_inc_n(x_2566, 2); -x_2572 = lean_local_ctx_mk_local_decl(x_2568, x_2566, x_2566, x_2570, x_2571); -x_2573 = l_Array_eraseIdx___rarg(x_2425, x_2429); -x_2574 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2569); -x_2575 = lean_ctor_get(x_2574, 1); -lean_inc(x_2575); -lean_dec(x_2574); -x_2576 = l_Lean_Elab_Term_getMainModule___rarg(x_2575); -x_2577 = lean_ctor_get(x_2576, 1); -lean_inc(x_2577); +lean_object* x_2564; lean_object* x_2565; lean_object* x_2566; lean_object* x_2567; +lean_dec(x_2502); +lean_dec(x_2494); +lean_dec(x_2487); +lean_dec(x_2485); +lean_dec(x_2); +x_2564 = lean_ctor_get(x_2506, 0); +lean_inc(x_2564); +x_2565 = lean_ctor_get(x_2506, 1); +lean_inc(x_2565); +if (lean_is_exclusive(x_2506)) { + lean_ctor_release(x_2506, 0); + lean_ctor_release(x_2506, 1); + x_2566 = x_2506; +} else { + lean_dec_ref(x_2506); + x_2566 = lean_box(0); +} +if (lean_is_scalar(x_2566)) { + x_2567 = lean_alloc_ctor(1, 2, 0); +} else { + x_2567 = x_2566; +} +lean_ctor_set(x_2567, 0, x_2564); +lean_ctor_set(x_2567, 1, x_2565); +return x_2567; +} +} +else +{ +lean_object* x_2568; lean_object* x_2569; lean_object* x_2570; lean_object* x_2571; lean_object* x_2572; lean_object* x_2573; uint8_t x_2574; lean_object* x_2575; lean_object* x_2576; lean_object* x_2577; lean_object* x_2578; lean_object* x_2579; lean_object* x_2580; lean_object* x_2581; lean_object* x_2582; lean_object* x_2583; lean_object* x_2584; lean_object* x_2585; lean_object* x_2586; lean_object* x_2587; lean_object* x_2588; lean_object* x_2589; lean_object* x_2590; lean_object* x_2591; lean_object* x_2592; lean_object* x_2593; lean_object* x_2594; lean_object* x_2595; lean_object* x_2596; lean_object* x_2597; lean_object* x_2598; lean_object* x_2599; lean_object* x_2600; lean_object* x_2601; lean_object* x_2602; uint8_t x_2603; uint8_t x_2604; lean_object* x_2605; lean_object* x_2606; lean_object* x_2607; lean_object* x_2608; lean_object* x_2609; lean_object* x_2610; lean_object* x_2611; lean_object* x_2612; lean_object* x_2613; +lean_dec(x_2491); +x_2568 = l_Lean_Elab_Term_mkFreshAnonymousName___rarg___closed__1; +x_2569 = lean_name_mk_string(x_27, x_2568); +x_2570 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_2571 = lean_ctor_get(x_2570, 0); +lean_inc(x_2571); +x_2572 = lean_ctor_get(x_2570, 1); +lean_inc(x_2572); +lean_dec(x_2570); +x_2573 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +x_2574 = 0; +lean_inc_n(x_2569, 2); +x_2575 = lean_local_ctx_mk_local_decl(x_2571, x_2569, x_2569, x_2573, x_2574); +x_2576 = l_Array_eraseIdx___rarg(x_2485, x_2489); +x_2577 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2572); +x_2578 = lean_ctor_get(x_2577, 1); +lean_inc(x_2578); +lean_dec(x_2577); +x_2579 = l_Lean_Elab_Term_getMainModule___rarg(x_2578); +x_2580 = lean_ctor_get(x_2579, 1); +lean_inc(x_2580); +lean_dec(x_2579); +x_2581 = lean_name_mk_string(x_2494, x_2294); +x_2582 = l_Lean_nullKind___closed__1; +x_2583 = lean_name_mk_string(x_27, x_2582); +x_2584 = l_Array_empty___closed__1; +x_2585 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2576, x_2576, x_2489, x_2584); lean_dec(x_2576); -x_2578 = lean_name_mk_string(x_2434, x_2246); -x_2579 = l_Lean_nullKind___closed__1; -x_2580 = lean_name_mk_string(x_27, x_2579); -x_2581 = l_Array_empty___closed__1; -x_2582 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2573, x_2573, x_2429, x_2581); -lean_dec(x_2573); -x_2583 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2583, 0, x_2580); -lean_ctor_set(x_2583, 1, x_2582); -x_2584 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; -x_2585 = lean_array_push(x_2584, x_2583); -x_2586 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; -x_2587 = lean_array_push(x_2585, x_2586); -x_2588 = lean_array_push(x_2587, x_2427); -x_2589 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_2589, 0, x_2578); -lean_ctor_set(x_2589, 1, x_2588); -x_2590 = lean_ctor_get(x_2, 0); -lean_inc(x_2590); -x_2591 = lean_ctor_get(x_2, 1); -lean_inc(x_2591); -x_2592 = lean_ctor_get(x_2, 2); -lean_inc(x_2592); -x_2593 = lean_ctor_get(x_2, 3); +x_2586 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2586, 0, x_2583); +lean_ctor_set(x_2586, 1, x_2585); +x_2587 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2588 = lean_array_push(x_2587, x_2586); +x_2589 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_2590 = lean_array_push(x_2588, x_2589); +x_2591 = lean_array_push(x_2590, x_2487); +x_2592 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2592, 0, x_2581); +lean_ctor_set(x_2592, 1, x_2591); +x_2593 = lean_ctor_get(x_2, 0); lean_inc(x_2593); -x_2594 = lean_ctor_get(x_2, 4); +x_2594 = lean_ctor_get(x_2, 1); lean_inc(x_2594); -x_2595 = lean_ctor_get(x_2, 5); +x_2595 = lean_ctor_get(x_2, 2); lean_inc(x_2595); -x_2596 = lean_ctor_get(x_2, 6); +x_2596 = lean_ctor_get(x_2, 3); lean_inc(x_2596); -x_2597 = lean_ctor_get(x_2, 7); +x_2597 = lean_ctor_get(x_2, 4); lean_inc(x_2597); -x_2598 = lean_ctor_get(x_2, 8); +x_2598 = lean_ctor_get(x_2, 5); lean_inc(x_2598); -x_2599 = lean_ctor_get(x_2, 9); +x_2599 = lean_ctor_get(x_2, 6); lean_inc(x_2599); -x_2600 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); -x_2601 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +x_2600 = lean_ctor_get(x_2, 7); +lean_inc(x_2600); +x_2601 = lean_ctor_get(x_2, 8); +lean_inc(x_2601); +x_2602 = lean_ctor_get(x_2, 9); +lean_inc(x_2602); +x_2603 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_2604 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 0); lean_ctor_release(x_2, 1); @@ -24008,554 +24077,739 @@ if (lean_is_exclusive(x_2)) { lean_ctor_release(x_2, 7); lean_ctor_release(x_2, 8); lean_ctor_release(x_2, 9); - x_2602 = x_2; + x_2605 = x_2; } else { lean_dec_ref(x_2); - x_2602 = lean_box(0); + x_2605 = lean_box(0); } -x_2603 = lean_ctor_get(x_2590, 0); -lean_inc(x_2603); -x_2604 = lean_ctor_get(x_2590, 2); -lean_inc(x_2604); -x_2605 = lean_ctor_get(x_2590, 3); -lean_inc(x_2605); -x_2606 = lean_ctor_get(x_2590, 4); +x_2606 = lean_ctor_get(x_2593, 0); lean_inc(x_2606); -if (lean_is_exclusive(x_2590)) { - lean_ctor_release(x_2590, 0); - lean_ctor_release(x_2590, 1); - lean_ctor_release(x_2590, 2); - lean_ctor_release(x_2590, 3); - lean_ctor_release(x_2590, 4); - x_2607 = x_2590; +x_2607 = lean_ctor_get(x_2593, 2); +lean_inc(x_2607); +x_2608 = lean_ctor_get(x_2593, 3); +lean_inc(x_2608); +x_2609 = lean_ctor_get(x_2593, 4); +lean_inc(x_2609); +if (lean_is_exclusive(x_2593)) { + lean_ctor_release(x_2593, 0); + lean_ctor_release(x_2593, 1); + lean_ctor_release(x_2593, 2); + lean_ctor_release(x_2593, 3); + lean_ctor_release(x_2593, 4); + x_2610 = x_2593; } else { - lean_dec_ref(x_2590); - x_2607 = lean_box(0); + lean_dec_ref(x_2593); + x_2610 = lean_box(0); } -lean_inc(x_2572); -if (lean_is_scalar(x_2607)) { - x_2608 = lean_alloc_ctor(0, 5, 0); +lean_inc(x_2575); +if (lean_is_scalar(x_2610)) { + x_2611 = lean_alloc_ctor(0, 5, 0); } else { - x_2608 = x_2607; + x_2611 = x_2610; } -lean_ctor_set(x_2608, 0, x_2603); -lean_ctor_set(x_2608, 1, x_2572); -lean_ctor_set(x_2608, 2, x_2604); -lean_ctor_set(x_2608, 3, x_2605); -lean_ctor_set(x_2608, 4, x_2606); -if (lean_is_scalar(x_2602)) { - x_2609 = lean_alloc_ctor(0, 10, 2); +lean_ctor_set(x_2611, 0, x_2606); +lean_ctor_set(x_2611, 1, x_2575); +lean_ctor_set(x_2611, 2, x_2607); +lean_ctor_set(x_2611, 3, x_2608); +lean_ctor_set(x_2611, 4, x_2609); +if (lean_is_scalar(x_2605)) { + x_2612 = lean_alloc_ctor(0, 10, 2); } else { - x_2609 = x_2602; + x_2612 = x_2605; } -lean_ctor_set(x_2609, 0, x_2608); -lean_ctor_set(x_2609, 1, x_2591); -lean_ctor_set(x_2609, 2, x_2592); -lean_ctor_set(x_2609, 3, x_2593); -lean_ctor_set(x_2609, 4, x_2594); -lean_ctor_set(x_2609, 5, x_2595); -lean_ctor_set(x_2609, 6, x_2596); -lean_ctor_set(x_2609, 7, x_2597); -lean_ctor_set(x_2609, 8, x_2598); -lean_ctor_set(x_2609, 9, x_2599); -lean_ctor_set_uint8(x_2609, sizeof(void*)*10, x_2600); -lean_ctor_set_uint8(x_2609, sizeof(void*)*10 + 1, x_2601); -x_2610 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2589, x_2609, x_2577); -if (lean_obj_tag(x_2610) == 0) +lean_ctor_set(x_2612, 0, x_2611); +lean_ctor_set(x_2612, 1, x_2594); +lean_ctor_set(x_2612, 2, x_2595); +lean_ctor_set(x_2612, 3, x_2596); +lean_ctor_set(x_2612, 4, x_2597); +lean_ctor_set(x_2612, 5, x_2598); +lean_ctor_set(x_2612, 6, x_2599); +lean_ctor_set(x_2612, 7, x_2600); +lean_ctor_set(x_2612, 8, x_2601); +lean_ctor_set(x_2612, 9, x_2602); +lean_ctor_set_uint8(x_2612, sizeof(void*)*10, x_2603); +lean_ctor_set_uint8(x_2612, sizeof(void*)*10 + 1, x_2604); +x_2613 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2592, x_2612, x_2580); +if (lean_obj_tag(x_2613) == 0) { -lean_object* x_2611; lean_object* x_2612; lean_object* x_2613; lean_object* x_2614; lean_object* x_2615; lean_object* x_2616; lean_object* x_2617; lean_object* x_2618; -x_2611 = lean_ctor_get(x_2610, 0); -lean_inc(x_2611); -x_2612 = lean_ctor_get(x_2610, 1); -lean_inc(x_2612); -if (lean_is_exclusive(x_2610)) { - lean_ctor_release(x_2610, 0); - lean_ctor_release(x_2610, 1); - x_2613 = x_2610; +lean_object* x_2614; lean_object* x_2615; lean_object* x_2616; lean_object* x_2617; lean_object* x_2618; lean_object* x_2619; lean_object* x_2620; lean_object* x_2621; +x_2614 = lean_ctor_get(x_2613, 0); +lean_inc(x_2614); +x_2615 = lean_ctor_get(x_2613, 1); +lean_inc(x_2615); +if (lean_is_exclusive(x_2613)) { + lean_ctor_release(x_2613, 0); + lean_ctor_release(x_2613, 1); + x_2616 = x_2613; } else { - lean_dec_ref(x_2610); - x_2613 = lean_box(0); + lean_dec_ref(x_2613); + x_2616 = lean_box(0); } -x_2614 = l_Lean_mkFVar(x_2566); -x_2615 = l_Lean_mkOptionalNode___closed__2; -x_2616 = lean_array_push(x_2615, x_2614); -x_2617 = l_Lean_LocalContext_mkLambda(x_2572, x_2616, x_2611); -lean_dec(x_2611); -lean_dec(x_2616); -if (lean_is_scalar(x_2613)) { - x_2618 = lean_alloc_ctor(0, 2, 0); +x_2617 = l_Lean_mkFVar(x_2569); +x_2618 = l_Lean_mkOptionalNode___closed__2; +x_2619 = lean_array_push(x_2618, x_2617); +x_2620 = l_Lean_LocalContext_mkLambda(x_2575, x_2619, x_2614); +lean_dec(x_2614); +lean_dec(x_2619); +if (lean_is_scalar(x_2616)) { + x_2621 = lean_alloc_ctor(0, 2, 0); } else { - x_2618 = x_2613; + x_2621 = x_2616; } -lean_ctor_set(x_2618, 0, x_2617); -lean_ctor_set(x_2618, 1, x_2612); -return x_2618; +lean_ctor_set(x_2621, 0, x_2620); +lean_ctor_set(x_2621, 1, x_2615); +return x_2621; } else { -lean_object* x_2619; lean_object* x_2620; lean_object* x_2621; lean_object* x_2622; -lean_dec(x_2572); -lean_dec(x_2566); -x_2619 = lean_ctor_get(x_2610, 0); -lean_inc(x_2619); -x_2620 = lean_ctor_get(x_2610, 1); -lean_inc(x_2620); -if (lean_is_exclusive(x_2610)) { - lean_ctor_release(x_2610, 0); - lean_ctor_release(x_2610, 1); - x_2621 = x_2610; +lean_object* x_2622; lean_object* x_2623; lean_object* x_2624; lean_object* x_2625; +lean_dec(x_2575); +lean_dec(x_2569); +x_2622 = lean_ctor_get(x_2613, 0); +lean_inc(x_2622); +x_2623 = lean_ctor_get(x_2613, 1); +lean_inc(x_2623); +if (lean_is_exclusive(x_2613)) { + lean_ctor_release(x_2613, 0); + lean_ctor_release(x_2613, 1); + x_2624 = x_2613; } else { - lean_dec_ref(x_2610); - x_2621 = lean_box(0); + lean_dec_ref(x_2613); + x_2624 = lean_box(0); } -if (lean_is_scalar(x_2621)) { - x_2622 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2624)) { + x_2625 = lean_alloc_ctor(1, 2, 0); } else { - x_2622 = x_2621; + x_2625 = x_2624; } -lean_ctor_set(x_2622, 0, x_2619); -lean_ctor_set(x_2622, 1, x_2620); -return x_2622; +lean_ctor_set(x_2625, 0, x_2622); +lean_ctor_set(x_2625, 1, x_2623); +return x_2625; } } } else { -lean_dec(x_2425); -x_1 = x_2427; +lean_object* x_2626; lean_object* x_2627; lean_object* x_2628; lean_object* x_2629; lean_object* x_2630; uint8_t x_2631; lean_object* x_2632; lean_object* x_2633; lean_object* x_2634; lean_object* x_2635; lean_object* x_2636; lean_object* x_2637; lean_object* x_2638; lean_object* x_2639; lean_object* x_2640; lean_object* x_2641; lean_object* x_2642; lean_object* x_2643; lean_object* x_2644; lean_object* x_2645; lean_object* x_2646; lean_object* x_2647; lean_object* x_2648; lean_object* x_2649; lean_object* x_2650; lean_object* x_2651; lean_object* x_2652; lean_object* x_2653; lean_object* x_2654; lean_object* x_2655; lean_object* x_2656; lean_object* x_2657; lean_object* x_2658; lean_object* x_2659; uint8_t x_2660; uint8_t x_2661; lean_object* x_2662; lean_object* x_2663; lean_object* x_2664; lean_object* x_2665; lean_object* x_2666; lean_object* x_2667; lean_object* x_2668; lean_object* x_2669; lean_object* x_2670; +x_2626 = l_Lean_Syntax_getIdAt(x_2491, x_2489); +lean_dec(x_2491); +x_2627 = l_Lean_Elab_Term_getLCtx(x_2, x_3); +x_2628 = lean_ctor_get(x_2627, 0); +lean_inc(x_2628); +x_2629 = lean_ctor_get(x_2627, 1); +lean_inc(x_2629); +lean_dec(x_2627); +x_2630 = l___private_Init_Lean_Elab_Quotation_12__exprPlaceholder; +x_2631 = 0; +lean_inc_n(x_2626, 2); +x_2632 = lean_local_ctx_mk_local_decl(x_2628, x_2626, x_2626, x_2630, x_2631); +x_2633 = l_Array_eraseIdx___rarg(x_2485, x_2489); +x_2634 = l_Lean_Elab_Term_getCurrMacroScope(x_2, x_2629); +x_2635 = lean_ctor_get(x_2634, 1); +lean_inc(x_2635); +lean_dec(x_2634); +x_2636 = l_Lean_Elab_Term_getMainModule___rarg(x_2635); +x_2637 = lean_ctor_get(x_2636, 1); +lean_inc(x_2637); +lean_dec(x_2636); +x_2638 = lean_name_mk_string(x_2494, x_2294); +x_2639 = l_Lean_nullKind___closed__1; +x_2640 = lean_name_mk_string(x_27, x_2639); +x_2641 = l_Array_empty___closed__1; +x_2642 = l_Array_iterateMAux___main___at_Array_append___spec__1___rarg(x_2633, x_2633, x_2489, x_2641); +lean_dec(x_2633); +x_2643 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2643, 0, x_2640); +lean_ctor_set(x_2643, 1, x_2642); +x_2644 = l_Lean_Elab_Term_expandCDot_x3f___closed__2; +x_2645 = lean_array_push(x_2644, x_2643); +x_2646 = l_Lean_Elab_Term_expandCDot_x3f___closed__3; +x_2647 = lean_array_push(x_2645, x_2646); +x_2648 = lean_array_push(x_2647, x_2487); +x_2649 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_2649, 0, x_2638); +lean_ctor_set(x_2649, 1, x_2648); +x_2650 = lean_ctor_get(x_2, 0); +lean_inc(x_2650); +x_2651 = lean_ctor_get(x_2, 1); +lean_inc(x_2651); +x_2652 = lean_ctor_get(x_2, 2); +lean_inc(x_2652); +x_2653 = lean_ctor_get(x_2, 3); +lean_inc(x_2653); +x_2654 = lean_ctor_get(x_2, 4); +lean_inc(x_2654); +x_2655 = lean_ctor_get(x_2, 5); +lean_inc(x_2655); +x_2656 = lean_ctor_get(x_2, 6); +lean_inc(x_2656); +x_2657 = lean_ctor_get(x_2, 7); +lean_inc(x_2657); +x_2658 = lean_ctor_get(x_2, 8); +lean_inc(x_2658); +x_2659 = lean_ctor_get(x_2, 9); +lean_inc(x_2659); +x_2660 = lean_ctor_get_uint8(x_2, sizeof(void*)*10); +x_2661 = lean_ctor_get_uint8(x_2, sizeof(void*)*10 + 1); +if (lean_is_exclusive(x_2)) { + lean_ctor_release(x_2, 0); + lean_ctor_release(x_2, 1); + lean_ctor_release(x_2, 2); + lean_ctor_release(x_2, 3); + lean_ctor_release(x_2, 4); + lean_ctor_release(x_2, 5); + lean_ctor_release(x_2, 6); + lean_ctor_release(x_2, 7); + lean_ctor_release(x_2, 8); + lean_ctor_release(x_2, 9); + x_2662 = x_2; +} else { + lean_dec_ref(x_2); + x_2662 = lean_box(0); +} +x_2663 = lean_ctor_get(x_2650, 0); +lean_inc(x_2663); +x_2664 = lean_ctor_get(x_2650, 2); +lean_inc(x_2664); +x_2665 = lean_ctor_get(x_2650, 3); +lean_inc(x_2665); +x_2666 = lean_ctor_get(x_2650, 4); +lean_inc(x_2666); +if (lean_is_exclusive(x_2650)) { + lean_ctor_release(x_2650, 0); + lean_ctor_release(x_2650, 1); + lean_ctor_release(x_2650, 2); + lean_ctor_release(x_2650, 3); + lean_ctor_release(x_2650, 4); + x_2667 = x_2650; +} else { + lean_dec_ref(x_2650); + x_2667 = lean_box(0); +} +lean_inc(x_2632); +if (lean_is_scalar(x_2667)) { + x_2668 = lean_alloc_ctor(0, 5, 0); +} else { + x_2668 = x_2667; +} +lean_ctor_set(x_2668, 0, x_2663); +lean_ctor_set(x_2668, 1, x_2632); +lean_ctor_set(x_2668, 2, x_2664); +lean_ctor_set(x_2668, 3, x_2665); +lean_ctor_set(x_2668, 4, x_2666); +if (lean_is_scalar(x_2662)) { + x_2669 = lean_alloc_ctor(0, 10, 2); +} else { + x_2669 = x_2662; +} +lean_ctor_set(x_2669, 0, x_2668); +lean_ctor_set(x_2669, 1, x_2651); +lean_ctor_set(x_2669, 2, x_2652); +lean_ctor_set(x_2669, 3, x_2653); +lean_ctor_set(x_2669, 4, x_2654); +lean_ctor_set(x_2669, 5, x_2655); +lean_ctor_set(x_2669, 6, x_2656); +lean_ctor_set(x_2669, 7, x_2657); +lean_ctor_set(x_2669, 8, x_2658); +lean_ctor_set(x_2669, 9, x_2659); +lean_ctor_set_uint8(x_2669, sizeof(void*)*10, x_2660); +lean_ctor_set_uint8(x_2669, sizeof(void*)*10 + 1, x_2661); +x_2670 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main(x_2649, x_2669, x_2637); +if (lean_obj_tag(x_2670) == 0) +{ +lean_object* x_2671; lean_object* x_2672; lean_object* x_2673; lean_object* x_2674; lean_object* x_2675; lean_object* x_2676; lean_object* x_2677; lean_object* x_2678; +x_2671 = lean_ctor_get(x_2670, 0); +lean_inc(x_2671); +x_2672 = lean_ctor_get(x_2670, 1); +lean_inc(x_2672); +if (lean_is_exclusive(x_2670)) { + lean_ctor_release(x_2670, 0); + lean_ctor_release(x_2670, 1); + x_2673 = x_2670; +} else { + lean_dec_ref(x_2670); + x_2673 = lean_box(0); +} +x_2674 = l_Lean_mkFVar(x_2626); +x_2675 = l_Lean_mkOptionalNode___closed__2; +x_2676 = lean_array_push(x_2675, x_2674); +x_2677 = l_Lean_LocalContext_mkLambda(x_2632, x_2676, x_2671); +lean_dec(x_2671); +lean_dec(x_2676); +if (lean_is_scalar(x_2673)) { + x_2678 = lean_alloc_ctor(0, 2, 0); +} else { + x_2678 = x_2673; +} +lean_ctor_set(x_2678, 0, x_2677); +lean_ctor_set(x_2678, 1, x_2672); +return x_2678; +} +else +{ +lean_object* x_2679; lean_object* x_2680; lean_object* x_2681; lean_object* x_2682; +lean_dec(x_2632); +lean_dec(x_2626); +x_2679 = lean_ctor_get(x_2670, 0); +lean_inc(x_2679); +x_2680 = lean_ctor_get(x_2670, 1); +lean_inc(x_2680); +if (lean_is_exclusive(x_2670)) { + lean_ctor_release(x_2670, 0); + lean_ctor_release(x_2670, 1); + x_2681 = x_2670; +} else { + lean_dec_ref(x_2670); + x_2681 = lean_box(0); +} +if (lean_is_scalar(x_2681)) { + x_2682 = lean_alloc_ctor(1, 2, 0); +} else { + x_2682 = x_2681; +} +lean_ctor_set(x_2682, 0, x_2679); +lean_ctor_set(x_2682, 1, x_2680); +return x_2682; +} +} +} +else +{ +lean_dec(x_2485); +x_1 = x_2487; goto _start; } } } else { -lean_object* x_2624; lean_object* x_2625; lean_object* x_2626; -lean_dec(x_2217); -lean_dec(x_2213); -lean_dec(x_2210); +lean_object* x_2684; lean_object* x_2685; lean_object* x_2686; +lean_dec(x_2265); +lean_dec(x_2261); +lean_dec(x_2258); lean_dec(x_28); -x_2624 = l_Lean_Syntax_inhabited; -x_2625 = lean_unsigned_to_nat(0u); -x_2626 = lean_array_get(x_2624, x_4, x_2625); +x_2684 = l_Lean_Syntax_inhabited; +x_2685 = lean_unsigned_to_nat(0u); +x_2686 = lean_array_get(x_2684, x_4, x_2685); lean_dec(x_4); -if (lean_obj_tag(x_2626) == 3) +if (lean_obj_tag(x_2686) == 3) { -lean_object* x_2627; lean_object* x_2628; lean_object* x_2629; lean_object* x_2630; -x_2627 = lean_ctor_get(x_2626, 2); -lean_inc(x_2627); -x_2628 = lean_ctor_get(x_2626, 3); -lean_inc(x_2628); -lean_dec(x_2626); -x_2629 = lean_box(0); +lean_object* x_2687; lean_object* x_2688; lean_object* x_2689; lean_object* x_2690; +x_2687 = lean_ctor_get(x_2686, 2); +lean_inc(x_2687); +x_2688 = lean_ctor_get(x_2686, 3); +lean_inc(x_2688); +lean_dec(x_2686); +x_2689 = lean_box(0); lean_inc(x_2); -x_2630 = l_Lean_Elab_Term_resolveName(x_1, x_2627, x_2628, x_2629, x_2, x_3); +x_2690 = l_Lean_Elab_Term_resolveName(x_1, x_2687, x_2688, x_2689, x_2, x_3); lean_dec(x_1); -if (lean_obj_tag(x_2630) == 0) +if (lean_obj_tag(x_2690) == 0) { -lean_object* x_2631; -x_2631 = lean_ctor_get(x_2630, 0); -lean_inc(x_2631); -if (lean_obj_tag(x_2631) == 0) +lean_object* x_2691; +x_2691 = lean_ctor_get(x_2690, 0); +lean_inc(x_2691); +if (lean_obj_tag(x_2691) == 0) { -lean_object* x_2632; lean_object* x_2633; lean_object* x_2634; lean_object* x_2635; -x_2632 = lean_ctor_get(x_2630, 1); -lean_inc(x_2632); -lean_dec(x_2630); -x_2633 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; -x_2634 = l_unreachable_x21___rarg(x_2633); -x_2635 = lean_apply_2(x_2634, x_2, x_2632); -return x_2635; +lean_object* x_2692; lean_object* x_2693; lean_object* x_2694; lean_object* x_2695; +x_2692 = lean_ctor_get(x_2690, 1); +lean_inc(x_2692); +lean_dec(x_2690); +x_2693 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_2694 = l_unreachable_x21___rarg(x_2693); +x_2695 = lean_apply_2(x_2694, x_2, x_2692); +return x_2695; } else { -lean_object* x_2636; lean_object* x_2637; +lean_object* x_2696; lean_object* x_2697; lean_dec(x_2); -x_2636 = lean_ctor_get(x_2631, 0); -lean_inc(x_2636); -lean_dec(x_2631); -x_2637 = lean_ctor_get(x_2636, 0); -lean_inc(x_2637); -switch (lean_obj_tag(x_2637)) { +x_2696 = lean_ctor_get(x_2691, 0); +lean_inc(x_2696); +lean_dec(x_2691); +x_2697 = lean_ctor_get(x_2696, 0); +lean_inc(x_2697); +switch (lean_obj_tag(x_2697)) { case 0: { -lean_object* x_2638; lean_object* x_2639; lean_object* x_2640; lean_object* x_2641; lean_object* x_2642; -x_2638 = lean_ctor_get(x_2630, 1); -lean_inc(x_2638); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2639 = x_2630; +lean_object* x_2698; lean_object* x_2699; lean_object* x_2700; lean_object* x_2701; lean_object* x_2702; +x_2698 = lean_ctor_get(x_2690, 1); +lean_inc(x_2698); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2699 = x_2690; } else { - lean_dec_ref(x_2630); - x_2639 = lean_box(0); + lean_dec_ref(x_2690); + x_2699 = lean_box(0); } -x_2640 = lean_ctor_get(x_2636, 1); -lean_inc(x_2640); -lean_dec(x_2636); -x_2641 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_2637, x_2640); -if (lean_is_scalar(x_2639)) { - x_2642 = lean_alloc_ctor(0, 2, 0); +x_2700 = lean_ctor_get(x_2696, 1); +lean_inc(x_2700); +lean_dec(x_2696); +x_2701 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__2(x_27, x_2697, x_2700); +if (lean_is_scalar(x_2699)) { + x_2702 = lean_alloc_ctor(0, 2, 0); } else { - x_2642 = x_2639; + x_2702 = x_2699; } -lean_ctor_set(x_2642, 0, x_2641); -lean_ctor_set(x_2642, 1, x_2638); -return x_2642; +lean_ctor_set(x_2702, 0, x_2701); +lean_ctor_set(x_2702, 1, x_2698); +return x_2702; } case 1: { -lean_object* x_2643; lean_object* x_2644; lean_object* x_2645; lean_object* x_2646; lean_object* x_2647; -x_2643 = lean_ctor_get(x_2630, 1); -lean_inc(x_2643); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2644 = x_2630; +lean_object* x_2703; lean_object* x_2704; lean_object* x_2705; lean_object* x_2706; lean_object* x_2707; +x_2703 = lean_ctor_get(x_2690, 1); +lean_inc(x_2703); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2704 = x_2690; } else { - lean_dec_ref(x_2630); - x_2644 = lean_box(0); + lean_dec_ref(x_2690); + x_2704 = lean_box(0); } -x_2645 = lean_ctor_get(x_2636, 1); -lean_inc(x_2645); -lean_dec(x_2636); -x_2646 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_2637, x_2645); -if (lean_is_scalar(x_2644)) { - x_2647 = lean_alloc_ctor(0, 2, 0); +x_2705 = lean_ctor_get(x_2696, 1); +lean_inc(x_2705); +lean_dec(x_2696); +x_2706 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__3(x_27, x_2697, x_2705); +if (lean_is_scalar(x_2704)) { + x_2707 = lean_alloc_ctor(0, 2, 0); } else { - x_2647 = x_2644; + x_2707 = x_2704; } -lean_ctor_set(x_2647, 0, x_2646); -lean_ctor_set(x_2647, 1, x_2643); -return x_2647; +lean_ctor_set(x_2707, 0, x_2706); +lean_ctor_set(x_2707, 1, x_2703); +return x_2707; } case 2: { -lean_object* x_2648; lean_object* x_2649; lean_object* x_2650; lean_object* x_2651; lean_object* x_2652; -x_2648 = lean_ctor_get(x_2630, 1); -lean_inc(x_2648); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2649 = x_2630; +lean_object* x_2708; lean_object* x_2709; lean_object* x_2710; lean_object* x_2711; lean_object* x_2712; +x_2708 = lean_ctor_get(x_2690, 1); +lean_inc(x_2708); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2709 = x_2690; } else { - lean_dec_ref(x_2630); - x_2649 = lean_box(0); + lean_dec_ref(x_2690); + x_2709 = lean_box(0); } -x_2650 = lean_ctor_get(x_2636, 1); -lean_inc(x_2650); -lean_dec(x_2636); -x_2651 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_2637, x_2650); -if (lean_is_scalar(x_2649)) { - x_2652 = lean_alloc_ctor(0, 2, 0); +x_2710 = lean_ctor_get(x_2696, 1); +lean_inc(x_2710); +lean_dec(x_2696); +x_2711 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__4(x_27, x_2697, x_2710); +if (lean_is_scalar(x_2709)) { + x_2712 = lean_alloc_ctor(0, 2, 0); } else { - x_2652 = x_2649; + x_2712 = x_2709; } -lean_ctor_set(x_2652, 0, x_2651); -lean_ctor_set(x_2652, 1, x_2648); -return x_2652; +lean_ctor_set(x_2712, 0, x_2711); +lean_ctor_set(x_2712, 1, x_2708); +return x_2712; } case 3: { -lean_object* x_2653; lean_object* x_2654; lean_object* x_2655; lean_object* x_2656; lean_object* x_2657; -x_2653 = lean_ctor_get(x_2630, 1); -lean_inc(x_2653); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2654 = x_2630; +lean_object* x_2713; lean_object* x_2714; lean_object* x_2715; lean_object* x_2716; lean_object* x_2717; +x_2713 = lean_ctor_get(x_2690, 1); +lean_inc(x_2713); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2714 = x_2690; } else { - lean_dec_ref(x_2630); - x_2654 = lean_box(0); + lean_dec_ref(x_2690); + x_2714 = lean_box(0); } -x_2655 = lean_ctor_get(x_2636, 1); -lean_inc(x_2655); -lean_dec(x_2636); -x_2656 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_2637, x_2655); -if (lean_is_scalar(x_2654)) { - x_2657 = lean_alloc_ctor(0, 2, 0); +x_2715 = lean_ctor_get(x_2696, 1); +lean_inc(x_2715); +lean_dec(x_2696); +x_2716 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__5(x_27, x_2697, x_2715); +if (lean_is_scalar(x_2714)) { + x_2717 = lean_alloc_ctor(0, 2, 0); } else { - x_2657 = x_2654; + x_2717 = x_2714; } -lean_ctor_set(x_2657, 0, x_2656); -lean_ctor_set(x_2657, 1, x_2653); -return x_2657; +lean_ctor_set(x_2717, 0, x_2716); +lean_ctor_set(x_2717, 1, x_2713); +return x_2717; } case 4: { -lean_object* x_2658; lean_object* x_2659; lean_object* x_2660; lean_object* x_2661; lean_object* x_2662; lean_object* x_2663; lean_object* x_2664; -x_2658 = lean_ctor_get(x_2630, 1); -lean_inc(x_2658); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2659 = x_2630; +lean_object* x_2718; lean_object* x_2719; lean_object* x_2720; lean_object* x_2721; lean_object* x_2722; lean_object* x_2723; lean_object* x_2724; +x_2718 = lean_ctor_get(x_2690, 1); +lean_inc(x_2718); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2719 = x_2690; } else { - lean_dec_ref(x_2630); - x_2659 = lean_box(0); + lean_dec_ref(x_2690); + x_2719 = lean_box(0); } -x_2660 = lean_ctor_get(x_2636, 1); -lean_inc(x_2660); -lean_dec(x_2636); -x_2661 = lean_ctor_get(x_2637, 0); -lean_inc(x_2661); -lean_dec(x_2637); -x_2662 = l_Lean_mkConst(x_2661, x_2629); -x_2663 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_2662, x_2660); -if (lean_is_scalar(x_2659)) { - x_2664 = lean_alloc_ctor(0, 2, 0); +x_2720 = lean_ctor_get(x_2696, 1); +lean_inc(x_2720); +lean_dec(x_2696); +x_2721 = lean_ctor_get(x_2697, 0); +lean_inc(x_2721); +lean_dec(x_2697); +x_2722 = l_Lean_mkConst(x_2721, x_2689); +x_2723 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__6(x_27, x_2722, x_2720); +if (lean_is_scalar(x_2719)) { + x_2724 = lean_alloc_ctor(0, 2, 0); } else { - x_2664 = x_2659; + x_2724 = x_2719; } -lean_ctor_set(x_2664, 0, x_2663); -lean_ctor_set(x_2664, 1, x_2658); -return x_2664; +lean_ctor_set(x_2724, 0, x_2723); +lean_ctor_set(x_2724, 1, x_2718); +return x_2724; } case 5: { -lean_object* x_2665; lean_object* x_2666; lean_object* x_2667; lean_object* x_2668; lean_object* x_2669; -x_2665 = lean_ctor_get(x_2630, 1); -lean_inc(x_2665); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2666 = x_2630; +lean_object* x_2725; lean_object* x_2726; lean_object* x_2727; lean_object* x_2728; lean_object* x_2729; +x_2725 = lean_ctor_get(x_2690, 1); +lean_inc(x_2725); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2726 = x_2690; } else { - lean_dec_ref(x_2630); - x_2666 = lean_box(0); + lean_dec_ref(x_2690); + x_2726 = lean_box(0); } -x_2667 = lean_ctor_get(x_2636, 1); -lean_inc(x_2667); -lean_dec(x_2636); -x_2668 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_2637, x_2667); -if (lean_is_scalar(x_2666)) { - x_2669 = lean_alloc_ctor(0, 2, 0); +x_2727 = lean_ctor_get(x_2696, 1); +lean_inc(x_2727); +lean_dec(x_2696); +x_2728 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__7(x_27, x_2697, x_2727); +if (lean_is_scalar(x_2726)) { + x_2729 = lean_alloc_ctor(0, 2, 0); } else { - x_2669 = x_2666; + x_2729 = x_2726; } -lean_ctor_set(x_2669, 0, x_2668); -lean_ctor_set(x_2669, 1, x_2665); -return x_2669; +lean_ctor_set(x_2729, 0, x_2728); +lean_ctor_set(x_2729, 1, x_2725); +return x_2729; } case 6: { -lean_object* x_2670; lean_object* x_2671; lean_object* x_2672; lean_object* x_2673; lean_object* x_2674; -x_2670 = lean_ctor_get(x_2630, 1); -lean_inc(x_2670); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2671 = x_2630; +lean_object* x_2730; lean_object* x_2731; lean_object* x_2732; lean_object* x_2733; lean_object* x_2734; +x_2730 = lean_ctor_get(x_2690, 1); +lean_inc(x_2730); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2731 = x_2690; } else { - lean_dec_ref(x_2630); - x_2671 = lean_box(0); + lean_dec_ref(x_2690); + x_2731 = lean_box(0); } -x_2672 = lean_ctor_get(x_2636, 1); -lean_inc(x_2672); -lean_dec(x_2636); -x_2673 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_2637, x_2672); -if (lean_is_scalar(x_2671)) { - x_2674 = lean_alloc_ctor(0, 2, 0); +x_2732 = lean_ctor_get(x_2696, 1); +lean_inc(x_2732); +lean_dec(x_2696); +x_2733 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__8(x_27, x_2697, x_2732); +if (lean_is_scalar(x_2731)) { + x_2734 = lean_alloc_ctor(0, 2, 0); } else { - x_2674 = x_2671; + x_2734 = x_2731; } -lean_ctor_set(x_2674, 0, x_2673); -lean_ctor_set(x_2674, 1, x_2670); -return x_2674; +lean_ctor_set(x_2734, 0, x_2733); +lean_ctor_set(x_2734, 1, x_2730); +return x_2734; } case 7: { -lean_object* x_2675; lean_object* x_2676; lean_object* x_2677; lean_object* x_2678; lean_object* x_2679; -x_2675 = lean_ctor_get(x_2630, 1); -lean_inc(x_2675); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2676 = x_2630; +lean_object* x_2735; lean_object* x_2736; lean_object* x_2737; lean_object* x_2738; lean_object* x_2739; +x_2735 = lean_ctor_get(x_2690, 1); +lean_inc(x_2735); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2736 = x_2690; } else { - lean_dec_ref(x_2630); - x_2676 = lean_box(0); + lean_dec_ref(x_2690); + x_2736 = lean_box(0); } -x_2677 = lean_ctor_get(x_2636, 1); -lean_inc(x_2677); -lean_dec(x_2636); -x_2678 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_2637, x_2677); -if (lean_is_scalar(x_2676)) { - x_2679 = lean_alloc_ctor(0, 2, 0); +x_2737 = lean_ctor_get(x_2696, 1); +lean_inc(x_2737); +lean_dec(x_2696); +x_2738 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__9(x_27, x_2697, x_2737); +if (lean_is_scalar(x_2736)) { + x_2739 = lean_alloc_ctor(0, 2, 0); } else { - x_2679 = x_2676; + x_2739 = x_2736; } -lean_ctor_set(x_2679, 0, x_2678); -lean_ctor_set(x_2679, 1, x_2675); -return x_2679; +lean_ctor_set(x_2739, 0, x_2738); +lean_ctor_set(x_2739, 1, x_2735); +return x_2739; } case 8: { -lean_object* x_2680; lean_object* x_2681; lean_object* x_2682; lean_object* x_2683; lean_object* x_2684; -x_2680 = lean_ctor_get(x_2630, 1); -lean_inc(x_2680); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2681 = x_2630; +lean_object* x_2740; lean_object* x_2741; lean_object* x_2742; lean_object* x_2743; lean_object* x_2744; +x_2740 = lean_ctor_get(x_2690, 1); +lean_inc(x_2740); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2741 = x_2690; } else { - lean_dec_ref(x_2630); - x_2681 = lean_box(0); + lean_dec_ref(x_2690); + x_2741 = lean_box(0); } -x_2682 = lean_ctor_get(x_2636, 1); -lean_inc(x_2682); -lean_dec(x_2636); -x_2683 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_2637, x_2682); -if (lean_is_scalar(x_2681)) { - x_2684 = lean_alloc_ctor(0, 2, 0); +x_2742 = lean_ctor_get(x_2696, 1); +lean_inc(x_2742); +lean_dec(x_2696); +x_2743 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__10(x_27, x_2697, x_2742); +if (lean_is_scalar(x_2741)) { + x_2744 = lean_alloc_ctor(0, 2, 0); } else { - x_2684 = x_2681; + x_2744 = x_2741; } -lean_ctor_set(x_2684, 0, x_2683); -lean_ctor_set(x_2684, 1, x_2680); -return x_2684; +lean_ctor_set(x_2744, 0, x_2743); +lean_ctor_set(x_2744, 1, x_2740); +return x_2744; } case 9: { -lean_object* x_2685; lean_object* x_2686; lean_object* x_2687; lean_object* x_2688; lean_object* x_2689; -x_2685 = lean_ctor_get(x_2630, 1); -lean_inc(x_2685); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2686 = x_2630; +lean_object* x_2745; lean_object* x_2746; lean_object* x_2747; lean_object* x_2748; lean_object* x_2749; +x_2745 = lean_ctor_get(x_2690, 1); +lean_inc(x_2745); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2746 = x_2690; } else { - lean_dec_ref(x_2630); - x_2686 = lean_box(0); + lean_dec_ref(x_2690); + x_2746 = lean_box(0); } -x_2687 = lean_ctor_get(x_2636, 1); -lean_inc(x_2687); -lean_dec(x_2636); -x_2688 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_2637, x_2687); -if (lean_is_scalar(x_2686)) { - x_2689 = lean_alloc_ctor(0, 2, 0); +x_2747 = lean_ctor_get(x_2696, 1); +lean_inc(x_2747); +lean_dec(x_2696); +x_2748 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__11(x_27, x_2697, x_2747); +if (lean_is_scalar(x_2746)) { + x_2749 = lean_alloc_ctor(0, 2, 0); } else { - x_2689 = x_2686; + x_2749 = x_2746; } -lean_ctor_set(x_2689, 0, x_2688); -lean_ctor_set(x_2689, 1, x_2685); -return x_2689; +lean_ctor_set(x_2749, 0, x_2748); +lean_ctor_set(x_2749, 1, x_2745); +return x_2749; } case 10: { -lean_object* x_2690; lean_object* x_2691; lean_object* x_2692; lean_object* x_2693; lean_object* x_2694; -x_2690 = lean_ctor_get(x_2630, 1); -lean_inc(x_2690); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2691 = x_2630; +lean_object* x_2750; lean_object* x_2751; lean_object* x_2752; lean_object* x_2753; lean_object* x_2754; +x_2750 = lean_ctor_get(x_2690, 1); +lean_inc(x_2750); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2751 = x_2690; } else { - lean_dec_ref(x_2630); - x_2691 = lean_box(0); + lean_dec_ref(x_2690); + x_2751 = lean_box(0); } -x_2692 = lean_ctor_get(x_2636, 1); -lean_inc(x_2692); -lean_dec(x_2636); -x_2693 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_2637, x_2692); -if (lean_is_scalar(x_2691)) { - x_2694 = lean_alloc_ctor(0, 2, 0); +x_2752 = lean_ctor_get(x_2696, 1); +lean_inc(x_2752); +lean_dec(x_2696); +x_2753 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__12(x_27, x_2697, x_2752); +if (lean_is_scalar(x_2751)) { + x_2754 = lean_alloc_ctor(0, 2, 0); } else { - x_2694 = x_2691; + x_2754 = x_2751; } -lean_ctor_set(x_2694, 0, x_2693); -lean_ctor_set(x_2694, 1, x_2690); -return x_2694; +lean_ctor_set(x_2754, 0, x_2753); +lean_ctor_set(x_2754, 1, x_2750); +return x_2754; } case 11: { -lean_object* x_2695; lean_object* x_2696; lean_object* x_2697; lean_object* x_2698; lean_object* x_2699; -x_2695 = lean_ctor_get(x_2630, 1); -lean_inc(x_2695); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2696 = x_2630; +lean_object* x_2755; lean_object* x_2756; lean_object* x_2757; lean_object* x_2758; lean_object* x_2759; +x_2755 = lean_ctor_get(x_2690, 1); +lean_inc(x_2755); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2756 = x_2690; } else { - lean_dec_ref(x_2630); - x_2696 = lean_box(0); + lean_dec_ref(x_2690); + x_2756 = lean_box(0); } -x_2697 = lean_ctor_get(x_2636, 1); -lean_inc(x_2697); -lean_dec(x_2636); -x_2698 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_2637, x_2697); -if (lean_is_scalar(x_2696)) { - x_2699 = lean_alloc_ctor(0, 2, 0); +x_2757 = lean_ctor_get(x_2696, 1); +lean_inc(x_2757); +lean_dec(x_2696); +x_2758 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__13(x_27, x_2697, x_2757); +if (lean_is_scalar(x_2756)) { + x_2759 = lean_alloc_ctor(0, 2, 0); } else { - x_2699 = x_2696; + x_2759 = x_2756; } -lean_ctor_set(x_2699, 0, x_2698); -lean_ctor_set(x_2699, 1, x_2695); -return x_2699; +lean_ctor_set(x_2759, 0, x_2758); +lean_ctor_set(x_2759, 1, x_2755); +return x_2759; } default: { -lean_object* x_2700; lean_object* x_2701; lean_object* x_2702; lean_object* x_2703; lean_object* x_2704; -x_2700 = lean_ctor_get(x_2630, 1); -lean_inc(x_2700); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2701 = x_2630; +lean_object* x_2760; lean_object* x_2761; lean_object* x_2762; lean_object* x_2763; lean_object* x_2764; +x_2760 = lean_ctor_get(x_2690, 1); +lean_inc(x_2760); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2761 = x_2690; } else { - lean_dec_ref(x_2630); - x_2701 = lean_box(0); + lean_dec_ref(x_2690); + x_2761 = lean_box(0); } -x_2702 = lean_ctor_get(x_2636, 1); -lean_inc(x_2702); -lean_dec(x_2636); -x_2703 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_2637, x_2702); -if (lean_is_scalar(x_2701)) { - x_2704 = lean_alloc_ctor(0, 2, 0); +x_2762 = lean_ctor_get(x_2696, 1); +lean_inc(x_2762); +lean_dec(x_2696); +x_2763 = l_List_foldl___main___at___private_Init_Lean_Elab_Quotation_13__toPreterm___main___spec__14(x_27, x_2697, x_2762); +if (lean_is_scalar(x_2761)) { + x_2764 = lean_alloc_ctor(0, 2, 0); } else { - x_2704 = x_2701; + x_2764 = x_2761; } -lean_ctor_set(x_2704, 0, x_2703); -lean_ctor_set(x_2704, 1, x_2700); -return x_2704; +lean_ctor_set(x_2764, 0, x_2763); +lean_ctor_set(x_2764, 1, x_2760); +return x_2764; } } } } else { -lean_object* x_2705; lean_object* x_2706; lean_object* x_2707; lean_object* x_2708; +lean_object* x_2765; lean_object* x_2766; lean_object* x_2767; lean_object* x_2768; lean_dec(x_2); -x_2705 = lean_ctor_get(x_2630, 0); -lean_inc(x_2705); -x_2706 = lean_ctor_get(x_2630, 1); -lean_inc(x_2706); -if (lean_is_exclusive(x_2630)) { - lean_ctor_release(x_2630, 0); - lean_ctor_release(x_2630, 1); - x_2707 = x_2630; +x_2765 = lean_ctor_get(x_2690, 0); +lean_inc(x_2765); +x_2766 = lean_ctor_get(x_2690, 1); +lean_inc(x_2766); +if (lean_is_exclusive(x_2690)) { + lean_ctor_release(x_2690, 0); + lean_ctor_release(x_2690, 1); + x_2767 = x_2690; } else { - lean_dec_ref(x_2630); - x_2707 = lean_box(0); + lean_dec_ref(x_2690); + x_2767 = lean_box(0); } -if (lean_is_scalar(x_2707)) { - x_2708 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_2767)) { + x_2768 = lean_alloc_ctor(1, 2, 0); } else { - x_2708 = x_2707; + x_2768 = x_2767; } -lean_ctor_set(x_2708, 0, x_2705); -lean_ctor_set(x_2708, 1, x_2706); -return x_2708; +lean_ctor_set(x_2768, 0, x_2765); +lean_ctor_set(x_2768, 1, x_2766); +return x_2768; } } else { -lean_object* x_2709; lean_object* x_2710; lean_object* x_2711; -lean_dec(x_2626); +lean_object* x_2769; lean_object* x_2770; lean_object* x_2771; +lean_dec(x_2686); lean_dec(x_1); -x_2709 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; -x_2710 = l_unreachable_x21___rarg(x_2709); -x_2711 = lean_apply_2(x_2710, x_2, x_3); -return x_2711; +x_2769 = l___private_Init_Lean_Elab_Quotation_5__quoteSyntax___main___closed__1; +x_2770 = l_unreachable_x21___rarg(x_2769); +x_2771 = lean_apply_2(x_2770, x_2, x_3); +return x_2771; } } } @@ -24565,57 +24819,57 @@ return x_2711; } else { -lean_object* x_2712; +lean_object* x_2772; lean_dec(x_27); lean_dec(x_26); lean_dec(x_25); lean_dec(x_15); lean_dec(x_4); -x_2712 = lean_box(0); -x_6 = x_2712; +x_2772 = lean_box(0); +x_6 = x_2772; goto block_14; } } else { -lean_object* x_2713; +lean_object* x_2773; lean_dec(x_26); lean_dec(x_25); lean_dec(x_15); lean_dec(x_4); -x_2713 = lean_box(0); -x_6 = x_2713; +x_2773 = lean_box(0); +x_6 = x_2773; goto block_14; } } else { -lean_object* x_2714; +lean_object* x_2774; lean_dec(x_25); lean_dec(x_15); lean_dec(x_4); -x_2714 = lean_box(0); -x_6 = x_2714; +x_2774 = lean_box(0); +x_6 = x_2774; goto block_14; } } default: { -lean_object* x_2715; +lean_object* x_2775; lean_dec(x_15); lean_dec(x_4); -x_2715 = lean_box(0); -x_6 = x_2715; +x_2775 = lean_box(0); +x_6 = x_2775; goto block_14; } } } else { -lean_object* x_2716; +lean_object* x_2776; lean_dec(x_4); -x_2716 = lean_box(0); -x_6 = x_2716; +x_2776 = lean_box(0); +x_6 = x_2776; goto block_14; } block_14: @@ -24656,11 +24910,20 @@ lean_dec(x_5); return x_7; } } -lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; +x_7 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +return x_7; +} +} +lean_object* l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { _start: { lean_object* x_8; -x_8 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +x_8 = l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); lean_dec(x_6); return x_8; } @@ -25708,20 +25971,24 @@ l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__ lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__1); l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__2 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__2(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__2); -l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__3 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__3); -l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__4 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__4(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__1___closed__4); l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__1 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__1); l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__2 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__2(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__2); +l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__3 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__3); +l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__4 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__4(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__2___closed__4); l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__1); l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__2 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__2(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__2); -l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__3 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__3(); -lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__3___closed__3); +l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__1 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__1(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__1); +l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__2 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__2(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__2); +l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__3 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__3(); +lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___lambda__4___closed__3); l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__1 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__1(); lean_mark_persistent(l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__1); l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__2 = _init_l___private_Init_Lean_Elab_Quotation_13__toPreterm___main___closed__2(); diff --git a/stage0/stdlib/Init/Lean/Environment.c b/stage0/stdlib/Init/Lean/Environment.c index 257c669495..5d7e7bfa8e 100644 --- a/stage0/stdlib/Init/Lean/Environment.c +++ b/stage0/stdlib/Init/Lean/Environment.c @@ -20,6 +20,7 @@ lean_object* lean_get_extension(lean_object*, lean_object*); lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isNamespace___boxed(lean_object*, lean_object*); lean_object* l_PersistentHashMap_foldlMAux___main___at_Lean_mkModuleData___spec__3___boxed(lean_object*, lean_object*); +lean_object* l_Lean_importModulesAux___main___closed__1; size_t l_USize_add(size_t, size_t); lean_object* l_PersistentHashMap_containsAux___main___at_Lean_Environment_contains___spec__4___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerEnvExtensionUnsafe___at_Lean_registerPersistentEnvExtensionUnsafe___spec__2___rarg(lean_object*, lean_object*, lean_object*); @@ -64,6 +65,7 @@ lean_object* l_PersistentHashMap_insertAux___main___at_Lean_Environment_addAux__ lean_object* l_HashMapImp_find_x3f___at_Lean_Environment_find_x3f___spec__2___boxed(lean_object*, lean_object*); lean_object* l_Lean_EnvExtension_modifyStateUnsafe___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +lean_object* l_Lean_importModulesAux___main___closed__3; lean_object* l_Lean_mkTagDeclarationExtension___closed__1; lean_object* l_HashMapImp_moveEntries___main___at_Lean_Environment_addAux___spec__9(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___at_Lean_mkTagDeclarationExtension___spec__3(lean_object*, lean_object*); @@ -194,6 +196,7 @@ lean_object* l_Lean_SMap_size___at_Lean_Environment_displayStats___spec__3___box lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); lean_object* l_List_lengthAux___main___rarg(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_inhabited___rarg___lambda__2___boxed(lean_object*); +lean_object* l_IO_fileExists___at_Lean_importModulesAux___main___spec__1(lean_object*, lean_object*); lean_object* l_Lean_PersistentEnvExtension_addEntry(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_HasToString(lean_object*); lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_registerSimplePersistentEnvExtension___spec__1(lean_object*, lean_object*); @@ -313,6 +316,7 @@ lean_object* l_Lean_namespacesExt___elambda__2(lean_object*); lean_object* l_PersistentHashMap_insert___at_Lean_Environment_addAux___spec__2(lean_object*, lean_object*, lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Environment_10__setImportedEntries___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_regNamespacesExtension(lean_object*); +lean_object* lean_io_file_exists(lean_object*, lean_object*); lean_object* lean_mk_empty_environment(uint32_t, lean_object*); lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_Inhabited; @@ -442,6 +446,7 @@ lean_object* l_Lean_getNamespaceSet___boxed(lean_object*); extern lean_object* l_HashMap_Inhabited___closed__1; lean_object* l_Lean_TagDeclarationExtension_tag(lean_object*, lean_object*, lean_object*); lean_object* lean_perform_serialized_modifications(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_importModulesAux___main___closed__2; lean_object* l___private_Init_Data_Array_QSort_1__partitionAux___main___at_Lean_mkTagDeclarationExtension___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_EnvExtension_modifyStateUnsafe(lean_object*); lean_object* l_Array_binSearchAux___main___at_Lean_TagDeclarationExtension_isTagged___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -468,6 +473,7 @@ lean_object* l_mkHashMap___at_Lean_Environment_Inhabited___spec__1(lean_object*) lean_object* l_Lean_mkTagDeclarationExtension___lambda__2___boxed(lean_object*); lean_object* l_Lean_SimplePersistentEnvExtension_setState___rarg___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_mkModuleData___boxed(lean_object*, lean_object*); +lean_object* l_IO_fileExists___at_Lean_importModulesAux___main___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_regNamespacesExtension___lambda__1___boxed(lean_object*); lean_object* l_Array_iterateMAux___main___at___private_Init_Lean_Environment_10__setImportedEntries___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -8601,6 +8607,38 @@ return x_11; } } } +lean_object* l_IO_fileExists___at_Lean_importModulesAux___main___spec__1(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_io_file_exists(x_1, x_2); +return x_3; +} +} +lean_object* _init_l_Lean_importModulesAux___main___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("object file '"); +return x_1; +} +} +lean_object* _init_l_Lean_importModulesAux___main___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string("' of module "); +return x_1; +} +} +lean_object* _init_l_Lean_importModulesAux___main___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string(" does not exist"); +return x_1; +} +} lean_object* l_Lean_importModulesAux___main(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -8646,6 +8684,7 @@ lean_dec(x_14); x_15 = lean_box(0); lean_inc(x_10); x_16 = l_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_8, x_10, x_15); +lean_inc(x_10); x_17 = l_Lean_findOLean(x_10, x_3); if (lean_obj_tag(x_17) == 0) { @@ -8655,287 +8694,475 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -x_20 = lean_read_module_data(x_18, x_19); -lean_dec(x_18); +x_20 = lean_io_file_exists(x_18, x_19); if (lean_obj_tag(x_20) == 0) { -lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; +lean_object* x_21; uint8_t x_22; x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -x_24 = l_Array_toList___rarg(x_23); -lean_dec(x_23); -lean_ctor_set(x_2, 0, x_16); -x_25 = l_Lean_importModulesAux___main(x_24, x_2, x_22); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_26 = lean_ctor_get(x_25, 0); -lean_inc(x_26); -x_27 = lean_ctor_get(x_25, 1); -lean_inc(x_27); -lean_dec(x_25); -x_28 = !lean_is_exclusive(x_26); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_26, 1); -x_30 = lean_array_push(x_29, x_21); -lean_ctor_set(x_26, 1, x_30); -x_1 = x_7; -x_2 = x_26; -x_3 = x_27; -goto _start; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_32 = lean_ctor_get(x_26, 0); -x_33 = lean_ctor_get(x_26, 1); -lean_inc(x_33); -lean_inc(x_32); -lean_dec(x_26); -x_34 = lean_array_push(x_33, x_21); -x_35 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_35, 0, x_32); -lean_ctor_set(x_35, 1, x_34); -x_1 = x_7; -x_2 = x_35; -x_3 = x_27; -goto _start; -} -} -else -{ -uint8_t x_37; +x_22 = lean_unbox(x_21); lean_dec(x_21); -lean_dec(x_7); -x_37 = !lean_is_exclusive(x_25); -if (x_37 == 0) +if (x_22 == 0) { -return x_25; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_25, 0); -x_39 = lean_ctor_get(x_25, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_25); -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; +uint8_t x_23; lean_dec(x_16); lean_free_object(x_2); lean_dec(x_9); lean_dec(x_7); -x_41 = !lean_is_exclusive(x_20); -if (x_41 == 0) +x_23 = !lean_is_exclusive(x_20); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_24 = lean_ctor_get(x_20, 0); +lean_dec(x_24); +x_25 = l_Lean_importModulesAux___main___closed__1; +x_26 = lean_string_append(x_25, x_18); +lean_dec(x_18); +x_27 = l_Lean_importModulesAux___main___closed__2; +x_28 = lean_string_append(x_26, x_27); +x_29 = l_Lean_Name_toString___closed__1; +x_30 = l_Lean_Name_toStringWithSep___main(x_29, x_10); +x_31 = lean_string_append(x_28, x_30); +lean_dec(x_30); +x_32 = l_Lean_importModulesAux___main___closed__3; +x_33 = lean_string_append(x_31, x_32); +x_34 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set_tag(x_20, 1); +lean_ctor_set(x_20, 0, x_34); +return x_20; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_35 = lean_ctor_get(x_20, 1); +lean_inc(x_35); +lean_dec(x_20); +x_36 = l_Lean_importModulesAux___main___closed__1; +x_37 = lean_string_append(x_36, x_18); +lean_dec(x_18); +x_38 = l_Lean_importModulesAux___main___closed__2; +x_39 = lean_string_append(x_37, x_38); +x_40 = l_Lean_Name_toString___closed__1; +x_41 = l_Lean_Name_toStringWithSep___main(x_40, x_10); +x_42 = lean_string_append(x_39, x_41); +lean_dec(x_41); +x_43 = l_Lean_importModulesAux___main___closed__3; +x_44 = lean_string_append(x_42, x_43); +x_45 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_45, 0, x_44); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_35); +return x_46; +} +} +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_10); +x_47 = lean_ctor_get(x_20, 1); +lean_inc(x_47); +lean_dec(x_20); +x_48 = lean_read_module_data(x_18, x_47); +lean_dec(x_18); +if (lean_obj_tag(x_48) == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_49 = lean_ctor_get(x_48, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_48, 1); +lean_inc(x_50); +lean_dec(x_48); +x_51 = lean_ctor_get(x_49, 0); +lean_inc(x_51); +x_52 = l_Array_toList___rarg(x_51); +lean_dec(x_51); +lean_ctor_set(x_2, 0, x_16); +x_53 = l_Lean_importModulesAux___main(x_52, x_2, x_50); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; lean_object* x_55; uint8_t 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); +x_56 = !lean_is_exclusive(x_54); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_54, 1); +x_58 = lean_array_push(x_57, x_49); +lean_ctor_set(x_54, 1, x_58); +x_1 = x_7; +x_2 = x_54; +x_3 = x_55; +goto _start; +} +else +{ +lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_60 = lean_ctor_get(x_54, 0); +x_61 = lean_ctor_get(x_54, 1); +lean_inc(x_61); +lean_inc(x_60); +lean_dec(x_54); +x_62 = lean_array_push(x_61, x_49); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_60); +lean_ctor_set(x_63, 1, x_62); +x_1 = x_7; +x_2 = x_63; +x_3 = x_55; +goto _start; +} +} +else +{ +uint8_t x_65; +lean_dec(x_49); +lean_dec(x_7); +x_65 = !lean_is_exclusive(x_53); +if (x_65 == 0) +{ +return x_53; +} +else +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; +x_66 = lean_ctor_get(x_53, 0); +x_67 = lean_ctor_get(x_53, 1); +lean_inc(x_67); +lean_inc(x_66); +lean_dec(x_53); +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_16); +lean_free_object(x_2); +lean_dec(x_9); +lean_dec(x_7); +x_69 = !lean_is_exclusive(x_48); +if (x_69 == 0) +{ +return x_48; +} +else +{ +lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_70 = lean_ctor_get(x_48, 0); +x_71 = lean_ctor_get(x_48, 1); +lean_inc(x_71); +lean_inc(x_70); +lean_dec(x_48); +x_72 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +} +} +else +{ +uint8_t x_73; +lean_dec(x_18); +lean_dec(x_16); +lean_free_object(x_2); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +x_73 = !lean_is_exclusive(x_20); +if (x_73 == 0) { return x_20; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_20, 0); -x_43 = lean_ctor_get(x_20, 1); -lean_inc(x_43); -lean_inc(x_42); +lean_object* x_74; lean_object* x_75; lean_object* x_76; +x_74 = lean_ctor_get(x_20, 0); +x_75 = lean_ctor_get(x_20, 1); +lean_inc(x_75); +lean_inc(x_74); lean_dec(x_20); -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; +x_76 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +return x_76; } } } else { -uint8_t x_45; +uint8_t x_77; lean_dec(x_16); lean_free_object(x_2); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); -x_45 = !lean_is_exclusive(x_17); -if (x_45 == 0) +x_77 = !lean_is_exclusive(x_17); +if (x_77 == 0) { return x_17; } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_17, 0); -x_47 = lean_ctor_get(x_17, 1); -lean_inc(x_47); -lean_inc(x_46); +lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_17, 0); +x_79 = lean_ctor_get(x_17, 1); +lean_inc(x_79); +lean_inc(x_78); lean_dec(x_17); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; +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_49; lean_object* x_50; lean_object* x_51; +lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_dec(x_2); -x_49 = lean_box(0); +x_81 = lean_box(0); lean_inc(x_10); -x_50 = l_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_8, x_10, x_49); -x_51 = l_Lean_findOLean(x_10, x_3); -if (lean_obj_tag(x_51) == 0) +x_82 = l_RBNode_insert___at_Lean_NameSet_insert___spec__1(x_8, x_10, x_81); +lean_inc(x_10); +x_83 = l_Lean_findOLean(x_10, x_3); +if (lean_obj_tag(x_83) == 0) { -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_51, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_51, 1); -lean_inc(x_53); -lean_dec(x_51); -x_54 = lean_read_module_data(x_52, x_53); -lean_dec(x_52); -if (lean_obj_tag(x_54) == 0) +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_83, 0); +lean_inc(x_84); +x_85 = lean_ctor_get(x_83, 1); +lean_inc(x_85); +lean_dec(x_83); +x_86 = lean_io_file_exists(x_84, x_85); +if (lean_obj_tag(x_86) == 0) { -lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = lean_ctor_get(x_55, 0); -lean_inc(x_57); -x_58 = l_Array_toList___rarg(x_57); -lean_dec(x_57); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_50); -lean_ctor_set(x_59, 1, x_9); -x_60 = l_Lean_importModulesAux___main(x_58, x_59, x_56); -if (lean_obj_tag(x_60) == 0) +lean_object* x_87; uint8_t x_88; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_unbox(x_87); +lean_dec(x_87); +if (x_88 == 0) { -lean_object* x_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_61 = lean_ctor_get(x_60, 0); -lean_inc(x_61); -x_62 = lean_ctor_get(x_60, 1); -lean_inc(x_62); -lean_dec(x_60); -x_63 = lean_ctor_get(x_61, 0); -lean_inc(x_63); -x_64 = lean_ctor_get(x_61, 1); -lean_inc(x_64); -if (lean_is_exclusive(x_61)) { - lean_ctor_release(x_61, 0); - lean_ctor_release(x_61, 1); - x_65 = x_61; +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; +lean_dec(x_82); +lean_dec(x_9); +lean_dec(x_7); +x_89 = lean_ctor_get(x_86, 1); +lean_inc(x_89); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_90 = x_86; } else { - lean_dec_ref(x_61); - x_65 = lean_box(0); + lean_dec_ref(x_86); + x_90 = lean_box(0); } -x_66 = lean_array_push(x_64, x_55); -if (lean_is_scalar(x_65)) { - x_67 = lean_alloc_ctor(0, 2, 0); +x_91 = l_Lean_importModulesAux___main___closed__1; +x_92 = lean_string_append(x_91, x_84); +lean_dec(x_84); +x_93 = l_Lean_importModulesAux___main___closed__2; +x_94 = lean_string_append(x_92, x_93); +x_95 = l_Lean_Name_toString___closed__1; +x_96 = l_Lean_Name_toStringWithSep___main(x_95, x_10); +x_97 = lean_string_append(x_94, x_96); +lean_dec(x_96); +x_98 = l_Lean_importModulesAux___main___closed__3; +x_99 = lean_string_append(x_97, x_98); +x_100 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_100, 0, x_99); +if (lean_is_scalar(x_90)) { + x_101 = lean_alloc_ctor(1, 2, 0); } else { - x_67 = x_65; + x_101 = x_90; + lean_ctor_set_tag(x_101, 1); } -lean_ctor_set(x_67, 0, x_63); -lean_ctor_set(x_67, 1, x_66); +lean_ctor_set(x_101, 0, x_100); +lean_ctor_set(x_101, 1, x_89); +return x_101; +} +else +{ +lean_object* x_102; lean_object* x_103; +lean_dec(x_10); +x_102 = lean_ctor_get(x_86, 1); +lean_inc(x_102); +lean_dec(x_86); +x_103 = lean_read_module_data(x_84, x_102); +lean_dec(x_84); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; +x_104 = lean_ctor_get(x_103, 0); +lean_inc(x_104); +x_105 = lean_ctor_get(x_103, 1); +lean_inc(x_105); +lean_dec(x_103); +x_106 = lean_ctor_get(x_104, 0); +lean_inc(x_106); +x_107 = l_Array_toList___rarg(x_106); +lean_dec(x_106); +x_108 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_108, 0, x_82); +lean_ctor_set(x_108, 1, x_9); +x_109 = l_Lean_importModulesAux___main(x_107, x_108, x_105); +if (lean_obj_tag(x_109) == 0) +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_110 = lean_ctor_get(x_109, 0); +lean_inc(x_110); +x_111 = lean_ctor_get(x_109, 1); +lean_inc(x_111); +lean_dec(x_109); +x_112 = lean_ctor_get(x_110, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_110, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_110)) { + lean_ctor_release(x_110, 0); + lean_ctor_release(x_110, 1); + x_114 = x_110; +} else { + lean_dec_ref(x_110); + x_114 = lean_box(0); +} +x_115 = lean_array_push(x_113, x_104); +if (lean_is_scalar(x_114)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_114; +} +lean_ctor_set(x_116, 0, x_112); +lean_ctor_set(x_116, 1, x_115); x_1 = x_7; -x_2 = x_67; -x_3 = x_62; +x_2 = x_116; +x_3 = x_111; goto _start; } else { -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; -lean_dec(x_55); +lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +lean_dec(x_104); lean_dec(x_7); -x_69 = lean_ctor_get(x_60, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_60, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_71 = x_60; +x_118 = lean_ctor_get(x_109, 0); +lean_inc(x_118); +x_119 = lean_ctor_get(x_109, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_109)) { + lean_ctor_release(x_109, 0); + lean_ctor_release(x_109, 1); + x_120 = x_109; } else { - lean_dec_ref(x_60); - x_71 = lean_box(0); + lean_dec_ref(x_109); + x_120 = lean_box(0); } -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(1, 2, 0); } else { - x_72 = x_71; + x_121 = x_120; } -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -return x_72; +lean_ctor_set(x_121, 0, x_118); +lean_ctor_set(x_121, 1, x_119); +return x_121; } } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; -lean_dec(x_50); +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_82); lean_dec(x_9); lean_dec(x_7); -x_73 = lean_ctor_get(x_54, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_54, 1); -lean_inc(x_74); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_75 = x_54; +x_122 = lean_ctor_get(x_103, 0); +lean_inc(x_122); +x_123 = lean_ctor_get(x_103, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_124 = x_103; } else { - lean_dec_ref(x_54); - x_75 = lean_box(0); + lean_dec_ref(x_103); + x_124 = lean_box(0); } -if (lean_is_scalar(x_75)) { - x_76 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_124)) { + x_125 = lean_alloc_ctor(1, 2, 0); } else { - x_76 = x_75; + x_125 = x_124; +} +lean_ctor_set(x_125, 0, x_122); +lean_ctor_set(x_125, 1, x_123); +return x_125; } -lean_ctor_set(x_76, 0, x_73); -lean_ctor_set(x_76, 1, x_74); -return x_76; } } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; -lean_dec(x_50); +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; +lean_dec(x_84); +lean_dec(x_82); +lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); -x_77 = lean_ctor_get(x_51, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_51, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_79 = x_51; +x_126 = lean_ctor_get(x_86, 0); +lean_inc(x_126); +x_127 = lean_ctor_get(x_86, 1); +lean_inc(x_127); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_128 = x_86; } else { - lean_dec_ref(x_51); - x_79 = lean_box(0); + lean_dec_ref(x_86); + x_128 = lean_box(0); } -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_128)) { + x_129 = lean_alloc_ctor(1, 2, 0); } else { - x_80 = x_79; + x_129 = x_128; } -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_78); -return x_80; +lean_ctor_set(x_129, 0, x_126); +lean_ctor_set(x_129, 1, x_127); +return x_129; +} +} +else +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +lean_dec(x_82); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_7); +x_130 = lean_ctor_get(x_83, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_83, 1); +lean_inc(x_131); +if (lean_is_exclusive(x_83)) { + lean_ctor_release(x_83, 0); + lean_ctor_release(x_83, 1); + x_132 = x_83; +} else { + lean_dec_ref(x_83); + x_132 = lean_box(0); +} +if (lean_is_scalar(x_132)) { + x_133 = lean_alloc_ctor(1, 2, 0); +} else { + x_133 = x_132; +} +lean_ctor_set(x_133, 0, x_130); +lean_ctor_set(x_133, 1, x_131); +return x_133; } } } @@ -8950,17 +9177,26 @@ goto _start; } else { -lean_object* x_82; +lean_object* x_135; lean_dec(x_5); -x_82 = lean_ctor_get(x_1, 1); -lean_inc(x_82); +x_135 = lean_ctor_get(x_1, 1); +lean_inc(x_135); lean_dec(x_1); -x_1 = x_82; +x_1 = x_135; goto _start; } } } } +lean_object* l_IO_fileExists___at_Lean_importModulesAux___main___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l_IO_fileExists___at_Lean_importModulesAux___main___spec__1(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* l_Lean_importModulesAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -12447,6 +12683,12 @@ l_Lean_ModuleData_inhabited___closed__1 = _init_l_Lean_ModuleData_inhabited___cl lean_mark_persistent(l_Lean_ModuleData_inhabited___closed__1); l_Lean_ModuleData_inhabited = _init_l_Lean_ModuleData_inhabited(); lean_mark_persistent(l_Lean_ModuleData_inhabited); +l_Lean_importModulesAux___main___closed__1 = _init_l_Lean_importModulesAux___main___closed__1(); +lean_mark_persistent(l_Lean_importModulesAux___main___closed__1); +l_Lean_importModulesAux___main___closed__2 = _init_l_Lean_importModulesAux___main___closed__2(); +lean_mark_persistent(l_Lean_importModulesAux___main___closed__2); +l_Lean_importModulesAux___main___closed__3 = _init_l_Lean_importModulesAux___main___closed__3(); +lean_mark_persistent(l_Lean_importModulesAux___main___closed__3); l___private_Init_Lean_Environment_9__getEntriesFor___main___closed__1 = _init_l___private_Init_Lean_Environment_9__getEntriesFor___main___closed__1(); lean_mark_persistent(l___private_Init_Lean_Environment_9__getEntriesFor___main___closed__1); l_Array_iterateMAux___main___at_Lean_importModules___spec__9___closed__1 = _init_l_Array_iterateMAux___main___at_Lean_importModules___spec__9___closed__1();