From 07c880f7ff1b3490e4de60e561dbe21fa7a833dc Mon Sep 17 00:00:00 2001 From: Lean stage0 autoupdater <> Date: Thu, 6 Feb 2025 12:27:11 +0000 Subject: [PATCH] chore: update stage0 --- stage0/src/stdlib_flags.h | 2 - stage0/stdlib/Init.c | 6 +- stage0/stdlib/Init/BinderNameHint.c | 71 + stage0/stdlib/Init/Tactics.c | 82 +- .../Lean/Elab/PreDefinition/WF/AutoAttach.c | 10 +- .../Lean/Elab/Tactic/BVDecide/Frontend/Attr.c | 5 +- .../Elab/Tactic/BVDecide/Frontend/BVDecide.c | 2 +- .../Elab/Tactic/BVDecide/Frontend/BVTrace.c | 956 +- .../Lean/Elab/Tactic/BVDecide/Frontend/LRAT.c | 56 +- .../Elab/Tactic/BVDecide/Frontend/Normalize.c | 910 +- .../BVDecide/Frontend/Normalize/Basic.c | 3774 ++++++-- .../BVDecide/Frontend/Normalize/Rewrite.c | 539 +- .../BVDecide/Frontend/Normalize/Structures.c | 6701 ++------------ .../Frontend/Normalize/TypeAnalysis.c | 6766 ++++++++++++++ stage0/stdlib/Lean/Meta.c | 6 +- stage0/stdlib/Lean/Meta/BinderNameHint.c | 7982 +++++++++++++++++ stage0/stdlib/Lean/Meta/Tactic/Rewrite.c | 4334 ++++----- stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c | 1109 +-- 18 files changed, 23418 insertions(+), 9893 deletions(-) create mode 100644 stage0/stdlib/Init/BinderNameHint.c create mode 100644 stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/TypeAnalysis.c create mode 100644 stage0/stdlib/Lean/Meta/BinderNameHint.c diff --git a/stage0/src/stdlib_flags.h b/stage0/src/stdlib_flags.h index 51489f0e3c..b647d85f37 100644 --- a/stage0/src/stdlib_flags.h +++ b/stage0/src/stdlib_flags.h @@ -1,7 +1,5 @@ #include "util/options.h" -// please update stage0 - namespace lean { options get_default_options() { options opts; diff --git a/stage0/stdlib/Init.c b/stage0/stdlib/Init.c index e72f8a32a4..c9dce53732 100644 --- a/stage0/stdlib/Init.c +++ b/stage0/stdlib/Init.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Init -// Imports: Init.Prelude Init.Notation Init.Tactics Init.TacticsExtra Init.ByCases Init.RCases Init.Core Init.Control Init.Data.Basic Init.WF Init.WFTactics Init.Data Init.System Init.Util Init.Dynamic Init.ShareCommon Init.MetaTypes Init.Meta Init.NotationExtra Init.SimpLemmas Init.PropLemmas Init.Hints Init.Conv Init.Guard Init.Simproc Init.SizeOfLemmas Init.BinderPredicates Init.Ext Init.Omega Init.MacroTrace Init.Grind Init.While Init.Syntax Init.Internal Init.Try +// Imports: Init.Prelude Init.Notation Init.Tactics Init.TacticsExtra Init.ByCases Init.RCases Init.Core Init.Control Init.Data.Basic Init.WF Init.WFTactics Init.Data Init.System Init.Util Init.Dynamic Init.ShareCommon Init.MetaTypes Init.Meta Init.NotationExtra Init.SimpLemmas Init.PropLemmas Init.Hints Init.Conv Init.Guard Init.Simproc Init.SizeOfLemmas Init.BinderPredicates Init.Ext Init.Omega Init.MacroTrace Init.Grind Init.While Init.Syntax Init.Internal Init.Try Init.BinderNameHint #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -48,6 +48,7 @@ lean_object* initialize_Init_While(uint8_t builtin, lean_object*); lean_object* initialize_Init_Syntax(uint8_t builtin, lean_object*); lean_object* initialize_Init_Internal(uint8_t builtin, lean_object*); lean_object* initialize_Init_Try(uint8_t builtin, lean_object*); +lean_object* initialize_Init_BinderNameHint(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Init(uint8_t builtin, lean_object* w) { lean_object * res; @@ -158,6 +159,9 @@ lean_dec_ref(res); res = initialize_Init_Try(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Init_BinderNameHint(builtin, 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/Init/BinderNameHint.c b/stage0/stdlib/Init/BinderNameHint.c new file mode 100644 index 0000000000..299f7580e8 --- /dev/null +++ b/stage0/stdlib/Init/BinderNameHint.c @@ -0,0 +1,71 @@ +// Lean compiler output +// Module: Init.BinderNameHint +// Imports: Init.Prelude Init.Tactics +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +LEAN_EXPORT lean_object* l_binderNameHint___rarg(lean_object*); +LEAN_EXPORT lean_object* l_binderNameHint___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_binderNameHint___rarg___boxed(lean_object*); +LEAN_EXPORT lean_object* l_binderNameHint(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_binderNameHint___rarg(lean_object* x_1) { +_start: +{ +lean_inc(x_1); +return x_1; +} +} +LEAN_EXPORT lean_object* l_binderNameHint(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_alloc_closure((void*)(l_binderNameHint___rarg___boxed), 1, 0); +return x_6; +} +} +LEAN_EXPORT lean_object* l_binderNameHint___rarg___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_binderNameHint___rarg(x_1); +lean_dec(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_binderNameHint___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_binderNameHint(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_5); +lean_dec(x_4); +return x_6; +} +} +lean_object* initialize_Init_Prelude(uint8_t builtin, lean_object*); +lean_object* initialize_Init_Tactics(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Init_BinderNameHint(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Init_Prelude(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_Tactics(builtin, 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 +} +#endif diff --git a/stage0/stdlib/Init/Tactics.c b/stage0/stdlib/Init/Tactics.c index 3cf4315a6c..cfb592be24 100644 --- a/stage0/stdlib/Init/Tactics.c +++ b/stage0/stdlib/Init/Tactics.c @@ -19,6 +19,7 @@ static lean_object* l_Lean_Parser_Tactic_posConfigItem___closed__8; static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__4; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_fail; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__4; +static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__4; static lean_object* l_Lean_Parser_Tactic_constructor___closed__4; static lean_object* l_Lean_Parser_Tactic_injections___closed__3; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticShow__; @@ -142,6 +143,7 @@ static lean_object* l_Lean_Parser_Tactic_generalizeArg___closed__9; static lean_object* l_Lean_Parser_Tactic_tacticUnhygienic_____closed__4; static lean_object* l_Lean_Parser_Tactic_simp___closed__11; static lean_object* l_Lean_Parser_Tactic_right___closed__2; +static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__3; static lean_object* l_Lean_Parser_Tactic_tacticAdmit___closed__5; static lean_object* l_Lean_Parser_Tactic_rwRuleSeq___closed__2; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticRfl__2___boxed(lean_object*, lean_object*, lean_object*); @@ -181,7 +183,6 @@ static lean_object* l_Lean_Parser_Tactic_applyRules___closed__1; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticDsimp_x3f_x21____1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_case___closed__5; static lean_object* l_Lean_Parser_Tactic_configItem___closed__5; -static lean_object* l_Lean_Parser_Attr_auto__attach___closed__5; static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__32; static lean_object* l_Lean_Parser_Tactic_apply___closed__5; static lean_object* l_Lean_Parser_Tactic_anyGoals___closed__5; @@ -600,7 +601,6 @@ static lean_object* l_Lean_Parser_Tactic_case_x27___closed__3; static lean_object* l_Lean_Parser_Tactic_replace___closed__2; static lean_object* l_Lean_Parser_Tactic_negConfigItem___closed__6; static lean_object* l_Lean_Parser_Tactic_tacticAnd__intros___closed__3; -static lean_object* l_Lean_Parser_Attr_auto__attach___closed__6; static lean_object* l_Lean_Parser_Tactic_tacticAssumption__mod__cast_____closed__3; static lean_object* l_Lean_Parser_Tactic_renameI___closed__7; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_generalizeArg; @@ -853,6 +853,7 @@ static lean_object* l_Lean_Parser_Tactic_split___closed__7; static lean_object* l_Lean_Parser_Tactic_rotateLeft___closed__11; LEAN_EXPORT lean_object* l_term_u2039___u203a; static lean_object* l_Lean_Parser_Tactic_repeat_x27___closed__2; +static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__5; static lean_object* l_Lean_Parser_Tactic_skip___closed__1; static lean_object* l_Lean_Parser_Tactic_inductionAlts___closed__3; static lean_object* l_Lean_Parser_Tactic_discharger___closed__5; @@ -904,6 +905,7 @@ static lean_object* l_Lean_Parser_Tactic_skip___closed__3; static lean_object* l_Lean_Parser_Tactic_pushCast___closed__4; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticTrivial__4(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_tacDepIfThenElse___closed__27; +static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__6; static lean_object* l_Lean_Parser_Tactic_tactic___x3c_x3b_x3e_____closed__1; static lean_object* l_Lean_Parser_Tactic_inductionAltLHS___closed__7; static lean_object* l_Lean_Parser_Tactic_nativeDecide___closed__2; @@ -1105,7 +1107,6 @@ static lean_object* l_Lean_Parser_Tactic_simp___closed__5; static lean_object* l_Lean_Parser_Tactic_tacticSimp__all_x3f_x21_____closed__2; static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tactic___x3c_x3b_x3e____1___closed__2; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticTry__; -static lean_object* l_Lean_Parser_Attr_auto__attach___closed__7; static lean_object* l_Lean_Parser_Tactic_acRfl___closed__4; static lean_object* l_Lean_Parser_Tactic_tacticSimp_x3f_x21_____closed__5; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_simpPre; @@ -1116,7 +1117,6 @@ static lean_object* l_Lean_Parser_Tactic_exposeNames___closed__1; static lean_object* l_Lean_Parser_Tactic_apply_x3f___closed__1; static lean_object* l_Lean_Parser_Tactic_normCastAddElim___closed__1; static lean_object* l_Lean_Parser_Tactic_rotateRight___closed__4; -static lean_object* l_Lean_Parser_Attr_auto__attach___closed__3; static lean_object* l_Lean_Parser_Tactic_traceState___closed__5; static lean_object* l_Lean_Parser_Tactic_simp___closed__1; static lean_object* l_Lean_Parser_Tactic_location___closed__7; @@ -1228,6 +1228,7 @@ static lean_object* l_Lean_Parser_Tactic_normCast0___closed__2; static lean_object* l_Lean_Parser_Tactic_tacticRfl_x27___closed__5; static lean_object* l_Lean_Parser_Tactic_tacticRefine__lift_____closed__5; static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticHave_x27____1___closed__1; +static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__2; static lean_object* l_Lean_Parser_Tactic_intros___closed__12; static lean_object* l_Lean_Parser_Tactic_symmSaturate___closed__5; static lean_object* l_Lean_Parser_Tactic_tacticBv__omega___closed__4; @@ -1264,7 +1265,6 @@ static lean_object* l_Lean_Parser_Tactic_dsimpTraceArgsRest___closed__4; static lean_object* l_Lean_Parser_Tactic_simpAllTrace___closed__3; static lean_object* l_Lean_Parser_Tactic_negConfigItem___closed__3; static lean_object* l_Lean_Parser_Tactic_induction___closed__1; -LEAN_EXPORT lean_object* l_Lean_Parser_Attr_auto__attach; static lean_object* l_Lean_Parser_Tactic_letrec___closed__1; static lean_object* l_Lean_Parser_Tactic_discharger___closed__6; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tacticNorm__cast____; @@ -1286,7 +1286,6 @@ static lean_object* l_Lean_Parser_Tactic_traceMessage___closed__3; static lean_object* l_Lean_Parser_Tactic_symmSaturate___closed__2; static lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticLet____1___closed__2; static lean_object* l_Lean_Parser_Tactic_SolveByElim_erase___closed__2; -static lean_object* l_Lean_Parser_Attr_auto__attach___closed__1; static lean_object* l_Lean_Parser_Tactic_fail___closed__5; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_tactic___x3c_x3b_x3e__; static lean_object* l_Lean_Parser_Tactic_intro___closed__19; @@ -1395,7 +1394,6 @@ static lean_object* l_Lean_Parser_Tactic_acNf0___closed__2; static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__3; static lean_object* l_Lean_Parser_Tactic_tacticLetI_____closed__5; static lean_object* l_Lean_Parser_Tactic_tacticTry_____closed__6; -static lean_object* l_Lean_Parser_Attr_auto__attach___closed__4; static lean_object* l_Lean_Parser_Tactic_falseOrByContra___closed__2; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_symmSaturate; static lean_object* l_Lean_Parser_Tactic_paren___closed__4; @@ -1525,6 +1523,7 @@ static lean_object* l_Lean_Parser_Tactic_rwRule___closed__2; static lean_object* l_Lean_Parser_Tactic_subst___closed__1; static lean_object* l_Lean_Parser_Tactic_first___closed__12; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticLet_x27____1___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__7; static lean_object* l_Lean_Parser_Tactic_first___closed__20; static lean_object* l_Lean_Parser_Tactic_tacticStop_____closed__7; static lean_object* l_Lean_Parser_Tactic_tacticRfl___closed__3; @@ -1611,6 +1610,7 @@ static lean_object* l_Lean_Parser_Tactic_case___closed__10; lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Parser_Tactic_repeat1_x27___closed__6; static lean_object* l___aux__Init__Tactics______macroRules__tacticGet__elem__tactic__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Parser_Attr_wf__preprocess; static lean_object* l_Lean_Parser_Tactic_rotateLeft___closed__13; static lean_object* l_Lean_Parser_Tactic_intro___closed__8; static lean_object* l_Lean_Parser_Tactic_letrec___closed__4; @@ -1714,7 +1714,6 @@ static lean_object* l_Lean_Parser_Tactic_showTerm___closed__1; static lean_object* l_Lean_Parser_Tactic_case___closed__11; static lean_object* l_Lean_Parser_Tactic_tacticSorry___closed__1; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic___aux__Init__Tactics______macroRules__Lean__Parser__Tactic__tacticRefine__lift_x27____1(lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Parser_Attr_auto__attach___closed__2; static lean_object* l_Lean_Parser_Tactic_tacticSimp__all_x3f_x21_____closed__6; LEAN_EXPORT lean_object* l_Lean_Parser_Tactic_traceMessage; static lean_object* l_Lean_Parser_Tactic_simp___closed__8; @@ -1764,6 +1763,7 @@ static lean_object* l_Lean_Parser_Tactic_rewrites_x3f___closed__3; static lean_object* l_Lean_Parser_Tactic_valConfigItem___closed__11; static lean_object* l_Lean_Parser_Tactic_assumption___closed__1; static lean_object* l_Lean_Parser_Tactic_inductionAlt___closed__5; +static lean_object* l_Lean_Parser_Attr_wf__preprocess___closed__1; static lean_object* l_Lean_Parser_Tactic_location___closed__9; static lean_object* l_Lean_Parser_Tactic_first___closed__19; static lean_object* l_Lean_Parser_Tactic_change___closed__6; @@ -24349,31 +24349,31 @@ x_1 = l_Lean_Parser_Attr_simp___closed__11; return x_1; } } -static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__1() { +static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__1() { _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("auto_attach", 11, 11); +x_1 = lean_mk_string_unchecked("wf_preprocess", 13, 13); return x_1; } } -static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__2() { +static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; x_1 = l_Lean_Parser_Tactic_as__aux__lemma___closed__1; x_2 = l_Lean_Parser_Tactic_as__aux__lemma___closed__2; x_3 = l_Lean_Parser_Attr_simp___closed__1; -x_4 = l_Lean_Parser_Attr_auto__attach___closed__1; +x_4 = l_Lean_Parser_Attr_wf__preprocess___closed__1; x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); return x_5; } } -static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__3() { +static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__3() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l_Lean_Parser_Attr_auto__attach___closed__1; +x_1 = l_Lean_Parser_Attr_wf__preprocess___closed__1; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -24381,12 +24381,12 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__4() { +static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_as__aux__lemma___closed__7; -x_2 = l_Lean_Parser_Attr_auto__attach___closed__3; +x_2 = l_Lean_Parser_Attr_wf__preprocess___closed__3; x_3 = l_Lean_Parser_Tactic_simpLemma___closed__4; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -24395,12 +24395,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__5() { +static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_as__aux__lemma___closed__7; -x_2 = l_Lean_Parser_Attr_auto__attach___closed__4; +x_2 = l_Lean_Parser_Attr_wf__preprocess___closed__4; x_3 = l_Lean_Parser_Tactic_rwRule___closed__13; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -24409,12 +24409,12 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__6() { +static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Parser_Tactic_as__aux__lemma___closed__7; -x_2 = l_Lean_Parser_Attr_auto__attach___closed__5; +x_2 = l_Lean_Parser_Attr_wf__preprocess___closed__5; x_3 = l_Lean_Parser_Attr_simp___closed__9; x_4 = lean_alloc_ctor(2, 3, 0); lean_ctor_set(x_4, 0, x_1); @@ -24423,13 +24423,13 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_auto__attach___closed__7() { +static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess___closed__7() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Parser_Attr_auto__attach___closed__2; +x_1 = l_Lean_Parser_Attr_wf__preprocess___closed__2; x_2 = lean_unsigned_to_nat(1022u); -x_3 = l_Lean_Parser_Attr_auto__attach___closed__6; +x_3 = l_Lean_Parser_Attr_wf__preprocess___closed__6; x_4 = lean_alloc_ctor(3, 3, 0); lean_ctor_set(x_4, 0, x_1); lean_ctor_set(x_4, 1, x_2); @@ -24437,11 +24437,11 @@ lean_ctor_set(x_4, 2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Parser_Attr_auto__attach() { +static lean_object* _init_l_Lean_Parser_Attr_wf__preprocess() { _start: { lean_object* x_1; -x_1 = l_Lean_Parser_Attr_auto__attach___closed__7; +x_1 = l_Lean_Parser_Attr_wf__preprocess___closed__7; return x_1; } } @@ -28713,22 +28713,22 @@ l_Lean_Parser_Attr_simp___closed__11 = _init_l_Lean_Parser_Attr_simp___closed__1 lean_mark_persistent(l_Lean_Parser_Attr_simp___closed__11); l_Lean_Parser_Attr_simp = _init_l_Lean_Parser_Attr_simp(); lean_mark_persistent(l_Lean_Parser_Attr_simp); -l_Lean_Parser_Attr_auto__attach___closed__1 = _init_l_Lean_Parser_Attr_auto__attach___closed__1(); -lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__1); -l_Lean_Parser_Attr_auto__attach___closed__2 = _init_l_Lean_Parser_Attr_auto__attach___closed__2(); -lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__2); -l_Lean_Parser_Attr_auto__attach___closed__3 = _init_l_Lean_Parser_Attr_auto__attach___closed__3(); -lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__3); -l_Lean_Parser_Attr_auto__attach___closed__4 = _init_l_Lean_Parser_Attr_auto__attach___closed__4(); -lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__4); -l_Lean_Parser_Attr_auto__attach___closed__5 = _init_l_Lean_Parser_Attr_auto__attach___closed__5(); -lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__5); -l_Lean_Parser_Attr_auto__attach___closed__6 = _init_l_Lean_Parser_Attr_auto__attach___closed__6(); -lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__6); -l_Lean_Parser_Attr_auto__attach___closed__7 = _init_l_Lean_Parser_Attr_auto__attach___closed__7(); -lean_mark_persistent(l_Lean_Parser_Attr_auto__attach___closed__7); -l_Lean_Parser_Attr_auto__attach = _init_l_Lean_Parser_Attr_auto__attach(); -lean_mark_persistent(l_Lean_Parser_Attr_auto__attach); +l_Lean_Parser_Attr_wf__preprocess___closed__1 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__1(); +lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__1); +l_Lean_Parser_Attr_wf__preprocess___closed__2 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__2(); +lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__2); +l_Lean_Parser_Attr_wf__preprocess___closed__3 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__3(); +lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__3); +l_Lean_Parser_Attr_wf__preprocess___closed__4 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__4(); +lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__4); +l_Lean_Parser_Attr_wf__preprocess___closed__5 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__5(); +lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__5); +l_Lean_Parser_Attr_wf__preprocess___closed__6 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__6(); +lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__6); +l_Lean_Parser_Attr_wf__preprocess___closed__7 = _init_l_Lean_Parser_Attr_wf__preprocess___closed__7(); +lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess___closed__7); +l_Lean_Parser_Attr_wf__preprocess = _init_l_Lean_Parser_Attr_wf__preprocess(); +lean_mark_persistent(l_Lean_Parser_Attr_wf__preprocess); l_Lean_Parser_Attr_normCastLabel___closed__1 = _init_l_Lean_Parser_Attr_normCastLabel___closed__1(); lean_mark_persistent(l_Lean_Parser_Attr_normCastLabel___closed__1); l_Lean_Parser_Attr_normCastLabel___closed__2 = _init_l_Lean_Parser_Attr_normCastLabel___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/PreDefinition/WF/AutoAttach.c b/stage0/stdlib/Lean/Elab/PreDefinition/WF/AutoAttach.c index 81ec538017..cbee9fe8e9 100644 --- a/stage0/stdlib/Lean/Elab/PreDefinition/WF/AutoAttach.c +++ b/stage0/stdlib/Lean/Elab/PreDefinition/WF/AutoAttach.c @@ -14,9 +14,9 @@ extern "C" { #endif static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_WF_wfPreprocessSimpExtension; static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__6; static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_WF_autoAttachSimpExtension; LEAN_EXPORT lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4_(lean_object*); static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__7; static lean_object* l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__4; @@ -30,7 +30,7 @@ static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_W _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("auto_attach", 11, 11); +x_1 = lean_mk_string_unchecked("wf_preprocess", 13, 13); return x_1; } } @@ -72,7 +72,7 @@ static lean_object* _init_l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_W _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked("autoAttachSimpExtension", 23, 23); +x_1 = lean_mk_string_unchecked("wfPreprocessSimpExtension", 25, 25); return x_1; } } @@ -142,8 +142,8 @@ l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____cl lean_mark_persistent(l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4____closed__8); if (builtin) {res = l_Lean_Elab_WF_initFn____x40_Lean_Elab_PreDefinition_WF_AutoAttach___hyg_4_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; -l_Lean_Elab_WF_autoAttachSimpExtension = lean_io_result_get_value(res); -lean_mark_persistent(l_Lean_Elab_WF_autoAttachSimpExtension); +l_Lean_Elab_WF_wfPreprocessSimpExtension = lean_io_result_get_value(res); +lean_mark_persistent(l_Lean_Elab_WF_wfPreprocessSimpExtension); lean_dec_ref(res); }return lean_io_result_mk_ok(lean_box(0)); } diff --git a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Attr.c b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Attr.c index 36969da568..adec39e0ab 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Attr.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Attr.c @@ -1039,7 +1039,7 @@ x_1 = lean_unsigned_to_nat(10u); x_2 = 1; x_3 = 0; x_4 = l_Lean_Meta_Simp_defaultMaxSteps; -x_5 = lean_alloc_ctor(0, 2, 8); +x_5 = lean_alloc_ctor(0, 2, 9); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_4); lean_ctor_set_uint8(x_5, sizeof(void*)*2, x_2); @@ -1049,7 +1049,8 @@ lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 3, x_2); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 4, x_2); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 5, x_2); lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 6, x_2); -lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_3); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 7, x_2); +lean_ctor_set_uint8(x_5, sizeof(void*)*2 + 8, x_3); return x_5; } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/BVDecide.c b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/BVDecide.c index 2a0990eda9..29fe7e3a8d 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/BVDecide.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/BVDecide.c @@ -15342,7 +15342,7 @@ _start: lean_object* x_14; uint8_t x_15; x_14 = lean_ctor_get(x_2, 5); lean_inc(x_14); -x_15 = lean_ctor_get_uint8(x_14, sizeof(void*)*2 + 7); +x_15 = lean_ctor_get_uint8(x_14, sizeof(void*)*2 + 8); lean_dec(x_14); if (x_15 == 0) { diff --git a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/BVTrace.c b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/BVTrace.c index 6d4d8a5faa..e18221575d 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/BVTrace.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/BVTrace.c @@ -1513,7 +1513,7 @@ return x_204; } else { -lean_object* x_205; uint8_t x_206; uint8_t x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; uint8_t x_212; lean_object* x_213; uint8_t x_214; lean_object* x_215; lean_object* x_216; +lean_object* x_205; uint8_t x_206; uint8_t x_207; uint8_t x_208; uint8_t x_209; uint8_t x_210; uint8_t x_211; uint8_t x_212; uint8_t x_213; lean_object* x_214; uint8_t x_215; lean_object* x_216; lean_object* x_217; x_205 = lean_ctor_get(x_22, 0); x_206 = lean_ctor_get_uint8(x_22, sizeof(void*)*2 + 1); x_207 = lean_ctor_get_uint8(x_22, sizeof(void*)*2 + 2); @@ -1522,57 +1522,59 @@ x_209 = lean_ctor_get_uint8(x_22, sizeof(void*)*2 + 4); x_210 = lean_ctor_get_uint8(x_22, sizeof(void*)*2 + 5); x_211 = lean_ctor_get_uint8(x_22, sizeof(void*)*2 + 6); x_212 = lean_ctor_get_uint8(x_22, sizeof(void*)*2 + 7); -x_213 = lean_ctor_get(x_22, 1); -lean_inc(x_213); +x_213 = lean_ctor_get_uint8(x_22, sizeof(void*)*2 + 8); +x_214 = lean_ctor_get(x_22, 1); +lean_inc(x_214); lean_inc(x_205); lean_dec(x_22); -x_214 = 0; -x_215 = lean_alloc_ctor(0, 2, 8); -lean_ctor_set(x_215, 0, x_205); -lean_ctor_set(x_215, 1, x_213); -lean_ctor_set_uint8(x_215, sizeof(void*)*2, x_214); -lean_ctor_set_uint8(x_215, sizeof(void*)*2 + 1, x_206); -lean_ctor_set_uint8(x_215, sizeof(void*)*2 + 2, x_207); -lean_ctor_set_uint8(x_215, sizeof(void*)*2 + 3, x_208); -lean_ctor_set_uint8(x_215, sizeof(void*)*2 + 4, x_209); -lean_ctor_set_uint8(x_215, sizeof(void*)*2 + 5, x_210); -lean_ctor_set_uint8(x_215, sizeof(void*)*2 + 6, x_211); -lean_ctor_set_uint8(x_215, sizeof(void*)*2 + 7, x_212); +x_215 = 0; +x_216 = lean_alloc_ctor(0, 2, 9); +lean_ctor_set(x_216, 0, x_205); +lean_ctor_set(x_216, 1, x_214); +lean_ctor_set_uint8(x_216, sizeof(void*)*2, x_215); +lean_ctor_set_uint8(x_216, sizeof(void*)*2 + 1, x_206); +lean_ctor_set_uint8(x_216, sizeof(void*)*2 + 2, x_207); +lean_ctor_set_uint8(x_216, sizeof(void*)*2 + 3, x_208); +lean_ctor_set_uint8(x_216, sizeof(void*)*2 + 4, x_209); +lean_ctor_set_uint8(x_216, sizeof(void*)*2 + 5, x_210); +lean_ctor_set_uint8(x_216, sizeof(void*)*2 + 6, x_211); +lean_ctor_set_uint8(x_216, sizeof(void*)*2 + 7, x_212); +lean_ctor_set_uint8(x_216, sizeof(void*)*2 + 8, x_213); lean_inc(x_8); lean_inc(x_4); -x_216 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_getLratFileName(x_4, x_5, x_6, x_7, x_8, x_9, x_23); -if (lean_obj_tag(x_216) == 0) +x_217 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_getLratFileName(x_4, x_5, x_6, x_7, x_8, x_9, x_23); +if (lean_obj_tag(x_217) == 0) { -lean_object* x_217; lean_object* x_218; lean_object* x_219; -x_217 = lean_ctor_get(x_216, 0); -lean_inc(x_217); -x_218 = lean_ctor_get(x_216, 1); +lean_object* x_218; lean_object* x_219; lean_object* x_220; +x_218 = lean_ctor_get(x_217, 0); lean_inc(x_218); -lean_dec(x_216); +x_219 = lean_ctor_get(x_217, 1); +lean_inc(x_219); +lean_dec(x_217); lean_inc(x_4); -x_219 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVCheck_mkContext(x_217, x_215, x_4, x_5, x_6, x_7, x_8, x_9, x_218); -if (lean_obj_tag(x_219) == 0) +x_220 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVCheck_mkContext(x_218, x_216, x_4, x_5, x_6, x_7, x_8, x_9, x_219); +if (lean_obj_tag(x_220) == 0) { -lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_219, 0); -lean_inc(x_220); -x_221 = lean_ctor_get(x_219, 1); +lean_object* x_221; lean_object* x_222; lean_object* x_223; +x_221 = lean_ctor_get(x_220, 0); lean_inc(x_221); -lean_dec(x_219); -x_222 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_221); -if (lean_obj_tag(x_222) == 0) +x_222 = lean_ctor_get(x_220, 1); +lean_inc(x_222); +lean_dec(x_220); +x_223 = l_Lean_Elab_Tactic_getMainGoal(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_222); +if (lean_obj_tag(x_223) == 0) { -lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; -x_223 = lean_ctor_get(x_222, 0); -lean_inc(x_223); -x_224 = lean_ctor_get(x_222, 1); +lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_224 = lean_ctor_get(x_223, 0); lean_inc(x_224); -lean_dec(x_222); -lean_inc(x_220); -lean_inc(x_223); -x_225 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___lambda__1___boxed), 11, 2); -lean_closure_set(x_225, 0, x_223); -lean_closure_set(x_225, 1, x_220); +x_225 = lean_ctor_get(x_223, 1); +lean_inc(x_225); +lean_dec(x_223); +lean_inc(x_221); +lean_inc(x_224); +x_226 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___lambda__1___boxed), 11, 2); +lean_closure_set(x_226, 0, x_224); +lean_closure_set(x_226, 1, x_221); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); @@ -1581,185 +1583,408 @@ lean_inc(x_5); lean_inc(x_4); lean_inc(x_3); lean_inc(x_2); -x_226 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_223, x_225, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_224); -if (lean_obj_tag(x_226) == 0) -{ -lean_object* x_227; -x_227 = lean_ctor_get(x_226, 0); -lean_inc(x_227); +x_227 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_withMainContext___spec__1___rarg(x_224, x_226, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_225); if (lean_obj_tag(x_227) == 0) { -lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; -lean_dec(x_220); -lean_dec(x_217); +lean_object* x_228; +x_228 = lean_ctor_get(x_227, 0); +lean_inc(x_228); +if (lean_obj_tag(x_228) == 0) +{ +lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; +lean_dec(x_221); +lean_dec(x_218); lean_dec(x_17); lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_228 = lean_ctor_get(x_226, 1); -lean_inc(x_228); -lean_dec(x_226); -x_229 = lean_ctor_get(x_8, 5); +x_229 = lean_ctor_get(x_227, 1); lean_inc(x_229); -x_230 = l_Lean_SourceInfo_fromRef(x_229, x_214); -x_231 = lean_st_ref_get(x_9, x_228); -x_232 = lean_ctor_get(x_231, 1); -lean_inc(x_232); -if (lean_is_exclusive(x_231)) { - lean_ctor_release(x_231, 0); - lean_ctor_release(x_231, 1); - x_233 = x_231; +lean_dec(x_227); +x_230 = lean_ctor_get(x_8, 5); +lean_inc(x_230); +x_231 = l_Lean_SourceInfo_fromRef(x_230, x_215); +x_232 = lean_st_ref_get(x_9, x_229); +x_233 = lean_ctor_get(x_232, 1); +lean_inc(x_233); +if (lean_is_exclusive(x_232)) { + lean_ctor_release(x_232, 0); + lean_ctor_release(x_232, 1); + x_234 = x_232; } else { - lean_dec_ref(x_231); - x_233 = lean_box(0); + lean_dec_ref(x_232); + x_234 = lean_box(0); } -x_234 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___closed__7; -lean_inc(x_230); -if (lean_is_scalar(x_233)) { - x_235 = lean_alloc_ctor(2, 2, 0); +x_235 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___closed__7; +lean_inc(x_231); +if (lean_is_scalar(x_234)) { + x_236 = lean_alloc_ctor(2, 2, 0); } else { - x_235 = x_233; - lean_ctor_set_tag(x_235, 2); + x_236 = x_234; + lean_ctor_set_tag(x_236, 2); } -lean_ctor_set(x_235, 0, x_230); -lean_ctor_set(x_235, 1, x_234); -x_236 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___closed__9; -x_237 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___closed__10; -lean_inc(x_230); -x_238 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_238, 0, x_230); -lean_ctor_set(x_238, 1, x_236); -lean_ctor_set(x_238, 2, x_237); -lean_inc(x_230); -x_239 = l_Lean_Syntax_node1(x_230, x_18, x_238); -x_240 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___closed__6; -x_241 = l_Lean_Syntax_node2(x_230, x_240, x_235, x_239); -x_242 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___lambda__2___closed__2; -x_243 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_243, 0, x_242); -lean_ctor_set(x_243, 1, x_241); -x_244 = lean_box(0); -x_245 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_245, 0, x_243); -lean_ctor_set(x_245, 1, x_244); -lean_ctor_set(x_245, 2, x_244); -lean_ctor_set(x_245, 3, x_244); -lean_ctor_set(x_245, 4, x_244); -lean_ctor_set(x_245, 5, x_244); -x_246 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_246, 0, x_229); -x_247 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___lambda__2___closed__9; -x_248 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_15, x_245, x_246, x_247, x_244, x_6, x_7, x_8, x_9, x_232); +lean_ctor_set(x_236, 0, x_231); +lean_ctor_set(x_236, 1, x_235); +x_237 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___closed__9; +x_238 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___closed__10; +lean_inc(x_231); +x_239 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_239, 0, x_231); +lean_ctor_set(x_239, 1, x_237); +lean_ctor_set(x_239, 2, x_238); +lean_inc(x_231); +x_240 = l_Lean_Syntax_node1(x_231, x_18, x_239); +x_241 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___closed__6; +x_242 = l_Lean_Syntax_node2(x_231, x_241, x_236, x_240); +x_243 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___lambda__2___closed__2; +x_244 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_242); +x_245 = lean_box(0); +x_246 = lean_alloc_ctor(0, 6, 0); +lean_ctor_set(x_246, 0, x_244); +lean_ctor_set(x_246, 1, x_245); +lean_ctor_set(x_246, 2, x_245); +lean_ctor_set(x_246, 3, x_245); +lean_ctor_set(x_246, 4, x_245); +lean_ctor_set(x_246, 5, x_245); +x_247 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_247, 0, x_230); +x_248 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___lambda__2___closed__9; +x_249 = l_Lean_Meta_Tactic_TryThis_addSuggestion(x_15, x_246, x_247, x_248, x_245, x_6, x_7, x_8, x_9, x_233); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_246); +lean_dec(x_247); lean_dec(x_15); -return x_248; +return x_249; } else { -lean_object* x_249; lean_object* x_250; uint8_t x_251; +lean_object* x_250; lean_object* x_251; uint8_t x_252; +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + x_250 = x_228; +} else { + lean_dec_ref(x_228); + x_250 = lean_box(0); +} +x_251 = lean_ctor_get(x_221, 5); +lean_inc(x_251); +lean_dec(x_221); +x_252 = lean_ctor_get_uint8(x_251, sizeof(void*)*2); +lean_dec(x_251); +if (x_252 == 0) +{ +lean_object* x_253; lean_object* x_254; lean_object* x_255; +lean_dec(x_250); +x_253 = lean_ctor_get(x_227, 1); +lean_inc(x_253); +lean_dec(x_227); +x_254 = lean_box(0); +x_255 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___lambda__2(x_218, x_17, x_15, x_254, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_253); +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_15); +lean_dec(x_218); +return x_255; +} +else +{ +lean_object* x_256; lean_object* x_257; +x_256 = lean_ctor_get(x_227, 1); +lean_inc(x_256); +lean_dec(x_227); +lean_inc(x_4); +x_257 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVCheck_getSrcDir(x_4, x_5, x_6, x_7, x_8, x_9, x_256); +if (lean_obj_tag(x_257) == 0) +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; +x_258 = lean_ctor_get(x_257, 0); +lean_inc(x_258); +x_259 = lean_ctor_get(x_257, 1); +lean_inc(x_259); +lean_dec(x_257); +x_260 = l_System_FilePath_join(x_258, x_218); +x_261 = lean_ctor_get(x_8, 5); +lean_inc(x_261); +x_262 = l_Std_Tactic_BVDecide_LRAT_loadLRATProof(x_260, x_259); +if (lean_obj_tag(x_262) == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; +x_263 = lean_ctor_get(x_262, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_262, 1); +lean_inc(x_264); +lean_dec(x_262); +x_265 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___closed__11; +x_266 = l_Lean_Elab_Tactic_BVDecide_LRAT_trim_M_run___rarg(x_263, x_265); +lean_dec(x_263); +x_267 = l_IO_ofExcept___at_Lean_Elab_Tactic_BVDecide_Frontend_LratCert_load___spec__4(x_266, x_264); +if (lean_obj_tag(x_267) == 0) +{ +lean_object* x_268; lean_object* x_269; lean_object* x_270; +x_268 = lean_ctor_get(x_267, 0); +lean_inc(x_268); +x_269 = lean_ctor_get(x_267, 1); +lean_inc(x_269); +lean_dec(x_267); +x_270 = l_Std_Tactic_BVDecide_LRAT_dumpLRATProof(x_260, x_268, x_206, x_269); +lean_dec(x_268); +lean_dec(x_260); +if (lean_obj_tag(x_270) == 0) +{ +lean_object* x_271; lean_object* x_272; lean_object* x_273; +lean_dec(x_261); +lean_dec(x_250); +x_271 = lean_ctor_get(x_270, 0); +lean_inc(x_271); +x_272 = lean_ctor_get(x_270, 1); +lean_inc(x_272); +lean_dec(x_270); +x_273 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___lambda__2(x_218, x_17, x_15, x_271, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_272); +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_271); +lean_dec(x_15); +lean_dec(x_218); +return x_273; +} +else +{ +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_dec(x_218); +lean_dec(x_17); +lean_dec(x_15); +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_274 = lean_ctor_get(x_270, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_270, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_270)) { + lean_ctor_release(x_270, 0); + lean_ctor_release(x_270, 1); + x_276 = x_270; +} else { + lean_dec_ref(x_270); + x_276 = lean_box(0); +} +x_277 = lean_io_error_to_string(x_274); +if (lean_is_scalar(x_250)) { + x_278 = lean_alloc_ctor(3, 1, 0); +} else { + x_278 = x_250; + lean_ctor_set_tag(x_278, 3); +} +lean_ctor_set(x_278, 0, x_277); +x_279 = l_Lean_MessageData_ofFormat(x_278); +x_280 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_280, 0, x_261); +lean_ctor_set(x_280, 1, x_279); +if (lean_is_scalar(x_276)) { + x_281 = lean_alloc_ctor(1, 2, 0); +} else { + x_281 = x_276; +} +lean_ctor_set(x_281, 0, x_280); +lean_ctor_set(x_281, 1, x_275); +return x_281; +} +} +else +{ +lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; +lean_dec(x_260); +lean_dec(x_218); +lean_dec(x_17); +lean_dec(x_15); +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_282 = lean_ctor_get(x_267, 0); +lean_inc(x_282); +x_283 = lean_ctor_get(x_267, 1); +lean_inc(x_283); +if (lean_is_exclusive(x_267)) { + lean_ctor_release(x_267, 0); + lean_ctor_release(x_267, 1); + x_284 = x_267; +} else { + lean_dec_ref(x_267); + x_284 = lean_box(0); +} +x_285 = lean_io_error_to_string(x_282); +if (lean_is_scalar(x_250)) { + x_286 = lean_alloc_ctor(3, 1, 0); +} else { + x_286 = x_250; + lean_ctor_set_tag(x_286, 3); +} +lean_ctor_set(x_286, 0, x_285); +x_287 = l_Lean_MessageData_ofFormat(x_286); +x_288 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_288, 0, x_261); +lean_ctor_set(x_288, 1, x_287); +if (lean_is_scalar(x_284)) { + x_289 = lean_alloc_ctor(1, 2, 0); +} else { + x_289 = x_284; +} +lean_ctor_set(x_289, 0, x_288); +lean_ctor_set(x_289, 1, x_283); +return x_289; +} +} +else +{ +lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; +lean_dec(x_260); +lean_dec(x_218); +lean_dec(x_17); +lean_dec(x_15); +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_290 = lean_ctor_get(x_262, 0); +lean_inc(x_290); +x_291 = lean_ctor_get(x_262, 1); +lean_inc(x_291); +if (lean_is_exclusive(x_262)) { + lean_ctor_release(x_262, 0); + lean_ctor_release(x_262, 1); + x_292 = x_262; +} else { + lean_dec_ref(x_262); + x_292 = lean_box(0); +} +x_293 = lean_io_error_to_string(x_290); +if (lean_is_scalar(x_250)) { + x_294 = lean_alloc_ctor(3, 1, 0); +} else { + x_294 = x_250; + lean_ctor_set_tag(x_294, 3); +} +lean_ctor_set(x_294, 0, x_293); +x_295 = l_Lean_MessageData_ofFormat(x_294); +x_296 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_296, 0, x_261); +lean_ctor_set(x_296, 1, x_295); +if (lean_is_scalar(x_292)) { + x_297 = lean_alloc_ctor(1, 2, 0); +} else { + x_297 = x_292; +} +lean_ctor_set(x_297, 0, x_296); +lean_ctor_set(x_297, 1, x_291); +return x_297; +} +} +else +{ +lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; +lean_dec(x_250); +lean_dec(x_218); +lean_dec(x_17); +lean_dec(x_15); +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_298 = lean_ctor_get(x_257, 0); +lean_inc(x_298); +x_299 = lean_ctor_get(x_257, 1); +lean_inc(x_299); +if (lean_is_exclusive(x_257)) { + lean_ctor_release(x_257, 0); + lean_ctor_release(x_257, 1); + x_300 = x_257; +} else { + lean_dec_ref(x_257); + x_300 = lean_box(0); +} +if (lean_is_scalar(x_300)) { + x_301 = lean_alloc_ctor(1, 2, 0); +} else { + x_301 = x_300; +} +lean_ctor_set(x_301, 0, x_298); +lean_ctor_set(x_301, 1, x_299); +return x_301; +} +} +} +} +else +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; +lean_dec(x_221); +lean_dec(x_218); +lean_dec(x_17); +lean_dec(x_15); +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_302 = lean_ctor_get(x_227, 0); +lean_inc(x_302); +x_303 = lean_ctor_get(x_227, 1); +lean_inc(x_303); if (lean_is_exclusive(x_227)) { lean_ctor_release(x_227, 0); - x_249 = x_227; + lean_ctor_release(x_227, 1); + x_304 = x_227; } else { lean_dec_ref(x_227); - x_249 = lean_box(0); + x_304 = lean_box(0); +} +if (lean_is_scalar(x_304)) { + x_305 = lean_alloc_ctor(1, 2, 0); +} else { + x_305 = x_304; +} +lean_ctor_set(x_305, 0, x_302); +lean_ctor_set(x_305, 1, x_303); +return x_305; } -x_250 = lean_ctor_get(x_220, 5); -lean_inc(x_250); -lean_dec(x_220); -x_251 = lean_ctor_get_uint8(x_250, sizeof(void*)*2); -lean_dec(x_250); -if (x_251 == 0) -{ -lean_object* x_252; lean_object* x_253; lean_object* x_254; -lean_dec(x_249); -x_252 = lean_ctor_get(x_226, 1); -lean_inc(x_252); -lean_dec(x_226); -x_253 = lean_box(0); -x_254 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___lambda__2(x_217, x_17, x_15, x_253, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_252); -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_15); -lean_dec(x_217); -return x_254; } else { -lean_object* x_255; lean_object* x_256; -x_255 = lean_ctor_get(x_226, 1); -lean_inc(x_255); -lean_dec(x_226); -lean_inc(x_4); -x_256 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVCheck_getSrcDir(x_4, x_5, x_6, x_7, x_8, x_9, x_255); -if (lean_obj_tag(x_256) == 0) -{ -lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; -x_257 = lean_ctor_get(x_256, 0); -lean_inc(x_257); -x_258 = lean_ctor_get(x_256, 1); -lean_inc(x_258); -lean_dec(x_256); -x_259 = l_System_FilePath_join(x_257, x_217); -x_260 = lean_ctor_get(x_8, 5); -lean_inc(x_260); -x_261 = l_Std_Tactic_BVDecide_LRAT_loadLRATProof(x_259, x_258); -if (lean_obj_tag(x_261) == 0) -{ -lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; -x_262 = lean_ctor_get(x_261, 0); -lean_inc(x_262); -x_263 = lean_ctor_get(x_261, 1); -lean_inc(x_263); -lean_dec(x_261); -x_264 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___closed__11; -x_265 = l_Lean_Elab_Tactic_BVDecide_LRAT_trim_M_run___rarg(x_262, x_264); -lean_dec(x_262); -x_266 = l_IO_ofExcept___at_Lean_Elab_Tactic_BVDecide_Frontend_LratCert_load___spec__4(x_265, x_263); -if (lean_obj_tag(x_266) == 0) -{ -lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_267 = lean_ctor_get(x_266, 0); -lean_inc(x_267); -x_268 = lean_ctor_get(x_266, 1); -lean_inc(x_268); -lean_dec(x_266); -x_269 = l_Std_Tactic_BVDecide_LRAT_dumpLRATProof(x_259, x_267, x_206, x_268); -lean_dec(x_267); -lean_dec(x_259); -if (lean_obj_tag(x_269) == 0) -{ -lean_object* x_270; lean_object* x_271; lean_object* x_272; -lean_dec(x_260); -lean_dec(x_249); -x_270 = lean_ctor_get(x_269, 0); -lean_inc(x_270); -x_271 = lean_ctor_get(x_269, 1); -lean_inc(x_271); -lean_dec(x_269); -x_272 = l_Lean_Elab_Tactic_BVDecide_Frontend_BVTrace_evalBvTrace___lambda__2(x_217, x_17, x_15, x_270, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_271); -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_270); -lean_dec(x_15); -lean_dec(x_217); -return x_272; -} -else -{ -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_dec(x_217); +lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; +lean_dec(x_221); +lean_dec(x_218); lean_dec(x_17); lean_dec(x_15); lean_dec(x_9); @@ -1770,255 +1995,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_273 = lean_ctor_get(x_269, 0); -lean_inc(x_273); -x_274 = lean_ctor_get(x_269, 1); -lean_inc(x_274); -if (lean_is_exclusive(x_269)) { - lean_ctor_release(x_269, 0); - lean_ctor_release(x_269, 1); - x_275 = x_269; -} else { - lean_dec_ref(x_269); - x_275 = lean_box(0); -} -x_276 = lean_io_error_to_string(x_273); -if (lean_is_scalar(x_249)) { - x_277 = lean_alloc_ctor(3, 1, 0); -} else { - x_277 = x_249; - lean_ctor_set_tag(x_277, 3); -} -lean_ctor_set(x_277, 0, x_276); -x_278 = l_Lean_MessageData_ofFormat(x_277); -x_279 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_279, 0, x_260); -lean_ctor_set(x_279, 1, x_278); -if (lean_is_scalar(x_275)) { - x_280 = lean_alloc_ctor(1, 2, 0); -} else { - x_280 = x_275; -} -lean_ctor_set(x_280, 0, x_279); -lean_ctor_set(x_280, 1, x_274); -return x_280; -} -} -else -{ -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; -lean_dec(x_259); -lean_dec(x_217); -lean_dec(x_17); -lean_dec(x_15); -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_281 = lean_ctor_get(x_266, 0); -lean_inc(x_281); -x_282 = lean_ctor_get(x_266, 1); -lean_inc(x_282); -if (lean_is_exclusive(x_266)) { - lean_ctor_release(x_266, 0); - lean_ctor_release(x_266, 1); - x_283 = x_266; -} else { - lean_dec_ref(x_266); - x_283 = lean_box(0); -} -x_284 = lean_io_error_to_string(x_281); -if (lean_is_scalar(x_249)) { - x_285 = lean_alloc_ctor(3, 1, 0); -} else { - x_285 = x_249; - lean_ctor_set_tag(x_285, 3); -} -lean_ctor_set(x_285, 0, x_284); -x_286 = l_Lean_MessageData_ofFormat(x_285); -x_287 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_287, 0, x_260); -lean_ctor_set(x_287, 1, x_286); -if (lean_is_scalar(x_283)) { - x_288 = lean_alloc_ctor(1, 2, 0); -} else { - x_288 = x_283; -} -lean_ctor_set(x_288, 0, x_287); -lean_ctor_set(x_288, 1, x_282); -return x_288; -} -} -else -{ -lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; -lean_dec(x_259); -lean_dec(x_217); -lean_dec(x_17); -lean_dec(x_15); -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_289 = lean_ctor_get(x_261, 0); -lean_inc(x_289); -x_290 = lean_ctor_get(x_261, 1); -lean_inc(x_290); -if (lean_is_exclusive(x_261)) { - lean_ctor_release(x_261, 0); - lean_ctor_release(x_261, 1); - x_291 = x_261; -} else { - lean_dec_ref(x_261); - x_291 = lean_box(0); -} -x_292 = lean_io_error_to_string(x_289); -if (lean_is_scalar(x_249)) { - x_293 = lean_alloc_ctor(3, 1, 0); -} else { - x_293 = x_249; - lean_ctor_set_tag(x_293, 3); -} -lean_ctor_set(x_293, 0, x_292); -x_294 = l_Lean_MessageData_ofFormat(x_293); -x_295 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_295, 0, x_260); -lean_ctor_set(x_295, 1, x_294); -if (lean_is_scalar(x_291)) { - x_296 = lean_alloc_ctor(1, 2, 0); -} else { - x_296 = x_291; -} -lean_ctor_set(x_296, 0, x_295); -lean_ctor_set(x_296, 1, x_290); -return x_296; -} -} -else -{ -lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; -lean_dec(x_249); -lean_dec(x_217); -lean_dec(x_17); -lean_dec(x_15); -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_297 = lean_ctor_get(x_256, 0); -lean_inc(x_297); -x_298 = lean_ctor_get(x_256, 1); -lean_inc(x_298); -if (lean_is_exclusive(x_256)) { - lean_ctor_release(x_256, 0); - lean_ctor_release(x_256, 1); - x_299 = x_256; -} else { - lean_dec_ref(x_256); - x_299 = lean_box(0); -} -if (lean_is_scalar(x_299)) { - x_300 = lean_alloc_ctor(1, 2, 0); -} else { - x_300 = x_299; -} -lean_ctor_set(x_300, 0, x_297); -lean_ctor_set(x_300, 1, x_298); -return x_300; -} -} -} -} -else -{ -lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; -lean_dec(x_220); -lean_dec(x_217); -lean_dec(x_17); -lean_dec(x_15); -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_301 = lean_ctor_get(x_226, 0); -lean_inc(x_301); -x_302 = lean_ctor_get(x_226, 1); -lean_inc(x_302); -if (lean_is_exclusive(x_226)) { - lean_ctor_release(x_226, 0); - lean_ctor_release(x_226, 1); - x_303 = x_226; -} else { - lean_dec_ref(x_226); - x_303 = lean_box(0); -} -if (lean_is_scalar(x_303)) { - x_304 = lean_alloc_ctor(1, 2, 0); -} else { - x_304 = x_303; -} -lean_ctor_set(x_304, 0, x_301); -lean_ctor_set(x_304, 1, x_302); -return x_304; -} -} -else -{ -lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; -lean_dec(x_220); -lean_dec(x_217); -lean_dec(x_17); -lean_dec(x_15); -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_305 = lean_ctor_get(x_222, 0); -lean_inc(x_305); -x_306 = lean_ctor_get(x_222, 1); +x_306 = lean_ctor_get(x_223, 0); lean_inc(x_306); -if (lean_is_exclusive(x_222)) { - lean_ctor_release(x_222, 0); - lean_ctor_release(x_222, 1); - x_307 = x_222; +x_307 = lean_ctor_get(x_223, 1); +lean_inc(x_307); +if (lean_is_exclusive(x_223)) { + lean_ctor_release(x_223, 0); + lean_ctor_release(x_223, 1); + x_308 = x_223; } else { - lean_dec_ref(x_222); - x_307 = lean_box(0); + lean_dec_ref(x_223); + x_308 = lean_box(0); } -if (lean_is_scalar(x_307)) { - x_308 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_308)) { + x_309 = lean_alloc_ctor(1, 2, 0); } else { - x_308 = x_307; + x_309 = x_308; } -lean_ctor_set(x_308, 0, x_305); -lean_ctor_set(x_308, 1, x_306); -return x_308; +lean_ctor_set(x_309, 0, x_306); +lean_ctor_set(x_309, 1, x_307); +return x_309; } } else { -lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; -lean_dec(x_217); +lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; +lean_dec(x_218); lean_dec(x_17); lean_dec(x_15); lean_dec(x_9); @@ -2029,32 +2031,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_309 = lean_ctor_get(x_219, 0); -lean_inc(x_309); -x_310 = lean_ctor_get(x_219, 1); +x_310 = lean_ctor_get(x_220, 0); lean_inc(x_310); -if (lean_is_exclusive(x_219)) { - lean_ctor_release(x_219, 0); - lean_ctor_release(x_219, 1); - x_311 = x_219; +x_311 = lean_ctor_get(x_220, 1); +lean_inc(x_311); +if (lean_is_exclusive(x_220)) { + lean_ctor_release(x_220, 0); + lean_ctor_release(x_220, 1); + x_312 = x_220; } else { - lean_dec_ref(x_219); - x_311 = lean_box(0); + lean_dec_ref(x_220); + x_312 = lean_box(0); } -if (lean_is_scalar(x_311)) { - x_312 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_312)) { + x_313 = lean_alloc_ctor(1, 2, 0); } else { - x_312 = x_311; + x_313 = x_312; } -lean_ctor_set(x_312, 0, x_309); -lean_ctor_set(x_312, 1, x_310); -return x_312; +lean_ctor_set(x_313, 0, x_310); +lean_ctor_set(x_313, 1, x_311); +return x_313; } } else { -lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; -lean_dec(x_215); +lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; +lean_dec(x_216); lean_dec(x_17); lean_dec(x_15); lean_dec(x_9); @@ -2065,32 +2067,32 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_313 = lean_ctor_get(x_216, 0); -lean_inc(x_313); -x_314 = lean_ctor_get(x_216, 1); +x_314 = lean_ctor_get(x_217, 0); lean_inc(x_314); -if (lean_is_exclusive(x_216)) { - lean_ctor_release(x_216, 0); - lean_ctor_release(x_216, 1); - x_315 = x_216; +x_315 = lean_ctor_get(x_217, 1); +lean_inc(x_315); +if (lean_is_exclusive(x_217)) { + lean_ctor_release(x_217, 0); + lean_ctor_release(x_217, 1); + x_316 = x_217; } else { - lean_dec_ref(x_216); - x_315 = lean_box(0); + lean_dec_ref(x_217); + x_316 = lean_box(0); } -if (lean_is_scalar(x_315)) { - x_316 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_316)) { + x_317 = lean_alloc_ctor(1, 2, 0); } else { - x_316 = x_315; + x_317 = x_316; } -lean_ctor_set(x_316, 0, x_313); -lean_ctor_set(x_316, 1, x_314); -return x_316; +lean_ctor_set(x_317, 0, x_314); +lean_ctor_set(x_317, 1, x_315); +return x_317; } } } else { -uint8_t x_317; +uint8_t x_318; lean_dec(x_17); lean_dec(x_15); lean_dec(x_9); @@ -2101,23 +2103,23 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_317 = !lean_is_exclusive(x_21); -if (x_317 == 0) +x_318 = !lean_is_exclusive(x_21); +if (x_318 == 0) { return x_21; } else { -lean_object* x_318; lean_object* x_319; lean_object* x_320; -x_318 = lean_ctor_get(x_21, 0); -x_319 = lean_ctor_get(x_21, 1); +lean_object* x_319; lean_object* x_320; lean_object* x_321; +x_319 = lean_ctor_get(x_21, 0); +x_320 = lean_ctor_get(x_21, 1); +lean_inc(x_320); lean_inc(x_319); -lean_inc(x_318); lean_dec(x_21); -x_320 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_320, 0, x_318); -lean_ctor_set(x_320, 1, x_319); -return x_320; +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; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/LRAT.c b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/LRAT.c index 933a898b52..a27608e4e7 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/LRAT.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/LRAT.c @@ -934,7 +934,7 @@ goto block_66; } else { -lean_object* x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; lean_object* x_88; uint8_t x_89; lean_object* x_90; +lean_object* x_80; uint8_t x_81; uint8_t x_82; uint8_t x_83; uint8_t x_84; uint8_t x_85; uint8_t x_86; uint8_t x_87; uint8_t x_88; lean_object* x_89; uint8_t x_90; lean_object* x_91; x_80 = lean_ctor_get(x_2, 0); x_81 = lean_ctor_get_uint8(x_2, sizeof(void*)*2); x_82 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 2); @@ -943,23 +943,25 @@ x_84 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 4); x_85 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 5); x_86 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 6); x_87 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 7); -x_88 = lean_ctor_get(x_2, 1); -lean_inc(x_88); +x_88 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 8); +x_89 = lean_ctor_get(x_2, 1); +lean_inc(x_89); lean_inc(x_80); lean_dec(x_2); -x_89 = 0; -x_90 = lean_alloc_ctor(0, 2, 8); -lean_ctor_set(x_90, 0, x_80); -lean_ctor_set(x_90, 1, x_88); -lean_ctor_set_uint8(x_90, sizeof(void*)*2, x_81); -lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 1, x_89); -lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 2, x_82); -lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 3, x_83); -lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 4, x_84); -lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 5, x_85); -lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 6, x_86); -lean_ctor_set_uint8(x_90, sizeof(void*)*2 + 7, x_87); -x_10 = x_90; +x_90 = 0; +x_91 = lean_alloc_ctor(0, 2, 9); +lean_ctor_set(x_91, 0, x_80); +lean_ctor_set(x_91, 1, x_89); +lean_ctor_set_uint8(x_91, sizeof(void*)*2, x_81); +lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 1, x_90); +lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 2, x_82); +lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 3, x_83); +lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 4, x_84); +lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 5, x_85); +lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 6, x_86); +lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 7, x_87); +lean_ctor_set_uint8(x_91, sizeof(void*)*2 + 8, x_88); +x_10 = x_91; x_11 = x_76; x_12 = x_77; goto block_66; @@ -967,27 +969,27 @@ goto block_66; } else { -uint8_t x_91; +uint8_t x_92; lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_91 = !lean_is_exclusive(x_68); -if (x_91 == 0) +x_92 = !lean_is_exclusive(x_68); +if (x_92 == 0) { return x_68; } else { -lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_92 = lean_ctor_get(x_68, 0); -x_93 = lean_ctor_get(x_68, 1); +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_68, 0); +x_94 = lean_ctor_get(x_68, 1); +lean_inc(x_94); lean_inc(x_93); -lean_inc(x_92); lean_dec(x_68); -x_94 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_94, 0, x_92); -lean_ctor_set(x_94, 1, x_93); -return x_94; +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize.c b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize.c index 43e9d73906..8f243f7703 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab.Tactic.BVDecide.Frontend.Normalize -// Imports: Lean.Elab.Tactic.FalseOrByContra Lean.Elab.Tactic.BVDecide.Frontend.Normalize.Basic Lean.Elab.Tactic.BVDecide.Frontend.Normalize.Simproc Lean.Elab.Tactic.BVDecide.Frontend.Normalize.Rewrite Lean.Elab.Tactic.BVDecide.Frontend.Normalize.AndFlatten Lean.Elab.Tactic.BVDecide.Frontend.Normalize.EmbeddedConstraint Lean.Elab.Tactic.BVDecide.Frontend.Normalize.AC Lean.Elab.Tactic.BVDecide.Frontend.Normalize.Structures Lean.Elab.Tactic.BVDecide.Frontend.Normalize.IntToBitVec +// Imports: Lean.Elab.Tactic.FalseOrByContra Lean.Elab.Tactic.BVDecide.Frontend.Normalize.Basic Lean.Elab.Tactic.BVDecide.Frontend.Normalize.Simproc Lean.Elab.Tactic.BVDecide.Frontend.Normalize.Rewrite Lean.Elab.Tactic.BVDecide.Frontend.Normalize.AndFlatten Lean.Elab.Tactic.BVDecide.Frontend.Normalize.EmbeddedConstraint Lean.Elab.Tactic.BVDecide.Frontend.Normalize.AC Lean.Elab.Tactic.BVDecide.Frontend.Normalize.Structures Lean.Elab.Tactic.BVDecide.Frontend.Normalize.IntToBitVec Lean.Elab.Tactic.BVDecide.Frontend.Normalize.TypeAnalysis #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -19,19 +19,27 @@ lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_obj LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___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*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, double, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__1; static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__4___closed__3; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__5; double lean_float_div(double, double); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___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*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__4; static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__4___closed__2; extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute; -extern lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4(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_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__8; static lean_object* l___regBuiltin_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize__1___closed__3; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_float_decLt(double, double); +lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static double l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_embeddedConstraintPass; @@ -39,13 +47,17 @@ lean_object* lean_io_get_num_heartbeats(lean_object*); uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*); extern lean_object* l_Lean_trace_profiler_useHeartbeats; lean_object* l_Lean_stringToMessageData(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__3___closed__1; -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__6; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__4; LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static double l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__4___closed__4; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__1; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__6; lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___closed__3; +lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___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*); static double l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__4___closed__5; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__1; @@ -53,10 +65,15 @@ static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormali lean_object* l_Lean_Name_mkStr7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Meta_processPostponed___spec__2___rarg(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__2; extern lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_rewriteRulesPass; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__4; lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Meta_processPostponed___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_elabBVDecideConfig(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_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__1; static lean_object* l___regBuiltin_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofFormat(lean_object*); @@ -65,8 +82,11 @@ static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_g LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize(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_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__2; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__7; lean_object* lean_io_mono_nanos_now(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -77,37 +97,49 @@ uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_trace_profiler_threshold; lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); +lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__4; +lean_object* l_panic___at_Lean_Expr_mvarId_x21___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__4___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__2; static lean_object* l___regBuiltin_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize__1___closed__8; static lean_object* l___regBuiltin_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize__1___closed__1; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize___closed__4; double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__3; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize___closed__1; static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__3___closed__2; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize___closed__2; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__9; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___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*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__2; lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___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*); lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalExact___spec__1___rarg(lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__4; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__3; static lean_object* l___regBuiltin_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize__1___closed__6; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__4; static lean_object* l___regBuiltin_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize__1___closed__7; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__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_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__1; lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__2; extern lean_object* l_Lean_trace_profiler; +lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_intToBitVecPass___elambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); @@ -118,6 +150,7 @@ static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormali LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize___closed__5; LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize__1(lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__5; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_acNormalizePass; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___closed__2; @@ -125,12 +158,14 @@ LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Fro LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___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_object*); static lean_object* l___regBuiltin_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize__1___closed__4; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__5; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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*); +lean_object* l_Lean_MessageData_ofName(lean_object*); lean_object* l_Lean_Elab_Tactic_replaceMainGoal(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_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___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_MonadExcept_ofExcept___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MVarId_falseOrByContra(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_intToBitVecPass; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); double lean_float_sub(double, double); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___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) { _start: @@ -471,7 +506,130 @@ return x_37; } } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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_object* x_12) { +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Running pass: ", 14, 14); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("intToBitVec", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__4; +x_2 = l_Lean_MessageData_ofName(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__2; +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__5; +x_3 = lean_alloc_ctor(7, 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_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(" on\n", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__7; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__9() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__6; +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__8; +x_3 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_1); +x_11 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__9; +x_12 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__4; +x_14 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_9); +return x_15; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("bv", 2, 2); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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_object* x_12) { _start: { uint8_t x_13; @@ -486,23 +644,30 @@ return x_15; } else { -lean_object* x_16; lean_object* x_17; -x_16 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_intToBitVecPass; +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +lean_inc(x_4); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___boxed), 9, 1); +lean_closure_set(x_16, 0, x_4); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_intToBitVecPass___elambda__1___boxed), 8, 1); +lean_closure_set(x_17, 0, x_4); +x_18 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__2; +x_19 = 1; +x_20 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__3; lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); lean_inc(x_7); lean_inc(x_6); -x_17 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run(x_16, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_17) == 0) +x_21 = l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1(x_18, x_16, x_17, x_19, x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_21) == 0) { -lean_object* x_18; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -if (lean_obj_tag(x_18) == 0) +lean_object* x_22; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) { -uint8_t x_19; +uint8_t x_23; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -510,45 +675,45 @@ lean_dec(x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_1); -x_19 = !lean_is_exclusive(x_17); -if (x_19 == 0) +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) { -lean_object* x_20; -x_20 = lean_ctor_get(x_17, 0); -lean_dec(x_20); -lean_ctor_set(x_17, 0, x_3); -return x_17; +lean_object* x_24; +x_24 = lean_ctor_get(x_21, 0); +lean_dec(x_24); +lean_ctor_set(x_21, 0, x_3); +return x_21; } else { -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_17, 1); -lean_inc(x_21); -lean_dec(x_17); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_3); -lean_ctor_set(x_22, 1, x_21); -return x_22; -} -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; -lean_dec(x_3); -x_23 = lean_ctor_get(x_17, 1); -lean_inc(x_23); -lean_dec(x_17); -x_24 = lean_ctor_get(x_18, 0); -lean_inc(x_24); -lean_dec(x_18); -x_25 = lean_box(0); -x_26 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2(x_1, x_24, x_25, x_6, x_7, x_8, x_9, x_10, x_11, x_23); +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_3); +lean_ctor_set(x_26, 1, x_25); return x_26; } } else { -uint8_t x_27; +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +lean_dec(x_3); +x_27 = lean_ctor_get(x_21, 1); +lean_inc(x_27); +lean_dec(x_21); +x_28 = lean_ctor_get(x_22, 0); +lean_inc(x_28); +lean_dec(x_22); +x_29 = lean_box(0); +x_30 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2(x_1, x_28, x_29, x_6, x_7, x_8, x_9, x_10, x_11, x_27); +return x_30; +} +} +else +{ +uint8_t x_31; lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); @@ -557,108 +722,410 @@ lean_dec(x_7); lean_dec(x_6); lean_dec(x_3); lean_dec(x_1); -x_27 = !lean_is_exclusive(x_17); -if (x_27 == 0) +x_31 = !lean_is_exclusive(x_21); +if (x_31 == 0) { -return x_17; +return x_21; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_17, 0); -x_29 = lean_ctor_get(x_17, 1); -lean_inc(x_29); +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_21, 0); +x_33 = lean_ctor_get(x_21, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_21); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("structures", 10, 10); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__2; +x_2 = l_Lean_MessageData_ofName(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__2; +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__3; +x_3 = lean_alloc_ctor(7, 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_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__4; +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__8; +x_3 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_1); +x_11 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__5; +x_12 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__4; +x_14 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_9); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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, lean_object* x_12) { +_start: +{ +uint8_t x_13; +x_13 = lean_ctor_get_uint8(x_2, sizeof(void*)*2 + 5); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4(x_1, x_2, x_3, x_4, x_14, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +return x_15; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; +lean_inc(x_4); +x_16 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___boxed), 9, 1); +lean_closure_set(x_16, 0, x_4); +x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1), 8, 1); +lean_closure_set(x_17, 0, x_4); +x_18 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__2; +x_19 = 1; +x_20 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__3; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_21 = l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1(x_18, x_16, x_17, x_19, x_20, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +if (lean_obj_tag(x_22) == 0) +{ +uint8_t x_23; +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_1); +x_23 = !lean_is_exclusive(x_21); +if (x_23 == 0) +{ +lean_object* x_24; +x_24 = lean_ctor_get(x_21, 0); +lean_dec(x_24); +lean_ctor_set(x_21, 0, x_3); +return x_21; +} +else +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_25); +lean_dec(x_21); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_3); +lean_ctor_set(x_26, 1, x_25); +return x_26; +} +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_27 = lean_ctor_get(x_21, 1); +lean_inc(x_27); +lean_dec(x_21); +x_28 = lean_ctor_get(x_22, 0); lean_inc(x_28); -lean_dec(x_17); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); +lean_dec(x_22); +x_29 = lean_box(0); +x_30 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4(x_1, x_2, x_3, x_28, x_29, x_6, x_7, x_8, x_9, x_10, x_11, x_27); return x_30; } } -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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: +else { -uint8_t x_12; -x_12 = lean_ctor_get_uint8(x_5, sizeof(void*)*2 + 5); -if (x_12 == 0) +uint8_t x_31; +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_3); +lean_dec(x_1); +x_31 = !lean_is_exclusive(x_21); +if (x_31 == 0) { -lean_object* x_13; lean_object* x_14; -x_13 = lean_box(0); -lean_inc(x_5); -x_14 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3(x_1, x_5, x_2, x_3, x_13, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -lean_dec(x_5); -return x_14; +return x_21; } else { -lean_object* x_15; lean_object* x_16; -x_15 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass; +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_21, 0); +x_33 = lean_ctor_get(x_21, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_21); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("typeAnalysis", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__2; +x_2 = l_Lean_MessageData_ofName(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__2; +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__3; +x_3 = lean_alloc_ctor(7, 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_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__4; +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__8; +x_3 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_1); +x_11 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__5; +x_12 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_12, 0, x_11); +lean_ctor_set(x_12, 1, x_10); +x_13 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__4; +x_14 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_9); +return x_15; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Init.Data.Option.BasicAux", 25, 25); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Option.get!", 11, 11); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("value is none", 13, 13); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__4() { +_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_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__1; +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__2; +x_3 = lean_unsigned_to_nat(16u); +x_4 = lean_unsigned_to_nat(14u); +x_5 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8(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; uint8_t x_34; +x_34 = lean_ctor_get_uint8(x_5, sizeof(void*)*2 + 5); +if (x_34 == 0) +{ +uint8_t x_35; +x_35 = lean_ctor_get_uint8(x_5, sizeof(void*)*2 + 7); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_box(0); +lean_inc(x_5); +x_37 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__6(x_1, x_5, x_2, x_3, x_36, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_5); +return x_37; +} +else +{ +lean_object* x_38; +x_38 = lean_box(0); +x_12 = x_38; +goto block_33; +} +} +else +{ +lean_object* x_39; +x_39 = lean_box(0); +x_12 = x_39; +goto block_33; +} +block_33: +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +lean_dec(x_12); +lean_inc(x_3); +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___boxed), 9, 1); +lean_closure_set(x_13, 0, x_3); +x_14 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___elambda__1), 8, 1); +lean_closure_set(x_14, 0, x_3); +x_15 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__2; +x_16 = 1; +x_17 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__3; 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_16 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run(x_15, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_11); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -if (lean_obj_tag(x_17) == 0) -{ -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_1); -x_18 = !lean_is_exclusive(x_16); -if (x_18 == 0) +x_18 = l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1(x_15, x_13, x_14, x_16, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_18) == 0) { lean_object* x_19; -x_19 = lean_ctor_get(x_16, 0); -lean_dec(x_19); -lean_ctor_set(x_16, 0, x_2); -return x_16; -} -else +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) { -lean_object* x_20; lean_object* x_21; -x_20 = lean_ctor_get(x_16, 1); +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; +x_20 = lean_ctor_get(x_18, 1); lean_inc(x_20); -lean_dec(x_16); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_2); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_16, 1); -lean_inc(x_22); -lean_dec(x_16); -x_23 = lean_ctor_get(x_17, 0); -lean_inc(x_23); -lean_dec(x_17); -x_24 = lean_box(0); +lean_dec(x_18); +x_21 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__4; +x_22 = l_panic___at_Lean_Expr_mvarId_x21___spec__1(x_21); +x_23 = lean_box(0); lean_inc(x_5); -x_25 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3(x_1, x_5, x_2, x_23, x_24, x_5, x_6, x_7, x_8, x_9, x_10, x_22); +x_24 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__6(x_1, x_5, x_2, x_22, x_23, x_5, x_6, x_7, x_8, x_9, x_10, x_20); lean_dec(x_5); -return x_25; +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_25 = lean_ctor_get(x_18, 1); +lean_inc(x_25); +lean_dec(x_18); +x_26 = lean_ctor_get(x_19, 0); +lean_inc(x_26); +lean_dec(x_19); +x_27 = lean_box(0); +lean_inc(x_5); +x_28 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__6(x_1, x_5, x_2, x_26, x_27, x_5, x_6, x_7, x_8, x_9, x_10, x_25); +lean_dec(x_5); +return x_28; } } else { -uint8_t x_26; +uint8_t x_29; lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); @@ -667,23 +1134,23 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_2); lean_dec(x_1); -x_26 = !lean_is_exclusive(x_16); -if (x_26 == 0) +x_29 = !lean_is_exclusive(x_18); +if (x_29 == 0) { -return x_16; +return x_18; } else { -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_16, 0); -x_28 = lean_ctor_get(x_16, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_16); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_18, 0); +x_31 = lean_ctor_get(x_18, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_18); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; } } } @@ -708,23 +1175,15 @@ return x_1; static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__3() { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("bv", 2, 2); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__4() { -_start: -{ lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__1; x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__2; -x_3 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__3; +x_3 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__1; x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__5() { +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__4() { _start: { lean_object* x_1; @@ -732,11 +1191,11 @@ x_1 = lean_mk_string_unchecked("Running preprocessing pipeline on:\n", 35, 35); return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__6() { +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__5; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } @@ -797,7 +1256,7 @@ if (x_17 == 0) { lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; x_18 = lean_ctor_get(x_11, 0); -x_19 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__4; +x_19 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__3; x_20 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__2(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_16); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); @@ -811,7 +1270,7 @@ x_23 = lean_ctor_get(x_20, 1); lean_inc(x_23); lean_dec(x_20); x_24 = lean_box(0); -x_25 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4(x_19, x_9, x_18, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_23); +x_25 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8(x_19, x_9, x_18, x_24, x_2, x_3, x_4, x_5, x_6, x_7, x_23); return x_25; } else @@ -825,7 +1284,7 @@ x_27 = lean_ctor_get(x_20, 1); x_28 = lean_ctor_get(x_20, 0); lean_dec(x_28); lean_inc(x_18); -x_29 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__6; +x_29 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__5; lean_ctor_set_tag(x_20, 7); lean_ctor_set(x_20, 1, x_11); lean_ctor_set(x_20, 0, x_29); @@ -839,7 +1298,7 @@ lean_inc(x_33); x_34 = lean_ctor_get(x_32, 1); lean_inc(x_34); lean_dec(x_32); -x_35 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4(x_19, x_9, x_18, x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_34); +x_35 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8(x_19, x_9, x_18, x_33, x_2, x_3, x_4, x_5, x_6, x_7, x_34); lean_dec(x_33); return x_35; } @@ -850,7 +1309,7 @@ x_36 = lean_ctor_get(x_20, 1); lean_inc(x_36); lean_dec(x_20); lean_inc(x_18); -x_37 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__6; +x_37 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__5; x_38 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_38, 0, x_37); lean_ctor_set(x_38, 1, x_11); @@ -864,7 +1323,7 @@ lean_inc(x_42); x_43 = lean_ctor_get(x_41, 1); lean_inc(x_43); lean_dec(x_41); -x_44 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4(x_19, x_9, x_18, x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_43); +x_44 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8(x_19, x_9, x_18, x_42, x_2, x_3, x_4, x_5, x_6, x_7, x_43); lean_dec(x_42); return x_44; } @@ -876,7 +1335,7 @@ lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint x_45 = lean_ctor_get(x_11, 0); lean_inc(x_45); lean_dec(x_11); -x_46 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__4; +x_46 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__3; x_47 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__2(x_46, x_2, x_3, x_4, x_5, x_6, x_7, x_16); x_48 = lean_ctor_get(x_47, 0); lean_inc(x_48); @@ -889,7 +1348,7 @@ x_50 = lean_ctor_get(x_47, 1); lean_inc(x_50); lean_dec(x_47); x_51 = lean_box(0); -x_52 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4(x_46, x_9, x_45, x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_50); +x_52 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8(x_46, x_9, x_45, x_51, x_2, x_3, x_4, x_5, x_6, x_7, x_50); return x_52; } else @@ -908,7 +1367,7 @@ if (lean_is_exclusive(x_47)) { lean_inc(x_45); x_55 = lean_alloc_ctor(1, 1, 0); lean_ctor_set(x_55, 0, x_45); -x_56 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__6; +x_56 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__5; if (lean_is_scalar(x_54)) { x_57 = lean_alloc_ctor(7, 2, 0); } else { @@ -927,7 +1386,7 @@ lean_inc(x_61); x_62 = lean_ctor_get(x_60, 1); lean_inc(x_62); lean_dec(x_60); -x_63 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4(x_46, x_9, x_45, x_61, x_2, x_3, x_4, x_5, x_6, x_7, x_62); +x_63 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8(x_46, x_9, x_45, x_61, x_2, x_3, x_4, x_5, x_6, x_7, x_62); lean_dec(x_61); return x_63; } @@ -982,21 +1441,76 @@ lean_dec(x_3); return x_11; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); +x_13 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4(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_5); lean_dec(x_2); return x_13; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___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, lean_object* x_12) { +_start: +{ +lean_object* x_13; +x_13 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__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_5); +lean_dec(x_2); +return x_13; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___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_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_12 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8(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_4); return x_12; } @@ -2510,16 +3024,6 @@ return x_8; static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__1() { _start: { -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__3; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__2() { -_start: -{ lean_object* x_1; x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___lambda__1___boxed), 6, 0); return x_1; @@ -2536,8 +3040,8 @@ x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_ lean_closure_set(x_9, 0, x_2); lean_closure_set(x_9, 1, x_1); lean_closure_set(x_9, 2, x_8); -x_10 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__1; -x_11 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__2; +x_10 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__2; +x_11 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__1; x_12 = 1; x_13 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__3; x_14 = l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1(x_10, x_11, x_9, x_12, x_13, x_3, x_4, x_5, x_6, x_7); @@ -3011,6 +3515,7 @@ lean_object* initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_EmbeddedCon lean_object* initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_AC(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Structures(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_IntToBitVec(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_TypeAnalysis(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize(uint8_t builtin, lean_object* w) { lean_object * res; @@ -3043,6 +3548,9 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_IntToBitVec(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_TypeAnalysis(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___lambda__2___closed__1); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_passPipeline___closed__1(); @@ -3059,6 +3567,56 @@ l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___clos lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__3); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__4 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__4(); lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__2___closed__4); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__3); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__4 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__4); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__5 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__5); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__6 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__6); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__7 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__7(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__7); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__8 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__8(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__8); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__9 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__9(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__3___closed__9); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__4___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__3); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__4 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__4); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__5 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__5___closed__5); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__3); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__4 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__4); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__5 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__7___closed__5); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__3); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__4 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___lambda__8___closed__4); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__1); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__2(); @@ -3069,8 +3627,6 @@ l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__4 = _ini lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__4); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__5 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__5(); lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__5); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__6 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__6(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize_go___closed__6); l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__2___closed__1 = _init_l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__2___closed__1(); l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__3___closed__1 = _init_l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__3___closed__1(); lean_mark_persistent(l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___spec__1___lambda__3___closed__1); @@ -3092,8 +3648,6 @@ l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___lambda__1___closed_ lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___lambda__1___closed__3); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__1); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_bvNormalize___closed__2); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize___closed__1); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_evalBVNormalize___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Basic.c b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Basic.c index c4189d2655..0e011076a4 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Basic.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Basic.c @@ -13,10 +13,16 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markUninterestingType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__3; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1___lambda__4(lean_object*, lean_object*, uint8_t, 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_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__1; lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__5; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___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_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_toArray___rarg(lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1___lambda__4___closed__3; double lean_float_div(double, double); @@ -24,10 +30,12 @@ size_t lean_uint64_to_usize(uint64_t); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_rewriteFinished(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); lean_object* lean_mk_array(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__1; lean_object* l_Lean_replaceRef(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___lambda__3(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_float_decLt(double, double); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__2; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___lambda__3___closed__3; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___closed__1; @@ -45,9 +53,12 @@ size_t lean_usize_of_nat(lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___lambda__1___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_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markUninterestingType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__4; LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___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_object*, lean_object*, lean_object*); lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_rewriteFinished___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(lean_object*); uint64_t lean_uint64_shift_right(uint64_t, uint64_t); lean_object* lean_nat_div(lean_object*, lean_object*); lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); @@ -58,10 +69,12 @@ static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___la static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markInterestingEnum___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, double, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markInterestingStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_io_mono_nanos_now(lean_object*); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1___lambda__4___closed__1; @@ -76,9 +89,11 @@ static lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getConfig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); extern lean_object* l_Lean_trace_profiler_threshold; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___closed__3; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__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_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__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_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Util_Trace_0__Lean_addTraceNode___spec__1(size_t, size_t, lean_object*); @@ -91,14 +106,20 @@ static double l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Norma LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__4(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_isTracingEnabledFor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_modifyTypeAnalysis(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t l_Lean_Name_hash___override(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markInterestingStructure___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__1___closed__5; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3___rarg___boxed(lean_object*, lean_object*); uint64_t lean_uint64_xor(uint64_t, uint64_t); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markInterestingEnum(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___lambda__3___closed__2; lean_object* lean_nat_mul(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_modifyTypeAnalysis___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(lean_object*); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -121,6 +142,7 @@ lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_checkRewritten___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3___rarg___closed__2; static lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1___lambda__3___closed__2; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis___boxed(lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__1___closed__4; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__1___closed__3; lean_object* lean_array_get_size(lean_object*); @@ -130,6 +152,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fix static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__1___closed__6; lean_object* lean_nat_add(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__1___closed__2; +uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_checkRewritten(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___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*, lean_object*); @@ -164,72 +187,76 @@ return x_8; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_checkRewritten(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_9; uint8_t x_10; +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_9 = lean_st_ref_get(x_3, x_8); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +lean_dec(x_10); +x_12 = !lean_is_exclusive(x_9); +if (x_12 == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; uint64_t x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; size_t x_21; size_t x_22; size_t x_23; size_t x_24; size_t x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; -x_11 = lean_ctor_get(x_9, 0); -x_12 = lean_ctor_get(x_11, 1); -lean_inc(x_12); -lean_dec(x_11); -x_13 = lean_array_get_size(x_12); -x_14 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_1); -x_15 = 32; -x_16 = lean_uint64_shift_right(x_14, x_15); -x_17 = lean_uint64_xor(x_14, x_16); -x_18 = 16; -x_19 = lean_uint64_shift_right(x_17, x_18); -x_20 = lean_uint64_xor(x_17, x_19); -x_21 = lean_uint64_to_usize(x_20); -x_22 = lean_usize_of_nat(x_13); +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; size_t x_23; size_t x_24; size_t x_25; size_t x_26; size_t x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; +x_13 = lean_ctor_get(x_9, 0); lean_dec(x_13); -x_23 = 1; -x_24 = lean_usize_sub(x_22, x_23); -x_25 = lean_usize_land(x_21, x_24); -x_26 = lean_array_uget(x_12, x_25); -lean_dec(x_12); -x_27 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_1, x_26); -lean_dec(x_26); -x_28 = lean_box(x_27); -lean_ctor_set(x_9, 0, x_28); +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_array_get_size(x_14); +x_16 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_1); +x_17 = 32; +x_18 = lean_uint64_shift_right(x_16, x_17); +x_19 = lean_uint64_xor(x_16, x_18); +x_20 = 16; +x_21 = lean_uint64_shift_right(x_19, x_20); +x_22 = lean_uint64_xor(x_19, x_21); +x_23 = lean_uint64_to_usize(x_22); +x_24 = lean_usize_of_nat(x_15); +lean_dec(x_15); +x_25 = 1; +x_26 = lean_usize_sub(x_24, x_25); +x_27 = lean_usize_land(x_23, x_26); +x_28 = lean_array_uget(x_14, x_27); +lean_dec(x_14); +x_29 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_1, x_28); +lean_dec(x_28); +x_30 = lean_box(x_29); +lean_ctor_set(x_9, 0, x_30); return x_9; } else { -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint64_t x_33; uint64_t x_34; uint64_t x_35; uint64_t x_36; uint64_t x_37; uint64_t x_38; uint64_t x_39; size_t x_40; size_t x_41; size_t x_42; size_t x_43; size_t x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; -x_29 = lean_ctor_get(x_9, 0); -x_30 = lean_ctor_get(x_9, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_9); -x_31 = lean_ctor_get(x_29, 1); +lean_object* x_31; lean_object* x_32; lean_object* x_33; uint64_t x_34; uint64_t x_35; uint64_t x_36; uint64_t x_37; uint64_t x_38; uint64_t x_39; uint64_t x_40; size_t x_41; size_t x_42; size_t x_43; size_t x_44; size_t x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; +x_31 = lean_ctor_get(x_9, 1); lean_inc(x_31); -lean_dec(x_29); -x_32 = lean_array_get_size(x_31); -x_33 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_1); -x_34 = 32; -x_35 = lean_uint64_shift_right(x_33, x_34); -x_36 = lean_uint64_xor(x_33, x_35); -x_37 = 16; -x_38 = lean_uint64_shift_right(x_36, x_37); -x_39 = lean_uint64_xor(x_36, x_38); -x_40 = lean_uint64_to_usize(x_39); -x_41 = lean_usize_of_nat(x_32); +lean_dec(x_9); +x_32 = lean_ctor_get(x_11, 1); +lean_inc(x_32); +lean_dec(x_11); +x_33 = lean_array_get_size(x_32); +x_34 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_1); +x_35 = 32; +x_36 = lean_uint64_shift_right(x_34, x_35); +x_37 = lean_uint64_xor(x_34, x_36); +x_38 = 16; +x_39 = lean_uint64_shift_right(x_37, x_38); +x_40 = lean_uint64_xor(x_37, x_39); +x_41 = lean_uint64_to_usize(x_40); +x_42 = lean_usize_of_nat(x_33); +lean_dec(x_33); +x_43 = 1; +x_44 = lean_usize_sub(x_42, x_43); +x_45 = lean_usize_land(x_41, x_44); +x_46 = lean_array_uget(x_32, x_45); lean_dec(x_32); -x_42 = 1; -x_43 = lean_usize_sub(x_41, x_42); -x_44 = lean_usize_land(x_40, x_43); -x_45 = lean_array_uget(x_31, x_44); -lean_dec(x_31); -x_46 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_1, x_45); -lean_dec(x_45); -x_47 = lean_box(x_46); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_30); -return x_48; +x_47 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_1, x_46); +lean_dec(x_46); +x_48 = lean_box(x_47); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_48); +lean_ctor_set(x_49, 1, x_31); +return x_49; } } } @@ -251,269 +278,441 @@ return x_9; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_rewriteFinished(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { -lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; x_9 = lean_st_ref_take(x_3, x_8); x_10 = lean_ctor_get(x_9, 0); lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); +x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); +x_12 = lean_ctor_get(x_9, 1); +lean_inc(x_12); lean_dec(x_9); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) +x_13 = !lean_is_exclusive(x_10); +if (x_13 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; size_t x_23; size_t x_24; size_t x_25; size_t x_26; size_t x_27; lean_object* x_28; uint8_t x_29; -x_13 = lean_ctor_get(x_10, 0); -x_14 = lean_ctor_get(x_10, 1); -x_15 = lean_array_get_size(x_14); -x_16 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_1); -x_17 = 32; -x_18 = lean_uint64_shift_right(x_16, x_17); -x_19 = lean_uint64_xor(x_16, x_18); -x_20 = 16; +lean_object* x_14; uint8_t x_15; +x_14 = lean_ctor_get(x_10, 0); +lean_dec(x_14); +x_15 = !lean_is_exclusive(x_11); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; size_t x_30; lean_object* x_31; uint8_t x_32; +x_16 = lean_ctor_get(x_11, 0); +x_17 = lean_ctor_get(x_11, 1); +x_18 = lean_array_get_size(x_17); +x_19 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_1); +x_20 = 32; x_21 = lean_uint64_shift_right(x_19, x_20); x_22 = lean_uint64_xor(x_19, x_21); -x_23 = lean_uint64_to_usize(x_22); -x_24 = lean_usize_of_nat(x_15); -lean_dec(x_15); -x_25 = 1; -x_26 = lean_usize_sub(x_24, x_25); -x_27 = lean_usize_land(x_23, x_26); -x_28 = lean_array_uget(x_14, x_27); -x_29 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_1, x_28); -if (x_29 == 0) +x_23 = 16; +x_24 = lean_uint64_shift_right(x_22, x_23); +x_25 = lean_uint64_xor(x_22, x_24); +x_26 = lean_uint64_to_usize(x_25); +x_27 = lean_usize_of_nat(x_18); +lean_dec(x_18); +x_28 = 1; +x_29 = lean_usize_sub(x_27, x_28); +x_30 = lean_usize_land(x_26, x_29); +x_31 = lean_array_uget(x_17, x_30); +x_32 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_1, x_31); +if (x_32 == 0) { -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; uint8_t x_40; -x_30 = lean_unsigned_to_nat(1u); -x_31 = lean_nat_add(x_13, x_30); -lean_dec(x_13); -x_32 = lean_box(0); -x_33 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_33, 0, x_1); -lean_ctor_set(x_33, 1, x_32); -lean_ctor_set(x_33, 2, x_28); -x_34 = lean_array_uset(x_14, x_27, x_33); -x_35 = lean_unsigned_to_nat(4u); -x_36 = lean_nat_mul(x_31, x_35); -x_37 = lean_unsigned_to_nat(3u); -x_38 = lean_nat_div(x_36, x_37); -lean_dec(x_36); -x_39 = lean_array_get_size(x_34); -x_40 = lean_nat_dec_le(x_38, x_39); +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; uint8_t x_43; +x_33 = lean_unsigned_to_nat(1u); +x_34 = lean_nat_add(x_16, x_33); +lean_dec(x_16); +x_35 = lean_box(0); +x_36 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_36, 0, x_1); +lean_ctor_set(x_36, 1, x_35); +lean_ctor_set(x_36, 2, x_31); +x_37 = lean_array_uset(x_17, x_30, x_36); +x_38 = lean_unsigned_to_nat(4u); +x_39 = lean_nat_mul(x_34, x_38); +x_40 = lean_unsigned_to_nat(3u); +x_41 = lean_nat_div(x_39, x_40); lean_dec(x_39); -lean_dec(x_38); -if (x_40 == 0) -{ -lean_object* x_41; lean_object* x_42; uint8_t x_43; -x_41 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_34); -lean_ctor_set(x_10, 1, x_41); -lean_ctor_set(x_10, 0, x_31); -x_42 = lean_st_ref_set(x_3, x_10, x_11); -x_43 = !lean_is_exclusive(x_42); +x_42 = lean_array_get_size(x_37); +x_43 = lean_nat_dec_le(x_41, x_42); +lean_dec(x_42); +lean_dec(x_41); if (x_43 == 0) { -lean_object* x_44; -x_44 = lean_ctor_get(x_42, 0); -lean_dec(x_44); -lean_ctor_set(x_42, 0, x_32); -return x_42; -} -else +lean_object* x_44; lean_object* x_45; uint8_t x_46; +x_44 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_37); +lean_ctor_set(x_11, 1, x_44); +lean_ctor_set(x_11, 0, x_34); +x_45 = lean_st_ref_set(x_3, x_10, x_12); +x_46 = !lean_is_exclusive(x_45); +if (x_46 == 0) { -lean_object* x_45; lean_object* x_46; -x_45 = lean_ctor_get(x_42, 1); -lean_inc(x_45); -lean_dec(x_42); -x_46 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_46, 0, x_32); -lean_ctor_set(x_46, 1, x_45); -return x_46; -} -} -else -{ -lean_object* x_47; uint8_t x_48; -lean_ctor_set(x_10, 1, x_34); -lean_ctor_set(x_10, 0, x_31); -x_47 = lean_st_ref_set(x_3, x_10, x_11); -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) -{ -lean_object* x_49; -x_49 = lean_ctor_get(x_47, 0); -lean_dec(x_49); -lean_ctor_set(x_47, 0, x_32); -return x_47; -} -else -{ -lean_object* x_50; lean_object* x_51; -x_50 = lean_ctor_get(x_47, 1); -lean_inc(x_50); +lean_object* x_47; +x_47 = lean_ctor_get(x_45, 0); lean_dec(x_47); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_32); -lean_ctor_set(x_51, 1, x_50); -return x_51; +lean_ctor_set(x_45, 0, x_35); +return x_45; } +else +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_45, 1); +lean_inc(x_48); +lean_dec(x_45); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_35); +lean_ctor_set(x_49, 1, x_48); +return x_49; } } else { -lean_object* x_52; uint8_t x_53; -lean_dec(x_28); -lean_dec(x_1); -x_52 = lean_st_ref_set(x_3, x_10, x_11); -x_53 = !lean_is_exclusive(x_52); -if (x_53 == 0) +lean_object* x_50; uint8_t x_51; +lean_ctor_set(x_11, 1, x_37); +lean_ctor_set(x_11, 0, x_34); +x_50 = lean_st_ref_set(x_3, x_10, x_12); +x_51 = !lean_is_exclusive(x_50); +if (x_51 == 0) { -lean_object* x_54; lean_object* x_55; -x_54 = lean_ctor_get(x_52, 0); -lean_dec(x_54); -x_55 = lean_box(0); -lean_ctor_set(x_52, 0, x_55); -return x_52; -} -else -{ -lean_object* x_56; lean_object* x_57; lean_object* x_58; -x_56 = lean_ctor_get(x_52, 1); -lean_inc(x_56); +lean_object* x_52; +x_52 = lean_ctor_get(x_50, 0); lean_dec(x_52); -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_ctor_set(x_50, 0, x_35); +return x_50; +} +else +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_50, 1); +lean_inc(x_53); +lean_dec(x_50); +x_54 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_54, 0, x_35); +lean_ctor_set(x_54, 1, x_53); +return x_54; } } } else { -lean_object* x_59; lean_object* x_60; lean_object* x_61; uint64_t x_62; uint64_t x_63; uint64_t x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; size_t x_69; size_t x_70; size_t x_71; size_t x_72; size_t x_73; lean_object* x_74; uint8_t x_75; -x_59 = lean_ctor_get(x_10, 0); -x_60 = lean_ctor_get(x_10, 1); -lean_inc(x_60); +lean_object* x_55; uint8_t x_56; +lean_dec(x_31); +lean_dec(x_1); +x_55 = lean_st_ref_set(x_3, x_10, x_12); +x_56 = !lean_is_exclusive(x_55); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; +x_57 = lean_ctor_get(x_55, 0); +lean_dec(x_57); +x_58 = lean_box(0); +lean_ctor_set(x_55, 0, x_58); +return x_55; +} +else +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; +x_59 = lean_ctor_get(x_55, 1); lean_inc(x_59); -lean_dec(x_10); -x_61 = lean_array_get_size(x_60); -x_62 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_1); -x_63 = 32; -x_64 = lean_uint64_shift_right(x_62, x_63); -x_65 = lean_uint64_xor(x_62, x_64); -x_66 = 16; +lean_dec(x_55); +x_60 = lean_box(0); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +return x_61; +} +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; uint64_t x_71; size_t x_72; size_t x_73; size_t x_74; size_t x_75; size_t x_76; lean_object* x_77; uint8_t x_78; +x_62 = lean_ctor_get(x_11, 0); +x_63 = lean_ctor_get(x_11, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_11); +x_64 = lean_array_get_size(x_63); +x_65 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_1); +x_66 = 32; x_67 = lean_uint64_shift_right(x_65, x_66); x_68 = lean_uint64_xor(x_65, x_67); -x_69 = lean_uint64_to_usize(x_68); -x_70 = lean_usize_of_nat(x_61); -lean_dec(x_61); -x_71 = 1; -x_72 = lean_usize_sub(x_70, x_71); -x_73 = lean_usize_land(x_69, x_72); -x_74 = lean_array_uget(x_60, x_73); -x_75 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_1, x_74); -if (x_75 == 0) +x_69 = 16; +x_70 = lean_uint64_shift_right(x_68, x_69); +x_71 = lean_uint64_xor(x_68, x_70); +x_72 = lean_uint64_to_usize(x_71); +x_73 = lean_usize_of_nat(x_64); +lean_dec(x_64); +x_74 = 1; +x_75 = lean_usize_sub(x_73, x_74); +x_76 = lean_usize_land(x_72, x_75); +x_77 = lean_array_uget(x_63, x_76); +x_78 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_1, x_77); +if (x_78 == 0) { -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; -x_76 = lean_unsigned_to_nat(1u); -x_77 = lean_nat_add(x_59, x_76); -lean_dec(x_59); -x_78 = lean_box(0); -x_79 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_79, 0, x_1); -lean_ctor_set(x_79, 1, x_78); -lean_ctor_set(x_79, 2, x_74); -x_80 = lean_array_uset(x_60, x_73, x_79); -x_81 = lean_unsigned_to_nat(4u); -x_82 = lean_nat_mul(x_77, x_81); -x_83 = lean_unsigned_to_nat(3u); -x_84 = lean_nat_div(x_82, x_83); -lean_dec(x_82); -x_85 = lean_array_get_size(x_80); -x_86 = lean_nat_dec_le(x_84, x_85); +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; uint8_t x_89; +x_79 = lean_unsigned_to_nat(1u); +x_80 = lean_nat_add(x_62, x_79); +lean_dec(x_62); +x_81 = lean_box(0); +x_82 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_82, 0, x_1); +lean_ctor_set(x_82, 1, x_81); +lean_ctor_set(x_82, 2, x_77); +x_83 = lean_array_uset(x_63, x_76, x_82); +x_84 = lean_unsigned_to_nat(4u); +x_85 = lean_nat_mul(x_80, x_84); +x_86 = lean_unsigned_to_nat(3u); +x_87 = lean_nat_div(x_85, x_86); lean_dec(x_85); -lean_dec(x_84); -if (x_86 == 0) +x_88 = lean_array_get_size(x_83); +x_89 = lean_nat_dec_le(x_87, x_88); +lean_dec(x_88); +lean_dec(x_87); +if (x_89 == 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; -x_87 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_80); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_77); -lean_ctor_set(x_88, 1, x_87); -x_89 = lean_st_ref_set(x_3, x_88, x_11); -x_90 = lean_ctor_get(x_89, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_89)) { - lean_ctor_release(x_89, 0); - lean_ctor_release(x_89, 1); - x_91 = x_89; +lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_90 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_83); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_80); +lean_ctor_set(x_91, 1, x_90); +lean_ctor_set(x_10, 0, x_91); +x_92 = lean_st_ref_set(x_3, x_10, x_12); +x_93 = lean_ctor_get(x_92, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_92)) { + lean_ctor_release(x_92, 0); + lean_ctor_release(x_92, 1); + x_94 = x_92; } else { - lean_dec_ref(x_89); - x_91 = lean_box(0); + lean_dec_ref(x_92); + x_94 = lean_box(0); } -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_94)) { + x_95 = lean_alloc_ctor(0, 2, 0); } else { - x_92 = x_91; + x_95 = x_94; } -lean_ctor_set(x_92, 0, x_78); -lean_ctor_set(x_92, 1, x_90); -return x_92; +lean_ctor_set(x_95, 0, x_81); +lean_ctor_set(x_95, 1, x_93); +return x_95; } else { -lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_77); -lean_ctor_set(x_93, 1, x_80); -x_94 = lean_st_ref_set(x_3, x_93, x_11); -x_95 = lean_ctor_get(x_94, 1); -lean_inc(x_95); -if (lean_is_exclusive(x_94)) { - lean_ctor_release(x_94, 0); - lean_ctor_release(x_94, 1); - x_96 = x_94; +lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_80); +lean_ctor_set(x_96, 1, x_83); +lean_ctor_set(x_10, 0, x_96); +x_97 = lean_st_ref_set(x_3, x_10, x_12); +x_98 = lean_ctor_get(x_97, 1); +lean_inc(x_98); +if (lean_is_exclusive(x_97)) { + lean_ctor_release(x_97, 0); + lean_ctor_release(x_97, 1); + x_99 = x_97; } else { - lean_dec_ref(x_94); - x_96 = lean_box(0); + lean_dec_ref(x_97); + x_99 = lean_box(0); } -if (lean_is_scalar(x_96)) { - x_97 = lean_alloc_ctor(0, 2, 0); +if (lean_is_scalar(x_99)) { + x_100 = lean_alloc_ctor(0, 2, 0); } else { - x_97 = x_96; + x_100 = x_99; } -lean_ctor_set(x_97, 0, x_78); -lean_ctor_set(x_97, 1, x_95); -return x_97; +lean_ctor_set(x_100, 0, x_81); +lean_ctor_set(x_100, 1, x_98); +return x_100; } } else { -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_dec(x_74); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; +lean_dec(x_77); lean_dec(x_1); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_59); -lean_ctor_set(x_98, 1, x_60); -x_99 = lean_st_ref_set(x_3, x_98, x_11); -x_100 = lean_ctor_get(x_99, 1); -lean_inc(x_100); -if (lean_is_exclusive(x_99)) { - lean_ctor_release(x_99, 0); - lean_ctor_release(x_99, 1); - x_101 = x_99; +x_101 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_101, 0, x_62); +lean_ctor_set(x_101, 1, x_63); +lean_ctor_set(x_10, 0, x_101); +x_102 = lean_st_ref_set(x_3, x_10, x_12); +x_103 = lean_ctor_get(x_102, 1); +lean_inc(x_103); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_104 = x_102; } else { - lean_dec_ref(x_99); - x_101 = lean_box(0); + lean_dec_ref(x_102); + x_104 = lean_box(0); } -x_102 = lean_box(0); -if (lean_is_scalar(x_101)) { - x_103 = lean_alloc_ctor(0, 2, 0); +x_105 = lean_box(0); +if (lean_is_scalar(x_104)) { + x_106 = lean_alloc_ctor(0, 2, 0); } else { - x_103 = x_101; + x_106 = x_104; } -lean_ctor_set(x_103, 0, x_102); -lean_ctor_set(x_103, 1, x_100); -return x_103; +lean_ctor_set(x_106, 0, x_105); +lean_ctor_set(x_106, 1, x_103); +return x_106; +} +} +} +else +{ +lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; uint64_t x_112; uint64_t x_113; uint64_t x_114; uint64_t x_115; uint64_t x_116; uint64_t x_117; uint64_t x_118; size_t x_119; size_t x_120; size_t x_121; size_t x_122; size_t x_123; lean_object* x_124; uint8_t x_125; +x_107 = lean_ctor_get(x_10, 1); +lean_inc(x_107); +lean_dec(x_10); +x_108 = lean_ctor_get(x_11, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_11, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + x_110 = x_11; +} else { + lean_dec_ref(x_11); + x_110 = lean_box(0); +} +x_111 = lean_array_get_size(x_109); +x_112 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_1); +x_113 = 32; +x_114 = lean_uint64_shift_right(x_112, x_113); +x_115 = lean_uint64_xor(x_112, x_114); +x_116 = 16; +x_117 = lean_uint64_shift_right(x_115, x_116); +x_118 = lean_uint64_xor(x_115, x_117); +x_119 = lean_uint64_to_usize(x_118); +x_120 = lean_usize_of_nat(x_111); +lean_dec(x_111); +x_121 = 1; +x_122 = lean_usize_sub(x_120, x_121); +x_123 = lean_usize_land(x_119, x_122); +x_124 = lean_array_uget(x_109, x_123); +x_125 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_1, x_124); +if (x_125 == 0) +{ +lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; +x_126 = lean_unsigned_to_nat(1u); +x_127 = lean_nat_add(x_108, x_126); +lean_dec(x_108); +x_128 = lean_box(0); +x_129 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_129, 0, x_1); +lean_ctor_set(x_129, 1, x_128); +lean_ctor_set(x_129, 2, x_124); +x_130 = lean_array_uset(x_109, x_123, x_129); +x_131 = lean_unsigned_to_nat(4u); +x_132 = lean_nat_mul(x_127, x_131); +x_133 = lean_unsigned_to_nat(3u); +x_134 = lean_nat_div(x_132, x_133); +lean_dec(x_132); +x_135 = lean_array_get_size(x_130); +x_136 = lean_nat_dec_le(x_134, x_135); +lean_dec(x_135); +lean_dec(x_134); +if (x_136 == 0) +{ +lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; +x_137 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_130); +if (lean_is_scalar(x_110)) { + x_138 = lean_alloc_ctor(0, 2, 0); +} else { + x_138 = x_110; +} +lean_ctor_set(x_138, 0, x_127); +lean_ctor_set(x_138, 1, x_137); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_107); +x_140 = lean_st_ref_set(x_3, x_139, x_12); +x_141 = lean_ctor_get(x_140, 1); +lean_inc(x_141); +if (lean_is_exclusive(x_140)) { + lean_ctor_release(x_140, 0); + lean_ctor_release(x_140, 1); + x_142 = x_140; +} else { + lean_dec_ref(x_140); + x_142 = lean_box(0); +} +if (lean_is_scalar(x_142)) { + x_143 = lean_alloc_ctor(0, 2, 0); +} else { + x_143 = x_142; +} +lean_ctor_set(x_143, 0, x_128); +lean_ctor_set(x_143, 1, x_141); +return x_143; +} +else +{ +lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; +if (lean_is_scalar(x_110)) { + x_144 = lean_alloc_ctor(0, 2, 0); +} else { + x_144 = x_110; +} +lean_ctor_set(x_144, 0, x_127); +lean_ctor_set(x_144, 1, x_130); +x_145 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_145, 0, x_144); +lean_ctor_set(x_145, 1, x_107); +x_146 = lean_st_ref_set(x_3, x_145, x_12); +x_147 = lean_ctor_get(x_146, 1); +lean_inc(x_147); +if (lean_is_exclusive(x_146)) { + lean_ctor_release(x_146, 0); + lean_ctor_release(x_146, 1); + x_148 = x_146; +} else { + lean_dec_ref(x_146); + x_148 = lean_box(0); +} +if (lean_is_scalar(x_148)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_148; +} +lean_ctor_set(x_149, 0, x_128); +lean_ctor_set(x_149, 1, x_147); +return x_149; +} +} +else +{ +lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; +lean_dec(x_124); +lean_dec(x_1); +if (lean_is_scalar(x_110)) { + x_150 = lean_alloc_ctor(0, 2, 0); +} else { + x_150 = x_110; +} +lean_ctor_set(x_150, 0, x_108); +lean_ctor_set(x_150, 1, x_109); +x_151 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_151, 0, x_150); +lean_ctor_set(x_151, 1, x_107); +x_152 = lean_st_ref_set(x_3, x_151, x_12); +x_153 = lean_ctor_get(x_152, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_152)) { + lean_ctor_release(x_152, 0); + lean_ctor_release(x_152, 1); + x_154 = x_152; +} else { + lean_dec_ref(x_152); + x_154 = lean_box(0); +} +x_155 = lean_box(0); +if (lean_is_scalar(x_154)) { + x_156 = lean_alloc_ctor(0, 2, 0); +} else { + x_156 = x_154; +} +lean_ctor_set(x_156, 0, x_155); +lean_ctor_set(x_156, 1, x_153); +return x_156; } } } @@ -532,6 +731,2365 @@ lean_dec(x_2); return x_9; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis___rarg(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; uint8_t x_8; +x_7 = lean_st_ref_get(x_1, x_6); +x_8 = !lean_is_exclusive(x_7); +if (x_8 == 0) +{ +lean_object* x_9; lean_object* x_10; +x_9 = lean_ctor_get(x_7, 0); +x_10 = lean_ctor_get(x_9, 1); +lean_inc(x_10); +lean_dec(x_9); +lean_ctor_set(x_7, 0, x_10); +return x_7; +} +else +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_7, 0); +x_12 = lean_ctor_get(x_7, 1); +lean_inc(x_12); +lean_inc(x_11); +lean_dec(x_7); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_12); +return x_14; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis___rarg___boxed), 6, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis___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) { +_start: +{ +lean_object* x_7; +x_7 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis___rarg(x_1, x_2, x_3, x_4, x_5, x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_7; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis___boxed(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_getTypeAnalysis(x_1); +lean_dec(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__1() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 1; +x_2 = lean_box(x_1); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__2() { +_start: +{ +uint8_t x_1; lean_object* x_2; lean_object* x_3; +x_1 = 0; +x_2 = lean_box(x_1); +x_3 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_3, 0, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_st_ref_get(x_3, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_11, 2); +lean_inc(x_12); +x_13 = !lean_is_exclusive(x_9); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; size_t x_24; size_t x_25; size_t x_26; size_t x_27; size_t x_28; lean_object* x_29; uint8_t x_30; +x_14 = lean_ctor_get(x_9, 0); +lean_dec(x_14); +x_15 = lean_ctor_get(x_12, 1); +lean_inc(x_15); +lean_dec(x_12); +x_16 = lean_array_get_size(x_15); +x_17 = l_Lean_Name_hash___override(x_1); +x_18 = 32; +x_19 = lean_uint64_shift_right(x_17, x_18); +x_20 = lean_uint64_xor(x_17, x_19); +x_21 = 16; +x_22 = lean_uint64_shift_right(x_20, x_21); +x_23 = lean_uint64_xor(x_20, x_22); +x_24 = lean_uint64_to_usize(x_23); +x_25 = lean_usize_of_nat(x_16); +lean_dec(x_16); +x_26 = 1; +x_27 = lean_usize_sub(x_25, x_26); +x_28 = lean_usize_land(x_24, x_27); +x_29 = lean_array_uget(x_15, x_28); +lean_dec(x_15); +x_30 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_29); +lean_dec(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; size_t x_34; size_t x_35; size_t x_36; lean_object* x_37; uint8_t x_38; +x_31 = lean_ctor_get(x_11, 0); +lean_inc(x_31); +lean_dec(x_11); +x_32 = lean_ctor_get(x_31, 1); +lean_inc(x_32); +lean_dec(x_31); +x_33 = lean_array_get_size(x_32); +x_34 = lean_usize_of_nat(x_33); +lean_dec(x_33); +x_35 = lean_usize_sub(x_34, x_26); +x_36 = lean_usize_land(x_24, x_35); +x_37 = lean_array_uget(x_32, x_36); +lean_dec(x_32); +x_38 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_37); +lean_dec(x_37); +if (x_38 == 0) +{ +lean_object* x_39; +x_39 = lean_box(0); +lean_ctor_set(x_9, 0, x_39); +return x_9; +} +else +{ +lean_object* x_40; +x_40 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__1; +lean_ctor_set(x_9, 0, x_40); +return x_9; +} +} +else +{ +lean_object* x_41; +lean_dec(x_11); +x_41 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__2; +lean_ctor_set(x_9, 0, x_41); +return x_9; +} +} +else +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; uint64_t x_45; uint64_t x_46; uint64_t x_47; uint64_t x_48; uint64_t x_49; uint64_t x_50; uint64_t x_51; size_t x_52; size_t x_53; size_t x_54; size_t x_55; size_t x_56; lean_object* x_57; uint8_t x_58; +x_42 = lean_ctor_get(x_9, 1); +lean_inc(x_42); +lean_dec(x_9); +x_43 = lean_ctor_get(x_12, 1); +lean_inc(x_43); +lean_dec(x_12); +x_44 = lean_array_get_size(x_43); +x_45 = l_Lean_Name_hash___override(x_1); +x_46 = 32; +x_47 = lean_uint64_shift_right(x_45, x_46); +x_48 = lean_uint64_xor(x_45, x_47); +x_49 = 16; +x_50 = lean_uint64_shift_right(x_48, x_49); +x_51 = lean_uint64_xor(x_48, x_50); +x_52 = lean_uint64_to_usize(x_51); +x_53 = lean_usize_of_nat(x_44); +lean_dec(x_44); +x_54 = 1; +x_55 = lean_usize_sub(x_53, x_54); +x_56 = lean_usize_land(x_52, x_55); +x_57 = lean_array_uget(x_43, x_56); +lean_dec(x_43); +x_58 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_57); +lean_dec(x_57); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; size_t x_62; size_t x_63; size_t x_64; lean_object* x_65; uint8_t x_66; +x_59 = lean_ctor_get(x_11, 0); +lean_inc(x_59); +lean_dec(x_11); +x_60 = lean_ctor_get(x_59, 1); +lean_inc(x_60); +lean_dec(x_59); +x_61 = lean_array_get_size(x_60); +x_62 = lean_usize_of_nat(x_61); +lean_dec(x_61); +x_63 = lean_usize_sub(x_62, x_54); +x_64 = lean_usize_land(x_52, x_63); +x_65 = lean_array_uget(x_60, x_64); +lean_dec(x_60); +x_66 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_65); +lean_dec(x_65); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; +x_67 = lean_box(0); +x_68 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_68, 0, x_67); +lean_ctor_set(x_68, 1, x_42); +return x_68; +} +else +{ +lean_object* x_69; lean_object* x_70; +x_69 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__1; +x_70 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_70, 0, x_69); +lean_ctor_set(x_70, 1, x_42); +return x_70; +} +} +else +{ +lean_object* x_71; lean_object* x_72; +lean_dec(x_11); +x_71 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__2; +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_42); +return x_72; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_modifyTypeAnalysis(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_9 = lean_st_ref_take(x_3, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = !lean_is_exclusive(x_10); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +x_13 = lean_ctor_get(x_10, 1); +x_14 = lean_apply_1(x_1, x_13); +lean_ctor_set(x_10, 1, x_14); +x_15 = lean_st_ref_set(x_3, x_10, x_11); +x_16 = !lean_is_exclusive(x_15); +if (x_16 == 0) +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_15, 0); +lean_dec(x_17); +x_18 = lean_box(0); +lean_ctor_set(x_15, 0, x_18); +return x_15; +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_19 = lean_ctor_get(x_15, 1); +lean_inc(x_19); +lean_dec(x_15); +x_20 = lean_box(0); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +return x_21; +} +} +else +{ +lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_22 = lean_ctor_get(x_10, 0); +x_23 = lean_ctor_get(x_10, 1); +lean_inc(x_23); +lean_inc(x_22); +lean_dec(x_10); +x_24 = lean_apply_1(x_1, x_23); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_22); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_st_ref_set(x_3, x_25, x_11); +x_27 = lean_ctor_get(x_26, 1); +lean_inc(x_27); +if (lean_is_exclusive(x_26)) { + lean_ctor_release(x_26, 0); + lean_ctor_release(x_26, 1); + x_28 = x_26; +} else { + lean_dec_ref(x_26); + x_28 = lean_box(0); +} +x_29 = lean_box(0); +if (lean_is_scalar(x_28)) { + x_30 = lean_alloc_ctor(0, 2, 0); +} else { + x_30 = x_28; +} +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_27); +return x_30; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_modifyTypeAnalysis___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_modifyTypeAnalysis(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markInterestingStructure(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_9 = lean_st_ref_take(x_3, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_9, 1); +lean_inc(x_13); +lean_dec(x_9); +x_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_10, 1); +lean_dec(x_15); +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_11, 0); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; size_t x_29; size_t x_30; size_t x_31; size_t x_32; size_t x_33; lean_object* x_34; uint8_t x_35; +x_19 = lean_ctor_get(x_12, 0); +x_20 = lean_ctor_get(x_12, 1); +x_21 = lean_array_get_size(x_20); +x_22 = l_Lean_Name_hash___override(x_1); +x_23 = 32; +x_24 = lean_uint64_shift_right(x_22, x_23); +x_25 = lean_uint64_xor(x_22, x_24); +x_26 = 16; +x_27 = lean_uint64_shift_right(x_25, x_26); +x_28 = lean_uint64_xor(x_25, x_27); +x_29 = lean_uint64_to_usize(x_28); +x_30 = lean_usize_of_nat(x_21); +lean_dec(x_21); +x_31 = 1; +x_32 = lean_usize_sub(x_30, x_31); +x_33 = lean_usize_land(x_29, x_32); +x_34 = lean_array_uget(x_20, x_33); +x_35 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_34); +if (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; lean_object* x_45; uint8_t x_46; +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_add(x_19, x_36); +lean_dec(x_19); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_39, 0, x_1); +lean_ctor_set(x_39, 1, x_38); +lean_ctor_set(x_39, 2, x_34); +x_40 = lean_array_uset(x_20, x_33, x_39); +x_41 = lean_unsigned_to_nat(4u); +x_42 = lean_nat_mul(x_37, x_41); +x_43 = lean_unsigned_to_nat(3u); +x_44 = lean_nat_div(x_42, x_43); +lean_dec(x_42); +x_45 = lean_array_get_size(x_40); +x_46 = lean_nat_dec_le(x_44, x_45); +lean_dec(x_45); +lean_dec(x_44); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_40); +lean_ctor_set(x_12, 1, x_47); +lean_ctor_set(x_12, 0, x_37); +x_48 = lean_st_ref_set(x_3, x_10, x_13); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_48, 0); +lean_dec(x_50); +lean_ctor_set(x_48, 0, x_38); +return x_48; +} +else +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_48, 1); +lean_inc(x_51); +lean_dec(x_48); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_38); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +else +{ +lean_object* x_53; uint8_t x_54; +lean_ctor_set(x_12, 1, x_40); +lean_ctor_set(x_12, 0, x_37); +x_53 = lean_st_ref_set(x_3, x_10, x_13); +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) +{ +lean_object* x_55; +x_55 = lean_ctor_get(x_53, 0); +lean_dec(x_55); +lean_ctor_set(x_53, 0, x_38); +return x_53; +} +else +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_38); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +lean_object* x_58; uint8_t x_59; +lean_dec(x_34); +lean_dec(x_1); +x_58 = lean_st_ref_set(x_3, x_10, x_13); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +x_61 = lean_box(0); +lean_ctor_set(x_58, 0, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +lean_dec(x_58); +x_63 = lean_box(0); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; uint64_t x_71; uint64_t x_72; uint64_t x_73; uint64_t x_74; size_t x_75; size_t x_76; size_t x_77; size_t x_78; size_t x_79; lean_object* x_80; uint8_t x_81; +x_65 = lean_ctor_get(x_12, 0); +x_66 = lean_ctor_get(x_12, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_12); +x_67 = lean_array_get_size(x_66); +x_68 = l_Lean_Name_hash___override(x_1); +x_69 = 32; +x_70 = lean_uint64_shift_right(x_68, x_69); +x_71 = lean_uint64_xor(x_68, x_70); +x_72 = 16; +x_73 = lean_uint64_shift_right(x_71, x_72); +x_74 = lean_uint64_xor(x_71, x_73); +x_75 = lean_uint64_to_usize(x_74); +x_76 = lean_usize_of_nat(x_67); +lean_dec(x_67); +x_77 = 1; +x_78 = lean_usize_sub(x_76, x_77); +x_79 = lean_usize_land(x_75, x_78); +x_80 = lean_array_uget(x_66, x_79); +x_81 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_80); +if (x_81 == 0) +{ +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; uint8_t x_92; +x_82 = lean_unsigned_to_nat(1u); +x_83 = lean_nat_add(x_65, x_82); +lean_dec(x_65); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_85, 0, x_1); +lean_ctor_set(x_85, 1, x_84); +lean_ctor_set(x_85, 2, x_80); +x_86 = lean_array_uset(x_66, x_79, x_85); +x_87 = lean_unsigned_to_nat(4u); +x_88 = lean_nat_mul(x_83, x_87); +x_89 = lean_unsigned_to_nat(3u); +x_90 = lean_nat_div(x_88, x_89); +lean_dec(x_88); +x_91 = lean_array_get_size(x_86); +x_92 = lean_nat_dec_le(x_90, x_91); +lean_dec(x_91); +lean_dec(x_90); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_93 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_86); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_83); +lean_ctor_set(x_94, 1, x_93); +lean_ctor_set(x_11, 0, x_94); +x_95 = lean_st_ref_set(x_3, x_10, x_13); +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_97 = x_95; +} else { + lean_dec_ref(x_95); + x_97 = lean_box(0); +} +if (lean_is_scalar(x_97)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_97; +} +lean_ctor_set(x_98, 0, x_84); +lean_ctor_set(x_98, 1, x_96); +return x_98; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_83); +lean_ctor_set(x_99, 1, x_86); +lean_ctor_set(x_11, 0, x_99); +x_100 = lean_st_ref_set(x_3, x_10, x_13); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_102 = x_100; +} else { + lean_dec_ref(x_100); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_84); +lean_ctor_set(x_103, 1, x_101); +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_dec(x_80); +lean_dec(x_1); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_65); +lean_ctor_set(x_104, 1, x_66); +lean_ctor_set(x_11, 0, x_104); +x_105 = lean_st_ref_set(x_3, x_10, x_13); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_107 = x_105; +} else { + lean_dec_ref(x_105); + x_107 = lean_box(0); +} +x_108 = lean_box(0); +if (lean_is_scalar(x_107)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_107; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_106); +return x_109; +} +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint64_t x_116; uint64_t x_117; uint64_t x_118; uint64_t x_119; uint64_t x_120; uint64_t x_121; uint64_t x_122; size_t x_123; size_t x_124; size_t x_125; size_t x_126; size_t x_127; lean_object* x_128; uint8_t x_129; +x_110 = lean_ctor_get(x_11, 1); +x_111 = lean_ctor_get(x_11, 2); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_11); +x_112 = lean_ctor_get(x_12, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_12, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_114 = x_12; +} else { + lean_dec_ref(x_12); + x_114 = lean_box(0); +} +x_115 = lean_array_get_size(x_113); +x_116 = l_Lean_Name_hash___override(x_1); +x_117 = 32; +x_118 = lean_uint64_shift_right(x_116, x_117); +x_119 = lean_uint64_xor(x_116, x_118); +x_120 = 16; +x_121 = lean_uint64_shift_right(x_119, x_120); +x_122 = lean_uint64_xor(x_119, x_121); +x_123 = lean_uint64_to_usize(x_122); +x_124 = lean_usize_of_nat(x_115); +lean_dec(x_115); +x_125 = 1; +x_126 = lean_usize_sub(x_124, x_125); +x_127 = lean_usize_land(x_123, x_126); +x_128 = lean_array_uget(x_113, x_127); +x_129 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_128); +if (x_129 == 0) +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_130 = lean_unsigned_to_nat(1u); +x_131 = lean_nat_add(x_112, x_130); +lean_dec(x_112); +x_132 = lean_box(0); +x_133 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_133, 0, x_1); +lean_ctor_set(x_133, 1, x_132); +lean_ctor_set(x_133, 2, x_128); +x_134 = lean_array_uset(x_113, x_127, x_133); +x_135 = lean_unsigned_to_nat(4u); +x_136 = lean_nat_mul(x_131, x_135); +x_137 = lean_unsigned_to_nat(3u); +x_138 = lean_nat_div(x_136, x_137); +lean_dec(x_136); +x_139 = lean_array_get_size(x_134); +x_140 = lean_nat_dec_le(x_138, x_139); +lean_dec(x_139); +lean_dec(x_138); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_141 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_134); +if (lean_is_scalar(x_114)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_114; +} +lean_ctor_set(x_142, 0, x_131); +lean_ctor_set(x_142, 1, x_141); +x_143 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_110); +lean_ctor_set(x_143, 2, x_111); +lean_ctor_set(x_10, 1, x_143); +x_144 = lean_st_ref_set(x_3, x_10, x_13); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_146 = x_144; +} else { + lean_dec_ref(x_144); + x_146 = lean_box(0); +} +if (lean_is_scalar(x_146)) { + x_147 = lean_alloc_ctor(0, 2, 0); +} else { + x_147 = x_146; +} +lean_ctor_set(x_147, 0, x_132); +lean_ctor_set(x_147, 1, x_145); +return x_147; +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +if (lean_is_scalar(x_114)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_114; +} +lean_ctor_set(x_148, 0, x_131); +lean_ctor_set(x_148, 1, x_134); +x_149 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_149, 0, x_148); +lean_ctor_set(x_149, 1, x_110); +lean_ctor_set(x_149, 2, x_111); +lean_ctor_set(x_10, 1, x_149); +x_150 = lean_st_ref_set(x_3, x_10, x_13); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_152 = x_150; +} else { + lean_dec_ref(x_150); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(0, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_132); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_128); +lean_dec(x_1); +if (lean_is_scalar(x_114)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_114; +} +lean_ctor_set(x_154, 0, x_112); +lean_ctor_set(x_154, 1, x_113); +x_155 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_155, 0, x_154); +lean_ctor_set(x_155, 1, x_110); +lean_ctor_set(x_155, 2, x_111); +lean_ctor_set(x_10, 1, x_155); +x_156 = lean_st_ref_set(x_3, x_10, x_13); +x_157 = lean_ctor_get(x_156, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_158 = x_156; +} else { + lean_dec_ref(x_156); + x_158 = lean_box(0); +} +x_159 = lean_box(0); +if (lean_is_scalar(x_158)) { + x_160 = lean_alloc_ctor(0, 2, 0); +} else { + x_160 = x_158; +} +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_157); +return x_160; +} +} +} +else +{ +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; uint64_t x_169; uint64_t x_170; uint64_t x_171; uint64_t x_172; uint64_t x_173; uint64_t x_174; uint64_t x_175; size_t x_176; size_t x_177; size_t x_178; size_t x_179; size_t x_180; lean_object* x_181; uint8_t x_182; +x_161 = lean_ctor_get(x_10, 0); +lean_inc(x_161); +lean_dec(x_10); +x_162 = lean_ctor_get(x_11, 1); +lean_inc(x_162); +x_163 = lean_ctor_get(x_11, 2); +lean_inc(x_163); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + lean_ctor_release(x_11, 2); + x_164 = x_11; +} else { + lean_dec_ref(x_11); + x_164 = lean_box(0); +} +x_165 = lean_ctor_get(x_12, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_12, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_167 = x_12; +} else { + lean_dec_ref(x_12); + x_167 = lean_box(0); +} +x_168 = lean_array_get_size(x_166); +x_169 = l_Lean_Name_hash___override(x_1); +x_170 = 32; +x_171 = lean_uint64_shift_right(x_169, x_170); +x_172 = lean_uint64_xor(x_169, x_171); +x_173 = 16; +x_174 = lean_uint64_shift_right(x_172, x_173); +x_175 = lean_uint64_xor(x_172, x_174); +x_176 = lean_uint64_to_usize(x_175); +x_177 = lean_usize_of_nat(x_168); +lean_dec(x_168); +x_178 = 1; +x_179 = lean_usize_sub(x_177, x_178); +x_180 = lean_usize_land(x_176, x_179); +x_181 = lean_array_uget(x_166, x_180); +x_182 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_181); +if (x_182 == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; +x_183 = lean_unsigned_to_nat(1u); +x_184 = lean_nat_add(x_165, x_183); +lean_dec(x_165); +x_185 = lean_box(0); +x_186 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_186, 0, x_1); +lean_ctor_set(x_186, 1, x_185); +lean_ctor_set(x_186, 2, x_181); +x_187 = lean_array_uset(x_166, x_180, x_186); +x_188 = lean_unsigned_to_nat(4u); +x_189 = lean_nat_mul(x_184, x_188); +x_190 = lean_unsigned_to_nat(3u); +x_191 = lean_nat_div(x_189, x_190); +lean_dec(x_189); +x_192 = lean_array_get_size(x_187); +x_193 = lean_nat_dec_le(x_191, x_192); +lean_dec(x_192); +lean_dec(x_191); +if (x_193 == 0) +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_194 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_187); +if (lean_is_scalar(x_167)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_167; +} +lean_ctor_set(x_195, 0, x_184); +lean_ctor_set(x_195, 1, x_194); +if (lean_is_scalar(x_164)) { + x_196 = lean_alloc_ctor(0, 3, 0); +} else { + x_196 = x_164; +} +lean_ctor_set(x_196, 0, x_195); +lean_ctor_set(x_196, 1, x_162); +lean_ctor_set(x_196, 2, x_163); +x_197 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_197, 0, x_161); +lean_ctor_set(x_197, 1, x_196); +x_198 = lean_st_ref_set(x_3, x_197, x_13); +x_199 = lean_ctor_get(x_198, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_200 = x_198; +} else { + lean_dec_ref(x_198); + x_200 = lean_box(0); +} +if (lean_is_scalar(x_200)) { + x_201 = lean_alloc_ctor(0, 2, 0); +} else { + x_201 = x_200; +} +lean_ctor_set(x_201, 0, x_185); +lean_ctor_set(x_201, 1, x_199); +return x_201; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +if (lean_is_scalar(x_167)) { + x_202 = lean_alloc_ctor(0, 2, 0); +} else { + x_202 = x_167; +} +lean_ctor_set(x_202, 0, x_184); +lean_ctor_set(x_202, 1, x_187); +if (lean_is_scalar(x_164)) { + x_203 = lean_alloc_ctor(0, 3, 0); +} else { + x_203 = x_164; +} +lean_ctor_set(x_203, 0, x_202); +lean_ctor_set(x_203, 1, x_162); +lean_ctor_set(x_203, 2, x_163); +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_161); +lean_ctor_set(x_204, 1, x_203); +x_205 = lean_st_ref_set(x_3, x_204, x_13); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; +} else { + lean_dec_ref(x_205); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_185); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +lean_dec(x_181); +lean_dec(x_1); +if (lean_is_scalar(x_167)) { + x_209 = lean_alloc_ctor(0, 2, 0); +} else { + x_209 = x_167; +} +lean_ctor_set(x_209, 0, x_165); +lean_ctor_set(x_209, 1, x_166); +if (lean_is_scalar(x_164)) { + x_210 = lean_alloc_ctor(0, 3, 0); +} else { + x_210 = x_164; +} +lean_ctor_set(x_210, 0, x_209); +lean_ctor_set(x_210, 1, x_162); +lean_ctor_set(x_210, 2, x_163); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_161); +lean_ctor_set(x_211, 1, x_210); +x_212 = lean_st_ref_set(x_3, x_211, x_13); +x_213 = lean_ctor_get(x_212, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_214 = x_212; +} else { + lean_dec_ref(x_212); + x_214 = lean_box(0); +} +x_215 = lean_box(0); +if (lean_is_scalar(x_214)) { + x_216 = lean_alloc_ctor(0, 2, 0); +} else { + x_216 = x_214; +} +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_213); +return x_216; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markInterestingStructure___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markInterestingStructure(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markInterestingEnum(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_9 = lean_st_ref_take(x_3, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +x_12 = lean_ctor_get(x_11, 1); +lean_inc(x_12); +x_13 = lean_ctor_get(x_9, 1); +lean_inc(x_13); +lean_dec(x_9); +x_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_10, 1); +lean_dec(x_15); +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_11, 1); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; size_t x_29; size_t x_30; size_t x_31; size_t x_32; size_t x_33; lean_object* x_34; uint8_t x_35; +x_19 = lean_ctor_get(x_12, 0); +x_20 = lean_ctor_get(x_12, 1); +x_21 = lean_array_get_size(x_20); +x_22 = l_Lean_Name_hash___override(x_1); +x_23 = 32; +x_24 = lean_uint64_shift_right(x_22, x_23); +x_25 = lean_uint64_xor(x_22, x_24); +x_26 = 16; +x_27 = lean_uint64_shift_right(x_25, x_26); +x_28 = lean_uint64_xor(x_25, x_27); +x_29 = lean_uint64_to_usize(x_28); +x_30 = lean_usize_of_nat(x_21); +lean_dec(x_21); +x_31 = 1; +x_32 = lean_usize_sub(x_30, x_31); +x_33 = lean_usize_land(x_29, x_32); +x_34 = lean_array_uget(x_20, x_33); +x_35 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_34); +if (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; lean_object* x_45; uint8_t x_46; +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_add(x_19, x_36); +lean_dec(x_19); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_39, 0, x_1); +lean_ctor_set(x_39, 1, x_38); +lean_ctor_set(x_39, 2, x_34); +x_40 = lean_array_uset(x_20, x_33, x_39); +x_41 = lean_unsigned_to_nat(4u); +x_42 = lean_nat_mul(x_37, x_41); +x_43 = lean_unsigned_to_nat(3u); +x_44 = lean_nat_div(x_42, x_43); +lean_dec(x_42); +x_45 = lean_array_get_size(x_40); +x_46 = lean_nat_dec_le(x_44, x_45); +lean_dec(x_45); +lean_dec(x_44); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_40); +lean_ctor_set(x_12, 1, x_47); +lean_ctor_set(x_12, 0, x_37); +x_48 = lean_st_ref_set(x_3, x_10, x_13); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_48, 0); +lean_dec(x_50); +lean_ctor_set(x_48, 0, x_38); +return x_48; +} +else +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_48, 1); +lean_inc(x_51); +lean_dec(x_48); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_38); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +else +{ +lean_object* x_53; uint8_t x_54; +lean_ctor_set(x_12, 1, x_40); +lean_ctor_set(x_12, 0, x_37); +x_53 = lean_st_ref_set(x_3, x_10, x_13); +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) +{ +lean_object* x_55; +x_55 = lean_ctor_get(x_53, 0); +lean_dec(x_55); +lean_ctor_set(x_53, 0, x_38); +return x_53; +} +else +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_38); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +lean_object* x_58; uint8_t x_59; +lean_dec(x_34); +lean_dec(x_1); +x_58 = lean_st_ref_set(x_3, x_10, x_13); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +x_61 = lean_box(0); +lean_ctor_set(x_58, 0, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +lean_dec(x_58); +x_63 = lean_box(0); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; uint64_t x_71; uint64_t x_72; uint64_t x_73; uint64_t x_74; size_t x_75; size_t x_76; size_t x_77; size_t x_78; size_t x_79; lean_object* x_80; uint8_t x_81; +x_65 = lean_ctor_get(x_12, 0); +x_66 = lean_ctor_get(x_12, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_12); +x_67 = lean_array_get_size(x_66); +x_68 = l_Lean_Name_hash___override(x_1); +x_69 = 32; +x_70 = lean_uint64_shift_right(x_68, x_69); +x_71 = lean_uint64_xor(x_68, x_70); +x_72 = 16; +x_73 = lean_uint64_shift_right(x_71, x_72); +x_74 = lean_uint64_xor(x_71, x_73); +x_75 = lean_uint64_to_usize(x_74); +x_76 = lean_usize_of_nat(x_67); +lean_dec(x_67); +x_77 = 1; +x_78 = lean_usize_sub(x_76, x_77); +x_79 = lean_usize_land(x_75, x_78); +x_80 = lean_array_uget(x_66, x_79); +x_81 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_80); +if (x_81 == 0) +{ +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; uint8_t x_92; +x_82 = lean_unsigned_to_nat(1u); +x_83 = lean_nat_add(x_65, x_82); +lean_dec(x_65); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_85, 0, x_1); +lean_ctor_set(x_85, 1, x_84); +lean_ctor_set(x_85, 2, x_80); +x_86 = lean_array_uset(x_66, x_79, x_85); +x_87 = lean_unsigned_to_nat(4u); +x_88 = lean_nat_mul(x_83, x_87); +x_89 = lean_unsigned_to_nat(3u); +x_90 = lean_nat_div(x_88, x_89); +lean_dec(x_88); +x_91 = lean_array_get_size(x_86); +x_92 = lean_nat_dec_le(x_90, x_91); +lean_dec(x_91); +lean_dec(x_90); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_93 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_86); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_83); +lean_ctor_set(x_94, 1, x_93); +lean_ctor_set(x_11, 1, x_94); +x_95 = lean_st_ref_set(x_3, x_10, x_13); +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_97 = x_95; +} else { + lean_dec_ref(x_95); + x_97 = lean_box(0); +} +if (lean_is_scalar(x_97)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_97; +} +lean_ctor_set(x_98, 0, x_84); +lean_ctor_set(x_98, 1, x_96); +return x_98; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_83); +lean_ctor_set(x_99, 1, x_86); +lean_ctor_set(x_11, 1, x_99); +x_100 = lean_st_ref_set(x_3, x_10, x_13); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_102 = x_100; +} else { + lean_dec_ref(x_100); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_84); +lean_ctor_set(x_103, 1, x_101); +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_dec(x_80); +lean_dec(x_1); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_65); +lean_ctor_set(x_104, 1, x_66); +lean_ctor_set(x_11, 1, x_104); +x_105 = lean_st_ref_set(x_3, x_10, x_13); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_107 = x_105; +} else { + lean_dec_ref(x_105); + x_107 = lean_box(0); +} +x_108 = lean_box(0); +if (lean_is_scalar(x_107)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_107; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_106); +return x_109; +} +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint64_t x_116; uint64_t x_117; uint64_t x_118; uint64_t x_119; uint64_t x_120; uint64_t x_121; uint64_t x_122; size_t x_123; size_t x_124; size_t x_125; size_t x_126; size_t x_127; lean_object* x_128; uint8_t x_129; +x_110 = lean_ctor_get(x_11, 0); +x_111 = lean_ctor_get(x_11, 2); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_11); +x_112 = lean_ctor_get(x_12, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_12, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_114 = x_12; +} else { + lean_dec_ref(x_12); + x_114 = lean_box(0); +} +x_115 = lean_array_get_size(x_113); +x_116 = l_Lean_Name_hash___override(x_1); +x_117 = 32; +x_118 = lean_uint64_shift_right(x_116, x_117); +x_119 = lean_uint64_xor(x_116, x_118); +x_120 = 16; +x_121 = lean_uint64_shift_right(x_119, x_120); +x_122 = lean_uint64_xor(x_119, x_121); +x_123 = lean_uint64_to_usize(x_122); +x_124 = lean_usize_of_nat(x_115); +lean_dec(x_115); +x_125 = 1; +x_126 = lean_usize_sub(x_124, x_125); +x_127 = lean_usize_land(x_123, x_126); +x_128 = lean_array_uget(x_113, x_127); +x_129 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_128); +if (x_129 == 0) +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_130 = lean_unsigned_to_nat(1u); +x_131 = lean_nat_add(x_112, x_130); +lean_dec(x_112); +x_132 = lean_box(0); +x_133 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_133, 0, x_1); +lean_ctor_set(x_133, 1, x_132); +lean_ctor_set(x_133, 2, x_128); +x_134 = lean_array_uset(x_113, x_127, x_133); +x_135 = lean_unsigned_to_nat(4u); +x_136 = lean_nat_mul(x_131, x_135); +x_137 = lean_unsigned_to_nat(3u); +x_138 = lean_nat_div(x_136, x_137); +lean_dec(x_136); +x_139 = lean_array_get_size(x_134); +x_140 = lean_nat_dec_le(x_138, x_139); +lean_dec(x_139); +lean_dec(x_138); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_141 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_134); +if (lean_is_scalar(x_114)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_114; +} +lean_ctor_set(x_142, 0, x_131); +lean_ctor_set(x_142, 1, x_141); +x_143 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_143, 0, x_110); +lean_ctor_set(x_143, 1, x_142); +lean_ctor_set(x_143, 2, x_111); +lean_ctor_set(x_10, 1, x_143); +x_144 = lean_st_ref_set(x_3, x_10, x_13); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_146 = x_144; +} else { + lean_dec_ref(x_144); + x_146 = lean_box(0); +} +if (lean_is_scalar(x_146)) { + x_147 = lean_alloc_ctor(0, 2, 0); +} else { + x_147 = x_146; +} +lean_ctor_set(x_147, 0, x_132); +lean_ctor_set(x_147, 1, x_145); +return x_147; +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +if (lean_is_scalar(x_114)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_114; +} +lean_ctor_set(x_148, 0, x_131); +lean_ctor_set(x_148, 1, x_134); +x_149 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_149, 0, x_110); +lean_ctor_set(x_149, 1, x_148); +lean_ctor_set(x_149, 2, x_111); +lean_ctor_set(x_10, 1, x_149); +x_150 = lean_st_ref_set(x_3, x_10, x_13); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_152 = x_150; +} else { + lean_dec_ref(x_150); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(0, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_132); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_128); +lean_dec(x_1); +if (lean_is_scalar(x_114)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_114; +} +lean_ctor_set(x_154, 0, x_112); +lean_ctor_set(x_154, 1, x_113); +x_155 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_155, 0, x_110); +lean_ctor_set(x_155, 1, x_154); +lean_ctor_set(x_155, 2, x_111); +lean_ctor_set(x_10, 1, x_155); +x_156 = lean_st_ref_set(x_3, x_10, x_13); +x_157 = lean_ctor_get(x_156, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_158 = x_156; +} else { + lean_dec_ref(x_156); + x_158 = lean_box(0); +} +x_159 = lean_box(0); +if (lean_is_scalar(x_158)) { + x_160 = lean_alloc_ctor(0, 2, 0); +} else { + x_160 = x_158; +} +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_157); +return x_160; +} +} +} +else +{ +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; uint64_t x_169; uint64_t x_170; uint64_t x_171; uint64_t x_172; uint64_t x_173; uint64_t x_174; uint64_t x_175; size_t x_176; size_t x_177; size_t x_178; size_t x_179; size_t x_180; lean_object* x_181; uint8_t x_182; +x_161 = lean_ctor_get(x_10, 0); +lean_inc(x_161); +lean_dec(x_10); +x_162 = lean_ctor_get(x_11, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_11, 2); +lean_inc(x_163); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + lean_ctor_release(x_11, 2); + x_164 = x_11; +} else { + lean_dec_ref(x_11); + x_164 = lean_box(0); +} +x_165 = lean_ctor_get(x_12, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_12, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_167 = x_12; +} else { + lean_dec_ref(x_12); + x_167 = lean_box(0); +} +x_168 = lean_array_get_size(x_166); +x_169 = l_Lean_Name_hash___override(x_1); +x_170 = 32; +x_171 = lean_uint64_shift_right(x_169, x_170); +x_172 = lean_uint64_xor(x_169, x_171); +x_173 = 16; +x_174 = lean_uint64_shift_right(x_172, x_173); +x_175 = lean_uint64_xor(x_172, x_174); +x_176 = lean_uint64_to_usize(x_175); +x_177 = lean_usize_of_nat(x_168); +lean_dec(x_168); +x_178 = 1; +x_179 = lean_usize_sub(x_177, x_178); +x_180 = lean_usize_land(x_176, x_179); +x_181 = lean_array_uget(x_166, x_180); +x_182 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_181); +if (x_182 == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; +x_183 = lean_unsigned_to_nat(1u); +x_184 = lean_nat_add(x_165, x_183); +lean_dec(x_165); +x_185 = lean_box(0); +x_186 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_186, 0, x_1); +lean_ctor_set(x_186, 1, x_185); +lean_ctor_set(x_186, 2, x_181); +x_187 = lean_array_uset(x_166, x_180, x_186); +x_188 = lean_unsigned_to_nat(4u); +x_189 = lean_nat_mul(x_184, x_188); +x_190 = lean_unsigned_to_nat(3u); +x_191 = lean_nat_div(x_189, x_190); +lean_dec(x_189); +x_192 = lean_array_get_size(x_187); +x_193 = lean_nat_dec_le(x_191, x_192); +lean_dec(x_192); +lean_dec(x_191); +if (x_193 == 0) +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_194 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_187); +if (lean_is_scalar(x_167)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_167; +} +lean_ctor_set(x_195, 0, x_184); +lean_ctor_set(x_195, 1, x_194); +if (lean_is_scalar(x_164)) { + x_196 = lean_alloc_ctor(0, 3, 0); +} else { + x_196 = x_164; +} +lean_ctor_set(x_196, 0, x_162); +lean_ctor_set(x_196, 1, x_195); +lean_ctor_set(x_196, 2, x_163); +x_197 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_197, 0, x_161); +lean_ctor_set(x_197, 1, x_196); +x_198 = lean_st_ref_set(x_3, x_197, x_13); +x_199 = lean_ctor_get(x_198, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_200 = x_198; +} else { + lean_dec_ref(x_198); + x_200 = lean_box(0); +} +if (lean_is_scalar(x_200)) { + x_201 = lean_alloc_ctor(0, 2, 0); +} else { + x_201 = x_200; +} +lean_ctor_set(x_201, 0, x_185); +lean_ctor_set(x_201, 1, x_199); +return x_201; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +if (lean_is_scalar(x_167)) { + x_202 = lean_alloc_ctor(0, 2, 0); +} else { + x_202 = x_167; +} +lean_ctor_set(x_202, 0, x_184); +lean_ctor_set(x_202, 1, x_187); +if (lean_is_scalar(x_164)) { + x_203 = lean_alloc_ctor(0, 3, 0); +} else { + x_203 = x_164; +} +lean_ctor_set(x_203, 0, x_162); +lean_ctor_set(x_203, 1, x_202); +lean_ctor_set(x_203, 2, x_163); +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_161); +lean_ctor_set(x_204, 1, x_203); +x_205 = lean_st_ref_set(x_3, x_204, x_13); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; +} else { + lean_dec_ref(x_205); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_185); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +lean_dec(x_181); +lean_dec(x_1); +if (lean_is_scalar(x_167)) { + x_209 = lean_alloc_ctor(0, 2, 0); +} else { + x_209 = x_167; +} +lean_ctor_set(x_209, 0, x_165); +lean_ctor_set(x_209, 1, x_166); +if (lean_is_scalar(x_164)) { + x_210 = lean_alloc_ctor(0, 3, 0); +} else { + x_210 = x_164; +} +lean_ctor_set(x_210, 0, x_162); +lean_ctor_set(x_210, 1, x_209); +lean_ctor_set(x_210, 2, x_163); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_161); +lean_ctor_set(x_211, 1, x_210); +x_212 = lean_st_ref_set(x_3, x_211, x_13); +x_213 = lean_ctor_get(x_212, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_214 = x_212; +} else { + lean_dec_ref(x_212); + x_214 = lean_box(0); +} +x_215 = lean_box(0); +if (lean_is_scalar(x_214)) { + x_216 = lean_alloc_ctor(0, 2, 0); +} else { + x_216 = x_214; +} +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_213); +return x_216; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markInterestingEnum___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markInterestingEnum(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markUninterestingType(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_9 = lean_st_ref_take(x_3, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +x_12 = lean_ctor_get(x_11, 2); +lean_inc(x_12); +x_13 = lean_ctor_get(x_9, 1); +lean_inc(x_13); +lean_dec(x_9); +x_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +lean_object* x_15; uint8_t x_16; +x_15 = lean_ctor_get(x_10, 1); +lean_dec(x_15); +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = lean_ctor_get(x_11, 2); +lean_dec(x_17); +x_18 = !lean_is_exclusive(x_12); +if (x_18 == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; size_t x_29; size_t x_30; size_t x_31; size_t x_32; size_t x_33; lean_object* x_34; uint8_t x_35; +x_19 = lean_ctor_get(x_12, 0); +x_20 = lean_ctor_get(x_12, 1); +x_21 = lean_array_get_size(x_20); +x_22 = l_Lean_Name_hash___override(x_1); +x_23 = 32; +x_24 = lean_uint64_shift_right(x_22, x_23); +x_25 = lean_uint64_xor(x_22, x_24); +x_26 = 16; +x_27 = lean_uint64_shift_right(x_25, x_26); +x_28 = lean_uint64_xor(x_25, x_27); +x_29 = lean_uint64_to_usize(x_28); +x_30 = lean_usize_of_nat(x_21); +lean_dec(x_21); +x_31 = 1; +x_32 = lean_usize_sub(x_30, x_31); +x_33 = lean_usize_land(x_29, x_32); +x_34 = lean_array_uget(x_20, x_33); +x_35 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_34); +if (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; lean_object* x_45; uint8_t x_46; +x_36 = lean_unsigned_to_nat(1u); +x_37 = lean_nat_add(x_19, x_36); +lean_dec(x_19); +x_38 = lean_box(0); +x_39 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_39, 0, x_1); +lean_ctor_set(x_39, 1, x_38); +lean_ctor_set(x_39, 2, x_34); +x_40 = lean_array_uset(x_20, x_33, x_39); +x_41 = lean_unsigned_to_nat(4u); +x_42 = lean_nat_mul(x_37, x_41); +x_43 = lean_unsigned_to_nat(3u); +x_44 = lean_nat_div(x_42, x_43); +lean_dec(x_42); +x_45 = lean_array_get_size(x_40); +x_46 = lean_nat_dec_le(x_44, x_45); +lean_dec(x_45); +lean_dec(x_44); +if (x_46 == 0) +{ +lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_47 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_40); +lean_ctor_set(x_12, 1, x_47); +lean_ctor_set(x_12, 0, x_37); +x_48 = lean_st_ref_set(x_3, x_10, x_13); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_48, 0); +lean_dec(x_50); +lean_ctor_set(x_48, 0, x_38); +return x_48; +} +else +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_48, 1); +lean_inc(x_51); +lean_dec(x_48); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_38); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +else +{ +lean_object* x_53; uint8_t x_54; +lean_ctor_set(x_12, 1, x_40); +lean_ctor_set(x_12, 0, x_37); +x_53 = lean_st_ref_set(x_3, x_10, x_13); +x_54 = !lean_is_exclusive(x_53); +if (x_54 == 0) +{ +lean_object* x_55; +x_55 = lean_ctor_get(x_53, 0); +lean_dec(x_55); +lean_ctor_set(x_53, 0, x_38); +return x_53; +} +else +{ +lean_object* x_56; lean_object* x_57; +x_56 = lean_ctor_get(x_53, 1); +lean_inc(x_56); +lean_dec(x_53); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_38); +lean_ctor_set(x_57, 1, x_56); +return x_57; +} +} +} +else +{ +lean_object* x_58; uint8_t x_59; +lean_dec(x_34); +lean_dec(x_1); +x_58 = lean_st_ref_set(x_3, x_10, x_13); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +x_61 = lean_box(0); +lean_ctor_set(x_58, 0, x_61); +return x_58; +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; +x_62 = lean_ctor_get(x_58, 1); +lean_inc(x_62); +lean_dec(x_58); +x_63 = lean_box(0); +x_64 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_64, 0, x_63); +lean_ctor_set(x_64, 1, x_62); +return x_64; +} +} +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; uint64_t x_71; uint64_t x_72; uint64_t x_73; uint64_t x_74; size_t x_75; size_t x_76; size_t x_77; size_t x_78; size_t x_79; lean_object* x_80; uint8_t x_81; +x_65 = lean_ctor_get(x_12, 0); +x_66 = lean_ctor_get(x_12, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_12); +x_67 = lean_array_get_size(x_66); +x_68 = l_Lean_Name_hash___override(x_1); +x_69 = 32; +x_70 = lean_uint64_shift_right(x_68, x_69); +x_71 = lean_uint64_xor(x_68, x_70); +x_72 = 16; +x_73 = lean_uint64_shift_right(x_71, x_72); +x_74 = lean_uint64_xor(x_71, x_73); +x_75 = lean_uint64_to_usize(x_74); +x_76 = lean_usize_of_nat(x_67); +lean_dec(x_67); +x_77 = 1; +x_78 = lean_usize_sub(x_76, x_77); +x_79 = lean_usize_land(x_75, x_78); +x_80 = lean_array_uget(x_66, x_79); +x_81 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_80); +if (x_81 == 0) +{ +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; uint8_t x_92; +x_82 = lean_unsigned_to_nat(1u); +x_83 = lean_nat_add(x_65, x_82); +lean_dec(x_65); +x_84 = lean_box(0); +x_85 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_85, 0, x_1); +lean_ctor_set(x_85, 1, x_84); +lean_ctor_set(x_85, 2, x_80); +x_86 = lean_array_uset(x_66, x_79, x_85); +x_87 = lean_unsigned_to_nat(4u); +x_88 = lean_nat_mul(x_83, x_87); +x_89 = lean_unsigned_to_nat(3u); +x_90 = lean_nat_div(x_88, x_89); +lean_dec(x_88); +x_91 = lean_array_get_size(x_86); +x_92 = lean_nat_dec_le(x_90, x_91); +lean_dec(x_91); +lean_dec(x_90); +if (x_92 == 0) +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; +x_93 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_86); +x_94 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_94, 0, x_83); +lean_ctor_set(x_94, 1, x_93); +lean_ctor_set(x_11, 2, x_94); +x_95 = lean_st_ref_set(x_3, x_10, x_13); +x_96 = lean_ctor_get(x_95, 1); +lean_inc(x_96); +if (lean_is_exclusive(x_95)) { + lean_ctor_release(x_95, 0); + lean_ctor_release(x_95, 1); + x_97 = x_95; +} else { + lean_dec_ref(x_95); + x_97 = lean_box(0); +} +if (lean_is_scalar(x_97)) { + x_98 = lean_alloc_ctor(0, 2, 0); +} else { + x_98 = x_97; +} +lean_ctor_set(x_98, 0, x_84); +lean_ctor_set(x_98, 1, x_96); +return x_98; +} +else +{ +lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_83); +lean_ctor_set(x_99, 1, x_86); +lean_ctor_set(x_11, 2, x_99); +x_100 = lean_st_ref_set(x_3, x_10, x_13); +x_101 = lean_ctor_get(x_100, 1); +lean_inc(x_101); +if (lean_is_exclusive(x_100)) { + lean_ctor_release(x_100, 0); + lean_ctor_release(x_100, 1); + x_102 = x_100; +} else { + lean_dec_ref(x_100); + x_102 = lean_box(0); +} +if (lean_is_scalar(x_102)) { + x_103 = lean_alloc_ctor(0, 2, 0); +} else { + x_103 = x_102; +} +lean_ctor_set(x_103, 0, x_84); +lean_ctor_set(x_103, 1, x_101); +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_dec(x_80); +lean_dec(x_1); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_65); +lean_ctor_set(x_104, 1, x_66); +lean_ctor_set(x_11, 2, x_104); +x_105 = lean_st_ref_set(x_3, x_10, x_13); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_107 = x_105; +} else { + lean_dec_ref(x_105); + x_107 = lean_box(0); +} +x_108 = lean_box(0); +if (lean_is_scalar(x_107)) { + x_109 = lean_alloc_ctor(0, 2, 0); +} else { + x_109 = x_107; +} +lean_ctor_set(x_109, 0, x_108); +lean_ctor_set(x_109, 1, x_106); +return x_109; +} +} +} +else +{ +lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint64_t x_116; uint64_t x_117; uint64_t x_118; uint64_t x_119; uint64_t x_120; uint64_t x_121; uint64_t x_122; size_t x_123; size_t x_124; size_t x_125; size_t x_126; size_t x_127; lean_object* x_128; uint8_t x_129; +x_110 = lean_ctor_get(x_11, 0); +x_111 = lean_ctor_get(x_11, 1); +lean_inc(x_111); +lean_inc(x_110); +lean_dec(x_11); +x_112 = lean_ctor_get(x_12, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_12, 1); +lean_inc(x_113); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_114 = x_12; +} else { + lean_dec_ref(x_12); + x_114 = lean_box(0); +} +x_115 = lean_array_get_size(x_113); +x_116 = l_Lean_Name_hash___override(x_1); +x_117 = 32; +x_118 = lean_uint64_shift_right(x_116, x_117); +x_119 = lean_uint64_xor(x_116, x_118); +x_120 = 16; +x_121 = lean_uint64_shift_right(x_119, x_120); +x_122 = lean_uint64_xor(x_119, x_121); +x_123 = lean_uint64_to_usize(x_122); +x_124 = lean_usize_of_nat(x_115); +lean_dec(x_115); +x_125 = 1; +x_126 = lean_usize_sub(x_124, x_125); +x_127 = lean_usize_land(x_123, x_126); +x_128 = lean_array_uget(x_113, x_127); +x_129 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_128); +if (x_129 == 0) +{ +lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; uint8_t x_140; +x_130 = lean_unsigned_to_nat(1u); +x_131 = lean_nat_add(x_112, x_130); +lean_dec(x_112); +x_132 = lean_box(0); +x_133 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_133, 0, x_1); +lean_ctor_set(x_133, 1, x_132); +lean_ctor_set(x_133, 2, x_128); +x_134 = lean_array_uset(x_113, x_127, x_133); +x_135 = lean_unsigned_to_nat(4u); +x_136 = lean_nat_mul(x_131, x_135); +x_137 = lean_unsigned_to_nat(3u); +x_138 = lean_nat_div(x_136, x_137); +lean_dec(x_136); +x_139 = lean_array_get_size(x_134); +x_140 = lean_nat_dec_le(x_138, x_139); +lean_dec(x_139); +lean_dec(x_138); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; +x_141 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_134); +if (lean_is_scalar(x_114)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_114; +} +lean_ctor_set(x_142, 0, x_131); +lean_ctor_set(x_142, 1, x_141); +x_143 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_143, 0, x_110); +lean_ctor_set(x_143, 1, x_111); +lean_ctor_set(x_143, 2, x_142); +lean_ctor_set(x_10, 1, x_143); +x_144 = lean_st_ref_set(x_3, x_10, x_13); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_146 = x_144; +} else { + lean_dec_ref(x_144); + x_146 = lean_box(0); +} +if (lean_is_scalar(x_146)) { + x_147 = lean_alloc_ctor(0, 2, 0); +} else { + x_147 = x_146; +} +lean_ctor_set(x_147, 0, x_132); +lean_ctor_set(x_147, 1, x_145); +return x_147; +} +else +{ +lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; +if (lean_is_scalar(x_114)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_114; +} +lean_ctor_set(x_148, 0, x_131); +lean_ctor_set(x_148, 1, x_134); +x_149 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_149, 0, x_110); +lean_ctor_set(x_149, 1, x_111); +lean_ctor_set(x_149, 2, x_148); +lean_ctor_set(x_10, 1, x_149); +x_150 = lean_st_ref_set(x_3, x_10, x_13); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_152 = x_150; +} else { + lean_dec_ref(x_150); + x_152 = lean_box(0); +} +if (lean_is_scalar(x_152)) { + x_153 = lean_alloc_ctor(0, 2, 0); +} else { + x_153 = x_152; +} +lean_ctor_set(x_153, 0, x_132); +lean_ctor_set(x_153, 1, x_151); +return x_153; +} +} +else +{ +lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; +lean_dec(x_128); +lean_dec(x_1); +if (lean_is_scalar(x_114)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_114; +} +lean_ctor_set(x_154, 0, x_112); +lean_ctor_set(x_154, 1, x_113); +x_155 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_155, 0, x_110); +lean_ctor_set(x_155, 1, x_111); +lean_ctor_set(x_155, 2, x_154); +lean_ctor_set(x_10, 1, x_155); +x_156 = lean_st_ref_set(x_3, x_10, x_13); +x_157 = lean_ctor_get(x_156, 1); +lean_inc(x_157); +if (lean_is_exclusive(x_156)) { + lean_ctor_release(x_156, 0); + lean_ctor_release(x_156, 1); + x_158 = x_156; +} else { + lean_dec_ref(x_156); + x_158 = lean_box(0); +} +x_159 = lean_box(0); +if (lean_is_scalar(x_158)) { + x_160 = lean_alloc_ctor(0, 2, 0); +} else { + x_160 = x_158; +} +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_157); +return x_160; +} +} +} +else +{ +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; uint64_t x_169; uint64_t x_170; uint64_t x_171; uint64_t x_172; uint64_t x_173; uint64_t x_174; uint64_t x_175; size_t x_176; size_t x_177; size_t x_178; size_t x_179; size_t x_180; lean_object* x_181; uint8_t x_182; +x_161 = lean_ctor_get(x_10, 0); +lean_inc(x_161); +lean_dec(x_10); +x_162 = lean_ctor_get(x_11, 0); +lean_inc(x_162); +x_163 = lean_ctor_get(x_11, 1); +lean_inc(x_163); +if (lean_is_exclusive(x_11)) { + lean_ctor_release(x_11, 0); + lean_ctor_release(x_11, 1); + lean_ctor_release(x_11, 2); + x_164 = x_11; +} else { + lean_dec_ref(x_11); + x_164 = lean_box(0); +} +x_165 = lean_ctor_get(x_12, 0); +lean_inc(x_165); +x_166 = lean_ctor_get(x_12, 1); +lean_inc(x_166); +if (lean_is_exclusive(x_12)) { + lean_ctor_release(x_12, 0); + lean_ctor_release(x_12, 1); + x_167 = x_12; +} else { + lean_dec_ref(x_12); + x_167 = lean_box(0); +} +x_168 = lean_array_get_size(x_166); +x_169 = l_Lean_Name_hash___override(x_1); +x_170 = 32; +x_171 = lean_uint64_shift_right(x_169, x_170); +x_172 = lean_uint64_xor(x_169, x_171); +x_173 = 16; +x_174 = lean_uint64_shift_right(x_172, x_173); +x_175 = lean_uint64_xor(x_172, x_174); +x_176 = lean_uint64_to_usize(x_175); +x_177 = lean_usize_of_nat(x_168); +lean_dec(x_168); +x_178 = 1; +x_179 = lean_usize_sub(x_177, x_178); +x_180 = lean_usize_land(x_176, x_179); +x_181 = lean_array_uget(x_166, x_180); +x_182 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_181); +if (x_182 == 0) +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; uint8_t x_193; +x_183 = lean_unsigned_to_nat(1u); +x_184 = lean_nat_add(x_165, x_183); +lean_dec(x_165); +x_185 = lean_box(0); +x_186 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_186, 0, x_1); +lean_ctor_set(x_186, 1, x_185); +lean_ctor_set(x_186, 2, x_181); +x_187 = lean_array_uset(x_166, x_180, x_186); +x_188 = lean_unsigned_to_nat(4u); +x_189 = lean_nat_mul(x_184, x_188); +x_190 = lean_unsigned_to_nat(3u); +x_191 = lean_nat_div(x_189, x_190); +lean_dec(x_189); +x_192 = lean_array_get_size(x_187); +x_193 = lean_nat_dec_le(x_191, x_192); +lean_dec(x_192); +lean_dec(x_191); +if (x_193 == 0) +{ +lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; +x_194 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_187); +if (lean_is_scalar(x_167)) { + x_195 = lean_alloc_ctor(0, 2, 0); +} else { + x_195 = x_167; +} +lean_ctor_set(x_195, 0, x_184); +lean_ctor_set(x_195, 1, x_194); +if (lean_is_scalar(x_164)) { + x_196 = lean_alloc_ctor(0, 3, 0); +} else { + x_196 = x_164; +} +lean_ctor_set(x_196, 0, x_162); +lean_ctor_set(x_196, 1, x_163); +lean_ctor_set(x_196, 2, x_195); +x_197 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_197, 0, x_161); +lean_ctor_set(x_197, 1, x_196); +x_198 = lean_st_ref_set(x_3, x_197, x_13); +x_199 = lean_ctor_get(x_198, 1); +lean_inc(x_199); +if (lean_is_exclusive(x_198)) { + lean_ctor_release(x_198, 0); + lean_ctor_release(x_198, 1); + x_200 = x_198; +} else { + lean_dec_ref(x_198); + x_200 = lean_box(0); +} +if (lean_is_scalar(x_200)) { + x_201 = lean_alloc_ctor(0, 2, 0); +} else { + x_201 = x_200; +} +lean_ctor_set(x_201, 0, x_185); +lean_ctor_set(x_201, 1, x_199); +return x_201; +} +else +{ +lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; +if (lean_is_scalar(x_167)) { + x_202 = lean_alloc_ctor(0, 2, 0); +} else { + x_202 = x_167; +} +lean_ctor_set(x_202, 0, x_184); +lean_ctor_set(x_202, 1, x_187); +if (lean_is_scalar(x_164)) { + x_203 = lean_alloc_ctor(0, 3, 0); +} else { + x_203 = x_164; +} +lean_ctor_set(x_203, 0, x_162); +lean_ctor_set(x_203, 1, x_163); +lean_ctor_set(x_203, 2, x_202); +x_204 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_204, 0, x_161); +lean_ctor_set(x_204, 1, x_203); +x_205 = lean_st_ref_set(x_3, x_204, x_13); +x_206 = lean_ctor_get(x_205, 1); +lean_inc(x_206); +if (lean_is_exclusive(x_205)) { + lean_ctor_release(x_205, 0); + lean_ctor_release(x_205, 1); + x_207 = x_205; +} else { + lean_dec_ref(x_205); + x_207 = lean_box(0); +} +if (lean_is_scalar(x_207)) { + x_208 = lean_alloc_ctor(0, 2, 0); +} else { + x_208 = x_207; +} +lean_ctor_set(x_208, 0, x_185); +lean_ctor_set(x_208, 1, x_206); +return x_208; +} +} +else +{ +lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; +lean_dec(x_181); +lean_dec(x_1); +if (lean_is_scalar(x_167)) { + x_209 = lean_alloc_ctor(0, 2, 0); +} else { + x_209 = x_167; +} +lean_ctor_set(x_209, 0, x_165); +lean_ctor_set(x_209, 1, x_166); +if (lean_is_scalar(x_164)) { + x_210 = lean_alloc_ctor(0, 3, 0); +} else { + x_210 = x_164; +} +lean_ctor_set(x_210, 0, x_162); +lean_ctor_set(x_210, 1, x_163); +lean_ctor_set(x_210, 2, x_209); +x_211 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_211, 0, x_161); +lean_ctor_set(x_211, 1, x_210); +x_212 = lean_st_ref_set(x_3, x_211, x_13); +x_213 = lean_ctor_get(x_212, 1); +lean_inc(x_213); +if (lean_is_exclusive(x_212)) { + lean_ctor_release(x_212, 0); + lean_ctor_release(x_212, 1); + x_214 = x_212; +} else { + lean_dec_ref(x_212); + x_214 = lean_box(0); +} +x_215 = lean_box(0); +if (lean_is_scalar(x_214)) { + x_216 = lean_alloc_ctor(0, 2, 0); +} else { + x_216 = x_214; +} +lean_ctor_set(x_216, 0, x_215); +lean_ctor_set(x_216, 1, x_213); +return x_216; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markUninterestingType___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_markUninterestingType(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__1() { _start: { @@ -540,6 +3098,50 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Meta_getPropHyps), 5, 0); return x_1; } } +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(10u); +x_2 = lean_unsigned_to_nat(1u); +x_3 = l_Nat_nextPowerOfTwo_go(x_1, x_2, lean_box(0)); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__2; +x_3 = lean_mk_array(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__3; +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_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__5() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__4; +x_2 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_2, 0, x_1); +lean_ctor_set(x_2, 1, x_1); +lean_ctor_set(x_2, 2, x_1); +return x_2; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg(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: { @@ -552,7 +3154,7 @@ lean_inc(x_4); x_10 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_2, x_9, x_4, x_5, x_6, x_7, x_8); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; x_11 = lean_ctor_get(x_10, 0); lean_inc(x_11); x_12 = lean_ctor_get(x_10, 1); @@ -575,95 +3177,99 @@ x_22 = lean_unsigned_to_nat(0u); x_23 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_23, 0, x_22); lean_ctor_set(x_23, 1, x_21); -x_24 = lean_st_mk_ref(x_23, x_12); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -lean_inc(x_25); -x_27 = lean_apply_7(x_3, x_1, x_25, x_4, x_5, x_6, x_7, x_26); -if (lean_obj_tag(x_27) == 0) -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = lean_ctor_get(x_27, 0); +x_24 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__5; +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_23); +lean_ctor_set(x_25, 1, x_24); +x_26 = lean_st_mk_ref(x_25, x_12); +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); lean_inc(x_28); -x_29 = lean_ctor_get(x_27, 1); -lean_inc(x_29); -lean_dec(x_27); -x_30 = lean_st_ref_get(x_25, x_29); -lean_dec(x_25); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +lean_dec(x_26); +lean_inc(x_27); +x_29 = lean_apply_7(x_3, x_1, x_27, x_4, x_5, x_6, x_7, x_28); +if (lean_obj_tag(x_29) == 0) { -lean_object* x_32; -x_32 = lean_ctor_get(x_30, 0); +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_29, 1); +lean_inc(x_31); +lean_dec(x_29); +x_32 = lean_st_ref_get(x_27, x_31); +lean_dec(x_27); +x_33 = !lean_is_exclusive(x_32); +if (x_33 == 0) +{ +lean_object* x_34; +x_34 = lean_ctor_get(x_32, 0); +lean_dec(x_34); +lean_ctor_set(x_32, 0, x_30); +return x_32; +} +else +{ +lean_object* x_35; lean_object* x_36; +x_35 = lean_ctor_get(x_32, 1); +lean_inc(x_35); lean_dec(x_32); -lean_ctor_set(x_30, 0, x_28); -return x_30; -} -else -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_30, 1); -lean_inc(x_33); -lean_dec(x_30); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_28); -lean_ctor_set(x_34, 1, x_33); -return x_34; +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_30); +lean_ctor_set(x_36, 1, x_35); +return x_36; } } else { -uint8_t x_35; -lean_dec(x_25); -x_35 = !lean_is_exclusive(x_27); -if (x_35 == 0) -{ -return x_27; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_27, 0); -x_37 = lean_ctor_get(x_27, 1); -lean_inc(x_37); -lean_inc(x_36); +uint8_t x_37; lean_dec(x_27); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; +x_37 = !lean_is_exclusive(x_29); +if (x_37 == 0) +{ +return x_29; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; +x_38 = lean_ctor_get(x_29, 0); +x_39 = lean_ctor_get(x_29, 1); +lean_inc(x_39); +lean_inc(x_38); +lean_dec(x_29); +x_40 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_40, 0, x_38); +lean_ctor_set(x_40, 1, x_39); +return x_40; } } } else { -uint8_t x_39; +uint8_t x_41; 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_39 = !lean_is_exclusive(x_10); -if (x_39 == 0) +x_41 = !lean_is_exclusive(x_10); +if (x_41 == 0) { return x_10; } else { -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_10, 0); -x_41 = lean_ctor_get(x_10, 1); -lean_inc(x_41); -lean_inc(x_40); +lean_object* x_42; lean_object* x_43; lean_object* x_44; +x_42 = lean_ctor_get(x_10, 0); +x_43 = lean_ctor_get(x_10, 1); +lean_inc(x_43); +lean_inc(x_42); lean_dec(x_10); -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; +x_44 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +return x_44; } } } @@ -3651,152 +6257,164 @@ lean_dec(x_5); x_18 = !lean_is_exclusive(x_6); if (x_18 == 0) { -lean_object* x_19; lean_object* x_20; lean_object* x_21; +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; x_19 = lean_ctor_get(x_6, 1); x_20 = lean_ctor_get(x_6, 0); lean_dec(x_20); +lean_inc(x_19); +lean_inc(x_16); +x_21 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__1___boxed), 10, 2); +lean_closure_set(x_21, 0, x_16); +lean_closure_set(x_21, 1, x_19); +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_dec(x_16); +lean_inc(x_19); +x_23 = lean_apply_1(x_22, x_19); +x_24 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___closed__2; +x_25 = 1; +x_26 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__1___closed__5; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_19); -x_21 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run(x_16, x_19, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_21) == 0) +x_27 = l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1(x_24, x_21, x_23, x_25, x_26, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_27) == 0) { -lean_object* x_22; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) +lean_object* x_28; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +if (lean_obj_tag(x_28) == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_free_object(x_6); lean_dec(x_17); lean_dec(x_3); -x_23 = lean_ctor_get(x_21, 1); -lean_inc(x_23); -lean_dec(x_21); -x_24 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___closed__3; -x_25 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__2(x_24, x_8, x_9, x_10, x_11, x_12, x_13, x_23); -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) +x_29 = lean_ctor_get(x_27, 1); +lean_inc(x_29); +lean_dec(x_27); +x_30 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___closed__3; +x_31 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__2(x_30, x_8, x_9, x_10, x_11, x_12, x_13, x_29); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_unbox(x_32); +lean_dec(x_32); +if (x_33 == 0) { -lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; -x_28 = lean_ctor_get(x_25, 1); -lean_inc(x_28); -lean_dec(x_25); -x_29 = lean_box(0); -x_30 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___lambda__1(x_19, x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_28); +lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; +x_34 = lean_ctor_get(x_31, 1); +lean_inc(x_34); +lean_dec(x_31); +x_35 = lean_box(0); +x_36 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___lambda__1(x_19, x_35, x_8, x_9, x_10, x_11, x_12, x_13, x_34); lean_dec(x_13); lean_dec(x_12); lean_dec(x_11); lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); -x_31 = !lean_is_exclusive(x_30); -if (x_31 == 0) +x_37 = !lean_is_exclusive(x_36); +if (x_37 == 0) { -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_30, 0); -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -lean_dec(x_32); -lean_ctor_set(x_30, 0, x_33); -return x_30; +lean_object* x_38; lean_object* x_39; +x_38 = lean_ctor_get(x_36, 0); +x_39 = lean_ctor_get(x_38, 0); +lean_inc(x_39); +lean_dec(x_38); +lean_ctor_set(x_36, 0, x_39); +return x_36; } else { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_34 = lean_ctor_get(x_30, 0); -x_35 = lean_ctor_get(x_30, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_30); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_35); -return x_37; -} -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -x_38 = lean_ctor_get(x_25, 1); -lean_inc(x_38); -lean_dec(x_25); -x_39 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___closed__5; -x_40 = l_Lean_addTrace___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__1(x_24, x_39, x_8, x_9, x_10, x_11, x_12, x_13, x_38); -x_41 = lean_ctor_get(x_40, 0); +lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_40 = lean_ctor_get(x_36, 0); +x_41 = lean_ctor_get(x_36, 1); lean_inc(x_41); -x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_40); +lean_dec(x_36); +x_42 = lean_ctor_get(x_40, 0); lean_inc(x_42); lean_dec(x_40); -x_43 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___lambda__1(x_19, x_41, x_8, x_9, x_10, x_11, x_12, x_13, x_42); +x_43 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_41); +return x_43; +} +} +else +{ +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; +x_44 = lean_ctor_get(x_31, 1); +lean_inc(x_44); +lean_dec(x_31); +x_45 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___closed__5; +x_46 = l_Lean_addTrace___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__1(x_30, x_45, x_8, x_9, x_10, x_11, x_12, x_13, x_44); +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___lambda__1(x_19, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_48); 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_41); -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); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -lean_dec(x_45); -lean_ctor_set(x_43, 0, x_46); -return x_43; -} -else -{ -lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; -x_47 = lean_ctor_get(x_43, 0); -x_48 = lean_ctor_get(x_43, 1); -lean_inc(x_48); -lean_inc(x_47); -lean_dec(x_43); -x_49 = lean_ctor_get(x_47, 0); -lean_inc(x_49); lean_dec(x_47); -x_50 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_50, 0, x_49); -lean_ctor_set(x_50, 1, x_48); -return x_50; -} -} -} -else +x_50 = !lean_is_exclusive(x_49); +if (x_50 == 0) { lean_object* x_51; lean_object* x_52; -lean_dec(x_19); -x_51 = lean_ctor_get(x_21, 1); -lean_inc(x_51); -lean_dec(x_21); -x_52 = lean_ctor_get(x_22, 0); +x_51 = lean_ctor_get(x_49, 0); +x_52 = lean_ctor_get(x_51, 0); lean_inc(x_52); -lean_dec(x_22); +lean_dec(x_51); +lean_ctor_set(x_49, 0, x_52); +return x_49; +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_53 = lean_ctor_get(x_49, 0); +x_54 = lean_ctor_get(x_49, 1); +lean_inc(x_54); +lean_inc(x_53); +lean_dec(x_49); +x_55 = lean_ctor_get(x_53, 0); +lean_inc(x_55); +lean_dec(x_53); +x_56 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +} +} +else +{ +lean_object* x_57; lean_object* x_58; +lean_dec(x_19); +x_57 = lean_ctor_get(x_27, 1); +lean_inc(x_57); +lean_dec(x_27); +x_58 = lean_ctor_get(x_28, 0); +lean_inc(x_58); +lean_dec(x_28); lean_inc(x_3); -lean_ctor_set(x_6, 1, x_52); +lean_ctor_set(x_6, 1, x_58); lean_ctor_set(x_6, 0, x_3); x_5 = x_17; x_7 = lean_box(0); -x_14 = x_51; +x_14 = x_57; goto _start; } } else { -uint8_t x_54; +uint8_t x_60; lean_free_object(x_6); lean_dec(x_19); lean_dec(x_17); @@ -3807,168 +6425,180 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); -x_54 = !lean_is_exclusive(x_21); -if (x_54 == 0) +x_60 = !lean_is_exclusive(x_27); +if (x_60 == 0) { -return x_21; +return x_27; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_21, 0); -x_56 = lean_ctor_get(x_21, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_21); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_27, 0); +x_62 = lean_ctor_get(x_27, 1); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_27); +x_63 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +return x_63; } } } else { -lean_object* x_58; lean_object* x_59; -x_58 = lean_ctor_get(x_6, 1); -lean_inc(x_58); +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; +x_64 = lean_ctor_get(x_6, 1); +lean_inc(x_64); lean_dec(x_6); +lean_inc(x_64); +lean_inc(x_16); +x_65 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__1___boxed), 10, 2); +lean_closure_set(x_65, 0, x_16); +lean_closure_set(x_65, 1, x_64); +x_66 = lean_ctor_get(x_16, 1); +lean_inc(x_66); +lean_dec(x_16); +lean_inc(x_64); +x_67 = lean_apply_1(x_66, x_64); +x_68 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___closed__2; +x_69 = 1; +x_70 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___lambda__1___closed__5; lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_58); -x_59 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run(x_16, x_58, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_59) == 0) +x_71 = l_Lean_withTraceNode___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__1(x_68, x_65, x_67, x_69, x_70, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_71) == 0) { -lean_object* x_60; -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -if (lean_obj_tag(x_60) == 0) +lean_object* x_72; +x_72 = lean_ctor_get(x_71, 0); +lean_inc(x_72); +if (lean_obj_tag(x_72) == 0) { -lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_dec(x_17); lean_dec(x_3); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -lean_dec(x_59); -x_62 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___closed__3; -x_63 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__2(x_62, x_8, x_9, x_10, x_11, x_12, x_13, x_61); -x_64 = lean_ctor_get(x_63, 0); -lean_inc(x_64); -x_65 = lean_unbox(x_64); -lean_dec(x_64); -if (x_65 == 0) -{ -lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_66 = lean_ctor_get(x_63, 1); -lean_inc(x_66); -lean_dec(x_63); -x_67 = lean_box(0); -x_68 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___lambda__1(x_58, x_67, x_8, x_9, x_10, x_11, x_12, x_13, x_66); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_69 = lean_ctor_get(x_68, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_68, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_68)) { - lean_ctor_release(x_68, 0); - lean_ctor_release(x_68, 1); - x_71 = x_68; -} else { - lean_dec_ref(x_68); - x_71 = lean_box(0); -} -x_72 = lean_ctor_get(x_69, 0); -lean_inc(x_72); -lean_dec(x_69); -if (lean_is_scalar(x_71)) { - x_73 = lean_alloc_ctor(0, 2, 0); -} else { - x_73 = x_71; -} -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_70); -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; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_74 = lean_ctor_get(x_63, 1); -lean_inc(x_74); -lean_dec(x_63); -x_75 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___closed__5; -x_76 = l_Lean_addTrace___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__1(x_62, x_75, x_8, x_9, x_10, x_11, x_12, x_13, x_74); -x_77 = lean_ctor_get(x_76, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_76, 1); -lean_inc(x_78); +x_73 = lean_ctor_get(x_71, 1); +lean_inc(x_73); +lean_dec(x_71); +x_74 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___closed__3; +x_75 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__2(x_74, x_8, x_9, x_10, x_11, x_12, x_13, x_73); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_unbox(x_76); lean_dec(x_76); -x_79 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___lambda__1(x_58, x_77, x_8, x_9, x_10, x_11, x_12, x_13, x_78); +if (x_77 == 0) +{ +lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_78 = lean_ctor_get(x_75, 1); +lean_inc(x_78); +lean_dec(x_75); +x_79 = lean_box(0); +x_80 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___lambda__1(x_64, x_79, x_8, x_9, x_10, x_11, x_12, x_13, x_78); 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_77); -x_80 = lean_ctor_get(x_79, 0); -lean_inc(x_80); -x_81 = lean_ctor_get(x_79, 1); +x_81 = lean_ctor_get(x_80, 0); lean_inc(x_81); -if (lean_is_exclusive(x_79)) { - lean_ctor_release(x_79, 0); - lean_ctor_release(x_79, 1); - x_82 = x_79; +x_82 = lean_ctor_get(x_80, 1); +lean_inc(x_82); +if (lean_is_exclusive(x_80)) { + lean_ctor_release(x_80, 0); + lean_ctor_release(x_80, 1); + x_83 = x_80; } else { - lean_dec_ref(x_79); - x_82 = lean_box(0); + lean_dec_ref(x_80); + x_83 = lean_box(0); } -x_83 = lean_ctor_get(x_80, 0); -lean_inc(x_83); -lean_dec(x_80); -if (lean_is_scalar(x_82)) { - x_84 = lean_alloc_ctor(0, 2, 0); +x_84 = lean_ctor_get(x_81, 0); +lean_inc(x_84); +lean_dec(x_81); +if (lean_is_scalar(x_83)) { + x_85 = lean_alloc_ctor(0, 2, 0); } else { - x_84 = x_82; + x_85 = x_83; } -lean_ctor_set(x_84, 0, x_83); -lean_ctor_set(x_84, 1, x_81); -return x_84; +lean_ctor_set(x_85, 0, x_84); +lean_ctor_set(x_85, 1, x_82); +return x_85; +} +else +{ +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; +x_86 = lean_ctor_get(x_75, 1); +lean_inc(x_86); +lean_dec(x_75); +x_87 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___closed__5; +x_88 = l_Lean_addTrace___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__1(x_74, x_87, x_8, x_9, x_10, x_11, x_12, x_13, x_86); +x_89 = lean_ctor_get(x_88, 0); +lean_inc(x_89); +x_90 = lean_ctor_get(x_88, 1); +lean_inc(x_90); +lean_dec(x_88); +x_91 = l_List_forIn_x27_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__2___lambda__1(x_64, x_89, x_8, x_9, x_10, x_11, x_12, x_13, x_90); +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_89); +x_92 = lean_ctor_get(x_91, 0); +lean_inc(x_92); +x_93 = lean_ctor_get(x_91, 1); +lean_inc(x_93); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_94 = x_91; +} else { + lean_dec_ref(x_91); + x_94 = lean_box(0); +} +x_95 = lean_ctor_get(x_92, 0); +lean_inc(x_95); +lean_dec(x_92); +if (lean_is_scalar(x_94)) { + x_96 = lean_alloc_ctor(0, 2, 0); +} else { + x_96 = x_94; +} +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_93); +return x_96; } } else { -lean_object* x_85; lean_object* x_86; lean_object* x_87; -lean_dec(x_58); -x_85 = lean_ctor_get(x_59, 1); -lean_inc(x_85); -lean_dec(x_59); -x_86 = lean_ctor_get(x_60, 0); -lean_inc(x_86); -lean_dec(x_60); +lean_object* x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_64); +x_97 = lean_ctor_get(x_71, 1); +lean_inc(x_97); +lean_dec(x_71); +x_98 = lean_ctor_get(x_72, 0); +lean_inc(x_98); +lean_dec(x_72); lean_inc(x_3); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_3); -lean_ctor_set(x_87, 1, x_86); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_3); +lean_ctor_set(x_99, 1, x_98); x_5 = x_17; -x_6 = x_87; +x_6 = x_99; x_7 = lean_box(0); -x_14 = x_85; +x_14 = x_97; goto _start; } } else { -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; -lean_dec(x_58); +lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; +lean_dec(x_64); lean_dec(x_17); lean_dec(x_13); lean_dec(x_12); @@ -3977,26 +6607,26 @@ lean_dec(x_10); lean_dec(x_9); lean_dec(x_8); lean_dec(x_3); -x_89 = lean_ctor_get(x_59, 0); -lean_inc(x_89); -x_90 = lean_ctor_get(x_59, 1); -lean_inc(x_90); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_91 = x_59; +x_101 = lean_ctor_get(x_71, 0); +lean_inc(x_101); +x_102 = lean_ctor_get(x_71, 1); +lean_inc(x_102); +if (lean_is_exclusive(x_71)) { + lean_ctor_release(x_71, 0); + lean_ctor_release(x_71, 1); + x_103 = x_71; } else { - lean_dec_ref(x_59); - x_91 = lean_box(0); + lean_dec_ref(x_71); + x_103 = lean_box(0); } -if (lean_is_scalar(x_91)) { - x_92 = lean_alloc_ctor(1, 2, 0); +if (lean_is_scalar(x_103)) { + x_104 = lean_alloc_ctor(1, 2, 0); } else { - x_92 = x_91; + x_104 = x_103; } -lean_ctor_set(x_92, 0, x_89); -lean_ctor_set(x_92, 1, x_90); -return x_92; +lean_ctor_set(x_104, 0, x_101); +lean_ctor_set(x_104, 1, x_102); +return x_104; } } } @@ -4383,8 +7013,20 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Tactic_BVDecide_Frontend_Attr(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_lookupInterestingStructure___closed__2); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__3); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__4 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__4); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__5 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_PreProcessM_run___rarg___closed__5); l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3___rarg___closed__1 = _init_l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3___rarg___closed__1(); lean_mark_persistent(l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3___rarg___closed__1); l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3___rarg___closed__2 = _init_l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__3___rarg___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Rewrite.c b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Rewrite.c index 5252a009e4..468f794f4e 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Rewrite.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Rewrite.c @@ -96,62 +96,65 @@ uint8_t x_12; x_12 = lean_usize_dec_eq(x_2, x_3); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; size_t x_30; lean_object* x_31; uint8_t x_32; +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; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; size_t x_27; size_t x_28; size_t x_29; size_t x_30; size_t x_31; lean_object* x_32; uint8_t x_33; x_13 = lean_array_uget(x_1, x_2); x_14 = lean_st_ref_get(x_6, x_11); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); -lean_dec(x_14); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); lean_dec(x_15); -x_18 = lean_array_get_size(x_17); -x_19 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13); -x_20 = 32; -x_21 = lean_uint64_shift_right(x_19, x_20); -x_22 = lean_uint64_xor(x_19, x_21); -x_23 = 16; -x_24 = lean_uint64_shift_right(x_22, x_23); -x_25 = lean_uint64_xor(x_22, x_24); -x_26 = lean_uint64_to_usize(x_25); -x_27 = lean_usize_of_nat(x_18); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); +lean_dec(x_16); +x_19 = lean_array_get_size(x_18); +x_20 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13); +x_21 = 32; +x_22 = lean_uint64_shift_right(x_20, x_21); +x_23 = lean_uint64_xor(x_20, x_22); +x_24 = 16; +x_25 = lean_uint64_shift_right(x_23, x_24); +x_26 = lean_uint64_xor(x_23, x_25); +x_27 = lean_uint64_to_usize(x_26); +x_28 = lean_usize_of_nat(x_19); +lean_dec(x_19); +x_29 = 1; +x_30 = lean_usize_sub(x_28, x_29); +x_31 = lean_usize_land(x_27, x_30); +x_32 = lean_array_uget(x_18, x_31); lean_dec(x_18); -x_28 = 1; -x_29 = lean_usize_sub(x_27, x_28); -x_30 = lean_usize_land(x_26, x_29); -x_31 = lean_array_uget(x_17, x_30); -lean_dec(x_17); -x_32 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_31); -lean_dec(x_31); -if (x_32 == 0) +x_33 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_32); +lean_dec(x_32); +if (x_33 == 0) { -lean_object* x_33; size_t x_34; -x_33 = lean_array_push(x_4, x_13); -x_34 = lean_usize_add(x_2, x_28); -x_2 = x_34; -x_4 = x_33; -x_11 = x_16; +lean_object* x_34; size_t x_35; +x_34 = lean_array_push(x_4, x_13); +x_35 = lean_usize_add(x_2, x_29); +x_2 = x_35; +x_4 = x_34; +x_11 = x_17; goto _start; } else { -size_t x_36; +size_t x_37; lean_dec(x_13); -x_36 = lean_usize_add(x_2, x_28); -x_2 = x_36; -x_11 = x_16; +x_37 = lean_usize_add(x_2, x_29); +x_2 = x_37; +x_11 = x_17; goto _start; } } else { -lean_object* x_38; -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_4); -lean_ctor_set(x_38, 1, x_11); -return x_38; +lean_object* x_39; +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_4); +lean_ctor_set(x_39, 1, x_11); +return x_39; } } } @@ -417,214 +420,356 @@ uint8_t x_12; x_12 = lean_usize_dec_eq(x_2, x_3); if (x_12 == 0) { -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +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_dec(x_4); x_13 = lean_array_uget(x_1, x_2); x_14 = lean_st_ref_take(x_6, x_11); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); +x_16 = lean_ctor_get(x_15, 0); lean_inc(x_16); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); lean_dec(x_14); -x_17 = !lean_is_exclusive(x_15); -if (x_17 == 0) +x_18 = !lean_is_exclusive(x_15); +if (x_18 == 0) { -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; size_t x_28; size_t x_29; size_t x_30; size_t x_31; size_t x_32; lean_object* x_33; uint8_t x_34; -x_18 = lean_ctor_get(x_15, 0); -x_19 = lean_ctor_get(x_15, 1); -x_20 = lean_array_get_size(x_19); -x_21 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13); -x_22 = 32; -x_23 = lean_uint64_shift_right(x_21, x_22); -x_24 = lean_uint64_xor(x_21, x_23); -x_25 = 16; +lean_object* x_19; uint8_t x_20; +x_19 = lean_ctor_get(x_15, 0); +lean_dec(x_19); +x_20 = !lean_is_exclusive(x_16); +if (x_20 == 0) +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; uint64_t x_30; size_t x_31; size_t x_32; size_t x_33; size_t x_34; size_t x_35; lean_object* x_36; uint8_t x_37; +x_21 = lean_ctor_get(x_16, 0); +x_22 = lean_ctor_get(x_16, 1); +x_23 = lean_array_get_size(x_22); +x_24 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13); +x_25 = 32; x_26 = lean_uint64_shift_right(x_24, x_25); x_27 = lean_uint64_xor(x_24, x_26); -x_28 = lean_uint64_to_usize(x_27); -x_29 = lean_usize_of_nat(x_20); -lean_dec(x_20); -x_30 = 1; -x_31 = lean_usize_sub(x_29, x_30); -x_32 = lean_usize_land(x_28, x_31); -x_33 = lean_array_uget(x_19, x_32); -x_34 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_33); -if (x_34 == 0) +x_28 = 16; +x_29 = lean_uint64_shift_right(x_27, x_28); +x_30 = lean_uint64_xor(x_27, x_29); +x_31 = lean_uint64_to_usize(x_30); +x_32 = lean_usize_of_nat(x_23); +lean_dec(x_23); +x_33 = 1; +x_34 = lean_usize_sub(x_32, x_33); +x_35 = lean_usize_land(x_31, x_34); +x_36 = lean_array_uget(x_22, x_35); +x_37 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_36); +if (x_37 == 0) { -lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_35 = lean_unsigned_to_nat(1u); -x_36 = lean_nat_add(x_18, x_35); -lean_dec(x_18); -x_37 = lean_box(0); -x_38 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_38, 0, x_13); -lean_ctor_set(x_38, 1, x_37); -lean_ctor_set(x_38, 2, x_33); -x_39 = lean_array_uset(x_19, x_32, x_38); -x_40 = lean_unsigned_to_nat(4u); -x_41 = lean_nat_mul(x_36, x_40); -x_42 = lean_unsigned_to_nat(3u); -x_43 = lean_nat_div(x_41, x_42); -lean_dec(x_41); -x_44 = lean_array_get_size(x_39); -x_45 = lean_nat_dec_le(x_43, x_44); +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; +x_38 = lean_unsigned_to_nat(1u); +x_39 = lean_nat_add(x_21, x_38); +lean_dec(x_21); +x_40 = lean_box(0); +x_41 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_41, 0, x_13); +lean_ctor_set(x_41, 1, x_40); +lean_ctor_set(x_41, 2, x_36); +x_42 = lean_array_uset(x_22, x_35, x_41); +x_43 = lean_unsigned_to_nat(4u); +x_44 = lean_nat_mul(x_39, x_43); +x_45 = lean_unsigned_to_nat(3u); +x_46 = lean_nat_div(x_44, x_45); lean_dec(x_44); -lean_dec(x_43); -if (x_45 == 0) -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49; -x_46 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_39); -lean_ctor_set(x_15, 1, x_46); -lean_ctor_set(x_15, 0, x_36); -x_47 = lean_st_ref_set(x_6, x_15, x_16); -x_48 = lean_ctor_get(x_47, 1); -lean_inc(x_48); +x_47 = lean_array_get_size(x_42); +x_48 = lean_nat_dec_le(x_46, x_47); lean_dec(x_47); -x_49 = lean_usize_add(x_2, x_30); -x_2 = x_49; -x_4 = x_37; -x_11 = x_48; +lean_dec(x_46); +if (x_48 == 0) +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; size_t x_52; +x_49 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_42); +lean_ctor_set(x_16, 1, x_49); +lean_ctor_set(x_16, 0, x_39); +x_50 = lean_st_ref_set(x_6, x_15, x_17); +x_51 = lean_ctor_get(x_50, 1); +lean_inc(x_51); +lean_dec(x_50); +x_52 = lean_usize_add(x_2, x_33); +x_2 = x_52; +x_4 = x_40; +x_11 = x_51; goto _start; } else { -lean_object* x_51; lean_object* x_52; size_t x_53; -lean_ctor_set(x_15, 1, x_39); -lean_ctor_set(x_15, 0, x_36); -x_51 = lean_st_ref_set(x_6, x_15, x_16); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -lean_dec(x_51); -x_53 = lean_usize_add(x_2, x_30); -x_2 = x_53; -x_4 = x_37; -x_11 = x_52; +lean_object* x_54; lean_object* x_55; size_t x_56; +lean_ctor_set(x_16, 1, x_42); +lean_ctor_set(x_16, 0, x_39); +x_54 = lean_st_ref_set(x_6, x_15, x_17); +x_55 = lean_ctor_get(x_54, 1); +lean_inc(x_55); +lean_dec(x_54); +x_56 = lean_usize_add(x_2, x_33); +x_2 = x_56; +x_4 = x_40; +x_11 = x_55; goto _start; } } else { -lean_object* x_55; lean_object* x_56; size_t x_57; lean_object* x_58; -lean_dec(x_33); +lean_object* x_58; lean_object* x_59; size_t x_60; lean_object* x_61; +lean_dec(x_36); lean_dec(x_13); -x_55 = lean_st_ref_set(x_6, x_15, x_16); -x_56 = lean_ctor_get(x_55, 1); -lean_inc(x_56); -lean_dec(x_55); -x_57 = lean_usize_add(x_2, x_30); -x_58 = lean_box(0); -x_2 = x_57; -x_4 = x_58; -x_11 = x_56; +x_58 = lean_st_ref_set(x_6, x_15, x_17); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +x_60 = lean_usize_add(x_2, x_33); +x_61 = lean_box(0); +x_2 = x_60; +x_4 = x_61; +x_11 = x_59; goto _start; } } else { -lean_object* x_60; lean_object* x_61; lean_object* x_62; uint64_t x_63; uint64_t x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; uint64_t x_69; size_t x_70; size_t x_71; size_t x_72; size_t x_73; size_t x_74; lean_object* x_75; uint8_t x_76; -x_60 = lean_ctor_get(x_15, 0); -x_61 = lean_ctor_get(x_15, 1); -lean_inc(x_61); -lean_inc(x_60); -lean_dec(x_15); -x_62 = lean_array_get_size(x_61); -x_63 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13); -x_64 = 32; -x_65 = lean_uint64_shift_right(x_63, x_64); -x_66 = lean_uint64_xor(x_63, x_65); -x_67 = 16; +lean_object* x_63; lean_object* x_64; lean_object* x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; uint64_t x_71; uint64_t x_72; size_t x_73; size_t x_74; size_t x_75; size_t x_76; size_t x_77; lean_object* x_78; uint8_t x_79; +x_63 = lean_ctor_get(x_16, 0); +x_64 = lean_ctor_get(x_16, 1); +lean_inc(x_64); +lean_inc(x_63); +lean_dec(x_16); +x_65 = lean_array_get_size(x_64); +x_66 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13); +x_67 = 32; x_68 = lean_uint64_shift_right(x_66, x_67); x_69 = lean_uint64_xor(x_66, x_68); -x_70 = lean_uint64_to_usize(x_69); -x_71 = lean_usize_of_nat(x_62); -lean_dec(x_62); -x_72 = 1; -x_73 = lean_usize_sub(x_71, x_72); -x_74 = lean_usize_land(x_70, x_73); -x_75 = lean_array_uget(x_61, x_74); -x_76 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_75); -if (x_76 == 0) +x_70 = 16; +x_71 = lean_uint64_shift_right(x_69, x_70); +x_72 = lean_uint64_xor(x_69, x_71); +x_73 = lean_uint64_to_usize(x_72); +x_74 = lean_usize_of_nat(x_65); +lean_dec(x_65); +x_75 = 1; +x_76 = lean_usize_sub(x_74, x_75); +x_77 = lean_usize_land(x_73, x_76); +x_78 = lean_array_uget(x_64, x_77); +x_79 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_78); +if (x_79 == 0) { -lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -x_77 = lean_unsigned_to_nat(1u); -x_78 = lean_nat_add(x_60, x_77); -lean_dec(x_60); -x_79 = lean_box(0); -x_80 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_80, 0, x_13); -lean_ctor_set(x_80, 1, x_79); -lean_ctor_set(x_80, 2, x_75); -x_81 = lean_array_uset(x_61, x_74, x_80); -x_82 = lean_unsigned_to_nat(4u); -x_83 = lean_nat_mul(x_78, x_82); -x_84 = lean_unsigned_to_nat(3u); -x_85 = lean_nat_div(x_83, x_84); -lean_dec(x_83); -x_86 = lean_array_get_size(x_81); -x_87 = lean_nat_dec_le(x_85, x_86); +lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_80 = lean_unsigned_to_nat(1u); +x_81 = lean_nat_add(x_63, x_80); +lean_dec(x_63); +x_82 = lean_box(0); +x_83 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_83, 0, x_13); +lean_ctor_set(x_83, 1, x_82); +lean_ctor_set(x_83, 2, x_78); +x_84 = lean_array_uset(x_64, x_77, x_83); +x_85 = lean_unsigned_to_nat(4u); +x_86 = lean_nat_mul(x_81, x_85); +x_87 = lean_unsigned_to_nat(3u); +x_88 = lean_nat_div(x_86, x_87); lean_dec(x_86); -lean_dec(x_85); -if (x_87 == 0) +x_89 = lean_array_get_size(x_84); +x_90 = lean_nat_dec_le(x_88, x_89); +lean_dec(x_89); +lean_dec(x_88); +if (x_90 == 0) { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; size_t x_92; -x_88 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_81); -x_89 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_89, 0, x_78); -lean_ctor_set(x_89, 1, x_88); -x_90 = lean_st_ref_set(x_6, x_89, x_16); -x_91 = lean_ctor_get(x_90, 1); -lean_inc(x_91); -lean_dec(x_90); -x_92 = lean_usize_add(x_2, x_72); -x_2 = x_92; -x_4 = x_79; -x_11 = x_91; +lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; size_t x_95; +x_91 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_84); +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_81); +lean_ctor_set(x_92, 1, x_91); +lean_ctor_set(x_15, 0, x_92); +x_93 = lean_st_ref_set(x_6, x_15, x_17); +x_94 = lean_ctor_get(x_93, 1); +lean_inc(x_94); +lean_dec(x_93); +x_95 = lean_usize_add(x_2, x_75); +x_2 = x_95; +x_4 = x_82; +x_11 = x_94; goto _start; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; size_t x_97; -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_78); -lean_ctor_set(x_94, 1, x_81); -x_95 = lean_st_ref_set(x_6, x_94, x_16); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -lean_dec(x_95); -x_97 = lean_usize_add(x_2, x_72); -x_2 = x_97; -x_4 = x_79; -x_11 = x_96; +lean_object* x_97; lean_object* x_98; lean_object* x_99; size_t x_100; +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_81); +lean_ctor_set(x_97, 1, x_84); +lean_ctor_set(x_15, 0, x_97); +x_98 = lean_st_ref_set(x_6, x_15, x_17); +x_99 = lean_ctor_get(x_98, 1); +lean_inc(x_99); +lean_dec(x_98); +x_100 = lean_usize_add(x_2, x_75); +x_2 = x_100; +x_4 = x_82; +x_11 = x_99; goto _start; } } else { -lean_object* x_99; lean_object* x_100; lean_object* x_101; size_t x_102; lean_object* x_103; -lean_dec(x_75); +lean_object* x_102; lean_object* x_103; lean_object* x_104; size_t x_105; lean_object* x_106; +lean_dec(x_78); lean_dec(x_13); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_60); -lean_ctor_set(x_99, 1, x_61); -x_100 = lean_st_ref_set(x_6, x_99, x_16); -x_101 = lean_ctor_get(x_100, 1); -lean_inc(x_101); -lean_dec(x_100); -x_102 = lean_usize_add(x_2, x_72); -x_103 = lean_box(0); -x_2 = x_102; -x_4 = x_103; -x_11 = x_101; +x_102 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_102, 0, x_63); +lean_ctor_set(x_102, 1, x_64); +lean_ctor_set(x_15, 0, x_102); +x_103 = lean_st_ref_set(x_6, x_15, x_17); +x_104 = lean_ctor_get(x_103, 1); +lean_inc(x_104); +lean_dec(x_103); +x_105 = lean_usize_add(x_2, x_75); +x_106 = lean_box(0); +x_2 = x_105; +x_4 = x_106; +x_11 = x_104; goto _start; } } } else { -lean_object* x_105; -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_4); -lean_ctor_set(x_105, 1, x_11); -return x_105; +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; uint64_t x_113; uint64_t x_114; uint64_t x_115; uint64_t x_116; uint64_t x_117; uint64_t x_118; uint64_t x_119; size_t x_120; size_t x_121; size_t x_122; size_t x_123; size_t x_124; lean_object* x_125; uint8_t x_126; +x_108 = lean_ctor_get(x_15, 1); +lean_inc(x_108); +lean_dec(x_15); +x_109 = lean_ctor_get(x_16, 0); +lean_inc(x_109); +x_110 = lean_ctor_get(x_16, 1); +lean_inc(x_110); +if (lean_is_exclusive(x_16)) { + lean_ctor_release(x_16, 0); + lean_ctor_release(x_16, 1); + x_111 = x_16; +} else { + lean_dec_ref(x_16); + x_111 = lean_box(0); +} +x_112 = lean_array_get_size(x_110); +x_113 = l___private_Lean_Expr_0__Lean_hashFVarId____x40_Lean_Expr___hyg_1730_(x_13); +x_114 = 32; +x_115 = lean_uint64_shift_right(x_113, x_114); +x_116 = lean_uint64_xor(x_113, x_115); +x_117 = 16; +x_118 = lean_uint64_shift_right(x_116, x_117); +x_119 = lean_uint64_xor(x_116, x_118); +x_120 = lean_uint64_to_usize(x_119); +x_121 = lean_usize_of_nat(x_112); +lean_dec(x_112); +x_122 = 1; +x_123 = lean_usize_sub(x_121, x_122); +x_124 = lean_usize_land(x_120, x_123); +x_125 = lean_array_uget(x_110, x_124); +x_126 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_MVarId_getNondepPropHyps___spec__1(x_13, x_125); +if (x_126 == 0) +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; uint8_t x_137; +x_127 = lean_unsigned_to_nat(1u); +x_128 = lean_nat_add(x_109, x_127); +lean_dec(x_109); +x_129 = lean_box(0); +x_130 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_130, 0, x_13); +lean_ctor_set(x_130, 1, x_129); +lean_ctor_set(x_130, 2, x_125); +x_131 = lean_array_uset(x_110, x_124, x_130); +x_132 = lean_unsigned_to_nat(4u); +x_133 = lean_nat_mul(x_128, x_132); +x_134 = lean_unsigned_to_nat(3u); +x_135 = lean_nat_div(x_133, x_134); +lean_dec(x_133); +x_136 = lean_array_get_size(x_131); +x_137 = lean_nat_dec_le(x_135, x_136); +lean_dec(x_136); +lean_dec(x_135); +if (x_137 == 0) +{ +lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; size_t x_143; +x_138 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_MVarId_getNondepPropHyps___spec__7(x_131); +if (lean_is_scalar(x_111)) { + x_139 = lean_alloc_ctor(0, 2, 0); +} else { + x_139 = x_111; +} +lean_ctor_set(x_139, 0, x_128); +lean_ctor_set(x_139, 1, x_138); +x_140 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_140, 0, x_139); +lean_ctor_set(x_140, 1, x_108); +x_141 = lean_st_ref_set(x_6, x_140, x_17); +x_142 = lean_ctor_get(x_141, 1); +lean_inc(x_142); +lean_dec(x_141); +x_143 = lean_usize_add(x_2, x_122); +x_2 = x_143; +x_4 = x_129; +x_11 = x_142; +goto _start; +} +else +{ +lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; size_t x_149; +if (lean_is_scalar(x_111)) { + x_145 = lean_alloc_ctor(0, 2, 0); +} else { + x_145 = x_111; +} +lean_ctor_set(x_145, 0, x_128); +lean_ctor_set(x_145, 1, x_131); +x_146 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_146, 0, x_145); +lean_ctor_set(x_146, 1, x_108); +x_147 = lean_st_ref_set(x_6, x_146, x_17); +x_148 = lean_ctor_get(x_147, 1); +lean_inc(x_148); +lean_dec(x_147); +x_149 = lean_usize_add(x_2, x_122); +x_2 = x_149; +x_4 = x_129; +x_11 = x_148; +goto _start; +} +} +else +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; size_t x_155; lean_object* x_156; +lean_dec(x_125); +lean_dec(x_13); +if (lean_is_scalar(x_111)) { + x_151 = lean_alloc_ctor(0, 2, 0); +} else { + x_151 = x_111; +} +lean_ctor_set(x_151, 0, x_109); +lean_ctor_set(x_151, 1, x_110); +x_152 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_152, 0, x_151); +lean_ctor_set(x_152, 1, x_108); +x_153 = lean_st_ref_set(x_6, x_152, x_17); +x_154 = lean_ctor_get(x_153, 1); +lean_inc(x_154); +lean_dec(x_153); +x_155 = lean_usize_add(x_2, x_122); +x_156 = lean_box(0); +x_2 = x_155; +x_4 = x_156; +x_11 = x_154; +goto _start; +} +} +} +else +{ +lean_object* x_158; +x_158 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_158, 0, x_4); +lean_ctor_set(x_158, 1, x_11); +return x_158; } } } diff --git a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Structures.c b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Structures.c index 2560ab3020..a0fb6a2c72 100644 --- a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Structures.c +++ b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/Structures.c @@ -13,1333 +13,120 @@ #ifdef __cplusplus extern "C" { #endif -static lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__1; +static lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__2; lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__9___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_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__1; static lean_object* l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__7; -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__7(lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___boxed(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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__5(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* l_Lean_Meta_getNatValue_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__10(lean_object*, lean_object*); static lean_object* l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__3; -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__8; -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__6; -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__9; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_uint64_to_usize(uint64_t); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2(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_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__2; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_simpGoal(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_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_markInteresting(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_mk_array(lean_object*, lean_object*); -uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__5; -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__1; -LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Environment_find_x3f(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___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*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___closed__4; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___closed__3; +LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__3; -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__12; -lean_object* l_Nat_nextPowerOfTwo_go(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__11(lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__6; lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); lean_object* l_Lean_MVarId_casesRec(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getSimpCongrTheorems___rarg(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__7(lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___closed__1; -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_mapTR_loop___at_Lean_mkConstWithLevelParams___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__6(lean_object*, lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__3; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_take(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__2; -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__2___closed__1; -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__3; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_markUninteresting___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__1; uint64_t lean_uint64_shift_right(uint64_t, uint64_t); -LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_StateRefT_x27_lift___rarg___boxed(lean_object*, lean_object*); -lean_object* lean_nat_div(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__5; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_markUninteresting(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__4; LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__10___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__4; -lean_object* l_Lean_Expr_appArg(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__15; lean_object* lean_st_ref_get(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__1(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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__9(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_st_mk_ref(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__13; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_markInteresting___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Expr_appFnCleanup(lean_object*, lean_object*); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__5; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInterestingCached___lambda__1___boxed(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_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___lambda__1___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_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_constName_x3f(lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__1; -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__7; -lean_object* l_Lean_FVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getPropHyps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__7; lean_object* l_Lean_addTrace___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_fixpointPipeline___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInterestingCached(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_mkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__2; uint8_t l_Lean_LocalDecl_isLet(lean_object*); -LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___boxed(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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4(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_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2___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_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__2; -lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_simpGlobalConfig; -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8___rarg___boxed(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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__7___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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__11; uint8_t l_Lean_LocalDecl_isImplementationDetail(lean_object*); LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___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_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___boxed(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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1; -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__1; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__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_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__2; -uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__5; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__3; +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Pass_run___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess(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*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint64_t l_Lean_Name_hash___override(lean_object*); lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_LocalDecl_type(lean_object*); uint64_t lean_uint64_xor(uint64_t, uint64_t); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__1; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__8; lean_object* l_Lean_Expr_getAppFn(lean_object*); -uint8_t l_Lean_isStructure(lean_object*, lean_object*); -lean_object* lean_nat_mul(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___lambda__2(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_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__16; LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); lean_object* lean_array_mk(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__3; size_t lean_usize_add(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__8; -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__6; lean_object* l_Lean_Meta_mkInjectiveEqTheoremNameFor(lean_object*); extern lean_object* l_Lean_instInhabitedName; lean_object* lean_array_uget(lean_object*, size_t); -LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__3; static lean_object* l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__1; size_t lean_array_size(lean_object*); -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__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_object*, lean_object*); -static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___boxed__const__1; -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__1; static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___closed__2; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInterestingCached___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1(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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___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*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__2; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__2; lean_object* lean_array_get_size(lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1(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_le(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___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*); uint8_t lean_usize_dec_lt(size_t, size_t); -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__14; -lean_object* lean_nat_add(lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__1; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__1; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__2; -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__6; lean_object* l_Lean_Meta_SimpTheoremsArray_addTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* l_Lean_MessageData_ofName(lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__10; -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___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_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___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_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__2; size_t lean_usize_land(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8(lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__1() { -_start: -{ -uint8_t x_1; lean_object* x_2; lean_object* x_3; -x_1 = 1; -x_2 = lean_box(x_1); -x_3 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_3, 0, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__2() { -_start: -{ -uint8_t x_1; lean_object* x_2; lean_object* x_3; -x_1 = 0; -x_2 = lean_box(x_1); -x_3 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_3, 0, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_8 = lean_st_ref_get(x_2, x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -x_11 = !lean_is_exclusive(x_8); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; size_t x_22; size_t x_23; size_t x_24; size_t x_25; size_t x_26; lean_object* x_27; uint8_t x_28; -x_12 = lean_ctor_get(x_8, 0); -lean_dec(x_12); -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); -lean_dec(x_10); -x_14 = lean_array_get_size(x_13); -x_15 = l_Lean_Name_hash___override(x_1); -x_16 = 32; -x_17 = lean_uint64_shift_right(x_15, x_16); -x_18 = lean_uint64_xor(x_15, x_17); -x_19 = 16; -x_20 = lean_uint64_shift_right(x_18, x_19); -x_21 = lean_uint64_xor(x_18, x_20); -x_22 = lean_uint64_to_usize(x_21); -x_23 = lean_usize_of_nat(x_14); -lean_dec(x_14); -x_24 = 1; -x_25 = lean_usize_sub(x_23, x_24); -x_26 = lean_usize_land(x_22, x_25); -x_27 = lean_array_uget(x_13, x_26); -lean_dec(x_13); -x_28 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_27); -lean_dec(x_27); -if (x_28 == 0) -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; size_t x_32; size_t x_33; size_t x_34; lean_object* x_35; uint8_t x_36; -x_29 = lean_ctor_get(x_9, 0); -lean_inc(x_29); -lean_dec(x_9); -x_30 = lean_ctor_get(x_29, 1); -lean_inc(x_30); -lean_dec(x_29); -x_31 = lean_array_get_size(x_30); -x_32 = lean_usize_of_nat(x_31); -lean_dec(x_31); -x_33 = lean_usize_sub(x_32, x_24); -x_34 = lean_usize_land(x_22, x_33); -x_35 = lean_array_uget(x_30, x_34); -lean_dec(x_30); -x_36 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_35); -lean_dec(x_35); -if (x_36 == 0) -{ -lean_object* x_37; -x_37 = lean_box(0); -lean_ctor_set(x_8, 0, x_37); -return x_8; -} -else -{ -lean_object* x_38; -x_38 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__1; -lean_ctor_set(x_8, 0, x_38); -return x_8; -} -} -else -{ -lean_object* x_39; -lean_dec(x_9); -x_39 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__2; -lean_ctor_set(x_8, 0, x_39); -return x_8; -} -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; uint64_t x_43; uint64_t x_44; uint64_t x_45; uint64_t x_46; uint64_t x_47; uint64_t x_48; uint64_t x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; size_t x_54; lean_object* x_55; uint8_t x_56; -x_40 = lean_ctor_get(x_8, 1); -lean_inc(x_40); -lean_dec(x_8); -x_41 = lean_ctor_get(x_10, 1); -lean_inc(x_41); -lean_dec(x_10); -x_42 = lean_array_get_size(x_41); -x_43 = l_Lean_Name_hash___override(x_1); -x_44 = 32; -x_45 = lean_uint64_shift_right(x_43, x_44); -x_46 = lean_uint64_xor(x_43, x_45); -x_47 = 16; -x_48 = lean_uint64_shift_right(x_46, x_47); -x_49 = lean_uint64_xor(x_46, x_48); -x_50 = lean_uint64_to_usize(x_49); -x_51 = lean_usize_of_nat(x_42); -lean_dec(x_42); -x_52 = 1; -x_53 = lean_usize_sub(x_51, x_52); -x_54 = lean_usize_land(x_50, x_53); -x_55 = lean_array_uget(x_41, x_54); -lean_dec(x_41); -x_56 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_55); -lean_dec(x_55); -if (x_56 == 0) -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; size_t x_60; size_t x_61; size_t x_62; lean_object* x_63; uint8_t x_64; -x_57 = lean_ctor_get(x_9, 0); -lean_inc(x_57); -lean_dec(x_9); -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec(x_57); -x_59 = lean_array_get_size(x_58); -x_60 = lean_usize_of_nat(x_59); -lean_dec(x_59); -x_61 = lean_usize_sub(x_60, x_52); -x_62 = lean_usize_land(x_50, x_61); -x_63 = lean_array_uget(x_58, x_62); -lean_dec(x_58); -x_64 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_63); -lean_dec(x_63); -if (x_64 == 0) -{ -lean_object* x_65; lean_object* x_66; -x_65 = lean_box(0); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_40); -return x_66; -} -else -{ -lean_object* x_67; lean_object* x_68; -x_67 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__1; -x_68 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_68, 0, x_67); -lean_ctor_set(x_68, 1, x_40); -return x_68; -} -} -else -{ -lean_object* x_69; lean_object* x_70; -lean_dec(x_9); -x_69 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__2; -x_70 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_70, 0, x_69); -lean_ctor_set(x_70, 1, x_40); -return x_70; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup(x_1, x_2, x_3, x_4, x_5, x_6, 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_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_markInteresting(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_8 = lean_st_ref_take(x_2, x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); -lean_dec(x_8); -x_12 = !lean_is_exclusive(x_9); -if (x_12 == 0) -{ -lean_object* x_13; uint8_t x_14; -x_13 = lean_ctor_get(x_9, 0); -lean_dec(x_13); -x_14 = !lean_is_exclusive(x_10); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; size_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; lean_object* x_30; uint8_t x_31; -x_15 = lean_ctor_get(x_10, 0); -x_16 = lean_ctor_get(x_10, 1); -x_17 = lean_array_get_size(x_16); -x_18 = l_Lean_Name_hash___override(x_1); -x_19 = 32; -x_20 = lean_uint64_shift_right(x_18, x_19); -x_21 = lean_uint64_xor(x_18, x_20); -x_22 = 16; -x_23 = lean_uint64_shift_right(x_21, x_22); -x_24 = lean_uint64_xor(x_21, x_23); -x_25 = lean_uint64_to_usize(x_24); -x_26 = lean_usize_of_nat(x_17); -lean_dec(x_17); -x_27 = 1; -x_28 = lean_usize_sub(x_26, x_27); -x_29 = lean_usize_land(x_25, x_28); -x_30 = lean_array_uget(x_16, x_29); -x_31 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_30); -if (x_31 == 0) -{ -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; uint8_t x_42; -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_15, x_32); -lean_dec(x_15); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_35, 0, x_1); -lean_ctor_set(x_35, 1, x_34); -lean_ctor_set(x_35, 2, x_30); -x_36 = lean_array_uset(x_16, x_29, x_35); -x_37 = lean_unsigned_to_nat(4u); -x_38 = lean_nat_mul(x_33, x_37); -x_39 = lean_unsigned_to_nat(3u); -x_40 = lean_nat_div(x_38, x_39); -lean_dec(x_38); -x_41 = lean_array_get_size(x_36); -x_42 = lean_nat_dec_le(x_40, x_41); -lean_dec(x_41); -lean_dec(x_40); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_36); -lean_ctor_set(x_10, 1, x_43); -lean_ctor_set(x_10, 0, x_33); -x_44 = lean_st_ref_set(x_2, x_9, x_11); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_44, 0); -lean_dec(x_46); -lean_ctor_set(x_44, 0, x_34); -return x_44; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_dec(x_44); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_34); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -else -{ -lean_object* x_49; uint8_t x_50; -lean_ctor_set(x_10, 1, x_36); -lean_ctor_set(x_10, 0, x_33); -x_49 = lean_st_ref_set(x_2, x_9, x_11); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_49, 0); -lean_dec(x_51); -lean_ctor_set(x_49, 0, x_34); -return x_49; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_49, 1); -lean_inc(x_52); -lean_dec(x_49); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_34); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -else -{ -lean_object* x_54; uint8_t x_55; -lean_dec(x_30); -lean_dec(x_1); -x_54 = lean_st_ref_set(x_2, x_9, x_11); -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) -{ -lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_54, 0); -lean_dec(x_56); -x_57 = lean_box(0); -lean_ctor_set(x_54, 0, x_57); -return x_54; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_54, 1); -lean_inc(x_58); -lean_dec(x_54); -x_59 = lean_box(0); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -return x_60; -} -} -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint64_t x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; size_t x_71; size_t x_72; size_t x_73; size_t x_74; size_t x_75; lean_object* x_76; uint8_t x_77; -x_61 = lean_ctor_get(x_10, 0); -x_62 = lean_ctor_get(x_10, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_10); -x_63 = lean_array_get_size(x_62); -x_64 = l_Lean_Name_hash___override(x_1); -x_65 = 32; -x_66 = lean_uint64_shift_right(x_64, x_65); -x_67 = lean_uint64_xor(x_64, x_66); -x_68 = 16; -x_69 = lean_uint64_shift_right(x_67, x_68); -x_70 = lean_uint64_xor(x_67, x_69); -x_71 = lean_uint64_to_usize(x_70); -x_72 = lean_usize_of_nat(x_63); -lean_dec(x_63); -x_73 = 1; -x_74 = lean_usize_sub(x_72, x_73); -x_75 = lean_usize_land(x_71, x_74); -x_76 = lean_array_uget(x_62, x_75); -x_77 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_76); -if (x_77 == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_78 = lean_unsigned_to_nat(1u); -x_79 = lean_nat_add(x_61, x_78); -lean_dec(x_61); -x_80 = lean_box(0); -x_81 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_81, 0, x_1); -lean_ctor_set(x_81, 1, x_80); -lean_ctor_set(x_81, 2, x_76); -x_82 = lean_array_uset(x_62, x_75, x_81); -x_83 = lean_unsigned_to_nat(4u); -x_84 = lean_nat_mul(x_79, x_83); -x_85 = lean_unsigned_to_nat(3u); -x_86 = lean_nat_div(x_84, x_85); -lean_dec(x_84); -x_87 = lean_array_get_size(x_82); -x_88 = lean_nat_dec_le(x_86, x_87); -lean_dec(x_87); -lean_dec(x_86); -if (x_88 == 0) -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_89 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_82); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_79); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set(x_9, 0, x_90); -x_91 = lean_st_ref_set(x_2, x_9, x_11); -x_92 = lean_ctor_get(x_91, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_93 = x_91; -} else { - lean_dec_ref(x_91); - x_93 = lean_box(0); -} -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(0, 2, 0); -} else { - x_94 = x_93; -} -lean_ctor_set(x_94, 0, x_80); -lean_ctor_set(x_94, 1, x_92); -return x_94; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_79); -lean_ctor_set(x_95, 1, x_82); -lean_ctor_set(x_9, 0, x_95); -x_96 = lean_st_ref_set(x_2, x_9, x_11); -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); -} -if (lean_is_scalar(x_98)) { - x_99 = lean_alloc_ctor(0, 2, 0); -} else { - x_99 = x_98; -} -lean_ctor_set(x_99, 0, x_80); -lean_ctor_set(x_99, 1, x_97); -return x_99; -} -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec(x_76); -lean_dec(x_1); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_61); -lean_ctor_set(x_100, 1, x_62); -lean_ctor_set(x_9, 0, x_100); -x_101 = lean_st_ref_set(x_2, x_9, x_11); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_103 = x_101; -} else { - lean_dec_ref(x_101); - x_103 = lean_box(0); -} -x_104 = lean_box(0); -if (lean_is_scalar(x_103)) { - x_105 = lean_alloc_ctor(0, 2, 0); -} else { - x_105 = x_103; -} -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_102); -return x_105; -} -} -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint64_t x_111; uint64_t x_112; uint64_t x_113; uint64_t x_114; uint64_t x_115; uint64_t x_116; uint64_t x_117; size_t x_118; size_t x_119; size_t x_120; size_t x_121; size_t x_122; lean_object* x_123; uint8_t x_124; -x_106 = lean_ctor_get(x_9, 1); -lean_inc(x_106); -lean_dec(x_9); -x_107 = lean_ctor_get(x_10, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_10, 1); -lean_inc(x_108); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - lean_ctor_release(x_10, 1); - x_109 = x_10; -} else { - lean_dec_ref(x_10); - x_109 = lean_box(0); -} -x_110 = lean_array_get_size(x_108); -x_111 = l_Lean_Name_hash___override(x_1); -x_112 = 32; -x_113 = lean_uint64_shift_right(x_111, x_112); -x_114 = lean_uint64_xor(x_111, x_113); -x_115 = 16; -x_116 = lean_uint64_shift_right(x_114, x_115); -x_117 = lean_uint64_xor(x_114, x_116); -x_118 = lean_uint64_to_usize(x_117); -x_119 = lean_usize_of_nat(x_110); -lean_dec(x_110); -x_120 = 1; -x_121 = lean_usize_sub(x_119, x_120); -x_122 = lean_usize_land(x_118, x_121); -x_123 = lean_array_uget(x_108, x_122); -x_124 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_123); -if (x_124 == 0) -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; -x_125 = lean_unsigned_to_nat(1u); -x_126 = lean_nat_add(x_107, x_125); -lean_dec(x_107); -x_127 = lean_box(0); -x_128 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_128, 0, x_1); -lean_ctor_set(x_128, 1, x_127); -lean_ctor_set(x_128, 2, x_123); -x_129 = lean_array_uset(x_108, x_122, x_128); -x_130 = lean_unsigned_to_nat(4u); -x_131 = lean_nat_mul(x_126, x_130); -x_132 = lean_unsigned_to_nat(3u); -x_133 = lean_nat_div(x_131, x_132); -lean_dec(x_131); -x_134 = lean_array_get_size(x_129); -x_135 = lean_nat_dec_le(x_133, x_134); -lean_dec(x_134); -lean_dec(x_133); -if (x_135 == 0) -{ -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_136 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_129); -if (lean_is_scalar(x_109)) { - x_137 = lean_alloc_ctor(0, 2, 0); -} else { - x_137 = x_109; -} -lean_ctor_set(x_137, 0, x_126); -lean_ctor_set(x_137, 1, x_136); -x_138 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_106); -x_139 = lean_st_ref_set(x_2, x_138, x_11); -x_140 = lean_ctor_get(x_139, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - x_141 = x_139; -} else { - lean_dec_ref(x_139); - x_141 = lean_box(0); -} -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(0, 2, 0); -} else { - x_142 = x_141; -} -lean_ctor_set(x_142, 0, x_127); -lean_ctor_set(x_142, 1, x_140); -return x_142; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -if (lean_is_scalar(x_109)) { - x_143 = lean_alloc_ctor(0, 2, 0); -} else { - x_143 = x_109; -} -lean_ctor_set(x_143, 0, x_126); -lean_ctor_set(x_143, 1, x_129); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_106); -x_145 = lean_st_ref_set(x_2, x_144, x_11); -x_146 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_147 = x_145; -} else { - lean_dec_ref(x_145); - x_147 = lean_box(0); -} -if (lean_is_scalar(x_147)) { - x_148 = lean_alloc_ctor(0, 2, 0); -} else { - x_148 = x_147; -} -lean_ctor_set(x_148, 0, x_127); -lean_ctor_set(x_148, 1, x_146); -return x_148; -} -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -lean_dec(x_123); -lean_dec(x_1); -if (lean_is_scalar(x_109)) { - x_149 = lean_alloc_ctor(0, 2, 0); -} else { - x_149 = x_109; -} -lean_ctor_set(x_149, 0, x_107); -lean_ctor_set(x_149, 1, x_108); -x_150 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_150, 0, x_149); -lean_ctor_set(x_150, 1, x_106); -x_151 = lean_st_ref_set(x_2, x_150, x_11); -x_152 = lean_ctor_get(x_151, 1); -lean_inc(x_152); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_153 = x_151; -} else { - lean_dec_ref(x_151); - x_153 = lean_box(0); -} -x_154 = lean_box(0); -if (lean_is_scalar(x_153)) { - x_155 = lean_alloc_ctor(0, 2, 0); -} else { - x_155 = x_153; -} -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_152); -return x_155; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_markInteresting___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_markInteresting(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_markUninteresting(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; -x_8 = lean_st_ref_take(x_2, x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_9, 1); -lean_inc(x_10); -x_11 = lean_ctor_get(x_8, 1); -lean_inc(x_11); -lean_dec(x_8); -x_12 = !lean_is_exclusive(x_9); -if (x_12 == 0) -{ -lean_object* x_13; uint8_t x_14; -x_13 = lean_ctor_get(x_9, 1); -lean_dec(x_13); -x_14 = !lean_is_exclusive(x_10); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; size_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; lean_object* x_30; uint8_t x_31; -x_15 = lean_ctor_get(x_10, 0); -x_16 = lean_ctor_get(x_10, 1); -x_17 = lean_array_get_size(x_16); -x_18 = l_Lean_Name_hash___override(x_1); -x_19 = 32; -x_20 = lean_uint64_shift_right(x_18, x_19); -x_21 = lean_uint64_xor(x_18, x_20); -x_22 = 16; -x_23 = lean_uint64_shift_right(x_21, x_22); -x_24 = lean_uint64_xor(x_21, x_23); -x_25 = lean_uint64_to_usize(x_24); -x_26 = lean_usize_of_nat(x_17); -lean_dec(x_17); -x_27 = 1; -x_28 = lean_usize_sub(x_26, x_27); -x_29 = lean_usize_land(x_25, x_28); -x_30 = lean_array_uget(x_16, x_29); -x_31 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_30); -if (x_31 == 0) -{ -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; uint8_t x_42; -x_32 = lean_unsigned_to_nat(1u); -x_33 = lean_nat_add(x_15, x_32); -lean_dec(x_15); -x_34 = lean_box(0); -x_35 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_35, 0, x_1); -lean_ctor_set(x_35, 1, x_34); -lean_ctor_set(x_35, 2, x_30); -x_36 = lean_array_uset(x_16, x_29, x_35); -x_37 = lean_unsigned_to_nat(4u); -x_38 = lean_nat_mul(x_33, x_37); -x_39 = lean_unsigned_to_nat(3u); -x_40 = lean_nat_div(x_38, x_39); -lean_dec(x_38); -x_41 = lean_array_get_size(x_36); -x_42 = lean_nat_dec_le(x_40, x_41); -lean_dec(x_41); -lean_dec(x_40); -if (x_42 == 0) -{ -lean_object* x_43; lean_object* x_44; uint8_t x_45; -x_43 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_36); -lean_ctor_set(x_10, 1, x_43); -lean_ctor_set(x_10, 0, x_33); -x_44 = lean_st_ref_set(x_2, x_9, x_11); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -lean_object* x_46; -x_46 = lean_ctor_get(x_44, 0); -lean_dec(x_46); -lean_ctor_set(x_44, 0, x_34); -return x_44; -} -else -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_dec(x_44); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_34); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -else -{ -lean_object* x_49; uint8_t x_50; -lean_ctor_set(x_10, 1, x_36); -lean_ctor_set(x_10, 0, x_33); -x_49 = lean_st_ref_set(x_2, x_9, x_11); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; -x_51 = lean_ctor_get(x_49, 0); -lean_dec(x_51); -lean_ctor_set(x_49, 0, x_34); -return x_49; -} -else -{ -lean_object* x_52; lean_object* x_53; -x_52 = lean_ctor_get(x_49, 1); -lean_inc(x_52); -lean_dec(x_49); -x_53 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_53, 0, x_34); -lean_ctor_set(x_53, 1, x_52); -return x_53; -} -} -} -else -{ -lean_object* x_54; uint8_t x_55; -lean_dec(x_30); -lean_dec(x_1); -x_54 = lean_st_ref_set(x_2, x_9, x_11); -x_55 = !lean_is_exclusive(x_54); -if (x_55 == 0) -{ -lean_object* x_56; lean_object* x_57; -x_56 = lean_ctor_get(x_54, 0); -lean_dec(x_56); -x_57 = lean_box(0); -lean_ctor_set(x_54, 0, x_57); -return x_54; -} -else -{ -lean_object* x_58; lean_object* x_59; lean_object* x_60; -x_58 = lean_ctor_get(x_54, 1); -lean_inc(x_58); -lean_dec(x_54); -x_59 = lean_box(0); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_58); -return x_60; -} -} -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; uint64_t x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; size_t x_71; size_t x_72; size_t x_73; size_t x_74; size_t x_75; lean_object* x_76; uint8_t x_77; -x_61 = lean_ctor_get(x_10, 0); -x_62 = lean_ctor_get(x_10, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_10); -x_63 = lean_array_get_size(x_62); -x_64 = l_Lean_Name_hash___override(x_1); -x_65 = 32; -x_66 = lean_uint64_shift_right(x_64, x_65); -x_67 = lean_uint64_xor(x_64, x_66); -x_68 = 16; -x_69 = lean_uint64_shift_right(x_67, x_68); -x_70 = lean_uint64_xor(x_67, x_69); -x_71 = lean_uint64_to_usize(x_70); -x_72 = lean_usize_of_nat(x_63); -lean_dec(x_63); -x_73 = 1; -x_74 = lean_usize_sub(x_72, x_73); -x_75 = lean_usize_land(x_71, x_74); -x_76 = lean_array_uget(x_62, x_75); -x_77 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_76); -if (x_77 == 0) -{ -lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -x_78 = lean_unsigned_to_nat(1u); -x_79 = lean_nat_add(x_61, x_78); -lean_dec(x_61); -x_80 = lean_box(0); -x_81 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_81, 0, x_1); -lean_ctor_set(x_81, 1, x_80); -lean_ctor_set(x_81, 2, x_76); -x_82 = lean_array_uset(x_62, x_75, x_81); -x_83 = lean_unsigned_to_nat(4u); -x_84 = lean_nat_mul(x_79, x_83); -x_85 = lean_unsigned_to_nat(3u); -x_86 = lean_nat_div(x_84, x_85); -lean_dec(x_84); -x_87 = lean_array_get_size(x_82); -x_88 = lean_nat_dec_le(x_86, x_87); -lean_dec(x_87); -lean_dec(x_86); -if (x_88 == 0) -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; -x_89 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_82); -x_90 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_90, 0, x_79); -lean_ctor_set(x_90, 1, x_89); -lean_ctor_set(x_9, 1, x_90); -x_91 = lean_st_ref_set(x_2, x_9, x_11); -x_92 = lean_ctor_get(x_91, 1); -lean_inc(x_92); -if (lean_is_exclusive(x_91)) { - lean_ctor_release(x_91, 0); - lean_ctor_release(x_91, 1); - x_93 = x_91; -} else { - lean_dec_ref(x_91); - x_93 = lean_box(0); -} -if (lean_is_scalar(x_93)) { - x_94 = lean_alloc_ctor(0, 2, 0); -} else { - x_94 = x_93; -} -lean_ctor_set(x_94, 0, x_80); -lean_ctor_set(x_94, 1, x_92); -return x_94; -} -else -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_79); -lean_ctor_set(x_95, 1, x_82); -lean_ctor_set(x_9, 1, x_95); -x_96 = lean_st_ref_set(x_2, x_9, x_11); -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); -} -if (lean_is_scalar(x_98)) { - x_99 = lean_alloc_ctor(0, 2, 0); -} else { - x_99 = x_98; -} -lean_ctor_set(x_99, 0, x_80); -lean_ctor_set(x_99, 1, x_97); -return x_99; -} -} -else -{ -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -lean_dec(x_76); -lean_dec(x_1); -x_100 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_100, 0, x_61); -lean_ctor_set(x_100, 1, x_62); -lean_ctor_set(x_9, 1, x_100); -x_101 = lean_st_ref_set(x_2, x_9, x_11); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_103 = x_101; -} else { - lean_dec_ref(x_101); - x_103 = lean_box(0); -} -x_104 = lean_box(0); -if (lean_is_scalar(x_103)) { - x_105 = lean_alloc_ctor(0, 2, 0); -} else { - x_105 = x_103; -} -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_102); -return x_105; -} -} -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint64_t x_111; uint64_t x_112; uint64_t x_113; uint64_t x_114; uint64_t x_115; uint64_t x_116; uint64_t x_117; size_t x_118; size_t x_119; size_t x_120; size_t x_121; size_t x_122; lean_object* x_123; uint8_t x_124; -x_106 = lean_ctor_get(x_9, 0); -lean_inc(x_106); -lean_dec(x_9); -x_107 = lean_ctor_get(x_10, 0); -lean_inc(x_107); -x_108 = lean_ctor_get(x_10, 1); -lean_inc(x_108); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - lean_ctor_release(x_10, 1); - x_109 = x_10; -} else { - lean_dec_ref(x_10); - x_109 = lean_box(0); -} -x_110 = lean_array_get_size(x_108); -x_111 = l_Lean_Name_hash___override(x_1); -x_112 = 32; -x_113 = lean_uint64_shift_right(x_111, x_112); -x_114 = lean_uint64_xor(x_111, x_113); -x_115 = 16; -x_116 = lean_uint64_shift_right(x_114, x_115); -x_117 = lean_uint64_xor(x_114, x_116); -x_118 = lean_uint64_to_usize(x_117); -x_119 = lean_usize_of_nat(x_110); -lean_dec(x_110); -x_120 = 1; -x_121 = lean_usize_sub(x_119, x_120); -x_122 = lean_usize_land(x_118, x_121); -x_123 = lean_array_uget(x_108, x_122); -x_124 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_123); -if (x_124 == 0) -{ -lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; -x_125 = lean_unsigned_to_nat(1u); -x_126 = lean_nat_add(x_107, x_125); -lean_dec(x_107); -x_127 = lean_box(0); -x_128 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_128, 0, x_1); -lean_ctor_set(x_128, 1, x_127); -lean_ctor_set(x_128, 2, x_123); -x_129 = lean_array_uset(x_108, x_122, x_128); -x_130 = lean_unsigned_to_nat(4u); -x_131 = lean_nat_mul(x_126, x_130); -x_132 = lean_unsigned_to_nat(3u); -x_133 = lean_nat_div(x_131, x_132); -lean_dec(x_131); -x_134 = lean_array_get_size(x_129); -x_135 = lean_nat_dec_le(x_133, x_134); -lean_dec(x_134); -lean_dec(x_133); -if (x_135 == 0) -{ -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_136 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_129); -if (lean_is_scalar(x_109)) { - x_137 = lean_alloc_ctor(0, 2, 0); -} else { - x_137 = x_109; -} -lean_ctor_set(x_137, 0, x_126); -lean_ctor_set(x_137, 1, x_136); -x_138 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_138, 0, x_106); -lean_ctor_set(x_138, 1, x_137); -x_139 = lean_st_ref_set(x_2, x_138, x_11); -x_140 = lean_ctor_get(x_139, 1); -lean_inc(x_140); -if (lean_is_exclusive(x_139)) { - lean_ctor_release(x_139, 0); - lean_ctor_release(x_139, 1); - x_141 = x_139; -} else { - lean_dec_ref(x_139); - x_141 = lean_box(0); -} -if (lean_is_scalar(x_141)) { - x_142 = lean_alloc_ctor(0, 2, 0); -} else { - x_142 = x_141; -} -lean_ctor_set(x_142, 0, x_127); -lean_ctor_set(x_142, 1, x_140); -return x_142; -} -else -{ -lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; -if (lean_is_scalar(x_109)) { - x_143 = lean_alloc_ctor(0, 2, 0); -} else { - x_143 = x_109; -} -lean_ctor_set(x_143, 0, x_126); -lean_ctor_set(x_143, 1, x_129); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_106); -lean_ctor_set(x_144, 1, x_143); -x_145 = lean_st_ref_set(x_2, x_144, x_11); -x_146 = lean_ctor_get(x_145, 1); -lean_inc(x_146); -if (lean_is_exclusive(x_145)) { - lean_ctor_release(x_145, 0); - lean_ctor_release(x_145, 1); - x_147 = x_145; -} else { - lean_dec_ref(x_145); - x_147 = lean_box(0); -} -if (lean_is_scalar(x_147)) { - x_148 = lean_alloc_ctor(0, 2, 0); -} else { - x_148 = x_147; -} -lean_ctor_set(x_148, 0, x_127); -lean_ctor_set(x_148, 1, x_146); -return x_148; -} -} -else -{ -lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; -lean_dec(x_123); -lean_dec(x_1); -if (lean_is_scalar(x_109)) { - x_149 = lean_alloc_ctor(0, 2, 0); -} else { - x_149 = x_109; -} -lean_ctor_set(x_149, 0, x_107); -lean_ctor_set(x_149, 1, x_108); -x_150 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_150, 0, x_106); -lean_ctor_set(x_150, 1, x_149); -x_151 = lean_st_ref_set(x_2, x_150, x_11); -x_152 = lean_ctor_get(x_151, 1); -lean_inc(x_152); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_153 = x_151; -} else { - lean_dec_ref(x_151); - x_153 = lean_box(0); -} -x_154 = lean_box(0); -if (lean_is_scalar(x_153)) { - x_155 = lean_alloc_ctor(0, 2, 0); -} else { - x_155 = x_153; -} -lean_ctor_set(x_155, 0, x_154); -lean_ctor_set(x_155, 1, x_152); -return x_155; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_markUninteresting___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_markUninteresting(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { @@ -1500,293 +287,7 @@ return x_35; } } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__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) { -_start: -{ -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_6, 5); -x_10 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_9); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -lean_ctor_set_tag(x_10, 1); -lean_ctor_set(x_10, 0, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -lean_inc(x_9); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_9); -lean_ctor_set(x_16, 1, x_14); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -} -} -static lean_object* _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("' is not a inductive type", 25, 25); -return x_1; -} -} -static lean_object* _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -lean_inc(x_1); -x_9 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -if (lean_obj_tag(x_10) == 5) -{ -uint8_t x_11; -lean_dec(x_1); -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 0); -lean_dec(x_12); -x_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); -lean_dec(x_10); -lean_ctor_set(x_9, 0, x_13); -return x_9; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_ctor_get(x_10, 0); -lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -else -{ -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_dec(x_10); -x_17 = lean_ctor_get(x_9, 1); -lean_inc(x_17); -lean_dec(x_9); -x_18 = 0; -x_19 = l_Lean_MessageData_ofConstName(x_1, x_18); -x_20 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4; -x_21 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__2; -x_23 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_17); -return x_24; -} -} -else -{ -uint8_t x_25; -lean_dec(x_1); -x_25 = !lean_is_exclusive(x_9); -if (x_25 == 0) -{ -return x_9; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_9, 0); -x_27 = lean_ctor_get(x_9, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_9); -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_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___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) { -_start: -{ -lean_object* x_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_ctor_get(x_6, 5); -x_10 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_9); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_9); -lean_ctor_set(x_13, 1, x_12); -lean_ctor_set_tag(x_10, 1); -lean_ctor_set(x_10, 0, x_13); -return x_10; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_10, 0); -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_10); -lean_inc(x_9); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_9); -lean_ctor_set(x_16, 1, x_14); -x_17 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -} -} -static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("' is not a constructor", 22, 22); -return x_1; -} -} -static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__1; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -lean_inc(x_1); -x_9 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -if (lean_obj_tag(x_10) == 6) -{ -uint8_t x_11; -lean_dec(x_1); -x_11 = !lean_is_exclusive(x_9); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; -x_12 = lean_ctor_get(x_9, 0); -lean_dec(x_12); -x_13 = lean_ctor_get(x_10, 0); -lean_inc(x_13); -lean_dec(x_10); -lean_ctor_set(x_9, 0, x_13); -return x_9; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_ctor_get(x_10, 0); -lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -else -{ -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_dec(x_10); -x_17 = lean_ctor_get(x_9, 1); -lean_inc(x_17); -lean_dec(x_9); -x_18 = 0; -x_19 = l_Lean_MessageData_ofConstName(x_1, x_18); -x_20 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4; -x_21 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_21, 0, x_20); -lean_ctor_set(x_21, 1, x_19); -x_22 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__2; -x_23 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_17); -return x_24; -} -} -else -{ -uint8_t x_25; -lean_dec(x_1); -x_25 = !lean_is_exclusive(x_9); -if (x_25 == 0) -{ -return x_9; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_9, 0); -x_27 = lean_ctor_get(x_9, 1); -lean_inc(x_27); -lean_inc(x_26); -lean_dec(x_9); -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_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; @@ -1852,12 +353,298 @@ return x_26; } } } +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_6, 5); +x_10 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_9); +lean_ctor_set(x_13, 1, x_12); +lean_ctor_set_tag(x_10, 1); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +lean_inc(x_9); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_14); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +} +static lean_object* _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' is not a inductive type", 25, 25); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__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) { +_start: +{ +lean_object* x_9; +lean_inc(x_1); +x_9 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 5) +{ +uint8_t x_11; +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +lean_dec(x_10); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_ctor_get(x_10, 0); +lean_inc(x_15); +lean_dec(x_10); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +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_dec(x_10); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = 0; +x_19 = l_Lean_MessageData_ofConstName(x_1, x_18); +x_20 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4; +x_21 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__2; +x_23 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_17); +return x_24; +} +} +else +{ +uint8_t x_25; +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_9); +if (x_25 == 0) +{ +return x_9; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +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_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_6, 5); +x_10 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_9); +lean_ctor_set(x_13, 1, x_12); +lean_ctor_set_tag(x_10, 1); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +lean_inc(x_9); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_14); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +} +static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' is not a constructor", 22, 22); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___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) { +_start: +{ +lean_object* x_9; +lean_inc(x_1); +x_9 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 6) +{ +uint8_t x_11; +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +lean_dec(x_10); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_ctor_get(x_10, 0); +lean_inc(x_15); +lean_dec(x_10); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +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_dec(x_10); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = 0; +x_19 = l_Lean_MessageData_ofConstName(x_1, x_18); +x_20 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4; +x_21 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__2; +x_23 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_17); +return x_24; +} +} +else +{ +uint8_t x_25; +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_9); +if (x_25 == 0) +{ +return x_9; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +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_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { _start: { lean_object* x_11; lean_inc(x_1); -x_11 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +x_11 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1(x_1, 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; lean_object* x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; @@ -2050,7 +837,7 @@ lean_inc(x_12); x_13 = lean_ctor_get(x_1, 2); lean_inc(x_13); lean_dec(x_1); -x_24 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1(x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +x_24 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4(x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9); if (lean_obj_tag(x_24) == 0) { lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; @@ -2065,7 +852,7 @@ lean_dec(x_25); x_28 = l_Lean_instInhabitedName; x_29 = l_List_head_x21___rarg(x_28, x_27); lean_dec(x_27); -x_30 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_26); +x_30 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6(x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_26); if (lean_obj_tag(x_30) == 0) { lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; @@ -2913,219 +1700,313 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___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_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; uint8_t x_17; uint8_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_11 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_9, 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_4, 1); -x_15 = lean_unsigned_to_nat(2u); -x_16 = 0; -x_17 = 1; -x_18 = 0; -lean_inc(x_14); -x_19 = lean_alloc_ctor(0, 2, 20); -lean_ctor_set(x_19, 0, x_14); -lean_ctor_set(x_19, 1, x_15); -lean_ctor_set_uint8(x_19, sizeof(void*)*2, x_16); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 1, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 2, x_16); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 3, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 4, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 5, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 6, x_18); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 7, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 8, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 9, x_16); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 10, x_16); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 11, x_16); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 12, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 13, x_16); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 14, x_16); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 15, x_16); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 16, x_16); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 17, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 18, x_17); -lean_ctor_set_uint8(x_19, sizeof(void*)*2 + 19, x_17); -x_20 = l_Lean_Meta_Simp_mkContext(x_19, x_3, x_12, x_6, x_7, x_8, x_9, x_13); -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 1); -lean_inc(x_22); -lean_dec(x_20); +uint8_t x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_13 = 1; +x_14 = 0; +x_15 = lean_alloc_ctor(0, 1, 2); +lean_ctor_set(x_15, 0, x_1); +lean_ctor_set_uint8(x_15, sizeof(void*)*1, x_13); +lean_ctor_set_uint8(x_15, sizeof(void*)*1 + 1, x_14); +x_16 = l_Lean_Meta_simpGlobalConfig; +lean_inc(x_11); +lean_inc(x_10); lean_inc(x_9); lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -x_23 = l_Lean_Meta_getPropHyps(x_6, x_7, x_8, x_9, x_22); -if (lean_obj_tag(x_23) == 0) +lean_inc(x_2); +x_17 = l_Lean_Meta_SimpTheoremsArray_addTheorem(x_2, x_15, x_5, x_16, x_8, x_9, x_10, x_11, x_12); +if (lean_obj_tag(x_17) == 0) { -lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_24 = lean_ctor_get(x_23, 0); -lean_inc(x_24); -x_25 = lean_ctor_get(x_23, 1); +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_17, 1); +lean_inc(x_19); +lean_dec(x_17); +x_20 = lean_box(0); +x_21 = lean_ctor_get(x_3, 1); +x_22 = lean_array_size(x_21); +x_23 = 0; +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_24 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__9(x_20, x_21, x_21, x_22, x_23, x_18, x_6, x_7, x_8, x_9, x_10, x_11, x_19); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_23); -x_26 = lean_box(0); -x_27 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__8; -x_28 = l_Lean_Meta_simpGoal(x_1, x_21, x_2, x_26, x_17, x_24, x_27, x_6, x_7, x_8, x_9, x_25); -if (lean_obj_tag(x_28) == 0) -{ -lean_object* x_29; lean_object* x_30; -x_29 = lean_ctor_get(x_28, 0); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_Meta_getSimpCongrTheorems___rarg(x_11, 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); -x_30 = lean_ctor_get(x_29, 0); +lean_dec(x_27); +x_30 = lean_ctor_get(x_6, 1); +x_31 = lean_unsigned_to_nat(2u); +x_32 = 0; lean_inc(x_30); -lean_dec(x_29); -if (lean_obj_tag(x_30) == 0) +x_33 = lean_alloc_ctor(0, 2, 20); +lean_ctor_set(x_33, 0, x_30); +lean_ctor_set(x_33, 1, x_31); +lean_ctor_set_uint8(x_33, sizeof(void*)*2, x_14); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 1, x_13); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 2, x_14); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 3, x_13); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 4, x_13); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 5, x_13); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 6, x_32); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 7, x_13); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 8, x_13); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 9, x_14); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 10, x_14); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 11, x_14); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 12, x_13); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 13, x_14); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 14, x_14); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 15, x_14); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 16, x_14); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 17, x_13); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 18, x_13); +lean_ctor_set_uint8(x_33, sizeof(void*)*2 + 19, x_13); +x_34 = l_Lean_Meta_Simp_mkContext(x_33, x_25, x_28, x_8, x_9, x_10, x_11, x_29); +x_35 = lean_ctor_get(x_34, 0); +lean_inc(x_35); +x_36 = lean_ctor_get(x_34, 1); +lean_inc(x_36); +lean_dec(x_34); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_37 = l_Lean_Meta_getPropHyps(x_8, x_9, x_10, x_11, x_36); +if (lean_obj_tag(x_37) == 0) { -uint8_t x_31; -x_31 = !lean_is_exclusive(x_28); -if (x_31 == 0) -{ -lean_object* x_32; -x_32 = lean_ctor_get(x_28, 0); -lean_dec(x_32); -lean_ctor_set(x_28, 0, x_26); -return x_28; -} -else -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_28, 1); -lean_inc(x_33); -lean_dec(x_28); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_26); -lean_ctor_set(x_34, 1, x_33); -return x_34; -} -} -else -{ -uint8_t x_35; -x_35 = !lean_is_exclusive(x_30); -if (x_35 == 0) -{ -uint8_t x_36; -x_36 = !lean_is_exclusive(x_28); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_30, 0); -x_38 = lean_ctor_get(x_28, 0); -lean_dec(x_38); +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_38 = lean_ctor_get(x_37, 0); +lean_inc(x_38); x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); lean_dec(x_37); -lean_ctor_set(x_30, 0, x_39); -lean_ctor_set(x_28, 0, x_30); -return x_28; -} -else +x_40 = lean_box(0); +x_41 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__8; +x_42 = l_Lean_Meta_simpGoal(x_4, x_35, x_2, x_40, x_13, x_38, x_41, x_8, x_9, x_10, x_11, x_39); +if (lean_obj_tag(x_42) == 0) { -lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_40 = lean_ctor_get(x_30, 0); -x_41 = lean_ctor_get(x_28, 1); -lean_inc(x_41); -lean_dec(x_28); -x_42 = lean_ctor_get(x_40, 1); -lean_inc(x_42); -lean_dec(x_40); -lean_ctor_set(x_30, 0, x_42); -x_43 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_43, 0, x_30); -lean_ctor_set(x_43, 1, x_41); -return x_43; -} -} -else -{ -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_44 = lean_ctor_get(x_30, 0); +lean_object* x_43; lean_object* x_44; +x_43 = lean_ctor_get(x_42, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_43, 0); lean_inc(x_44); -lean_dec(x_30); -x_45 = lean_ctor_get(x_28, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_28)) { - lean_ctor_release(x_28, 0); - lean_ctor_release(x_28, 1); - x_46 = x_28; -} else { - lean_dec_ref(x_28); - x_46 = lean_box(0); +lean_dec(x_43); +if (lean_obj_tag(x_44) == 0) +{ +uint8_t x_45; +x_45 = !lean_is_exclusive(x_42); +if (x_45 == 0) +{ +lean_object* x_46; +x_46 = lean_ctor_get(x_42, 0); +lean_dec(x_46); +lean_ctor_set(x_42, 0, x_40); +return x_42; } -x_47 = lean_ctor_get(x_44, 1); +else +{ +lean_object* x_47; lean_object* x_48; +x_47 = lean_ctor_get(x_42, 1); lean_inc(x_47); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_48, 0, x_47); -if (lean_is_scalar(x_46)) { - x_49 = lean_alloc_ctor(0, 2, 0); -} else { - x_49 = x_46; -} -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_45); -return x_49; -} +lean_dec(x_42); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_40); +lean_ctor_set(x_48, 1, x_47); +return x_48; } } else { +uint8_t x_49; +x_49 = !lean_is_exclusive(x_44); +if (x_49 == 0) +{ uint8_t x_50; -x_50 = !lean_is_exclusive(x_28); +x_50 = !lean_is_exclusive(x_42); if (x_50 == 0) { -return x_28; -} -else -{ lean_object* x_51; lean_object* x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_28, 0); -x_52 = lean_ctor_get(x_28, 1); -lean_inc(x_52); -lean_inc(x_51); -lean_dec(x_28); -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; +x_51 = lean_ctor_get(x_44, 0); +x_52 = lean_ctor_get(x_42, 0); +lean_dec(x_52); +x_53 = lean_ctor_get(x_51, 1); +lean_inc(x_53); +lean_dec(x_51); +lean_ctor_set(x_44, 0, x_53); +lean_ctor_set(x_42, 0, x_44); +return x_42; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; +x_54 = lean_ctor_get(x_44, 0); +x_55 = lean_ctor_get(x_42, 1); +lean_inc(x_55); +lean_dec(x_42); +x_56 = lean_ctor_get(x_54, 1); +lean_inc(x_56); +lean_dec(x_54); +lean_ctor_set(x_44, 0, x_56); +x_57 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_57, 0, x_44); +lean_ctor_set(x_57, 1, x_55); +return x_57; +} +} +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; +x_58 = lean_ctor_get(x_44, 0); +lean_inc(x_58); +lean_dec(x_44); +x_59 = lean_ctor_get(x_42, 1); +lean_inc(x_59); +if (lean_is_exclusive(x_42)) { + lean_ctor_release(x_42, 0); + lean_ctor_release(x_42, 1); + x_60 = x_42; +} else { + lean_dec_ref(x_42); + x_60 = lean_box(0); +} +x_61 = lean_ctor_get(x_58, 1); +lean_inc(x_61); +lean_dec(x_58); +x_62 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_62, 0, x_61); +if (lean_is_scalar(x_60)) { + x_63 = lean_alloc_ctor(0, 2, 0); +} else { + x_63 = x_60; +} +lean_ctor_set(x_63, 0, x_62); +lean_ctor_set(x_63, 1, x_59); +return x_63; } } } else { -uint8_t x_54; -lean_dec(x_21); +uint8_t x_64; +x_64 = !lean_is_exclusive(x_42); +if (x_64 == 0) +{ +return x_42; +} +else +{ +lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_65 = lean_ctor_get(x_42, 0); +x_66 = lean_ctor_get(x_42, 1); +lean_inc(x_66); +lean_inc(x_65); +lean_dec(x_42); +x_67 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +return x_67; +} +} +} +else +{ +uint8_t x_68; +lean_dec(x_35); +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_4); lean_dec(x_2); -lean_dec(x_1); -x_54 = !lean_is_exclusive(x_23); -if (x_54 == 0) +x_68 = !lean_is_exclusive(x_37); +if (x_68 == 0) { -return x_23; +return x_37; } else { -lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_55 = lean_ctor_get(x_23, 0); -x_56 = lean_ctor_get(x_23, 1); -lean_inc(x_56); -lean_inc(x_55); -lean_dec(x_23); -x_57 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -return x_57; +lean_object* x_69; lean_object* x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_37, 0); +x_70 = lean_ctor_get(x_37, 1); +lean_inc(x_70); +lean_inc(x_69); +lean_dec(x_37); +x_71 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +return x_71; +} +} +} +else +{ +uint8_t x_72; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +x_72 = !lean_is_exclusive(x_24); +if (x_72 == 0) +{ +return x_24; +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; +x_73 = lean_ctor_get(x_24, 0); +x_74 = lean_ctor_get(x_24, 1); +lean_inc(x_74); +lean_inc(x_73); +lean_dec(x_24); +x_75 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +return x_75; +} +} +} +else +{ +uint8_t x_76; +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_4); +lean_dec(x_2); +x_76 = !lean_is_exclusive(x_17); +if (x_76 == 0) +{ +return x_17; +} +else +{ +lean_object* x_77; lean_object* x_78; lean_object* x_79; +x_77 = lean_ctor_get(x_17, 0); +x_78 = lean_ctor_get(x_17, 1); +lean_inc(x_78); +lean_inc(x_77); +lean_dec(x_17); +x_79 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +return x_79; } } } @@ -3139,44 +2020,43 @@ x_2 = lean_array_mk(x_1); return x_2; } } -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___boxed__const__1() { +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__2() { _start: { -size_t x_1; lean_object* x_2; -x_1 = 0; -x_2 = lean_box_usize(x_1); -return x_2; +lean_object* x_1; +x_1 = lean_mk_string_unchecked("ne_eq", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__2; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; } } LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { _start: { -lean_object* x_10; lean_object* x_11; size_t 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; -x_10 = lean_box(0); -x_11 = lean_ctor_get(x_2, 1); -lean_inc(x_11); -lean_dec(x_2); -x_12 = lean_array_size(x_11); -x_13 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__1; -x_14 = lean_box_usize(x_12); -x_15 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___boxed__const__1; -lean_inc(x_11); -x_16 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__9___boxed), 13, 6); -lean_closure_set(x_16, 0, x_10); -lean_closure_set(x_16, 1, x_11); -lean_closure_set(x_16, 2, x_11); -lean_closure_set(x_16, 3, x_14); -lean_closure_set(x_16, 4, x_15); -lean_closure_set(x_16, 5, x_13); +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_10 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__3; +x_11 = lean_alloc_closure((void*)(l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___boxed), 8, 1); +lean_closure_set(x_11, 0, x_10); +x_12 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__1; lean_inc(x_1); -x_17 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___boxed), 10, 2); -lean_closure_set(x_17, 0, x_1); -lean_closure_set(x_17, 1, x_13); -x_18 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__10___rarg), 9, 2); -lean_closure_set(x_18, 0, x_16); -lean_closure_set(x_18, 1, x_17); -x_19 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__11___rarg(x_1, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -return x_19; +x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___boxed), 12, 4); +lean_closure_set(x_13, 0, x_10); +lean_closure_set(x_13, 1, x_12); +lean_closure_set(x_13, 2, x_2); +lean_closure_set(x_13, 3, x_1); +x_14 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__10___rarg), 9, 2); +lean_closure_set(x_14, 0, x_11); +lean_closure_set(x_14, 1, x_13); +x_15 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__11___rarg(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_15; } } LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { @@ -3207,11 +2087,11 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3221,11 +2101,11 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3235,11 +2115,11 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___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_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3249,11 +2129,11 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: { lean_object* x_9; -x_9 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3263,11 +2143,11 @@ lean_dec(x_2); return x_9; } } -LEAN_EXPORT lean_object* l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7___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_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___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) { _start: { lean_object* x_9; -x_9 = l_Lean_mkConstWithLevelParams___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +x_9 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); lean_dec(x_7); lean_dec(x_6); lean_dec(x_5); @@ -3315,3890 +2195,16 @@ lean_dec(x_1); return x_16; } } -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___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_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) { _start: { -lean_object* x_11; -x_11 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_5); -lean_dec(x_4); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___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) { -_start: -{ -uint8_t x_8; lean_object* x_9; lean_object* x_10; -x_8 = 1; -x_9 = lean_box(x_8); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_7); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___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) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Meta_getNatValue_x3f(x_1, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -if (lean_obj_tag(x_9) == 0) -{ -uint8_t x_10; -x_10 = !lean_is_exclusive(x_8); -if (x_10 == 0) -{ -lean_object* x_11; uint8_t x_12; lean_object* x_13; -x_11 = lean_ctor_get(x_8, 0); -lean_dec(x_11); -x_12 = 0; -x_13 = lean_box(x_12); -lean_ctor_set(x_8, 0, x_13); -return x_8; -} -else -{ -lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; -x_14 = lean_ctor_get(x_8, 1); -lean_inc(x_14); -lean_dec(x_8); -x_15 = 0; -x_16 = lean_box(x_15); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_14); -return x_17; -} -} -else -{ -uint8_t x_18; -lean_dec(x_9); -x_18 = !lean_is_exclusive(x_8); -if (x_18 == 0) -{ -lean_object* x_19; uint8_t x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_8, 0); -lean_dec(x_19); -x_20 = 1; -x_21 = lean_box(x_20); -lean_ctor_set(x_8, 0, x_21); -return x_8; -} -else -{ -lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_8, 1); -lean_inc(x_22); -lean_dec(x_8); -x_23 = 1; -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; -} -} -} -else -{ -uint8_t x_26; -x_26 = !lean_is_exclusive(x_8); -if (x_26 == 0) -{ -return x_8; -} -else -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; -x_27 = lean_ctor_get(x_8, 0); -x_28 = lean_ctor_get(x_8, 1); -lean_inc(x_28); -lean_inc(x_27); -lean_dec(x_8); -x_29 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_29, 0, x_27); -lean_ctor_set(x_29, 1, x_28); -return x_29; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___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) { -_start: -{ -lean_object* x_9; lean_object* x_10; -x_9 = l_Lean_Expr_getAppFn(x_1); -x_10 = l_Lean_Expr_constName_x3f(x_9); -lean_dec(x_9); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; lean_object* x_12; lean_object* x_13; +lean_object* x_13; +x_13 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); lean_dec(x_7); lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); lean_dec(x_3); -x_11 = 0; -x_12 = lean_box(x_11); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_8); return x_13; } -else -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_ctor_get(x_10, 0); -lean_inc(x_14); -lean_dec(x_10); -x_15 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInterestingCached(x_14, x_3, x_4, x_5, x_6, x_7, x_8); -return x_15; -} -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__1___boxed), 7, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__2___boxed), 7, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Bool", 4, 4); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__3; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("USize", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__6() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__5; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__7() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("UInt64", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__8() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__7; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("UInt32", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__10() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__9; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__11() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("UInt16", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__11; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__13() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("UInt8", 5, 5); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__13; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__15() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("BitVec", 6, 6); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__16() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__15; -x_3 = l_Lean_Name_str___override(x_1, x_2); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; -lean_inc(x_1); -x_8 = l_Lean_Meta_instantiateMVarsIfMVarApp(x_1, x_3, x_4, x_5, x_6, x_7); -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__1; -x_12 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__2; -x_13 = l_Lean_Expr_cleanupAnnotations(x_9); -x_14 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__4; -x_15 = l_Lean_Expr_isConstOf(x_13, x_14); -if (x_15 == 0) -{ -lean_object* x_16; uint8_t x_17; -x_16 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__6; -x_17 = l_Lean_Expr_isConstOf(x_13, x_16); -if (x_17 == 0) -{ -lean_object* x_18; uint8_t x_19; -x_18 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__8; -x_19 = l_Lean_Expr_isConstOf(x_13, x_18); -if (x_19 == 0) -{ -lean_object* x_20; uint8_t x_21; -x_20 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__10; -x_21 = l_Lean_Expr_isConstOf(x_13, x_20); -if (x_21 == 0) -{ -lean_object* x_22; uint8_t x_23; -x_22 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__12; -x_23 = l_Lean_Expr_isConstOf(x_13, x_22); -if (x_23 == 0) -{ -lean_object* x_24; uint8_t x_25; -x_24 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__14; -x_25 = l_Lean_Expr_isConstOf(x_13, x_24); -if (x_25 == 0) -{ -uint8_t x_26; -x_26 = l_Lean_Expr_isApp(x_13); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_13); -x_27 = lean_box(0); -x_28 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__3(x_1, x_27, x_2, x_3, x_4, x_5, x_6, x_10); -lean_dec(x_1); -return x_28; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; -x_29 = l_Lean_Expr_appArg(x_13, lean_box(0)); -x_30 = l_Lean_Expr_appFnCleanup(x_13, lean_box(0)); -x_31 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__16; -x_32 = l_Lean_Expr_isConstOf(x_30, x_31); -lean_dec(x_30); -if (x_32 == 0) -{ -lean_object* x_33; lean_object* x_34; -lean_dec(x_29); -x_33 = lean_box(0); -x_34 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__3(x_1, x_33, x_2, x_3, x_4, x_5, x_6, x_10); -lean_dec(x_1); -return x_34; -} -else -{ -lean_object* x_35; -lean_dec(x_1); -x_35 = lean_apply_7(x_12, x_29, x_2, x_3, x_4, x_5, x_6, x_10); -return x_35; -} -} -} -else -{ -lean_object* x_36; lean_object* x_37; -lean_dec(x_13); -lean_dec(x_1); -x_36 = lean_box(0); -x_37 = lean_apply_7(x_11, x_36, x_2, x_3, x_4, x_5, x_6, x_10); -return x_37; -} -} -else -{ -lean_object* x_38; lean_object* x_39; -lean_dec(x_13); -lean_dec(x_1); -x_38 = lean_box(0); -x_39 = lean_apply_7(x_11, x_38, x_2, x_3, x_4, x_5, x_6, x_10); -return x_39; -} -} -else -{ -lean_object* x_40; lean_object* x_41; -lean_dec(x_13); -lean_dec(x_1); -x_40 = lean_box(0); -x_41 = lean_apply_7(x_11, x_40, x_2, x_3, x_4, x_5, x_6, x_10); -return x_41; -} -} -else -{ -lean_object* x_42; lean_object* x_43; -lean_dec(x_13); -lean_dec(x_1); -x_42 = lean_box(0); -x_43 = lean_apply_7(x_11, x_42, x_2, x_3, x_4, x_5, x_6, x_10); -return x_43; -} -} -else -{ -lean_object* x_44; lean_object* x_45; -lean_dec(x_13); -lean_dec(x_1); -x_44 = lean_box(0); -x_45 = lean_apply_7(x_11, x_44, x_2, x_3, x_4, x_5, x_6, x_10); -return x_45; -} -} -else -{ -lean_object* x_46; lean_object* x_47; -lean_dec(x_13); -lean_dec(x_1); -x_46 = lean_box(0); -x_47 = lean_apply_7(x_11, x_46, x_2, x_3, x_4, x_5, x_6, x_10); -return x_47; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInterestingCached___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_9; -lean_inc(x_3); -lean_inc(x_1); -x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting(x_1, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_unbox(x_10); -lean_dec(x_10); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_dec(x_9); -x_13 = lean_st_ref_take(x_3, x_12); -x_14 = lean_ctor_get(x_13, 0); -lean_inc(x_14); -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_dec(x_13); -x_17 = !lean_is_exclusive(x_14); -if (x_17 == 0) -{ -lean_object* x_18; uint8_t x_19; -x_18 = lean_ctor_get(x_14, 1); -lean_dec(x_18); -x_19 = !lean_is_exclusive(x_15); -if (x_19 == 0) -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; uint64_t x_28; uint64_t x_29; size_t x_30; size_t x_31; size_t x_32; size_t x_33; size_t x_34; lean_object* x_35; uint8_t x_36; -x_20 = lean_ctor_get(x_15, 0); -x_21 = lean_ctor_get(x_15, 1); -x_22 = lean_array_get_size(x_21); -x_23 = l_Lean_Name_hash___override(x_1); -x_24 = 32; -x_25 = lean_uint64_shift_right(x_23, x_24); -x_26 = lean_uint64_xor(x_23, x_25); -x_27 = 16; -x_28 = lean_uint64_shift_right(x_26, x_27); -x_29 = lean_uint64_xor(x_26, x_28); -x_30 = lean_uint64_to_usize(x_29); -x_31 = lean_usize_of_nat(x_22); -lean_dec(x_22); -x_32 = 1; -x_33 = lean_usize_sub(x_31, x_32); -x_34 = lean_usize_land(x_30, x_33); -x_35 = lean_array_uget(x_21, x_34); -x_36 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_35); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; -x_37 = lean_unsigned_to_nat(1u); -x_38 = lean_nat_add(x_20, x_37); -lean_dec(x_20); -x_39 = lean_box(0); -x_40 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_40, 0, x_1); -lean_ctor_set(x_40, 1, x_39); -lean_ctor_set(x_40, 2, x_35); -x_41 = lean_array_uset(x_21, x_34, x_40); -x_42 = lean_unsigned_to_nat(4u); -x_43 = lean_nat_mul(x_38, x_42); -x_44 = lean_unsigned_to_nat(3u); -x_45 = lean_nat_div(x_43, x_44); -lean_dec(x_43); -x_46 = lean_array_get_size(x_41); -x_47 = lean_nat_dec_le(x_45, x_46); -lean_dec(x_46); -lean_dec(x_45); -if (x_47 == 0) -{ -lean_object* x_48; lean_object* x_49; uint8_t x_50; -x_48 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_41); -lean_ctor_set(x_15, 1, x_48); -lean_ctor_set(x_15, 0, x_38); -x_49 = lean_st_ref_set(x_3, x_14, x_16); -lean_dec(x_3); -x_50 = !lean_is_exclusive(x_49); -if (x_50 == 0) -{ -lean_object* x_51; uint8_t x_52; lean_object* x_53; -x_51 = lean_ctor_get(x_49, 0); -lean_dec(x_51); -x_52 = 0; -x_53 = lean_box(x_52); -lean_ctor_set(x_49, 0, x_53); -return x_49; -} -else -{ -lean_object* x_54; uint8_t x_55; lean_object* x_56; lean_object* x_57; -x_54 = lean_ctor_get(x_49, 1); -lean_inc(x_54); -lean_dec(x_49); -x_55 = 0; -x_56 = lean_box(x_55); -x_57 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_54); -return x_57; -} -} -else -{ -lean_object* x_58; uint8_t x_59; -lean_ctor_set(x_15, 1, x_41); -lean_ctor_set(x_15, 0, x_38); -x_58 = lean_st_ref_set(x_3, x_14, x_16); -lean_dec(x_3); -x_59 = !lean_is_exclusive(x_58); -if (x_59 == 0) -{ -lean_object* x_60; uint8_t x_61; lean_object* x_62; -x_60 = lean_ctor_get(x_58, 0); -lean_dec(x_60); -x_61 = 0; -x_62 = lean_box(x_61); -lean_ctor_set(x_58, 0, x_62); -return x_58; -} -else -{ -lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; -x_63 = lean_ctor_get(x_58, 1); -lean_inc(x_63); -lean_dec(x_58); -x_64 = 0; -x_65 = lean_box(x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_63); -return x_66; -} -} -} -else -{ -lean_object* x_67; uint8_t x_68; -lean_dec(x_35); -lean_dec(x_1); -x_67 = lean_st_ref_set(x_3, x_14, x_16); -lean_dec(x_3); -x_68 = !lean_is_exclusive(x_67); -if (x_68 == 0) -{ -lean_object* x_69; uint8_t x_70; lean_object* x_71; -x_69 = lean_ctor_get(x_67, 0); -lean_dec(x_69); -x_70 = 0; -x_71 = lean_box(x_70); -lean_ctor_set(x_67, 0, x_71); -return x_67; -} -else -{ -lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; -x_72 = lean_ctor_get(x_67, 1); -lean_inc(x_72); -lean_dec(x_67); -x_73 = 0; -x_74 = lean_box(x_73); -x_75 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_75, 0, x_74); -lean_ctor_set(x_75, 1, x_72); -return x_75; -} -} -} -else -{ -lean_object* x_76; lean_object* x_77; lean_object* x_78; uint64_t x_79; uint64_t x_80; uint64_t x_81; uint64_t x_82; uint64_t x_83; uint64_t x_84; uint64_t x_85; size_t x_86; size_t x_87; size_t x_88; size_t x_89; size_t x_90; lean_object* x_91; uint8_t x_92; -x_76 = lean_ctor_get(x_15, 0); -x_77 = lean_ctor_get(x_15, 1); -lean_inc(x_77); -lean_inc(x_76); -lean_dec(x_15); -x_78 = lean_array_get_size(x_77); -x_79 = l_Lean_Name_hash___override(x_1); -x_80 = 32; -x_81 = lean_uint64_shift_right(x_79, x_80); -x_82 = lean_uint64_xor(x_79, x_81); -x_83 = 16; -x_84 = lean_uint64_shift_right(x_82, x_83); -x_85 = lean_uint64_xor(x_82, x_84); -x_86 = lean_uint64_to_usize(x_85); -x_87 = lean_usize_of_nat(x_78); -lean_dec(x_78); -x_88 = 1; -x_89 = lean_usize_sub(x_87, x_88); -x_90 = lean_usize_land(x_86, x_89); -x_91 = lean_array_uget(x_77, x_90); -x_92 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_91); -if (x_92 == 0) -{ -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; uint8_t x_103; -x_93 = lean_unsigned_to_nat(1u); -x_94 = lean_nat_add(x_76, x_93); -lean_dec(x_76); -x_95 = lean_box(0); -x_96 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_96, 0, x_1); -lean_ctor_set(x_96, 1, x_95); -lean_ctor_set(x_96, 2, x_91); -x_97 = lean_array_uset(x_77, x_90, x_96); -x_98 = lean_unsigned_to_nat(4u); -x_99 = lean_nat_mul(x_94, x_98); -x_100 = lean_unsigned_to_nat(3u); -x_101 = lean_nat_div(x_99, x_100); -lean_dec(x_99); -x_102 = lean_array_get_size(x_97); -x_103 = lean_nat_dec_le(x_101, x_102); -lean_dec(x_102); -lean_dec(x_101); -if (x_103 == 0) -{ -lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109; lean_object* x_110; lean_object* x_111; -x_104 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_97); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_94); -lean_ctor_set(x_105, 1, x_104); -lean_ctor_set(x_14, 1, x_105); -x_106 = lean_st_ref_set(x_3, x_14, x_16); -lean_dec(x_3); -x_107 = lean_ctor_get(x_106, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_106)) { - lean_ctor_release(x_106, 0); - lean_ctor_release(x_106, 1); - x_108 = x_106; -} else { - lean_dec_ref(x_106); - x_108 = lean_box(0); -} -x_109 = 0; -x_110 = lean_box(x_109); -if (lean_is_scalar(x_108)) { - x_111 = lean_alloc_ctor(0, 2, 0); -} else { - x_111 = x_108; -} -lean_ctor_set(x_111, 0, x_110); -lean_ctor_set(x_111, 1, x_107); -return x_111; -} -else -{ -lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; lean_object* x_117; lean_object* x_118; -x_112 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_112, 0, x_94); -lean_ctor_set(x_112, 1, x_97); -lean_ctor_set(x_14, 1, x_112); -x_113 = lean_st_ref_set(x_3, x_14, x_16); -lean_dec(x_3); -x_114 = lean_ctor_get(x_113, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_113)) { - lean_ctor_release(x_113, 0); - lean_ctor_release(x_113, 1); - x_115 = x_113; -} else { - lean_dec_ref(x_113); - x_115 = lean_box(0); -} -x_116 = 0; -x_117 = lean_box(x_116); -if (lean_is_scalar(x_115)) { - x_118 = lean_alloc_ctor(0, 2, 0); -} else { - x_118 = x_115; -} -lean_ctor_set(x_118, 0, x_117); -lean_ctor_set(x_118, 1, x_114); -return x_118; -} -} -else -{ -lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; uint8_t x_123; lean_object* x_124; lean_object* x_125; -lean_dec(x_91); -lean_dec(x_1); -x_119 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_119, 0, x_76); -lean_ctor_set(x_119, 1, x_77); -lean_ctor_set(x_14, 1, x_119); -x_120 = lean_st_ref_set(x_3, x_14, x_16); -lean_dec(x_3); -x_121 = lean_ctor_get(x_120, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_120)) { - lean_ctor_release(x_120, 0); - lean_ctor_release(x_120, 1); - x_122 = x_120; -} else { - lean_dec_ref(x_120); - x_122 = lean_box(0); -} -x_123 = 0; -x_124 = lean_box(x_123); -if (lean_is_scalar(x_122)) { - x_125 = lean_alloc_ctor(0, 2, 0); -} else { - x_125 = x_122; -} -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_121); -return x_125; -} -} -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; uint64_t x_131; uint64_t x_132; uint64_t x_133; uint64_t x_134; uint64_t x_135; uint64_t x_136; uint64_t x_137; size_t x_138; size_t x_139; size_t x_140; size_t x_141; size_t x_142; lean_object* x_143; uint8_t x_144; -x_126 = lean_ctor_get(x_14, 0); -lean_inc(x_126); -lean_dec(x_14); -x_127 = lean_ctor_get(x_15, 0); -lean_inc(x_127); -x_128 = lean_ctor_get(x_15, 1); -lean_inc(x_128); -if (lean_is_exclusive(x_15)) { - lean_ctor_release(x_15, 0); - lean_ctor_release(x_15, 1); - x_129 = x_15; -} else { - lean_dec_ref(x_15); - x_129 = lean_box(0); -} -x_130 = lean_array_get_size(x_128); -x_131 = l_Lean_Name_hash___override(x_1); -x_132 = 32; -x_133 = lean_uint64_shift_right(x_131, x_132); -x_134 = lean_uint64_xor(x_131, x_133); -x_135 = 16; -x_136 = lean_uint64_shift_right(x_134, x_135); -x_137 = lean_uint64_xor(x_134, x_136); -x_138 = lean_uint64_to_usize(x_137); -x_139 = lean_usize_of_nat(x_130); -lean_dec(x_130); -x_140 = 1; -x_141 = lean_usize_sub(x_139, x_140); -x_142 = lean_usize_land(x_138, x_141); -x_143 = lean_array_uget(x_128, x_142); -x_144 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_143); -if (x_144 == 0) -{ -lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155; -x_145 = lean_unsigned_to_nat(1u); -x_146 = lean_nat_add(x_127, x_145); -lean_dec(x_127); -x_147 = lean_box(0); -x_148 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_148, 0, x_1); -lean_ctor_set(x_148, 1, x_147); -lean_ctor_set(x_148, 2, x_143); -x_149 = lean_array_uset(x_128, x_142, x_148); -x_150 = lean_unsigned_to_nat(4u); -x_151 = lean_nat_mul(x_146, x_150); -x_152 = lean_unsigned_to_nat(3u); -x_153 = lean_nat_div(x_151, x_152); -lean_dec(x_151); -x_154 = lean_array_get_size(x_149); -x_155 = lean_nat_dec_le(x_153, x_154); -lean_dec(x_154); -lean_dec(x_153); -if (x_155 == 0) -{ -lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; lean_object* x_163; lean_object* x_164; -x_156 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_149); -if (lean_is_scalar(x_129)) { - x_157 = lean_alloc_ctor(0, 2, 0); -} else { - x_157 = x_129; -} -lean_ctor_set(x_157, 0, x_146); -lean_ctor_set(x_157, 1, x_156); -x_158 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_158, 0, x_126); -lean_ctor_set(x_158, 1, x_157); -x_159 = lean_st_ref_set(x_3, x_158, x_16); -lean_dec(x_3); -x_160 = lean_ctor_get(x_159, 1); -lean_inc(x_160); -if (lean_is_exclusive(x_159)) { - lean_ctor_release(x_159, 0); - lean_ctor_release(x_159, 1); - x_161 = x_159; -} else { - lean_dec_ref(x_159); - x_161 = lean_box(0); -} -x_162 = 0; -x_163 = lean_box(x_162); -if (lean_is_scalar(x_161)) { - x_164 = lean_alloc_ctor(0, 2, 0); -} else { - x_164 = x_161; -} -lean_ctor_set(x_164, 0, x_163); -lean_ctor_set(x_164, 1, x_160); -return x_164; -} -else -{ -lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; uint8_t x_170; lean_object* x_171; lean_object* x_172; -if (lean_is_scalar(x_129)) { - x_165 = lean_alloc_ctor(0, 2, 0); -} else { - x_165 = x_129; -} -lean_ctor_set(x_165, 0, x_146); -lean_ctor_set(x_165, 1, x_149); -x_166 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_166, 0, x_126); -lean_ctor_set(x_166, 1, x_165); -x_167 = lean_st_ref_set(x_3, x_166, x_16); -lean_dec(x_3); -x_168 = lean_ctor_get(x_167, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_167)) { - lean_ctor_release(x_167, 0); - lean_ctor_release(x_167, 1); - x_169 = x_167; -} else { - lean_dec_ref(x_167); - x_169 = lean_box(0); -} -x_170 = 0; -x_171 = lean_box(x_170); -if (lean_is_scalar(x_169)) { - x_172 = lean_alloc_ctor(0, 2, 0); -} else { - x_172 = x_169; -} -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_168); -return x_172; -} -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; uint8_t x_178; lean_object* x_179; lean_object* x_180; -lean_dec(x_143); -lean_dec(x_1); -if (lean_is_scalar(x_129)) { - x_173 = lean_alloc_ctor(0, 2, 0); -} else { - x_173 = x_129; -} -lean_ctor_set(x_173, 0, x_127); -lean_ctor_set(x_173, 1, x_128); -x_174 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_174, 0, x_126); -lean_ctor_set(x_174, 1, x_173); -x_175 = lean_st_ref_set(x_3, x_174, x_16); -lean_dec(x_3); -x_176 = lean_ctor_get(x_175, 1); -lean_inc(x_176); -if (lean_is_exclusive(x_175)) { - lean_ctor_release(x_175, 0); - lean_ctor_release(x_175, 1); - x_177 = x_175; -} else { - lean_dec_ref(x_175); - x_177 = lean_box(0); -} -x_178 = 0; -x_179 = lean_box(x_178); -if (lean_is_scalar(x_177)) { - x_180 = lean_alloc_ctor(0, 2, 0); -} else { - x_180 = x_177; -} -lean_ctor_set(x_180, 0, x_179); -lean_ctor_set(x_180, 1, x_176); -return x_180; -} -} -} -else -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; uint8_t x_186; -x_181 = lean_ctor_get(x_9, 1); -lean_inc(x_181); -lean_dec(x_9); -x_182 = lean_st_ref_take(x_3, x_181); -x_183 = lean_ctor_get(x_182, 0); -lean_inc(x_183); -x_184 = lean_ctor_get(x_183, 0); -lean_inc(x_184); -x_185 = lean_ctor_get(x_182, 1); -lean_inc(x_185); -lean_dec(x_182); -x_186 = !lean_is_exclusive(x_183); -if (x_186 == 0) -{ -lean_object* x_187; uint8_t x_188; -x_187 = lean_ctor_get(x_183, 0); -lean_dec(x_187); -x_188 = !lean_is_exclusive(x_184); -if (x_188 == 0) -{ -lean_object* x_189; lean_object* x_190; lean_object* x_191; uint64_t x_192; uint64_t x_193; uint64_t x_194; uint64_t x_195; uint64_t x_196; uint64_t x_197; uint64_t x_198; size_t x_199; size_t x_200; size_t x_201; size_t x_202; size_t x_203; lean_object* x_204; uint8_t x_205; -x_189 = lean_ctor_get(x_184, 0); -x_190 = lean_ctor_get(x_184, 1); -x_191 = lean_array_get_size(x_190); -x_192 = l_Lean_Name_hash___override(x_1); -x_193 = 32; -x_194 = lean_uint64_shift_right(x_192, x_193); -x_195 = lean_uint64_xor(x_192, x_194); -x_196 = 16; -x_197 = lean_uint64_shift_right(x_195, x_196); -x_198 = lean_uint64_xor(x_195, x_197); -x_199 = lean_uint64_to_usize(x_198); -x_200 = lean_usize_of_nat(x_191); -lean_dec(x_191); -x_201 = 1; -x_202 = lean_usize_sub(x_200, x_201); -x_203 = lean_usize_land(x_199, x_202); -x_204 = lean_array_uget(x_190, x_203); -x_205 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_204); -if (x_205 == 0) -{ -lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; uint8_t x_216; -x_206 = lean_unsigned_to_nat(1u); -x_207 = lean_nat_add(x_189, x_206); -lean_dec(x_189); -x_208 = lean_box(0); -x_209 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_209, 0, x_1); -lean_ctor_set(x_209, 1, x_208); -lean_ctor_set(x_209, 2, x_204); -x_210 = lean_array_uset(x_190, x_203, x_209); -x_211 = lean_unsigned_to_nat(4u); -x_212 = lean_nat_mul(x_207, x_211); -x_213 = lean_unsigned_to_nat(3u); -x_214 = lean_nat_div(x_212, x_213); -lean_dec(x_212); -x_215 = lean_array_get_size(x_210); -x_216 = lean_nat_dec_le(x_214, x_215); -lean_dec(x_215); -lean_dec(x_214); -if (x_216 == 0) -{ -lean_object* x_217; lean_object* x_218; uint8_t x_219; -x_217 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_210); -lean_ctor_set(x_184, 1, x_217); -lean_ctor_set(x_184, 0, x_207); -x_218 = lean_st_ref_set(x_3, x_183, x_185); -lean_dec(x_3); -x_219 = !lean_is_exclusive(x_218); -if (x_219 == 0) -{ -lean_object* x_220; uint8_t x_221; lean_object* x_222; -x_220 = lean_ctor_get(x_218, 0); -lean_dec(x_220); -x_221 = 1; -x_222 = lean_box(x_221); -lean_ctor_set(x_218, 0, x_222); -return x_218; -} -else -{ -lean_object* x_223; uint8_t x_224; lean_object* x_225; lean_object* x_226; -x_223 = lean_ctor_get(x_218, 1); -lean_inc(x_223); -lean_dec(x_218); -x_224 = 1; -x_225 = lean_box(x_224); -x_226 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_226, 0, x_225); -lean_ctor_set(x_226, 1, x_223); -return x_226; -} -} -else -{ -lean_object* x_227; uint8_t x_228; -lean_ctor_set(x_184, 1, x_210); -lean_ctor_set(x_184, 0, x_207); -x_227 = lean_st_ref_set(x_3, x_183, x_185); -lean_dec(x_3); -x_228 = !lean_is_exclusive(x_227); -if (x_228 == 0) -{ -lean_object* x_229; uint8_t x_230; lean_object* x_231; -x_229 = lean_ctor_get(x_227, 0); -lean_dec(x_229); -x_230 = 1; -x_231 = lean_box(x_230); -lean_ctor_set(x_227, 0, x_231); -return x_227; -} -else -{ -lean_object* x_232; uint8_t x_233; lean_object* x_234; lean_object* x_235; -x_232 = lean_ctor_get(x_227, 1); -lean_inc(x_232); -lean_dec(x_227); -x_233 = 1; -x_234 = lean_box(x_233); -x_235 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_235, 0, x_234); -lean_ctor_set(x_235, 1, x_232); -return x_235; -} -} -} -else -{ -lean_object* x_236; uint8_t x_237; -lean_dec(x_204); -lean_dec(x_1); -x_236 = lean_st_ref_set(x_3, x_183, x_185); -lean_dec(x_3); -x_237 = !lean_is_exclusive(x_236); -if (x_237 == 0) -{ -lean_object* x_238; uint8_t x_239; lean_object* x_240; -x_238 = lean_ctor_get(x_236, 0); -lean_dec(x_238); -x_239 = 1; -x_240 = lean_box(x_239); -lean_ctor_set(x_236, 0, x_240); -return x_236; -} -else -{ -lean_object* x_241; uint8_t x_242; lean_object* x_243; lean_object* x_244; -x_241 = lean_ctor_get(x_236, 1); -lean_inc(x_241); -lean_dec(x_236); -x_242 = 1; -x_243 = lean_box(x_242); -x_244 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_244, 0, x_243); -lean_ctor_set(x_244, 1, x_241); -return x_244; -} -} -} -else -{ -lean_object* x_245; lean_object* x_246; lean_object* x_247; uint64_t x_248; uint64_t x_249; uint64_t x_250; uint64_t x_251; uint64_t x_252; uint64_t x_253; uint64_t x_254; size_t x_255; size_t x_256; size_t x_257; size_t x_258; size_t x_259; lean_object* x_260; uint8_t x_261; -x_245 = lean_ctor_get(x_184, 0); -x_246 = lean_ctor_get(x_184, 1); -lean_inc(x_246); -lean_inc(x_245); -lean_dec(x_184); -x_247 = lean_array_get_size(x_246); -x_248 = l_Lean_Name_hash___override(x_1); -x_249 = 32; -x_250 = lean_uint64_shift_right(x_248, x_249); -x_251 = lean_uint64_xor(x_248, x_250); -x_252 = 16; -x_253 = lean_uint64_shift_right(x_251, x_252); -x_254 = lean_uint64_xor(x_251, x_253); -x_255 = lean_uint64_to_usize(x_254); -x_256 = lean_usize_of_nat(x_247); -lean_dec(x_247); -x_257 = 1; -x_258 = lean_usize_sub(x_256, x_257); -x_259 = lean_usize_land(x_255, x_258); -x_260 = lean_array_uget(x_246, x_259); -x_261 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_260); -if (x_261 == 0) -{ -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; uint8_t x_272; -x_262 = lean_unsigned_to_nat(1u); -x_263 = lean_nat_add(x_245, x_262); -lean_dec(x_245); -x_264 = lean_box(0); -x_265 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_265, 0, x_1); -lean_ctor_set(x_265, 1, x_264); -lean_ctor_set(x_265, 2, x_260); -x_266 = lean_array_uset(x_246, x_259, x_265); -x_267 = lean_unsigned_to_nat(4u); -x_268 = lean_nat_mul(x_263, x_267); -x_269 = lean_unsigned_to_nat(3u); -x_270 = lean_nat_div(x_268, x_269); -lean_dec(x_268); -x_271 = lean_array_get_size(x_266); -x_272 = lean_nat_dec_le(x_270, x_271); -lean_dec(x_271); -lean_dec(x_270); -if (x_272 == 0) -{ -lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint8_t x_278; lean_object* x_279; lean_object* x_280; -x_273 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_266); -x_274 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_274, 0, x_263); -lean_ctor_set(x_274, 1, x_273); -lean_ctor_set(x_183, 0, x_274); -x_275 = lean_st_ref_set(x_3, x_183, x_185); -lean_dec(x_3); -x_276 = lean_ctor_get(x_275, 1); -lean_inc(x_276); -if (lean_is_exclusive(x_275)) { - lean_ctor_release(x_275, 0); - lean_ctor_release(x_275, 1); - x_277 = x_275; -} else { - lean_dec_ref(x_275); - x_277 = lean_box(0); -} -x_278 = 1; -x_279 = lean_box(x_278); -if (lean_is_scalar(x_277)) { - x_280 = lean_alloc_ctor(0, 2, 0); -} else { - x_280 = x_277; -} -lean_ctor_set(x_280, 0, x_279); -lean_ctor_set(x_280, 1, x_276); -return x_280; -} -else -{ -lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; uint8_t x_285; lean_object* x_286; lean_object* x_287; -x_281 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_281, 0, x_263); -lean_ctor_set(x_281, 1, x_266); -lean_ctor_set(x_183, 0, x_281); -x_282 = lean_st_ref_set(x_3, x_183, x_185); -lean_dec(x_3); -x_283 = lean_ctor_get(x_282, 1); -lean_inc(x_283); -if (lean_is_exclusive(x_282)) { - lean_ctor_release(x_282, 0); - lean_ctor_release(x_282, 1); - x_284 = x_282; -} else { - lean_dec_ref(x_282); - x_284 = lean_box(0); -} -x_285 = 1; -x_286 = lean_box(x_285); -if (lean_is_scalar(x_284)) { - x_287 = lean_alloc_ctor(0, 2, 0); -} else { - x_287 = x_284; -} -lean_ctor_set(x_287, 0, x_286); -lean_ctor_set(x_287, 1, x_283); -return x_287; -} -} -else -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; uint8_t x_292; lean_object* x_293; lean_object* x_294; -lean_dec(x_260); -lean_dec(x_1); -x_288 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_288, 0, x_245); -lean_ctor_set(x_288, 1, x_246); -lean_ctor_set(x_183, 0, x_288); -x_289 = lean_st_ref_set(x_3, x_183, x_185); -lean_dec(x_3); -x_290 = lean_ctor_get(x_289, 1); -lean_inc(x_290); -if (lean_is_exclusive(x_289)) { - lean_ctor_release(x_289, 0); - lean_ctor_release(x_289, 1); - x_291 = x_289; -} else { - lean_dec_ref(x_289); - x_291 = lean_box(0); -} -x_292 = 1; -x_293 = lean_box(x_292); -if (lean_is_scalar(x_291)) { - x_294 = lean_alloc_ctor(0, 2, 0); -} else { - x_294 = x_291; -} -lean_ctor_set(x_294, 0, x_293); -lean_ctor_set(x_294, 1, x_290); -return x_294; -} -} -} -else -{ -lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; uint64_t x_300; uint64_t x_301; uint64_t x_302; uint64_t x_303; uint64_t x_304; uint64_t x_305; uint64_t x_306; size_t x_307; size_t x_308; size_t x_309; size_t x_310; size_t x_311; lean_object* x_312; uint8_t x_313; -x_295 = lean_ctor_get(x_183, 1); -lean_inc(x_295); -lean_dec(x_183); -x_296 = lean_ctor_get(x_184, 0); -lean_inc(x_296); -x_297 = lean_ctor_get(x_184, 1); -lean_inc(x_297); -if (lean_is_exclusive(x_184)) { - lean_ctor_release(x_184, 0); - lean_ctor_release(x_184, 1); - x_298 = x_184; -} else { - lean_dec_ref(x_184); - x_298 = lean_box(0); -} -x_299 = lean_array_get_size(x_297); -x_300 = l_Lean_Name_hash___override(x_1); -x_301 = 32; -x_302 = lean_uint64_shift_right(x_300, x_301); -x_303 = lean_uint64_xor(x_300, x_302); -x_304 = 16; -x_305 = lean_uint64_shift_right(x_303, x_304); -x_306 = lean_uint64_xor(x_303, x_305); -x_307 = lean_uint64_to_usize(x_306); -x_308 = lean_usize_of_nat(x_299); -lean_dec(x_299); -x_309 = 1; -x_310 = lean_usize_sub(x_308, x_309); -x_311 = lean_usize_land(x_307, x_310); -x_312 = lean_array_uget(x_297, x_311); -x_313 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_312); -if (x_313 == 0) -{ -lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; uint8_t x_324; -x_314 = lean_unsigned_to_nat(1u); -x_315 = lean_nat_add(x_296, x_314); -lean_dec(x_296); -x_316 = lean_box(0); -x_317 = lean_alloc_ctor(1, 3, 0); -lean_ctor_set(x_317, 0, x_1); -lean_ctor_set(x_317, 1, x_316); -lean_ctor_set(x_317, 2, x_312); -x_318 = lean_array_uset(x_297, x_311, x_317); -x_319 = lean_unsigned_to_nat(4u); -x_320 = lean_nat_mul(x_315, x_319); -x_321 = lean_unsigned_to_nat(3u); -x_322 = lean_nat_div(x_320, x_321); -lean_dec(x_320); -x_323 = lean_array_get_size(x_318); -x_324 = lean_nat_dec_le(x_322, x_323); -lean_dec(x_323); -lean_dec(x_322); -if (x_324 == 0) -{ -lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; uint8_t x_331; lean_object* x_332; lean_object* x_333; -x_325 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_318); -if (lean_is_scalar(x_298)) { - x_326 = lean_alloc_ctor(0, 2, 0); -} else { - x_326 = x_298; -} -lean_ctor_set(x_326, 0, x_315); -lean_ctor_set(x_326, 1, x_325); -x_327 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_327, 0, x_326); -lean_ctor_set(x_327, 1, x_295); -x_328 = lean_st_ref_set(x_3, x_327, x_185); -lean_dec(x_3); -x_329 = lean_ctor_get(x_328, 1); -lean_inc(x_329); -if (lean_is_exclusive(x_328)) { - lean_ctor_release(x_328, 0); - lean_ctor_release(x_328, 1); - x_330 = x_328; -} else { - lean_dec_ref(x_328); - x_330 = lean_box(0); -} -x_331 = 1; -x_332 = lean_box(x_331); -if (lean_is_scalar(x_330)) { - x_333 = lean_alloc_ctor(0, 2, 0); -} else { - x_333 = x_330; -} -lean_ctor_set(x_333, 0, x_332); -lean_ctor_set(x_333, 1, x_329); -return x_333; -} -else -{ -lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; uint8_t x_339; lean_object* x_340; lean_object* x_341; -if (lean_is_scalar(x_298)) { - x_334 = lean_alloc_ctor(0, 2, 0); -} else { - x_334 = x_298; -} -lean_ctor_set(x_334, 0, x_315); -lean_ctor_set(x_334, 1, x_318); -x_335 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_335, 0, x_334); -lean_ctor_set(x_335, 1, x_295); -x_336 = lean_st_ref_set(x_3, x_335, x_185); -lean_dec(x_3); -x_337 = lean_ctor_get(x_336, 1); -lean_inc(x_337); -if (lean_is_exclusive(x_336)) { - lean_ctor_release(x_336, 0); - lean_ctor_release(x_336, 1); - x_338 = x_336; -} else { - lean_dec_ref(x_336); - x_338 = lean_box(0); -} -x_339 = 1; -x_340 = lean_box(x_339); -if (lean_is_scalar(x_338)) { - x_341 = lean_alloc_ctor(0, 2, 0); -} else { - x_341 = x_338; -} -lean_ctor_set(x_341, 0, x_340); -lean_ctor_set(x_341, 1, x_337); -return x_341; -} -} -else -{ -lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; uint8_t x_347; lean_object* x_348; lean_object* x_349; -lean_dec(x_312); -lean_dec(x_1); -if (lean_is_scalar(x_298)) { - x_342 = lean_alloc_ctor(0, 2, 0); -} else { - x_342 = x_298; -} -lean_ctor_set(x_342, 0, x_296); -lean_ctor_set(x_342, 1, x_297); -x_343 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_343, 0, x_342); -lean_ctor_set(x_343, 1, x_295); -x_344 = lean_st_ref_set(x_3, x_343, x_185); -lean_dec(x_3); -x_345 = lean_ctor_get(x_344, 1); -lean_inc(x_345); -if (lean_is_exclusive(x_344)) { - lean_ctor_release(x_344, 0); - lean_ctor_release(x_344, 1); - x_346 = x_344; -} else { - lean_dec_ref(x_344); - x_346 = lean_box(0); -} -x_347 = 1; -x_348 = lean_box(x_347); -if (lean_is_scalar(x_346)) { - x_349 = lean_alloc_ctor(0, 2, 0); -} else { - x_349 = x_346; -} -lean_ctor_set(x_349, 0, x_348); -lean_ctor_set(x_349, 1, x_345); -return x_349; -} -} -} -} -else -{ -uint8_t x_350; -lean_dec(x_3); -lean_dec(x_1); -x_350 = !lean_is_exclusive(x_9); -if (x_350 == 0) -{ -return x_9; -} -else -{ -lean_object* x_351; lean_object* x_352; lean_object* x_353; -x_351 = lean_ctor_get(x_9, 0); -x_352 = lean_ctor_get(x_9, 1); -lean_inc(x_352); -lean_inc(x_351); -lean_dec(x_9); -x_353 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_353, 0, x_351); -lean_ctor_set(x_353, 1, x_352); -return x_353; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInterestingCached(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; uint64_t x_25; uint64_t x_26; uint64_t x_27; size_t x_28; size_t x_29; size_t x_30; size_t x_31; size_t x_32; lean_object* x_33; uint8_t x_34; -x_15 = lean_st_ref_get(x_2, x_7); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_16, 1); -lean_inc(x_17); -x_18 = lean_ctor_get(x_15, 1); -lean_inc(x_18); -lean_dec(x_15); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = lean_array_get_size(x_19); -x_21 = l_Lean_Name_hash___override(x_1); -x_22 = 32; -x_23 = lean_uint64_shift_right(x_21, x_22); -x_24 = lean_uint64_xor(x_21, x_23); -x_25 = 16; -x_26 = lean_uint64_shift_right(x_24, x_25); -x_27 = lean_uint64_xor(x_24, x_26); -x_28 = lean_uint64_to_usize(x_27); -x_29 = lean_usize_of_nat(x_20); -lean_dec(x_20); -x_30 = 1; -x_31 = lean_usize_sub(x_29, x_30); -x_32 = lean_usize_land(x_28, x_31); -x_33 = lean_array_uget(x_19, x_32); -lean_dec(x_19); -x_34 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_33); -lean_dec(x_33); -if (x_34 == 0) -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; size_t x_40; lean_object* x_41; uint8_t x_42; -x_35 = lean_ctor_get(x_16, 0); -lean_inc(x_35); -lean_dec(x_16); -x_36 = lean_ctor_get(x_35, 1); -lean_inc(x_36); -lean_dec(x_35); -x_37 = lean_array_get_size(x_36); -x_38 = lean_usize_of_nat(x_37); -lean_dec(x_37); -x_39 = lean_usize_sub(x_38, x_30); -x_40 = lean_usize_land(x_28, x_39); -x_41 = lean_array_uget(x_36, x_40); -lean_dec(x_36); -x_42 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_41); -lean_dec(x_41); -if (x_42 == 0) -{ -lean_object* x_43; -x_43 = lean_box(0); -x_8 = x_43; -x_9 = x_18; -goto block_14; -} -else -{ -lean_object* x_44; -x_44 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__1; -x_8 = x_44; -x_9 = x_18; -goto block_14; -} -} -else -{ -lean_object* x_45; -lean_dec(x_16); -x_45 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__2; -x_8 = x_45; -x_9 = x_18; -goto block_14; -} -block_14: -{ -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_10; lean_object* x_11; -x_10 = lean_box(0); -x_11 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInterestingCached___lambda__1(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_9); -return x_11; -} -else -{ -lean_object* x_12; lean_object* x_13; -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 = lean_ctor_get(x_8, 0); -lean_inc(x_12); -lean_dec(x_8); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_9); -return x_13; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_5, 5); -x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_8); -lean_ctor_set(x_12, 1, x_11); -lean_ctor_set_tag(x_9, 1); -lean_ctor_set(x_9, 0, x_12); -return x_9; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_9); -lean_inc(x_8); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_8); -lean_ctor_set(x_15, 1, x_13); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -} -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_st_ref_get(x_6, x_7); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -lean_inc(x_1); -x_13 = l_Lean_Environment_find_x3f(x_12, x_1); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -lean_free_object(x_8); -x_14 = 0; -x_15 = l_Lean_MessageData_ofConstName(x_1, x_14); -x_16 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__2; -x_17 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -x_18 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4; -x_19 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_19, 0, x_17); -lean_ctor_set(x_19, 1, x_18); -x_20 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__3(x_19, x_2, x_3, x_4, x_5, x_6, x_11); -return x_20; -} -else -{ -lean_object* x_21; -lean_dec(x_1); -x_21 = lean_ctor_get(x_13, 0); -lean_inc(x_21); -lean_dec(x_13); -lean_ctor_set(x_8, 0, x_21); -return x_8; -} -} -else -{ -lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_22 = lean_ctor_get(x_8, 0); -x_23 = lean_ctor_get(x_8, 1); -lean_inc(x_23); -lean_inc(x_22); -lean_dec(x_8); -x_24 = lean_ctor_get(x_22, 0); -lean_inc(x_24); -lean_dec(x_22); -lean_inc(x_1); -x_25 = l_Lean_Environment_find_x3f(x_24, x_1); -if (lean_obj_tag(x_25) == 0) -{ -uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_26 = 0; -x_27 = l_Lean_MessageData_ofConstName(x_1, x_26); -x_28 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__2; -x_29 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_29, 0, x_28); -lean_ctor_set(x_29, 1, x_27); -x_30 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4; -x_31 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -x_32 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__3(x_31, x_2, x_3, x_4, x_5, x_6, x_23); -return x_32; -} -else -{ -lean_object* x_33; lean_object* x_34; -lean_dec(x_1); -x_33 = lean_ctor_get(x_25, 0); -lean_inc(x_33); -lean_dec(x_25); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_23); -return x_34; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_5, 5); -x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_8); -lean_ctor_set(x_12, 1, x_11); -lean_ctor_set_tag(x_9, 1); -lean_ctor_set(x_9, 0, x_12); -return x_9; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_9); -lean_inc(x_8); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_8); -lean_ctor_set(x_15, 1, x_13); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -} -LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -lean_inc(x_1); -x_8 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -if (lean_obj_tag(x_9) == 5) -{ -uint8_t x_10; -lean_dec(x_1); -x_10 = !lean_is_exclusive(x_8); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_8, 0); -lean_dec(x_11); -x_12 = lean_ctor_get(x_9, 0); -lean_inc(x_12); -lean_dec(x_9); -lean_ctor_set(x_8, 0, x_12); -return x_8; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); -lean_dec(x_8); -x_14 = lean_ctor_get(x_9, 0); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -return x_15; -} -} -else -{ -lean_object* x_16; uint8_t 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_dec(x_9); -x_16 = lean_ctor_get(x_8, 1); -lean_inc(x_16); -lean_dec(x_8); -x_17 = 0; -x_18 = l_Lean_MessageData_ofConstName(x_1, x_17); -x_19 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4; -x_20 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__2; -x_22 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__4(x_22, x_2, x_3, x_4, x_5, x_6, x_16); -return x_23; -} -} -else -{ -uint8_t x_24; -lean_dec(x_1); -x_24 = !lean_is_exclusive(x_8); -if (x_24 == 0) -{ -return x_8; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_8, 0); -x_26 = lean_ctor_get(x_8, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_8); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___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) { -_start: -{ -lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_8 = lean_ctor_get(x_5, 5); -x_9 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_3, x_4, x_5, x_6, x_7); -x_10 = !lean_is_exclusive(x_9); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_8); -x_12 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_12, 0, x_8); -lean_ctor_set(x_12, 1, x_11); -lean_ctor_set_tag(x_9, 1); -lean_ctor_set(x_9, 0, x_12); -return x_9; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_13 = lean_ctor_get(x_9, 0); -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_inc(x_13); -lean_dec(x_9); -lean_inc(x_8); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_8); -lean_ctor_set(x_15, 1, x_13); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_15); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -} -} -LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -lean_inc(x_1); -x_8 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -if (lean_obj_tag(x_9) == 6) -{ -uint8_t x_10; -lean_dec(x_1); -x_10 = !lean_is_exclusive(x_8); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_ctor_get(x_8, 0); -lean_dec(x_11); -x_12 = lean_ctor_get(x_9, 0); -lean_inc(x_12); -lean_dec(x_9); -lean_ctor_set(x_8, 0, x_12); -return x_8; -} -else -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_13 = lean_ctor_get(x_8, 1); -lean_inc(x_13); -lean_dec(x_8); -x_14 = lean_ctor_get(x_9, 0); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_14); -lean_ctor_set(x_15, 1, x_13); -return x_15; -} -} -else -{ -lean_object* x_16; uint8_t 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_dec(x_9); -x_16 = lean_ctor_get(x_8, 1); -lean_inc(x_16); -lean_dec(x_8); -x_17 = 0; -x_18 = l_Lean_MessageData_ofConstName(x_1, x_17); -x_19 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4; -x_20 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__2; -x_22 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__6(x_22, x_2, x_3, x_4, x_5, x_6, x_16); -return x_23; -} -} -else -{ -uint8_t x_24; -lean_dec(x_1); -x_24 = !lean_is_exclusive(x_8); -if (x_24 == 0) -{ -return x_8; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_8, 0); -x_26 = lean_ctor_get(x_8, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_8); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__7(lean_object* x_1, size_t x_2, size_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -uint8_t x_11; -x_11 = lean_usize_dec_eq(x_2, x_3); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_array_uget(x_1, x_2); -x_13 = l_Lean_Expr_fvarId_x21(x_12); -lean_dec(x_12); -lean_inc(x_6); -x_14 = l_Lean_FVarId_getType(x_13, x_6, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_ctor_get(x_14, 1); -lean_inc(x_16); -lean_dec(x_14); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -x_17 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting(x_15, x_5, x_6, x_7, x_8, x_9, x_16); -if (lean_obj_tag(x_17) == 0) -{ -if (x_4 == 0) -{ -lean_object* x_18; lean_object* x_19; size_t x_20; size_t x_21; uint8_t x_22; -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_17, 1); -lean_inc(x_19); -lean_dec(x_17); -x_20 = 1; -x_21 = lean_usize_add(x_2, x_20); -x_22 = lean_unbox(x_18); -lean_dec(x_18); -x_2 = x_21; -x_4 = x_22; -x_10 = x_19; -goto _start; -} -else -{ -lean_object* x_24; size_t x_25; size_t x_26; uint8_t x_27; -x_24 = lean_ctor_get(x_17, 1); -lean_inc(x_24); -lean_dec(x_17); -x_25 = 1; -x_26 = lean_usize_add(x_2, x_25); -x_27 = 1; -x_2 = x_26; -x_4 = x_27; -x_10 = x_24; -goto _start; -} -} -else -{ -uint8_t x_29; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_29 = !lean_is_exclusive(x_17); -if (x_29 == 0) -{ -return x_17; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_17, 0); -x_31 = lean_ctor_get(x_17, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_17); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -else -{ -uint8_t x_33; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_33 = !lean_is_exclusive(x_14); -if (x_33 == 0) -{ -return x_14; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_14, 0); -x_35 = lean_ctor_get(x_14, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_14); -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_object* x_38; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -x_37 = lean_box(x_4); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_37); -lean_ctor_set(x_38, 1, x_10); -return x_38; -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8___rarg___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) { -_start: -{ -lean_object* x_10; -x_10 = lean_apply_8(x_1, x_3, x_4, x_2, x_5, x_6, x_7, x_8, x_9); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8___rarg(lean_object* x_1, lean_object* x_2, uint8_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) { -_start: -{ -lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; -x_10 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8___rarg___lambda__1), 9, 2); -lean_closure_set(x_10, 0, x_2); -lean_closure_set(x_10, 1, x_4); -x_11 = lean_box(0); -x_12 = 0; -x_13 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(x_12, x_11, x_1, x_10, x_3, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) -{ -return x_13; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_13, 0); -x_16 = lean_ctor_get(x_13, 1); -lean_inc(x_16); -lean_inc(x_15); -lean_dec(x_13); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_15); -lean_ctor_set(x_17, 1, x_16); -return x_17; -} -} -else -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_13); -if (x_18 == 0) -{ -return x_13; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_13, 0); -x_20 = lean_ctor_get(x_13, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_13); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8___rarg___boxed), 9, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___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_9; lean_object* x_10; uint8_t x_11; -x_9 = lean_array_get_size(x_1); -x_10 = lean_unsigned_to_nat(0u); -x_11 = lean_nat_dec_lt(x_10, x_9); -if (x_11 == 0) -{ -uint8_t x_12; lean_object* x_13; lean_object* x_14; -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -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_8); -return x_14; -} -else -{ -uint8_t x_15; -x_15 = lean_nat_dec_le(x_9, x_9); -if (x_15 == 0) -{ -uint8_t x_16; lean_object* x_17; lean_object* x_18; -lean_dec(x_9); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_16 = 0; -x_17 = lean_box(x_16); -x_18 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_18, 1, x_8); -return x_18; -} -else -{ -size_t x_19; size_t x_20; uint8_t x_21; lean_object* x_22; -x_19 = 0; -x_20 = lean_usize_of_nat(x_9); -lean_dec(x_9); -x_21 = 0; -x_22 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__7(x_1, x_19, x_20, x_21, x_3, x_4, x_5, x_6, x_7, x_8); -return x_22; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__2___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__1___boxed), 8, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___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) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_9 = lean_ctor_get(x_1, 4); -x_10 = l_Lean_instInhabitedName; -x_11 = l_List_head_x21___rarg(x_10, x_9); -x_12 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__5(x_11, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_12) == 0) -{ -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; -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, 0); -lean_inc(x_15); -lean_dec(x_13); -x_16 = lean_ctor_get(x_15, 2); -lean_inc(x_16); -lean_dec(x_15); -x_17 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__2___closed__1; -x_18 = 0; -x_19 = l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8___rarg(x_16, x_17, x_18, x_3, x_4, x_5, x_6, x_7, x_14); -return x_19; -} -else -{ -uint8_t x_20; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_20 = !lean_is_exclusive(x_12); -if (x_20 == 0) -{ -return x_12; -} -else -{ -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_12, 0); -x_22 = lean_ctor_get(x_12, 1); -lean_inc(x_22); -lean_inc(x_21); -lean_dec(x_12); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___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) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; uint8_t x_11; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get_uint8(x_10, sizeof(void*)*6); -if (x_11 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_dec(x_9); -x_13 = lean_box(0); -x_14 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__2(x_10, x_13, x_3, x_4, x_5, x_6, x_7, x_12); -lean_dec(x_10); -return x_14; -} -else -{ -uint8_t x_15; -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_15 = !lean_is_exclusive(x_9); -if (x_15 == 0) -{ -lean_object* x_16; uint8_t x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_9, 0); -lean_dec(x_16); -x_17 = 0; -x_18 = lean_box(x_17); -lean_ctor_set(x_9, 0, x_18); -return x_9; -} -else -{ -lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_9, 1); -lean_inc(x_19); -lean_dec(x_9); -x_20 = 0; -x_21 = lean_box(x_20); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_21); -lean_ctor_set(x_22, 1, x_19); -return x_22; -} -} -} -else -{ -uint8_t x_23; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_23 = !lean_is_exclusive(x_9); -if (x_23 == 0) -{ -return x_9; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_9, 0); -x_25 = lean_ctor_get(x_9, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_9); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; uint8_t x_9; -x_8 = lean_st_ref_get(x_6, x_7); -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_ctor_get(x_8, 1); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -lean_dec(x_10); -lean_inc(x_1); -x_13 = l_Lean_isStructure(x_12, x_1); -if (x_13 == 0) -{ -uint8_t x_14; lean_object* x_15; -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 = 0; -x_15 = lean_box(x_14); -lean_ctor_set(x_8, 0, x_15); -return x_8; -} -else -{ -lean_object* x_16; lean_object* x_17; -lean_free_object(x_8); -x_16 = lean_box(0); -x_17 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__3(x_1, x_16, x_2, x_3, x_4, x_5, x_6, x_11); -return x_17; -} -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; -x_18 = lean_ctor_get(x_8, 0); -x_19 = lean_ctor_get(x_8, 1); -lean_inc(x_19); -lean_inc(x_18); -lean_dec(x_8); -x_20 = lean_ctor_get(x_18, 0); -lean_inc(x_20); -lean_dec(x_18); -lean_inc(x_1); -x_21 = l_Lean_isStructure(x_20, x_1); -if (x_21 == 0) -{ -uint8_t x_22; lean_object* x_23; lean_object* x_24; -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_22 = 0; -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; -} -else -{ -lean_object* x_25; lean_object* x_26; -x_25 = lean_box(0); -x_26 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__3(x_1, x_25, x_2, x_3, x_4, x_5, x_6, x_19); -return x_26; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___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) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, 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_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___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) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_2); -lean_dec(x_1); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInterestingCached___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_9; -x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInterestingCached___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___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) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -return x_8; -} -} -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__7___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: -{ -size_t x_11; size_t x_12; uint8_t x_13; lean_object* x_14; -x_11 = lean_unbox_usize(x_2); -lean_dec(x_2); -x_12 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_13 = lean_unbox(x_4); -lean_dec(x_4); -x_14 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__7(x_1, x_11, x_12, x_13, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_1); -return x_14; -} -} -LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8___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) { -_start: -{ -uint8_t x_10; lean_object* x_11; -x_10 = lean_unbox(x_3); -lean_dec(x_3); -x_11 = l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___spec__8___rarg(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___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_9; -x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___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) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -uint8_t x_15; -x_15 = lean_usize_dec_lt(x_7, x_6); -if (x_15 == 0) -{ -lean_object* x_16; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_4); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_8); -lean_ctor_set(x_16, 1, x_14); -return x_16; -} -else -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_array_uget(x_5, x_7); -x_18 = !lean_is_exclusive(x_8); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_8, 1); -x_20 = lean_ctor_get(x_8, 0); -lean_dec(x_20); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_19); -x_21 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2(x_1, x_17, x_19, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_17); -if (lean_obj_tag(x_21) == 0) -{ -lean_object* x_22; -x_22 = lean_ctor_get(x_21, 0); -lean_inc(x_22); -if (lean_obj_tag(x_22) == 0) -{ -uint8_t x_23; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_4); -x_23 = !lean_is_exclusive(x_21); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_21, 0); -lean_dec(x_24); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_22); -lean_ctor_set(x_8, 0, x_25); -lean_ctor_set(x_21, 0, x_8); -return x_21; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_21, 1); -lean_inc(x_26); -lean_dec(x_21); -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_22); -lean_ctor_set(x_8, 0, x_27); -x_28 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_28, 0, x_8); -lean_ctor_set(x_28, 1, x_26); -return x_28; -} -} -else -{ -lean_object* x_29; lean_object* x_30; size_t x_31; size_t x_32; -lean_dec(x_19); -x_29 = lean_ctor_get(x_21, 1); -lean_inc(x_29); -lean_dec(x_21); -x_30 = lean_ctor_get(x_22, 0); -lean_inc(x_30); -lean_dec(x_22); -lean_inc(x_4); -lean_ctor_set(x_8, 1, x_30); -lean_ctor_set(x_8, 0, x_4); -x_31 = 1; -x_32 = lean_usize_add(x_7, x_31); -x_7 = x_32; -x_14 = x_29; -goto _start; -} -} -else -{ -uint8_t x_34; -lean_free_object(x_8); -lean_dec(x_19); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_4); -x_34 = !lean_is_exclusive(x_21); -if (x_34 == 0) -{ -return x_21; -} -else -{ -lean_object* x_35; lean_object* x_36; lean_object* x_37; -x_35 = lean_ctor_get(x_21, 0); -x_36 = lean_ctor_get(x_21, 1); -lean_inc(x_36); -lean_inc(x_35); -lean_dec(x_21); -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_8, 1); -lean_inc(x_38); -lean_dec(x_8); -lean_inc(x_13); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_38); -x_39 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2(x_1, x_17, x_38, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_17); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -if (lean_obj_tag(x_40) == 0) -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_4); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_42 = x_39; -} else { - lean_dec_ref(x_39); - x_42 = lean_box(0); -} -x_43 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_43, 0, x_40); -x_44 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_38); -if (lean_is_scalar(x_42)) { - x_45 = lean_alloc_ctor(0, 2, 0); -} else { - x_45 = x_42; -} -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_41); -return x_45; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; size_t x_49; size_t x_50; -lean_dec(x_38); -x_46 = lean_ctor_get(x_39, 1); -lean_inc(x_46); -lean_dec(x_39); -x_47 = lean_ctor_get(x_40, 0); -lean_inc(x_47); -lean_dec(x_40); -lean_inc(x_4); -x_48 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_48, 0, x_4); -lean_ctor_set(x_48, 1, x_47); -x_49 = 1; -x_50 = lean_usize_add(x_7, x_49); -x_7 = x_50; -x_8 = x_48; -x_14 = x_46; -goto _start; -} -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -lean_dec(x_38); -lean_dec(x_13); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_4); -x_52 = lean_ctor_get(x_39, 0); -lean_inc(x_52); -x_53 = lean_ctor_get(x_39, 1); -lean_inc(x_53); -if (lean_is_exclusive(x_39)) { - lean_ctor_release(x_39, 0); - lean_ctor_release(x_39, 1); - x_54 = x_39; -} else { - lean_dec_ref(x_39); - x_54 = lean_box(0); -} -if (lean_is_scalar(x_54)) { - x_55 = lean_alloc_ctor(1, 2, 0); -} else { - x_55 = x_54; -} -lean_ctor_set(x_55, 0, x_52); -lean_ctor_set(x_55, 1, x_53); -return x_55; -} -} -} -} -} -static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = lean_box(0); -x_2 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_2, 0, x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t 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_14; -x_14 = lean_usize_dec_lt(x_6, x_5); -if (x_14 == 0) -{ -lean_object* x_15; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_7); -lean_ctor_set(x_15, 1, x_13); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_array_uget(x_4, x_6); -x_17 = lean_ctor_get(x_7, 1); -lean_inc(x_17); -if (lean_is_exclusive(x_7)) { - lean_ctor_release(x_7, 0); - lean_ctor_release(x_7, 1); - x_18 = x_7; -} else { - lean_dec_ref(x_7); - x_18 = lean_box(0); -} -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_27; -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_17); -x_19 = x_27; -x_20 = x_13; -goto block_26; -} -else -{ -lean_object* x_28; uint8_t x_29; -lean_dec(x_17); -x_28 = lean_ctor_get(x_16, 0); -lean_inc(x_28); -lean_dec(x_16); -x_29 = l_Lean_LocalDecl_isLet(x_28); -if (x_29 == 0) -{ -uint8_t x_30; -x_30 = l_Lean_LocalDecl_isImplementationDetail(x_28); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; -x_31 = l_Lean_LocalDecl_type(x_28); -lean_dec(x_28); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_32 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting(x_31, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -x_34 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1; -x_19 = x_34; -x_20 = x_33; -goto block_26; -} -else -{ -uint8_t x_35; -lean_dec(x_18); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -x_35 = !lean_is_exclusive(x_32); -if (x_35 == 0) -{ -return x_32; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_32, 0); -x_37 = lean_ctor_get(x_32, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_32); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -else -{ -lean_object* x_39; -lean_dec(x_28); -x_39 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1; -x_19 = x_39; -x_20 = x_13; -goto block_26; -} -} -else -{ -lean_object* x_40; -lean_dec(x_28); -x_40 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1; -x_19 = x_40; -x_20 = x_13; -goto block_26; -} -} -block_26: -{ -lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -lean_dec(x_19); -lean_inc(x_3); -if (lean_is_scalar(x_18)) { - x_22 = lean_alloc_ctor(0, 2, 0); -} else { - x_22 = x_18; -} -lean_ctor_set(x_22, 0, x_3); -lean_ctor_set(x_22, 1, x_21); -x_23 = 1; -x_24 = lean_usize_add(x_6, x_23); -x_6 = x_24; -x_7 = x_22; -x_13 = x_20; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_9, 0, x_1); -x_10 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_10, 0, x_9); -lean_ctor_set(x_10, 1, x_8); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; -x_10 = lean_ctor_get(x_2, 0); -x_11 = lean_box(0); -x_12 = lean_box(0); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_12); -lean_ctor_set(x_13, 1, x_3); -x_14 = lean_array_size(x_10); -x_15 = 0; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_16 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__3(x_1, x_10, x_11, x_12, x_10, x_14, x_15, x_13, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; lean_object* x_18; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_ctor_get(x_17, 0); -lean_inc(x_18); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_dec(x_17); -x_21 = lean_box(0); -x_22 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2___lambda__1(x_20, x_21, x_4, x_5, x_6, x_7, x_8, x_19); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_22; -} -else -{ -uint8_t x_23; -lean_dec(x_17); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_23 = !lean_is_exclusive(x_16); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -x_24 = lean_ctor_get(x_16, 0); -lean_dec(x_24); -x_25 = lean_ctor_get(x_18, 0); -lean_inc(x_25); -lean_dec(x_18); -lean_ctor_set(x_16, 0, x_25); -return x_16; -} -else -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_16, 1); -lean_inc(x_26); -lean_dec(x_16); -x_27 = lean_ctor_get(x_18, 0); -lean_inc(x_27); -lean_dec(x_18); -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 -{ -uint8_t x_29; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_29 = !lean_is_exclusive(x_16); -if (x_29 == 0) -{ -return x_16; -} -else -{ -lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_30 = lean_ctor_get(x_16, 0); -x_31 = lean_ctor_get(x_16, 1); -lean_inc(x_31); -lean_inc(x_30); -lean_dec(x_16); -x_32 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_32, 0, x_30); -lean_ctor_set(x_32, 1, x_31); -return x_32; -} -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; size_t x_37; size_t x_38; lean_object* x_39; -x_33 = lean_ctor_get(x_2, 0); -x_34 = lean_box(0); -x_35 = lean_box(0); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_3); -x_37 = lean_array_size(x_33); -x_38 = 0; -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_39 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4(x_33, x_34, x_35, x_33, x_37, x_38, x_36, x_4, x_5, x_6, x_7, x_8, x_9); -if (lean_obj_tag(x_39) == 0) -{ -lean_object* x_40; lean_object* x_41; -x_40 = lean_ctor_get(x_39, 0); -lean_inc(x_40); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -if (lean_obj_tag(x_41) == 0) -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_42 = lean_ctor_get(x_39, 1); -lean_inc(x_42); -lean_dec(x_39); -x_43 = lean_ctor_get(x_40, 1); -lean_inc(x_43); -lean_dec(x_40); -x_44 = lean_box(0); -x_45 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2___lambda__1(x_43, x_44, x_4, x_5, x_6, x_7, x_8, x_42); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -return x_45; -} -else -{ -uint8_t x_46; -lean_dec(x_40); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_46 = !lean_is_exclusive(x_39); -if (x_46 == 0) -{ -lean_object* x_47; lean_object* x_48; -x_47 = lean_ctor_get(x_39, 0); -lean_dec(x_47); -x_48 = lean_ctor_get(x_41, 0); -lean_inc(x_48); -lean_dec(x_41); -lean_ctor_set(x_39, 0, x_48); -return x_39; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_39, 1); -lean_inc(x_49); -lean_dec(x_39); -x_50 = lean_ctor_get(x_41, 0); -lean_inc(x_50); -lean_dec(x_41); -x_51 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_49); -return x_51; -} -} -} -else -{ -uint8_t x_52; -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -x_52 = !lean_is_exclusive(x_39); -if (x_52 == 0) -{ -return x_39; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_39, 0); -x_54 = lean_ctor_get(x_39, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_39); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t 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_14; -x_14 = lean_usize_dec_lt(x_6, x_5); -if (x_14 == 0) -{ -lean_object* x_15; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_7); -lean_ctor_set(x_15, 1, x_13); -return x_15; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_16 = lean_array_uget(x_4, x_6); -x_17 = lean_ctor_get(x_7, 1); -lean_inc(x_17); -if (lean_is_exclusive(x_7)) { - lean_ctor_release(x_7, 0); - lean_ctor_release(x_7, 1); - x_18 = x_7; -} else { - lean_dec_ref(x_7); - x_18 = lean_box(0); -} -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_27; -x_27 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_27, 0, x_17); -x_19 = x_27; -x_20 = x_13; -goto block_26; -} -else -{ -lean_object* x_28; uint8_t x_29; -lean_dec(x_17); -x_28 = lean_ctor_get(x_16, 0); -lean_inc(x_28); -lean_dec(x_16); -x_29 = l_Lean_LocalDecl_isLet(x_28); -if (x_29 == 0) -{ -uint8_t x_30; -x_30 = l_Lean_LocalDecl_isImplementationDetail(x_28); -if (x_30 == 0) -{ -lean_object* x_31; lean_object* x_32; -x_31 = l_Lean_LocalDecl_type(x_28); -lean_dec(x_28); -lean_inc(x_12); -lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_9); -lean_inc(x_8); -x_32 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting(x_31, x_8, x_9, x_10, x_11, x_12, x_13); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; lean_object* x_34; -x_33 = lean_ctor_get(x_32, 1); -lean_inc(x_33); -lean_dec(x_32); -x_34 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1; -x_19 = x_34; -x_20 = x_33; -goto block_26; -} -else -{ -uint8_t x_35; -lean_dec(x_18); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_3); -x_35 = !lean_is_exclusive(x_32); -if (x_35 == 0) -{ -return x_32; -} -else -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_36 = lean_ctor_get(x_32, 0); -x_37 = lean_ctor_get(x_32, 1); -lean_inc(x_37); -lean_inc(x_36); -lean_dec(x_32); -x_38 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_38, 0, x_36); -lean_ctor_set(x_38, 1, x_37); -return x_38; -} -} -} -else -{ -lean_object* x_39; -lean_dec(x_28); -x_39 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1; -x_19 = x_39; -x_20 = x_13; -goto block_26; -} -} -else -{ -lean_object* x_40; -lean_dec(x_28); -x_40 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1; -x_19 = x_40; -x_20 = x_13; -goto block_26; -} -} -block_26: -{ -lean_object* x_21; lean_object* x_22; size_t x_23; size_t x_24; -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -lean_dec(x_19); -lean_inc(x_3); -if (lean_is_scalar(x_18)) { - x_22 = lean_alloc_ctor(0, 2, 0); -} else { - x_22 = x_18; -} -lean_ctor_set(x_22, 0, x_3); -lean_ctor_set(x_22, 1, x_21); -x_23 = 1; -x_24 = lean_usize_add(x_6, x_23); -x_6 = x_24; -x_7 = x_22; -x_13 = x_20; -goto _start; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1___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_9; -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_1); -lean_ctor_set(x_9, 1, x_8); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_ctor_get(x_1, 0); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -lean_inc(x_2); -x_10 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2(x_2, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -if (lean_obj_tag(x_10) == 0) -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_12 = !lean_is_exclusive(x_10); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 0); -lean_dec(x_13); -x_14 = lean_ctor_get(x_11, 0); -lean_inc(x_14); -lean_dec(x_11); -lean_ctor_set(x_10, 0, x_14); -return x_10; -} -else -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_15 = lean_ctor_get(x_10, 1); -lean_inc(x_15); -lean_dec(x_10); -x_16 = lean_ctor_get(x_11, 0); -lean_inc(x_16); -lean_dec(x_11); -x_17 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_17, 0, x_16); -lean_ctor_set(x_17, 1, x_15); -return x_17; -} -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; lean_object* x_26; -x_18 = lean_ctor_get(x_10, 1); -lean_inc(x_18); -lean_dec(x_10); -x_19 = lean_ctor_get(x_11, 0); -lean_inc(x_19); -lean_dec(x_11); -x_20 = lean_ctor_get(x_1, 1); -x_21 = lean_box(0); -x_22 = lean_box(0); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_19); -x_24 = lean_array_size(x_20); -x_25 = 0; -x_26 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__5(x_20, x_21, x_22, x_20, x_24, x_25, x_23, x_3, x_4, x_5, x_6, x_7, x_18); -if (lean_obj_tag(x_26) == 0) -{ -lean_object* x_27; lean_object* x_28; -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_27, 0); -lean_inc(x_28); -if (lean_obj_tag(x_28) == 0) -{ -uint8_t x_29; -x_29 = !lean_is_exclusive(x_26); -if (x_29 == 0) -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_26, 0); -lean_dec(x_30); -x_31 = lean_ctor_get(x_27, 1); -lean_inc(x_31); -lean_dec(x_27); -lean_ctor_set(x_26, 0, x_31); -return x_26; -} -else -{ -lean_object* x_32; lean_object* x_33; lean_object* x_34; -x_32 = lean_ctor_get(x_26, 1); -lean_inc(x_32); -lean_dec(x_26); -x_33 = lean_ctor_get(x_27, 1); -lean_inc(x_33); -lean_dec(x_27); -x_34 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_34, 0, x_33); -lean_ctor_set(x_34, 1, x_32); -return x_34; -} -} -else -{ -uint8_t x_35; -lean_dec(x_27); -x_35 = !lean_is_exclusive(x_26); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; -x_36 = lean_ctor_get(x_26, 0); -lean_dec(x_36); -x_37 = lean_ctor_get(x_28, 0); -lean_inc(x_37); -lean_dec(x_28); -lean_ctor_set(x_26, 0, x_37); -return x_26; -} -else -{ -lean_object* x_38; lean_object* x_39; lean_object* x_40; -x_38 = lean_ctor_get(x_26, 1); -lean_inc(x_38); -lean_dec(x_26); -x_39 = lean_ctor_get(x_28, 0); -lean_inc(x_39); -lean_dec(x_28); -x_40 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -return x_40; -} -} -} -else -{ -uint8_t x_41; -x_41 = !lean_is_exclusive(x_26); -if (x_41 == 0) -{ -return x_26; -} -else -{ -lean_object* x_42; lean_object* x_43; lean_object* x_44; -x_42 = lean_ctor_get(x_26, 0); -x_43 = lean_ctor_get(x_26, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_26); -x_44 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_44, 0, x_42); -lean_ctor_set(x_44, 1, x_43); -return x_44; -} -} -} -} -else -{ -uint8_t x_45; -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_45 = !lean_is_exclusive(x_10); -if (x_45 == 0) -{ -return x_10; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_10, 0); -x_47 = lean_ctor_get(x_10, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_10); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -} -} -LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_3); -x_9 = lean_apply_6(x_1, x_3, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_9) == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_9, 1); -lean_inc(x_11); -lean_dec(x_9); -x_12 = lean_apply_7(x_2, x_10, x_3, x_4, x_5, x_6, x_7, x_11); -return x_12; -} -else -{ -uint8_t x_13; -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_13 = !lean_is_exclusive(x_9); -if (x_13 == 0) -{ -return x_9; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 0); -x_15 = lean_ctor_get(x_9, 1); -lean_inc(x_15); -lean_inc(x_14); -lean_dec(x_9); -x_16 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -return x_16; -} -} -} -} -LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__6(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__6___rarg), 8, 0); -return x_3; -} -} -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; -x_9 = lean_apply_1(x_2, x_3); -x_10 = l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(x_1, x_9, x_4, x_5, x_6, x_7, x_8); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -return x_10; -} -else -{ -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_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_15; -x_15 = !lean_is_exclusive(x_10); -if (x_15 == 0) -{ -return x_10; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_10, 0); -x_17 = lean_ctor_get(x_10, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_10); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__7(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = lean_alloc_closure((void*)(l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__7___rarg), 8, 0); -return x_2; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; -x_6 = lean_ctor_get(x_1, 2); -lean_inc(x_6); -x_7 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_7, 0, x_6); -lean_ctor_set(x_7, 1, x_5); -return x_7; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___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) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = lean_ctor_get(x_1, 1); -x_9 = lean_box(0); -x_10 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1(x_8, x_9, x_2, x_3, x_4, x_5, x_6, x_7); -if (lean_obj_tag(x_10) == 0) -{ -uint8_t x_11; -x_11 = !lean_is_exclusive(x_10); -if (x_11 == 0) -{ -lean_object* x_12; -x_12 = lean_ctor_get(x_10, 0); -lean_dec(x_12); -lean_ctor_set(x_10, 0, x_9); -return x_10; -} -else -{ -lean_object* x_13; lean_object* x_14; -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); -lean_dec(x_10); -x_14 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_14, 0, x_9); -lean_ctor_set(x_14, 1, x_13); -return x_14; -} -} -else -{ -uint8_t x_15; -x_15 = !lean_is_exclusive(x_10); -if (x_15 == 0) -{ -return x_10; -} -else -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_10, 0); -x_17 = lean_ctor_get(x_10, 1); -lean_inc(x_17); -lean_inc(x_16); -lean_dec(x_10); -x_18 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_18, 0, x_16); -lean_ctor_set(x_18, 1, x_17); -return x_18; -} -} -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___lambda__1___boxed), 5, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__1; -x_2 = lean_alloc_closure((void*)(l_StateRefT_x27_lift___rarg___boxed), 2, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___lambda__2___boxed), 7, 0); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) { -_start: -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_8 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__2; -x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__3; -x_10 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__6___rarg), 8, 2); -lean_closure_set(x_10, 0, x_8); -lean_closure_set(x_10, 1, x_9); -x_11 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__7___rarg(x_1, x_10, x_2, x_3, x_4, x_5, x_6, x_7); -return x_11; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -size_t x_15; size_t x_16; lean_object* x_17; -x_15 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_16 = lean_unbox_usize(x_7); -lean_dec(x_7); -x_17 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__3(x_1, x_2, x_3, x_4, x_5, x_15, x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_17; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -size_t x_14; size_t x_15; lean_object* x_16; -x_14 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_15 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_16 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4(x_1, x_2, x_3, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_16; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { -_start: -{ -lean_object* x_10; -x_10 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); -lean_dec(x_2); -lean_dec(x_1); -return x_10; -} -} -LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) { -_start: -{ -size_t x_14; size_t x_15; lean_object* x_16; -x_14 = lean_unbox_usize(x_5); -lean_dec(x_5); -x_15 = lean_unbox_usize(x_6); -lean_dec(x_6); -x_16 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__5(x_1, x_2, x_3, x_4, x_14, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_16; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1___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_9; -x_9 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; -} -} -LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_1); -return x_9; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___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) { -_start: -{ -lean_object* x_8; -x_8 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7); -lean_dec(x_1); -return x_8; -} } LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { _start: @@ -7361,50 +2367,7 @@ return x_59; } } } -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(10u); -x_2 = lean_unsigned_to_nat(1u); -x_3 = l_Nat_nextPowerOfTwo_go(x_1, x_2, lean_box(0)); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__1; -x_3 = lean_mk_array(x_2, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__2; -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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__3; -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; -} -} -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__5() { +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__1() { _start: { lean_object* x_1; @@ -7412,178 +2375,209 @@ x_1 = lean_mk_string_unchecked("structures preprocessor generated more than 1 go return x_1; } } -static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__6() { +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__5; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___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; +lean_inc(x_1); +x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__1___boxed), 7, 1); +lean_closure_set(x_11, 0, x_1); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +x_12 = l_Lean_MVarId_casesRec(x_2, x_11, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_12, 0); +lean_inc(x_13); +if (lean_obj_tag(x_13) == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +lean_dec(x_1); +x_14 = lean_ctor_get(x_12, 1); +lean_inc(x_14); +lean_dec(x_12); +x_15 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__2; +x_16 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___spec__1(x_15, x_4, x_5, x_6, x_7, x_8, x_9, 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); +return x_16; +} +else +{ +lean_object* x_17; +x_17 = lean_ctor_get(x_13, 1); +lean_inc(x_17); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +x_19 = lean_ctor_get(x_13, 0); +lean_inc(x_19); +lean_dec(x_13); +x_20 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess(x_19, x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_18); +return x_20; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +lean_dec(x_17); +lean_dec(x_13); +lean_dec(x_1); +x_21 = lean_ctor_get(x_12, 1); +lean_inc(x_21); +lean_dec(x_12); +x_22 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__2; +x_23 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___spec__1(x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_21); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_23; +} +} +} +else +{ +uint8_t x_24; +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_1); +x_24 = !lean_is_exclusive(x_12); +if (x_24 == 0) +{ +return x_12; +} +else +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_12, 0); +x_26 = lean_ctor_get(x_12, 1); +lean_inc(x_26); +lean_inc(x_25); +lean_dec(x_12); +x_27 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_27, 0, x_25); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +} +} LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__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_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; -x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__4; -x_10 = lean_st_mk_ref(x_9, x_8); -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_ctor_get(x_10, 1); -lean_inc(x_12); -lean_dec(x_10); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -lean_inc(x_11); -lean_inc(x_1); -x_13 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext(x_1, x_11, x_4, x_5, x_6, x_7, x_12); -if (lean_obj_tag(x_13) == 0) +lean_object* x_9; uint8_t x_10; +x_9 = lean_st_ref_get(x_3, x_8); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) { -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_14 = lean_ctor_get(x_13, 1); +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_ctor_get(x_11, 1); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_ctor_get(x_13, 0); lean_inc(x_14); lean_dec(x_13); -x_15 = lean_st_ref_get(x_11, x_14); -lean_dec(x_11); -x_16 = lean_ctor_get(x_15, 0); -lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_unsigned_to_nat(0u); +x_17 = lean_nat_dec_eq(x_15, x_16); lean_dec(x_15); -x_18 = lean_ctor_get(x_16, 0); -lean_inc(x_18); -lean_dec(x_16); -lean_inc(x_18); -x_19 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__1___boxed), 7, 1); -lean_closure_set(x_19, 0, x_18); -lean_inc(x_7); -lean_inc(x_6); -lean_inc(x_5); -lean_inc(x_4); -x_20 = l_Lean_MVarId_casesRec(x_1, x_19, x_4, x_5, x_6, x_7, x_17); -if (lean_obj_tag(x_20) == 0) +if (x_17 == 0) { -lean_object* x_21; -x_21 = lean_ctor_get(x_20, 0); -lean_inc(x_21); -if (lean_obj_tag(x_21) == 0) +lean_object* x_18; lean_object* x_19; +lean_free_object(x_9); +x_18 = lean_box(0); +x_19 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2(x_14, x_1, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +return x_19; +} +else { -lean_object* x_22; lean_object* x_23; lean_object* x_24; -lean_dec(x_18); -x_22 = lean_ctor_get(x_20, 1); +lean_object* x_20; +lean_dec(x_14); +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_20 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_20, 0, x_1); +lean_ctor_set(x_9, 0, x_20); +return x_9; +} +} +else +{ +lean_object* x_21; 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_21 = lean_ctor_get(x_9, 0); +x_22 = lean_ctor_get(x_9, 1); lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__6; -x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___spec__1(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_22); -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_24; -} -else -{ -lean_object* x_25; -x_25 = lean_ctor_get(x_21, 1); +lean_inc(x_21); +lean_dec(x_9); +x_23 = lean_ctor_get(x_21, 1); +lean_inc(x_23); +lean_dec(x_21); +x_24 = lean_ctor_get(x_23, 0); +lean_inc(x_24); +lean_dec(x_23); +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -if (lean_obj_tag(x_25) == 0) -{ -lean_object* x_26; lean_object* x_27; lean_object* x_28; -x_26 = lean_ctor_get(x_20, 1); -lean_inc(x_26); -lean_dec(x_20); -x_27 = lean_ctor_get(x_21, 0); -lean_inc(x_27); -lean_dec(x_21); -x_28 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess(x_27, x_18, x_2, x_3, x_4, x_5, x_6, x_7, x_26); -return x_28; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_26 = lean_unsigned_to_nat(0u); +x_27 = lean_nat_dec_eq(x_25, x_26); lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_18); -x_29 = lean_ctor_get(x_20, 1); -lean_inc(x_29); -lean_dec(x_20); -x_30 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__6; -x_31 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___spec__1(x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_29); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_box(0); +x_29 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2(x_24, x_1, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_22); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; +lean_dec(x_24); 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_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_1); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_22); return x_31; } } } -else -{ -uint8_t x_32; -lean_dec(x_18); -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_32 = !lean_is_exclusive(x_20); -if (x_32 == 0) -{ -return x_20; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; -x_33 = lean_ctor_get(x_20, 0); -x_34 = lean_ctor_get(x_20, 1); -lean_inc(x_34); -lean_inc(x_33); -lean_dec(x_20); -x_35 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set(x_35, 1, x_34); -return x_35; -} -} -} -else -{ -uint8_t x_36; -lean_dec(x_11); -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_36 = !lean_is_exclusive(x_13); -if (x_36 == 0) -{ -return x_13; -} -else -{ -lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_37 = lean_ctor_get(x_13, 0); -x_38 = lean_ctor_get(x_13, 1); -lean_inc(x_38); -lean_inc(x_37); -lean_dec(x_13); -x_39 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_39, 0, x_37); -lean_ctor_set(x_39, 1, x_38); -return x_39; -} -} -} } static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___closed__1() { _start: @@ -7658,6 +2652,15 @@ lean_dec(x_2); return x_8; } } +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___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_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___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_3); +return x_11; +} +} lean_object* initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Cases(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Simp(uint8_t builtin, lean_object*); @@ -7679,10 +2682,6 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Injective(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__1); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_M_lookup___closed__2); l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__1 = _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__1(); lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__1); l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__2 = _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__2(); @@ -7691,14 +2690,14 @@ l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structures lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__3); l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4 = _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4(); lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__2___closed__4); -l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__1 = _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__1(); -lean_mark_persistent(l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__1); -l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__2 = _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__2(); -lean_mark_persistent(l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__1___closed__2); -l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__1 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__1(); -lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__1); -l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__2 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__2(); -lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__5___closed__2); +l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__1 = _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__1(); +lean_mark_persistent(l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__1); +l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__2 = _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__2(); +lean_mark_persistent(l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__4___closed__2); +l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__1 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__1(); +lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__1); +l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__2 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__2(); +lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__6___closed__2); l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__1 = _init_l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__1(); lean_mark_persistent(l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__1); l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__2 = _init_l_Std_DHashMap_Internal_AssocList_forInStep_go___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___spec__8___closed__2(); @@ -7733,62 +2732,14 @@ l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lamb lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___lambda__1___closed__8); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__1); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___boxed__const__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___boxed__const__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___boxed__const__1); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__1); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__2); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__3); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__4 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__4(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__4); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__5 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__5(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__5); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__6 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__6(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__6); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__7 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__7(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__7); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__8 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__8(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__8); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__9 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__9(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__9); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__10 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__10(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__10); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__11 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__11(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__11); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__12 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__12(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__12); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__13 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__13(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__13); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__14 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__14(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__14); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__15 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__15(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__15); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__16 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__16(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_typeInteresting___closed__16); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__2___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_constInteresting___lambda__2___closed__1); -l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1(); -lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___spec__4___closed__1); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__1); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__2); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_checkContext___closed__3); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__1(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__1); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__2(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__2); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__3(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__3); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__4 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__4(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__4); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__5 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__5(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__5); -l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__6 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__6(); -lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___closed__6); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass_postprocess___closed__3); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___elambda__1___lambda__2___closed__2); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___closed__1(); lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___closed__1); l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_structuresPass___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/TypeAnalysis.c b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/TypeAnalysis.c new file mode 100644 index 0000000000..3686fe55de --- /dev/null +++ b/stage0/stdlib/Lean/Elab/Tactic/BVDecide/Frontend/Normalize/TypeAnalysis.c @@ -0,0 +1,6766 @@ +// Lean compiler output +// Module: Lean.Elab.Tactic.BVDecide.Frontend.Normalize.TypeAnalysis +// Imports: Lean.Elab.Tactic.BVDecide.Frontend.Normalize.Basic +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__2(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__12; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_allM___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Meta_getNatValue_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_uint64_to_usize(uint64_t); +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isApp(lean_object*); +static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1; +uint8_t lean_usize_dec_eq(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10(lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__3___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_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass; +lean_object* l_Lean_Expr_fvarId_x21(lean_object*); +static lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__4; +lean_object* l_Lean_Environment_find_x3f(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__1___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_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*); +lean_object* l_Lean_stringToMessageData(lean_object*); +lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); +lean_object* l_Lean_InductiveVal_numTypeFormers(lean_object*); +LEAN_EXPORT lean_object* l_Lean_isEnumType___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_allM___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__8; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__4(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_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__7___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__2; +size_t lean_usize_of_nat(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__10; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__7; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__2; +lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(lean_object*); +uint64_t lean_uint64_shift_right(uint64_t, uint64_t); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__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_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_nat_div(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__7(lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__1; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__2; +static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__2; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_appArg(lean_object*, lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +uint8_t l_List_isEmpty___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4(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_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_appFnCleanup(lean_object*, lean_object*); +lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__1; +LEAN_EXPORT lean_object* l_Lean_isEnumType___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_constName_x3f(lean_object*); +lean_object* l_Lean_FVarId_getType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__15; +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +uint8_t l_Lean_LocalDecl_isLet(lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__1___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_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___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_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__6(lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__11; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); +lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__6; +uint8_t l_Lean_LocalDecl_isImplementationDetail(lean_object*); +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___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*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__3; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__3___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__2; +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10___rarg___lambda__1(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_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__4; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__2; +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__1; +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__3(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*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint64_t l_Lean_Name_hash___override(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___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* l_Lean_LocalDecl_type(lean_object*); +uint64_t lean_uint64_xor(uint64_t, uint64_t); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__14; +lean_object* l_Lean_Expr_getAppFn(lean_object*); +uint8_t l_Lean_isStructure(lean_object*, lean_object*); +uint8_t l_Lean_Expr_isProp(lean_object*); +lean_object* lean_nat_mul(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5(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_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__5(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* l_Lean_Meta_instantiateMVarsIfMVarApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__13; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__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_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__9; +size_t lean_usize_sub(size_t, size_t); +size_t lean_usize_add(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__5; +extern lean_object* l_Lean_instInhabitedName; +lean_object* lean_array_uget(lean_object*, size_t); +size_t lean_array_size(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___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_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__3; +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__9(lean_object*, size_t, size_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_get_size(lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +uint8_t lean_usize_dec_lt(size_t, size_t); +static lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__16; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__9___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_nat_add(lean_object*, lean_object*); +uint8_t l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___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_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__1; +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___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*, lean_object*, lean_object*); +size_t lean_usize_land(size_t, size_t); +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___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: +{ +uint8_t x_9; lean_object* x_10; lean_object* x_11; +x_9 = 1; +x_10 = lean_box(x_9); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_8); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Meta_getNatValue_x3f(x_1, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 0) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = 0; +x_14 = lean_box(x_13); +lean_ctor_set(x_9, 0, x_14); +return x_9; +} +else +{ +lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; +x_15 = lean_ctor_get(x_9, 1); +lean_inc(x_15); +lean_dec(x_9); +x_16 = 0; +x_17 = lean_box(x_16); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_15); +return x_18; +} +} +else +{ +uint8_t x_19; +lean_dec(x_10); +x_19 = !lean_is_exclusive(x_9); +if (x_19 == 0) +{ +lean_object* x_20; uint8_t x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_9, 0); +lean_dec(x_20); +x_21 = 1; +x_22 = lean_box(x_21); +lean_ctor_set(x_9, 0, x_22); +return x_9; +} +else +{ +lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_9, 1); +lean_inc(x_23); +lean_dec(x_9); +x_24 = 1; +x_25 = lean_box(x_24); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_23); +return x_26; +} +} +} +else +{ +uint8_t x_27; +x_27 = !lean_is_exclusive(x_9); +if (x_27 == 0) +{ +return x_9; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_9, 0); +x_29 = lean_ctor_get(x_9, 1); +lean_inc(x_29); +lean_inc(x_28); +lean_dec(x_9); +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; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = l_Lean_Expr_getAppFn(x_1); +x_11 = l_Lean_Expr_constName_x3f(x_10); +lean_dec(x_10); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; lean_object* x_13; lean_object* x_14; +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_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_9); +return x_14; +} +else +{ +lean_object* x_15; lean_object* x_16; +x_15 = lean_ctor_get(x_11, 0); +lean_inc(x_15); +lean_dec(x_11); +x_16 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting(x_15, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_16; +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__1___boxed), 8, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__2___boxed), 8, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Bool", 4, 4); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__3; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("USize", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__6() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__5; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("UInt64", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__8() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__7; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__9() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("UInt32", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__10() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__9; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("UInt16", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__12() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__11; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__13() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("UInt8", 5, 5); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__14() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__13; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__15() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("BitVec", 6, 6); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__16() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__15; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; +lean_inc(x_1); +x_9 = l_Lean_Meta_instantiateMVarsIfMVarApp(x_1, x_4, x_5, x_6, x_7, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_9, 1); +lean_inc(x_11); +lean_dec(x_9); +x_12 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__1; +x_13 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__2; +x_14 = l_Lean_Expr_cleanupAnnotations(x_10); +x_15 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__4; +x_16 = l_Lean_Expr_isConstOf(x_14, x_15); +if (x_16 == 0) +{ +lean_object* x_17; uint8_t x_18; +x_17 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__6; +x_18 = l_Lean_Expr_isConstOf(x_14, x_17); +if (x_18 == 0) +{ +lean_object* x_19; uint8_t x_20; +x_19 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__8; +x_20 = l_Lean_Expr_isConstOf(x_14, x_19); +if (x_20 == 0) +{ +lean_object* x_21; uint8_t x_22; +x_21 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__10; +x_22 = l_Lean_Expr_isConstOf(x_14, x_21); +if (x_22 == 0) +{ +lean_object* x_23; uint8_t x_24; +x_23 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__12; +x_24 = l_Lean_Expr_isConstOf(x_14, x_23); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__14; +x_26 = l_Lean_Expr_isConstOf(x_14, x_25); +if (x_26 == 0) +{ +uint8_t x_27; +x_27 = l_Lean_Expr_isApp(x_14); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +lean_dec(x_14); +x_28 = lean_box(0); +x_29 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__3(x_1, x_28, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +lean_dec(x_1); +return x_29; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; +x_30 = l_Lean_Expr_appArg(x_14, lean_box(0)); +x_31 = l_Lean_Expr_appFnCleanup(x_14, lean_box(0)); +x_32 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__16; +x_33 = l_Lean_Expr_isConstOf(x_31, x_32); +lean_dec(x_31); +if (x_33 == 0) +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_30); +x_34 = lean_box(0); +x_35 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__3(x_1, x_34, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +lean_dec(x_1); +return x_35; +} +else +{ +lean_object* x_36; +lean_dec(x_1); +x_36 = lean_apply_8(x_13, x_30, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_36; +} +} +} +else +{ +lean_object* x_37; lean_object* x_38; +lean_dec(x_14); +lean_dec(x_1); +x_37 = lean_box(0); +x_38 = lean_apply_8(x_12, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_38; +} +} +else +{ +lean_object* x_39; lean_object* x_40; +lean_dec(x_14); +lean_dec(x_1); +x_39 = lean_box(0); +x_40 = lean_apply_8(x_12, x_39, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_40; +} +} +else +{ +lean_object* x_41; lean_object* x_42; +lean_dec(x_14); +lean_dec(x_1); +x_41 = lean_box(0); +x_42 = lean_apply_8(x_12, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_42; +} +} +else +{ +lean_object* x_43; lean_object* x_44; +lean_dec(x_14); +lean_dec(x_1); +x_43 = lean_box(0); +x_44 = lean_apply_8(x_12, x_43, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_44; +} +} +else +{ +lean_object* x_45; lean_object* x_46; +lean_dec(x_14); +lean_dec(x_1); +x_45 = lean_box(0); +x_46 = lean_apply_8(x_12, x_45, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_46; +} +} +else +{ +lean_object* x_47; lean_object* x_48; +lean_dec(x_14); +lean_dec(x_1); +x_47 = lean_box(0); +x_48 = lean_apply_8(x_12, x_47, x_2, x_3, x_4, x_5, x_6, x_7, x_11); +return x_48; +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_6, 5); +x_10 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_9); +lean_ctor_set(x_13, 1, x_12); +lean_ctor_set_tag(x_10, 1); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +lean_inc(x_9); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_14); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +} +static lean_object* _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("unknown constant '", 18, 18); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +static lean_object* _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("'", 1, 1); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; uint8_t x_10; +x_9 = lean_st_ref_get(x_7, x_8); +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_9, 0); +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_1); +x_14 = l_Lean_Environment_find_x3f(x_13, x_1); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t 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_free_object(x_9); +x_15 = 0; +x_16 = l_Lean_MessageData_ofConstName(x_1, x_15); +x_17 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__2; +x_18 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +x_19 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__4; +x_20 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_20, 0, x_18); +lean_ctor_set(x_20, 1, x_19); +x_21 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__3(x_20, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +return x_21; +} +else +{ +lean_object* x_22; +lean_dec(x_1); +x_22 = lean_ctor_get(x_14, 0); +lean_inc(x_22); +lean_dec(x_14); +lean_ctor_set(x_9, 0, x_22); +return x_9; +} +} +else +{ +lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_23 = lean_ctor_get(x_9, 0); +x_24 = lean_ctor_get(x_9, 1); +lean_inc(x_24); +lean_inc(x_23); +lean_dec(x_9); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +lean_inc(x_1); +x_26 = l_Lean_Environment_find_x3f(x_25, x_1); +if (lean_obj_tag(x_26) == 0) +{ +uint8_t 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_27 = 0; +x_28 = l_Lean_MessageData_ofConstName(x_1, x_27); +x_29 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__2; +x_30 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +x_31 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__4; +x_32 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +x_33 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__3(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_24); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; +lean_dec(x_1); +x_34 = lean_ctor_get(x_26, 0); +lean_inc(x_34); +lean_dec(x_26); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_24); +return x_35; +} +} +} +} +LEAN_EXPORT lean_object* l_List_allM___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__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) { +_start: +{ +if (lean_obj_tag(x_1) == 0) +{ +uint8_t x_9; lean_object* x_10; lean_object* x_11; +x_9 = 1; +x_10 = lean_box(x_9); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_8); +return x_11; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_22; +x_12 = lean_ctor_get(x_1, 0); +lean_inc(x_12); +x_13 = lean_ctor_get(x_1, 1); +lean_inc(x_13); +if (lean_is_exclusive(x_1)) { + lean_ctor_release(x_1, 0); + lean_ctor_release(x_1, 1); + x_14 = x_1; +} else { + lean_dec_ref(x_1); + x_14 = lean_box(0); +} +x_22 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 6) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; +x_24 = lean_ctor_get(x_22, 1); +lean_inc(x_24); +lean_dec(x_22); +x_25 = lean_ctor_get(x_23, 0); +lean_inc(x_25); +lean_dec(x_23); +x_26 = lean_ctor_get(x_25, 4); +lean_inc(x_26); +lean_dec(x_25); +x_27 = lean_unsigned_to_nat(0u); +x_28 = lean_nat_dec_eq(x_26, x_27); +lean_dec(x_26); +x_15 = x_28; +x_16 = x_24; +goto block_21; +} +else +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_23); +x_29 = lean_ctor_get(x_22, 1); +lean_inc(x_29); +lean_dec(x_22); +x_30 = 0; +x_15 = x_30; +x_16 = x_29; +goto block_21; +} +} +else +{ +uint8_t x_31; +lean_dec(x_14); +lean_dec(x_13); +x_31 = !lean_is_exclusive(x_22); +if (x_31 == 0) +{ +return x_22; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_22, 0); +x_33 = lean_ctor_get(x_22, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_22); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +block_21: +{ +if (x_15 == 0) +{ +uint8_t x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_13); +x_17 = 0; +x_18 = lean_box(x_17); +if (lean_is_scalar(x_14)) { + x_19 = lean_alloc_ctor(0, 2, 0); +} else { + x_19 = x_14; + lean_ctor_set_tag(x_19, 0); +} +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_16); +return x_19; +} +else +{ +lean_dec(x_14); +x_1 = x_13; +x_8 = x_16; +goto _start; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_isEnumType___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 5) +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_12 = lean_ctor_get(x_9, 1); +x_13 = lean_ctor_get(x_9, 0); +lean_dec(x_13); +x_14 = lean_ctor_get(x_10, 0); +lean_inc(x_14); +lean_dec(x_10); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_15, 2); +lean_inc(x_16); +lean_dec(x_15); +x_17 = l_Lean_Expr_isProp(x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; uint8_t x_20; +x_18 = l_Lean_InductiveVal_numTypeFormers(x_14); +x_19 = lean_unsigned_to_nat(1u); +x_20 = lean_nat_dec_eq(x_18, x_19); +lean_dec(x_18); +if (x_20 == 0) +{ +uint8_t x_21; lean_object* x_22; +lean_dec(x_14); +x_21 = 0; +x_22 = lean_box(x_21); +lean_ctor_set(x_9, 0, x_22); +return x_9; +} +else +{ +lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_23 = lean_ctor_get(x_14, 2); +lean_inc(x_23); +x_24 = lean_unsigned_to_nat(0u); +x_25 = lean_nat_dec_eq(x_23, x_24); +lean_dec(x_23); +if (x_25 == 0) +{ +uint8_t x_26; lean_object* x_27; +lean_dec(x_14); +x_26 = 0; +x_27 = lean_box(x_26); +lean_ctor_set(x_9, 0, x_27); +return x_9; +} +else +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_14, 1); +lean_inc(x_28); +x_29 = lean_nat_dec_eq(x_28, x_24); +lean_dec(x_28); +if (x_29 == 0) +{ +uint8_t x_30; lean_object* x_31; +lean_dec(x_14); +x_30 = 0; +x_31 = lean_box(x_30); +lean_ctor_set(x_9, 0, x_31); +return x_9; +} +else +{ +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_14, 4); +lean_inc(x_32); +x_33 = l_List_isEmpty___rarg(x_32); +if (x_33 == 0) +{ +uint8_t x_34; +x_34 = lean_ctor_get_uint8(x_14, sizeof(void*)*6); +if (x_34 == 0) +{ +uint8_t x_35; +x_35 = lean_ctor_get_uint8(x_14, sizeof(void*)*6 + 1); +lean_dec(x_14); +if (x_35 == 0) +{ +lean_object* x_36; +lean_free_object(x_9); +x_36 = l_List_allM___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__4(x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_12); +return x_36; +} +else +{ +uint8_t x_37; lean_object* x_38; +lean_dec(x_32); +x_37 = 0; +x_38 = lean_box(x_37); +lean_ctor_set(x_9, 0, x_38); +return x_9; +} +} +else +{ +uint8_t x_39; lean_object* x_40; +lean_dec(x_32); +lean_dec(x_14); +x_39 = 0; +x_40 = lean_box(x_39); +lean_ctor_set(x_9, 0, x_40); +return x_9; +} +} +else +{ +uint8_t x_41; lean_object* x_42; +lean_dec(x_32); +lean_dec(x_14); +x_41 = 0; +x_42 = lean_box(x_41); +lean_ctor_set(x_9, 0, x_42); +return x_9; +} +} +} +} +} +else +{ +uint8_t x_43; lean_object* x_44; +lean_dec(x_14); +x_43 = 0; +x_44 = lean_box(x_43); +lean_ctor_set(x_9, 0, x_44); +return x_9; +} +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; uint8_t x_49; +x_45 = lean_ctor_get(x_9, 1); +lean_inc(x_45); +lean_dec(x_9); +x_46 = lean_ctor_get(x_10, 0); +lean_inc(x_46); +lean_dec(x_10); +x_47 = lean_ctor_get(x_46, 0); +lean_inc(x_47); +x_48 = lean_ctor_get(x_47, 2); +lean_inc(x_48); +lean_dec(x_47); +x_49 = l_Lean_Expr_isProp(x_48); +lean_dec(x_48); +if (x_49 == 0) +{ +lean_object* x_50; lean_object* x_51; uint8_t x_52; +x_50 = l_Lean_InductiveVal_numTypeFormers(x_46); +x_51 = lean_unsigned_to_nat(1u); +x_52 = lean_nat_dec_eq(x_50, x_51); +lean_dec(x_50); +if (x_52 == 0) +{ +uint8_t x_53; lean_object* x_54; lean_object* x_55; +lean_dec(x_46); +x_53 = 0; +x_54 = lean_box(x_53); +x_55 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_55, 0, x_54); +lean_ctor_set(x_55, 1, x_45); +return x_55; +} +else +{ +lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_56 = lean_ctor_get(x_46, 2); +lean_inc(x_56); +x_57 = lean_unsigned_to_nat(0u); +x_58 = lean_nat_dec_eq(x_56, x_57); +lean_dec(x_56); +if (x_58 == 0) +{ +uint8_t x_59; lean_object* x_60; lean_object* x_61; +lean_dec(x_46); +x_59 = 0; +x_60 = lean_box(x_59); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_45); +return x_61; +} +else +{ +lean_object* x_62; uint8_t x_63; +x_62 = lean_ctor_get(x_46, 1); +lean_inc(x_62); +x_63 = lean_nat_dec_eq(x_62, x_57); +lean_dec(x_62); +if (x_63 == 0) +{ +uint8_t x_64; lean_object* x_65; lean_object* x_66; +lean_dec(x_46); +x_64 = 0; +x_65 = lean_box(x_64); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_45); +return x_66; +} +else +{ +lean_object* x_67; uint8_t x_68; +x_67 = lean_ctor_get(x_46, 4); +lean_inc(x_67); +x_68 = l_List_isEmpty___rarg(x_67); +if (x_68 == 0) +{ +uint8_t x_69; +x_69 = lean_ctor_get_uint8(x_46, sizeof(void*)*6); +if (x_69 == 0) +{ +uint8_t x_70; +x_70 = lean_ctor_get_uint8(x_46, sizeof(void*)*6 + 1); +lean_dec(x_46); +if (x_70 == 0) +{ +lean_object* x_71; +x_71 = l_List_allM___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__4(x_67, x_2, x_3, x_4, x_5, x_6, x_7, x_45); +return x_71; +} +else +{ +uint8_t x_72; lean_object* x_73; lean_object* x_74; +lean_dec(x_67); +x_72 = 0; +x_73 = lean_box(x_72); +x_74 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_45); +return x_74; +} +} +else +{ +uint8_t x_75; lean_object* x_76; lean_object* x_77; +lean_dec(x_67); +lean_dec(x_46); +x_75 = 0; +x_76 = lean_box(x_75); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_45); +return x_77; +} +} +else +{ +uint8_t x_78; lean_object* x_79; lean_object* x_80; +lean_dec(x_67); +lean_dec(x_46); +x_78 = 0; +x_79 = lean_box(x_78); +x_80 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_45); +return x_80; +} +} +} +} +} +else +{ +uint8_t x_81; lean_object* x_82; lean_object* x_83; +lean_dec(x_46); +x_81 = 0; +x_82 = lean_box(x_81); +x_83 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_83, 0, x_82); +lean_ctor_set(x_83, 1, x_45); +return x_83; +} +} +} +else +{ +uint8_t x_84; +lean_dec(x_10); +x_84 = !lean_is_exclusive(x_9); +if (x_84 == 0) +{ +lean_object* x_85; uint8_t x_86; lean_object* x_87; +x_85 = lean_ctor_get(x_9, 0); +lean_dec(x_85); +x_86 = 0; +x_87 = lean_box(x_86); +lean_ctor_set(x_9, 0, x_87); +return x_9; +} +else +{ +lean_object* x_88; uint8_t x_89; lean_object* x_90; lean_object* x_91; +x_88 = lean_ctor_get(x_9, 1); +lean_inc(x_88); +lean_dec(x_9); +x_89 = 0; +x_90 = lean_box(x_89); +x_91 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_91, 0, x_90); +lean_ctor_set(x_91, 1, x_88); +return x_91; +} +} +} +else +{ +uint8_t x_92; +x_92 = !lean_is_exclusive(x_9); +if (x_92 == 0) +{ +return x_9; +} +else +{ +lean_object* x_93; lean_object* x_94; lean_object* x_95; +x_93 = lean_ctor_get(x_9, 0); +x_94 = lean_ctor_get(x_9, 1); +lean_inc(x_94); +lean_inc(x_93); +lean_dec(x_9); +x_95 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +return x_95; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___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) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_6, 5); +x_10 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_9); +lean_ctor_set(x_13, 1, x_12); +lean_ctor_set_tag(x_10, 1); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +lean_inc(x_9); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_14); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +} +static lean_object* _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' is not a inductive type", 25, 25); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +lean_inc(x_1); +x_9 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 5) +{ +uint8_t x_11; +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +lean_dec(x_10); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_ctor_get(x_10, 0); +lean_inc(x_15); +lean_dec(x_10); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +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_dec(x_10); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = 0; +x_19 = l_Lean_MessageData_ofConstName(x_1, x_18); +x_20 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__4; +x_21 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__2; +x_23 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__6(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_17); +return x_24; +} +} +else +{ +uint8_t x_25; +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_9); +if (x_25 == 0) +{ +return x_9; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +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_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; uint8_t x_11; +x_9 = lean_ctor_get(x_6, 5); +x_10 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8); +x_11 = !lean_is_exclusive(x_10); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_10, 0); +lean_inc(x_9); +x_13 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_13, 0, x_9); +lean_ctor_set(x_13, 1, x_12); +lean_ctor_set_tag(x_10, 1); +lean_ctor_set(x_10, 0, x_13); +return x_10; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_10, 0); +x_15 = lean_ctor_get(x_10, 1); +lean_inc(x_15); +lean_inc(x_14); +lean_dec(x_10); +lean_inc(x_9); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_9); +lean_ctor_set(x_16, 1, x_14); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +} +} +static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' is not a constructor", 22, 22); +return x_1; +} +} +static lean_object* _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__1; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +lean_inc(x_1); +x_9 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +lean_object* x_10; +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +if (lean_obj_tag(x_10) == 6) +{ +uint8_t x_11; +lean_dec(x_1); +x_11 = !lean_is_exclusive(x_9); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; +x_12 = lean_ctor_get(x_9, 0); +lean_dec(x_12); +x_13 = lean_ctor_get(x_10, 0); +lean_inc(x_13); +lean_dec(x_10); +lean_ctor_set(x_9, 0, x_13); +return x_9; +} +else +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; +x_14 = lean_ctor_get(x_9, 1); +lean_inc(x_14); +lean_dec(x_9); +x_15 = lean_ctor_get(x_10, 0); +lean_inc(x_15); +lean_dec(x_10); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_15); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +} +else +{ +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_dec(x_10); +x_17 = lean_ctor_get(x_9, 1); +lean_inc(x_17); +lean_dec(x_9); +x_18 = 0; +x_19 = l_Lean_MessageData_ofConstName(x_1, x_18); +x_20 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__4; +x_21 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_21, 0, x_20); +lean_ctor_set(x_21, 1, x_19); +x_22 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__2; +x_23 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +x_24 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__8(x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_17); +return x_24; +} +} +else +{ +uint8_t x_25; +lean_dec(x_1); +x_25 = !lean_is_exclusive(x_9); +if (x_25 == 0) +{ +return x_9; +} +else +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_9, 0); +x_27 = lean_ctor_get(x_9, 1); +lean_inc(x_27); +lean_inc(x_26); +lean_dec(x_9); +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_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__9(lean_object* x_1, size_t x_2, size_t x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +_start: +{ +uint8_t x_12; +x_12 = lean_usize_dec_eq(x_2, x_3); +if (x_12 == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_array_uget(x_1, x_2); +x_14 = l_Lean_Expr_fvarId_x21(x_13); +lean_dec(x_13); +lean_inc(x_7); +x_15 = l_Lean_FVarId_getType(x_14, x_7, x_8, x_9, x_10, x_11); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +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_18 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting(x_16, x_5, x_6, x_7, x_8, x_9, x_10, x_17); +if (lean_obj_tag(x_18) == 0) +{ +if (x_4 == 0) +{ +lean_object* x_19; lean_object* x_20; size_t x_21; size_t x_22; uint8_t x_23; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = 1; +x_22 = lean_usize_add(x_2, x_21); +x_23 = lean_unbox(x_19); +lean_dec(x_19); +x_2 = x_22; +x_4 = x_23; +x_11 = x_20; +goto _start; +} +else +{ +lean_object* x_25; size_t x_26; size_t x_27; uint8_t x_28; +x_25 = lean_ctor_get(x_18, 1); +lean_inc(x_25); +lean_dec(x_18); +x_26 = 1; +x_27 = lean_usize_add(x_2, x_26); +x_28 = 1; +x_2 = x_27; +x_4 = x_28; +x_11 = x_25; +goto _start; +} +} +else +{ +uint8_t 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); +x_30 = !lean_is_exclusive(x_18); +if (x_30 == 0) +{ +return x_18; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_18, 0); +x_32 = lean_ctor_get(x_18, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_18); +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 +{ +uint8_t x_34; +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_34 = !lean_is_exclusive(x_15); +if (x_34 == 0) +{ +return x_15; +} +else +{ +lean_object* x_35; lean_object* x_36; lean_object* x_37; +x_35 = lean_ctor_get(x_15, 0); +x_36 = lean_ctor_get(x_15, 1); +lean_inc(x_36); +lean_inc(x_35); +lean_dec(x_15); +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; +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_38 = lean_box(x_4); +x_39 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_39, 0, x_38); +lean_ctor_set(x_39, 1, x_11); +return x_39; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = lean_apply_9(x_1, x_4, x_5, x_2, x_3, x_6, x_7, x_8, x_9, x_10); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10___rarg(lean_object* x_1, lean_object* x_2, uint8_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) { +_start: +{ +lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; +x_11 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10___rarg___lambda__1), 10, 3); +lean_closure_set(x_11, 0, x_2); +lean_closure_set(x_11, 1, x_4); +lean_closure_set(x_11, 2, x_5); +x_12 = lean_box(0); +x_13 = 0; +x_14 = l___private_Lean_Meta_Basic_0__Lean_Meta_forallTelescopeReducingAuxAux___rarg(x_13, x_12, x_1, x_11, x_3, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_14) == 0) +{ +uint8_t x_15; +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +return x_14; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_14, 0); +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_inc(x_16); +lean_dec(x_14); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_16); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_14); +if (x_19 == 0) +{ +return x_14; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_14, 0); +x_21 = lean_ctor_get(x_14, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_14); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10___rarg___boxed), 10, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; uint8_t x_12; +x_10 = lean_array_get_size(x_1); +x_11 = lean_unsigned_to_nat(0u); +x_12 = lean_nat_dec_lt(x_11, x_10); +if (x_12 == 0) +{ +uint8_t x_13; lean_object* x_14; lean_object* x_15; +lean_dec(x_10); +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_13 = 0; +x_14 = lean_box(x_13); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_9); +return x_15; +} +else +{ +uint8_t x_16; +x_16 = lean_nat_dec_le(x_10, x_10); +if (x_16 == 0) +{ +uint8_t x_17; lean_object* x_18; lean_object* x_19; +lean_dec(x_10); +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_17 = 0; +x_18 = lean_box(x_17); +x_19 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_19, 0, x_18); +lean_ctor_set(x_19, 1, x_9); +return x_19; +} +else +{ +size_t x_20; size_t x_21; uint8_t x_22; lean_object* x_23; +x_20 = 0; +x_21 = lean_usize_of_nat(x_10); +lean_dec(x_10); +x_22 = 0; +x_23 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__9(x_1, x_20, x_21, x_22, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +return x_23; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__2(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_box(x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__3___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__1___boxed), 9, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___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) { +_start: +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_11 = lean_ctor_get(x_1, 4); +x_12 = l_Lean_instInhabitedName; +x_13 = l_List_head_x21___rarg(x_12, x_11); +x_14 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7(x_13, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +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; uint8_t x_20; lean_object* x_21; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = lean_ctor_get(x_15, 0); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_17, 2); +lean_inc(x_18); +lean_dec(x_17); +x_19 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__3___closed__1; +x_20 = 0; +lean_inc(x_5); +x_21 = l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10___rarg(x_18, x_19, x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_16); +if (lean_obj_tag(x_21) == 0) +{ +lean_object* x_22; uint8_t x_23; +x_22 = lean_ctor_get(x_21, 0); +lean_inc(x_22); +x_23 = lean_unbox(x_22); +if (x_23 == 0) +{ +uint8_t x_24; +lean_dec(x_5); +lean_dec(x_2); +x_24 = !lean_is_exclusive(x_21); +if (x_24 == 0) +{ +lean_object* x_25; +x_25 = lean_ctor_get(x_21, 0); +lean_dec(x_25); +return x_21; +} +else +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_21, 1); +lean_inc(x_26); +lean_dec(x_21); +x_27 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_27, 0, x_22); +lean_ctor_set(x_27, 1, x_26); +return x_27; +} +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; +x_28 = lean_ctor_get(x_21, 1); +lean_inc(x_28); +lean_dec(x_21); +x_29 = lean_st_ref_take(x_5, x_28); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +x_31 = lean_ctor_get(x_30, 1); +lean_inc(x_31); +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_29, 1); +lean_inc(x_33); +lean_dec(x_29); +x_34 = !lean_is_exclusive(x_30); +if (x_34 == 0) +{ +lean_object* x_35; uint8_t x_36; +x_35 = lean_ctor_get(x_30, 1); +lean_dec(x_35); +x_36 = !lean_is_exclusive(x_31); +if (x_36 == 0) +{ +lean_object* x_37; uint8_t x_38; +x_37 = lean_ctor_get(x_31, 0); +lean_dec(x_37); +x_38 = !lean_is_exclusive(x_32); +if (x_38 == 0) +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; uint64_t x_42; uint64_t x_43; uint64_t x_44; uint64_t x_45; uint64_t x_46; uint64_t x_47; uint64_t x_48; size_t x_49; size_t x_50; size_t x_51; size_t x_52; size_t x_53; lean_object* x_54; uint8_t x_55; +x_39 = lean_ctor_get(x_32, 0); +x_40 = lean_ctor_get(x_32, 1); +x_41 = lean_array_get_size(x_40); +x_42 = l_Lean_Name_hash___override(x_2); +x_43 = 32; +x_44 = lean_uint64_shift_right(x_42, x_43); +x_45 = lean_uint64_xor(x_42, x_44); +x_46 = 16; +x_47 = lean_uint64_shift_right(x_45, x_46); +x_48 = lean_uint64_xor(x_45, x_47); +x_49 = lean_uint64_to_usize(x_48); +x_50 = lean_usize_of_nat(x_41); +lean_dec(x_41); +x_51 = 1; +x_52 = lean_usize_sub(x_50, x_51); +x_53 = lean_usize_land(x_49, x_52); +x_54 = lean_array_uget(x_40, x_53); +x_55 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_2, x_54); +if (x_55 == 0) +{ +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; uint8_t x_66; +x_56 = lean_unsigned_to_nat(1u); +x_57 = lean_nat_add(x_39, x_56); +lean_dec(x_39); +x_58 = lean_box(0); +x_59 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_59, 0, x_2); +lean_ctor_set(x_59, 1, x_58); +lean_ctor_set(x_59, 2, x_54); +x_60 = lean_array_uset(x_40, x_53, x_59); +x_61 = lean_unsigned_to_nat(4u); +x_62 = lean_nat_mul(x_57, x_61); +x_63 = lean_unsigned_to_nat(3u); +x_64 = lean_nat_div(x_62, x_63); +lean_dec(x_62); +x_65 = lean_array_get_size(x_60); +x_66 = lean_nat_dec_le(x_64, x_65); +lean_dec(x_65); +lean_dec(x_64); +if (x_66 == 0) +{ +lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_67 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_60); +lean_ctor_set(x_32, 1, x_67); +lean_ctor_set(x_32, 0, x_57); +x_68 = lean_st_ref_set(x_5, x_30, x_33); +lean_dec(x_5); +x_69 = !lean_is_exclusive(x_68); +if (x_69 == 0) +{ +lean_object* x_70; +x_70 = lean_ctor_get(x_68, 0); +lean_dec(x_70); +lean_ctor_set(x_68, 0, x_22); +return x_68; +} +else +{ +lean_object* x_71; lean_object* x_72; +x_71 = lean_ctor_get(x_68, 1); +lean_inc(x_71); +lean_dec(x_68); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_22); +lean_ctor_set(x_72, 1, x_71); +return x_72; +} +} +else +{ +lean_object* x_73; uint8_t x_74; +lean_ctor_set(x_32, 1, x_60); +lean_ctor_set(x_32, 0, x_57); +x_73 = lean_st_ref_set(x_5, x_30, x_33); +lean_dec(x_5); +x_74 = !lean_is_exclusive(x_73); +if (x_74 == 0) +{ +lean_object* x_75; +x_75 = lean_ctor_get(x_73, 0); +lean_dec(x_75); +lean_ctor_set(x_73, 0, x_22); +return x_73; +} +else +{ +lean_object* x_76; lean_object* x_77; +x_76 = lean_ctor_get(x_73, 1); +lean_inc(x_76); +lean_dec(x_73); +x_77 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_77, 0, x_22); +lean_ctor_set(x_77, 1, x_76); +return x_77; +} +} +} +else +{ +lean_object* x_78; uint8_t x_79; +lean_dec(x_54); +lean_dec(x_2); +x_78 = lean_st_ref_set(x_5, x_30, x_33); +lean_dec(x_5); +x_79 = !lean_is_exclusive(x_78); +if (x_79 == 0) +{ +lean_object* x_80; +x_80 = lean_ctor_get(x_78, 0); +lean_dec(x_80); +lean_ctor_set(x_78, 0, x_22); +return x_78; +} +else +{ +lean_object* x_81; lean_object* x_82; +x_81 = lean_ctor_get(x_78, 1); +lean_inc(x_81); +lean_dec(x_78); +x_82 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_82, 0, x_22); +lean_ctor_set(x_82, 1, x_81); +return x_82; +} +} +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; uint64_t x_86; uint64_t x_87; uint64_t x_88; uint64_t x_89; uint64_t x_90; uint64_t x_91; uint64_t x_92; size_t x_93; size_t x_94; size_t x_95; size_t x_96; size_t x_97; lean_object* x_98; uint8_t x_99; +x_83 = lean_ctor_get(x_32, 0); +x_84 = lean_ctor_get(x_32, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_32); +x_85 = lean_array_get_size(x_84); +x_86 = l_Lean_Name_hash___override(x_2); +x_87 = 32; +x_88 = lean_uint64_shift_right(x_86, x_87); +x_89 = lean_uint64_xor(x_86, x_88); +x_90 = 16; +x_91 = lean_uint64_shift_right(x_89, x_90); +x_92 = lean_uint64_xor(x_89, x_91); +x_93 = lean_uint64_to_usize(x_92); +x_94 = lean_usize_of_nat(x_85); +lean_dec(x_85); +x_95 = 1; +x_96 = lean_usize_sub(x_94, x_95); +x_97 = lean_usize_land(x_93, x_96); +x_98 = lean_array_uget(x_84, x_97); +x_99 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_2, x_98); +if (x_99 == 0) +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; +x_100 = lean_unsigned_to_nat(1u); +x_101 = lean_nat_add(x_83, x_100); +lean_dec(x_83); +x_102 = lean_box(0); +x_103 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_103, 0, x_2); +lean_ctor_set(x_103, 1, x_102); +lean_ctor_set(x_103, 2, x_98); +x_104 = lean_array_uset(x_84, x_97, x_103); +x_105 = lean_unsigned_to_nat(4u); +x_106 = lean_nat_mul(x_101, x_105); +x_107 = lean_unsigned_to_nat(3u); +x_108 = lean_nat_div(x_106, x_107); +lean_dec(x_106); +x_109 = lean_array_get_size(x_104); +x_110 = lean_nat_dec_le(x_108, x_109); +lean_dec(x_109); +lean_dec(x_108); +if (x_110 == 0) +{ +lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; +x_111 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_104); +x_112 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_112, 0, x_101); +lean_ctor_set(x_112, 1, x_111); +lean_ctor_set(x_31, 0, x_112); +x_113 = lean_st_ref_set(x_5, x_30, x_33); +lean_dec(x_5); +x_114 = lean_ctor_get(x_113, 1); +lean_inc(x_114); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_115 = x_113; +} else { + lean_dec_ref(x_113); + x_115 = lean_box(0); +} +if (lean_is_scalar(x_115)) { + x_116 = lean_alloc_ctor(0, 2, 0); +} else { + x_116 = x_115; +} +lean_ctor_set(x_116, 0, x_22); +lean_ctor_set(x_116, 1, x_114); +return x_116; +} +else +{ +lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; +x_117 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_117, 0, x_101); +lean_ctor_set(x_117, 1, x_104); +lean_ctor_set(x_31, 0, x_117); +x_118 = lean_st_ref_set(x_5, x_30, x_33); +lean_dec(x_5); +x_119 = lean_ctor_get(x_118, 1); +lean_inc(x_119); +if (lean_is_exclusive(x_118)) { + lean_ctor_release(x_118, 0); + lean_ctor_release(x_118, 1); + x_120 = x_118; +} else { + lean_dec_ref(x_118); + x_120 = lean_box(0); +} +if (lean_is_scalar(x_120)) { + x_121 = lean_alloc_ctor(0, 2, 0); +} else { + x_121 = x_120; +} +lean_ctor_set(x_121, 0, x_22); +lean_ctor_set(x_121, 1, x_119); +return x_121; +} +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; +lean_dec(x_98); +lean_dec(x_2); +x_122 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_122, 0, x_83); +lean_ctor_set(x_122, 1, x_84); +lean_ctor_set(x_31, 0, x_122); +x_123 = lean_st_ref_set(x_5, x_30, x_33); +lean_dec(x_5); +x_124 = lean_ctor_get(x_123, 1); +lean_inc(x_124); +if (lean_is_exclusive(x_123)) { + lean_ctor_release(x_123, 0); + lean_ctor_release(x_123, 1); + x_125 = x_123; +} else { + lean_dec_ref(x_123); + x_125 = lean_box(0); +} +if (lean_is_scalar(x_125)) { + x_126 = lean_alloc_ctor(0, 2, 0); +} else { + x_126 = x_125; +} +lean_ctor_set(x_126, 0, x_22); +lean_ctor_set(x_126, 1, x_124); +return x_126; +} +} +} +else +{ +lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint64_t x_133; uint64_t x_134; uint64_t x_135; uint64_t x_136; uint64_t x_137; uint64_t x_138; uint64_t x_139; size_t x_140; size_t x_141; size_t x_142; size_t x_143; size_t x_144; lean_object* x_145; uint8_t x_146; +x_127 = lean_ctor_get(x_31, 1); +x_128 = lean_ctor_get(x_31, 2); +lean_inc(x_128); +lean_inc(x_127); +lean_dec(x_31); +x_129 = lean_ctor_get(x_32, 0); +lean_inc(x_129); +x_130 = lean_ctor_get(x_32, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_131 = x_32; +} else { + lean_dec_ref(x_32); + x_131 = lean_box(0); +} +x_132 = lean_array_get_size(x_130); +x_133 = l_Lean_Name_hash___override(x_2); +x_134 = 32; +x_135 = lean_uint64_shift_right(x_133, x_134); +x_136 = lean_uint64_xor(x_133, x_135); +x_137 = 16; +x_138 = lean_uint64_shift_right(x_136, x_137); +x_139 = lean_uint64_xor(x_136, x_138); +x_140 = lean_uint64_to_usize(x_139); +x_141 = lean_usize_of_nat(x_132); +lean_dec(x_132); +x_142 = 1; +x_143 = lean_usize_sub(x_141, x_142); +x_144 = lean_usize_land(x_140, x_143); +x_145 = lean_array_uget(x_130, x_144); +x_146 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_2, x_145); +if (x_146 == 0) +{ +lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; uint8_t x_157; +x_147 = lean_unsigned_to_nat(1u); +x_148 = lean_nat_add(x_129, x_147); +lean_dec(x_129); +x_149 = lean_box(0); +x_150 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_150, 0, x_2); +lean_ctor_set(x_150, 1, x_149); +lean_ctor_set(x_150, 2, x_145); +x_151 = lean_array_uset(x_130, x_144, x_150); +x_152 = lean_unsigned_to_nat(4u); +x_153 = lean_nat_mul(x_148, x_152); +x_154 = lean_unsigned_to_nat(3u); +x_155 = lean_nat_div(x_153, x_154); +lean_dec(x_153); +x_156 = lean_array_get_size(x_151); +x_157 = lean_nat_dec_le(x_155, x_156); +lean_dec(x_156); +lean_dec(x_155); +if (x_157 == 0) +{ +lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_158 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_151); +if (lean_is_scalar(x_131)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_131; +} +lean_ctor_set(x_159, 0, x_148); +lean_ctor_set(x_159, 1, x_158); +x_160 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_127); +lean_ctor_set(x_160, 2, x_128); +lean_ctor_set(x_30, 1, x_160); +x_161 = lean_st_ref_set(x_5, x_30, x_33); +lean_dec(x_5); +x_162 = lean_ctor_get(x_161, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_161)) { + lean_ctor_release(x_161, 0); + lean_ctor_release(x_161, 1); + x_163 = x_161; +} else { + lean_dec_ref(x_161); + x_163 = lean_box(0); +} +if (lean_is_scalar(x_163)) { + x_164 = lean_alloc_ctor(0, 2, 0); +} else { + x_164 = x_163; +} +lean_ctor_set(x_164, 0, x_22); +lean_ctor_set(x_164, 1, x_162); +return x_164; +} +else +{ +lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; +if (lean_is_scalar(x_131)) { + x_165 = lean_alloc_ctor(0, 2, 0); +} else { + x_165 = x_131; +} +lean_ctor_set(x_165, 0, x_148); +lean_ctor_set(x_165, 1, x_151); +x_166 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_166, 0, x_165); +lean_ctor_set(x_166, 1, x_127); +lean_ctor_set(x_166, 2, x_128); +lean_ctor_set(x_30, 1, x_166); +x_167 = lean_st_ref_set(x_5, x_30, x_33); +lean_dec(x_5); +x_168 = lean_ctor_get(x_167, 1); +lean_inc(x_168); +if (lean_is_exclusive(x_167)) { + lean_ctor_release(x_167, 0); + lean_ctor_release(x_167, 1); + x_169 = x_167; +} else { + lean_dec_ref(x_167); + x_169 = lean_box(0); +} +if (lean_is_scalar(x_169)) { + x_170 = lean_alloc_ctor(0, 2, 0); +} else { + x_170 = x_169; +} +lean_ctor_set(x_170, 0, x_22); +lean_ctor_set(x_170, 1, x_168); +return x_170; +} +} +else +{ +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_dec(x_145); +lean_dec(x_2); +if (lean_is_scalar(x_131)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { + x_171 = x_131; +} +lean_ctor_set(x_171, 0, x_129); +lean_ctor_set(x_171, 1, x_130); +x_172 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_172, 0, x_171); +lean_ctor_set(x_172, 1, x_127); +lean_ctor_set(x_172, 2, x_128); +lean_ctor_set(x_30, 1, x_172); +x_173 = lean_st_ref_set(x_5, x_30, x_33); +lean_dec(x_5); +x_174 = lean_ctor_get(x_173, 1); +lean_inc(x_174); +if (lean_is_exclusive(x_173)) { + lean_ctor_release(x_173, 0); + lean_ctor_release(x_173, 1); + x_175 = x_173; +} else { + lean_dec_ref(x_173); + x_175 = lean_box(0); +} +if (lean_is_scalar(x_175)) { + x_176 = lean_alloc_ctor(0, 2, 0); +} else { + x_176 = x_175; +} +lean_ctor_set(x_176, 0, x_22); +lean_ctor_set(x_176, 1, x_174); +return x_176; +} +} +} +else +{ +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; uint64_t x_185; uint64_t x_186; uint64_t x_187; uint64_t x_188; uint64_t x_189; uint64_t x_190; uint64_t x_191; size_t x_192; size_t x_193; size_t x_194; size_t x_195; size_t x_196; lean_object* x_197; uint8_t x_198; +x_177 = lean_ctor_get(x_30, 0); +lean_inc(x_177); +lean_dec(x_30); +x_178 = lean_ctor_get(x_31, 1); +lean_inc(x_178); +x_179 = lean_ctor_get(x_31, 2); +lean_inc(x_179); +if (lean_is_exclusive(x_31)) { + lean_ctor_release(x_31, 0); + lean_ctor_release(x_31, 1); + lean_ctor_release(x_31, 2); + x_180 = x_31; +} else { + lean_dec_ref(x_31); + x_180 = lean_box(0); +} +x_181 = lean_ctor_get(x_32, 0); +lean_inc(x_181); +x_182 = lean_ctor_get(x_32, 1); +lean_inc(x_182); +if (lean_is_exclusive(x_32)) { + lean_ctor_release(x_32, 0); + lean_ctor_release(x_32, 1); + x_183 = x_32; +} else { + lean_dec_ref(x_32); + x_183 = lean_box(0); +} +x_184 = lean_array_get_size(x_182); +x_185 = l_Lean_Name_hash___override(x_2); +x_186 = 32; +x_187 = lean_uint64_shift_right(x_185, x_186); +x_188 = lean_uint64_xor(x_185, x_187); +x_189 = 16; +x_190 = lean_uint64_shift_right(x_188, x_189); +x_191 = lean_uint64_xor(x_188, x_190); +x_192 = lean_uint64_to_usize(x_191); +x_193 = lean_usize_of_nat(x_184); +lean_dec(x_184); +x_194 = 1; +x_195 = lean_usize_sub(x_193, x_194); +x_196 = lean_usize_land(x_192, x_195); +x_197 = lean_array_uget(x_182, x_196); +x_198 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_2, x_197); +if (x_198 == 0) +{ +lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; uint8_t x_209; +x_199 = lean_unsigned_to_nat(1u); +x_200 = lean_nat_add(x_181, x_199); +lean_dec(x_181); +x_201 = lean_box(0); +x_202 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_202, 0, x_2); +lean_ctor_set(x_202, 1, x_201); +lean_ctor_set(x_202, 2, x_197); +x_203 = lean_array_uset(x_182, x_196, x_202); +x_204 = lean_unsigned_to_nat(4u); +x_205 = lean_nat_mul(x_200, x_204); +x_206 = lean_unsigned_to_nat(3u); +x_207 = lean_nat_div(x_205, x_206); +lean_dec(x_205); +x_208 = lean_array_get_size(x_203); +x_209 = lean_nat_dec_le(x_207, x_208); +lean_dec(x_208); +lean_dec(x_207); +if (x_209 == 0) +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; +x_210 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_203); +if (lean_is_scalar(x_183)) { + x_211 = lean_alloc_ctor(0, 2, 0); +} else { + x_211 = x_183; +} +lean_ctor_set(x_211, 0, x_200); +lean_ctor_set(x_211, 1, x_210); +if (lean_is_scalar(x_180)) { + x_212 = lean_alloc_ctor(0, 3, 0); +} else { + x_212 = x_180; +} +lean_ctor_set(x_212, 0, x_211); +lean_ctor_set(x_212, 1, x_178); +lean_ctor_set(x_212, 2, x_179); +x_213 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_213, 0, x_177); +lean_ctor_set(x_213, 1, x_212); +x_214 = lean_st_ref_set(x_5, x_213, x_33); +lean_dec(x_5); +x_215 = lean_ctor_get(x_214, 1); +lean_inc(x_215); +if (lean_is_exclusive(x_214)) { + lean_ctor_release(x_214, 0); + lean_ctor_release(x_214, 1); + x_216 = x_214; +} else { + lean_dec_ref(x_214); + x_216 = lean_box(0); +} +if (lean_is_scalar(x_216)) { + x_217 = lean_alloc_ctor(0, 2, 0); +} else { + x_217 = x_216; +} +lean_ctor_set(x_217, 0, x_22); +lean_ctor_set(x_217, 1, x_215); +return x_217; +} +else +{ +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; +if (lean_is_scalar(x_183)) { + x_218 = lean_alloc_ctor(0, 2, 0); +} else { + x_218 = x_183; +} +lean_ctor_set(x_218, 0, x_200); +lean_ctor_set(x_218, 1, x_203); +if (lean_is_scalar(x_180)) { + x_219 = lean_alloc_ctor(0, 3, 0); +} else { + x_219 = x_180; +} +lean_ctor_set(x_219, 0, x_218); +lean_ctor_set(x_219, 1, x_178); +lean_ctor_set(x_219, 2, x_179); +x_220 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_220, 0, x_177); +lean_ctor_set(x_220, 1, x_219); +x_221 = lean_st_ref_set(x_5, x_220, x_33); +lean_dec(x_5); +x_222 = lean_ctor_get(x_221, 1); +lean_inc(x_222); +if (lean_is_exclusive(x_221)) { + lean_ctor_release(x_221, 0); + lean_ctor_release(x_221, 1); + x_223 = x_221; +} else { + lean_dec_ref(x_221); + x_223 = lean_box(0); +} +if (lean_is_scalar(x_223)) { + x_224 = lean_alloc_ctor(0, 2, 0); +} else { + x_224 = x_223; +} +lean_ctor_set(x_224, 0, x_22); +lean_ctor_set(x_224, 1, x_222); +return x_224; +} +} +else +{ +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_dec(x_197); +lean_dec(x_2); +if (lean_is_scalar(x_183)) { + x_225 = lean_alloc_ctor(0, 2, 0); +} else { + x_225 = x_183; +} +lean_ctor_set(x_225, 0, x_181); +lean_ctor_set(x_225, 1, x_182); +if (lean_is_scalar(x_180)) { + x_226 = lean_alloc_ctor(0, 3, 0); +} else { + x_226 = x_180; +} +lean_ctor_set(x_226, 0, x_225); +lean_ctor_set(x_226, 1, x_178); +lean_ctor_set(x_226, 2, x_179); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_177); +lean_ctor_set(x_227, 1, x_226); +x_228 = lean_st_ref_set(x_5, x_227, x_33); +lean_dec(x_5); +x_229 = lean_ctor_get(x_228, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + x_230 = x_228; +} else { + lean_dec_ref(x_228); + x_230 = lean_box(0); +} +if (lean_is_scalar(x_230)) { + x_231 = lean_alloc_ctor(0, 2, 0); +} else { + x_231 = x_230; +} +lean_ctor_set(x_231, 0, x_22); +lean_ctor_set(x_231, 1, x_229); +return x_231; +} +} +} +} +else +{ +uint8_t x_232; +lean_dec(x_5); +lean_dec(x_2); +x_232 = !lean_is_exclusive(x_21); +if (x_232 == 0) +{ +return x_21; +} +else +{ +lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_233 = lean_ctor_get(x_21, 0); +x_234 = lean_ctor_get(x_21, 1); +lean_inc(x_234); +lean_inc(x_233); +lean_dec(x_21); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_233); +lean_ctor_set(x_235, 1, x_234); +return x_235; +} +} +} +else +{ +uint8_t x_236; +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_2); +x_236 = !lean_is_exclusive(x_14); +if (x_236 == 0) +{ +return x_14; +} +else +{ +lean_object* x_237; lean_object* x_238; lean_object* x_239; +x_237 = lean_ctor_get(x_14, 0); +x_238 = lean_ctor_get(x_14, 1); +lean_inc(x_238); +lean_inc(x_237); +lean_dec(x_14); +x_239 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_239, 0, x_237); +lean_ctor_set(x_239, 1, x_238); +return x_239; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___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) { +_start: +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_10 = lean_st_ref_get(x_8, x_9); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +lean_inc(x_1); +x_14 = l_Lean_isStructure(x_13, x_1); +if (x_14 == 0) +{ +lean_object* x_15; +lean_inc(x_1); +x_15 = l_Lean_isEnumType___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__1(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; uint8_t x_17; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_unbox(x_16); +lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); +x_19 = lean_st_ref_take(x_4, x_18); +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_20, 1); +lean_inc(x_21); +x_22 = lean_ctor_get(x_21, 2); +lean_inc(x_22); +x_23 = lean_ctor_get(x_19, 1); +lean_inc(x_23); +lean_dec(x_19); +x_24 = !lean_is_exclusive(x_20); +if (x_24 == 0) +{ +lean_object* x_25; uint8_t x_26; +x_25 = lean_ctor_get(x_20, 1); +lean_dec(x_25); +x_26 = !lean_is_exclusive(x_21); +if (x_26 == 0) +{ +lean_object* x_27; uint8_t x_28; +x_27 = lean_ctor_get(x_21, 2); +lean_dec(x_27); +x_28 = !lean_is_exclusive(x_22); +if (x_28 == 0) +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; uint64_t x_32; uint64_t x_33; uint64_t x_34; uint64_t x_35; uint64_t x_36; uint64_t x_37; uint64_t x_38; size_t x_39; size_t x_40; size_t x_41; size_t x_42; size_t x_43; lean_object* x_44; uint8_t x_45; +x_29 = lean_ctor_get(x_22, 0); +x_30 = lean_ctor_get(x_22, 1); +x_31 = lean_array_get_size(x_30); +x_32 = l_Lean_Name_hash___override(x_1); +x_33 = 32; +x_34 = lean_uint64_shift_right(x_32, x_33); +x_35 = lean_uint64_xor(x_32, x_34); +x_36 = 16; +x_37 = lean_uint64_shift_right(x_35, x_36); +x_38 = lean_uint64_xor(x_35, x_37); +x_39 = lean_uint64_to_usize(x_38); +x_40 = lean_usize_of_nat(x_31); +lean_dec(x_31); +x_41 = 1; +x_42 = lean_usize_sub(x_40, x_41); +x_43 = lean_usize_land(x_39, x_42); +x_44 = lean_array_uget(x_30, x_43); +x_45 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_44); +if (x_45 == 0) +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_46 = lean_unsigned_to_nat(1u); +x_47 = lean_nat_add(x_29, x_46); +lean_dec(x_29); +x_48 = lean_box(0); +x_49 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_49, 0, x_1); +lean_ctor_set(x_49, 1, x_48); +lean_ctor_set(x_49, 2, x_44); +x_50 = lean_array_uset(x_30, x_43, x_49); +x_51 = lean_unsigned_to_nat(4u); +x_52 = lean_nat_mul(x_47, x_51); +x_53 = lean_unsigned_to_nat(3u); +x_54 = lean_nat_div(x_52, x_53); +lean_dec(x_52); +x_55 = lean_array_get_size(x_50); +x_56 = lean_nat_dec_le(x_54, x_55); +lean_dec(x_55); +lean_dec(x_54); +if (x_56 == 0) +{ +lean_object* x_57; lean_object* x_58; uint8_t x_59; +x_57 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_50); +lean_ctor_set(x_22, 1, x_57); +lean_ctor_set(x_22, 0, x_47); +x_58 = lean_st_ref_set(x_4, x_20, x_23); +lean_dec(x_4); +x_59 = !lean_is_exclusive(x_58); +if (x_59 == 0) +{ +lean_object* x_60; uint8_t x_61; lean_object* x_62; +x_60 = lean_ctor_get(x_58, 0); +lean_dec(x_60); +x_61 = 0; +x_62 = lean_box(x_61); +lean_ctor_set(x_58, 0, x_62); +return x_58; +} +else +{ +lean_object* x_63; uint8_t x_64; lean_object* x_65; lean_object* x_66; +x_63 = lean_ctor_get(x_58, 1); +lean_inc(x_63); +lean_dec(x_58); +x_64 = 0; +x_65 = lean_box(x_64); +x_66 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_66, 0, x_65); +lean_ctor_set(x_66, 1, x_63); +return x_66; +} +} +else +{ +lean_object* x_67; uint8_t x_68; +lean_ctor_set(x_22, 1, x_50); +lean_ctor_set(x_22, 0, x_47); +x_67 = lean_st_ref_set(x_4, x_20, x_23); +lean_dec(x_4); +x_68 = !lean_is_exclusive(x_67); +if (x_68 == 0) +{ +lean_object* x_69; uint8_t x_70; lean_object* x_71; +x_69 = lean_ctor_get(x_67, 0); +lean_dec(x_69); +x_70 = 0; +x_71 = lean_box(x_70); +lean_ctor_set(x_67, 0, x_71); +return x_67; +} +else +{ +lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; +x_72 = lean_ctor_get(x_67, 1); +lean_inc(x_72); +lean_dec(x_67); +x_73 = 0; +x_74 = lean_box(x_73); +x_75 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_75, 0, x_74); +lean_ctor_set(x_75, 1, x_72); +return x_75; +} +} +} +else +{ +lean_object* x_76; uint8_t x_77; +lean_dec(x_44); +lean_dec(x_1); +x_76 = lean_st_ref_set(x_4, x_20, x_23); +lean_dec(x_4); +x_77 = !lean_is_exclusive(x_76); +if (x_77 == 0) +{ +lean_object* x_78; uint8_t x_79; lean_object* x_80; +x_78 = lean_ctor_get(x_76, 0); +lean_dec(x_78); +x_79 = 0; +x_80 = lean_box(x_79); +lean_ctor_set(x_76, 0, x_80); +return x_76; +} +else +{ +lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; +x_81 = lean_ctor_get(x_76, 1); +lean_inc(x_81); +lean_dec(x_76); +x_82 = 0; +x_83 = lean_box(x_82); +x_84 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_84, 0, x_83); +lean_ctor_set(x_84, 1, x_81); +return x_84; +} +} +} +else +{ +lean_object* x_85; lean_object* x_86; lean_object* x_87; uint64_t x_88; uint64_t x_89; uint64_t x_90; uint64_t x_91; uint64_t x_92; uint64_t x_93; uint64_t x_94; size_t x_95; size_t x_96; size_t x_97; size_t x_98; size_t x_99; lean_object* x_100; uint8_t x_101; +x_85 = lean_ctor_get(x_22, 0); +x_86 = lean_ctor_get(x_22, 1); +lean_inc(x_86); +lean_inc(x_85); +lean_dec(x_22); +x_87 = lean_array_get_size(x_86); +x_88 = l_Lean_Name_hash___override(x_1); +x_89 = 32; +x_90 = lean_uint64_shift_right(x_88, x_89); +x_91 = lean_uint64_xor(x_88, x_90); +x_92 = 16; +x_93 = lean_uint64_shift_right(x_91, x_92); +x_94 = lean_uint64_xor(x_91, x_93); +x_95 = lean_uint64_to_usize(x_94); +x_96 = lean_usize_of_nat(x_87); +lean_dec(x_87); +x_97 = 1; +x_98 = lean_usize_sub(x_96, x_97); +x_99 = lean_usize_land(x_95, x_98); +x_100 = lean_array_uget(x_86, x_99); +x_101 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_100); +if (x_101 == 0) +{ +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; uint8_t x_112; +x_102 = lean_unsigned_to_nat(1u); +x_103 = lean_nat_add(x_85, x_102); +lean_dec(x_85); +x_104 = lean_box(0); +x_105 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_105, 0, x_1); +lean_ctor_set(x_105, 1, x_104); +lean_ctor_set(x_105, 2, x_100); +x_106 = lean_array_uset(x_86, x_99, x_105); +x_107 = lean_unsigned_to_nat(4u); +x_108 = lean_nat_mul(x_103, x_107); +x_109 = lean_unsigned_to_nat(3u); +x_110 = lean_nat_div(x_108, x_109); +lean_dec(x_108); +x_111 = lean_array_get_size(x_106); +x_112 = lean_nat_dec_le(x_110, x_111); +lean_dec(x_111); +lean_dec(x_110); +if (x_112 == 0) +{ +lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; uint8_t x_118; lean_object* x_119; lean_object* x_120; +x_113 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_106); +x_114 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_114, 0, x_103); +lean_ctor_set(x_114, 1, x_113); +lean_ctor_set(x_21, 2, x_114); +x_115 = lean_st_ref_set(x_4, x_20, x_23); +lean_dec(x_4); +x_116 = lean_ctor_get(x_115, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_115)) { + lean_ctor_release(x_115, 0); + lean_ctor_release(x_115, 1); + x_117 = x_115; +} else { + lean_dec_ref(x_115); + x_117 = lean_box(0); +} +x_118 = 0; +x_119 = lean_box(x_118); +if (lean_is_scalar(x_117)) { + x_120 = lean_alloc_ctor(0, 2, 0); +} else { + x_120 = x_117; +} +lean_ctor_set(x_120, 0, x_119); +lean_ctor_set(x_120, 1, x_116); +return x_120; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; uint8_t x_125; lean_object* x_126; lean_object* x_127; +x_121 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_121, 0, x_103); +lean_ctor_set(x_121, 1, x_106); +lean_ctor_set(x_21, 2, x_121); +x_122 = lean_st_ref_set(x_4, x_20, x_23); +lean_dec(x_4); +x_123 = lean_ctor_get(x_122, 1); +lean_inc(x_123); +if (lean_is_exclusive(x_122)) { + lean_ctor_release(x_122, 0); + lean_ctor_release(x_122, 1); + x_124 = x_122; +} else { + lean_dec_ref(x_122); + x_124 = lean_box(0); +} +x_125 = 0; +x_126 = lean_box(x_125); +if (lean_is_scalar(x_124)) { + x_127 = lean_alloc_ctor(0, 2, 0); +} else { + x_127 = x_124; +} +lean_ctor_set(x_127, 0, x_126); +lean_ctor_set(x_127, 1, x_123); +return x_127; +} +} +else +{ +lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132; lean_object* x_133; lean_object* x_134; +lean_dec(x_100); +lean_dec(x_1); +x_128 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_128, 0, x_85); +lean_ctor_set(x_128, 1, x_86); +lean_ctor_set(x_21, 2, x_128); +x_129 = lean_st_ref_set(x_4, x_20, x_23); +lean_dec(x_4); +x_130 = lean_ctor_get(x_129, 1); +lean_inc(x_130); +if (lean_is_exclusive(x_129)) { + lean_ctor_release(x_129, 0); + lean_ctor_release(x_129, 1); + x_131 = x_129; +} else { + lean_dec_ref(x_129); + x_131 = lean_box(0); +} +x_132 = 0; +x_133 = lean_box(x_132); +if (lean_is_scalar(x_131)) { + x_134 = lean_alloc_ctor(0, 2, 0); +} else { + x_134 = x_131; +} +lean_ctor_set(x_134, 0, x_133); +lean_ctor_set(x_134, 1, x_130); +return x_134; +} +} +} +else +{ +lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint64_t x_141; uint64_t x_142; uint64_t x_143; uint64_t x_144; uint64_t x_145; uint64_t x_146; uint64_t x_147; size_t x_148; size_t x_149; size_t x_150; size_t x_151; size_t x_152; lean_object* x_153; uint8_t x_154; +x_135 = lean_ctor_get(x_21, 0); +x_136 = lean_ctor_get(x_21, 1); +lean_inc(x_136); +lean_inc(x_135); +lean_dec(x_21); +x_137 = lean_ctor_get(x_22, 0); +lean_inc(x_137); +x_138 = lean_ctor_get(x_22, 1); +lean_inc(x_138); +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + x_139 = x_22; +} else { + lean_dec_ref(x_22); + x_139 = lean_box(0); +} +x_140 = lean_array_get_size(x_138); +x_141 = l_Lean_Name_hash___override(x_1); +x_142 = 32; +x_143 = lean_uint64_shift_right(x_141, x_142); +x_144 = lean_uint64_xor(x_141, x_143); +x_145 = 16; +x_146 = lean_uint64_shift_right(x_144, x_145); +x_147 = lean_uint64_xor(x_144, x_146); +x_148 = lean_uint64_to_usize(x_147); +x_149 = lean_usize_of_nat(x_140); +lean_dec(x_140); +x_150 = 1; +x_151 = lean_usize_sub(x_149, x_150); +x_152 = lean_usize_land(x_148, x_151); +x_153 = lean_array_uget(x_138, x_152); +x_154 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_153); +if (x_154 == 0) +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; uint8_t x_165; +x_155 = lean_unsigned_to_nat(1u); +x_156 = lean_nat_add(x_137, x_155); +lean_dec(x_137); +x_157 = lean_box(0); +x_158 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_158, 0, x_1); +lean_ctor_set(x_158, 1, x_157); +lean_ctor_set(x_158, 2, x_153); +x_159 = lean_array_uset(x_138, x_152, x_158); +x_160 = lean_unsigned_to_nat(4u); +x_161 = lean_nat_mul(x_156, x_160); +x_162 = lean_unsigned_to_nat(3u); +x_163 = lean_nat_div(x_161, x_162); +lean_dec(x_161); +x_164 = lean_array_get_size(x_159); +x_165 = lean_nat_dec_le(x_163, x_164); +lean_dec(x_164); +lean_dec(x_163); +if (x_165 == 0) +{ +lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; uint8_t x_172; lean_object* x_173; lean_object* x_174; +x_166 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_159); +if (lean_is_scalar(x_139)) { + x_167 = lean_alloc_ctor(0, 2, 0); +} else { + x_167 = x_139; +} +lean_ctor_set(x_167, 0, x_156); +lean_ctor_set(x_167, 1, x_166); +x_168 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_168, 0, x_135); +lean_ctor_set(x_168, 1, x_136); +lean_ctor_set(x_168, 2, x_167); +lean_ctor_set(x_20, 1, x_168); +x_169 = lean_st_ref_set(x_4, x_20, x_23); +lean_dec(x_4); +x_170 = lean_ctor_get(x_169, 1); +lean_inc(x_170); +if (lean_is_exclusive(x_169)) { + lean_ctor_release(x_169, 0); + lean_ctor_release(x_169, 1); + x_171 = x_169; +} else { + lean_dec_ref(x_169); + x_171 = lean_box(0); +} +x_172 = 0; +x_173 = lean_box(x_172); +if (lean_is_scalar(x_171)) { + x_174 = lean_alloc_ctor(0, 2, 0); +} else { + x_174 = x_171; +} +lean_ctor_set(x_174, 0, x_173); +lean_ctor_set(x_174, 1, x_170); +return x_174; +} +else +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; uint8_t x_180; lean_object* x_181; lean_object* x_182; +if (lean_is_scalar(x_139)) { + x_175 = lean_alloc_ctor(0, 2, 0); +} else { + x_175 = x_139; +} +lean_ctor_set(x_175, 0, x_156); +lean_ctor_set(x_175, 1, x_159); +x_176 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_176, 0, x_135); +lean_ctor_set(x_176, 1, x_136); +lean_ctor_set(x_176, 2, x_175); +lean_ctor_set(x_20, 1, x_176); +x_177 = lean_st_ref_set(x_4, x_20, x_23); +lean_dec(x_4); +x_178 = lean_ctor_get(x_177, 1); +lean_inc(x_178); +if (lean_is_exclusive(x_177)) { + lean_ctor_release(x_177, 0); + lean_ctor_release(x_177, 1); + x_179 = x_177; +} else { + lean_dec_ref(x_177); + x_179 = lean_box(0); +} +x_180 = 0; +x_181 = lean_box(x_180); +if (lean_is_scalar(x_179)) { + x_182 = lean_alloc_ctor(0, 2, 0); +} else { + x_182 = x_179; +} +lean_ctor_set(x_182, 0, x_181); +lean_ctor_set(x_182, 1, x_178); +return x_182; +} +} +else +{ +lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; uint8_t x_188; lean_object* x_189; lean_object* x_190; +lean_dec(x_153); +lean_dec(x_1); +if (lean_is_scalar(x_139)) { + x_183 = lean_alloc_ctor(0, 2, 0); +} else { + x_183 = x_139; +} +lean_ctor_set(x_183, 0, x_137); +lean_ctor_set(x_183, 1, x_138); +x_184 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_184, 0, x_135); +lean_ctor_set(x_184, 1, x_136); +lean_ctor_set(x_184, 2, x_183); +lean_ctor_set(x_20, 1, x_184); +x_185 = lean_st_ref_set(x_4, x_20, x_23); +lean_dec(x_4); +x_186 = lean_ctor_get(x_185, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_185)) { + lean_ctor_release(x_185, 0); + lean_ctor_release(x_185, 1); + x_187 = x_185; +} else { + lean_dec_ref(x_185); + x_187 = lean_box(0); +} +x_188 = 0; +x_189 = lean_box(x_188); +if (lean_is_scalar(x_187)) { + x_190 = lean_alloc_ctor(0, 2, 0); +} else { + x_190 = x_187; +} +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_186); +return x_190; +} +} +} +else +{ +lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; uint64_t x_199; uint64_t x_200; uint64_t x_201; uint64_t x_202; uint64_t x_203; uint64_t x_204; uint64_t x_205; size_t x_206; size_t x_207; size_t x_208; size_t x_209; size_t x_210; lean_object* x_211; uint8_t x_212; +x_191 = lean_ctor_get(x_20, 0); +lean_inc(x_191); +lean_dec(x_20); +x_192 = lean_ctor_get(x_21, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_21, 1); +lean_inc(x_193); +if (lean_is_exclusive(x_21)) { + lean_ctor_release(x_21, 0); + lean_ctor_release(x_21, 1); + lean_ctor_release(x_21, 2); + x_194 = x_21; +} else { + lean_dec_ref(x_21); + x_194 = lean_box(0); +} +x_195 = lean_ctor_get(x_22, 0); +lean_inc(x_195); +x_196 = lean_ctor_get(x_22, 1); +lean_inc(x_196); +if (lean_is_exclusive(x_22)) { + lean_ctor_release(x_22, 0); + lean_ctor_release(x_22, 1); + x_197 = x_22; +} else { + lean_dec_ref(x_22); + x_197 = lean_box(0); +} +x_198 = lean_array_get_size(x_196); +x_199 = l_Lean_Name_hash___override(x_1); +x_200 = 32; +x_201 = lean_uint64_shift_right(x_199, x_200); +x_202 = lean_uint64_xor(x_199, x_201); +x_203 = 16; +x_204 = lean_uint64_shift_right(x_202, x_203); +x_205 = lean_uint64_xor(x_202, x_204); +x_206 = lean_uint64_to_usize(x_205); +x_207 = lean_usize_of_nat(x_198); +lean_dec(x_198); +x_208 = 1; +x_209 = lean_usize_sub(x_207, x_208); +x_210 = lean_usize_land(x_206, x_209); +x_211 = lean_array_uget(x_196, x_210); +x_212 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_211); +if (x_212 == 0) +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; uint8_t x_223; +x_213 = lean_unsigned_to_nat(1u); +x_214 = lean_nat_add(x_195, x_213); +lean_dec(x_195); +x_215 = lean_box(0); +x_216 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_216, 0, x_1); +lean_ctor_set(x_216, 1, x_215); +lean_ctor_set(x_216, 2, x_211); +x_217 = lean_array_uset(x_196, x_210, x_216); +x_218 = lean_unsigned_to_nat(4u); +x_219 = lean_nat_mul(x_214, x_218); +x_220 = lean_unsigned_to_nat(3u); +x_221 = lean_nat_div(x_219, x_220); +lean_dec(x_219); +x_222 = lean_array_get_size(x_217); +x_223 = lean_nat_dec_le(x_221, x_222); +lean_dec(x_222); +lean_dec(x_221); +if (x_223 == 0) +{ +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; uint8_t x_231; lean_object* x_232; lean_object* x_233; +x_224 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_217); +if (lean_is_scalar(x_197)) { + x_225 = lean_alloc_ctor(0, 2, 0); +} else { + x_225 = x_197; +} +lean_ctor_set(x_225, 0, x_214); +lean_ctor_set(x_225, 1, x_224); +if (lean_is_scalar(x_194)) { + x_226 = lean_alloc_ctor(0, 3, 0); +} else { + x_226 = x_194; +} +lean_ctor_set(x_226, 0, x_192); +lean_ctor_set(x_226, 1, x_193); +lean_ctor_set(x_226, 2, x_225); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_191); +lean_ctor_set(x_227, 1, x_226); +x_228 = lean_st_ref_set(x_4, x_227, x_23); +lean_dec(x_4); +x_229 = lean_ctor_get(x_228, 1); +lean_inc(x_229); +if (lean_is_exclusive(x_228)) { + lean_ctor_release(x_228, 0); + lean_ctor_release(x_228, 1); + x_230 = x_228; +} else { + lean_dec_ref(x_228); + x_230 = lean_box(0); +} +x_231 = 0; +x_232 = lean_box(x_231); +if (lean_is_scalar(x_230)) { + x_233 = lean_alloc_ctor(0, 2, 0); +} else { + x_233 = x_230; +} +lean_ctor_set(x_233, 0, x_232); +lean_ctor_set(x_233, 1, x_229); +return x_233; +} +else +{ +lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; lean_object* x_241; lean_object* x_242; +if (lean_is_scalar(x_197)) { + x_234 = lean_alloc_ctor(0, 2, 0); +} else { + x_234 = x_197; +} +lean_ctor_set(x_234, 0, x_214); +lean_ctor_set(x_234, 1, x_217); +if (lean_is_scalar(x_194)) { + x_235 = lean_alloc_ctor(0, 3, 0); +} else { + x_235 = x_194; +} +lean_ctor_set(x_235, 0, x_192); +lean_ctor_set(x_235, 1, x_193); +lean_ctor_set(x_235, 2, x_234); +x_236 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_236, 0, x_191); +lean_ctor_set(x_236, 1, x_235); +x_237 = lean_st_ref_set(x_4, x_236, x_23); +lean_dec(x_4); +x_238 = lean_ctor_get(x_237, 1); +lean_inc(x_238); +if (lean_is_exclusive(x_237)) { + lean_ctor_release(x_237, 0); + lean_ctor_release(x_237, 1); + x_239 = x_237; +} else { + lean_dec_ref(x_237); + x_239 = lean_box(0); +} +x_240 = 0; +x_241 = lean_box(x_240); +if (lean_is_scalar(x_239)) { + x_242 = lean_alloc_ctor(0, 2, 0); +} else { + x_242 = x_239; +} +lean_ctor_set(x_242, 0, x_241); +lean_ctor_set(x_242, 1, x_238); +return x_242; +} +} +else +{ +lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; uint8_t x_249; lean_object* x_250; lean_object* x_251; +lean_dec(x_211); +lean_dec(x_1); +if (lean_is_scalar(x_197)) { + x_243 = lean_alloc_ctor(0, 2, 0); +} else { + x_243 = x_197; +} +lean_ctor_set(x_243, 0, x_195); +lean_ctor_set(x_243, 1, x_196); +if (lean_is_scalar(x_194)) { + x_244 = lean_alloc_ctor(0, 3, 0); +} else { + x_244 = x_194; +} +lean_ctor_set(x_244, 0, x_192); +lean_ctor_set(x_244, 1, x_193); +lean_ctor_set(x_244, 2, x_243); +x_245 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_245, 0, x_191); +lean_ctor_set(x_245, 1, x_244); +x_246 = lean_st_ref_set(x_4, x_245, x_23); +lean_dec(x_4); +x_247 = lean_ctor_get(x_246, 1); +lean_inc(x_247); +if (lean_is_exclusive(x_246)) { + lean_ctor_release(x_246, 0); + lean_ctor_release(x_246, 1); + x_248 = x_246; +} else { + lean_dec_ref(x_246); + x_248 = lean_box(0); +} +x_249 = 0; +x_250 = lean_box(x_249); +if (lean_is_scalar(x_248)) { + x_251 = lean_alloc_ctor(0, 2, 0); +} else { + x_251 = x_248; +} +lean_ctor_set(x_251, 0, x_250); +lean_ctor_set(x_251, 1, x_247); +return x_251; +} +} +} +else +{ +lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; +x_252 = lean_ctor_get(x_15, 1); +lean_inc(x_252); +lean_dec(x_15); +x_253 = lean_st_ref_take(x_4, x_252); +x_254 = lean_ctor_get(x_253, 0); +lean_inc(x_254); +x_255 = lean_ctor_get(x_254, 1); +lean_inc(x_255); +x_256 = lean_ctor_get(x_255, 1); +lean_inc(x_256); +x_257 = lean_ctor_get(x_253, 1); +lean_inc(x_257); +lean_dec(x_253); +x_258 = !lean_is_exclusive(x_254); +if (x_258 == 0) +{ +lean_object* x_259; uint8_t x_260; +x_259 = lean_ctor_get(x_254, 1); +lean_dec(x_259); +x_260 = !lean_is_exclusive(x_255); +if (x_260 == 0) +{ +lean_object* x_261; uint8_t x_262; +x_261 = lean_ctor_get(x_255, 1); +lean_dec(x_261); +x_262 = !lean_is_exclusive(x_256); +if (x_262 == 0) +{ +lean_object* x_263; lean_object* x_264; lean_object* x_265; uint64_t x_266; uint64_t x_267; uint64_t x_268; uint64_t x_269; uint64_t x_270; uint64_t x_271; uint64_t x_272; size_t x_273; size_t x_274; size_t x_275; size_t x_276; size_t x_277; lean_object* x_278; uint8_t x_279; +x_263 = lean_ctor_get(x_256, 0); +x_264 = lean_ctor_get(x_256, 1); +x_265 = lean_array_get_size(x_264); +x_266 = l_Lean_Name_hash___override(x_1); +x_267 = 32; +x_268 = lean_uint64_shift_right(x_266, x_267); +x_269 = lean_uint64_xor(x_266, x_268); +x_270 = 16; +x_271 = lean_uint64_shift_right(x_269, x_270); +x_272 = lean_uint64_xor(x_269, x_271); +x_273 = lean_uint64_to_usize(x_272); +x_274 = lean_usize_of_nat(x_265); +lean_dec(x_265); +x_275 = 1; +x_276 = lean_usize_sub(x_274, x_275); +x_277 = lean_usize_land(x_273, x_276); +x_278 = lean_array_uget(x_264, x_277); +x_279 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_278); +if (x_279 == 0) +{ +lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; +x_280 = lean_unsigned_to_nat(1u); +x_281 = lean_nat_add(x_263, x_280); +lean_dec(x_263); +x_282 = lean_box(0); +x_283 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_283, 0, x_1); +lean_ctor_set(x_283, 1, x_282); +lean_ctor_set(x_283, 2, x_278); +x_284 = lean_array_uset(x_264, x_277, x_283); +x_285 = lean_unsigned_to_nat(4u); +x_286 = lean_nat_mul(x_281, x_285); +x_287 = lean_unsigned_to_nat(3u); +x_288 = lean_nat_div(x_286, x_287); +lean_dec(x_286); +x_289 = lean_array_get_size(x_284); +x_290 = lean_nat_dec_le(x_288, x_289); +lean_dec(x_289); +lean_dec(x_288); +if (x_290 == 0) +{ +lean_object* x_291; lean_object* x_292; uint8_t x_293; +x_291 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_284); +lean_ctor_set(x_256, 1, x_291); +lean_ctor_set(x_256, 0, x_281); +x_292 = lean_st_ref_set(x_4, x_254, x_257); +lean_dec(x_4); +x_293 = !lean_is_exclusive(x_292); +if (x_293 == 0) +{ +lean_object* x_294; uint8_t x_295; lean_object* x_296; +x_294 = lean_ctor_get(x_292, 0); +lean_dec(x_294); +x_295 = 1; +x_296 = lean_box(x_295); +lean_ctor_set(x_292, 0, x_296); +return x_292; +} +else +{ +lean_object* x_297; uint8_t x_298; lean_object* x_299; lean_object* x_300; +x_297 = lean_ctor_get(x_292, 1); +lean_inc(x_297); +lean_dec(x_292); +x_298 = 1; +x_299 = lean_box(x_298); +x_300 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_300, 0, x_299); +lean_ctor_set(x_300, 1, x_297); +return x_300; +} +} +else +{ +lean_object* x_301; uint8_t x_302; +lean_ctor_set(x_256, 1, x_284); +lean_ctor_set(x_256, 0, x_281); +x_301 = lean_st_ref_set(x_4, x_254, x_257); +lean_dec(x_4); +x_302 = !lean_is_exclusive(x_301); +if (x_302 == 0) +{ +lean_object* x_303; uint8_t x_304; lean_object* x_305; +x_303 = lean_ctor_get(x_301, 0); +lean_dec(x_303); +x_304 = 1; +x_305 = lean_box(x_304); +lean_ctor_set(x_301, 0, x_305); +return x_301; +} +else +{ +lean_object* x_306; uint8_t x_307; lean_object* x_308; lean_object* x_309; +x_306 = lean_ctor_get(x_301, 1); +lean_inc(x_306); +lean_dec(x_301); +x_307 = 1; +x_308 = lean_box(x_307); +x_309 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_309, 0, x_308); +lean_ctor_set(x_309, 1, x_306); +return x_309; +} +} +} +else +{ +lean_object* x_310; uint8_t x_311; +lean_dec(x_278); +lean_dec(x_1); +x_310 = lean_st_ref_set(x_4, x_254, x_257); +lean_dec(x_4); +x_311 = !lean_is_exclusive(x_310); +if (x_311 == 0) +{ +lean_object* x_312; uint8_t x_313; lean_object* x_314; +x_312 = lean_ctor_get(x_310, 0); +lean_dec(x_312); +x_313 = 1; +x_314 = lean_box(x_313); +lean_ctor_set(x_310, 0, x_314); +return x_310; +} +else +{ +lean_object* x_315; uint8_t x_316; lean_object* x_317; lean_object* x_318; +x_315 = lean_ctor_get(x_310, 1); +lean_inc(x_315); +lean_dec(x_310); +x_316 = 1; +x_317 = lean_box(x_316); +x_318 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_318, 0, x_317); +lean_ctor_set(x_318, 1, x_315); +return x_318; +} +} +} +else +{ +lean_object* x_319; lean_object* x_320; lean_object* x_321; uint64_t x_322; uint64_t x_323; uint64_t x_324; uint64_t x_325; uint64_t x_326; uint64_t x_327; uint64_t x_328; size_t x_329; size_t x_330; size_t x_331; size_t x_332; size_t x_333; lean_object* x_334; uint8_t x_335; +x_319 = lean_ctor_get(x_256, 0); +x_320 = lean_ctor_get(x_256, 1); +lean_inc(x_320); +lean_inc(x_319); +lean_dec(x_256); +x_321 = lean_array_get_size(x_320); +x_322 = l_Lean_Name_hash___override(x_1); +x_323 = 32; +x_324 = lean_uint64_shift_right(x_322, x_323); +x_325 = lean_uint64_xor(x_322, x_324); +x_326 = 16; +x_327 = lean_uint64_shift_right(x_325, x_326); +x_328 = lean_uint64_xor(x_325, x_327); +x_329 = lean_uint64_to_usize(x_328); +x_330 = lean_usize_of_nat(x_321); +lean_dec(x_321); +x_331 = 1; +x_332 = lean_usize_sub(x_330, x_331); +x_333 = lean_usize_land(x_329, x_332); +x_334 = lean_array_uget(x_320, x_333); +x_335 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_334); +if (x_335 == 0) +{ +lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; uint8_t x_346; +x_336 = lean_unsigned_to_nat(1u); +x_337 = lean_nat_add(x_319, x_336); +lean_dec(x_319); +x_338 = lean_box(0); +x_339 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_339, 0, x_1); +lean_ctor_set(x_339, 1, x_338); +lean_ctor_set(x_339, 2, x_334); +x_340 = lean_array_uset(x_320, x_333, x_339); +x_341 = lean_unsigned_to_nat(4u); +x_342 = lean_nat_mul(x_337, x_341); +x_343 = lean_unsigned_to_nat(3u); +x_344 = lean_nat_div(x_342, x_343); +lean_dec(x_342); +x_345 = lean_array_get_size(x_340); +x_346 = lean_nat_dec_le(x_344, x_345); +lean_dec(x_345); +lean_dec(x_344); +if (x_346 == 0) +{ +lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; lean_object* x_353; lean_object* x_354; +x_347 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_340); +x_348 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_348, 0, x_337); +lean_ctor_set(x_348, 1, x_347); +lean_ctor_set(x_255, 1, x_348); +x_349 = lean_st_ref_set(x_4, x_254, x_257); +lean_dec(x_4); +x_350 = lean_ctor_get(x_349, 1); +lean_inc(x_350); +if (lean_is_exclusive(x_349)) { + lean_ctor_release(x_349, 0); + lean_ctor_release(x_349, 1); + x_351 = x_349; +} else { + lean_dec_ref(x_349); + x_351 = lean_box(0); +} +x_352 = 1; +x_353 = lean_box(x_352); +if (lean_is_scalar(x_351)) { + x_354 = lean_alloc_ctor(0, 2, 0); +} else { + x_354 = x_351; +} +lean_ctor_set(x_354, 0, x_353); +lean_ctor_set(x_354, 1, x_350); +return x_354; +} +else +{ +lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; lean_object* x_360; lean_object* x_361; +x_355 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_355, 0, x_337); +lean_ctor_set(x_355, 1, x_340); +lean_ctor_set(x_255, 1, x_355); +x_356 = lean_st_ref_set(x_4, x_254, x_257); +lean_dec(x_4); +x_357 = lean_ctor_get(x_356, 1); +lean_inc(x_357); +if (lean_is_exclusive(x_356)) { + lean_ctor_release(x_356, 0); + lean_ctor_release(x_356, 1); + x_358 = x_356; +} else { + lean_dec_ref(x_356); + x_358 = lean_box(0); +} +x_359 = 1; +x_360 = lean_box(x_359); +if (lean_is_scalar(x_358)) { + x_361 = lean_alloc_ctor(0, 2, 0); +} else { + x_361 = x_358; +} +lean_ctor_set(x_361, 0, x_360); +lean_ctor_set(x_361, 1, x_357); +return x_361; +} +} +else +{ +lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; uint8_t x_366; lean_object* x_367; lean_object* x_368; +lean_dec(x_334); +lean_dec(x_1); +x_362 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_362, 0, x_319); +lean_ctor_set(x_362, 1, x_320); +lean_ctor_set(x_255, 1, x_362); +x_363 = lean_st_ref_set(x_4, x_254, x_257); +lean_dec(x_4); +x_364 = lean_ctor_get(x_363, 1); +lean_inc(x_364); +if (lean_is_exclusive(x_363)) { + lean_ctor_release(x_363, 0); + lean_ctor_release(x_363, 1); + x_365 = x_363; +} else { + lean_dec_ref(x_363); + x_365 = lean_box(0); +} +x_366 = 1; +x_367 = lean_box(x_366); +if (lean_is_scalar(x_365)) { + x_368 = lean_alloc_ctor(0, 2, 0); +} else { + x_368 = x_365; +} +lean_ctor_set(x_368, 0, x_367); +lean_ctor_set(x_368, 1, x_364); +return x_368; +} +} +} +else +{ +lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; uint64_t x_375; uint64_t x_376; uint64_t x_377; uint64_t x_378; uint64_t x_379; uint64_t x_380; uint64_t x_381; size_t x_382; size_t x_383; size_t x_384; size_t x_385; size_t x_386; lean_object* x_387; uint8_t x_388; +x_369 = lean_ctor_get(x_255, 0); +x_370 = lean_ctor_get(x_255, 2); +lean_inc(x_370); +lean_inc(x_369); +lean_dec(x_255); +x_371 = lean_ctor_get(x_256, 0); +lean_inc(x_371); +x_372 = lean_ctor_get(x_256, 1); +lean_inc(x_372); +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_373 = x_256; +} else { + lean_dec_ref(x_256); + x_373 = lean_box(0); +} +x_374 = lean_array_get_size(x_372); +x_375 = l_Lean_Name_hash___override(x_1); +x_376 = 32; +x_377 = lean_uint64_shift_right(x_375, x_376); +x_378 = lean_uint64_xor(x_375, x_377); +x_379 = 16; +x_380 = lean_uint64_shift_right(x_378, x_379); +x_381 = lean_uint64_xor(x_378, x_380); +x_382 = lean_uint64_to_usize(x_381); +x_383 = lean_usize_of_nat(x_374); +lean_dec(x_374); +x_384 = 1; +x_385 = lean_usize_sub(x_383, x_384); +x_386 = lean_usize_land(x_382, x_385); +x_387 = lean_array_uget(x_372, x_386); +x_388 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_387); +if (x_388 == 0) +{ +lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; uint8_t x_399; +x_389 = lean_unsigned_to_nat(1u); +x_390 = lean_nat_add(x_371, x_389); +lean_dec(x_371); +x_391 = lean_box(0); +x_392 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_392, 0, x_1); +lean_ctor_set(x_392, 1, x_391); +lean_ctor_set(x_392, 2, x_387); +x_393 = lean_array_uset(x_372, x_386, x_392); +x_394 = lean_unsigned_to_nat(4u); +x_395 = lean_nat_mul(x_390, x_394); +x_396 = lean_unsigned_to_nat(3u); +x_397 = lean_nat_div(x_395, x_396); +lean_dec(x_395); +x_398 = lean_array_get_size(x_393); +x_399 = lean_nat_dec_le(x_397, x_398); +lean_dec(x_398); +lean_dec(x_397); +if (x_399 == 0) +{ +lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; uint8_t x_406; lean_object* x_407; lean_object* x_408; +x_400 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_393); +if (lean_is_scalar(x_373)) { + x_401 = lean_alloc_ctor(0, 2, 0); +} else { + x_401 = x_373; +} +lean_ctor_set(x_401, 0, x_390); +lean_ctor_set(x_401, 1, x_400); +x_402 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_402, 0, x_369); +lean_ctor_set(x_402, 1, x_401); +lean_ctor_set(x_402, 2, x_370); +lean_ctor_set(x_254, 1, x_402); +x_403 = lean_st_ref_set(x_4, x_254, x_257); +lean_dec(x_4); +x_404 = lean_ctor_get(x_403, 1); +lean_inc(x_404); +if (lean_is_exclusive(x_403)) { + lean_ctor_release(x_403, 0); + lean_ctor_release(x_403, 1); + x_405 = x_403; +} else { + lean_dec_ref(x_403); + x_405 = lean_box(0); +} +x_406 = 1; +x_407 = lean_box(x_406); +if (lean_is_scalar(x_405)) { + x_408 = lean_alloc_ctor(0, 2, 0); +} else { + x_408 = x_405; +} +lean_ctor_set(x_408, 0, x_407); +lean_ctor_set(x_408, 1, x_404); +return x_408; +} +else +{ +lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; lean_object* x_415; lean_object* x_416; +if (lean_is_scalar(x_373)) { + x_409 = lean_alloc_ctor(0, 2, 0); +} else { + x_409 = x_373; +} +lean_ctor_set(x_409, 0, x_390); +lean_ctor_set(x_409, 1, x_393); +x_410 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_410, 0, x_369); +lean_ctor_set(x_410, 1, x_409); +lean_ctor_set(x_410, 2, x_370); +lean_ctor_set(x_254, 1, x_410); +x_411 = lean_st_ref_set(x_4, x_254, x_257); +lean_dec(x_4); +x_412 = lean_ctor_get(x_411, 1); +lean_inc(x_412); +if (lean_is_exclusive(x_411)) { + lean_ctor_release(x_411, 0); + lean_ctor_release(x_411, 1); + x_413 = x_411; +} else { + lean_dec_ref(x_411); + x_413 = lean_box(0); +} +x_414 = 1; +x_415 = lean_box(x_414); +if (lean_is_scalar(x_413)) { + x_416 = lean_alloc_ctor(0, 2, 0); +} else { + x_416 = x_413; +} +lean_ctor_set(x_416, 0, x_415); +lean_ctor_set(x_416, 1, x_412); +return x_416; +} +} +else +{ +lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; uint8_t x_422; lean_object* x_423; lean_object* x_424; +lean_dec(x_387); +lean_dec(x_1); +if (lean_is_scalar(x_373)) { + x_417 = lean_alloc_ctor(0, 2, 0); +} else { + x_417 = x_373; +} +lean_ctor_set(x_417, 0, x_371); +lean_ctor_set(x_417, 1, x_372); +x_418 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_418, 0, x_369); +lean_ctor_set(x_418, 1, x_417); +lean_ctor_set(x_418, 2, x_370); +lean_ctor_set(x_254, 1, x_418); +x_419 = lean_st_ref_set(x_4, x_254, x_257); +lean_dec(x_4); +x_420 = lean_ctor_get(x_419, 1); +lean_inc(x_420); +if (lean_is_exclusive(x_419)) { + lean_ctor_release(x_419, 0); + lean_ctor_release(x_419, 1); + x_421 = x_419; +} else { + lean_dec_ref(x_419); + x_421 = lean_box(0); +} +x_422 = 1; +x_423 = lean_box(x_422); +if (lean_is_scalar(x_421)) { + x_424 = lean_alloc_ctor(0, 2, 0); +} else { + x_424 = x_421; +} +lean_ctor_set(x_424, 0, x_423); +lean_ctor_set(x_424, 1, x_420); +return x_424; +} +} +} +else +{ +lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; uint64_t x_433; uint64_t x_434; uint64_t x_435; uint64_t x_436; uint64_t x_437; uint64_t x_438; uint64_t x_439; size_t x_440; size_t x_441; size_t x_442; size_t x_443; size_t x_444; lean_object* x_445; uint8_t x_446; +x_425 = lean_ctor_get(x_254, 0); +lean_inc(x_425); +lean_dec(x_254); +x_426 = lean_ctor_get(x_255, 0); +lean_inc(x_426); +x_427 = lean_ctor_get(x_255, 2); +lean_inc(x_427); +if (lean_is_exclusive(x_255)) { + lean_ctor_release(x_255, 0); + lean_ctor_release(x_255, 1); + lean_ctor_release(x_255, 2); + x_428 = x_255; +} else { + lean_dec_ref(x_255); + x_428 = lean_box(0); +} +x_429 = lean_ctor_get(x_256, 0); +lean_inc(x_429); +x_430 = lean_ctor_get(x_256, 1); +lean_inc(x_430); +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_431 = x_256; +} else { + lean_dec_ref(x_256); + x_431 = lean_box(0); +} +x_432 = lean_array_get_size(x_430); +x_433 = l_Lean_Name_hash___override(x_1); +x_434 = 32; +x_435 = lean_uint64_shift_right(x_433, x_434); +x_436 = lean_uint64_xor(x_433, x_435); +x_437 = 16; +x_438 = lean_uint64_shift_right(x_436, x_437); +x_439 = lean_uint64_xor(x_436, x_438); +x_440 = lean_uint64_to_usize(x_439); +x_441 = lean_usize_of_nat(x_432); +lean_dec(x_432); +x_442 = 1; +x_443 = lean_usize_sub(x_441, x_442); +x_444 = lean_usize_land(x_440, x_443); +x_445 = lean_array_uget(x_430, x_444); +x_446 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_445); +if (x_446 == 0) +{ +lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; uint8_t x_457; +x_447 = lean_unsigned_to_nat(1u); +x_448 = lean_nat_add(x_429, x_447); +lean_dec(x_429); +x_449 = lean_box(0); +x_450 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_450, 0, x_1); +lean_ctor_set(x_450, 1, x_449); +lean_ctor_set(x_450, 2, x_445); +x_451 = lean_array_uset(x_430, x_444, x_450); +x_452 = lean_unsigned_to_nat(4u); +x_453 = lean_nat_mul(x_448, x_452); +x_454 = lean_unsigned_to_nat(3u); +x_455 = lean_nat_div(x_453, x_454); +lean_dec(x_453); +x_456 = lean_array_get_size(x_451); +x_457 = lean_nat_dec_le(x_455, x_456); +lean_dec(x_456); +lean_dec(x_455); +if (x_457 == 0) +{ +lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; uint8_t x_465; lean_object* x_466; lean_object* x_467; +x_458 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_451); +if (lean_is_scalar(x_431)) { + x_459 = lean_alloc_ctor(0, 2, 0); +} else { + x_459 = x_431; +} +lean_ctor_set(x_459, 0, x_448); +lean_ctor_set(x_459, 1, x_458); +if (lean_is_scalar(x_428)) { + x_460 = lean_alloc_ctor(0, 3, 0); +} else { + x_460 = x_428; +} +lean_ctor_set(x_460, 0, x_426); +lean_ctor_set(x_460, 1, x_459); +lean_ctor_set(x_460, 2, x_427); +x_461 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_461, 0, x_425); +lean_ctor_set(x_461, 1, x_460); +x_462 = lean_st_ref_set(x_4, x_461, x_257); +lean_dec(x_4); +x_463 = lean_ctor_get(x_462, 1); +lean_inc(x_463); +if (lean_is_exclusive(x_462)) { + lean_ctor_release(x_462, 0); + lean_ctor_release(x_462, 1); + x_464 = x_462; +} else { + lean_dec_ref(x_462); + x_464 = lean_box(0); +} +x_465 = 1; +x_466 = lean_box(x_465); +if (lean_is_scalar(x_464)) { + x_467 = lean_alloc_ctor(0, 2, 0); +} else { + x_467 = x_464; +} +lean_ctor_set(x_467, 0, x_466); +lean_ctor_set(x_467, 1, x_463); +return x_467; +} +else +{ +lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; uint8_t x_474; lean_object* x_475; lean_object* x_476; +if (lean_is_scalar(x_431)) { + x_468 = lean_alloc_ctor(0, 2, 0); +} else { + x_468 = x_431; +} +lean_ctor_set(x_468, 0, x_448); +lean_ctor_set(x_468, 1, x_451); +if (lean_is_scalar(x_428)) { + x_469 = lean_alloc_ctor(0, 3, 0); +} else { + x_469 = x_428; +} +lean_ctor_set(x_469, 0, x_426); +lean_ctor_set(x_469, 1, x_468); +lean_ctor_set(x_469, 2, x_427); +x_470 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_470, 0, x_425); +lean_ctor_set(x_470, 1, x_469); +x_471 = lean_st_ref_set(x_4, x_470, x_257); +lean_dec(x_4); +x_472 = lean_ctor_get(x_471, 1); +lean_inc(x_472); +if (lean_is_exclusive(x_471)) { + lean_ctor_release(x_471, 0); + lean_ctor_release(x_471, 1); + x_473 = x_471; +} else { + lean_dec_ref(x_471); + x_473 = lean_box(0); +} +x_474 = 1; +x_475 = lean_box(x_474); +if (lean_is_scalar(x_473)) { + x_476 = lean_alloc_ctor(0, 2, 0); +} else { + x_476 = x_473; +} +lean_ctor_set(x_476, 0, x_475); +lean_ctor_set(x_476, 1, x_472); +return x_476; +} +} +else +{ +lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; uint8_t x_483; lean_object* x_484; lean_object* x_485; +lean_dec(x_445); +lean_dec(x_1); +if (lean_is_scalar(x_431)) { + x_477 = lean_alloc_ctor(0, 2, 0); +} else { + x_477 = x_431; +} +lean_ctor_set(x_477, 0, x_429); +lean_ctor_set(x_477, 1, x_430); +if (lean_is_scalar(x_428)) { + x_478 = lean_alloc_ctor(0, 3, 0); +} else { + x_478 = x_428; +} +lean_ctor_set(x_478, 0, x_426); +lean_ctor_set(x_478, 1, x_477); +lean_ctor_set(x_478, 2, x_427); +x_479 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_479, 0, x_425); +lean_ctor_set(x_479, 1, x_478); +x_480 = lean_st_ref_set(x_4, x_479, x_257); +lean_dec(x_4); +x_481 = lean_ctor_get(x_480, 1); +lean_inc(x_481); +if (lean_is_exclusive(x_480)) { + lean_ctor_release(x_480, 0); + lean_ctor_release(x_480, 1); + x_482 = x_480; +} else { + lean_dec_ref(x_480); + x_482 = lean_box(0); +} +x_483 = 1; +x_484 = lean_box(x_483); +if (lean_is_scalar(x_482)) { + x_485 = lean_alloc_ctor(0, 2, 0); +} else { + x_485 = x_482; +} +lean_ctor_set(x_485, 0, x_484); +lean_ctor_set(x_485, 1, x_481); +return x_485; +} +} +} +} +else +{ +uint8_t x_486; +lean_dec(x_4); +lean_dec(x_1); +x_486 = !lean_is_exclusive(x_15); +if (x_486 == 0) +{ +return x_15; +} +else +{ +lean_object* x_487; lean_object* x_488; lean_object* x_489; +x_487 = lean_ctor_get(x_15, 0); +x_488 = lean_ctor_get(x_15, 1); +lean_inc(x_488); +lean_inc(x_487); +lean_dec(x_15); +x_489 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_489, 0, x_487); +lean_ctor_set(x_489, 1, x_488); +return x_489; +} +} +} +else +{ +lean_object* x_490; +lean_inc(x_1); +x_490 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +if (lean_obj_tag(x_490) == 0) +{ +lean_object* x_491; uint8_t x_492; +x_491 = lean_ctor_get(x_490, 0); +lean_inc(x_491); +x_492 = lean_ctor_get_uint8(x_491, sizeof(void*)*6); +if (x_492 == 0) +{ +lean_object* x_493; lean_object* x_494; lean_object* x_495; +x_493 = lean_ctor_get(x_490, 1); +lean_inc(x_493); +lean_dec(x_490); +x_494 = lean_box(0); +x_495 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__3(x_491, x_1, x_494, x_3, x_4, x_5, x_6, x_7, x_8, x_493); +lean_dec(x_491); +return x_495; +} +else +{ +lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; +lean_dec(x_491); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +x_496 = lean_ctor_get(x_490, 1); +lean_inc(x_496); +lean_dec(x_490); +x_497 = lean_st_ref_take(x_4, x_496); +x_498 = lean_ctor_get(x_497, 0); +lean_inc(x_498); +x_499 = lean_ctor_get(x_498, 1); +lean_inc(x_499); +x_500 = lean_ctor_get(x_499, 2); +lean_inc(x_500); +x_501 = lean_ctor_get(x_497, 1); +lean_inc(x_501); +lean_dec(x_497); +x_502 = !lean_is_exclusive(x_498); +if (x_502 == 0) +{ +lean_object* x_503; uint8_t x_504; +x_503 = lean_ctor_get(x_498, 1); +lean_dec(x_503); +x_504 = !lean_is_exclusive(x_499); +if (x_504 == 0) +{ +lean_object* x_505; uint8_t x_506; +x_505 = lean_ctor_get(x_499, 2); +lean_dec(x_505); +x_506 = !lean_is_exclusive(x_500); +if (x_506 == 0) +{ +lean_object* x_507; lean_object* x_508; lean_object* x_509; uint64_t x_510; uint64_t x_511; uint64_t x_512; uint64_t x_513; uint64_t x_514; uint64_t x_515; uint64_t x_516; size_t x_517; size_t x_518; size_t x_519; size_t x_520; size_t x_521; lean_object* x_522; uint8_t x_523; +x_507 = lean_ctor_get(x_500, 0); +x_508 = lean_ctor_get(x_500, 1); +x_509 = lean_array_get_size(x_508); +x_510 = l_Lean_Name_hash___override(x_1); +x_511 = 32; +x_512 = lean_uint64_shift_right(x_510, x_511); +x_513 = lean_uint64_xor(x_510, x_512); +x_514 = 16; +x_515 = lean_uint64_shift_right(x_513, x_514); +x_516 = lean_uint64_xor(x_513, x_515); +x_517 = lean_uint64_to_usize(x_516); +x_518 = lean_usize_of_nat(x_509); +lean_dec(x_509); +x_519 = 1; +x_520 = lean_usize_sub(x_518, x_519); +x_521 = lean_usize_land(x_517, x_520); +x_522 = lean_array_uget(x_508, x_521); +x_523 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_522); +if (x_523 == 0) +{ +lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; uint8_t x_534; +x_524 = lean_unsigned_to_nat(1u); +x_525 = lean_nat_add(x_507, x_524); +lean_dec(x_507); +x_526 = lean_box(0); +x_527 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_527, 0, x_1); +lean_ctor_set(x_527, 1, x_526); +lean_ctor_set(x_527, 2, x_522); +x_528 = lean_array_uset(x_508, x_521, x_527); +x_529 = lean_unsigned_to_nat(4u); +x_530 = lean_nat_mul(x_525, x_529); +x_531 = lean_unsigned_to_nat(3u); +x_532 = lean_nat_div(x_530, x_531); +lean_dec(x_530); +x_533 = lean_array_get_size(x_528); +x_534 = lean_nat_dec_le(x_532, x_533); +lean_dec(x_533); +lean_dec(x_532); +if (x_534 == 0) +{ +lean_object* x_535; lean_object* x_536; uint8_t x_537; +x_535 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_528); +lean_ctor_set(x_500, 1, x_535); +lean_ctor_set(x_500, 0, x_525); +x_536 = lean_st_ref_set(x_4, x_498, x_501); +lean_dec(x_4); +x_537 = !lean_is_exclusive(x_536); +if (x_537 == 0) +{ +lean_object* x_538; uint8_t x_539; lean_object* x_540; +x_538 = lean_ctor_get(x_536, 0); +lean_dec(x_538); +x_539 = 0; +x_540 = lean_box(x_539); +lean_ctor_set(x_536, 0, x_540); +return x_536; +} +else +{ +lean_object* x_541; uint8_t x_542; lean_object* x_543; lean_object* x_544; +x_541 = lean_ctor_get(x_536, 1); +lean_inc(x_541); +lean_dec(x_536); +x_542 = 0; +x_543 = lean_box(x_542); +x_544 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_544, 0, x_543); +lean_ctor_set(x_544, 1, x_541); +return x_544; +} +} +else +{ +lean_object* x_545; uint8_t x_546; +lean_ctor_set(x_500, 1, x_528); +lean_ctor_set(x_500, 0, x_525); +x_545 = lean_st_ref_set(x_4, x_498, x_501); +lean_dec(x_4); +x_546 = !lean_is_exclusive(x_545); +if (x_546 == 0) +{ +lean_object* x_547; uint8_t x_548; lean_object* x_549; +x_547 = lean_ctor_get(x_545, 0); +lean_dec(x_547); +x_548 = 0; +x_549 = lean_box(x_548); +lean_ctor_set(x_545, 0, x_549); +return x_545; +} +else +{ +lean_object* x_550; uint8_t x_551; lean_object* x_552; lean_object* x_553; +x_550 = lean_ctor_get(x_545, 1); +lean_inc(x_550); +lean_dec(x_545); +x_551 = 0; +x_552 = lean_box(x_551); +x_553 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_553, 0, x_552); +lean_ctor_set(x_553, 1, x_550); +return x_553; +} +} +} +else +{ +lean_object* x_554; uint8_t x_555; +lean_dec(x_522); +lean_dec(x_1); +x_554 = lean_st_ref_set(x_4, x_498, x_501); +lean_dec(x_4); +x_555 = !lean_is_exclusive(x_554); +if (x_555 == 0) +{ +lean_object* x_556; uint8_t x_557; lean_object* x_558; +x_556 = lean_ctor_get(x_554, 0); +lean_dec(x_556); +x_557 = 0; +x_558 = lean_box(x_557); +lean_ctor_set(x_554, 0, x_558); +return x_554; +} +else +{ +lean_object* x_559; uint8_t x_560; lean_object* x_561; lean_object* x_562; +x_559 = lean_ctor_get(x_554, 1); +lean_inc(x_559); +lean_dec(x_554); +x_560 = 0; +x_561 = lean_box(x_560); +x_562 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_562, 0, x_561); +lean_ctor_set(x_562, 1, x_559); +return x_562; +} +} +} +else +{ +lean_object* x_563; lean_object* x_564; lean_object* x_565; uint64_t x_566; uint64_t x_567; uint64_t x_568; uint64_t x_569; uint64_t x_570; uint64_t x_571; uint64_t x_572; size_t x_573; size_t x_574; size_t x_575; size_t x_576; size_t x_577; lean_object* x_578; uint8_t x_579; +x_563 = lean_ctor_get(x_500, 0); +x_564 = lean_ctor_get(x_500, 1); +lean_inc(x_564); +lean_inc(x_563); +lean_dec(x_500); +x_565 = lean_array_get_size(x_564); +x_566 = l_Lean_Name_hash___override(x_1); +x_567 = 32; +x_568 = lean_uint64_shift_right(x_566, x_567); +x_569 = lean_uint64_xor(x_566, x_568); +x_570 = 16; +x_571 = lean_uint64_shift_right(x_569, x_570); +x_572 = lean_uint64_xor(x_569, x_571); +x_573 = lean_uint64_to_usize(x_572); +x_574 = lean_usize_of_nat(x_565); +lean_dec(x_565); +x_575 = 1; +x_576 = lean_usize_sub(x_574, x_575); +x_577 = lean_usize_land(x_573, x_576); +x_578 = lean_array_uget(x_564, x_577); +x_579 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_578); +if (x_579 == 0) +{ +lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; uint8_t x_590; +x_580 = lean_unsigned_to_nat(1u); +x_581 = lean_nat_add(x_563, x_580); +lean_dec(x_563); +x_582 = lean_box(0); +x_583 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_583, 0, x_1); +lean_ctor_set(x_583, 1, x_582); +lean_ctor_set(x_583, 2, x_578); +x_584 = lean_array_uset(x_564, x_577, x_583); +x_585 = lean_unsigned_to_nat(4u); +x_586 = lean_nat_mul(x_581, x_585); +x_587 = lean_unsigned_to_nat(3u); +x_588 = lean_nat_div(x_586, x_587); +lean_dec(x_586); +x_589 = lean_array_get_size(x_584); +x_590 = lean_nat_dec_le(x_588, x_589); +lean_dec(x_589); +lean_dec(x_588); +if (x_590 == 0) +{ +lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; uint8_t x_596; lean_object* x_597; lean_object* x_598; +x_591 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_584); +x_592 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_592, 0, x_581); +lean_ctor_set(x_592, 1, x_591); +lean_ctor_set(x_499, 2, x_592); +x_593 = lean_st_ref_set(x_4, x_498, x_501); +lean_dec(x_4); +x_594 = lean_ctor_get(x_593, 1); +lean_inc(x_594); +if (lean_is_exclusive(x_593)) { + lean_ctor_release(x_593, 0); + lean_ctor_release(x_593, 1); + x_595 = x_593; +} else { + lean_dec_ref(x_593); + x_595 = lean_box(0); +} +x_596 = 0; +x_597 = lean_box(x_596); +if (lean_is_scalar(x_595)) { + x_598 = lean_alloc_ctor(0, 2, 0); +} else { + x_598 = x_595; +} +lean_ctor_set(x_598, 0, x_597); +lean_ctor_set(x_598, 1, x_594); +return x_598; +} +else +{ +lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; uint8_t x_603; lean_object* x_604; lean_object* x_605; +x_599 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_599, 0, x_581); +lean_ctor_set(x_599, 1, x_584); +lean_ctor_set(x_499, 2, x_599); +x_600 = lean_st_ref_set(x_4, x_498, x_501); +lean_dec(x_4); +x_601 = lean_ctor_get(x_600, 1); +lean_inc(x_601); +if (lean_is_exclusive(x_600)) { + lean_ctor_release(x_600, 0); + lean_ctor_release(x_600, 1); + x_602 = x_600; +} else { + lean_dec_ref(x_600); + x_602 = lean_box(0); +} +x_603 = 0; +x_604 = lean_box(x_603); +if (lean_is_scalar(x_602)) { + x_605 = lean_alloc_ctor(0, 2, 0); +} else { + x_605 = x_602; +} +lean_ctor_set(x_605, 0, x_604); +lean_ctor_set(x_605, 1, x_601); +return x_605; +} +} +else +{ +lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; uint8_t x_610; lean_object* x_611; lean_object* x_612; +lean_dec(x_578); +lean_dec(x_1); +x_606 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_606, 0, x_563); +lean_ctor_set(x_606, 1, x_564); +lean_ctor_set(x_499, 2, x_606); +x_607 = lean_st_ref_set(x_4, x_498, x_501); +lean_dec(x_4); +x_608 = lean_ctor_get(x_607, 1); +lean_inc(x_608); +if (lean_is_exclusive(x_607)) { + lean_ctor_release(x_607, 0); + lean_ctor_release(x_607, 1); + x_609 = x_607; +} else { + lean_dec_ref(x_607); + x_609 = lean_box(0); +} +x_610 = 0; +x_611 = lean_box(x_610); +if (lean_is_scalar(x_609)) { + x_612 = lean_alloc_ctor(0, 2, 0); +} else { + x_612 = x_609; +} +lean_ctor_set(x_612, 0, x_611); +lean_ctor_set(x_612, 1, x_608); +return x_612; +} +} +} +else +{ +lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; uint64_t x_619; uint64_t x_620; uint64_t x_621; uint64_t x_622; uint64_t x_623; uint64_t x_624; uint64_t x_625; size_t x_626; size_t x_627; size_t x_628; size_t x_629; size_t x_630; lean_object* x_631; uint8_t x_632; +x_613 = lean_ctor_get(x_499, 0); +x_614 = lean_ctor_get(x_499, 1); +lean_inc(x_614); +lean_inc(x_613); +lean_dec(x_499); +x_615 = lean_ctor_get(x_500, 0); +lean_inc(x_615); +x_616 = lean_ctor_get(x_500, 1); +lean_inc(x_616); +if (lean_is_exclusive(x_500)) { + lean_ctor_release(x_500, 0); + lean_ctor_release(x_500, 1); + x_617 = x_500; +} else { + lean_dec_ref(x_500); + x_617 = lean_box(0); +} +x_618 = lean_array_get_size(x_616); +x_619 = l_Lean_Name_hash___override(x_1); +x_620 = 32; +x_621 = lean_uint64_shift_right(x_619, x_620); +x_622 = lean_uint64_xor(x_619, x_621); +x_623 = 16; +x_624 = lean_uint64_shift_right(x_622, x_623); +x_625 = lean_uint64_xor(x_622, x_624); +x_626 = lean_uint64_to_usize(x_625); +x_627 = lean_usize_of_nat(x_618); +lean_dec(x_618); +x_628 = 1; +x_629 = lean_usize_sub(x_627, x_628); +x_630 = lean_usize_land(x_626, x_629); +x_631 = lean_array_uget(x_616, x_630); +x_632 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_631); +if (x_632 == 0) +{ +lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; uint8_t x_643; +x_633 = lean_unsigned_to_nat(1u); +x_634 = lean_nat_add(x_615, x_633); +lean_dec(x_615); +x_635 = lean_box(0); +x_636 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_636, 0, x_1); +lean_ctor_set(x_636, 1, x_635); +lean_ctor_set(x_636, 2, x_631); +x_637 = lean_array_uset(x_616, x_630, x_636); +x_638 = lean_unsigned_to_nat(4u); +x_639 = lean_nat_mul(x_634, x_638); +x_640 = lean_unsigned_to_nat(3u); +x_641 = lean_nat_div(x_639, x_640); +lean_dec(x_639); +x_642 = lean_array_get_size(x_637); +x_643 = lean_nat_dec_le(x_641, x_642); +lean_dec(x_642); +lean_dec(x_641); +if (x_643 == 0) +{ +lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; uint8_t x_650; lean_object* x_651; lean_object* x_652; +x_644 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_637); +if (lean_is_scalar(x_617)) { + x_645 = lean_alloc_ctor(0, 2, 0); +} else { + x_645 = x_617; +} +lean_ctor_set(x_645, 0, x_634); +lean_ctor_set(x_645, 1, x_644); +x_646 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_646, 0, x_613); +lean_ctor_set(x_646, 1, x_614); +lean_ctor_set(x_646, 2, x_645); +lean_ctor_set(x_498, 1, x_646); +x_647 = lean_st_ref_set(x_4, x_498, x_501); +lean_dec(x_4); +x_648 = lean_ctor_get(x_647, 1); +lean_inc(x_648); +if (lean_is_exclusive(x_647)) { + lean_ctor_release(x_647, 0); + lean_ctor_release(x_647, 1); + x_649 = x_647; +} else { + lean_dec_ref(x_647); + x_649 = lean_box(0); +} +x_650 = 0; +x_651 = lean_box(x_650); +if (lean_is_scalar(x_649)) { + x_652 = lean_alloc_ctor(0, 2, 0); +} else { + x_652 = x_649; +} +lean_ctor_set(x_652, 0, x_651); +lean_ctor_set(x_652, 1, x_648); +return x_652; +} +else +{ +lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; uint8_t x_658; lean_object* x_659; lean_object* x_660; +if (lean_is_scalar(x_617)) { + x_653 = lean_alloc_ctor(0, 2, 0); +} else { + x_653 = x_617; +} +lean_ctor_set(x_653, 0, x_634); +lean_ctor_set(x_653, 1, x_637); +x_654 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_654, 0, x_613); +lean_ctor_set(x_654, 1, x_614); +lean_ctor_set(x_654, 2, x_653); +lean_ctor_set(x_498, 1, x_654); +x_655 = lean_st_ref_set(x_4, x_498, x_501); +lean_dec(x_4); +x_656 = lean_ctor_get(x_655, 1); +lean_inc(x_656); +if (lean_is_exclusive(x_655)) { + lean_ctor_release(x_655, 0); + lean_ctor_release(x_655, 1); + x_657 = x_655; +} else { + lean_dec_ref(x_655); + x_657 = lean_box(0); +} +x_658 = 0; +x_659 = lean_box(x_658); +if (lean_is_scalar(x_657)) { + x_660 = lean_alloc_ctor(0, 2, 0); +} else { + x_660 = x_657; +} +lean_ctor_set(x_660, 0, x_659); +lean_ctor_set(x_660, 1, x_656); +return x_660; +} +} +else +{ +lean_object* x_661; lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; uint8_t x_666; lean_object* x_667; lean_object* x_668; +lean_dec(x_631); +lean_dec(x_1); +if (lean_is_scalar(x_617)) { + x_661 = lean_alloc_ctor(0, 2, 0); +} else { + x_661 = x_617; +} +lean_ctor_set(x_661, 0, x_615); +lean_ctor_set(x_661, 1, x_616); +x_662 = lean_alloc_ctor(0, 3, 0); +lean_ctor_set(x_662, 0, x_613); +lean_ctor_set(x_662, 1, x_614); +lean_ctor_set(x_662, 2, x_661); +lean_ctor_set(x_498, 1, x_662); +x_663 = lean_st_ref_set(x_4, x_498, x_501); +lean_dec(x_4); +x_664 = lean_ctor_get(x_663, 1); +lean_inc(x_664); +if (lean_is_exclusive(x_663)) { + lean_ctor_release(x_663, 0); + lean_ctor_release(x_663, 1); + x_665 = x_663; +} else { + lean_dec_ref(x_663); + x_665 = lean_box(0); +} +x_666 = 0; +x_667 = lean_box(x_666); +if (lean_is_scalar(x_665)) { + x_668 = lean_alloc_ctor(0, 2, 0); +} else { + x_668 = x_665; +} +lean_ctor_set(x_668, 0, x_667); +lean_ctor_set(x_668, 1, x_664); +return x_668; +} +} +} +else +{ +lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; uint64_t x_677; uint64_t x_678; uint64_t x_679; uint64_t x_680; uint64_t x_681; uint64_t x_682; uint64_t x_683; size_t x_684; size_t x_685; size_t x_686; size_t x_687; size_t x_688; lean_object* x_689; uint8_t x_690; +x_669 = lean_ctor_get(x_498, 0); +lean_inc(x_669); +lean_dec(x_498); +x_670 = lean_ctor_get(x_499, 0); +lean_inc(x_670); +x_671 = lean_ctor_get(x_499, 1); +lean_inc(x_671); +if (lean_is_exclusive(x_499)) { + lean_ctor_release(x_499, 0); + lean_ctor_release(x_499, 1); + lean_ctor_release(x_499, 2); + x_672 = x_499; +} else { + lean_dec_ref(x_499); + x_672 = lean_box(0); +} +x_673 = lean_ctor_get(x_500, 0); +lean_inc(x_673); +x_674 = lean_ctor_get(x_500, 1); +lean_inc(x_674); +if (lean_is_exclusive(x_500)) { + lean_ctor_release(x_500, 0); + lean_ctor_release(x_500, 1); + x_675 = x_500; +} else { + lean_dec_ref(x_500); + x_675 = lean_box(0); +} +x_676 = lean_array_get_size(x_674); +x_677 = l_Lean_Name_hash___override(x_1); +x_678 = 32; +x_679 = lean_uint64_shift_right(x_677, x_678); +x_680 = lean_uint64_xor(x_677, x_679); +x_681 = 16; +x_682 = lean_uint64_shift_right(x_680, x_681); +x_683 = lean_uint64_xor(x_680, x_682); +x_684 = lean_uint64_to_usize(x_683); +x_685 = lean_usize_of_nat(x_676); +lean_dec(x_676); +x_686 = 1; +x_687 = lean_usize_sub(x_685, x_686); +x_688 = lean_usize_land(x_684, x_687); +x_689 = lean_array_uget(x_674, x_688); +x_690 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_689); +if (x_690 == 0) +{ +lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; uint8_t x_701; +x_691 = lean_unsigned_to_nat(1u); +x_692 = lean_nat_add(x_673, x_691); +lean_dec(x_673); +x_693 = lean_box(0); +x_694 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_694, 0, x_1); +lean_ctor_set(x_694, 1, x_693); +lean_ctor_set(x_694, 2, x_689); +x_695 = lean_array_uset(x_674, x_688, x_694); +x_696 = lean_unsigned_to_nat(4u); +x_697 = lean_nat_mul(x_692, x_696); +x_698 = lean_unsigned_to_nat(3u); +x_699 = lean_nat_div(x_697, x_698); +lean_dec(x_697); +x_700 = lean_array_get_size(x_695); +x_701 = lean_nat_dec_le(x_699, x_700); +lean_dec(x_700); +lean_dec(x_699); +if (x_701 == 0) +{ +lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; uint8_t x_709; lean_object* x_710; lean_object* x_711; +x_702 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_NameSSet_insert___spec__7(x_695); +if (lean_is_scalar(x_675)) { + x_703 = lean_alloc_ctor(0, 2, 0); +} else { + x_703 = x_675; +} +lean_ctor_set(x_703, 0, x_692); +lean_ctor_set(x_703, 1, x_702); +if (lean_is_scalar(x_672)) { + x_704 = lean_alloc_ctor(0, 3, 0); +} else { + x_704 = x_672; +} +lean_ctor_set(x_704, 0, x_670); +lean_ctor_set(x_704, 1, x_671); +lean_ctor_set(x_704, 2, x_703); +x_705 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_705, 0, x_669); +lean_ctor_set(x_705, 1, x_704); +x_706 = lean_st_ref_set(x_4, x_705, x_501); +lean_dec(x_4); +x_707 = lean_ctor_get(x_706, 1); +lean_inc(x_707); +if (lean_is_exclusive(x_706)) { + lean_ctor_release(x_706, 0); + lean_ctor_release(x_706, 1); + x_708 = x_706; +} else { + lean_dec_ref(x_706); + x_708 = lean_box(0); +} +x_709 = 0; +x_710 = lean_box(x_709); +if (lean_is_scalar(x_708)) { + x_711 = lean_alloc_ctor(0, 2, 0); +} else { + x_711 = x_708; +} +lean_ctor_set(x_711, 0, x_710); +lean_ctor_set(x_711, 1, x_707); +return x_711; +} +else +{ +lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; uint8_t x_718; lean_object* x_719; lean_object* x_720; +if (lean_is_scalar(x_675)) { + x_712 = lean_alloc_ctor(0, 2, 0); +} else { + x_712 = x_675; +} +lean_ctor_set(x_712, 0, x_692); +lean_ctor_set(x_712, 1, x_695); +if (lean_is_scalar(x_672)) { + x_713 = lean_alloc_ctor(0, 3, 0); +} else { + x_713 = x_672; +} +lean_ctor_set(x_713, 0, x_670); +lean_ctor_set(x_713, 1, x_671); +lean_ctor_set(x_713, 2, x_712); +x_714 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_714, 0, x_669); +lean_ctor_set(x_714, 1, x_713); +x_715 = lean_st_ref_set(x_4, x_714, x_501); +lean_dec(x_4); +x_716 = lean_ctor_get(x_715, 1); +lean_inc(x_716); +if (lean_is_exclusive(x_715)) { + lean_ctor_release(x_715, 0); + lean_ctor_release(x_715, 1); + x_717 = x_715; +} else { + lean_dec_ref(x_715); + x_717 = lean_box(0); +} +x_718 = 0; +x_719 = lean_box(x_718); +if (lean_is_scalar(x_717)) { + x_720 = lean_alloc_ctor(0, 2, 0); +} else { + x_720 = x_717; +} +lean_ctor_set(x_720, 0, x_719); +lean_ctor_set(x_720, 1, x_716); +return x_720; +} +} +else +{ +lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; uint8_t x_727; lean_object* x_728; lean_object* x_729; +lean_dec(x_689); +lean_dec(x_1); +if (lean_is_scalar(x_675)) { + x_721 = lean_alloc_ctor(0, 2, 0); +} else { + x_721 = x_675; +} +lean_ctor_set(x_721, 0, x_673); +lean_ctor_set(x_721, 1, x_674); +if (lean_is_scalar(x_672)) { + x_722 = lean_alloc_ctor(0, 3, 0); +} else { + x_722 = x_672; +} +lean_ctor_set(x_722, 0, x_670); +lean_ctor_set(x_722, 1, x_671); +lean_ctor_set(x_722, 2, x_721); +x_723 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_723, 0, x_669); +lean_ctor_set(x_723, 1, x_722); +x_724 = lean_st_ref_set(x_4, x_723, x_501); +lean_dec(x_4); +x_725 = lean_ctor_get(x_724, 1); +lean_inc(x_725); +if (lean_is_exclusive(x_724)) { + lean_ctor_release(x_724, 0); + lean_ctor_release(x_724, 1); + x_726 = x_724; +} else { + lean_dec_ref(x_724); + x_726 = lean_box(0); +} +x_727 = 0; +x_728 = lean_box(x_727); +if (lean_is_scalar(x_726)) { + x_729 = lean_alloc_ctor(0, 2, 0); +} else { + x_729 = x_726; +} +lean_ctor_set(x_729, 0, x_728); +lean_ctor_set(x_729, 1, x_725); +return x_729; +} +} +} +} +else +{ +uint8_t x_730; +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_730 = !lean_is_exclusive(x_490); +if (x_730 == 0) +{ +return x_490; +} +else +{ +lean_object* x_731; lean_object* x_732; lean_object* x_733; +x_731 = lean_ctor_get(x_490, 0); +x_732 = lean_ctor_get(x_490, 1); +lean_inc(x_732); +lean_inc(x_731); +lean_dec(x_490); +x_733 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_733, 0, x_731); +lean_ctor_set(x_733, 1, x_732); +return x_733; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_9 = lean_st_ref_get(x_3, x_8); +x_10 = lean_ctor_get(x_9, 0); +lean_inc(x_10); +x_11 = lean_ctor_get(x_10, 1); +lean_inc(x_11); +lean_dec(x_10); +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +x_13 = !lean_is_exclusive(x_9); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; size_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; lean_object* x_30; uint8_t x_31; +x_14 = lean_ctor_get(x_9, 1); +x_15 = lean_ctor_get(x_9, 0); +lean_dec(x_15); +x_16 = lean_ctor_get(x_12, 1); +lean_inc(x_16); +lean_dec(x_12); +x_17 = lean_array_get_size(x_16); +x_18 = l_Lean_Name_hash___override(x_1); +x_19 = 32; +x_20 = lean_uint64_shift_right(x_18, x_19); +x_21 = lean_uint64_xor(x_18, x_20); +x_22 = 16; +x_23 = lean_uint64_shift_right(x_21, x_22); +x_24 = lean_uint64_xor(x_21, x_23); +x_25 = lean_uint64_to_usize(x_24); +x_26 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_27 = 1; +x_28 = lean_usize_sub(x_26, x_27); +x_29 = lean_usize_land(x_25, x_28); +x_30 = lean_array_uget(x_16, x_29); +lean_dec(x_16); +x_31 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_30); +lean_dec(x_30); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; size_t x_35; size_t x_36; size_t x_37; lean_object* x_38; uint8_t x_39; +x_32 = lean_ctor_get(x_11, 1); +lean_inc(x_32); +x_33 = lean_ctor_get(x_32, 1); +lean_inc(x_33); +lean_dec(x_32); +x_34 = lean_array_get_size(x_33); +x_35 = lean_usize_of_nat(x_34); +lean_dec(x_34); +x_36 = lean_usize_sub(x_35, x_27); +x_37 = lean_usize_land(x_25, x_36); +x_38 = lean_array_uget(x_33, x_37); +lean_dec(x_33); +x_39 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_38); +lean_dec(x_38); +if (x_39 == 0) +{ +lean_object* x_40; lean_object* x_41; lean_object* x_42; size_t x_43; size_t x_44; size_t x_45; lean_object* x_46; uint8_t x_47; +x_40 = lean_ctor_get(x_11, 2); +lean_inc(x_40); +lean_dec(x_11); +x_41 = lean_ctor_get(x_40, 1); +lean_inc(x_41); +lean_dec(x_40); +x_42 = lean_array_get_size(x_41); +x_43 = lean_usize_of_nat(x_42); +lean_dec(x_42); +x_44 = lean_usize_sub(x_43, x_27); +x_45 = lean_usize_land(x_25, x_44); +x_46 = lean_array_uget(x_41, x_45); +lean_dec(x_41); +x_47 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_46); +lean_dec(x_46); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +lean_free_object(x_9); +x_48 = lean_box(0); +x_49 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__4(x_1, x_48, x_2, x_3, x_4, x_5, x_6, x_7, x_14); +return x_49; +} +else +{ +uint8_t x_50; lean_object* x_51; +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_50 = 0; +x_51 = lean_box(x_50); +lean_ctor_set(x_9, 0, x_51); +return x_9; +} +} +else +{ +uint8_t x_52; lean_object* x_53; +lean_dec(x_11); +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_52 = 1; +x_53 = lean_box(x_52); +lean_ctor_set(x_9, 0, x_53); +return x_9; +} +} +else +{ +uint8_t x_54; lean_object* x_55; +lean_dec(x_11); +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_54 = 1; +x_55 = lean_box(x_54); +lean_ctor_set(x_9, 0, x_55); +return x_9; +} +} +else +{ +lean_object* x_56; lean_object* x_57; lean_object* x_58; uint64_t x_59; uint64_t x_60; uint64_t x_61; uint64_t x_62; uint64_t x_63; uint64_t x_64; uint64_t x_65; size_t x_66; size_t x_67; size_t x_68; size_t x_69; size_t x_70; lean_object* x_71; uint8_t x_72; +x_56 = lean_ctor_get(x_9, 1); +lean_inc(x_56); +lean_dec(x_9); +x_57 = lean_ctor_get(x_12, 1); +lean_inc(x_57); +lean_dec(x_12); +x_58 = lean_array_get_size(x_57); +x_59 = l_Lean_Name_hash___override(x_1); +x_60 = 32; +x_61 = lean_uint64_shift_right(x_59, x_60); +x_62 = lean_uint64_xor(x_59, x_61); +x_63 = 16; +x_64 = lean_uint64_shift_right(x_62, x_63); +x_65 = lean_uint64_xor(x_62, x_64); +x_66 = lean_uint64_to_usize(x_65); +x_67 = lean_usize_of_nat(x_58); +lean_dec(x_58); +x_68 = 1; +x_69 = lean_usize_sub(x_67, x_68); +x_70 = lean_usize_land(x_66, x_69); +x_71 = lean_array_uget(x_57, x_70); +lean_dec(x_57); +x_72 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_71); +lean_dec(x_71); +if (x_72 == 0) +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; size_t x_76; size_t x_77; size_t x_78; lean_object* x_79; uint8_t x_80; +x_73 = lean_ctor_get(x_11, 1); +lean_inc(x_73); +x_74 = lean_ctor_get(x_73, 1); +lean_inc(x_74); +lean_dec(x_73); +x_75 = lean_array_get_size(x_74); +x_76 = lean_usize_of_nat(x_75); +lean_dec(x_75); +x_77 = lean_usize_sub(x_76, x_68); +x_78 = lean_usize_land(x_66, x_77); +x_79 = lean_array_uget(x_74, x_78); +lean_dec(x_74); +x_80 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_79); +lean_dec(x_79); +if (x_80 == 0) +{ +lean_object* x_81; lean_object* x_82; lean_object* x_83; size_t x_84; size_t x_85; size_t x_86; lean_object* x_87; uint8_t x_88; +x_81 = lean_ctor_get(x_11, 2); +lean_inc(x_81); +lean_dec(x_11); +x_82 = lean_ctor_get(x_81, 1); +lean_inc(x_82); +lean_dec(x_81); +x_83 = lean_array_get_size(x_82); +x_84 = lean_usize_of_nat(x_83); +lean_dec(x_83); +x_85 = lean_usize_sub(x_84, x_68); +x_86 = lean_usize_land(x_66, x_85); +x_87 = lean_array_uget(x_82, x_86); +lean_dec(x_82); +x_88 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_NameSSet_insert___spec__6(x_1, x_87); +lean_dec(x_87); +if (x_88 == 0) +{ +lean_object* x_89; lean_object* x_90; +x_89 = lean_box(0); +x_90 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__4(x_1, x_89, x_2, x_3, x_4, x_5, x_6, x_7, x_56); +return x_90; +} +else +{ +uint8_t x_91; lean_object* x_92; lean_object* x_93; +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_91 = 0; +x_92 = lean_box(x_91); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_56); +return x_93; +} +} +else +{ +uint8_t x_94; lean_object* x_95; lean_object* x_96; +lean_dec(x_11); +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_94 = 1; +x_95 = lean_box(x_94); +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_56); +return x_96; +} +} +else +{ +uint8_t x_97; lean_object* x_98; lean_object* x_99; +lean_dec(x_11); +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_97 = 1; +x_98 = lean_box(x_97); +x_99 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_99, 0, x_98); +lean_ctor_set(x_99, 1, x_56); +return x_99; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___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_9; +x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_List_allM___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_List_allM___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_isEnumType___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_isEnumType___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_throwError___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, 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_9; +} +} +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__9___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: +{ +size_t x_12; size_t x_13; uint8_t x_14; lean_object* x_15; +x_12 = lean_unbox_usize(x_2); +lean_dec(x_2); +x_13 = lean_unbox_usize(x_3); +lean_dec(x_3); +x_14 = lean_unbox(x_4); +lean_dec(x_4); +x_15 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__9(x_1, x_12, x_13, x_14, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +lean_dec(x_1); +return x_15; +} +} +LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10___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) { +_start: +{ +uint8_t x_11; lean_object* x_12; +x_11 = lean_unbox(x_3); +lean_dec(x_3); +x_12 = l_Lean_Meta_forallTelescope___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__10___rarg(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___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) { +_start: +{ +uint8_t x_10; lean_object* x_11; +x_10 = lean_unbox(x_1); +lean_dec(x_1); +x_11 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__2(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_3); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, size_t x_6, size_t 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_7, x_6); +if (x_16 == 0) +{ +lean_object* x_17; +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_4); +x_17 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_17, 0, x_8); +lean_ctor_set(x_17, 1, x_15); +return x_17; +} +else +{ +lean_object* x_18; uint8_t x_19; +x_18 = lean_array_uget(x_5, x_7); +x_19 = !lean_is_exclusive(x_8); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_8, 1); +x_21 = lean_ctor_get(x_8, 0); +lean_dec(x_21); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_20); +x_22 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2(x_1, x_18, x_20, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_18); +if (lean_obj_tag(x_22) == 0) +{ +lean_object* x_23; +x_23 = lean_ctor_get(x_22, 0); +lean_inc(x_23); +if (lean_obj_tag(x_23) == 0) +{ +uint8_t x_24; +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_4); +x_24 = !lean_is_exclusive(x_22); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_22, 0); +lean_dec(x_25); +x_26 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_26, 0, x_23); +lean_ctor_set(x_8, 0, x_26); +lean_ctor_set(x_22, 0, x_8); +return x_22; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_22, 1); +lean_inc(x_27); +lean_dec(x_22); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_23); +lean_ctor_set(x_8, 0, x_28); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_8); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +else +{ +lean_object* x_30; lean_object* x_31; size_t x_32; size_t x_33; +lean_dec(x_20); +x_30 = lean_ctor_get(x_22, 1); +lean_inc(x_30); +lean_dec(x_22); +x_31 = lean_ctor_get(x_23, 0); +lean_inc(x_31); +lean_dec(x_23); +lean_inc(x_4); +lean_ctor_set(x_8, 1, x_31); +lean_ctor_set(x_8, 0, x_4); +x_32 = 1; +x_33 = lean_usize_add(x_7, x_32); +x_7 = x_33; +x_15 = x_30; +goto _start; +} +} +else +{ +uint8_t x_35; +lean_free_object(x_8); +lean_dec(x_20); +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_4); +x_35 = !lean_is_exclusive(x_22); +if (x_35 == 0) +{ +return x_22; +} +else +{ +lean_object* x_36; lean_object* x_37; lean_object* x_38; +x_36 = lean_ctor_get(x_22, 0); +x_37 = lean_ctor_get(x_22, 1); +lean_inc(x_37); +lean_inc(x_36); +lean_dec(x_22); +x_38 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_38, 0, x_36); +lean_ctor_set(x_38, 1, x_37); +return x_38; +} +} +} +else +{ +lean_object* x_39; lean_object* x_40; +x_39 = lean_ctor_get(x_8, 1); +lean_inc(x_39); +lean_dec(x_8); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_39); +x_40 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2(x_1, x_18, x_39, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_18); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +if (lean_obj_tag(x_41) == 0) +{ +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +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_4); +x_42 = lean_ctor_get(x_40, 1); +lean_inc(x_42); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_43 = x_40; +} else { + lean_dec_ref(x_40); + x_43 = lean_box(0); +} +x_44 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_44, 0, x_41); +x_45 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_39); +if (lean_is_scalar(x_43)) { + x_46 = lean_alloc_ctor(0, 2, 0); +} else { + x_46 = x_43; +} +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_42); +return x_46; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; size_t x_50; size_t x_51; +lean_dec(x_39); +x_47 = lean_ctor_get(x_40, 1); +lean_inc(x_47); +lean_dec(x_40); +x_48 = lean_ctor_get(x_41, 0); +lean_inc(x_48); +lean_dec(x_41); +lean_inc(x_4); +x_49 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_49, 0, x_4); +lean_ctor_set(x_49, 1, x_48); +x_50 = 1; +x_51 = lean_usize_add(x_7, x_50); +x_7 = x_51; +x_8 = x_49; +x_15 = x_47; +goto _start; +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; +lean_dec(x_39); +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_4); +x_53 = lean_ctor_get(x_40, 0); +lean_inc(x_53); +x_54 = lean_ctor_get(x_40, 1); +lean_inc(x_54); +if (lean_is_exclusive(x_40)) { + lean_ctor_release(x_40, 0); + lean_ctor_release(x_40, 1); + x_55 = x_40; +} else { + lean_dec_ref(x_40); + x_55 = lean_box(0); +} +if (lean_is_scalar(x_55)) { + x_56 = lean_alloc_ctor(1, 2, 0); +} else { + x_56 = x_55; +} +lean_ctor_set(x_56, 0, x_53); +lean_ctor_set(x_56, 1, x_54); +return x_56; +} +} +} +} +} +static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_box(0); +x_2 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_2, 0, x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_lt(x_6, x_5); +if (x_15 == 0) +{ +lean_object* x_16; +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_3); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_7); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_array_uget(x_4, x_6); +x_18 = lean_ctor_get(x_7, 1); +lean_inc(x_18); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_19 = x_7; +} else { + lean_dec_ref(x_7); + x_19 = lean_box(0); +} +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_28; +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_18); +x_20 = x_28; +x_21 = x_14; +goto block_27; +} +else +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_18); +x_29 = lean_ctor_get(x_17, 0); +lean_inc(x_29); +lean_dec(x_17); +x_30 = l_Lean_LocalDecl_isLet(x_29); +if (x_30 == 0) +{ +uint8_t x_31; +x_31 = l_Lean_LocalDecl_isImplementationDetail(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = l_Lean_LocalDecl_type(x_29); +lean_dec(x_29); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_33 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting(x_32, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1; +x_20 = x_35; +x_21 = x_34; +goto block_27; +} +else +{ +uint8_t x_36; +lean_dec(x_19); +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_3); +x_36 = !lean_is_exclusive(x_33); +if (x_36 == 0) +{ +return x_33; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_33, 0); +x_38 = lean_ctor_get(x_33, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_33); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +else +{ +lean_object* x_40; +lean_dec(x_29); +x_40 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1; +x_20 = x_40; +x_21 = x_14; +goto block_27; +} +} +else +{ +lean_object* x_41; +lean_dec(x_29); +x_41 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1; +x_20 = x_41; +x_21 = x_14; +goto block_27; +} +} +block_27: +{ +lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +lean_inc(x_3); +if (lean_is_scalar(x_19)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_19; +} +lean_ctor_set(x_23, 0, x_3); +lean_ctor_set(x_23, 1, x_22); +x_24 = 1; +x_25 = lean_usize_add(x_6, x_24); +x_6 = x_25; +x_7 = x_23; +x_14 = x_21; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_10, 0, x_1); +x_11 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_11, 0, x_10); +lean_ctor_set(x_11, 1, x_9); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; +x_11 = lean_ctor_get(x_2, 0); +x_12 = lean_box(0); +x_13 = lean_box(0); +x_14 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_14, 0, x_13); +lean_ctor_set(x_14, 1, x_3); +x_15 = lean_array_size(x_11); +x_16 = 0; +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_17 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__3(x_1, x_11, x_12, x_13, x_11, x_15, x_16, x_14, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_ctor_get(x_18, 1); +lean_inc(x_21); +lean_dec(x_18); +x_22 = lean_box(0); +x_23 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2___lambda__1(x_21, x_22, x_4, x_5, x_6, x_7, x_8, x_9, x_20); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_23; +} +else +{ +uint8_t x_24; +lean_dec(x_18); +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_24 = !lean_is_exclusive(x_17); +if (x_24 == 0) +{ +lean_object* x_25; lean_object* x_26; +x_25 = lean_ctor_get(x_17, 0); +lean_dec(x_25); +x_26 = lean_ctor_get(x_19, 0); +lean_inc(x_26); +lean_dec(x_19); +lean_ctor_set(x_17, 0, x_26); +return x_17; +} +else +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_17, 1); +lean_inc(x_27); +lean_dec(x_17); +x_28 = lean_ctor_get(x_19, 0); +lean_inc(x_28); +lean_dec(x_19); +x_29 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_29, 0, x_28); +lean_ctor_set(x_29, 1, x_27); +return x_29; +} +} +} +else +{ +uint8_t x_30; +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_30 = !lean_is_exclusive(x_17); +if (x_30 == 0) +{ +return x_17; +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_17, 0); +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_17); +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; lean_object* x_36; lean_object* x_37; size_t x_38; size_t x_39; lean_object* x_40; +x_34 = lean_ctor_get(x_2, 0); +x_35 = lean_box(0); +x_36 = lean_box(0); +x_37 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_37, 0, x_36); +lean_ctor_set(x_37, 1, x_3); +x_38 = lean_array_size(x_34); +x_39 = 0; +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_40 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4(x_34, x_35, x_36, x_34, x_38, x_39, x_37, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +if (lean_obj_tag(x_40) == 0) +{ +lean_object* x_41; lean_object* x_42; +x_41 = lean_ctor_get(x_40, 0); +lean_inc(x_41); +x_42 = lean_ctor_get(x_41, 0); +lean_inc(x_42); +if (lean_obj_tag(x_42) == 0) +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_43 = lean_ctor_get(x_40, 1); +lean_inc(x_43); +lean_dec(x_40); +x_44 = lean_ctor_get(x_41, 1); +lean_inc(x_44); +lean_dec(x_41); +x_45 = lean_box(0); +x_46 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2___lambda__1(x_44, x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_43); +lean_dec(x_9); +lean_dec(x_8); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +return x_46; +} +else +{ +uint8_t x_47; +lean_dec(x_41); +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_47 = !lean_is_exclusive(x_40); +if (x_47 == 0) +{ +lean_object* x_48; lean_object* x_49; +x_48 = lean_ctor_get(x_40, 0); +lean_dec(x_48); +x_49 = lean_ctor_get(x_42, 0); +lean_inc(x_49); +lean_dec(x_42); +lean_ctor_set(x_40, 0, x_49); +return x_40; +} +else +{ +lean_object* x_50; lean_object* x_51; lean_object* x_52; +x_50 = lean_ctor_get(x_40, 1); +lean_inc(x_50); +lean_dec(x_40); +x_51 = lean_ctor_get(x_42, 0); +lean_inc(x_51); +lean_dec(x_42); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_51); +lean_ctor_set(x_52, 1, x_50); +return x_52; +} +} +} +else +{ +uint8_t x_53; +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_53 = !lean_is_exclusive(x_40); +if (x_53 == 0) +{ +return x_40; +} +else +{ +lean_object* x_54; lean_object* x_55; lean_object* x_56; +x_54 = lean_ctor_get(x_40, 0); +x_55 = lean_ctor_get(x_40, 1); +lean_inc(x_55); +lean_inc(x_54); +lean_dec(x_40); +x_56 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_56, 0, x_54); +lean_ctor_set(x_56, 1, x_55); +return x_56; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +uint8_t x_15; +x_15 = lean_usize_dec_lt(x_6, x_5); +if (x_15 == 0) +{ +lean_object* x_16; +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_3); +x_16 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_16, 0, x_7); +lean_ctor_set(x_16, 1, x_14); +return x_16; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; +x_17 = lean_array_uget(x_4, x_6); +x_18 = lean_ctor_get(x_7, 1); +lean_inc(x_18); +if (lean_is_exclusive(x_7)) { + lean_ctor_release(x_7, 0); + lean_ctor_release(x_7, 1); + x_19 = x_7; +} else { + lean_dec_ref(x_7); + x_19 = lean_box(0); +} +if (lean_obj_tag(x_17) == 0) +{ +lean_object* x_28; +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_18); +x_20 = x_28; +x_21 = x_14; +goto block_27; +} +else +{ +lean_object* x_29; uint8_t x_30; +lean_dec(x_18); +x_29 = lean_ctor_get(x_17, 0); +lean_inc(x_29); +lean_dec(x_17); +x_30 = l_Lean_LocalDecl_isLet(x_29); +if (x_30 == 0) +{ +uint8_t x_31; +x_31 = l_Lean_LocalDecl_isImplementationDetail(x_29); +if (x_31 == 0) +{ +lean_object* x_32; lean_object* x_33; +x_32 = l_Lean_LocalDecl_type(x_29); +lean_dec(x_29); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +x_33 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting(x_32, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +if (lean_obj_tag(x_33) == 0) +{ +lean_object* x_34; lean_object* x_35; +x_34 = lean_ctor_get(x_33, 1); +lean_inc(x_34); +lean_dec(x_33); +x_35 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1; +x_20 = x_35; +x_21 = x_34; +goto block_27; +} +else +{ +uint8_t x_36; +lean_dec(x_19); +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_3); +x_36 = !lean_is_exclusive(x_33); +if (x_36 == 0) +{ +return x_33; +} +else +{ +lean_object* x_37; lean_object* x_38; lean_object* x_39; +x_37 = lean_ctor_get(x_33, 0); +x_38 = lean_ctor_get(x_33, 1); +lean_inc(x_38); +lean_inc(x_37); +lean_dec(x_33); +x_39 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_39, 0, x_37); +lean_ctor_set(x_39, 1, x_38); +return x_39; +} +} +} +else +{ +lean_object* x_40; +lean_dec(x_29); +x_40 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1; +x_20 = x_40; +x_21 = x_14; +goto block_27; +} +} +else +{ +lean_object* x_41; +lean_dec(x_29); +x_41 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1; +x_20 = x_41; +x_21 = x_14; +goto block_27; +} +} +block_27: +{ +lean_object* x_22; lean_object* x_23; size_t x_24; size_t x_25; +x_22 = lean_ctor_get(x_20, 0); +lean_inc(x_22); +lean_dec(x_20); +lean_inc(x_3); +if (lean_is_scalar(x_19)) { + x_23 = lean_alloc_ctor(0, 2, 0); +} else { + x_23 = x_19; +} +lean_ctor_set(x_23, 0, x_3); +lean_ctor_set(x_23, 1, x_22); +x_24 = 1; +x_25 = lean_usize_add(x_6, x_24); +x_6 = x_25; +x_7 = x_23; +x_14 = x_21; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__1___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) { +_start: +{ +lean_object* x_10; +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_1); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_ctor_get(x_1, 0); +lean_inc(x_8); +lean_inc(x_7); +lean_inc(x_6); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_3); +lean_inc(x_2); +x_11 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2(x_2, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_2); +if (lean_obj_tag(x_11) == 0) +{ +lean_object* x_12; +x_12 = lean_ctor_get(x_11, 0); +lean_inc(x_12); +if (lean_obj_tag(x_12) == 0) +{ +uint8_t x_13; +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_13 = !lean_is_exclusive(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 0); +lean_dec(x_14); +x_15 = lean_ctor_get(x_12, 0); +lean_inc(x_15); +lean_dec(x_12); +lean_ctor_set(x_11, 0, x_15); +return x_11; +} +else +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_11, 1); +lean_inc(x_16); +lean_dec(x_11); +x_17 = lean_ctor_get(x_12, 0); +lean_inc(x_17); +lean_dec(x_12); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_17); +lean_ctor_set(x_18, 1, x_16); +return x_18; +} +} +else +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; size_t x_25; size_t x_26; lean_object* x_27; +x_19 = lean_ctor_get(x_11, 1); +lean_inc(x_19); +lean_dec(x_11); +x_20 = lean_ctor_get(x_12, 0); +lean_inc(x_20); +lean_dec(x_12); +x_21 = lean_ctor_get(x_1, 1); +x_22 = lean_box(0); +x_23 = lean_box(0); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_20); +x_25 = lean_array_size(x_21); +x_26 = 0; +x_27 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__5(x_21, x_22, x_23, x_21, x_25, x_26, x_24, x_3, x_4, x_5, x_6, x_7, x_8, x_19); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +if (lean_obj_tag(x_29) == 0) +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_27); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; +x_31 = lean_ctor_get(x_27, 0); +lean_dec(x_31); +x_32 = lean_ctor_get(x_28, 1); +lean_inc(x_32); +lean_dec(x_28); +lean_ctor_set(x_27, 0, x_32); +return x_27; +} +else +{ +lean_object* x_33; lean_object* x_34; lean_object* x_35; +x_33 = lean_ctor_get(x_27, 1); +lean_inc(x_33); +lean_dec(x_27); +x_34 = lean_ctor_get(x_28, 1); +lean_inc(x_34); +lean_dec(x_28); +x_35 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +return x_35; +} +} +else +{ +uint8_t x_36; +lean_dec(x_28); +x_36 = !lean_is_exclusive(x_27); +if (x_36 == 0) +{ +lean_object* x_37; lean_object* x_38; +x_37 = lean_ctor_get(x_27, 0); +lean_dec(x_37); +x_38 = lean_ctor_get(x_29, 0); +lean_inc(x_38); +lean_dec(x_29); +lean_ctor_set(x_27, 0, x_38); +return x_27; +} +else +{ +lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_39 = lean_ctor_get(x_27, 1); +lean_inc(x_39); +lean_dec(x_27); +x_40 = lean_ctor_get(x_29, 0); +lean_inc(x_40); +lean_dec(x_29); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +return x_41; +} +} +} +else +{ +uint8_t x_42; +x_42 = !lean_is_exclusive(x_27); +if (x_42 == 0) +{ +return x_27; +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_27, 0); +x_44 = lean_ctor_get(x_27, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_27); +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; +} +} +} +} +else +{ +uint8_t x_46; +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_46 = !lean_is_exclusive(x_11); +if (x_46 == 0) +{ +return x_11; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_11, 0); +x_48 = lean_ctor_get(x_11, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_11); +x_49 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_49, 0, x_47); +lean_ctor_set(x_49, 1, x_48); +return x_49; +} +} +} +} +LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +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_10 = lean_apply_7(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_apply_8(x_2, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_12); +return x_13; +} +else +{ +uint8_t x_14; +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_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +return x_10; +} +else +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_15 = lean_ctor_get(x_10, 0); +x_16 = lean_ctor_get(x_10, 1); +lean_inc(x_16); +lean_inc(x_15); +lean_dec(x_10); +x_17 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_17, 0, x_15); +lean_ctor_set(x_17, 1, x_16); +return x_17; +} +} +} +} +LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__6(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__6___rarg), 9, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__7___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; lean_object* x_11; +x_10 = lean_apply_2(x_2, x_3, x_4); +x_11 = l___private_Lean_Meta_Basic_0__Lean_Meta_withMVarContextImp___rarg(x_1, x_10, x_5, x_6, x_7, x_8, x_9); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +return x_11; +} +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_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; +} +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; +} +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_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_EXPORT lean_object* l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__7(lean_object* x_1) { +_start: +{ +lean_object* x_2; +x_2 = lean_alloc_closure((void*)(l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__7___rarg), 9, 0); +return x_2; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_ctor_get(x_3, 2); +lean_inc(x_8); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___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) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_ctor_get(x_1, 1); +x_10 = lean_box(0); +x_11 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__1(x_9, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_11) == 0) +{ +uint8_t x_12; +x_12 = !lean_is_exclusive(x_11); +if (x_12 == 0) +{ +lean_object* x_13; +x_13 = lean_ctor_get(x_11, 0); +lean_dec(x_13); +lean_ctor_set(x_11, 0, x_10); +return x_11; +} +else +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_ctor_get(x_11, 1); +lean_inc(x_14); +lean_dec(x_11); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_10); +lean_ctor_set(x_15, 1, x_14); +return x_15; +} +} +else +{ +uint8_t x_16; +x_16 = !lean_is_exclusive(x_11); +if (x_16 == 0) +{ +return x_11; +} +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_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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___lambda__1___boxed), 7, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___lambda__2___boxed), 8, 0); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__1; +x_10 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__2; +x_11 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__6___rarg), 9, 2); +lean_closure_set(x_11, 0, x_9); +lean_closure_set(x_11, 1, x_10); +x_12 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__7___rarg(x_1, x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +return x_12; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, 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_6); +lean_dec(x_6); +x_17 = lean_unbox_usize(x_7); +lean_dec(x_7); +x_18 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__3(x_1, x_2, x_3, x_4, x_5, x_16, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +lean_dec(x_1); +return x_18; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_16 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_17 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4(x_1, x_2, x_3, x_4, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { +_start: +{ +lean_object* x_11; +x_11 = l_Lean_PersistentArray_forInAux___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10); +lean_dec(x_2); +lean_dec(x_1); +return x_11; +} +} +LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) { +_start: +{ +size_t x_15; size_t x_16; lean_object* x_17; +x_15 = lean_unbox_usize(x_5); +lean_dec(x_5); +x_16 = lean_unbox_usize(x_6); +lean_dec(x_6); +x_17 = l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__5(x_1, x_2, x_3, x_4, x_15, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +return x_17; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__1___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) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, 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_10; +} +} +LEAN_EXPORT lean_object* l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) { +_start: +{ +lean_object* x_10; +x_10 = l_Lean_PersistentArray_forIn___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9); +lean_dec(x_1); +return x_10; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, 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_8; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___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) { +_start: +{ +lean_object* x_9; +x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +lean_dec(x_1); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___elambda__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_9; +lean_inc(x_1); +x_9 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_9); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; +x_11 = lean_ctor_get(x_9, 0); +lean_dec(x_11); +x_12 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_12, 0, x_1); +lean_ctor_set(x_9, 0, x_12); +return x_9; +} +else +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; +x_13 = lean_ctor_get(x_9, 1); +lean_inc(x_13); +lean_dec(x_9); +x_14 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_14, 0, x_1); +x_15 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_15, 0, x_14); +lean_ctor_set(x_15, 1, x_13); +return x_15; +} +} +else +{ +uint8_t x_16; +lean_dec(x_1); +x_16 = !lean_is_exclusive(x_9); +if (x_16 == 0) +{ +return x_9; +} +else +{ +lean_object* x_17; lean_object* x_18; lean_object* x_19; +x_17 = lean_ctor_get(x_9, 0); +x_18 = lean_ctor_get(x_9, 1); +lean_inc(x_18); +lean_inc(x_17); +lean_dec(x_9); +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; +} +} +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("typeAnalysis", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___elambda__1), 8, 0); +return x_1; +} +} +static lean_object* _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__2; +x_2 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__3; +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_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__4; +return x_1; +} +} +lean_object* initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Basic(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_TypeAnalysis(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_Basic(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__3); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__4 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__4); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__5 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__5(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__5); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__6 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__6(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__6); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__7 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__7(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__7); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__8 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__8(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__8); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__9 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__9(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__9); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__10 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__10(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__10); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__11 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__11(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__11); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__12 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__12(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__12); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__13 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__13(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__13); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__14 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__14(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__14); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__15 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__15(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__15); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__16 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__16(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_typeInteresting___closed__16); +l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__1 = _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__1(); +lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__1); +l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__2 = _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__2(); +lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__2); +l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__3 = _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__3(); +lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__3); +l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__4 = _init_l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__4(); +lean_mark_persistent(l_Lean_getConstInfo___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__2___closed__4); +l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__1 = _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__1(); +lean_mark_persistent(l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__1); +l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__2 = _init_l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__2(); +lean_mark_persistent(l_Lean_getConstInfoInduct___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__5___closed__2); +l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__1 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__1(); +lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__1); +l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__2 = _init_l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__2(); +lean_mark_persistent(l_Lean_getConstInfoCtor___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___spec__7___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__3___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__3___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_constInteresting___lambda__3___closed__1); +l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1(); +lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___spec__4___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass_checkContext___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__1 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__1(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__1); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__2 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__2(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__2); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__3 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__3(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__3); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__4 = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__4(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass___closed__4); +l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass = _init_l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass(); +lean_mark_persistent(l_Lean_Elab_Tactic_BVDecide_Frontend_Normalize_typeAnalysisPass); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta.c b/stage0/stdlib/Lean/Meta.c index 7bb2373fcc..333e4b0078 100644 --- a/stage0/stdlib/Lean/Meta.c +++ b/stage0/stdlib/Lean/Meta.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta -// Imports: Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DecLevel Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Sorry Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs Lean.Meta.ForEachExpr Lean.Meta.Transform Lean.Meta.PPGoal Lean.Meta.UnificationHint Lean.Meta.Inductive Lean.Meta.SizeOf Lean.Meta.IndPredBelow Lean.Meta.Coe Lean.Meta.CollectFVars Lean.Meta.GeneralizeVars Lean.Meta.Injective Lean.Meta.Structure Lean.Meta.Constructions Lean.Meta.CongrTheorems Lean.Meta.Eqns Lean.Meta.ExprLens Lean.Meta.ExprTraverse Lean.Meta.Eval Lean.Meta.CoeAttr Lean.Meta.Iterator Lean.Meta.LazyDiscrTree Lean.Meta.LitValues Lean.Meta.CheckTactic Lean.Meta.Canonicalizer Lean.Meta.Diagnostics +// Imports: Lean.Meta.Basic Lean.Meta.LevelDefEq Lean.Meta.WHNF Lean.Meta.InferType Lean.Meta.FunInfo Lean.Meta.ExprDefEq Lean.Meta.DecLevel Lean.Meta.DiscrTree Lean.Meta.Reduce Lean.Meta.Instances Lean.Meta.AbstractMVars Lean.Meta.SynthInstance Lean.Meta.AppBuilder Lean.Meta.Sorry Lean.Meta.Tactic Lean.Meta.KAbstract Lean.Meta.RecursorInfo Lean.Meta.GeneralizeTelescope Lean.Meta.Match Lean.Meta.ReduceEval Lean.Meta.Closure Lean.Meta.AbstractNestedProofs Lean.Meta.ForEachExpr Lean.Meta.Transform Lean.Meta.PPGoal Lean.Meta.UnificationHint Lean.Meta.Inductive Lean.Meta.SizeOf Lean.Meta.IndPredBelow Lean.Meta.Coe Lean.Meta.CollectFVars Lean.Meta.GeneralizeVars Lean.Meta.Injective Lean.Meta.Structure Lean.Meta.Constructions Lean.Meta.CongrTheorems Lean.Meta.Eqns Lean.Meta.ExprLens Lean.Meta.ExprTraverse Lean.Meta.Eval Lean.Meta.CoeAttr Lean.Meta.Iterator Lean.Meta.LazyDiscrTree Lean.Meta.LitValues Lean.Meta.CheckTactic Lean.Meta.Canonicalizer Lean.Meta.Diagnostics Lean.Meta.BinderNameHint #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -60,6 +60,7 @@ lean_object* initialize_Lean_Meta_LitValues(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_CheckTactic(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Canonicalizer(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Diagnostics(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_BinderNameHint(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta(uint8_t builtin, lean_object* w) { lean_object * res; @@ -206,6 +207,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Diagnostics(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_BinderNameHint(builtin, 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/BinderNameHint.c b/stage0/stdlib/Lean/Meta/BinderNameHint.c new file mode 100644 index 0000000000..8937db790a --- /dev/null +++ b/stage0/stdlib/Lean/Meta/BinderNameHint.c @@ -0,0 +1,7982 @@ +// Lean compiler output +// Module: Lean.Meta.BinderNameHint +// Imports: Lean.Util.FindExpr Lean.Meta.Basic Init.BinderNameHint +#include +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +#ifdef __cplusplus +extern "C" { +#endif +lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_resolveBinderNameHint_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_mk_empty_array_with_capacity(lean_object*); +static lean_object* l_Lean_Expr_resolveBinderNameHint___closed__1; +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_enterScope(lean_object*, lean_object*); +static lean_object* l_Lean_Expr_hasBinderNameHint___lambda__1___closed__1; +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__6; +size_t lean_uint64_to_usize(uint64_t); +lean_object* l_Lean_Core_instInhabitedCoreM___boxed(lean_object*, lean_object*, lean_object*); +uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); +lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__2; +lean_object* lean_mk_array(lean_object*, lean_object*); +uint8_t lean_usize_dec_eq(size_t, size_t); +lean_object* l_Lean_Expr_mdata___override(lean_object*, lean_object*); +lean_object* l_Lean_Expr_proj___override(lean_object*, lean_object*, lean_object*); +lean_object* lean_array_fget(lean_object*, lean_object*); +static lean_object* l_Lean_Expr_resolveBinderNameHint___closed__4; +LEAN_EXPORT lean_object* l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__3; +lean_object* l_Nat_nextPowerOfTwo_go(lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Expr_hasBinderNameHint___lambda__1___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_resolveBinderNameHint(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_appArg_x21(lean_object*); +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); +size_t lean_ptr_addr(lean_object*); +size_t lean_usize_of_nat(lean_object*); +static lean_object* l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__1; +LEAN_EXPORT lean_object* l_Lean_Expr_hasBinderNameHint___boxed(lean_object*); +lean_object* lean_st_ref_take(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Expr_hasBinderNameHint(lean_object*); +uint64_t lean_uint64_shift_right(uint64_t, uint64_t); +lean_object* lean_nat_div(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___spec__1(lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_resolveBinderNameHint_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_forallE___override(lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_outOfBounds___rarg(lean_object*); +lean_object* lean_st_ref_get(lean_object*, lean_object*); +lean_object* lean_array_pop(lean_object*); +static lean_object* l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__1; +lean_object* lean_st_mk_ref(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__2; +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__1; +static lean_object* l_Lean_Expr_resolveBinderNameHint_go___closed__3; +extern lean_object* l_Lean_instInhabitedExpr; +uint64_t l_Lean_Expr_hash(lean_object*); +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__4; +lean_object* l_Lean_Expr_letE___override(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Expr_appFn_x21(lean_object*); +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__1; +static lean_object* l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__2; +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__3; +static lean_object* l_Lean_Expr_resolveBinderNameHint_go___closed__1; +lean_object* l_StateT_instMonad___rarg(lean_object*); +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__1; +lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*); +uint8_t lean_nat_dec_lt(lean_object*, lean_object*); +static lean_object* l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___spec__1___closed__1; +static lean_object* l_Lean_Expr_resolveBinderNameHint_go___closed__2; +uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); +lean_object* lean_array_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(lean_object*); +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__3; +uint64_t lean_uint64_xor(uint64_t, uint64_t); +lean_object* lean_panic_fn(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_hasBinderNameHint___lambda__1___boxed(lean_object*); +lean_object* lean_nat_sub(lean_object*, lean_object*); +lean_object* lean_nat_mul(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(lean_object*, lean_object*); +lean_object* l_Array_back_x21___rarg(lean_object*, lean_object*); +extern lean_object* l_Lean_Core_instMonadCoreM; +size_t lean_usize_sub(size_t, size_t); +lean_object* lean_array_mk(lean_object*); +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__5; +static lean_object* l_Lean_Expr_hasBinderNameHint___closed__1; +extern lean_object* l_Lean_instInhabitedName; +lean_object* lean_array_uget(lean_object*, size_t); +lean_object* l_instInhabitedOfMonad___rarg(lean_object*, lean_object*); +lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l_Lean_Expr_hasBinderNameHint___lambda__1(lean_object*); +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__2; +lean_object* lean_string_append(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_Expr_resolveBinderNameHint_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_Expr_resolveBinderNameHint___closed__3; +static lean_object* l_Lean_Expr_resolveBinderNameHint_go___closed__4; +lean_object* l_Lean_Expr_headBeta(lean_object*); +lean_object* lean_array_get_size(lean_object*); +lean_object* lean_find_expr(lean_object*, lean_object*); +uint8_t lean_nat_dec_le(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__4; +lean_object* lean_nat_add(lean_object*, lean_object*); +lean_object* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1(lean_object*); +lean_object* lean_array_uset(lean_object*, size_t, lean_object*); +static lean_object* l_Lean_Expr_resolveBinderNameHint___closed__2; +lean_object* l_ReaderT_instMonad___rarg(lean_object*); +size_t lean_usize_land(size_t, size_t); +static lean_object* _init_l_Lean_Expr_hasBinderNameHint___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("binderNameHint", 14, 14); +return x_1; +} +} +static lean_object* _init_l_Lean_Expr_hasBinderNameHint___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_Expr_hasBinderNameHint___lambda__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT uint8_t l_Lean_Expr_hasBinderNameHint___lambda__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; uint8_t x_3; +x_2 = l_Lean_Expr_hasBinderNameHint___lambda__1___closed__2; +x_3 = l_Lean_Expr_isConstOf(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Expr_hasBinderNameHint___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Expr_hasBinderNameHint___lambda__1___boxed), 1, 0); +return x_1; +} +} +LEAN_EXPORT uint8_t l_Lean_Expr_hasBinderNameHint(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_Lean_Expr_hasBinderNameHint___closed__1; +x_3 = lean_find_expr(x_2, x_1); +if (lean_obj_tag(x_3) == 0) +{ +uint8_t x_4; +x_4 = 0; +return x_4; +} +else +{ +uint8_t x_5; +lean_dec(x_3); +x_5 = 1; +return x_5; +} +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_hasBinderNameHint___lambda__1___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_hasBinderNameHint___lambda__1(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_hasBinderNameHint___boxed(lean_object* x_1) { +_start: +{ +uint8_t x_2; lean_object* x_3; +x_2 = l_Lean_Expr_hasBinderNameHint(x_1); +lean_dec(x_1); +x_3 = lean_box(x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_enterScope(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_array_push(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = lean_unsigned_to_nat(0u); +x_2 = lean_mk_empty_array_with_capacity(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_Lean_instInhabitedName; +x_2 = l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__1; +x_3 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__2; +x_3 = lean_panic_fn(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("assertion violation: ", 21, 21); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("xs.size > 0\n ", 16, 16); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__1; +x_2 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__2; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Meta.BinderNameHint", 24, 24); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private.Lean.Meta.BinderNameHint.0.Lean.exitScope", 50, 50); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__6() { +_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_BinderNameHint_0__Lean_exitScope___closed__4; +x_2 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__5; +x_3 = lean_unsigned_to_nat(24u); +x_4 = lean_unsigned_to_nat(4u); +x_5 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__3; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; uint8_t x_4; +x_2 = lean_array_get_size(x_1); +x_3 = lean_unsigned_to_nat(0u); +x_4 = lean_nat_dec_lt(x_3, x_2); +lean_dec(x_2); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +lean_dec(x_1); +x_5 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__6; +x_6 = l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1(x_5); +return x_6; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_7 = l_Lean_instInhabitedName; +x_8 = l_Array_back_x21___rarg(x_7, x_1); +x_9 = lean_array_pop(x_1); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +} +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___spec__1(lean_object* x_1) { +_start: +{ +lean_object* x_2; lean_object* x_3; +x_2 = l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__1; +x_3 = lean_panic_fn(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("xs.size > bidx\n ", 19, 19); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__1; +x_2 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private.Lean.Meta.BinderNameHint.0.Lean.rememberName", 53, 53); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__4() { +_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_BinderNameHint_0__Lean_exitScope___closed__4; +x_2 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__3; +x_3 = lean_unsigned_to_nat(28u); +x_4 = lean_unsigned_to_nat(4u); +x_5 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__2; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; uint8_t x_5; +x_4 = lean_array_get_size(x_3); +x_5 = lean_nat_dec_lt(x_1, x_4); +if (x_5 == 0) +{ +lean_object* x_6; lean_object* x_7; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_6 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__4; +x_7 = l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___spec__1(x_6); +return x_7; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_8 = lean_nat_sub(x_4, x_1); +lean_dec(x_4); +x_9 = lean_unsigned_to_nat(1u); +x_10 = lean_nat_sub(x_8, x_9); +lean_dec(x_8); +x_11 = lean_array_set(x_3, x_10, x_2); +lean_dec(x_10); +return x_11; +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +lean_object* x_4; +x_4 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1, x_2, x_3); +lean_dec(x_1); +return x_4; +} +} +static lean_object* _init_l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l_Lean_Core_instInhabitedCoreM___boxed), 3, 1); +lean_closure_set(x_1, 0, lean_box(0)); +return x_1; +} +} +LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; +x_5 = l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___spec__1___closed__1; +x_6 = lean_panic_fn(x_5, x_1); +x_7 = lean_apply_3(x_6, x_2, x_3, x_4); +return x_7; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("_private.Lean.Meta.BinderNameHint.0.Lean.makeFresh", 50, 50); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__2() { +_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_BinderNameHint_0__Lean_exitScope___closed__4; +x_2 = l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__1; +x_3 = lean_unsigned_to_nat(32u); +x_4 = lean_unsigned_to_nat(4u); +x_5 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__2; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh(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; +x_6 = lean_array_get_size(x_2); +x_7 = lean_nat_dec_lt(x_1, x_6); +if (x_7 == 0) +{ +lean_object* x_8; lean_object* x_9; +lean_dec(x_6); +lean_dec(x_2); +x_8 = l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__2; +x_9 = l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___spec__1(x_8, x_3, x_4, x_5); +return x_9; +} +else +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_10 = lean_nat_sub(x_6, x_1); +x_11 = lean_unsigned_to_nat(1u); +x_12 = lean_nat_sub(x_10, x_11); +lean_dec(x_10); +x_13 = lean_nat_dec_lt(x_12, x_6); +lean_dec(x_6); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_14 = l_Lean_instInhabitedName; +x_15 = l_outOfBounds___rarg(x_14); +x_16 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_15, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +x_17 = !lean_is_exclusive(x_16); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; +x_18 = lean_ctor_get(x_16, 0); +x_19 = lean_array_set(x_2, x_12, x_18); +lean_dec(x_12); +lean_ctor_set(x_16, 0, x_19); +return x_16; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_20 = lean_ctor_get(x_16, 0); +x_21 = lean_ctor_get(x_16, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_16); +x_22 = lean_array_set(x_2, x_12, x_20); +lean_dec(x_12); +x_23 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_23, 0, x_22); +lean_ctor_set(x_23, 1, x_21); +return x_23; +} +} +else +{ +lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_24 = lean_array_fget(x_2, x_12); +x_25 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_24, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_array_set(x_2, x_12, x_27); +lean_dec(x_12); +lean_ctor_set(x_25, 0, x_28); +return x_25; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_29 = lean_ctor_get(x_25, 0); +x_30 = lean_ctor_get(x_25, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_25); +x_31 = lean_array_set(x_2, x_12, x_29); +lean_dec(x_12); +x_32 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_32, 0, x_31); +lean_ctor_set(x_32, 1, x_30); +return x_32; +} +} +} +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_1); +return x_6; +} +} +static lean_object* _init_l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_Lean_Core_instMonadCoreM; +x_2 = l_StateT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__1; +x_2 = l_ReaderT_instMonad___rarg(x_1); +return x_2; +} +} +static lean_object* _init_l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__2; +x_2 = l_Lean_instInhabitedExpr; +x_3 = l_instInhabitedOfMonad___rarg(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +x_7 = l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__3; +x_8 = lean_panic_fn(x_7, x_1); +x_9 = lean_apply_5(x_8, x_2, x_3, x_4, x_5, x_6); +return x_9; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_resolveBinderNameHint_go___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) { +_start: +{ +lean_object* x_8; lean_object* x_9; +x_8 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_8, 0, x_1); +lean_ctor_set(x_8, 1, x_4); +x_9 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_9, 0, x_8); +lean_ctor_set(x_9, 1, x_7); +return x_9; +} +} +static lean_object* _init_l_Lean_Expr_resolveBinderNameHint_go___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("xs.size > bidx\n ", 25, 25); +return x_1; +} +} +static lean_object* _init_l_Lean_Expr_resolveBinderNameHint_go___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__1; +x_2 = l_Lean_Expr_resolveBinderNameHint_go___closed__1; +x_3 = lean_string_append(x_1, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_Expr_resolveBinderNameHint_go___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("Lean.Expr.resolveBinderNameHint.go", 34, 34); +return x_1; +} +} +static lean_object* _init_l_Lean_Expr_resolveBinderNameHint_go___closed__4() { +_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_BinderNameHint_0__Lean_exitScope___closed__4; +x_2 = l_Lean_Expr_resolveBinderNameHint_go___closed__3; +x_3 = lean_unsigned_to_nat(70u); +x_4 = lean_unsigned_to_nat(10u); +x_5 = l_Lean_Expr_resolveBinderNameHint_go___closed__2; +x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_resolveBinderNameHint_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { +_start: +{ +lean_object* x_7; lean_object* x_8; lean_object* x_166; lean_object* x_330; uint8_t x_331; +x_330 = lean_st_ref_get(x_2, x_6); +x_331 = !lean_is_exclusive(x_330); +if (x_331 == 0) +{ +lean_object* x_332; uint8_t x_333; +x_332 = lean_ctor_get(x_330, 0); +x_333 = !lean_is_exclusive(x_332); +if (x_333 == 0) +{ +lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; uint64_t x_338; uint64_t x_339; uint64_t x_340; uint64_t x_341; uint64_t x_342; uint64_t x_343; uint64_t x_344; size_t x_345; size_t x_346; size_t x_347; size_t x_348; size_t x_349; lean_object* x_350; lean_object* x_351; +x_334 = lean_ctor_get(x_330, 1); +x_335 = lean_ctor_get(x_332, 1); +x_336 = lean_ctor_get(x_332, 0); +lean_dec(x_336); +x_337 = lean_array_get_size(x_335); +x_338 = l_Lean_Expr_hash(x_1); +x_339 = 32; +x_340 = lean_uint64_shift_right(x_338, x_339); +x_341 = lean_uint64_xor(x_338, x_340); +x_342 = 16; +x_343 = lean_uint64_shift_right(x_341, x_342); +x_344 = lean_uint64_xor(x_341, x_343); +x_345 = lean_uint64_to_usize(x_344); +x_346 = lean_usize_of_nat(x_337); +lean_dec(x_337); +x_347 = 1; +x_348 = lean_usize_sub(x_346, x_347); +x_349 = lean_usize_land(x_345, x_348); +x_350 = lean_array_uget(x_335, x_349); +lean_dec(x_335); +x_351 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_1, x_350); +lean_dec(x_350); +if (lean_obj_tag(x_351) == 0) +{ +lean_object* x_352; lean_object* x_353; uint8_t x_354; +lean_free_object(x_332); +lean_free_object(x_330); +x_352 = l_Lean_Expr_hasBinderNameHint___lambda__1___closed__2; +x_353 = lean_unsigned_to_nat(6u); +x_354 = l_Lean_Expr_isAppOfArity(x_1, x_352, x_353); +if (x_354 == 0) +{ +switch (lean_obj_tag(x_1)) { +case 5: +{ +lean_object* x_355; lean_object* x_356; lean_object* x_357; +x_355 = lean_ctor_get(x_1, 0); +lean_inc(x_355); +x_356 = lean_ctor_get(x_1, 1); +lean_inc(x_356); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_355); +x_357 = l_Lean_Expr_resolveBinderNameHint_go(x_355, x_2, x_3, x_4, x_5, x_334); +if (lean_obj_tag(x_357) == 0) +{ +lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; +x_358 = lean_ctor_get(x_357, 0); +lean_inc(x_358); +x_359 = lean_ctor_get(x_357, 1); +lean_inc(x_359); +lean_dec(x_357); +x_360 = lean_ctor_get(x_358, 0); +lean_inc(x_360); +x_361 = lean_ctor_get(x_358, 1); +lean_inc(x_361); +lean_dec(x_358); +lean_inc(x_2); +lean_inc(x_356); +x_362 = l_Lean_Expr_resolveBinderNameHint_go(x_356, x_2, x_361, x_4, x_5, x_359); +if (lean_obj_tag(x_362) == 0) +{ +lean_object* x_363; lean_object* x_364; uint8_t x_365; +x_363 = lean_ctor_get(x_362, 0); +lean_inc(x_363); +x_364 = lean_ctor_get(x_362, 1); +lean_inc(x_364); +lean_dec(x_362); +x_365 = !lean_is_exclusive(x_363); +if (x_365 == 0) +{ +lean_object* x_366; size_t x_367; size_t x_368; uint8_t x_369; +x_366 = lean_ctor_get(x_363, 0); +x_367 = lean_ptr_addr(x_355); +lean_dec(x_355); +x_368 = lean_ptr_addr(x_360); +x_369 = lean_usize_dec_eq(x_367, x_368); +if (x_369 == 0) +{ +lean_object* x_370; +lean_dec(x_356); +x_370 = l_Lean_Expr_app___override(x_360, x_366); +lean_ctor_set(x_363, 0, x_370); +x_7 = x_363; +x_8 = x_364; +goto block_165; +} +else +{ +size_t x_371; size_t x_372; uint8_t x_373; +x_371 = lean_ptr_addr(x_356); +lean_dec(x_356); +x_372 = lean_ptr_addr(x_366); +x_373 = lean_usize_dec_eq(x_371, x_372); +if (x_373 == 0) +{ +lean_object* x_374; +x_374 = l_Lean_Expr_app___override(x_360, x_366); +lean_ctor_set(x_363, 0, x_374); +x_7 = x_363; +x_8 = x_364; +goto block_165; +} +else +{ +lean_dec(x_366); +lean_dec(x_360); +lean_inc(x_1); +lean_ctor_set(x_363, 0, x_1); +x_7 = x_363; +x_8 = x_364; +goto block_165; +} +} +} +else +{ +lean_object* x_375; lean_object* x_376; size_t x_377; size_t x_378; uint8_t x_379; +x_375 = lean_ctor_get(x_363, 0); +x_376 = lean_ctor_get(x_363, 1); +lean_inc(x_376); +lean_inc(x_375); +lean_dec(x_363); +x_377 = lean_ptr_addr(x_355); +lean_dec(x_355); +x_378 = lean_ptr_addr(x_360); +x_379 = lean_usize_dec_eq(x_377, x_378); +if (x_379 == 0) +{ +lean_object* x_380; lean_object* x_381; +lean_dec(x_356); +x_380 = l_Lean_Expr_app___override(x_360, x_375); +x_381 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_381, 0, x_380); +lean_ctor_set(x_381, 1, x_376); +x_7 = x_381; +x_8 = x_364; +goto block_165; +} +else +{ +size_t x_382; size_t x_383; uint8_t x_384; +x_382 = lean_ptr_addr(x_356); +lean_dec(x_356); +x_383 = lean_ptr_addr(x_375); +x_384 = lean_usize_dec_eq(x_382, x_383); +if (x_384 == 0) +{ +lean_object* x_385; lean_object* x_386; +x_385 = l_Lean_Expr_app___override(x_360, x_375); +x_386 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_386, 0, x_385); +lean_ctor_set(x_386, 1, x_376); +x_7 = x_386; +x_8 = x_364; +goto block_165; +} +else +{ +lean_object* x_387; +lean_dec(x_375); +lean_dec(x_360); +lean_inc(x_1); +x_387 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_387, 0, x_1); +lean_ctor_set(x_387, 1, x_376); +x_7 = x_387; +x_8 = x_364; +goto block_165; +} +} +} +} +else +{ +uint8_t x_388; +lean_dec(x_360); +lean_dec(x_356); +lean_dec(x_355); +lean_dec(x_2); +lean_dec(x_1); +x_388 = !lean_is_exclusive(x_362); +if (x_388 == 0) +{ +return x_362; +} +else +{ +lean_object* x_389; lean_object* x_390; lean_object* x_391; +x_389 = lean_ctor_get(x_362, 0); +x_390 = lean_ctor_get(x_362, 1); +lean_inc(x_390); +lean_inc(x_389); +lean_dec(x_362); +x_391 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_391, 0, x_389); +lean_ctor_set(x_391, 1, x_390); +return x_391; +} +} +} +else +{ +uint8_t x_392; +lean_dec(x_356); +lean_dec(x_355); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_392 = !lean_is_exclusive(x_357); +if (x_392 == 0) +{ +return x_357; +} +else +{ +lean_object* x_393; lean_object* x_394; lean_object* x_395; +x_393 = lean_ctor_get(x_357, 0); +x_394 = lean_ctor_get(x_357, 1); +lean_inc(x_394); +lean_inc(x_393); +lean_dec(x_357); +x_395 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_395, 0, x_393); +lean_ctor_set(x_395, 1, x_394); +return x_395; +} +} +} +case 6: +{ +lean_object* x_396; lean_object* x_397; lean_object* x_398; uint8_t x_399; lean_object* x_400; +x_396 = lean_ctor_get(x_1, 0); +lean_inc(x_396); +x_397 = lean_ctor_get(x_1, 1); +lean_inc(x_397); +x_398 = lean_ctor_get(x_1, 2); +lean_inc(x_398); +x_399 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_400 = l_Lean_Expr_resolveBinderNameHint_go(x_397, x_2, x_3, x_4, x_5, x_334); +if (lean_obj_tag(x_400) == 0) +{ +lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; +x_401 = lean_ctor_get(x_400, 0); +lean_inc(x_401); +x_402 = lean_ctor_get(x_400, 1); +lean_inc(x_402); +lean_dec(x_400); +x_403 = lean_ctor_get(x_401, 0); +lean_inc(x_403); +x_404 = lean_ctor_get(x_401, 1); +lean_inc(x_404); +lean_dec(x_401); +x_405 = lean_array_push(x_404, x_396); +lean_inc(x_2); +x_406 = l_Lean_Expr_resolveBinderNameHint_go(x_398, x_2, x_405, x_4, x_5, x_402); +if (lean_obj_tag(x_406) == 0) +{ +lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; +x_407 = lean_ctor_get(x_406, 0); +lean_inc(x_407); +x_408 = lean_ctor_get(x_406, 1); +lean_inc(x_408); +lean_dec(x_406); +x_409 = lean_ctor_get(x_407, 0); +lean_inc(x_409); +x_410 = lean_ctor_get(x_407, 1); +lean_inc(x_410); +lean_dec(x_407); +x_411 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(x_410); +x_412 = !lean_is_exclusive(x_411); +if (x_412 == 0) +{ +lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; uint8_t x_418; +x_413 = lean_ctor_get(x_411, 0); +x_414 = l_Lean_Expr_lam___override(x_413, x_403, x_409, x_399); +x_415 = lean_st_ref_take(x_2, x_408); +x_416 = lean_ctor_get(x_415, 0); +lean_inc(x_416); +x_417 = lean_ctor_get(x_415, 1); +lean_inc(x_417); +lean_dec(x_415); +x_418 = !lean_is_exclusive(x_416); +if (x_418 == 0) +{ +lean_object* x_419; lean_object* x_420; lean_object* x_421; size_t x_422; size_t x_423; size_t x_424; lean_object* x_425; uint8_t x_426; +x_419 = lean_ctor_get(x_416, 0); +x_420 = lean_ctor_get(x_416, 1); +x_421 = lean_array_get_size(x_420); +x_422 = lean_usize_of_nat(x_421); +lean_dec(x_421); +x_423 = lean_usize_sub(x_422, x_347); +x_424 = lean_usize_land(x_345, x_423); +x_425 = lean_array_uget(x_420, x_424); +x_426 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_425); +if (x_426 == 0) +{ +lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; uint8_t x_436; +x_427 = lean_unsigned_to_nat(1u); +x_428 = lean_nat_add(x_419, x_427); +lean_dec(x_419); +lean_inc(x_414); +x_429 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_429, 0, x_1); +lean_ctor_set(x_429, 1, x_414); +lean_ctor_set(x_429, 2, x_425); +x_430 = lean_array_uset(x_420, x_424, x_429); +x_431 = lean_unsigned_to_nat(4u); +x_432 = lean_nat_mul(x_428, x_431); +x_433 = lean_unsigned_to_nat(3u); +x_434 = lean_nat_div(x_432, x_433); +lean_dec(x_432); +x_435 = lean_array_get_size(x_430); +x_436 = lean_nat_dec_le(x_434, x_435); +lean_dec(x_435); +lean_dec(x_434); +if (x_436 == 0) +{ +lean_object* x_437; lean_object* x_438; uint8_t x_439; +x_437 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_430); +lean_ctor_set(x_416, 1, x_437); +lean_ctor_set(x_416, 0, x_428); +x_438 = lean_st_ref_set(x_2, x_416, x_417); +lean_dec(x_2); +x_439 = !lean_is_exclusive(x_438); +if (x_439 == 0) +{ +lean_object* x_440; +x_440 = lean_ctor_get(x_438, 0); +lean_dec(x_440); +lean_ctor_set(x_411, 0, x_414); +lean_ctor_set(x_438, 0, x_411); +return x_438; +} +else +{ +lean_object* x_441; lean_object* x_442; +x_441 = lean_ctor_get(x_438, 1); +lean_inc(x_441); +lean_dec(x_438); +lean_ctor_set(x_411, 0, x_414); +x_442 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_442, 0, x_411); +lean_ctor_set(x_442, 1, x_441); +return x_442; +} +} +else +{ +lean_object* x_443; uint8_t x_444; +lean_ctor_set(x_416, 1, x_430); +lean_ctor_set(x_416, 0, x_428); +x_443 = lean_st_ref_set(x_2, x_416, x_417); +lean_dec(x_2); +x_444 = !lean_is_exclusive(x_443); +if (x_444 == 0) +{ +lean_object* x_445; +x_445 = lean_ctor_get(x_443, 0); +lean_dec(x_445); +lean_ctor_set(x_411, 0, x_414); +lean_ctor_set(x_443, 0, x_411); +return x_443; +} +else +{ +lean_object* x_446; lean_object* x_447; +x_446 = lean_ctor_get(x_443, 1); +lean_inc(x_446); +lean_dec(x_443); +lean_ctor_set(x_411, 0, x_414); +x_447 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_447, 0, x_411); +lean_ctor_set(x_447, 1, x_446); +return x_447; +} +} +} +else +{ +lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; uint8_t x_453; +x_448 = lean_box(0); +x_449 = lean_array_uset(x_420, x_424, x_448); +lean_inc(x_414); +x_450 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_414, x_425); +x_451 = lean_array_uset(x_449, x_424, x_450); +lean_ctor_set(x_416, 1, x_451); +x_452 = lean_st_ref_set(x_2, x_416, x_417); +lean_dec(x_2); +x_453 = !lean_is_exclusive(x_452); +if (x_453 == 0) +{ +lean_object* x_454; +x_454 = lean_ctor_get(x_452, 0); +lean_dec(x_454); +lean_ctor_set(x_411, 0, x_414); +lean_ctor_set(x_452, 0, x_411); +return x_452; +} +else +{ +lean_object* x_455; lean_object* x_456; +x_455 = lean_ctor_get(x_452, 1); +lean_inc(x_455); +lean_dec(x_452); +lean_ctor_set(x_411, 0, x_414); +x_456 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_456, 0, x_411); +lean_ctor_set(x_456, 1, x_455); +return x_456; +} +} +} +else +{ +lean_object* x_457; lean_object* x_458; lean_object* x_459; size_t x_460; size_t x_461; size_t x_462; lean_object* x_463; uint8_t x_464; +x_457 = lean_ctor_get(x_416, 0); +x_458 = lean_ctor_get(x_416, 1); +lean_inc(x_458); +lean_inc(x_457); +lean_dec(x_416); +x_459 = lean_array_get_size(x_458); +x_460 = lean_usize_of_nat(x_459); +lean_dec(x_459); +x_461 = lean_usize_sub(x_460, x_347); +x_462 = lean_usize_land(x_345, x_461); +x_463 = lean_array_uget(x_458, x_462); +x_464 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_463); +if (x_464 == 0) +{ +lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; uint8_t x_474; +x_465 = lean_unsigned_to_nat(1u); +x_466 = lean_nat_add(x_457, x_465); +lean_dec(x_457); +lean_inc(x_414); +x_467 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_467, 0, x_1); +lean_ctor_set(x_467, 1, x_414); +lean_ctor_set(x_467, 2, x_463); +x_468 = lean_array_uset(x_458, x_462, x_467); +x_469 = lean_unsigned_to_nat(4u); +x_470 = lean_nat_mul(x_466, x_469); +x_471 = lean_unsigned_to_nat(3u); +x_472 = lean_nat_div(x_470, x_471); +lean_dec(x_470); +x_473 = lean_array_get_size(x_468); +x_474 = lean_nat_dec_le(x_472, x_473); +lean_dec(x_473); +lean_dec(x_472); +if (x_474 == 0) +{ +lean_object* x_475; lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; +x_475 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_468); +x_476 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_476, 0, x_466); +lean_ctor_set(x_476, 1, x_475); +x_477 = lean_st_ref_set(x_2, x_476, x_417); +lean_dec(x_2); +x_478 = lean_ctor_get(x_477, 1); +lean_inc(x_478); +if (lean_is_exclusive(x_477)) { + lean_ctor_release(x_477, 0); + lean_ctor_release(x_477, 1); + x_479 = x_477; +} else { + lean_dec_ref(x_477); + x_479 = lean_box(0); +} +lean_ctor_set(x_411, 0, x_414); +if (lean_is_scalar(x_479)) { + x_480 = lean_alloc_ctor(0, 2, 0); +} else { + x_480 = x_479; +} +lean_ctor_set(x_480, 0, x_411); +lean_ctor_set(x_480, 1, x_478); +return x_480; +} +else +{ +lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; +x_481 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_481, 0, x_466); +lean_ctor_set(x_481, 1, x_468); +x_482 = lean_st_ref_set(x_2, x_481, x_417); +lean_dec(x_2); +x_483 = lean_ctor_get(x_482, 1); +lean_inc(x_483); +if (lean_is_exclusive(x_482)) { + lean_ctor_release(x_482, 0); + lean_ctor_release(x_482, 1); + x_484 = x_482; +} else { + lean_dec_ref(x_482); + x_484 = lean_box(0); +} +lean_ctor_set(x_411, 0, x_414); +if (lean_is_scalar(x_484)) { + x_485 = lean_alloc_ctor(0, 2, 0); +} else { + x_485 = x_484; +} +lean_ctor_set(x_485, 0, x_411); +lean_ctor_set(x_485, 1, x_483); +return x_485; +} +} +else +{ +lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; +x_486 = lean_box(0); +x_487 = lean_array_uset(x_458, x_462, x_486); +lean_inc(x_414); +x_488 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_414, x_463); +x_489 = lean_array_uset(x_487, x_462, x_488); +x_490 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_490, 0, x_457); +lean_ctor_set(x_490, 1, x_489); +x_491 = lean_st_ref_set(x_2, x_490, x_417); +lean_dec(x_2); +x_492 = lean_ctor_get(x_491, 1); +lean_inc(x_492); +if (lean_is_exclusive(x_491)) { + lean_ctor_release(x_491, 0); + lean_ctor_release(x_491, 1); + x_493 = x_491; +} else { + lean_dec_ref(x_491); + x_493 = lean_box(0); +} +lean_ctor_set(x_411, 0, x_414); +if (lean_is_scalar(x_493)) { + x_494 = lean_alloc_ctor(0, 2, 0); +} else { + x_494 = x_493; +} +lean_ctor_set(x_494, 0, x_411); +lean_ctor_set(x_494, 1, x_492); +return x_494; +} +} +} +else +{ +lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; size_t x_505; size_t x_506; size_t x_507; lean_object* x_508; uint8_t x_509; +x_495 = lean_ctor_get(x_411, 0); +x_496 = lean_ctor_get(x_411, 1); +lean_inc(x_496); +lean_inc(x_495); +lean_dec(x_411); +x_497 = l_Lean_Expr_lam___override(x_495, x_403, x_409, x_399); +x_498 = lean_st_ref_take(x_2, x_408); +x_499 = lean_ctor_get(x_498, 0); +lean_inc(x_499); +x_500 = lean_ctor_get(x_498, 1); +lean_inc(x_500); +lean_dec(x_498); +x_501 = lean_ctor_get(x_499, 0); +lean_inc(x_501); +x_502 = lean_ctor_get(x_499, 1); +lean_inc(x_502); +if (lean_is_exclusive(x_499)) { + lean_ctor_release(x_499, 0); + lean_ctor_release(x_499, 1); + x_503 = x_499; +} else { + lean_dec_ref(x_499); + x_503 = lean_box(0); +} +x_504 = lean_array_get_size(x_502); +x_505 = lean_usize_of_nat(x_504); +lean_dec(x_504); +x_506 = lean_usize_sub(x_505, x_347); +x_507 = lean_usize_land(x_345, x_506); +x_508 = lean_array_uget(x_502, x_507); +x_509 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_508); +if (x_509 == 0) +{ +lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; uint8_t x_519; +x_510 = lean_unsigned_to_nat(1u); +x_511 = lean_nat_add(x_501, x_510); +lean_dec(x_501); +lean_inc(x_497); +x_512 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_512, 0, x_1); +lean_ctor_set(x_512, 1, x_497); +lean_ctor_set(x_512, 2, x_508); +x_513 = lean_array_uset(x_502, x_507, x_512); +x_514 = lean_unsigned_to_nat(4u); +x_515 = lean_nat_mul(x_511, x_514); +x_516 = lean_unsigned_to_nat(3u); +x_517 = lean_nat_div(x_515, x_516); +lean_dec(x_515); +x_518 = lean_array_get_size(x_513); +x_519 = lean_nat_dec_le(x_517, x_518); +lean_dec(x_518); +lean_dec(x_517); +if (x_519 == 0) +{ +lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; +x_520 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_513); +if (lean_is_scalar(x_503)) { + x_521 = lean_alloc_ctor(0, 2, 0); +} else { + x_521 = x_503; +} +lean_ctor_set(x_521, 0, x_511); +lean_ctor_set(x_521, 1, x_520); +x_522 = lean_st_ref_set(x_2, x_521, x_500); +lean_dec(x_2); +x_523 = lean_ctor_get(x_522, 1); +lean_inc(x_523); +if (lean_is_exclusive(x_522)) { + lean_ctor_release(x_522, 0); + lean_ctor_release(x_522, 1); + x_524 = x_522; +} else { + lean_dec_ref(x_522); + x_524 = lean_box(0); +} +x_525 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_525, 0, x_497); +lean_ctor_set(x_525, 1, x_496); +if (lean_is_scalar(x_524)) { + x_526 = lean_alloc_ctor(0, 2, 0); +} else { + x_526 = x_524; +} +lean_ctor_set(x_526, 0, x_525); +lean_ctor_set(x_526, 1, x_523); +return x_526; +} +else +{ +lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; +if (lean_is_scalar(x_503)) { + x_527 = lean_alloc_ctor(0, 2, 0); +} else { + x_527 = x_503; +} +lean_ctor_set(x_527, 0, x_511); +lean_ctor_set(x_527, 1, x_513); +x_528 = lean_st_ref_set(x_2, x_527, x_500); +lean_dec(x_2); +x_529 = lean_ctor_get(x_528, 1); +lean_inc(x_529); +if (lean_is_exclusive(x_528)) { + lean_ctor_release(x_528, 0); + lean_ctor_release(x_528, 1); + x_530 = x_528; +} else { + lean_dec_ref(x_528); + x_530 = lean_box(0); +} +x_531 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_531, 0, x_497); +lean_ctor_set(x_531, 1, x_496); +if (lean_is_scalar(x_530)) { + x_532 = lean_alloc_ctor(0, 2, 0); +} else { + x_532 = x_530; +} +lean_ctor_set(x_532, 0, x_531); +lean_ctor_set(x_532, 1, x_529); +return x_532; +} +} +else +{ +lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; +x_533 = lean_box(0); +x_534 = lean_array_uset(x_502, x_507, x_533); +lean_inc(x_497); +x_535 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_497, x_508); +x_536 = lean_array_uset(x_534, x_507, x_535); +if (lean_is_scalar(x_503)) { + x_537 = lean_alloc_ctor(0, 2, 0); +} else { + x_537 = x_503; +} +lean_ctor_set(x_537, 0, x_501); +lean_ctor_set(x_537, 1, x_536); +x_538 = lean_st_ref_set(x_2, x_537, x_500); +lean_dec(x_2); +x_539 = lean_ctor_get(x_538, 1); +lean_inc(x_539); +if (lean_is_exclusive(x_538)) { + lean_ctor_release(x_538, 0); + lean_ctor_release(x_538, 1); + x_540 = x_538; +} else { + lean_dec_ref(x_538); + x_540 = lean_box(0); +} +x_541 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_541, 0, x_497); +lean_ctor_set(x_541, 1, x_496); +if (lean_is_scalar(x_540)) { + x_542 = lean_alloc_ctor(0, 2, 0); +} else { + x_542 = x_540; +} +lean_ctor_set(x_542, 0, x_541); +lean_ctor_set(x_542, 1, x_539); +return x_542; +} +} +} +else +{ +uint8_t x_543; +lean_dec(x_403); +lean_dec(x_2); +lean_dec(x_1); +x_543 = !lean_is_exclusive(x_406); +if (x_543 == 0) +{ +return x_406; +} +else +{ +lean_object* x_544; lean_object* x_545; lean_object* x_546; +x_544 = lean_ctor_get(x_406, 0); +x_545 = lean_ctor_get(x_406, 1); +lean_inc(x_545); +lean_inc(x_544); +lean_dec(x_406); +x_546 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_546, 0, x_544); +lean_ctor_set(x_546, 1, x_545); +return x_546; +} +} +} +else +{ +uint8_t x_547; +lean_dec(x_398); +lean_dec(x_396); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_547 = !lean_is_exclusive(x_400); +if (x_547 == 0) +{ +return x_400; +} +else +{ +lean_object* x_548; lean_object* x_549; lean_object* x_550; +x_548 = lean_ctor_get(x_400, 0); +x_549 = lean_ctor_get(x_400, 1); +lean_inc(x_549); +lean_inc(x_548); +lean_dec(x_400); +x_550 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_550, 0, x_548); +lean_ctor_set(x_550, 1, x_549); +return x_550; +} +} +} +case 7: +{ +lean_object* x_551; lean_object* x_552; lean_object* x_553; uint8_t x_554; lean_object* x_555; +x_551 = lean_ctor_get(x_1, 0); +lean_inc(x_551); +x_552 = lean_ctor_get(x_1, 1); +lean_inc(x_552); +x_553 = lean_ctor_get(x_1, 2); +lean_inc(x_553); +x_554 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_555 = l_Lean_Expr_resolveBinderNameHint_go(x_552, x_2, x_3, x_4, x_5, x_334); +if (lean_obj_tag(x_555) == 0) +{ +lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; +x_556 = lean_ctor_get(x_555, 0); +lean_inc(x_556); +x_557 = lean_ctor_get(x_555, 1); +lean_inc(x_557); +lean_dec(x_555); +x_558 = lean_ctor_get(x_556, 0); +lean_inc(x_558); +x_559 = lean_ctor_get(x_556, 1); +lean_inc(x_559); +lean_dec(x_556); +x_560 = lean_array_push(x_559, x_551); +lean_inc(x_2); +x_561 = l_Lean_Expr_resolveBinderNameHint_go(x_553, x_2, x_560, x_4, x_5, x_557); +if (lean_obj_tag(x_561) == 0) +{ +lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; uint8_t x_567; +x_562 = lean_ctor_get(x_561, 0); +lean_inc(x_562); +x_563 = lean_ctor_get(x_561, 1); +lean_inc(x_563); +lean_dec(x_561); +x_564 = lean_ctor_get(x_562, 0); +lean_inc(x_564); +x_565 = lean_ctor_get(x_562, 1); +lean_inc(x_565); +lean_dec(x_562); +x_566 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(x_565); +x_567 = !lean_is_exclusive(x_566); +if (x_567 == 0) +{ +lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; uint8_t x_573; +x_568 = lean_ctor_get(x_566, 0); +x_569 = l_Lean_Expr_forallE___override(x_568, x_558, x_564, x_554); +x_570 = lean_st_ref_take(x_2, x_563); +x_571 = lean_ctor_get(x_570, 0); +lean_inc(x_571); +x_572 = lean_ctor_get(x_570, 1); +lean_inc(x_572); +lean_dec(x_570); +x_573 = !lean_is_exclusive(x_571); +if (x_573 == 0) +{ +lean_object* x_574; lean_object* x_575; lean_object* x_576; size_t x_577; size_t x_578; size_t x_579; lean_object* x_580; uint8_t x_581; +x_574 = lean_ctor_get(x_571, 0); +x_575 = lean_ctor_get(x_571, 1); +x_576 = lean_array_get_size(x_575); +x_577 = lean_usize_of_nat(x_576); +lean_dec(x_576); +x_578 = lean_usize_sub(x_577, x_347); +x_579 = lean_usize_land(x_345, x_578); +x_580 = lean_array_uget(x_575, x_579); +x_581 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_580); +if (x_581 == 0) +{ +lean_object* x_582; lean_object* x_583; lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; uint8_t x_591; +x_582 = lean_unsigned_to_nat(1u); +x_583 = lean_nat_add(x_574, x_582); +lean_dec(x_574); +lean_inc(x_569); +x_584 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_584, 0, x_1); +lean_ctor_set(x_584, 1, x_569); +lean_ctor_set(x_584, 2, x_580); +x_585 = lean_array_uset(x_575, x_579, x_584); +x_586 = lean_unsigned_to_nat(4u); +x_587 = lean_nat_mul(x_583, x_586); +x_588 = lean_unsigned_to_nat(3u); +x_589 = lean_nat_div(x_587, x_588); +lean_dec(x_587); +x_590 = lean_array_get_size(x_585); +x_591 = lean_nat_dec_le(x_589, x_590); +lean_dec(x_590); +lean_dec(x_589); +if (x_591 == 0) +{ +lean_object* x_592; lean_object* x_593; uint8_t x_594; +x_592 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_585); +lean_ctor_set(x_571, 1, x_592); +lean_ctor_set(x_571, 0, x_583); +x_593 = lean_st_ref_set(x_2, x_571, x_572); +lean_dec(x_2); +x_594 = !lean_is_exclusive(x_593); +if (x_594 == 0) +{ +lean_object* x_595; +x_595 = lean_ctor_get(x_593, 0); +lean_dec(x_595); +lean_ctor_set(x_566, 0, x_569); +lean_ctor_set(x_593, 0, x_566); +return x_593; +} +else +{ +lean_object* x_596; lean_object* x_597; +x_596 = lean_ctor_get(x_593, 1); +lean_inc(x_596); +lean_dec(x_593); +lean_ctor_set(x_566, 0, x_569); +x_597 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_597, 0, x_566); +lean_ctor_set(x_597, 1, x_596); +return x_597; +} +} +else +{ +lean_object* x_598; uint8_t x_599; +lean_ctor_set(x_571, 1, x_585); +lean_ctor_set(x_571, 0, x_583); +x_598 = lean_st_ref_set(x_2, x_571, x_572); +lean_dec(x_2); +x_599 = !lean_is_exclusive(x_598); +if (x_599 == 0) +{ +lean_object* x_600; +x_600 = lean_ctor_get(x_598, 0); +lean_dec(x_600); +lean_ctor_set(x_566, 0, x_569); +lean_ctor_set(x_598, 0, x_566); +return x_598; +} +else +{ +lean_object* x_601; lean_object* x_602; +x_601 = lean_ctor_get(x_598, 1); +lean_inc(x_601); +lean_dec(x_598); +lean_ctor_set(x_566, 0, x_569); +x_602 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_602, 0, x_566); +lean_ctor_set(x_602, 1, x_601); +return x_602; +} +} +} +else +{ +lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; uint8_t x_608; +x_603 = lean_box(0); +x_604 = lean_array_uset(x_575, x_579, x_603); +lean_inc(x_569); +x_605 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_569, x_580); +x_606 = lean_array_uset(x_604, x_579, x_605); +lean_ctor_set(x_571, 1, x_606); +x_607 = lean_st_ref_set(x_2, x_571, x_572); +lean_dec(x_2); +x_608 = !lean_is_exclusive(x_607); +if (x_608 == 0) +{ +lean_object* x_609; +x_609 = lean_ctor_get(x_607, 0); +lean_dec(x_609); +lean_ctor_set(x_566, 0, x_569); +lean_ctor_set(x_607, 0, x_566); +return x_607; +} +else +{ +lean_object* x_610; lean_object* x_611; +x_610 = lean_ctor_get(x_607, 1); +lean_inc(x_610); +lean_dec(x_607); +lean_ctor_set(x_566, 0, x_569); +x_611 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_611, 0, x_566); +lean_ctor_set(x_611, 1, x_610); +return x_611; +} +} +} +else +{ +lean_object* x_612; lean_object* x_613; lean_object* x_614; size_t x_615; size_t x_616; size_t x_617; lean_object* x_618; uint8_t x_619; +x_612 = lean_ctor_get(x_571, 0); +x_613 = lean_ctor_get(x_571, 1); +lean_inc(x_613); +lean_inc(x_612); +lean_dec(x_571); +x_614 = lean_array_get_size(x_613); +x_615 = lean_usize_of_nat(x_614); +lean_dec(x_614); +x_616 = lean_usize_sub(x_615, x_347); +x_617 = lean_usize_land(x_345, x_616); +x_618 = lean_array_uget(x_613, x_617); +x_619 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_618); +if (x_619 == 0) +{ +lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; uint8_t x_629; +x_620 = lean_unsigned_to_nat(1u); +x_621 = lean_nat_add(x_612, x_620); +lean_dec(x_612); +lean_inc(x_569); +x_622 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_622, 0, x_1); +lean_ctor_set(x_622, 1, x_569); +lean_ctor_set(x_622, 2, x_618); +x_623 = lean_array_uset(x_613, x_617, x_622); +x_624 = lean_unsigned_to_nat(4u); +x_625 = lean_nat_mul(x_621, x_624); +x_626 = lean_unsigned_to_nat(3u); +x_627 = lean_nat_div(x_625, x_626); +lean_dec(x_625); +x_628 = lean_array_get_size(x_623); +x_629 = lean_nat_dec_le(x_627, x_628); +lean_dec(x_628); +lean_dec(x_627); +if (x_629 == 0) +{ +lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; lean_object* x_635; +x_630 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_623); +x_631 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_631, 0, x_621); +lean_ctor_set(x_631, 1, x_630); +x_632 = lean_st_ref_set(x_2, x_631, x_572); +lean_dec(x_2); +x_633 = lean_ctor_get(x_632, 1); +lean_inc(x_633); +if (lean_is_exclusive(x_632)) { + lean_ctor_release(x_632, 0); + lean_ctor_release(x_632, 1); + x_634 = x_632; +} else { + lean_dec_ref(x_632); + x_634 = lean_box(0); +} +lean_ctor_set(x_566, 0, x_569); +if (lean_is_scalar(x_634)) { + x_635 = lean_alloc_ctor(0, 2, 0); +} else { + x_635 = x_634; +} +lean_ctor_set(x_635, 0, x_566); +lean_ctor_set(x_635, 1, x_633); +return x_635; +} +else +{ +lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; +x_636 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_636, 0, x_621); +lean_ctor_set(x_636, 1, x_623); +x_637 = lean_st_ref_set(x_2, x_636, x_572); +lean_dec(x_2); +x_638 = lean_ctor_get(x_637, 1); +lean_inc(x_638); +if (lean_is_exclusive(x_637)) { + lean_ctor_release(x_637, 0); + lean_ctor_release(x_637, 1); + x_639 = x_637; +} else { + lean_dec_ref(x_637); + x_639 = lean_box(0); +} +lean_ctor_set(x_566, 0, x_569); +if (lean_is_scalar(x_639)) { + x_640 = lean_alloc_ctor(0, 2, 0); +} else { + x_640 = x_639; +} +lean_ctor_set(x_640, 0, x_566); +lean_ctor_set(x_640, 1, x_638); +return x_640; +} +} +else +{ +lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; +x_641 = lean_box(0); +x_642 = lean_array_uset(x_613, x_617, x_641); +lean_inc(x_569); +x_643 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_569, x_618); +x_644 = lean_array_uset(x_642, x_617, x_643); +x_645 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_645, 0, x_612); +lean_ctor_set(x_645, 1, x_644); +x_646 = lean_st_ref_set(x_2, x_645, x_572); +lean_dec(x_2); +x_647 = lean_ctor_get(x_646, 1); +lean_inc(x_647); +if (lean_is_exclusive(x_646)) { + lean_ctor_release(x_646, 0); + lean_ctor_release(x_646, 1); + x_648 = x_646; +} else { + lean_dec_ref(x_646); + x_648 = lean_box(0); +} +lean_ctor_set(x_566, 0, x_569); +if (lean_is_scalar(x_648)) { + x_649 = lean_alloc_ctor(0, 2, 0); +} else { + x_649 = x_648; +} +lean_ctor_set(x_649, 0, x_566); +lean_ctor_set(x_649, 1, x_647); +return x_649; +} +} +} +else +{ +lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; size_t x_660; size_t x_661; size_t x_662; lean_object* x_663; uint8_t x_664; +x_650 = lean_ctor_get(x_566, 0); +x_651 = lean_ctor_get(x_566, 1); +lean_inc(x_651); +lean_inc(x_650); +lean_dec(x_566); +x_652 = l_Lean_Expr_forallE___override(x_650, x_558, x_564, x_554); +x_653 = lean_st_ref_take(x_2, x_563); +x_654 = lean_ctor_get(x_653, 0); +lean_inc(x_654); +x_655 = lean_ctor_get(x_653, 1); +lean_inc(x_655); +lean_dec(x_653); +x_656 = lean_ctor_get(x_654, 0); +lean_inc(x_656); +x_657 = lean_ctor_get(x_654, 1); +lean_inc(x_657); +if (lean_is_exclusive(x_654)) { + lean_ctor_release(x_654, 0); + lean_ctor_release(x_654, 1); + x_658 = x_654; +} else { + lean_dec_ref(x_654); + x_658 = lean_box(0); +} +x_659 = lean_array_get_size(x_657); +x_660 = lean_usize_of_nat(x_659); +lean_dec(x_659); +x_661 = lean_usize_sub(x_660, x_347); +x_662 = lean_usize_land(x_345, x_661); +x_663 = lean_array_uget(x_657, x_662); +x_664 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_663); +if (x_664 == 0) +{ +lean_object* x_665; lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; uint8_t x_674; +x_665 = lean_unsigned_to_nat(1u); +x_666 = lean_nat_add(x_656, x_665); +lean_dec(x_656); +lean_inc(x_652); +x_667 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_667, 0, x_1); +lean_ctor_set(x_667, 1, x_652); +lean_ctor_set(x_667, 2, x_663); +x_668 = lean_array_uset(x_657, x_662, x_667); +x_669 = lean_unsigned_to_nat(4u); +x_670 = lean_nat_mul(x_666, x_669); +x_671 = lean_unsigned_to_nat(3u); +x_672 = lean_nat_div(x_670, x_671); +lean_dec(x_670); +x_673 = lean_array_get_size(x_668); +x_674 = lean_nat_dec_le(x_672, x_673); +lean_dec(x_673); +lean_dec(x_672); +if (x_674 == 0) +{ +lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; +x_675 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_668); +if (lean_is_scalar(x_658)) { + x_676 = lean_alloc_ctor(0, 2, 0); +} else { + x_676 = x_658; +} +lean_ctor_set(x_676, 0, x_666); +lean_ctor_set(x_676, 1, x_675); +x_677 = lean_st_ref_set(x_2, x_676, x_655); +lean_dec(x_2); +x_678 = lean_ctor_get(x_677, 1); +lean_inc(x_678); +if (lean_is_exclusive(x_677)) { + lean_ctor_release(x_677, 0); + lean_ctor_release(x_677, 1); + x_679 = x_677; +} else { + lean_dec_ref(x_677); + x_679 = lean_box(0); +} +x_680 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_680, 0, x_652); +lean_ctor_set(x_680, 1, x_651); +if (lean_is_scalar(x_679)) { + x_681 = lean_alloc_ctor(0, 2, 0); +} else { + x_681 = x_679; +} +lean_ctor_set(x_681, 0, x_680); +lean_ctor_set(x_681, 1, x_678); +return x_681; +} +else +{ +lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; +if (lean_is_scalar(x_658)) { + x_682 = lean_alloc_ctor(0, 2, 0); +} else { + x_682 = x_658; +} +lean_ctor_set(x_682, 0, x_666); +lean_ctor_set(x_682, 1, x_668); +x_683 = lean_st_ref_set(x_2, x_682, x_655); +lean_dec(x_2); +x_684 = lean_ctor_get(x_683, 1); +lean_inc(x_684); +if (lean_is_exclusive(x_683)) { + lean_ctor_release(x_683, 0); + lean_ctor_release(x_683, 1); + x_685 = x_683; +} else { + lean_dec_ref(x_683); + x_685 = lean_box(0); +} +x_686 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_686, 0, x_652); +lean_ctor_set(x_686, 1, x_651); +if (lean_is_scalar(x_685)) { + x_687 = lean_alloc_ctor(0, 2, 0); +} else { + x_687 = x_685; +} +lean_ctor_set(x_687, 0, x_686); +lean_ctor_set(x_687, 1, x_684); +return x_687; +} +} +else +{ +lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; +x_688 = lean_box(0); +x_689 = lean_array_uset(x_657, x_662, x_688); +lean_inc(x_652); +x_690 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_652, x_663); +x_691 = lean_array_uset(x_689, x_662, x_690); +if (lean_is_scalar(x_658)) { + x_692 = lean_alloc_ctor(0, 2, 0); +} else { + x_692 = x_658; +} +lean_ctor_set(x_692, 0, x_656); +lean_ctor_set(x_692, 1, x_691); +x_693 = lean_st_ref_set(x_2, x_692, x_655); +lean_dec(x_2); +x_694 = lean_ctor_get(x_693, 1); +lean_inc(x_694); +if (lean_is_exclusive(x_693)) { + lean_ctor_release(x_693, 0); + lean_ctor_release(x_693, 1); + x_695 = x_693; +} else { + lean_dec_ref(x_693); + x_695 = lean_box(0); +} +x_696 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_696, 0, x_652); +lean_ctor_set(x_696, 1, x_651); +if (lean_is_scalar(x_695)) { + x_697 = lean_alloc_ctor(0, 2, 0); +} else { + x_697 = x_695; +} +lean_ctor_set(x_697, 0, x_696); +lean_ctor_set(x_697, 1, x_694); +return x_697; +} +} +} +else +{ +uint8_t x_698; +lean_dec(x_558); +lean_dec(x_2); +lean_dec(x_1); +x_698 = !lean_is_exclusive(x_561); +if (x_698 == 0) +{ +return x_561; +} +else +{ +lean_object* x_699; lean_object* x_700; lean_object* x_701; +x_699 = lean_ctor_get(x_561, 0); +x_700 = lean_ctor_get(x_561, 1); +lean_inc(x_700); +lean_inc(x_699); +lean_dec(x_561); +x_701 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_701, 0, x_699); +lean_ctor_set(x_701, 1, x_700); +return x_701; +} +} +} +else +{ +uint8_t x_702; +lean_dec(x_553); +lean_dec(x_551); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_702 = !lean_is_exclusive(x_555); +if (x_702 == 0) +{ +return x_555; +} +else +{ +lean_object* x_703; lean_object* x_704; lean_object* x_705; +x_703 = lean_ctor_get(x_555, 0); +x_704 = lean_ctor_get(x_555, 1); +lean_inc(x_704); +lean_inc(x_703); +lean_dec(x_555); +x_705 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_705, 0, x_703); +lean_ctor_set(x_705, 1, x_704); +return x_705; +} +} +} +case 8: +{ +lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; uint8_t x_710; lean_object* x_711; +x_706 = lean_ctor_get(x_1, 0); +lean_inc(x_706); +x_707 = lean_ctor_get(x_1, 1); +lean_inc(x_707); +x_708 = lean_ctor_get(x_1, 2); +lean_inc(x_708); +x_709 = lean_ctor_get(x_1, 3); +lean_inc(x_709); +x_710 = lean_ctor_get_uint8(x_1, sizeof(void*)*4 + 8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_711 = l_Lean_Expr_resolveBinderNameHint_go(x_707, x_2, x_3, x_4, x_5, x_334); +if (lean_obj_tag(x_711) == 0) +{ +lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; +x_712 = lean_ctor_get(x_711, 0); +lean_inc(x_712); +x_713 = lean_ctor_get(x_711, 1); +lean_inc(x_713); +lean_dec(x_711); +x_714 = lean_ctor_get(x_712, 0); +lean_inc(x_714); +x_715 = lean_ctor_get(x_712, 1); +lean_inc(x_715); +lean_dec(x_712); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_716 = l_Lean_Expr_resolveBinderNameHint_go(x_708, x_2, x_715, x_4, x_5, x_713); +if (lean_obj_tag(x_716) == 0) +{ +lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; +x_717 = lean_ctor_get(x_716, 0); +lean_inc(x_717); +x_718 = lean_ctor_get(x_716, 1); +lean_inc(x_718); +lean_dec(x_716); +x_719 = lean_ctor_get(x_717, 0); +lean_inc(x_719); +x_720 = lean_ctor_get(x_717, 1); +lean_inc(x_720); +lean_dec(x_717); +x_721 = lean_array_push(x_720, x_706); +lean_inc(x_2); +x_722 = l_Lean_Expr_resolveBinderNameHint_go(x_709, x_2, x_721, x_4, x_5, x_718); +if (lean_obj_tag(x_722) == 0) +{ +lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; uint8_t x_728; +x_723 = lean_ctor_get(x_722, 0); +lean_inc(x_723); +x_724 = lean_ctor_get(x_722, 1); +lean_inc(x_724); +lean_dec(x_722); +x_725 = lean_ctor_get(x_723, 0); +lean_inc(x_725); +x_726 = lean_ctor_get(x_723, 1); +lean_inc(x_726); +lean_dec(x_723); +x_727 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(x_726); +x_728 = !lean_is_exclusive(x_727); +if (x_728 == 0) +{ +lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; uint8_t x_734; +x_729 = lean_ctor_get(x_727, 0); +x_730 = l_Lean_Expr_letE___override(x_729, x_714, x_719, x_725, x_710); +x_731 = lean_st_ref_take(x_2, x_724); +x_732 = lean_ctor_get(x_731, 0); +lean_inc(x_732); +x_733 = lean_ctor_get(x_731, 1); +lean_inc(x_733); +lean_dec(x_731); +x_734 = !lean_is_exclusive(x_732); +if (x_734 == 0) +{ +lean_object* x_735; lean_object* x_736; lean_object* x_737; size_t x_738; size_t x_739; size_t x_740; lean_object* x_741; uint8_t x_742; +x_735 = lean_ctor_get(x_732, 0); +x_736 = lean_ctor_get(x_732, 1); +x_737 = lean_array_get_size(x_736); +x_738 = lean_usize_of_nat(x_737); +lean_dec(x_737); +x_739 = lean_usize_sub(x_738, x_347); +x_740 = lean_usize_land(x_345, x_739); +x_741 = lean_array_uget(x_736, x_740); +x_742 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_741); +if (x_742 == 0) +{ +lean_object* x_743; lean_object* x_744; lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; uint8_t x_752; +x_743 = lean_unsigned_to_nat(1u); +x_744 = lean_nat_add(x_735, x_743); +lean_dec(x_735); +lean_inc(x_730); +x_745 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_745, 0, x_1); +lean_ctor_set(x_745, 1, x_730); +lean_ctor_set(x_745, 2, x_741); +x_746 = lean_array_uset(x_736, x_740, x_745); +x_747 = lean_unsigned_to_nat(4u); +x_748 = lean_nat_mul(x_744, x_747); +x_749 = lean_unsigned_to_nat(3u); +x_750 = lean_nat_div(x_748, x_749); +lean_dec(x_748); +x_751 = lean_array_get_size(x_746); +x_752 = lean_nat_dec_le(x_750, x_751); +lean_dec(x_751); +lean_dec(x_750); +if (x_752 == 0) +{ +lean_object* x_753; lean_object* x_754; uint8_t x_755; +x_753 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_746); +lean_ctor_set(x_732, 1, x_753); +lean_ctor_set(x_732, 0, x_744); +x_754 = lean_st_ref_set(x_2, x_732, x_733); +lean_dec(x_2); +x_755 = !lean_is_exclusive(x_754); +if (x_755 == 0) +{ +lean_object* x_756; +x_756 = lean_ctor_get(x_754, 0); +lean_dec(x_756); +lean_ctor_set(x_727, 0, x_730); +lean_ctor_set(x_754, 0, x_727); +return x_754; +} +else +{ +lean_object* x_757; lean_object* x_758; +x_757 = lean_ctor_get(x_754, 1); +lean_inc(x_757); +lean_dec(x_754); +lean_ctor_set(x_727, 0, x_730); +x_758 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_758, 0, x_727); +lean_ctor_set(x_758, 1, x_757); +return x_758; +} +} +else +{ +lean_object* x_759; uint8_t x_760; +lean_ctor_set(x_732, 1, x_746); +lean_ctor_set(x_732, 0, x_744); +x_759 = lean_st_ref_set(x_2, x_732, x_733); +lean_dec(x_2); +x_760 = !lean_is_exclusive(x_759); +if (x_760 == 0) +{ +lean_object* x_761; +x_761 = lean_ctor_get(x_759, 0); +lean_dec(x_761); +lean_ctor_set(x_727, 0, x_730); +lean_ctor_set(x_759, 0, x_727); +return x_759; +} +else +{ +lean_object* x_762; lean_object* x_763; +x_762 = lean_ctor_get(x_759, 1); +lean_inc(x_762); +lean_dec(x_759); +lean_ctor_set(x_727, 0, x_730); +x_763 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_763, 0, x_727); +lean_ctor_set(x_763, 1, x_762); +return x_763; +} +} +} +else +{ +lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; uint8_t x_769; +x_764 = lean_box(0); +x_765 = lean_array_uset(x_736, x_740, x_764); +lean_inc(x_730); +x_766 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_730, x_741); +x_767 = lean_array_uset(x_765, x_740, x_766); +lean_ctor_set(x_732, 1, x_767); +x_768 = lean_st_ref_set(x_2, x_732, x_733); +lean_dec(x_2); +x_769 = !lean_is_exclusive(x_768); +if (x_769 == 0) +{ +lean_object* x_770; +x_770 = lean_ctor_get(x_768, 0); +lean_dec(x_770); +lean_ctor_set(x_727, 0, x_730); +lean_ctor_set(x_768, 0, x_727); +return x_768; +} +else +{ +lean_object* x_771; lean_object* x_772; +x_771 = lean_ctor_get(x_768, 1); +lean_inc(x_771); +lean_dec(x_768); +lean_ctor_set(x_727, 0, x_730); +x_772 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_772, 0, x_727); +lean_ctor_set(x_772, 1, x_771); +return x_772; +} +} +} +else +{ +lean_object* x_773; lean_object* x_774; lean_object* x_775; size_t x_776; size_t x_777; size_t x_778; lean_object* x_779; uint8_t x_780; +x_773 = lean_ctor_get(x_732, 0); +x_774 = lean_ctor_get(x_732, 1); +lean_inc(x_774); +lean_inc(x_773); +lean_dec(x_732); +x_775 = lean_array_get_size(x_774); +x_776 = lean_usize_of_nat(x_775); +lean_dec(x_775); +x_777 = lean_usize_sub(x_776, x_347); +x_778 = lean_usize_land(x_345, x_777); +x_779 = lean_array_uget(x_774, x_778); +x_780 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_779); +if (x_780 == 0) +{ +lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; uint8_t x_790; +x_781 = lean_unsigned_to_nat(1u); +x_782 = lean_nat_add(x_773, x_781); +lean_dec(x_773); +lean_inc(x_730); +x_783 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_783, 0, x_1); +lean_ctor_set(x_783, 1, x_730); +lean_ctor_set(x_783, 2, x_779); +x_784 = lean_array_uset(x_774, x_778, x_783); +x_785 = lean_unsigned_to_nat(4u); +x_786 = lean_nat_mul(x_782, x_785); +x_787 = lean_unsigned_to_nat(3u); +x_788 = lean_nat_div(x_786, x_787); +lean_dec(x_786); +x_789 = lean_array_get_size(x_784); +x_790 = lean_nat_dec_le(x_788, x_789); +lean_dec(x_789); +lean_dec(x_788); +if (x_790 == 0) +{ +lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; +x_791 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_784); +x_792 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_792, 0, x_782); +lean_ctor_set(x_792, 1, x_791); +x_793 = lean_st_ref_set(x_2, x_792, x_733); +lean_dec(x_2); +x_794 = lean_ctor_get(x_793, 1); +lean_inc(x_794); +if (lean_is_exclusive(x_793)) { + lean_ctor_release(x_793, 0); + lean_ctor_release(x_793, 1); + x_795 = x_793; +} else { + lean_dec_ref(x_793); + x_795 = lean_box(0); +} +lean_ctor_set(x_727, 0, x_730); +if (lean_is_scalar(x_795)) { + x_796 = lean_alloc_ctor(0, 2, 0); +} else { + x_796 = x_795; +} +lean_ctor_set(x_796, 0, x_727); +lean_ctor_set(x_796, 1, x_794); +return x_796; +} +else +{ +lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; +x_797 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_797, 0, x_782); +lean_ctor_set(x_797, 1, x_784); +x_798 = lean_st_ref_set(x_2, x_797, x_733); +lean_dec(x_2); +x_799 = lean_ctor_get(x_798, 1); +lean_inc(x_799); +if (lean_is_exclusive(x_798)) { + lean_ctor_release(x_798, 0); + lean_ctor_release(x_798, 1); + x_800 = x_798; +} else { + lean_dec_ref(x_798); + x_800 = lean_box(0); +} +lean_ctor_set(x_727, 0, x_730); +if (lean_is_scalar(x_800)) { + x_801 = lean_alloc_ctor(0, 2, 0); +} else { + x_801 = x_800; +} +lean_ctor_set(x_801, 0, x_727); +lean_ctor_set(x_801, 1, x_799); +return x_801; +} +} +else +{ +lean_object* x_802; lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; +x_802 = lean_box(0); +x_803 = lean_array_uset(x_774, x_778, x_802); +lean_inc(x_730); +x_804 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_730, x_779); +x_805 = lean_array_uset(x_803, x_778, x_804); +x_806 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_806, 0, x_773); +lean_ctor_set(x_806, 1, x_805); +x_807 = lean_st_ref_set(x_2, x_806, x_733); +lean_dec(x_2); +x_808 = lean_ctor_get(x_807, 1); +lean_inc(x_808); +if (lean_is_exclusive(x_807)) { + lean_ctor_release(x_807, 0); + lean_ctor_release(x_807, 1); + x_809 = x_807; +} else { + lean_dec_ref(x_807); + x_809 = lean_box(0); +} +lean_ctor_set(x_727, 0, x_730); +if (lean_is_scalar(x_809)) { + x_810 = lean_alloc_ctor(0, 2, 0); +} else { + x_810 = x_809; +} +lean_ctor_set(x_810, 0, x_727); +lean_ctor_set(x_810, 1, x_808); +return x_810; +} +} +} +else +{ +lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; size_t x_821; size_t x_822; size_t x_823; lean_object* x_824; uint8_t x_825; +x_811 = lean_ctor_get(x_727, 0); +x_812 = lean_ctor_get(x_727, 1); +lean_inc(x_812); +lean_inc(x_811); +lean_dec(x_727); +x_813 = l_Lean_Expr_letE___override(x_811, x_714, x_719, x_725, x_710); +x_814 = lean_st_ref_take(x_2, x_724); +x_815 = lean_ctor_get(x_814, 0); +lean_inc(x_815); +x_816 = lean_ctor_get(x_814, 1); +lean_inc(x_816); +lean_dec(x_814); +x_817 = lean_ctor_get(x_815, 0); +lean_inc(x_817); +x_818 = lean_ctor_get(x_815, 1); +lean_inc(x_818); +if (lean_is_exclusive(x_815)) { + lean_ctor_release(x_815, 0); + lean_ctor_release(x_815, 1); + x_819 = x_815; +} else { + lean_dec_ref(x_815); + x_819 = lean_box(0); +} +x_820 = lean_array_get_size(x_818); +x_821 = lean_usize_of_nat(x_820); +lean_dec(x_820); +x_822 = lean_usize_sub(x_821, x_347); +x_823 = lean_usize_land(x_345, x_822); +x_824 = lean_array_uget(x_818, x_823); +x_825 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_824); +if (x_825 == 0) +{ +lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; uint8_t x_835; +x_826 = lean_unsigned_to_nat(1u); +x_827 = lean_nat_add(x_817, x_826); +lean_dec(x_817); +lean_inc(x_813); +x_828 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_828, 0, x_1); +lean_ctor_set(x_828, 1, x_813); +lean_ctor_set(x_828, 2, x_824); +x_829 = lean_array_uset(x_818, x_823, x_828); +x_830 = lean_unsigned_to_nat(4u); +x_831 = lean_nat_mul(x_827, x_830); +x_832 = lean_unsigned_to_nat(3u); +x_833 = lean_nat_div(x_831, x_832); +lean_dec(x_831); +x_834 = lean_array_get_size(x_829); +x_835 = lean_nat_dec_le(x_833, x_834); +lean_dec(x_834); +lean_dec(x_833); +if (x_835 == 0) +{ +lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; +x_836 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_829); +if (lean_is_scalar(x_819)) { + x_837 = lean_alloc_ctor(0, 2, 0); +} else { + x_837 = x_819; +} +lean_ctor_set(x_837, 0, x_827); +lean_ctor_set(x_837, 1, x_836); +x_838 = lean_st_ref_set(x_2, x_837, x_816); +lean_dec(x_2); +x_839 = lean_ctor_get(x_838, 1); +lean_inc(x_839); +if (lean_is_exclusive(x_838)) { + lean_ctor_release(x_838, 0); + lean_ctor_release(x_838, 1); + x_840 = x_838; +} else { + lean_dec_ref(x_838); + x_840 = lean_box(0); +} +x_841 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_841, 0, x_813); +lean_ctor_set(x_841, 1, x_812); +if (lean_is_scalar(x_840)) { + x_842 = lean_alloc_ctor(0, 2, 0); +} else { + x_842 = x_840; +} +lean_ctor_set(x_842, 0, x_841); +lean_ctor_set(x_842, 1, x_839); +return x_842; +} +else +{ +lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; +if (lean_is_scalar(x_819)) { + x_843 = lean_alloc_ctor(0, 2, 0); +} else { + x_843 = x_819; +} +lean_ctor_set(x_843, 0, x_827); +lean_ctor_set(x_843, 1, x_829); +x_844 = lean_st_ref_set(x_2, x_843, x_816); +lean_dec(x_2); +x_845 = lean_ctor_get(x_844, 1); +lean_inc(x_845); +if (lean_is_exclusive(x_844)) { + lean_ctor_release(x_844, 0); + lean_ctor_release(x_844, 1); + x_846 = x_844; +} else { + lean_dec_ref(x_844); + x_846 = lean_box(0); +} +x_847 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_847, 0, x_813); +lean_ctor_set(x_847, 1, x_812); +if (lean_is_scalar(x_846)) { + x_848 = lean_alloc_ctor(0, 2, 0); +} else { + x_848 = x_846; +} +lean_ctor_set(x_848, 0, x_847); +lean_ctor_set(x_848, 1, x_845); +return x_848; +} +} +else +{ +lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; +x_849 = lean_box(0); +x_850 = lean_array_uset(x_818, x_823, x_849); +lean_inc(x_813); +x_851 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_813, x_824); +x_852 = lean_array_uset(x_850, x_823, x_851); +if (lean_is_scalar(x_819)) { + x_853 = lean_alloc_ctor(0, 2, 0); +} else { + x_853 = x_819; +} +lean_ctor_set(x_853, 0, x_817); +lean_ctor_set(x_853, 1, x_852); +x_854 = lean_st_ref_set(x_2, x_853, x_816); +lean_dec(x_2); +x_855 = lean_ctor_get(x_854, 1); +lean_inc(x_855); +if (lean_is_exclusive(x_854)) { + lean_ctor_release(x_854, 0); + lean_ctor_release(x_854, 1); + x_856 = x_854; +} else { + lean_dec_ref(x_854); + x_856 = lean_box(0); +} +x_857 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_857, 0, x_813); +lean_ctor_set(x_857, 1, x_812); +if (lean_is_scalar(x_856)) { + x_858 = lean_alloc_ctor(0, 2, 0); +} else { + x_858 = x_856; +} +lean_ctor_set(x_858, 0, x_857); +lean_ctor_set(x_858, 1, x_855); +return x_858; +} +} +} +else +{ +uint8_t x_859; +lean_dec(x_719); +lean_dec(x_714); +lean_dec(x_2); +lean_dec(x_1); +x_859 = !lean_is_exclusive(x_722); +if (x_859 == 0) +{ +return x_722; +} +else +{ +lean_object* x_860; lean_object* x_861; lean_object* x_862; +x_860 = lean_ctor_get(x_722, 0); +x_861 = lean_ctor_get(x_722, 1); +lean_inc(x_861); +lean_inc(x_860); +lean_dec(x_722); +x_862 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_862, 0, x_860); +lean_ctor_set(x_862, 1, x_861); +return x_862; +} +} +} +else +{ +uint8_t x_863; +lean_dec(x_714); +lean_dec(x_709); +lean_dec(x_706); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_863 = !lean_is_exclusive(x_716); +if (x_863 == 0) +{ +return x_716; +} +else +{ +lean_object* x_864; lean_object* x_865; lean_object* x_866; +x_864 = lean_ctor_get(x_716, 0); +x_865 = lean_ctor_get(x_716, 1); +lean_inc(x_865); +lean_inc(x_864); +lean_dec(x_716); +x_866 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_866, 0, x_864); +lean_ctor_set(x_866, 1, x_865); +return x_866; +} +} +} +else +{ +uint8_t x_867; +lean_dec(x_709); +lean_dec(x_708); +lean_dec(x_706); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_867 = !lean_is_exclusive(x_711); +if (x_867 == 0) +{ +return x_711; +} +else +{ +lean_object* x_868; lean_object* x_869; lean_object* x_870; +x_868 = lean_ctor_get(x_711, 0); +x_869 = lean_ctor_get(x_711, 1); +lean_inc(x_869); +lean_inc(x_868); +lean_dec(x_711); +x_870 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_870, 0, x_868); +lean_ctor_set(x_870, 1, x_869); +return x_870; +} +} +} +case 10: +{ +lean_object* x_871; lean_object* x_872; lean_object* x_873; +x_871 = lean_ctor_get(x_1, 0); +lean_inc(x_871); +x_872 = lean_ctor_get(x_1, 1); +lean_inc(x_872); +lean_inc(x_2); +lean_inc(x_872); +x_873 = l_Lean_Expr_resolveBinderNameHint_go(x_872, x_2, x_3, x_4, x_5, x_334); +if (lean_obj_tag(x_873) == 0) +{ +lean_object* x_874; lean_object* x_875; uint8_t x_876; +x_874 = lean_ctor_get(x_873, 0); +lean_inc(x_874); +x_875 = lean_ctor_get(x_873, 1); +lean_inc(x_875); +lean_dec(x_873); +x_876 = !lean_is_exclusive(x_874); +if (x_876 == 0) +{ +lean_object* x_877; size_t x_878; size_t x_879; uint8_t x_880; +x_877 = lean_ctor_get(x_874, 0); +x_878 = lean_ptr_addr(x_872); +lean_dec(x_872); +x_879 = lean_ptr_addr(x_877); +x_880 = lean_usize_dec_eq(x_878, x_879); +if (x_880 == 0) +{ +lean_object* x_881; +x_881 = l_Lean_Expr_mdata___override(x_871, x_877); +lean_ctor_set(x_874, 0, x_881); +x_7 = x_874; +x_8 = x_875; +goto block_165; +} +else +{ +lean_dec(x_877); +lean_dec(x_871); +lean_inc(x_1); +lean_ctor_set(x_874, 0, x_1); +x_7 = x_874; +x_8 = x_875; +goto block_165; +} +} +else +{ +lean_object* x_882; lean_object* x_883; size_t x_884; size_t x_885; uint8_t x_886; +x_882 = lean_ctor_get(x_874, 0); +x_883 = lean_ctor_get(x_874, 1); +lean_inc(x_883); +lean_inc(x_882); +lean_dec(x_874); +x_884 = lean_ptr_addr(x_872); +lean_dec(x_872); +x_885 = lean_ptr_addr(x_882); +x_886 = lean_usize_dec_eq(x_884, x_885); +if (x_886 == 0) +{ +lean_object* x_887; lean_object* x_888; +x_887 = l_Lean_Expr_mdata___override(x_871, x_882); +x_888 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_888, 0, x_887); +lean_ctor_set(x_888, 1, x_883); +x_7 = x_888; +x_8 = x_875; +goto block_165; +} +else +{ +lean_object* x_889; +lean_dec(x_882); +lean_dec(x_871); +lean_inc(x_1); +x_889 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_889, 0, x_1); +lean_ctor_set(x_889, 1, x_883); +x_7 = x_889; +x_8 = x_875; +goto block_165; +} +} +} +else +{ +uint8_t x_890; +lean_dec(x_872); +lean_dec(x_871); +lean_dec(x_2); +lean_dec(x_1); +x_890 = !lean_is_exclusive(x_873); +if (x_890 == 0) +{ +return x_873; +} +else +{ +lean_object* x_891; lean_object* x_892; lean_object* x_893; +x_891 = lean_ctor_get(x_873, 0); +x_892 = lean_ctor_get(x_873, 1); +lean_inc(x_892); +lean_inc(x_891); +lean_dec(x_873); +x_893 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_893, 0, x_891); +lean_ctor_set(x_893, 1, x_892); +return x_893; +} +} +} +case 11: +{ +lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; +x_894 = lean_ctor_get(x_1, 0); +lean_inc(x_894); +x_895 = lean_ctor_get(x_1, 1); +lean_inc(x_895); +x_896 = lean_ctor_get(x_1, 2); +lean_inc(x_896); +lean_inc(x_2); +lean_inc(x_896); +x_897 = l_Lean_Expr_resolveBinderNameHint_go(x_896, x_2, x_3, x_4, x_5, x_334); +if (lean_obj_tag(x_897) == 0) +{ +lean_object* x_898; lean_object* x_899; uint8_t x_900; +x_898 = lean_ctor_get(x_897, 0); +lean_inc(x_898); +x_899 = lean_ctor_get(x_897, 1); +lean_inc(x_899); +lean_dec(x_897); +x_900 = !lean_is_exclusive(x_898); +if (x_900 == 0) +{ +lean_object* x_901; size_t x_902; size_t x_903; uint8_t x_904; +x_901 = lean_ctor_get(x_898, 0); +x_902 = lean_ptr_addr(x_896); +lean_dec(x_896); +x_903 = lean_ptr_addr(x_901); +x_904 = lean_usize_dec_eq(x_902, x_903); +if (x_904 == 0) +{ +lean_object* x_905; +x_905 = l_Lean_Expr_proj___override(x_894, x_895, x_901); +lean_ctor_set(x_898, 0, x_905); +x_7 = x_898; +x_8 = x_899; +goto block_165; +} +else +{ +lean_dec(x_901); +lean_dec(x_895); +lean_dec(x_894); +lean_inc(x_1); +lean_ctor_set(x_898, 0, x_1); +x_7 = x_898; +x_8 = x_899; +goto block_165; +} +} +else +{ +lean_object* x_906; lean_object* x_907; size_t x_908; size_t x_909; uint8_t x_910; +x_906 = lean_ctor_get(x_898, 0); +x_907 = lean_ctor_get(x_898, 1); +lean_inc(x_907); +lean_inc(x_906); +lean_dec(x_898); +x_908 = lean_ptr_addr(x_896); +lean_dec(x_896); +x_909 = lean_ptr_addr(x_906); +x_910 = lean_usize_dec_eq(x_908, x_909); +if (x_910 == 0) +{ +lean_object* x_911; lean_object* x_912; +x_911 = l_Lean_Expr_proj___override(x_894, x_895, x_906); +x_912 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_912, 0, x_911); +lean_ctor_set(x_912, 1, x_907); +x_7 = x_912; +x_8 = x_899; +goto block_165; +} +else +{ +lean_object* x_913; +lean_dec(x_906); +lean_dec(x_895); +lean_dec(x_894); +lean_inc(x_1); +x_913 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_913, 0, x_1); +lean_ctor_set(x_913, 1, x_907); +x_7 = x_913; +x_8 = x_899; +goto block_165; +} +} +} +else +{ +uint8_t x_914; +lean_dec(x_896); +lean_dec(x_895); +lean_dec(x_894); +lean_dec(x_2); +lean_dec(x_1); +x_914 = !lean_is_exclusive(x_897); +if (x_914 == 0) +{ +return x_897; +} +else +{ +lean_object* x_915; lean_object* x_916; lean_object* x_917; +x_915 = lean_ctor_get(x_897, 0); +x_916 = lean_ctor_get(x_897, 1); +lean_inc(x_916); +lean_inc(x_915); +lean_dec(x_897); +x_917 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_917, 0, x_915); +lean_ctor_set(x_917, 1, x_916); +return x_917; +} +} +} +default: +{ +lean_object* x_918; uint8_t x_919; +lean_dec(x_5); +lean_dec(x_4); +x_918 = lean_st_ref_take(x_2, x_334); +x_919 = !lean_is_exclusive(x_918); +if (x_919 == 0) +{ +lean_object* x_920; uint8_t x_921; +x_920 = lean_ctor_get(x_918, 0); +x_921 = !lean_is_exclusive(x_920); +if (x_921 == 0) +{ +lean_object* x_922; lean_object* x_923; lean_object* x_924; lean_object* x_925; size_t x_926; size_t x_927; size_t x_928; lean_object* x_929; uint8_t x_930; +x_922 = lean_ctor_get(x_918, 1); +x_923 = lean_ctor_get(x_920, 0); +x_924 = lean_ctor_get(x_920, 1); +x_925 = lean_array_get_size(x_924); +x_926 = lean_usize_of_nat(x_925); +lean_dec(x_925); +x_927 = lean_usize_sub(x_926, x_347); +x_928 = lean_usize_land(x_345, x_927); +x_929 = lean_array_uget(x_924, x_928); +x_930 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_929); +if (x_930 == 0) +{ +lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; uint8_t x_940; +x_931 = lean_unsigned_to_nat(1u); +x_932 = lean_nat_add(x_923, x_931); +lean_dec(x_923); +lean_inc_n(x_1, 2); +x_933 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_933, 0, x_1); +lean_ctor_set(x_933, 1, x_1); +lean_ctor_set(x_933, 2, x_929); +x_934 = lean_array_uset(x_924, x_928, x_933); +x_935 = lean_unsigned_to_nat(4u); +x_936 = lean_nat_mul(x_932, x_935); +x_937 = lean_unsigned_to_nat(3u); +x_938 = lean_nat_div(x_936, x_937); +lean_dec(x_936); +x_939 = lean_array_get_size(x_934); +x_940 = lean_nat_dec_le(x_938, x_939); +lean_dec(x_939); +lean_dec(x_938); +if (x_940 == 0) +{ +lean_object* x_941; lean_object* x_942; uint8_t x_943; +x_941 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_934); +lean_ctor_set(x_920, 1, x_941); +lean_ctor_set(x_920, 0, x_932); +x_942 = lean_st_ref_set(x_2, x_920, x_922); +lean_dec(x_2); +x_943 = !lean_is_exclusive(x_942); +if (x_943 == 0) +{ +lean_object* x_944; +x_944 = lean_ctor_get(x_942, 0); +lean_dec(x_944); +lean_ctor_set(x_918, 1, x_3); +lean_ctor_set(x_918, 0, x_1); +lean_ctor_set(x_942, 0, x_918); +return x_942; +} +else +{ +lean_object* x_945; lean_object* x_946; +x_945 = lean_ctor_get(x_942, 1); +lean_inc(x_945); +lean_dec(x_942); +lean_ctor_set(x_918, 1, x_3); +lean_ctor_set(x_918, 0, x_1); +x_946 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_946, 0, x_918); +lean_ctor_set(x_946, 1, x_945); +return x_946; +} +} +else +{ +lean_object* x_947; uint8_t x_948; +lean_ctor_set(x_920, 1, x_934); +lean_ctor_set(x_920, 0, x_932); +x_947 = lean_st_ref_set(x_2, x_920, x_922); +lean_dec(x_2); +x_948 = !lean_is_exclusive(x_947); +if (x_948 == 0) +{ +lean_object* x_949; +x_949 = lean_ctor_get(x_947, 0); +lean_dec(x_949); +lean_ctor_set(x_918, 1, x_3); +lean_ctor_set(x_918, 0, x_1); +lean_ctor_set(x_947, 0, x_918); +return x_947; +} +else +{ +lean_object* x_950; lean_object* x_951; +x_950 = lean_ctor_get(x_947, 1); +lean_inc(x_950); +lean_dec(x_947); +lean_ctor_set(x_918, 1, x_3); +lean_ctor_set(x_918, 0, x_1); +x_951 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_951, 0, x_918); +lean_ctor_set(x_951, 1, x_950); +return x_951; +} +} +} +else +{ +lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; lean_object* x_956; uint8_t x_957; +x_952 = lean_box(0); +x_953 = lean_array_uset(x_924, x_928, x_952); +lean_inc_n(x_1, 2); +x_954 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1, x_929); +x_955 = lean_array_uset(x_953, x_928, x_954); +lean_ctor_set(x_920, 1, x_955); +x_956 = lean_st_ref_set(x_2, x_920, x_922); +lean_dec(x_2); +x_957 = !lean_is_exclusive(x_956); +if (x_957 == 0) +{ +lean_object* x_958; +x_958 = lean_ctor_get(x_956, 0); +lean_dec(x_958); +lean_ctor_set(x_918, 1, x_3); +lean_ctor_set(x_918, 0, x_1); +lean_ctor_set(x_956, 0, x_918); +return x_956; +} +else +{ +lean_object* x_959; lean_object* x_960; +x_959 = lean_ctor_get(x_956, 1); +lean_inc(x_959); +lean_dec(x_956); +lean_ctor_set(x_918, 1, x_3); +lean_ctor_set(x_918, 0, x_1); +x_960 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_960, 0, x_918); +lean_ctor_set(x_960, 1, x_959); +return x_960; +} +} +} +else +{ +lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; size_t x_965; size_t x_966; size_t x_967; lean_object* x_968; uint8_t x_969; +x_961 = lean_ctor_get(x_918, 1); +x_962 = lean_ctor_get(x_920, 0); +x_963 = lean_ctor_get(x_920, 1); +lean_inc(x_963); +lean_inc(x_962); +lean_dec(x_920); +x_964 = lean_array_get_size(x_963); +x_965 = lean_usize_of_nat(x_964); +lean_dec(x_964); +x_966 = lean_usize_sub(x_965, x_347); +x_967 = lean_usize_land(x_345, x_966); +x_968 = lean_array_uget(x_963, x_967); +x_969 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_968); +if (x_969 == 0) +{ +lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; lean_object* x_974; lean_object* x_975; lean_object* x_976; lean_object* x_977; lean_object* x_978; uint8_t x_979; +x_970 = lean_unsigned_to_nat(1u); +x_971 = lean_nat_add(x_962, x_970); +lean_dec(x_962); +lean_inc_n(x_1, 2); +x_972 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_972, 0, x_1); +lean_ctor_set(x_972, 1, x_1); +lean_ctor_set(x_972, 2, x_968); +x_973 = lean_array_uset(x_963, x_967, x_972); +x_974 = lean_unsigned_to_nat(4u); +x_975 = lean_nat_mul(x_971, x_974); +x_976 = lean_unsigned_to_nat(3u); +x_977 = lean_nat_div(x_975, x_976); +lean_dec(x_975); +x_978 = lean_array_get_size(x_973); +x_979 = lean_nat_dec_le(x_977, x_978); +lean_dec(x_978); +lean_dec(x_977); +if (x_979 == 0) +{ +lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; +x_980 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_973); +x_981 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_981, 0, x_971); +lean_ctor_set(x_981, 1, x_980); +x_982 = lean_st_ref_set(x_2, x_981, x_961); +lean_dec(x_2); +x_983 = lean_ctor_get(x_982, 1); +lean_inc(x_983); +if (lean_is_exclusive(x_982)) { + lean_ctor_release(x_982, 0); + lean_ctor_release(x_982, 1); + x_984 = x_982; +} else { + lean_dec_ref(x_982); + x_984 = lean_box(0); +} +lean_ctor_set(x_918, 1, x_3); +lean_ctor_set(x_918, 0, x_1); +if (lean_is_scalar(x_984)) { + x_985 = lean_alloc_ctor(0, 2, 0); +} else { + x_985 = x_984; +} +lean_ctor_set(x_985, 0, x_918); +lean_ctor_set(x_985, 1, x_983); +return x_985; +} +else +{ +lean_object* x_986; lean_object* x_987; lean_object* x_988; lean_object* x_989; lean_object* x_990; +x_986 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_986, 0, x_971); +lean_ctor_set(x_986, 1, x_973); +x_987 = lean_st_ref_set(x_2, x_986, x_961); +lean_dec(x_2); +x_988 = lean_ctor_get(x_987, 1); +lean_inc(x_988); +if (lean_is_exclusive(x_987)) { + lean_ctor_release(x_987, 0); + lean_ctor_release(x_987, 1); + x_989 = x_987; +} else { + lean_dec_ref(x_987); + x_989 = lean_box(0); +} +lean_ctor_set(x_918, 1, x_3); +lean_ctor_set(x_918, 0, x_1); +if (lean_is_scalar(x_989)) { + x_990 = lean_alloc_ctor(0, 2, 0); +} else { + x_990 = x_989; +} +lean_ctor_set(x_990, 0, x_918); +lean_ctor_set(x_990, 1, x_988); +return x_990; +} +} +else +{ +lean_object* x_991; lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; lean_object* x_997; lean_object* x_998; lean_object* x_999; +x_991 = lean_box(0); +x_992 = lean_array_uset(x_963, x_967, x_991); +lean_inc_n(x_1, 2); +x_993 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1, x_968); +x_994 = lean_array_uset(x_992, x_967, x_993); +x_995 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_995, 0, x_962); +lean_ctor_set(x_995, 1, x_994); +x_996 = lean_st_ref_set(x_2, x_995, x_961); +lean_dec(x_2); +x_997 = lean_ctor_get(x_996, 1); +lean_inc(x_997); +if (lean_is_exclusive(x_996)) { + lean_ctor_release(x_996, 0); + lean_ctor_release(x_996, 1); + x_998 = x_996; +} else { + lean_dec_ref(x_996); + x_998 = lean_box(0); +} +lean_ctor_set(x_918, 1, x_3); +lean_ctor_set(x_918, 0, x_1); +if (lean_is_scalar(x_998)) { + x_999 = lean_alloc_ctor(0, 2, 0); +} else { + x_999 = x_998; +} +lean_ctor_set(x_999, 0, x_918); +lean_ctor_set(x_999, 1, x_997); +return x_999; +} +} +} +else +{ +lean_object* x_1000; lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; lean_object* x_1004; lean_object* x_1005; size_t x_1006; size_t x_1007; size_t x_1008; lean_object* x_1009; uint8_t x_1010; +x_1000 = lean_ctor_get(x_918, 0); +x_1001 = lean_ctor_get(x_918, 1); +lean_inc(x_1001); +lean_inc(x_1000); +lean_dec(x_918); +x_1002 = lean_ctor_get(x_1000, 0); +lean_inc(x_1002); +x_1003 = lean_ctor_get(x_1000, 1); +lean_inc(x_1003); +if (lean_is_exclusive(x_1000)) { + lean_ctor_release(x_1000, 0); + lean_ctor_release(x_1000, 1); + x_1004 = x_1000; +} else { + lean_dec_ref(x_1000); + x_1004 = lean_box(0); +} +x_1005 = lean_array_get_size(x_1003); +x_1006 = lean_usize_of_nat(x_1005); +lean_dec(x_1005); +x_1007 = lean_usize_sub(x_1006, x_347); +x_1008 = lean_usize_land(x_345, x_1007); +x_1009 = lean_array_uget(x_1003, x_1008); +x_1010 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_1009); +if (x_1010 == 0) +{ +lean_object* x_1011; lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; uint8_t x_1020; +x_1011 = lean_unsigned_to_nat(1u); +x_1012 = lean_nat_add(x_1002, x_1011); +lean_dec(x_1002); +lean_inc_n(x_1, 2); +x_1013 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1013, 0, x_1); +lean_ctor_set(x_1013, 1, x_1); +lean_ctor_set(x_1013, 2, x_1009); +x_1014 = lean_array_uset(x_1003, x_1008, x_1013); +x_1015 = lean_unsigned_to_nat(4u); +x_1016 = lean_nat_mul(x_1012, x_1015); +x_1017 = lean_unsigned_to_nat(3u); +x_1018 = lean_nat_div(x_1016, x_1017); +lean_dec(x_1016); +x_1019 = lean_array_get_size(x_1014); +x_1020 = lean_nat_dec_le(x_1018, x_1019); +lean_dec(x_1019); +lean_dec(x_1018); +if (x_1020 == 0) +{ +lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; +x_1021 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_1014); +if (lean_is_scalar(x_1004)) { + x_1022 = lean_alloc_ctor(0, 2, 0); +} else { + x_1022 = x_1004; +} +lean_ctor_set(x_1022, 0, x_1012); +lean_ctor_set(x_1022, 1, x_1021); +x_1023 = lean_st_ref_set(x_2, x_1022, x_1001); +lean_dec(x_2); +x_1024 = lean_ctor_get(x_1023, 1); +lean_inc(x_1024); +if (lean_is_exclusive(x_1023)) { + lean_ctor_release(x_1023, 0); + lean_ctor_release(x_1023, 1); + x_1025 = x_1023; +} else { + lean_dec_ref(x_1023); + x_1025 = lean_box(0); +} +x_1026 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1026, 0, x_1); +lean_ctor_set(x_1026, 1, x_3); +if (lean_is_scalar(x_1025)) { + x_1027 = lean_alloc_ctor(0, 2, 0); +} else { + x_1027 = x_1025; +} +lean_ctor_set(x_1027, 0, x_1026); +lean_ctor_set(x_1027, 1, x_1024); +return x_1027; +} +else +{ +lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; lean_object* x_1032; lean_object* x_1033; +if (lean_is_scalar(x_1004)) { + x_1028 = lean_alloc_ctor(0, 2, 0); +} else { + x_1028 = x_1004; +} +lean_ctor_set(x_1028, 0, x_1012); +lean_ctor_set(x_1028, 1, x_1014); +x_1029 = lean_st_ref_set(x_2, x_1028, x_1001); +lean_dec(x_2); +x_1030 = lean_ctor_get(x_1029, 1); +lean_inc(x_1030); +if (lean_is_exclusive(x_1029)) { + lean_ctor_release(x_1029, 0); + lean_ctor_release(x_1029, 1); + x_1031 = x_1029; +} else { + lean_dec_ref(x_1029); + x_1031 = lean_box(0); +} +x_1032 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1032, 0, x_1); +lean_ctor_set(x_1032, 1, x_3); +if (lean_is_scalar(x_1031)) { + x_1033 = lean_alloc_ctor(0, 2, 0); +} else { + x_1033 = x_1031; +} +lean_ctor_set(x_1033, 0, x_1032); +lean_ctor_set(x_1033, 1, x_1030); +return x_1033; +} +} +else +{ +lean_object* x_1034; lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; lean_object* x_1042; lean_object* x_1043; +x_1034 = lean_box(0); +x_1035 = lean_array_uset(x_1003, x_1008, x_1034); +lean_inc_n(x_1, 2); +x_1036 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1, x_1009); +x_1037 = lean_array_uset(x_1035, x_1008, x_1036); +if (lean_is_scalar(x_1004)) { + x_1038 = lean_alloc_ctor(0, 2, 0); +} else { + x_1038 = x_1004; +} +lean_ctor_set(x_1038, 0, x_1002); +lean_ctor_set(x_1038, 1, x_1037); +x_1039 = lean_st_ref_set(x_2, x_1038, x_1001); +lean_dec(x_2); +x_1040 = lean_ctor_get(x_1039, 1); +lean_inc(x_1040); +if (lean_is_exclusive(x_1039)) { + lean_ctor_release(x_1039, 0); + lean_ctor_release(x_1039, 1); + x_1041 = x_1039; +} else { + lean_dec_ref(x_1039); + x_1041 = lean_box(0); +} +x_1042 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1042, 0, x_1); +lean_ctor_set(x_1042, 1, x_3); +if (lean_is_scalar(x_1041)) { + x_1043 = lean_alloc_ctor(0, 2, 0); +} else { + x_1043 = x_1041; +} +lean_ctor_set(x_1043, 0, x_1042); +lean_ctor_set(x_1043, 1, x_1040); +return x_1043; +} +} +} +} +} +else +{ +lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; lean_object* x_1049; +x_1044 = l_Lean_Expr_appFn_x21(x_1); +x_1045 = l_Lean_Expr_appFn_x21(x_1044); +x_1046 = l_Lean_Expr_appArg_x21(x_1045); +lean_dec(x_1045); +x_1047 = l_Lean_Expr_appArg_x21(x_1044); +lean_dec(x_1044); +x_1048 = l_Lean_Expr_appArg_x21(x_1); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1049 = l_Lean_Expr_resolveBinderNameHint_go(x_1048, x_2, x_3, x_4, x_5, x_334); +if (lean_obj_tag(x_1049) == 0) +{ +lean_object* x_1050; +x_1050 = lean_ctor_get(x_1049, 0); +lean_inc(x_1050); +if (lean_obj_tag(x_1046) == 0) +{ +lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; +x_1051 = lean_ctor_get(x_1049, 1); +lean_inc(x_1051); +lean_dec(x_1049); +x_1052 = lean_ctor_get(x_1050, 0); +lean_inc(x_1052); +x_1053 = lean_ctor_get(x_1050, 1); +lean_inc(x_1053); +lean_dec(x_1050); +x_1054 = lean_ctor_get(x_1046, 0); +lean_inc(x_1054); +lean_dec(x_1046); +x_1055 = l_Lean_Expr_headBeta(x_1047); +switch (lean_obj_tag(x_1055)) { +case 6: +{ +lean_object* x_1056; lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; +x_1056 = lean_ctor_get(x_1055, 0); +lean_inc(x_1056); +lean_dec(x_1055); +x_1057 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1054, x_1056, x_1053); +lean_dec(x_1054); +x_1058 = lean_box(0); +x_1059 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1052, x_1058, x_2, x_1057, x_4, x_5, x_1051); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1059; +goto block_329; +} +case 7: +{ +lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; +x_1060 = lean_ctor_get(x_1055, 0); +lean_inc(x_1060); +lean_dec(x_1055); +x_1061 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1054, x_1060, x_1053); +lean_dec(x_1054); +x_1062 = lean_box(0); +x_1063 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1052, x_1062, x_2, x_1061, x_4, x_5, x_1051); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1063; +goto block_329; +} +default: +{ +lean_object* x_1064; uint8_t x_1065; +lean_dec(x_1055); +x_1064 = lean_array_get_size(x_1053); +x_1065 = lean_nat_dec_lt(x_1054, x_1064); +if (x_1065 == 0) +{ +lean_object* x_1066; lean_object* x_1067; +lean_dec(x_1064); +lean_dec(x_1054); +lean_dec(x_1052); +x_1066 = l_Lean_Expr_resolveBinderNameHint_go___closed__4; +lean_inc(x_2); +x_1067 = l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1(x_1066, x_2, x_1053, x_4, x_5, x_1051); +x_166 = x_1067; +goto block_329; +} +else +{ +lean_object* x_1068; lean_object* x_1069; lean_object* x_1070; uint8_t x_1071; +x_1068 = lean_nat_sub(x_1064, x_1054); +x_1069 = lean_unsigned_to_nat(1u); +x_1070 = lean_nat_sub(x_1068, x_1069); +lean_dec(x_1068); +x_1071 = lean_nat_dec_lt(x_1070, x_1064); +lean_dec(x_1064); +if (x_1071 == 0) +{ +lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; +lean_dec(x_1070); +x_1072 = l_Lean_instInhabitedName; +x_1073 = l_outOfBounds___rarg(x_1072); +x_1074 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_1073, x_4, x_5, x_1051); +x_1075 = lean_ctor_get(x_1074, 0); +lean_inc(x_1075); +x_1076 = lean_ctor_get(x_1074, 1); +lean_inc(x_1076); +lean_dec(x_1074); +x_1077 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1054, x_1075, x_1053); +lean_dec(x_1054); +x_1078 = lean_box(0); +x_1079 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1052, x_1078, x_2, x_1077, x_4, x_5, x_1076); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1079; +goto block_329; +} +else +{ +lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; +x_1080 = lean_array_fget(x_1053, x_1070); +lean_dec(x_1070); +x_1081 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_1080, x_4, x_5, x_1051); +x_1082 = lean_ctor_get(x_1081, 0); +lean_inc(x_1082); +x_1083 = lean_ctor_get(x_1081, 1); +lean_inc(x_1083); +lean_dec(x_1081); +x_1084 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1054, x_1082, x_1053); +lean_dec(x_1054); +x_1085 = lean_box(0); +x_1086 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1052, x_1085, x_2, x_1084, x_4, x_5, x_1083); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1086; +goto block_329; +} +} +} +} +} +else +{ +lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; +lean_dec(x_1047); +lean_dec(x_1046); +x_1087 = lean_ctor_get(x_1049, 1); +lean_inc(x_1087); +lean_dec(x_1049); +x_1088 = lean_ctor_get(x_1050, 0); +lean_inc(x_1088); +x_1089 = lean_ctor_get(x_1050, 1); +lean_inc(x_1089); +lean_dec(x_1050); +x_1090 = lean_box(0); +x_1091 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1088, x_1090, x_2, x_1089, x_4, x_5, x_1087); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1091; +goto block_329; +} +} +else +{ +uint8_t x_1092; +lean_dec(x_1047); +lean_dec(x_1046); +lean_dec(x_5); +lean_dec(x_4); +x_1092 = !lean_is_exclusive(x_1049); +if (x_1092 == 0) +{ +x_166 = x_1049; +goto block_329; +} +else +{ +lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; +x_1093 = lean_ctor_get(x_1049, 0); +x_1094 = lean_ctor_get(x_1049, 1); +lean_inc(x_1094); +lean_inc(x_1093); +lean_dec(x_1049); +x_1095 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_1095, 0, x_1093); +lean_ctor_set(x_1095, 1, x_1094); +x_166 = x_1095; +goto block_329; +} +} +} +} +else +{ +lean_object* x_1096; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1096 = lean_ctor_get(x_351, 0); +lean_inc(x_1096); +lean_dec(x_351); +lean_ctor_set(x_332, 1, x_3); +lean_ctor_set(x_332, 0, x_1096); +return x_330; +} +} +else +{ +lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; uint64_t x_1100; uint64_t x_1101; uint64_t x_1102; uint64_t x_1103; uint64_t x_1104; uint64_t x_1105; uint64_t x_1106; size_t x_1107; size_t x_1108; size_t x_1109; size_t x_1110; size_t x_1111; lean_object* x_1112; lean_object* x_1113; +x_1097 = lean_ctor_get(x_330, 1); +x_1098 = lean_ctor_get(x_332, 1); +lean_inc(x_1098); +lean_dec(x_332); +x_1099 = lean_array_get_size(x_1098); +x_1100 = l_Lean_Expr_hash(x_1); +x_1101 = 32; +x_1102 = lean_uint64_shift_right(x_1100, x_1101); +x_1103 = lean_uint64_xor(x_1100, x_1102); +x_1104 = 16; +x_1105 = lean_uint64_shift_right(x_1103, x_1104); +x_1106 = lean_uint64_xor(x_1103, x_1105); +x_1107 = lean_uint64_to_usize(x_1106); +x_1108 = lean_usize_of_nat(x_1099); +lean_dec(x_1099); +x_1109 = 1; +x_1110 = lean_usize_sub(x_1108, x_1109); +x_1111 = lean_usize_land(x_1107, x_1110); +x_1112 = lean_array_uget(x_1098, x_1111); +lean_dec(x_1098); +x_1113 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_1, x_1112); +lean_dec(x_1112); +if (lean_obj_tag(x_1113) == 0) +{ +lean_object* x_1114; lean_object* x_1115; uint8_t x_1116; +lean_free_object(x_330); +x_1114 = l_Lean_Expr_hasBinderNameHint___lambda__1___closed__2; +x_1115 = lean_unsigned_to_nat(6u); +x_1116 = l_Lean_Expr_isAppOfArity(x_1, x_1114, x_1115); +if (x_1116 == 0) +{ +switch (lean_obj_tag(x_1)) { +case 5: +{ +lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; +x_1117 = lean_ctor_get(x_1, 0); +lean_inc(x_1117); +x_1118 = lean_ctor_get(x_1, 1); +lean_inc(x_1118); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1117); +x_1119 = l_Lean_Expr_resolveBinderNameHint_go(x_1117, x_2, x_3, x_4, x_5, x_1097); +if (lean_obj_tag(x_1119) == 0) +{ +lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; +x_1120 = lean_ctor_get(x_1119, 0); +lean_inc(x_1120); +x_1121 = lean_ctor_get(x_1119, 1); +lean_inc(x_1121); +lean_dec(x_1119); +x_1122 = lean_ctor_get(x_1120, 0); +lean_inc(x_1122); +x_1123 = lean_ctor_get(x_1120, 1); +lean_inc(x_1123); +lean_dec(x_1120); +lean_inc(x_2); +lean_inc(x_1118); +x_1124 = l_Lean_Expr_resolveBinderNameHint_go(x_1118, x_2, x_1123, x_4, x_5, x_1121); +if (lean_obj_tag(x_1124) == 0) +{ +lean_object* x_1125; lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; size_t x_1130; size_t x_1131; uint8_t x_1132; +x_1125 = lean_ctor_get(x_1124, 0); +lean_inc(x_1125); +x_1126 = lean_ctor_get(x_1124, 1); +lean_inc(x_1126); +lean_dec(x_1124); +x_1127 = lean_ctor_get(x_1125, 0); +lean_inc(x_1127); +x_1128 = lean_ctor_get(x_1125, 1); +lean_inc(x_1128); +if (lean_is_exclusive(x_1125)) { + lean_ctor_release(x_1125, 0); + lean_ctor_release(x_1125, 1); + x_1129 = x_1125; +} else { + lean_dec_ref(x_1125); + x_1129 = lean_box(0); +} +x_1130 = lean_ptr_addr(x_1117); +lean_dec(x_1117); +x_1131 = lean_ptr_addr(x_1122); +x_1132 = lean_usize_dec_eq(x_1130, x_1131); +if (x_1132 == 0) +{ +lean_object* x_1133; lean_object* x_1134; +lean_dec(x_1118); +x_1133 = l_Lean_Expr_app___override(x_1122, x_1127); +if (lean_is_scalar(x_1129)) { + x_1134 = lean_alloc_ctor(0, 2, 0); +} else { + x_1134 = x_1129; +} +lean_ctor_set(x_1134, 0, x_1133); +lean_ctor_set(x_1134, 1, x_1128); +x_7 = x_1134; +x_8 = x_1126; +goto block_165; +} +else +{ +size_t x_1135; size_t x_1136; uint8_t x_1137; +x_1135 = lean_ptr_addr(x_1118); +lean_dec(x_1118); +x_1136 = lean_ptr_addr(x_1127); +x_1137 = lean_usize_dec_eq(x_1135, x_1136); +if (x_1137 == 0) +{ +lean_object* x_1138; lean_object* x_1139; +x_1138 = l_Lean_Expr_app___override(x_1122, x_1127); +if (lean_is_scalar(x_1129)) { + x_1139 = lean_alloc_ctor(0, 2, 0); +} else { + x_1139 = x_1129; +} +lean_ctor_set(x_1139, 0, x_1138); +lean_ctor_set(x_1139, 1, x_1128); +x_7 = x_1139; +x_8 = x_1126; +goto block_165; +} +else +{ +lean_object* x_1140; +lean_dec(x_1127); +lean_dec(x_1122); +lean_inc(x_1); +if (lean_is_scalar(x_1129)) { + x_1140 = lean_alloc_ctor(0, 2, 0); +} else { + x_1140 = x_1129; +} +lean_ctor_set(x_1140, 0, x_1); +lean_ctor_set(x_1140, 1, x_1128); +x_7 = x_1140; +x_8 = x_1126; +goto block_165; +} +} +} +else +{ +lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; +lean_dec(x_1122); +lean_dec(x_1118); +lean_dec(x_1117); +lean_dec(x_2); +lean_dec(x_1); +x_1141 = lean_ctor_get(x_1124, 0); +lean_inc(x_1141); +x_1142 = lean_ctor_get(x_1124, 1); +lean_inc(x_1142); +if (lean_is_exclusive(x_1124)) { + lean_ctor_release(x_1124, 0); + lean_ctor_release(x_1124, 1); + x_1143 = x_1124; +} else { + lean_dec_ref(x_1124); + x_1143 = lean_box(0); +} +if (lean_is_scalar(x_1143)) { + x_1144 = lean_alloc_ctor(1, 2, 0); +} else { + x_1144 = x_1143; +} +lean_ctor_set(x_1144, 0, x_1141); +lean_ctor_set(x_1144, 1, x_1142); +return x_1144; +} +} +else +{ +lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; +lean_dec(x_1118); +lean_dec(x_1117); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1145 = lean_ctor_get(x_1119, 0); +lean_inc(x_1145); +x_1146 = lean_ctor_get(x_1119, 1); +lean_inc(x_1146); +if (lean_is_exclusive(x_1119)) { + lean_ctor_release(x_1119, 0); + lean_ctor_release(x_1119, 1); + x_1147 = x_1119; +} else { + lean_dec_ref(x_1119); + x_1147 = lean_box(0); +} +if (lean_is_scalar(x_1147)) { + x_1148 = lean_alloc_ctor(1, 2, 0); +} else { + x_1148 = x_1147; +} +lean_ctor_set(x_1148, 0, x_1145); +lean_ctor_set(x_1148, 1, x_1146); +return x_1148; +} +} +case 6: +{ +lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; uint8_t x_1152; lean_object* x_1153; +x_1149 = lean_ctor_get(x_1, 0); +lean_inc(x_1149); +x_1150 = lean_ctor_get(x_1, 1); +lean_inc(x_1150); +x_1151 = lean_ctor_get(x_1, 2); +lean_inc(x_1151); +x_1152 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1153 = l_Lean_Expr_resolveBinderNameHint_go(x_1150, x_2, x_3, x_4, x_5, x_1097); +if (lean_obj_tag(x_1153) == 0) +{ +lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; lean_object* x_1158; lean_object* x_1159; +x_1154 = lean_ctor_get(x_1153, 0); +lean_inc(x_1154); +x_1155 = lean_ctor_get(x_1153, 1); +lean_inc(x_1155); +lean_dec(x_1153); +x_1156 = lean_ctor_get(x_1154, 0); +lean_inc(x_1156); +x_1157 = lean_ctor_get(x_1154, 1); +lean_inc(x_1157); +lean_dec(x_1154); +x_1158 = lean_array_push(x_1157, x_1149); +lean_inc(x_2); +x_1159 = l_Lean_Expr_resolveBinderNameHint_go(x_1151, x_2, x_1158, x_4, x_5, x_1155); +if (lean_obj_tag(x_1159) == 0) +{ +lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; size_t x_1176; size_t x_1177; size_t x_1178; lean_object* x_1179; uint8_t x_1180; +x_1160 = lean_ctor_get(x_1159, 0); +lean_inc(x_1160); +x_1161 = lean_ctor_get(x_1159, 1); +lean_inc(x_1161); +lean_dec(x_1159); +x_1162 = lean_ctor_get(x_1160, 0); +lean_inc(x_1162); +x_1163 = lean_ctor_get(x_1160, 1); +lean_inc(x_1163); +lean_dec(x_1160); +x_1164 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(x_1163); +x_1165 = lean_ctor_get(x_1164, 0); +lean_inc(x_1165); +x_1166 = lean_ctor_get(x_1164, 1); +lean_inc(x_1166); +if (lean_is_exclusive(x_1164)) { + lean_ctor_release(x_1164, 0); + lean_ctor_release(x_1164, 1); + x_1167 = x_1164; +} else { + lean_dec_ref(x_1164); + x_1167 = lean_box(0); +} +x_1168 = l_Lean_Expr_lam___override(x_1165, x_1156, x_1162, x_1152); +x_1169 = lean_st_ref_take(x_2, x_1161); +x_1170 = lean_ctor_get(x_1169, 0); +lean_inc(x_1170); +x_1171 = lean_ctor_get(x_1169, 1); +lean_inc(x_1171); +lean_dec(x_1169); +x_1172 = lean_ctor_get(x_1170, 0); +lean_inc(x_1172); +x_1173 = lean_ctor_get(x_1170, 1); +lean_inc(x_1173); +if (lean_is_exclusive(x_1170)) { + lean_ctor_release(x_1170, 0); + lean_ctor_release(x_1170, 1); + x_1174 = x_1170; +} else { + lean_dec_ref(x_1170); + x_1174 = lean_box(0); +} +x_1175 = lean_array_get_size(x_1173); +x_1176 = lean_usize_of_nat(x_1175); +lean_dec(x_1175); +x_1177 = lean_usize_sub(x_1176, x_1109); +x_1178 = lean_usize_land(x_1107, x_1177); +x_1179 = lean_array_uget(x_1173, x_1178); +x_1180 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_1179); +if (x_1180 == 0) +{ +lean_object* x_1181; lean_object* x_1182; lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; lean_object* x_1186; lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; uint8_t x_1190; +x_1181 = lean_unsigned_to_nat(1u); +x_1182 = lean_nat_add(x_1172, x_1181); +lean_dec(x_1172); +lean_inc(x_1168); +x_1183 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1183, 0, x_1); +lean_ctor_set(x_1183, 1, x_1168); +lean_ctor_set(x_1183, 2, x_1179); +x_1184 = lean_array_uset(x_1173, x_1178, x_1183); +x_1185 = lean_unsigned_to_nat(4u); +x_1186 = lean_nat_mul(x_1182, x_1185); +x_1187 = lean_unsigned_to_nat(3u); +x_1188 = lean_nat_div(x_1186, x_1187); +lean_dec(x_1186); +x_1189 = lean_array_get_size(x_1184); +x_1190 = lean_nat_dec_le(x_1188, x_1189); +lean_dec(x_1189); +lean_dec(x_1188); +if (x_1190 == 0) +{ +lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; +x_1191 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_1184); +if (lean_is_scalar(x_1174)) { + x_1192 = lean_alloc_ctor(0, 2, 0); +} else { + x_1192 = x_1174; +} +lean_ctor_set(x_1192, 0, x_1182); +lean_ctor_set(x_1192, 1, x_1191); +x_1193 = lean_st_ref_set(x_2, x_1192, x_1171); +lean_dec(x_2); +x_1194 = lean_ctor_get(x_1193, 1); +lean_inc(x_1194); +if (lean_is_exclusive(x_1193)) { + lean_ctor_release(x_1193, 0); + lean_ctor_release(x_1193, 1); + x_1195 = x_1193; +} else { + lean_dec_ref(x_1193); + x_1195 = lean_box(0); +} +if (lean_is_scalar(x_1167)) { + x_1196 = lean_alloc_ctor(0, 2, 0); +} else { + x_1196 = x_1167; +} +lean_ctor_set(x_1196, 0, x_1168); +lean_ctor_set(x_1196, 1, x_1166); +if (lean_is_scalar(x_1195)) { + x_1197 = lean_alloc_ctor(0, 2, 0); +} else { + x_1197 = x_1195; +} +lean_ctor_set(x_1197, 0, x_1196); +lean_ctor_set(x_1197, 1, x_1194); +return x_1197; +} +else +{ +lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; lean_object* x_1203; +if (lean_is_scalar(x_1174)) { + x_1198 = lean_alloc_ctor(0, 2, 0); +} else { + x_1198 = x_1174; +} +lean_ctor_set(x_1198, 0, x_1182); +lean_ctor_set(x_1198, 1, x_1184); +x_1199 = lean_st_ref_set(x_2, x_1198, x_1171); +lean_dec(x_2); +x_1200 = lean_ctor_get(x_1199, 1); +lean_inc(x_1200); +if (lean_is_exclusive(x_1199)) { + lean_ctor_release(x_1199, 0); + lean_ctor_release(x_1199, 1); + x_1201 = x_1199; +} else { + lean_dec_ref(x_1199); + x_1201 = lean_box(0); +} +if (lean_is_scalar(x_1167)) { + x_1202 = lean_alloc_ctor(0, 2, 0); +} else { + x_1202 = x_1167; +} +lean_ctor_set(x_1202, 0, x_1168); +lean_ctor_set(x_1202, 1, x_1166); +if (lean_is_scalar(x_1201)) { + x_1203 = lean_alloc_ctor(0, 2, 0); +} else { + x_1203 = x_1201; +} +lean_ctor_set(x_1203, 0, x_1202); +lean_ctor_set(x_1203, 1, x_1200); +return x_1203; +} +} +else +{ +lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; lean_object* x_1207; lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; +x_1204 = lean_box(0); +x_1205 = lean_array_uset(x_1173, x_1178, x_1204); +lean_inc(x_1168); +x_1206 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1168, x_1179); +x_1207 = lean_array_uset(x_1205, x_1178, x_1206); +if (lean_is_scalar(x_1174)) { + x_1208 = lean_alloc_ctor(0, 2, 0); +} else { + x_1208 = x_1174; +} +lean_ctor_set(x_1208, 0, x_1172); +lean_ctor_set(x_1208, 1, x_1207); +x_1209 = lean_st_ref_set(x_2, x_1208, x_1171); +lean_dec(x_2); +x_1210 = lean_ctor_get(x_1209, 1); +lean_inc(x_1210); +if (lean_is_exclusive(x_1209)) { + lean_ctor_release(x_1209, 0); + lean_ctor_release(x_1209, 1); + x_1211 = x_1209; +} else { + lean_dec_ref(x_1209); + x_1211 = lean_box(0); +} +if (lean_is_scalar(x_1167)) { + x_1212 = lean_alloc_ctor(0, 2, 0); +} else { + x_1212 = x_1167; +} +lean_ctor_set(x_1212, 0, x_1168); +lean_ctor_set(x_1212, 1, x_1166); +if (lean_is_scalar(x_1211)) { + x_1213 = lean_alloc_ctor(0, 2, 0); +} else { + x_1213 = x_1211; +} +lean_ctor_set(x_1213, 0, x_1212); +lean_ctor_set(x_1213, 1, x_1210); +return x_1213; +} +} +else +{ +lean_object* x_1214; lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; +lean_dec(x_1156); +lean_dec(x_2); +lean_dec(x_1); +x_1214 = lean_ctor_get(x_1159, 0); +lean_inc(x_1214); +x_1215 = lean_ctor_get(x_1159, 1); +lean_inc(x_1215); +if (lean_is_exclusive(x_1159)) { + lean_ctor_release(x_1159, 0); + lean_ctor_release(x_1159, 1); + x_1216 = x_1159; +} else { + lean_dec_ref(x_1159); + x_1216 = lean_box(0); +} +if (lean_is_scalar(x_1216)) { + x_1217 = lean_alloc_ctor(1, 2, 0); +} else { + x_1217 = x_1216; +} +lean_ctor_set(x_1217, 0, x_1214); +lean_ctor_set(x_1217, 1, x_1215); +return x_1217; +} +} +else +{ +lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; +lean_dec(x_1151); +lean_dec(x_1149); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1218 = lean_ctor_get(x_1153, 0); +lean_inc(x_1218); +x_1219 = lean_ctor_get(x_1153, 1); +lean_inc(x_1219); +if (lean_is_exclusive(x_1153)) { + lean_ctor_release(x_1153, 0); + lean_ctor_release(x_1153, 1); + x_1220 = x_1153; +} else { + lean_dec_ref(x_1153); + x_1220 = lean_box(0); +} +if (lean_is_scalar(x_1220)) { + x_1221 = lean_alloc_ctor(1, 2, 0); +} else { + x_1221 = x_1220; +} +lean_ctor_set(x_1221, 0, x_1218); +lean_ctor_set(x_1221, 1, x_1219); +return x_1221; +} +} +case 7: +{ +lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; uint8_t x_1225; lean_object* x_1226; +x_1222 = lean_ctor_get(x_1, 0); +lean_inc(x_1222); +x_1223 = lean_ctor_get(x_1, 1); +lean_inc(x_1223); +x_1224 = lean_ctor_get(x_1, 2); +lean_inc(x_1224); +x_1225 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1226 = l_Lean_Expr_resolveBinderNameHint_go(x_1223, x_2, x_3, x_4, x_5, x_1097); +if (lean_obj_tag(x_1226) == 0) +{ +lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; +x_1227 = lean_ctor_get(x_1226, 0); +lean_inc(x_1227); +x_1228 = lean_ctor_get(x_1226, 1); +lean_inc(x_1228); +lean_dec(x_1226); +x_1229 = lean_ctor_get(x_1227, 0); +lean_inc(x_1229); +x_1230 = lean_ctor_get(x_1227, 1); +lean_inc(x_1230); +lean_dec(x_1227); +x_1231 = lean_array_push(x_1230, x_1222); +lean_inc(x_2); +x_1232 = l_Lean_Expr_resolveBinderNameHint_go(x_1224, x_2, x_1231, x_4, x_5, x_1228); +if (lean_obj_tag(x_1232) == 0) +{ +lean_object* x_1233; lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; size_t x_1249; size_t x_1250; size_t x_1251; lean_object* x_1252; uint8_t x_1253; +x_1233 = lean_ctor_get(x_1232, 0); +lean_inc(x_1233); +x_1234 = lean_ctor_get(x_1232, 1); +lean_inc(x_1234); +lean_dec(x_1232); +x_1235 = lean_ctor_get(x_1233, 0); +lean_inc(x_1235); +x_1236 = lean_ctor_get(x_1233, 1); +lean_inc(x_1236); +lean_dec(x_1233); +x_1237 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(x_1236); +x_1238 = lean_ctor_get(x_1237, 0); +lean_inc(x_1238); +x_1239 = lean_ctor_get(x_1237, 1); +lean_inc(x_1239); +if (lean_is_exclusive(x_1237)) { + lean_ctor_release(x_1237, 0); + lean_ctor_release(x_1237, 1); + x_1240 = x_1237; +} else { + lean_dec_ref(x_1237); + x_1240 = lean_box(0); +} +x_1241 = l_Lean_Expr_forallE___override(x_1238, x_1229, x_1235, x_1225); +x_1242 = lean_st_ref_take(x_2, x_1234); +x_1243 = lean_ctor_get(x_1242, 0); +lean_inc(x_1243); +x_1244 = lean_ctor_get(x_1242, 1); +lean_inc(x_1244); +lean_dec(x_1242); +x_1245 = lean_ctor_get(x_1243, 0); +lean_inc(x_1245); +x_1246 = lean_ctor_get(x_1243, 1); +lean_inc(x_1246); +if (lean_is_exclusive(x_1243)) { + lean_ctor_release(x_1243, 0); + lean_ctor_release(x_1243, 1); + x_1247 = x_1243; +} else { + lean_dec_ref(x_1243); + x_1247 = lean_box(0); +} +x_1248 = lean_array_get_size(x_1246); +x_1249 = lean_usize_of_nat(x_1248); +lean_dec(x_1248); +x_1250 = lean_usize_sub(x_1249, x_1109); +x_1251 = lean_usize_land(x_1107, x_1250); +x_1252 = lean_array_uget(x_1246, x_1251); +x_1253 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_1252); +if (x_1253 == 0) +{ +lean_object* x_1254; lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; uint8_t x_1263; +x_1254 = lean_unsigned_to_nat(1u); +x_1255 = lean_nat_add(x_1245, x_1254); +lean_dec(x_1245); +lean_inc(x_1241); +x_1256 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1256, 0, x_1); +lean_ctor_set(x_1256, 1, x_1241); +lean_ctor_set(x_1256, 2, x_1252); +x_1257 = lean_array_uset(x_1246, x_1251, x_1256); +x_1258 = lean_unsigned_to_nat(4u); +x_1259 = lean_nat_mul(x_1255, x_1258); +x_1260 = lean_unsigned_to_nat(3u); +x_1261 = lean_nat_div(x_1259, x_1260); +lean_dec(x_1259); +x_1262 = lean_array_get_size(x_1257); +x_1263 = lean_nat_dec_le(x_1261, x_1262); +lean_dec(x_1262); +lean_dec(x_1261); +if (x_1263 == 0) +{ +lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; +x_1264 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_1257); +if (lean_is_scalar(x_1247)) { + x_1265 = lean_alloc_ctor(0, 2, 0); +} else { + x_1265 = x_1247; +} +lean_ctor_set(x_1265, 0, x_1255); +lean_ctor_set(x_1265, 1, x_1264); +x_1266 = lean_st_ref_set(x_2, x_1265, x_1244); +lean_dec(x_2); +x_1267 = lean_ctor_get(x_1266, 1); +lean_inc(x_1267); +if (lean_is_exclusive(x_1266)) { + lean_ctor_release(x_1266, 0); + lean_ctor_release(x_1266, 1); + x_1268 = x_1266; +} else { + lean_dec_ref(x_1266); + x_1268 = lean_box(0); +} +if (lean_is_scalar(x_1240)) { + x_1269 = lean_alloc_ctor(0, 2, 0); +} else { + x_1269 = x_1240; +} +lean_ctor_set(x_1269, 0, x_1241); +lean_ctor_set(x_1269, 1, x_1239); +if (lean_is_scalar(x_1268)) { + x_1270 = lean_alloc_ctor(0, 2, 0); +} else { + x_1270 = x_1268; +} +lean_ctor_set(x_1270, 0, x_1269); +lean_ctor_set(x_1270, 1, x_1267); +return x_1270; +} +else +{ +lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; +if (lean_is_scalar(x_1247)) { + x_1271 = lean_alloc_ctor(0, 2, 0); +} else { + x_1271 = x_1247; +} +lean_ctor_set(x_1271, 0, x_1255); +lean_ctor_set(x_1271, 1, x_1257); +x_1272 = lean_st_ref_set(x_2, x_1271, x_1244); +lean_dec(x_2); +x_1273 = lean_ctor_get(x_1272, 1); +lean_inc(x_1273); +if (lean_is_exclusive(x_1272)) { + lean_ctor_release(x_1272, 0); + lean_ctor_release(x_1272, 1); + x_1274 = x_1272; +} else { + lean_dec_ref(x_1272); + x_1274 = lean_box(0); +} +if (lean_is_scalar(x_1240)) { + x_1275 = lean_alloc_ctor(0, 2, 0); +} else { + x_1275 = x_1240; +} +lean_ctor_set(x_1275, 0, x_1241); +lean_ctor_set(x_1275, 1, x_1239); +if (lean_is_scalar(x_1274)) { + x_1276 = lean_alloc_ctor(0, 2, 0); +} else { + x_1276 = x_1274; +} +lean_ctor_set(x_1276, 0, x_1275); +lean_ctor_set(x_1276, 1, x_1273); +return x_1276; +} +} +else +{ +lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; lean_object* x_1286; +x_1277 = lean_box(0); +x_1278 = lean_array_uset(x_1246, x_1251, x_1277); +lean_inc(x_1241); +x_1279 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1241, x_1252); +x_1280 = lean_array_uset(x_1278, x_1251, x_1279); +if (lean_is_scalar(x_1247)) { + x_1281 = lean_alloc_ctor(0, 2, 0); +} else { + x_1281 = x_1247; +} +lean_ctor_set(x_1281, 0, x_1245); +lean_ctor_set(x_1281, 1, x_1280); +x_1282 = lean_st_ref_set(x_2, x_1281, x_1244); +lean_dec(x_2); +x_1283 = lean_ctor_get(x_1282, 1); +lean_inc(x_1283); +if (lean_is_exclusive(x_1282)) { + lean_ctor_release(x_1282, 0); + lean_ctor_release(x_1282, 1); + x_1284 = x_1282; +} else { + lean_dec_ref(x_1282); + x_1284 = lean_box(0); +} +if (lean_is_scalar(x_1240)) { + x_1285 = lean_alloc_ctor(0, 2, 0); +} else { + x_1285 = x_1240; +} +lean_ctor_set(x_1285, 0, x_1241); +lean_ctor_set(x_1285, 1, x_1239); +if (lean_is_scalar(x_1284)) { + x_1286 = lean_alloc_ctor(0, 2, 0); +} else { + x_1286 = x_1284; +} +lean_ctor_set(x_1286, 0, x_1285); +lean_ctor_set(x_1286, 1, x_1283); +return x_1286; +} +} +else +{ +lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; +lean_dec(x_1229); +lean_dec(x_2); +lean_dec(x_1); +x_1287 = lean_ctor_get(x_1232, 0); +lean_inc(x_1287); +x_1288 = lean_ctor_get(x_1232, 1); +lean_inc(x_1288); +if (lean_is_exclusive(x_1232)) { + lean_ctor_release(x_1232, 0); + lean_ctor_release(x_1232, 1); + x_1289 = x_1232; +} else { + lean_dec_ref(x_1232); + x_1289 = lean_box(0); +} +if (lean_is_scalar(x_1289)) { + x_1290 = lean_alloc_ctor(1, 2, 0); +} else { + x_1290 = x_1289; +} +lean_ctor_set(x_1290, 0, x_1287); +lean_ctor_set(x_1290, 1, x_1288); +return x_1290; +} +} +else +{ +lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; +lean_dec(x_1224); +lean_dec(x_1222); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1291 = lean_ctor_get(x_1226, 0); +lean_inc(x_1291); +x_1292 = lean_ctor_get(x_1226, 1); +lean_inc(x_1292); +if (lean_is_exclusive(x_1226)) { + lean_ctor_release(x_1226, 0); + lean_ctor_release(x_1226, 1); + x_1293 = x_1226; +} else { + lean_dec_ref(x_1226); + x_1293 = lean_box(0); +} +if (lean_is_scalar(x_1293)) { + x_1294 = lean_alloc_ctor(1, 2, 0); +} else { + x_1294 = x_1293; +} +lean_ctor_set(x_1294, 0, x_1291); +lean_ctor_set(x_1294, 1, x_1292); +return x_1294; +} +} +case 8: +{ +lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; lean_object* x_1298; uint8_t x_1299; lean_object* x_1300; +x_1295 = lean_ctor_get(x_1, 0); +lean_inc(x_1295); +x_1296 = lean_ctor_get(x_1, 1); +lean_inc(x_1296); +x_1297 = lean_ctor_get(x_1, 2); +lean_inc(x_1297); +x_1298 = lean_ctor_get(x_1, 3); +lean_inc(x_1298); +x_1299 = lean_ctor_get_uint8(x_1, sizeof(void*)*4 + 8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1300 = l_Lean_Expr_resolveBinderNameHint_go(x_1296, x_2, x_3, x_4, x_5, x_1097); +if (lean_obj_tag(x_1300) == 0) +{ +lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; +x_1301 = lean_ctor_get(x_1300, 0); +lean_inc(x_1301); +x_1302 = lean_ctor_get(x_1300, 1); +lean_inc(x_1302); +lean_dec(x_1300); +x_1303 = lean_ctor_get(x_1301, 0); +lean_inc(x_1303); +x_1304 = lean_ctor_get(x_1301, 1); +lean_inc(x_1304); +lean_dec(x_1301); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1305 = l_Lean_Expr_resolveBinderNameHint_go(x_1297, x_2, x_1304, x_4, x_5, x_1302); +if (lean_obj_tag(x_1305) == 0) +{ +lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; +x_1306 = lean_ctor_get(x_1305, 0); +lean_inc(x_1306); +x_1307 = lean_ctor_get(x_1305, 1); +lean_inc(x_1307); +lean_dec(x_1305); +x_1308 = lean_ctor_get(x_1306, 0); +lean_inc(x_1308); +x_1309 = lean_ctor_get(x_1306, 1); +lean_inc(x_1309); +lean_dec(x_1306); +x_1310 = lean_array_push(x_1309, x_1295); +lean_inc(x_2); +x_1311 = l_Lean_Expr_resolveBinderNameHint_go(x_1298, x_2, x_1310, x_4, x_5, x_1307); +if (lean_obj_tag(x_1311) == 0) +{ +lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; lean_object* x_1325; lean_object* x_1326; lean_object* x_1327; size_t x_1328; size_t x_1329; size_t x_1330; lean_object* x_1331; uint8_t x_1332; +x_1312 = lean_ctor_get(x_1311, 0); +lean_inc(x_1312); +x_1313 = lean_ctor_get(x_1311, 1); +lean_inc(x_1313); +lean_dec(x_1311); +x_1314 = lean_ctor_get(x_1312, 0); +lean_inc(x_1314); +x_1315 = lean_ctor_get(x_1312, 1); +lean_inc(x_1315); +lean_dec(x_1312); +x_1316 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(x_1315); +x_1317 = lean_ctor_get(x_1316, 0); +lean_inc(x_1317); +x_1318 = lean_ctor_get(x_1316, 1); +lean_inc(x_1318); +if (lean_is_exclusive(x_1316)) { + lean_ctor_release(x_1316, 0); + lean_ctor_release(x_1316, 1); + x_1319 = x_1316; +} else { + lean_dec_ref(x_1316); + x_1319 = lean_box(0); +} +x_1320 = l_Lean_Expr_letE___override(x_1317, x_1303, x_1308, x_1314, x_1299); +x_1321 = lean_st_ref_take(x_2, x_1313); +x_1322 = lean_ctor_get(x_1321, 0); +lean_inc(x_1322); +x_1323 = lean_ctor_get(x_1321, 1); +lean_inc(x_1323); +lean_dec(x_1321); +x_1324 = lean_ctor_get(x_1322, 0); +lean_inc(x_1324); +x_1325 = lean_ctor_get(x_1322, 1); +lean_inc(x_1325); +if (lean_is_exclusive(x_1322)) { + lean_ctor_release(x_1322, 0); + lean_ctor_release(x_1322, 1); + x_1326 = x_1322; +} else { + lean_dec_ref(x_1322); + x_1326 = lean_box(0); +} +x_1327 = lean_array_get_size(x_1325); +x_1328 = lean_usize_of_nat(x_1327); +lean_dec(x_1327); +x_1329 = lean_usize_sub(x_1328, x_1109); +x_1330 = lean_usize_land(x_1107, x_1329); +x_1331 = lean_array_uget(x_1325, x_1330); +x_1332 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_1331); +if (x_1332 == 0) +{ +lean_object* x_1333; lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; lean_object* x_1341; uint8_t x_1342; +x_1333 = lean_unsigned_to_nat(1u); +x_1334 = lean_nat_add(x_1324, x_1333); +lean_dec(x_1324); +lean_inc(x_1320); +x_1335 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1335, 0, x_1); +lean_ctor_set(x_1335, 1, x_1320); +lean_ctor_set(x_1335, 2, x_1331); +x_1336 = lean_array_uset(x_1325, x_1330, x_1335); +x_1337 = lean_unsigned_to_nat(4u); +x_1338 = lean_nat_mul(x_1334, x_1337); +x_1339 = lean_unsigned_to_nat(3u); +x_1340 = lean_nat_div(x_1338, x_1339); +lean_dec(x_1338); +x_1341 = lean_array_get_size(x_1336); +x_1342 = lean_nat_dec_le(x_1340, x_1341); +lean_dec(x_1341); +lean_dec(x_1340); +if (x_1342 == 0) +{ +lean_object* x_1343; lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; lean_object* x_1349; +x_1343 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_1336); +if (lean_is_scalar(x_1326)) { + x_1344 = lean_alloc_ctor(0, 2, 0); +} else { + x_1344 = x_1326; +} +lean_ctor_set(x_1344, 0, x_1334); +lean_ctor_set(x_1344, 1, x_1343); +x_1345 = lean_st_ref_set(x_2, x_1344, x_1323); +lean_dec(x_2); +x_1346 = lean_ctor_get(x_1345, 1); +lean_inc(x_1346); +if (lean_is_exclusive(x_1345)) { + lean_ctor_release(x_1345, 0); + lean_ctor_release(x_1345, 1); + x_1347 = x_1345; +} else { + lean_dec_ref(x_1345); + x_1347 = lean_box(0); +} +if (lean_is_scalar(x_1319)) { + x_1348 = lean_alloc_ctor(0, 2, 0); +} else { + x_1348 = x_1319; +} +lean_ctor_set(x_1348, 0, x_1320); +lean_ctor_set(x_1348, 1, x_1318); +if (lean_is_scalar(x_1347)) { + x_1349 = lean_alloc_ctor(0, 2, 0); +} else { + x_1349 = x_1347; +} +lean_ctor_set(x_1349, 0, x_1348); +lean_ctor_set(x_1349, 1, x_1346); +return x_1349; +} +else +{ +lean_object* x_1350; lean_object* x_1351; lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; +if (lean_is_scalar(x_1326)) { + x_1350 = lean_alloc_ctor(0, 2, 0); +} else { + x_1350 = x_1326; +} +lean_ctor_set(x_1350, 0, x_1334); +lean_ctor_set(x_1350, 1, x_1336); +x_1351 = lean_st_ref_set(x_2, x_1350, x_1323); +lean_dec(x_2); +x_1352 = lean_ctor_get(x_1351, 1); +lean_inc(x_1352); +if (lean_is_exclusive(x_1351)) { + lean_ctor_release(x_1351, 0); + lean_ctor_release(x_1351, 1); + x_1353 = x_1351; +} else { + lean_dec_ref(x_1351); + x_1353 = lean_box(0); +} +if (lean_is_scalar(x_1319)) { + x_1354 = lean_alloc_ctor(0, 2, 0); +} else { + x_1354 = x_1319; +} +lean_ctor_set(x_1354, 0, x_1320); +lean_ctor_set(x_1354, 1, x_1318); +if (lean_is_scalar(x_1353)) { + x_1355 = lean_alloc_ctor(0, 2, 0); +} else { + x_1355 = x_1353; +} +lean_ctor_set(x_1355, 0, x_1354); +lean_ctor_set(x_1355, 1, x_1352); +return x_1355; +} +} +else +{ +lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; +x_1356 = lean_box(0); +x_1357 = lean_array_uset(x_1325, x_1330, x_1356); +lean_inc(x_1320); +x_1358 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1320, x_1331); +x_1359 = lean_array_uset(x_1357, x_1330, x_1358); +if (lean_is_scalar(x_1326)) { + x_1360 = lean_alloc_ctor(0, 2, 0); +} else { + x_1360 = x_1326; +} +lean_ctor_set(x_1360, 0, x_1324); +lean_ctor_set(x_1360, 1, x_1359); +x_1361 = lean_st_ref_set(x_2, x_1360, x_1323); +lean_dec(x_2); +x_1362 = lean_ctor_get(x_1361, 1); +lean_inc(x_1362); +if (lean_is_exclusive(x_1361)) { + lean_ctor_release(x_1361, 0); + lean_ctor_release(x_1361, 1); + x_1363 = x_1361; +} else { + lean_dec_ref(x_1361); + x_1363 = lean_box(0); +} +if (lean_is_scalar(x_1319)) { + x_1364 = lean_alloc_ctor(0, 2, 0); +} else { + x_1364 = x_1319; +} +lean_ctor_set(x_1364, 0, x_1320); +lean_ctor_set(x_1364, 1, x_1318); +if (lean_is_scalar(x_1363)) { + x_1365 = lean_alloc_ctor(0, 2, 0); +} else { + x_1365 = x_1363; +} +lean_ctor_set(x_1365, 0, x_1364); +lean_ctor_set(x_1365, 1, x_1362); +return x_1365; +} +} +else +{ +lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; +lean_dec(x_1308); +lean_dec(x_1303); +lean_dec(x_2); +lean_dec(x_1); +x_1366 = lean_ctor_get(x_1311, 0); +lean_inc(x_1366); +x_1367 = lean_ctor_get(x_1311, 1); +lean_inc(x_1367); +if (lean_is_exclusive(x_1311)) { + lean_ctor_release(x_1311, 0); + lean_ctor_release(x_1311, 1); + x_1368 = x_1311; +} else { + lean_dec_ref(x_1311); + x_1368 = lean_box(0); +} +if (lean_is_scalar(x_1368)) { + x_1369 = lean_alloc_ctor(1, 2, 0); +} else { + x_1369 = x_1368; +} +lean_ctor_set(x_1369, 0, x_1366); +lean_ctor_set(x_1369, 1, x_1367); +return x_1369; +} +} +else +{ +lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; +lean_dec(x_1303); +lean_dec(x_1298); +lean_dec(x_1295); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1370 = lean_ctor_get(x_1305, 0); +lean_inc(x_1370); +x_1371 = lean_ctor_get(x_1305, 1); +lean_inc(x_1371); +if (lean_is_exclusive(x_1305)) { + lean_ctor_release(x_1305, 0); + lean_ctor_release(x_1305, 1); + x_1372 = x_1305; +} else { + lean_dec_ref(x_1305); + x_1372 = lean_box(0); +} +if (lean_is_scalar(x_1372)) { + x_1373 = lean_alloc_ctor(1, 2, 0); +} else { + x_1373 = x_1372; +} +lean_ctor_set(x_1373, 0, x_1370); +lean_ctor_set(x_1373, 1, x_1371); +return x_1373; +} +} +else +{ +lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; +lean_dec(x_1298); +lean_dec(x_1297); +lean_dec(x_1295); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1374 = lean_ctor_get(x_1300, 0); +lean_inc(x_1374); +x_1375 = lean_ctor_get(x_1300, 1); +lean_inc(x_1375); +if (lean_is_exclusive(x_1300)) { + lean_ctor_release(x_1300, 0); + lean_ctor_release(x_1300, 1); + x_1376 = x_1300; +} else { + lean_dec_ref(x_1300); + x_1376 = lean_box(0); +} +if (lean_is_scalar(x_1376)) { + x_1377 = lean_alloc_ctor(1, 2, 0); +} else { + x_1377 = x_1376; +} +lean_ctor_set(x_1377, 0, x_1374); +lean_ctor_set(x_1377, 1, x_1375); +return x_1377; +} +} +case 10: +{ +lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; +x_1378 = lean_ctor_get(x_1, 0); +lean_inc(x_1378); +x_1379 = lean_ctor_get(x_1, 1); +lean_inc(x_1379); +lean_inc(x_2); +lean_inc(x_1379); +x_1380 = l_Lean_Expr_resolveBinderNameHint_go(x_1379, x_2, x_3, x_4, x_5, x_1097); +if (lean_obj_tag(x_1380) == 0) +{ +lean_object* x_1381; lean_object* x_1382; lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; size_t x_1386; size_t x_1387; uint8_t x_1388; +x_1381 = lean_ctor_get(x_1380, 0); +lean_inc(x_1381); +x_1382 = lean_ctor_get(x_1380, 1); +lean_inc(x_1382); +lean_dec(x_1380); +x_1383 = lean_ctor_get(x_1381, 0); +lean_inc(x_1383); +x_1384 = lean_ctor_get(x_1381, 1); +lean_inc(x_1384); +if (lean_is_exclusive(x_1381)) { + lean_ctor_release(x_1381, 0); + lean_ctor_release(x_1381, 1); + x_1385 = x_1381; +} else { + lean_dec_ref(x_1381); + x_1385 = lean_box(0); +} +x_1386 = lean_ptr_addr(x_1379); +lean_dec(x_1379); +x_1387 = lean_ptr_addr(x_1383); +x_1388 = lean_usize_dec_eq(x_1386, x_1387); +if (x_1388 == 0) +{ +lean_object* x_1389; lean_object* x_1390; +x_1389 = l_Lean_Expr_mdata___override(x_1378, x_1383); +if (lean_is_scalar(x_1385)) { + x_1390 = lean_alloc_ctor(0, 2, 0); +} else { + x_1390 = x_1385; +} +lean_ctor_set(x_1390, 0, x_1389); +lean_ctor_set(x_1390, 1, x_1384); +x_7 = x_1390; +x_8 = x_1382; +goto block_165; +} +else +{ +lean_object* x_1391; +lean_dec(x_1383); +lean_dec(x_1378); +lean_inc(x_1); +if (lean_is_scalar(x_1385)) { + x_1391 = lean_alloc_ctor(0, 2, 0); +} else { + x_1391 = x_1385; +} +lean_ctor_set(x_1391, 0, x_1); +lean_ctor_set(x_1391, 1, x_1384); +x_7 = x_1391; +x_8 = x_1382; +goto block_165; +} +} +else +{ +lean_object* x_1392; lean_object* x_1393; lean_object* x_1394; lean_object* x_1395; +lean_dec(x_1379); +lean_dec(x_1378); +lean_dec(x_2); +lean_dec(x_1); +x_1392 = lean_ctor_get(x_1380, 0); +lean_inc(x_1392); +x_1393 = lean_ctor_get(x_1380, 1); +lean_inc(x_1393); +if (lean_is_exclusive(x_1380)) { + lean_ctor_release(x_1380, 0); + lean_ctor_release(x_1380, 1); + x_1394 = x_1380; +} else { + lean_dec_ref(x_1380); + x_1394 = lean_box(0); +} +if (lean_is_scalar(x_1394)) { + x_1395 = lean_alloc_ctor(1, 2, 0); +} else { + x_1395 = x_1394; +} +lean_ctor_set(x_1395, 0, x_1392); +lean_ctor_set(x_1395, 1, x_1393); +return x_1395; +} +} +case 11: +{ +lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; +x_1396 = lean_ctor_get(x_1, 0); +lean_inc(x_1396); +x_1397 = lean_ctor_get(x_1, 1); +lean_inc(x_1397); +x_1398 = lean_ctor_get(x_1, 2); +lean_inc(x_1398); +lean_inc(x_2); +lean_inc(x_1398); +x_1399 = l_Lean_Expr_resolveBinderNameHint_go(x_1398, x_2, x_3, x_4, x_5, x_1097); +if (lean_obj_tag(x_1399) == 0) +{ +lean_object* x_1400; lean_object* x_1401; lean_object* x_1402; lean_object* x_1403; lean_object* x_1404; size_t x_1405; size_t x_1406; uint8_t x_1407; +x_1400 = lean_ctor_get(x_1399, 0); +lean_inc(x_1400); +x_1401 = lean_ctor_get(x_1399, 1); +lean_inc(x_1401); +lean_dec(x_1399); +x_1402 = lean_ctor_get(x_1400, 0); +lean_inc(x_1402); +x_1403 = lean_ctor_get(x_1400, 1); +lean_inc(x_1403); +if (lean_is_exclusive(x_1400)) { + lean_ctor_release(x_1400, 0); + lean_ctor_release(x_1400, 1); + x_1404 = x_1400; +} else { + lean_dec_ref(x_1400); + x_1404 = lean_box(0); +} +x_1405 = lean_ptr_addr(x_1398); +lean_dec(x_1398); +x_1406 = lean_ptr_addr(x_1402); +x_1407 = lean_usize_dec_eq(x_1405, x_1406); +if (x_1407 == 0) +{ +lean_object* x_1408; lean_object* x_1409; +x_1408 = l_Lean_Expr_proj___override(x_1396, x_1397, x_1402); +if (lean_is_scalar(x_1404)) { + x_1409 = lean_alloc_ctor(0, 2, 0); +} else { + x_1409 = x_1404; +} +lean_ctor_set(x_1409, 0, x_1408); +lean_ctor_set(x_1409, 1, x_1403); +x_7 = x_1409; +x_8 = x_1401; +goto block_165; +} +else +{ +lean_object* x_1410; +lean_dec(x_1402); +lean_dec(x_1397); +lean_dec(x_1396); +lean_inc(x_1); +if (lean_is_scalar(x_1404)) { + x_1410 = lean_alloc_ctor(0, 2, 0); +} else { + x_1410 = x_1404; +} +lean_ctor_set(x_1410, 0, x_1); +lean_ctor_set(x_1410, 1, x_1403); +x_7 = x_1410; +x_8 = x_1401; +goto block_165; +} +} +else +{ +lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; +lean_dec(x_1398); +lean_dec(x_1397); +lean_dec(x_1396); +lean_dec(x_2); +lean_dec(x_1); +x_1411 = lean_ctor_get(x_1399, 0); +lean_inc(x_1411); +x_1412 = lean_ctor_get(x_1399, 1); +lean_inc(x_1412); +if (lean_is_exclusive(x_1399)) { + lean_ctor_release(x_1399, 0); + lean_ctor_release(x_1399, 1); + x_1413 = x_1399; +} else { + lean_dec_ref(x_1399); + x_1413 = lean_box(0); +} +if (lean_is_scalar(x_1413)) { + x_1414 = lean_alloc_ctor(1, 2, 0); +} else { + x_1414 = x_1413; +} +lean_ctor_set(x_1414, 0, x_1411); +lean_ctor_set(x_1414, 1, x_1412); +return x_1414; +} +} +default: +{ +lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; lean_object* x_1420; lean_object* x_1421; lean_object* x_1422; size_t x_1423; size_t x_1424; size_t x_1425; lean_object* x_1426; uint8_t x_1427; +lean_dec(x_5); +lean_dec(x_4); +x_1415 = lean_st_ref_take(x_2, x_1097); +x_1416 = lean_ctor_get(x_1415, 0); +lean_inc(x_1416); +x_1417 = lean_ctor_get(x_1415, 1); +lean_inc(x_1417); +if (lean_is_exclusive(x_1415)) { + lean_ctor_release(x_1415, 0); + lean_ctor_release(x_1415, 1); + x_1418 = x_1415; +} else { + lean_dec_ref(x_1415); + x_1418 = lean_box(0); +} +x_1419 = lean_ctor_get(x_1416, 0); +lean_inc(x_1419); +x_1420 = lean_ctor_get(x_1416, 1); +lean_inc(x_1420); +if (lean_is_exclusive(x_1416)) { + lean_ctor_release(x_1416, 0); + lean_ctor_release(x_1416, 1); + x_1421 = x_1416; +} else { + lean_dec_ref(x_1416); + x_1421 = lean_box(0); +} +x_1422 = lean_array_get_size(x_1420); +x_1423 = lean_usize_of_nat(x_1422); +lean_dec(x_1422); +x_1424 = lean_usize_sub(x_1423, x_1109); +x_1425 = lean_usize_land(x_1107, x_1424); +x_1426 = lean_array_uget(x_1420, x_1425); +x_1427 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_1426); +if (x_1427 == 0) +{ +lean_object* x_1428; lean_object* x_1429; lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; lean_object* x_1436; uint8_t x_1437; +x_1428 = lean_unsigned_to_nat(1u); +x_1429 = lean_nat_add(x_1419, x_1428); +lean_dec(x_1419); +lean_inc_n(x_1, 2); +x_1430 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1430, 0, x_1); +lean_ctor_set(x_1430, 1, x_1); +lean_ctor_set(x_1430, 2, x_1426); +x_1431 = lean_array_uset(x_1420, x_1425, x_1430); +x_1432 = lean_unsigned_to_nat(4u); +x_1433 = lean_nat_mul(x_1429, x_1432); +x_1434 = lean_unsigned_to_nat(3u); +x_1435 = lean_nat_div(x_1433, x_1434); +lean_dec(x_1433); +x_1436 = lean_array_get_size(x_1431); +x_1437 = lean_nat_dec_le(x_1435, x_1436); +lean_dec(x_1436); +lean_dec(x_1435); +if (x_1437 == 0) +{ +lean_object* x_1438; lean_object* x_1439; lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; +x_1438 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_1431); +if (lean_is_scalar(x_1421)) { + x_1439 = lean_alloc_ctor(0, 2, 0); +} else { + x_1439 = x_1421; +} +lean_ctor_set(x_1439, 0, x_1429); +lean_ctor_set(x_1439, 1, x_1438); +x_1440 = lean_st_ref_set(x_2, x_1439, x_1417); +lean_dec(x_2); +x_1441 = lean_ctor_get(x_1440, 1); +lean_inc(x_1441); +if (lean_is_exclusive(x_1440)) { + lean_ctor_release(x_1440, 0); + lean_ctor_release(x_1440, 1); + x_1442 = x_1440; +} else { + lean_dec_ref(x_1440); + x_1442 = lean_box(0); +} +if (lean_is_scalar(x_1418)) { + x_1443 = lean_alloc_ctor(0, 2, 0); +} else { + x_1443 = x_1418; +} +lean_ctor_set(x_1443, 0, x_1); +lean_ctor_set(x_1443, 1, x_3); +if (lean_is_scalar(x_1442)) { + x_1444 = lean_alloc_ctor(0, 2, 0); +} else { + x_1444 = x_1442; +} +lean_ctor_set(x_1444, 0, x_1443); +lean_ctor_set(x_1444, 1, x_1441); +return x_1444; +} +else +{ +lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; lean_object* x_1450; +if (lean_is_scalar(x_1421)) { + x_1445 = lean_alloc_ctor(0, 2, 0); +} else { + x_1445 = x_1421; +} +lean_ctor_set(x_1445, 0, x_1429); +lean_ctor_set(x_1445, 1, x_1431); +x_1446 = lean_st_ref_set(x_2, x_1445, x_1417); +lean_dec(x_2); +x_1447 = lean_ctor_get(x_1446, 1); +lean_inc(x_1447); +if (lean_is_exclusive(x_1446)) { + lean_ctor_release(x_1446, 0); + lean_ctor_release(x_1446, 1); + x_1448 = x_1446; +} else { + lean_dec_ref(x_1446); + x_1448 = lean_box(0); +} +if (lean_is_scalar(x_1418)) { + x_1449 = lean_alloc_ctor(0, 2, 0); +} else { + x_1449 = x_1418; +} +lean_ctor_set(x_1449, 0, x_1); +lean_ctor_set(x_1449, 1, x_3); +if (lean_is_scalar(x_1448)) { + x_1450 = lean_alloc_ctor(0, 2, 0); +} else { + x_1450 = x_1448; +} +lean_ctor_set(x_1450, 0, x_1449); +lean_ctor_set(x_1450, 1, x_1447); +return x_1450; +} +} +else +{ +lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; lean_object* x_1460; +x_1451 = lean_box(0); +x_1452 = lean_array_uset(x_1420, x_1425, x_1451); +lean_inc_n(x_1, 2); +x_1453 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1, x_1426); +x_1454 = lean_array_uset(x_1452, x_1425, x_1453); +if (lean_is_scalar(x_1421)) { + x_1455 = lean_alloc_ctor(0, 2, 0); +} else { + x_1455 = x_1421; +} +lean_ctor_set(x_1455, 0, x_1419); +lean_ctor_set(x_1455, 1, x_1454); +x_1456 = lean_st_ref_set(x_2, x_1455, x_1417); +lean_dec(x_2); +x_1457 = lean_ctor_get(x_1456, 1); +lean_inc(x_1457); +if (lean_is_exclusive(x_1456)) { + lean_ctor_release(x_1456, 0); + lean_ctor_release(x_1456, 1); + x_1458 = x_1456; +} else { + lean_dec_ref(x_1456); + x_1458 = lean_box(0); +} +if (lean_is_scalar(x_1418)) { + x_1459 = lean_alloc_ctor(0, 2, 0); +} else { + x_1459 = x_1418; +} +lean_ctor_set(x_1459, 0, x_1); +lean_ctor_set(x_1459, 1, x_3); +if (lean_is_scalar(x_1458)) { + x_1460 = lean_alloc_ctor(0, 2, 0); +} else { + x_1460 = x_1458; +} +lean_ctor_set(x_1460, 0, x_1459); +lean_ctor_set(x_1460, 1, x_1457); +return x_1460; +} +} +} +} +else +{ +lean_object* x_1461; lean_object* x_1462; lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; +x_1461 = l_Lean_Expr_appFn_x21(x_1); +x_1462 = l_Lean_Expr_appFn_x21(x_1461); +x_1463 = l_Lean_Expr_appArg_x21(x_1462); +lean_dec(x_1462); +x_1464 = l_Lean_Expr_appArg_x21(x_1461); +lean_dec(x_1461); +x_1465 = l_Lean_Expr_appArg_x21(x_1); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1466 = l_Lean_Expr_resolveBinderNameHint_go(x_1465, x_2, x_3, x_4, x_5, x_1097); +if (lean_obj_tag(x_1466) == 0) +{ +lean_object* x_1467; +x_1467 = lean_ctor_get(x_1466, 0); +lean_inc(x_1467); +if (lean_obj_tag(x_1463) == 0) +{ +lean_object* x_1468; lean_object* x_1469; lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; +x_1468 = lean_ctor_get(x_1466, 1); +lean_inc(x_1468); +lean_dec(x_1466); +x_1469 = lean_ctor_get(x_1467, 0); +lean_inc(x_1469); +x_1470 = lean_ctor_get(x_1467, 1); +lean_inc(x_1470); +lean_dec(x_1467); +x_1471 = lean_ctor_get(x_1463, 0); +lean_inc(x_1471); +lean_dec(x_1463); +x_1472 = l_Lean_Expr_headBeta(x_1464); +switch (lean_obj_tag(x_1472)) { +case 6: +{ +lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; lean_object* x_1476; +x_1473 = lean_ctor_get(x_1472, 0); +lean_inc(x_1473); +lean_dec(x_1472); +x_1474 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1471, x_1473, x_1470); +lean_dec(x_1471); +x_1475 = lean_box(0); +x_1476 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1469, x_1475, x_2, x_1474, x_4, x_5, x_1468); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1476; +goto block_329; +} +case 7: +{ +lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; +x_1477 = lean_ctor_get(x_1472, 0); +lean_inc(x_1477); +lean_dec(x_1472); +x_1478 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1471, x_1477, x_1470); +lean_dec(x_1471); +x_1479 = lean_box(0); +x_1480 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1469, x_1479, x_2, x_1478, x_4, x_5, x_1468); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1480; +goto block_329; +} +default: +{ +lean_object* x_1481; uint8_t x_1482; +lean_dec(x_1472); +x_1481 = lean_array_get_size(x_1470); +x_1482 = lean_nat_dec_lt(x_1471, x_1481); +if (x_1482 == 0) +{ +lean_object* x_1483; lean_object* x_1484; +lean_dec(x_1481); +lean_dec(x_1471); +lean_dec(x_1469); +x_1483 = l_Lean_Expr_resolveBinderNameHint_go___closed__4; +lean_inc(x_2); +x_1484 = l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1(x_1483, x_2, x_1470, x_4, x_5, x_1468); +x_166 = x_1484; +goto block_329; +} +else +{ +lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; uint8_t x_1488; +x_1485 = lean_nat_sub(x_1481, x_1471); +x_1486 = lean_unsigned_to_nat(1u); +x_1487 = lean_nat_sub(x_1485, x_1486); +lean_dec(x_1485); +x_1488 = lean_nat_dec_lt(x_1487, x_1481); +lean_dec(x_1481); +if (x_1488 == 0) +{ +lean_object* x_1489; lean_object* x_1490; lean_object* x_1491; lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; +lean_dec(x_1487); +x_1489 = l_Lean_instInhabitedName; +x_1490 = l_outOfBounds___rarg(x_1489); +x_1491 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_1490, x_4, x_5, x_1468); +x_1492 = lean_ctor_get(x_1491, 0); +lean_inc(x_1492); +x_1493 = lean_ctor_get(x_1491, 1); +lean_inc(x_1493); +lean_dec(x_1491); +x_1494 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1471, x_1492, x_1470); +lean_dec(x_1471); +x_1495 = lean_box(0); +x_1496 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1469, x_1495, x_2, x_1494, x_4, x_5, x_1493); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1496; +goto block_329; +} +else +{ +lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; lean_object* x_1503; +x_1497 = lean_array_fget(x_1470, x_1487); +lean_dec(x_1487); +x_1498 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_1497, x_4, x_5, x_1468); +x_1499 = lean_ctor_get(x_1498, 0); +lean_inc(x_1499); +x_1500 = lean_ctor_get(x_1498, 1); +lean_inc(x_1500); +lean_dec(x_1498); +x_1501 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1471, x_1499, x_1470); +lean_dec(x_1471); +x_1502 = lean_box(0); +x_1503 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1469, x_1502, x_2, x_1501, x_4, x_5, x_1500); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1503; +goto block_329; +} +} +} +} +} +else +{ +lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; lean_object* x_1508; +lean_dec(x_1464); +lean_dec(x_1463); +x_1504 = lean_ctor_get(x_1466, 1); +lean_inc(x_1504); +lean_dec(x_1466); +x_1505 = lean_ctor_get(x_1467, 0); +lean_inc(x_1505); +x_1506 = lean_ctor_get(x_1467, 1); +lean_inc(x_1506); +lean_dec(x_1467); +x_1507 = lean_box(0); +x_1508 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1505, x_1507, x_2, x_1506, x_4, x_5, x_1504); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1508; +goto block_329; +} +} +else +{ +lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; +lean_dec(x_1464); +lean_dec(x_1463); +lean_dec(x_5); +lean_dec(x_4); +x_1509 = lean_ctor_get(x_1466, 0); +lean_inc(x_1509); +x_1510 = lean_ctor_get(x_1466, 1); +lean_inc(x_1510); +if (lean_is_exclusive(x_1466)) { + lean_ctor_release(x_1466, 0); + lean_ctor_release(x_1466, 1); + x_1511 = x_1466; +} else { + lean_dec_ref(x_1466); + x_1511 = lean_box(0); +} +if (lean_is_scalar(x_1511)) { + x_1512 = lean_alloc_ctor(1, 2, 0); +} else { + x_1512 = x_1511; +} +lean_ctor_set(x_1512, 0, x_1509); +lean_ctor_set(x_1512, 1, x_1510); +x_166 = x_1512; +goto block_329; +} +} +} +else +{ +lean_object* x_1513; lean_object* x_1514; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1513 = lean_ctor_get(x_1113, 0); +lean_inc(x_1513); +lean_dec(x_1113); +x_1514 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1514, 0, x_1513); +lean_ctor_set(x_1514, 1, x_3); +lean_ctor_set(x_330, 0, x_1514); +return x_330; +} +} +} +else +{ +lean_object* x_1515; lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; lean_object* x_1519; uint64_t x_1520; uint64_t x_1521; uint64_t x_1522; uint64_t x_1523; uint64_t x_1524; uint64_t x_1525; uint64_t x_1526; size_t x_1527; size_t x_1528; size_t x_1529; size_t x_1530; size_t x_1531; lean_object* x_1532; lean_object* x_1533; +x_1515 = lean_ctor_get(x_330, 0); +x_1516 = lean_ctor_get(x_330, 1); +lean_inc(x_1516); +lean_inc(x_1515); +lean_dec(x_330); +x_1517 = lean_ctor_get(x_1515, 1); +lean_inc(x_1517); +if (lean_is_exclusive(x_1515)) { + lean_ctor_release(x_1515, 0); + lean_ctor_release(x_1515, 1); + x_1518 = x_1515; +} else { + lean_dec_ref(x_1515); + x_1518 = lean_box(0); +} +x_1519 = lean_array_get_size(x_1517); +x_1520 = l_Lean_Expr_hash(x_1); +x_1521 = 32; +x_1522 = lean_uint64_shift_right(x_1520, x_1521); +x_1523 = lean_uint64_xor(x_1520, x_1522); +x_1524 = 16; +x_1525 = lean_uint64_shift_right(x_1523, x_1524); +x_1526 = lean_uint64_xor(x_1523, x_1525); +x_1527 = lean_uint64_to_usize(x_1526); +x_1528 = lean_usize_of_nat(x_1519); +lean_dec(x_1519); +x_1529 = 1; +x_1530 = lean_usize_sub(x_1528, x_1529); +x_1531 = lean_usize_land(x_1527, x_1530); +x_1532 = lean_array_uget(x_1517, x_1531); +lean_dec(x_1517); +x_1533 = l_Std_DHashMap_Internal_AssocList_get_x3f___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__1(x_1, x_1532); +lean_dec(x_1532); +if (lean_obj_tag(x_1533) == 0) +{ +lean_object* x_1534; lean_object* x_1535; uint8_t x_1536; +lean_dec(x_1518); +x_1534 = l_Lean_Expr_hasBinderNameHint___lambda__1___closed__2; +x_1535 = lean_unsigned_to_nat(6u); +x_1536 = l_Lean_Expr_isAppOfArity(x_1, x_1534, x_1535); +if (x_1536 == 0) +{ +switch (lean_obj_tag(x_1)) { +case 5: +{ +lean_object* x_1537; lean_object* x_1538; lean_object* x_1539; +x_1537 = lean_ctor_get(x_1, 0); +lean_inc(x_1537); +x_1538 = lean_ctor_get(x_1, 1); +lean_inc(x_1538); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +lean_inc(x_1537); +x_1539 = l_Lean_Expr_resolveBinderNameHint_go(x_1537, x_2, x_3, x_4, x_5, x_1516); +if (lean_obj_tag(x_1539) == 0) +{ +lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; +x_1540 = lean_ctor_get(x_1539, 0); +lean_inc(x_1540); +x_1541 = lean_ctor_get(x_1539, 1); +lean_inc(x_1541); +lean_dec(x_1539); +x_1542 = lean_ctor_get(x_1540, 0); +lean_inc(x_1542); +x_1543 = lean_ctor_get(x_1540, 1); +lean_inc(x_1543); +lean_dec(x_1540); +lean_inc(x_2); +lean_inc(x_1538); +x_1544 = l_Lean_Expr_resolveBinderNameHint_go(x_1538, x_2, x_1543, x_4, x_5, x_1541); +if (lean_obj_tag(x_1544) == 0) +{ +lean_object* x_1545; lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; size_t x_1550; size_t x_1551; uint8_t x_1552; +x_1545 = lean_ctor_get(x_1544, 0); +lean_inc(x_1545); +x_1546 = lean_ctor_get(x_1544, 1); +lean_inc(x_1546); +lean_dec(x_1544); +x_1547 = lean_ctor_get(x_1545, 0); +lean_inc(x_1547); +x_1548 = lean_ctor_get(x_1545, 1); +lean_inc(x_1548); +if (lean_is_exclusive(x_1545)) { + lean_ctor_release(x_1545, 0); + lean_ctor_release(x_1545, 1); + x_1549 = x_1545; +} else { + lean_dec_ref(x_1545); + x_1549 = lean_box(0); +} +x_1550 = lean_ptr_addr(x_1537); +lean_dec(x_1537); +x_1551 = lean_ptr_addr(x_1542); +x_1552 = lean_usize_dec_eq(x_1550, x_1551); +if (x_1552 == 0) +{ +lean_object* x_1553; lean_object* x_1554; +lean_dec(x_1538); +x_1553 = l_Lean_Expr_app___override(x_1542, x_1547); +if (lean_is_scalar(x_1549)) { + x_1554 = lean_alloc_ctor(0, 2, 0); +} else { + x_1554 = x_1549; +} +lean_ctor_set(x_1554, 0, x_1553); +lean_ctor_set(x_1554, 1, x_1548); +x_7 = x_1554; +x_8 = x_1546; +goto block_165; +} +else +{ +size_t x_1555; size_t x_1556; uint8_t x_1557; +x_1555 = lean_ptr_addr(x_1538); +lean_dec(x_1538); +x_1556 = lean_ptr_addr(x_1547); +x_1557 = lean_usize_dec_eq(x_1555, x_1556); +if (x_1557 == 0) +{ +lean_object* x_1558; lean_object* x_1559; +x_1558 = l_Lean_Expr_app___override(x_1542, x_1547); +if (lean_is_scalar(x_1549)) { + x_1559 = lean_alloc_ctor(0, 2, 0); +} else { + x_1559 = x_1549; +} +lean_ctor_set(x_1559, 0, x_1558); +lean_ctor_set(x_1559, 1, x_1548); +x_7 = x_1559; +x_8 = x_1546; +goto block_165; +} +else +{ +lean_object* x_1560; +lean_dec(x_1547); +lean_dec(x_1542); +lean_inc(x_1); +if (lean_is_scalar(x_1549)) { + x_1560 = lean_alloc_ctor(0, 2, 0); +} else { + x_1560 = x_1549; +} +lean_ctor_set(x_1560, 0, x_1); +lean_ctor_set(x_1560, 1, x_1548); +x_7 = x_1560; +x_8 = x_1546; +goto block_165; +} +} +} +else +{ +lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; +lean_dec(x_1542); +lean_dec(x_1538); +lean_dec(x_1537); +lean_dec(x_2); +lean_dec(x_1); +x_1561 = lean_ctor_get(x_1544, 0); +lean_inc(x_1561); +x_1562 = lean_ctor_get(x_1544, 1); +lean_inc(x_1562); +if (lean_is_exclusive(x_1544)) { + lean_ctor_release(x_1544, 0); + lean_ctor_release(x_1544, 1); + x_1563 = x_1544; +} else { + lean_dec_ref(x_1544); + x_1563 = lean_box(0); +} +if (lean_is_scalar(x_1563)) { + x_1564 = lean_alloc_ctor(1, 2, 0); +} else { + x_1564 = x_1563; +} +lean_ctor_set(x_1564, 0, x_1561); +lean_ctor_set(x_1564, 1, x_1562); +return x_1564; +} +} +else +{ +lean_object* x_1565; lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; +lean_dec(x_1538); +lean_dec(x_1537); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1565 = lean_ctor_get(x_1539, 0); +lean_inc(x_1565); +x_1566 = lean_ctor_get(x_1539, 1); +lean_inc(x_1566); +if (lean_is_exclusive(x_1539)) { + lean_ctor_release(x_1539, 0); + lean_ctor_release(x_1539, 1); + x_1567 = x_1539; +} else { + lean_dec_ref(x_1539); + x_1567 = lean_box(0); +} +if (lean_is_scalar(x_1567)) { + x_1568 = lean_alloc_ctor(1, 2, 0); +} else { + x_1568 = x_1567; +} +lean_ctor_set(x_1568, 0, x_1565); +lean_ctor_set(x_1568, 1, x_1566); +return x_1568; +} +} +case 6: +{ +lean_object* x_1569; lean_object* x_1570; lean_object* x_1571; uint8_t x_1572; lean_object* x_1573; +x_1569 = lean_ctor_get(x_1, 0); +lean_inc(x_1569); +x_1570 = lean_ctor_get(x_1, 1); +lean_inc(x_1570); +x_1571 = lean_ctor_get(x_1, 2); +lean_inc(x_1571); +x_1572 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1573 = l_Lean_Expr_resolveBinderNameHint_go(x_1570, x_2, x_3, x_4, x_5, x_1516); +if (lean_obj_tag(x_1573) == 0) +{ +lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; lean_object* x_1578; lean_object* x_1579; +x_1574 = lean_ctor_get(x_1573, 0); +lean_inc(x_1574); +x_1575 = lean_ctor_get(x_1573, 1); +lean_inc(x_1575); +lean_dec(x_1573); +x_1576 = lean_ctor_get(x_1574, 0); +lean_inc(x_1576); +x_1577 = lean_ctor_get(x_1574, 1); +lean_inc(x_1577); +lean_dec(x_1574); +x_1578 = lean_array_push(x_1577, x_1569); +lean_inc(x_2); +x_1579 = l_Lean_Expr_resolveBinderNameHint_go(x_1571, x_2, x_1578, x_4, x_5, x_1575); +if (lean_obj_tag(x_1579) == 0) +{ +lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; size_t x_1596; size_t x_1597; size_t x_1598; lean_object* x_1599; uint8_t x_1600; +x_1580 = lean_ctor_get(x_1579, 0); +lean_inc(x_1580); +x_1581 = lean_ctor_get(x_1579, 1); +lean_inc(x_1581); +lean_dec(x_1579); +x_1582 = lean_ctor_get(x_1580, 0); +lean_inc(x_1582); +x_1583 = lean_ctor_get(x_1580, 1); +lean_inc(x_1583); +lean_dec(x_1580); +x_1584 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(x_1583); +x_1585 = lean_ctor_get(x_1584, 0); +lean_inc(x_1585); +x_1586 = lean_ctor_get(x_1584, 1); +lean_inc(x_1586); +if (lean_is_exclusive(x_1584)) { + lean_ctor_release(x_1584, 0); + lean_ctor_release(x_1584, 1); + x_1587 = x_1584; +} else { + lean_dec_ref(x_1584); + x_1587 = lean_box(0); +} +x_1588 = l_Lean_Expr_lam___override(x_1585, x_1576, x_1582, x_1572); +x_1589 = lean_st_ref_take(x_2, x_1581); +x_1590 = lean_ctor_get(x_1589, 0); +lean_inc(x_1590); +x_1591 = lean_ctor_get(x_1589, 1); +lean_inc(x_1591); +lean_dec(x_1589); +x_1592 = lean_ctor_get(x_1590, 0); +lean_inc(x_1592); +x_1593 = lean_ctor_get(x_1590, 1); +lean_inc(x_1593); +if (lean_is_exclusive(x_1590)) { + lean_ctor_release(x_1590, 0); + lean_ctor_release(x_1590, 1); + x_1594 = x_1590; +} else { + lean_dec_ref(x_1590); + x_1594 = lean_box(0); +} +x_1595 = lean_array_get_size(x_1593); +x_1596 = lean_usize_of_nat(x_1595); +lean_dec(x_1595); +x_1597 = lean_usize_sub(x_1596, x_1529); +x_1598 = lean_usize_land(x_1527, x_1597); +x_1599 = lean_array_uget(x_1593, x_1598); +x_1600 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_1599); +if (x_1600 == 0) +{ +lean_object* x_1601; lean_object* x_1602; lean_object* x_1603; lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; uint8_t x_1610; +x_1601 = lean_unsigned_to_nat(1u); +x_1602 = lean_nat_add(x_1592, x_1601); +lean_dec(x_1592); +lean_inc(x_1588); +x_1603 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1603, 0, x_1); +lean_ctor_set(x_1603, 1, x_1588); +lean_ctor_set(x_1603, 2, x_1599); +x_1604 = lean_array_uset(x_1593, x_1598, x_1603); +x_1605 = lean_unsigned_to_nat(4u); +x_1606 = lean_nat_mul(x_1602, x_1605); +x_1607 = lean_unsigned_to_nat(3u); +x_1608 = lean_nat_div(x_1606, x_1607); +lean_dec(x_1606); +x_1609 = lean_array_get_size(x_1604); +x_1610 = lean_nat_dec_le(x_1608, x_1609); +lean_dec(x_1609); +lean_dec(x_1608); +if (x_1610 == 0) +{ +lean_object* x_1611; lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; +x_1611 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_1604); +if (lean_is_scalar(x_1594)) { + x_1612 = lean_alloc_ctor(0, 2, 0); +} else { + x_1612 = x_1594; +} +lean_ctor_set(x_1612, 0, x_1602); +lean_ctor_set(x_1612, 1, x_1611); +x_1613 = lean_st_ref_set(x_2, x_1612, x_1591); +lean_dec(x_2); +x_1614 = lean_ctor_get(x_1613, 1); +lean_inc(x_1614); +if (lean_is_exclusive(x_1613)) { + lean_ctor_release(x_1613, 0); + lean_ctor_release(x_1613, 1); + x_1615 = x_1613; +} else { + lean_dec_ref(x_1613); + x_1615 = lean_box(0); +} +if (lean_is_scalar(x_1587)) { + x_1616 = lean_alloc_ctor(0, 2, 0); +} else { + x_1616 = x_1587; +} +lean_ctor_set(x_1616, 0, x_1588); +lean_ctor_set(x_1616, 1, x_1586); +if (lean_is_scalar(x_1615)) { + x_1617 = lean_alloc_ctor(0, 2, 0); +} else { + x_1617 = x_1615; +} +lean_ctor_set(x_1617, 0, x_1616); +lean_ctor_set(x_1617, 1, x_1614); +return x_1617; +} +else +{ +lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; lean_object* x_1621; lean_object* x_1622; lean_object* x_1623; +if (lean_is_scalar(x_1594)) { + x_1618 = lean_alloc_ctor(0, 2, 0); +} else { + x_1618 = x_1594; +} +lean_ctor_set(x_1618, 0, x_1602); +lean_ctor_set(x_1618, 1, x_1604); +x_1619 = lean_st_ref_set(x_2, x_1618, x_1591); +lean_dec(x_2); +x_1620 = lean_ctor_get(x_1619, 1); +lean_inc(x_1620); +if (lean_is_exclusive(x_1619)) { + lean_ctor_release(x_1619, 0); + lean_ctor_release(x_1619, 1); + x_1621 = x_1619; +} else { + lean_dec_ref(x_1619); + x_1621 = lean_box(0); +} +if (lean_is_scalar(x_1587)) { + x_1622 = lean_alloc_ctor(0, 2, 0); +} else { + x_1622 = x_1587; +} +lean_ctor_set(x_1622, 0, x_1588); +lean_ctor_set(x_1622, 1, x_1586); +if (lean_is_scalar(x_1621)) { + x_1623 = lean_alloc_ctor(0, 2, 0); +} else { + x_1623 = x_1621; +} +lean_ctor_set(x_1623, 0, x_1622); +lean_ctor_set(x_1623, 1, x_1620); +return x_1623; +} +} +else +{ +lean_object* x_1624; lean_object* x_1625; lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; lean_object* x_1629; lean_object* x_1630; lean_object* x_1631; lean_object* x_1632; lean_object* x_1633; +x_1624 = lean_box(0); +x_1625 = lean_array_uset(x_1593, x_1598, x_1624); +lean_inc(x_1588); +x_1626 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1588, x_1599); +x_1627 = lean_array_uset(x_1625, x_1598, x_1626); +if (lean_is_scalar(x_1594)) { + x_1628 = lean_alloc_ctor(0, 2, 0); +} else { + x_1628 = x_1594; +} +lean_ctor_set(x_1628, 0, x_1592); +lean_ctor_set(x_1628, 1, x_1627); +x_1629 = lean_st_ref_set(x_2, x_1628, x_1591); +lean_dec(x_2); +x_1630 = lean_ctor_get(x_1629, 1); +lean_inc(x_1630); +if (lean_is_exclusive(x_1629)) { + lean_ctor_release(x_1629, 0); + lean_ctor_release(x_1629, 1); + x_1631 = x_1629; +} else { + lean_dec_ref(x_1629); + x_1631 = lean_box(0); +} +if (lean_is_scalar(x_1587)) { + x_1632 = lean_alloc_ctor(0, 2, 0); +} else { + x_1632 = x_1587; +} +lean_ctor_set(x_1632, 0, x_1588); +lean_ctor_set(x_1632, 1, x_1586); +if (lean_is_scalar(x_1631)) { + x_1633 = lean_alloc_ctor(0, 2, 0); +} else { + x_1633 = x_1631; +} +lean_ctor_set(x_1633, 0, x_1632); +lean_ctor_set(x_1633, 1, x_1630); +return x_1633; +} +} +else +{ +lean_object* x_1634; lean_object* x_1635; lean_object* x_1636; lean_object* x_1637; +lean_dec(x_1576); +lean_dec(x_2); +lean_dec(x_1); +x_1634 = lean_ctor_get(x_1579, 0); +lean_inc(x_1634); +x_1635 = lean_ctor_get(x_1579, 1); +lean_inc(x_1635); +if (lean_is_exclusive(x_1579)) { + lean_ctor_release(x_1579, 0); + lean_ctor_release(x_1579, 1); + x_1636 = x_1579; +} else { + lean_dec_ref(x_1579); + x_1636 = lean_box(0); +} +if (lean_is_scalar(x_1636)) { + x_1637 = lean_alloc_ctor(1, 2, 0); +} else { + x_1637 = x_1636; +} +lean_ctor_set(x_1637, 0, x_1634); +lean_ctor_set(x_1637, 1, x_1635); +return x_1637; +} +} +else +{ +lean_object* x_1638; lean_object* x_1639; lean_object* x_1640; lean_object* x_1641; +lean_dec(x_1571); +lean_dec(x_1569); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1638 = lean_ctor_get(x_1573, 0); +lean_inc(x_1638); +x_1639 = lean_ctor_get(x_1573, 1); +lean_inc(x_1639); +if (lean_is_exclusive(x_1573)) { + lean_ctor_release(x_1573, 0); + lean_ctor_release(x_1573, 1); + x_1640 = x_1573; +} else { + lean_dec_ref(x_1573); + x_1640 = lean_box(0); +} +if (lean_is_scalar(x_1640)) { + x_1641 = lean_alloc_ctor(1, 2, 0); +} else { + x_1641 = x_1640; +} +lean_ctor_set(x_1641, 0, x_1638); +lean_ctor_set(x_1641, 1, x_1639); +return x_1641; +} +} +case 7: +{ +lean_object* x_1642; lean_object* x_1643; lean_object* x_1644; uint8_t x_1645; lean_object* x_1646; +x_1642 = lean_ctor_get(x_1, 0); +lean_inc(x_1642); +x_1643 = lean_ctor_get(x_1, 1); +lean_inc(x_1643); +x_1644 = lean_ctor_get(x_1, 2); +lean_inc(x_1644); +x_1645 = lean_ctor_get_uint8(x_1, sizeof(void*)*3 + 8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1646 = l_Lean_Expr_resolveBinderNameHint_go(x_1643, x_2, x_3, x_4, x_5, x_1516); +if (lean_obj_tag(x_1646) == 0) +{ +lean_object* x_1647; lean_object* x_1648; lean_object* x_1649; lean_object* x_1650; lean_object* x_1651; lean_object* x_1652; +x_1647 = lean_ctor_get(x_1646, 0); +lean_inc(x_1647); +x_1648 = lean_ctor_get(x_1646, 1); +lean_inc(x_1648); +lean_dec(x_1646); +x_1649 = lean_ctor_get(x_1647, 0); +lean_inc(x_1649); +x_1650 = lean_ctor_get(x_1647, 1); +lean_inc(x_1650); +lean_dec(x_1647); +x_1651 = lean_array_push(x_1650, x_1642); +lean_inc(x_2); +x_1652 = l_Lean_Expr_resolveBinderNameHint_go(x_1644, x_2, x_1651, x_4, x_5, x_1648); +if (lean_obj_tag(x_1652) == 0) +{ +lean_object* x_1653; lean_object* x_1654; lean_object* x_1655; lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; lean_object* x_1659; lean_object* x_1660; lean_object* x_1661; lean_object* x_1662; lean_object* x_1663; lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; lean_object* x_1667; lean_object* x_1668; size_t x_1669; size_t x_1670; size_t x_1671; lean_object* x_1672; uint8_t x_1673; +x_1653 = lean_ctor_get(x_1652, 0); +lean_inc(x_1653); +x_1654 = lean_ctor_get(x_1652, 1); +lean_inc(x_1654); +lean_dec(x_1652); +x_1655 = lean_ctor_get(x_1653, 0); +lean_inc(x_1655); +x_1656 = lean_ctor_get(x_1653, 1); +lean_inc(x_1656); +lean_dec(x_1653); +x_1657 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(x_1656); +x_1658 = lean_ctor_get(x_1657, 0); +lean_inc(x_1658); +x_1659 = lean_ctor_get(x_1657, 1); +lean_inc(x_1659); +if (lean_is_exclusive(x_1657)) { + lean_ctor_release(x_1657, 0); + lean_ctor_release(x_1657, 1); + x_1660 = x_1657; +} else { + lean_dec_ref(x_1657); + x_1660 = lean_box(0); +} +x_1661 = l_Lean_Expr_forallE___override(x_1658, x_1649, x_1655, x_1645); +x_1662 = lean_st_ref_take(x_2, x_1654); +x_1663 = lean_ctor_get(x_1662, 0); +lean_inc(x_1663); +x_1664 = lean_ctor_get(x_1662, 1); +lean_inc(x_1664); +lean_dec(x_1662); +x_1665 = lean_ctor_get(x_1663, 0); +lean_inc(x_1665); +x_1666 = lean_ctor_get(x_1663, 1); +lean_inc(x_1666); +if (lean_is_exclusive(x_1663)) { + lean_ctor_release(x_1663, 0); + lean_ctor_release(x_1663, 1); + x_1667 = x_1663; +} else { + lean_dec_ref(x_1663); + x_1667 = lean_box(0); +} +x_1668 = lean_array_get_size(x_1666); +x_1669 = lean_usize_of_nat(x_1668); +lean_dec(x_1668); +x_1670 = lean_usize_sub(x_1669, x_1529); +x_1671 = lean_usize_land(x_1527, x_1670); +x_1672 = lean_array_uget(x_1666, x_1671); +x_1673 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_1672); +if (x_1673 == 0) +{ +lean_object* x_1674; lean_object* x_1675; lean_object* x_1676; lean_object* x_1677; lean_object* x_1678; lean_object* x_1679; lean_object* x_1680; lean_object* x_1681; lean_object* x_1682; uint8_t x_1683; +x_1674 = lean_unsigned_to_nat(1u); +x_1675 = lean_nat_add(x_1665, x_1674); +lean_dec(x_1665); +lean_inc(x_1661); +x_1676 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1676, 0, x_1); +lean_ctor_set(x_1676, 1, x_1661); +lean_ctor_set(x_1676, 2, x_1672); +x_1677 = lean_array_uset(x_1666, x_1671, x_1676); +x_1678 = lean_unsigned_to_nat(4u); +x_1679 = lean_nat_mul(x_1675, x_1678); +x_1680 = lean_unsigned_to_nat(3u); +x_1681 = lean_nat_div(x_1679, x_1680); +lean_dec(x_1679); +x_1682 = lean_array_get_size(x_1677); +x_1683 = lean_nat_dec_le(x_1681, x_1682); +lean_dec(x_1682); +lean_dec(x_1681); +if (x_1683 == 0) +{ +lean_object* x_1684; lean_object* x_1685; lean_object* x_1686; lean_object* x_1687; lean_object* x_1688; lean_object* x_1689; lean_object* x_1690; +x_1684 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_1677); +if (lean_is_scalar(x_1667)) { + x_1685 = lean_alloc_ctor(0, 2, 0); +} else { + x_1685 = x_1667; +} +lean_ctor_set(x_1685, 0, x_1675); +lean_ctor_set(x_1685, 1, x_1684); +x_1686 = lean_st_ref_set(x_2, x_1685, x_1664); +lean_dec(x_2); +x_1687 = lean_ctor_get(x_1686, 1); +lean_inc(x_1687); +if (lean_is_exclusive(x_1686)) { + lean_ctor_release(x_1686, 0); + lean_ctor_release(x_1686, 1); + x_1688 = x_1686; +} else { + lean_dec_ref(x_1686); + x_1688 = lean_box(0); +} +if (lean_is_scalar(x_1660)) { + x_1689 = lean_alloc_ctor(0, 2, 0); +} else { + x_1689 = x_1660; +} +lean_ctor_set(x_1689, 0, x_1661); +lean_ctor_set(x_1689, 1, x_1659); +if (lean_is_scalar(x_1688)) { + x_1690 = lean_alloc_ctor(0, 2, 0); +} else { + x_1690 = x_1688; +} +lean_ctor_set(x_1690, 0, x_1689); +lean_ctor_set(x_1690, 1, x_1687); +return x_1690; +} +else +{ +lean_object* x_1691; lean_object* x_1692; lean_object* x_1693; lean_object* x_1694; lean_object* x_1695; lean_object* x_1696; +if (lean_is_scalar(x_1667)) { + x_1691 = lean_alloc_ctor(0, 2, 0); +} else { + x_1691 = x_1667; +} +lean_ctor_set(x_1691, 0, x_1675); +lean_ctor_set(x_1691, 1, x_1677); +x_1692 = lean_st_ref_set(x_2, x_1691, x_1664); +lean_dec(x_2); +x_1693 = lean_ctor_get(x_1692, 1); +lean_inc(x_1693); +if (lean_is_exclusive(x_1692)) { + lean_ctor_release(x_1692, 0); + lean_ctor_release(x_1692, 1); + x_1694 = x_1692; +} else { + lean_dec_ref(x_1692); + x_1694 = lean_box(0); +} +if (lean_is_scalar(x_1660)) { + x_1695 = lean_alloc_ctor(0, 2, 0); +} else { + x_1695 = x_1660; +} +lean_ctor_set(x_1695, 0, x_1661); +lean_ctor_set(x_1695, 1, x_1659); +if (lean_is_scalar(x_1694)) { + x_1696 = lean_alloc_ctor(0, 2, 0); +} else { + x_1696 = x_1694; +} +lean_ctor_set(x_1696, 0, x_1695); +lean_ctor_set(x_1696, 1, x_1693); +return x_1696; +} +} +else +{ +lean_object* x_1697; lean_object* x_1698; lean_object* x_1699; lean_object* x_1700; lean_object* x_1701; lean_object* x_1702; lean_object* x_1703; lean_object* x_1704; lean_object* x_1705; lean_object* x_1706; +x_1697 = lean_box(0); +x_1698 = lean_array_uset(x_1666, x_1671, x_1697); +lean_inc(x_1661); +x_1699 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1661, x_1672); +x_1700 = lean_array_uset(x_1698, x_1671, x_1699); +if (lean_is_scalar(x_1667)) { + x_1701 = lean_alloc_ctor(0, 2, 0); +} else { + x_1701 = x_1667; +} +lean_ctor_set(x_1701, 0, x_1665); +lean_ctor_set(x_1701, 1, x_1700); +x_1702 = lean_st_ref_set(x_2, x_1701, x_1664); +lean_dec(x_2); +x_1703 = lean_ctor_get(x_1702, 1); +lean_inc(x_1703); +if (lean_is_exclusive(x_1702)) { + lean_ctor_release(x_1702, 0); + lean_ctor_release(x_1702, 1); + x_1704 = x_1702; +} else { + lean_dec_ref(x_1702); + x_1704 = lean_box(0); +} +if (lean_is_scalar(x_1660)) { + x_1705 = lean_alloc_ctor(0, 2, 0); +} else { + x_1705 = x_1660; +} +lean_ctor_set(x_1705, 0, x_1661); +lean_ctor_set(x_1705, 1, x_1659); +if (lean_is_scalar(x_1704)) { + x_1706 = lean_alloc_ctor(0, 2, 0); +} else { + x_1706 = x_1704; +} +lean_ctor_set(x_1706, 0, x_1705); +lean_ctor_set(x_1706, 1, x_1703); +return x_1706; +} +} +else +{ +lean_object* x_1707; lean_object* x_1708; lean_object* x_1709; lean_object* x_1710; +lean_dec(x_1649); +lean_dec(x_2); +lean_dec(x_1); +x_1707 = lean_ctor_get(x_1652, 0); +lean_inc(x_1707); +x_1708 = lean_ctor_get(x_1652, 1); +lean_inc(x_1708); +if (lean_is_exclusive(x_1652)) { + lean_ctor_release(x_1652, 0); + lean_ctor_release(x_1652, 1); + x_1709 = x_1652; +} else { + lean_dec_ref(x_1652); + x_1709 = lean_box(0); +} +if (lean_is_scalar(x_1709)) { + x_1710 = lean_alloc_ctor(1, 2, 0); +} else { + x_1710 = x_1709; +} +lean_ctor_set(x_1710, 0, x_1707); +lean_ctor_set(x_1710, 1, x_1708); +return x_1710; +} +} +else +{ +lean_object* x_1711; lean_object* x_1712; lean_object* x_1713; lean_object* x_1714; +lean_dec(x_1644); +lean_dec(x_1642); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1711 = lean_ctor_get(x_1646, 0); +lean_inc(x_1711); +x_1712 = lean_ctor_get(x_1646, 1); +lean_inc(x_1712); +if (lean_is_exclusive(x_1646)) { + lean_ctor_release(x_1646, 0); + lean_ctor_release(x_1646, 1); + x_1713 = x_1646; +} else { + lean_dec_ref(x_1646); + x_1713 = lean_box(0); +} +if (lean_is_scalar(x_1713)) { + x_1714 = lean_alloc_ctor(1, 2, 0); +} else { + x_1714 = x_1713; +} +lean_ctor_set(x_1714, 0, x_1711); +lean_ctor_set(x_1714, 1, x_1712); +return x_1714; +} +} +case 8: +{ +lean_object* x_1715; lean_object* x_1716; lean_object* x_1717; lean_object* x_1718; uint8_t x_1719; lean_object* x_1720; +x_1715 = lean_ctor_get(x_1, 0); +lean_inc(x_1715); +x_1716 = lean_ctor_get(x_1, 1); +lean_inc(x_1716); +x_1717 = lean_ctor_get(x_1, 2); +lean_inc(x_1717); +x_1718 = lean_ctor_get(x_1, 3); +lean_inc(x_1718); +x_1719 = lean_ctor_get_uint8(x_1, sizeof(void*)*4 + 8); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1720 = l_Lean_Expr_resolveBinderNameHint_go(x_1716, x_2, x_3, x_4, x_5, x_1516); +if (lean_obj_tag(x_1720) == 0) +{ +lean_object* x_1721; lean_object* x_1722; lean_object* x_1723; lean_object* x_1724; lean_object* x_1725; +x_1721 = lean_ctor_get(x_1720, 0); +lean_inc(x_1721); +x_1722 = lean_ctor_get(x_1720, 1); +lean_inc(x_1722); +lean_dec(x_1720); +x_1723 = lean_ctor_get(x_1721, 0); +lean_inc(x_1723); +x_1724 = lean_ctor_get(x_1721, 1); +lean_inc(x_1724); +lean_dec(x_1721); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1725 = l_Lean_Expr_resolveBinderNameHint_go(x_1717, x_2, x_1724, x_4, x_5, x_1722); +if (lean_obj_tag(x_1725) == 0) +{ +lean_object* x_1726; lean_object* x_1727; lean_object* x_1728; lean_object* x_1729; lean_object* x_1730; lean_object* x_1731; +x_1726 = lean_ctor_get(x_1725, 0); +lean_inc(x_1726); +x_1727 = lean_ctor_get(x_1725, 1); +lean_inc(x_1727); +lean_dec(x_1725); +x_1728 = lean_ctor_get(x_1726, 0); +lean_inc(x_1728); +x_1729 = lean_ctor_get(x_1726, 1); +lean_inc(x_1729); +lean_dec(x_1726); +x_1730 = lean_array_push(x_1729, x_1715); +lean_inc(x_2); +x_1731 = l_Lean_Expr_resolveBinderNameHint_go(x_1718, x_2, x_1730, x_4, x_5, x_1727); +if (lean_obj_tag(x_1731) == 0) +{ +lean_object* x_1732; lean_object* x_1733; lean_object* x_1734; lean_object* x_1735; lean_object* x_1736; lean_object* x_1737; lean_object* x_1738; lean_object* x_1739; lean_object* x_1740; lean_object* x_1741; lean_object* x_1742; lean_object* x_1743; lean_object* x_1744; lean_object* x_1745; lean_object* x_1746; lean_object* x_1747; size_t x_1748; size_t x_1749; size_t x_1750; lean_object* x_1751; uint8_t x_1752; +x_1732 = lean_ctor_get(x_1731, 0); +lean_inc(x_1732); +x_1733 = lean_ctor_get(x_1731, 1); +lean_inc(x_1733); +lean_dec(x_1731); +x_1734 = lean_ctor_get(x_1732, 0); +lean_inc(x_1734); +x_1735 = lean_ctor_get(x_1732, 1); +lean_inc(x_1735); +lean_dec(x_1732); +x_1736 = l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope(x_1735); +x_1737 = lean_ctor_get(x_1736, 0); +lean_inc(x_1737); +x_1738 = lean_ctor_get(x_1736, 1); +lean_inc(x_1738); +if (lean_is_exclusive(x_1736)) { + lean_ctor_release(x_1736, 0); + lean_ctor_release(x_1736, 1); + x_1739 = x_1736; +} else { + lean_dec_ref(x_1736); + x_1739 = lean_box(0); +} +x_1740 = l_Lean_Expr_letE___override(x_1737, x_1723, x_1728, x_1734, x_1719); +x_1741 = lean_st_ref_take(x_2, x_1733); +x_1742 = lean_ctor_get(x_1741, 0); +lean_inc(x_1742); +x_1743 = lean_ctor_get(x_1741, 1); +lean_inc(x_1743); +lean_dec(x_1741); +x_1744 = lean_ctor_get(x_1742, 0); +lean_inc(x_1744); +x_1745 = lean_ctor_get(x_1742, 1); +lean_inc(x_1745); +if (lean_is_exclusive(x_1742)) { + lean_ctor_release(x_1742, 0); + lean_ctor_release(x_1742, 1); + x_1746 = x_1742; +} else { + lean_dec_ref(x_1742); + x_1746 = lean_box(0); +} +x_1747 = lean_array_get_size(x_1745); +x_1748 = lean_usize_of_nat(x_1747); +lean_dec(x_1747); +x_1749 = lean_usize_sub(x_1748, x_1529); +x_1750 = lean_usize_land(x_1527, x_1749); +x_1751 = lean_array_uget(x_1745, x_1750); +x_1752 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_1751); +if (x_1752 == 0) +{ +lean_object* x_1753; lean_object* x_1754; lean_object* x_1755; lean_object* x_1756; lean_object* x_1757; lean_object* x_1758; lean_object* x_1759; lean_object* x_1760; lean_object* x_1761; uint8_t x_1762; +x_1753 = lean_unsigned_to_nat(1u); +x_1754 = lean_nat_add(x_1744, x_1753); +lean_dec(x_1744); +lean_inc(x_1740); +x_1755 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1755, 0, x_1); +lean_ctor_set(x_1755, 1, x_1740); +lean_ctor_set(x_1755, 2, x_1751); +x_1756 = lean_array_uset(x_1745, x_1750, x_1755); +x_1757 = lean_unsigned_to_nat(4u); +x_1758 = lean_nat_mul(x_1754, x_1757); +x_1759 = lean_unsigned_to_nat(3u); +x_1760 = lean_nat_div(x_1758, x_1759); +lean_dec(x_1758); +x_1761 = lean_array_get_size(x_1756); +x_1762 = lean_nat_dec_le(x_1760, x_1761); +lean_dec(x_1761); +lean_dec(x_1760); +if (x_1762 == 0) +{ +lean_object* x_1763; lean_object* x_1764; lean_object* x_1765; lean_object* x_1766; lean_object* x_1767; lean_object* x_1768; lean_object* x_1769; +x_1763 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_1756); +if (lean_is_scalar(x_1746)) { + x_1764 = lean_alloc_ctor(0, 2, 0); +} else { + x_1764 = x_1746; +} +lean_ctor_set(x_1764, 0, x_1754); +lean_ctor_set(x_1764, 1, x_1763); +x_1765 = lean_st_ref_set(x_2, x_1764, x_1743); +lean_dec(x_2); +x_1766 = lean_ctor_get(x_1765, 1); +lean_inc(x_1766); +if (lean_is_exclusive(x_1765)) { + lean_ctor_release(x_1765, 0); + lean_ctor_release(x_1765, 1); + x_1767 = x_1765; +} else { + lean_dec_ref(x_1765); + x_1767 = lean_box(0); +} +if (lean_is_scalar(x_1739)) { + x_1768 = lean_alloc_ctor(0, 2, 0); +} else { + x_1768 = x_1739; +} +lean_ctor_set(x_1768, 0, x_1740); +lean_ctor_set(x_1768, 1, x_1738); +if (lean_is_scalar(x_1767)) { + x_1769 = lean_alloc_ctor(0, 2, 0); +} else { + x_1769 = x_1767; +} +lean_ctor_set(x_1769, 0, x_1768); +lean_ctor_set(x_1769, 1, x_1766); +return x_1769; +} +else +{ +lean_object* x_1770; lean_object* x_1771; lean_object* x_1772; lean_object* x_1773; lean_object* x_1774; lean_object* x_1775; +if (lean_is_scalar(x_1746)) { + x_1770 = lean_alloc_ctor(0, 2, 0); +} else { + x_1770 = x_1746; +} +lean_ctor_set(x_1770, 0, x_1754); +lean_ctor_set(x_1770, 1, x_1756); +x_1771 = lean_st_ref_set(x_2, x_1770, x_1743); +lean_dec(x_2); +x_1772 = lean_ctor_get(x_1771, 1); +lean_inc(x_1772); +if (lean_is_exclusive(x_1771)) { + lean_ctor_release(x_1771, 0); + lean_ctor_release(x_1771, 1); + x_1773 = x_1771; +} else { + lean_dec_ref(x_1771); + x_1773 = lean_box(0); +} +if (lean_is_scalar(x_1739)) { + x_1774 = lean_alloc_ctor(0, 2, 0); +} else { + x_1774 = x_1739; +} +lean_ctor_set(x_1774, 0, x_1740); +lean_ctor_set(x_1774, 1, x_1738); +if (lean_is_scalar(x_1773)) { + x_1775 = lean_alloc_ctor(0, 2, 0); +} else { + x_1775 = x_1773; +} +lean_ctor_set(x_1775, 0, x_1774); +lean_ctor_set(x_1775, 1, x_1772); +return x_1775; +} +} +else +{ +lean_object* x_1776; lean_object* x_1777; lean_object* x_1778; lean_object* x_1779; lean_object* x_1780; lean_object* x_1781; lean_object* x_1782; lean_object* x_1783; lean_object* x_1784; lean_object* x_1785; +x_1776 = lean_box(0); +x_1777 = lean_array_uset(x_1745, x_1750, x_1776); +lean_inc(x_1740); +x_1778 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1740, x_1751); +x_1779 = lean_array_uset(x_1777, x_1750, x_1778); +if (lean_is_scalar(x_1746)) { + x_1780 = lean_alloc_ctor(0, 2, 0); +} else { + x_1780 = x_1746; +} +lean_ctor_set(x_1780, 0, x_1744); +lean_ctor_set(x_1780, 1, x_1779); +x_1781 = lean_st_ref_set(x_2, x_1780, x_1743); +lean_dec(x_2); +x_1782 = lean_ctor_get(x_1781, 1); +lean_inc(x_1782); +if (lean_is_exclusive(x_1781)) { + lean_ctor_release(x_1781, 0); + lean_ctor_release(x_1781, 1); + x_1783 = x_1781; +} else { + lean_dec_ref(x_1781); + x_1783 = lean_box(0); +} +if (lean_is_scalar(x_1739)) { + x_1784 = lean_alloc_ctor(0, 2, 0); +} else { + x_1784 = x_1739; +} +lean_ctor_set(x_1784, 0, x_1740); +lean_ctor_set(x_1784, 1, x_1738); +if (lean_is_scalar(x_1783)) { + x_1785 = lean_alloc_ctor(0, 2, 0); +} else { + x_1785 = x_1783; +} +lean_ctor_set(x_1785, 0, x_1784); +lean_ctor_set(x_1785, 1, x_1782); +return x_1785; +} +} +else +{ +lean_object* x_1786; lean_object* x_1787; lean_object* x_1788; lean_object* x_1789; +lean_dec(x_1728); +lean_dec(x_1723); +lean_dec(x_2); +lean_dec(x_1); +x_1786 = lean_ctor_get(x_1731, 0); +lean_inc(x_1786); +x_1787 = lean_ctor_get(x_1731, 1); +lean_inc(x_1787); +if (lean_is_exclusive(x_1731)) { + lean_ctor_release(x_1731, 0); + lean_ctor_release(x_1731, 1); + x_1788 = x_1731; +} else { + lean_dec_ref(x_1731); + x_1788 = lean_box(0); +} +if (lean_is_scalar(x_1788)) { + x_1789 = lean_alloc_ctor(1, 2, 0); +} else { + x_1789 = x_1788; +} +lean_ctor_set(x_1789, 0, x_1786); +lean_ctor_set(x_1789, 1, x_1787); +return x_1789; +} +} +else +{ +lean_object* x_1790; lean_object* x_1791; lean_object* x_1792; lean_object* x_1793; +lean_dec(x_1723); +lean_dec(x_1718); +lean_dec(x_1715); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1790 = lean_ctor_get(x_1725, 0); +lean_inc(x_1790); +x_1791 = lean_ctor_get(x_1725, 1); +lean_inc(x_1791); +if (lean_is_exclusive(x_1725)) { + lean_ctor_release(x_1725, 0); + lean_ctor_release(x_1725, 1); + x_1792 = x_1725; +} else { + lean_dec_ref(x_1725); + x_1792 = lean_box(0); +} +if (lean_is_scalar(x_1792)) { + x_1793 = lean_alloc_ctor(1, 2, 0); +} else { + x_1793 = x_1792; +} +lean_ctor_set(x_1793, 0, x_1790); +lean_ctor_set(x_1793, 1, x_1791); +return x_1793; +} +} +else +{ +lean_object* x_1794; lean_object* x_1795; lean_object* x_1796; lean_object* x_1797; +lean_dec(x_1718); +lean_dec(x_1717); +lean_dec(x_1715); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1794 = lean_ctor_get(x_1720, 0); +lean_inc(x_1794); +x_1795 = lean_ctor_get(x_1720, 1); +lean_inc(x_1795); +if (lean_is_exclusive(x_1720)) { + lean_ctor_release(x_1720, 0); + lean_ctor_release(x_1720, 1); + x_1796 = x_1720; +} else { + lean_dec_ref(x_1720); + x_1796 = lean_box(0); +} +if (lean_is_scalar(x_1796)) { + x_1797 = lean_alloc_ctor(1, 2, 0); +} else { + x_1797 = x_1796; +} +lean_ctor_set(x_1797, 0, x_1794); +lean_ctor_set(x_1797, 1, x_1795); +return x_1797; +} +} +case 10: +{ +lean_object* x_1798; lean_object* x_1799; lean_object* x_1800; +x_1798 = lean_ctor_get(x_1, 0); +lean_inc(x_1798); +x_1799 = lean_ctor_get(x_1, 1); +lean_inc(x_1799); +lean_inc(x_2); +lean_inc(x_1799); +x_1800 = l_Lean_Expr_resolveBinderNameHint_go(x_1799, x_2, x_3, x_4, x_5, x_1516); +if (lean_obj_tag(x_1800) == 0) +{ +lean_object* x_1801; lean_object* x_1802; lean_object* x_1803; lean_object* x_1804; lean_object* x_1805; size_t x_1806; size_t x_1807; uint8_t x_1808; +x_1801 = lean_ctor_get(x_1800, 0); +lean_inc(x_1801); +x_1802 = lean_ctor_get(x_1800, 1); +lean_inc(x_1802); +lean_dec(x_1800); +x_1803 = lean_ctor_get(x_1801, 0); +lean_inc(x_1803); +x_1804 = lean_ctor_get(x_1801, 1); +lean_inc(x_1804); +if (lean_is_exclusive(x_1801)) { + lean_ctor_release(x_1801, 0); + lean_ctor_release(x_1801, 1); + x_1805 = x_1801; +} else { + lean_dec_ref(x_1801); + x_1805 = lean_box(0); +} +x_1806 = lean_ptr_addr(x_1799); +lean_dec(x_1799); +x_1807 = lean_ptr_addr(x_1803); +x_1808 = lean_usize_dec_eq(x_1806, x_1807); +if (x_1808 == 0) +{ +lean_object* x_1809; lean_object* x_1810; +x_1809 = l_Lean_Expr_mdata___override(x_1798, x_1803); +if (lean_is_scalar(x_1805)) { + x_1810 = lean_alloc_ctor(0, 2, 0); +} else { + x_1810 = x_1805; +} +lean_ctor_set(x_1810, 0, x_1809); +lean_ctor_set(x_1810, 1, x_1804); +x_7 = x_1810; +x_8 = x_1802; +goto block_165; +} +else +{ +lean_object* x_1811; +lean_dec(x_1803); +lean_dec(x_1798); +lean_inc(x_1); +if (lean_is_scalar(x_1805)) { + x_1811 = lean_alloc_ctor(0, 2, 0); +} else { + x_1811 = x_1805; +} +lean_ctor_set(x_1811, 0, x_1); +lean_ctor_set(x_1811, 1, x_1804); +x_7 = x_1811; +x_8 = x_1802; +goto block_165; +} +} +else +{ +lean_object* x_1812; lean_object* x_1813; lean_object* x_1814; lean_object* x_1815; +lean_dec(x_1799); +lean_dec(x_1798); +lean_dec(x_2); +lean_dec(x_1); +x_1812 = lean_ctor_get(x_1800, 0); +lean_inc(x_1812); +x_1813 = lean_ctor_get(x_1800, 1); +lean_inc(x_1813); +if (lean_is_exclusive(x_1800)) { + lean_ctor_release(x_1800, 0); + lean_ctor_release(x_1800, 1); + x_1814 = x_1800; +} else { + lean_dec_ref(x_1800); + x_1814 = lean_box(0); +} +if (lean_is_scalar(x_1814)) { + x_1815 = lean_alloc_ctor(1, 2, 0); +} else { + x_1815 = x_1814; +} +lean_ctor_set(x_1815, 0, x_1812); +lean_ctor_set(x_1815, 1, x_1813); +return x_1815; +} +} +case 11: +{ +lean_object* x_1816; lean_object* x_1817; lean_object* x_1818; lean_object* x_1819; +x_1816 = lean_ctor_get(x_1, 0); +lean_inc(x_1816); +x_1817 = lean_ctor_get(x_1, 1); +lean_inc(x_1817); +x_1818 = lean_ctor_get(x_1, 2); +lean_inc(x_1818); +lean_inc(x_2); +lean_inc(x_1818); +x_1819 = l_Lean_Expr_resolveBinderNameHint_go(x_1818, x_2, x_3, x_4, x_5, x_1516); +if (lean_obj_tag(x_1819) == 0) +{ +lean_object* x_1820; lean_object* x_1821; lean_object* x_1822; lean_object* x_1823; lean_object* x_1824; size_t x_1825; size_t x_1826; uint8_t x_1827; +x_1820 = lean_ctor_get(x_1819, 0); +lean_inc(x_1820); +x_1821 = lean_ctor_get(x_1819, 1); +lean_inc(x_1821); +lean_dec(x_1819); +x_1822 = lean_ctor_get(x_1820, 0); +lean_inc(x_1822); +x_1823 = lean_ctor_get(x_1820, 1); +lean_inc(x_1823); +if (lean_is_exclusive(x_1820)) { + lean_ctor_release(x_1820, 0); + lean_ctor_release(x_1820, 1); + x_1824 = x_1820; +} else { + lean_dec_ref(x_1820); + x_1824 = lean_box(0); +} +x_1825 = lean_ptr_addr(x_1818); +lean_dec(x_1818); +x_1826 = lean_ptr_addr(x_1822); +x_1827 = lean_usize_dec_eq(x_1825, x_1826); +if (x_1827 == 0) +{ +lean_object* x_1828; lean_object* x_1829; +x_1828 = l_Lean_Expr_proj___override(x_1816, x_1817, x_1822); +if (lean_is_scalar(x_1824)) { + x_1829 = lean_alloc_ctor(0, 2, 0); +} else { + x_1829 = x_1824; +} +lean_ctor_set(x_1829, 0, x_1828); +lean_ctor_set(x_1829, 1, x_1823); +x_7 = x_1829; +x_8 = x_1821; +goto block_165; +} +else +{ +lean_object* x_1830; +lean_dec(x_1822); +lean_dec(x_1817); +lean_dec(x_1816); +lean_inc(x_1); +if (lean_is_scalar(x_1824)) { + x_1830 = lean_alloc_ctor(0, 2, 0); +} else { + x_1830 = x_1824; +} +lean_ctor_set(x_1830, 0, x_1); +lean_ctor_set(x_1830, 1, x_1823); +x_7 = x_1830; +x_8 = x_1821; +goto block_165; +} +} +else +{ +lean_object* x_1831; lean_object* x_1832; lean_object* x_1833; lean_object* x_1834; +lean_dec(x_1818); +lean_dec(x_1817); +lean_dec(x_1816); +lean_dec(x_2); +lean_dec(x_1); +x_1831 = lean_ctor_get(x_1819, 0); +lean_inc(x_1831); +x_1832 = lean_ctor_get(x_1819, 1); +lean_inc(x_1832); +if (lean_is_exclusive(x_1819)) { + lean_ctor_release(x_1819, 0); + lean_ctor_release(x_1819, 1); + x_1833 = x_1819; +} else { + lean_dec_ref(x_1819); + x_1833 = lean_box(0); +} +if (lean_is_scalar(x_1833)) { + x_1834 = lean_alloc_ctor(1, 2, 0); +} else { + x_1834 = x_1833; +} +lean_ctor_set(x_1834, 0, x_1831); +lean_ctor_set(x_1834, 1, x_1832); +return x_1834; +} +} +default: +{ +lean_object* x_1835; lean_object* x_1836; lean_object* x_1837; lean_object* x_1838; lean_object* x_1839; lean_object* x_1840; lean_object* x_1841; lean_object* x_1842; size_t x_1843; size_t x_1844; size_t x_1845; lean_object* x_1846; uint8_t x_1847; +lean_dec(x_5); +lean_dec(x_4); +x_1835 = lean_st_ref_take(x_2, x_1516); +x_1836 = lean_ctor_get(x_1835, 0); +lean_inc(x_1836); +x_1837 = lean_ctor_get(x_1835, 1); +lean_inc(x_1837); +if (lean_is_exclusive(x_1835)) { + lean_ctor_release(x_1835, 0); + lean_ctor_release(x_1835, 1); + x_1838 = x_1835; +} else { + lean_dec_ref(x_1835); + x_1838 = lean_box(0); +} +x_1839 = lean_ctor_get(x_1836, 0); +lean_inc(x_1839); +x_1840 = lean_ctor_get(x_1836, 1); +lean_inc(x_1840); +if (lean_is_exclusive(x_1836)) { + lean_ctor_release(x_1836, 0); + lean_ctor_release(x_1836, 1); + x_1841 = x_1836; +} else { + lean_dec_ref(x_1836); + x_1841 = lean_box(0); +} +x_1842 = lean_array_get_size(x_1840); +x_1843 = lean_usize_of_nat(x_1842); +lean_dec(x_1842); +x_1844 = lean_usize_sub(x_1843, x_1529); +x_1845 = lean_usize_land(x_1527, x_1844); +x_1846 = lean_array_uget(x_1840, x_1845); +x_1847 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_1846); +if (x_1847 == 0) +{ +lean_object* x_1848; lean_object* x_1849; lean_object* x_1850; lean_object* x_1851; lean_object* x_1852; lean_object* x_1853; lean_object* x_1854; lean_object* x_1855; lean_object* x_1856; uint8_t x_1857; +x_1848 = lean_unsigned_to_nat(1u); +x_1849 = lean_nat_add(x_1839, x_1848); +lean_dec(x_1839); +lean_inc_n(x_1, 2); +x_1850 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_1850, 0, x_1); +lean_ctor_set(x_1850, 1, x_1); +lean_ctor_set(x_1850, 2, x_1846); +x_1851 = lean_array_uset(x_1840, x_1845, x_1850); +x_1852 = lean_unsigned_to_nat(4u); +x_1853 = lean_nat_mul(x_1849, x_1852); +x_1854 = lean_unsigned_to_nat(3u); +x_1855 = lean_nat_div(x_1853, x_1854); +lean_dec(x_1853); +x_1856 = lean_array_get_size(x_1851); +x_1857 = lean_nat_dec_le(x_1855, x_1856); +lean_dec(x_1856); +lean_dec(x_1855); +if (x_1857 == 0) +{ +lean_object* x_1858; lean_object* x_1859; lean_object* x_1860; lean_object* x_1861; lean_object* x_1862; lean_object* x_1863; lean_object* x_1864; +x_1858 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_1851); +if (lean_is_scalar(x_1841)) { + x_1859 = lean_alloc_ctor(0, 2, 0); +} else { + x_1859 = x_1841; +} +lean_ctor_set(x_1859, 0, x_1849); +lean_ctor_set(x_1859, 1, x_1858); +x_1860 = lean_st_ref_set(x_2, x_1859, x_1837); +lean_dec(x_2); +x_1861 = lean_ctor_get(x_1860, 1); +lean_inc(x_1861); +if (lean_is_exclusive(x_1860)) { + lean_ctor_release(x_1860, 0); + lean_ctor_release(x_1860, 1); + x_1862 = x_1860; +} else { + lean_dec_ref(x_1860); + x_1862 = lean_box(0); +} +if (lean_is_scalar(x_1838)) { + x_1863 = lean_alloc_ctor(0, 2, 0); +} else { + x_1863 = x_1838; +} +lean_ctor_set(x_1863, 0, x_1); +lean_ctor_set(x_1863, 1, x_3); +if (lean_is_scalar(x_1862)) { + x_1864 = lean_alloc_ctor(0, 2, 0); +} else { + x_1864 = x_1862; +} +lean_ctor_set(x_1864, 0, x_1863); +lean_ctor_set(x_1864, 1, x_1861); +return x_1864; +} +else +{ +lean_object* x_1865; lean_object* x_1866; lean_object* x_1867; lean_object* x_1868; lean_object* x_1869; lean_object* x_1870; +if (lean_is_scalar(x_1841)) { + x_1865 = lean_alloc_ctor(0, 2, 0); +} else { + x_1865 = x_1841; +} +lean_ctor_set(x_1865, 0, x_1849); +lean_ctor_set(x_1865, 1, x_1851); +x_1866 = lean_st_ref_set(x_2, x_1865, x_1837); +lean_dec(x_2); +x_1867 = lean_ctor_get(x_1866, 1); +lean_inc(x_1867); +if (lean_is_exclusive(x_1866)) { + lean_ctor_release(x_1866, 0); + lean_ctor_release(x_1866, 1); + x_1868 = x_1866; +} else { + lean_dec_ref(x_1866); + x_1868 = lean_box(0); +} +if (lean_is_scalar(x_1838)) { + x_1869 = lean_alloc_ctor(0, 2, 0); +} else { + x_1869 = x_1838; +} +lean_ctor_set(x_1869, 0, x_1); +lean_ctor_set(x_1869, 1, x_3); +if (lean_is_scalar(x_1868)) { + x_1870 = lean_alloc_ctor(0, 2, 0); +} else { + x_1870 = x_1868; +} +lean_ctor_set(x_1870, 0, x_1869); +lean_ctor_set(x_1870, 1, x_1867); +return x_1870; +} +} +else +{ +lean_object* x_1871; lean_object* x_1872; lean_object* x_1873; lean_object* x_1874; lean_object* x_1875; lean_object* x_1876; lean_object* x_1877; lean_object* x_1878; lean_object* x_1879; lean_object* x_1880; +x_1871 = lean_box(0); +x_1872 = lean_array_uset(x_1840, x_1845, x_1871); +lean_inc_n(x_1, 2); +x_1873 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_1, x_1846); +x_1874 = lean_array_uset(x_1872, x_1845, x_1873); +if (lean_is_scalar(x_1841)) { + x_1875 = lean_alloc_ctor(0, 2, 0); +} else { + x_1875 = x_1841; +} +lean_ctor_set(x_1875, 0, x_1839); +lean_ctor_set(x_1875, 1, x_1874); +x_1876 = lean_st_ref_set(x_2, x_1875, x_1837); +lean_dec(x_2); +x_1877 = lean_ctor_get(x_1876, 1); +lean_inc(x_1877); +if (lean_is_exclusive(x_1876)) { + lean_ctor_release(x_1876, 0); + lean_ctor_release(x_1876, 1); + x_1878 = x_1876; +} else { + lean_dec_ref(x_1876); + x_1878 = lean_box(0); +} +if (lean_is_scalar(x_1838)) { + x_1879 = lean_alloc_ctor(0, 2, 0); +} else { + x_1879 = x_1838; +} +lean_ctor_set(x_1879, 0, x_1); +lean_ctor_set(x_1879, 1, x_3); +if (lean_is_scalar(x_1878)) { + x_1880 = lean_alloc_ctor(0, 2, 0); +} else { + x_1880 = x_1878; +} +lean_ctor_set(x_1880, 0, x_1879); +lean_ctor_set(x_1880, 1, x_1877); +return x_1880; +} +} +} +} +else +{ +lean_object* x_1881; lean_object* x_1882; lean_object* x_1883; lean_object* x_1884; lean_object* x_1885; lean_object* x_1886; +x_1881 = l_Lean_Expr_appFn_x21(x_1); +x_1882 = l_Lean_Expr_appFn_x21(x_1881); +x_1883 = l_Lean_Expr_appArg_x21(x_1882); +lean_dec(x_1882); +x_1884 = l_Lean_Expr_appArg_x21(x_1881); +lean_dec(x_1881); +x_1885 = l_Lean_Expr_appArg_x21(x_1); +lean_inc(x_5); +lean_inc(x_4); +lean_inc(x_2); +x_1886 = l_Lean_Expr_resolveBinderNameHint_go(x_1885, x_2, x_3, x_4, x_5, x_1516); +if (lean_obj_tag(x_1886) == 0) +{ +lean_object* x_1887; +x_1887 = lean_ctor_get(x_1886, 0); +lean_inc(x_1887); +if (lean_obj_tag(x_1883) == 0) +{ +lean_object* x_1888; lean_object* x_1889; lean_object* x_1890; lean_object* x_1891; lean_object* x_1892; +x_1888 = lean_ctor_get(x_1886, 1); +lean_inc(x_1888); +lean_dec(x_1886); +x_1889 = lean_ctor_get(x_1887, 0); +lean_inc(x_1889); +x_1890 = lean_ctor_get(x_1887, 1); +lean_inc(x_1890); +lean_dec(x_1887); +x_1891 = lean_ctor_get(x_1883, 0); +lean_inc(x_1891); +lean_dec(x_1883); +x_1892 = l_Lean_Expr_headBeta(x_1884); +switch (lean_obj_tag(x_1892)) { +case 6: +{ +lean_object* x_1893; lean_object* x_1894; lean_object* x_1895; lean_object* x_1896; +x_1893 = lean_ctor_get(x_1892, 0); +lean_inc(x_1893); +lean_dec(x_1892); +x_1894 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1891, x_1893, x_1890); +lean_dec(x_1891); +x_1895 = lean_box(0); +x_1896 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1889, x_1895, x_2, x_1894, x_4, x_5, x_1888); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1896; +goto block_329; +} +case 7: +{ +lean_object* x_1897; lean_object* x_1898; lean_object* x_1899; lean_object* x_1900; +x_1897 = lean_ctor_get(x_1892, 0); +lean_inc(x_1897); +lean_dec(x_1892); +x_1898 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1891, x_1897, x_1890); +lean_dec(x_1891); +x_1899 = lean_box(0); +x_1900 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1889, x_1899, x_2, x_1898, x_4, x_5, x_1888); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1900; +goto block_329; +} +default: +{ +lean_object* x_1901; uint8_t x_1902; +lean_dec(x_1892); +x_1901 = lean_array_get_size(x_1890); +x_1902 = lean_nat_dec_lt(x_1891, x_1901); +if (x_1902 == 0) +{ +lean_object* x_1903; lean_object* x_1904; +lean_dec(x_1901); +lean_dec(x_1891); +lean_dec(x_1889); +x_1903 = l_Lean_Expr_resolveBinderNameHint_go___closed__4; +lean_inc(x_2); +x_1904 = l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1(x_1903, x_2, x_1890, x_4, x_5, x_1888); +x_166 = x_1904; +goto block_329; +} +else +{ +lean_object* x_1905; lean_object* x_1906; lean_object* x_1907; uint8_t x_1908; +x_1905 = lean_nat_sub(x_1901, x_1891); +x_1906 = lean_unsigned_to_nat(1u); +x_1907 = lean_nat_sub(x_1905, x_1906); +lean_dec(x_1905); +x_1908 = lean_nat_dec_lt(x_1907, x_1901); +lean_dec(x_1901); +if (x_1908 == 0) +{ +lean_object* x_1909; lean_object* x_1910; lean_object* x_1911; lean_object* x_1912; lean_object* x_1913; lean_object* x_1914; lean_object* x_1915; lean_object* x_1916; +lean_dec(x_1907); +x_1909 = l_Lean_instInhabitedName; +x_1910 = l_outOfBounds___rarg(x_1909); +x_1911 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_1910, x_4, x_5, x_1888); +x_1912 = lean_ctor_get(x_1911, 0); +lean_inc(x_1912); +x_1913 = lean_ctor_get(x_1911, 1); +lean_inc(x_1913); +lean_dec(x_1911); +x_1914 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1891, x_1912, x_1890); +lean_dec(x_1891); +x_1915 = lean_box(0); +x_1916 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1889, x_1915, x_2, x_1914, x_4, x_5, x_1913); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1916; +goto block_329; +} +else +{ +lean_object* x_1917; lean_object* x_1918; lean_object* x_1919; lean_object* x_1920; lean_object* x_1921; lean_object* x_1922; lean_object* x_1923; +x_1917 = lean_array_fget(x_1890, x_1907); +lean_dec(x_1907); +x_1918 = l___private_Lean_CoreM_0__Lean_Core_mkFreshNameImp(x_1917, x_4, x_5, x_1888); +x_1919 = lean_ctor_get(x_1918, 0); +lean_inc(x_1919); +x_1920 = lean_ctor_get(x_1918, 1); +lean_inc(x_1920); +lean_dec(x_1918); +x_1921 = l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName(x_1891, x_1919, x_1890); +lean_dec(x_1891); +x_1922 = lean_box(0); +x_1923 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1889, x_1922, x_2, x_1921, x_4, x_5, x_1920); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1923; +goto block_329; +} +} +} +} +} +else +{ +lean_object* x_1924; lean_object* x_1925; lean_object* x_1926; lean_object* x_1927; lean_object* x_1928; +lean_dec(x_1884); +lean_dec(x_1883); +x_1924 = lean_ctor_get(x_1886, 1); +lean_inc(x_1924); +lean_dec(x_1886); +x_1925 = lean_ctor_get(x_1887, 0); +lean_inc(x_1925); +x_1926 = lean_ctor_get(x_1887, 1); +lean_inc(x_1926); +lean_dec(x_1887); +x_1927 = lean_box(0); +x_1928 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1925, x_1927, x_2, x_1926, x_4, x_5, x_1924); +lean_dec(x_5); +lean_dec(x_4); +x_166 = x_1928; +goto block_329; +} +} +else +{ +lean_object* x_1929; lean_object* x_1930; lean_object* x_1931; lean_object* x_1932; +lean_dec(x_1884); +lean_dec(x_1883); +lean_dec(x_5); +lean_dec(x_4); +x_1929 = lean_ctor_get(x_1886, 0); +lean_inc(x_1929); +x_1930 = lean_ctor_get(x_1886, 1); +lean_inc(x_1930); +if (lean_is_exclusive(x_1886)) { + lean_ctor_release(x_1886, 0); + lean_ctor_release(x_1886, 1); + x_1931 = x_1886; +} else { + lean_dec_ref(x_1886); + x_1931 = lean_box(0); +} +if (lean_is_scalar(x_1931)) { + x_1932 = lean_alloc_ctor(1, 2, 0); +} else { + x_1932 = x_1931; +} +lean_ctor_set(x_1932, 0, x_1929); +lean_ctor_set(x_1932, 1, x_1930); +x_166 = x_1932; +goto block_329; +} +} +} +else +{ +lean_object* x_1933; lean_object* x_1934; lean_object* x_1935; +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +lean_dec(x_1); +x_1933 = lean_ctor_get(x_1533, 0); +lean_inc(x_1933); +lean_dec(x_1533); +if (lean_is_scalar(x_1518)) { + x_1934 = lean_alloc_ctor(0, 2, 0); +} else { + x_1934 = x_1518; +} +lean_ctor_set(x_1934, 0, x_1933); +lean_ctor_set(x_1934, 1, x_3); +x_1935 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_1935, 0, x_1934); +lean_ctor_set(x_1935, 1, x_1516); +return x_1935; +} +} +block_165: +{ +uint8_t x_9; +x_9 = !lean_is_exclusive(x_7); +if (x_9 == 0) +{ +lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_10 = lean_ctor_get(x_7, 0); +x_11 = lean_st_ref_take(x_2, x_8); +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_is_exclusive(x_12); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; uint64_t x_22; uint64_t x_23; uint64_t x_24; size_t x_25; size_t x_26; size_t x_27; size_t x_28; size_t x_29; lean_object* x_30; uint8_t x_31; +x_15 = lean_ctor_get(x_12, 0); +x_16 = lean_ctor_get(x_12, 1); +x_17 = lean_array_get_size(x_16); +x_18 = l_Lean_Expr_hash(x_1); +x_19 = 32; +x_20 = lean_uint64_shift_right(x_18, x_19); +x_21 = lean_uint64_xor(x_18, x_20); +x_22 = 16; +x_23 = lean_uint64_shift_right(x_21, x_22); +x_24 = lean_uint64_xor(x_21, x_23); +x_25 = lean_uint64_to_usize(x_24); +x_26 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_27 = 1; +x_28 = lean_usize_sub(x_26, x_27); +x_29 = lean_usize_land(x_25, x_28); +x_30 = lean_array_uget(x_16, x_29); +x_31 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_30); +if (x_31 == 0) +{ +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; uint8_t x_41; +x_32 = lean_unsigned_to_nat(1u); +x_33 = lean_nat_add(x_15, x_32); +lean_dec(x_15); +lean_inc(x_10); +x_34 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_34, 0, x_1); +lean_ctor_set(x_34, 1, x_10); +lean_ctor_set(x_34, 2, x_30); +x_35 = lean_array_uset(x_16, x_29, x_34); +x_36 = lean_unsigned_to_nat(4u); +x_37 = lean_nat_mul(x_33, x_36); +x_38 = lean_unsigned_to_nat(3u); +x_39 = lean_nat_div(x_37, x_38); +lean_dec(x_37); +x_40 = lean_array_get_size(x_35); +x_41 = lean_nat_dec_le(x_39, x_40); +lean_dec(x_40); +lean_dec(x_39); +if (x_41 == 0) +{ +lean_object* x_42; lean_object* x_43; uint8_t x_44; +x_42 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_35); +lean_ctor_set(x_12, 1, x_42); +lean_ctor_set(x_12, 0, x_33); +x_43 = lean_st_ref_set(x_2, x_12, x_13); +lean_dec(x_2); +x_44 = !lean_is_exclusive(x_43); +if (x_44 == 0) +{ +lean_object* x_45; +x_45 = lean_ctor_get(x_43, 0); +lean_dec(x_45); +lean_ctor_set(x_43, 0, x_7); +return x_43; +} +else +{ +lean_object* x_46; lean_object* x_47; +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +x_47 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_47, 0, x_7); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +else +{ +lean_object* x_48; uint8_t x_49; +lean_ctor_set(x_12, 1, x_35); +lean_ctor_set(x_12, 0, x_33); +x_48 = lean_st_ref_set(x_2, x_12, x_13); +lean_dec(x_2); +x_49 = !lean_is_exclusive(x_48); +if (x_49 == 0) +{ +lean_object* x_50; +x_50 = lean_ctor_get(x_48, 0); +lean_dec(x_50); +lean_ctor_set(x_48, 0, x_7); +return x_48; +} +else +{ +lean_object* x_51; lean_object* x_52; +x_51 = lean_ctor_get(x_48, 1); +lean_inc(x_51); +lean_dec(x_48); +x_52 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_52, 0, x_7); +lean_ctor_set(x_52, 1, x_51); +return x_52; +} +} +} +else +{ +lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; +x_53 = lean_box(0); +x_54 = lean_array_uset(x_16, x_29, x_53); +lean_inc(x_10); +x_55 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_10, x_30); +x_56 = lean_array_uset(x_54, x_29, x_55); +lean_ctor_set(x_12, 1, x_56); +x_57 = lean_st_ref_set(x_2, x_12, x_13); +lean_dec(x_2); +x_58 = !lean_is_exclusive(x_57); +if (x_58 == 0) +{ +lean_object* x_59; +x_59 = lean_ctor_get(x_57, 0); +lean_dec(x_59); +lean_ctor_set(x_57, 0, x_7); +return x_57; +} +else +{ +lean_object* x_60; lean_object* x_61; +x_60 = lean_ctor_get(x_57, 1); +lean_inc(x_60); +lean_dec(x_57); +x_61 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_61, 0, x_7); +lean_ctor_set(x_61, 1, x_60); +return x_61; +} +} +} +else +{ +lean_object* x_62; lean_object* x_63; lean_object* x_64; uint64_t x_65; uint64_t x_66; uint64_t x_67; uint64_t x_68; uint64_t x_69; uint64_t x_70; uint64_t x_71; size_t x_72; size_t x_73; size_t x_74; size_t x_75; size_t x_76; lean_object* x_77; uint8_t x_78; +x_62 = lean_ctor_get(x_12, 0); +x_63 = lean_ctor_get(x_12, 1); +lean_inc(x_63); +lean_inc(x_62); +lean_dec(x_12); +x_64 = lean_array_get_size(x_63); +x_65 = l_Lean_Expr_hash(x_1); +x_66 = 32; +x_67 = lean_uint64_shift_right(x_65, x_66); +x_68 = lean_uint64_xor(x_65, x_67); +x_69 = 16; +x_70 = lean_uint64_shift_right(x_68, x_69); +x_71 = lean_uint64_xor(x_68, x_70); +x_72 = lean_uint64_to_usize(x_71); +x_73 = lean_usize_of_nat(x_64); +lean_dec(x_64); +x_74 = 1; +x_75 = lean_usize_sub(x_73, x_74); +x_76 = lean_usize_land(x_72, x_75); +x_77 = lean_array_uget(x_63, x_76); +x_78 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_77); +if (x_78 == 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; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_79 = lean_unsigned_to_nat(1u); +x_80 = lean_nat_add(x_62, x_79); +lean_dec(x_62); +lean_inc(x_10); +x_81 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_81, 0, x_1); +lean_ctor_set(x_81, 1, x_10); +lean_ctor_set(x_81, 2, x_77); +x_82 = lean_array_uset(x_63, x_76, x_81); +x_83 = lean_unsigned_to_nat(4u); +x_84 = lean_nat_mul(x_80, x_83); +x_85 = lean_unsigned_to_nat(3u); +x_86 = lean_nat_div(x_84, x_85); +lean_dec(x_84); +x_87 = lean_array_get_size(x_82); +x_88 = lean_nat_dec_le(x_86, x_87); +lean_dec(x_87); +lean_dec(x_86); +if (x_88 == 0) +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; +x_89 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_82); +x_90 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_90, 0, x_80); +lean_ctor_set(x_90, 1, x_89); +x_91 = lean_st_ref_set(x_2, x_90, x_13); +lean_dec(x_2); +x_92 = lean_ctor_get(x_91, 1); +lean_inc(x_92); +if (lean_is_exclusive(x_91)) { + lean_ctor_release(x_91, 0); + lean_ctor_release(x_91, 1); + x_93 = x_91; +} else { + lean_dec_ref(x_91); + x_93 = lean_box(0); +} +if (lean_is_scalar(x_93)) { + x_94 = lean_alloc_ctor(0, 2, 0); +} else { + x_94 = x_93; +} +lean_ctor_set(x_94, 0, x_7); +lean_ctor_set(x_94, 1, x_92); +return x_94; +} +else +{ +lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; +x_95 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_95, 0, x_80); +lean_ctor_set(x_95, 1, x_82); +x_96 = lean_st_ref_set(x_2, x_95, x_13); +lean_dec(x_2); +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); +} +if (lean_is_scalar(x_98)) { + x_99 = lean_alloc_ctor(0, 2, 0); +} else { + x_99 = x_98; +} +lean_ctor_set(x_99, 0, x_7); +lean_ctor_set(x_99, 1, x_97); +return x_99; +} +} +else +{ +lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; +x_100 = lean_box(0); +x_101 = lean_array_uset(x_63, x_76, x_100); +lean_inc(x_10); +x_102 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_10, x_77); +x_103 = lean_array_uset(x_101, x_76, x_102); +x_104 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_104, 0, x_62); +lean_ctor_set(x_104, 1, x_103); +x_105 = lean_st_ref_set(x_2, x_104, x_13); +lean_dec(x_2); +x_106 = lean_ctor_get(x_105, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_105)) { + lean_ctor_release(x_105, 0); + lean_ctor_release(x_105, 1); + x_107 = x_105; +} else { + lean_dec_ref(x_105); + x_107 = lean_box(0); +} +if (lean_is_scalar(x_107)) { + x_108 = lean_alloc_ctor(0, 2, 0); +} else { + x_108 = x_107; +} +lean_ctor_set(x_108, 0, x_7); +lean_ctor_set(x_108, 1, x_106); +return x_108; +} +} +} +else +{ +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; uint64_t x_118; uint64_t x_119; uint64_t x_120; uint64_t x_121; uint64_t x_122; uint64_t x_123; uint64_t x_124; size_t x_125; size_t x_126; size_t x_127; size_t x_128; size_t x_129; lean_object* x_130; uint8_t x_131; +x_109 = lean_ctor_get(x_7, 0); +x_110 = lean_ctor_get(x_7, 1); +lean_inc(x_110); +lean_inc(x_109); +lean_dec(x_7); +x_111 = lean_st_ref_take(x_2, x_8); +x_112 = lean_ctor_get(x_111, 0); +lean_inc(x_112); +x_113 = lean_ctor_get(x_111, 1); +lean_inc(x_113); +lean_dec(x_111); +x_114 = lean_ctor_get(x_112, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_112, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_112)) { + lean_ctor_release(x_112, 0); + lean_ctor_release(x_112, 1); + x_116 = x_112; +} else { + lean_dec_ref(x_112); + x_116 = lean_box(0); +} +x_117 = lean_array_get_size(x_115); +x_118 = l_Lean_Expr_hash(x_1); +x_119 = 32; +x_120 = lean_uint64_shift_right(x_118, x_119); +x_121 = lean_uint64_xor(x_118, x_120); +x_122 = 16; +x_123 = lean_uint64_shift_right(x_121, x_122); +x_124 = lean_uint64_xor(x_121, x_123); +x_125 = lean_uint64_to_usize(x_124); +x_126 = lean_usize_of_nat(x_117); +lean_dec(x_117); +x_127 = 1; +x_128 = lean_usize_sub(x_126, x_127); +x_129 = lean_usize_land(x_125, x_128); +x_130 = lean_array_uget(x_115, x_129); +x_131 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_130); +if (x_131 == 0) +{ +lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; uint8_t x_141; +x_132 = lean_unsigned_to_nat(1u); +x_133 = lean_nat_add(x_114, x_132); +lean_dec(x_114); +lean_inc(x_109); +x_134 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_134, 0, x_1); +lean_ctor_set(x_134, 1, x_109); +lean_ctor_set(x_134, 2, x_130); +x_135 = lean_array_uset(x_115, x_129, x_134); +x_136 = lean_unsigned_to_nat(4u); +x_137 = lean_nat_mul(x_133, x_136); +x_138 = lean_unsigned_to_nat(3u); +x_139 = lean_nat_div(x_137, x_138); +lean_dec(x_137); +x_140 = lean_array_get_size(x_135); +x_141 = lean_nat_dec_le(x_139, x_140); +lean_dec(x_140); +lean_dec(x_139); +if (x_141 == 0) +{ +lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; +x_142 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_135); +if (lean_is_scalar(x_116)) { + x_143 = lean_alloc_ctor(0, 2, 0); +} else { + x_143 = x_116; +} +lean_ctor_set(x_143, 0, x_133); +lean_ctor_set(x_143, 1, x_142); +x_144 = lean_st_ref_set(x_2, x_143, x_113); +lean_dec(x_2); +x_145 = lean_ctor_get(x_144, 1); +lean_inc(x_145); +if (lean_is_exclusive(x_144)) { + lean_ctor_release(x_144, 0); + lean_ctor_release(x_144, 1); + x_146 = x_144; +} else { + lean_dec_ref(x_144); + x_146 = lean_box(0); +} +x_147 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_147, 0, x_109); +lean_ctor_set(x_147, 1, x_110); +if (lean_is_scalar(x_146)) { + x_148 = lean_alloc_ctor(0, 2, 0); +} else { + x_148 = x_146; +} +lean_ctor_set(x_148, 0, x_147); +lean_ctor_set(x_148, 1, x_145); +return x_148; +} +else +{ +lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; +if (lean_is_scalar(x_116)) { + x_149 = lean_alloc_ctor(0, 2, 0); +} else { + x_149 = x_116; +} +lean_ctor_set(x_149, 0, x_133); +lean_ctor_set(x_149, 1, x_135); +x_150 = lean_st_ref_set(x_2, x_149, x_113); +lean_dec(x_2); +x_151 = lean_ctor_get(x_150, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_152 = x_150; +} else { + lean_dec_ref(x_150); + x_152 = lean_box(0); +} +x_153 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_153, 0, x_109); +lean_ctor_set(x_153, 1, x_110); +if (lean_is_scalar(x_152)) { + x_154 = lean_alloc_ctor(0, 2, 0); +} else { + x_154 = x_152; +} +lean_ctor_set(x_154, 0, x_153); +lean_ctor_set(x_154, 1, x_151); +return x_154; +} +} +else +{ +lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; +x_155 = lean_box(0); +x_156 = lean_array_uset(x_115, x_129, x_155); +lean_inc(x_109); +x_157 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_109, x_130); +x_158 = lean_array_uset(x_156, x_129, x_157); +if (lean_is_scalar(x_116)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_116; +} +lean_ctor_set(x_159, 0, x_114); +lean_ctor_set(x_159, 1, x_158); +x_160 = lean_st_ref_set(x_2, x_159, x_113); +lean_dec(x_2); +x_161 = lean_ctor_get(x_160, 1); +lean_inc(x_161); +if (lean_is_exclusive(x_160)) { + lean_ctor_release(x_160, 0); + lean_ctor_release(x_160, 1); + x_162 = x_160; +} else { + lean_dec_ref(x_160); + x_162 = lean_box(0); +} +x_163 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_163, 0, x_109); +lean_ctor_set(x_163, 1, x_110); +if (lean_is_scalar(x_162)) { + x_164 = lean_alloc_ctor(0, 2, 0); +} else { + x_164 = x_162; +} +lean_ctor_set(x_164, 0, x_163); +lean_ctor_set(x_164, 1, x_161); +return x_164; +} +} +} +block_329: +{ +if (lean_obj_tag(x_166) == 0) +{ +lean_object* x_167; lean_object* x_168; uint8_t x_169; +x_167 = lean_ctor_get(x_166, 0); +lean_inc(x_167); +x_168 = lean_ctor_get(x_166, 1); +lean_inc(x_168); +lean_dec(x_166); +x_169 = !lean_is_exclusive(x_167); +if (x_169 == 0) +{ +lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; uint8_t x_174; +x_170 = lean_ctor_get(x_167, 0); +x_171 = lean_st_ref_take(x_2, x_168); +x_172 = lean_ctor_get(x_171, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_171, 1); +lean_inc(x_173); +lean_dec(x_171); +x_174 = !lean_is_exclusive(x_172); +if (x_174 == 0) +{ +lean_object* x_175; lean_object* x_176; lean_object* x_177; uint64_t x_178; uint64_t x_179; uint64_t x_180; uint64_t x_181; uint64_t x_182; uint64_t x_183; uint64_t x_184; size_t x_185; size_t x_186; size_t x_187; size_t x_188; size_t x_189; lean_object* x_190; uint8_t x_191; +x_175 = lean_ctor_get(x_172, 0); +x_176 = lean_ctor_get(x_172, 1); +x_177 = lean_array_get_size(x_176); +x_178 = l_Lean_Expr_hash(x_1); +x_179 = 32; +x_180 = lean_uint64_shift_right(x_178, x_179); +x_181 = lean_uint64_xor(x_178, x_180); +x_182 = 16; +x_183 = lean_uint64_shift_right(x_181, x_182); +x_184 = lean_uint64_xor(x_181, x_183); +x_185 = lean_uint64_to_usize(x_184); +x_186 = lean_usize_of_nat(x_177); +lean_dec(x_177); +x_187 = 1; +x_188 = lean_usize_sub(x_186, x_187); +x_189 = lean_usize_land(x_185, x_188); +x_190 = lean_array_uget(x_176, x_189); +x_191 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_190); +if (x_191 == 0) +{ +lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; uint8_t x_201; +x_192 = lean_unsigned_to_nat(1u); +x_193 = lean_nat_add(x_175, x_192); +lean_dec(x_175); +lean_inc(x_170); +x_194 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_194, 0, x_1); +lean_ctor_set(x_194, 1, x_170); +lean_ctor_set(x_194, 2, x_190); +x_195 = lean_array_uset(x_176, x_189, x_194); +x_196 = lean_unsigned_to_nat(4u); +x_197 = lean_nat_mul(x_193, x_196); +x_198 = lean_unsigned_to_nat(3u); +x_199 = lean_nat_div(x_197, x_198); +lean_dec(x_197); +x_200 = lean_array_get_size(x_195); +x_201 = lean_nat_dec_le(x_199, x_200); +lean_dec(x_200); +lean_dec(x_199); +if (x_201 == 0) +{ +lean_object* x_202; lean_object* x_203; uint8_t x_204; +x_202 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_195); +lean_ctor_set(x_172, 1, x_202); +lean_ctor_set(x_172, 0, x_193); +x_203 = lean_st_ref_set(x_2, x_172, x_173); +lean_dec(x_2); +x_204 = !lean_is_exclusive(x_203); +if (x_204 == 0) +{ +lean_object* x_205; +x_205 = lean_ctor_get(x_203, 0); +lean_dec(x_205); +lean_ctor_set(x_203, 0, x_167); +return x_203; +} +else +{ +lean_object* x_206; lean_object* x_207; +x_206 = lean_ctor_get(x_203, 1); +lean_inc(x_206); +lean_dec(x_203); +x_207 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_207, 0, x_167); +lean_ctor_set(x_207, 1, x_206); +return x_207; +} +} +else +{ +lean_object* x_208; uint8_t x_209; +lean_ctor_set(x_172, 1, x_195); +lean_ctor_set(x_172, 0, x_193); +x_208 = lean_st_ref_set(x_2, x_172, x_173); +lean_dec(x_2); +x_209 = !lean_is_exclusive(x_208); +if (x_209 == 0) +{ +lean_object* x_210; +x_210 = lean_ctor_get(x_208, 0); +lean_dec(x_210); +lean_ctor_set(x_208, 0, x_167); +return x_208; +} +else +{ +lean_object* x_211; lean_object* x_212; +x_211 = lean_ctor_get(x_208, 1); +lean_inc(x_211); +lean_dec(x_208); +x_212 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_212, 0, x_167); +lean_ctor_set(x_212, 1, x_211); +return x_212; +} +} +} +else +{ +lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; +x_213 = lean_box(0); +x_214 = lean_array_uset(x_176, x_189, x_213); +lean_inc(x_170); +x_215 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_170, x_190); +x_216 = lean_array_uset(x_214, x_189, x_215); +lean_ctor_set(x_172, 1, x_216); +x_217 = lean_st_ref_set(x_2, x_172, x_173); +lean_dec(x_2); +x_218 = !lean_is_exclusive(x_217); +if (x_218 == 0) +{ +lean_object* x_219; +x_219 = lean_ctor_get(x_217, 0); +lean_dec(x_219); +lean_ctor_set(x_217, 0, x_167); +return x_217; +} +else +{ +lean_object* x_220; lean_object* x_221; +x_220 = lean_ctor_get(x_217, 1); +lean_inc(x_220); +lean_dec(x_217); +x_221 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_221, 0, x_167); +lean_ctor_set(x_221, 1, x_220); +return x_221; +} +} +} +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; uint64_t x_225; uint64_t x_226; uint64_t x_227; uint64_t x_228; uint64_t x_229; uint64_t x_230; uint64_t x_231; size_t x_232; size_t x_233; size_t x_234; size_t x_235; size_t x_236; lean_object* x_237; uint8_t x_238; +x_222 = lean_ctor_get(x_172, 0); +x_223 = lean_ctor_get(x_172, 1); +lean_inc(x_223); +lean_inc(x_222); +lean_dec(x_172); +x_224 = lean_array_get_size(x_223); +x_225 = l_Lean_Expr_hash(x_1); +x_226 = 32; +x_227 = lean_uint64_shift_right(x_225, x_226); +x_228 = lean_uint64_xor(x_225, x_227); +x_229 = 16; +x_230 = lean_uint64_shift_right(x_228, x_229); +x_231 = lean_uint64_xor(x_228, x_230); +x_232 = lean_uint64_to_usize(x_231); +x_233 = lean_usize_of_nat(x_224); +lean_dec(x_224); +x_234 = 1; +x_235 = lean_usize_sub(x_233, x_234); +x_236 = lean_usize_land(x_232, x_235); +x_237 = lean_array_uget(x_223, x_236); +x_238 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_237); +if (x_238 == 0) +{ +lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; +x_239 = lean_unsigned_to_nat(1u); +x_240 = lean_nat_add(x_222, x_239); +lean_dec(x_222); +lean_inc(x_170); +x_241 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_241, 0, x_1); +lean_ctor_set(x_241, 1, x_170); +lean_ctor_set(x_241, 2, x_237); +x_242 = lean_array_uset(x_223, x_236, x_241); +x_243 = lean_unsigned_to_nat(4u); +x_244 = lean_nat_mul(x_240, x_243); +x_245 = lean_unsigned_to_nat(3u); +x_246 = lean_nat_div(x_244, x_245); +lean_dec(x_244); +x_247 = lean_array_get_size(x_242); +x_248 = lean_nat_dec_le(x_246, x_247); +lean_dec(x_247); +lean_dec(x_246); +if (x_248 == 0) +{ +lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; +x_249 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_242); +x_250 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_250, 0, x_240); +lean_ctor_set(x_250, 1, x_249); +x_251 = lean_st_ref_set(x_2, x_250, x_173); +lean_dec(x_2); +x_252 = lean_ctor_get(x_251, 1); +lean_inc(x_252); +if (lean_is_exclusive(x_251)) { + lean_ctor_release(x_251, 0); + lean_ctor_release(x_251, 1); + x_253 = x_251; +} else { + lean_dec_ref(x_251); + x_253 = lean_box(0); +} +if (lean_is_scalar(x_253)) { + x_254 = lean_alloc_ctor(0, 2, 0); +} else { + x_254 = x_253; +} +lean_ctor_set(x_254, 0, x_167); +lean_ctor_set(x_254, 1, x_252); +return x_254; +} +else +{ +lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; +x_255 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_255, 0, x_240); +lean_ctor_set(x_255, 1, x_242); +x_256 = lean_st_ref_set(x_2, x_255, x_173); +lean_dec(x_2); +x_257 = lean_ctor_get(x_256, 1); +lean_inc(x_257); +if (lean_is_exclusive(x_256)) { + lean_ctor_release(x_256, 0); + lean_ctor_release(x_256, 1); + x_258 = x_256; +} else { + lean_dec_ref(x_256); + x_258 = lean_box(0); +} +if (lean_is_scalar(x_258)) { + x_259 = lean_alloc_ctor(0, 2, 0); +} else { + x_259 = x_258; +} +lean_ctor_set(x_259, 0, x_167); +lean_ctor_set(x_259, 1, x_257); +return x_259; +} +} +else +{ +lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_260 = lean_box(0); +x_261 = lean_array_uset(x_223, x_236, x_260); +lean_inc(x_170); +x_262 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_170, x_237); +x_263 = lean_array_uset(x_261, x_236, x_262); +x_264 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_264, 0, x_222); +lean_ctor_set(x_264, 1, x_263); +x_265 = lean_st_ref_set(x_2, x_264, x_173); +lean_dec(x_2); +x_266 = lean_ctor_get(x_265, 1); +lean_inc(x_266); +if (lean_is_exclusive(x_265)) { + lean_ctor_release(x_265, 0); + lean_ctor_release(x_265, 1); + x_267 = x_265; +} else { + lean_dec_ref(x_265); + x_267 = lean_box(0); +} +if (lean_is_scalar(x_267)) { + x_268 = lean_alloc_ctor(0, 2, 0); +} else { + x_268 = x_267; +} +lean_ctor_set(x_268, 0, x_167); +lean_ctor_set(x_268, 1, x_266); +return x_268; +} +} +} +else +{ +lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; uint64_t x_278; uint64_t x_279; uint64_t x_280; uint64_t x_281; uint64_t x_282; uint64_t x_283; uint64_t x_284; size_t x_285; size_t x_286; size_t x_287; size_t x_288; size_t x_289; lean_object* x_290; uint8_t x_291; +x_269 = lean_ctor_get(x_167, 0); +x_270 = lean_ctor_get(x_167, 1); +lean_inc(x_270); +lean_inc(x_269); +lean_dec(x_167); +x_271 = lean_st_ref_take(x_2, x_168); +x_272 = lean_ctor_get(x_271, 0); +lean_inc(x_272); +x_273 = lean_ctor_get(x_271, 1); +lean_inc(x_273); +lean_dec(x_271); +x_274 = lean_ctor_get(x_272, 0); +lean_inc(x_274); +x_275 = lean_ctor_get(x_272, 1); +lean_inc(x_275); +if (lean_is_exclusive(x_272)) { + lean_ctor_release(x_272, 0); + lean_ctor_release(x_272, 1); + x_276 = x_272; +} else { + lean_dec_ref(x_272); + x_276 = lean_box(0); +} +x_277 = lean_array_get_size(x_275); +x_278 = l_Lean_Expr_hash(x_1); +x_279 = 32; +x_280 = lean_uint64_shift_right(x_278, x_279); +x_281 = lean_uint64_xor(x_278, x_280); +x_282 = 16; +x_283 = lean_uint64_shift_right(x_281, x_282); +x_284 = lean_uint64_xor(x_281, x_283); +x_285 = lean_uint64_to_usize(x_284); +x_286 = lean_usize_of_nat(x_277); +lean_dec(x_277); +x_287 = 1; +x_288 = lean_usize_sub(x_286, x_287); +x_289 = lean_usize_land(x_285, x_288); +x_290 = lean_array_uget(x_275, x_289); +x_291 = l_Std_DHashMap_Internal_AssocList_contains___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__2(x_1, x_290); +if (x_291 == 0) +{ +lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; uint8_t x_301; +x_292 = lean_unsigned_to_nat(1u); +x_293 = lean_nat_add(x_274, x_292); +lean_dec(x_274); +lean_inc(x_269); +x_294 = lean_alloc_ctor(1, 3, 0); +lean_ctor_set(x_294, 0, x_1); +lean_ctor_set(x_294, 1, x_269); +lean_ctor_set(x_294, 2, x_290); +x_295 = lean_array_uset(x_275, x_289, x_294); +x_296 = lean_unsigned_to_nat(4u); +x_297 = lean_nat_mul(x_293, x_296); +x_298 = lean_unsigned_to_nat(3u); +x_299 = lean_nat_div(x_297, x_298); +lean_dec(x_297); +x_300 = lean_array_get_size(x_295); +x_301 = lean_nat_dec_le(x_299, x_300); +lean_dec(x_300); +lean_dec(x_299); +if (x_301 == 0) +{ +lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; +x_302 = l_Std_DHashMap_Internal_Raw_u2080_expand___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__3(x_295); +if (lean_is_scalar(x_276)) { + x_303 = lean_alloc_ctor(0, 2, 0); +} else { + x_303 = x_276; +} +lean_ctor_set(x_303, 0, x_293); +lean_ctor_set(x_303, 1, x_302); +x_304 = lean_st_ref_set(x_2, x_303, x_273); +lean_dec(x_2); +x_305 = lean_ctor_get(x_304, 1); +lean_inc(x_305); +if (lean_is_exclusive(x_304)) { + lean_ctor_release(x_304, 0); + lean_ctor_release(x_304, 1); + x_306 = x_304; +} else { + lean_dec_ref(x_304); + x_306 = lean_box(0); +} +x_307 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_307, 0, x_269); +lean_ctor_set(x_307, 1, x_270); +if (lean_is_scalar(x_306)) { + x_308 = lean_alloc_ctor(0, 2, 0); +} else { + x_308 = x_306; +} +lean_ctor_set(x_308, 0, x_307); +lean_ctor_set(x_308, 1, x_305); +return x_308; +} +else +{ +lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; +if (lean_is_scalar(x_276)) { + x_309 = lean_alloc_ctor(0, 2, 0); +} else { + x_309 = x_276; +} +lean_ctor_set(x_309, 0, x_293); +lean_ctor_set(x_309, 1, x_295); +x_310 = lean_st_ref_set(x_2, x_309, x_273); +lean_dec(x_2); +x_311 = lean_ctor_get(x_310, 1); +lean_inc(x_311); +if (lean_is_exclusive(x_310)) { + lean_ctor_release(x_310, 0); + lean_ctor_release(x_310, 1); + x_312 = x_310; +} else { + lean_dec_ref(x_310); + x_312 = lean_box(0); +} +x_313 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_313, 0, x_269); +lean_ctor_set(x_313, 1, x_270); +if (lean_is_scalar(x_312)) { + x_314 = lean_alloc_ctor(0, 2, 0); +} else { + x_314 = x_312; +} +lean_ctor_set(x_314, 0, x_313); +lean_ctor_set(x_314, 1, x_311); +return x_314; +} +} +else +{ +lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; +x_315 = lean_box(0); +x_316 = lean_array_uset(x_275, x_289, x_315); +lean_inc(x_269); +x_317 = l_Std_DHashMap_Internal_AssocList_replace___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_visit___spec__6(x_1, x_269, x_290); +x_318 = lean_array_uset(x_316, x_289, x_317); +if (lean_is_scalar(x_276)) { + x_319 = lean_alloc_ctor(0, 2, 0); +} else { + x_319 = x_276; +} +lean_ctor_set(x_319, 0, x_274); +lean_ctor_set(x_319, 1, x_318); +x_320 = lean_st_ref_set(x_2, x_319, x_273); +lean_dec(x_2); +x_321 = lean_ctor_get(x_320, 1); +lean_inc(x_321); +if (lean_is_exclusive(x_320)) { + lean_ctor_release(x_320, 0); + lean_ctor_release(x_320, 1); + x_322 = x_320; +} else { + lean_dec_ref(x_320); + x_322 = lean_box(0); +} +x_323 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_323, 0, x_269); +lean_ctor_set(x_323, 1, x_270); +if (lean_is_scalar(x_322)) { + x_324 = lean_alloc_ctor(0, 2, 0); +} else { + x_324 = x_322; +} +lean_ctor_set(x_324, 0, x_323); +lean_ctor_set(x_324, 1, x_321); +return x_324; +} +} +} +else +{ +uint8_t x_325; +lean_dec(x_2); +lean_dec(x_1); +x_325 = !lean_is_exclusive(x_166); +if (x_325 == 0) +{ +return x_166; +} +else +{ +lean_object* x_326; lean_object* x_327; lean_object* x_328; +x_326 = lean_ctor_get(x_166, 0); +x_327 = lean_ctor_get(x_166, 1); +lean_inc(x_327); +lean_inc(x_326); +lean_dec(x_166); +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; +} +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Expr_resolveBinderNameHint_go___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) { +_start: +{ +lean_object* x_8; +x_8 = l_Lean_Expr_resolveBinderNameHint_go___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_3); +lean_dec(x_2); +return x_8; +} +} +static lean_object* _init_l_Lean_Expr_resolveBinderNameHint___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(10u); +x_2 = lean_unsigned_to_nat(1u); +x_3 = l_Nat_nextPowerOfTwo_go(x_1, x_2, lean_box(0)); +return x_3; +} +} +static lean_object* _init_l_Lean_Expr_resolveBinderNameHint___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_Lean_Expr_resolveBinderNameHint___closed__1; +x_3 = lean_mk_array(x_2, x_1); +return x_3; +} +} +static lean_object* _init_l_Lean_Expr_resolveBinderNameHint___closed__3() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_Expr_resolveBinderNameHint___closed__2; +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_Expr_resolveBinderNameHint___closed__4() { +_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 lean_object* l_Lean_Expr_resolveBinderNameHint(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_5 = l_Lean_Expr_resolveBinderNameHint___closed__3; +x_6 = lean_st_mk_ref(x_5, x_4); +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = l_Lean_Expr_resolveBinderNameHint___closed__4; +lean_inc(x_7); +x_10 = l_Lean_Expr_resolveBinderNameHint_go(x_1, x_7, x_9, x_2, x_3, x_8); +if (lean_obj_tag(x_10) == 0) +{ +lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); +lean_inc(x_12); +lean_dec(x_10); +x_13 = lean_ctor_get(x_11, 0); +lean_inc(x_13); +lean_dec(x_11); +x_14 = lean_st_ref_get(x_7, x_12); +lean_dec(x_7); +x_15 = !lean_is_exclusive(x_14); +if (x_15 == 0) +{ +lean_object* x_16; +x_16 = lean_ctor_get(x_14, 0); +lean_dec(x_16); +lean_ctor_set(x_14, 0, x_13); +return x_14; +} +else +{ +lean_object* x_17; lean_object* x_18; +x_17 = lean_ctor_get(x_14, 1); +lean_inc(x_17); +lean_dec(x_14); +x_18 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_18, 0, x_13); +lean_ctor_set(x_18, 1, x_17); +return x_18; +} +} +else +{ +uint8_t x_19; +lean_dec(x_7); +x_19 = !lean_is_exclusive(x_10); +if (x_19 == 0) +{ +return x_10; +} +else +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_10, 0); +x_21 = lean_ctor_get(x_10, 1); +lean_inc(x_21); +lean_inc(x_20); +lean_dec(x_10); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} +} +} +lean_object* initialize_Lean_Util_FindExpr(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_Basic(uint8_t builtin, lean_object*); +lean_object* initialize_Init_BinderNameHint(uint8_t builtin, lean_object*); +static bool _G_initialized = false; +LEAN_EXPORT lean_object* initialize_Lean_Meta_BinderNameHint(uint8_t builtin, lean_object* w) { +lean_object * res; +if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); +_G_initialized = true; +res = initialize_Lean_Util_FindExpr(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Lean_Meta_Basic(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +res = initialize_Init_BinderNameHint(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); +l_Lean_Expr_hasBinderNameHint___lambda__1___closed__1 = _init_l_Lean_Expr_hasBinderNameHint___lambda__1___closed__1(); +lean_mark_persistent(l_Lean_Expr_hasBinderNameHint___lambda__1___closed__1); +l_Lean_Expr_hasBinderNameHint___lambda__1___closed__2 = _init_l_Lean_Expr_hasBinderNameHint___lambda__1___closed__2(); +lean_mark_persistent(l_Lean_Expr_hasBinderNameHint___lambda__1___closed__2); +l_Lean_Expr_hasBinderNameHint___closed__1 = _init_l_Lean_Expr_hasBinderNameHint___closed__1(); +lean_mark_persistent(l_Lean_Expr_hasBinderNameHint___closed__1); +l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__1 = _init_l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__1(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__1); +l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__2 = _init_l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__2(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___spec__1___closed__2); +l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__1 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__1); +l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__2 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__2); +l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__3 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__3); +l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__4 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__4); +l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__5 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__5); +l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__6 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__6(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_exitScope___closed__6); +l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__1 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__1); +l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__2 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__2); +l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__3 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__3); +l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__4 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_rememberName___closed__4); +l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___spec__1___closed__1 = _init_l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___spec__1___closed__1(); +lean_mark_persistent(l_panic___at___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___spec__1___closed__1); +l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__1 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__1); +l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__2 = _init_l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_BinderNameHint_0__Lean_makeFresh___closed__2); +l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__1 = _init_l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__1(); +lean_mark_persistent(l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__1); +l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__2 = _init_l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__2(); +lean_mark_persistent(l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__2); +l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__3 = _init_l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__3(); +lean_mark_persistent(l_panic___at_Lean_Expr_resolveBinderNameHint_go___spec__1___closed__3); +l_Lean_Expr_resolveBinderNameHint_go___closed__1 = _init_l_Lean_Expr_resolveBinderNameHint_go___closed__1(); +lean_mark_persistent(l_Lean_Expr_resolveBinderNameHint_go___closed__1); +l_Lean_Expr_resolveBinderNameHint_go___closed__2 = _init_l_Lean_Expr_resolveBinderNameHint_go___closed__2(); +lean_mark_persistent(l_Lean_Expr_resolveBinderNameHint_go___closed__2); +l_Lean_Expr_resolveBinderNameHint_go___closed__3 = _init_l_Lean_Expr_resolveBinderNameHint_go___closed__3(); +lean_mark_persistent(l_Lean_Expr_resolveBinderNameHint_go___closed__3); +l_Lean_Expr_resolveBinderNameHint_go___closed__4 = _init_l_Lean_Expr_resolveBinderNameHint_go___closed__4(); +lean_mark_persistent(l_Lean_Expr_resolveBinderNameHint_go___closed__4); +l_Lean_Expr_resolveBinderNameHint___closed__1 = _init_l_Lean_Expr_resolveBinderNameHint___closed__1(); +lean_mark_persistent(l_Lean_Expr_resolveBinderNameHint___closed__1); +l_Lean_Expr_resolveBinderNameHint___closed__2 = _init_l_Lean_Expr_resolveBinderNameHint___closed__2(); +lean_mark_persistent(l_Lean_Expr_resolveBinderNameHint___closed__2); +l_Lean_Expr_resolveBinderNameHint___closed__3 = _init_l_Lean_Expr_resolveBinderNameHint___closed__3(); +lean_mark_persistent(l_Lean_Expr_resolveBinderNameHint___closed__3); +l_Lean_Expr_resolveBinderNameHint___closed__4 = _init_l_Lean_Expr_resolveBinderNameHint___closed__4(); +lean_mark_persistent(l_Lean_Expr_resolveBinderNameHint___closed__4); +return lean_io_result_mk_ok(lean_box(0)); +} +#ifdef __cplusplus +} +#endif diff --git a/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c index 921a1fcaed..280b2f2aba 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Rewrite.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Rewrite -// Imports: Lean.Meta.AppBuilder Lean.Meta.MatchUtil Lean.Meta.KAbstract Lean.Meta.Check Lean.Meta.Tactic.Util Lean.Meta.Tactic.Apply +// Imports: Lean.Meta.AppBuilder Lean.Meta.MatchUtil Lean.Meta.KAbstract Lean.Meta.Check Lean.Meta.Tactic.Util Lean.Meta.Tactic.Apply Lean.Meta.BinderNameHint #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -15,16 +15,19 @@ extern "C" { #endif lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__11; +static lean_object* l_Lean_MVarId_rewrite___lambda__5___closed__1; lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkAppN(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__8(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_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__8(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_Lean_MVarId_rewrite(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_rewrite___lambda__2___closed__2; +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__7; +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__4; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__9___boxed(lean_object**); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__24; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__5___boxed(lean_object**); static lean_object* l_Lean_MVarId_rewrite___closed__2; -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__11; +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__10; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_rewrite___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_indentD(lean_object*); lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -32,8 +35,6 @@ lean_object* l_Lean_Meta_mkEqSymm(lean_object*, lean_object*, lean_object*, lean uint8_t l_Lean_Exception_isInterrupt(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__12___boxed(lean_object**); lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__2; -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__3; static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__25; uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__13___boxed(lean_object**); @@ -42,49 +43,52 @@ static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__20; uint8_t lean_usize_dec_eq(size_t, size_t); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__6; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__11___boxed(lean_object**); -static lean_object* l_Lean_MVarId_rewrite___lambda__4___closed__2; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__8___boxed(lean_object**); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__10; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__6___boxed(lean_object**); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__26; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_rewrite___spec__5(lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* l_Lean_stringToMessageData(lean_object*); +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__2; +lean_object* l_Lean_Expr_resolveBinderNameHint(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Exception_toMessageData(lean_object*); lean_object* l_Lean_Meta_postprocessAppMVars(lean_object*, 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_MVarId_rewrite___lambda__3___closed__5; +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__17___boxed(lean_object**); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__21; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_rewrite___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_appArg_x21(lean_object*); -static lean_object* l_Lean_MVarId_rewrite___lambda__4___closed__1; static lean_object* l_Lean_MVarId_rewrite___lambda__2___closed__1; +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkApp6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__3; size_t lean_usize_of_nat(lean_object*); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__15; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__12(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_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_rewrite___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__10; +uint8_t l_Lean_Expr_hasBinderNameHint(lean_object*); static lean_object* l_Lean_MVarId_rewrite___lambda__2___closed__4; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__3___boxed(lean_object**); lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_forallMetaTelescopeReducingAux(lean_object*, uint8_t, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_kabstract(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isMVar(lean_object*); lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_check(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__14(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__14(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*); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__23; 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*); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__8; +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__1; uint8_t l_Lean_Expr_hasLooseBVars(lean_object*); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__3; -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_rewrite___spec__4(lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__7; static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__19; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_rewrite___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__9; -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__8; +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__18(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_tactic_skipAssignedInstances; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_rewrite___spec__2(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_MVarId_rewrite___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -93,15 +97,19 @@ lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__2___boxed(lean_object**); uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__9(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_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__9(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_Lean_MVarId_rewrite___lambda__16___boxed(lean_object**); lean_object* l_Lean_Expr_appFn_x21(lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__5; static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__13(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* l_Lean_MessageData_ofConstName(lean_object*, uint8_t); lean_object* l_Array_append___rarg(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofExpr(lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__18___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_Array_mapMUnsafe_map___at_Lean_MVarId_rewrite___spec__1(size_t, size_t, lean_object*); +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__6; lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__12; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -113,15 +121,16 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__1(lean_object*, lean_ob lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); lean_object* l_Lean_indentExpr(lean_object*); lean_object* l_Lean_Meta_getMVarsNoDelayed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__17(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*); static lean_object* l_Lean_MVarId_rewrite___lambda__2___closed__3; static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__16; static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__18; -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__9; static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__7; -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__10(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_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__10(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* l_Lean_Expr_getAppFn(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__7(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_MVarId_rewrite___spec__6(lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__11; static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__14; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__4___boxed(lean_object**); lean_object* lean_array_mk(lean_object*); @@ -129,21 +138,23 @@ static lean_object* l_Lean_MVarId_rewrite___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__4; -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__5; lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__15___boxed(lean_object**); +static lean_object* l_Lean_MVarId_rewrite___lambda__5___closed__2; static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__17; lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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_MVarId_rewrite___lambda__11(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_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__11(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*); uint8_t l_Array_contains___at_Lean_Elab_Term_logUnassignedUsingErrorInfos___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__9; lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, 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_foldlMUnsafe_fold___at_Lean_MVarId_rewrite___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__14___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_MVarId_rewrite___lambda__14___boxed(lean_object**); uint8_t l_Lean_Exception_isRuntime(lean_object*); lean_object* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MVarId_rewrite___spec__1___boxed(lean_object*, lean_object*, lean_object*); @@ -152,11 +163,10 @@ uint64_t l___private_Lean_Meta_Basic_0__Lean_Meta_Config_toKey(lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_uset(lean_object*, size_t, lean_object*); lean_object* lean_expr_instantiate1(lean_object*, lean_object*); +static lean_object* l_Lean_MVarId_rewrite___lambda__18___closed__8; static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__22; static lean_object* l_Lean_MVarId_rewrite___lambda__3___closed__13; lean_object* l_Lean_Meta_matchEq_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__6; -static lean_object* l_Lean_MVarId_rewrite___lambda__14___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_MVarId_rewrite___spec__1(size_t x_1, size_t x_2, lean_object* x_3) { _start: @@ -1061,465 +1071,517 @@ return x_2; LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { _start: { -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_18; +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_18 = lean_infer_type(x_1, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_51; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_MVarId_rewrite___lambda__3___closed__2; +x_22 = 0; +lean_inc(x_3); +lean_inc(x_2); +x_23 = l_Lean_Expr_lam___override(x_21, x_2, x_3, x_22); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_23); +x_51 = l_Lean_Meta_check(x_23, x_13, x_14, x_15, x_16, x_20); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_24 = x_52; +goto block_50; +} +else +{ +uint8_t x_53; +lean_dec(x_19); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_53 = !lean_is_exclusive(x_51); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_54 = lean_ctor_get(x_51, 0); +x_55 = lean_ctor_get(x_51, 1); +x_56 = l_Lean_Exception_isInterrupt(x_54); +if (x_56 == 0) +{ +uint8_t x_57; +x_57 = l_Lean_Exception_isRuntime(x_54); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +lean_free_object(x_51); +x_58 = l_Lean_MessageData_ofExpr(x_23); +x_59 = l_Lean_indentD(x_58); +x_60 = l_Lean_MVarId_rewrite___lambda__3___closed__8; +x_61 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_62 = l_Lean_MVarId_rewrite___lambda__3___closed__10; +x_63 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_Exception_toMessageData(x_54); +x_65 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +x_66 = l_Lean_MVarId_rewrite___lambda__3___closed__12; +x_67 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +x_68 = l_Lean_MVarId_rewrite___lambda__3___closed__13; +x_69 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +x_70 = l_Lean_MVarId_rewrite___lambda__3___closed__15; +x_71 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +x_72 = l_Lean_MVarId_rewrite___lambda__3___closed__19; +x_73 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +x_74 = l_Lean_MVarId_rewrite___lambda__3___closed__21; +x_75 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +x_76 = l_Lean_MVarId_rewrite___lambda__3___closed__24; +x_77 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +x_78 = l_Lean_MVarId_rewrite___lambda__3___closed__26; +x_79 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_79); +x_81 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_80, x_13, x_14, x_15, x_16, x_55); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +x_82 = !lean_is_exclusive(x_81); +if (x_82 == 0) +{ +return x_81; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_81, 0); +x_84 = lean_ctor_get(x_81, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_81); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +else +{ +lean_dec(x_23); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +return x_51; +} +} +else +{ +lean_dec(x_23); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +return x_51; +} +} +else +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_86 = lean_ctor_get(x_51, 0); +x_87 = lean_ctor_get(x_51, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_51); +x_88 = l_Lean_Exception_isInterrupt(x_86); +if (x_88 == 0) +{ +uint8_t x_89; +x_89 = l_Lean_Exception_isRuntime(x_86); +if (x_89 == 0) +{ +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_90 = l_Lean_MessageData_ofExpr(x_23); +x_91 = l_Lean_indentD(x_90); +x_92 = l_Lean_MVarId_rewrite___lambda__3___closed__8; +x_93 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_91); +x_94 = l_Lean_MVarId_rewrite___lambda__3___closed__10; +x_95 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +x_96 = l_Lean_Exception_toMessageData(x_86); +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 = l_Lean_MVarId_rewrite___lambda__3___closed__12; +x_99 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +x_100 = l_Lean_MVarId_rewrite___lambda__3___closed__13; +x_101 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +x_102 = l_Lean_MVarId_rewrite___lambda__3___closed__15; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +x_104 = l_Lean_MVarId_rewrite___lambda__3___closed__19; +x_105 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +x_106 = l_Lean_MVarId_rewrite___lambda__3___closed__21; +x_107 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +x_108 = l_Lean_MVarId_rewrite___lambda__3___closed__24; +x_109 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +x_110 = l_Lean_MVarId_rewrite___lambda__3___closed__26; +x_111 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +x_112 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_112, 0, x_111); +x_113 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_112, x_13, x_14, x_15, x_16, x_87); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_116 = x_113; +} else { + lean_dec_ref(x_113); + x_116 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(1, 2, 0); +} else { + x_117 = x_116; +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +else +{ +lean_object* x_118; +lean_dec(x_23); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_86); +lean_ctor_set(x_118, 1, x_87); +return x_118; +} +} +else +{ +lean_object* x_119; +lean_dec(x_23); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_86); +lean_ctor_set(x_119, 1, x_87); +return x_119; +} +} +} +block_50: +{ +lean_object* x_25; uint8_t x_26; lean_object* x_27; +lean_inc(x_19); +x_25 = lean_alloc_closure((void*)(l_Lean_MVarId_rewrite___lambda__1___boxed), 8, 2); +lean_closure_set(x_25, 0, x_3); +lean_closure_set(x_25, 1, x_19); +x_26 = 0; +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_2); +x_27 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(x_21, x_22, x_2, x_25, x_26, x_13, x_14, x_15, x_16, x_24); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_unbox(x_28); +lean_dec(x_28); +if (x_29 == 0) +{ +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; +lean_dec(x_19); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = l_Lean_MessageData_ofExpr(x_23); +x_32 = l_Lean_indentD(x_31); +x_33 = l_Lean_MVarId_rewrite___lambda__3___closed__4; +x_34 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_MVarId_rewrite___lambda__3___closed__6; +x_36 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +x_38 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_37, x_13, x_14, x_15, x_16, x_30); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +return x_38; +} +else +{ +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_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_27, 1); +lean_inc(x_43); +lean_dec(x_27); +x_44 = lean_box(0); +x_45 = l_Lean_MVarId_rewrite___lambda__2(x_2, x_19, x_4, x_5, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_44, x_13, x_14, x_15, x_16, x_43); +return x_45; +} +} +else +{ +uint8_t x_46; +lean_dec(x_23); +lean_dec(x_19); +lean_dec(x_16); +lean_dec(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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_46 = !lean_is_exclusive(x_27); +if (x_46 == 0) +{ +return x_27; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_27, 0); +x_48 = lean_ctor_get(x_27, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_27); +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; +} +} +} +} +else +{ +uint8_t x_120; +lean_dec(x_16); +lean_dec(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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_120 = !lean_is_exclusive(x_18); +if (x_120 == 0) +{ +return x_18; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_18, 0); +x_122 = lean_ctor_get(x_18, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_18); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; x_18 = lean_expr_instantiate1(x_1, x_2); x_19 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_18, x_13, x_14, x_15, x_16, x_17); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - lean_ctor_release(x_19, 1); - x_22 = x_19; -} else { - lean_dec_ref(x_19); - x_22 = lean_box(0); -} -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -x_23 = lean_infer_type(x_3, x_13, x_14, x_15, x_16, x_21); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_56; -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_MVarId_rewrite___lambda__3___closed__2; -x_27 = 0; -lean_inc(x_1); -lean_inc(x_4); -x_28 = l_Lean_Expr_lam___override(x_26, x_4, x_1, x_27); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_28); -x_56 = l_Lean_Meta_check(x_28, x_13, x_14, x_15, x_16, x_25); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_29 = x_57; -goto block_55; -} -else -{ -uint8_t x_58; -lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_58 = !lean_is_exclusive(x_56); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_56, 0); -x_60 = lean_ctor_get(x_56, 1); -x_61 = l_Lean_Exception_isInterrupt(x_59); -if (x_61 == 0) -{ -uint8_t x_62; -x_62 = l_Lean_Exception_isRuntime(x_59); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -lean_free_object(x_56); -x_63 = l_Lean_MessageData_ofExpr(x_28); -x_64 = l_Lean_indentD(x_63); -x_65 = l_Lean_MVarId_rewrite___lambda__3___closed__8; -x_66 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -x_67 = l_Lean_MVarId_rewrite___lambda__3___closed__10; -x_68 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -x_69 = l_Lean_Exception_toMessageData(x_59); -x_70 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -x_71 = l_Lean_MVarId_rewrite___lambda__3___closed__12; -x_72 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -x_73 = l_Lean_MVarId_rewrite___lambda__3___closed__13; -x_74 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -x_75 = l_Lean_MVarId_rewrite___lambda__3___closed__15; -x_76 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -x_77 = l_Lean_MVarId_rewrite___lambda__3___closed__19; -x_78 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -x_79 = l_Lean_MVarId_rewrite___lambda__3___closed__21; -x_80 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -x_81 = l_Lean_MVarId_rewrite___lambda__3___closed__24; -x_82 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -x_83 = l_Lean_MVarId_rewrite___lambda__3___closed__26; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -x_85 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_85, 0, x_84); -x_86 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_85, x_13, x_14, x_15, x_16, x_60); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) -{ -return x_86; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_86, 0); -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_86); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; -} -} -else -{ -lean_dec(x_28); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -return x_56; -} -} -else -{ -lean_dec(x_28); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -return x_56; -} -} -else -{ -lean_object* x_91; lean_object* x_92; uint8_t x_93; -x_91 = lean_ctor_get(x_56, 0); -x_92 = lean_ctor_get(x_56, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_56); -x_93 = l_Lean_Exception_isInterrupt(x_91); -if (x_93 == 0) -{ -uint8_t x_94; -x_94 = l_Lean_Exception_isRuntime(x_91); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_95 = l_Lean_MessageData_ofExpr(x_28); -x_96 = l_Lean_indentD(x_95); -x_97 = l_Lean_MVarId_rewrite___lambda__3___closed__8; -x_98 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_MVarId_rewrite___lambda__3___closed__10; -x_100 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -x_101 = l_Lean_Exception_toMessageData(x_91); -x_102 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -x_103 = l_Lean_MVarId_rewrite___lambda__3___closed__12; -x_104 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -x_105 = l_Lean_MVarId_rewrite___lambda__3___closed__13; -x_106 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = l_Lean_MVarId_rewrite___lambda__3___closed__15; -x_108 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -x_109 = l_Lean_MVarId_rewrite___lambda__3___closed__19; -x_110 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -x_111 = l_Lean_MVarId_rewrite___lambda__3___closed__21; -x_112 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -x_113 = l_Lean_MVarId_rewrite___lambda__3___closed__24; -x_114 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -x_115 = l_Lean_MVarId_rewrite___lambda__3___closed__26; -x_116 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -x_117 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_117, 0, x_116); -x_118 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_117, x_13, x_14, x_15, x_16, x_92); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_121 = x_118; -} else { - lean_dec_ref(x_118); - x_121 = lean_box(0); -} -if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(1, 2, 0); -} else { - x_122 = x_121; -} -lean_ctor_set(x_122, 0, x_119); -lean_ctor_set(x_122, 1, x_120); -return x_122; -} -else -{ -lean_object* x_123; -lean_dec(x_28); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_91); -lean_ctor_set(x_123, 1, x_92); -return x_123; -} -} -else -{ -lean_object* x_124; -lean_dec(x_28); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_91); -lean_ctor_set(x_124, 1, x_92); -return x_124; -} -} -} -block_55: -{ -lean_object* x_30; uint8_t x_31; lean_object* x_32; -lean_inc(x_24); -x_30 = lean_alloc_closure((void*)(l_Lean_MVarId_rewrite___lambda__1___boxed), 8, 2); -lean_closure_set(x_30, 0, x_1); -lean_closure_set(x_30, 1, x_24); -x_31 = 0; -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_4); -x_32 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(x_26, x_27, x_4, x_30, x_31, x_13, x_14, x_15, x_16, x_29); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_unbox(x_33); -lean_dec(x_33); -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_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -lean_dec(x_24); -lean_dec(x_20); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = l_Lean_MessageData_ofExpr(x_28); -x_37 = l_Lean_indentD(x_36); -x_38 = l_Lean_MVarId_rewrite___lambda__3___closed__4; -if (lean_is_scalar(x_22)) { - x_39 = lean_alloc_ctor(7, 2, 0); -} else { - x_39 = x_22; - lean_ctor_set_tag(x_39, 7); -} -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -x_40 = l_Lean_MVarId_rewrite___lambda__3___closed__6; -x_41 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_41); -x_43 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_42, x_13, x_14, x_15, x_16, x_35); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) -{ -return x_43; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_43, 0); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_43); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_22); -x_48 = lean_ctor_get(x_32, 1); -lean_inc(x_48); -lean_dec(x_32); -x_49 = lean_box(0); -x_50 = l_Lean_MVarId_rewrite___lambda__2(x_4, x_24, x_5, x_2, x_28, x_6, x_7, x_8, x_9, x_10, x_11, x_20, x_49, x_13, x_14, x_15, x_16, x_48); -return x_50; -} -} -else -{ -uint8_t x_51; -lean_dec(x_28); -lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_2); -x_51 = !lean_is_exclusive(x_32); -if (x_51 == 0) -{ -return x_32; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_32, 0); -x_53 = lean_ctor_get(x_32, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_32); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -} -} -else -{ -uint8_t x_125; -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_2); -lean_dec(x_1); -x_125 = !lean_is_exclusive(x_23); -if (x_125 == 0) +lean_dec(x_19); +x_22 = l_Lean_Expr_hasBinderNameHint(x_2); +if (x_22 == 0) { +lean_object* x_23; +x_23 = l_Lean_MVarId_rewrite___lambda__3(x_3, x_4, x_1, x_5, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_20, x_13, x_14, x_15, x_16, x_21); return x_23; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_23, 0); -x_127 = lean_ctor_get(x_23, 1); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_23); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -return x_128; +lean_object* x_24; +lean_inc(x_16); +lean_inc(x_15); +x_24 = l_Lean_Expr_resolveBinderNameHint(x_20, x_15, x_16, x_21); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_MVarId_rewrite___lambda__3(x_3, x_4, x_1, x_5, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_25, x_13, x_14, x_15, x_16, x_26); +return x_27; +} +else +{ +uint8_t x_28; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +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); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_24); +if (x_28 == 0) +{ +return x_24; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_24, 0); +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_24); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__4___closed__1() { +} +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__5___closed__1() { _start: { lean_object* x_1; @@ -1527,16 +1589,16 @@ x_1 = lean_mk_string_unchecked("did not find instance of the pattern in the targ return x_1; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__4___closed__2() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__5___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_MVarId_rewrite___lambda__4___closed__1; +x_1 = l_Lean_MVarId_rewrite___lambda__5___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { _start: { lean_object* x_18; lean_object* x_19; uint8_t x_20; @@ -1613,7 +1675,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_42 = l_Lean_indentExpr(x_3); -x_43 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_43 = l_Lean_MVarId_rewrite___lambda__5___closed__2; lean_ctor_set_tag(x_18, 7); lean_ctor_set(x_18, 1, x_42); lean_ctor_set(x_18, 0, x_43); @@ -1652,7 +1714,7 @@ else lean_object* x_52; lean_object* x_53; lean_free_object(x_18); x_52 = lean_box(0); -x_53 = l_Lean_MVarId_rewrite___lambda__3(x_39, x_4, x_21, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_52, x_13, x_14, x_15, x_16, x_40); +x_53 = l_Lean_MVarId_rewrite___lambda__4(x_39, x_4, x_21, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_52, x_13, x_14, x_15, x_16, x_40); return x_53; } } @@ -1777,7 +1839,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_85 = l_Lean_indentExpr(x_3); -x_86 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_86 = l_Lean_MVarId_rewrite___lambda__5___closed__2; lean_ctor_set_tag(x_18, 7); lean_ctor_set(x_18, 1, x_85); lean_ctor_set(x_18, 0, x_86); @@ -1818,7 +1880,7 @@ else lean_object* x_95; lean_object* x_96; lean_free_object(x_18); x_95 = lean_box(0); -x_96 = l_Lean_MVarId_rewrite___lambda__3(x_82, x_4, x_21, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_95, x_13, x_14, x_15, x_16, x_83); +x_96 = l_Lean_MVarId_rewrite___lambda__4(x_82, x_4, x_21, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_95, x_13, x_14, x_15, x_16, x_83); return x_96; } } @@ -1974,7 +2036,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_139 = l_Lean_indentExpr(x_3); -x_140 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_140 = l_Lean_MVarId_rewrite___lambda__5___closed__2; x_141 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_141, 0, x_140); lean_ctor_set(x_141, 1, x_139); @@ -2014,7 +2076,7 @@ else { lean_object* x_150; lean_object* x_151; x_150 = lean_box(0); -x_151 = l_Lean_MVarId_rewrite___lambda__3(x_136, x_4, x_101, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_150, x_13, x_14, x_15, x_16, x_137); +x_151 = l_Lean_MVarId_rewrite___lambda__4(x_136, x_4, x_101, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_150, x_13, x_14, x_15, x_16, x_137); return x_151; } } @@ -2059,7 +2121,7 @@ return x_155; } } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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, 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_EXPORT lean_object* l_Lean_MVarId_rewrite___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, 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) { _start: { lean_object* x_19; @@ -2436,468 +2498,520 @@ return x_111; } } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___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, 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_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { _start: { -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_18; +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +x_18 = lean_infer_type(x_1, x_13, x_14, x_15, x_16, x_17); +if (lean_obj_tag(x_18) == 0) +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_51; +x_19 = lean_ctor_get(x_18, 0); +lean_inc(x_19); +x_20 = lean_ctor_get(x_18, 1); +lean_inc(x_20); +lean_dec(x_18); +x_21 = l_Lean_MVarId_rewrite___lambda__3___closed__2; +x_22 = 0; +lean_inc(x_3); +lean_inc(x_2); +x_23 = l_Lean_Expr_lam___override(x_21, x_2, x_3, x_22); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_23); +x_51 = l_Lean_Meta_check(x_23, x_13, x_14, x_15, x_16, x_20); +if (lean_obj_tag(x_51) == 0) +{ +lean_object* x_52; +x_52 = lean_ctor_get(x_51, 1); +lean_inc(x_52); +lean_dec(x_51); +x_24 = x_52; +goto block_50; +} +else +{ +uint8_t x_53; +lean_dec(x_19); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_53 = !lean_is_exclusive(x_51); +if (x_53 == 0) +{ +lean_object* x_54; lean_object* x_55; uint8_t x_56; +x_54 = lean_ctor_get(x_51, 0); +x_55 = lean_ctor_get(x_51, 1); +x_56 = l_Lean_Exception_isInterrupt(x_54); +if (x_56 == 0) +{ +uint8_t x_57; +x_57 = l_Lean_Exception_isRuntime(x_54); +if (x_57 == 0) +{ +lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; +lean_free_object(x_51); +x_58 = l_Lean_MessageData_ofExpr(x_23); +x_59 = l_Lean_indentD(x_58); +x_60 = l_Lean_MVarId_rewrite___lambda__3___closed__8; +x_61 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_59); +x_62 = l_Lean_MVarId_rewrite___lambda__3___closed__10; +x_63 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_63, 0, x_61); +lean_ctor_set(x_63, 1, x_62); +x_64 = l_Lean_Exception_toMessageData(x_54); +x_65 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_65, 0, x_63); +lean_ctor_set(x_65, 1, x_64); +x_66 = l_Lean_MVarId_rewrite___lambda__3___closed__12; +x_67 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +x_68 = l_Lean_MVarId_rewrite___lambda__3___closed__13; +x_69 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +x_70 = l_Lean_MVarId_rewrite___lambda__3___closed__15; +x_71 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +x_72 = l_Lean_MVarId_rewrite___lambda__3___closed__19; +x_73 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +x_74 = l_Lean_MVarId_rewrite___lambda__3___closed__21; +x_75 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_75, 0, x_73); +lean_ctor_set(x_75, 1, x_74); +x_76 = l_Lean_MVarId_rewrite___lambda__3___closed__24; +x_77 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_77, 0, x_75); +lean_ctor_set(x_77, 1, x_76); +x_78 = l_Lean_MVarId_rewrite___lambda__3___closed__26; +x_79 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_80, 0, x_79); +x_81 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_80, x_13, x_14, x_15, x_16, x_55); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +x_82 = !lean_is_exclusive(x_81); +if (x_82 == 0) +{ +return x_81; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_81, 0); +x_84 = lean_ctor_get(x_81, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_81); +x_85 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +return x_85; +} +} +else +{ +lean_dec(x_23); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +return x_51; +} +} +else +{ +lean_dec(x_23); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +return x_51; +} +} +else +{ +lean_object* x_86; lean_object* x_87; uint8_t x_88; +x_86 = lean_ctor_get(x_51, 0); +x_87 = lean_ctor_get(x_51, 1); +lean_inc(x_87); +lean_inc(x_86); +lean_dec(x_51); +x_88 = l_Lean_Exception_isInterrupt(x_86); +if (x_88 == 0) +{ +uint8_t x_89; +x_89 = l_Lean_Exception_isRuntime(x_86); +if (x_89 == 0) +{ +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_90 = l_Lean_MessageData_ofExpr(x_23); +x_91 = l_Lean_indentD(x_90); +x_92 = l_Lean_MVarId_rewrite___lambda__3___closed__8; +x_93 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_91); +x_94 = l_Lean_MVarId_rewrite___lambda__3___closed__10; +x_95 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_95, 0, x_93); +lean_ctor_set(x_95, 1, x_94); +x_96 = l_Lean_Exception_toMessageData(x_86); +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 = l_Lean_MVarId_rewrite___lambda__3___closed__12; +x_99 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_99, 0, x_97); +lean_ctor_set(x_99, 1, x_98); +x_100 = l_Lean_MVarId_rewrite___lambda__3___closed__13; +x_101 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_101, 0, x_99); +lean_ctor_set(x_101, 1, x_100); +x_102 = l_Lean_MVarId_rewrite___lambda__3___closed__15; +x_103 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_103, 0, x_101); +lean_ctor_set(x_103, 1, x_102); +x_104 = l_Lean_MVarId_rewrite___lambda__3___closed__19; +x_105 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_105, 0, x_103); +lean_ctor_set(x_105, 1, x_104); +x_106 = l_Lean_MVarId_rewrite___lambda__3___closed__21; +x_107 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_107, 0, x_105); +lean_ctor_set(x_107, 1, x_106); +x_108 = l_Lean_MVarId_rewrite___lambda__3___closed__24; +x_109 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_109, 0, x_107); +lean_ctor_set(x_109, 1, x_108); +x_110 = l_Lean_MVarId_rewrite___lambda__3___closed__26; +x_111 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_111, 0, x_109); +lean_ctor_set(x_111, 1, x_110); +x_112 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_112, 0, x_111); +x_113 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_112, x_13, x_14, x_15, x_16, x_87); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +x_114 = lean_ctor_get(x_113, 0); +lean_inc(x_114); +x_115 = lean_ctor_get(x_113, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + lean_ctor_release(x_113, 1); + x_116 = x_113; +} else { + lean_dec_ref(x_113); + x_116 = lean_box(0); +} +if (lean_is_scalar(x_116)) { + x_117 = lean_alloc_ctor(1, 2, 0); +} else { + x_117 = x_116; +} +lean_ctor_set(x_117, 0, x_114); +lean_ctor_set(x_117, 1, x_115); +return x_117; +} +else +{ +lean_object* x_118; +lean_dec(x_23); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +x_118 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_118, 0, x_86); +lean_ctor_set(x_118, 1, x_87); +return x_118; +} +} +else +{ +lean_object* x_119; +lean_dec(x_23); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +lean_dec(x_8); +lean_dec(x_7); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_86); +lean_ctor_set(x_119, 1, x_87); +return x_119; +} +} +} +block_50: +{ +lean_object* x_25; uint8_t x_26; lean_object* x_27; +lean_inc(x_19); +x_25 = lean_alloc_closure((void*)(l_Lean_MVarId_rewrite___lambda__1___boxed), 8, 2); +lean_closure_set(x_25, 0, x_3); +lean_closure_set(x_25, 1, x_19); +x_26 = 0; +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_2); +x_27 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(x_21, x_22, x_2, x_25, x_26, x_13, x_14, x_15, x_16, x_24); +if (lean_obj_tag(x_27) == 0) +{ +lean_object* x_28; uint8_t x_29; +x_28 = lean_ctor_get(x_27, 0); +lean_inc(x_28); +x_29 = lean_unbox(x_28); +lean_dec(x_28); +if (x_29 == 0) +{ +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; +lean_dec(x_19); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_30 = lean_ctor_get(x_27, 1); +lean_inc(x_30); +lean_dec(x_27); +x_31 = l_Lean_MessageData_ofExpr(x_23); +x_32 = l_Lean_indentD(x_31); +x_33 = l_Lean_MVarId_rewrite___lambda__3___closed__4; +x_34 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_34, 0, x_33); +lean_ctor_set(x_34, 1, x_32); +x_35 = l_Lean_MVarId_rewrite___lambda__3___closed__6; +x_36 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_36, 0, x_34); +lean_ctor_set(x_36, 1, x_35); +x_37 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_37, 0, x_36); +x_38 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_37, x_13, x_14, x_15, x_16, x_30); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +x_39 = !lean_is_exclusive(x_38); +if (x_39 == 0) +{ +return x_38; +} +else +{ +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_40); +lean_ctor_set(x_42, 1, x_41); +return x_42; +} +} +else +{ +lean_object* x_43; lean_object* x_44; lean_object* x_45; +x_43 = lean_ctor_get(x_27, 1); +lean_inc(x_43); +lean_dec(x_27); +x_44 = lean_box(0); +x_45 = l_Lean_MVarId_rewrite___lambda__6(x_2, x_19, x_4, x_5, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_44, x_13, x_14, x_15, x_16, x_43); +return x_45; +} +} +else +{ +uint8_t x_46; +lean_dec(x_23); +lean_dec(x_19); +lean_dec(x_16); +lean_dec(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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_46 = !lean_is_exclusive(x_27); +if (x_46 == 0) +{ +return x_27; +} +else +{ +lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_47 = lean_ctor_get(x_27, 0); +x_48 = lean_ctor_get(x_27, 1); +lean_inc(x_48); +lean_inc(x_47); +lean_dec(x_27); +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; +} +} +} +} +else +{ +uint8_t x_120; +lean_dec(x_16); +lean_dec(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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_120 = !lean_is_exclusive(x_18); +if (x_120 == 0) +{ +return x_18; +} +else +{ +lean_object* x_121; lean_object* x_122; lean_object* x_123; +x_121 = lean_ctor_get(x_18, 0); +x_122 = lean_ctor_get(x_18, 1); +lean_inc(x_122); +lean_inc(x_121); +lean_dec(x_18); +x_123 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_123, 0, x_121); +lean_ctor_set(x_123, 1, x_122); +return x_123; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__8(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, lean_object* x_16, lean_object* x_17) { +_start: +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; x_18 = lean_expr_instantiate1(x_1, x_2); x_19 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_18, x_13, x_14, x_15, x_16, x_17); x_20 = lean_ctor_get(x_19, 0); lean_inc(x_20); x_21 = lean_ctor_get(x_19, 1); lean_inc(x_21); -if (lean_is_exclusive(x_19)) { - lean_ctor_release(x_19, 0); - lean_ctor_release(x_19, 1); - x_22 = x_19; -} else { - lean_dec_ref(x_19); - x_22 = lean_box(0); -} -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -x_23 = lean_infer_type(x_3, x_13, x_14, x_15, x_16, x_21); -if (lean_obj_tag(x_23) == 0) -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; lean_object* x_28; lean_object* x_29; lean_object* x_56; -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_MVarId_rewrite___lambda__3___closed__2; -x_27 = 0; -lean_inc(x_1); -lean_inc(x_4); -x_28 = l_Lean_Expr_lam___override(x_26, x_4, x_1, x_27); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_28); -x_56 = l_Lean_Meta_check(x_28, x_13, x_14, x_15, x_16, x_25); -if (lean_obj_tag(x_56) == 0) -{ -lean_object* x_57; -x_57 = lean_ctor_get(x_56, 1); -lean_inc(x_57); -lean_dec(x_56); -x_29 = x_57; -goto block_55; -} -else -{ -uint8_t x_58; -lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_58 = !lean_is_exclusive(x_56); -if (x_58 == 0) -{ -lean_object* x_59; lean_object* x_60; uint8_t x_61; -x_59 = lean_ctor_get(x_56, 0); -x_60 = lean_ctor_get(x_56, 1); -x_61 = l_Lean_Exception_isInterrupt(x_59); -if (x_61 == 0) -{ -uint8_t x_62; -x_62 = l_Lean_Exception_isRuntime(x_59); -if (x_62 == 0) -{ -lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; uint8_t x_87; -lean_free_object(x_56); -x_63 = l_Lean_MessageData_ofExpr(x_28); -x_64 = l_Lean_indentD(x_63); -x_65 = l_Lean_MVarId_rewrite___lambda__3___closed__8; -x_66 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_64); -x_67 = l_Lean_MVarId_rewrite___lambda__3___closed__10; -x_68 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -x_69 = l_Lean_Exception_toMessageData(x_59); -x_70 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -x_71 = l_Lean_MVarId_rewrite___lambda__3___closed__12; -x_72 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -x_73 = l_Lean_MVarId_rewrite___lambda__3___closed__13; -x_74 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_74, 0, x_72); -lean_ctor_set(x_74, 1, x_73); -x_75 = l_Lean_MVarId_rewrite___lambda__3___closed__15; -x_76 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_76, 0, x_74); -lean_ctor_set(x_76, 1, x_75); -x_77 = l_Lean_MVarId_rewrite___lambda__3___closed__19; -x_78 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -x_79 = l_Lean_MVarId_rewrite___lambda__3___closed__21; -x_80 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -x_81 = l_Lean_MVarId_rewrite___lambda__3___closed__24; -x_82 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -x_83 = l_Lean_MVarId_rewrite___lambda__3___closed__26; -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); -x_85 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_85, 0, x_84); -x_86 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_85, x_13, x_14, x_15, x_16, x_60); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -x_87 = !lean_is_exclusive(x_86); -if (x_87 == 0) -{ -return x_86; -} -else -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; -x_88 = lean_ctor_get(x_86, 0); -x_89 = lean_ctor_get(x_86, 1); -lean_inc(x_89); -lean_inc(x_88); -lean_dec(x_86); -x_90 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_90, 0, x_88); -lean_ctor_set(x_90, 1, x_89); -return x_90; -} -} -else -{ -lean_dec(x_28); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -return x_56; -} -} -else -{ -lean_dec(x_28); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -return x_56; -} -} -else -{ -lean_object* x_91; lean_object* x_92; uint8_t x_93; -x_91 = lean_ctor_get(x_56, 0); -x_92 = lean_ctor_get(x_56, 1); -lean_inc(x_92); -lean_inc(x_91); -lean_dec(x_56); -x_93 = l_Lean_Exception_isInterrupt(x_91); -if (x_93 == 0) -{ -uint8_t x_94; -x_94 = l_Lean_Exception_isRuntime(x_91); -if (x_94 == 0) -{ -lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; -x_95 = l_Lean_MessageData_ofExpr(x_28); -x_96 = l_Lean_indentD(x_95); -x_97 = l_Lean_MVarId_rewrite___lambda__3___closed__8; -x_98 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_98, 0, x_97); -lean_ctor_set(x_98, 1, x_96); -x_99 = l_Lean_MVarId_rewrite___lambda__3___closed__10; -x_100 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_100, 0, x_98); -lean_ctor_set(x_100, 1, x_99); -x_101 = l_Lean_Exception_toMessageData(x_91); -x_102 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_102, 0, x_100); -lean_ctor_set(x_102, 1, x_101); -x_103 = l_Lean_MVarId_rewrite___lambda__3___closed__12; -x_104 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_104, 0, x_102); -lean_ctor_set(x_104, 1, x_103); -x_105 = l_Lean_MVarId_rewrite___lambda__3___closed__13; -x_106 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_106, 0, x_104); -lean_ctor_set(x_106, 1, x_105); -x_107 = l_Lean_MVarId_rewrite___lambda__3___closed__15; -x_108 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_108, 0, x_106); -lean_ctor_set(x_108, 1, x_107); -x_109 = l_Lean_MVarId_rewrite___lambda__3___closed__19; -x_110 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_110, 0, x_108); -lean_ctor_set(x_110, 1, x_109); -x_111 = l_Lean_MVarId_rewrite___lambda__3___closed__21; -x_112 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_112, 0, x_110); -lean_ctor_set(x_112, 1, x_111); -x_113 = l_Lean_MVarId_rewrite___lambda__3___closed__24; -x_114 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_114, 0, x_112); -lean_ctor_set(x_114, 1, x_113); -x_115 = l_Lean_MVarId_rewrite___lambda__3___closed__26; -x_116 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_116, 0, x_114); -lean_ctor_set(x_116, 1, x_115); -x_117 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_117, 0, x_116); -x_118 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_117, x_13, x_14, x_15, x_16, x_92); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -x_119 = lean_ctor_get(x_118, 0); -lean_inc(x_119); -x_120 = lean_ctor_get(x_118, 1); -lean_inc(x_120); -if (lean_is_exclusive(x_118)) { - lean_ctor_release(x_118, 0); - lean_ctor_release(x_118, 1); - x_121 = x_118; -} else { - lean_dec_ref(x_118); - x_121 = lean_box(0); -} -if (lean_is_scalar(x_121)) { - x_122 = lean_alloc_ctor(1, 2, 0); -} else { - x_122 = x_121; -} -lean_ctor_set(x_122, 0, x_119); -lean_ctor_set(x_122, 1, x_120); -return x_122; -} -else -{ -lean_object* x_123; -lean_dec(x_28); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -x_123 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_123, 0, x_91); -lean_ctor_set(x_123, 1, x_92); -return x_123; -} -} -else -{ -lean_object* x_124; -lean_dec(x_28); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -lean_dec(x_8); -lean_dec(x_7); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_91); -lean_ctor_set(x_124, 1, x_92); -return x_124; -} -} -} -block_55: -{ -lean_object* x_30; uint8_t x_31; lean_object* x_32; -lean_inc(x_24); -x_30 = lean_alloc_closure((void*)(l_Lean_MVarId_rewrite___lambda__1___boxed), 8, 2); -lean_closure_set(x_30, 0, x_1); -lean_closure_set(x_30, 1, x_24); -x_31 = 0; -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_13); -lean_inc(x_4); -x_32 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(x_26, x_27, x_4, x_30, x_31, x_13, x_14, x_15, x_16, x_29); -if (lean_obj_tag(x_32) == 0) -{ -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_32, 0); -lean_inc(x_33); -x_34 = lean_unbox(x_33); -lean_dec(x_33); -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_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; -lean_dec(x_24); -lean_dec(x_20); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_35 = lean_ctor_get(x_32, 1); -lean_inc(x_35); -lean_dec(x_32); -x_36 = l_Lean_MessageData_ofExpr(x_28); -x_37 = l_Lean_indentD(x_36); -x_38 = l_Lean_MVarId_rewrite___lambda__3___closed__4; -if (lean_is_scalar(x_22)) { - x_39 = lean_alloc_ctor(7, 2, 0); -} else { - x_39 = x_22; - lean_ctor_set_tag(x_39, 7); -} -lean_ctor_set(x_39, 0, x_38); -lean_ctor_set(x_39, 1, x_37); -x_40 = l_Lean_MVarId_rewrite___lambda__3___closed__6; -x_41 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_41); -x_43 = l_Lean_Meta_throwTacticEx___rarg(x_7, x_8, x_42, x_13, x_14, x_15, x_16, x_35); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -x_44 = !lean_is_exclusive(x_43); -if (x_44 == 0) -{ -return x_43; -} -else -{ -lean_object* x_45; lean_object* x_46; lean_object* x_47; -x_45 = lean_ctor_get(x_43, 0); -x_46 = lean_ctor_get(x_43, 1); -lean_inc(x_46); -lean_inc(x_45); -lean_dec(x_43); -x_47 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_47, 0, x_45); -lean_ctor_set(x_47, 1, x_46); -return x_47; -} -} -else -{ -lean_object* x_48; lean_object* x_49; lean_object* x_50; -lean_dec(x_22); -x_48 = lean_ctor_get(x_32, 1); -lean_inc(x_48); -lean_dec(x_32); -x_49 = lean_box(0); -x_50 = l_Lean_MVarId_rewrite___lambda__5(x_4, x_24, x_5, x_2, x_28, x_6, x_7, x_8, x_9, x_10, x_11, x_20, x_49, x_13, x_14, x_15, x_16, x_48); -return x_50; -} -} -else -{ -uint8_t x_51; -lean_dec(x_28); -lean_dec(x_24); -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_2); -x_51 = !lean_is_exclusive(x_32); -if (x_51 == 0) -{ -return x_32; -} -else -{ -lean_object* x_52; lean_object* x_53; lean_object* x_54; -x_52 = lean_ctor_get(x_32, 0); -x_53 = lean_ctor_get(x_32, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_32); -x_54 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -return x_54; -} -} -} -} -else -{ -uint8_t x_125; -lean_dec(x_22); -lean_dec(x_20); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_13); -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_2); -lean_dec(x_1); -x_125 = !lean_is_exclusive(x_23); -if (x_125 == 0) +lean_dec(x_19); +x_22 = l_Lean_Expr_hasBinderNameHint(x_2); +if (x_22 == 0) { +lean_object* x_23; +x_23 = l_Lean_MVarId_rewrite___lambda__7(x_3, x_4, x_1, x_5, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_20, x_13, x_14, x_15, x_16, x_21); return x_23; } else { -lean_object* x_126; lean_object* x_127; lean_object* x_128; -x_126 = lean_ctor_get(x_23, 0); -x_127 = lean_ctor_get(x_23, 1); -lean_inc(x_127); -lean_inc(x_126); -lean_dec(x_23); -x_128 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_128, 0, x_126); -lean_ctor_set(x_128, 1, x_127); -return x_128; +lean_object* x_24; +lean_inc(x_16); +lean_inc(x_15); +x_24 = l_Lean_Expr_resolveBinderNameHint(x_20, x_15, x_16, x_21); +if (lean_obj_tag(x_24) == 0) +{ +lean_object* x_25; lean_object* x_26; lean_object* x_27; +x_25 = lean_ctor_get(x_24, 0); +lean_inc(x_25); +x_26 = lean_ctor_get(x_24, 1); +lean_inc(x_26); +lean_dec(x_24); +x_27 = l_Lean_MVarId_rewrite___lambda__7(x_3, x_4, x_1, x_5, x_2, x_6, x_7, x_8, x_9, x_10, x_11, x_25, x_13, x_14, x_15, x_16, x_26); +return x_27; +} +else +{ +uint8_t x_28; +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_13); +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); +lean_dec(x_1); +x_28 = !lean_is_exclusive(x_24); +if (x_28 == 0) +{ +return x_24; +} +else +{ +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_24, 0); +x_30 = lean_ctor_get(x_24, 1); +lean_inc(x_30); +lean_inc(x_29); +lean_dec(x_24); +x_31 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_31, 0, x_29); +lean_ctor_set(x_31, 1, x_30); +return x_31; } } } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17) { +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__9(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, lean_object* x_16, lean_object* x_17) { _start: { lean_object* x_18; lean_object* x_19; uint8_t x_20; @@ -2974,7 +3088,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_42 = l_Lean_indentExpr(x_3); -x_43 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_43 = l_Lean_MVarId_rewrite___lambda__5___closed__2; lean_ctor_set_tag(x_18, 7); lean_ctor_set(x_18, 1, x_42); lean_ctor_set(x_18, 0, x_43); @@ -3013,7 +3127,7 @@ else lean_object* x_52; lean_object* x_53; lean_free_object(x_18); x_52 = lean_box(0); -x_53 = l_Lean_MVarId_rewrite___lambda__6(x_39, x_4, x_21, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_52, x_13, x_14, x_15, x_16, x_40); +x_53 = l_Lean_MVarId_rewrite___lambda__8(x_39, x_4, x_21, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_52, x_13, x_14, x_15, x_16, x_40); return x_53; } } @@ -3138,7 +3252,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_85 = l_Lean_indentExpr(x_3); -x_86 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_86 = l_Lean_MVarId_rewrite___lambda__5___closed__2; lean_ctor_set_tag(x_18, 7); lean_ctor_set(x_18, 1, x_85); lean_ctor_set(x_18, 0, x_86); @@ -3179,7 +3293,7 @@ else lean_object* x_95; lean_object* x_96; lean_free_object(x_18); x_95 = lean_box(0); -x_96 = l_Lean_MVarId_rewrite___lambda__6(x_82, x_4, x_21, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_95, x_13, x_14, x_15, x_16, x_83); +x_96 = l_Lean_MVarId_rewrite___lambda__8(x_82, x_4, x_21, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_95, x_13, x_14, x_15, x_16, x_83); return x_96; } } @@ -3335,7 +3449,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_139 = l_Lean_indentExpr(x_3); -x_140 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_140 = l_Lean_MVarId_rewrite___lambda__5___closed__2; x_141 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_141, 0, x_140); lean_ctor_set(x_141, 1, x_139); @@ -3375,7 +3489,7 @@ else { lean_object* x_150; lean_object* x_151; x_150 = lean_box(0); -x_151 = l_Lean_MVarId_rewrite___lambda__6(x_136, x_4, x_101, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_150, x_13, x_14, x_15, x_16, x_137); +x_151 = l_Lean_MVarId_rewrite___lambda__8(x_136, x_4, x_101, x_5, x_3, x_6, x_7, x_8, x_9, x_10, x_11, x_150, x_13, x_14, x_15, x_16, x_137); return x_151; } } @@ -3420,7 +3534,7 @@ return x_155; } } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__8(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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__10(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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { _start: { lean_object* x_20; @@ -3797,472 +3911,525 @@ return x_103; } } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__9(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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__11(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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { -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_19; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +x_19 = lean_infer_type(x_1, x_14, x_15, x_16, x_17, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_52; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_MVarId_rewrite___lambda__3___closed__2; +x_23 = 0; +lean_inc(x_3); +lean_inc(x_2); +x_24 = l_Lean_Expr_lam___override(x_22, x_2, x_3, x_23); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_24); +x_52 = l_Lean_Meta_check(x_24, x_14, x_15, x_16, x_17, x_21); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_25 = x_53; +goto block_51; +} +else +{ +uint8_t x_54; +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +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_54 = !lean_is_exclusive(x_52); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_55 = lean_ctor_get(x_52, 0); +x_56 = lean_ctor_get(x_52, 1); +x_57 = l_Lean_Exception_isInterrupt(x_55); +if (x_57 == 0) +{ +uint8_t x_58; +x_58 = l_Lean_Exception_isRuntime(x_55); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; +lean_free_object(x_52); +x_59 = l_Lean_MessageData_ofExpr(x_24); +x_60 = l_Lean_indentD(x_59); +x_61 = l_Lean_MVarId_rewrite___lambda__3___closed__8; +x_62 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +x_63 = l_Lean_MVarId_rewrite___lambda__3___closed__10; +x_64 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +x_65 = l_Lean_Exception_toMessageData(x_55); +x_66 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +x_67 = l_Lean_MVarId_rewrite___lambda__3___closed__12; +x_68 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +x_69 = l_Lean_MVarId_rewrite___lambda__3___closed__13; +x_70 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +x_71 = l_Lean_MVarId_rewrite___lambda__3___closed__15; +x_72 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +x_73 = l_Lean_MVarId_rewrite___lambda__3___closed__19; +x_74 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +x_75 = l_Lean_MVarId_rewrite___lambda__3___closed__21; +x_76 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +x_77 = l_Lean_MVarId_rewrite___lambda__3___closed__24; +x_78 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +x_79 = l_Lean_MVarId_rewrite___lambda__3___closed__26; +x_80 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +x_82 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_81, x_14, x_15, x_16, x_17, x_56); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +return x_82; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_82, 0); +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_82); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; +} +} +else +{ +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +return x_52; +} +} +else +{ +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +return x_52; +} +} +else +{ +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = lean_ctor_get(x_52, 0); +x_88 = lean_ctor_get(x_52, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_52); +x_89 = l_Lean_Exception_isInterrupt(x_87); +if (x_89 == 0) +{ +uint8_t x_90; +x_90 = l_Lean_Exception_isRuntime(x_87); +if (x_90 == 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; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_91 = l_Lean_MessageData_ofExpr(x_24); +x_92 = l_Lean_indentD(x_91); +x_93 = l_Lean_MVarId_rewrite___lambda__3___closed__8; +x_94 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_92); +x_95 = l_Lean_MVarId_rewrite___lambda__3___closed__10; +x_96 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +x_97 = l_Lean_Exception_toMessageData(x_87); +x_98 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +x_99 = l_Lean_MVarId_rewrite___lambda__3___closed__12; +x_100 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +x_101 = l_Lean_MVarId_rewrite___lambda__3___closed__13; +x_102 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +x_103 = l_Lean_MVarId_rewrite___lambda__3___closed__15; +x_104 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +x_105 = l_Lean_MVarId_rewrite___lambda__3___closed__19; +x_106 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +x_107 = l_Lean_MVarId_rewrite___lambda__3___closed__21; +x_108 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +x_109 = l_Lean_MVarId_rewrite___lambda__3___closed__24; +x_110 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +x_111 = l_Lean_MVarId_rewrite___lambda__3___closed__26; +x_112 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +x_113 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_113, 0, x_112); +x_114 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_113, x_14, x_15, x_16, x_17, x_88); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_117 = x_114; +} else { + lean_dec_ref(x_114); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +else +{ +lean_object* x_119; +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_87); +lean_ctor_set(x_119, 1, x_88); +return x_119; +} +} +else +{ +lean_object* x_120; +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_87); +lean_ctor_set(x_120, 1, x_88); +return x_120; +} +} +} +block_51: +{ +lean_object* x_26; uint8_t x_27; lean_object* x_28; +lean_inc(x_20); +x_26 = lean_alloc_closure((void*)(l_Lean_MVarId_rewrite___lambda__1___boxed), 8, 2); +lean_closure_set(x_26, 0, x_3); +lean_closure_set(x_26, 1, x_20); +x_27 = 0; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_2); +x_28 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(x_22, x_23, x_2, x_26, x_27, x_14, x_15, x_16, x_17, x_25); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_unbox(x_29); +lean_dec(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = l_Lean_MessageData_ofExpr(x_24); +x_33 = l_Lean_indentD(x_32); +x_34 = l_Lean_MVarId_rewrite___lambda__3___closed__4; +x_35 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l_Lean_MVarId_rewrite___lambda__3___closed__6; +x_37 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_37); +x_39 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_38, x_14, x_15, x_16, x_17, x_31); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +return x_39; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_39); +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 +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_28, 1); +lean_inc(x_44); +lean_dec(x_28); +x_45 = lean_box(0); +x_46 = l_Lean_MVarId_rewrite___lambda__10(x_2, x_20, x_4, x_5, x_6, x_24, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_45, x_14, x_15, x_16, x_17, x_44); +return x_46; +} +} +else +{ +uint8_t x_47; +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_47 = !lean_is_exclusive(x_28); +if (x_47 == 0) +{ +return x_28; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_28, 0); +x_49 = lean_ctor_get(x_28, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_28); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +} +else +{ +uint8_t x_121; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_121 = !lean_is_exclusive(x_19); +if (x_121 == 0) +{ +return x_19; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_19, 0); +x_123 = lean_ctor_get(x_19, 1); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_19); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__12(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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; x_19 = lean_expr_instantiate1(x_1, x_2); x_20 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_19, x_14, x_15, x_16, x_17, x_18); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_23 = x_20; -} else { - lean_dec_ref(x_20); - x_23 = lean_box(0); -} -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -x_24 = lean_infer_type(x_3, x_14, x_15, x_16, x_17, x_22); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_57; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_MVarId_rewrite___lambda__3___closed__2; -x_28 = 0; -lean_inc(x_1); -lean_inc(x_4); -x_29 = l_Lean_Expr_lam___override(x_27, x_4, x_1, x_28); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_29); -x_57 = l_Lean_Meta_check(x_29, x_14, x_15, x_16, x_17, x_26); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec(x_57); -x_30 = x_58; -goto block_56; -} -else -{ -uint8_t x_59; -lean_dec(x_25); -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_59 = !lean_is_exclusive(x_57); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_60 = lean_ctor_get(x_57, 0); -x_61 = lean_ctor_get(x_57, 1); -x_62 = l_Lean_Exception_isInterrupt(x_60); -if (x_62 == 0) -{ -uint8_t x_63; -x_63 = l_Lean_Exception_isRuntime(x_60); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -lean_free_object(x_57); -x_64 = l_Lean_MessageData_ofExpr(x_29); -x_65 = l_Lean_indentD(x_64); -x_66 = l_Lean_MVarId_rewrite___lambda__3___closed__8; -x_67 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_68 = l_Lean_MVarId_rewrite___lambda__3___closed__10; -x_69 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -x_70 = l_Lean_Exception_toMessageData(x_60); -x_71 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -x_72 = l_Lean_MVarId_rewrite___lambda__3___closed__12; -x_73 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -x_74 = l_Lean_MVarId_rewrite___lambda__3___closed__13; -x_75 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -x_76 = l_Lean_MVarId_rewrite___lambda__3___closed__15; -x_77 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -x_78 = l_Lean_MVarId_rewrite___lambda__3___closed__19; -x_79 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -x_80 = l_Lean_MVarId_rewrite___lambda__3___closed__21; -x_81 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -x_82 = l_Lean_MVarId_rewrite___lambda__3___closed__24; -x_83 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -x_84 = l_Lean_MVarId_rewrite___lambda__3___closed__26; -x_85 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -x_86 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_86, 0, x_85); -x_87 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_86, x_14, x_15, x_16, x_17, x_61); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -x_88 = !lean_is_exclusive(x_87); -if (x_88 == 0) -{ -return x_87; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_87, 0); -x_90 = lean_ctor_get(x_87, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_87); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; -} -} -else -{ -lean_dec(x_29); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -return x_57; -} -} -else -{ -lean_dec(x_29); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -return x_57; -} -} -else -{ -lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_92 = lean_ctor_get(x_57, 0); -x_93 = lean_ctor_get(x_57, 1); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_57); -x_94 = l_Lean_Exception_isInterrupt(x_92); -if (x_94 == 0) -{ -uint8_t x_95; -x_95 = l_Lean_Exception_isRuntime(x_92); -if (x_95 == 0) -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_96 = l_Lean_MessageData_ofExpr(x_29); -x_97 = l_Lean_indentD(x_96); -x_98 = l_Lean_MVarId_rewrite___lambda__3___closed__8; -x_99 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -x_100 = l_Lean_MVarId_rewrite___lambda__3___closed__10; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -x_102 = l_Lean_Exception_toMessageData(x_92); -x_103 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -x_104 = l_Lean_MVarId_rewrite___lambda__3___closed__12; -x_105 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -x_106 = l_Lean_MVarId_rewrite___lambda__3___closed__13; -x_107 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -x_108 = l_Lean_MVarId_rewrite___lambda__3___closed__15; -x_109 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -x_110 = l_Lean_MVarId_rewrite___lambda__3___closed__19; -x_111 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -x_112 = l_Lean_MVarId_rewrite___lambda__3___closed__21; -x_113 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -x_114 = l_Lean_MVarId_rewrite___lambda__3___closed__24; -x_115 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -x_116 = l_Lean_MVarId_rewrite___lambda__3___closed__26; -x_117 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -x_118 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_118, 0, x_117); -x_119 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_118, x_14, x_15, x_16, x_17, x_93); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_122 = x_119; -} else { - lean_dec_ref(x_119); - x_122 = lean_box(0); -} -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); -} else { - x_123 = x_122; -} -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -return x_123; -} -else -{ -lean_object* x_124; -lean_dec(x_29); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_92); -lean_ctor_set(x_124, 1, x_93); -return x_124; -} -} -else -{ -lean_object* x_125; -lean_dec(x_29); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_92); -lean_ctor_set(x_125, 1, x_93); -return x_125; -} -} -} -block_56: -{ -lean_object* x_31; uint8_t x_32; lean_object* x_33; -lean_inc(x_25); -x_31 = lean_alloc_closure((void*)(l_Lean_MVarId_rewrite___lambda__1___boxed), 8, 2); -lean_closure_set(x_31, 0, x_1); -lean_closure_set(x_31, 1, x_25); -x_32 = 0; -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_4); -x_33 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(x_27, x_28, x_4, x_31, x_32, x_14, x_15, x_16, x_17, x_30); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; uint8_t x_35; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_unbox(x_34); -lean_dec(x_34); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_dec(x_33); -x_37 = l_Lean_MessageData_ofExpr(x_29); -x_38 = l_Lean_indentD(x_37); -x_39 = l_Lean_MVarId_rewrite___lambda__3___closed__4; -if (lean_is_scalar(x_23)) { - x_40 = lean_alloc_ctor(7, 2, 0); -} else { - x_40 = x_23; - lean_ctor_set_tag(x_40, 7); -} -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_MVarId_rewrite___lambda__3___closed__6; -x_42 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_43, 0, x_42); -x_44 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_43, x_14, x_15, x_16, x_17, x_36); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -return x_44; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_44, 0); -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_dec(x_23); -x_49 = lean_ctor_get(x_33, 1); -lean_inc(x_49); -lean_dec(x_33); -x_50 = lean_box(0); -x_51 = l_Lean_MVarId_rewrite___lambda__8(x_4, x_25, x_5, x_6, x_2, x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_21, x_50, x_14, x_15, x_16, x_17, x_49); -return x_51; -} -} -else -{ -uint8_t x_52; -lean_dec(x_29); -lean_dec(x_25); -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -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_2); -x_52 = !lean_is_exclusive(x_33); -if (x_52 == 0) -{ -return x_33; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_33, 0); -x_54 = lean_ctor_get(x_33, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_33); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -} -else -{ -uint8_t x_126; -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -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_2); -lean_dec(x_1); -x_126 = !lean_is_exclusive(x_24); -if (x_126 == 0) +lean_dec(x_20); +x_23 = l_Lean_Expr_hasBinderNameHint(x_2); +if (x_23 == 0) { +lean_object* x_24; +x_24 = l_Lean_MVarId_rewrite___lambda__11(x_3, x_4, x_1, x_5, x_6, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_21, x_14, x_15, x_16, x_17, x_22); return x_24; } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_24, 0); -x_128 = lean_ctor_get(x_24, 1); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_24); -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -return x_129; +lean_object* x_25; +lean_inc(x_17); +lean_inc(x_16); +x_25 = l_Lean_Expr_resolveBinderNameHint(x_21, x_16, x_17, x_22); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_MVarId_rewrite___lambda__11(x_3, x_4, x_1, x_5, x_6, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_26, x_14, x_15, x_16, x_17, x_27); +return x_28; +} +else +{ +uint8_t x_29; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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_2); +lean_dec(x_1); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) +{ +return x_25; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_25, 0); +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_25); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; } } } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__10(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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__13(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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { lean_object* x_19; lean_object* x_20; uint8_t x_21; @@ -4340,7 +4507,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_43 = l_Lean_indentExpr(x_3); -x_44 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_44 = l_Lean_MVarId_rewrite___lambda__5___closed__2; lean_ctor_set_tag(x_19, 7); lean_ctor_set(x_19, 1, x_43); lean_ctor_set(x_19, 0, x_44); @@ -4379,7 +4546,7 @@ else lean_object* x_53; lean_object* x_54; lean_free_object(x_19); x_53 = lean_box(0); -x_54 = l_Lean_MVarId_rewrite___lambda__9(x_40, x_4, x_22, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_53, x_14, x_15, x_16, x_17, x_41); +x_54 = l_Lean_MVarId_rewrite___lambda__12(x_40, x_4, x_22, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_53, x_14, x_15, x_16, x_17, x_41); return x_54; } } @@ -4506,7 +4673,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_86 = l_Lean_indentExpr(x_3); -x_87 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_87 = l_Lean_MVarId_rewrite___lambda__5___closed__2; lean_ctor_set_tag(x_19, 7); lean_ctor_set(x_19, 1, x_86); lean_ctor_set(x_19, 0, x_87); @@ -4547,7 +4714,7 @@ else lean_object* x_96; lean_object* x_97; lean_free_object(x_19); x_96 = lean_box(0); -x_97 = l_Lean_MVarId_rewrite___lambda__9(x_83, x_4, x_22, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_96, x_14, x_15, x_16, x_17, x_84); +x_97 = l_Lean_MVarId_rewrite___lambda__12(x_83, x_4, x_22, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_96, x_14, x_15, x_16, x_17, x_84); return x_97; } } @@ -4705,7 +4872,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_140 = l_Lean_indentExpr(x_3); -x_141 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_141 = l_Lean_MVarId_rewrite___lambda__5___closed__2; x_142 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_142, 0, x_141); lean_ctor_set(x_142, 1, x_140); @@ -4745,7 +4912,7 @@ else { lean_object* x_151; lean_object* x_152; x_151 = lean_box(0); -x_152 = l_Lean_MVarId_rewrite___lambda__9(x_137, x_4, x_102, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_151, x_14, x_15, x_16, x_17, x_138); +x_152 = l_Lean_MVarId_rewrite___lambda__12(x_137, x_4, x_102, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_151, x_14, x_15, x_16, x_17, x_138); return x_152; } } @@ -4791,7 +4958,7 @@ return x_156; } } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__11(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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__14(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, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) { _start: { lean_object* x_20; @@ -5168,472 +5335,525 @@ return x_103; } } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__12(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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__15(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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { -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_19; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +x_19 = lean_infer_type(x_1, x_14, x_15, x_16, x_17, x_18); +if (lean_obj_tag(x_19) == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24; lean_object* x_25; lean_object* x_52; +x_20 = lean_ctor_get(x_19, 0); +lean_inc(x_20); +x_21 = lean_ctor_get(x_19, 1); +lean_inc(x_21); +lean_dec(x_19); +x_22 = l_Lean_MVarId_rewrite___lambda__3___closed__2; +x_23 = 0; +lean_inc(x_3); +lean_inc(x_2); +x_24 = l_Lean_Expr_lam___override(x_22, x_2, x_3, x_23); +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_24); +x_52 = l_Lean_Meta_check(x_24, x_14, x_15, x_16, x_17, x_21); +if (lean_obj_tag(x_52) == 0) +{ +lean_object* x_53; +x_53 = lean_ctor_get(x_52, 1); +lean_inc(x_53); +lean_dec(x_52); +x_25 = x_53; +goto block_51; +} +else +{ +uint8_t x_54; +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +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_54 = !lean_is_exclusive(x_52); +if (x_54 == 0) +{ +lean_object* x_55; lean_object* x_56; uint8_t x_57; +x_55 = lean_ctor_get(x_52, 0); +x_56 = lean_ctor_get(x_52, 1); +x_57 = l_Lean_Exception_isInterrupt(x_55); +if (x_57 == 0) +{ +uint8_t x_58; +x_58 = l_Lean_Exception_isRuntime(x_55); +if (x_58 == 0) +{ +lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; +lean_free_object(x_52); +x_59 = l_Lean_MessageData_ofExpr(x_24); +x_60 = l_Lean_indentD(x_59); +x_61 = l_Lean_MVarId_rewrite___lambda__3___closed__8; +x_62 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_62, 0, x_61); +lean_ctor_set(x_62, 1, x_60); +x_63 = l_Lean_MVarId_rewrite___lambda__3___closed__10; +x_64 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_64, 0, x_62); +lean_ctor_set(x_64, 1, x_63); +x_65 = l_Lean_Exception_toMessageData(x_55); +x_66 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +x_67 = l_Lean_MVarId_rewrite___lambda__3___closed__12; +x_68 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_68, 0, x_66); +lean_ctor_set(x_68, 1, x_67); +x_69 = l_Lean_MVarId_rewrite___lambda__3___closed__13; +x_70 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_70, 0, x_68); +lean_ctor_set(x_70, 1, x_69); +x_71 = l_Lean_MVarId_rewrite___lambda__3___closed__15; +x_72 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_72, 0, x_70); +lean_ctor_set(x_72, 1, x_71); +x_73 = l_Lean_MVarId_rewrite___lambda__3___closed__19; +x_74 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_74, 0, x_72); +lean_ctor_set(x_74, 1, x_73); +x_75 = l_Lean_MVarId_rewrite___lambda__3___closed__21; +x_76 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_76, 0, x_74); +lean_ctor_set(x_76, 1, x_75); +x_77 = l_Lean_MVarId_rewrite___lambda__3___closed__24; +x_78 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +x_79 = l_Lean_MVarId_rewrite___lambda__3___closed__26; +x_80 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_80, 0, x_78); +lean_ctor_set(x_80, 1, x_79); +x_81 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_81, 0, x_80); +x_82 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_81, x_14, x_15, x_16, x_17, x_56); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_83 = !lean_is_exclusive(x_82); +if (x_83 == 0) +{ +return x_82; +} +else +{ +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_82, 0); +x_85 = lean_ctor_get(x_82, 1); +lean_inc(x_85); +lean_inc(x_84); +lean_dec(x_82); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; +} +} +else +{ +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +return x_52; +} +} +else +{ +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +return x_52; +} +} +else +{ +lean_object* x_87; lean_object* x_88; uint8_t x_89; +x_87 = lean_ctor_get(x_52, 0); +x_88 = lean_ctor_get(x_52, 1); +lean_inc(x_88); +lean_inc(x_87); +lean_dec(x_52); +x_89 = l_Lean_Exception_isInterrupt(x_87); +if (x_89 == 0) +{ +uint8_t x_90; +x_90 = l_Lean_Exception_isRuntime(x_87); +if (x_90 == 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; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; +x_91 = l_Lean_MessageData_ofExpr(x_24); +x_92 = l_Lean_indentD(x_91); +x_93 = l_Lean_MVarId_rewrite___lambda__3___closed__8; +x_94 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_94, 0, x_93); +lean_ctor_set(x_94, 1, x_92); +x_95 = l_Lean_MVarId_rewrite___lambda__3___closed__10; +x_96 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_96, 0, x_94); +lean_ctor_set(x_96, 1, x_95); +x_97 = l_Lean_Exception_toMessageData(x_87); +x_98 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_98, 0, x_96); +lean_ctor_set(x_98, 1, x_97); +x_99 = l_Lean_MVarId_rewrite___lambda__3___closed__12; +x_100 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_100, 0, x_98); +lean_ctor_set(x_100, 1, x_99); +x_101 = l_Lean_MVarId_rewrite___lambda__3___closed__13; +x_102 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_102, 0, x_100); +lean_ctor_set(x_102, 1, x_101); +x_103 = l_Lean_MVarId_rewrite___lambda__3___closed__15; +x_104 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_104, 0, x_102); +lean_ctor_set(x_104, 1, x_103); +x_105 = l_Lean_MVarId_rewrite___lambda__3___closed__19; +x_106 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_106, 0, x_104); +lean_ctor_set(x_106, 1, x_105); +x_107 = l_Lean_MVarId_rewrite___lambda__3___closed__21; +x_108 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_108, 0, x_106); +lean_ctor_set(x_108, 1, x_107); +x_109 = l_Lean_MVarId_rewrite___lambda__3___closed__24; +x_110 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_110, 0, x_108); +lean_ctor_set(x_110, 1, x_109); +x_111 = l_Lean_MVarId_rewrite___lambda__3___closed__26; +x_112 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_112, 0, x_110); +lean_ctor_set(x_112, 1, x_111); +x_113 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_113, 0, x_112); +x_114 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_113, x_14, x_15, x_16, x_17, x_88); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_115 = lean_ctor_get(x_114, 0); +lean_inc(x_115); +x_116 = lean_ctor_get(x_114, 1); +lean_inc(x_116); +if (lean_is_exclusive(x_114)) { + lean_ctor_release(x_114, 0); + lean_ctor_release(x_114, 1); + x_117 = x_114; +} else { + lean_dec_ref(x_114); + x_117 = lean_box(0); +} +if (lean_is_scalar(x_117)) { + x_118 = lean_alloc_ctor(1, 2, 0); +} else { + x_118 = x_117; +} +lean_ctor_set(x_118, 0, x_115); +lean_ctor_set(x_118, 1, x_116); +return x_118; +} +else +{ +lean_object* x_119; +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_87); +lean_ctor_set(x_119, 1, x_88); +return x_119; +} +} +else +{ +lean_object* x_120; +lean_dec(x_24); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +lean_dec(x_9); +lean_dec(x_8); +x_120 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_120, 0, x_87); +lean_ctor_set(x_120, 1, x_88); +return x_120; +} +} +} +block_51: +{ +lean_object* x_26; uint8_t x_27; lean_object* x_28; +lean_inc(x_20); +x_26 = lean_alloc_closure((void*)(l_Lean_MVarId_rewrite___lambda__1___boxed), 8, 2); +lean_closure_set(x_26, 0, x_3); +lean_closure_set(x_26, 1, x_20); +x_27 = 0; +lean_inc(x_17); +lean_inc(x_16); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_2); +x_28 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(x_22, x_23, x_2, x_26, x_27, x_14, x_15, x_16, x_17, x_25); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; uint8_t x_30; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_unbox(x_29); +lean_dec(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; +lean_dec(x_20); +lean_dec(x_13); +lean_dec(x_12); +lean_dec(x_11); +lean_dec(x_10); +lean_dec(x_7); +lean_dec(x_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_31 = lean_ctor_get(x_28, 1); +lean_inc(x_31); +lean_dec(x_28); +x_32 = l_Lean_MessageData_ofExpr(x_24); +x_33 = l_Lean_indentD(x_32); +x_34 = l_Lean_MVarId_rewrite___lambda__3___closed__4; +x_35 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_35, 0, x_34); +lean_ctor_set(x_35, 1, x_33); +x_36 = l_Lean_MVarId_rewrite___lambda__3___closed__6; +x_37 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_38, 0, x_37); +x_39 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_38, x_14, x_15, x_16, x_17, x_31); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +lean_dec(x_14); +x_40 = !lean_is_exclusive(x_39); +if (x_40 == 0) +{ +return x_39; +} +else +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_41 = lean_ctor_get(x_39, 0); +x_42 = lean_ctor_get(x_39, 1); +lean_inc(x_42); +lean_inc(x_41); +lean_dec(x_39); +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 +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_28, 1); +lean_inc(x_44); +lean_dec(x_28); +x_45 = lean_box(0); +x_46 = l_Lean_MVarId_rewrite___lambda__14(x_2, x_20, x_4, x_5, x_6, x_24, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_45, x_14, x_15, x_16, x_17, x_44); +return x_46; +} +} +else +{ +uint8_t x_47; +lean_dec(x_24); +lean_dec(x_20); +lean_dec(x_17); +lean_dec(x_16); +lean_dec(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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_2); +x_47 = !lean_is_exclusive(x_28); +if (x_47 == 0) +{ +return x_28; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_28, 0); +x_49 = lean_ctor_get(x_28, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_28); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; +} +} +} +} +else +{ +uint8_t x_121; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(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_6); +lean_dec(x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_121 = !lean_is_exclusive(x_19); +if (x_121 == 0) +{ +return x_19; +} +else +{ +lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_122 = lean_ctor_get(x_19, 0); +x_123 = lean_ctor_get(x_19, 1); +lean_inc(x_123); +lean_inc(x_122); +lean_dec(x_19); +x_124 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_124, 0, x_122); +lean_ctor_set(x_124, 1, x_123); +return x_124; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__16(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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +_start: +{ +lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; x_19 = lean_expr_instantiate1(x_1, x_2); x_20 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_isClassApp_x3f___spec__1(x_19, x_14, x_15, x_16, x_17, x_18); x_21 = lean_ctor_get(x_20, 0); lean_inc(x_21); x_22 = lean_ctor_get(x_20, 1); lean_inc(x_22); -if (lean_is_exclusive(x_20)) { - lean_ctor_release(x_20, 0); - lean_ctor_release(x_20, 1); - x_23 = x_20; -} else { - lean_dec_ref(x_20); - x_23 = lean_box(0); -} -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -x_24 = lean_infer_type(x_3, x_14, x_15, x_16, x_17, x_22); -if (lean_obj_tag(x_24) == 0) -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_57; -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -x_26 = lean_ctor_get(x_24, 1); -lean_inc(x_26); -lean_dec(x_24); -x_27 = l_Lean_MVarId_rewrite___lambda__3___closed__2; -x_28 = 0; -lean_inc(x_1); -lean_inc(x_4); -x_29 = l_Lean_Expr_lam___override(x_27, x_4, x_1, x_28); -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_29); -x_57 = l_Lean_Meta_check(x_29, x_14, x_15, x_16, x_17, x_26); -if (lean_obj_tag(x_57) == 0) -{ -lean_object* x_58; -x_58 = lean_ctor_get(x_57, 1); -lean_inc(x_58); -lean_dec(x_57); -x_30 = x_58; -goto block_56; -} -else -{ -uint8_t x_59; -lean_dec(x_25); -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_59 = !lean_is_exclusive(x_57); -if (x_59 == 0) -{ -lean_object* x_60; lean_object* x_61; uint8_t x_62; -x_60 = lean_ctor_get(x_57, 0); -x_61 = lean_ctor_get(x_57, 1); -x_62 = l_Lean_Exception_isInterrupt(x_60); -if (x_62 == 0) -{ -uint8_t x_63; -x_63 = l_Lean_Exception_isRuntime(x_60); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; uint8_t x_88; -lean_free_object(x_57); -x_64 = l_Lean_MessageData_ofExpr(x_29); -x_65 = l_Lean_indentD(x_64); -x_66 = l_Lean_MVarId_rewrite___lambda__3___closed__8; -x_67 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_67, 0, x_66); -lean_ctor_set(x_67, 1, x_65); -x_68 = l_Lean_MVarId_rewrite___lambda__3___closed__10; -x_69 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_69, 0, x_67); -lean_ctor_set(x_69, 1, x_68); -x_70 = l_Lean_Exception_toMessageData(x_60); -x_71 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_71, 0, x_69); -lean_ctor_set(x_71, 1, x_70); -x_72 = l_Lean_MVarId_rewrite___lambda__3___closed__12; -x_73 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_73, 0, x_71); -lean_ctor_set(x_73, 1, x_72); -x_74 = l_Lean_MVarId_rewrite___lambda__3___closed__13; -x_75 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -x_76 = l_Lean_MVarId_rewrite___lambda__3___closed__15; -x_77 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_77, 0, x_75); -lean_ctor_set(x_77, 1, x_76); -x_78 = l_Lean_MVarId_rewrite___lambda__3___closed__19; -x_79 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -x_80 = l_Lean_MVarId_rewrite___lambda__3___closed__21; -x_81 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_81, 0, x_79); -lean_ctor_set(x_81, 1, x_80); -x_82 = l_Lean_MVarId_rewrite___lambda__3___closed__24; -x_83 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_83, 0, x_81); -lean_ctor_set(x_83, 1, x_82); -x_84 = l_Lean_MVarId_rewrite___lambda__3___closed__26; -x_85 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_85, 0, x_83); -lean_ctor_set(x_85, 1, x_84); -x_86 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_86, 0, x_85); -x_87 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_86, x_14, x_15, x_16, x_17, x_61); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -x_88 = !lean_is_exclusive(x_87); -if (x_88 == 0) -{ -return x_87; -} -else -{ -lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_89 = lean_ctor_get(x_87, 0); -x_90 = lean_ctor_get(x_87, 1); -lean_inc(x_90); -lean_inc(x_89); -lean_dec(x_87); -x_91 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_91, 0, x_89); -lean_ctor_set(x_91, 1, x_90); -return x_91; -} -} -else -{ -lean_dec(x_29); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -return x_57; -} -} -else -{ -lean_dec(x_29); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -return x_57; -} -} -else -{ -lean_object* x_92; lean_object* x_93; uint8_t x_94; -x_92 = lean_ctor_get(x_57, 0); -x_93 = lean_ctor_get(x_57, 1); -lean_inc(x_93); -lean_inc(x_92); -lean_dec(x_57); -x_94 = l_Lean_Exception_isInterrupt(x_92); -if (x_94 == 0) -{ -uint8_t x_95; -x_95 = l_Lean_Exception_isRuntime(x_92); -if (x_95 == 0) -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; -x_96 = l_Lean_MessageData_ofExpr(x_29); -x_97 = l_Lean_indentD(x_96); -x_98 = l_Lean_MVarId_rewrite___lambda__3___closed__8; -x_99 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_99, 0, x_98); -lean_ctor_set(x_99, 1, x_97); -x_100 = l_Lean_MVarId_rewrite___lambda__3___closed__10; -x_101 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_101, 0, x_99); -lean_ctor_set(x_101, 1, x_100); -x_102 = l_Lean_Exception_toMessageData(x_92); -x_103 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_103, 0, x_101); -lean_ctor_set(x_103, 1, x_102); -x_104 = l_Lean_MVarId_rewrite___lambda__3___closed__12; -x_105 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_105, 0, x_103); -lean_ctor_set(x_105, 1, x_104); -x_106 = l_Lean_MVarId_rewrite___lambda__3___closed__13; -x_107 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_107, 0, x_105); -lean_ctor_set(x_107, 1, x_106); -x_108 = l_Lean_MVarId_rewrite___lambda__3___closed__15; -x_109 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_109, 0, x_107); -lean_ctor_set(x_109, 1, x_108); -x_110 = l_Lean_MVarId_rewrite___lambda__3___closed__19; -x_111 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_111, 0, x_109); -lean_ctor_set(x_111, 1, x_110); -x_112 = l_Lean_MVarId_rewrite___lambda__3___closed__21; -x_113 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_113, 0, x_111); -lean_ctor_set(x_113, 1, x_112); -x_114 = l_Lean_MVarId_rewrite___lambda__3___closed__24; -x_115 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_115, 0, x_113); -lean_ctor_set(x_115, 1, x_114); -x_116 = l_Lean_MVarId_rewrite___lambda__3___closed__26; -x_117 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_117, 0, x_115); -lean_ctor_set(x_117, 1, x_116); -x_118 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_118, 0, x_117); -x_119 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_118, x_14, x_15, x_16, x_17, x_93); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -x_120 = lean_ctor_get(x_119, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_119, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_119)) { - lean_ctor_release(x_119, 0); - lean_ctor_release(x_119, 1); - x_122 = x_119; -} else { - lean_dec_ref(x_119); - x_122 = lean_box(0); -} -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); -} else { - x_123 = x_122; -} -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -return x_123; -} -else -{ -lean_object* x_124; -lean_dec(x_29); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_92); -lean_ctor_set(x_124, 1, x_93); -return x_124; -} -} -else -{ -lean_object* x_125; -lean_dec(x_29); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_9); -lean_dec(x_8); -x_125 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_125, 0, x_92); -lean_ctor_set(x_125, 1, x_93); -return x_125; -} -} -} -block_56: -{ -lean_object* x_31; uint8_t x_32; lean_object* x_33; -lean_inc(x_25); -x_31 = lean_alloc_closure((void*)(l_Lean_MVarId_rewrite___lambda__1___boxed), 8, 2); -lean_closure_set(x_31, 0, x_1); -lean_closure_set(x_31, 1, x_25); -x_32 = 0; -lean_inc(x_17); -lean_inc(x_16); -lean_inc(x_15); -lean_inc(x_14); -lean_inc(x_4); -x_33 = l_Lean_Meta_withLocalDecl___at_Lean_Meta_addPPExplicitToExposeDiff_visit___spec__4___rarg(x_27, x_28, x_4, x_31, x_32, x_14, x_15, x_16, x_17, x_30); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; uint8_t x_35; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_unbox(x_34); -lean_dec(x_34); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; -lean_dec(x_25); -lean_dec(x_21); -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_10); -lean_dec(x_7); -lean_dec(x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_dec(x_33); -x_37 = l_Lean_MessageData_ofExpr(x_29); -x_38 = l_Lean_indentD(x_37); -x_39 = l_Lean_MVarId_rewrite___lambda__3___closed__4; -if (lean_is_scalar(x_23)) { - x_40 = lean_alloc_ctor(7, 2, 0); -} else { - x_40 = x_23; - lean_ctor_set_tag(x_40, 7); -} -lean_ctor_set(x_40, 0, x_39); -lean_ctor_set(x_40, 1, x_38); -x_41 = l_Lean_MVarId_rewrite___lambda__3___closed__6; -x_42 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_42, 0, x_40); -lean_ctor_set(x_42, 1, x_41); -x_43 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_43, 0, x_42); -x_44 = l_Lean_Meta_throwTacticEx___rarg(x_8, x_9, x_43, x_14, x_15, x_16, x_17, x_36); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -lean_dec(x_14); -x_45 = !lean_is_exclusive(x_44); -if (x_45 == 0) -{ -return x_44; -} -else -{ -lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_46 = lean_ctor_get(x_44, 0); -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_inc(x_46); -lean_dec(x_44); -x_48 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_48, 0, x_46); -lean_ctor_set(x_48, 1, x_47); -return x_48; -} -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_dec(x_23); -x_49 = lean_ctor_get(x_33, 1); -lean_inc(x_49); -lean_dec(x_33); -x_50 = lean_box(0); -x_51 = l_Lean_MVarId_rewrite___lambda__11(x_4, x_25, x_5, x_6, x_2, x_29, x_7, x_8, x_9, x_10, x_11, x_12, x_21, x_50, x_14, x_15, x_16, x_17, x_49); -return x_51; -} -} -else -{ -uint8_t x_52; -lean_dec(x_29); -lean_dec(x_25); -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -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_2); -x_52 = !lean_is_exclusive(x_33); -if (x_52 == 0) -{ -return x_33; -} -else -{ -lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_53 = lean_ctor_get(x_33, 0); -x_54 = lean_ctor_get(x_33, 1); -lean_inc(x_54); -lean_inc(x_53); -lean_dec(x_33); -x_55 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_55, 0, x_53); -lean_ctor_set(x_55, 1, x_54); -return x_55; -} -} -} -} -else -{ -uint8_t x_126; -lean_dec(x_23); -lean_dec(x_21); -lean_dec(x_17); -lean_dec(x_16); -lean_dec(x_15); -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_2); -lean_dec(x_1); -x_126 = !lean_is_exclusive(x_24); -if (x_126 == 0) +lean_dec(x_20); +x_23 = l_Lean_Expr_hasBinderNameHint(x_2); +if (x_23 == 0) { +lean_object* x_24; +x_24 = l_Lean_MVarId_rewrite___lambda__15(x_3, x_4, x_1, x_5, x_6, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_21, x_14, x_15, x_16, x_17, x_22); return x_24; } else { -lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_127 = lean_ctor_get(x_24, 0); -x_128 = lean_ctor_get(x_24, 1); -lean_inc(x_128); -lean_inc(x_127); -lean_dec(x_24); -x_129 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_129, 0, x_127); -lean_ctor_set(x_129, 1, x_128); -return x_129; +lean_object* x_25; +lean_inc(x_17); +lean_inc(x_16); +x_25 = l_Lean_Expr_resolveBinderNameHint(x_21, x_16, x_17, x_22); +if (lean_obj_tag(x_25) == 0) +{ +lean_object* x_26; lean_object* x_27; lean_object* x_28; +x_26 = lean_ctor_get(x_25, 0); +lean_inc(x_26); +x_27 = lean_ctor_get(x_25, 1); +lean_inc(x_27); +lean_dec(x_25); +x_28 = l_Lean_MVarId_rewrite___lambda__15(x_3, x_4, x_1, x_5, x_6, x_2, x_7, x_8, x_9, x_10, x_11, x_12, x_26, x_14, x_15, x_16, x_17, x_27); +return x_28; +} +else +{ +uint8_t x_29; +lean_dec(x_17); +lean_dec(x_16); +lean_dec(x_15); +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_2); +lean_dec(x_1); +x_29 = !lean_is_exclusive(x_25); +if (x_29 == 0) +{ +return x_25; +} +else +{ +lean_object* x_30; lean_object* x_31; lean_object* x_32; +x_30 = lean_ctor_get(x_25, 0); +x_31 = lean_ctor_get(x_25, 1); +lean_inc(x_31); +lean_inc(x_30); +lean_dec(x_25); +x_32 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_32, 0, x_30); +lean_ctor_set(x_32, 1, x_31); +return x_32; } } } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__13(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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__17(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, lean_object* x_16, lean_object* x_17, lean_object* x_18) { _start: { lean_object* x_19; lean_object* x_20; uint8_t x_21; @@ -5711,7 +5931,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_43 = l_Lean_indentExpr(x_3); -x_44 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_44 = l_Lean_MVarId_rewrite___lambda__5___closed__2; lean_ctor_set_tag(x_19, 7); lean_ctor_set(x_19, 1, x_43); lean_ctor_set(x_19, 0, x_44); @@ -5750,7 +5970,7 @@ else lean_object* x_53; lean_object* x_54; lean_free_object(x_19); x_53 = lean_box(0); -x_54 = l_Lean_MVarId_rewrite___lambda__12(x_40, x_4, x_22, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_53, x_14, x_15, x_16, x_17, x_41); +x_54 = l_Lean_MVarId_rewrite___lambda__16(x_40, x_4, x_22, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_53, x_14, x_15, x_16, x_17, x_41); return x_54; } } @@ -5877,7 +6097,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_86 = l_Lean_indentExpr(x_3); -x_87 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_87 = l_Lean_MVarId_rewrite___lambda__5___closed__2; lean_ctor_set_tag(x_19, 7); lean_ctor_set(x_19, 1, x_86); lean_ctor_set(x_19, 0, x_87); @@ -5918,7 +6138,7 @@ else lean_object* x_96; lean_object* x_97; lean_free_object(x_19); x_96 = lean_box(0); -x_97 = l_Lean_MVarId_rewrite___lambda__12(x_83, x_4, x_22, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_96, x_14, x_15, x_16, x_17, x_84); +x_97 = l_Lean_MVarId_rewrite___lambda__16(x_83, x_4, x_22, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_96, x_14, x_15, x_16, x_17, x_84); return x_97; } } @@ -6076,7 +6296,7 @@ lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); x_140 = l_Lean_indentExpr(x_3); -x_141 = l_Lean_MVarId_rewrite___lambda__4___closed__2; +x_141 = l_Lean_MVarId_rewrite___lambda__5___closed__2; x_142 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_142, 0, x_141); lean_ctor_set(x_142, 1, x_140); @@ -6116,7 +6336,7 @@ else { lean_object* x_151; lean_object* x_152; x_151 = lean_box(0); -x_152 = l_Lean_MVarId_rewrite___lambda__12(x_137, x_4, x_102, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_151, x_14, x_15, x_16, x_17, x_138); +x_152 = l_Lean_MVarId_rewrite___lambda__16(x_137, x_4, x_102, x_5, x_6, x_3, x_7, x_8, x_9, x_10, x_11, x_12, x_151, x_14, x_15, x_16, x_17, x_138); return x_152; } } @@ -6162,7 +6382,7 @@ return x_156; } } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__1() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__1() { _start: { lean_object* x_1; @@ -6170,17 +6390,17 @@ x_1 = lean_mk_string_unchecked("Iff", 3, 3); return x_1; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__2() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_MVarId_rewrite___lambda__14___closed__1; +x_2 = l_Lean_MVarId_rewrite___lambda__18___closed__1; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__3() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__3() { _start: { lean_object* x_1; @@ -6188,16 +6408,16 @@ x_1 = lean_mk_string_unchecked("equality or iff proof expected", 30, 30); return x_1; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__4() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__4() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_MVarId_rewrite___lambda__14___closed__3; +x_1 = l_Lean_MVarId_rewrite___lambda__18___closed__3; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__5() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__5() { _start: { lean_object* x_1; @@ -6205,16 +6425,16 @@ x_1 = lean_mk_string_unchecked("pattern is a metavariable", 25, 25); return x_1; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__6() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__6() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_MVarId_rewrite___lambda__14___closed__5; +x_1 = l_Lean_MVarId_rewrite___lambda__18___closed__5; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__7() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__7() { _start: { lean_object* x_1; @@ -6222,16 +6442,16 @@ x_1 = lean_mk_string_unchecked("\nfrom equation", 14, 14); return x_1; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__8() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l_Lean_MVarId_rewrite___lambda__14___closed__7; +x_1 = l_Lean_MVarId_rewrite___lambda__18___closed__7; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__9() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__9() { _start: { lean_object* x_1; @@ -6239,27 +6459,27 @@ x_1 = lean_mk_string_unchecked("propext", 7, 7); return x_1; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__10() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__10() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_MVarId_rewrite___lambda__14___closed__9; +x_2 = l_Lean_MVarId_rewrite___lambda__18___closed__9; x_3 = l_Lean_Name_str___override(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_MVarId_rewrite___lambda__14___closed__11() { +static lean_object* _init_l_Lean_MVarId_rewrite___lambda__18___closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l_Lean_MVarId_rewrite___lambda__14___closed__10; +x_2 = l_Lean_MVarId_rewrite___lambda__18___closed__10; x_3 = l_Lean_Expr_const___override(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__18(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { lean_object* x_12; @@ -6325,7 +6545,7 @@ x_31 = lean_ctor_get(x_25, 0); x_32 = lean_ctor_get(x_25, 1); lean_inc(x_3); x_33 = l_Lean_mkAppN(x_3, x_28); -x_34 = l_Lean_MVarId_rewrite___lambda__14___closed__2; +x_34 = l_Lean_MVarId_rewrite___lambda__18___closed__2; x_35 = lean_unsigned_to_nat(2u); x_36 = l_Lean_Expr_isAppOfArity(x_32, x_34, x_35); if (x_36 == 0) @@ -6354,7 +6574,7 @@ x_39 = lean_ctor_get(x_37, 1); lean_inc(x_39); lean_dec(x_37); x_40 = l_Lean_indentExpr(x_32); -x_41 = l_Lean_MVarId_rewrite___lambda__14___closed__4; +x_41 = l_Lean_MVarId_rewrite___lambda__18___closed__4; lean_ctor_set_tag(x_25, 7); lean_ctor_set(x_25, 1, x_40); lean_ctor_set(x_25, 0, x_41); @@ -6413,7 +6633,7 @@ lean_free_object(x_25); lean_dec(x_32); lean_free_object(x_24); x_57 = lean_box(0); -x_58 = l_Lean_MVarId_rewrite___lambda__4(x_5, x_6, x_53, x_54, x_50, x_33, x_2, x_1, x_28, x_31, x_3, x_57, x_7, x_8, x_9, x_10, x_48); +x_58 = l_Lean_MVarId_rewrite___lambda__5(x_5, x_6, x_53, x_54, x_50, x_33, x_2, x_1, x_28, x_31, x_3, x_57, x_7, x_8, x_9, x_10, x_48); return x_58; } else @@ -6427,11 +6647,11 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_59 = l_Lean_indentExpr(x_53); -x_60 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_60 = l_Lean_MVarId_rewrite___lambda__18___closed__6; lean_ctor_set_tag(x_47, 7); lean_ctor_set(x_47, 1, x_59); lean_ctor_set(x_47, 0, x_60); -x_61 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_61 = l_Lean_MVarId_rewrite___lambda__18___closed__8; lean_ctor_set_tag(x_46, 7); lean_ctor_set(x_46, 1, x_61); lean_ctor_set(x_46, 0, x_47); @@ -6489,7 +6709,7 @@ lean_free_object(x_25); lean_dec(x_32); lean_free_object(x_24); x_73 = lean_box(0); -x_74 = l_Lean_MVarId_rewrite___lambda__4(x_5, x_6, x_69, x_70, x_50, x_33, x_2, x_1, x_28, x_31, x_3, x_73, x_7, x_8, x_9, x_10, x_48); +x_74 = l_Lean_MVarId_rewrite___lambda__5(x_5, x_6, x_69, x_70, x_50, x_33, x_2, x_1, x_28, x_31, x_3, x_73, x_7, x_8, x_9, x_10, x_48); return x_74; } else @@ -6503,11 +6723,11 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_75 = l_Lean_indentExpr(x_69); -x_76 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_76 = l_Lean_MVarId_rewrite___lambda__18___closed__6; x_77 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_77, 0, x_76); lean_ctor_set(x_77, 1, x_75); -x_78 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_78 = l_Lean_MVarId_rewrite___lambda__18___closed__8; lean_ctor_set_tag(x_46, 7); lean_ctor_set(x_46, 1, x_78); lean_ctor_set(x_46, 0, x_77); @@ -6578,7 +6798,7 @@ lean_free_object(x_25); lean_dec(x_32); lean_free_object(x_24); x_92 = lean_box(0); -x_93 = l_Lean_MVarId_rewrite___lambda__4(x_5, x_6, x_87, x_88, x_86, x_33, x_2, x_1, x_28, x_31, x_3, x_92, x_7, x_8, x_9, x_10, x_48); +x_93 = l_Lean_MVarId_rewrite___lambda__5(x_5, x_6, x_87, x_88, x_86, x_33, x_2, x_1, x_28, x_31, x_3, x_92, x_7, x_8, x_9, x_10, x_48); return x_93; } else @@ -6592,7 +6812,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_94 = l_Lean_indentExpr(x_87); -x_95 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_95 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_89)) { x_96 = lean_alloc_ctor(7, 2, 0); } else { @@ -6601,7 +6821,7 @@ if (lean_is_scalar(x_89)) { } lean_ctor_set(x_96, 0, x_95); lean_ctor_set(x_96, 1, x_94); -x_97 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_97 = l_Lean_MVarId_rewrite___lambda__18___closed__8; x_98 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_98, 0, x_96); lean_ctor_set(x_98, 1, x_97); @@ -6703,7 +6923,7 @@ lean_free_object(x_38); lean_free_object(x_25); lean_free_object(x_24); x_121 = lean_box(0); -x_122 = l_Lean_MVarId_rewrite___lambda__7(x_5, x_6, x_112, x_111, x_108, x_114, x_2, x_1, x_28, x_31, x_3, x_121, x_7, x_8, x_9, x_10, x_118); +x_122 = l_Lean_MVarId_rewrite___lambda__9(x_5, x_6, x_112, x_111, x_108, x_114, x_2, x_1, x_28, x_31, x_3, x_121, x_7, x_8, x_9, x_10, x_118); return x_122; } else @@ -6717,11 +6937,11 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_123 = l_Lean_indentExpr(x_112); -x_124 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_124 = l_Lean_MVarId_rewrite___lambda__18___closed__6; lean_ctor_set_tag(x_47, 7); lean_ctor_set(x_47, 1, x_123); lean_ctor_set(x_47, 0, x_124); -x_125 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_125 = l_Lean_MVarId_rewrite___lambda__18___closed__8; lean_ctor_set_tag(x_46, 7); lean_ctor_set(x_46, 1, x_125); lean_ctor_set(x_46, 0, x_47); @@ -6890,7 +7110,7 @@ lean_free_object(x_38); lean_free_object(x_25); lean_free_object(x_24); x_151 = lean_box(0); -x_152 = l_Lean_MVarId_rewrite___lambda__7(x_5, x_6, x_142, x_141, x_108, x_144, x_2, x_1, x_28, x_31, x_3, x_151, x_7, x_8, x_9, x_10, x_148); +x_152 = l_Lean_MVarId_rewrite___lambda__9(x_5, x_6, x_142, x_141, x_108, x_144, x_2, x_1, x_28, x_31, x_3, x_151, x_7, x_8, x_9, x_10, x_148); return x_152; } else @@ -6904,11 +7124,11 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_153 = l_Lean_indentExpr(x_142); -x_154 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_154 = l_Lean_MVarId_rewrite___lambda__18___closed__6; x_155 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_155, 0, x_154); lean_ctor_set(x_155, 1, x_153); -x_156 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_156 = l_Lean_MVarId_rewrite___lambda__18___closed__8; lean_ctor_set_tag(x_46, 7); lean_ctor_set(x_46, 1, x_156); lean_ctor_set(x_46, 0, x_155); @@ -7092,7 +7312,7 @@ lean_free_object(x_38); lean_free_object(x_25); lean_free_object(x_24); x_184 = lean_box(0); -x_185 = l_Lean_MVarId_rewrite___lambda__7(x_5, x_6, x_174, x_173, x_172, x_177, x_2, x_1, x_28, x_31, x_3, x_184, x_7, x_8, x_9, x_10, x_181); +x_185 = l_Lean_MVarId_rewrite___lambda__9(x_5, x_6, x_174, x_173, x_172, x_177, x_2, x_1, x_28, x_31, x_3, x_184, x_7, x_8, x_9, x_10, x_181); return x_185; } else @@ -7106,7 +7326,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_186 = l_Lean_indentExpr(x_174); -x_187 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_187 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_175)) { x_188 = lean_alloc_ctor(7, 2, 0); } else { @@ -7115,7 +7335,7 @@ if (lean_is_scalar(x_175)) { } lean_ctor_set(x_188, 0, x_187); lean_ctor_set(x_188, 1, x_186); -x_189 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_189 = l_Lean_MVarId_rewrite___lambda__18___closed__8; x_190 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_190, 0, x_188); lean_ctor_set(x_190, 1, x_189); @@ -7290,7 +7510,7 @@ lean_free_object(x_25); lean_dec(x_32); lean_free_object(x_24); x_216 = lean_box(0); -x_217 = l_Lean_MVarId_rewrite___lambda__4(x_5, x_6, x_211, x_212, x_209, x_33, x_2, x_1, x_28, x_31, x_3, x_216, x_7, x_8, x_9, x_10, x_208); +x_217 = l_Lean_MVarId_rewrite___lambda__5(x_5, x_6, x_211, x_212, x_209, x_33, x_2, x_1, x_28, x_31, x_3, x_216, x_7, x_8, x_9, x_10, x_208); return x_217; } else @@ -7304,7 +7524,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_218 = l_Lean_indentExpr(x_211); -x_219 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_219 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_213)) { x_220 = lean_alloc_ctor(7, 2, 0); } else { @@ -7313,7 +7533,7 @@ if (lean_is_scalar(x_213)) { } lean_ctor_set(x_220, 0, x_219); lean_ctor_set(x_220, 1, x_218); -x_221 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_221 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_210)) { x_222 = lean_alloc_ctor(7, 2, 0); } else { @@ -7428,7 +7648,7 @@ lean_dec(x_233); lean_free_object(x_25); lean_free_object(x_24); x_245 = lean_box(0); -x_246 = l_Lean_MVarId_rewrite___lambda__7(x_5, x_6, x_235, x_234, x_232, x_238, x_2, x_1, x_28, x_31, x_3, x_245, x_7, x_8, x_9, x_10, x_242); +x_246 = l_Lean_MVarId_rewrite___lambda__9(x_5, x_6, x_235, x_234, x_232, x_238, x_2, x_1, x_28, x_31, x_3, x_245, x_7, x_8, x_9, x_10, x_242); return x_246; } else @@ -7442,7 +7662,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_247 = l_Lean_indentExpr(x_235); -x_248 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_248 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_236)) { x_249 = lean_alloc_ctor(7, 2, 0); } else { @@ -7451,7 +7671,7 @@ if (lean_is_scalar(x_236)) { } lean_ctor_set(x_249, 0, x_248); lean_ctor_set(x_249, 1, x_247); -x_250 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_250 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_233)) { x_251 = lean_alloc_ctor(7, 2, 0); } else { @@ -7646,7 +7866,7 @@ x_277 = lean_ctor_get(x_275, 1); lean_inc(x_277); lean_dec(x_275); x_278 = lean_box(0); -x_279 = l_Lean_MVarId_rewrite___lambda__14___closed__11; +x_279 = l_Lean_MVarId_rewrite___lambda__18___closed__11; x_280 = l_Lean_mkApp3(x_279, x_273, x_274, x_33); lean_inc(x_10); lean_inc(x_9); @@ -7671,7 +7891,7 @@ x_283 = lean_ctor_get(x_281, 1); lean_inc(x_283); lean_dec(x_281); x_284 = l_Lean_indentExpr(x_276); -x_285 = l_Lean_MVarId_rewrite___lambda__14___closed__4; +x_285 = l_Lean_MVarId_rewrite___lambda__18___closed__4; lean_ctor_set_tag(x_25, 7); lean_ctor_set(x_25, 1, x_284); lean_ctor_set(x_25, 0, x_285); @@ -7730,7 +7950,7 @@ lean_dec(x_276); lean_free_object(x_25); lean_free_object(x_24); x_301 = lean_box(0); -x_302 = l_Lean_MVarId_rewrite___lambda__10(x_5, x_6, x_297, x_298, x_294, x_278, x_280, x_2, x_1, x_28, x_31, x_3, x_301, x_7, x_8, x_9, x_10, x_292); +x_302 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_297, x_298, x_294, x_278, x_280, x_2, x_1, x_28, x_31, x_3, x_301, x_7, x_8, x_9, x_10, x_292); return x_302; } else @@ -7744,11 +7964,11 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_303 = l_Lean_indentExpr(x_297); -x_304 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_304 = l_Lean_MVarId_rewrite___lambda__18___closed__6; lean_ctor_set_tag(x_291, 7); lean_ctor_set(x_291, 1, x_303); lean_ctor_set(x_291, 0, x_304); -x_305 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_305 = l_Lean_MVarId_rewrite___lambda__18___closed__8; lean_ctor_set_tag(x_290, 7); lean_ctor_set(x_290, 1, x_305); lean_ctor_set(x_290, 0, x_291); @@ -7806,7 +8026,7 @@ lean_dec(x_276); lean_free_object(x_25); lean_free_object(x_24); x_317 = lean_box(0); -x_318 = l_Lean_MVarId_rewrite___lambda__10(x_5, x_6, x_313, x_314, x_294, x_278, x_280, x_2, x_1, x_28, x_31, x_3, x_317, x_7, x_8, x_9, x_10, x_292); +x_318 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_313, x_314, x_294, x_278, x_280, x_2, x_1, x_28, x_31, x_3, x_317, x_7, x_8, x_9, x_10, x_292); return x_318; } else @@ -7820,11 +8040,11 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_319 = l_Lean_indentExpr(x_313); -x_320 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_320 = l_Lean_MVarId_rewrite___lambda__18___closed__6; x_321 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_321, 0, x_320); lean_ctor_set(x_321, 1, x_319); -x_322 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_322 = l_Lean_MVarId_rewrite___lambda__18___closed__8; lean_ctor_set_tag(x_290, 7); lean_ctor_set(x_290, 1, x_322); lean_ctor_set(x_290, 0, x_321); @@ -7895,7 +8115,7 @@ lean_dec(x_276); lean_free_object(x_25); lean_free_object(x_24); x_336 = lean_box(0); -x_337 = l_Lean_MVarId_rewrite___lambda__10(x_5, x_6, x_331, x_332, x_330, x_278, x_280, x_2, x_1, x_28, x_31, x_3, x_336, x_7, x_8, x_9, x_10, x_292); +x_337 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_331, x_332, x_330, x_278, x_280, x_2, x_1, x_28, x_31, x_3, x_336, x_7, x_8, x_9, x_10, x_292); return x_337; } else @@ -7909,7 +8129,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_338 = l_Lean_indentExpr(x_331); -x_339 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_339 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_333)) { x_340 = lean_alloc_ctor(7, 2, 0); } else { @@ -7918,7 +8138,7 @@ if (lean_is_scalar(x_333)) { } lean_ctor_set(x_340, 0, x_339); lean_ctor_set(x_340, 1, x_338); -x_341 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_341 = l_Lean_MVarId_rewrite___lambda__18___closed__8; x_342 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_342, 0, x_340); lean_ctor_set(x_342, 1, x_341); @@ -8020,7 +8240,7 @@ lean_free_object(x_282); lean_free_object(x_25); lean_free_object(x_24); x_365 = lean_box(0); -x_366 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_356, x_355, x_352, x_278, x_358, x_2, x_1, x_28, x_31, x_3, x_365, x_7, x_8, x_9, x_10, x_362); +x_366 = l_Lean_MVarId_rewrite___lambda__17(x_5, x_6, x_356, x_355, x_352, x_278, x_358, x_2, x_1, x_28, x_31, x_3, x_365, x_7, x_8, x_9, x_10, x_362); return x_366; } else @@ -8034,11 +8254,11 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_367 = l_Lean_indentExpr(x_356); -x_368 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_368 = l_Lean_MVarId_rewrite___lambda__18___closed__6; lean_ctor_set_tag(x_291, 7); lean_ctor_set(x_291, 1, x_367); lean_ctor_set(x_291, 0, x_368); -x_369 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_369 = l_Lean_MVarId_rewrite___lambda__18___closed__8; lean_ctor_set_tag(x_290, 7); lean_ctor_set(x_290, 1, x_369); lean_ctor_set(x_290, 0, x_291); @@ -8207,7 +8427,7 @@ lean_free_object(x_282); lean_free_object(x_25); lean_free_object(x_24); x_395 = lean_box(0); -x_396 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_386, x_385, x_352, x_278, x_388, x_2, x_1, x_28, x_31, x_3, x_395, x_7, x_8, x_9, x_10, x_392); +x_396 = l_Lean_MVarId_rewrite___lambda__17(x_5, x_6, x_386, x_385, x_352, x_278, x_388, x_2, x_1, x_28, x_31, x_3, x_395, x_7, x_8, x_9, x_10, x_392); return x_396; } else @@ -8221,11 +8441,11 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_397 = l_Lean_indentExpr(x_386); -x_398 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_398 = l_Lean_MVarId_rewrite___lambda__18___closed__6; x_399 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_399, 0, x_398); lean_ctor_set(x_399, 1, x_397); -x_400 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_400 = l_Lean_MVarId_rewrite___lambda__18___closed__8; lean_ctor_set_tag(x_290, 7); lean_ctor_set(x_290, 1, x_400); lean_ctor_set(x_290, 0, x_399); @@ -8409,7 +8629,7 @@ lean_free_object(x_282); lean_free_object(x_25); lean_free_object(x_24); x_428 = lean_box(0); -x_429 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_418, x_417, x_416, x_278, x_421, x_2, x_1, x_28, x_31, x_3, x_428, x_7, x_8, x_9, x_10, x_425); +x_429 = l_Lean_MVarId_rewrite___lambda__17(x_5, x_6, x_418, x_417, x_416, x_278, x_421, x_2, x_1, x_28, x_31, x_3, x_428, x_7, x_8, x_9, x_10, x_425); return x_429; } else @@ -8423,7 +8643,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_430 = l_Lean_indentExpr(x_418); -x_431 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_431 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_419)) { x_432 = lean_alloc_ctor(7, 2, 0); } else { @@ -8432,7 +8652,7 @@ if (lean_is_scalar(x_419)) { } lean_ctor_set(x_432, 0, x_431); lean_ctor_set(x_432, 1, x_430); -x_433 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_433 = l_Lean_MVarId_rewrite___lambda__18___closed__8; x_434 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_434, 0, x_432); lean_ctor_set(x_434, 1, x_433); @@ -8607,7 +8827,7 @@ lean_dec(x_276); lean_free_object(x_25); lean_free_object(x_24); x_460 = lean_box(0); -x_461 = l_Lean_MVarId_rewrite___lambda__10(x_5, x_6, x_455, x_456, x_453, x_278, x_280, x_2, x_1, x_28, x_31, x_3, x_460, x_7, x_8, x_9, x_10, x_452); +x_461 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_455, x_456, x_453, x_278, x_280, x_2, x_1, x_28, x_31, x_3, x_460, x_7, x_8, x_9, x_10, x_452); return x_461; } else @@ -8621,7 +8841,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_462 = l_Lean_indentExpr(x_455); -x_463 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_463 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_457)) { x_464 = lean_alloc_ctor(7, 2, 0); } else { @@ -8630,7 +8850,7 @@ if (lean_is_scalar(x_457)) { } lean_ctor_set(x_464, 0, x_463); lean_ctor_set(x_464, 1, x_462); -x_465 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_465 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_454)) { x_466 = lean_alloc_ctor(7, 2, 0); } else { @@ -8745,7 +8965,7 @@ lean_dec(x_477); lean_free_object(x_25); lean_free_object(x_24); x_489 = lean_box(0); -x_490 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_479, x_478, x_476, x_278, x_482, x_2, x_1, x_28, x_31, x_3, x_489, x_7, x_8, x_9, x_10, x_486); +x_490 = l_Lean_MVarId_rewrite___lambda__17(x_5, x_6, x_479, x_478, x_476, x_278, x_482, x_2, x_1, x_28, x_31, x_3, x_489, x_7, x_8, x_9, x_10, x_486); return x_490; } else @@ -8759,7 +8979,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_491 = l_Lean_indentExpr(x_479); -x_492 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_492 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_480)) { x_493 = lean_alloc_ctor(7, 2, 0); } else { @@ -8768,7 +8988,7 @@ if (lean_is_scalar(x_480)) { } lean_ctor_set(x_493, 0, x_492); lean_ctor_set(x_493, 1, x_491); -x_494 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_494 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_477)) { x_495 = lean_alloc_ctor(7, 2, 0); } else { @@ -8988,7 +9208,7 @@ lean_inc(x_520); lean_dec(x_25); lean_inc(x_3); x_522 = l_Lean_mkAppN(x_3, x_28); -x_523 = l_Lean_MVarId_rewrite___lambda__14___closed__2; +x_523 = l_Lean_MVarId_rewrite___lambda__18___closed__2; x_524 = lean_unsigned_to_nat(2u); x_525 = l_Lean_Expr_isAppOfArity(x_521, x_523, x_524); if (x_525 == 0) @@ -9017,7 +9237,7 @@ x_528 = lean_ctor_get(x_526, 1); lean_inc(x_528); lean_dec(x_526); x_529 = l_Lean_indentExpr(x_521); -x_530 = l_Lean_MVarId_rewrite___lambda__14___closed__4; +x_530 = l_Lean_MVarId_rewrite___lambda__18___closed__4; x_531 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_531, 0, x_530); lean_ctor_set(x_531, 1, x_529); @@ -9088,7 +9308,7 @@ lean_dec(x_536); lean_dec(x_521); lean_free_object(x_24); x_546 = lean_box(0); -x_547 = l_Lean_MVarId_rewrite___lambda__4(x_5, x_6, x_541, x_542, x_539, x_522, x_2, x_1, x_28, x_520, x_3, x_546, x_7, x_8, x_9, x_10, x_538); +x_547 = l_Lean_MVarId_rewrite___lambda__5(x_5, x_6, x_541, x_542, x_539, x_522, x_2, x_1, x_28, x_520, x_3, x_546, x_7, x_8, x_9, x_10, x_538); return x_547; } else @@ -9102,7 +9322,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_548 = l_Lean_indentExpr(x_541); -x_549 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_549 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_543)) { x_550 = lean_alloc_ctor(7, 2, 0); } else { @@ -9111,7 +9331,7 @@ if (lean_is_scalar(x_543)) { } lean_ctor_set(x_550, 0, x_549); lean_ctor_set(x_550, 1, x_548); -x_551 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_551 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_540)) { x_552 = lean_alloc_ctor(7, 2, 0); } else { @@ -9230,7 +9450,7 @@ lean_dec(x_564); lean_dec(x_536); lean_free_object(x_24); x_576 = lean_box(0); -x_577 = l_Lean_MVarId_rewrite___lambda__7(x_5, x_6, x_566, x_565, x_563, x_569, x_2, x_1, x_28, x_520, x_3, x_576, x_7, x_8, x_9, x_10, x_573); +x_577 = l_Lean_MVarId_rewrite___lambda__9(x_5, x_6, x_566, x_565, x_563, x_569, x_2, x_1, x_28, x_520, x_3, x_576, x_7, x_8, x_9, x_10, x_573); return x_577; } else @@ -9244,7 +9464,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_578 = l_Lean_indentExpr(x_566); -x_579 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_579 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_567)) { x_580 = lean_alloc_ctor(7, 2, 0); } else { @@ -9253,7 +9473,7 @@ if (lean_is_scalar(x_567)) { } lean_ctor_set(x_580, 0, x_579); lean_ctor_set(x_580, 1, x_578); -x_581 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_581 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_564)) { x_582 = lean_alloc_ctor(7, 2, 0); } else { @@ -9452,7 +9672,7 @@ x_609 = lean_ctor_get(x_607, 1); lean_inc(x_609); lean_dec(x_607); x_610 = lean_box(0); -x_611 = l_Lean_MVarId_rewrite___lambda__14___closed__11; +x_611 = l_Lean_MVarId_rewrite___lambda__18___closed__11; x_612 = l_Lean_mkApp3(x_611, x_605, x_606, x_522); lean_inc(x_10); lean_inc(x_9); @@ -9477,7 +9697,7 @@ x_615 = lean_ctor_get(x_613, 1); lean_inc(x_615); lean_dec(x_613); x_616 = l_Lean_indentExpr(x_608); -x_617 = l_Lean_MVarId_rewrite___lambda__14___closed__4; +x_617 = l_Lean_MVarId_rewrite___lambda__18___closed__4; x_618 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_618, 0, x_617); lean_ctor_set(x_618, 1, x_616); @@ -9548,7 +9768,7 @@ lean_dec(x_623); lean_dec(x_608); lean_free_object(x_24); x_633 = lean_box(0); -x_634 = l_Lean_MVarId_rewrite___lambda__10(x_5, x_6, x_628, x_629, x_626, x_610, x_612, x_2, x_1, x_28, x_520, x_3, x_633, x_7, x_8, x_9, x_10, x_625); +x_634 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_628, x_629, x_626, x_610, x_612, x_2, x_1, x_28, x_520, x_3, x_633, x_7, x_8, x_9, x_10, x_625); return x_634; } else @@ -9562,7 +9782,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_635 = l_Lean_indentExpr(x_628); -x_636 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_636 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_630)) { x_637 = lean_alloc_ctor(7, 2, 0); } else { @@ -9571,7 +9791,7 @@ if (lean_is_scalar(x_630)) { } lean_ctor_set(x_637, 0, x_636); lean_ctor_set(x_637, 1, x_635); -x_638 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_638 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_627)) { x_639 = lean_alloc_ctor(7, 2, 0); } else { @@ -9690,7 +9910,7 @@ lean_dec(x_651); lean_dec(x_623); lean_free_object(x_24); x_663 = lean_box(0); -x_664 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_653, x_652, x_650, x_610, x_656, x_2, x_1, x_28, x_520, x_3, x_663, x_7, x_8, x_9, x_10, x_660); +x_664 = l_Lean_MVarId_rewrite___lambda__17(x_5, x_6, x_653, x_652, x_650, x_610, x_656, x_2, x_1, x_28, x_520, x_3, x_663, x_7, x_8, x_9, x_10, x_660); return x_664; } else @@ -9704,7 +9924,7 @@ lean_dec(x_28); lean_dec(x_5); lean_dec(x_3); x_665 = l_Lean_indentExpr(x_653); -x_666 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_666 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_654)) { x_667 = lean_alloc_ctor(7, 2, 0); } else { @@ -9713,7 +9933,7 @@ if (lean_is_scalar(x_654)) { } lean_ctor_set(x_667, 0, x_666); lean_ctor_set(x_667, 1, x_665); -x_668 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_668 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_651)) { x_669 = lean_alloc_ctor(7, 2, 0); } else { @@ -9949,7 +10169,7 @@ if (lean_is_exclusive(x_25)) { } lean_inc(x_3); x_699 = l_Lean_mkAppN(x_3, x_695); -x_700 = l_Lean_MVarId_rewrite___lambda__14___closed__2; +x_700 = l_Lean_MVarId_rewrite___lambda__18___closed__2; x_701 = lean_unsigned_to_nat(2u); x_702 = l_Lean_Expr_isAppOfArity(x_697, x_700, x_701); if (x_702 == 0) @@ -9978,7 +10198,7 @@ x_705 = lean_ctor_get(x_703, 1); lean_inc(x_705); lean_dec(x_703); x_706 = l_Lean_indentExpr(x_697); -x_707 = l_Lean_MVarId_rewrite___lambda__14___closed__4; +x_707 = l_Lean_MVarId_rewrite___lambda__18___closed__4; if (lean_is_scalar(x_698)) { x_708 = lean_alloc_ctor(7, 2, 0); } else { @@ -10054,7 +10274,7 @@ lean_dec(x_714); lean_dec(x_698); lean_dec(x_697); x_724 = lean_box(0); -x_725 = l_Lean_MVarId_rewrite___lambda__4(x_5, x_6, x_719, x_720, x_717, x_699, x_2, x_1, x_695, x_696, x_3, x_724, x_7, x_8, x_9, x_10, x_716); +x_725 = l_Lean_MVarId_rewrite___lambda__5(x_5, x_6, x_719, x_720, x_717, x_699, x_2, x_1, x_695, x_696, x_3, x_724, x_7, x_8, x_9, x_10, x_716); return x_725; } else @@ -10068,7 +10288,7 @@ lean_dec(x_695); lean_dec(x_5); lean_dec(x_3); x_726 = l_Lean_indentExpr(x_719); -x_727 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_727 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_721)) { x_728 = lean_alloc_ctor(7, 2, 0); } else { @@ -10077,7 +10297,7 @@ if (lean_is_scalar(x_721)) { } lean_ctor_set(x_728, 0, x_727); lean_ctor_set(x_728, 1, x_726); -x_729 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_729 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_718)) { x_730 = lean_alloc_ctor(7, 2, 0); } else { @@ -10201,7 +10421,7 @@ lean_dec(x_743); lean_dec(x_714); lean_dec(x_698); x_755 = lean_box(0); -x_756 = l_Lean_MVarId_rewrite___lambda__7(x_5, x_6, x_745, x_744, x_742, x_748, x_2, x_1, x_695, x_696, x_3, x_755, x_7, x_8, x_9, x_10, x_752); +x_756 = l_Lean_MVarId_rewrite___lambda__9(x_5, x_6, x_745, x_744, x_742, x_748, x_2, x_1, x_695, x_696, x_3, x_755, x_7, x_8, x_9, x_10, x_752); return x_756; } else @@ -10215,7 +10435,7 @@ lean_dec(x_695); lean_dec(x_5); lean_dec(x_3); x_757 = l_Lean_indentExpr(x_745); -x_758 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_758 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_746)) { x_759 = lean_alloc_ctor(7, 2, 0); } else { @@ -10224,7 +10444,7 @@ if (lean_is_scalar(x_746)) { } lean_ctor_set(x_759, 0, x_758); lean_ctor_set(x_759, 1, x_757); -x_760 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_760 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_743)) { x_761 = lean_alloc_ctor(7, 2, 0); } else { @@ -10428,7 +10648,7 @@ x_789 = lean_ctor_get(x_787, 1); lean_inc(x_789); lean_dec(x_787); x_790 = lean_box(0); -x_791 = l_Lean_MVarId_rewrite___lambda__14___closed__11; +x_791 = l_Lean_MVarId_rewrite___lambda__18___closed__11; x_792 = l_Lean_mkApp3(x_791, x_785, x_786, x_699); lean_inc(x_10); lean_inc(x_9); @@ -10453,7 +10673,7 @@ x_795 = lean_ctor_get(x_793, 1); lean_inc(x_795); lean_dec(x_793); x_796 = l_Lean_indentExpr(x_788); -x_797 = l_Lean_MVarId_rewrite___lambda__14___closed__4; +x_797 = l_Lean_MVarId_rewrite___lambda__18___closed__4; if (lean_is_scalar(x_698)) { x_798 = lean_alloc_ctor(7, 2, 0); } else { @@ -10529,7 +10749,7 @@ lean_dec(x_804); lean_dec(x_788); lean_dec(x_698); x_814 = lean_box(0); -x_815 = l_Lean_MVarId_rewrite___lambda__10(x_5, x_6, x_809, x_810, x_807, x_790, x_792, x_2, x_1, x_695, x_696, x_3, x_814, x_7, x_8, x_9, x_10, x_806); +x_815 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_809, x_810, x_807, x_790, x_792, x_2, x_1, x_695, x_696, x_3, x_814, x_7, x_8, x_9, x_10, x_806); return x_815; } else @@ -10543,7 +10763,7 @@ lean_dec(x_695); lean_dec(x_5); lean_dec(x_3); x_816 = l_Lean_indentExpr(x_809); -x_817 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_817 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_811)) { x_818 = lean_alloc_ctor(7, 2, 0); } else { @@ -10552,7 +10772,7 @@ if (lean_is_scalar(x_811)) { } lean_ctor_set(x_818, 0, x_817); lean_ctor_set(x_818, 1, x_816); -x_819 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_819 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_808)) { x_820 = lean_alloc_ctor(7, 2, 0); } else { @@ -10676,7 +10896,7 @@ lean_dec(x_833); lean_dec(x_804); lean_dec(x_698); x_845 = lean_box(0); -x_846 = l_Lean_MVarId_rewrite___lambda__13(x_5, x_6, x_835, x_834, x_832, x_790, x_838, x_2, x_1, x_695, x_696, x_3, x_845, x_7, x_8, x_9, x_10, x_842); +x_846 = l_Lean_MVarId_rewrite___lambda__17(x_5, x_6, x_835, x_834, x_832, x_790, x_838, x_2, x_1, x_695, x_696, x_3, x_845, x_7, x_8, x_9, x_10, x_842); return x_846; } else @@ -10690,7 +10910,7 @@ lean_dec(x_695); lean_dec(x_5); lean_dec(x_3); x_847 = l_Lean_indentExpr(x_835); -x_848 = l_Lean_MVarId_rewrite___lambda__14___closed__6; +x_848 = l_Lean_MVarId_rewrite___lambda__18___closed__6; if (lean_is_scalar(x_836)) { x_849 = lean_alloc_ctor(7, 2, 0); } else { @@ -10699,7 +10919,7 @@ if (lean_is_scalar(x_836)) { } lean_ctor_set(x_849, 0, x_848); lean_ctor_set(x_849, 1, x_847); -x_850 = l_Lean_MVarId_rewrite___lambda__14___closed__8; +x_850 = l_Lean_MVarId_rewrite___lambda__18___closed__8; if (lean_is_scalar(x_833)) { x_851 = lean_alloc_ctor(7, 2, 0); } else { @@ -11039,7 +11259,7 @@ lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_11 = l_Lean_MVarId_rewrite___closed__2; x_12 = lean_box(x_4); lean_inc(x_1); -x_13 = lean_alloc_closure((void*)(l_Lean_MVarId_rewrite___lambda__14___boxed), 11, 6); +x_13 = lean_alloc_closure((void*)(l_Lean_MVarId_rewrite___lambda__18___boxed), 11, 6); lean_closure_set(x_13, 0, x_1); lean_closure_set(x_13, 1, x_11); lean_closure_set(x_13, 2, x_3); @@ -11194,7 +11414,6 @@ _start: { lean_object* x_18; x_18 = l_Lean_MVarId_rewrite___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_12); return x_18; } } @@ -11221,7 +11440,6 @@ _start: lean_object* x_18; x_18 = l_Lean_MVarId_rewrite___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); lean_dec(x_12); -lean_dec(x_2); return x_18; } } @@ -11243,13 +11461,13 @@ lean_object* x_14 = _args[13]; lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; _start: { -lean_object* x_19; -x_19 = l_Lean_MVarId_rewrite___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -lean_dec(x_13); -return x_19; +lean_object* x_18; +x_18 = l_Lean_MVarId_rewrite___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec(x_12); +lean_dec(x_2); +return x_18; } } LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__6___boxed(lean_object** _args) { @@ -11270,12 +11488,13 @@ lean_object* x_14 = _args[13]; lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; _start: { -lean_object* x_18; -x_18 = l_Lean_MVarId_rewrite___lambda__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, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_12); -return x_18; +lean_object* x_19; +x_19 = l_Lean_MVarId_rewrite___lambda__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, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_13); +return x_19; } } LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__7___boxed(lean_object** _args) { @@ -11300,8 +11519,6 @@ _start: { lean_object* x_18; x_18 = l_Lean_MVarId_rewrite___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); -lean_dec(x_12); -lean_dec(x_2); return x_18; } } @@ -11323,14 +11540,12 @@ lean_object* x_14 = _args[13]; lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; _start: { -lean_object* x_20; -x_20 = l_Lean_MVarId_rewrite___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); -lean_dec(x_14); -return x_20; +lean_object* x_18; +x_18 = l_Lean_MVarId_rewrite___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec(x_12); +return x_18; } } LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__9___boxed(lean_object** _args) { @@ -11351,13 +11566,13 @@ lean_object* x_14 = _args[13]; lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; -lean_object* x_18 = _args[17]; _start: { -lean_object* x_19; -x_19 = l_Lean_MVarId_rewrite___lambda__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -lean_dec(x_13); -return x_19; +lean_object* x_18; +x_18 = l_Lean_MVarId_rewrite___lambda__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17); +lean_dec(x_12); +lean_dec(x_2); +return x_18; } } LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__10___boxed(lean_object** _args) { @@ -11379,13 +11594,13 @@ lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; _start: { -lean_object* x_19; -x_19 = l_Lean_MVarId_rewrite___lambda__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); -lean_dec(x_13); -lean_dec(x_2); -return x_19; +lean_object* x_20; +x_20 = l_Lean_MVarId_rewrite___lambda__10(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_14); +return x_20; } } LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__11___boxed(lean_object** _args) { @@ -11407,13 +11622,11 @@ lean_object* x_15 = _args[14]; lean_object* x_16 = _args[15]; lean_object* x_17 = _args[16]; lean_object* x_18 = _args[17]; -lean_object* x_19 = _args[18]; _start: { -lean_object* x_20; -x_20 = l_Lean_MVarId_rewrite___lambda__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); -lean_dec(x_14); -return x_20; +lean_object* x_19; +x_19 = l_Lean_MVarId_rewrite___lambda__11(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +return x_19; } } LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__12___boxed(lean_object** _args) { @@ -11471,13 +11684,122 @@ lean_dec(x_2); return x_19; } } -LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__14___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_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__14___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +lean_object* x_19 = _args[18]; +_start: +{ +lean_object* x_20; +x_20 = l_Lean_MVarId_rewrite___lambda__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19); +lean_dec(x_14); +return x_20; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__15___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +lean_object* x_19; +x_19 = l_Lean_MVarId_rewrite___lambda__15(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__16___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +lean_object* x_19; +x_19 = l_Lean_MVarId_rewrite___lambda__16(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_13); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__17___boxed(lean_object** _args) { +lean_object* x_1 = _args[0]; +lean_object* x_2 = _args[1]; +lean_object* x_3 = _args[2]; +lean_object* x_4 = _args[3]; +lean_object* x_5 = _args[4]; +lean_object* x_6 = _args[5]; +lean_object* x_7 = _args[6]; +lean_object* x_8 = _args[7]; +lean_object* x_9 = _args[8]; +lean_object* x_10 = _args[9]; +lean_object* x_11 = _args[10]; +lean_object* x_12 = _args[11]; +lean_object* x_13 = _args[12]; +lean_object* x_14 = _args[13]; +lean_object* x_15 = _args[14]; +lean_object* x_16 = _args[15]; +lean_object* x_17 = _args[16]; +lean_object* x_18 = _args[17]; +_start: +{ +lean_object* x_19; +x_19 = l_Lean_MVarId_rewrite___lambda__17(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18); +lean_dec(x_13); +lean_dec(x_2); +return x_19; +} +} +LEAN_EXPORT lean_object* l_Lean_MVarId_rewrite___lambda__18___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { _start: { uint8_t x_12; lean_object* x_13; x_12 = lean_unbox(x_4); lean_dec(x_4); -x_13 = l_Lean_MVarId_rewrite___lambda__14(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); +x_13 = l_Lean_MVarId_rewrite___lambda__18(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11); lean_dec(x_6); return x_13; } @@ -11498,6 +11820,7 @@ lean_object* initialize_Lean_Meta_KAbstract(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Check(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Util(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Apply(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_BinderNameHint(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Rewrite(uint8_t builtin, lean_object* w) { lean_object * res; @@ -11521,6 +11844,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Apply(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_BinderNameHint(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_MVarId_rewrite___lambda__2___closed__1 = _init_l_Lean_MVarId_rewrite___lambda__2___closed__1(); lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__2___closed__1); l_Lean_MVarId_rewrite___lambda__2___closed__2 = _init_l_Lean_MVarId_rewrite___lambda__2___closed__2(); @@ -11581,32 +11907,32 @@ l_Lean_MVarId_rewrite___lambda__3___closed__25 = _init_l_Lean_MVarId_rewrite___l lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__3___closed__25); l_Lean_MVarId_rewrite___lambda__3___closed__26 = _init_l_Lean_MVarId_rewrite___lambda__3___closed__26(); lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__3___closed__26); -l_Lean_MVarId_rewrite___lambda__4___closed__1 = _init_l_Lean_MVarId_rewrite___lambda__4___closed__1(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__4___closed__1); -l_Lean_MVarId_rewrite___lambda__4___closed__2 = _init_l_Lean_MVarId_rewrite___lambda__4___closed__2(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__4___closed__2); -l_Lean_MVarId_rewrite___lambda__14___closed__1 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__1(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__1); -l_Lean_MVarId_rewrite___lambda__14___closed__2 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__2(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__2); -l_Lean_MVarId_rewrite___lambda__14___closed__3 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__3(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__3); -l_Lean_MVarId_rewrite___lambda__14___closed__4 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__4(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__4); -l_Lean_MVarId_rewrite___lambda__14___closed__5 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__5(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__5); -l_Lean_MVarId_rewrite___lambda__14___closed__6 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__6(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__6); -l_Lean_MVarId_rewrite___lambda__14___closed__7 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__7(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__7); -l_Lean_MVarId_rewrite___lambda__14___closed__8 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__8(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__8); -l_Lean_MVarId_rewrite___lambda__14___closed__9 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__9(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__9); -l_Lean_MVarId_rewrite___lambda__14___closed__10 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__10(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__10); -l_Lean_MVarId_rewrite___lambda__14___closed__11 = _init_l_Lean_MVarId_rewrite___lambda__14___closed__11(); -lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__14___closed__11); +l_Lean_MVarId_rewrite___lambda__5___closed__1 = _init_l_Lean_MVarId_rewrite___lambda__5___closed__1(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__5___closed__1); +l_Lean_MVarId_rewrite___lambda__5___closed__2 = _init_l_Lean_MVarId_rewrite___lambda__5___closed__2(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__5___closed__2); +l_Lean_MVarId_rewrite___lambda__18___closed__1 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__1(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__1); +l_Lean_MVarId_rewrite___lambda__18___closed__2 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__2(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__2); +l_Lean_MVarId_rewrite___lambda__18___closed__3 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__3(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__3); +l_Lean_MVarId_rewrite___lambda__18___closed__4 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__4(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__4); +l_Lean_MVarId_rewrite___lambda__18___closed__5 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__5(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__5); +l_Lean_MVarId_rewrite___lambda__18___closed__6 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__6(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__6); +l_Lean_MVarId_rewrite___lambda__18___closed__7 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__7(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__7); +l_Lean_MVarId_rewrite___lambda__18___closed__8 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__8(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__8); +l_Lean_MVarId_rewrite___lambda__18___closed__9 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__9(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__9); +l_Lean_MVarId_rewrite___lambda__18___closed__10 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__10(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__10); +l_Lean_MVarId_rewrite___lambda__18___closed__11 = _init_l_Lean_MVarId_rewrite___lambda__18___closed__11(); +lean_mark_persistent(l_Lean_MVarId_rewrite___lambda__18___closed__11); l_Lean_MVarId_rewrite___closed__1 = _init_l_Lean_MVarId_rewrite___closed__1(); lean_mark_persistent(l_Lean_MVarId_rewrite___closed__1); l_Lean_MVarId_rewrite___closed__2 = _init_l_Lean_MVarId_rewrite___closed__2(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c index 7315142258..83d4375758 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Meta.Tactic.Simp.Rewrite -// Imports: Lean.Meta.ACLt Lean.Meta.Match.MatchEqsExt Lean.Meta.AppBuilder Lean.Meta.SynthInstance Lean.Meta.Tactic.Util Lean.Meta.Tactic.UnifyEq Lean.Meta.Tactic.Simp.Types Lean.Meta.Tactic.LinearArith.Simp Lean.Meta.Tactic.Simp.Simproc Lean.Meta.Tactic.Simp.Attr +// Imports: Lean.Meta.ACLt Lean.Meta.Match.MatchEqsExt Lean.Meta.AppBuilder Lean.Meta.SynthInstance Lean.Meta.Tactic.Util Lean.Meta.Tactic.UnifyEq Lean.Meta.Tactic.Simp.Types Lean.Meta.Tactic.LinearArith.Simp Lean.Meta.Tactic.Simp.Simproc Lean.Meta.Tactic.Simp.Attr Lean.Meta.BinderNameHint #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -13,7 +13,6 @@ #ifdef __cplusplus extern "C" { #endif -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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* l_Lean_Meta_Simp_mkCongrFun(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_mkSEvalMethods(lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_rewrite_x3f_rewriteUsingIndex_x3f___spec__3(lean_object*, lean_object*, uint8_t, 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*); @@ -103,7 +102,6 @@ static lean_object* l_Lean_Meta_Simp_dischargeRfl___lambda__2___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; lean_object* l_Lean_Expr_sort___override(lean_object*); lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_synthesizeArgs___spec__2___boxed(lean_object**); lean_object* l_Lean_PersistentArray_push___rarg(lean_object*, lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -118,13 +116,14 @@ extern uint8_t l_instInhabitedBool; lean_object* l_Lean_Meta_Simp_dandThen(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_Simp_sevalGround___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*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpMatchDiscrs_x3f___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8(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_Lean_Meta_Simp_simpMatch___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* l_Lean_replaceRef(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_synthesizeArgs___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_forallTelescope___at_Lean_Meta_Simp_dischargeRfl___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_DischargeResult_toCtorIdx___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___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___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_seval___closed__1; static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__8; @@ -171,10 +170,10 @@ LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Meta_Simp_discharge_x3 LEAN_EXPORT lean_object* l_Lean_getConstInfo___at_Lean_Meta_Simp_sevalGround___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__20; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_sevalGround___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*); -static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__5; static lean_object* l_Lean_Meta_Simp_preSEval___lambda__1___closed__1; lean_object* l_Lean_Meta_Simp_getSimprocs___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_Simp_discharge_x3f_x27___spec__3(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* l_Lean_Expr_resolveBinderNameHint(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Exception_toMessageData(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpMatchDiscrs_x3f___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_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_rewrite_x3f_inErasedSet___boxed(lean_object*, lean_object*); @@ -184,7 +183,6 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_rewrit LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_sevalGround___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_getSimpCongrTheorems___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Simp_simpMatchDiscrs_x3f___spec__1___lambda__2(lean_object*, uint8_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___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpArith___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_Simp_userPostSimprocs___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_Expr_appArg_x21(lean_object*); @@ -229,8 +227,9 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_rewrit static lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Meta_Simp_discharge_x3f_x27___spec__4___rarg___closed__3; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_Simp_simpGround___spec__1___lambda__2___boxed(lean_object**); LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Simp_sevalGround___spec__2(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_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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_object*, lean_object*); lean_object* l_Array_reverse___rarg(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__3; static lean_object* l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__5; LEAN_EXPORT uint8_t l_Lean_Meta_Simp_rewrite_x3f_inErasedSet(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewrite_x3f_diagnoseWhenNoIndex___closed__6; @@ -242,6 +241,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tact static lean_object* l_panic___at_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___spec__1___closed__1; static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_rewrite_x3f_rewriteNoIndex_x3f___spec__3___lambda__4___boxed(lean_object**); +uint8_t l_Lean_Expr_hasBinderNameHint(lean_object*); uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_dpostDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_expr_eqv(lean_object*, lean_object*); @@ -259,7 +259,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_ uint8_t lean_uint32_dec_le(uint32_t, uint32_t); lean_object* l_Lean_Core_instantiateValueLevelParams(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpMatchCore(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_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofSyntax(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_rewritePost___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_withTraceNode___at_Lean_Meta_Simp_discharge_x3f_x27___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -276,6 +276,7 @@ static lean_object* l_Lean_Meta_Simp_seval___closed__2; LEAN_EXPORT lean_object* l_Array_insertionSort_traverse___at_Lean_Meta_Simp_rewrite_x3f_rewriteUsingIndex_x3f___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_seval___closed__4; static lean_object* l_Lean_Meta_Simp_sevalGround___lambda__2___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_rewrite_x3f_rewriteNoIndex_x3f___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_rewrite_x3f_rewriteNoIndex_x3f___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpGround(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -309,6 +310,7 @@ extern lean_object* l_Lean_checkEmoji; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_sevalGround___spec__3___closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_postDefault___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_st_ref_get(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__5; static lean_object* l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at_Lean_Meta_Simp_tryTheoremWithExtraArgs_x3f___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_postDefault___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -354,11 +356,13 @@ lean_object* l_Lean_Meta_whnfD(lean_object*, lean_object*, lean_object*, lean_ob LEAN_EXPORT lean_object* l_Lean_Meta_Simp_mkSEvalMethods___boxed(lean_object*); static lean_object* l_Lean_Meta_Simp_dpostDefault___closed__1; static lean_object* l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; uint8_t l_Lean_BinderInfo_isInstImplicit(uint8_t); LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Meta_Simp_simpGround___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_mkDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Lean_Meta_tactic_skipAssignedInstances; lean_object* l_Lean_Meta_isMatcher___at_Lean_Meta_Simp_mkCongrSimp_x3f___spec__8(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_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__2; lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*); static lean_object* l_Lean_getConstInfo___at_Lean_Meta_Simp_sevalGround___spec__1___closed__1; lean_object* l_Lean_Meta_canUnfoldAtMatcher___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -409,7 +413,6 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_isAssignable___at___private_Lean_Meta_Tac static lean_object* l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__10; LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_Simp_simpGround___spec__1___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, double, double, 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_Simp_mkDefaultMethods___closed__3; -static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__1; LEAN_EXPORT lean_object* l_MonadExcept_ofExcept___at_Lean_Meta_Simp_discharge_x3f_x27___spec__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_Simp_discharge_x3f_x27___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_postSEval(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -441,6 +444,7 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_Meta_Simp_simpMatc static lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at_Lean_Meta_Simp_discharge_x3f_x27___spec__4___rarg___closed__2; double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); extern lean_object* l_Lean_crossEmoji; +static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_rewrite_x3f_diagnoseWhenNoIndex_unsafe__1___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__6; static lean_object* l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__1; @@ -488,12 +492,11 @@ lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withTraceNode___at_Lean_Meta_Simp_discharge_x3f_x27___spec__3___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_Result_addExtraArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_discharge_x3f_x27___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*); -static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__3; static lean_object* l_Lean_Meta_Simp_preSEval___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpArith___lambda__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_Simp_discharge_x3f_x27___lambda__3___closed__1; lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___closed__4; static lean_object* l_Lean_Meta_Simp_rewrite_x3f_rewriteUsingIndex_x3f___closed__3; lean_object* l_Lean_indentExpr(lean_object*); @@ -511,13 +514,11 @@ LEAN_EXPORT lean_object* l_panic___at___private_Lean_Meta_Tactic_Simp_Rewrite_0_ lean_object* l_StateRefT_x27_lift(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*); lean_object* l_Lean_Meta_Simp_andThen(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_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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 uint8_t l_Lean_Meta_Simp_isEqnThmHypothesis(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__2; static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_rewritePost___spec__1___closed__1; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_rewrite_x3f_diagnoseWhenNoIndex___spec__1(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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go(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___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__4; lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__14; LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Simp_sevalGround___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -543,7 +544,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_drewritePre___lambda__1___boxed(lean_o static lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_rewrite_x3f_diagnoseWhenNoIndex___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_sevalGround___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_EXPORT lean_object* l_Lean_Meta_Simp_sevalGround___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*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7(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___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7(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_mkEmptyEntriesArray(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_rewrite_x3f_diagnoseWhenNoIndex___closed__7; static lean_object* l_Lean_Meta_Simp_mkSEvalContext___closed__2; @@ -556,7 +558,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_getResetTraces___at LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpMatchDiscrs_x3f(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_getFunInfoNArgs(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_Simp_sevalGround___spec__3___closed__3; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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*); static lean_object* l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_mkMethods(lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_dischargeGround(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -576,7 +578,7 @@ static lean_object* l_Lean_getConstInfo___at_Lean_Meta_Simp_sevalGround___spec__ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f_go_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpMatch___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_Lean_Meta_Simp_simpUsingDecide___lambda__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_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___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___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___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_Simp_preDefault(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___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__6___closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_rewrite_x3f_diagnoseWhenNoIndex___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -628,6 +630,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Simp_mkMethods___boxed(lean_object*, lean_o static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__1; lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_mkDefaultMethods(lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_seval(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_mkSEvalMethods___rarg___closed__1; lean_object* l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -646,7 +649,6 @@ LEAN_EXPORT lean_object* l_List_anyM___at___private_Lean_Meta_Tactic_Simp_Rewrit static double l_Lean_withTraceNode___at_Lean_Meta_Simp_discharge_x3f_x27___spec__3___lambda__2___closed__1; static lean_object* l_Lean_Meta_Simp_dischargeRfl___lambda__3___closed__2; LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Lean_Meta_Simp_rewrite_x3f_rewriteNoIndex_x3f___spec__3___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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Meta_Simp_synthesizeArgs_synthesizeInstance___closed__2; uint8_t lean_nat_dec_le(lean_object*, lean_object*); @@ -686,7 +688,7 @@ static lean_object* l_Lean_Meta_Simp_dischargeRfl___closed__1; lean_object* l_Lean_MessageData_ofName(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Simp_simpMatch___lambda__3(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_Repr_0__Nat_reprFast(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_hasAssignableLevelMVar___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__4___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_withTraceNode___at_Lean_Meta_Simp_simpGround___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore(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*); @@ -699,6 +701,7 @@ lean_object* l_ReaderT_instMonad___rarg(lean_object*); static lean_object* l_Lean_Meta_Simp_discharge_x3f_x27___lambda__1___closed__7; static lean_object* l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1___closed__6; static lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Util_Trace_0__Lean_addTraceNode___at_Lean_Meta_Simp_discharge_x3f_x27___spec__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_object*); static lean_object* l_Lean_Meta_Simp_simpUsingDecide___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Simp_rewrite_x3f_diagnoseWhenNoIndex___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -11113,285 +11116,133 @@ lean_ctor_set(x_11, 1, x_9); return x_11; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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, lean_object* x_12) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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_13; -x_13 = l_Lean_Meta_Simp_recordSimpTheorem(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12); -if (lean_obj_tag(x_13) == 0) +lean_object* x_12; +x_12 = l_Lean_Meta_Simp_recordSimpTheorem(x_1, 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_14; -x_14 = !lean_is_exclusive(x_13); -if (x_14 == 0) +uint8_t x_13; +x_13 = !lean_is_exclusive(x_12); +if (x_13 == 0) { -lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_13, 0); -lean_dec(x_15); -x_16 = 1; -x_17 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_17, 0, x_2); -lean_ctor_set(x_17, 1, x_3); -lean_ctor_set_uint8(x_17, sizeof(void*)*2, x_16); -x_18 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_18, 0, x_17); -lean_ctor_set(x_13, 0, x_18); -return x_13; +lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_12, 0); +lean_dec(x_14); +x_15 = 1; +x_16 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_16, 0, x_3); +lean_ctor_set(x_16, 1, x_2); +lean_ctor_set_uint8(x_16, sizeof(void*)*2, x_15); +x_17 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_17, 0, x_16); +lean_ctor_set(x_12, 0, x_17); +return x_12; } else { -lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_19 = lean_ctor_get(x_13, 1); -lean_inc(x_19); -lean_dec(x_13); -x_20 = 1; -x_21 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_21, 0, x_2); -lean_ctor_set(x_21, 1, x_3); -lean_ctor_set_uint8(x_21, sizeof(void*)*2, x_20); -x_22 = lean_alloc_ctor(1, 1, 0); +lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_18 = lean_ctor_get(x_12, 1); +lean_inc(x_18); +lean_dec(x_12); +x_19 = 1; +x_20 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_20, 0, x_3); +lean_ctor_set(x_20, 1, x_2); +lean_ctor_set_uint8(x_20, sizeof(void*)*2, x_19); +x_21 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_21, 0, x_20); +x_22 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_22, 0, x_21); -x_23 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_23, 0, x_22); -lean_ctor_set(x_23, 1, x_19); -return x_23; +lean_ctor_set(x_22, 1, x_18); +return x_22; } } else { -uint8_t x_24; +uint8_t x_23; lean_dec(x_3); lean_dec(x_2); -x_24 = !lean_is_exclusive(x_13); -if (x_24 == 0) +x_23 = !lean_is_exclusive(x_12); +if (x_23 == 0) { -return x_13; +return x_12; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_13, 0); -x_26 = lean_ctor_get(x_13, 1); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_12, 0); +x_25 = lean_ctor_get(x_12, 1); lean_inc(x_25); -lean_dec(x_13); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; +lean_inc(x_24); +lean_dec(x_12); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__1() { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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_object* x_12, lean_object* x_13) { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("rewrite", 7, 7); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2() { -_start: +uint8_t x_14; +x_14 = l_Lean_Expr_hasBinderNameHint(x_3); +if (x_14 == 0) { -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_Simp_discharge_x3f_x27___closed__1; -x_2 = l_Lean_Meta_Simp_discharge_x3f_x27___closed__2; -x_3 = l_Lean_Meta_Simp_discharge_x3f_x27___closed__3; -x_4 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__1; -x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); -return x_5; +lean_object* x_15; +x_15 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_4, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); +return x_15; } -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__3() { -_start: +else { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("\n==>", 4, 4); -return x_1; -} -} -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__4() { -_start: +lean_object* x_16; +lean_inc(x_12); +lean_inc(x_11); +x_16 = l_Lean_Expr_resolveBinderNameHint(x_4, x_11, x_12, x_13); +if (lean_obj_tag(x_16) == 0) { -lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__3; -x_2 = l_Lean_stringToMessageData(x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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_object* x_12, lean_object* x_13, lean_object* x_14) { -_start: -{ -lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -x_15 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2; -x_16 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); +lean_object* x_17; lean_object* x_18; lean_object* x_19; x_17 = lean_ctor_get(x_16, 0); lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_dec(x_5); -lean_dec(x_4); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); +x_18 = lean_ctor_get(x_16, 1); +lean_inc(x_18); lean_dec(x_16); -x_20 = lean_box(0); -x_21 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_3, x_20, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_19); -return x_21; +x_19 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_17, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_18); +return x_19; } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_16); -if (x_22 == 0) +uint8_t x_20; +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_2); +lean_dec(x_1); +x_20 = !lean_is_exclusive(x_16); +if (x_20 == 0) { -lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; -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_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1(x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_23); -x_26 = !lean_is_exclusive(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; -x_27 = lean_ctor_get(x_25, 0); -x_28 = lean_ctor_get(x_25, 1); -x_29 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; -lean_ctor_set_tag(x_25, 7); -lean_ctor_set(x_25, 1, x_27); -lean_ctor_set(x_25, 0, x_29); -x_30 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1___closed__2; -lean_ctor_set_tag(x_16, 7); -lean_ctor_set(x_16, 1, x_30); -lean_ctor_set(x_16, 0, x_25); -x_31 = l_Lean_indentExpr(x_5); -x_32 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_32, 0, x_16); -lean_ctor_set(x_32, 1, x_31); -x_33 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__4; -x_34 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_34, 0, x_32); -lean_ctor_set(x_34, 1, x_33); -lean_inc(x_2); -x_35 = l_Lean_indentExpr(x_2); -x_36 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -x_37 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_37, 0, x_36); -lean_ctor_set(x_37, 1, x_29); -x_38 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_15, x_37, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_28); -x_39 = lean_ctor_get(x_38, 0); -lean_inc(x_39); -x_40 = lean_ctor_get(x_38, 1); -lean_inc(x_40); -lean_dec(x_38); -x_41 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_3, x_39, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_40); -lean_dec(x_39); -return x_41; +return x_16; } else { -lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 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; -x_42 = lean_ctor_get(x_25, 0); -x_43 = lean_ctor_get(x_25, 1); -lean_inc(x_43); -lean_inc(x_42); -lean_dec(x_25); -x_44 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; -x_45 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_45, 0, x_44); -lean_ctor_set(x_45, 1, x_42); -x_46 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1___closed__2; -lean_ctor_set_tag(x_16, 7); -lean_ctor_set(x_16, 1, x_46); -lean_ctor_set(x_16, 0, x_45); -x_47 = l_Lean_indentExpr(x_5); -x_48 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_48, 0, x_16); -lean_ctor_set(x_48, 1, x_47); -x_49 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__4; -x_50 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_50, 0, x_48); -lean_ctor_set(x_50, 1, x_49); -lean_inc(x_2); -x_51 = l_Lean_indentExpr(x_2); -x_52 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_52, 0, x_50); -lean_ctor_set(x_52, 1, x_51); -x_53 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_53, 0, x_52); -lean_ctor_set(x_53, 1, x_44); -x_54 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_15, x_53, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_43); -x_55 = lean_ctor_get(x_54, 0); -lean_inc(x_55); -x_56 = lean_ctor_get(x_54, 1); -lean_inc(x_56); -lean_dec(x_54); -x_57 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_3, x_55, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_56); -lean_dec(x_55); -return x_57; -} -} -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; -x_58 = lean_ctor_get(x_16, 1); -lean_inc(x_58); +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_16, 0); +x_22 = lean_ctor_get(x_16, 1); +lean_inc(x_22); +lean_inc(x_21); lean_dec(x_16); -x_59 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1(x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_58); -x_60 = lean_ctor_get(x_59, 0); -lean_inc(x_60); -x_61 = lean_ctor_get(x_59, 1); -lean_inc(x_61); -if (lean_is_exclusive(x_59)) { - lean_ctor_release(x_59, 0); - lean_ctor_release(x_59, 1); - x_62 = x_59; -} else { - lean_dec_ref(x_59); - x_62 = lean_box(0); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; } -x_63 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; -if (lean_is_scalar(x_62)) { - x_64 = lean_alloc_ctor(7, 2, 0); -} else { - x_64 = x_62; - lean_ctor_set_tag(x_64, 7); -} -lean_ctor_set(x_64, 0, x_63); -lean_ctor_set(x_64, 1, x_60); -x_65 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1___closed__2; -x_66 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_66, 0, x_64); -lean_ctor_set(x_66, 1, x_65); -x_67 = l_Lean_indentExpr(x_5); -x_68 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_68, 0, x_66); -lean_ctor_set(x_68, 1, x_67); -x_69 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__4; -x_70 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_70, 0, x_68); -lean_ctor_set(x_70, 1, x_69); -lean_inc(x_2); -x_71 = l_Lean_indentExpr(x_2); -x_72 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_72, 0, x_70); -lean_ctor_set(x_72, 1, x_71); -x_73 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_63); -x_74 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_15, x_73, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_61); -x_75 = lean_ctor_get(x_74, 0); -lean_inc(x_75); -x_76 = lean_ctor_get(x_74, 1); -lean_inc(x_76); -lean_dec(x_74); -x_77 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(x_1, x_2, x_3, x_75, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_76); -lean_dec(x_75); -return x_77; } } } @@ -11400,28 +11251,242 @@ static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__1___boxed), 9, 0); +x_1 = lean_mk_string_unchecked("rewrite", 7, 7); return x_1; } } static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__2() { _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_Simp_discharge_x3f_x27___closed__1; +x_2 = l_Lean_Meta_Simp_discharge_x3f_x27___closed__2; +x_3 = l_Lean_Meta_Simp_discharge_x3f_x27___closed__3; +x_4 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; +x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4); +return x_5; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("\n==>", 4, 4); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__4() { +_start: +{ +lean_object* x_1; lean_object* x_2; +x_1 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__3; +x_2 = l_Lean_stringToMessageData(x_1); +return x_2; +} +} +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +_start: +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_16 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__2; +x_17 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_16, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_unbox(x_18); +lean_dec(x_18); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; lean_object* x_22; +lean_dec(x_6); +lean_dec(x_5); +x_20 = lean_ctor_get(x_17, 1); +lean_inc(x_20); +lean_dec(x_17); +x_21 = lean_box(0); +x_22 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(x_1, x_2, x_3, x_4, x_21, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_20); +return x_22; +} +else +{ +uint8_t x_23; +x_23 = !lean_is_exclusive(x_17); +if (x_23 == 0) +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; +x_24 = lean_ctor_get(x_17, 1); +x_25 = lean_ctor_get(x_17, 0); +lean_dec(x_25); +x_26 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1(x_5, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_24); +x_27 = !lean_is_exclusive(x_26); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; +x_28 = lean_ctor_get(x_26, 0); +x_29 = lean_ctor_get(x_26, 1); +x_30 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; +lean_ctor_set_tag(x_26, 7); +lean_ctor_set(x_26, 1, x_28); +lean_ctor_set(x_26, 0, x_30); +x_31 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1___closed__2; +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_31); +lean_ctor_set(x_17, 0, x_26); +x_32 = l_Lean_indentExpr(x_6); +x_33 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_33, 0, x_17); +lean_ctor_set(x_33, 1, x_32); +x_34 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__4; +x_35 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_35, 0, x_33); +lean_ctor_set(x_35, 1, x_34); +lean_inc(x_4); +x_36 = l_Lean_indentExpr(x_4); +x_37 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_37, 0, x_35); +lean_ctor_set(x_37, 1, x_36); +x_38 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_38, 0, x_37); +lean_ctor_set(x_38, 1, x_30); +x_39 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_16, x_38, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_29); +x_40 = lean_ctor_get(x_39, 0); +lean_inc(x_40); +x_41 = lean_ctor_get(x_39, 1); +lean_inc(x_41); +lean_dec(x_39); +x_42 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(x_1, x_2, x_3, x_4, x_40, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_41); +lean_dec(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; 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_43 = lean_ctor_get(x_26, 0); +x_44 = lean_ctor_get(x_26, 1); +lean_inc(x_44); +lean_inc(x_43); +lean_dec(x_26); +x_45 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; +x_46 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_46, 0, x_45); +lean_ctor_set(x_46, 1, x_43); +x_47 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1___closed__2; +lean_ctor_set_tag(x_17, 7); +lean_ctor_set(x_17, 1, x_47); +lean_ctor_set(x_17, 0, x_46); +x_48 = l_Lean_indentExpr(x_6); +x_49 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_49, 0, x_17); +lean_ctor_set(x_49, 1, x_48); +x_50 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__4; +x_51 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +lean_inc(x_4); +x_52 = l_Lean_indentExpr(x_4); +x_53 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_53, 0, x_51); +lean_ctor_set(x_53, 1, x_52); +x_54 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_54, 0, x_53); +lean_ctor_set(x_54, 1, x_45); +x_55 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_16, x_54, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_44); +x_56 = lean_ctor_get(x_55, 0); +lean_inc(x_56); +x_57 = lean_ctor_get(x_55, 1); +lean_inc(x_57); +lean_dec(x_55); +x_58 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(x_1, x_2, x_3, x_4, x_56, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_57); +lean_dec(x_56); +return x_58; +} +} +else +{ +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_59 = lean_ctor_get(x_17, 1); +lean_inc(x_59); +lean_dec(x_17); +x_60 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1(x_5, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_59); +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_63 = x_60; +} else { + lean_dec_ref(x_60); + x_63 = lean_box(0); +} +x_64 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; +if (lean_is_scalar(x_63)) { + x_65 = lean_alloc_ctor(7, 2, 0); +} else { + x_65 = x_63; + lean_ctor_set_tag(x_65, 7); +} +lean_ctor_set(x_65, 0, x_64); +lean_ctor_set(x_65, 1, x_61); +x_66 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1___closed__2; +x_67 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_67, 0, x_65); +lean_ctor_set(x_67, 1, x_66); +x_68 = l_Lean_indentExpr(x_6); +x_69 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_69, 0, x_67); +lean_ctor_set(x_69, 1, x_68); +x_70 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__4; +x_71 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_71, 0, x_69); +lean_ctor_set(x_71, 1, x_70); +lean_inc(x_4); +x_72 = l_Lean_indentExpr(x_4); +x_73 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_73, 0, x_71); +lean_ctor_set(x_73, 1, x_72); +x_74 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_74, 0, x_73); +lean_ctor_set(x_74, 1, x_64); +x_75 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_16, x_74, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_62); +x_76 = lean_ctor_get(x_75, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_75, 1); +lean_inc(x_77); +lean_dec(x_75); +x_78 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(x_1, x_2, x_3, x_4, x_76, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_77); +lean_dec(x_76); +return x_78; +} +} +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__1___boxed), 9, 0); +return x_1; +} +} +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__2() { +_start: +{ lean_object* x_1; x_1 = lean_mk_string_unchecked(", perm rejected ", 16, 16); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__3() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__2; +x_1 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__2; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__4() { _start: { lean_object* x_1; @@ -11429,287 +11494,288 @@ x_1 = lean_mk_string_unchecked(" ==> ", 5, 5); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__5() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__5() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__4; +x_1 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__4; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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_object* x_12, lean_object* x_13, lean_object* x_14) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -uint8_t x_15; -x_15 = lean_ctor_get_uint8(x_4, sizeof(void*)*5 + 1); -if (x_15 == 0) +uint8_t x_16; +x_16 = lean_ctor_get_uint8(x_5, sizeof(void*)*5 + 1); +if (x_16 == 0) { -lean_object* x_16; lean_object* x_17; -x_16 = lean_box(0); -x_17 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_16, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14); -return x_17; +lean_object* x_17; lean_object* x_18; +x_17 = lean_box(0); +x_18 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_17, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +return x_18; } else { -uint8_t x_18; lean_object* x_19; -x_18 = 1; +uint8_t x_19; lean_object* x_20; +x_19 = 1; +lean_inc(x_14); lean_inc(x_13); lean_inc(x_12); lean_inc(x_11); -lean_inc(x_10); -lean_inc(x_5); -lean_inc(x_2); -x_19 = l_Lean_Meta_ACLt_main_lt(x_18, x_2, x_5, x_10, x_11, x_12, x_13, x_14); -if (lean_obj_tag(x_19) == 0) +lean_inc(x_6); +lean_inc(x_4); +x_20 = l_Lean_Meta_ACLt_main_lt(x_19, x_4, x_6, x_11, x_12, x_13, x_14, x_15); +if (lean_obj_tag(x_20) == 0) { -lean_object* x_20; uint8_t x_21; -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_unbox(x_20); -lean_dec(x_20); -if (x_21 == 0) +lean_object* x_21; uint8_t x_22; +x_21 = lean_ctor_get(x_20, 0); +lean_inc(x_21); +x_22 = lean_unbox(x_21); +lean_dec(x_21); +if (x_22 == 0) { -lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; -lean_dec(x_3); +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +lean_dec(x_2); lean_dec(x_1); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec(x_19); -x_23 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2; -x_24 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_23, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_22); -x_25 = !lean_is_exclusive(x_24); -if (x_25 == 0) +x_23 = lean_ctor_get(x_20, 1); +lean_inc(x_23); +lean_dec(x_20); +x_24 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__2; +x_25 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_24, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_23); +x_26 = !lean_is_exclusive(x_25); +if (x_26 == 0) { -lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_26 = lean_ctor_get(x_24, 0); -x_27 = lean_ctor_get(x_24, 1); -x_28 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; -x_29 = lean_unbox(x_26); -lean_dec(x_26); -if (x_29 == 0) +lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; +x_27 = lean_ctor_get(x_25, 0); +x_28 = lean_ctor_get(x_25, 1); +x_29 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; +x_30 = lean_unbox(x_27); +lean_dec(x_27); +if (x_30 == 0) { -lean_object* x_30; lean_object* x_31; -lean_free_object(x_24); +lean_object* x_31; lean_object* x_32; +lean_free_object(x_25); +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); -x_30 = lean_box(0); -x_31 = lean_apply_9(x_28, x_30, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_27); -return x_31; +x_31 = lean_box(0); +x_32 = lean_apply_9(x_29, x_31, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_28); +return x_32; } else { -lean_object* x_32; uint8_t x_33; -x_32 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1(x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_27); -x_33 = !lean_is_exclusive(x_32); -if (x_33 == 0) +lean_object* x_33; uint8_t x_34; +x_33 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1(x_5, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_28); +x_34 = !lean_is_exclusive(x_33); +if (x_34 == 0) { -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; -x_34 = lean_ctor_get(x_32, 0); -x_35 = lean_ctor_get(x_32, 1); -x_36 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; -lean_ctor_set_tag(x_32, 7); -lean_ctor_set(x_32, 1, x_34); -lean_ctor_set(x_32, 0, x_36); -x_37 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__3; -lean_ctor_set_tag(x_24, 7); -lean_ctor_set(x_24, 1, x_37); -lean_ctor_set(x_24, 0, x_32); -x_38 = l_Lean_MessageData_ofExpr(x_5); -x_39 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_39, 0, x_24); -lean_ctor_set(x_39, 1, x_38); -x_40 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__5; -x_41 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_41, 0, x_39); -lean_ctor_set(x_41, 1, x_40); -x_42 = l_Lean_MessageData_ofExpr(x_2); -x_43 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_43, 0, x_41); -lean_ctor_set(x_43, 1, x_42); +lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; +x_35 = lean_ctor_get(x_33, 0); +x_36 = lean_ctor_get(x_33, 1); +x_37 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; +lean_ctor_set_tag(x_33, 7); +lean_ctor_set(x_33, 1, x_35); +lean_ctor_set(x_33, 0, x_37); +x_38 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__3; +lean_ctor_set_tag(x_25, 7); +lean_ctor_set(x_25, 1, x_38); +lean_ctor_set(x_25, 0, x_33); +x_39 = l_Lean_MessageData_ofExpr(x_6); +x_40 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_40, 0, x_25); +lean_ctor_set(x_40, 1, x_39); +x_41 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__5; +x_42 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_42, 0, x_40); +lean_ctor_set(x_42, 1, x_41); +x_43 = l_Lean_MessageData_ofExpr(x_4); x_44 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_44, 0, x_43); -lean_ctor_set(x_44, 1, x_36); -x_45 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_23, x_44, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_35); -x_46 = lean_ctor_get(x_45, 0); -lean_inc(x_46); -x_47 = lean_ctor_get(x_45, 1); +lean_ctor_set(x_44, 0, x_42); +lean_ctor_set(x_44, 1, x_43); +x_45 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_45, 0, x_44); +lean_ctor_set(x_45, 1, x_37); +x_46 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_24, x_45, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_36); +x_47 = lean_ctor_get(x_46, 0); lean_inc(x_47); -lean_dec(x_45); -x_48 = lean_apply_9(x_28, x_46, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_47); -return x_48; +x_48 = lean_ctor_get(x_46, 1); +lean_inc(x_48); +lean_dec(x_46); +x_49 = lean_apply_9(x_29, x_47, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_48); +return x_49; } 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_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; -x_49 = lean_ctor_get(x_32, 0); -x_50 = lean_ctor_get(x_32, 1); +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; +x_50 = lean_ctor_get(x_33, 0); +x_51 = lean_ctor_get(x_33, 1); +lean_inc(x_51); lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_32); -x_51 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; -x_52 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_49); -x_53 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__3; -lean_ctor_set_tag(x_24, 7); -lean_ctor_set(x_24, 1, x_53); -lean_ctor_set(x_24, 0, x_52); -x_54 = l_Lean_MessageData_ofExpr(x_5); -x_55 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_55, 0, x_24); -lean_ctor_set(x_55, 1, x_54); -x_56 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__5; -x_57 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set(x_57, 1, x_56); -x_58 = l_Lean_MessageData_ofExpr(x_2); -x_59 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); +lean_dec(x_33); +x_52 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; +x_53 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_50); +x_54 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__3; +lean_ctor_set_tag(x_25, 7); +lean_ctor_set(x_25, 1, x_54); +lean_ctor_set(x_25, 0, x_53); +x_55 = l_Lean_MessageData_ofExpr(x_6); +x_56 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_56, 0, x_25); +lean_ctor_set(x_56, 1, x_55); +x_57 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__5; +x_58 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_58, 0, x_56); +lean_ctor_set(x_58, 1, x_57); +x_59 = l_Lean_MessageData_ofExpr(x_4); x_60 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_60, 0, x_59); -lean_ctor_set(x_60, 1, x_51); -x_61 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_23, x_60, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_50); -x_62 = lean_ctor_get(x_61, 0); -lean_inc(x_62); -x_63 = lean_ctor_get(x_61, 1); +lean_ctor_set(x_60, 0, x_58); +lean_ctor_set(x_60, 1, x_59); +x_61 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_61, 0, x_60); +lean_ctor_set(x_61, 1, x_52); +x_62 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_24, x_61, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_51); +x_63 = lean_ctor_get(x_62, 0); lean_inc(x_63); -lean_dec(x_61); -x_64 = lean_apply_9(x_28, x_62, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_63); -return x_64; +x_64 = lean_ctor_get(x_62, 1); +lean_inc(x_64); +lean_dec(x_62); +x_65 = lean_apply_9(x_29, x_63, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_64); +return x_65; } } } else { -lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; -x_65 = lean_ctor_get(x_24, 0); -x_66 = lean_ctor_get(x_24, 1); +lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; +x_66 = lean_ctor_get(x_25, 0); +x_67 = lean_ctor_get(x_25, 1); +lean_inc(x_67); lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_24); -x_67 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; -x_68 = lean_unbox(x_65); -lean_dec(x_65); -if (x_68 == 0) +lean_dec(x_25); +x_68 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; +x_69 = lean_unbox(x_66); +lean_dec(x_66); +if (x_69 == 0) { -lean_object* x_69; lean_object* x_70; +lean_object* x_70; lean_object* x_71; +lean_dec(x_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_2); -x_69 = lean_box(0); -x_70 = lean_apply_9(x_67, x_69, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_66); -return x_70; +x_70 = lean_box(0); +x_71 = lean_apply_9(x_68, x_70, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_67); +return x_71; } else { -lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; 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; -x_71 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1(x_4, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_66); -x_72 = lean_ctor_get(x_71, 0); -lean_inc(x_72); -x_73 = lean_ctor_get(x_71, 1); +lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; +x_72 = l_Lean_Meta_ppSimpTheorem___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__1(x_5, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_67); +x_73 = lean_ctor_get(x_72, 0); lean_inc(x_73); -if (lean_is_exclusive(x_71)) { - lean_ctor_release(x_71, 0); - lean_ctor_release(x_71, 1); - x_74 = x_71; +x_74 = lean_ctor_get(x_72, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_72)) { + lean_ctor_release(x_72, 0); + lean_ctor_release(x_72, 1); + x_75 = x_72; } else { - lean_dec_ref(x_71); - x_74 = lean_box(0); + lean_dec_ref(x_72); + x_75 = lean_box(0); } -x_75 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; -if (lean_is_scalar(x_74)) { - x_76 = lean_alloc_ctor(7, 2, 0); +x_76 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__4; +if (lean_is_scalar(x_75)) { + x_77 = lean_alloc_ctor(7, 2, 0); } else { - x_76 = x_74; - lean_ctor_set_tag(x_76, 7); + x_77 = x_75; + lean_ctor_set_tag(x_77, 7); } -lean_ctor_set(x_76, 0, x_75); -lean_ctor_set(x_76, 1, x_72); -x_77 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__3; -x_78 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_78, 0, x_76); -lean_ctor_set(x_78, 1, x_77); -x_79 = l_Lean_MessageData_ofExpr(x_5); -x_80 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_80, 0, x_78); -lean_ctor_set(x_80, 1, x_79); -x_81 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__5; -x_82 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set(x_82, 1, x_81); -x_83 = l_Lean_MessageData_ofExpr(x_2); -x_84 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_84, 0, x_82); -lean_ctor_set(x_84, 1, x_83); +lean_ctor_set(x_77, 0, x_76); +lean_ctor_set(x_77, 1, x_73); +x_78 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__3; +x_79 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_79, 0, x_77); +lean_ctor_set(x_79, 1, x_78); +x_80 = l_Lean_MessageData_ofExpr(x_6); +x_81 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_81, 0, x_79); +lean_ctor_set(x_81, 1, x_80); +x_82 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__5; +x_83 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_83, 0, x_81); +lean_ctor_set(x_83, 1, x_82); +x_84 = l_Lean_MessageData_ofExpr(x_4); x_85 = lean_alloc_ctor(7, 2, 0); -lean_ctor_set(x_85, 0, x_84); -lean_ctor_set(x_85, 1, x_75); -x_86 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_23, x_85, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_73); -x_87 = lean_ctor_get(x_86, 0); -lean_inc(x_87); -x_88 = lean_ctor_get(x_86, 1); +lean_ctor_set(x_85, 0, x_83); +lean_ctor_set(x_85, 1, x_84); +x_86 = lean_alloc_ctor(7, 2, 0); +lean_ctor_set(x_86, 0, x_85); +lean_ctor_set(x_86, 1, x_76); +x_87 = l_Lean_addTrace___at_Lean_Meta_Simp_congrArgs___spec__2(x_24, x_86, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_74); +x_88 = lean_ctor_get(x_87, 0); lean_inc(x_88); -lean_dec(x_86); -x_89 = lean_apply_9(x_67, x_87, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_88); -return x_89; +x_89 = lean_ctor_get(x_87, 1); +lean_inc(x_89); +lean_dec(x_87); +x_90 = lean_apply_9(x_68, x_88, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_89); +return x_90; } } } else { -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_19, 1); -lean_inc(x_90); -lean_dec(x_19); -x_91 = lean_box(0); -x_92 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(x_1, x_2, x_3, x_4, x_5, x_91, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_90); -return x_92; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +x_91 = lean_ctor_get(x_20, 1); +lean_inc(x_91); +lean_dec(x_20); +x_92 = lean_box(0); +x_93 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_92, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_91); +return x_93; } } else { -uint8_t x_93; +uint8_t x_94; +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_6); lean_dec(x_5); lean_dec(x_4); -lean_dec(x_3); lean_dec(x_2); lean_dec(x_1); -x_93 = !lean_is_exclusive(x_19); -if (x_93 == 0) +x_94 = !lean_is_exclusive(x_20); +if (x_94 == 0) { -return x_19; +return x_20; } else { -lean_object* x_94; lean_object* x_95; lean_object* x_96; -x_94 = lean_ctor_get(x_19, 0); -x_95 = lean_ctor_get(x_19, 1); +lean_object* x_95; lean_object* x_96; lean_object* x_97; +x_95 = lean_ctor_get(x_20, 0); +x_96 = lean_ctor_get(x_20, 1); +lean_inc(x_96); lean_inc(x_95); -lean_inc(x_94); -lean_dec(x_19); -x_96 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_96, 0, x_94); -lean_ctor_set(x_96, 1, x_95); -return x_96; +lean_dec(x_20); +x_97 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_97, 0, x_95); +lean_ctor_set(x_97, 1, x_96); +return x_97; } } } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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, lean_object* x_12, lean_object* x_13) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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, 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; uint8_t x_19; +lean_inc(x_1); x_14 = l_Lean_instantiateMVars___at_Lean_Meta_Simp_synthesizeArgs___spec__1(x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13); x_15 = lean_ctor_get(x_14, 0); lean_inc(x_15); @@ -11733,7 +11799,8 @@ if (x_22 == 0) lean_object* x_23; lean_object* x_24; lean_free_object(x_18); x_23 = lean_box(0); -x_24 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4(x_3, x_17, x_5, x_4, x_2, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); +x_24 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5(x_3, x_5, x_1, x_17, x_4, x_2, x_23, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_21); +lean_dec(x_1); return x_24; } else @@ -11751,6 +11818,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); x_25 = lean_box(0); lean_ctor_set(x_18, 0, x_25); return x_18; @@ -11770,7 +11838,8 @@ if (x_28 == 0) { lean_object* x_29; lean_object* x_30; x_29 = lean_box(0); -x_30 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4(x_3, x_17, x_5, x_4, x_2, x_29, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_27); +x_30 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5(x_3, x_5, x_1, x_17, x_4, x_2, x_29, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_27); +lean_dec(x_1); return x_30; } else @@ -11788,6 +11857,7 @@ lean_dec(x_5); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); +lean_dec(x_1); x_31 = lean_box(0); x_32 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_32, 0, x_31); @@ -11797,7 +11867,7 @@ return x_32; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, 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; @@ -11807,7 +11877,7 @@ x_13 = lean_apply_9(x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11); return x_13; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__1() { _start: { lean_object* x_1; @@ -11815,16 +11885,16 @@ x_1 = lean_mk_string_unchecked(", has unassigned metavariables after unification return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__1; +x_1 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__1; x_2 = l_Lean_stringToMessageData(x_1); return x_2; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; lean_object* x_17; uint8_t x_18; @@ -11840,7 +11910,7 @@ x_19 = lean_ctor_get(x_16, 1); lean_inc(x_19); lean_dec(x_16); lean_inc(x_1); -x_20 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5), 13, 4); +x_20 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__6), 13, 4); lean_closure_set(x_20, 0, x_2); lean_closure_set(x_20, 1, x_3); lean_closure_set(x_20, 2, x_4); @@ -11875,7 +11945,7 @@ x_28 = lean_ctor_get(x_25, 1); lean_inc(x_28); lean_dec(x_25); x_29 = lean_box(0); -x_30 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__6(x_23, x_20, x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_28); +x_30 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7(x_23, x_20, x_29, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_28); return x_30; } else @@ -11886,7 +11956,7 @@ lean_dec(x_20); x_31 = lean_ctor_get(x_25, 1); lean_inc(x_31); lean_dec(x_25); -x_32 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2; +x_32 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__2; x_33 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_32, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_31); x_34 = !lean_is_exclusive(x_33); if (x_34 == 0) @@ -11894,7 +11964,7 @@ if (x_34 == 0) lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; x_35 = lean_ctor_get(x_33, 0); x_36 = lean_ctor_get(x_33, 1); -x_37 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; +x_37 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; x_38 = lean_unbox(x_35); lean_dec(x_35); if (x_38 == 0) @@ -11920,7 +11990,7 @@ x_45 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___cl lean_ctor_set_tag(x_41, 7); lean_ctor_set(x_41, 1, x_43); lean_ctor_set(x_41, 0, x_45); -x_46 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__2; +x_46 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__2; lean_ctor_set_tag(x_33, 7); lean_ctor_set(x_33, 1, x_46); lean_ctor_set(x_33, 0, x_41); @@ -11945,7 +12015,7 @@ x_53 = l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___cl x_54 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_54, 0, x_53); lean_ctor_set(x_54, 1, x_51); -x_55 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__2; +x_55 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__2; lean_ctor_set_tag(x_33, 7); lean_ctor_set(x_33, 1, x_55); lean_ctor_set(x_33, 0, x_54); @@ -11968,7 +12038,7 @@ x_61 = lean_ctor_get(x_33, 1); lean_inc(x_61); lean_inc(x_60); lean_dec(x_33); -x_62 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; +x_62 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; x_63 = lean_unbox(x_60); lean_dec(x_60); if (x_63 == 0) @@ -12004,7 +12074,7 @@ if (lean_is_scalar(x_69)) { } lean_ctor_set(x_71, 0, x_70); lean_ctor_set(x_71, 1, x_67); -x_72 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__2; +x_72 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__2; x_73 = lean_alloc_ctor(7, 2, 0); lean_ctor_set(x_73, 0, x_71); lean_ctor_set(x_73, 1, x_72); @@ -12061,7 +12131,7 @@ x_82 = lean_ctor_get(x_16, 1); lean_inc(x_82); lean_dec(x_16); x_83 = lean_box(0); -x_84 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5(x_2, x_3, x_4, x_1, x_83, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_82); +x_84 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__6(x_2, x_3, x_4, x_1, x_83, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_82); return x_84; } } @@ -12179,7 +12249,7 @@ lean_dec(x_3); x_32 = lean_ctor_get(x_29, 1); lean_inc(x_32); lean_dec(x_29); -x_33 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; +x_33 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; x_34 = l_Lean_Expr_isMVar(x_1); if (x_34 == 0) { @@ -12432,7 +12502,7 @@ x_111 = lean_ctor_get(x_102, 1); lean_inc(x_111); lean_dec(x_102); x_112 = lean_box(0); -x_113 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7(x_6, x_5, x_7, x_101, x_4, x_2, x_112, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_111); +x_113 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8(x_6, x_5, x_7, x_101, x_4, x_2, x_112, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_111); return x_113; } } @@ -12592,47 +12662,50 @@ lean_dec(x_1); return x_10; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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, lean_object* x_12) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* 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_13; -x_13 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__2(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); -return x_13; +lean_object* x_14; +x_14 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(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_5); +lean_dec(x_3); +return x_14; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* 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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_15; -x_15 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3(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); -lean_dec(x_6); -return x_15; +lean_object* x_16; +x_16 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_7); +lean_dec(x_3); +return x_16; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, 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_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { -lean_object* x_15; -x_15 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4(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); -lean_dec(x_6); -return x_15; +lean_object* x_16; +x_16 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +lean_dec(x_7); +lean_dec(x_3); +return x_16; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___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) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___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_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__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 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7(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); return x_12; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___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) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) { _start: { lean_object* x_16; -x_16 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); +x_16 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_14, x_15); lean_dec(x_7); lean_dec(x_6); return x_16; @@ -12910,7 +12983,7 @@ lean_dec(x_32); x_50 = lean_ctor_get(x_44, 1); lean_inc(x_50); lean_dec(x_44); -x_51 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2; +x_51 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__2; x_52 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_51, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_50); x_53 = lean_ctor_get(x_52, 0); lean_inc(x_53); @@ -13223,7 +13296,7 @@ lean_dec(x_95); x_111 = lean_ctor_get(x_105, 1); lean_inc(x_111); lean_dec(x_105); -x_112 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2; +x_112 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__2; x_113 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_112, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_111); x_114 = lean_ctor_get(x_113, 0); lean_inc(x_114); @@ -13527,7 +13600,7 @@ lean_dec(x_154); x_170 = lean_ctor_get(x_164, 1); lean_inc(x_170); lean_dec(x_164); -x_171 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2; +x_171 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__2; x_172 = l_Lean_isTracingEnabledFor___at_Lean_Meta_Simp_congrArgs___spec__1(x_171, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_170); x_173 = lean_ctor_get(x_172, 0); lean_inc(x_173); @@ -15193,7 +15266,7 @@ if (x_58 == 0) lean_object* x_59; lean_object* x_60; lean_object* x_61; uint8_t x_62; x_59 = lean_ctor_get(x_57, 0); x_60 = lean_ctor_get(x_57, 1); -x_61 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; +x_61 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; x_62 = lean_unbox(x_59); lean_dec(x_59); if (x_62 == 0) @@ -15243,7 +15316,7 @@ x_78 = lean_ctor_get(x_57, 1); lean_inc(x_78); lean_inc(x_77); lean_dec(x_57); -x_79 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; +x_79 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; x_80 = lean_unbox(x_77); lean_dec(x_77); if (x_80 == 0) @@ -16674,7 +16747,7 @@ if (x_30 == 0) lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; x_31 = lean_ctor_get(x_28, 0); x_32 = lean_ctor_get(x_28, 1); -x_33 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; +x_33 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; x_34 = l_Array_isEmpty___rarg(x_31); if (x_34 == 0) { @@ -16890,7 +16963,7 @@ x_97 = lean_ctor_get(x_28, 1); lean_inc(x_97); lean_inc(x_96); lean_dec(x_28); -x_98 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; +x_98 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; x_99 = l_Array_isEmpty___rarg(x_96); if (x_99 == 0) { @@ -30560,7 +30633,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_Simp_dischargeEqnThmHypothesis_x3f___closed__4; x_2 = l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___closed__5; -x_3 = lean_unsigned_to_nat(562u); +x_3 = lean_unsigned_to_nat(564u); x_4 = lean_unsigned_to_nat(2u); x_5 = l_Lean_Meta_Simp_dischargeEqnThmHypothesis_x3f___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -31161,7 +31234,7 @@ lean_dec(x_1); x_31 = lean_ctor_get(x_28, 1); lean_inc(x_31); lean_dec(x_28); -x_32 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1; +x_32 = l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1; x_33 = lean_box(0); x_34 = lean_apply_9(x_32, x_33, x_7, x_8, x_9, x_10, x_11, x_12, x_13, x_31); return x_34; @@ -32460,6 +32533,7 @@ lean_object* initialize_Lean_Meta_Tactic_Simp_Types(uint8_t builtin, lean_object lean_object* initialize_Lean_Meta_Tactic_LinearArith_Simp(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Simp_Simproc(uint8_t builtin, lean_object*); lean_object* initialize_Lean_Meta_Tactic_Simp_Attr(uint8_t builtin, lean_object*); +lean_object* initialize_Lean_Meta_BinderNameHint(uint8_t builtin, lean_object*); static bool _G_initialized = false; LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Simp_Rewrite(uint8_t builtin, lean_object* w) { lean_object * res; @@ -32495,6 +32569,9 @@ lean_dec_ref(res); res = initialize_Lean_Meta_Tactic_Simp_Attr(builtin, lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); +res = initialize_Lean_Meta_BinderNameHint(builtin, lean_io_mk_world()); +if (lean_io_result_is_error(res)) return res; +lean_dec_ref(res); l_Lean_Meta_Simp_DischargeResult_noConfusion___rarg___closed__1 = _init_l_Lean_Meta_Simp_DischargeResult_noConfusion___rarg___closed__1(); lean_mark_persistent(l_Lean_Meta_Simp_DischargeResult_noConfusion___rarg___closed__1); l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__1 = _init_l_Lean_Meta_ppOrigin___at_Lean_Meta_Simp_discharge_x3f_x27___spec__1___closed__1(); @@ -32617,14 +32694,6 @@ l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lea lean_mark_persistent(l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__3); l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__4 = _init_l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__4(); lean_mark_persistent(l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__4); -l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__1); -l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__2); -l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__3 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__3); -l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__4 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__3___closed__4); l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__1); l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__2(); @@ -32633,12 +32702,20 @@ l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___ lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__3); l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__4 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__4(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__4); -l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__5 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__4___closed__5); -l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__1); -l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__7___closed__2); +l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__1); +l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__2); +l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__3 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__3); +l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__4 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__4); +l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__5 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__5___closed__5); +l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__1); +l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___lambda__8___closed__2); l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___closed__1 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___closed__1(); lean_mark_persistent(l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___closed__1); l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___closed__2 = _init_l___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___closed__2();