From 85a0232e87777f9dde800e59bfdbe950102c3cc7 Mon Sep 17 00:00:00 2001 From: Lean stage0 autoupdater <> Date: Sat, 12 Apr 2025 11:07:22 +0000 Subject: [PATCH] chore: update stage0 --- stage0/src/kernel/replace_fn.cpp | 5 +- stage0/src/runtime/sharecommon.h | 7 +- stage0/src/util/alloc.h | 44 + stage0/stdlib/Lean/Meta/Tactic/Grind/Beta.c | 2 +- .../Lean/Meta/Tactic/Grind/ForallProp.c | 418 ++- .../Lean/Meta/Tactic/Grind/Internalize.c | 615 +--- stage0/stdlib/Lean/Meta/Tactic/Grind/Intro.c | 5 +- stage0/stdlib/Lean/Meta/Tactic/Grind/MBTC.c | 2079 +++++++------ stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c | 5 +- stage0/stdlib/Lean/Meta/Tactic/Grind/PP.c | 2 +- stage0/stdlib/Lean/Meta/Tactic/Grind/Split.c | 2559 +++++++++-------- stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c | 931 +++++- stage0/stdlib/Lean/Meta/Tactic/Grind/Util.c | 808 ++++-- .../Tactic/BVDecide/Bitblast/BVExpr/Basic.c | 444 +-- 14 files changed, 4661 insertions(+), 3263 deletions(-) create mode 100644 stage0/src/util/alloc.h diff --git a/stage0/src/kernel/replace_fn.cpp b/stage0/src/kernel/replace_fn.cpp index eb8b8cc540..08e6b17d85 100644 --- a/stage0/src/kernel/replace_fn.cpp +++ b/stage0/src/kernel/replace_fn.cpp @@ -9,6 +9,7 @@ Author: Leonardo de Moura #include #include #include "kernel/replace_fn.h" +#include "util/alloc.h" namespace lean { @@ -18,7 +19,7 @@ class replace_rec_fn { return hash((size_t)p.first >> 3, p.second); } }; - std::unordered_map, expr, key_hasher> m_cache; + lean::unordered_map, expr, key_hasher> m_cache; std::function(expr const &, unsigned)> m_f; bool m_use_cache; @@ -84,7 +85,7 @@ expr replace(expr const & e, std::function(expr const &, unsigned } class replace_fn { - std::unordered_map m_cache; + lean::unordered_map m_cache; lean_object * m_f; expr save_result(expr const & e, expr const & r, bool shared) { diff --git a/stage0/src/runtime/sharecommon.h b/stage0/src/runtime/sharecommon.h index af3fc01a1a..643a13b37c 100644 --- a/stage0/src/runtime/sharecommon.h +++ b/stage0/src/runtime/sharecommon.h @@ -6,9 +6,8 @@ Author: Leonardo de Moura */ #pragma once #include -#include -#include #include "runtime/object_ref.h" +#include "util/alloc.h" namespace lean { extern "C" LEAN_EXPORT uint8 lean_sharecommon_eq(b_obj_arg o1, b_obj_arg o2); @@ -32,9 +31,9 @@ protected: We use `m_cache` to ensure we do **not** traverse a DAG as a tree. We use pointer equality for this collection. */ - std::unordered_map m_cache; + lean::unordered_map m_cache; /* Set of maximally shared terms. AKA hash-consing table. */ - std::unordered_set m_set; + lean::unordered_set m_set; /* If `true`, `check_cache` will also check `m_set`. This is useful when the input term may contain terms that have already diff --git a/stage0/src/util/alloc.h b/stage0/src/util/alloc.h new file mode 100644 index 0000000000..737b346310 --- /dev/null +++ b/stage0/src/util/alloc.h @@ -0,0 +1,44 @@ +/* +Copyright (c) 2025 Lean FRO. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. + +Authors: Sebastian Ullrich +*/ +#pragma once +#include +#include +#include + +#ifdef LEAN_MIMALLOC +#include +#endif + +namespace lean { + +// We do not override `new` to avoid FFI issues for users but use `lean::allocator` +// explicitly where using the custom allocator is important. + +#ifdef LEAN_MIMALLOC +template using allocator = mi_stl_allocator; +#else +template using allocator = std::allocator; +#endif + +// `unordered_map/set` allocates per insert, so specializing to the custom allocator can +// save significant time for maps with frequent inserts. + +template< + class Key, + class T, + class Hash = std::hash, + class KeyEqual = std::equal_to, + class Allocator = lean::allocator> +> using unordered_map = std::unordered_map; + +template< + class Key, + class Hash = std::hash, + class KeyEqual = std::equal_to, + class Allocator = lean::allocator +> using unordered_set = std::unordered_set; +}; diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Beta.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Beta.c index 1d4d1c7de3..cdceed4075 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Beta.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Beta.c @@ -764,7 +764,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__1; x_2 = l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__2; -x_3 = lean_unsigned_to_nat(1085u); +x_3 = lean_unsigned_to_nat(1087u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_Meta_Grind_getEqcLambdas___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c index 639ca6ce8a..f5b36da527 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c @@ -22,17 +22,20 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_M static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__2(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_mkEMatchTheoremWithKind_x3f(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_isEqTrueHyp_x3f___lambda__1___boxed(lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Exception_isInterrupt(lean_object*); lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropDown(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isApp(lean_object*); lean_object* l_Lean_Meta_Grind_reportIssue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__5; static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_isEqTrueHyp_x3f___closed__1; static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__3; +lean_object* l_Lean_Expr_bvar___override(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems___lambda__1___closed__1; lean_object* l_Lean_Meta_Grind_pushEqCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems___closed__2; @@ -45,11 +48,14 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__1___b LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x27_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__6; +static lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__1___closed__2; lean_object* l_Lean_Meta_Grind_activateTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__3; static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__1; +static lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__2; static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__6; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x27_x3f(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -68,11 +74,13 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropDown___lambda__2__ lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_isEqTrueHyp_x3f___closed__3; +lean_object* l_Lean_Expr_forallE___override(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_Expr_appFnCleanup(lean_object*, lean_object*); uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__11; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__9; static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropDown___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -82,9 +90,11 @@ static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__3___closed lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_getGeneration(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_alreadyInternalized(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Meta_Grind_propagateExistsDown_declare__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_2828_(lean_object*); lean_object* l_Lean_mkNot(lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__3; lean_object* l_Lean_Meta_Grind_updateLastTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__8; static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__1___closed__3; static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__7; @@ -94,10 +104,14 @@ static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__8; static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__10; lean_object* l_Lean_MessageData_ofExpr(lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__5; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_mkOfEqFalseCore(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__8; lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_name_append_index_after(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__3; +lean_object* l_Lean_Expr_constLevels_x21(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -117,12 +131,15 @@ static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__14; uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__13; +lean_object* l___private_Lean_Meta_Tactic_Grind_PropagatorAttr_0__Lean_Meta_Grind_registerBuiltinPropagatorCore(lean_object*, uint8_t, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_mkEqTrueProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkOfEqTrueCore(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems___lambda__1___closed__2; static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__9; static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__2; +static lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__7; static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__14; +static lean_object* l___regBuiltin_Lean_Meta_Grind_propagateExistsDown_declare__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_2828____closed__1; lean_object* lean_array_mk(lean_object*); lean_object* l_Lean_Meta_Grind_isEqFalse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_pushEqFalse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -131,20 +148,25 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_G static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__2; lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__1___closed__1; +static lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropUp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_isEqTrue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_headBeta(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_isEqTrueHyp_x3f___lambda__2___boxed(lean_object*); lean_object* l_Lean_Meta_Grind_preprocess(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___lambda__1___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_propagateExistsDown___closed__1; uint8_t l_Lean_Exception_isRuntime(lean_object*); lean_object* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object*, uint8_t); +static lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__6; lean_object* l_Lean_mkApp5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__3___closed__2; static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___lambda__2___closed__5; +static lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__5; static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__11; lean_object* l_Lean_Meta_Grind_getConfig___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); @@ -4878,6 +4900,377 @@ lean_dec(x_4); return x_14; } } +static lean_object* _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Not", 3, 3); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__2; +x_3 = l_Lean_Expr_const___override(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Expr_bvar___override(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("x", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("forall_not_of_not_exists", 24, 24); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__7; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; lean_object* x_22; lean_object* x_23; +x_14 = l_Lean_Expr_constLevels_x21(x_2); +x_15 = l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__4; +lean_inc(x_4); +x_16 = l_Lean_Expr_app___override(x_4, x_15); +x_17 = l_Lean_Expr_headBeta(x_16); +x_18 = l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__3; +x_19 = l_Lean_Expr_app___override(x_18, x_17); +x_20 = l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__6; +x_21 = 0; +lean_inc(x_3); +x_22 = l_Lean_Expr_forallE___override(x_20, x_3, x_19, x_21); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_1); +x_23 = l_Lean_Meta_Grind_mkEqFalseProof(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_23) == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +x_25 = lean_ctor_get(x_23, 1); +lean_inc(x_25); +lean_dec(x_23); +x_26 = l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__8; +x_27 = l_Lean_Expr_const___override(x_26, x_14); +lean_inc(x_1); +x_28 = l_Lean_Meta_mkOfEqFalseCore(x_1, x_24); +x_29 = l_Lean_mkApp3(x_27, x_3, x_4, x_28); +x_30 = l_Lean_Meta_Grind_getGeneration(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_25); +lean_dec(x_1); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Lean_Meta_Grind_addNewRawFact(x_29, x_22, x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_32); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +return x_33; +} +else +{ +uint8_t x_34; +lean_dec(x_22); +lean_dec(x_14); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_23); +if (x_34 == 0) +{ +return x_23; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_23, 0); +x_36 = lean_ctor_get(x_23, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_23); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_box(0); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +return x_12; +} +} +static lean_object* _init_l_Lean_Meta_Grind_propagateExistsDown___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_propagateExistsDown___lambda__2___boxed), 10, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +lean_inc(x_1); +x_11 = l_Lean_Meta_Grind_isEqFalse(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; uint8_t x_13; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_unbox(x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +uint8_t x_14; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_14 = !lean_is_exclusive(x_11); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_11, 0); +lean_dec(x_15); +x_16 = lean_box(0); +lean_ctor_set(x_11, 0, x_16); +return x_11; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_11, 1); +lean_inc(x_17); +lean_dec(x_11); +x_18 = lean_box(0); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_17); +return x_19; +} +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; +x_20 = lean_ctor_get(x_11, 1); +lean_inc(x_20); +lean_dec(x_11); +x_21 = l_Lean_Meta_Grind_propagateExistsDown___closed__1; +lean_inc(x_1); +x_22 = l_Lean_Expr_cleanupAnnotations(x_1); +x_23 = l_Lean_Expr_isApp(x_22); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; +lean_dec(x_22); +lean_dec(x_1); +x_24 = lean_box(0); +x_25 = lean_apply_10(x_21, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +return x_25; +} +else +{ +lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_26 = l_Lean_Expr_appArg(x_22, lean_box(0)); +x_27 = l_Lean_Expr_appFnCleanup(x_22, lean_box(0)); +x_28 = l_Lean_Expr_isApp(x_27); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; +lean_dec(x_27); +lean_dec(x_26); +lean_dec(x_1); +x_29 = lean_box(0); +x_30 = lean_apply_10(x_21, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +return x_30; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_31 = l_Lean_Expr_appArg(x_27, lean_box(0)); +x_32 = l_Lean_Expr_appFnCleanup(x_27, lean_box(0)); +x_33 = l_Lean_Meta_Grind_propagateForallPropDown___closed__12; +x_34 = l_Lean_Expr_isConstOf(x_32, x_33); +if (x_34 == 0) +{ +lean_object* x_35; lean_object* x_36; +lean_dec(x_32); +lean_dec(x_31); +lean_dec(x_26); +lean_dec(x_1); +x_35 = lean_box(0); +x_36 = lean_apply_10(x_21, x_35, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +return x_36; +} +else +{ +lean_object* x_37; +x_37 = l_Lean_Meta_Grind_propagateExistsDown___lambda__1(x_1, x_32, x_31, x_26, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +lean_dec(x_32); +return x_37; +} +} +} +} +} +else +{ +uint8_t x_38; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_38 = !lean_is_exclusive(x_11); +if (x_38 == 0) +{ +return x_11; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_11, 0); +x_40 = lean_ctor_get(x_11, 1); +lean_inc(x_40); +lean_inc(x_39); +lean_dec(x_11); +x_41 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_41, 0, x_39); +lean_ctor_set(x_41, 1, x_40); +return x_41; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +_start: +{ +lean_object* x_14; +x_14 = l_Lean_Meta_Grind_propagateExistsDown___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_2); +return x_14; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_propagateExistsDown___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_propagateExistsDown_declare__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_2828____closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_propagateExistsDown), 10, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Meta_Grind_propagateExistsDown_declare__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_2828_(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; +x_2 = l_Lean_Meta_Grind_propagateForallPropDown___closed__12; +x_3 = 0; +x_4 = l___regBuiltin_Lean_Meta_Grind_propagateExistsDown_declare__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_2828____closed__1; +x_5 = l___private_Lean_Meta_Tactic_Grind_PropagatorAttr_0__Lean_Meta_Grind_registerBuiltinPropagatorCore(x_2, x_3, x_4, x_1); +return x_5; +} +} lean_object* initialize_Init_Grind_Lemmas(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Grind_Internalize(uint8_t builtin, lean_object*); @@ -5009,7 +5402,30 @@ l_Lean_Meta_Grind_propagateForallPropDown___closed__13 = _init_l_Lean_Meta_Grind lean_mark_persistent(l_Lean_Meta_Grind_propagateForallPropDown___closed__13); l_Lean_Meta_Grind_propagateForallPropDown___closed__14 = _init_l_Lean_Meta_Grind_propagateForallPropDown___closed__14(); lean_mark_persistent(l_Lean_Meta_Grind_propagateForallPropDown___closed__14); -return lean_io_result_mk_ok(lean_box(0)); +l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__1 = _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__1); +l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__2 = _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__2); +l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__3 = _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__3); +l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__4 = _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__4); +l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__5 = _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__5); +l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__6 = _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__6); +l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__7 = _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__7); +l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__8 = _init_l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateExistsDown___lambda__1___closed__8); +l_Lean_Meta_Grind_propagateExistsDown___closed__1 = _init_l_Lean_Meta_Grind_propagateExistsDown___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_propagateExistsDown___closed__1); +l___regBuiltin_Lean_Meta_Grind_propagateExistsDown_declare__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_2828____closed__1 = _init_l___regBuiltin_Lean_Meta_Grind_propagateExistsDown_declare__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_2828____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_propagateExistsDown_declare__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_2828____closed__1); +if (builtin) {res = l___regBuiltin_Lean_Meta_Grind_propagateExistsDown_declare__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_2828_(lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +}return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Internalize.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Internalize.c index e26e60a6c9..8effcb42a2 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Internalize.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Internalize.c @@ -23,7 +23,6 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_ uint8_t lean_is_matcher(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__3; extern lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_dontCare; LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizeImpl___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_addCongrTable___spec__5___closed__1; @@ -51,7 +50,6 @@ uint8_t l_Lean_Expr_isDIte(lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___closed__3; lean_object* l_Lean_Meta_Grind_eraseIrrelevantMData___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_addCongrTable___closed__4; LEAN_EXPORT lean_object* l_List_filterTR_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -102,7 +100,6 @@ uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizeImpl___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_propagateUnitLike___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_preprocessGroundPattern___closed__2; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_propagateUnitLike___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_activateTheorem___closed__2; static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___closed__1; @@ -136,14 +133,12 @@ lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizeImpl___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findEntryAtAux___at_Lean_Meta_Grind_addCongrTable___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addMatchEqns___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_Grind_EMatchTheorems_isErased(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__7; static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_pushCastHEqs___lambda__1___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__1; lean_object* l_Lean_Expr_appArg_x21(lean_object*); lean_object* l_Lean_Meta_Grind_propagateUp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isBVar(lean_object*); @@ -386,6 +381,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_ static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_activateTheoremPatterns___spec__5___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_extParentsToIgnore___closed__2; size_t lean_usize_add(size_t, size_t); +static lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__4; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_propagateUnitLike(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); @@ -422,12 +418,10 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_ uint64_t l_Lean_Meta_TransparencyMode_toUInt64(uint8_t); lean_object* lean_nat_add(lean_object*, lean_object*); extern lean_object* l_Lean_Meta_Grind_congrPlaceholderProof; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_HeadIndex_hash(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__2; static lean_object* l_Lean_Meta_Grind_addCongrTable___closed__3; static lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizeImpl___lambda__3___closed__18; static lean_object* l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__8; @@ -437,6 +431,7 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Meta_Grind_activateTheorem___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofName(lean_object*); lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); +lean_object* l_Lean_Meta_Grind_addSplitCandidate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isLitValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt___spec__1___lambda__2___boxed(lean_object**); @@ -4211,556 +4206,6 @@ lean_dec(x_2); return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_12 = lean_st_ref_take(x_3, x_11); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_ctor_get(x_13, 12); -lean_inc(x_14); -x_15 = !lean_is_exclusive(x_12); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_16 = lean_ctor_get(x_12, 1); -x_17 = lean_ctor_get(x_12, 0); -lean_dec(x_17); -x_18 = !lean_is_exclusive(x_13); -if (x_18 == 0) -{ -lean_object* x_19; uint8_t x_20; -x_19 = lean_ctor_get(x_13, 12); -lean_dec(x_19); -x_20 = !lean_is_exclusive(x_14); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_21 = lean_ctor_get(x_14, 1); -lean_ctor_set_tag(x_12, 1); -lean_ctor_set(x_12, 1, x_21); -lean_ctor_set(x_12, 0, x_1); -lean_ctor_set(x_14, 1, x_12); -x_22 = lean_st_ref_set(x_3, x_13, x_16); -x_23 = !lean_is_exclusive(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_22, 0); -lean_dec(x_24); -x_25 = lean_box(0); -lean_ctor_set(x_22, 0, x_25); -return x_22; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_22, 1); -lean_inc(x_26); -lean_dec(x_22); -x_27 = lean_box(0); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_26); -return x_28; -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_29 = lean_ctor_get(x_14, 0); -x_30 = lean_ctor_get(x_14, 2); -x_31 = lean_ctor_get(x_14, 3); -x_32 = lean_ctor_get(x_14, 4); -x_33 = lean_ctor_get(x_14, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_inc(x_30); -lean_inc(x_33); -lean_inc(x_29); -lean_dec(x_14); -lean_ctor_set_tag(x_12, 1); -lean_ctor_set(x_12, 1, x_33); -lean_ctor_set(x_12, 0, x_1); -x_34 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_34, 0, x_29); -lean_ctor_set(x_34, 1, x_12); -lean_ctor_set(x_34, 2, x_30); -lean_ctor_set(x_34, 3, x_31); -lean_ctor_set(x_34, 4, x_32); -lean_ctor_set(x_13, 12, x_34); -x_35 = lean_st_ref_set(x_3, x_13, x_16); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_37 = x_35; -} else { - lean_dec_ref(x_35); - x_37 = lean_box(0); -} -x_38 = lean_box(0); -if (lean_is_scalar(x_37)) { - x_39 = lean_alloc_ctor(0, 2, 0); -} else { - x_39 = x_37; -} -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_36); -return x_39; -} -} -else -{ -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; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_40 = lean_ctor_get(x_13, 0); -x_41 = lean_ctor_get(x_13, 1); -x_42 = lean_ctor_get(x_13, 2); -x_43 = lean_ctor_get(x_13, 3); -x_44 = lean_ctor_get(x_13, 4); -x_45 = lean_ctor_get(x_13, 5); -x_46 = lean_ctor_get(x_13, 6); -x_47 = lean_ctor_get_uint8(x_13, sizeof(void*)*16); -x_48 = lean_ctor_get(x_13, 7); -x_49 = lean_ctor_get(x_13, 8); -x_50 = lean_ctor_get(x_13, 9); -x_51 = lean_ctor_get(x_13, 10); -x_52 = lean_ctor_get(x_13, 11); -x_53 = lean_ctor_get(x_13, 13); -x_54 = lean_ctor_get(x_13, 14); -x_55 = lean_ctor_get(x_13, 15); -lean_inc(x_55); -lean_inc(x_54); -lean_inc(x_53); -lean_inc(x_52); -lean_inc(x_51); -lean_inc(x_50); -lean_inc(x_49); -lean_inc(x_48); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_inc(x_42); -lean_inc(x_41); -lean_inc(x_40); -lean_dec(x_13); -x_56 = lean_ctor_get(x_14, 0); -lean_inc(x_56); -x_57 = lean_ctor_get(x_14, 2); -lean_inc(x_57); -x_58 = lean_ctor_get(x_14, 3); -lean_inc(x_58); -x_59 = lean_ctor_get(x_14, 4); -lean_inc(x_59); -x_60 = lean_ctor_get(x_14, 1); -lean_inc(x_60); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - lean_ctor_release(x_14, 1); - lean_ctor_release(x_14, 2); - lean_ctor_release(x_14, 3); - lean_ctor_release(x_14, 4); - x_61 = x_14; -} else { - lean_dec_ref(x_14); - x_61 = lean_box(0); -} -lean_ctor_set_tag(x_12, 1); -lean_ctor_set(x_12, 1, x_60); -lean_ctor_set(x_12, 0, x_1); -if (lean_is_scalar(x_61)) { - x_62 = lean_alloc_ctor(0, 5, 0); -} else { - x_62 = x_61; -} -lean_ctor_set(x_62, 0, x_56); -lean_ctor_set(x_62, 1, x_12); -lean_ctor_set(x_62, 2, x_57); -lean_ctor_set(x_62, 3, x_58); -lean_ctor_set(x_62, 4, x_59); -x_63 = lean_alloc_ctor(0, 16, 1); -lean_ctor_set(x_63, 0, x_40); -lean_ctor_set(x_63, 1, x_41); -lean_ctor_set(x_63, 2, x_42); -lean_ctor_set(x_63, 3, x_43); -lean_ctor_set(x_63, 4, x_44); -lean_ctor_set(x_63, 5, x_45); -lean_ctor_set(x_63, 6, x_46); -lean_ctor_set(x_63, 7, x_48); -lean_ctor_set(x_63, 8, x_49); -lean_ctor_set(x_63, 9, x_50); -lean_ctor_set(x_63, 10, x_51); -lean_ctor_set(x_63, 11, x_52); -lean_ctor_set(x_63, 12, x_62); -lean_ctor_set(x_63, 13, x_53); -lean_ctor_set(x_63, 14, x_54); -lean_ctor_set(x_63, 15, x_55); -lean_ctor_set_uint8(x_63, sizeof(void*)*16, x_47); -x_64 = lean_st_ref_set(x_3, x_63, x_16); -x_65 = lean_ctor_get(x_64, 1); -lean_inc(x_65); -if (lean_is_exclusive(x_64)) { - lean_ctor_release(x_64, 0); - lean_ctor_release(x_64, 1); - x_66 = x_64; -} else { - lean_dec_ref(x_64); - x_66 = lean_box(0); -} -x_67 = lean_box(0); -if (lean_is_scalar(x_66)) { - x_68 = lean_alloc_ctor(0, 2, 0); -} else { - x_68 = x_66; -} -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_65); -return x_68; -} -} -else -{ -lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; -x_69 = lean_ctor_get(x_12, 1); -lean_inc(x_69); -lean_dec(x_12); -x_70 = lean_ctor_get(x_13, 0); -lean_inc(x_70); -x_71 = lean_ctor_get(x_13, 1); -lean_inc(x_71); -x_72 = lean_ctor_get(x_13, 2); -lean_inc(x_72); -x_73 = lean_ctor_get(x_13, 3); -lean_inc(x_73); -x_74 = lean_ctor_get(x_13, 4); -lean_inc(x_74); -x_75 = lean_ctor_get(x_13, 5); -lean_inc(x_75); -x_76 = lean_ctor_get(x_13, 6); -lean_inc(x_76); -x_77 = lean_ctor_get_uint8(x_13, sizeof(void*)*16); -x_78 = lean_ctor_get(x_13, 7); -lean_inc(x_78); -x_79 = lean_ctor_get(x_13, 8); -lean_inc(x_79); -x_80 = lean_ctor_get(x_13, 9); -lean_inc(x_80); -x_81 = lean_ctor_get(x_13, 10); -lean_inc(x_81); -x_82 = lean_ctor_get(x_13, 11); -lean_inc(x_82); -x_83 = lean_ctor_get(x_13, 13); -lean_inc(x_83); -x_84 = lean_ctor_get(x_13, 14); -lean_inc(x_84); -x_85 = lean_ctor_get(x_13, 15); -lean_inc(x_85); -if (lean_is_exclusive(x_13)) { - lean_ctor_release(x_13, 0); - lean_ctor_release(x_13, 1); - lean_ctor_release(x_13, 2); - lean_ctor_release(x_13, 3); - lean_ctor_release(x_13, 4); - lean_ctor_release(x_13, 5); - lean_ctor_release(x_13, 6); - lean_ctor_release(x_13, 7); - lean_ctor_release(x_13, 8); - lean_ctor_release(x_13, 9); - lean_ctor_release(x_13, 10); - lean_ctor_release(x_13, 11); - lean_ctor_release(x_13, 12); - lean_ctor_release(x_13, 13); - lean_ctor_release(x_13, 14); - lean_ctor_release(x_13, 15); - x_86 = x_13; -} else { - lean_dec_ref(x_13); - x_86 = lean_box(0); -} -x_87 = lean_ctor_get(x_14, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_14, 2); -lean_inc(x_88); -x_89 = lean_ctor_get(x_14, 3); -lean_inc(x_89); -x_90 = lean_ctor_get(x_14, 4); -lean_inc(x_90); -x_91 = lean_ctor_get(x_14, 1); -lean_inc(x_91); -if (lean_is_exclusive(x_14)) { - lean_ctor_release(x_14, 0); - lean_ctor_release(x_14, 1); - lean_ctor_release(x_14, 2); - lean_ctor_release(x_14, 3); - lean_ctor_release(x_14, 4); - x_92 = x_14; -} else { - lean_dec_ref(x_14); - x_92 = lean_box(0); -} -x_93 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_93, 0, x_1); -lean_ctor_set(x_93, 1, x_91); -if (lean_is_scalar(x_92)) { - x_94 = lean_alloc_ctor(0, 5, 0); -} else { - x_94 = x_92; -} -lean_ctor_set(x_94, 0, x_87); -lean_ctor_set(x_94, 1, x_93); -lean_ctor_set(x_94, 2, x_88); -lean_ctor_set(x_94, 3, x_89); -lean_ctor_set(x_94, 4, x_90); -if (lean_is_scalar(x_86)) { - x_95 = lean_alloc_ctor(0, 16, 1); -} else { - x_95 = x_86; -} -lean_ctor_set(x_95, 0, x_70); -lean_ctor_set(x_95, 1, x_71); -lean_ctor_set(x_95, 2, x_72); -lean_ctor_set(x_95, 3, x_73); -lean_ctor_set(x_95, 4, x_74); -lean_ctor_set(x_95, 5, x_75); -lean_ctor_set(x_95, 6, x_76); -lean_ctor_set(x_95, 7, x_78); -lean_ctor_set(x_95, 8, x_79); -lean_ctor_set(x_95, 9, x_80); -lean_ctor_set(x_95, 10, x_81); -lean_ctor_set(x_95, 11, x_82); -lean_ctor_set(x_95, 12, x_94); -lean_ctor_set(x_95, 13, x_83); -lean_ctor_set(x_95, 14, x_84); -lean_ctor_set(x_95, 15, x_85); -lean_ctor_set_uint8(x_95, sizeof(void*)*16, x_77); -x_96 = lean_st_ref_set(x_3, x_95, x_69); -x_97 = lean_ctor_get(x_96, 1); -lean_inc(x_97); -if (lean_is_exclusive(x_96)) { - lean_ctor_release(x_96, 0); - lean_ctor_release(x_96, 1); - x_98 = x_96; -} else { - lean_dec_ref(x_96); - x_98 = lean_box(0); -} -x_99 = lean_box(0); -if (lean_is_scalar(x_98)) { - x_100 = lean_alloc_ctor(0, 2, 0); -} else { - x_100 = x_98; -} -lean_ctor_set(x_100, 0, x_99); -lean_ctor_set(x_100, 1, x_97); -return x_100; -} -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("split", 5, 5); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("candidate", 9, 9); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__1; -x_2 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__1; -x_3 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__2; -x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); -return x_4; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; -x_11 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__3; -x_12 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -x_14 = lean_unbox(x_13); -lean_dec(x_13); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_12, 1); -lean_inc(x_15); -lean_dec(x_12); -x_16 = lean_box(0); -x_17 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___lambda__1(x_1, x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_15); -return x_17; -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_12); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_12, 1); -x_20 = lean_ctor_get(x_12, 0); -lean_dec(x_20); -x_21 = l_Lean_Meta_Grind_updateLastTag(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); -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; lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -lean_inc(x_1); -x_23 = l_Lean_MessageData_ofExpr(x_1); -x_24 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__6; -lean_ctor_set_tag(x_12, 7); -lean_ctor_set(x_12, 1, x_23); -lean_ctor_set(x_12, 0, x_24); -x_25 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_25, 0, x_12); -lean_ctor_set(x_25, 1, x_24); -x_26 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_11, x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___lambda__1(x_1, x_27, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_28); -lean_dec(x_27); -return x_29; -} -else -{ -uint8_t x_30; -lean_free_object(x_12); -lean_dec(x_1); -x_30 = !lean_is_exclusive(x_21); -if (x_30 == 0) -{ -return x_21; -} -else -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_21, 0); -x_32 = lean_ctor_get(x_21, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_21); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} -} -else -{ -lean_object* x_34; lean_object* x_35; -x_34 = lean_ctor_get(x_12, 1); -lean_inc(x_34); -lean_dec(x_12); -x_35 = l_Lean_Meta_Grind_updateLastTag(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_34); -if (lean_obj_tag(x_35) == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -lean_inc(x_1); -x_37 = l_Lean_MessageData_ofExpr(x_1); -x_38 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__6; -x_39 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -x_40 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_11, x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_36); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 1); -lean_inc(x_43); -lean_dec(x_41); -x_44 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___lambda__1(x_1, x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_43); -lean_dec(x_42); -return x_44; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -lean_dec(x_1); -x_45 = lean_ctor_get(x_35, 0); -lean_inc(x_45); -x_46 = lean_ctor_get(x_35, 1); -lean_inc(x_46); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_47 = x_35; -} else { - lean_dec_ref(x_35); - x_47 = lean_box(0); -} -if (lean_is_scalar(x_47)) { - x_48 = lean_alloc_ctor(1, 2, 0); -} else { - x_48 = x_47; -} -lean_ctor_set(x_48, 0, x_45); -lean_ctor_set(x_48, 1, x_46); -return x_48; -} -} -} -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -lean_object* x_12; -x_12 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_12; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; -x_11 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_11; -} -} static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_forbiddenSplitTypes___closed__1() { _start: { @@ -5058,14 +4503,14 @@ lean_object* x_28; lean_object* x_29; x_28 = lean_ctor_get(x_19, 1); lean_inc(x_28); lean_dec(x_19); -x_29 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); +x_29 = l_Lean_Meta_Grind_addSplitCandidate(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); return x_29; } } else { lean_object* x_30; -x_30 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); +x_30 = l_Lean_Meta_Grind_addSplitCandidate(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15); return x_30; } } @@ -5314,7 +4759,7 @@ lean_dec(x_27); x_34 = lean_ctor_get(x_26, 1); lean_inc(x_34); lean_dec(x_26); -x_35 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_34); +x_35 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_34); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5416,7 +4861,7 @@ return x_14; else { lean_object* x_15; -x_15 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_15 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -5547,7 +4992,7 @@ else { lean_object* x_28; lean_free_object(x_20); -x_28 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23); +x_28 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5588,7 +5033,7 @@ return x_35; else { lean_object* x_36; -x_36 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_30); +x_36 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_30); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5670,7 +5115,7 @@ else { lean_object* x_51; lean_dec(x_45); -x_51 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_44); +x_51 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_44); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5790,7 +5235,7 @@ return x_72; else { lean_object* x_73; -x_73 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_68); +x_73 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_68); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5848,7 +5293,7 @@ return x_83; else { lean_object* x_84; -x_84 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_68); +x_84 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_68); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5938,7 +5383,7 @@ else { lean_object* x_103; lean_free_object(x_96); -x_103 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_99); +x_103 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_99); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5951,7 +5396,7 @@ else lean_object* x_104; lean_free_object(x_96); lean_dec(x_98); -x_104 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_99); +x_104 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_99); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -5990,7 +5435,7 @@ return x_110; else { lean_object* x_111; -x_111 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_106); +x_111 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_106); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -6002,7 +5447,7 @@ else { lean_object* x_112; lean_dec(x_105); -x_112 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_106); +x_112 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_106); lean_dec(x_9); lean_dec(x_8); lean_dec(x_7); @@ -19166,7 +18611,7 @@ LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_G _start: { lean_object* x_12; -x_12 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_12) == 0) { uint8_t x_13; @@ -19237,10 +18682,18 @@ return x_1; static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__3() { _start: { +lean_object* x_1; +x_1 = lean_mk_string_unchecked("candidate", 9, 9); +return x_1; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__4() { +_start: +{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Meta_Grind_addCongrTable___lambda__2___closed__1; x_2 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__2; -x_3 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__2; +x_3 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__3; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } @@ -19401,7 +18854,7 @@ lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; uint x_70 = lean_ctor_get(x_69, 1); lean_inc(x_70); lean_dec(x_69); -x_71 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__3; +x_71 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__4; x_72 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_71, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_70); x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); @@ -19765,7 +19218,7 @@ lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; x_133 = lean_ctor_get(x_132, 1); lean_inc(x_133); lean_dec(x_132); -x_134 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__3; +x_134 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__4; x_135 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_134, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_133); x_136 = lean_ctor_get(x_135, 0); lean_inc(x_136); @@ -20217,7 +19670,7 @@ lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; x_227 = lean_ctor_get(x_226, 1); lean_inc(x_227); lean_dec(x_226); -x_228 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__3; +x_228 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__4; x_229 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_228, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_227); x_230 = lean_ctor_get(x_229, 0); lean_inc(x_230); @@ -20754,7 +20207,7 @@ lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; x_343 = lean_ctor_get(x_342, 1); lean_inc(x_343); lean_dec(x_342); -x_344 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__3; +x_344 = l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__4; x_345 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_344, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_343); x_346 = lean_ctor_get(x_345, 0); lean_inc(x_346); @@ -30053,7 +29506,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizeImpl___lambda__3___closed__1; x_2 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizeImpl___lambda__3___closed__2; -x_3 = lean_unsigned_to_nat(286u); +x_3 = lean_unsigned_to_nat(281u); x_4 = lean_unsigned_to_nat(16u); x_5 = l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_internalizeImpl___lambda__3___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -32226,12 +31679,6 @@ l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap__ lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___closed__3); l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___closed__4 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___closed__4(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_updateAppMap___closed__4); -l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__1); -l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__2); -l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__3 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidate___closed__3); l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_forbiddenSplitTypes___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_forbiddenSplitTypes___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_forbiddenSplitTypes___closed__1); l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_forbiddenSplitTypes___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_forbiddenSplitTypes___closed__2(); @@ -32383,6 +31830,8 @@ l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_ lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__2); l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__3 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__3(); lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__3); +l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__4 = _init_l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__4(); +lean_mark_persistent(l_List_forIn_x27_loop___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___spec__1___closed__4); l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___closed__1); l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___closed__2 = _init_l___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_addSplitCandidatesForExt_found___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Intro.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Intro.c index 0a728422fb..4215f3098c 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Intro.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Intro.c @@ -383,12 +383,13 @@ x_1 = lean_box(0); x_2 = l_Lean_Meta_Grind_instInhabitedIntroResult___closed__2; x_3 = lean_unsigned_to_nat(0u); x_4 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_Split_instInhabitedState___spec__1; -x_5 = lean_alloc_ctor(0, 5, 0); +x_5 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_5, 0, x_2); lean_ctor_set(x_5, 1, x_1); lean_ctor_set(x_5, 2, x_3); lean_ctor_set(x_5, 3, x_4); -lean_ctor_set(x_5, 4, x_1); +lean_ctor_set(x_5, 4, x_4); +lean_ctor_set(x_5, 5, x_1); return x_5; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/MBTC.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/MBTC.c index ed010f86ba..8ff0f09322 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/MBTC.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/MBTC.c @@ -13,21 +13,21 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_instBEqOfDecidableEq___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppNumArgsAux(lean_object*, lean_object*); lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtcTac___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__3; -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__7; -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__6; -LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1___boxed(lean_object*, lean_object*); +static lean_object* l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21___closed__1; uint64_t lean_uint64_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__8; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__5; size_t lean_uint64_to_usize(uint64_t); uint8_t l_Lean_Expr_isApp(lean_object*); @@ -35,6 +35,7 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Me lean_object* l_Lean_Meta_Grind_reportIssue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mbtc___spec__1___boxed(lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -46,28 +47,30 @@ lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtcTac___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_Grind_mbtc___spec__7(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Meta_Grind_mbtc___spec__3(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_mbtc___spec__13___boxed(lean_object**); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__23(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__7; lean_object* l_Nat_nextPowerOfTwo_go(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lean_Meta_Grind_mbtc___spec__5(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_any___rarg(lean_object*, lean_object*); lean_object* l_instBEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_isCongrRoot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__25(lean_object*, size_t, size_t, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__6; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__18___rarg(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Meta_Grind_mbtc___spec__19___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__8; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtcTac(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__18___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__1___boxed(lean_object**); static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__1; -lean_object* lean_st_ref_take(lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__11; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Meta_Grind_mbtc___spec__19(lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_shift_right(uint64_t, uint64_t); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__9; @@ -75,66 +78,69 @@ static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spe lean_object* lean_nat_div(lean_object*, lean_object*); uint8_t l_Lean_Expr_isEq(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_Meta_Grind_mbtc___spec__17___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lean_Meta_Grind_mbtc___spec__4(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__2; +lean_object* l_Lean_Meta_Grind_checkMaxCaseSplit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtcTac___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lean_Meta_Grind_mbtc___spec__11(lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); -lean_object* lean_array_to_list(lean_object*); lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_Grind_isKnownCaseSplit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_mbtc___spec__15___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__5; extern lean_object* l_Lean_levelZero; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_isSameExpr___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__23(lean_object*, size_t, size_t, lean_object*); uint64_t l_Lean_Expr_hash(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__10; lean_object* l_instHashableProd___rarg___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___closed__1; lean_object* l_Lean_Meta_Grind_getGeneration(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Meta_Grind_isSameExpr_unsafe__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___lambda__1___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_forIn___at_Lean_Meta_Grind_mbtc___spec__15(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__2; lean_object* l_Lean_Meta_Grind_hasSameType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofExpr(lean_object*); +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__5; +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__3; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__4; uint8_t lean_expr_lt(lean_object*, lean_object*); lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__4; -static lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___closed__1; LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_Grind_mbtc___spec__2(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_withContext___at_Lean_Meta_Grind_GoalM_run___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_mbtc___lambda__1___closed__1; +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__1; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Meta_Grind_mbtc___spec__1(lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_shareCommon(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Meta_Grind_mbtc___spec__13(lean_object*, lean_object*, lean_object*, lean_object*, uint64_t, uint64_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Meta_Grind_mbtc___spec__9(lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); -static lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___closed__1; +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__10; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isHEq(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__18(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__11; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_Meta_Grind_mbtc___spec__16(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__3___closed__2; uint64_t lean_uint64_xor(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_Grind_mbtc___spec__8___boxed(lean_object*, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__10; @@ -143,39 +149,43 @@ lean_object* l_Lean_Meta_Grind_Goal_getRoot_x3f(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); lean_object* l_Lean_Expr_getAppFn(lean_object*); lean_object* lean_nat_mul(lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__4; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__25___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Array_QSort_0__Array_qpartition___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lean_Meta_Grind_mbtc___spec__20(lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_MBTC_0__Lean_Meta_Grind_mkCandidateKey(lean_object*, lean_object*); +lean_object* lean_array_mk(lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); -lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__2; +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__7; lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*); lean_object* l_instDecidableEqNat___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at_Lean_Meta_Grind_mbtc___spec__5___at_Lean_Meta_Grind_mbtc___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_canon(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Meta_Grind_mbtc___lambda__4___closed__9; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_Grind_mbtc___spec__8(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___lambda__2___boxed(lean_object**); lean_object* lean_nat_add(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux_traverse___at_Lean_Meta_Grind_mbtc___spec__19___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at_Lean_Meta_Grind_mbtc___spec__10(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___closed__3; +LEAN_EXPORT uint8_t l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_getConfig___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__1; lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); +lean_object* l_Lean_Meta_Grind_addSplitCandidate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); lean_object* lean_grind_internalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_Meta_Grind_mbtc___spec__17(lean_object*, lean_object*, lean_object*); lean_object* l_instHashableNat___boxed(lean_object*); +uint8_t l_Array_isEmpty___rarg(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_MBTC_0__Lean_Meta_Grind_mkCandidateKey(lean_object* x_1, lean_object* x_2) { _start: { @@ -4703,7 +4713,7 @@ goto _start; } } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; @@ -4718,7 +4728,7 @@ lean_inc(x_5); x_14 = l_Lean_Meta_Grind_canon(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); if (lean_obj_tag(x_14) == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; +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; uint8_t x_22; x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); x_16 = lean_ctor_get(x_14, 1); @@ -4730,132 +4740,152 @@ lean_inc(x_18); x_19 = lean_ctor_get(x_17, 1); lean_inc(x_19); lean_dec(x_17); -x_20 = l_Lean_Meta_Grind_getGeneration(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); +x_20 = l_Lean_Meta_Grind_isKnownCaseSplit(x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_19); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); +x_22 = lean_unbox(x_21); +lean_dec(x_21); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); lean_dec(x_20); -x_23 = l_Lean_Meta_Grind_getGeneration(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_22); -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); +x_24 = l_Lean_Meta_Grind_getGeneration(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_23); +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_nat_dec_le(x_21, x_24); -x_27 = lean_box(0); -if (x_26 == 0) -{ -lean_object* x_28; +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); lean_dec(x_24); -lean_inc(x_18); -x_28 = lean_grind_internalize(x_18, x_21, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_25); -if (lean_obj_tag(x_28) == 0) +x_27 = l_Lean_Meta_Grind_getGeneration(x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_26); +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = lean_nat_dec_le(x_25, x_28); +x_31 = lean_box(0); +if (x_30 == 0) { -uint8_t x_29; -x_29 = !lean_is_exclusive(x_28); -if (x_29 == 0) -{ -lean_object* x_30; -x_30 = lean_ctor_get(x_28, 0); -lean_dec(x_30); -lean_ctor_set(x_28, 0, x_18); -return x_28; -} -else -{ -lean_object* x_31; lean_object* x_32; -x_31 = lean_ctor_get(x_28, 1); -lean_inc(x_31); +lean_object* x_32; lean_dec(x_28); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_18); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -else +lean_inc(x_18); +x_32 = lean_grind_internalize(x_18, x_25, x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +if (lean_obj_tag(x_32) == 0) { uint8_t x_33; -lean_dec(x_18); -x_33 = !lean_is_exclusive(x_28); +x_33 = !lean_is_exclusive(x_32); if (x_33 == 0) { -return x_28; +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +x_35 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_35, 0, x_18); +lean_ctor_set(x_32, 0, x_35); +return x_32; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_28, 0); -x_35 = lean_ctor_get(x_28, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_28); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -else -{ -lean_object* x_37; -lean_dec(x_21); -lean_inc(x_18); -x_37 = lean_grind_internalize(x_18, x_24, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_25); -if (lean_obj_tag(x_37) == 0) -{ -uint8_t x_38; -x_38 = !lean_is_exclusive(x_37); -if (x_38 == 0) -{ -lean_object* x_39; -x_39 = lean_ctor_get(x_37, 0); -lean_dec(x_39); +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_32, 1); +lean_inc(x_36); +lean_dec(x_32); +x_37 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_37, 0, x_18); -return x_37; -} -else -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_37, 1); -lean_inc(x_40); -lean_dec(x_37); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_18); -lean_ctor_set(x_41, 1, x_40); -return x_41; +x_38 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_36); +return x_38; } } else { -uint8_t x_42; +uint8_t x_39; lean_dec(x_18); -x_42 = !lean_is_exclusive(x_37); -if (x_42 == 0) +x_39 = !lean_is_exclusive(x_32); +if (x_39 == 0) { -return x_37; +return x_32; } else { -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_37, 0); -x_44 = lean_ctor_get(x_37, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_37); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_32, 0); +x_41 = lean_ctor_get(x_32, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_32); +x_42 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +} +else +{ +lean_object* x_43; +lean_dec(x_25); +lean_inc(x_18); +x_43 = lean_grind_internalize(x_18, x_28, x_31, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_29); +if (lean_obj_tag(x_43) == 0) +{ +uint8_t x_44; +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +lean_object* x_45; lean_object* x_46; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +x_46 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_46, 0, x_18); +lean_ctor_set(x_43, 0, x_46); +return x_43; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_43, 1); +lean_inc(x_47); +lean_dec(x_43); +x_48 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_48, 0, x_18); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_47); +return x_49; +} +} +else +{ +uint8_t x_50; +lean_dec(x_18); +x_50 = !lean_is_exclusive(x_43); +if (x_50 == 0) +{ +return x_43; +} +else +{ +lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_51 = lean_ctor_get(x_43, 0); +x_52 = lean_ctor_get(x_43, 1); +lean_inc(x_52); +lean_inc(x_51); +lean_dec(x_43); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +return x_53; } } } } else { -uint8_t x_46; +uint8_t x_54; +lean_dec(x_18); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); @@ -4864,28 +4894,63 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); -x_46 = !lean_is_exclusive(x_14); -if (x_46 == 0) +x_54 = !lean_is_exclusive(x_20); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_20, 0); +lean_dec(x_55); +x_56 = lean_box(0); +lean_ctor_set(x_20, 0, x_56); +return x_20; +} +else +{ +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_20, 1); +lean_inc(x_57); +lean_dec(x_20); +x_58 = lean_box(0); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +return x_59; +} +} +} +else +{ +uint8_t x_60; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_60 = !lean_is_exclusive(x_14); +if (x_60 == 0) { return x_14; } else { -lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_47 = lean_ctor_get(x_14, 0); -x_48 = lean_ctor_get(x_14, 1); -lean_inc(x_48); -lean_inc(x_47); +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_14, 0); +x_62 = lean_ctor_get(x_14, 1); +lean_inc(x_62); +lean_inc(x_61); lean_dec(x_14); -x_49 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_49, 0, x_47); -lean_ctor_set(x_49, 1, x_48); -return x_49; +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } } -static lean_object* _init_l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___closed__1() { +static lean_object* _init_l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4895,68 +4960,51 @@ x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -uint8_t x_13; -x_13 = lean_usize_dec_lt(x_2, x_1); -if (x_13 == 0) +uint8_t x_14; +x_14 = lean_usize_dec_eq(x_2, x_3); +if (x_14 == 0) { -lean_object* x_14; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_3); -lean_ctor_set(x_14, 1, x_12); -return x_14; -} -else +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_22; +x_15 = lean_array_uget(x_1, x_2); +x_22 = !lean_is_exclusive(x_15); +if (x_22 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = lean_array_uget(x_3, x_2); -x_16 = lean_unsigned_to_nat(0u); -x_17 = lean_array_uset(x_3, x_2, x_16); -x_18 = !lean_is_exclusive(x_15); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_15, 0); -x_20 = lean_ctor_get(x_15, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_15, 0); +x_24 = lean_ctor_get(x_15, 1); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_20); -lean_inc(x_19); -x_21 = l_Lean_Meta_mkEq(x_19, x_20, x_8, x_9, x_10, x_11, x_12); -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, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_24); lean_inc(x_23); -lean_dec(x_21); -x_24 = l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___closed__1; -x_25 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +x_25 = l_Lean_Meta_mkEq(x_23, x_24, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; x_26 = lean_ctor_get(x_25, 0); lean_inc(x_26); -x_27 = lean_unbox(x_26); -lean_dec(x_26); -if (x_27 == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -lean_free_object(x_15); -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); lean_dec(x_25); -x_29 = lean_box(0); +x_28 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___closed__1; +x_29 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_28, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_27); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_unbox(x_30); +lean_dec(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +lean_free_object(x_15); +x_32 = lean_ctor_get(x_29, 1); +lean_inc(x_32); +lean_dec(x_29); +x_33 = lean_box(0); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -4964,30 +5012,43 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -x_30 = l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___lambda__1(x_22, x_19, x_20, x_29, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_28); -lean_dec(x_20); -lean_dec(x_19); -if (lean_obj_tag(x_30) == 0) +x_34 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(x_26, x_23, x_24, x_33, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_32); +lean_dec(x_24); +lean_dec(x_23); +if (lean_obj_tag(x_34) == 0) { -lean_object* x_31; lean_object* x_32; size_t x_33; size_t x_34; lean_object* x_35; -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -x_32 = lean_ctor_get(x_30, 1); -lean_inc(x_32); -lean_dec(x_30); -x_33 = 1; -x_34 = lean_usize_add(x_2, x_33); -x_35 = lean_array_uset(x_17, x_2, x_31); -x_2 = x_34; -x_3 = x_35; -x_12 = x_32; -goto _start; +lean_object* x_35; +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +if (lean_obj_tag(x_35) == 0) +{ +lean_object* x_36; +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +x_16 = x_4; +x_17 = x_36; +goto block_21; } else { -uint8_t x_37; -lean_dec(x_17); +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_34, 1); +lean_inc(x_37); +lean_dec(x_34); +x_38 = lean_ctor_get(x_35, 0); +lean_inc(x_38); +lean_dec(x_35); +x_39 = lean_array_push(x_4, x_38); +x_16 = x_39; +x_17 = x_37; +goto block_21; +} +} +else +{ +uint8_t x_40; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -4996,83 +5057,97 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_37 = !lean_is_exclusive(x_30); -if (x_37 == 0) +x_40 = !lean_is_exclusive(x_34); +if (x_40 == 0) { -return x_30; +return x_34; } else { -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_30, 0); -x_39 = lean_ctor_get(x_30, 1); -lean_inc(x_39); -lean_inc(x_38); -lean_dec(x_30); -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; +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_34, 0); +x_42 = lean_ctor_get(x_34, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_34); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_41); +lean_ctor_set(x_43, 1, x_42); +return x_43; } } } else { -uint8_t x_41; -x_41 = !lean_is_exclusive(x_25); -if (x_41 == 0) +uint8_t x_44; +x_44 = !lean_is_exclusive(x_29); +if (x_44 == 0) { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_42 = lean_ctor_get(x_25, 1); -x_43 = lean_ctor_get(x_25, 0); -lean_dec(x_43); -lean_inc(x_22); -x_44 = l_Lean_MessageData_ofExpr(x_22); -x_45 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__7; -lean_ctor_set_tag(x_25, 7); -lean_ctor_set(x_25, 1, x_44); -lean_ctor_set(x_25, 0, x_45); -lean_ctor_set_tag(x_15, 7); -lean_ctor_set(x_15, 1, x_45); -lean_ctor_set(x_15, 0, x_25); -x_46 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_24, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_42); -x_47 = lean_ctor_get(x_46, 0); -lean_inc(x_47); -x_48 = lean_ctor_get(x_46, 1); -lean_inc(x_48); +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_45 = lean_ctor_get(x_29, 1); +x_46 = lean_ctor_get(x_29, 0); lean_dec(x_46); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_49 = l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___lambda__1(x_22, x_19, x_20, x_47, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_48); -lean_dec(x_47); -lean_dec(x_20); -lean_dec(x_19); -if (lean_obj_tag(x_49) == 0) -{ -lean_object* x_50; lean_object* x_51; size_t x_52; size_t x_53; lean_object* x_54; +lean_inc(x_26); +x_47 = l_Lean_MessageData_ofExpr(x_26); +x_48 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__7; +lean_ctor_set_tag(x_29, 7); +lean_ctor_set(x_29, 1, x_47); +lean_ctor_set(x_29, 0, x_48); +lean_ctor_set_tag(x_15, 7); +lean_ctor_set(x_15, 1, x_48); +lean_ctor_set(x_15, 0, x_29); +x_49 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_28, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_45); x_50 = lean_ctor_get(x_49, 0); lean_inc(x_50); x_51 = lean_ctor_get(x_49, 1); lean_inc(x_51); lean_dec(x_49); -x_52 = 1; -x_53 = lean_usize_add(x_2, x_52); -x_54 = lean_array_uset(x_17, x_2, x_50); -x_2 = x_53; -x_3 = x_54; -x_12 = x_51; -goto _start; +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_52 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(x_26, x_23, x_24, x_50, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_51); +lean_dec(x_50); +lean_dec(x_24); +lean_dec(x_23); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; +x_53 = lean_ctor_get(x_52, 0); +lean_inc(x_53); +if (lean_obj_tag(x_53) == 0) +{ +lean_object* x_54; +x_54 = lean_ctor_get(x_52, 1); +lean_inc(x_54); +lean_dec(x_52); +x_16 = x_4; +x_17 = x_54; +goto block_21; } else { -uint8_t x_56; -lean_dec(x_17); +lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +lean_dec(x_52); +x_56 = lean_ctor_get(x_53, 0); +lean_inc(x_56); +lean_dec(x_53); +x_57 = lean_array_push(x_4, x_56); +x_16 = x_57; +x_17 = x_55; +goto block_21; +} +} +else +{ +uint8_t x_58; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -5081,182 +5156,48 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_56 = !lean_is_exclusive(x_49); -if (x_56 == 0) +x_58 = !lean_is_exclusive(x_52); +if (x_58 == 0) { -return x_49; +return x_52; } else { -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_49, 0); -x_58 = lean_ctor_get(x_49, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_49); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} -} -else -{ -lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_60 = lean_ctor_get(x_25, 1); +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_52, 0); +x_60 = lean_ctor_get(x_52, 1); lean_inc(x_60); -lean_dec(x_25); -lean_inc(x_22); -x_61 = l_Lean_MessageData_ofExpr(x_22); -x_62 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__7; -x_63 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_63, 0, x_62); -lean_ctor_set(x_63, 1, x_61); +lean_inc(x_59); +lean_dec(x_52); +x_61 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; +x_62 = lean_ctor_get(x_29, 1); +lean_inc(x_62); +lean_dec(x_29); +lean_inc(x_26); +x_63 = l_Lean_MessageData_ofExpr(x_26); +x_64 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__7; +x_65 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_63); lean_ctor_set_tag(x_15, 7); -lean_ctor_set(x_15, 1, x_62); -lean_ctor_set(x_15, 0, x_63); -x_64 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_24, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_60); -x_65 = lean_ctor_get(x_64, 0); -lean_inc(x_65); -x_66 = lean_ctor_get(x_64, 1); -lean_inc(x_66); -lean_dec(x_64); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_67 = l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___lambda__1(x_22, x_19, x_20, x_65, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_66); -lean_dec(x_65); -lean_dec(x_20); -lean_dec(x_19); -if (lean_obj_tag(x_67) == 0) -{ -lean_object* x_68; lean_object* x_69; size_t x_70; size_t x_71; lean_object* x_72; -x_68 = lean_ctor_get(x_67, 0); +lean_ctor_set(x_15, 1, x_64); +lean_ctor_set(x_15, 0, x_65); +x_66 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_28, x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_62); +x_67 = lean_ctor_get(x_66, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_66, 1); lean_inc(x_68); -x_69 = lean_ctor_get(x_67, 1); -lean_inc(x_69); -lean_dec(x_67); -x_70 = 1; -x_71 = lean_usize_add(x_2, x_70); -x_72 = lean_array_uset(x_17, x_2, x_68); -x_2 = x_71; -x_3 = x_72; -x_12 = x_69; -goto _start; -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_74 = lean_ctor_get(x_67, 0); -lean_inc(x_74); -x_75 = lean_ctor_get(x_67, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_67)) { - lean_ctor_release(x_67, 0); - lean_ctor_release(x_67, 1); - x_76 = x_67; -} else { - lean_dec_ref(x_67); - x_76 = lean_box(0); -} -if (lean_is_scalar(x_76)) { - x_77 = lean_alloc_ctor(1, 2, 0); -} else { - x_77 = x_76; -} -lean_ctor_set(x_77, 0, x_74); -lean_ctor_set(x_77, 1, x_75); -return x_77; -} -} -} -} -else -{ -uint8_t x_78; -lean_free_object(x_15); -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_17); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_78 = !lean_is_exclusive(x_21); -if (x_78 == 0) -{ -return x_21; -} -else -{ -lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_21, 0); -x_80 = lean_ctor_get(x_21, 1); -lean_inc(x_80); -lean_inc(x_79); -lean_dec(x_21); -x_81 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -return x_81; -} -} -} -else -{ -lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_82 = lean_ctor_get(x_15, 0); -x_83 = lean_ctor_get(x_15, 1); -lean_inc(x_83); -lean_inc(x_82); -lean_dec(x_15); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_83); -lean_inc(x_82); -x_84 = l_Lean_Meta_mkEq(x_82, x_83, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_84) == 0) -{ -lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; -x_85 = lean_ctor_get(x_84, 0); -lean_inc(x_85); -x_86 = lean_ctor_get(x_84, 1); -lean_inc(x_86); -lean_dec(x_84); -x_87 = l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___closed__1; -x_88 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_87, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_86); -x_89 = lean_ctor_get(x_88, 0); -lean_inc(x_89); -x_90 = lean_unbox(x_89); -lean_dec(x_89); -if (x_90 == 0) -{ -lean_object* x_91; lean_object* x_92; lean_object* x_93; -x_91 = lean_ctor_get(x_88, 1); -lean_inc(x_91); -lean_dec(x_88); -x_92 = lean_box(0); +lean_dec(x_66); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -5264,30 +5205,192 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -x_93 = l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___lambda__1(x_85, x_82, x_83, x_92, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_91); -lean_dec(x_83); -lean_dec(x_82); -if (lean_obj_tag(x_93) == 0) +x_69 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(x_26, x_23, x_24, x_67, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_68); +lean_dec(x_67); +lean_dec(x_24); +lean_dec(x_23); +if (lean_obj_tag(x_69) == 0) { -lean_object* x_94; lean_object* x_95; size_t x_96; size_t x_97; lean_object* x_98; -x_94 = lean_ctor_get(x_93, 0); -lean_inc(x_94); -x_95 = lean_ctor_get(x_93, 1); +lean_object* x_70; +x_70 = lean_ctor_get(x_69, 0); +lean_inc(x_70); +if (lean_obj_tag(x_70) == 0) +{ +lean_object* x_71; +x_71 = lean_ctor_get(x_69, 1); +lean_inc(x_71); +lean_dec(x_69); +x_16 = x_4; +x_17 = x_71; +goto block_21; +} +else +{ +lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_72 = lean_ctor_get(x_69, 1); +lean_inc(x_72); +lean_dec(x_69); +x_73 = lean_ctor_get(x_70, 0); +lean_inc(x_73); +lean_dec(x_70); +x_74 = lean_array_push(x_4, x_73); +x_16 = x_74; +x_17 = x_72; +goto block_21; +} +} +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_75 = lean_ctor_get(x_69, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_69, 1); +lean_inc(x_76); +if (lean_is_exclusive(x_69)) { + lean_ctor_release(x_69, 0); + lean_ctor_release(x_69, 1); + x_77 = x_69; +} else { + lean_dec_ref(x_69); + x_77 = lean_box(0); +} +if (lean_is_scalar(x_77)) { + x_78 = lean_alloc_ctor(1, 2, 0); +} else { + x_78 = x_77; +} +lean_ctor_set(x_78, 0, x_75); +lean_ctor_set(x_78, 1, x_76); +return x_78; +} +} +} +} +else +{ +uint8_t x_79; +lean_free_object(x_15); +lean_dec(x_24); +lean_dec(x_23); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_79 = !lean_is_exclusive(x_25); +if (x_79 == 0) +{ +return x_25; +} +else +{ +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_25, 0); +x_81 = lean_ctor_get(x_25, 1); +lean_inc(x_81); +lean_inc(x_80); +lean_dec(x_25); +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_15, 0); +x_84 = lean_ctor_get(x_15, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_15); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_84); +lean_inc(x_83); +x_85 = l_Lean_Meta_mkEq(x_83, x_84, x_9, x_10, x_11, x_12, x_13); +if (lean_obj_tag(x_85) == 0) +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; +x_86 = lean_ctor_get(x_85, 0); +lean_inc(x_86); +x_87 = lean_ctor_get(x_85, 1); +lean_inc(x_87); +lean_dec(x_85); +x_88 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___closed__1; +x_89 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_88, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_87); +x_90 = lean_ctor_get(x_89, 0); +lean_inc(x_90); +x_91 = lean_unbox(x_90); +lean_dec(x_90); +if (x_91 == 0) +{ +lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_92 = lean_ctor_get(x_89, 1); +lean_inc(x_92); +lean_dec(x_89); +x_93 = lean_box(0); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +x_94 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(x_86, x_83, x_84, x_93, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_92); +lean_dec(x_84); +lean_dec(x_83); +if (lean_obj_tag(x_94) == 0) +{ +lean_object* x_95; +x_95 = lean_ctor_get(x_94, 0); lean_inc(x_95); -lean_dec(x_93); -x_96 = 1; -x_97 = lean_usize_add(x_2, x_96); -x_98 = lean_array_uset(x_17, x_2, x_94); -x_2 = x_97; -x_3 = x_98; -x_12 = x_95; -goto _start; +if (lean_obj_tag(x_95) == 0) +{ +lean_object* x_96; +x_96 = lean_ctor_get(x_94, 1); +lean_inc(x_96); +lean_dec(x_94); +x_16 = x_4; +x_17 = x_96; +goto block_21; +} +else +{ +lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_97 = lean_ctor_get(x_94, 1); +lean_inc(x_97); +lean_dec(x_94); +x_98 = lean_ctor_get(x_95, 0); +lean_inc(x_98); +lean_dec(x_95); +x_99 = lean_array_push(x_4, x_98); +x_16 = x_99; +x_17 = x_97; +goto block_21; +} } else { lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; -lean_dec(x_17); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -5296,16 +5399,16 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_100 = lean_ctor_get(x_93, 0); +x_100 = lean_ctor_get(x_94, 0); lean_inc(x_100); -x_101 = lean_ctor_get(x_93, 1); +x_101 = lean_ctor_get(x_94, 1); lean_inc(x_101); -if (lean_is_exclusive(x_93)) { - lean_ctor_release(x_93, 0); - lean_ctor_release(x_93, 1); - x_102 = x_93; +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + x_102 = x_94; } else { - lean_dec_ref(x_93); + lean_dec_ref(x_94); x_102 = lean_box(0); } if (lean_is_scalar(x_102)) { @@ -5321,18 +5424,18 @@ return x_103; else { lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_104 = lean_ctor_get(x_88, 1); +x_104 = lean_ctor_get(x_89, 1); lean_inc(x_104); -if (lean_is_exclusive(x_88)) { - lean_ctor_release(x_88, 0); - lean_ctor_release(x_88, 1); - x_105 = x_88; +if (lean_is_exclusive(x_89)) { + lean_ctor_release(x_89, 0); + lean_ctor_release(x_89, 1); + x_105 = x_89; } else { - lean_dec_ref(x_88); + lean_dec_ref(x_89); x_105 = lean_box(0); } -lean_inc(x_85); -x_106 = l_Lean_MessageData_ofExpr(x_85); +lean_inc(x_86); +x_106 = l_Lean_MessageData_ofExpr(x_86); x_107 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__7; if (lean_is_scalar(x_105)) { x_108 = lean_alloc_ctor(7, 2, 0); @@ -5345,12 +5448,13 @@ lean_ctor_set(x_108, 1, x_106); x_109 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_109, 0, x_108); lean_ctor_set(x_109, 1, x_107); -x_110 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_87, x_109, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_104); +x_110 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_88, x_109, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_104); x_111 = lean_ctor_get(x_110, 0); lean_inc(x_111); x_112 = lean_ctor_get(x_110, 1); lean_inc(x_112); lean_dec(x_110); +lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); @@ -5358,31 +5462,44 @@ lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); lean_inc(x_5); -lean_inc(x_4); -x_113 = l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___lambda__1(x_85, x_82, x_83, x_111, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_112); +x_113 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(x_86, x_83, x_84, x_111, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_112); lean_dec(x_111); +lean_dec(x_84); lean_dec(x_83); -lean_dec(x_82); if (lean_obj_tag(x_113) == 0) { -lean_object* x_114; lean_object* x_115; size_t x_116; size_t x_117; lean_object* x_118; +lean_object* x_114; x_114 = lean_ctor_get(x_113, 0); lean_inc(x_114); +if (lean_obj_tag(x_114) == 0) +{ +lean_object* x_115; x_115 = lean_ctor_get(x_113, 1); lean_inc(x_115); lean_dec(x_113); -x_116 = 1; -x_117 = lean_usize_add(x_2, x_116); -x_118 = lean_array_uset(x_17, x_2, x_114); -x_2 = x_117; -x_3 = x_118; -x_12 = x_115; -goto _start; +x_16 = x_4; +x_17 = x_115; +goto block_21; } else { -lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -lean_dec(x_17); +lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_116 = lean_ctor_get(x_113, 1); +lean_inc(x_116); +lean_dec(x_113); +x_117 = lean_ctor_get(x_114, 0); +lean_inc(x_117); +lean_dec(x_114); +x_118 = lean_array_push(x_4, x_117); +x_16 = x_118; +x_17 = x_116; +goto block_21; +} +} +else +{ +lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -5391,35 +5508,35 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_120 = lean_ctor_get(x_113, 0); +x_119 = lean_ctor_get(x_113, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_113, 1); lean_inc(x_120); -x_121 = lean_ctor_get(x_113, 1); -lean_inc(x_121); if (lean_is_exclusive(x_113)) { lean_ctor_release(x_113, 0); lean_ctor_release(x_113, 1); - x_122 = x_113; + x_121 = x_113; } else { lean_dec_ref(x_113); - x_122 = lean_box(0); + x_121 = lean_box(0); } -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); } else { - x_123 = x_122; + x_122 = x_121; } -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -return x_123; +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +return x_122; } } } else { -lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; +lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_84); lean_dec(x_83); -lean_dec(x_82); -lean_dec(x_17); +lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -5428,32 +5545,182 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -x_124 = lean_ctor_get(x_84, 0); +x_123 = lean_ctor_get(x_85, 0); +lean_inc(x_123); +x_124 = lean_ctor_get(x_85, 1); lean_inc(x_124); -x_125 = lean_ctor_get(x_84, 1); -lean_inc(x_125); -if (lean_is_exclusive(x_84)) { - lean_ctor_release(x_84, 0); - lean_ctor_release(x_84, 1); - x_126 = x_84; +if (lean_is_exclusive(x_85)) { + lean_ctor_release(x_85, 0); + lean_ctor_release(x_85, 1); + x_125 = x_85; } else { - lean_dec_ref(x_84); - x_126 = lean_box(0); + lean_dec_ref(x_85); + x_125 = lean_box(0); } -if (lean_is_scalar(x_126)) { - x_127 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(1, 2, 0); } else { - x_127 = x_126; + x_126 = x_125; } -lean_ctor_set(x_127, 0, x_124); -lean_ctor_set(x_127, 1, x_125); +lean_ctor_set(x_126, 0, x_123); +lean_ctor_set(x_126, 1, x_124); +return x_126; +} +} +block_21: +{ +size_t x_18; size_t x_19; +x_18 = 1; +x_19 = lean_usize_add(x_2, x_18); +x_2 = x_19; +x_4 = x_16; +x_13 = x_17; +goto _start; +} +} +else +{ +lean_object* x_127; +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +x_127 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_127, 0, x_4); +lean_ctor_set(x_127, 1, x_13); return x_127; } } } +static lean_object* _init_l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_array_mk(x_1); +return x_2; } } -LEAN_EXPORT uint8_t l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = lean_nat_dec_lt(x_2, x_3); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_14 = l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21___closed__1; +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_12); +return x_15; +} +else +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_array_get_size(x_1); +x_17 = lean_nat_dec_le(x_3, x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +x_18 = l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21___closed__1; +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_12); +return x_19; +} +else +{ +size_t x_20; size_t x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_usize_of_nat(x_2); +x_21 = lean_usize_of_nat(x_3); +x_22 = l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21___closed__1; +x_23 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22(x_1, x_20, x_21, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_23; +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__23(lean_object* x_1, lean_object* x_2, lean_object* x_3, size_t x_4, size_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +uint8_t x_16; +x_16 = lean_usize_dec_lt(x_5, x_4); +if (x_16 == 0) +{ +lean_object* x_17; +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_6); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +else +{ +lean_object* x_18; lean_object* x_19; +lean_dec(x_6); +x_18 = lean_array_uget(x_3, x_5); +x_19 = l_Lean_Meta_Grind_addSplitCandidate(x_18, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_19, 1); +lean_inc(x_20); +lean_dec(x_19); +x_21 = 1; +x_22 = lean_usize_add(x_5, x_21); +x_23 = lean_box(0); +x_5 = x_22; +x_6 = x_23; +x_15 = x_20; +goto _start; +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_19); +if (x_25 == 0) +{ +return x_19; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_19, 0); +x_27 = lean_ctor_get(x_19, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_19); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +} +LEAN_EXPORT uint8_t l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; @@ -5476,15 +5743,15 @@ return x_9; } } } -static lean_object* _init_l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___closed__1() { +static lean_object* _init_l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1___boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___lambda__1___boxed), 2, 0); return x_1; } } -LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22(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_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24(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: { uint8_t x_7; @@ -5497,7 +5764,7 @@ return x_2; else { lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_8 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___closed__1; +x_8 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___closed__1; lean_inc(x_3); x_9 = l___private_Init_Data_Array_QSort_0__Array_qpartition___rarg(x_1, x_2, x_8, x_3, x_4, lean_box(0), lean_box(0)); x_10 = lean_ctor_get(x_9, 0); @@ -5509,7 +5776,7 @@ x_12 = lean_nat_dec_le(x_4, x_10); if (x_12 == 0) { lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22(x_1, x_11, x_3, x_10, lean_box(0), lean_box(0)); +x_13 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24(x_1, x_11, x_3, x_10, lean_box(0), lean_box(0)); x_14 = lean_unsigned_to_nat(1u); x_15 = lean_nat_add(x_10, x_14); lean_dec(x_10); @@ -5528,7 +5795,7 @@ return x_11; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__23(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__25(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -6775,326 +7042,280 @@ return x_228; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; size_t x_18; lean_object* x_19; lean_object* x_94; +lean_object* x_12; size_t x_13; size_t x_14; lean_object* x_15; lean_object* x_16; +x_12 = lean_box(0); +x_13 = lean_array_size(x_1); +x_14 = 0; +x_15 = lean_box(0); +x_16 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__23(x_1, x_12, x_1, x_13, x_14, x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_16) == 0) +{ +uint8_t x_17; +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; uint8_t x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_16, 0); +lean_dec(x_18); +x_19 = 1; +x_20 = lean_box(x_19); +lean_ctor_set(x_16, 0, x_20); +return x_16; +} +else +{ +lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_dec(x_16); +x_22 = 1; +x_23 = lean_box(x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_21); +return x_24; +} +} +else +{ +uint8_t x_25; +x_25 = !lean_is_exclusive(x_16); +if (x_25 == 0) +{ +return x_16; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_16, 0); +x_27 = lean_ctor_get(x_16, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_16); +x_28 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_28, 0, x_26); +lean_ctor_set(x_28, 1, x_27); +return x_28; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___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* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_42; x_12 = lean_ctor_get(x_1, 0); x_13 = lean_mk_empty_array_with_capacity(x_12); x_14 = lean_ctor_get(x_1, 1); x_15 = lean_array_get_size(x_14); x_16 = lean_unsigned_to_nat(0u); x_17 = lean_nat_dec_lt(x_16, x_15); -x_18 = 0; if (x_17 == 0) { lean_dec(x_15); -x_94 = x_13; -goto block_102; +x_42 = x_13; +goto block_50; } else { -uint8_t x_103; -x_103 = lean_nat_dec_le(x_15, x_15); -if (x_103 == 0) +uint8_t x_51; +x_51 = lean_nat_dec_le(x_15, x_15); +if (x_51 == 0) { lean_dec(x_15); -x_94 = x_13; -goto block_102; +x_42 = x_13; +goto block_50; } else { -size_t x_104; lean_object* x_105; -x_104 = lean_usize_of_nat(x_15); +size_t x_52; size_t x_53; lean_object* x_54; +x_52 = 0; +x_53 = lean_usize_of_nat(x_15); lean_dec(x_15); -x_105 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__23(x_14, x_18, x_104, x_13); -x_94 = x_105; -goto block_102; +x_54 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__25(x_14, x_52, x_53, x_13); +x_42 = x_54; +goto block_50; } } -block_93: +block_41: { -size_t x_20; lean_object* x_21; -x_20 = lean_array_size(x_19); +lean_object* x_19; lean_object* x_20; +x_19 = lean_array_get_size(x_18); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); lean_inc(x_3); -x_21 = l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21(x_20, x_18, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_21) == 0) +x_20 = l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21(x_18, x_16, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_19); +lean_dec(x_18); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = lean_st_ref_take(x_3, x_23); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_25, 12); -lean_inc(x_26); -x_27 = lean_ctor_get(x_24, 1); -lean_inc(x_27); -lean_dec(x_24); -x_28 = !lean_is_exclusive(x_25); -if (x_28 == 0) +uint8_t x_21; +x_21 = !lean_is_exclusive(x_20); +if (x_21 == 0) { -lean_object* x_29; uint8_t x_30; -x_29 = lean_ctor_get(x_25, 12); +lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_22 = lean_ctor_get(x_20, 0); +x_23 = lean_ctor_get(x_20, 1); +x_24 = l_Array_isEmpty___rarg(x_22); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +lean_free_object(x_20); +x_25 = lean_box(0); +x_26 = l_Lean_Meta_Grind_mbtc___lambda__2(x_22, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_22); +return x_26; +} +else +{ +uint8_t x_27; lean_object* x_28; +lean_dec(x_22); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_27 = 0; +x_28 = lean_box(x_27); +lean_ctor_set(x_20, 0, x_28); +return x_20; +} +} +else +{ +lean_object* x_29; lean_object* x_30; uint8_t x_31; +x_29 = lean_ctor_get(x_20, 0); +x_30 = lean_ctor_get(x_20, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_20); +x_31 = l_Array_isEmpty___rarg(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = lean_box(0); +x_33 = l_Lean_Meta_Grind_mbtc___lambda__2(x_29, x_32, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_30); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_29); -x_30 = !lean_is_exclusive(x_26); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; -x_31 = lean_ctor_get(x_26, 1); -x_32 = lean_array_to_list(x_22); -x_33 = l_List_appendTR___rarg(x_31, x_32); -lean_ctor_set(x_26, 1, x_33); -x_34 = lean_st_ref_set(x_3, x_25, x_27); -lean_dec(x_3); -x_35 = !lean_is_exclusive(x_34); -if (x_35 == 0) -{ -lean_object* x_36; uint8_t x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_34, 0); -lean_dec(x_36); -x_37 = 1; -x_38 = lean_box(x_37); -lean_ctor_set(x_34, 0, x_38); -return x_34; +return x_33; } else { -lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_34, 1); +uint8_t x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_29); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_34 = 0; +x_35 = lean_box(x_34); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_35); +lean_ctor_set(x_36, 1, x_30); +return x_36; +} +} +} +else +{ +uint8_t x_37; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +x_37 = !lean_is_exclusive(x_20); +if (x_37 == 0) +{ +return x_20; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_20, 0); +x_39 = lean_ctor_get(x_20, 1); lean_inc(x_39); -lean_dec(x_34); -x_40 = 1; -x_41 = lean_box(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_39); -return x_42; +lean_inc(x_38); +lean_dec(x_20); +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 +} +block_50: { -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; uint8_t x_54; lean_object* x_55; lean_object* x_56; -x_43 = lean_ctor_get(x_26, 0); -x_44 = lean_ctor_get(x_26, 2); -x_45 = lean_ctor_get(x_26, 3); -x_46 = lean_ctor_get(x_26, 4); -x_47 = lean_ctor_get(x_26, 1); -lean_inc(x_46); +lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_43 = lean_array_get_size(x_42); +x_44 = lean_unsigned_to_nat(1u); +x_45 = lean_nat_sub(x_43, x_44); +x_46 = lean_nat_dec_eq(x_43, x_16); +if (x_46 == 0) +{ +uint8_t x_47; +x_47 = lean_nat_dec_le(x_16, x_45); +if (x_47 == 0) +{ +lean_object* x_48; lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_47); -lean_inc(x_43); -lean_dec(x_26); -x_48 = lean_array_to_list(x_22); -x_49 = l_List_appendTR___rarg(x_47, x_48); -x_50 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_50, 0, x_43); -lean_ctor_set(x_50, 1, x_49); -lean_ctor_set(x_50, 2, x_44); -lean_ctor_set(x_50, 3, x_45); -lean_ctor_set(x_50, 4, x_46); -lean_ctor_set(x_25, 12, x_50); -x_51 = lean_st_ref_set(x_3, x_25, x_27); -lean_dec(x_3); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_53 = x_51; -} else { - lean_dec_ref(x_51); - x_53 = lean_box(0); +x_48 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24(x_43, x_42, x_45, x_45, lean_box(0), lean_box(0)); +lean_dec(x_45); +lean_dec(x_43); +x_18 = x_48; +goto block_41; } -x_54 = 1; -x_55 = lean_box(x_54); -if (lean_is_scalar(x_53)) { - x_56 = lean_alloc_ctor(0, 2, 0); -} else { - x_56 = x_53; -} -lean_ctor_set(x_56, 0, x_55); -lean_ctor_set(x_56, 1, x_52); -return x_56; +else +{ +lean_object* x_49; +x_49 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24(x_43, x_42, x_16, x_45, lean_box(0), lean_box(0)); +lean_dec(x_45); +lean_dec(x_43); +x_18 = x_49; +goto block_41; } } else { -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; uint8_t x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; -x_57 = lean_ctor_get(x_25, 0); -x_58 = lean_ctor_get(x_25, 1); -x_59 = lean_ctor_get(x_25, 2); -x_60 = lean_ctor_get(x_25, 3); -x_61 = lean_ctor_get(x_25, 4); -x_62 = lean_ctor_get(x_25, 5); -x_63 = lean_ctor_get(x_25, 6); -x_64 = lean_ctor_get_uint8(x_25, sizeof(void*)*16); -x_65 = lean_ctor_get(x_25, 7); -x_66 = lean_ctor_get(x_25, 8); -x_67 = lean_ctor_get(x_25, 9); -x_68 = lean_ctor_get(x_25, 10); -x_69 = lean_ctor_get(x_25, 11); -x_70 = lean_ctor_get(x_25, 13); -x_71 = lean_ctor_get(x_25, 14); -x_72 = lean_ctor_get(x_25, 15); -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_63); -lean_inc(x_62); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_25); -x_73 = lean_ctor_get(x_26, 0); -lean_inc(x_73); -x_74 = lean_ctor_get(x_26, 2); -lean_inc(x_74); -x_75 = lean_ctor_get(x_26, 3); -lean_inc(x_75); -x_76 = lean_ctor_get(x_26, 4); -lean_inc(x_76); -x_77 = lean_ctor_get(x_26, 1); -lean_inc(x_77); -if (lean_is_exclusive(x_26)) { - lean_ctor_release(x_26, 0); - lean_ctor_release(x_26, 1); - lean_ctor_release(x_26, 2); - lean_ctor_release(x_26, 3); - lean_ctor_release(x_26, 4); - x_78 = x_26; -} else { - lean_dec_ref(x_26); - x_78 = lean_box(0); -} -x_79 = lean_array_to_list(x_22); -x_80 = l_List_appendTR___rarg(x_77, x_79); -if (lean_is_scalar(x_78)) { - x_81 = lean_alloc_ctor(0, 5, 0); -} else { - x_81 = x_78; -} -lean_ctor_set(x_81, 0, x_73); -lean_ctor_set(x_81, 1, x_80); -lean_ctor_set(x_81, 2, x_74); -lean_ctor_set(x_81, 3, x_75); -lean_ctor_set(x_81, 4, x_76); -x_82 = lean_alloc_ctor(0, 16, 1); -lean_ctor_set(x_82, 0, x_57); -lean_ctor_set(x_82, 1, x_58); -lean_ctor_set(x_82, 2, x_59); -lean_ctor_set(x_82, 3, x_60); -lean_ctor_set(x_82, 4, x_61); -lean_ctor_set(x_82, 5, x_62); -lean_ctor_set(x_82, 6, x_63); -lean_ctor_set(x_82, 7, x_65); -lean_ctor_set(x_82, 8, x_66); -lean_ctor_set(x_82, 9, x_67); -lean_ctor_set(x_82, 10, x_68); -lean_ctor_set(x_82, 11, x_69); -lean_ctor_set(x_82, 12, x_81); -lean_ctor_set(x_82, 13, x_70); -lean_ctor_set(x_82, 14, x_71); -lean_ctor_set(x_82, 15, x_72); -lean_ctor_set_uint8(x_82, sizeof(void*)*16, x_64); -x_83 = lean_st_ref_set(x_3, x_82, x_27); -lean_dec(x_3); -x_84 = lean_ctor_get(x_83, 1); -lean_inc(x_84); -if (lean_is_exclusive(x_83)) { - lean_ctor_release(x_83, 0); - lean_ctor_release(x_83, 1); - x_85 = x_83; -} else { - lean_dec_ref(x_83); - x_85 = lean_box(0); -} -x_86 = 1; -x_87 = lean_box(x_86); -if (lean_is_scalar(x_85)) { - x_88 = lean_alloc_ctor(0, 2, 0); -} else { - x_88 = x_85; -} -lean_ctor_set(x_88, 0, x_87); -lean_ctor_set(x_88, 1, x_84); -return x_88; -} -} -else -{ -uint8_t x_89; -lean_dec(x_3); -x_89 = !lean_is_exclusive(x_21); -if (x_89 == 0) -{ -return x_21; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_21, 0); -x_91 = lean_ctor_get(x_21, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_21); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -} -block_102: -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; uint8_t x_98; -x_95 = lean_array_get_size(x_94); -x_96 = lean_unsigned_to_nat(1u); -x_97 = lean_nat_sub(x_95, x_96); -x_98 = lean_nat_dec_eq(x_95, x_16); -if (x_98 == 0) -{ -uint8_t x_99; -x_99 = lean_nat_dec_le(x_16, x_97); -if (x_99 == 0) -{ -lean_object* x_100; -lean_inc(x_97); -x_100 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22(x_95, x_94, x_97, x_97, lean_box(0), lean_box(0)); -lean_dec(x_97); -lean_dec(x_95); -x_19 = x_100; -goto block_93; -} -else -{ -lean_object* x_101; -x_101 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22(x_95, x_94, x_16, x_97, lean_box(0), lean_box(0)); -lean_dec(x_97); -lean_dec(x_95); -x_19 = x_101; -goto block_93; -} -} -else -{ -lean_dec(x_97); -lean_dec(x_95); -x_19 = x_94; -goto block_93; +lean_dec(x_45); +lean_dec(x_43); +x_18 = x_42; +goto block_41; } } } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__3___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__1() { _start: { lean_object* x_1; @@ -7102,26 +7323,26 @@ x_1 = lean_mk_string_unchecked("skipping `mbtc`, maximum number of splits has be return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__3___closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_mbtc___lambda__3___closed__1; +x_1 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__1; x_2 = lean_alloc_ctor(3, 1, 0); lean_ctor_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__3___closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_mbtc___lambda__3___closed__2; +x_1 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__2; x_2 = l_Lean_MessageData_ofFormat(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___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* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; @@ -7153,14 +7374,14 @@ if (x_21 == 0) { lean_object* x_22; lean_object* x_23; x_22 = lean_box(0); -x_23 = l_Lean_Meta_Grind_mbtc___lambda__2(x_1, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +x_23 = l_Lean_Meta_Grind_mbtc___lambda__3(x_1, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); return x_23; } else { lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_dec(x_3); -x_24 = l_Lean_Meta_Grind_mbtc___lambda__3___closed__3; +x_24 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__3; x_25 = l_Lean_Meta_Grind_reportIssue(x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_17); lean_dec(x_10); lean_dec(x_9); @@ -7196,7 +7417,7 @@ return x_33; } } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__1() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__1() { _start: { lean_object* x_1; @@ -7204,29 +7425,29 @@ x_1 = lean_alloc_closure((void*)(l_instDecidableEqNat___boxed), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__2() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__1; +x_1 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__1; x_2 = lean_alloc_closure((void*)(l_instBEqOfDecidableEq___rarg), 3, 1); lean_closure_set(x_2, 0, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__3() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Expr_instBEq; -x_2 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__2; +x_2 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__2; x_3 = lean_alloc_closure((void*)(l_instBEqProd___rarg), 4, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__4() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__4() { _start: { lean_object* x_1; @@ -7234,19 +7455,19 @@ x_1 = lean_alloc_closure((void*)(l_instHashableNat___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__5() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l_Lean_Expr_instHashable; -x_2 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__4; +x_2 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__4; x_3 = lean_alloc_closure((void*)(l_instHashableProd___rarg___boxed), 3, 2); lean_closure_set(x_3, 0, x_1); lean_closure_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__6() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -7256,29 +7477,29 @@ x_3 = l_Nat_nextPowerOfTwo_go(x_1, x_2, lean_box(0)); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__7() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__6; +x_2 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__6; x_3 = lean_mk_array(x_2, x_1); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__8() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__7; +x_2 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__7; x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__9() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__9() { _start: { lean_object* x_1; lean_object* x_2; @@ -7289,7 +7510,7 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__10() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__10() { _start: { lean_object* x_1; lean_object* x_2; @@ -7300,18 +7521,18 @@ lean_closure_set(x_2, 1, x_1); return x_2; } } -static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__11() { +static lean_object* _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__8; +x_1 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__8; x_2 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_2, 0, x_1); lean_ctor_set(x_2, 1, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___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, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { 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; @@ -7325,10 +7546,10 @@ lean_dec(x_13); x_16 = lean_ctor_get(x_14, 2); lean_inc(x_16); lean_dec(x_14); -x_17 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__3; -x_18 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__5; -x_19 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__9; -x_20 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__10; +x_17 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__3; +x_18 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__5; +x_19 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__9; +x_20 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__10; x_21 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_mbtc___lambda__1___boxed), 17, 6); lean_closure_set(x_21, 0, x_1); lean_closure_set(x_21, 1, x_17); @@ -7336,7 +7557,7 @@ lean_closure_set(x_21, 2, x_18); lean_closure_set(x_21, 3, x_12); lean_closure_set(x_21, 4, x_19); lean_closure_set(x_21, 5, x_20); -x_22 = l_Lean_Meta_Grind_mbtc___lambda__4___closed__11; +x_22 = l_Lean_Meta_Grind_mbtc___lambda__5___closed__11; lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); @@ -7368,7 +7589,7 @@ if (x_30 == 0) lean_object* x_31; lean_object* x_32; lean_free_object(x_23); x_31 = lean_box(0); -x_32 = l_Lean_Meta_Grind_mbtc___lambda__3(x_27, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_26); +x_32 = l_Lean_Meta_Grind_mbtc___lambda__4(x_27, x_31, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_26); lean_dec(x_27); return x_32; } @@ -7410,7 +7631,7 @@ if (x_40 == 0) { lean_object* x_41; lean_object* x_42; x_41 = lean_box(0); -x_42 = l_Lean_Meta_Grind_mbtc___lambda__3(x_37, x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_36); +x_42 = l_Lean_Meta_Grind_mbtc___lambda__4(x_37, x_41, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_36); lean_dec(x_37); return x_42; } @@ -7467,6 +7688,64 @@ return x_49; } } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = l_Lean_Meta_Grind_checkMaxCaseSplit(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_unbox(x_13); +lean_dec(x_13); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_box(0); +x_17 = l_Lean_Meta_Grind_mbtc___lambda__5(x_1, x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15); +return x_17; +} +else +{ +uint8_t x_18; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_12, 0); +lean_dec(x_19); +x_20 = 0; +x_21 = lean_box(x_20); +lean_ctor_set(x_12, 0, x_21); +return x_12; +} +else +{ +lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; +x_22 = lean_ctor_get(x_12, 1); +lean_inc(x_22); +lean_dec(x_12); +x_23 = 0; +x_24 = lean_box(x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_22); +return x_25; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -7520,7 +7799,7 @@ x_22 = lean_ctor_get(x_11, 1); lean_inc(x_22); lean_dec(x_11); x_23 = lean_box(0); -x_24 = l_Lean_Meta_Grind_mbtc___lambda__4(x_1, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); +x_24 = l_Lean_Meta_Grind_mbtc___lambda__6(x_1, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_22); return x_24; } } @@ -7711,51 +7990,86 @@ lean_dec(x_2); return x_16; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { lean_object* x_14; -x_14 = l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +x_14 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); return x_14; } } -LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { _start: { -size_t x_13; size_t x_14; lean_object* x_15; -x_13 = lean_unbox_usize(x_1); -lean_dec(x_1); +size_t x_14; size_t x_15; lean_object* x_16; x_14 = lean_unbox_usize(x_2); lean_dec(x_2); -x_15 = l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21(x_13, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -return x_15; +x_15 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_16 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22(x_1, x_14, x_15, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +lean_dec(x_1); +return x_16; } } -LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__23___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +size_t x_16; size_t x_17; lean_object* x_18; +x_16 = lean_unbox_usize(x_4); +lean_dec(x_4); +x_17 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_18 = l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__23(x_1, x_2, x_3, x_16, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___lambda__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___lambda__1(x_1, x_2); +x_3 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___lambda__1(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___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_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___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_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22(x_1, x_2, x_3, x_4, x_5, x_6); +x_7 = l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24(x_1, x_2, x_3, x_4, x_5, x_6); lean_dec(x_4); lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__23___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__25___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { size_t x_5; size_t x_6; lean_object* x_7; @@ -7763,7 +8077,7 @@ x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__23(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__25(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } @@ -7802,6 +8116,14 @@ _start: { lean_object* x_12; x_12 = l_Lean_Meta_Grind_mbtc___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); return x_12; @@ -7823,6 +8145,25 @@ _start: lean_object* x_12; x_12 = l_Lean_Meta_Grind_mbtc___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_2); +lean_dec(x_1); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_mbtc___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mbtc___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_mbtc___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_2); return x_12; } } @@ -8123,40 +8464,42 @@ l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__10 = lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__10); l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__11 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__11(); lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_mbtc___spec__14___closed__11); -l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___closed__1 = _init_l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___closed__1(); -lean_mark_persistent(l_Array_mapMUnsafe_map___at_Lean_Meta_Grind_mbtc___spec__21___closed__1); -l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___closed__1 = _init_l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___closed__1(); -lean_mark_persistent(l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__22___closed__1); +l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___closed__1 = _init_l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___closed__1(); +lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_Meta_Grind_mbtc___spec__22___closed__1); +l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21___closed__1 = _init_l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21___closed__1(); +lean_mark_persistent(l_Array_filterMapM___at_Lean_Meta_Grind_mbtc___spec__21___closed__1); +l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___closed__1 = _init_l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___closed__1(); +lean_mark_persistent(l_Array_qsort_sort___at_Lean_Meta_Grind_mbtc___spec__24___closed__1); l_Lean_Meta_Grind_mbtc___lambda__1___closed__1 = _init_l_Lean_Meta_Grind_mbtc___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__1___closed__1); -l_Lean_Meta_Grind_mbtc___lambda__3___closed__1 = _init_l_Lean_Meta_Grind_mbtc___lambda__3___closed__1(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__3___closed__1); -l_Lean_Meta_Grind_mbtc___lambda__3___closed__2 = _init_l_Lean_Meta_Grind_mbtc___lambda__3___closed__2(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__3___closed__2); -l_Lean_Meta_Grind_mbtc___lambda__3___closed__3 = _init_l_Lean_Meta_Grind_mbtc___lambda__3___closed__3(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__3___closed__3); l_Lean_Meta_Grind_mbtc___lambda__4___closed__1 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__1); l_Lean_Meta_Grind_mbtc___lambda__4___closed__2 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__2(); lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__2); l_Lean_Meta_Grind_mbtc___lambda__4___closed__3 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__3(); lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__3); -l_Lean_Meta_Grind_mbtc___lambda__4___closed__4 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__4(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__4); -l_Lean_Meta_Grind_mbtc___lambda__4___closed__5 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__5(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__5); -l_Lean_Meta_Grind_mbtc___lambda__4___closed__6 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__6(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__6); -l_Lean_Meta_Grind_mbtc___lambda__4___closed__7 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__7(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__7); -l_Lean_Meta_Grind_mbtc___lambda__4___closed__8 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__8(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__8); -l_Lean_Meta_Grind_mbtc___lambda__4___closed__9 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__9(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__9); -l_Lean_Meta_Grind_mbtc___lambda__4___closed__10 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__10(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__10); -l_Lean_Meta_Grind_mbtc___lambda__4___closed__11 = _init_l_Lean_Meta_Grind_mbtc___lambda__4___closed__11(); -lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__4___closed__11); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__1 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__1); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__2 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__2); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__3 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__3(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__3); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__4 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__4(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__4); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__5 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__5(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__5); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__6 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__6(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__6); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__7 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__7(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__7); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__8 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__8(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__8); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__9 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__9(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__9); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__10 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__10(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__10); +l_Lean_Meta_Grind_mbtc___lambda__5___closed__11 = _init_l_Lean_Meta_Grind_mbtc___lambda__5___closed__11(); +lean_mark_persistent(l_Lean_Meta_Grind_mbtc___lambda__5___closed__11); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c index 1416a67e3b..3ee68e7365 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Main.c @@ -3690,12 +3690,13 @@ lean_ctor_set(x_36, 6, x_34); lean_ctor_set(x_36, 7, x_32); lean_ctor_set(x_36, 8, x_35); x_37 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_Split_instInhabitedState___spec__1; -x_38 = lean_alloc_ctor(0, 5, 0); +x_38 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_38, 0, x_27); lean_ctor_set(x_38, 1, x_31); lean_ctor_set(x_38, 2, x_32); lean_ctor_set(x_38, 3, x_37); -lean_ctor_set(x_38, 4, x_31); +lean_ctor_set(x_38, 4, x_37); +lean_ctor_set(x_38, 5, x_31); x_39 = l___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___lambda__4___closed__1; x_40 = l_Lean_Meta_Grind_mkParams___closed__2; x_41 = l_Lean_PersistentHashMap_empty___at___private_Lean_Meta_Tactic_Grind_Main_0__Lean_Meta_Grind_mkGoal___spec__1; diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/PP.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/PP.c index fa6abd4985..873282ea04 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/PP.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/PP.c @@ -7449,7 +7449,7 @@ _start: lean_object* x_8; lean_object* x_9; uint8_t x_10; x_8 = lean_ctor_get(x_1, 12); lean_inc(x_8); -x_9 = lean_ctor_get(x_8, 4); +x_9 = lean_ctor_get(x_8, 5); lean_inc(x_9); lean_dec(x_8); x_10 = l_List_isEmpty___rarg(x_9); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Split.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Split.c index 61faf13cc3..e3fd6299a1 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Split.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Split.c @@ -136,6 +136,7 @@ lean_object* l_Lean_Meta_isMatcherAppCore_x3f(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_splitNext___lambda__2___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___spec__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_updateLastTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkForallStatus___lambda__2___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -247,6 +248,7 @@ lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Grind_isInconsistent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__8___closed__5; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isMatcherApp___at___private_Lean_Meta_Tactic_Grind_Internalize_0__Lean_Meta_Grind_checkAndAddSplitCandidate___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* _init_l_Lean_Meta_Grind_instInhabitedCaseSplitStatus() { @@ -2754,72 +2756,139 @@ x_14 = lean_st_ref_get(x_5, x_13); x_15 = !lean_is_exclusive(x_14); if (x_15 == 0) { -lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; +lean_object* x_16; uint8_t x_17; x_16 = lean_ctor_get(x_14, 0); -x_17 = lean_ctor_get(x_16, 2); -lean_inc(x_17); +x_17 = l_Lean_Expr_isApp(x_3); +if (x_17 == 0) +{ +uint8_t x_18; lean_object* x_19; lean_dec(x_16); -x_18 = l_Lean_Meta_Grind_isCongruent(x_17, x_1, x_3); +lean_dec(x_3); +lean_dec(x_1); +x_18 = 0; x_19 = lean_box(x_18); lean_ctor_set(x_14, 0, x_19); return x_14; } else { -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; -x_20 = lean_ctor_get(x_14, 0); -x_21 = lean_ctor_get(x_14, 1); -lean_inc(x_21); +lean_object* x_20; uint8_t x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_16, 2); lean_inc(x_20); -lean_dec(x_14); -x_22 = lean_ctor_get(x_20, 2); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_Meta_Grind_isCongruent(x_22, x_1, x_3); -x_24 = lean_box(x_23); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_24); -lean_ctor_set(x_25, 1, x_21); -return x_25; +lean_dec(x_16); +x_21 = l_Lean_Meta_Grind_isCongruent(x_20, x_1, x_3); +x_22 = lean_box(x_21); +lean_ctor_set(x_14, 0, x_22); +return x_14; } } else { +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_14, 0); +x_24 = lean_ctor_get(x_14, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_14); +x_25 = l_Lean_Expr_isApp(x_3); +if (x_25 == 0) +{ uint8_t x_26; lean_object* x_27; lean_object* x_28; +lean_dec(x_23); lean_dec(x_3); lean_dec(x_1); -x_26 = 1; +x_26 = 0; x_27 = lean_box(x_26); x_28 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_28, 0, x_27); -lean_ctor_set(x_28, 1, x_13); +lean_ctor_set(x_28, 1, x_24); return x_28; } +else +{ +lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_23, 2); +lean_inc(x_29); +lean_dec(x_23); +x_30 = l_Lean_Meta_Grind_isCongruent(x_29, x_1, x_3); +x_31 = lean_box(x_30); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_24); +return x_32; +} +} +} +else +{ +uint8_t x_33; lean_object* x_34; lean_object* x_35; +lean_dec(x_3); +lean_dec(x_1); +x_33 = 1; +x_34 = lean_box(x_33); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_13); +return x_35; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; +x_12 = lean_st_ref_get(x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = lean_ctor_get(x_13, 12); +lean_inc(x_15); +lean_dec(x_13); +x_16 = lean_ctor_get(x_15, 4); +lean_inc(x_16); +lean_dec(x_15); +x_17 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___lambda__1___boxed), 13, 1); +lean_closure_set(x_17, 0, x_1); +x_18 = 0; +x_19 = lean_box(x_18); +x_20 = l_Lean_PersistentHashMap_foldlMAux___at___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___spec__2___rarg(x_17, x_16, x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14); +lean_dec(x_16); +return x_20; } } LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; -x_11 = lean_st_ref_get(x_2, x_10); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = lean_ctor_get(x_12, 12); -lean_inc(x_14); -lean_dec(x_12); -x_15 = lean_ctor_get(x_14, 3); -lean_inc(x_15); -lean_dec(x_14); -x_16 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___lambda__1___boxed), 13, 1); -lean_closure_set(x_16, 0, x_1); -x_17 = 0; -x_18 = lean_box(x_17); -x_19 = l_Lean_PersistentHashMap_foldlMAux___at___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___spec__2___rarg(x_16, x_15, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_13); -lean_dec(x_15); -return x_19; +uint8_t x_11; +x_11 = l_Lean_Expr_isApp(x_1); +if (x_11 == 0) +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +x_12 = 0; +x_13 = lean_box(x_12); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_10); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_box(0); +x_16 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___lambda__2(x_1, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_16; +} } } LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { @@ -2884,6 +2953,15 @@ lean_dec(x_4); return x_15; } } +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_isCongrToPrevSplit___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_2); +return x_12; +} +} LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkForallStatus___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -6037,7 +6115,7 @@ return x_26; } else { -lean_object* x_27; lean_object* x_28; uint8_t 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_119; lean_object* x_120; lean_object* x_121; uint8_t x_122; lean_object* x_123; +lean_object* x_27; lean_object* x_28; uint8_t 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_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; x_27 = lean_ctor_get(x_22, 1); lean_inc(x_27); lean_dec(x_22); @@ -6050,63 +6128,63 @@ lean_inc(x_31); x_32 = lean_ctor_get(x_30, 1); lean_inc(x_32); lean_dec(x_30); -x_119 = lean_ctor_get(x_31, 12); -lean_inc(x_119); +x_122 = lean_ctor_get(x_31, 12); +lean_inc(x_122); lean_dec(x_31); -x_120 = lean_ctor_get(x_119, 2); -lean_inc(x_120); -lean_dec(x_119); -x_121 = lean_unsigned_to_nat(1u); -x_122 = lean_nat_dec_lt(x_121, x_28); +x_123 = lean_ctor_get(x_122, 2); +lean_inc(x_123); +lean_dec(x_122); +x_124 = lean_unsigned_to_nat(1u); +x_125 = lean_nat_dec_lt(x_124, x_28); lean_dec(x_28); -x_123 = lean_st_ref_take(x_4, x_32); -if (x_122 == 0) +x_126 = lean_st_ref_take(x_4, x_32); +if (x_125 == 0) { if (x_29 == 0) { -lean_object* x_124; lean_object* x_125; -x_124 = lean_ctor_get(x_123, 0); -lean_inc(x_124); -x_125 = lean_ctor_get(x_123, 1); -lean_inc(x_125); -lean_dec(x_123); -x_33 = x_120; -x_34 = x_124; -x_35 = x_125; -goto block_118; -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_123, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_123, 1); +lean_object* x_127; lean_object* x_128; +x_127 = lean_ctor_get(x_126, 0); lean_inc(x_127); -lean_dec(x_123); -x_128 = lean_nat_add(x_120, x_121); -lean_dec(x_120); -x_33 = x_128; -x_34 = x_126; -x_35 = x_127; -goto block_118; -} +x_128 = lean_ctor_get(x_126, 1); +lean_inc(x_128); +lean_dec(x_126); +x_33 = x_123; +x_34 = x_127; +x_35 = x_128; +goto block_121; } else { lean_object* x_129; lean_object* x_130; lean_object* x_131; -x_129 = lean_ctor_get(x_123, 0); +x_129 = lean_ctor_get(x_126, 0); lean_inc(x_129); -x_130 = lean_ctor_get(x_123, 1); +x_130 = lean_ctor_get(x_126, 1); lean_inc(x_130); +lean_dec(x_126); +x_131 = lean_nat_add(x_123, x_124); lean_dec(x_123); -x_131 = lean_nat_add(x_120, x_121); -lean_dec(x_120); x_33 = x_131; x_34 = x_129; x_35 = x_130; -goto block_118; +goto block_121; } -block_118: +} +else +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; +x_132 = lean_ctor_get(x_126, 0); +lean_inc(x_132); +x_133 = lean_ctor_get(x_126, 1); +lean_inc(x_133); +lean_dec(x_126); +x_134 = lean_nat_add(x_123, x_124); +lean_dec(x_123); +x_33 = x_134; +x_34 = x_132; +x_35 = x_133; +goto block_121; +} +block_121: { uint8_t x_36; x_36 = !lean_is_exclusive(x_34); @@ -6155,57 +6233,61 @@ return x_48; } else { -lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; x_49 = lean_ctor_get(x_39, 0); x_50 = lean_ctor_get(x_39, 1); x_51 = lean_ctor_get(x_39, 3); x_52 = lean_ctor_get(x_39, 4); +x_53 = lean_ctor_get(x_39, 5); +lean_inc(x_53); lean_inc(x_52); lean_inc(x_51); lean_inc(x_50); lean_inc(x_49); lean_dec(x_39); -x_53 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_53, 0, x_49); -lean_ctor_set(x_53, 1, x_50); -lean_ctor_set(x_53, 2, x_33); -lean_ctor_set(x_53, 3, x_51); -lean_ctor_set(x_53, 4, x_52); -lean_ctor_set(x_34, 12, x_53); -x_54 = lean_st_ref_set(x_4, x_34, x_35); +x_54 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_54, 0, x_49); +lean_ctor_set(x_54, 1, x_50); +lean_ctor_set(x_54, 2, x_33); +lean_ctor_set(x_54, 3, x_51); +lean_ctor_set(x_54, 4, x_52); +lean_ctor_set(x_54, 5, x_53); +lean_ctor_set(x_34, 12, x_54); +x_55 = lean_st_ref_set(x_4, x_34, x_35); lean_dec(x_4); -x_55 = lean_ctor_get(x_54, 1); -lean_inc(x_55); -if (lean_is_exclusive(x_54)) { - lean_ctor_release(x_54, 0); - lean_ctor_release(x_54, 1); - x_56 = x_54; +x_56 = lean_ctor_get(x_55, 1); +lean_inc(x_56); +if (lean_is_exclusive(x_55)) { + lean_ctor_release(x_55, 0); + lean_ctor_release(x_55, 1); + x_57 = x_55; } else { - lean_dec_ref(x_54); - x_56 = lean_box(0); + lean_dec_ref(x_55); + x_57 = lean_box(0); } -if (lean_is_scalar(x_56)) { - x_57 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_57)) { + x_58 = lean_alloc_ctor(0, 2, 0); } else { - x_57 = x_56; + x_58 = x_57; } -lean_ctor_set(x_57, 0, x_2); -lean_ctor_set(x_57, 1, x_55); -return x_57; +lean_ctor_set(x_58, 0, x_2); +lean_ctor_set(x_58, 1, x_56); +return x_58; } } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; -x_58 = lean_ctor_get(x_34, 12); -x_59 = lean_ctor_get(x_37, 0); -x_60 = lean_ctor_get(x_37, 1); -x_61 = lean_ctor_get(x_37, 2); -x_62 = lean_ctor_get(x_37, 3); -x_63 = lean_ctor_get(x_37, 4); -x_64 = lean_ctor_get(x_37, 6); -x_65 = lean_ctor_get(x_37, 7); -x_66 = lean_ctor_get(x_37, 8); +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; +x_59 = lean_ctor_get(x_34, 12); +x_60 = lean_ctor_get(x_37, 0); +x_61 = lean_ctor_get(x_37, 1); +x_62 = lean_ctor_get(x_37, 2); +x_63 = lean_ctor_get(x_37, 3); +x_64 = lean_ctor_get(x_37, 4); +x_65 = lean_ctor_get(x_37, 6); +x_66 = lean_ctor_get(x_37, 7); +x_67 = lean_ctor_get(x_37, 8); +lean_inc(x_67); lean_inc(x_66); lean_inc(x_65); lean_inc(x_64); @@ -6213,1016 +6295,969 @@ lean_inc(x_63); lean_inc(x_62); lean_inc(x_61); lean_inc(x_60); -lean_inc(x_59); lean_dec(x_37); -x_67 = lean_unsigned_to_nat(0u); -x_68 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_68, 0, x_59); -lean_ctor_set(x_68, 1, x_60); -lean_ctor_set(x_68, 2, x_61); -lean_ctor_set(x_68, 3, x_62); -lean_ctor_set(x_68, 4, x_63); -lean_ctor_set(x_68, 5, x_67); -lean_ctor_set(x_68, 6, x_64); -lean_ctor_set(x_68, 7, x_65); -lean_ctor_set(x_68, 8, x_66); -x_69 = lean_ctor_get(x_58, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_58, 1); +x_68 = lean_unsigned_to_nat(0u); +x_69 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_69, 0, x_60); +lean_ctor_set(x_69, 1, x_61); +lean_ctor_set(x_69, 2, x_62); +lean_ctor_set(x_69, 3, x_63); +lean_ctor_set(x_69, 4, x_64); +lean_ctor_set(x_69, 5, x_68); +lean_ctor_set(x_69, 6, x_65); +lean_ctor_set(x_69, 7, x_66); +lean_ctor_set(x_69, 8, x_67); +x_70 = lean_ctor_get(x_59, 0); lean_inc(x_70); -x_71 = lean_ctor_get(x_58, 3); +x_71 = lean_ctor_get(x_59, 1); lean_inc(x_71); -x_72 = lean_ctor_get(x_58, 4); +x_72 = lean_ctor_get(x_59, 3); lean_inc(x_72); -if (lean_is_exclusive(x_58)) { - lean_ctor_release(x_58, 0); - lean_ctor_release(x_58, 1); - lean_ctor_release(x_58, 2); - lean_ctor_release(x_58, 3); - lean_ctor_release(x_58, 4); - x_73 = x_58; +x_73 = lean_ctor_get(x_59, 4); +lean_inc(x_73); +x_74 = lean_ctor_get(x_59, 5); +lean_inc(x_74); +if (lean_is_exclusive(x_59)) { + lean_ctor_release(x_59, 0); + lean_ctor_release(x_59, 1); + lean_ctor_release(x_59, 2); + lean_ctor_release(x_59, 3); + lean_ctor_release(x_59, 4); + lean_ctor_release(x_59, 5); + x_75 = x_59; } else { - lean_dec_ref(x_58); - x_73 = lean_box(0); + lean_dec_ref(x_59); + x_75 = lean_box(0); } -if (lean_is_scalar(x_73)) { - x_74 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_75)) { + x_76 = lean_alloc_ctor(0, 6, 0); } else { - x_74 = x_73; + x_76 = x_75; } -lean_ctor_set(x_74, 0, x_69); -lean_ctor_set(x_74, 1, x_70); -lean_ctor_set(x_74, 2, x_33); -lean_ctor_set(x_74, 3, x_71); -lean_ctor_set(x_74, 4, x_72); -lean_ctor_set(x_34, 12, x_74); -lean_ctor_set(x_34, 11, x_68); -x_75 = lean_st_ref_set(x_4, x_34, x_35); +lean_ctor_set(x_76, 0, x_70); +lean_ctor_set(x_76, 1, x_71); +lean_ctor_set(x_76, 2, x_33); +lean_ctor_set(x_76, 3, x_72); +lean_ctor_set(x_76, 4, x_73); +lean_ctor_set(x_76, 5, x_74); +lean_ctor_set(x_34, 12, x_76); +lean_ctor_set(x_34, 11, x_69); +x_77 = lean_st_ref_set(x_4, x_34, x_35); lean_dec(x_4); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -if (lean_is_exclusive(x_75)) { - lean_ctor_release(x_75, 0); - lean_ctor_release(x_75, 1); - x_77 = x_75; +x_78 = lean_ctor_get(x_77, 1); +lean_inc(x_78); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_79 = x_77; } else { - lean_dec_ref(x_75); - x_77 = lean_box(0); + lean_dec_ref(x_77); + x_79 = lean_box(0); } -if (lean_is_scalar(x_77)) { - x_78 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_79)) { + x_80 = lean_alloc_ctor(0, 2, 0); } else { - x_78 = x_77; + x_80 = x_79; } -lean_ctor_set(x_78, 0, x_2); -lean_ctor_set(x_78, 1, x_76); -return x_78; +lean_ctor_set(x_80, 0, x_2); +lean_ctor_set(x_80, 1, x_78); +return x_80; } } else { -lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -x_79 = lean_ctor_get(x_34, 11); -x_80 = lean_ctor_get(x_34, 0); -x_81 = lean_ctor_get(x_34, 1); -x_82 = lean_ctor_get(x_34, 2); -x_83 = lean_ctor_get(x_34, 3); -x_84 = lean_ctor_get(x_34, 4); -x_85 = lean_ctor_get(x_34, 5); -x_86 = lean_ctor_get(x_34, 6); -x_87 = lean_ctor_get_uint8(x_34, sizeof(void*)*16); -x_88 = lean_ctor_get(x_34, 7); -x_89 = lean_ctor_get(x_34, 8); -x_90 = lean_ctor_get(x_34, 9); -x_91 = lean_ctor_get(x_34, 10); -x_92 = lean_ctor_get(x_34, 12); -x_93 = lean_ctor_get(x_34, 13); -x_94 = lean_ctor_get(x_34, 14); -x_95 = lean_ctor_get(x_34, 15); +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; uint8_t x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; +x_81 = lean_ctor_get(x_34, 11); +x_82 = lean_ctor_get(x_34, 0); +x_83 = lean_ctor_get(x_34, 1); +x_84 = lean_ctor_get(x_34, 2); +x_85 = lean_ctor_get(x_34, 3); +x_86 = lean_ctor_get(x_34, 4); +x_87 = lean_ctor_get(x_34, 5); +x_88 = lean_ctor_get(x_34, 6); +x_89 = lean_ctor_get_uint8(x_34, sizeof(void*)*16); +x_90 = lean_ctor_get(x_34, 7); +x_91 = lean_ctor_get(x_34, 8); +x_92 = lean_ctor_get(x_34, 9); +x_93 = lean_ctor_get(x_34, 10); +x_94 = lean_ctor_get(x_34, 12); +x_95 = lean_ctor_get(x_34, 13); +x_96 = lean_ctor_get(x_34, 14); +x_97 = lean_ctor_get(x_34, 15); +lean_inc(x_97); +lean_inc(x_96); lean_inc(x_95); lean_inc(x_94); +lean_inc(x_81); lean_inc(x_93); lean_inc(x_92); -lean_inc(x_79); lean_inc(x_91); lean_inc(x_90); -lean_inc(x_89); lean_inc(x_88); +lean_inc(x_87); lean_inc(x_86); lean_inc(x_85); lean_inc(x_84); lean_inc(x_83); lean_inc(x_82); -lean_inc(x_81); -lean_inc(x_80); lean_dec(x_34); -x_96 = lean_ctor_get(x_79, 0); -lean_inc(x_96); -x_97 = lean_ctor_get(x_79, 1); -lean_inc(x_97); -x_98 = lean_ctor_get(x_79, 2); +x_98 = lean_ctor_get(x_81, 0); lean_inc(x_98); -x_99 = lean_ctor_get(x_79, 3); +x_99 = lean_ctor_get(x_81, 1); lean_inc(x_99); -x_100 = lean_ctor_get(x_79, 4); +x_100 = lean_ctor_get(x_81, 2); lean_inc(x_100); -x_101 = lean_ctor_get(x_79, 6); +x_101 = lean_ctor_get(x_81, 3); lean_inc(x_101); -x_102 = lean_ctor_get(x_79, 7); +x_102 = lean_ctor_get(x_81, 4); lean_inc(x_102); -x_103 = lean_ctor_get(x_79, 8); +x_103 = lean_ctor_get(x_81, 6); lean_inc(x_103); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - lean_ctor_release(x_79, 2); - lean_ctor_release(x_79, 3); - lean_ctor_release(x_79, 4); - lean_ctor_release(x_79, 5); - lean_ctor_release(x_79, 6); - lean_ctor_release(x_79, 7); - lean_ctor_release(x_79, 8); - x_104 = x_79; +x_104 = lean_ctor_get(x_81, 7); +lean_inc(x_104); +x_105 = lean_ctor_get(x_81, 8); +lean_inc(x_105); +if (lean_is_exclusive(x_81)) { + lean_ctor_release(x_81, 0); + lean_ctor_release(x_81, 1); + lean_ctor_release(x_81, 2); + lean_ctor_release(x_81, 3); + lean_ctor_release(x_81, 4); + lean_ctor_release(x_81, 5); + lean_ctor_release(x_81, 6); + lean_ctor_release(x_81, 7); + lean_ctor_release(x_81, 8); + x_106 = x_81; } else { - lean_dec_ref(x_79); - x_104 = lean_box(0); + lean_dec_ref(x_81); + x_106 = lean_box(0); } -x_105 = lean_unsigned_to_nat(0u); -if (lean_is_scalar(x_104)) { - x_106 = lean_alloc_ctor(0, 9, 0); +x_107 = lean_unsigned_to_nat(0u); +if (lean_is_scalar(x_106)) { + x_108 = lean_alloc_ctor(0, 9, 0); } else { - x_106 = x_104; + x_108 = x_106; } -lean_ctor_set(x_106, 0, x_96); -lean_ctor_set(x_106, 1, x_97); -lean_ctor_set(x_106, 2, x_98); -lean_ctor_set(x_106, 3, x_99); -lean_ctor_set(x_106, 4, x_100); -lean_ctor_set(x_106, 5, x_105); -lean_ctor_set(x_106, 6, x_101); -lean_ctor_set(x_106, 7, x_102); -lean_ctor_set(x_106, 8, x_103); -x_107 = lean_ctor_get(x_92, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_92, 1); -lean_inc(x_108); -x_109 = lean_ctor_get(x_92, 3); +lean_ctor_set(x_108, 0, x_98); +lean_ctor_set(x_108, 1, x_99); +lean_ctor_set(x_108, 2, x_100); +lean_ctor_set(x_108, 3, x_101); +lean_ctor_set(x_108, 4, x_102); +lean_ctor_set(x_108, 5, x_107); +lean_ctor_set(x_108, 6, x_103); +lean_ctor_set(x_108, 7, x_104); +lean_ctor_set(x_108, 8, x_105); +x_109 = lean_ctor_get(x_94, 0); lean_inc(x_109); -x_110 = lean_ctor_get(x_92, 4); +x_110 = lean_ctor_get(x_94, 1); lean_inc(x_110); -if (lean_is_exclusive(x_92)) { - lean_ctor_release(x_92, 0); - lean_ctor_release(x_92, 1); - lean_ctor_release(x_92, 2); - lean_ctor_release(x_92, 3); - lean_ctor_release(x_92, 4); - x_111 = x_92; +x_111 = lean_ctor_get(x_94, 3); +lean_inc(x_111); +x_112 = lean_ctor_get(x_94, 4); +lean_inc(x_112); +x_113 = lean_ctor_get(x_94, 5); +lean_inc(x_113); +if (lean_is_exclusive(x_94)) { + lean_ctor_release(x_94, 0); + lean_ctor_release(x_94, 1); + lean_ctor_release(x_94, 2); + lean_ctor_release(x_94, 3); + lean_ctor_release(x_94, 4); + lean_ctor_release(x_94, 5); + x_114 = x_94; } else { - lean_dec_ref(x_92); - x_111 = lean_box(0); + lean_dec_ref(x_94); + x_114 = lean_box(0); } -if (lean_is_scalar(x_111)) { - x_112 = lean_alloc_ctor(0, 5, 0); +if (lean_is_scalar(x_114)) { + x_115 = lean_alloc_ctor(0, 6, 0); } else { - x_112 = x_111; + x_115 = x_114; } -lean_ctor_set(x_112, 0, x_107); -lean_ctor_set(x_112, 1, x_108); -lean_ctor_set(x_112, 2, x_33); -lean_ctor_set(x_112, 3, x_109); -lean_ctor_set(x_112, 4, x_110); -x_113 = lean_alloc_ctor(0, 16, 1); -lean_ctor_set(x_113, 0, x_80); -lean_ctor_set(x_113, 1, x_81); -lean_ctor_set(x_113, 2, x_82); -lean_ctor_set(x_113, 3, x_83); -lean_ctor_set(x_113, 4, x_84); -lean_ctor_set(x_113, 5, x_85); -lean_ctor_set(x_113, 6, x_86); -lean_ctor_set(x_113, 7, x_88); -lean_ctor_set(x_113, 8, x_89); -lean_ctor_set(x_113, 9, x_90); -lean_ctor_set(x_113, 10, x_91); -lean_ctor_set(x_113, 11, x_106); -lean_ctor_set(x_113, 12, x_112); -lean_ctor_set(x_113, 13, x_93); -lean_ctor_set(x_113, 14, x_94); -lean_ctor_set(x_113, 15, x_95); -lean_ctor_set_uint8(x_113, sizeof(void*)*16, x_87); -x_114 = lean_st_ref_set(x_4, x_113, x_35); +lean_ctor_set(x_115, 0, x_109); +lean_ctor_set(x_115, 1, x_110); +lean_ctor_set(x_115, 2, x_33); +lean_ctor_set(x_115, 3, x_111); +lean_ctor_set(x_115, 4, x_112); +lean_ctor_set(x_115, 5, x_113); +x_116 = lean_alloc_ctor(0, 16, 1); +lean_ctor_set(x_116, 0, x_82); +lean_ctor_set(x_116, 1, x_83); +lean_ctor_set(x_116, 2, x_84); +lean_ctor_set(x_116, 3, x_85); +lean_ctor_set(x_116, 4, x_86); +lean_ctor_set(x_116, 5, x_87); +lean_ctor_set(x_116, 6, x_88); +lean_ctor_set(x_116, 7, x_90); +lean_ctor_set(x_116, 8, x_91); +lean_ctor_set(x_116, 9, x_92); +lean_ctor_set(x_116, 10, x_93); +lean_ctor_set(x_116, 11, x_108); +lean_ctor_set(x_116, 12, x_115); +lean_ctor_set(x_116, 13, x_95); +lean_ctor_set(x_116, 14, x_96); +lean_ctor_set(x_116, 15, x_97); +lean_ctor_set_uint8(x_116, sizeof(void*)*16, x_89); +x_117 = lean_st_ref_set(x_4, x_116, x_35); lean_dec(x_4); -x_115 = lean_ctor_get(x_114, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_114)) { - lean_ctor_release(x_114, 0); - lean_ctor_release(x_114, 1); - x_116 = x_114; +x_118 = lean_ctor_get(x_117, 1); +lean_inc(x_118); +if (lean_is_exclusive(x_117)) { + lean_ctor_release(x_117, 0); + lean_ctor_release(x_117, 1); + x_119 = x_117; } else { - lean_dec_ref(x_114); - x_116 = lean_box(0); + lean_dec_ref(x_117); + x_119 = lean_box(0); } -if (lean_is_scalar(x_116)) { - x_117 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_119)) { + x_120 = lean_alloc_ctor(0, 2, 0); } else { - x_117 = x_116; + x_120 = x_119; } -lean_ctor_set(x_117, 0, x_2); -lean_ctor_set(x_117, 1, x_115); -return x_117; +lean_ctor_set(x_120, 0, x_2); +lean_ctor_set(x_120, 1, x_118); +return x_120; } } } } else { -lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; -x_132 = lean_ctor_get(x_15, 0); -x_133 = lean_ctor_get(x_15, 2); -x_134 = lean_ctor_get(x_15, 3); -x_135 = lean_ctor_get(x_15, 4); +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; +x_135 = lean_ctor_get(x_15, 0); +x_136 = lean_ctor_get(x_15, 2); +x_137 = lean_ctor_get(x_15, 3); +x_138 = lean_ctor_get(x_15, 4); +x_139 = lean_ctor_get(x_15, 5); +lean_inc(x_139); +lean_inc(x_138); +lean_inc(x_137); +lean_inc(x_136); lean_inc(x_135); -lean_inc(x_134); -lean_inc(x_133); -lean_inc(x_132); lean_dec(x_15); -x_136 = l_List_reverse___rarg(x_3); -x_137 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_137, 0, x_132); -lean_ctor_set(x_137, 1, x_136); -lean_ctor_set(x_137, 2, x_133); -lean_ctor_set(x_137, 3, x_134); -lean_ctor_set(x_137, 4, x_135); -lean_ctor_set(x_14, 12, x_137); -x_138 = lean_st_ref_set(x_4, x_14, x_16); +x_140 = l_List_reverse___rarg(x_3); +x_141 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_141, 0, x_135); +lean_ctor_set(x_141, 1, x_140); +lean_ctor_set(x_141, 2, x_136); +lean_ctor_set(x_141, 3, x_137); +lean_ctor_set(x_141, 4, x_138); +lean_ctor_set(x_141, 5, x_139); +lean_ctor_set(x_14, 12, x_141); +x_142 = lean_st_ref_set(x_4, x_14, x_16); if (lean_obj_tag(x_2) == 0) { -lean_object* x_139; lean_object* x_140; lean_object* x_141; +lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_dec(x_4); -x_139 = lean_ctor_get(x_138, 1); -lean_inc(x_139); -if (lean_is_exclusive(x_138)) { - lean_ctor_release(x_138, 0); - lean_ctor_release(x_138, 1); - x_140 = x_138; -} else { - lean_dec_ref(x_138); - x_140 = lean_box(0); -} -if (lean_is_scalar(x_140)) { - x_141 = lean_alloc_ctor(0, 2, 0); -} else { - x_141 = x_140; -} -lean_ctor_set(x_141, 0, x_2); -lean_ctor_set(x_141, 1, x_139); -return x_141; -} -else -{ -lean_object* x_142; lean_object* x_143; uint8_t 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_192; lean_object* x_193; lean_object* x_194; uint8_t x_195; lean_object* x_196; -x_142 = lean_ctor_get(x_138, 1); -lean_inc(x_142); -lean_dec(x_138); -x_143 = lean_ctor_get(x_2, 1); +x_143 = lean_ctor_get(x_142, 1); lean_inc(x_143); -x_144 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); -x_145 = lean_st_ref_get(x_4, x_142); -x_146 = lean_ctor_get(x_145, 0); +if (lean_is_exclusive(x_142)) { + lean_ctor_release(x_142, 0); + lean_ctor_release(x_142, 1); + x_144 = x_142; +} else { + lean_dec_ref(x_142); + x_144 = lean_box(0); +} +if (lean_is_scalar(x_144)) { + x_145 = lean_alloc_ctor(0, 2, 0); +} else { + x_145 = x_144; +} +lean_ctor_set(x_145, 0, x_2); +lean_ctor_set(x_145, 1, x_143); +return x_145; +} +else +{ +lean_object* x_146; lean_object* x_147; uint8_t x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; lean_object* x_201; +x_146 = lean_ctor_get(x_142, 1); lean_inc(x_146); -x_147 = lean_ctor_get(x_145, 1); +lean_dec(x_142); +x_147 = lean_ctor_get(x_2, 1); lean_inc(x_147); -lean_dec(x_145); -x_192 = lean_ctor_get(x_146, 12); -lean_inc(x_192); -lean_dec(x_146); -x_193 = lean_ctor_get(x_192, 2); -lean_inc(x_193); -lean_dec(x_192); -x_194 = lean_unsigned_to_nat(1u); -x_195 = lean_nat_dec_lt(x_194, x_143); -lean_dec(x_143); -x_196 = lean_st_ref_take(x_4, x_147); -if (x_195 == 0) -{ -if (x_144 == 0) -{ -lean_object* x_197; lean_object* x_198; -x_197 = lean_ctor_get(x_196, 0); -lean_inc(x_197); -x_198 = lean_ctor_get(x_196, 1); -lean_inc(x_198); -lean_dec(x_196); -x_148 = x_193; -x_149 = x_197; -x_150 = x_198; -goto block_191; -} -else -{ -lean_object* x_199; lean_object* x_200; lean_object* x_201; -x_199 = lean_ctor_get(x_196, 0); -lean_inc(x_199); -x_200 = lean_ctor_get(x_196, 1); -lean_inc(x_200); -lean_dec(x_196); -x_201 = lean_nat_add(x_193, x_194); -lean_dec(x_193); -x_148 = x_201; -x_149 = x_199; -x_150 = x_200; -goto block_191; -} -} -else -{ -lean_object* x_202; lean_object* x_203; lean_object* x_204; -x_202 = lean_ctor_get(x_196, 0); -lean_inc(x_202); -x_203 = lean_ctor_get(x_196, 1); -lean_inc(x_203); -lean_dec(x_196); -x_204 = lean_nat_add(x_193, x_194); -lean_dec(x_193); -x_148 = x_204; -x_149 = x_202; -x_150 = x_203; -goto block_191; -} -block_191: -{ -lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; uint8_t x_159; 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; -x_151 = lean_ctor_get(x_149, 11); +x_148 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); +x_149 = lean_st_ref_get(x_4, x_146); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +x_151 = lean_ctor_get(x_149, 1); lean_inc(x_151); -x_152 = lean_ctor_get(x_149, 0); -lean_inc(x_152); -x_153 = lean_ctor_get(x_149, 1); -lean_inc(x_153); -x_154 = lean_ctor_get(x_149, 2); -lean_inc(x_154); -x_155 = lean_ctor_get(x_149, 3); +lean_dec(x_149); +x_197 = lean_ctor_get(x_150, 12); +lean_inc(x_197); +lean_dec(x_150); +x_198 = lean_ctor_get(x_197, 2); +lean_inc(x_198); +lean_dec(x_197); +x_199 = lean_unsigned_to_nat(1u); +x_200 = lean_nat_dec_lt(x_199, x_147); +lean_dec(x_147); +x_201 = lean_st_ref_take(x_4, x_151); +if (x_200 == 0) +{ +if (x_148 == 0) +{ +lean_object* x_202; lean_object* x_203; +x_202 = lean_ctor_get(x_201, 0); +lean_inc(x_202); +x_203 = lean_ctor_get(x_201, 1); +lean_inc(x_203); +lean_dec(x_201); +x_152 = x_198; +x_153 = x_202; +x_154 = x_203; +goto block_196; +} +else +{ +lean_object* x_204; lean_object* x_205; lean_object* x_206; +x_204 = lean_ctor_get(x_201, 0); +lean_inc(x_204); +x_205 = lean_ctor_get(x_201, 1); +lean_inc(x_205); +lean_dec(x_201); +x_206 = lean_nat_add(x_198, x_199); +lean_dec(x_198); +x_152 = x_206; +x_153 = x_204; +x_154 = x_205; +goto block_196; +} +} +else +{ +lean_object* x_207; lean_object* x_208; lean_object* x_209; +x_207 = lean_ctor_get(x_201, 0); +lean_inc(x_207); +x_208 = lean_ctor_get(x_201, 1); +lean_inc(x_208); +lean_dec(x_201); +x_209 = lean_nat_add(x_198, x_199); +lean_dec(x_198); +x_152 = x_209; +x_153 = x_207; +x_154 = x_208; +goto block_196; +} +block_196: +{ +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; uint8_t 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; +x_155 = lean_ctor_get(x_153, 11); lean_inc(x_155); -x_156 = lean_ctor_get(x_149, 4); +x_156 = lean_ctor_get(x_153, 0); lean_inc(x_156); -x_157 = lean_ctor_get(x_149, 5); +x_157 = lean_ctor_get(x_153, 1); lean_inc(x_157); -x_158 = lean_ctor_get(x_149, 6); +x_158 = lean_ctor_get(x_153, 2); lean_inc(x_158); -x_159 = lean_ctor_get_uint8(x_149, sizeof(void*)*16); -x_160 = lean_ctor_get(x_149, 7); +x_159 = lean_ctor_get(x_153, 3); +lean_inc(x_159); +x_160 = lean_ctor_get(x_153, 4); lean_inc(x_160); -x_161 = lean_ctor_get(x_149, 8); +x_161 = lean_ctor_get(x_153, 5); lean_inc(x_161); -x_162 = lean_ctor_get(x_149, 9); +x_162 = lean_ctor_get(x_153, 6); lean_inc(x_162); -x_163 = lean_ctor_get(x_149, 10); -lean_inc(x_163); -x_164 = lean_ctor_get(x_149, 12); +x_163 = lean_ctor_get_uint8(x_153, sizeof(void*)*16); +x_164 = lean_ctor_get(x_153, 7); lean_inc(x_164); -x_165 = lean_ctor_get(x_149, 13); +x_165 = lean_ctor_get(x_153, 8); lean_inc(x_165); -x_166 = lean_ctor_get(x_149, 14); +x_166 = lean_ctor_get(x_153, 9); lean_inc(x_166); -x_167 = lean_ctor_get(x_149, 15); +x_167 = lean_ctor_get(x_153, 10); lean_inc(x_167); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - lean_ctor_release(x_149, 2); - lean_ctor_release(x_149, 3); - lean_ctor_release(x_149, 4); - lean_ctor_release(x_149, 5); - lean_ctor_release(x_149, 6); - lean_ctor_release(x_149, 7); - lean_ctor_release(x_149, 8); - lean_ctor_release(x_149, 9); - lean_ctor_release(x_149, 10); - lean_ctor_release(x_149, 11); - lean_ctor_release(x_149, 12); - lean_ctor_release(x_149, 13); - lean_ctor_release(x_149, 14); - lean_ctor_release(x_149, 15); - x_168 = x_149; -} else { - lean_dec_ref(x_149); - x_168 = lean_box(0); -} -x_169 = lean_ctor_get(x_151, 0); +x_168 = lean_ctor_get(x_153, 12); +lean_inc(x_168); +x_169 = lean_ctor_get(x_153, 13); lean_inc(x_169); -x_170 = lean_ctor_get(x_151, 1); +x_170 = lean_ctor_get(x_153, 14); lean_inc(x_170); -x_171 = lean_ctor_get(x_151, 2); +x_171 = lean_ctor_get(x_153, 15); lean_inc(x_171); -x_172 = lean_ctor_get(x_151, 3); -lean_inc(x_172); -x_173 = lean_ctor_get(x_151, 4); +if (lean_is_exclusive(x_153)) { + lean_ctor_release(x_153, 0); + lean_ctor_release(x_153, 1); + lean_ctor_release(x_153, 2); + lean_ctor_release(x_153, 3); + lean_ctor_release(x_153, 4); + lean_ctor_release(x_153, 5); + lean_ctor_release(x_153, 6); + lean_ctor_release(x_153, 7); + lean_ctor_release(x_153, 8); + lean_ctor_release(x_153, 9); + lean_ctor_release(x_153, 10); + lean_ctor_release(x_153, 11); + lean_ctor_release(x_153, 12); + lean_ctor_release(x_153, 13); + lean_ctor_release(x_153, 14); + lean_ctor_release(x_153, 15); + x_172 = x_153; +} else { + lean_dec_ref(x_153); + x_172 = lean_box(0); +} +x_173 = lean_ctor_get(x_155, 0); lean_inc(x_173); -x_174 = lean_ctor_get(x_151, 6); +x_174 = lean_ctor_get(x_155, 1); lean_inc(x_174); -x_175 = lean_ctor_get(x_151, 7); +x_175 = lean_ctor_get(x_155, 2); lean_inc(x_175); -x_176 = lean_ctor_get(x_151, 8); +x_176 = lean_ctor_get(x_155, 3); lean_inc(x_176); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - lean_ctor_release(x_151, 2); - lean_ctor_release(x_151, 3); - lean_ctor_release(x_151, 4); - lean_ctor_release(x_151, 5); - lean_ctor_release(x_151, 6); - lean_ctor_release(x_151, 7); - lean_ctor_release(x_151, 8); - x_177 = x_151; -} else { - lean_dec_ref(x_151); - x_177 = lean_box(0); -} -x_178 = lean_unsigned_to_nat(0u); -if (lean_is_scalar(x_177)) { - x_179 = lean_alloc_ctor(0, 9, 0); -} else { - x_179 = x_177; -} -lean_ctor_set(x_179, 0, x_169); -lean_ctor_set(x_179, 1, x_170); -lean_ctor_set(x_179, 2, x_171); -lean_ctor_set(x_179, 3, x_172); -lean_ctor_set(x_179, 4, x_173); -lean_ctor_set(x_179, 5, x_178); -lean_ctor_set(x_179, 6, x_174); -lean_ctor_set(x_179, 7, x_175); -lean_ctor_set(x_179, 8, x_176); -x_180 = lean_ctor_get(x_164, 0); +x_177 = lean_ctor_get(x_155, 4); +lean_inc(x_177); +x_178 = lean_ctor_get(x_155, 6); +lean_inc(x_178); +x_179 = lean_ctor_get(x_155, 7); +lean_inc(x_179); +x_180 = lean_ctor_get(x_155, 8); lean_inc(x_180); -x_181 = lean_ctor_get(x_164, 1); -lean_inc(x_181); -x_182 = lean_ctor_get(x_164, 3); -lean_inc(x_182); -x_183 = lean_ctor_get(x_164, 4); -lean_inc(x_183); -if (lean_is_exclusive(x_164)) { - lean_ctor_release(x_164, 0); - lean_ctor_release(x_164, 1); - lean_ctor_release(x_164, 2); - lean_ctor_release(x_164, 3); - lean_ctor_release(x_164, 4); - x_184 = x_164; +if (lean_is_exclusive(x_155)) { + lean_ctor_release(x_155, 0); + lean_ctor_release(x_155, 1); + lean_ctor_release(x_155, 2); + lean_ctor_release(x_155, 3); + lean_ctor_release(x_155, 4); + lean_ctor_release(x_155, 5); + lean_ctor_release(x_155, 6); + lean_ctor_release(x_155, 7); + lean_ctor_release(x_155, 8); + x_181 = x_155; } else { - lean_dec_ref(x_164); - x_184 = lean_box(0); + lean_dec_ref(x_155); + x_181 = lean_box(0); } -if (lean_is_scalar(x_184)) { - x_185 = lean_alloc_ctor(0, 5, 0); +x_182 = lean_unsigned_to_nat(0u); +if (lean_is_scalar(x_181)) { + x_183 = lean_alloc_ctor(0, 9, 0); } else { - x_185 = x_184; + x_183 = x_181; } -lean_ctor_set(x_185, 0, x_180); -lean_ctor_set(x_185, 1, x_181); -lean_ctor_set(x_185, 2, x_148); -lean_ctor_set(x_185, 3, x_182); -lean_ctor_set(x_185, 4, x_183); -if (lean_is_scalar(x_168)) { - x_186 = lean_alloc_ctor(0, 16, 1); -} else { - x_186 = x_168; -} -lean_ctor_set(x_186, 0, x_152); -lean_ctor_set(x_186, 1, x_153); -lean_ctor_set(x_186, 2, x_154); -lean_ctor_set(x_186, 3, x_155); -lean_ctor_set(x_186, 4, x_156); -lean_ctor_set(x_186, 5, x_157); -lean_ctor_set(x_186, 6, x_158); -lean_ctor_set(x_186, 7, x_160); -lean_ctor_set(x_186, 8, x_161); -lean_ctor_set(x_186, 9, x_162); -lean_ctor_set(x_186, 10, x_163); -lean_ctor_set(x_186, 11, x_179); -lean_ctor_set(x_186, 12, x_185); -lean_ctor_set(x_186, 13, x_165); -lean_ctor_set(x_186, 14, x_166); -lean_ctor_set(x_186, 15, x_167); -lean_ctor_set_uint8(x_186, sizeof(void*)*16, x_159); -x_187 = lean_st_ref_set(x_4, x_186, x_150); -lean_dec(x_4); -x_188 = lean_ctor_get(x_187, 1); +lean_ctor_set(x_183, 0, x_173); +lean_ctor_set(x_183, 1, x_174); +lean_ctor_set(x_183, 2, x_175); +lean_ctor_set(x_183, 3, x_176); +lean_ctor_set(x_183, 4, x_177); +lean_ctor_set(x_183, 5, x_182); +lean_ctor_set(x_183, 6, x_178); +lean_ctor_set(x_183, 7, x_179); +lean_ctor_set(x_183, 8, x_180); +x_184 = lean_ctor_get(x_168, 0); +lean_inc(x_184); +x_185 = lean_ctor_get(x_168, 1); +lean_inc(x_185); +x_186 = lean_ctor_get(x_168, 3); +lean_inc(x_186); +x_187 = lean_ctor_get(x_168, 4); +lean_inc(x_187); +x_188 = lean_ctor_get(x_168, 5); lean_inc(x_188); -if (lean_is_exclusive(x_187)) { - lean_ctor_release(x_187, 0); - lean_ctor_release(x_187, 1); - x_189 = x_187; +if (lean_is_exclusive(x_168)) { + lean_ctor_release(x_168, 0); + lean_ctor_release(x_168, 1); + lean_ctor_release(x_168, 2); + lean_ctor_release(x_168, 3); + lean_ctor_release(x_168, 4); + lean_ctor_release(x_168, 5); + x_189 = x_168; } else { - lean_dec_ref(x_187); + lean_dec_ref(x_168); x_189 = lean_box(0); } if (lean_is_scalar(x_189)) { - x_190 = lean_alloc_ctor(0, 2, 0); + x_190 = lean_alloc_ctor(0, 6, 0); } else { x_190 = x_189; } -lean_ctor_set(x_190, 0, x_2); -lean_ctor_set(x_190, 1, x_188); -return x_190; +lean_ctor_set(x_190, 0, x_184); +lean_ctor_set(x_190, 1, x_185); +lean_ctor_set(x_190, 2, x_152); +lean_ctor_set(x_190, 3, x_186); +lean_ctor_set(x_190, 4, x_187); +lean_ctor_set(x_190, 5, x_188); +if (lean_is_scalar(x_172)) { + x_191 = lean_alloc_ctor(0, 16, 1); +} else { + x_191 = x_172; +} +lean_ctor_set(x_191, 0, x_156); +lean_ctor_set(x_191, 1, x_157); +lean_ctor_set(x_191, 2, x_158); +lean_ctor_set(x_191, 3, x_159); +lean_ctor_set(x_191, 4, x_160); +lean_ctor_set(x_191, 5, x_161); +lean_ctor_set(x_191, 6, x_162); +lean_ctor_set(x_191, 7, x_164); +lean_ctor_set(x_191, 8, x_165); +lean_ctor_set(x_191, 9, x_166); +lean_ctor_set(x_191, 10, x_167); +lean_ctor_set(x_191, 11, x_183); +lean_ctor_set(x_191, 12, x_190); +lean_ctor_set(x_191, 13, x_169); +lean_ctor_set(x_191, 14, x_170); +lean_ctor_set(x_191, 15, x_171); +lean_ctor_set_uint8(x_191, sizeof(void*)*16, x_163); +x_192 = lean_st_ref_set(x_4, x_191, x_154); +lean_dec(x_4); +x_193 = lean_ctor_get(x_192, 1); +lean_inc(x_193); +if (lean_is_exclusive(x_192)) { + lean_ctor_release(x_192, 0); + lean_ctor_release(x_192, 1); + x_194 = x_192; +} else { + lean_dec_ref(x_192); + x_194 = lean_box(0); +} +if (lean_is_scalar(x_194)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_194; +} +lean_ctor_set(x_195, 0, x_2); +lean_ctor_set(x_195, 1, x_193); +return x_195; } } } } else { -lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; uint8_t 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; -x_205 = lean_ctor_get(x_14, 0); -x_206 = lean_ctor_get(x_14, 1); -x_207 = lean_ctor_get(x_14, 2); -x_208 = lean_ctor_get(x_14, 3); -x_209 = lean_ctor_get(x_14, 4); -x_210 = lean_ctor_get(x_14, 5); -x_211 = lean_ctor_get(x_14, 6); -x_212 = lean_ctor_get_uint8(x_14, sizeof(void*)*16); -x_213 = lean_ctor_get(x_14, 7); -x_214 = lean_ctor_get(x_14, 8); -x_215 = lean_ctor_get(x_14, 9); -x_216 = lean_ctor_get(x_14, 10); -x_217 = lean_ctor_get(x_14, 11); -x_218 = lean_ctor_get(x_14, 13); -x_219 = lean_ctor_get(x_14, 14); -x_220 = lean_ctor_get(x_14, 15); +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; uint8_t x_217; lean_object* x_218; 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; +x_210 = lean_ctor_get(x_14, 0); +x_211 = lean_ctor_get(x_14, 1); +x_212 = lean_ctor_get(x_14, 2); +x_213 = lean_ctor_get(x_14, 3); +x_214 = lean_ctor_get(x_14, 4); +x_215 = lean_ctor_get(x_14, 5); +x_216 = lean_ctor_get(x_14, 6); +x_217 = lean_ctor_get_uint8(x_14, sizeof(void*)*16); +x_218 = lean_ctor_get(x_14, 7); +x_219 = lean_ctor_get(x_14, 8); +x_220 = lean_ctor_get(x_14, 9); +x_221 = lean_ctor_get(x_14, 10); +x_222 = lean_ctor_get(x_14, 11); +x_223 = lean_ctor_get(x_14, 13); +x_224 = lean_ctor_get(x_14, 14); +x_225 = lean_ctor_get(x_14, 15); +lean_inc(x_225); +lean_inc(x_224); +lean_inc(x_223); +lean_inc(x_222); +lean_inc(x_221); lean_inc(x_220); lean_inc(x_219); lean_inc(x_218); -lean_inc(x_217); lean_inc(x_216); lean_inc(x_215); lean_inc(x_214); lean_inc(x_213); +lean_inc(x_212); lean_inc(x_211); lean_inc(x_210); -lean_inc(x_209); -lean_inc(x_208); -lean_inc(x_207); -lean_inc(x_206); -lean_inc(x_205); lean_dec(x_14); -x_221 = lean_ctor_get(x_15, 0); -lean_inc(x_221); -x_222 = lean_ctor_get(x_15, 2); -lean_inc(x_222); -x_223 = lean_ctor_get(x_15, 3); -lean_inc(x_223); -x_224 = lean_ctor_get(x_15, 4); -lean_inc(x_224); +x_226 = lean_ctor_get(x_15, 0); +lean_inc(x_226); +x_227 = lean_ctor_get(x_15, 2); +lean_inc(x_227); +x_228 = lean_ctor_get(x_15, 3); +lean_inc(x_228); +x_229 = lean_ctor_get(x_15, 4); +lean_inc(x_229); +x_230 = lean_ctor_get(x_15, 5); +lean_inc(x_230); if (lean_is_exclusive(x_15)) { lean_ctor_release(x_15, 0); lean_ctor_release(x_15, 1); lean_ctor_release(x_15, 2); lean_ctor_release(x_15, 3); lean_ctor_release(x_15, 4); - x_225 = x_15; + lean_ctor_release(x_15, 5); + x_231 = x_15; } else { lean_dec_ref(x_15); - x_225 = lean_box(0); -} -x_226 = l_List_reverse___rarg(x_3); -if (lean_is_scalar(x_225)) { - x_227 = lean_alloc_ctor(0, 5, 0); -} else { - x_227 = x_225; -} -lean_ctor_set(x_227, 0, x_221); -lean_ctor_set(x_227, 1, x_226); -lean_ctor_set(x_227, 2, x_222); -lean_ctor_set(x_227, 3, x_223); -lean_ctor_set(x_227, 4, x_224); -x_228 = lean_alloc_ctor(0, 16, 1); -lean_ctor_set(x_228, 0, x_205); -lean_ctor_set(x_228, 1, x_206); -lean_ctor_set(x_228, 2, x_207); -lean_ctor_set(x_228, 3, x_208); -lean_ctor_set(x_228, 4, x_209); -lean_ctor_set(x_228, 5, x_210); -lean_ctor_set(x_228, 6, x_211); -lean_ctor_set(x_228, 7, x_213); -lean_ctor_set(x_228, 8, x_214); -lean_ctor_set(x_228, 9, x_215); -lean_ctor_set(x_228, 10, x_216); -lean_ctor_set(x_228, 11, x_217); -lean_ctor_set(x_228, 12, x_227); -lean_ctor_set(x_228, 13, x_218); -lean_ctor_set(x_228, 14, x_219); -lean_ctor_set(x_228, 15, x_220); -lean_ctor_set_uint8(x_228, sizeof(void*)*16, x_212); -x_229 = lean_st_ref_set(x_4, x_228, x_16); -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_230; lean_object* x_231; lean_object* x_232; -lean_dec(x_4); -x_230 = lean_ctor_get(x_229, 1); -lean_inc(x_230); -if (lean_is_exclusive(x_229)) { - lean_ctor_release(x_229, 0); - lean_ctor_release(x_229, 1); - x_231 = x_229; -} else { - lean_dec_ref(x_229); x_231 = lean_box(0); } +x_232 = l_List_reverse___rarg(x_3); if (lean_is_scalar(x_231)) { - x_232 = lean_alloc_ctor(0, 2, 0); + x_233 = lean_alloc_ctor(0, 6, 0); } else { - x_232 = x_231; + x_233 = x_231; } -lean_ctor_set(x_232, 0, x_2); -lean_ctor_set(x_232, 1, x_230); -return x_232; +lean_ctor_set(x_233, 0, x_226); +lean_ctor_set(x_233, 1, x_232); +lean_ctor_set(x_233, 2, x_227); +lean_ctor_set(x_233, 3, x_228); +lean_ctor_set(x_233, 4, x_229); +lean_ctor_set(x_233, 5, x_230); +x_234 = lean_alloc_ctor(0, 16, 1); +lean_ctor_set(x_234, 0, x_210); +lean_ctor_set(x_234, 1, x_211); +lean_ctor_set(x_234, 2, x_212); +lean_ctor_set(x_234, 3, x_213); +lean_ctor_set(x_234, 4, x_214); +lean_ctor_set(x_234, 5, x_215); +lean_ctor_set(x_234, 6, x_216); +lean_ctor_set(x_234, 7, x_218); +lean_ctor_set(x_234, 8, x_219); +lean_ctor_set(x_234, 9, x_220); +lean_ctor_set(x_234, 10, x_221); +lean_ctor_set(x_234, 11, x_222); +lean_ctor_set(x_234, 12, x_233); +lean_ctor_set(x_234, 13, x_223); +lean_ctor_set(x_234, 14, x_224); +lean_ctor_set(x_234, 15, x_225); +lean_ctor_set_uint8(x_234, sizeof(void*)*16, x_217); +x_235 = lean_st_ref_set(x_4, x_234, x_16); +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; +lean_dec(x_4); +x_236 = lean_ctor_get(x_235, 1); +lean_inc(x_236); +if (lean_is_exclusive(x_235)) { + lean_ctor_release(x_235, 0); + lean_ctor_release(x_235, 1); + x_237 = x_235; +} else { + lean_dec_ref(x_235); + x_237 = lean_box(0); +} +if (lean_is_scalar(x_237)) { + x_238 = lean_alloc_ctor(0, 2, 0); +} else { + x_238 = x_237; +} +lean_ctor_set(x_238, 0, x_2); +lean_ctor_set(x_238, 1, x_236); +return x_238; } else { -lean_object* x_233; lean_object* x_234; uint8_t 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_283; lean_object* x_284; lean_object* x_285; uint8_t x_286; lean_object* x_287; -x_233 = lean_ctor_get(x_229, 1); -lean_inc(x_233); -lean_dec(x_229); -x_234 = lean_ctor_get(x_2, 1); -lean_inc(x_234); -x_235 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); -x_236 = lean_st_ref_get(x_4, x_233); -x_237 = lean_ctor_get(x_236, 0); -lean_inc(x_237); -x_238 = lean_ctor_get(x_236, 1); -lean_inc(x_238); -lean_dec(x_236); -x_283 = lean_ctor_get(x_237, 12); -lean_inc(x_283); -lean_dec(x_237); -x_284 = lean_ctor_get(x_283, 2); -lean_inc(x_284); -lean_dec(x_283); -x_285 = lean_unsigned_to_nat(1u); -x_286 = lean_nat_dec_lt(x_285, x_234); -lean_dec(x_234); -x_287 = lean_st_ref_take(x_4, x_238); -if (x_286 == 0) -{ -if (x_235 == 0) -{ -lean_object* x_288; lean_object* x_289; -x_288 = lean_ctor_get(x_287, 0); -lean_inc(x_288); -x_289 = lean_ctor_get(x_287, 1); -lean_inc(x_289); -lean_dec(x_287); -x_239 = x_284; -x_240 = x_288; -x_241 = x_289; -goto block_282; -} -else -{ -lean_object* x_290; lean_object* x_291; lean_object* x_292; -x_290 = lean_ctor_get(x_287, 0); -lean_inc(x_290); -x_291 = lean_ctor_get(x_287, 1); -lean_inc(x_291); -lean_dec(x_287); -x_292 = lean_nat_add(x_284, x_285); -lean_dec(x_284); -x_239 = x_292; -x_240 = x_290; -x_241 = x_291; -goto block_282; -} -} -else -{ -lean_object* x_293; lean_object* x_294; lean_object* x_295; -x_293 = lean_ctor_get(x_287, 0); -lean_inc(x_293); -x_294 = lean_ctor_get(x_287, 1); -lean_inc(x_294); -lean_dec(x_287); -x_295 = lean_nat_add(x_284, x_285); -lean_dec(x_284); -x_239 = x_295; -x_240 = x_293; -x_241 = x_294; -goto block_282; -} -block_282: -{ -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; 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; 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; -x_242 = lean_ctor_get(x_240, 11); -lean_inc(x_242); -x_243 = lean_ctor_get(x_240, 0); +lean_object* x_239; lean_object* x_240; uint8_t 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_290; lean_object* x_291; lean_object* x_292; uint8_t x_293; lean_object* x_294; +x_239 = lean_ctor_get(x_235, 1); +lean_inc(x_239); +lean_dec(x_235); +x_240 = lean_ctor_get(x_2, 1); +lean_inc(x_240); +x_241 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); +x_242 = lean_st_ref_get(x_4, x_239); +x_243 = lean_ctor_get(x_242, 0); lean_inc(x_243); -x_244 = lean_ctor_get(x_240, 1); +x_244 = lean_ctor_get(x_242, 1); lean_inc(x_244); -x_245 = lean_ctor_get(x_240, 2); -lean_inc(x_245); -x_246 = lean_ctor_get(x_240, 3); -lean_inc(x_246); -x_247 = lean_ctor_get(x_240, 4); -lean_inc(x_247); -x_248 = lean_ctor_get(x_240, 5); -lean_inc(x_248); -x_249 = lean_ctor_get(x_240, 6); -lean_inc(x_249); -x_250 = lean_ctor_get_uint8(x_240, sizeof(void*)*16); -x_251 = lean_ctor_get(x_240, 7); -lean_inc(x_251); -x_252 = lean_ctor_get(x_240, 8); -lean_inc(x_252); -x_253 = lean_ctor_get(x_240, 9); -lean_inc(x_253); -x_254 = lean_ctor_get(x_240, 10); -lean_inc(x_254); -x_255 = lean_ctor_get(x_240, 12); -lean_inc(x_255); -x_256 = lean_ctor_get(x_240, 13); -lean_inc(x_256); -x_257 = lean_ctor_get(x_240, 14); -lean_inc(x_257); -x_258 = lean_ctor_get(x_240, 15); -lean_inc(x_258); -if (lean_is_exclusive(x_240)) { - lean_ctor_release(x_240, 0); - lean_ctor_release(x_240, 1); - lean_ctor_release(x_240, 2); - lean_ctor_release(x_240, 3); - lean_ctor_release(x_240, 4); - lean_ctor_release(x_240, 5); - lean_ctor_release(x_240, 6); - lean_ctor_release(x_240, 7); - lean_ctor_release(x_240, 8); - lean_ctor_release(x_240, 9); - lean_ctor_release(x_240, 10); - lean_ctor_release(x_240, 11); - lean_ctor_release(x_240, 12); - lean_ctor_release(x_240, 13); - lean_ctor_release(x_240, 14); - lean_ctor_release(x_240, 15); - x_259 = x_240; -} else { - lean_dec_ref(x_240); - x_259 = lean_box(0); -} -x_260 = lean_ctor_get(x_242, 0); -lean_inc(x_260); -x_261 = lean_ctor_get(x_242, 1); -lean_inc(x_261); -x_262 = lean_ctor_get(x_242, 2); -lean_inc(x_262); -x_263 = lean_ctor_get(x_242, 3); -lean_inc(x_263); -x_264 = lean_ctor_get(x_242, 4); -lean_inc(x_264); -x_265 = lean_ctor_get(x_242, 6); -lean_inc(x_265); -x_266 = lean_ctor_get(x_242, 7); -lean_inc(x_266); -x_267 = lean_ctor_get(x_242, 8); -lean_inc(x_267); -if (lean_is_exclusive(x_242)) { - lean_ctor_release(x_242, 0); - lean_ctor_release(x_242, 1); - lean_ctor_release(x_242, 2); - lean_ctor_release(x_242, 3); - lean_ctor_release(x_242, 4); - lean_ctor_release(x_242, 5); - lean_ctor_release(x_242, 6); - lean_ctor_release(x_242, 7); - lean_ctor_release(x_242, 8); - x_268 = x_242; -} else { - lean_dec_ref(x_242); - x_268 = lean_box(0); -} -x_269 = lean_unsigned_to_nat(0u); -if (lean_is_scalar(x_268)) { - x_270 = lean_alloc_ctor(0, 9, 0); -} else { - x_270 = x_268; -} -lean_ctor_set(x_270, 0, x_260); -lean_ctor_set(x_270, 1, x_261); -lean_ctor_set(x_270, 2, x_262); -lean_ctor_set(x_270, 3, x_263); -lean_ctor_set(x_270, 4, x_264); -lean_ctor_set(x_270, 5, x_269); -lean_ctor_set(x_270, 6, x_265); -lean_ctor_set(x_270, 7, x_266); -lean_ctor_set(x_270, 8, x_267); -x_271 = lean_ctor_get(x_255, 0); -lean_inc(x_271); -x_272 = lean_ctor_get(x_255, 1); -lean_inc(x_272); -x_273 = lean_ctor_get(x_255, 3); -lean_inc(x_273); -x_274 = lean_ctor_get(x_255, 4); -lean_inc(x_274); -if (lean_is_exclusive(x_255)) { - lean_ctor_release(x_255, 0); - lean_ctor_release(x_255, 1); - lean_ctor_release(x_255, 2); - lean_ctor_release(x_255, 3); - lean_ctor_release(x_255, 4); - x_275 = x_255; -} else { - lean_dec_ref(x_255); - x_275 = lean_box(0); -} -if (lean_is_scalar(x_275)) { - x_276 = lean_alloc_ctor(0, 5, 0); -} else { - x_276 = x_275; -} -lean_ctor_set(x_276, 0, x_271); -lean_ctor_set(x_276, 1, x_272); -lean_ctor_set(x_276, 2, x_239); -lean_ctor_set(x_276, 3, x_273); -lean_ctor_set(x_276, 4, x_274); -if (lean_is_scalar(x_259)) { - x_277 = lean_alloc_ctor(0, 16, 1); -} else { - x_277 = x_259; -} -lean_ctor_set(x_277, 0, x_243); -lean_ctor_set(x_277, 1, x_244); -lean_ctor_set(x_277, 2, x_245); -lean_ctor_set(x_277, 3, x_246); -lean_ctor_set(x_277, 4, x_247); -lean_ctor_set(x_277, 5, x_248); -lean_ctor_set(x_277, 6, x_249); -lean_ctor_set(x_277, 7, x_251); -lean_ctor_set(x_277, 8, x_252); -lean_ctor_set(x_277, 9, x_253); -lean_ctor_set(x_277, 10, x_254); -lean_ctor_set(x_277, 11, x_270); -lean_ctor_set(x_277, 12, x_276); -lean_ctor_set(x_277, 13, x_256); -lean_ctor_set(x_277, 14, x_257); -lean_ctor_set(x_277, 15, x_258); -lean_ctor_set_uint8(x_277, sizeof(void*)*16, x_250); -x_278 = lean_st_ref_set(x_4, x_277, x_241); -lean_dec(x_4); -x_279 = lean_ctor_get(x_278, 1); -lean_inc(x_279); -if (lean_is_exclusive(x_278)) { - lean_ctor_release(x_278, 0); - lean_ctor_release(x_278, 1); - x_280 = x_278; -} else { - lean_dec_ref(x_278); - x_280 = lean_box(0); -} -if (lean_is_scalar(x_280)) { - x_281 = lean_alloc_ctor(0, 2, 0); -} else { - x_281 = x_280; -} -lean_ctor_set(x_281, 0, x_2); -lean_ctor_set(x_281, 1, x_279); -return x_281; -} +lean_dec(x_242); +x_290 = lean_ctor_get(x_243, 12); +lean_inc(x_290); +lean_dec(x_243); +x_291 = lean_ctor_get(x_290, 2); +lean_inc(x_291); +lean_dec(x_290); +x_292 = lean_unsigned_to_nat(1u); +x_293 = lean_nat_dec_lt(x_292, x_240); +lean_dec(x_240); +x_294 = lean_st_ref_take(x_4, x_244); +if (x_293 == 0) +{ +if (x_241 == 0) +{ +lean_object* x_295; lean_object* x_296; +x_295 = lean_ctor_get(x_294, 0); +lean_inc(x_295); +x_296 = lean_ctor_get(x_294, 1); +lean_inc(x_296); +lean_dec(x_294); +x_245 = x_291; +x_246 = x_295; +x_247 = x_296; +goto block_289; } +else +{ +lean_object* x_297; lean_object* x_298; lean_object* x_299; +x_297 = lean_ctor_get(x_294, 0); +lean_inc(x_297); +x_298 = lean_ctor_get(x_294, 1); +lean_inc(x_298); +lean_dec(x_294); +x_299 = lean_nat_add(x_291, x_292); +lean_dec(x_291); +x_245 = x_299; +x_246 = x_297; +x_247 = x_298; +goto block_289; } } else { -uint8_t x_296; -x_296 = !lean_is_exclusive(x_1); -if (x_296 == 0) -{ -lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; uint8_t x_302; -x_297 = lean_ctor_get(x_1, 0); -x_298 = lean_ctor_get(x_1, 1); -x_299 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__8___closed__4; -x_300 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_299, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -x_301 = lean_ctor_get(x_300, 0); +lean_object* x_300; lean_object* x_301; lean_object* x_302; +x_300 = lean_ctor_get(x_294, 0); +lean_inc(x_300); +x_301 = lean_ctor_get(x_294, 1); lean_inc(x_301); -x_302 = lean_unbox(x_301); -lean_dec(x_301); -if (x_302 == 0) +lean_dec(x_294); +x_302 = lean_nat_add(x_291, x_292); +lean_dec(x_291); +x_245 = x_302; +x_246 = x_300; +x_247 = x_301; +goto block_289; +} +block_289: { -lean_object* x_303; lean_object* x_304; lean_object* x_305; -lean_free_object(x_1); -x_303 = lean_ctor_get(x_300, 1); -lean_inc(x_303); -lean_dec(x_300); -x_304 = lean_box(0); -x_305 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_297, x_298, x_2, x_3, x_304, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_303); -return x_305; +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; uint8_t 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; +x_248 = lean_ctor_get(x_246, 11); +lean_inc(x_248); +x_249 = lean_ctor_get(x_246, 0); +lean_inc(x_249); +x_250 = lean_ctor_get(x_246, 1); +lean_inc(x_250); +x_251 = lean_ctor_get(x_246, 2); +lean_inc(x_251); +x_252 = lean_ctor_get(x_246, 3); +lean_inc(x_252); +x_253 = lean_ctor_get(x_246, 4); +lean_inc(x_253); +x_254 = lean_ctor_get(x_246, 5); +lean_inc(x_254); +x_255 = lean_ctor_get(x_246, 6); +lean_inc(x_255); +x_256 = lean_ctor_get_uint8(x_246, sizeof(void*)*16); +x_257 = lean_ctor_get(x_246, 7); +lean_inc(x_257); +x_258 = lean_ctor_get(x_246, 8); +lean_inc(x_258); +x_259 = lean_ctor_get(x_246, 9); +lean_inc(x_259); +x_260 = lean_ctor_get(x_246, 10); +lean_inc(x_260); +x_261 = lean_ctor_get(x_246, 12); +lean_inc(x_261); +x_262 = lean_ctor_get(x_246, 13); +lean_inc(x_262); +x_263 = lean_ctor_get(x_246, 14); +lean_inc(x_263); +x_264 = lean_ctor_get(x_246, 15); +lean_inc(x_264); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + lean_ctor_release(x_246, 2); + lean_ctor_release(x_246, 3); + lean_ctor_release(x_246, 4); + lean_ctor_release(x_246, 5); + lean_ctor_release(x_246, 6); + lean_ctor_release(x_246, 7); + lean_ctor_release(x_246, 8); + lean_ctor_release(x_246, 9); + lean_ctor_release(x_246, 10); + lean_ctor_release(x_246, 11); + lean_ctor_release(x_246, 12); + lean_ctor_release(x_246, 13); + lean_ctor_release(x_246, 14); + lean_ctor_release(x_246, 15); + x_265 = x_246; +} else { + lean_dec_ref(x_246); + x_265 = lean_box(0); +} +x_266 = lean_ctor_get(x_248, 0); +lean_inc(x_266); +x_267 = lean_ctor_get(x_248, 1); +lean_inc(x_267); +x_268 = lean_ctor_get(x_248, 2); +lean_inc(x_268); +x_269 = lean_ctor_get(x_248, 3); +lean_inc(x_269); +x_270 = lean_ctor_get(x_248, 4); +lean_inc(x_270); +x_271 = lean_ctor_get(x_248, 6); +lean_inc(x_271); +x_272 = lean_ctor_get(x_248, 7); +lean_inc(x_272); +x_273 = lean_ctor_get(x_248, 8); +lean_inc(x_273); +if (lean_is_exclusive(x_248)) { + lean_ctor_release(x_248, 0); + lean_ctor_release(x_248, 1); + lean_ctor_release(x_248, 2); + lean_ctor_release(x_248, 3); + lean_ctor_release(x_248, 4); + lean_ctor_release(x_248, 5); + lean_ctor_release(x_248, 6); + lean_ctor_release(x_248, 7); + lean_ctor_release(x_248, 8); + x_274 = x_248; +} else { + lean_dec_ref(x_248); + x_274 = lean_box(0); +} +x_275 = lean_unsigned_to_nat(0u); +if (lean_is_scalar(x_274)) { + x_276 = lean_alloc_ctor(0, 9, 0); +} else { + x_276 = x_274; +} +lean_ctor_set(x_276, 0, x_266); +lean_ctor_set(x_276, 1, x_267); +lean_ctor_set(x_276, 2, x_268); +lean_ctor_set(x_276, 3, x_269); +lean_ctor_set(x_276, 4, x_270); +lean_ctor_set(x_276, 5, x_275); +lean_ctor_set(x_276, 6, x_271); +lean_ctor_set(x_276, 7, x_272); +lean_ctor_set(x_276, 8, x_273); +x_277 = lean_ctor_get(x_261, 0); +lean_inc(x_277); +x_278 = lean_ctor_get(x_261, 1); +lean_inc(x_278); +x_279 = lean_ctor_get(x_261, 3); +lean_inc(x_279); +x_280 = lean_ctor_get(x_261, 4); +lean_inc(x_280); +x_281 = lean_ctor_get(x_261, 5); +lean_inc(x_281); +if (lean_is_exclusive(x_261)) { + lean_ctor_release(x_261, 0); + lean_ctor_release(x_261, 1); + lean_ctor_release(x_261, 2); + lean_ctor_release(x_261, 3); + lean_ctor_release(x_261, 4); + lean_ctor_release(x_261, 5); + x_282 = x_261; +} else { + lean_dec_ref(x_261); + x_282 = lean_box(0); +} +if (lean_is_scalar(x_282)) { + x_283 = lean_alloc_ctor(0, 6, 0); +} else { + x_283 = x_282; +} +lean_ctor_set(x_283, 0, x_277); +lean_ctor_set(x_283, 1, x_278); +lean_ctor_set(x_283, 2, x_245); +lean_ctor_set(x_283, 3, x_279); +lean_ctor_set(x_283, 4, x_280); +lean_ctor_set(x_283, 5, x_281); +if (lean_is_scalar(x_265)) { + x_284 = lean_alloc_ctor(0, 16, 1); +} else { + x_284 = x_265; +} +lean_ctor_set(x_284, 0, x_249); +lean_ctor_set(x_284, 1, x_250); +lean_ctor_set(x_284, 2, x_251); +lean_ctor_set(x_284, 3, x_252); +lean_ctor_set(x_284, 4, x_253); +lean_ctor_set(x_284, 5, x_254); +lean_ctor_set(x_284, 6, x_255); +lean_ctor_set(x_284, 7, x_257); +lean_ctor_set(x_284, 8, x_258); +lean_ctor_set(x_284, 9, x_259); +lean_ctor_set(x_284, 10, x_260); +lean_ctor_set(x_284, 11, x_276); +lean_ctor_set(x_284, 12, x_283); +lean_ctor_set(x_284, 13, x_262); +lean_ctor_set(x_284, 14, x_263); +lean_ctor_set(x_284, 15, x_264); +lean_ctor_set_uint8(x_284, sizeof(void*)*16, x_256); +x_285 = lean_st_ref_set(x_4, x_284, x_247); +lean_dec(x_4); +x_286 = lean_ctor_get(x_285, 1); +lean_inc(x_286); +if (lean_is_exclusive(x_285)) { + lean_ctor_release(x_285, 0); + lean_ctor_release(x_285, 1); + x_287 = x_285; +} else { + lean_dec_ref(x_285); + x_287 = lean_box(0); +} +if (lean_is_scalar(x_287)) { + x_288 = lean_alloc_ctor(0, 2, 0); +} else { + x_288 = x_287; +} +lean_ctor_set(x_288, 0, x_2); +lean_ctor_set(x_288, 1, x_286); +return x_288; +} +} +} } else { -uint8_t x_306; -x_306 = !lean_is_exclusive(x_300); -if (x_306 == 0) +uint8_t x_303; +x_303 = !lean_is_exclusive(x_1); +if (x_303 == 0) { -lean_object* x_307; lean_object* x_308; lean_object* x_309; -x_307 = lean_ctor_get(x_300, 1); -x_308 = lean_ctor_get(x_300, 0); +lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; uint8_t x_309; +x_304 = lean_ctor_get(x_1, 0); +x_305 = lean_ctor_get(x_1, 1); +x_306 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__8___closed__4; +x_307 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_306, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_308 = lean_ctor_get(x_307, 0); +lean_inc(x_308); +x_309 = lean_unbox(x_308); lean_dec(x_308); -x_309 = l_Lean_Meta_Grind_updateLastTag(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_307); -if (lean_obj_tag(x_309) == 0) +if (x_309 == 0) { -lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; -x_310 = lean_ctor_get(x_309, 1); +lean_object* x_310; lean_object* x_311; lean_object* x_312; +lean_free_object(x_1); +x_310 = lean_ctor_get(x_307, 1); lean_inc(x_310); -lean_dec(x_309); -lean_inc(x_297); -x_311 = l_Lean_MessageData_ofExpr(x_297); -x_312 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___closed__2; -lean_ctor_set_tag(x_300, 7); -lean_ctor_set(x_300, 1, x_311); -lean_ctor_set(x_300, 0, x_312); -x_313 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__3___closed__7; -lean_ctor_set_tag(x_1, 7); -lean_ctor_set(x_1, 1, x_313); -lean_ctor_set(x_1, 0, x_300); -x_314 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_299, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_310); -x_315 = lean_ctor_get(x_314, 0); -lean_inc(x_315); -x_316 = lean_ctor_get(x_314, 1); -lean_inc(x_316); -lean_dec(x_314); -x_317 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_297, x_298, x_2, x_3, x_315, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_316); +lean_dec(x_307); +x_311 = lean_box(0); +x_312 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_304, x_305, x_2, x_3, x_311, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_310); +return x_312; +} +else +{ +uint8_t x_313; +x_313 = !lean_is_exclusive(x_307); +if (x_313 == 0) +{ +lean_object* x_314; lean_object* x_315; lean_object* x_316; +x_314 = lean_ctor_get(x_307, 1); +x_315 = lean_ctor_get(x_307, 0); lean_dec(x_315); -return x_317; -} -else +x_316 = l_Lean_Meta_Grind_updateLastTag(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_314); +if (lean_obj_tag(x_316) == 0) { -uint8_t x_318; -lean_free_object(x_300); -lean_free_object(x_1); -lean_dec(x_298); -lean_dec(x_297); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -x_318 = !lean_is_exclusive(x_309); -if (x_318 == 0) -{ -return x_309; -} -else -{ -lean_object* x_319; lean_object* x_320; lean_object* x_321; -x_319 = lean_ctor_get(x_309, 0); -x_320 = lean_ctor_get(x_309, 1); -lean_inc(x_320); -lean_inc(x_319); -lean_dec(x_309); -x_321 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_321, 0, x_319); -lean_ctor_set(x_321, 1, x_320); -return x_321; -} -} -} -else -{ -lean_object* x_322; lean_object* x_323; -x_322 = lean_ctor_get(x_300, 1); -lean_inc(x_322); -lean_dec(x_300); -x_323 = l_Lean_Meta_Grind_updateLastTag(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_322); -if (lean_obj_tag(x_323) == 0) -{ -lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; -x_324 = lean_ctor_get(x_323, 1); -lean_inc(x_324); -lean_dec(x_323); -lean_inc(x_297); -x_325 = l_Lean_MessageData_ofExpr(x_297); -x_326 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___closed__2; -x_327 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_327, 0, x_326); -lean_ctor_set(x_327, 1, x_325); -x_328 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__3___closed__7; +lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_317 = lean_ctor_get(x_316, 1); +lean_inc(x_317); +lean_dec(x_316); +lean_inc(x_304); +x_318 = l_Lean_MessageData_ofExpr(x_304); +x_319 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___closed__2; +lean_ctor_set_tag(x_307, 7); +lean_ctor_set(x_307, 1, x_318); +lean_ctor_set(x_307, 0, x_319); +x_320 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__3___closed__7; lean_ctor_set_tag(x_1, 7); -lean_ctor_set(x_1, 1, x_328); -lean_ctor_set(x_1, 0, x_327); -x_329 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_299, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_324); -x_330 = lean_ctor_get(x_329, 0); -lean_inc(x_330); -x_331 = lean_ctor_get(x_329, 1); -lean_inc(x_331); -lean_dec(x_329); -x_332 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_297, x_298, x_2, x_3, x_330, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_331); -lean_dec(x_330); -return x_332; +lean_ctor_set(x_1, 1, x_320); +lean_ctor_set(x_1, 0, x_307); +x_321 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_306, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_317); +x_322 = lean_ctor_get(x_321, 0); +lean_inc(x_322); +x_323 = lean_ctor_get(x_321, 1); +lean_inc(x_323); +lean_dec(x_321); +x_324 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_304, x_305, x_2, x_3, x_322, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_323); +lean_dec(x_322); +return x_324; } else { -lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; +uint8_t x_325; +lean_free_object(x_307); lean_free_object(x_1); -lean_dec(x_298); -lean_dec(x_297); +lean_dec(x_305); +lean_dec(x_304); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7233,105 +7268,65 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_333 = lean_ctor_get(x_323, 0); -lean_inc(x_333); -x_334 = lean_ctor_get(x_323, 1); -lean_inc(x_334); -if (lean_is_exclusive(x_323)) { - lean_ctor_release(x_323, 0); - lean_ctor_release(x_323, 1); - x_335 = x_323; -} else { - lean_dec_ref(x_323); - x_335 = lean_box(0); -} -if (lean_is_scalar(x_335)) { - x_336 = lean_alloc_ctor(1, 2, 0); -} else { - x_336 = x_335; -} -lean_ctor_set(x_336, 0, x_333); -lean_ctor_set(x_336, 1, x_334); -return x_336; +x_325 = !lean_is_exclusive(x_316); +if (x_325 == 0) +{ +return x_316; } +else +{ +lean_object* x_326; lean_object* x_327; lean_object* x_328; +x_326 = lean_ctor_get(x_316, 0); +x_327 = lean_ctor_get(x_316, 1); +lean_inc(x_327); +lean_inc(x_326); +lean_dec(x_316); +x_328 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_328, 0, x_326); +lean_ctor_set(x_328, 1, x_327); +return x_328; } } } else { -lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; uint8_t x_342; -x_337 = lean_ctor_get(x_1, 0); -x_338 = lean_ctor_get(x_1, 1); +lean_object* x_329; lean_object* x_330; +x_329 = lean_ctor_get(x_307, 1); +lean_inc(x_329); +lean_dec(x_307); +x_330 = l_Lean_Meta_Grind_updateLastTag(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_329); +if (lean_obj_tag(x_330) == 0) +{ +lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; +x_331 = lean_ctor_get(x_330, 1); +lean_inc(x_331); +lean_dec(x_330); +lean_inc(x_304); +x_332 = l_Lean_MessageData_ofExpr(x_304); +x_333 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___closed__2; +x_334 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_334, 0, x_333); +lean_ctor_set(x_334, 1, x_332); +x_335 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__3___closed__7; +lean_ctor_set_tag(x_1, 7); +lean_ctor_set(x_1, 1, x_335); +lean_ctor_set(x_1, 0, x_334); +x_336 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_306, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_331); +x_337 = lean_ctor_get(x_336, 0); +lean_inc(x_337); +x_338 = lean_ctor_get(x_336, 1); lean_inc(x_338); -lean_inc(x_337); -lean_dec(x_1); -x_339 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__8___closed__4; -x_340 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_339, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -x_341 = lean_ctor_get(x_340, 0); -lean_inc(x_341); -x_342 = lean_unbox(x_341); -lean_dec(x_341); -if (x_342 == 0) -{ -lean_object* x_343; lean_object* x_344; lean_object* x_345; -x_343 = lean_ctor_get(x_340, 1); -lean_inc(x_343); -lean_dec(x_340); -x_344 = lean_box(0); -x_345 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_337, x_338, x_2, x_3, x_344, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_343); -return x_345; -} -else -{ -lean_object* x_346; lean_object* x_347; lean_object* x_348; -x_346 = lean_ctor_get(x_340, 1); -lean_inc(x_346); -if (lean_is_exclusive(x_340)) { - lean_ctor_release(x_340, 0); - lean_ctor_release(x_340, 1); - x_347 = x_340; -} else { - lean_dec_ref(x_340); - x_347 = lean_box(0); -} -x_348 = l_Lean_Meta_Grind_updateLastTag(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_346); -if (lean_obj_tag(x_348) == 0) -{ -lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; -x_349 = lean_ctor_get(x_348, 1); -lean_inc(x_349); -lean_dec(x_348); -lean_inc(x_337); -x_350 = l_Lean_MessageData_ofExpr(x_337); -x_351 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___closed__2; -if (lean_is_scalar(x_347)) { - x_352 = lean_alloc_ctor(7, 2, 0); -} else { - x_352 = x_347; - lean_ctor_set_tag(x_352, 7); -} -lean_ctor_set(x_352, 0, x_351); -lean_ctor_set(x_352, 1, x_350); -x_353 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__3___closed__7; -x_354 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_354, 0, x_352); -lean_ctor_set(x_354, 1, x_353); -x_355 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_339, x_354, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_349); -x_356 = lean_ctor_get(x_355, 0); -lean_inc(x_356); -x_357 = lean_ctor_get(x_355, 1); -lean_inc(x_357); -lean_dec(x_355); -x_358 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_337, x_338, x_2, x_3, x_356, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_357); -lean_dec(x_356); -return x_358; -} -else -{ -lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; -lean_dec(x_347); -lean_dec(x_338); +lean_dec(x_336); +x_339 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_304, x_305, x_2, x_3, x_337, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_338); lean_dec(x_337); +return x_339; +} +else +{ +lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; +lean_free_object(x_1); +lean_dec(x_305); +lean_dec(x_304); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -7342,26 +7337,135 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_359 = lean_ctor_get(x_348, 0); -lean_inc(x_359); -x_360 = lean_ctor_get(x_348, 1); -lean_inc(x_360); -if (lean_is_exclusive(x_348)) { - lean_ctor_release(x_348, 0); - lean_ctor_release(x_348, 1); - x_361 = x_348; +x_340 = lean_ctor_get(x_330, 0); +lean_inc(x_340); +x_341 = lean_ctor_get(x_330, 1); +lean_inc(x_341); +if (lean_is_exclusive(x_330)) { + lean_ctor_release(x_330, 0); + lean_ctor_release(x_330, 1); + x_342 = x_330; } else { - lean_dec_ref(x_348); - x_361 = lean_box(0); + lean_dec_ref(x_330); + x_342 = lean_box(0); } -if (lean_is_scalar(x_361)) { - x_362 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_342)) { + x_343 = lean_alloc_ctor(1, 2, 0); } else { - x_362 = x_361; + x_343 = x_342; } -lean_ctor_set(x_362, 0, x_359); -lean_ctor_set(x_362, 1, x_360); -return x_362; +lean_ctor_set(x_343, 0, x_340); +lean_ctor_set(x_343, 1, x_341); +return x_343; +} +} +} +} +else +{ +lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; +x_344 = lean_ctor_get(x_1, 0); +x_345 = lean_ctor_get(x_1, 1); +lean_inc(x_345); +lean_inc(x_344); +lean_dec(x_1); +x_346 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__8___closed__4; +x_347 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_346, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_348 = lean_ctor_get(x_347, 0); +lean_inc(x_348); +x_349 = lean_unbox(x_348); +lean_dec(x_348); +if (x_349 == 0) +{ +lean_object* x_350; lean_object* x_351; lean_object* x_352; +x_350 = lean_ctor_get(x_347, 1); +lean_inc(x_350); +lean_dec(x_347); +x_351 = lean_box(0); +x_352 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_344, x_345, x_2, x_3, x_351, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_350); +return x_352; +} +else +{ +lean_object* x_353; lean_object* x_354; lean_object* x_355; +x_353 = lean_ctor_get(x_347, 1); +lean_inc(x_353); +if (lean_is_exclusive(x_347)) { + lean_ctor_release(x_347, 0); + lean_ctor_release(x_347, 1); + x_354 = x_347; +} else { + lean_dec_ref(x_347); + x_354 = lean_box(0); +} +x_355 = l_Lean_Meta_Grind_updateLastTag(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_353); +if (lean_obj_tag(x_355) == 0) +{ +lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; +x_356 = lean_ctor_get(x_355, 1); +lean_inc(x_356); +lean_dec(x_355); +lean_inc(x_344); +x_357 = l_Lean_MessageData_ofExpr(x_344); +x_358 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___closed__2; +if (lean_is_scalar(x_354)) { + x_359 = lean_alloc_ctor(7, 2, 0); +} else { + x_359 = x_354; + lean_ctor_set_tag(x_359, 7); +} +lean_ctor_set(x_359, 0, x_358); +lean_ctor_set(x_359, 1, x_357); +x_360 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_checkCaseSplitStatus___lambda__3___closed__7; +x_361 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_361, 0, x_359); +lean_ctor_set(x_361, 1, x_360); +x_362 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_346, x_361, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_356); +x_363 = lean_ctor_get(x_362, 0); +lean_inc(x_363); +x_364 = lean_ctor_get(x_362, 1); +lean_inc(x_364); +lean_dec(x_362); +x_365 = l___private_Lean_Meta_Tactic_Grind_Split_0__Lean_Meta_Grind_selectNextSplit_x3f_go___lambda__3(x_344, x_345, x_2, x_3, x_363, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_364); +lean_dec(x_363); +return x_365; +} +else +{ +lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; +lean_dec(x_354); +lean_dec(x_345); +lean_dec(x_344); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_366 = lean_ctor_get(x_355, 0); +lean_inc(x_366); +x_367 = lean_ctor_get(x_355, 1); +lean_inc(x_367); +if (lean_is_exclusive(x_355)) { + lean_ctor_release(x_355, 0); + lean_ctor_release(x_355, 1); + x_368 = x_355; +} else { + lean_dec_ref(x_355); + x_368 = lean_box(0); +} +if (lean_is_scalar(x_368)) { + x_369 = lean_alloc_ctor(1, 2, 0); +} else { + x_369 = x_368; +} +lean_ctor_set(x_369, 0, x_366); +lean_ctor_set(x_369, 1, x_367); +return x_369; } } } @@ -8443,7 +8547,7 @@ uint8_t x_7; x_7 = !lean_is_exclusive(x_4); if (x_7 == 0) { -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; uint8_t 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; uint8_t x_32; +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; uint8_t 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; uint8_t x_33; x_8 = lean_ctor_get(x_4, 0); x_9 = lean_ctor_get(x_4, 1); x_10 = lean_array_get_size(x_5); @@ -8486,190 +8590,199 @@ x_29 = lean_ctor_get(x_11, 2); lean_inc(x_29); x_30 = lean_ctor_get(x_11, 3); lean_inc(x_30); +x_31 = lean_ctor_get(x_11, 4); +lean_inc(x_31); lean_inc(x_3); lean_inc(x_1); -x_31 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_31, 0, x_1); -lean_ctor_set(x_31, 1, x_10); -lean_ctor_set(x_31, 2, x_3); -x_32 = !lean_is_exclusive(x_11); -if (x_32 == 0) +x_32 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_32, 0, x_1); +lean_ctor_set(x_32, 1, x_10); +lean_ctor_set(x_32, 2, x_3); +x_33 = !lean_is_exclusive(x_11); +if (x_33 == 0) { -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; -x_33 = lean_ctor_get(x_11, 4); -x_34 = lean_ctor_get(x_11, 3); -lean_dec(x_34); -x_35 = lean_ctor_get(x_11, 2); +lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_34 = lean_ctor_get(x_11, 5); +x_35 = lean_ctor_get(x_11, 4); lean_dec(x_35); -x_36 = lean_ctor_get(x_11, 1); +x_36 = lean_ctor_get(x_11, 3); lean_dec(x_36); -x_37 = lean_ctor_get(x_11, 0); +x_37 = lean_ctor_get(x_11, 2); lean_dec(x_37); -lean_ctor_set(x_4, 1, x_33); -lean_ctor_set(x_4, 0, x_31); -lean_ctor_set(x_11, 4, x_4); -x_38 = lean_alloc_ctor(0, 16, 1); -lean_ctor_set(x_38, 0, x_8); -lean_ctor_set(x_38, 1, x_12); -lean_ctor_set(x_38, 2, x_13); -lean_ctor_set(x_38, 3, x_14); -lean_ctor_set(x_38, 4, x_15); -lean_ctor_set(x_38, 5, x_16); -lean_ctor_set(x_38, 6, x_17); -lean_ctor_set(x_38, 7, x_19); -lean_ctor_set(x_38, 8, x_20); -lean_ctor_set(x_38, 9, x_21); -lean_ctor_set(x_38, 10, x_22); -lean_ctor_set(x_38, 11, x_23); -lean_ctor_set(x_38, 12, x_11); -lean_ctor_set(x_38, 13, x_24); -lean_ctor_set(x_38, 14, x_25); -lean_ctor_set(x_38, 15, x_26); -lean_ctor_set_uint8(x_38, sizeof(void*)*16, x_18); -x_39 = lean_array_push(x_5, x_38); +x_38 = lean_ctor_get(x_11, 1); +lean_dec(x_38); +x_39 = lean_ctor_get(x_11, 0); +lean_dec(x_39); +lean_ctor_set(x_4, 1, x_34); +lean_ctor_set(x_4, 0, x_32); +lean_ctor_set(x_11, 5, x_4); +x_40 = lean_alloc_ctor(0, 16, 1); +lean_ctor_set(x_40, 0, x_8); +lean_ctor_set(x_40, 1, x_12); +lean_ctor_set(x_40, 2, x_13); +lean_ctor_set(x_40, 3, x_14); +lean_ctor_set(x_40, 4, x_15); +lean_ctor_set(x_40, 5, x_16); +lean_ctor_set(x_40, 6, x_17); +lean_ctor_set(x_40, 7, x_19); +lean_ctor_set(x_40, 8, x_20); +lean_ctor_set(x_40, 9, x_21); +lean_ctor_set(x_40, 10, x_22); +lean_ctor_set(x_40, 11, x_23); +lean_ctor_set(x_40, 12, x_11); +lean_ctor_set(x_40, 13, x_24); +lean_ctor_set(x_40, 14, x_25); +lean_ctor_set(x_40, 15, x_26); +lean_ctor_set_uint8(x_40, sizeof(void*)*16, x_18); +x_41 = lean_array_push(x_5, x_40); x_4 = x_9; -x_5 = x_39; +x_5 = x_41; goto _start; } else { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_41 = lean_ctor_get(x_11, 4); -lean_inc(x_41); +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_11, 5); +lean_inc(x_43); lean_dec(x_11); -lean_ctor_set(x_4, 1, x_41); -lean_ctor_set(x_4, 0, x_31); -x_42 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_42, 0, x_27); -lean_ctor_set(x_42, 1, x_28); -lean_ctor_set(x_42, 2, x_29); -lean_ctor_set(x_42, 3, x_30); -lean_ctor_set(x_42, 4, x_4); -x_43 = lean_alloc_ctor(0, 16, 1); -lean_ctor_set(x_43, 0, x_8); -lean_ctor_set(x_43, 1, x_12); -lean_ctor_set(x_43, 2, x_13); -lean_ctor_set(x_43, 3, x_14); -lean_ctor_set(x_43, 4, x_15); -lean_ctor_set(x_43, 5, x_16); -lean_ctor_set(x_43, 6, x_17); -lean_ctor_set(x_43, 7, x_19); -lean_ctor_set(x_43, 8, x_20); -lean_ctor_set(x_43, 9, x_21); -lean_ctor_set(x_43, 10, x_22); -lean_ctor_set(x_43, 11, x_23); -lean_ctor_set(x_43, 12, x_42); -lean_ctor_set(x_43, 13, x_24); -lean_ctor_set(x_43, 14, x_25); -lean_ctor_set(x_43, 15, x_26); -lean_ctor_set_uint8(x_43, sizeof(void*)*16, x_18); -x_44 = lean_array_push(x_5, x_43); +lean_ctor_set(x_4, 1, x_43); +lean_ctor_set(x_4, 0, x_32); +x_44 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_44, 0, x_27); +lean_ctor_set(x_44, 1, x_28); +lean_ctor_set(x_44, 2, x_29); +lean_ctor_set(x_44, 3, x_30); +lean_ctor_set(x_44, 4, x_31); +lean_ctor_set(x_44, 5, x_4); +x_45 = lean_alloc_ctor(0, 16, 1); +lean_ctor_set(x_45, 0, x_8); +lean_ctor_set(x_45, 1, x_12); +lean_ctor_set(x_45, 2, x_13); +lean_ctor_set(x_45, 3, x_14); +lean_ctor_set(x_45, 4, x_15); +lean_ctor_set(x_45, 5, x_16); +lean_ctor_set(x_45, 6, x_17); +lean_ctor_set(x_45, 7, x_19); +lean_ctor_set(x_45, 8, x_20); +lean_ctor_set(x_45, 9, x_21); +lean_ctor_set(x_45, 10, x_22); +lean_ctor_set(x_45, 11, x_23); +lean_ctor_set(x_45, 12, x_44); +lean_ctor_set(x_45, 13, x_24); +lean_ctor_set(x_45, 14, x_25); +lean_ctor_set(x_45, 15, x_26); +lean_ctor_set_uint8(x_45, sizeof(void*)*16, x_18); +x_46 = lean_array_push(x_5, x_45); x_4 = x_9; -x_5 = x_44; +x_5 = x_46; goto _start; } } else { -lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_46 = lean_ctor_get(x_4, 0); -x_47 = lean_ctor_get(x_4, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_4); -x_48 = lean_array_get_size(x_5); -x_49 = lean_ctor_get(x_2, 12); +lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_48 = lean_ctor_get(x_4, 0); +x_49 = lean_ctor_get(x_4, 1); lean_inc(x_49); -x_50 = lean_ctor_get(x_2, 1); -lean_inc(x_50); -x_51 = lean_ctor_get(x_2, 2); +lean_inc(x_48); +lean_dec(x_4); +x_50 = lean_array_get_size(x_5); +x_51 = lean_ctor_get(x_2, 12); lean_inc(x_51); -x_52 = lean_ctor_get(x_2, 3); +x_52 = lean_ctor_get(x_2, 1); lean_inc(x_52); -x_53 = lean_ctor_get(x_2, 4); +x_53 = lean_ctor_get(x_2, 2); lean_inc(x_53); -x_54 = lean_ctor_get(x_2, 5); +x_54 = lean_ctor_get(x_2, 3); lean_inc(x_54); -x_55 = lean_ctor_get(x_2, 6); +x_55 = lean_ctor_get(x_2, 4); lean_inc(x_55); -x_56 = lean_ctor_get_uint8(x_2, sizeof(void*)*16); -x_57 = lean_ctor_get(x_2, 7); +x_56 = lean_ctor_get(x_2, 5); +lean_inc(x_56); +x_57 = lean_ctor_get(x_2, 6); lean_inc(x_57); -x_58 = lean_ctor_get(x_2, 8); -lean_inc(x_58); -x_59 = lean_ctor_get(x_2, 9); +x_58 = lean_ctor_get_uint8(x_2, sizeof(void*)*16); +x_59 = lean_ctor_get(x_2, 7); lean_inc(x_59); -x_60 = lean_ctor_get(x_2, 10); +x_60 = lean_ctor_get(x_2, 8); lean_inc(x_60); -x_61 = lean_ctor_get(x_2, 11); +x_61 = lean_ctor_get(x_2, 9); lean_inc(x_61); -x_62 = lean_ctor_get(x_2, 13); +x_62 = lean_ctor_get(x_2, 10); lean_inc(x_62); -x_63 = lean_ctor_get(x_2, 14); +x_63 = lean_ctor_get(x_2, 11); lean_inc(x_63); -x_64 = lean_ctor_get(x_2, 15); +x_64 = lean_ctor_get(x_2, 13); lean_inc(x_64); -x_65 = lean_ctor_get(x_49, 0); +x_65 = lean_ctor_get(x_2, 14); lean_inc(x_65); -x_66 = lean_ctor_get(x_49, 1); +x_66 = lean_ctor_get(x_2, 15); lean_inc(x_66); -x_67 = lean_ctor_get(x_49, 2); +x_67 = lean_ctor_get(x_51, 0); lean_inc(x_67); -x_68 = lean_ctor_get(x_49, 3); +x_68 = lean_ctor_get(x_51, 1); lean_inc(x_68); +x_69 = lean_ctor_get(x_51, 2); +lean_inc(x_69); +x_70 = lean_ctor_get(x_51, 3); +lean_inc(x_70); +x_71 = lean_ctor_get(x_51, 4); +lean_inc(x_71); lean_inc(x_3); lean_inc(x_1); -x_69 = lean_alloc_ctor(0, 3, 0); -lean_ctor_set(x_69, 0, x_1); -lean_ctor_set(x_69, 1, x_48); -lean_ctor_set(x_69, 2, x_3); -x_70 = lean_ctor_get(x_49, 4); -lean_inc(x_70); -if (lean_is_exclusive(x_49)) { - lean_ctor_release(x_49, 0); - lean_ctor_release(x_49, 1); - lean_ctor_release(x_49, 2); - lean_ctor_release(x_49, 3); - lean_ctor_release(x_49, 4); - x_71 = x_49; +x_72 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_72, 0, x_1); +lean_ctor_set(x_72, 1, x_50); +lean_ctor_set(x_72, 2, x_3); +x_73 = lean_ctor_get(x_51, 5); +lean_inc(x_73); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + lean_ctor_release(x_51, 2); + lean_ctor_release(x_51, 3); + lean_ctor_release(x_51, 4); + lean_ctor_release(x_51, 5); + x_74 = x_51; } else { - lean_dec_ref(x_49); - x_71 = lean_box(0); + lean_dec_ref(x_51); + x_74 = lean_box(0); } -x_72 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -if (lean_is_scalar(x_71)) { - x_73 = lean_alloc_ctor(0, 5, 0); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_72); +lean_ctor_set(x_75, 1, x_73); +if (lean_is_scalar(x_74)) { + x_76 = lean_alloc_ctor(0, 6, 0); } else { - x_73 = x_71; + x_76 = x_74; } -lean_ctor_set(x_73, 0, x_65); -lean_ctor_set(x_73, 1, x_66); -lean_ctor_set(x_73, 2, x_67); -lean_ctor_set(x_73, 3, x_68); -lean_ctor_set(x_73, 4, x_72); -x_74 = lean_alloc_ctor(0, 16, 1); -lean_ctor_set(x_74, 0, x_46); -lean_ctor_set(x_74, 1, x_50); -lean_ctor_set(x_74, 2, x_51); -lean_ctor_set(x_74, 3, x_52); -lean_ctor_set(x_74, 4, x_53); -lean_ctor_set(x_74, 5, x_54); -lean_ctor_set(x_74, 6, x_55); -lean_ctor_set(x_74, 7, x_57); -lean_ctor_set(x_74, 8, x_58); -lean_ctor_set(x_74, 9, x_59); -lean_ctor_set(x_74, 10, x_60); -lean_ctor_set(x_74, 11, x_61); -lean_ctor_set(x_74, 12, x_73); -lean_ctor_set(x_74, 13, x_62); -lean_ctor_set(x_74, 14, x_63); -lean_ctor_set(x_74, 15, x_64); -lean_ctor_set_uint8(x_74, sizeof(void*)*16, x_56); -x_75 = lean_array_push(x_5, x_74); -x_4 = x_47; -x_5 = x_75; +lean_ctor_set(x_76, 0, x_67); +lean_ctor_set(x_76, 1, x_68); +lean_ctor_set(x_76, 2, x_69); +lean_ctor_set(x_76, 3, x_70); +lean_ctor_set(x_76, 4, x_71); +lean_ctor_set(x_76, 5, x_75); +x_77 = lean_alloc_ctor(0, 16, 1); +lean_ctor_set(x_77, 0, x_48); +lean_ctor_set(x_77, 1, x_52); +lean_ctor_set(x_77, 2, x_53); +lean_ctor_set(x_77, 3, x_54); +lean_ctor_set(x_77, 4, x_55); +lean_ctor_set(x_77, 5, x_56); +lean_ctor_set(x_77, 6, x_57); +lean_ctor_set(x_77, 7, x_59); +lean_ctor_set(x_77, 8, x_60); +lean_ctor_set(x_77, 9, x_61); +lean_ctor_set(x_77, 10, x_62); +lean_ctor_set(x_77, 11, x_63); +lean_ctor_set(x_77, 12, x_76); +lean_ctor_set(x_77, 13, x_64); +lean_ctor_set(x_77, 14, x_65); +lean_ctor_set(x_77, 15, x_66); +lean_ctor_set_uint8(x_77, sizeof(void*)*16, x_58); +x_78 = lean_array_push(x_5, x_77); +x_4 = x_49; +x_5 = x_78; goto _start; } } diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c index d05f8ba3dd..b4e5c1bc8b 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c @@ -91,6 +91,7 @@ static lean_object* l_Lean_Meta_Grind_reportIssue___closed__4; lean_object* lean_process_cutsat_diseq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_mix_hash(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Grind_foldEqc___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isKnownCaseSplit___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_GoalM_run(lean_object*); static lean_object* l_Lean_Meta_Grind_reportIssue___closed__1; lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -253,7 +254,6 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_M LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqCongrKey___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getNatZeroExpr___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instBEqCongrTheoremCacheKey___boxed(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_expandReportIssueMacro___closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Methods_toMethodsRef___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRootENode_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -418,6 +418,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_ static lean_object* l_Lean_Meta_Grind_updateLastTag___closed__4; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__31; lean_object* l_Lean_Syntax_getKind(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isKnownCaseSplit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_2726____closed__21; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___lambda__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isIntNum___lambda__1(lean_object*, lean_object*); @@ -440,6 +441,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode___boxed(lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTrueExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_quoteNameMk(lean_object*); LEAN_EXPORT uint64_t l_Lean_Meta_Grind_congrHash_goEq(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENode___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_panic___at_Lean_Meta_Grind_foldEqc___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_markTheoremInstance___spec__13___lambda__2___boxed(lean_object*, lean_object*, lean_object*); @@ -447,7 +449,6 @@ lean_object* lean_st_ref_get(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_MetavarContext_getExprAssignmentDomain___spec__2___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_congrPlaceholderProof___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_expandReportIssueMacro___closed__12; -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_2726____closed__15; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__28; @@ -480,6 +481,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_ lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_getExtTheorems___lambda__1___closed__2; LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashablePreInstance(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isKnownCaseSplit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__2; static lean_object* l_Lean_Meta_Grind_isNatNum___lambda__2___closed__3; @@ -587,6 +589,7 @@ LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Meta_Grind_GoalM_run___spec__1 static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_expandReportIssueMacro___closed__17; extern lean_object* l_Lean_Meta_instMonadMetaM; static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_expandReportIssueMacro___lambda__1___closed__37; +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__2(lean_object*, size_t, lean_object*); static uint64_t l_Lean_Meta_Grind_addNewRawFact___closed__2; lean_object* l_Array_eraseIdx___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_expandReportIssueMacro___lambda__1___closed__36; @@ -602,7 +605,6 @@ LEAN_EXPORT uint64_t l_Lean_Meta_Grind_instHashablePreInstance_unsafe__1(lean_ob LEAN_EXPORT lean_object* l_Lean_Meta_Grind_traverseEqc(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_2726____closed__50; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__10; -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__2(lean_object*, size_t, lean_object*); uint8_t l_Lean_PersistentHashMap_contains___at_Lean_MVarId_isAssigned___spec__1(lean_object*, lean_object*); lean_object* l_Lean_Meta_mkFalseElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Lean_Meta_Grind_propagateCutsatDiseqs___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -626,6 +628,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENodes(lean_object*, lean_object*, lean_object* l_Lean_MessageData_ofExpr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_copyParentsTo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__2___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__26; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getBoolTrueExpr(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -639,7 +642,6 @@ static lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d_______closed__ LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isNonnegIntNum___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_doElemReportIssue_x21_______closed__10; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_hashRoot___spec__1(lean_object*, lean_object*); LEAN_EXPORT uint64_t l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__10(lean_object*, lean_object*, lean_object*, size_t, size_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isResolvedCaseSplit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -696,6 +698,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_ lean_object* lean_string_length(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getNatZeroExpr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_isNatNum___lambda__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addSplitCandidate___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_congrHash___closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_abstractNestedProofs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); @@ -731,6 +734,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getCongrRoot___boxed(lean_object*, le lean_object* l_Lean_Meta_isConstructorAppCore_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d_______closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_Meta_Grind_saveEMatchTheorem___spec__11(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Meta_Grind_markTheoremInstance___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_registerParent(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d_______closed__7; @@ -745,12 +749,10 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_G LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqBoolFalse(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getMaxGeneration___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Offset_processNewEqLit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_expandReportIssueMacro___closed__9; static lean_object* l_Lean_Meta_Grind_getExtTheorems___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_instInhabitedENode; -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqBoolTrue___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_registerParent___spec__3(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_reprENode____x40_Lean_Meta_Tactic_Grind_Types___hyg_2726____closed__52; @@ -766,6 +768,7 @@ static lean_object* l_Lean_Meta_Grind_instBEqEMatchTheoremTrace___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getNatZeroExpr(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markTheoremInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkHCongrWithArity___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addSplitCandidate___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isNatNum(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addNewRawFact___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); @@ -812,6 +815,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_setENode___boxed(lean_object*, lean_o LEAN_EXPORT lean_object* l_Lean_Meta_Grind_copyParentsTo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_shift_left(uint64_t, uint64_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Meta_Grind_saveEMatchTheorem___spec__2___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_addSplitCandidate___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateCutsatDiseq_get_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Methods_toMethodsRef_unsafe__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pushHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -826,6 +830,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTrueExpr___boxed(lean_object*, lea static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getENode(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getTrueExpr(lean_object*, lean_object*); +static lean_object* l_Lean_Meta_Grind_addSplitCandidate___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkENodeCore(lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getExtTheorems___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_Meta_Grind_mkHCongrWithArity___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -932,6 +937,7 @@ static lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Lean_Meta_Grind_ static lean_object* l_Lean_Meta_Grind_isIntNum___closed__1; static lean_object* l_Lean_Meta_Grind_EMatch_instInhabitedState___closed__2; static lean_object* l_Lean_Meta_Grind_doElemTrace__goal_x5b___x5d_______closed__11; +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isKnownCaseSplit___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_ShareCommon_objectFactory; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isFalseExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Loop_forIn_loop___at_Lean_Meta_Grind_traverseEqc___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1007,6 +1013,7 @@ lean_object* l_Lean_MessageData_ofName(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_getRoot_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT size_t l_Lean_Meta_Grind_instHashableCongrTheoremCacheKey_unsafe__1(lean_object*); lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addSplitCandidate(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_isLitValue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_forEachEqcRoot(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_saveEMatchTheorem___spec__10(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1046,6 +1053,7 @@ static lean_object* l_Lean_Meta_Grind_isIntNum___closed__3; lean_object* l_Option_repr___at___private_Lean_Meta_Transform_0__Lean_reprTransformStep____x40_Lean_Meta_Transform___hyg_46____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_Meta_Grind_mkHCongrWithArity___spec__5___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_pushEqCore___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addSplitCandidate___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint64_t l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Grind_markTheoremInstance___spec__2(lean_object*, lean_object*, lean_object*, size_t, size_t, uint64_t); static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_expandReportIssueMacro___lambda__1___closed__25; static lean_object* l_Lean_Meta_Grind___aux__Lean__Meta__Tactic__Grind__Types______macroRules__Lean__Meta__Grind__doElemTrace__goal_x5b___x5d______1___lambda__1___closed__9; @@ -11779,12 +11787,13 @@ x_1 = lean_box(0); x_2 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedTrace___spec__1___closed__2; x_3 = lean_unsigned_to_nat(0u); x_4 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_Split_instInhabitedState___spec__1; -x_5 = lean_alloc_ctor(0, 5, 0); +x_5 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_5, 0, x_2); lean_ctor_set(x_5, 1, x_1); lean_ctor_set(x_5, 2, x_3); lean_ctor_set(x_5, 3, x_4); -lean_ctor_set(x_5, 4, x_1); +lean_ctor_set(x_5, 4, x_4); +lean_ctor_set(x_5, 5, x_1); return x_5; } } @@ -11854,12 +11863,13 @@ x_1 = lean_box(0); x_2 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_instInhabitedTrace___spec__1___closed__2; x_3 = lean_unsigned_to_nat(0u); x_4 = l_Lean_PersistentHashMap_empty___at_Lean_Meta_Grind_Split_instInhabitedState___spec__1; -x_5 = lean_alloc_ctor(0, 5, 0); +x_5 = lean_alloc_ctor(0, 6, 0); lean_ctor_set(x_5, 0, x_2); lean_ctor_set(x_5, 1, x_1); lean_ctor_set(x_5, 2, x_3); lean_ctor_set(x_5, 3, x_4); -lean_ctor_set(x_5, 4, x_1); +lean_ctor_set(x_5, 4, x_4); +lean_ctor_set(x_5, 5, x_1); return x_5; } } @@ -34469,7 +34479,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__1; x_2 = l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__2; -x_3 = lean_unsigned_to_nat(1085u); +x_3 = lean_unsigned_to_nat(1087u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_Meta_Grind_foldEqc___rarg___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -35647,7 +35657,7 @@ lean_dec(x_1); return x_10; } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { lean_object* x_6; uint8_t x_7; @@ -35687,7 +35697,7 @@ return x_14; } } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__2(lean_object* x_1, size_t x_2, lean_object* x_3) { _start: { if (lean_obj_tag(x_1) == 0) @@ -35743,24 +35753,24 @@ x_18 = lean_ctor_get(x_1, 1); lean_inc(x_18); lean_dec(x_1); x_19 = lean_unsigned_to_nat(0u); -x_20 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__3(x_17, x_18, lean_box(0), x_19, x_3); +x_20 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__3(x_17, x_18, lean_box(0), x_19, x_3); lean_dec(x_18); lean_dec(x_17); return x_20; } } } -LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isKnownCaseSplit___spec__1(lean_object* x_1, lean_object* x_2) { _start: { uint64_t x_3; size_t x_4; uint8_t x_5; x_3 = l_Lean_Meta_Grind_instHashableENodeKey_unsafe__1(x_2); x_4 = lean_uint64_to_usize(x_3); -x_5 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__2(x_1, x_4, x_2); +x_5 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__2(x_1, x_4, x_2); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isResolvedCaseSplit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isKnownCaseSplit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; uint8_t x_12; @@ -35776,7 +35786,7 @@ lean_dec(x_13); x_15 = lean_ctor_get(x_14, 3); lean_inc(x_15); lean_dec(x_14); -x_16 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__1(x_15, x_1); +x_16 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isKnownCaseSplit___spec__1(x_15, x_1); x_17 = lean_box(x_16); lean_ctor_set(x_11, 0, x_17); return x_11; @@ -35795,7 +35805,7 @@ lean_dec(x_18); x_21 = lean_ctor_get(x_20, 3); lean_inc(x_21); lean_dec(x_20); -x_22 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__1(x_21, x_1); +x_22 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isKnownCaseSplit___spec__1(x_21, x_1); x_23 = lean_box(x_22); x_24 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_24, 0, x_23); @@ -35804,11 +35814,11 @@ return x_24; } } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { uint8_t x_6; lean_object* x_7; -x_6 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__3(x_1, x_2, x_3, x_4, x_5); +x_6 = l_Lean_PersistentHashMap_containsAtAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__3(x_1, x_2, x_3, x_4, x_5); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); @@ -35816,28 +35826,89 @@ x_7 = lean_box(x_6); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { size_t x_4; uint8_t x_5; lean_object* x_6; x_4 = lean_unbox_usize(x_2); lean_dec(x_2); -x_5 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__2(x_1, x_4, x_3); +x_5 = l_Lean_PersistentHashMap_containsAux___at_Lean_Meta_Grind_isKnownCaseSplit___spec__2(x_1, x_4, x_3); lean_dec(x_3); x_6 = lean_box(x_5); return x_6; } } -LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__1___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isKnownCaseSplit___spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isResolvedCaseSplit___spec__1(x_1, x_2); +x_3 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isKnownCaseSplit___spec__1(x_1, x_2); lean_dec(x_2); x_4 = lean_box(x_3); return x_4; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isKnownCaseSplit___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_isKnownCaseSplit(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isResolvedCaseSplit(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; uint8_t x_12; +x_11 = lean_st_ref_get(x_2, x_10); +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; +x_13 = lean_ctor_get(x_11, 0); +x_14 = lean_ctor_get(x_13, 12); +lean_inc(x_14); +lean_dec(x_13); +x_15 = lean_ctor_get(x_14, 4); +lean_inc(x_15); +lean_dec(x_14); +x_16 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isKnownCaseSplit___spec__1(x_15, x_1); +x_17 = lean_box(x_16); +lean_ctor_set(x_11, 0, x_17); +return x_11; +} +else +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; +x_18 = lean_ctor_get(x_11, 0); +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_inc(x_18); +lean_dec(x_11); +x_20 = lean_ctor_get(x_18, 12); +lean_inc(x_20); +lean_dec(x_18); +x_21 = lean_ctor_get(x_20, 4); +lean_inc(x_21); +lean_dec(x_20); +x_22 = l_Lean_PersistentHashMap_contains___at_Lean_Meta_Grind_isKnownCaseSplit___spec__1(x_21, x_1); +x_23 = lean_box(x_22); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_19); +return x_24; +} +} +} LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isResolvedCaseSplit___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { @@ -36379,10 +36450,10 @@ x_18 = !lean_is_exclusive(x_14); if (x_18 == 0) { lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_19 = lean_ctor_get(x_14, 3); +x_19 = lean_ctor_get(x_14, 4); x_20 = lean_box(0); x_21 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markCaseSplitAsResolved___spec__1(x_19, x_1, x_20); -lean_ctor_set(x_14, 3, x_21); +lean_ctor_set(x_14, 4, x_21); x_22 = lean_st_ref_set(x_3, x_13, x_15); x_23 = !lean_is_exclusive(x_22); if (x_23 == 0) @@ -36407,67 +36478,71 @@ return x_26; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; +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; x_27 = lean_ctor_get(x_14, 0); x_28 = lean_ctor_get(x_14, 1); x_29 = lean_ctor_get(x_14, 2); -x_30 = lean_ctor_get(x_14, 4); -x_31 = lean_ctor_get(x_14, 3); -lean_inc(x_30); +x_30 = lean_ctor_get(x_14, 3); +x_31 = lean_ctor_get(x_14, 5); +x_32 = lean_ctor_get(x_14, 4); lean_inc(x_31); +lean_inc(x_32); +lean_inc(x_30); lean_inc(x_29); lean_inc(x_28); lean_inc(x_27); lean_dec(x_14); -x_32 = lean_box(0); -x_33 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markCaseSplitAsResolved___spec__1(x_31, x_1, x_32); -x_34 = lean_alloc_ctor(0, 5, 0); -lean_ctor_set(x_34, 0, x_27); -lean_ctor_set(x_34, 1, x_28); -lean_ctor_set(x_34, 2, x_29); -lean_ctor_set(x_34, 3, x_33); -lean_ctor_set(x_34, 4, x_30); -lean_ctor_set(x_13, 12, x_34); -x_35 = lean_st_ref_set(x_3, x_13, x_15); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -if (lean_is_exclusive(x_35)) { - lean_ctor_release(x_35, 0); - lean_ctor_release(x_35, 1); - x_37 = x_35; +x_33 = lean_box(0); +x_34 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markCaseSplitAsResolved___spec__1(x_32, x_1, x_33); +x_35 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_35, 0, x_27); +lean_ctor_set(x_35, 1, x_28); +lean_ctor_set(x_35, 2, x_29); +lean_ctor_set(x_35, 3, x_30); +lean_ctor_set(x_35, 4, x_34); +lean_ctor_set(x_35, 5, x_31); +lean_ctor_set(x_13, 12, x_35); +x_36 = lean_st_ref_set(x_3, x_13, x_15); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +if (lean_is_exclusive(x_36)) { + lean_ctor_release(x_36, 0); + lean_ctor_release(x_36, 1); + x_38 = x_36; } else { - lean_dec_ref(x_35); - x_37 = lean_box(0); + lean_dec_ref(x_36); + x_38 = lean_box(0); } -if (lean_is_scalar(x_37)) { - x_38 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_38)) { + x_39 = lean_alloc_ctor(0, 2, 0); } else { - x_38 = x_37; + x_39 = x_38; } -lean_ctor_set(x_38, 0, x_32); -lean_ctor_set(x_38, 1, x_36); -return x_38; +lean_ctor_set(x_39, 0, x_33); +lean_ctor_set(x_39, 1, x_37); +return x_39; } } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; -x_39 = lean_ctor_get(x_13, 0); -x_40 = lean_ctor_get(x_13, 1); -x_41 = lean_ctor_get(x_13, 2); -x_42 = lean_ctor_get(x_13, 3); -x_43 = lean_ctor_get(x_13, 4); -x_44 = lean_ctor_get(x_13, 5); -x_45 = lean_ctor_get(x_13, 6); -x_46 = lean_ctor_get_uint8(x_13, sizeof(void*)*16); -x_47 = lean_ctor_get(x_13, 7); -x_48 = lean_ctor_get(x_13, 8); -x_49 = lean_ctor_get(x_13, 9); -x_50 = lean_ctor_get(x_13, 10); -x_51 = lean_ctor_get(x_13, 11); -x_52 = lean_ctor_get(x_13, 13); -x_53 = lean_ctor_get(x_13, 14); -x_54 = lean_ctor_get(x_13, 15); +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; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; +x_40 = lean_ctor_get(x_13, 0); +x_41 = lean_ctor_get(x_13, 1); +x_42 = lean_ctor_get(x_13, 2); +x_43 = lean_ctor_get(x_13, 3); +x_44 = lean_ctor_get(x_13, 4); +x_45 = lean_ctor_get(x_13, 5); +x_46 = lean_ctor_get(x_13, 6); +x_47 = lean_ctor_get_uint8(x_13, sizeof(void*)*16); +x_48 = lean_ctor_get(x_13, 7); +x_49 = lean_ctor_get(x_13, 8); +x_50 = lean_ctor_get(x_13, 9); +x_51 = lean_ctor_get(x_13, 10); +x_52 = lean_ctor_get(x_13, 11); +x_53 = lean_ctor_get(x_13, 13); +x_54 = lean_ctor_get(x_13, 14); +x_55 = lean_ctor_get(x_13, 15); +lean_inc(x_55); lean_inc(x_54); lean_inc(x_53); lean_inc(x_52); @@ -36475,85 +36550,88 @@ lean_inc(x_51); lean_inc(x_50); lean_inc(x_49); lean_inc(x_48); -lean_inc(x_47); +lean_inc(x_46); lean_inc(x_45); lean_inc(x_44); lean_inc(x_43); lean_inc(x_42); lean_inc(x_41); lean_inc(x_40); -lean_inc(x_39); lean_dec(x_13); -x_55 = lean_ctor_get(x_14, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_14, 1); +x_56 = lean_ctor_get(x_14, 0); lean_inc(x_56); -x_57 = lean_ctor_get(x_14, 2); +x_57 = lean_ctor_get(x_14, 1); lean_inc(x_57); -x_58 = lean_ctor_get(x_14, 4); +x_58 = lean_ctor_get(x_14, 2); lean_inc(x_58); x_59 = lean_ctor_get(x_14, 3); lean_inc(x_59); +x_60 = lean_ctor_get(x_14, 5); +lean_inc(x_60); +x_61 = lean_ctor_get(x_14, 4); +lean_inc(x_61); if (lean_is_exclusive(x_14)) { lean_ctor_release(x_14, 0); lean_ctor_release(x_14, 1); lean_ctor_release(x_14, 2); lean_ctor_release(x_14, 3); lean_ctor_release(x_14, 4); - x_60 = x_14; + lean_ctor_release(x_14, 5); + x_62 = x_14; } else { lean_dec_ref(x_14); - x_60 = lean_box(0); + x_62 = lean_box(0); } -x_61 = lean_box(0); -x_62 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markCaseSplitAsResolved___spec__1(x_59, x_1, x_61); -if (lean_is_scalar(x_60)) { - x_63 = lean_alloc_ctor(0, 5, 0); +x_63 = lean_box(0); +x_64 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markCaseSplitAsResolved___spec__1(x_61, x_1, x_63); +if (lean_is_scalar(x_62)) { + x_65 = lean_alloc_ctor(0, 6, 0); } else { - x_63 = x_60; + x_65 = x_62; } -lean_ctor_set(x_63, 0, x_55); -lean_ctor_set(x_63, 1, x_56); -lean_ctor_set(x_63, 2, x_57); -lean_ctor_set(x_63, 3, x_62); -lean_ctor_set(x_63, 4, x_58); -x_64 = lean_alloc_ctor(0, 16, 1); -lean_ctor_set(x_64, 0, x_39); -lean_ctor_set(x_64, 1, x_40); -lean_ctor_set(x_64, 2, x_41); -lean_ctor_set(x_64, 3, x_42); -lean_ctor_set(x_64, 4, x_43); -lean_ctor_set(x_64, 5, x_44); -lean_ctor_set(x_64, 6, x_45); -lean_ctor_set(x_64, 7, x_47); -lean_ctor_set(x_64, 8, x_48); -lean_ctor_set(x_64, 9, x_49); -lean_ctor_set(x_64, 10, x_50); -lean_ctor_set(x_64, 11, x_51); -lean_ctor_set(x_64, 12, x_63); -lean_ctor_set(x_64, 13, x_52); -lean_ctor_set(x_64, 14, x_53); -lean_ctor_set(x_64, 15, x_54); -lean_ctor_set_uint8(x_64, sizeof(void*)*16, x_46); -x_65 = lean_st_ref_set(x_3, x_64, x_15); -x_66 = lean_ctor_get(x_65, 1); -lean_inc(x_66); -if (lean_is_exclusive(x_65)) { - lean_ctor_release(x_65, 0); - lean_ctor_release(x_65, 1); - x_67 = x_65; +lean_ctor_set(x_65, 0, x_56); +lean_ctor_set(x_65, 1, x_57); +lean_ctor_set(x_65, 2, x_58); +lean_ctor_set(x_65, 3, x_59); +lean_ctor_set(x_65, 4, x_64); +lean_ctor_set(x_65, 5, x_60); +x_66 = lean_alloc_ctor(0, 16, 1); +lean_ctor_set(x_66, 0, x_40); +lean_ctor_set(x_66, 1, x_41); +lean_ctor_set(x_66, 2, x_42); +lean_ctor_set(x_66, 3, x_43); +lean_ctor_set(x_66, 4, x_44); +lean_ctor_set(x_66, 5, x_45); +lean_ctor_set(x_66, 6, x_46); +lean_ctor_set(x_66, 7, x_48); +lean_ctor_set(x_66, 8, x_49); +lean_ctor_set(x_66, 9, x_50); +lean_ctor_set(x_66, 10, x_51); +lean_ctor_set(x_66, 11, x_52); +lean_ctor_set(x_66, 12, x_65); +lean_ctor_set(x_66, 13, x_53); +lean_ctor_set(x_66, 14, x_54); +lean_ctor_set(x_66, 15, x_55); +lean_ctor_set_uint8(x_66, sizeof(void*)*16, x_47); +x_67 = lean_st_ref_set(x_3, x_66, x_15); +x_68 = lean_ctor_get(x_67, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_67)) { + lean_ctor_release(x_67, 0); + lean_ctor_release(x_67, 1); + x_69 = x_67; } else { - lean_dec_ref(x_65); - x_67 = lean_box(0); + lean_dec_ref(x_67); + x_69 = lean_box(0); } -if (lean_is_scalar(x_67)) { - x_68 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(0, 2, 0); } else { - x_68 = x_67; + x_70 = x_69; } -lean_ctor_set(x_68, 0, x_61); -lean_ctor_set(x_68, 1, x_66); -return x_68; +lean_ctor_set(x_70, 0, x_63); +lean_ctor_set(x_70, 1, x_68); +return x_70; } } } @@ -36822,6 +36900,607 @@ lean_dec(x_2); return x_11; } } +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addSplitCandidate___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_st_ref_take(x_3, x_11); +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +x_14 = lean_ctor_get(x_13, 12); +lean_inc(x_14); +x_15 = !lean_is_exclusive(x_12); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_16 = lean_ctor_get(x_12, 1); +x_17 = lean_ctor_get(x_12, 0); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_13); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_13, 12); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_14); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_21 = lean_ctor_get(x_14, 1); +x_22 = lean_ctor_get(x_14, 3); +lean_inc(x_1); +lean_ctor_set_tag(x_12, 1); +lean_ctor_set(x_12, 1, x_21); +lean_ctor_set(x_12, 0, x_1); +x_23 = lean_box(0); +x_24 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markCaseSplitAsResolved___spec__1(x_22, x_1, x_23); +lean_ctor_set(x_14, 3, x_24); +lean_ctor_set(x_14, 1, x_12); +x_25 = lean_st_ref_set(x_3, x_13, x_16); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; +x_27 = lean_ctor_get(x_25, 0); +lean_dec(x_27); +lean_ctor_set(x_25, 0, x_23); +return x_25; +} +else +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_25, 1); +lean_inc(x_28); +lean_dec(x_25); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_23); +lean_ctor_set(x_29, 1, x_28); +return x_29; +} +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_30 = lean_ctor_get(x_14, 0); +x_31 = lean_ctor_get(x_14, 2); +x_32 = lean_ctor_get(x_14, 4); +x_33 = lean_ctor_get(x_14, 5); +x_34 = lean_ctor_get(x_14, 1); +x_35 = lean_ctor_get(x_14, 3); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_35); +lean_inc(x_31); +lean_inc(x_34); +lean_inc(x_30); +lean_dec(x_14); +lean_inc(x_1); +lean_ctor_set_tag(x_12, 1); +lean_ctor_set(x_12, 1, x_34); +lean_ctor_set(x_12, 0, x_1); +x_36 = lean_box(0); +x_37 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markCaseSplitAsResolved___spec__1(x_35, x_1, x_36); +x_38 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_38, 0, x_30); +lean_ctor_set(x_38, 1, x_12); +lean_ctor_set(x_38, 2, x_31); +lean_ctor_set(x_38, 3, x_37); +lean_ctor_set(x_38, 4, x_32); +lean_ctor_set(x_38, 5, x_33); +lean_ctor_set(x_13, 12, x_38); +x_39 = lean_st_ref_set(x_3, x_13, x_16); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +if (lean_is_scalar(x_41)) { + x_42 = lean_alloc_ctor(0, 2, 0); +} else { + x_42 = x_41; +} +lean_ctor_set(x_42, 0, x_36); +lean_ctor_set(x_42, 1, x_40); +return x_42; +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +x_43 = lean_ctor_get(x_13, 0); +x_44 = lean_ctor_get(x_13, 1); +x_45 = lean_ctor_get(x_13, 2); +x_46 = lean_ctor_get(x_13, 3); +x_47 = lean_ctor_get(x_13, 4); +x_48 = lean_ctor_get(x_13, 5); +x_49 = lean_ctor_get(x_13, 6); +x_50 = lean_ctor_get_uint8(x_13, sizeof(void*)*16); +x_51 = lean_ctor_get(x_13, 7); +x_52 = lean_ctor_get(x_13, 8); +x_53 = lean_ctor_get(x_13, 9); +x_54 = lean_ctor_get(x_13, 10); +x_55 = lean_ctor_get(x_13, 11); +x_56 = lean_ctor_get(x_13, 13); +x_57 = lean_ctor_get(x_13, 14); +x_58 = lean_ctor_get(x_13, 15); +lean_inc(x_58); +lean_inc(x_57); +lean_inc(x_56); +lean_inc(x_55); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); +lean_inc(x_49); +lean_inc(x_48); +lean_inc(x_47); +lean_inc(x_46); +lean_inc(x_45); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_13); +x_59 = lean_ctor_get(x_14, 0); +lean_inc(x_59); +x_60 = lean_ctor_get(x_14, 2); +lean_inc(x_60); +x_61 = lean_ctor_get(x_14, 4); +lean_inc(x_61); +x_62 = lean_ctor_get(x_14, 5); +lean_inc(x_62); +x_63 = lean_ctor_get(x_14, 1); +lean_inc(x_63); +x_64 = lean_ctor_get(x_14, 3); +lean_inc(x_64); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + lean_ctor_release(x_14, 2); + lean_ctor_release(x_14, 3); + lean_ctor_release(x_14, 4); + lean_ctor_release(x_14, 5); + x_65 = x_14; +} else { + lean_dec_ref(x_14); + x_65 = lean_box(0); +} +lean_inc(x_1); +lean_ctor_set_tag(x_12, 1); +lean_ctor_set(x_12, 1, x_63); +lean_ctor_set(x_12, 0, x_1); +x_66 = lean_box(0); +x_67 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markCaseSplitAsResolved___spec__1(x_64, x_1, x_66); +if (lean_is_scalar(x_65)) { + x_68 = lean_alloc_ctor(0, 6, 0); +} else { + x_68 = x_65; +} +lean_ctor_set(x_68, 0, x_59); +lean_ctor_set(x_68, 1, x_12); +lean_ctor_set(x_68, 2, x_60); +lean_ctor_set(x_68, 3, x_67); +lean_ctor_set(x_68, 4, x_61); +lean_ctor_set(x_68, 5, x_62); +x_69 = lean_alloc_ctor(0, 16, 1); +lean_ctor_set(x_69, 0, x_43); +lean_ctor_set(x_69, 1, x_44); +lean_ctor_set(x_69, 2, x_45); +lean_ctor_set(x_69, 3, x_46); +lean_ctor_set(x_69, 4, x_47); +lean_ctor_set(x_69, 5, x_48); +lean_ctor_set(x_69, 6, x_49); +lean_ctor_set(x_69, 7, x_51); +lean_ctor_set(x_69, 8, x_52); +lean_ctor_set(x_69, 9, x_53); +lean_ctor_set(x_69, 10, x_54); +lean_ctor_set(x_69, 11, x_55); +lean_ctor_set(x_69, 12, x_68); +lean_ctor_set(x_69, 13, x_56); +lean_ctor_set(x_69, 14, x_57); +lean_ctor_set(x_69, 15, x_58); +lean_ctor_set_uint8(x_69, sizeof(void*)*16, x_50); +x_70 = lean_st_ref_set(x_3, x_69, x_16); +x_71 = lean_ctor_get(x_70, 1); +lean_inc(x_71); +if (lean_is_exclusive(x_70)) { + lean_ctor_release(x_70, 0); + lean_ctor_release(x_70, 1); + x_72 = x_70; +} else { + lean_dec_ref(x_70); + x_72 = lean_box(0); +} +if (lean_is_scalar(x_72)) { + x_73 = lean_alloc_ctor(0, 2, 0); +} else { + x_73 = x_72; +} +lean_ctor_set(x_73, 0, x_66); +lean_ctor_set(x_73, 1, x_71); +return x_73; +} +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +x_74 = lean_ctor_get(x_12, 1); +lean_inc(x_74); +lean_dec(x_12); +x_75 = lean_ctor_get(x_13, 0); +lean_inc(x_75); +x_76 = lean_ctor_get(x_13, 1); +lean_inc(x_76); +x_77 = lean_ctor_get(x_13, 2); +lean_inc(x_77); +x_78 = lean_ctor_get(x_13, 3); +lean_inc(x_78); +x_79 = lean_ctor_get(x_13, 4); +lean_inc(x_79); +x_80 = lean_ctor_get(x_13, 5); +lean_inc(x_80); +x_81 = lean_ctor_get(x_13, 6); +lean_inc(x_81); +x_82 = lean_ctor_get_uint8(x_13, sizeof(void*)*16); +x_83 = lean_ctor_get(x_13, 7); +lean_inc(x_83); +x_84 = lean_ctor_get(x_13, 8); +lean_inc(x_84); +x_85 = lean_ctor_get(x_13, 9); +lean_inc(x_85); +x_86 = lean_ctor_get(x_13, 10); +lean_inc(x_86); +x_87 = lean_ctor_get(x_13, 11); +lean_inc(x_87); +x_88 = lean_ctor_get(x_13, 13); +lean_inc(x_88); +x_89 = lean_ctor_get(x_13, 14); +lean_inc(x_89); +x_90 = lean_ctor_get(x_13, 15); +lean_inc(x_90); +if (lean_is_exclusive(x_13)) { + lean_ctor_release(x_13, 0); + lean_ctor_release(x_13, 1); + lean_ctor_release(x_13, 2); + lean_ctor_release(x_13, 3); + lean_ctor_release(x_13, 4); + lean_ctor_release(x_13, 5); + lean_ctor_release(x_13, 6); + lean_ctor_release(x_13, 7); + lean_ctor_release(x_13, 8); + lean_ctor_release(x_13, 9); + lean_ctor_release(x_13, 10); + lean_ctor_release(x_13, 11); + lean_ctor_release(x_13, 12); + lean_ctor_release(x_13, 13); + lean_ctor_release(x_13, 14); + lean_ctor_release(x_13, 15); + x_91 = x_13; +} else { + lean_dec_ref(x_13); + x_91 = lean_box(0); +} +x_92 = lean_ctor_get(x_14, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_14, 2); +lean_inc(x_93); +x_94 = lean_ctor_get(x_14, 4); +lean_inc(x_94); +x_95 = lean_ctor_get(x_14, 5); +lean_inc(x_95); +x_96 = lean_ctor_get(x_14, 1); +lean_inc(x_96); +x_97 = lean_ctor_get(x_14, 3); +lean_inc(x_97); +if (lean_is_exclusive(x_14)) { + lean_ctor_release(x_14, 0); + lean_ctor_release(x_14, 1); + lean_ctor_release(x_14, 2); + lean_ctor_release(x_14, 3); + lean_ctor_release(x_14, 4); + lean_ctor_release(x_14, 5); + x_98 = x_14; +} else { + lean_dec_ref(x_14); + x_98 = lean_box(0); +} +lean_inc(x_1); +x_99 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_99, 0, x_1); +lean_ctor_set(x_99, 1, x_96); +x_100 = lean_box(0); +x_101 = l_Lean_PersistentHashMap_insert___at_Lean_Meta_Grind_markCaseSplitAsResolved___spec__1(x_97, x_1, x_100); +if (lean_is_scalar(x_98)) { + x_102 = lean_alloc_ctor(0, 6, 0); +} else { + x_102 = x_98; +} +lean_ctor_set(x_102, 0, x_92); +lean_ctor_set(x_102, 1, x_99); +lean_ctor_set(x_102, 2, x_93); +lean_ctor_set(x_102, 3, x_101); +lean_ctor_set(x_102, 4, x_94); +lean_ctor_set(x_102, 5, x_95); +if (lean_is_scalar(x_91)) { + x_103 = lean_alloc_ctor(0, 16, 1); +} else { + x_103 = x_91; +} +lean_ctor_set(x_103, 0, x_75); +lean_ctor_set(x_103, 1, x_76); +lean_ctor_set(x_103, 2, x_77); +lean_ctor_set(x_103, 3, x_78); +lean_ctor_set(x_103, 4, x_79); +lean_ctor_set(x_103, 5, x_80); +lean_ctor_set(x_103, 6, x_81); +lean_ctor_set(x_103, 7, x_83); +lean_ctor_set(x_103, 8, x_84); +lean_ctor_set(x_103, 9, x_85); +lean_ctor_set(x_103, 10, x_86); +lean_ctor_set(x_103, 11, x_87); +lean_ctor_set(x_103, 12, x_102); +lean_ctor_set(x_103, 13, x_88); +lean_ctor_set(x_103, 14, x_89); +lean_ctor_set(x_103, 15, x_90); +lean_ctor_set_uint8(x_103, sizeof(void*)*16, x_82); +x_104 = lean_st_ref_set(x_3, x_103, x_74); +x_105 = lean_ctor_get(x_104, 1); +lean_inc(x_105); +if (lean_is_exclusive(x_104)) { + lean_ctor_release(x_104, 0); + lean_ctor_release(x_104, 1); + x_106 = x_104; +} else { + lean_dec_ref(x_104); + x_106 = lean_box(0); +} +if (lean_is_scalar(x_106)) { + x_107 = lean_alloc_ctor(0, 2, 0); +} else { + x_107 = x_106; +} +lean_ctor_set(x_107, 0, x_100); +lean_ctor_set(x_107, 1, x_105); +return x_107; +} +} +} +static lean_object* _init_l_Lean_Meta_Grind_addSplitCandidate___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("candidate", 9, 9); +return x_1; +} +} +static lean_object* _init_l_Lean_Meta_Grind_addSplitCandidate___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; +x_1 = l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_Types___hyg_69____closed__1; +x_2 = l_Lean_Meta_Grind_markCaseSplitAsResolved___closed__1; +x_3 = l_Lean_Meta_Grind_addSplitCandidate___closed__1; +x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); +return x_4; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addSplitCandidate(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_11 = l_Lean_Meta_Grind_isKnownCaseSplit(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_unbox(x_12); +lean_dec(x_12); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = l_Lean_Meta_Grind_addSplitCandidate___closed__2; +x_16 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Grind_updateLastTag___spec__1(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_14); +x_17 = lean_ctor_get(x_16, 0); +lean_inc(x_17); +x_18 = lean_unbox(x_17); +lean_dec(x_17); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_16, 1); +lean_inc(x_19); +lean_dec(x_16); +x_20 = lean_box(0); +x_21 = l_Lean_Meta_Grind_addSplitCandidate___lambda__1(x_1, x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_19); +return x_21; +} +else +{ +uint8_t x_22; +x_22 = !lean_is_exclusive(x_16); +if (x_22 == 0) +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_16, 1); +x_24 = lean_ctor_get(x_16, 0); +lean_dec(x_24); +x_25 = l_Lean_Meta_Grind_updateLastTag(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_23); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_26 = lean_ctor_get(x_25, 1); +lean_inc(x_26); +lean_dec(x_25); +lean_inc(x_1); +x_27 = l_Lean_MessageData_ofExpr(x_1); +x_28 = l_Lean_Meta_Grind_throwNonInternalizedExpr___rarg___closed__3; +lean_ctor_set_tag(x_16, 7); +lean_ctor_set(x_16, 1, x_27); +lean_ctor_set(x_16, 0, x_28); +x_29 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_29, 0, x_16); +lean_ctor_set(x_29, 1, x_28); +x_30 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_15, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_26); +x_31 = lean_ctor_get(x_30, 0); +lean_inc(x_31); +x_32 = lean_ctor_get(x_30, 1); +lean_inc(x_32); +lean_dec(x_30); +x_33 = l_Lean_Meta_Grind_addSplitCandidate___lambda__1(x_1, x_31, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_32); +lean_dec(x_31); +return x_33; +} +else +{ +uint8_t x_34; +lean_free_object(x_16); +lean_dec(x_1); +x_34 = !lean_is_exclusive(x_25); +if (x_34 == 0) +{ +return x_25; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_25, 0); +x_36 = lean_ctor_get(x_25, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_25); +x_37 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +return x_37; +} +} +} +else +{ +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_16, 1); +lean_inc(x_38); +lean_dec(x_16); +x_39 = l_Lean_Meta_Grind_updateLastTag(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_38); +if (lean_obj_tag(x_39) == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +lean_dec(x_39); +lean_inc(x_1); +x_41 = l_Lean_MessageData_ofExpr(x_1); +x_42 = l_Lean_Meta_Grind_throwNonInternalizedExpr___rarg___closed__3; +x_43 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +x_44 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_44, 0, x_43); +lean_ctor_set(x_44, 1, x_42); +x_45 = l_Lean_addTrace___at_Lean_Meta_Grind_updateLastTag___spec__2(x_15, x_44, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_40); +x_46 = lean_ctor_get(x_45, 0); +lean_inc(x_46); +x_47 = lean_ctor_get(x_45, 1); +lean_inc(x_47); +lean_dec(x_45); +x_48 = l_Lean_Meta_Grind_addSplitCandidate___lambda__1(x_1, x_46, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_47); +lean_dec(x_46); +return x_48; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; +lean_dec(x_1); +x_49 = lean_ctor_get(x_39, 0); +lean_inc(x_49); +x_50 = lean_ctor_get(x_39, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_51 = x_39; +} else { + lean_dec_ref(x_39); + x_51 = lean_box(0); +} +if (lean_is_scalar(x_51)) { + x_52 = lean_alloc_ctor(1, 2, 0); +} else { + x_52 = x_51; +} +lean_ctor_set(x_52, 0, x_49); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +} +} +else +{ +uint8_t x_53; +lean_dec(x_1); +x_53 = !lean_is_exclusive(x_11); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; +x_54 = lean_ctor_get(x_11, 0); +lean_dec(x_54); +x_55 = lean_box(0); +lean_ctor_set(x_11, 0, x_55); +return x_11; +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; +x_56 = lean_ctor_get(x_11, 1); +lean_inc(x_56); +lean_dec(x_11); +x_57 = lean_box(0); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_56); +return x_58; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addSplitCandidate___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +lean_object* x_12; +x_12 = l_Lean_Meta_Grind_addSplitCandidate___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addSplitCandidate___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Meta_Grind_addSplitCandidate(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +return x_11; +} +} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_Meta_Grind_getExtTheorems___spec__3(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -39084,6 +39763,10 @@ l_Lean_Meta_Grind_markCaseSplitAsResolved___closed__2 = _init_l_Lean_Meta_Grind_ lean_mark_persistent(l_Lean_Meta_Grind_markCaseSplitAsResolved___closed__2); l_Lean_Meta_Grind_markCaseSplitAsResolved___closed__3 = _init_l_Lean_Meta_Grind_markCaseSplitAsResolved___closed__3(); lean_mark_persistent(l_Lean_Meta_Grind_markCaseSplitAsResolved___closed__3); +l_Lean_Meta_Grind_addSplitCandidate___closed__1 = _init_l_Lean_Meta_Grind_addSplitCandidate___closed__1(); +lean_mark_persistent(l_Lean_Meta_Grind_addSplitCandidate___closed__1); +l_Lean_Meta_Grind_addSplitCandidate___closed__2 = _init_l_Lean_Meta_Grind_addSplitCandidate___closed__2(); +lean_mark_persistent(l_Lean_Meta_Grind_addSplitCandidate___closed__2); l_Lean_Meta_Grind_getExtTheorems___lambda__1___closed__1 = _init_l_Lean_Meta_Grind_getExtTheorems___lambda__1___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_getExtTheorems___lambda__1___closed__1); l_Lean_Meta_Grind_getExtTheorems___lambda__1___closed__2 = _init_l_Lean_Meta_Grind_getExtTheorems___lambda__1___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Grind/Util.c b/stage0/stdlib/Lean/Meta/Tactic/Grind/Util.c index b30f941d0a..24fad9132b 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Grind/Util.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Grind/Util.c @@ -20,15 +20,15 @@ static lean_object* l_Lean_MVarId_betaReduce___lambda__1___closed__1; static lean_object* l_Lean_Meta_Grind_eraseIrrelevantMData___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_byContra_x3f___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_foldProjs___lambda__2___closed__7; static lean_object* l_Lean_Meta_Grind_isGrindGadget___closed__1; +static lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__5; LEAN_EXPORT lean_object* l_List_mapTR_loop___at_Lean_Meta_Grind_normalizeLevels___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseIrrelevantMData___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_ensureNoMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isPreMatchCond___boxed(lean_object*); -static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__8; lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_replacePreMatchCond___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Exception_isInterrupt(lean_object*); @@ -45,6 +45,7 @@ static lean_object* l_Lean_Meta_Grind_foldProjs___lambda__2___closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseIrrelevantMData(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_sort___override(lean_object*); static lean_object* l_Lean_Meta_Grind_markAsPreMatchCond___closed__2; +static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_foldProjs___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_Lean_Meta_Grind_isGrindGadget___closed__2; @@ -55,18 +56,19 @@ static lean_object* l_Lean_Meta_Grind_replacePreMatchCond___closed__1; lean_object* l_Lean_Meta_mkExpectedTypeHint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_normalizeLevels___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_getTag(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__1; static lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__1___closed__1; +static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__2; static lean_object* l_Lean_MVarId_ensureNoMVar___closed__1; lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*); static lean_object* l_Lean_Meta_Grind_isGrindGadget___closed__4; static lean_object* l_Lean_MVarId_unfoldReducible___closed__1; lean_object* l_Lean_stringToMessageData(lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4; -static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__6; +static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__8; static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__5; static lean_object* l_Lean_Meta_Grind_foldProjs___lambda__2___closed__9; LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isGrindGadget(lean_object*); +static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__5; static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_replacePreMatchCond___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -98,6 +100,7 @@ lean_object* l_Lean_isReducible___at___private_Lean_Meta_Basic_0__Lean_Meta_getD lean_object* l_Lean_Meta_transform___at_Lean_Meta_zetaReduce___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_foldProjs___closed__1; lean_object* l_Lean_Expr_appArg(lean_object*, lean_object*); +lean_object* l_Lean_FVarId_getDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_List_isEmpty___rarg(lean_object*); @@ -132,18 +135,17 @@ lean_object* l_Lean_mkNot(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_MVarId_abstractNestedProofs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseIrrelevantMData___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isMatchCond___boxed(lean_object*); lean_object* l_Lean_LocalDecl_fvarId(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_byContra_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_LocalDecl_isAuxDecl(lean_object*); -static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Grind_foldProjs___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isPreMatchCond(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_replacePreMatchCond___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_ensureNoMVar___closed__6; +lean_object* l_Lean_LocalDecl_userName(lean_object*); static lean_object* l_Lean_MVarId_betaReduce___lambda__1___closed__2; static uint64_t l_Lean_Meta_Grind_foldProjs___lambda__2___closed__13; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_clearAuxDecls___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -155,14 +157,12 @@ uint8_t l_Lean_Expr_isFalse(lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Grind_isMatchCond(lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___closed__6; -static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__2; -static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__7; lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2; LEAN_EXPORT lean_object* l_Lean_MVarId_ensureNoMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_unfoldReducible___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_markAsMatchCond___closed__1; @@ -178,31 +178,33 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_clearAuxD LEAN_EXPORT lean_object* l_Lean_MVarId_byContra_x3f___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_ensureNoMVar___closed__5; LEAN_EXPORT lean_object* l_Lean_MVarId_transformTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__7; lean_object* l_Lean_Expr_getAppFn(lean_object*); static lean_object* l_Lean_Meta_Grind_foldProjs___lambda__2___closed__6; LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_MVarId_clearAuxDecls___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t lean_uint64_shift_left(uint64_t, uint64_t); +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693_(lean_object*); lean_object* l_Lean_mkArrow(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_reducePreMatchCond___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_instantiateMVarsIfMVarApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_abstractNestedProofs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_byContra_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__3; lean_object* lean_array_mk(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_MVarId_clearAuxDecls___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__5; LEAN_EXPORT lean_object* l_Lean_MVarId_byContra_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); static lean_object* l_Lean_Meta_Grind_foldProjs___lambda__2___closed__5; static lean_object* l_Lean_Meta_Grind_foldProjs___lambda__2___closed__1; +static lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__6; lean_object* lean_array_uget(lean_object*, size_t); LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_MVarId_clearAuxDecls___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_array_size(lean_object*); lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_foldProjs___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_unfoldReducible___closed__1; +static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__1; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_unfoldReducible(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Core_transform___at_Lean_Elab_Term_exposeLevelMVars___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -214,11 +216,13 @@ lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_objec lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_normalizeLevels(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_find_expr(lean_object*, lean_object*); +static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__6; uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_foldProjs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkProjection(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_Meta_TransparencyMode_toUInt64(uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_markAsPreMatchCond(lean_object*); +static lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__4; uint8_t l_Lean_Exception_isRuntime(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addPreMatchCondSimproc(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_replacePreMatchCond___closed__2; @@ -231,7 +235,7 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_MVarId_clearAuxD lean_object* l_Lean_MessageData_ofName(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Grind_foldProjs___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Grind_foldProjs___lambda__2___closed__4; static lean_object* l_Lean_Meta_Grind_unfoldReducible___closed__2; static lean_object* l_Lean_Meta_Grind_markAsPreMatchCond___closed__1; @@ -2102,7 +2106,7 @@ static lean_object* _init_l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls__ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("failed to clear local auxiliary declaration", 43, 43); +x_1 = lean_mk_string_unchecked("the goal mentions the declaration `", 35, 35); return x_1; } } @@ -2111,18 +2115,16 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__1; -x_2 = lean_alloc_ctor(3, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } static lean_object* _init_l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3() { _start: { -lean_object* x_1; lean_object* x_2; -x_1 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2; -x_2 = l_Lean_MessageData_ofFormat(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("`, which is being defined. To avoid circular reasoning, try rewriting the goal to eliminate `", 93, 93); +return x_1; } } static lean_object* _init_l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4() { @@ -2130,54 +2132,73 @@ _start: { lean_object* x_1; lean_object* x_2; x_1 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3; -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); +x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +static lean_object* _init_l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__5() { _start: { -if (lean_obj_tag(x_5) == 0) +lean_object* x_1; +x_1 = lean_mk_string_unchecked("` before using `grind`.", 23, 23); +return x_1; +} +} +static lean_object* _init_l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__6() { +_start: { -lean_object* x_13; -lean_dec(x_11); +lean_object* x_1; lean_object* x_2; +x_1 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__5; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +if (lean_obj_tag(x_4) == 0) +{ +lean_object* x_12; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_1); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_6); -lean_ctor_set(x_13, 1, x_12); -return x_13; +lean_dec(x_7); +x_12 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_12, 0, x_5); +lean_ctor_set(x_12, 1, x_11); +return x_12; } else { +uint8_t x_13; +x_13 = !lean_is_exclusive(x_4); +if (x_13 == 0) +{ lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_5, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_5, 1); -lean_inc(x_15); -lean_dec(x_5); -lean_inc(x_11); +x_14 = lean_ctor_get(x_4, 0); +x_15 = lean_ctor_get(x_4, 1); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_6); -x_16 = l_Lean_MVarId_clear(x_6, x_14, x_8, x_9, x_10, x_11, x_12); +lean_inc(x_7); +lean_inc(x_14); +lean_inc(x_5); +x_16 = l_Lean_MVarId_clear(x_5, x_14, x_7, x_8, x_9, x_10, x_11); if (lean_obj_tag(x_16) == 0) { lean_object* x_17; lean_object* x_18; -lean_dec(x_6); +lean_free_object(x_4); +lean_dec(x_14); +lean_dec(x_5); 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_5 = x_15; -x_6 = x_17; -x_7 = lean_box(0); -x_12 = x_18; +x_4 = x_15; +x_5 = x_17; +x_6 = lean_box(0); +x_11 = x_18; goto _start; } else @@ -2197,184 +2218,495 @@ uint8_t x_24; x_24 = l_Lean_Exception_isRuntime(x_21); if (x_24 == 0) { -lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_object* x_25; lean_free_object(x_16); lean_dec(x_21); -x_25 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4; -x_26 = l_Lean_Meta_throwTacticEx___rarg(x_1, x_6, x_25, x_8, x_9, x_10, x_11, x_22); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_27 = !lean_is_exclusive(x_26); -if (x_27 == 0) +lean_inc(x_7); +x_25 = l_Lean_FVarId_getDecl(x_14, x_7, x_8, x_9, x_10, x_22); +if (lean_obj_tag(x_25) == 0) { -return x_26; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_26, 0); -x_29 = lean_ctor_get(x_26, 1); -lean_inc(x_29); -lean_inc(x_28); +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; uint8_t x_39; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_LocalDecl_userName(x_26); lean_dec(x_26); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -else -{ -lean_dec(x_11); +x_29 = l_Lean_MessageData_ofName(x_28); +x_30 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2; +lean_inc(x_29); +lean_ctor_set_tag(x_4, 7); +lean_ctor_set(x_4, 1, x_29); +lean_ctor_set(x_4, 0, x_30); +x_31 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4; +x_32 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_32, 0, x_4); +lean_ctor_set(x_32, 1, x_31); +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_29); +x_34 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__6; +x_35 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +x_36 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_36, 0, x_35); +x_37 = l_Lean_MVarId_ensureNoMVar___closed__2; +x_38 = l_Lean_Meta_throwTacticEx___rarg(x_37, x_5, x_36, x_7, x_8, x_9, x_10, x_27); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_1); -return x_16; -} +lean_dec(x_7); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +return x_38; } else { -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_1); -return x_16; -} -} -else -{ -lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_31 = lean_ctor_get(x_16, 0); -x_32 = lean_ctor_get(x_16, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_16); -x_33 = l_Lean_Exception_isInterrupt(x_31); -if (x_33 == 0) -{ -uint8_t x_34; -x_34 = l_Lean_Exception_isRuntime(x_31); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; -lean_dec(x_31); -x_35 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4; -x_36 = l_Lean_Meta_throwTacticEx___rarg(x_1, x_6, x_35, x_8, x_9, x_10, x_11, x_32); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_37 = lean_ctor_get(x_36, 0); -lean_inc(x_37); -x_38 = lean_ctor_get(x_36, 1); -lean_inc(x_38); -if (lean_is_exclusive(x_36)) { - lean_ctor_release(x_36, 0); - lean_ctor_release(x_36, 1); - x_39 = x_36; -} else { - lean_dec_ref(x_36); - x_39 = lean_box(0); -} -if (lean_is_scalar(x_39)) { - x_40 = lean_alloc_ctor(1, 2, 0); -} else { - x_40 = x_39; -} -lean_ctor_set(x_40, 0, x_37); -lean_ctor_set(x_40, 1, x_38); -return x_40; -} -else -{ -lean_object* x_41; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_1); -x_41 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_41, 0, x_31); -lean_ctor_set(x_41, 1, x_32); -return x_41; -} -} -else -{ -lean_object* x_42; -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_6); -lean_dec(x_1); +lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_40 = lean_ctor_get(x_38, 0); +x_41 = lean_ctor_get(x_38, 1); +lean_inc(x_41); +lean_inc(x_40); +lean_dec(x_38); x_42 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_42, 0, x_31); -lean_ctor_set(x_42, 1, x_32); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); return x_42; } } +else +{ +uint8_t x_43; +lean_free_object(x_4); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_43 = !lean_is_exclusive(x_25); +if (x_43 == 0) +{ +return x_25; +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_25, 0); +x_45 = lean_ctor_get(x_25, 1); +lean_inc(x_45); +lean_inc(x_44); +lean_dec(x_25); +x_46 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_46, 0, x_44); +lean_ctor_set(x_46, 1, x_45); +return x_46; +} +} +} +else +{ +lean_free_object(x_4); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_16; +} +} +else +{ +lean_free_object(x_4); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +return x_16; +} +} +else +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = lean_ctor_get(x_16, 0); +x_48 = lean_ctor_get(x_16, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_16); +x_49 = l_Lean_Exception_isInterrupt(x_47); +if (x_49 == 0) +{ +uint8_t x_50; +x_50 = l_Lean_Exception_isRuntime(x_47); +if (x_50 == 0) +{ +lean_object* x_51; +lean_dec(x_47); +lean_inc(x_7); +x_51 = l_Lean_FVarId_getDecl(x_14, x_7, x_8, x_9, x_10, x_48); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 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; +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 = l_Lean_LocalDecl_userName(x_52); +lean_dec(x_52); +x_55 = l_Lean_MessageData_ofName(x_54); +x_56 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2; +lean_inc(x_55); +lean_ctor_set_tag(x_4, 7); +lean_ctor_set(x_4, 1, x_55); +lean_ctor_set(x_4, 0, x_56); +x_57 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4; +x_58 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_58, 0, x_4); +lean_ctor_set(x_58, 1, x_57); +x_59 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_55); +x_60 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__6; +x_61 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_61, 0, x_59); +lean_ctor_set(x_61, 1, x_60); +x_62 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_62, 0, x_61); +x_63 = l_Lean_MVarId_ensureNoMVar___closed__2; +x_64 = l_Lean_Meta_throwTacticEx___rarg(x_63, x_5, x_62, x_7, x_8, x_9, x_10, x_53); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_65 = lean_ctor_get(x_64, 0); +lean_inc(x_65); +x_66 = lean_ctor_get(x_64, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_64)) { + lean_ctor_release(x_64, 0); + lean_ctor_release(x_64, 1); + x_67 = x_64; +} else { + lean_dec_ref(x_64); + x_67 = lean_box(0); +} +if (lean_is_scalar(x_67)) { + x_68 = lean_alloc_ctor(1, 2, 0); +} else { + x_68 = x_67; +} +lean_ctor_set(x_68, 0, x_65); +lean_ctor_set(x_68, 1, x_66); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +lean_free_object(x_4); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_69 = lean_ctor_get(x_51, 0); +lean_inc(x_69); +x_70 = lean_ctor_get(x_51, 1); +lean_inc(x_70); +if (lean_is_exclusive(x_51)) { + lean_ctor_release(x_51, 0); + lean_ctor_release(x_51, 1); + x_71 = x_51; +} else { + lean_dec_ref(x_51); + x_71 = lean_box(0); +} +if (lean_is_scalar(x_71)) { + x_72 = lean_alloc_ctor(1, 2, 0); +} else { + x_72 = x_71; +} +lean_ctor_set(x_72, 0, x_69); +lean_ctor_set(x_72, 1, x_70); +return x_72; +} +} +else +{ +lean_object* x_73; +lean_free_object(x_4); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_47); +lean_ctor_set(x_73, 1, x_48); +return x_73; +} +} +else +{ +lean_object* x_74; +lean_free_object(x_4); +lean_dec(x_14); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_74 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_74, 0, x_47); +lean_ctor_set(x_74, 1, x_48); +return x_74; } } } } -LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +else +{ +lean_object* x_75; lean_object* x_76; lean_object* x_77; +x_75 = lean_ctor_get(x_4, 0); +x_76 = lean_ctor_get(x_4, 1); +lean_inc(x_76); +lean_inc(x_75); +lean_dec(x_4); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_75); +lean_inc(x_5); +x_77 = l_Lean_MVarId_clear(x_5, x_75, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_77) == 0) +{ +lean_object* x_78; lean_object* x_79; +lean_dec(x_75); +lean_dec(x_5); +x_78 = lean_ctor_get(x_77, 0); +lean_inc(x_78); +x_79 = lean_ctor_get(x_77, 1); +lean_inc(x_79); +lean_dec(x_77); +x_4 = x_76; +x_5 = x_78; +x_6 = lean_box(0); +x_11 = x_79; +goto _start; +} +else +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; uint8_t x_84; +lean_dec(x_76); +x_81 = lean_ctor_get(x_77, 0); +lean_inc(x_81); +x_82 = lean_ctor_get(x_77, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_77)) { + lean_ctor_release(x_77, 0); + lean_ctor_release(x_77, 1); + x_83 = x_77; +} else { + lean_dec_ref(x_77); + x_83 = lean_box(0); +} +x_84 = l_Lean_Exception_isInterrupt(x_81); +if (x_84 == 0) +{ +uint8_t x_85; +x_85 = l_Lean_Exception_isRuntime(x_81); +if (x_85 == 0) +{ +lean_object* x_86; +lean_dec(x_83); +lean_dec(x_81); +lean_inc(x_7); +x_86 = l_Lean_FVarId_getDecl(x_75, x_7, x_8, x_9, x_10, x_82); +if (lean_obj_tag(x_86) == 0) +{ +lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +x_87 = lean_ctor_get(x_86, 0); +lean_inc(x_87); +x_88 = lean_ctor_get(x_86, 1); +lean_inc(x_88); +lean_dec(x_86); +x_89 = l_Lean_LocalDecl_userName(x_87); +lean_dec(x_87); +x_90 = l_Lean_MessageData_ofName(x_89); +x_91 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__2; +lean_inc(x_90); +x_92 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_90); +x_93 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4; +x_94 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_94, 0, x_92); +lean_ctor_set(x_94, 1, x_93); +x_95 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_95, 0, x_94); +lean_ctor_set(x_95, 1, x_90); +x_96 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__6; +x_97 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +x_98 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_98, 0, x_97); +x_99 = l_Lean_MVarId_ensureNoMVar___closed__2; +x_100 = l_Lean_Meta_throwTacticEx___rarg(x_99, x_5, x_98, x_7, x_8, x_9, x_10, x_88); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +x_101 = lean_ctor_get(x_100, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_100, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_103 = x_100; +} else { + lean_dec_ref(x_100); + x_103 = lean_box(0); +} +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(1, 2, 0); +} else { + x_104 = x_103; +} +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +return x_104; +} +else +{ +lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +x_105 = lean_ctor_get(x_86, 0); +lean_inc(x_105); +x_106 = lean_ctor_get(x_86, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_86)) { + lean_ctor_release(x_86, 0); + lean_ctor_release(x_86, 1); + x_107 = x_86; +} else { + lean_dec_ref(x_86); + x_107 = lean_box(0); +} +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(1, 2, 0); +} else { + x_108 = x_107; +} +lean_ctor_set(x_108, 0, x_105); +lean_ctor_set(x_108, 1, x_106); +return x_108; +} +} +else +{ +lean_object* x_109; +lean_dec(x_75); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +if (lean_is_scalar(x_83)) { + x_109 = lean_alloc_ctor(1, 2, 0); +} else { + x_109 = x_83; +} +lean_ctor_set(x_109, 0, x_81); +lean_ctor_set(x_109, 1, x_82); +return x_109; +} +} +else +{ +lean_object* x_110; +lean_dec(x_75); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_5); +if (lean_is_scalar(x_83)) { + x_110 = lean_alloc_ctor(1, 2, 0); +} else { + x_110 = x_83; +} +lean_ctor_set(x_110, 0, x_81); +lean_ctor_set(x_110, 1, x_82); +return x_110; +} +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; lean_object* x_11; -x_10 = lean_box(0); -lean_inc(x_2); -x_11 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6(x_1, x_2, x_10, x_2, x_2, x_3, lean_box(0), x_5, x_6, x_7, x_8, x_9); -lean_dec(x_2); -if (lean_obj_tag(x_11) == 0) +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(0); +lean_inc(x_1); +x_10 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6(x_1, x_9, x_1, x_1, x_2, lean_box(0), x_4, x_5, x_6, x_7, x_8); +lean_dec(x_1); +if (lean_obj_tag(x_10) == 0) { -uint8_t x_12; -x_12 = !lean_is_exclusive(x_11); -if (x_12 == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) { -return x_11; +return x_10; } else { -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_11, 0); -x_14 = lean_ctor_get(x_11, 1); -lean_inc(x_14); +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_10, 0); +x_13 = lean_ctor_get(x_10, 1); lean_inc(x_13); -lean_dec(x_11); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_13); -lean_ctor_set(x_15, 1, x_14); -return x_15; +lean_inc(x_12); +lean_dec(x_10); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; } } else { -uint8_t x_16; -x_16 = !lean_is_exclusive(x_11); -if (x_16 == 0) +uint8_t x_15; +x_15 = !lean_is_exclusive(x_10); +if (x_15 == 0) { -return x_11; +return x_10; } else { -lean_object* x_17; lean_object* x_18; lean_object* x_19; -x_17 = lean_ctor_get(x_11, 0); -x_18 = lean_ctor_get(x_11, 1); -lean_inc(x_18); +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_10, 0); +x_17 = lean_ctor_get(x_10, 1); lean_inc(x_17); -lean_dec(x_11); -x_19 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -return x_19; +lean_inc(x_16); +lean_dec(x_10); +x_18 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; } } } @@ -2383,7 +2715,6 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__2(lean_object* x_ _start: { lean_object* x_8; -lean_inc(x_2); lean_inc(x_1); x_8 = l_Lean_MVarId_checkNotAssigned(x_1, x_2, x_3, x_4, x_5, x_6, x_7); if (lean_obj_tag(x_8) == 0) @@ -2412,7 +2743,7 @@ if (x_17 == 0) lean_object* x_18; lean_object* x_19; lean_free_object(x_13); x_18 = lean_box(0); -x_19 = l_Lean_MVarId_clearAuxDecls___lambda__1(x_2, x_15, x_1, x_18, x_3, x_4, x_5, x_6, x_16); +x_19 = l_Lean_MVarId_clearAuxDecls___lambda__1(x_15, x_1, x_18, x_3, x_4, x_5, x_6, x_16); return x_19; } else @@ -2422,7 +2753,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); lean_ctor_set(x_13, 0, x_1); return x_13; } @@ -2440,7 +2770,7 @@ if (x_22 == 0) { lean_object* x_23; lean_object* x_24; x_23 = lean_box(0); -x_24 = l_Lean_MVarId_clearAuxDecls___lambda__1(x_2, x_20, x_1, x_23, x_3, x_4, x_5, x_6, x_21); +x_24 = l_Lean_MVarId_clearAuxDecls___lambda__1(x_20, x_1, x_23, x_3, x_4, x_5, x_6, x_21); return x_24; } else @@ -2451,7 +2781,6 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); -lean_dec(x_2); x_25 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_25, 0, x_1); lean_ctor_set(x_25, 1, x_21); @@ -2466,7 +2795,6 @@ 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_26 = !lean_is_exclusive(x_8); if (x_26 == 0) @@ -2631,24 +2959,24 @@ lean_dec(x_1); return x_8; } } -LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { -lean_object* x_13; -x_13 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -lean_dec(x_4); +lean_object* x_12; +x_12 = l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_3); lean_dec(x_2); -return x_13; +lean_dec(x_1); +return x_12; } } -LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +LEAN_EXPORT lean_object* l_Lean_MVarId_clearAuxDecls___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_10; -x_10 = l_Lean_MVarId_clearAuxDecls___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_4); -return x_10; +lean_object* x_9; +x_9 = l_Lean_MVarId_clearAuxDecls___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +return x_9; } } LEAN_EXPORT lean_object* l_Lean_Meta_Grind_eraseIrrelevantMData___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -4330,7 +4658,7 @@ lean_dec(x_1); return x_10; } } -static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__1() { +static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__1() { _start: { lean_object* x_1; @@ -4338,7 +4666,7 @@ x_1 = lean_mk_string_unchecked("Meta", 4, 4); return x_1; } } -static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__2() { +static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__2() { _start: { lean_object* x_1; @@ -4346,19 +4674,19 @@ x_1 = lean_mk_string_unchecked("reducePreMatchCond", 18, 18); return x_1; } } -static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__3() { +static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Meta_Grind_isGrindGadget___closed__1; -x_2 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__1; +x_2 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__1; x_3 = l_Lean_Meta_Grind_isGrindGadget___closed__2; -x_4 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__2; +x_4 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__2; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__4() { +static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4370,7 +4698,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__5() { +static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; @@ -4382,28 +4710,28 @@ lean_ctor_set(x_3, 1, x_1); return x_3; } } -static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__6() { +static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__4; -x_2 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__5; +x_1 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__4; +x_2 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__5; x_3 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_3, 0, x_1); lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__7() { +static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__6; +x_1 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__6; x_2 = lean_array_mk(x_1); return x_2; } } -static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__8() { +static lean_object* _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__8() { _start: { lean_object* x_1; @@ -4411,13 +4739,13 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_reducePreMatchCond), 9, 0); return x_1; } } -LEAN_EXPORT lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649_(lean_object* x_1) { +LEAN_EXPORT lean_object* l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_2 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__3; -x_3 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__7; -x_4 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__8; +x_2 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__3; +x_3 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__7; +x_4 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__8; x_5 = l_Lean_Meta_Simp_registerBuiltinDSimproc(x_2, x_3, x_4, x_1); return x_5; } @@ -4426,7 +4754,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addPreMatchCondSimproc(lean_object* x _start: { lean_object* x_5; uint8_t x_6; lean_object* x_7; -x_5 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__3; +x_5 = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__3; x_6 = 0; x_7 = l_Lean_Meta_Simp_Simprocs_add(x_1, x_5, x_6, x_2, x_3, x_4); return x_7; @@ -5093,6 +5421,10 @@ l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3 = _in lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__3); l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4 = _init_l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4(); lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__4); +l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__5 = _init_l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__5(); +lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__5); +l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__6 = _init_l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__6(); +lean_mark_persistent(l_List_forIn_x27_loop___at_Lean_MVarId_clearAuxDecls___spec__6___closed__6); l_Lean_MVarId_clearAuxDecls___closed__1 = _init_l_Lean_MVarId_clearAuxDecls___closed__1(); lean_mark_persistent(l_Lean_MVarId_clearAuxDecls___closed__1); l_Lean_MVarId_clearAuxDecls___closed__2 = _init_l_Lean_MVarId_clearAuxDecls___closed__2(); @@ -5146,23 +5478,23 @@ l_Lean_Meta_Grind_markAsPreMatchCond___closed__3 = _init_l_Lean_Meta_Grind_markA lean_mark_persistent(l_Lean_Meta_Grind_markAsPreMatchCond___closed__3); l_Lean_Meta_Grind_reducePreMatchCond___closed__1 = _init_l_Lean_Meta_Grind_reducePreMatchCond___closed__1(); lean_mark_persistent(l_Lean_Meta_Grind_reducePreMatchCond___closed__1); -l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__1 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__1(); -lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__1); -l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__2 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__2(); -lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__2); -l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__3 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__3(); -lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__3); -l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__4 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__4(); -lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__4); -l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__5 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__5(); -lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__5); -l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__6 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__6(); -lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__6); -l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__7 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__7(); -lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__7); -l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__8 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__8(); -lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649____closed__8); -if (builtin) {res = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1649_(lean_io_mk_world()); +l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__1 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__1(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__1); +l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__2 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__2(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__2); +l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__3 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__3(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__3); +l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__4 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__4(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__4); +l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__5 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__5(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__5); +l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__6 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__6(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__6); +l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__7 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__7(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__7); +l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__8 = _init_l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__8(); +lean_mark_persistent(l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693____closed__8); +if (builtin) {res = l___regBuiltin_Lean_Meta_Grind_reducePreMatchCond_declare__1____x40_Lean_Meta_Tactic_Grind_Util___hyg_1693_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); }l_Lean_Meta_Grind_replacePreMatchCond___lambda__3___closed__1 = _init_l_Lean_Meta_Grind_replacePreMatchCond___lambda__3___closed__1(); diff --git a/stage0/stdlib/Std/Tactic/BVDecide/Bitblast/BVExpr/Basic.c b/stage0/stdlib/Std/Tactic/BVDecide/Bitblast/BVExpr/Basic.c index 335fdb2608..5b5206d493 100644 --- a/stage0/stdlib/Std/Tactic/BVDecide/Bitblast/BVExpr/Basic.c +++ b/stage0/stdlib/Std/Tactic/BVDecide/Bitblast/BVExpr/Basic.c @@ -85,6 +85,7 @@ static lean_object* l_Std_Tactic_BVDecide_instInhabitedBVBit___closed__1; static lean_object* l_Std_Tactic_BVDecide_BVBinOp_toString___closed__3; uint64_t l_BitVec_hash(lean_object*, lean_object*); static lean_object* l___private_Std_Tactic_BVDecide_Bitblast_BVExpr_Basic_0__Std_Tactic_BVDecide_reprBVBit____x40_Std_Tactic_BVDecide_Bitblast_BVExpr_Basic___hyg_287____closed__5; +uint8_t l_instDecidableNot___rarg(uint8_t); LEAN_EXPORT lean_object* l_Std_Tactic_BVDecide_BVBinPred_toString___boxed(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Std_Tactic_BVDecide_BVBinPred_toString___closed__1; @@ -169,6 +170,7 @@ LEAN_EXPORT lean_object* l_Std_Tactic_BVDecide_BVBinOp_toCtorIdx(uint8_t); LEAN_EXPORT lean_object* l_Std_Tactic_BVDecide_BVBinOp_eval___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Tactic_BVDecide_BVBinPred_instToString; LEAN_EXPORT uint8_t l_Std_Tactic_BVDecide_instDecidableEqBVBit(lean_object*, lean_object*); +uint8_t lean_uint64_dec_eq(uint64_t, uint64_t); LEAN_EXPORT uint8_t l_Std_Tactic_BVDecide_BVExpr_instDecidableEq(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Std_Tactic_BVDecide_Bitblast_BVExpr_Basic_0__Std_Tactic_BVDecide_hashBVBit____x40_Std_Tactic_BVDecide_Bitblast_BVExpr_Basic___hyg_35____boxed(lean_object*); static lean_object* l_Std_Tactic_BVDecide_BVExpr_toString___closed__5; @@ -2070,28 +2072,18 @@ x_5 = lean_ptr_addr(x_3); x_6 = lean_usize_dec_eq(x_4, x_5); if (x_6 == 0) { +uint64_t x_7; uint64_t x_8; uint8_t x_9; uint8_t x_10; +x_7 = l_Std_Tactic_BVDecide_BVExpr_hashCode___override___rarg(x_2); +x_8 = l_Std_Tactic_BVDecide_BVExpr_hashCode___override___rarg(x_3); +x_9 = lean_uint64_dec_eq(x_7, x_8); +x_10 = l_instDecidableNot___rarg(x_9); +if (x_10 == 0) +{ switch (lean_obj_tag(x_2)) { case 0: { if (lean_obj_tag(x_3) == 0) { -lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_7 = lean_ctor_get(x_2, 1); -x_8 = lean_ctor_get(x_3, 1); -x_9 = lean_nat_dec_eq(x_7, x_8); -return x_9; -} -else -{ -uint8_t x_10; -x_10 = 0; -return x_10; -} -} -case 1: -{ -if (lean_obj_tag(x_3) == 1) -{ lean_object* x_11; lean_object* x_12; uint8_t x_13; x_11 = lean_ctor_get(x_2, 1); x_12 = lean_ctor_get(x_3, 1); @@ -2105,157 +2097,154 @@ x_14 = 0; return x_14; } } +case 1: +{ +if (lean_obj_tag(x_3) == 1) +{ +lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_15 = lean_ctor_get(x_2, 1); +x_16 = lean_ctor_get(x_3, 1); +x_17 = lean_nat_dec_eq(x_15, x_16); +return x_17; +} +else +{ +uint8_t x_18; +x_18 = 0; +return x_18; +} +} case 2: { if (lean_obj_tag(x_3) == 2) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_15 = lean_ctor_get(x_2, 0); -x_16 = lean_ctor_get(x_2, 1); -x_17 = lean_ctor_get(x_2, 3); -x_18 = lean_ctor_get(x_3, 0); -x_19 = lean_ctor_get(x_3, 1); -x_20 = lean_ctor_get(x_3, 3); -x_21 = lean_nat_dec_eq(x_15, x_18); -if (x_21 == 0) +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_19 = lean_ctor_get(x_2, 0); +x_20 = lean_ctor_get(x_2, 1); +x_21 = lean_ctor_get(x_2, 3); +x_22 = lean_ctor_get(x_3, 0); +x_23 = lean_ctor_get(x_3, 1); +x_24 = lean_ctor_get(x_3, 3); +x_25 = lean_nat_dec_eq(x_19, x_22); +if (x_25 == 0) { -uint8_t x_22; -x_22 = 0; -return x_22; +uint8_t x_26; +x_26 = 0; +return x_26; } else { -uint8_t x_23; -x_23 = lean_nat_dec_eq(x_16, x_19); -if (x_23 == 0) +uint8_t x_27; +x_27 = lean_nat_dec_eq(x_20, x_23); +if (x_27 == 0) { -uint8_t x_24; -x_24 = 0; -return x_24; +uint8_t x_28; +x_28 = 0; +return x_28; } else { -x_1 = x_18; -x_2 = x_17; -x_3 = x_20; +x_1 = x_22; +x_2 = x_21; +x_3 = x_24; goto _start; } } } else { -uint8_t x_26; -x_26 = 0; -return x_26; +uint8_t x_30; +x_30 = 0; +return x_30; } } case 3: { if (lean_obj_tag(x_3) == 3) { -lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; uint8_t x_33; -x_27 = lean_ctor_get(x_2, 1); -x_28 = lean_ctor_get_uint8(x_2, sizeof(void*)*3 + 8); -x_29 = lean_ctor_get(x_2, 2); -x_30 = lean_ctor_get(x_3, 1); -x_31 = lean_ctor_get_uint8(x_3, sizeof(void*)*3 + 8); -x_32 = lean_ctor_get(x_3, 2); -x_33 = l_Std_Tactic_BVDecide_instDecidableEqBVBinOp(x_28, x_31); -if (x_33 == 0) +lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; uint8_t x_37; +x_31 = lean_ctor_get(x_2, 1); +x_32 = lean_ctor_get_uint8(x_2, sizeof(void*)*3 + 8); +x_33 = lean_ctor_get(x_2, 2); +x_34 = lean_ctor_get(x_3, 1); +x_35 = lean_ctor_get_uint8(x_3, sizeof(void*)*3 + 8); +x_36 = lean_ctor_get(x_3, 2); +x_37 = l_Std_Tactic_BVDecide_instDecidableEqBVBinOp(x_32, x_35); +if (x_37 == 0) { -uint8_t x_34; -x_34 = 0; -return x_34; +uint8_t x_38; +x_38 = 0; +return x_38; } else { -uint8_t x_35; -x_35 = l_Std_Tactic_BVDecide_BVExpr_decEq(x_1, x_27, x_30); -if (x_35 == 0) +uint8_t x_39; +x_39 = l_Std_Tactic_BVDecide_BVExpr_decEq(x_1, x_31, x_34); +if (x_39 == 0) { -uint8_t x_36; -x_36 = 0; -return x_36; +uint8_t x_40; +x_40 = 0; +return x_40; } else { -x_2 = x_29; -x_3 = x_32; +x_2 = x_33; +x_3 = x_36; goto _start; } } } else { -uint8_t x_38; -x_38 = 0; -return x_38; +uint8_t x_42; +x_42 = 0; +return x_42; } } case 4: { if (lean_obj_tag(x_3) == 4) { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_39 = lean_ctor_get(x_2, 1); -x_40 = lean_ctor_get(x_2, 2); -x_41 = lean_ctor_get(x_3, 1); -x_42 = lean_ctor_get(x_3, 2); -x_43 = l___private_Std_Tactic_BVDecide_Bitblast_BVExpr_Basic_0__Std_Tactic_BVDecide_decEqBVUnOp____x40_Std_Tactic_BVDecide_Bitblast_BVExpr_Basic___hyg_1156_(x_39, x_41); -if (x_43 == 0) +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; +x_43 = lean_ctor_get(x_2, 1); +x_44 = lean_ctor_get(x_2, 2); +x_45 = lean_ctor_get(x_3, 1); +x_46 = lean_ctor_get(x_3, 2); +x_47 = l___private_Std_Tactic_BVDecide_Bitblast_BVExpr_Basic_0__Std_Tactic_BVDecide_decEqBVUnOp____x40_Std_Tactic_BVDecide_Bitblast_BVExpr_Basic___hyg_1156_(x_43, x_45); +if (x_47 == 0) { -uint8_t x_44; -x_44 = 0; -return x_44; +uint8_t x_48; +x_48 = 0; +return x_48; } else { -x_2 = x_40; -x_3 = x_42; +x_2 = x_44; +x_3 = x_46; goto _start; } } else { -uint8_t x_46; -x_46 = 0; -return x_46; +uint8_t x_50; +x_50 = 0; +return x_50; } } case 5: { if (lean_obj_tag(x_3) == 5) { -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; -x_47 = lean_ctor_get(x_2, 0); -x_48 = lean_ctor_get(x_2, 1); -x_49 = lean_ctor_get(x_2, 3); -x_50 = lean_ctor_get(x_2, 4); -x_51 = lean_ctor_get(x_3, 0); -x_52 = lean_ctor_get(x_3, 1); -x_53 = lean_ctor_get(x_3, 3); -x_54 = lean_ctor_get(x_3, 4); -x_55 = lean_nat_dec_eq(x_47, x_51); -if (x_55 == 0) -{ -uint8_t x_56; -x_56 = 0; -return x_56; -} -else -{ -uint8_t x_57; -x_57 = lean_nat_dec_eq(x_48, x_52); -if (x_57 == 0) -{ -uint8_t x_58; -x_58 = 0; -return x_58; -} -else -{ -uint8_t x_59; -x_59 = l_Std_Tactic_BVDecide_BVExpr_decEq(x_51, x_49, x_53); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_51 = lean_ctor_get(x_2, 0); +x_52 = lean_ctor_get(x_2, 1); +x_53 = lean_ctor_get(x_2, 3); +x_54 = lean_ctor_get(x_2, 4); +x_55 = lean_ctor_get(x_3, 0); +x_56 = lean_ctor_get(x_3, 1); +x_57 = lean_ctor_get(x_3, 3); +x_58 = lean_ctor_get(x_3, 4); +x_59 = lean_nat_dec_eq(x_51, x_55); if (x_59 == 0) { uint8_t x_60; @@ -2264,9 +2253,29 @@ return x_60; } else { -x_1 = x_52; -x_2 = x_50; -x_3 = x_54; +uint8_t x_61; +x_61 = lean_nat_dec_eq(x_52, x_56); +if (x_61 == 0) +{ +uint8_t x_62; +x_62 = 0; +return x_62; +} +else +{ +uint8_t x_63; +x_63 = l_Std_Tactic_BVDecide_BVExpr_decEq(x_55, x_53, x_57); +if (x_63 == 0) +{ +uint8_t x_64; +x_64 = 0; +return x_64; +} +else +{ +x_1 = x_56; +x_2 = x_54; +x_3 = x_58; goto _start; } } @@ -2274,194 +2283,201 @@ goto _start; } else { -uint8_t x_62; -x_62 = 0; -return x_62; +uint8_t x_66; +x_66 = 0; +return x_66; } } case 6: { if (lean_obj_tag(x_3) == 6) { -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; -x_63 = lean_ctor_get(x_2, 0); -x_64 = lean_ctor_get(x_2, 2); -x_65 = lean_ctor_get(x_2, 3); -x_66 = lean_ctor_get(x_3, 0); -x_67 = lean_ctor_get(x_3, 2); -x_68 = lean_ctor_get(x_3, 3); -x_69 = lean_nat_dec_eq(x_64, x_67); -if (x_69 == 0) +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; +x_67 = lean_ctor_get(x_2, 0); +x_68 = lean_ctor_get(x_2, 2); +x_69 = lean_ctor_get(x_2, 3); +x_70 = lean_ctor_get(x_3, 0); +x_71 = lean_ctor_get(x_3, 2); +x_72 = lean_ctor_get(x_3, 3); +x_73 = lean_nat_dec_eq(x_68, x_71); +if (x_73 == 0) { -uint8_t x_70; -x_70 = 0; -return x_70; +uint8_t x_74; +x_74 = 0; +return x_74; } else { -uint8_t x_71; -x_71 = lean_nat_dec_eq(x_63, x_66); -if (x_71 == 0) +uint8_t x_75; +x_75 = lean_nat_dec_eq(x_67, x_70); +if (x_75 == 0) { -uint8_t x_72; -x_72 = 0; -return x_72; +uint8_t x_76; +x_76 = 0; +return x_76; } else { -x_1 = x_66; -x_2 = x_65; -x_3 = x_68; +x_1 = x_70; +x_2 = x_69; +x_3 = x_72; goto _start; } } } else { -uint8_t x_74; -x_74 = 0; -return x_74; +uint8_t x_78; +x_78 = 0; +return x_78; } } case 7: { if (lean_obj_tag(x_3) == 7) { -lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; -x_75 = lean_ctor_get(x_2, 1); -x_76 = lean_ctor_get(x_2, 2); -x_77 = lean_ctor_get(x_2, 3); -x_78 = lean_ctor_get(x_3, 1); -x_79 = lean_ctor_get(x_3, 2); -x_80 = lean_ctor_get(x_3, 3); -x_81 = lean_nat_dec_eq(x_75, x_78); -if (x_81 == 0) +lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; uint8_t x_85; +x_79 = lean_ctor_get(x_2, 1); +x_80 = lean_ctor_get(x_2, 2); +x_81 = lean_ctor_get(x_2, 3); +x_82 = lean_ctor_get(x_3, 1); +x_83 = lean_ctor_get(x_3, 2); +x_84 = lean_ctor_get(x_3, 3); +x_85 = lean_nat_dec_eq(x_79, x_82); +if (x_85 == 0) { -uint8_t x_82; -x_82 = 0; -return x_82; +uint8_t x_86; +x_86 = 0; +return x_86; } else { -uint8_t x_83; -x_83 = l_Std_Tactic_BVDecide_BVExpr_decEq(x_1, x_76, x_79); -if (x_83 == 0) +uint8_t x_87; +x_87 = l_Std_Tactic_BVDecide_BVExpr_decEq(x_1, x_80, x_83); +if (x_87 == 0) { -uint8_t x_84; -x_84 = 0; -return x_84; +uint8_t x_88; +x_88 = 0; +return x_88; } else { -x_1 = x_78; -x_2 = x_77; -x_3 = x_80; +x_1 = x_82; +x_2 = x_81; +x_3 = x_84; goto _start; } } } else { -uint8_t x_86; -x_86 = 0; -return x_86; +uint8_t x_90; +x_90 = 0; +return x_90; } } case 8: { if (lean_obj_tag(x_3) == 8) { -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; uint8_t x_93; -x_87 = lean_ctor_get(x_2, 1); -x_88 = lean_ctor_get(x_2, 2); -x_89 = lean_ctor_get(x_2, 3); -x_90 = lean_ctor_get(x_3, 1); -x_91 = lean_ctor_get(x_3, 2); -x_92 = lean_ctor_get(x_3, 3); -x_93 = lean_nat_dec_eq(x_87, x_90); -if (x_93 == 0) +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; +x_91 = lean_ctor_get(x_2, 1); +x_92 = lean_ctor_get(x_2, 2); +x_93 = lean_ctor_get(x_2, 3); +x_94 = lean_ctor_get(x_3, 1); +x_95 = lean_ctor_get(x_3, 2); +x_96 = lean_ctor_get(x_3, 3); +x_97 = lean_nat_dec_eq(x_91, x_94); +if (x_97 == 0) { -uint8_t x_94; -x_94 = 0; -return x_94; +uint8_t x_98; +x_98 = 0; +return x_98; } else { -uint8_t x_95; -x_95 = l_Std_Tactic_BVDecide_BVExpr_decEq(x_1, x_88, x_91); -if (x_95 == 0) +uint8_t x_99; +x_99 = l_Std_Tactic_BVDecide_BVExpr_decEq(x_1, x_92, x_95); +if (x_99 == 0) { -uint8_t x_96; -x_96 = 0; -return x_96; +uint8_t x_100; +x_100 = 0; +return x_100; } else { -x_1 = x_90; -x_2 = x_89; -x_3 = x_92; +x_1 = x_94; +x_2 = x_93; +x_3 = x_96; goto _start; } } } else { -uint8_t x_98; -x_98 = 0; -return x_98; +uint8_t x_102; +x_102 = 0; +return x_102; } } default: { if (lean_obj_tag(x_3) == 9) { -lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; -x_99 = lean_ctor_get(x_2, 1); -x_100 = lean_ctor_get(x_2, 2); -x_101 = lean_ctor_get(x_2, 3); -x_102 = lean_ctor_get(x_3, 1); -x_103 = lean_ctor_get(x_3, 2); -x_104 = lean_ctor_get(x_3, 3); -x_105 = lean_nat_dec_eq(x_99, x_102); -if (x_105 == 0) +lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; +x_103 = lean_ctor_get(x_2, 1); +x_104 = lean_ctor_get(x_2, 2); +x_105 = lean_ctor_get(x_2, 3); +x_106 = lean_ctor_get(x_3, 1); +x_107 = lean_ctor_get(x_3, 2); +x_108 = lean_ctor_get(x_3, 3); +x_109 = lean_nat_dec_eq(x_103, x_106); +if (x_109 == 0) { -uint8_t x_106; -x_106 = 0; -return x_106; +uint8_t x_110; +x_110 = 0; +return x_110; } else { -uint8_t x_107; -x_107 = l_Std_Tactic_BVDecide_BVExpr_decEq(x_1, x_100, x_103); -if (x_107 == 0) +uint8_t x_111; +x_111 = l_Std_Tactic_BVDecide_BVExpr_decEq(x_1, x_104, x_107); +if (x_111 == 0) { -uint8_t x_108; -x_108 = 0; -return x_108; +uint8_t x_112; +x_112 = 0; +return x_112; } else { -x_1 = x_102; -x_2 = x_101; -x_3 = x_104; +x_1 = x_106; +x_2 = x_105; +x_3 = x_108; goto _start; } } } else { -uint8_t x_110; -x_110 = 0; -return x_110; +uint8_t x_114; +x_114 = 0; +return x_114; } } } } else { -uint8_t x_111; -x_111 = 1; -return x_111; +uint8_t x_115; +x_115 = 0; +return x_115; +} +} +else +{ +uint8_t x_116; +x_116 = 1; +return x_116; } } }