From 3e233b6f3d018987b6148b6bc5d4d533921300dc Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Sat, 11 Jan 2020 13:46:10 -0800 Subject: [PATCH] chore: update stage0 --- stage0/src/Init/Lean/Elab/Alias.lean | 1 + stage0/src/Init/Lean/Elab/Definition.lean | 4 +- stage0/src/Init/Lean/Elab/Term.lean | 3 +- stage0/src/frontends/lean/builtin_cmds.cpp | 11 + stage0/stdlib/Init/Lean/Elab/Alias.c | 4 +- stage0/stdlib/Init/Lean/Elab/Command.c | 4 +- stage0/stdlib/Init/Lean/Elab/Definition.c | 147 +- stage0/stdlib/Init/Lean/Elab/Term.c | 18 +- stage0/stdlib/Init/Lean/Elab/TermApp.c | 2419 ++++++++++---------- 9 files changed, 1305 insertions(+), 1306 deletions(-) diff --git a/stage0/src/Init/Lean/Elab/Alias.lean b/stage0/src/Init/Lean/Elab/Alias.lean index 930f682b38..bac3ab4f0a 100644 --- a/stage0/src/Init/Lean/Elab/Alias.lean +++ b/stage0/src/Init/Lean/Elab/Alias.lean @@ -29,6 +29,7 @@ registerSimplePersistentEnvExtension { constant aliasExtension : SimplePersistentEnvExtension AliasEntry AliasState := arbitrary _ /- Add alias `a` for `e` -/ +@[export lean_add_alias] def addAlias (env : Environment) (a : Name) (e : Name) : Environment := aliasExtension.addEntry env (a, e) diff --git a/stage0/src/Init/Lean/Elab/Definition.lean b/stage0/src/Init/Lean/Elab/Definition.lean index 2cbfcc1814..bb36ff76dd 100644 --- a/stage0/src/Init/Lean/Elab/Definition.lean +++ b/stage0/src/Init/Lean/Elab/Definition.lean @@ -83,11 +83,11 @@ withUsedWhen ref vars xs e dummyExpr cond k def mkDef (view : DefView) (declName : Name) (explictLevelNames : List Name) (vars : Array Expr) (xs : Array Expr) (type : Expr) (val : Expr) : TermElabM (Option Declaration) := do let ref := view.ref; +valType ← Term.inferType view.val val; +val ← Term.ensureHasType ref type valType val; Term.synthesizeSyntheticMVars false; type ← Term.instantiateMVars ref type; val ← Term.instantiateMVars view.val val; -valType ← Term.inferType view.val val; -val ← Term.ensureHasType ref type valType val; if view.kind.isExample then pure none else withUsedWhen ref vars xs val type view.kind.isDefOrOpaque $ fun vars => do type ← Term.mkForall ref xs type; diff --git a/stage0/src/Init/Lean/Elab/Term.lean b/stage0/src/Init/Lean/Elab/Term.lean index f7bedb3e78..0b0a0aac15 100644 --- a/stage0/src/Init/Lean/Elab/Term.lean +++ b/stage0/src/Init/Lean/Elab/Term.lean @@ -90,6 +90,7 @@ instance TermElabResult.inhabited : Inhabited TermElabResult := ⟨EStateM.Resul fun ctx s => match x ctx s with | EStateM.Result.error (Exception.ex (Elab.Exception.error errMsg)) newS => EStateM.Result.ok (EStateM.Result.error errMsg newS) s + | EStateM.Result.error Exception.postpone _ => EStateM.Result.error Exception.postpone s | EStateM.Result.error ex newS => EStateM.Result.error ex newS | EStateM.Result.ok e newS => EStateM.Result.ok (EStateM.Result.ok e newS) s @@ -602,7 +603,7 @@ withMVarContext mvarId $ do assignExprMVar mvarId result; pure true) (fun ex => match ex with - | Exception.postpone => pure false + | Exception.postpone => do set s; pure false | Exception.ex Elab.Exception.unsupportedSyntax => unreachable! | Exception.ex (Elab.Exception.error msg) => if postponeOnError then do diff --git a/stage0/src/frontends/lean/builtin_cmds.cpp b/stage0/src/frontends/lean/builtin_cmds.cpp index 948b718b68..291a9ae743 100644 --- a/stage0/src/frontends/lean/builtin_cmds.cpp +++ b/stage0/src/frontends/lean/builtin_cmds.cpp @@ -218,6 +218,11 @@ static void check_identifier(parser & p, environment const & env, name const & n throw parser_error(sstream() << "invalid 'open' command, unknown declaration '" << full_id << "'", p.pos()); } +extern "C" object * lean_add_alias(object * env, object * a, object * e); +static environment add_lean4_alias(environment const & env, name const & a, name const & e) { + return environment(lean_add_alias(env.to_obj_arg(), a.to_obj_arg(), e.to_obj_arg())); +} + // open/export id (as id)? (id ...) (renaming id->id id->id) (hiding id ... id) environment open_export_cmd(parser & p, bool open) { environment env = p.env(); @@ -275,6 +280,12 @@ environment open_export_cmd(parser & p, bool open) { "mixing explicit and implicit 'open/export' options", p.pos()); p.check_token_next(get_rparen_tk(), "invalid 'open/export' command option, ')' expected"); } + if (!open) { + // Workaround for "exporting" old frontend exports to new frontend + for (auto p : renames) { + env = add_lean4_alias(env, p.first, p.second); + } + } export_decl edecl(ns, as, found_explicit, renames, exception_names); if (!open) { env = add_export_decl(env, edecl); diff --git a/stage0/stdlib/Init/Lean/Elab/Alias.c b/stage0/stdlib/Init/Lean/Elab/Alias.c index c03c35f74f..04507f2740 100644 --- a/stage0/stdlib/Init/Lean/Elab/Alias.c +++ b/stage0/stdlib/Init/Lean/Elab/Alias.c @@ -37,7 +37,7 @@ uint8_t l_AssocList_contains___main___at_Lean_addAliasEntry___spec__13(lean_obje lean_object* lean_array_push(lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l_Lean_addAlias(lean_object*, lean_object*, lean_object*); +lean_object* lean_add_alias(lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_Lean_getAliases___boxed(lean_object*, lean_object*); lean_object* l_mkHashMap___at_Lean_mkAliasExtension___spec__2(lean_object*); @@ -2656,7 +2656,7 @@ lean_dec(x_1); return x_3; } } -lean_object* l_Lean_addAlias(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +lean_object* lean_add_alias(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { lean_object* x_4; lean_object* x_5; lean_object* x_6; diff --git a/stage0/stdlib/Init/Lean/Elab/Command.c b/stage0/stdlib/Init/Lean/Elab/Command.c index deb1c0a789..5def80dfad 100644 --- a/stage0/stdlib/Init/Lean/Elab/Command.c +++ b/stage0/stdlib/Init/Lean/Elab/Command.c @@ -129,7 +129,7 @@ lean_object* l_Lean_Elab_Command_elabNotation___boxed(lean_object*, lean_object* lean_object* l_Lean_Elab_Command_CommandElabM_monadLog___closed__11; extern lean_object* l_Lean_Name_inhabited; lean_object* l_PersistentArray_push___rarg(lean_object*, lean_object*); -lean_object* l_Lean_addAlias(lean_object*, lean_object*, lean_object*); +lean_object* lean_add_alias(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Command_setOption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_String_splitAux___main___closed__1; lean_object* l_Lean_SMap_empty___at_Lean_Elab_Command_mkBuiltinCommandElabTable___spec__1___closed__2; @@ -10101,7 +10101,7 @@ lean_inc(x_5); x_6 = lean_ctor_get(x_3, 1); lean_inc(x_6); lean_dec(x_3); -x_7 = l_Lean_addAlias(x_1, x_5, x_6); +x_7 = lean_add_alias(x_1, x_5, x_6); x_1 = x_7; x_2 = x_4; goto _start; diff --git a/stage0/stdlib/Init/Lean/Elab/Definition.c b/stage0/stdlib/Init/Lean/Elab/Definition.c index e13b7b9f79..f8d5e50e1f 100644 --- a/stage0/stdlib/Init/Lean/Elab/Definition.c +++ b/stage0/stdlib/Init/Lean/Elab/Definition.c @@ -1713,55 +1713,55 @@ return x_110; lean_object* l_Lean_Elab_Command_mkDef(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_10; lean_object* x_11; lean_object* x_12; x_10 = lean_ctor_get(x_1, 0); lean_inc(x_10); -x_11 = 0; -x_12 = lean_box(0); +x_11 = lean_ctor_get(x_1, 5); +lean_inc(x_11); lean_inc(x_8); -x_13 = l___private_Init_Lean_Elab_Term_20__synthesizeSyntheticMVarsAux___main(x_11, x_12, x_8, x_9); -if (lean_obj_tag(x_13) == 0) +lean_inc(x_7); +x_12 = l_Lean_Elab_Term_inferType(x_11, x_7, x_8, x_9); +if (lean_obj_tag(x_12) == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_14 = lean_ctor_get(x_13, 1); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); lean_inc(x_14); -lean_dec(x_13); -lean_inc(x_8); -x_15 = l_Lean_Elab_Term_instantiateMVars(x_10, x_6, x_8, x_14); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_ctor_get(x_1, 5); -lean_inc(x_18); -lean_inc(x_8); -x_19 = l_Lean_Elab_Term_instantiateMVars(x_18, x_7, x_8, x_17); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 1); -lean_inc(x_21); -lean_dec(x_19); -lean_inc(x_8); -lean_inc(x_20); -x_22 = l_Lean_Elab_Term_inferType(x_18, x_20, x_8, x_21); -if (lean_obj_tag(x_22) == 0) -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_23 = lean_ctor_get(x_22, 0); -lean_inc(x_23); -x_24 = lean_ctor_get(x_22, 1); -lean_inc(x_24); -lean_dec(x_22); -lean_inc(x_16); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_16); +lean_dec(x_12); +lean_inc(x_6); +x_15 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_15, 0, x_6); lean_inc(x_8); lean_inc(x_10); -x_26 = l_Lean_Elab_Term_ensureHasType(x_10, x_25, x_23, x_20, x_8, x_24); -if (lean_obj_tag(x_26) == 0) +x_16 = l_Lean_Elab_Term_ensureHasType(x_10, x_15, x_13, x_7, x_8, x_14); +if (lean_obj_tag(x_16) == 0) { -uint8_t x_27; +lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = 0; +x_20 = lean_box(0); +lean_inc(x_8); +x_21 = l___private_Init_Lean_Elab_Term_20__synthesizeSyntheticMVarsAux___main(x_19, x_20, x_8, x_18); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_22 = lean_ctor_get(x_21, 1); +lean_inc(x_22); +lean_dec(x_21); +lean_inc(x_8); +x_23 = l_Lean_Elab_Term_instantiateMVars(x_10, x_6, x_8, x_22); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +lean_inc(x_8); +x_26 = l_Lean_Elab_Term_instantiateMVars(x_11, x_17, x_8, x_25); x_27 = !lean_is_exclusive(x_26); if (x_27 == 0) { @@ -1777,20 +1777,20 @@ lean_free_object(x_26); x_32 = l_Lean_Elab_Command_DefKind_isDefOrOpaque(x_30); x_33 = lean_box(x_30); lean_inc(x_28); -lean_inc(x_16); +lean_inc(x_24); lean_inc(x_5); lean_inc(x_10); x_34 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkDef___lambda__1___boxed), 12, 9); lean_closure_set(x_34, 0, x_10); lean_closure_set(x_34, 1, x_5); -lean_closure_set(x_34, 2, x_16); +lean_closure_set(x_34, 2, x_24); lean_closure_set(x_34, 3, x_28); -lean_closure_set(x_34, 4, x_18); +lean_closure_set(x_34, 4, x_11); lean_closure_set(x_34, 5, x_3); lean_closure_set(x_34, 6, x_33); lean_closure_set(x_34, 7, x_2); lean_closure_set(x_34, 8, x_1); -x_35 = l_Lean_Elab_Command_withUsedWhen___rarg(x_10, x_4, x_5, x_28, x_16, x_32, x_34, x_8, x_29); +x_35 = l_Lean_Elab_Command_withUsedWhen___rarg(x_10, x_4, x_5, x_28, x_24, x_32, x_34, x_8, x_29); lean_dec(x_5); lean_dec(x_10); return x_35; @@ -1799,8 +1799,8 @@ else { lean_object* x_36; lean_dec(x_28); -lean_dec(x_18); -lean_dec(x_16); +lean_dec(x_24); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_5); @@ -1829,20 +1829,20 @@ uint8_t x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; x_41 = l_Lean_Elab_Command_DefKind_isDefOrOpaque(x_39); x_42 = lean_box(x_39); lean_inc(x_37); -lean_inc(x_16); +lean_inc(x_24); lean_inc(x_5); lean_inc(x_10); x_43 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkDef___lambda__1___boxed), 12, 9); lean_closure_set(x_43, 0, x_10); lean_closure_set(x_43, 1, x_5); -lean_closure_set(x_43, 2, x_16); +lean_closure_set(x_43, 2, x_24); lean_closure_set(x_43, 3, x_37); -lean_closure_set(x_43, 4, x_18); +lean_closure_set(x_43, 4, x_11); lean_closure_set(x_43, 5, x_3); lean_closure_set(x_43, 6, x_42); lean_closure_set(x_43, 7, x_2); lean_closure_set(x_43, 8, x_1); -x_44 = l_Lean_Elab_Command_withUsedWhen___rarg(x_10, x_4, x_5, x_37, x_16, x_41, x_43, x_8, x_38); +x_44 = l_Lean_Elab_Command_withUsedWhen___rarg(x_10, x_4, x_5, x_37, x_24, x_41, x_43, x_8, x_38); lean_dec(x_5); lean_dec(x_10); return x_44; @@ -1851,8 +1851,8 @@ else { lean_object* x_45; lean_object* x_46; lean_dec(x_37); -lean_dec(x_18); -lean_dec(x_16); +lean_dec(x_24); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_5); @@ -1871,28 +1871,29 @@ return x_46; else { uint8_t x_47; -lean_dec(x_18); -lean_dec(x_16); +lean_dec(x_17); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_8); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_47 = !lean_is_exclusive(x_26); +x_47 = !lean_is_exclusive(x_21); if (x_47 == 0) { -return x_26; +return x_21; } else { lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_48 = lean_ctor_get(x_26, 0); -x_49 = lean_ctor_get(x_26, 1); +x_48 = lean_ctor_get(x_21, 0); +x_49 = lean_ctor_get(x_21, 1); lean_inc(x_49); lean_inc(x_48); -lean_dec(x_26); +lean_dec(x_21); x_50 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_50, 0, x_48); lean_ctor_set(x_50, 1, x_49); @@ -1903,29 +1904,28 @@ return x_50; else { uint8_t x_51; -lean_dec(x_20); -lean_dec(x_18); -lean_dec(x_16); +lean_dec(x_11); lean_dec(x_10); lean_dec(x_8); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_51 = !lean_is_exclusive(x_22); +x_51 = !lean_is_exclusive(x_16); if (x_51 == 0) { -return x_22; +return x_16; } else { lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_22, 0); -x_53 = lean_ctor_get(x_22, 1); +x_52 = lean_ctor_get(x_16, 0); +x_53 = lean_ctor_get(x_16, 1); lean_inc(x_53); lean_inc(x_52); -lean_dec(x_22); +lean_dec(x_16); x_54 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_54, 0, x_52); lean_ctor_set(x_54, 1, x_53); @@ -1936,6 +1936,7 @@ return x_54; else { uint8_t x_55; +lean_dec(x_11); lean_dec(x_10); lean_dec(x_8); lean_dec(x_7); @@ -1945,19 +1946,19 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_55 = !lean_is_exclusive(x_13); +x_55 = !lean_is_exclusive(x_12); if (x_55 == 0) { -return x_13; +return x_12; } else { lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_13, 0); -x_57 = lean_ctor_get(x_13, 1); +x_56 = lean_ctor_get(x_12, 0); +x_57 = lean_ctor_get(x_12, 1); lean_inc(x_57); lean_inc(x_56); -lean_dec(x_13); +lean_dec(x_12); x_58 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_58, 0, x_56); lean_ctor_set(x_58, 1, x_57); diff --git a/stage0/stdlib/Init/Lean/Elab/Term.c b/stage0/stdlib/Init/Lean/Elab/Term.c index 1421371e4a..97429cd9e9 100644 --- a/stage0/stdlib/Init/Lean/Elab/Term.c +++ b/stage0/stdlib/Init/Lean/Elab/Term.c @@ -1064,24 +1064,24 @@ return x_24; else { uint8_t x_25; -lean_dec(x_3); x_25 = !lean_is_exclusive(x_4); if (x_25 == 0) { -lean_object* x_26; -x_26 = lean_ctor_get(x_4, 0); +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_4, 1); lean_dec(x_26); +x_27 = lean_ctor_get(x_4, 0); +lean_dec(x_27); +lean_ctor_set(x_4, 1, x_3); return x_4; } else { -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_4, 1); -lean_inc(x_27); +lean_object* x_28; lean_dec(x_4); x_28 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_28, 0, x_11); -lean_ctor_set(x_28, 1, x_27); +lean_ctor_set(x_28, 1, x_3); return x_28; } } @@ -15578,13 +15578,13 @@ return x_34; else { uint8_t x_35; lean_object* x_36; lean_object* x_37; +lean_dec(x_9); lean_dec(x_6); -lean_dec(x_5); x_35 = 0; x_36 = lean_box(x_35); x_37 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_9); +lean_ctor_set(x_37, 1, x_5); return x_37; } } diff --git a/stage0/stdlib/Init/Lean/Elab/TermApp.c b/stage0/stdlib/Init/Lean/Elab/TermApp.c index 168fc4f42a..cd33730bfb 100644 --- a/stage0/stdlib/Init/Lean/Elab/TermApp.c +++ b/stage0/stdlib/Init/Lean/Elab/TermApp.c @@ -5914,7 +5914,6 @@ else { uint8_t x_43; lean_dec(x_13); -lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); @@ -5925,20 +5924,21 @@ lean_dec(x_1); x_43 = !lean_is_exclusive(x_18); if (x_43 == 0) { -lean_object* x_44; -x_44 = lean_ctor_get(x_18, 0); +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_18, 1); lean_dec(x_44); +x_45 = lean_ctor_get(x_18, 0); +lean_dec(x_45); +lean_ctor_set(x_18, 1, x_10); return x_18; } else { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_18, 1); -lean_inc(x_45); +lean_object* x_46; lean_dec(x_18); x_46 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_46, 0, x_27); -lean_ctor_set(x_46, 1, x_45); +lean_ctor_set(x_46, 1, x_10); return x_46; } } @@ -6099,7 +6099,6 @@ else { uint8_t x_43; lean_dec(x_13); -lean_dec(x_10); lean_dec(x_9); lean_dec(x_7); lean_dec(x_5); @@ -6110,20 +6109,21 @@ lean_dec(x_1); x_43 = !lean_is_exclusive(x_18); if (x_43 == 0) { -lean_object* x_44; -x_44 = lean_ctor_get(x_18, 0); +lean_object* x_44; lean_object* x_45; +x_44 = lean_ctor_get(x_18, 1); lean_dec(x_44); +x_45 = lean_ctor_get(x_18, 0); +lean_dec(x_45); +lean_ctor_set(x_18, 1, x_10); return x_18; } else { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_18, 1); -lean_inc(x_45); +lean_object* x_46; lean_dec(x_18); x_46 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_46, 0, x_27); -lean_ctor_set(x_46, 1, x_45); +lean_ctor_set(x_46, 1, x_10); return x_46; } } @@ -6271,320 +6271,317 @@ x_13 = lean_name_eq(x_11, x_12); lean_dec(x_11); if (x_13 == 0) { -lean_object* x_14; lean_object* x_233; lean_object* x_354; uint8_t x_355; -x_354 = l_Lean_Parser_Term_explicit___elambda__1___closed__2; +lean_object* x_14; lean_object* x_230; lean_object* x_350; uint8_t x_351; +x_350 = l_Lean_Parser_Term_explicit___elambda__1___closed__2; lean_inc(x_2); -x_355 = l_Lean_Syntax_isOfKind(x_2, x_354); -if (x_355 == 0) +x_351 = l_Lean_Syntax_isOfKind(x_2, x_350); +if (x_351 == 0) { -lean_object* x_356; -x_356 = lean_box(0); -x_233 = x_356; -goto block_353; +lean_object* x_352; +x_352 = lean_box(0); +x_230 = x_352; +goto block_349; } else { -lean_object* x_357; lean_object* x_358; lean_object* x_359; uint8_t x_360; -x_357 = l_Lean_Syntax_getArgs(x_2); -x_358 = lean_array_get_size(x_357); -lean_dec(x_357); -x_359 = lean_unsigned_to_nat(2u); -x_360 = lean_nat_dec_eq(x_358, x_359); -lean_dec(x_358); -if (x_360 == 0) +lean_object* x_353; lean_object* x_354; lean_object* x_355; uint8_t x_356; +x_353 = l_Lean_Syntax_getArgs(x_2); +x_354 = lean_array_get_size(x_353); +lean_dec(x_353); +x_355 = lean_unsigned_to_nat(2u); +x_356 = lean_nat_dec_eq(x_354, x_355); +lean_dec(x_354); +if (x_356 == 0) { -lean_object* x_361; -x_361 = lean_box(0); -x_233 = x_361; -goto block_353; +lean_object* x_357; +x_357 = lean_box(0); +x_230 = x_357; +goto block_349; } else { -lean_object* x_362; lean_object* x_363; lean_object* x_364; uint8_t x_365; -x_362 = lean_unsigned_to_nat(1u); -x_363 = l_Lean_Syntax_getArg(x_2, x_362); -x_364 = l_Lean_Parser_Term_id___elambda__1___closed__2; -lean_inc(x_363); -x_365 = l_Lean_Syntax_isOfKind(x_363, x_364); +lean_object* x_358; lean_object* x_359; lean_object* x_360; uint8_t x_361; +x_358 = lean_unsigned_to_nat(1u); +x_359 = l_Lean_Syntax_getArg(x_2, x_358); +x_360 = l_Lean_Parser_Term_id___elambda__1___closed__2; +lean_inc(x_359); +x_361 = l_Lean_Syntax_isOfKind(x_359, x_360); +if (x_361 == 0) +{ +lean_object* x_362; uint8_t x_363; lean_object* x_364; +lean_dec(x_359); +x_362 = lean_box(0); +x_363 = 1; +lean_inc(x_9); +x_364 = l_Lean_Elab_Term_elabTerm(x_2, x_362, x_363, x_363, x_9, x_10); +if (lean_obj_tag(x_364) == 0) +{ +uint8_t x_365; +x_365 = !lean_is_exclusive(x_364); if (x_365 == 0) { -lean_object* x_366; uint8_t x_367; lean_object* x_368; -lean_dec(x_363); -x_366 = lean_box(0); -x_367 = 1; -lean_inc(x_9); -x_368 = l_Lean_Elab_Term_elabTerm(x_2, x_366, x_367, x_367, x_9, x_10); +lean_object* x_366; lean_object* x_367; lean_object* x_368; +x_366 = lean_ctor_get(x_364, 0); +x_367 = lean_ctor_get(x_364, 1); +lean_inc(x_367); +x_368 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_366, x_3, x_4, x_5, x_6, x_7, x_9, x_367); if (lean_obj_tag(x_368) == 0) { uint8_t x_369; x_369 = !lean_is_exclusive(x_368); if (x_369 == 0) { -lean_object* x_370; lean_object* x_371; lean_object* x_372; -x_370 = lean_ctor_get(x_368, 0); -x_371 = lean_ctor_get(x_368, 1); +lean_object* x_370; +x_370 = lean_array_push(x_8, x_368); +lean_ctor_set(x_364, 0, x_370); +return x_364; +} +else +{ +lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; +x_371 = lean_ctor_get(x_368, 0); +x_372 = lean_ctor_get(x_368, 1); +lean_inc(x_372); lean_inc(x_371); -x_372 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_370, x_3, x_4, x_5, x_6, x_7, x_9, x_371); -if (lean_obj_tag(x_372) == 0) -{ -uint8_t x_373; -x_373 = !lean_is_exclusive(x_372); -if (x_373 == 0) -{ -lean_object* x_374; -x_374 = lean_array_push(x_8, x_372); -lean_ctor_set(x_368, 0, x_374); -return x_368; +lean_dec(x_368); +x_373 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_373, 0, x_371); +lean_ctor_set(x_373, 1, x_372); +x_374 = lean_array_push(x_8, x_373); +lean_ctor_set(x_364, 0, x_374); +return x_364; +} } else { -lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; -x_375 = lean_ctor_get(x_372, 0); -x_376 = lean_ctor_get(x_372, 1); -lean_inc(x_376); +lean_object* x_375; +x_375 = lean_ctor_get(x_368, 0); lean_inc(x_375); -lean_dec(x_372); -x_377 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_377, 0, x_375); -lean_ctor_set(x_377, 1, x_376); -x_378 = lean_array_push(x_8, x_377); -lean_ctor_set(x_368, 0, x_378); -return x_368; -} -} -else +if (lean_obj_tag(x_375) == 0) { -lean_object* x_379; -x_379 = lean_ctor_get(x_372, 0); +lean_object* x_376; +x_376 = lean_ctor_get(x_375, 0); +lean_inc(x_376); +if (lean_obj_tag(x_376) == 0) +{ +uint8_t x_377; +lean_dec(x_375); +x_377 = !lean_is_exclusive(x_368); +if (x_377 == 0) +{ +lean_object* x_378; lean_object* x_379; lean_object* x_380; +x_378 = lean_ctor_get(x_368, 0); +lean_dec(x_378); +x_379 = lean_ctor_get(x_376, 0); lean_inc(x_379); -if (lean_obj_tag(x_379) == 0) +lean_dec(x_376); +lean_ctor_set(x_368, 0, x_379); +x_380 = lean_array_push(x_8, x_368); +lean_ctor_set(x_364, 0, x_380); +return x_364; +} +else { -lean_object* x_380; -x_380 = lean_ctor_get(x_379, 0); -lean_inc(x_380); -if (lean_obj_tag(x_380) == 0) +lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; +x_381 = lean_ctor_get(x_368, 1); +lean_inc(x_381); +lean_dec(x_368); +x_382 = lean_ctor_get(x_376, 0); +lean_inc(x_382); +lean_dec(x_376); +x_383 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_383, 0, x_382); +lean_ctor_set(x_383, 1, x_381); +x_384 = lean_array_push(x_8, x_383); +lean_ctor_set(x_364, 0, x_384); +return x_364; +} +} +else { -uint8_t x_381; -lean_dec(x_379); -x_381 = !lean_is_exclusive(x_372); -if (x_381 == 0) +uint8_t x_385; +lean_free_object(x_364); +lean_dec(x_367); +lean_dec(x_8); +x_385 = !lean_is_exclusive(x_368); +if (x_385 == 0) { -lean_object* x_382; lean_object* x_383; lean_object* x_384; -x_382 = lean_ctor_get(x_372, 0); -lean_dec(x_382); -x_383 = lean_ctor_get(x_380, 0); -lean_inc(x_383); -lean_dec(x_380); -lean_ctor_set(x_372, 0, x_383); -x_384 = lean_array_push(x_8, x_372); -lean_ctor_set(x_368, 0, x_384); +lean_object* x_386; +x_386 = lean_ctor_get(x_368, 0); +lean_dec(x_386); return x_368; } else { -lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; -x_385 = lean_ctor_get(x_372, 1); -lean_inc(x_385); -lean_dec(x_372); -x_386 = lean_ctor_get(x_380, 0); -lean_inc(x_386); -lean_dec(x_380); -x_387 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_387, 0, x_386); -lean_ctor_set(x_387, 1, x_385); -x_388 = lean_array_push(x_8, x_387); -lean_ctor_set(x_368, 0, x_388); -return x_368; +lean_object* x_387; lean_object* x_388; +x_387 = lean_ctor_get(x_368, 1); +lean_inc(x_387); +lean_dec(x_368); +x_388 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_388, 0, x_375); +lean_ctor_set(x_388, 1, x_387); +return x_388; +} } } else { uint8_t x_389; -lean_free_object(x_368); -lean_dec(x_371); +lean_free_object(x_364); lean_dec(x_8); -x_389 = !lean_is_exclusive(x_372); +x_389 = !lean_is_exclusive(x_368); if (x_389 == 0) { -lean_object* x_390; -x_390 = lean_ctor_get(x_372, 0); +lean_object* x_390; lean_object* x_391; +x_390 = lean_ctor_get(x_368, 1); lean_dec(x_390); -return x_372; +x_391 = lean_ctor_get(x_368, 0); +lean_dec(x_391); +lean_ctor_set(x_368, 1, x_367); +return x_368; } else { -lean_object* x_391; lean_object* x_392; -x_391 = lean_ctor_get(x_372, 1); -lean_inc(x_391); -lean_dec(x_372); +lean_object* x_392; +lean_dec(x_368); x_392 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_392, 0, x_379); -lean_ctor_set(x_392, 1, x_391); +lean_ctor_set(x_392, 0, x_375); +lean_ctor_set(x_392, 1, x_367); return x_392; } } } -else -{ -uint8_t x_393; -lean_free_object(x_368); -lean_dec(x_371); -lean_dec(x_8); -x_393 = !lean_is_exclusive(x_372); -if (x_393 == 0) -{ -lean_object* x_394; -x_394 = lean_ctor_get(x_372, 0); -lean_dec(x_394); -return x_372; } else { -lean_object* x_395; lean_object* x_396; -x_395 = lean_ctor_get(x_372, 1); -lean_inc(x_395); -lean_dec(x_372); -x_396 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_396, 0, x_379); -lean_ctor_set(x_396, 1, x_395); -return x_396; -} -} -} -} -else +lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_393 = lean_ctor_get(x_364, 0); +x_394 = lean_ctor_get(x_364, 1); +lean_inc(x_394); +lean_inc(x_393); +lean_dec(x_364); +lean_inc(x_394); +x_395 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_393, x_3, x_4, x_5, x_6, x_7, x_9, x_394); +if (lean_obj_tag(x_395) == 0) { -lean_object* x_397; lean_object* x_398; lean_object* x_399; -x_397 = lean_ctor_get(x_368, 0); -x_398 = lean_ctor_get(x_368, 1); -lean_inc(x_398); +lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; +x_396 = lean_ctor_get(x_395, 0); +lean_inc(x_396); +x_397 = lean_ctor_get(x_395, 1); lean_inc(x_397); -lean_dec(x_368); -lean_inc(x_398); -x_399 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_397, x_3, x_4, x_5, x_6, x_7, x_9, x_398); -if (lean_obj_tag(x_399) == 0) -{ -lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; -x_400 = lean_ctor_get(x_399, 0); -lean_inc(x_400); -x_401 = lean_ctor_get(x_399, 1); -lean_inc(x_401); -if (lean_is_exclusive(x_399)) { - lean_ctor_release(x_399, 0); - lean_ctor_release(x_399, 1); - x_402 = x_399; +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + x_398 = x_395; } else { - lean_dec_ref(x_399); - x_402 = lean_box(0); + lean_dec_ref(x_395); + x_398 = lean_box(0); } -if (lean_is_scalar(x_402)) { - x_403 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_398)) { + x_399 = lean_alloc_ctor(0, 2, 0); } else { - x_403 = x_402; + x_399 = x_398; } -lean_ctor_set(x_403, 0, x_400); -lean_ctor_set(x_403, 1, x_401); -x_404 = lean_array_push(x_8, x_403); -x_405 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_405, 0, x_404); -lean_ctor_set(x_405, 1, x_398); -return x_405; +lean_ctor_set(x_399, 0, x_396); +lean_ctor_set(x_399, 1, x_397); +x_400 = lean_array_push(x_8, x_399); +x_401 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_401, 0, x_400); +lean_ctor_set(x_401, 1, x_394); +return x_401; } else { -lean_object* x_406; -x_406 = lean_ctor_get(x_399, 0); +lean_object* x_402; +x_402 = lean_ctor_get(x_395, 0); +lean_inc(x_402); +if (lean_obj_tag(x_402) == 0) +{ +lean_object* x_403; +x_403 = lean_ctor_get(x_402, 0); +lean_inc(x_403); +if (lean_obj_tag(x_403) == 0) +{ +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_dec(x_402); +x_404 = lean_ctor_get(x_395, 1); +lean_inc(x_404); +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + x_405 = x_395; +} else { + lean_dec_ref(x_395); + x_405 = lean_box(0); +} +x_406 = lean_ctor_get(x_403, 0); lean_inc(x_406); -if (lean_obj_tag(x_406) == 0) -{ -lean_object* x_407; -x_407 = lean_ctor_get(x_406, 0); -lean_inc(x_407); -if (lean_obj_tag(x_407) == 0) -{ -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_dec(x_406); -x_408 = lean_ctor_get(x_399, 1); -lean_inc(x_408); -if (lean_is_exclusive(x_399)) { - lean_ctor_release(x_399, 0); - lean_ctor_release(x_399, 1); - x_409 = x_399; +lean_dec(x_403); +if (lean_is_scalar(x_405)) { + x_407 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_399); - x_409 = lean_box(0); + x_407 = x_405; } -x_410 = lean_ctor_get(x_407, 0); +lean_ctor_set(x_407, 0, x_406); +lean_ctor_set(x_407, 1, x_404); +x_408 = lean_array_push(x_8, x_407); +x_409 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_409, 0, x_408); +lean_ctor_set(x_409, 1, x_394); +return x_409; +} +else +{ +lean_object* x_410; lean_object* x_411; lean_object* x_412; +lean_dec(x_394); +lean_dec(x_8); +x_410 = lean_ctor_get(x_395, 1); lean_inc(x_410); -lean_dec(x_407); -if (lean_is_scalar(x_409)) { - x_411 = lean_alloc_ctor(1, 2, 0); +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + x_411 = x_395; } else { - x_411 = x_409; + lean_dec_ref(x_395); + x_411 = lean_box(0); +} +if (lean_is_scalar(x_411)) { + x_412 = lean_alloc_ctor(1, 2, 0); +} else { + x_412 = x_411; +} +lean_ctor_set(x_412, 0, x_402); +lean_ctor_set(x_412, 1, x_410); +return x_412; } -lean_ctor_set(x_411, 0, x_410); -lean_ctor_set(x_411, 1, x_408); -x_412 = lean_array_push(x_8, x_411); -x_413 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_413, 0, x_412); -lean_ctor_set(x_413, 1, x_398); -return x_413; } else { -lean_object* x_414; lean_object* x_415; lean_object* x_416; -lean_dec(x_398); +lean_object* x_413; lean_object* x_414; lean_dec(x_8); -x_414 = lean_ctor_get(x_399, 1); -lean_inc(x_414); -if (lean_is_exclusive(x_399)) { - lean_ctor_release(x_399, 0); - lean_ctor_release(x_399, 1); - x_415 = x_399; +if (lean_is_exclusive(x_395)) { + lean_ctor_release(x_395, 0); + lean_ctor_release(x_395, 1); + x_413 = x_395; } else { - lean_dec_ref(x_399); - x_415 = lean_box(0); + lean_dec_ref(x_395); + x_413 = lean_box(0); } -if (lean_is_scalar(x_415)) { - x_416 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_413)) { + x_414 = lean_alloc_ctor(1, 2, 0); } else { - x_416 = x_415; + x_414 = x_413; } -lean_ctor_set(x_416, 0, x_406); -lean_ctor_set(x_416, 1, x_414); -return x_416; -} -} -else -{ -lean_object* x_417; lean_object* x_418; lean_object* x_419; -lean_dec(x_398); -lean_dec(x_8); -x_417 = lean_ctor_get(x_399, 1); -lean_inc(x_417); -if (lean_is_exclusive(x_399)) { - lean_ctor_release(x_399, 0); - lean_ctor_release(x_399, 1); - x_418 = x_399; -} else { - lean_dec_ref(x_399); - x_418 = lean_box(0); -} -if (lean_is_scalar(x_418)) { - x_419 = lean_alloc_ctor(1, 2, 0); -} else { - x_419 = x_418; -} -lean_ctor_set(x_419, 0, x_406); -lean_ctor_set(x_419, 1, x_417); -return x_419; +lean_ctor_set(x_414, 0, x_402); +lean_ctor_set(x_414, 1, x_394); +return x_414; } } } } else { -uint8_t x_420; +uint8_t x_415; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); @@ -6592,38 +6589,38 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_420 = !lean_is_exclusive(x_368); -if (x_420 == 0) +x_415 = !lean_is_exclusive(x_364); +if (x_415 == 0) { -return x_368; +return x_364; } else { -lean_object* x_421; lean_object* x_422; lean_object* x_423; -x_421 = lean_ctor_get(x_368, 0); -x_422 = lean_ctor_get(x_368, 1); -lean_inc(x_422); -lean_inc(x_421); -lean_dec(x_368); -x_423 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_423, 0, x_421); -lean_ctor_set(x_423, 1, x_422); -return x_423; +lean_object* x_416; lean_object* x_417; lean_object* x_418; +x_416 = lean_ctor_get(x_364, 0); +x_417 = lean_ctor_get(x_364, 1); +lean_inc(x_417); +lean_inc(x_416); +lean_dec(x_364); +x_418 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_418, 0, x_416); +lean_ctor_set(x_418, 1, x_417); +return x_418; } } } else { -uint8_t x_424; +uint8_t x_419; lean_dec(x_2); -x_424 = 1; -x_2 = x_363; -x_7 = x_424; +x_419 = 1; +x_2 = x_359; +x_7 = x_419; goto _start; } } } -block_232: +block_229: { lean_object* x_15; uint8_t x_16; lean_dec(x_14); @@ -6751,25 +6748,25 @@ else { uint8_t x_44; lean_free_object(x_19); -lean_dec(x_22); lean_dec(x_8); x_44 = !lean_is_exclusive(x_23); if (x_44 == 0) { -lean_object* x_45; -x_45 = lean_ctor_get(x_23, 0); +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_23, 1); lean_dec(x_45); +x_46 = lean_ctor_get(x_23, 0); +lean_dec(x_46); +lean_ctor_set(x_23, 1, x_22); return x_23; } else { -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_23, 1); -lean_inc(x_46); +lean_object* x_47; lean_dec(x_23); x_47 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_47, 0, x_30); -lean_ctor_set(x_47, 1, x_46); +lean_ctor_set(x_47, 1, x_22); return x_47; } } @@ -6880,34 +6877,31 @@ return x_67; } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; -lean_dec(x_49); +lean_object* x_68; lean_object* x_69; lean_dec(x_8); -x_68 = lean_ctor_get(x_50, 1); -lean_inc(x_68); if (lean_is_exclusive(x_50)) { lean_ctor_release(x_50, 0); lean_ctor_release(x_50, 1); - x_69 = x_50; + x_68 = x_50; } else { lean_dec_ref(x_50); - x_69 = lean_box(0); + x_68 = lean_box(0); } -if (lean_is_scalar(x_69)) { - x_70 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_68)) { + x_69 = lean_alloc_ctor(1, 2, 0); } else { - x_70 = x_69; + x_69 = x_68; } -lean_ctor_set(x_70, 0, x_57); -lean_ctor_set(x_70, 1, x_68); -return x_70; +lean_ctor_set(x_69, 0, x_57); +lean_ctor_set(x_69, 1, x_49); +return x_69; } } } } else { -uint8_t x_71; +uint8_t x_70; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); @@ -6915,313 +6909,310 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_71 = !lean_is_exclusive(x_19); -if (x_71 == 0) +x_70 = !lean_is_exclusive(x_19); +if (x_70 == 0) { return x_19; } else { -lean_object* x_72; lean_object* x_73; lean_object* x_74; -x_72 = lean_ctor_get(x_19, 0); -x_73 = lean_ctor_get(x_19, 1); -lean_inc(x_73); +lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_71 = lean_ctor_get(x_19, 0); +x_72 = lean_ctor_get(x_19, 1); lean_inc(x_72); +lean_inc(x_71); lean_dec(x_19); -x_74 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -return x_74; +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +return x_73; } } } else { -lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; -x_75 = l_Lean_Syntax_getArgs(x_2); -x_76 = lean_array_get_size(x_75); +lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; +x_74 = l_Lean_Syntax_getArgs(x_2); +x_75 = lean_array_get_size(x_74); +lean_dec(x_74); +x_76 = lean_unsigned_to_nat(2u); +x_77 = lean_nat_dec_eq(x_75, x_76); lean_dec(x_75); -x_77 = lean_unsigned_to_nat(2u); -x_78 = lean_nat_dec_eq(x_76, x_77); -lean_dec(x_76); -if (x_78 == 0) +if (x_77 == 0) { -lean_object* x_79; uint8_t x_80; lean_object* x_81; -x_79 = lean_box(0); -x_80 = 1; +lean_object* x_78; uint8_t x_79; lean_object* x_80; +x_78 = lean_box(0); +x_79 = 1; lean_inc(x_9); -x_81 = l_Lean_Elab_Term_elabTerm(x_2, x_79, x_80, x_80, x_9, x_10); -if (lean_obj_tag(x_81) == 0) +x_80 = l_Lean_Elab_Term_elabTerm(x_2, x_78, x_79, x_79, x_9, x_10); +if (lean_obj_tag(x_80) == 0) { -uint8_t x_82; -x_82 = !lean_is_exclusive(x_81); -if (x_82 == 0) +uint8_t x_81; +x_81 = !lean_is_exclusive(x_80); +if (x_81 == 0) { -lean_object* x_83; lean_object* x_84; lean_object* x_85; -x_83 = lean_ctor_get(x_81, 0); -x_84 = lean_ctor_get(x_81, 1); -lean_inc(x_84); -x_85 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_83, x_3, x_4, x_5, x_6, x_7, x_9, x_84); -if (lean_obj_tag(x_85) == 0) +lean_object* x_82; lean_object* x_83; lean_object* x_84; +x_82 = lean_ctor_get(x_80, 0); +x_83 = lean_ctor_get(x_80, 1); +lean_inc(x_83); +x_84 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_82, x_3, x_4, x_5, x_6, x_7, x_9, x_83); +if (lean_obj_tag(x_84) == 0) { -uint8_t x_86; -x_86 = !lean_is_exclusive(x_85); -if (x_86 == 0) +uint8_t x_85; +x_85 = !lean_is_exclusive(x_84); +if (x_85 == 0) { -lean_object* x_87; -x_87 = lean_array_push(x_8, x_85); -lean_ctor_set(x_81, 0, x_87); -return x_81; +lean_object* x_86; +x_86 = lean_array_push(x_8, x_84); +lean_ctor_set(x_80, 0, x_86); +return x_80; } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_88 = lean_ctor_get(x_85, 0); -x_89 = lean_ctor_get(x_85, 1); -lean_inc(x_89); +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_87 = lean_ctor_get(x_84, 0); +x_88 = lean_ctor_get(x_84, 1); lean_inc(x_88); -lean_dec(x_85); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -x_91 = lean_array_push(x_8, x_90); -lean_ctor_set(x_81, 0, x_91); -return x_81; +lean_inc(x_87); +lean_dec(x_84); +x_89 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_89, 0, x_87); +lean_ctor_set(x_89, 1, x_88); +x_90 = lean_array_push(x_8, x_89); +lean_ctor_set(x_80, 0, x_90); +return x_80; } } else { +lean_object* x_91; +x_91 = lean_ctor_get(x_84, 0); +lean_inc(x_91); +if (lean_obj_tag(x_91) == 0) +{ lean_object* x_92; -x_92 = lean_ctor_get(x_85, 0); +x_92 = lean_ctor_get(x_91, 0); lean_inc(x_92); if (lean_obj_tag(x_92) == 0) { -lean_object* x_93; -x_93 = lean_ctor_get(x_92, 0); -lean_inc(x_93); -if (lean_obj_tag(x_93) == 0) +uint8_t x_93; +lean_dec(x_91); +x_93 = !lean_is_exclusive(x_84); +if (x_93 == 0) { -uint8_t x_94; +lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_94 = lean_ctor_get(x_84, 0); +lean_dec(x_94); +x_95 = lean_ctor_get(x_92, 0); +lean_inc(x_95); lean_dec(x_92); -x_94 = !lean_is_exclusive(x_85); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_95 = lean_ctor_get(x_85, 0); -lean_dec(x_95); -x_96 = lean_ctor_get(x_93, 0); -lean_inc(x_96); -lean_dec(x_93); -lean_ctor_set(x_85, 0, x_96); -x_97 = lean_array_push(x_8, x_85); -lean_ctor_set(x_81, 0, x_97); -return x_81; +lean_ctor_set(x_84, 0, x_95); +x_96 = lean_array_push(x_8, x_84); +lean_ctor_set(x_80, 0, x_96); +return x_80; } else { -lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; -x_98 = lean_ctor_get(x_85, 1); +lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_97 = lean_ctor_get(x_84, 1); +lean_inc(x_97); +lean_dec(x_84); +x_98 = lean_ctor_get(x_92, 0); lean_inc(x_98); -lean_dec(x_85); -x_99 = lean_ctor_get(x_93, 0); -lean_inc(x_99); -lean_dec(x_93); -x_100 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_98); -x_101 = lean_array_push(x_8, x_100); -lean_ctor_set(x_81, 0, x_101); -return x_81; +lean_dec(x_92); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_97); +x_100 = lean_array_push(x_8, x_99); +lean_ctor_set(x_80, 0, x_100); +return x_80; } } else { -uint8_t x_102; -lean_free_object(x_81); -lean_dec(x_84); +uint8_t x_101; +lean_free_object(x_80); +lean_dec(x_83); lean_dec(x_8); -x_102 = !lean_is_exclusive(x_85); -if (x_102 == 0) +x_101 = !lean_is_exclusive(x_84); +if (x_101 == 0) { -lean_object* x_103; -x_103 = lean_ctor_get(x_85, 0); -lean_dec(x_103); -return x_85; +lean_object* x_102; +x_102 = lean_ctor_get(x_84, 0); +lean_dec(x_102); +return x_84; } else { -lean_object* x_104; lean_object* x_105; -x_104 = lean_ctor_get(x_85, 1); -lean_inc(x_104); -lean_dec(x_85); -x_105 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_105, 0, x_92); -lean_ctor_set(x_105, 1, x_104); -return x_105; -} -} -} -else -{ -uint8_t x_106; -lean_free_object(x_81); +lean_object* x_103; lean_object* x_104; +x_103 = lean_ctor_get(x_84, 1); +lean_inc(x_103); lean_dec(x_84); -lean_dec(x_8); -x_106 = !lean_is_exclusive(x_85); -if (x_106 == 0) +x_104 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_104, 0, x_91); +lean_ctor_set(x_104, 1, x_103); +return x_104; +} +} +} +else { -lean_object* x_107; -x_107 = lean_ctor_get(x_85, 0); +uint8_t x_105; +lean_free_object(x_80); +lean_dec(x_8); +x_105 = !lean_is_exclusive(x_84); +if (x_105 == 0) +{ +lean_object* x_106; lean_object* x_107; +x_106 = lean_ctor_get(x_84, 1); +lean_dec(x_106); +x_107 = lean_ctor_get(x_84, 0); lean_dec(x_107); -return x_85; +lean_ctor_set(x_84, 1, x_83); +return x_84; } else { -lean_object* x_108; lean_object* x_109; -x_108 = lean_ctor_get(x_85, 1); -lean_inc(x_108); -lean_dec(x_85); -x_109 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_109, 0, x_92); -lean_ctor_set(x_109, 1, x_108); -return x_109; +lean_object* x_108; +lean_dec(x_84); +x_108 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_108, 0, x_91); +lean_ctor_set(x_108, 1, x_83); +return x_108; } } } } else { -lean_object* x_110; lean_object* x_111; lean_object* x_112; -x_110 = lean_ctor_get(x_81, 0); -x_111 = lean_ctor_get(x_81, 1); -lean_inc(x_111); +lean_object* x_109; lean_object* x_110; lean_object* x_111; +x_109 = lean_ctor_get(x_80, 0); +x_110 = lean_ctor_get(x_80, 1); lean_inc(x_110); -lean_dec(x_81); -lean_inc(x_111); -x_112 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_110, x_3, x_4, x_5, x_6, x_7, x_9, x_111); -if (lean_obj_tag(x_112) == 0) +lean_inc(x_109); +lean_dec(x_80); +lean_inc(x_110); +x_111 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_109, x_3, x_4, x_5, x_6, x_7, x_9, x_110); +if (lean_obj_tag(x_111) == 0) { -lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; -x_113 = lean_ctor_get(x_112, 0); +lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); lean_inc(x_113); -x_114 = lean_ctor_get(x_112, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_115 = x_112; +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_114 = x_111; } else { - lean_dec_ref(x_112); - x_115 = lean_box(0); + lean_dec_ref(x_111); + x_114 = lean_box(0); } -if (lean_is_scalar(x_115)) { - x_116 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(0, 2, 0); } else { - x_116 = x_115; + x_115 = x_114; } -lean_ctor_set(x_116, 0, x_113); -lean_ctor_set(x_116, 1, x_114); -x_117 = lean_array_push(x_8, x_116); -x_118 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_111); -return x_118; +lean_ctor_set(x_115, 0, x_112); +lean_ctor_set(x_115, 1, x_113); +x_116 = lean_array_push(x_8, x_115); +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_116); +lean_ctor_set(x_117, 1, x_110); +return x_117; } else { +lean_object* x_118; +x_118 = lean_ctor_get(x_111, 0); +lean_inc(x_118); +if (lean_obj_tag(x_118) == 0) +{ lean_object* x_119; -x_119 = lean_ctor_get(x_112, 0); +x_119 = lean_ctor_get(x_118, 0); lean_inc(x_119); if (lean_obj_tag(x_119) == 0) { -lean_object* x_120; -x_120 = lean_ctor_get(x_119, 0); +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_118); +x_120 = lean_ctor_get(x_111, 1); lean_inc(x_120); -if (lean_obj_tag(x_120) == 0) -{ -lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_121 = x_111; +} else { + lean_dec_ref(x_111); + x_121 = lean_box(0); +} +x_122 = lean_ctor_get(x_119, 0); +lean_inc(x_122); lean_dec(x_119); -x_121 = lean_ctor_get(x_112, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_122 = x_112; +if (lean_is_scalar(x_121)) { + x_123 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_112); - x_122 = lean_box(0); + x_123 = x_121; } -x_123 = lean_ctor_get(x_120, 0); -lean_inc(x_123); -lean_dec(x_120); -if (lean_is_scalar(x_122)) { - x_124 = lean_alloc_ctor(1, 2, 0); -} else { - x_124 = x_122; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_121); -x_125 = lean_array_push(x_8, x_124); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_111); -return x_126; +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_120); +x_124 = lean_array_push(x_8, x_123); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_110); +return x_125; } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -lean_dec(x_111); +lean_object* x_126; lean_object* x_127; lean_object* x_128; +lean_dec(x_110); lean_dec(x_8); -x_127 = lean_ctor_get(x_112, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_128 = x_112; +x_126 = lean_ctor_get(x_111, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_127 = x_111; } else { - lean_dec_ref(x_112); - x_128 = lean_box(0); + lean_dec_ref(x_111); + x_127 = lean_box(0); } -if (lean_is_scalar(x_128)) { - x_129 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_127)) { + x_128 = lean_alloc_ctor(1, 2, 0); } else { - x_129 = x_128; + x_128 = x_127; } -lean_ctor_set(x_129, 0, x_119); -lean_ctor_set(x_129, 1, x_127); -return x_129; +lean_ctor_set(x_128, 0, x_118); +lean_ctor_set(x_128, 1, x_126); +return x_128; } } else { -lean_object* x_130; lean_object* x_131; lean_object* x_132; -lean_dec(x_111); +lean_object* x_129; lean_object* x_130; lean_dec(x_8); -x_130 = lean_ctor_get(x_112, 1); -lean_inc(x_130); -if (lean_is_exclusive(x_112)) { - lean_ctor_release(x_112, 0); - lean_ctor_release(x_112, 1); - x_131 = x_112; +if (lean_is_exclusive(x_111)) { + lean_ctor_release(x_111, 0); + lean_ctor_release(x_111, 1); + x_129 = x_111; } else { - lean_dec_ref(x_112); - x_131 = lean_box(0); + lean_dec_ref(x_111); + x_129 = lean_box(0); } -if (lean_is_scalar(x_131)) { - x_132 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_129)) { + x_130 = lean_alloc_ctor(1, 2, 0); } else { - x_132 = x_131; + x_130 = x_129; } -lean_ctor_set(x_132, 0, x_119); -lean_ctor_set(x_132, 1, x_130); -return x_132; +lean_ctor_set(x_130, 0, x_118); +lean_ctor_set(x_130, 1, x_110); +return x_130; } } } } else { -uint8_t x_133; +uint8_t x_131; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); @@ -7229,271 +7220,293 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_133 = !lean_is_exclusive(x_81); -if (x_133 == 0) +x_131 = !lean_is_exclusive(x_80); +if (x_131 == 0) { -return x_81; +return x_80; } else { -lean_object* x_134; lean_object* x_135; lean_object* x_136; -x_134 = lean_ctor_get(x_81, 0); -x_135 = lean_ctor_get(x_81, 1); -lean_inc(x_135); -lean_inc(x_134); -lean_dec(x_81); -x_136 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_136, 0, x_134); -lean_ctor_set(x_136, 1, x_135); -return x_136; +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_80, 0); +x_133 = lean_ctor_get(x_80, 1); +lean_inc(x_133); +lean_inc(x_132); +lean_dec(x_80); +x_134 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_134, 0, x_132); +lean_ctor_set(x_134, 1, x_133); +return x_134; } } } else { -lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; -x_137 = lean_unsigned_to_nat(0u); -x_138 = l_Lean_Syntax_getArg(x_2, x_137); -x_139 = l_Lean_Syntax_getKind___closed__4; -lean_inc(x_138); -x_140 = l_Lean_Syntax_isOfKind(x_138, x_139); -if (x_140 == 0) +lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; +x_135 = lean_unsigned_to_nat(0u); +x_136 = l_Lean_Syntax_getArg(x_2, x_135); +x_137 = l_Lean_Syntax_getKind___closed__4; +lean_inc(x_136); +x_138 = l_Lean_Syntax_isOfKind(x_136, x_137); +if (x_138 == 0) { -lean_object* x_141; uint8_t x_142; lean_object* x_143; -lean_dec(x_138); -x_141 = lean_box(0); -x_142 = 1; +lean_object* x_139; uint8_t x_140; lean_object* x_141; +lean_dec(x_136); +x_139 = lean_box(0); +x_140 = 1; lean_inc(x_9); -x_143 = l_Lean_Elab_Term_elabTerm(x_2, x_141, x_142, x_142, x_9, x_10); -if (lean_obj_tag(x_143) == 0) +x_141 = l_Lean_Elab_Term_elabTerm(x_2, x_139, x_140, x_140, x_9, x_10); +if (lean_obj_tag(x_141) == 0) { -uint8_t x_144; -x_144 = !lean_is_exclusive(x_143); -if (x_144 == 0) +uint8_t x_142; +x_142 = !lean_is_exclusive(x_141); +if (x_142 == 0) { -lean_object* x_145; lean_object* x_146; lean_object* x_147; -x_145 = lean_ctor_get(x_143, 0); -x_146 = lean_ctor_get(x_143, 1); -lean_inc(x_146); -x_147 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_145, x_3, x_4, x_5, x_6, x_7, x_9, x_146); -if (lean_obj_tag(x_147) == 0) +lean_object* x_143; lean_object* x_144; lean_object* x_145; +x_143 = lean_ctor_get(x_141, 0); +x_144 = lean_ctor_get(x_141, 1); +lean_inc(x_144); +x_145 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_143, x_3, x_4, x_5, x_6, x_7, x_9, x_144); +if (lean_obj_tag(x_145) == 0) { -uint8_t x_148; -x_148 = !lean_is_exclusive(x_147); -if (x_148 == 0) +uint8_t x_146; +x_146 = !lean_is_exclusive(x_145); +if (x_146 == 0) { -lean_object* x_149; -x_149 = lean_array_push(x_8, x_147); -lean_ctor_set(x_143, 0, x_149); -return x_143; +lean_object* x_147; +x_147 = lean_array_push(x_8, x_145); +lean_ctor_set(x_141, 0, x_147); +return x_141; } else { -lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; -x_150 = lean_ctor_get(x_147, 0); -x_151 = lean_ctor_get(x_147, 1); -lean_inc(x_151); -lean_inc(x_150); -lean_dec(x_147); -x_152 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_152, 0, x_150); -lean_ctor_set(x_152, 1, x_151); -x_153 = lean_array_push(x_8, x_152); -lean_ctor_set(x_143, 0, x_153); -return x_143; +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; +x_148 = lean_ctor_get(x_145, 0); +x_149 = lean_ctor_get(x_145, 1); +lean_inc(x_149); +lean_inc(x_148); +lean_dec(x_145); +x_150 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_150, 0, x_148); +lean_ctor_set(x_150, 1, x_149); +x_151 = lean_array_push(x_8, x_150); +lean_ctor_set(x_141, 0, x_151); +return x_141; } } else { -lean_object* x_154; -x_154 = lean_ctor_get(x_147, 0); -lean_inc(x_154); -if (lean_obj_tag(x_154) == 0) +lean_object* x_152; +x_152 = lean_ctor_get(x_145, 0); +lean_inc(x_152); +if (lean_obj_tag(x_152) == 0) { -lean_object* x_155; -x_155 = lean_ctor_get(x_154, 0); -lean_inc(x_155); -if (lean_obj_tag(x_155) == 0) +lean_object* x_153; +x_153 = lean_ctor_get(x_152, 0); +lean_inc(x_153); +if (lean_obj_tag(x_153) == 0) { -uint8_t x_156; -lean_dec(x_154); -x_156 = !lean_is_exclusive(x_147); -if (x_156 == 0) +uint8_t x_154; +lean_dec(x_152); +x_154 = !lean_is_exclusive(x_145); +if (x_154 == 0) { -lean_object* x_157; lean_object* x_158; lean_object* x_159; -x_157 = lean_ctor_get(x_147, 0); -lean_dec(x_157); -x_158 = lean_ctor_get(x_155, 0); +lean_object* x_155; lean_object* x_156; lean_object* x_157; +x_155 = lean_ctor_get(x_145, 0); +lean_dec(x_155); +x_156 = lean_ctor_get(x_153, 0); +lean_inc(x_156); +lean_dec(x_153); +lean_ctor_set(x_145, 0, x_156); +x_157 = lean_array_push(x_8, x_145); +lean_ctor_set(x_141, 0, x_157); +return x_141; +} +else +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_158 = lean_ctor_get(x_145, 1); lean_inc(x_158); -lean_dec(x_155); -lean_ctor_set(x_147, 0, x_158); -x_159 = lean_array_push(x_8, x_147); -lean_ctor_set(x_143, 0, x_159); -return x_143; -} -else -{ -lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; -x_160 = lean_ctor_get(x_147, 1); -lean_inc(x_160); -lean_dec(x_147); -x_161 = lean_ctor_get(x_155, 0); -lean_inc(x_161); -lean_dec(x_155); -x_162 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_160); -x_163 = lean_array_push(x_8, x_162); -lean_ctor_set(x_143, 0, x_163); -return x_143; +lean_dec(x_145); +x_159 = lean_ctor_get(x_153, 0); +lean_inc(x_159); +lean_dec(x_153); +x_160 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_158); +x_161 = lean_array_push(x_8, x_160); +lean_ctor_set(x_141, 0, x_161); +return x_141; } } else { -uint8_t x_164; -lean_free_object(x_143); -lean_dec(x_146); +uint8_t x_162; +lean_free_object(x_141); +lean_dec(x_144); lean_dec(x_8); -x_164 = !lean_is_exclusive(x_147); -if (x_164 == 0) +x_162 = !lean_is_exclusive(x_145); +if (x_162 == 0) { -lean_object* x_165; -x_165 = lean_ctor_get(x_147, 0); -lean_dec(x_165); -return x_147; +lean_object* x_163; +x_163 = lean_ctor_get(x_145, 0); +lean_dec(x_163); +return x_145; } else { -lean_object* x_166; lean_object* x_167; -x_166 = lean_ctor_get(x_147, 1); -lean_inc(x_166); -lean_dec(x_147); -x_167 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_167, 0, x_154); -lean_ctor_set(x_167, 1, x_166); -return x_167; +lean_object* x_164; lean_object* x_165; +x_164 = lean_ctor_get(x_145, 1); +lean_inc(x_164); +lean_dec(x_145); +x_165 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_165, 0, x_152); +lean_ctor_set(x_165, 1, x_164); +return x_165; } } } else { -uint8_t x_168; -lean_free_object(x_143); -lean_dec(x_146); +uint8_t x_166; +lean_free_object(x_141); lean_dec(x_8); -x_168 = !lean_is_exclusive(x_147); -if (x_168 == 0) +x_166 = !lean_is_exclusive(x_145); +if (x_166 == 0) +{ +lean_object* x_167; lean_object* x_168; +x_167 = lean_ctor_get(x_145, 1); +lean_dec(x_167); +x_168 = lean_ctor_get(x_145, 0); +lean_dec(x_168); +lean_ctor_set(x_145, 1, x_144); +return x_145; +} +else { lean_object* x_169; -x_169 = lean_ctor_get(x_147, 0); -lean_dec(x_169); -return x_147; +lean_dec(x_145); +x_169 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_169, 0, x_152); +lean_ctor_set(x_169, 1, x_144); +return x_169; +} +} +} } else { -lean_object* x_170; lean_object* x_171; -x_170 = lean_ctor_get(x_147, 1); +lean_object* x_170; lean_object* x_171; lean_object* x_172; +x_170 = lean_ctor_get(x_141, 0); +x_171 = lean_ctor_get(x_141, 1); +lean_inc(x_171); lean_inc(x_170); -lean_dec(x_147); -x_171 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_171, 0, x_154); -lean_ctor_set(x_171, 1, x_170); -return x_171; -} +lean_dec(x_141); +lean_inc(x_171); +x_172 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_170, x_3, x_4, x_5, x_6, x_7, x_9, x_171); +if (lean_obj_tag(x_172) == 0) +{ +lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; +x_173 = lean_ctor_get(x_172, 0); +lean_inc(x_173); +x_174 = lean_ctor_get(x_172, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_175 = x_172; +} else { + lean_dec_ref(x_172); + x_175 = lean_box(0); } +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(0, 2, 0); +} else { + x_176 = x_175; } +lean_ctor_set(x_176, 0, x_173); +lean_ctor_set(x_176, 1, x_174); +x_177 = lean_array_push(x_8, x_176); +x_178 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_178, 0, x_177); +lean_ctor_set(x_178, 1, x_171); +return x_178; } else { -lean_object* x_172; lean_object* x_173; lean_object* x_174; -x_172 = lean_ctor_get(x_143, 0); -x_173 = lean_ctor_get(x_143, 1); -lean_inc(x_173); -lean_inc(x_172); -lean_dec(x_143); -lean_inc(x_173); -x_174 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_172, x_3, x_4, x_5, x_6, x_7, x_9, x_173); -if (lean_obj_tag(x_174) == 0) +lean_object* x_179; +x_179 = lean_ctor_get(x_172, 0); +lean_inc(x_179); +if (lean_obj_tag(x_179) == 0) { -lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; -x_175 = lean_ctor_get(x_174, 0); -lean_inc(x_175); -x_176 = lean_ctor_get(x_174, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_177 = x_174; -} else { - lean_dec_ref(x_174); - x_177 = lean_box(0); -} -if (lean_is_scalar(x_177)) { - x_178 = lean_alloc_ctor(0, 2, 0); -} else { - x_178 = x_177; -} -lean_ctor_set(x_178, 0, x_175); -lean_ctor_set(x_178, 1, x_176); -x_179 = lean_array_push(x_8, x_178); -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_173); -return x_180; -} -else +lean_object* x_180; +x_180 = lean_ctor_get(x_179, 0); +lean_inc(x_180); +if (lean_obj_tag(x_180) == 0) { -lean_object* x_181; -x_181 = lean_ctor_get(x_174, 0); +lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; +lean_dec(x_179); +x_181 = lean_ctor_get(x_172, 1); lean_inc(x_181); -if (lean_obj_tag(x_181) == 0) -{ -lean_object* x_182; -x_182 = lean_ctor_get(x_181, 0); -lean_inc(x_182); -if (lean_obj_tag(x_182) == 0) -{ -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_dec(x_181); -x_183 = lean_ctor_get(x_174, 1); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_182 = x_172; +} else { + lean_dec_ref(x_172); + x_182 = lean_box(0); +} +x_183 = lean_ctor_get(x_180, 0); lean_inc(x_183); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_184 = x_174; +lean_dec(x_180); +if (lean_is_scalar(x_182)) { + x_184 = lean_alloc_ctor(1, 2, 0); } else { - lean_dec_ref(x_174); - x_184 = lean_box(0); -} -x_185 = lean_ctor_get(x_182, 0); -lean_inc(x_185); -lean_dec(x_182); -if (lean_is_scalar(x_184)) { - x_186 = lean_alloc_ctor(1, 2, 0); -} else { - x_186 = x_184; + x_184 = x_182; } +lean_ctor_set(x_184, 0, x_183); +lean_ctor_set(x_184, 1, x_181); +x_185 = lean_array_push(x_8, x_184); +x_186 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_186, 0, x_185); -lean_ctor_set(x_186, 1, x_183); -x_187 = lean_array_push(x_8, x_186); -x_188 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_188, 0, x_187); -lean_ctor_set(x_188, 1, x_173); -return x_188; +lean_ctor_set(x_186, 1, x_171); +return x_186; } else { -lean_object* x_189; lean_object* x_190; lean_object* x_191; -lean_dec(x_173); +lean_object* x_187; lean_object* x_188; lean_object* x_189; +lean_dec(x_171); lean_dec(x_8); -x_189 = lean_ctor_get(x_174, 1); -lean_inc(x_189); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_190 = x_174; +x_187 = lean_ctor_get(x_172, 1); +lean_inc(x_187); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_188 = x_172; } else { - lean_dec_ref(x_174); + lean_dec_ref(x_172); + x_188 = lean_box(0); +} +if (lean_is_scalar(x_188)) { + x_189 = lean_alloc_ctor(1, 2, 0); +} else { + x_189 = x_188; +} +lean_ctor_set(x_189, 0, x_179); +lean_ctor_set(x_189, 1, x_187); +return x_189; +} +} +else +{ +lean_object* x_190; lean_object* x_191; +lean_dec(x_8); +if (lean_is_exclusive(x_172)) { + lean_ctor_release(x_172, 0); + lean_ctor_release(x_172, 1); + x_190 = x_172; +} else { + lean_dec_ref(x_172); x_190 = lean_box(0); } if (lean_is_scalar(x_190)) { @@ -7501,41 +7514,16 @@ if (lean_is_scalar(x_190)) { } else { x_191 = x_190; } -lean_ctor_set(x_191, 0, x_181); -lean_ctor_set(x_191, 1, x_189); +lean_ctor_set(x_191, 0, x_179); +lean_ctor_set(x_191, 1, x_171); return x_191; } } -else -{ -lean_object* x_192; lean_object* x_193; lean_object* x_194; -lean_dec(x_173); -lean_dec(x_8); -x_192 = lean_ctor_get(x_174, 1); -lean_inc(x_192); -if (lean_is_exclusive(x_174)) { - lean_ctor_release(x_174, 0); - lean_ctor_release(x_174, 1); - x_193 = x_174; -} else { - lean_dec_ref(x_174); - x_193 = lean_box(0); -} -if (lean_is_scalar(x_193)) { - x_194 = lean_alloc_ctor(1, 2, 0); -} else { - x_194 = x_193; -} -lean_ctor_set(x_194, 0, x_181); -lean_ctor_set(x_194, 1, x_192); -return x_194; -} -} } } else { -uint8_t x_195; +uint8_t x_192; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); @@ -7543,49 +7531,59 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_1); -x_195 = !lean_is_exclusive(x_143); -if (x_195 == 0) +x_192 = !lean_is_exclusive(x_141); +if (x_192 == 0) { -return x_143; +return x_141; } else { -lean_object* x_196; lean_object* x_197; lean_object* x_198; -x_196 = lean_ctor_get(x_143, 0); -x_197 = lean_ctor_get(x_143, 1); -lean_inc(x_197); +lean_object* x_193; lean_object* x_194; lean_object* x_195; +x_193 = lean_ctor_get(x_141, 0); +x_194 = lean_ctor_get(x_141, 1); +lean_inc(x_194); +lean_inc(x_193); +lean_dec(x_141); +x_195 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_195, 0, x_193); +lean_ctor_set(x_195, 1, x_194); +return x_195; +} +} +} +else +{ +if (lean_obj_tag(x_136) == 3) +{ +lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; uint8_t x_201; +x_196 = lean_ctor_get(x_136, 2); lean_inc(x_196); -lean_dec(x_143); -x_198 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_198, 0, x_196); -lean_ctor_set(x_198, 1, x_197); -return x_198; -} -} -} -else +x_197 = lean_ctor_get(x_136, 3); +lean_inc(x_197); +lean_dec(x_136); +x_198 = lean_unsigned_to_nat(1u); +x_199 = l_Lean_Syntax_getArg(x_2, x_198); +x_200 = l_Lean_Syntax_getArgs(x_199); +lean_dec(x_199); +x_201 = l_Array_isEmpty___rarg(x_200); +if (x_201 == 0) { -if (lean_obj_tag(x_138) == 3) -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; uint8_t x_204; -x_199 = lean_ctor_get(x_138, 2); -lean_inc(x_199); -x_200 = lean_ctor_get(x_138, 3); -lean_inc(x_200); -lean_dec(x_138); -x_201 = lean_unsigned_to_nat(1u); -x_202 = l_Lean_Syntax_getArg(x_2, x_201); -x_203 = l_Lean_Syntax_getArgs(x_202); -lean_dec(x_202); -x_204 = l_Array_isEmpty___rarg(x_203); -if (x_204 == 0) +lean_object* x_202; lean_object* x_203; lean_object* x_204; +x_202 = l_Lean_stxInh; +x_203 = lean_array_get(x_202, x_200, x_135); +lean_dec(x_200); +x_204 = l_Lean_Elab_Term_elabExplicitUniv(x_203, x_9, x_10); +lean_dec(x_203); +if (lean_obj_tag(x_204) == 0) { lean_object* x_205; lean_object* x_206; lean_object* x_207; -x_205 = l_Lean_stxInh; -x_206 = lean_array_get(x_205, x_203, x_137); -lean_dec(x_203); -x_207 = l_Lean_Elab_Term_elabExplicitUniv(x_206, x_9, x_10); -lean_dec(x_206); +x_205 = lean_ctor_get(x_204, 0); +lean_inc(x_205); +x_206 = lean_ctor_get(x_204, 1); +lean_inc(x_206); +lean_dec(x_204); +lean_inc(x_9); +x_207 = l_Lean_Elab_Term_resolveName(x_2, x_196, x_197, x_205, x_9, x_206); if (lean_obj_tag(x_207) == 0) { lean_object* x_208; lean_object* x_209; lean_object* x_210; @@ -7594,135 +7592,125 @@ lean_inc(x_208); x_209 = lean_ctor_get(x_207, 1); lean_inc(x_209); lean_dec(x_207); -lean_inc(x_9); -x_210 = l_Lean_Elab_Term_resolveName(x_2, x_199, x_200, x_208, x_9, x_209); -if (lean_obj_tag(x_210) == 0) -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_211 = lean_ctor_get(x_210, 0); -lean_inc(x_211); -x_212 = lean_ctor_get(x_210, 1); -lean_inc(x_212); -lean_dec(x_210); -x_213 = l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_211, x_9, x_212); -return x_213; -} -else -{ -uint8_t x_214; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_214 = !lean_is_exclusive(x_210); -if (x_214 == 0) -{ +x_210 = l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__2(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_208, x_9, x_209); return x_210; } else { -lean_object* x_215; lean_object* x_216; lean_object* x_217; -x_215 = lean_ctor_get(x_210, 0); -x_216 = lean_ctor_get(x_210, 1); -lean_inc(x_216); -lean_inc(x_215); -lean_dec(x_210); -x_217 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_217, 0, x_215); -lean_ctor_set(x_217, 1, x_216); -return x_217; -} -} -} -else -{ -uint8_t x_218; -lean_dec(x_200); -lean_dec(x_199); +uint8_t x_211; lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); lean_dec(x_1); -x_218 = !lean_is_exclusive(x_207); -if (x_218 == 0) +x_211 = !lean_is_exclusive(x_207); +if (x_211 == 0) { return x_207; } else { -lean_object* x_219; lean_object* x_220; lean_object* x_221; -x_219 = lean_ctor_get(x_207, 0); -x_220 = lean_ctor_get(x_207, 1); -lean_inc(x_220); -lean_inc(x_219); +lean_object* x_212; lean_object* x_213; lean_object* x_214; +x_212 = lean_ctor_get(x_207, 0); +x_213 = lean_ctor_get(x_207, 1); +lean_inc(x_213); +lean_inc(x_212); lean_dec(x_207); -x_221 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_221, 0, x_219); -lean_ctor_set(x_221, 1, x_220); -return x_221; +x_214 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_214, 0, x_212); +lean_ctor_set(x_214, 1, x_213); +return x_214; } } } else { -lean_object* x_222; lean_object* x_223; -lean_dec(x_203); -x_222 = lean_box(0); -lean_inc(x_9); -x_223 = l_Lean_Elab_Term_resolveName(x_2, x_199, x_200, x_222, x_9, x_10); -if (lean_obj_tag(x_223) == 0) -{ -lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_224 = lean_ctor_get(x_223, 0); -lean_inc(x_224); -x_225 = lean_ctor_get(x_223, 1); -lean_inc(x_225); -lean_dec(x_223); -x_226 = l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__3(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_224, x_9, x_225); -return x_226; -} -else -{ -uint8_t x_227; +uint8_t x_215; +lean_dec(x_197); +lean_dec(x_196); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); +lean_dec(x_2); lean_dec(x_1); -x_227 = !lean_is_exclusive(x_223); -if (x_227 == 0) +x_215 = !lean_is_exclusive(x_204); +if (x_215 == 0) { +return x_204; +} +else +{ +lean_object* x_216; lean_object* x_217; lean_object* x_218; +x_216 = lean_ctor_get(x_204, 0); +x_217 = lean_ctor_get(x_204, 1); +lean_inc(x_217); +lean_inc(x_216); +lean_dec(x_204); +x_218 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_218, 0, x_216); +lean_ctor_set(x_218, 1, x_217); +return x_218; +} +} +} +else +{ +lean_object* x_219; lean_object* x_220; +lean_dec(x_200); +x_219 = lean_box(0); +lean_inc(x_9); +x_220 = l_Lean_Elab_Term_resolveName(x_2, x_196, x_197, x_219, x_9, x_10); +if (lean_obj_tag(x_220) == 0) +{ +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_220, 0); +lean_inc(x_221); +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_223 = l_List_foldlM___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__3(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_221, x_9, x_222); return x_223; } else { -lean_object* x_228; lean_object* x_229; lean_object* x_230; -x_228 = lean_ctor_get(x_223, 0); -x_229 = lean_ctor_get(x_223, 1); -lean_inc(x_229); -lean_inc(x_228); -lean_dec(x_223); -x_230 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_230, 0, x_228); -lean_ctor_set(x_230, 1, x_229); -return x_230; +uint8_t x_224; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_224 = !lean_is_exclusive(x_220); +if (x_224 == 0) +{ +return x_220; +} +else +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_225 = lean_ctor_get(x_220, 0); +x_226 = lean_ctor_get(x_220, 1); +lean_inc(x_226); +lean_inc(x_225); +lean_dec(x_220); +x_227 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_227, 0, x_225); +lean_ctor_set(x_227, 1, x_226); +return x_227; } } } } else { -lean_object* x_231; -lean_dec(x_138); +lean_object* x_228; +lean_dec(x_136); lean_dec(x_9); lean_dec(x_8); lean_dec(x_6); @@ -7731,498 +7719,495 @@ lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_231 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_10); -return x_231; +x_228 = l_Lean_Elab_Term_throwUnsupportedSyntax___rarg(x_10); +return x_228; } } } } } -block_353: +block_349: { -lean_object* x_234; uint8_t x_235; -lean_dec(x_233); -x_234 = l_Lean_Parser_Term_proj___elambda__1___closed__2; +lean_object* x_231; uint8_t x_232; +lean_dec(x_230); +x_231 = l_Lean_Parser_Term_proj___elambda__1___closed__2; lean_inc(x_2); -x_235 = l_Lean_Syntax_isOfKind(x_2, x_234); -if (x_235 == 0) +x_232 = l_Lean_Syntax_isOfKind(x_2, x_231); +if (x_232 == 0) { -lean_object* x_236; uint8_t x_237; -x_236 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; +lean_object* x_233; uint8_t x_234; +x_233 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; lean_inc(x_2); -x_237 = l_Lean_Syntax_isOfKind(x_2, x_236); -if (x_237 == 0) +x_234 = l_Lean_Syntax_isOfKind(x_2, x_233); +if (x_234 == 0) { -lean_object* x_238; -x_238 = lean_box(0); -x_14 = x_238; -goto block_232; +lean_object* x_235; +x_235 = lean_box(0); +x_14 = x_235; +goto block_229; } else { -lean_object* x_239; lean_object* x_240; lean_object* x_241; uint8_t x_242; -x_239 = l_Lean_Syntax_getArgs(x_2); -x_240 = lean_array_get_size(x_239); -lean_dec(x_239); -x_241 = lean_unsigned_to_nat(4u); -x_242 = lean_nat_dec_eq(x_240, x_241); -lean_dec(x_240); -if (x_242 == 0) +lean_object* x_236; lean_object* x_237; lean_object* x_238; uint8_t x_239; +x_236 = l_Lean_Syntax_getArgs(x_2); +x_237 = lean_array_get_size(x_236); +lean_dec(x_236); +x_238 = lean_unsigned_to_nat(4u); +x_239 = lean_nat_dec_eq(x_237, x_238); +lean_dec(x_237); +if (x_239 == 0) { -lean_object* x_243; -x_243 = lean_box(0); -x_14 = x_243; -goto block_232; +lean_object* x_240; +x_240 = lean_box(0); +x_14 = x_240; +goto block_229; } else { -lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; -x_244 = lean_unsigned_to_nat(0u); -x_245 = l_Lean_Syntax_getArg(x_2, x_244); -x_246 = lean_unsigned_to_nat(2u); -x_247 = l_Lean_Syntax_getArg(x_2, x_246); +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_241 = lean_unsigned_to_nat(0u); +x_242 = l_Lean_Syntax_getArg(x_2, x_241); +x_243 = lean_unsigned_to_nat(2u); +x_244 = l_Lean_Syntax_getArg(x_2, x_243); lean_dec(x_2); -x_248 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_248, 0, x_247); -x_249 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_249, 0, x_248); -lean_ctor_set(x_249, 1, x_3); -x_2 = x_245; -x_3 = x_249; +x_245 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_245, 0, x_244); +x_246 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_246, 0, x_245); +lean_ctor_set(x_246, 1, x_3); +x_2 = x_242; +x_3 = x_246; goto _start; } } } else { -lean_object* x_251; lean_object* x_252; lean_object* x_253; uint8_t x_254; -x_251 = l_Lean_Syntax_getArgs(x_2); -x_252 = lean_array_get_size(x_251); -lean_dec(x_251); -x_253 = lean_unsigned_to_nat(3u); -x_254 = lean_nat_dec_eq(x_252, x_253); -if (x_254 == 0) +lean_object* x_248; lean_object* x_249; lean_object* x_250; uint8_t x_251; +x_248 = l_Lean_Syntax_getArgs(x_2); +x_249 = lean_array_get_size(x_248); +lean_dec(x_248); +x_250 = lean_unsigned_to_nat(3u); +x_251 = lean_nat_dec_eq(x_249, x_250); +if (x_251 == 0) +{ +lean_object* x_252; uint8_t x_253; +x_252 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; +lean_inc(x_2); +x_253 = l_Lean_Syntax_isOfKind(x_2, x_252); +if (x_253 == 0) +{ +lean_object* x_254; +lean_dec(x_249); +x_254 = lean_box(0); +x_14 = x_254; +goto block_229; +} +else { lean_object* x_255; uint8_t x_256; -x_255 = l_Lean_Parser_Term_arrayRef___elambda__1___closed__2; -lean_inc(x_2); -x_256 = l_Lean_Syntax_isOfKind(x_2, x_255); +x_255 = lean_unsigned_to_nat(4u); +x_256 = lean_nat_dec_eq(x_249, x_255); +lean_dec(x_249); if (x_256 == 0) { lean_object* x_257; -lean_dec(x_252); x_257 = lean_box(0); x_14 = x_257; -goto block_232; +goto block_229; } else { -lean_object* x_258; uint8_t x_259; -x_258 = lean_unsigned_to_nat(4u); -x_259 = lean_nat_dec_eq(x_252, x_258); -lean_dec(x_252); -if (x_259 == 0) -{ -lean_object* x_260; -x_260 = lean_box(0); -x_14 = x_260; -goto block_232; -} -else -{ -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_261 = lean_unsigned_to_nat(0u); -x_262 = l_Lean_Syntax_getArg(x_2, x_261); -x_263 = lean_unsigned_to_nat(2u); -x_264 = l_Lean_Syntax_getArg(x_2, x_263); +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; +x_258 = lean_unsigned_to_nat(0u); +x_259 = l_Lean_Syntax_getArg(x_2, x_258); +x_260 = lean_unsigned_to_nat(2u); +x_261 = l_Lean_Syntax_getArg(x_2, x_260); lean_dec(x_2); -x_265 = lean_alloc_ctor(2, 1, 0); -lean_ctor_set(x_265, 0, x_264); -x_266 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_266, 0, x_265); -lean_ctor_set(x_266, 1, x_3); -x_2 = x_262; -x_3 = x_266; +x_262 = lean_alloc_ctor(2, 1, 0); +lean_ctor_set(x_262, 0, x_261); +x_263 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_263, 0, x_262); +lean_ctor_set(x_263, 1, x_3); +x_2 = x_259; +x_3 = x_263; goto _start; } } } else { -lean_object* x_268; lean_object* x_269; lean_object* x_270; uint8_t x_271; -lean_dec(x_252); -x_268 = lean_unsigned_to_nat(2u); -x_269 = l_Lean_Syntax_getArg(x_2, x_268); -x_270 = l_Lean_fieldIdxKind___closed__2; -lean_inc(x_269); -x_271 = l_Lean_Syntax_isOfKind(x_269, x_270); -if (x_271 == 0) +lean_object* x_265; lean_object* x_266; lean_object* x_267; uint8_t x_268; +lean_dec(x_249); +x_265 = lean_unsigned_to_nat(2u); +x_266 = l_Lean_Syntax_getArg(x_2, x_265); +x_267 = l_Lean_fieldIdxKind___closed__2; +lean_inc(x_266); +x_268 = l_Lean_Syntax_isOfKind(x_266, x_267); +if (x_268 == 0) { -lean_object* x_272; uint8_t x_273; -x_272 = l_Lean_Syntax_getKind___closed__4; -lean_inc(x_269); -x_273 = l_Lean_Syntax_isOfKind(x_269, x_272); -if (x_273 == 0) +lean_object* x_269; uint8_t x_270; +x_269 = l_Lean_Syntax_getKind___closed__4; +lean_inc(x_266); +x_270 = l_Lean_Syntax_isOfKind(x_266, x_269); +if (x_270 == 0) { -lean_object* x_274; uint8_t x_275; lean_object* x_276; -lean_dec(x_269); -x_274 = lean_box(0); -x_275 = 1; +lean_object* x_271; uint8_t x_272; lean_object* x_273; +lean_dec(x_266); +x_271 = lean_box(0); +x_272 = 1; lean_inc(x_9); -x_276 = l_Lean_Elab_Term_elabTerm(x_2, x_274, x_275, x_275, x_9, x_10); -if (lean_obj_tag(x_276) == 0) +x_273 = l_Lean_Elab_Term_elabTerm(x_2, x_271, x_272, x_272, x_9, x_10); +if (lean_obj_tag(x_273) == 0) { -uint8_t x_277; -x_277 = !lean_is_exclusive(x_276); -if (x_277 == 0) +uint8_t x_274; +x_274 = !lean_is_exclusive(x_273); +if (x_274 == 0) { -lean_object* x_278; lean_object* x_279; lean_object* x_280; -x_278 = lean_ctor_get(x_276, 0); -x_279 = lean_ctor_get(x_276, 1); -lean_inc(x_279); -x_280 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_278, x_3, x_4, x_5, x_6, x_7, x_9, x_279); -if (lean_obj_tag(x_280) == 0) +lean_object* x_275; lean_object* x_276; lean_object* x_277; +x_275 = lean_ctor_get(x_273, 0); +x_276 = lean_ctor_get(x_273, 1); +lean_inc(x_276); +x_277 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_275, x_3, x_4, x_5, x_6, x_7, x_9, x_276); +if (lean_obj_tag(x_277) == 0) { -uint8_t x_281; -x_281 = !lean_is_exclusive(x_280); -if (x_281 == 0) +uint8_t x_278; +x_278 = !lean_is_exclusive(x_277); +if (x_278 == 0) { -lean_object* x_282; -x_282 = lean_array_push(x_8, x_280); -lean_ctor_set(x_276, 0, x_282); -return x_276; +lean_object* x_279; +x_279 = lean_array_push(x_8, x_277); +lean_ctor_set(x_273, 0, x_279); +return x_273; } else { -lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; -x_283 = lean_ctor_get(x_280, 0); -x_284 = lean_ctor_get(x_280, 1); +lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; +x_280 = lean_ctor_get(x_277, 0); +x_281 = lean_ctor_get(x_277, 1); +lean_inc(x_281); +lean_inc(x_280); +lean_dec(x_277); +x_282 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_282, 0, x_280); +lean_ctor_set(x_282, 1, x_281); +x_283 = lean_array_push(x_8, x_282); +lean_ctor_set(x_273, 0, x_283); +return x_273; +} +} +else +{ +lean_object* x_284; +x_284 = lean_ctor_get(x_277, 0); lean_inc(x_284); -lean_inc(x_283); -lean_dec(x_280); -x_285 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_285, 0, x_283); -lean_ctor_set(x_285, 1, x_284); -x_286 = lean_array_push(x_8, x_285); -lean_ctor_set(x_276, 0, x_286); -return x_276; -} -} -else +if (lean_obj_tag(x_284) == 0) { -lean_object* x_287; -x_287 = lean_ctor_get(x_280, 0); -lean_inc(x_287); -if (lean_obj_tag(x_287) == 0) +lean_object* x_285; +x_285 = lean_ctor_get(x_284, 0); +lean_inc(x_285); +if (lean_obj_tag(x_285) == 0) { -lean_object* x_288; -x_288 = lean_ctor_get(x_287, 0); -lean_inc(x_288); -if (lean_obj_tag(x_288) == 0) +uint8_t x_286; +lean_dec(x_284); +x_286 = !lean_is_exclusive(x_277); +if (x_286 == 0) { -uint8_t x_289; +lean_object* x_287; lean_object* x_288; lean_object* x_289; +x_287 = lean_ctor_get(x_277, 0); lean_dec(x_287); -x_289 = !lean_is_exclusive(x_280); -if (x_289 == 0) +x_288 = lean_ctor_get(x_285, 0); +lean_inc(x_288); +lean_dec(x_285); +lean_ctor_set(x_277, 0, x_288); +x_289 = lean_array_push(x_8, x_277); +lean_ctor_set(x_273, 0, x_289); +return x_273; +} +else { -lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_290 = lean_ctor_get(x_280, 0); -lean_dec(x_290); -x_291 = lean_ctor_get(x_288, 0); +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; +x_290 = lean_ctor_get(x_277, 1); +lean_inc(x_290); +lean_dec(x_277); +x_291 = lean_ctor_get(x_285, 0); lean_inc(x_291); -lean_dec(x_288); -lean_ctor_set(x_280, 0, x_291); -x_292 = lean_array_push(x_8, x_280); -lean_ctor_set(x_276, 0, x_292); -return x_276; -} -else -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; -x_293 = lean_ctor_get(x_280, 1); -lean_inc(x_293); -lean_dec(x_280); -x_294 = lean_ctor_get(x_288, 0); -lean_inc(x_294); -lean_dec(x_288); -x_295 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_295, 0, x_294); -lean_ctor_set(x_295, 1, x_293); -x_296 = lean_array_push(x_8, x_295); -lean_ctor_set(x_276, 0, x_296); -return x_276; +lean_dec(x_285); +x_292 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_292, 0, x_291); +lean_ctor_set(x_292, 1, x_290); +x_293 = lean_array_push(x_8, x_292); +lean_ctor_set(x_273, 0, x_293); +return x_273; } } else { -uint8_t x_297; -lean_free_object(x_276); -lean_dec(x_279); +uint8_t x_294; +lean_free_object(x_273); +lean_dec(x_276); lean_dec(x_8); -x_297 = !lean_is_exclusive(x_280); -if (x_297 == 0) +x_294 = !lean_is_exclusive(x_277); +if (x_294 == 0) { -lean_object* x_298; -x_298 = lean_ctor_get(x_280, 0); -lean_dec(x_298); -return x_280; +lean_object* x_295; +x_295 = lean_ctor_get(x_277, 0); +lean_dec(x_295); +return x_277; } else { +lean_object* x_296; lean_object* x_297; +x_296 = lean_ctor_get(x_277, 1); +lean_inc(x_296); +lean_dec(x_277); +x_297 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_297, 0, x_284); +lean_ctor_set(x_297, 1, x_296); +return x_297; +} +} +} +else +{ +uint8_t x_298; +lean_free_object(x_273); +lean_dec(x_8); +x_298 = !lean_is_exclusive(x_277); +if (x_298 == 0) +{ lean_object* x_299; lean_object* x_300; -x_299 = lean_ctor_get(x_280, 1); -lean_inc(x_299); -lean_dec(x_280); -x_300 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_300, 0, x_287); -lean_ctor_set(x_300, 1, x_299); -return x_300; +x_299 = lean_ctor_get(x_277, 1); +lean_dec(x_299); +x_300 = lean_ctor_get(x_277, 0); +lean_dec(x_300); +lean_ctor_set(x_277, 1, x_276); +return x_277; +} +else +{ +lean_object* x_301; +lean_dec(x_277); +x_301 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_301, 0, x_284); +lean_ctor_set(x_301, 1, x_276); +return x_301; +} } } } else { -uint8_t x_301; -lean_free_object(x_276); -lean_dec(x_279); -lean_dec(x_8); -x_301 = !lean_is_exclusive(x_280); -if (x_301 == 0) -{ -lean_object* x_302; -x_302 = lean_ctor_get(x_280, 0); -lean_dec(x_302); -return x_280; -} -else -{ -lean_object* x_303; lean_object* x_304; -x_303 = lean_ctor_get(x_280, 1); +lean_object* x_302; lean_object* x_303; lean_object* x_304; +x_302 = lean_ctor_get(x_273, 0); +x_303 = lean_ctor_get(x_273, 1); lean_inc(x_303); -lean_dec(x_280); -x_304 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_304, 0, x_287); -lean_ctor_set(x_304, 1, x_303); -return x_304; -} -} -} -} -else +lean_inc(x_302); +lean_dec(x_273); +lean_inc(x_303); +x_304 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_302, x_3, x_4, x_5, x_6, x_7, x_9, x_303); +if (lean_obj_tag(x_304) == 0) { -lean_object* x_305; lean_object* x_306; lean_object* x_307; -x_305 = lean_ctor_get(x_276, 0); -x_306 = lean_ctor_get(x_276, 1); -lean_inc(x_306); +lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; +x_305 = lean_ctor_get(x_304, 0); lean_inc(x_305); -lean_dec(x_276); +x_306 = lean_ctor_get(x_304, 1); lean_inc(x_306); -x_307 = l___private_Init_Lean_Elab_TermApp_13__elabAppLVals(x_1, x_305, x_3, x_4, x_5, x_6, x_7, x_9, x_306); -if (lean_obj_tag(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; -x_308 = lean_ctor_get(x_307, 0); -lean_inc(x_308); -x_309 = lean_ctor_get(x_307, 1); -lean_inc(x_309); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - lean_ctor_release(x_307, 1); - x_310 = x_307; +if (lean_is_exclusive(x_304)) { + lean_ctor_release(x_304, 0); + lean_ctor_release(x_304, 1); + x_307 = x_304; } else { - lean_dec_ref(x_307); - x_310 = lean_box(0); + lean_dec_ref(x_304); + x_307 = lean_box(0); } -if (lean_is_scalar(x_310)) { - x_311 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_307)) { + x_308 = lean_alloc_ctor(0, 2, 0); } else { - x_311 = x_310; + x_308 = x_307; } -lean_ctor_set(x_311, 0, x_308); -lean_ctor_set(x_311, 1, x_309); -x_312 = lean_array_push(x_8, x_311); -x_313 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_313, 0, x_312); -lean_ctor_set(x_313, 1, x_306); -return x_313; +lean_ctor_set(x_308, 0, x_305); +lean_ctor_set(x_308, 1, x_306); +x_309 = lean_array_push(x_8, x_308); +x_310 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_310, 0, x_309); +lean_ctor_set(x_310, 1, x_303); +return x_310; } else { -lean_object* x_314; -x_314 = lean_ctor_get(x_307, 0); -lean_inc(x_314); -if (lean_obj_tag(x_314) == 0) +lean_object* x_311; +x_311 = lean_ctor_get(x_304, 0); +lean_inc(x_311); +if (lean_obj_tag(x_311) == 0) { -lean_object* x_315; -x_315 = lean_ctor_get(x_314, 0); +lean_object* x_312; +x_312 = lean_ctor_get(x_311, 0); +lean_inc(x_312); +if (lean_obj_tag(x_312) == 0) +{ +lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; +lean_dec(x_311); +x_313 = lean_ctor_get(x_304, 1); +lean_inc(x_313); +if (lean_is_exclusive(x_304)) { + lean_ctor_release(x_304, 0); + lean_ctor_release(x_304, 1); + x_314 = x_304; +} else { + lean_dec_ref(x_304); + x_314 = lean_box(0); +} +x_315 = lean_ctor_get(x_312, 0); lean_inc(x_315); -if (lean_obj_tag(x_315) == 0) +lean_dec(x_312); +if (lean_is_scalar(x_314)) { + x_316 = lean_alloc_ctor(1, 2, 0); +} else { + x_316 = x_314; +} +lean_ctor_set(x_316, 0, x_315); +lean_ctor_set(x_316, 1, x_313); +x_317 = lean_array_push(x_8, x_316); +x_318 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_318, 0, x_317); +lean_ctor_set(x_318, 1, x_303); +return x_318; +} +else { -lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; -lean_dec(x_314); -x_316 = lean_ctor_get(x_307, 1); -lean_inc(x_316); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - lean_ctor_release(x_307, 1); - x_317 = x_307; +lean_object* x_319; lean_object* x_320; lean_object* x_321; +lean_dec(x_303); +lean_dec(x_8); +x_319 = lean_ctor_get(x_304, 1); +lean_inc(x_319); +if (lean_is_exclusive(x_304)) { + lean_ctor_release(x_304, 0); + lean_ctor_release(x_304, 1); + x_320 = x_304; } else { - lean_dec_ref(x_307); - x_317 = lean_box(0); + lean_dec_ref(x_304); + x_320 = lean_box(0); } -x_318 = lean_ctor_get(x_315, 0); -lean_inc(x_318); -lean_dec(x_315); -if (lean_is_scalar(x_317)) { - x_319 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_320)) { + x_321 = lean_alloc_ctor(1, 2, 0); } else { - x_319 = x_317; + x_321 = x_320; } -lean_ctor_set(x_319, 0, x_318); -lean_ctor_set(x_319, 1, x_316); -x_320 = lean_array_push(x_8, x_319); -x_321 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_321, 0, x_320); -lean_ctor_set(x_321, 1, x_306); +lean_ctor_set(x_321, 0, x_311); +lean_ctor_set(x_321, 1, x_319); return x_321; } +} else { -lean_object* x_322; lean_object* x_323; lean_object* x_324; -lean_dec(x_306); +lean_object* x_322; lean_object* x_323; lean_dec(x_8); -x_322 = lean_ctor_get(x_307, 1); -lean_inc(x_322); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - lean_ctor_release(x_307, 1); - x_323 = x_307; +if (lean_is_exclusive(x_304)) { + lean_ctor_release(x_304, 0); + lean_ctor_release(x_304, 1); + x_322 = x_304; } else { - lean_dec_ref(x_307); - x_323 = lean_box(0); + lean_dec_ref(x_304); + x_322 = lean_box(0); } -if (lean_is_scalar(x_323)) { - x_324 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_322)) { + x_323 = lean_alloc_ctor(1, 2, 0); } else { - x_324 = x_323; + x_323 = x_322; } -lean_ctor_set(x_324, 0, x_314); -lean_ctor_set(x_324, 1, x_322); -return x_324; +lean_ctor_set(x_323, 0, x_311); +lean_ctor_set(x_323, 1, x_303); +return x_323; } } +} +} +else +{ +uint8_t x_324; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_324 = !lean_is_exclusive(x_273); +if (x_324 == 0) +{ +return x_273; +} else { lean_object* x_325; lean_object* x_326; lean_object* x_327; -lean_dec(x_306); -lean_dec(x_8); -x_325 = lean_ctor_get(x_307, 1); +x_325 = lean_ctor_get(x_273, 0); +x_326 = lean_ctor_get(x_273, 1); +lean_inc(x_326); lean_inc(x_325); -if (lean_is_exclusive(x_307)) { - lean_ctor_release(x_307, 0); - lean_ctor_release(x_307, 1); - x_326 = x_307; -} else { - lean_dec_ref(x_307); - x_326 = lean_box(0); -} -if (lean_is_scalar(x_326)) { - x_327 = lean_alloc_ctor(1, 2, 0); -} else { - x_327 = x_326; -} -lean_ctor_set(x_327, 0, x_314); -lean_ctor_set(x_327, 1, x_325); +lean_dec(x_273); +x_327 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_327, 0, x_325); +lean_ctor_set(x_327, 1, x_326); return x_327; } } } -} else { -uint8_t x_328; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -x_328 = !lean_is_exclusive(x_276); -if (x_328 == 0) -{ -return x_276; -} -else -{ -lean_object* x_329; lean_object* x_330; lean_object* x_331; -x_329 = lean_ctor_get(x_276, 0); -x_330 = lean_ctor_get(x_276, 1); -lean_inc(x_330); -lean_inc(x_329); -lean_dec(x_276); -x_331 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_331, 0, x_329); -lean_ctor_set(x_331, 1, x_330); -return x_331; -} -} -} -else -{ -lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; -x_332 = l_Lean_Syntax_getId(x_269); -lean_dec(x_269); -x_333 = l_Lean_Name_components(x_332); -x_334 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__4(x_333); -x_335 = lean_unsigned_to_nat(0u); -x_336 = l_Lean_Syntax_getArg(x_2, x_335); +lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; +x_328 = l_Lean_Syntax_getId(x_266); +lean_dec(x_266); +x_329 = l_Lean_Name_components(x_328); +x_330 = l_List_map___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__4(x_329); +x_331 = lean_unsigned_to_nat(0u); +x_332 = l_Lean_Syntax_getArg(x_2, x_331); lean_dec(x_2); -x_337 = l_List_append___rarg(x_334, x_3); -x_2 = x_336; -x_3 = x_337; +x_333 = l_List_append___rarg(x_330, x_3); +x_2 = x_332; +x_3 = x_333; goto _start; } } else { -lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; -x_339 = l_Lean_fieldIdxKind; -x_340 = l_Lean_Syntax_isNatLitAux(x_339, x_269); -lean_dec(x_269); -x_341 = lean_unsigned_to_nat(0u); -x_342 = l_Lean_Syntax_getArg(x_2, x_341); +lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; +x_335 = l_Lean_fieldIdxKind; +x_336 = l_Lean_Syntax_isNatLitAux(x_335, x_266); +lean_dec(x_266); +x_337 = lean_unsigned_to_nat(0u); +x_338 = l_Lean_Syntax_getArg(x_2, x_337); lean_dec(x_2); -if (lean_obj_tag(x_340) == 0) +if (lean_obj_tag(x_336) == 0) { -lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; -x_343 = l_Nat_Inhabited; -x_344 = l_Option_get_x21___rarg___closed__3; -x_345 = lean_panic_fn(x_343, x_344); +lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; +x_339 = l_Nat_Inhabited; +x_340 = l_Option_get_x21___rarg___closed__3; +x_341 = lean_panic_fn(x_339, x_340); +x_342 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_342, 0, x_341); +x_343 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_343, 0, x_342); +lean_ctor_set(x_343, 1, x_3); +x_2 = x_338; +x_3 = x_343; +goto _start; +} +else +{ +lean_object* x_345; lean_object* x_346; lean_object* x_347; +x_345 = lean_ctor_get(x_336, 0); +lean_inc(x_345); +lean_dec(x_336); x_346 = lean_alloc_ctor(0, 1, 0); lean_ctor_set(x_346, 0, x_345); x_347 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_347, 0, x_346); lean_ctor_set(x_347, 1, x_3); -x_2 = x_342; +x_2 = x_338; x_3 = x_347; goto _start; } -else -{ -lean_object* x_349; lean_object* x_350; lean_object* x_351; -x_349 = lean_ctor_get(x_340, 0); -lean_inc(x_349); -lean_dec(x_340); -x_350 = lean_alloc_ctor(0, 1, 0); -lean_ctor_set(x_350, 0, x_349); -x_351 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_351, 0, x_350); -lean_ctor_set(x_351, 1, x_3); -x_2 = x_342; -x_3 = x_351; -goto _start; -} } } } @@ -8230,13 +8215,13 @@ goto _start; } else { -lean_object* x_426; lean_object* x_427; lean_object* x_428; -x_426 = l_Lean_Syntax_getArgs(x_2); -x_427 = lean_unsigned_to_nat(0u); -x_428 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_426, x_427, x_8, x_9, x_10); -lean_dec(x_426); +lean_object* x_421; lean_object* x_422; lean_object* x_423; +x_421 = l_Lean_Syntax_getArgs(x_2); +x_422 = lean_unsigned_to_nat(0u); +x_423 = l_Array_iterateMAux___main___at___private_Init_Lean_Elab_TermApp_14__elabAppFn___main___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_421, x_422, x_8, x_9, x_10); +lean_dec(x_421); lean_dec(x_2); -return x_428; +return x_423; } } }