// Lean compiler output
// Module: Lean.Data.Array
// Imports: Init.Data.Range
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1(lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___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_filterPairsM___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_array(lean_object*, lean_object*);
extern uint8_t l_instInhabitedBool;
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_fget(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___lambda__2(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___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_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2(lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__3(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_filterPairsM___rarg___lambda__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_outOfBounds___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_filterPairsM(lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___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*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___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_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3(lean_object*);
lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_sub(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_get_size(lean_object*);
LEAN_EXPORT lean_object* l_Array_filterPairsM___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___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, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
lean_dec(x_13);
x_15 = lean_ctor_get(x_1, 0);
lean_inc(x_15);
lean_dec(x_1);
x_16 = lean_ctor_get(x_15, 1);
lean_inc(x_16);
lean_dec(x_15);
x_17 = lean_apply_2(x_16, lean_box(0), x_14);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_18 = lean_ctor_get(x_13, 0);
lean_inc(x_18);
lean_dec(x_13);
x_19 = lean_nat_add(x_2, x_3);
x_20 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg(x_1, lean_box(0), x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_3, x_12, x_19, lean_box(0), x_18);
return x_20;
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2(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 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
x_6 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_6, 0, x_5);
x_7 = lean_apply_2(x_3, lean_box(0), x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__3(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) {
_start:
{
if (x_1 == 0)
{
lean_object* x_8; lean_object* x_9; uint8_t 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; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = lean_nat_add(x_5, x_8);
lean_dec(x_5);
x_10 = 1;
x_11 = lean_box(x_10);
x_12 = lean_array_set(x_6, x_2, x_11);
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_ctor_get(x_13, 1);
lean_inc(x_14);
lean_dec(x_13);
x_15 = lean_box(0);
lean_inc(x_14);
x_16 = lean_apply_2(x_14, lean_box(0), x_15);
x_17 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2___boxed), 4, 3);
lean_closure_set(x_17, 0, x_9);
lean_closure_set(x_17, 1, x_12);
lean_closure_set(x_17, 2, x_14);
x_18 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_16, x_17);
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; 
x_19 = lean_ctor_get(x_3, 0);
lean_inc(x_19);
lean_dec(x_3);
x_20 = lean_ctor_get(x_19, 1);
lean_inc(x_20);
lean_dec(x_19);
x_21 = lean_box(0);
lean_inc(x_20);
x_22 = lean_apply_2(x_20, lean_box(0), x_21);
x_23 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2___boxed), 4, 3);
lean_closure_set(x_23, 0, x_5);
lean_closure_set(x_23, 1, x_6);
lean_closure_set(x_23, 2, x_20);
x_24 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_22, x_23);
return x_24;
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; uint8_t x_9; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t 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; 
x_10 = lean_ctor_get(x_7, 1);
lean_inc(x_10);
lean_dec(x_7);
x_11 = lean_unsigned_to_nat(1u);
x_12 = lean_nat_add(x_4, x_11);
lean_dec(x_4);
x_13 = 1;
x_14 = lean_box(x_13);
x_15 = lean_array_set(x_5, x_6, x_14);
x_16 = lean_ctor_get(x_2, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_16, 1);
lean_inc(x_17);
lean_dec(x_16);
x_18 = lean_box(0);
x_19 = lean_apply_2(x_17, lean_box(0), x_18);
lean_inc(x_3);
x_20 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__3___boxed), 7, 6);
lean_closure_set(x_20, 0, x_10);
lean_closure_set(x_20, 1, x_1);
lean_closure_set(x_20, 2, x_2);
lean_closure_set(x_20, 3, x_3);
lean_closure_set(x_20, 4, x_12);
lean_closure_set(x_20, 5, x_15);
x_21 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_19, x_20);
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; 
x_22 = lean_ctor_get(x_7, 1);
lean_inc(x_22);
lean_dec(x_7);
x_23 = lean_ctor_get(x_2, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_23, 1);
lean_inc(x_24);
lean_dec(x_23);
x_25 = lean_box(0);
x_26 = lean_apply_2(x_24, lean_box(0), x_25);
lean_inc(x_3);
x_27 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__3___boxed), 7, 6);
lean_closure_set(x_27, 0, x_22);
lean_closure_set(x_27, 1, x_1);
lean_closure_set(x_27, 2, x_2);
lean_closure_set(x_27, 3, x_3);
lean_closure_set(x_27, 4, x_4);
lean_closure_set(x_27, 5, x_5);
x_28 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_26, x_27);
return x_28;
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___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, 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_nat_dec_lt(x_13, x_10);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
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);
x_17 = lean_ctor_get(x_1, 0);
lean_inc(x_17);
lean_dec(x_1);
x_18 = lean_ctor_get(x_17, 1);
lean_inc(x_18);
lean_dec(x_17);
x_19 = lean_apply_2(x_18, lean_box(0), x_15);
return x_19;
}
else
{
lean_object* x_20; uint8_t x_21; 
x_20 = lean_unsigned_to_nat(0u);
x_21 = lean_nat_dec_eq(x_12, x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; lean_object* x_30; lean_object* x_38; 
x_22 = lean_unsigned_to_nat(1u);
x_23 = lean_nat_sub(x_12, x_22);
x_24 = lean_ctor_get(x_1, 1);
lean_inc(x_24);
x_25 = lean_ctor_get(x_15, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_15, 1);
lean_inc(x_26);
lean_dec(x_15);
x_27 = lean_array_get_size(x_26);
x_28 = lean_nat_dec_lt(x_7, x_27);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_13);
lean_inc(x_1);
x_29 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__1___boxed), 13, 12);
lean_closure_set(x_29, 0, x_1);
lean_closure_set(x_29, 1, x_13);
lean_closure_set(x_29, 2, x_11);
lean_closure_set(x_29, 3, x_3);
lean_closure_set(x_29, 4, x_4);
lean_closure_set(x_29, 5, x_5);
lean_closure_set(x_29, 6, x_6);
lean_closure_set(x_29, 7, x_7);
lean_closure_set(x_29, 8, x_8);
lean_closure_set(x_29, 9, x_9);
lean_closure_set(x_29, 10, x_10);
lean_closure_set(x_29, 11, x_23);
if (x_28 == 0)
{
uint8_t x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; 
x_63 = l_instInhabitedBool;
x_64 = lean_box(x_63);
x_65 = l_outOfBounds___rarg(x_64);
x_66 = lean_unbox(x_65);
lean_dec(x_65);
if (x_66 == 0)
{
lean_object* x_67; 
x_67 = lean_box(0);
x_38 = x_67;
goto block_62;
}
else
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; 
lean_dec(x_27);
lean_dec(x_13);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_3);
x_68 = lean_ctor_get(x_1, 0);
lean_inc(x_68);
lean_dec(x_1);
x_69 = lean_ctor_get(x_68, 1);
lean_inc(x_69);
lean_dec(x_68);
x_70 = lean_box(0);
lean_inc(x_69);
x_71 = lean_apply_2(x_69, lean_box(0), x_70);
x_72 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2___boxed), 4, 3);
lean_closure_set(x_72, 0, x_25);
lean_closure_set(x_72, 1, x_26);
lean_closure_set(x_72, 2, x_69);
x_73 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_71, x_72);
x_74 = lean_apply_4(x_24, lean_box(0), lean_box(0), x_73, x_29);
return x_74;
}
}
else
{
lean_object* x_75; uint8_t x_76; 
x_75 = lean_array_fget(x_26, x_7);
x_76 = lean_unbox(x_75);
lean_dec(x_75);
if (x_76 == 0)
{
lean_object* x_77; 
x_77 = lean_box(0);
x_38 = x_77;
goto block_62;
}
else
{
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_dec(x_27);
lean_dec(x_13);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_3);
x_78 = lean_ctor_get(x_1, 0);
lean_inc(x_78);
lean_dec(x_1);
x_79 = lean_ctor_get(x_78, 1);
lean_inc(x_79);
lean_dec(x_78);
x_80 = lean_box(0);
lean_inc(x_79);
x_81 = lean_apply_2(x_79, lean_box(0), x_80);
x_82 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2___boxed), 4, 3);
lean_closure_set(x_82, 0, x_25);
lean_closure_set(x_82, 1, x_26);
lean_closure_set(x_82, 2, x_79);
x_83 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_81, x_82);
x_84 = lean_apply_4(x_24, lean_box(0), lean_box(0), x_83, x_29);
return x_84;
}
}
block_37:
{
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_dec(x_30);
x_31 = lean_array_fget(x_3, x_7);
x_32 = lean_array_fget(x_3, x_13);
lean_dec(x_3);
x_33 = lean_apply_2(x_4, x_31, x_32);
lean_inc(x_6);
x_34 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__4___boxed), 7, 6);
lean_closure_set(x_34, 0, x_13);
lean_closure_set(x_34, 1, x_1);
lean_closure_set(x_34, 2, x_6);
lean_closure_set(x_34, 3, x_25);
lean_closure_set(x_34, 4, x_26);
lean_closure_set(x_34, 5, x_7);
x_35 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_33, x_34);
x_36 = lean_apply_4(x_24, lean_box(0), lean_box(0), x_35, x_29);
return x_36;
}
block_62:
{
uint8_t x_39; 
lean_dec(x_38);
x_39 = lean_nat_dec_lt(x_13, x_27);
lean_dec(x_27);
if (x_39 == 0)
{
uint8_t x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; 
x_40 = l_instInhabitedBool;
x_41 = lean_box(x_40);
x_42 = l_outOfBounds___rarg(x_41);
x_43 = lean_unbox(x_42);
lean_dec(x_42);
if (x_43 == 0)
{
lean_object* x_44; 
x_44 = lean_box(0);
x_30 = x_44;
goto block_37;
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
lean_dec(x_13);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_3);
x_45 = lean_ctor_get(x_1, 0);
lean_inc(x_45);
lean_dec(x_1);
x_46 = lean_ctor_get(x_45, 1);
lean_inc(x_46);
lean_dec(x_45);
x_47 = lean_box(0);
lean_inc(x_46);
x_48 = lean_apply_2(x_46, lean_box(0), x_47);
x_49 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2___boxed), 4, 3);
lean_closure_set(x_49, 0, x_25);
lean_closure_set(x_49, 1, x_26);
lean_closure_set(x_49, 2, x_46);
x_50 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_48, x_49);
x_51 = lean_apply_4(x_24, lean_box(0), lean_box(0), x_50, x_29);
return x_51;
}
}
else
{
lean_object* x_52; uint8_t x_53; 
x_52 = lean_array_fget(x_26, x_13);
x_53 = lean_unbox(x_52);
lean_dec(x_52);
if (x_53 == 0)
{
lean_object* x_54; 
x_54 = lean_box(0);
x_30 = x_54;
goto block_37;
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; 
lean_dec(x_13);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_3);
x_55 = lean_ctor_get(x_1, 0);
lean_inc(x_55);
lean_dec(x_1);
x_56 = lean_ctor_get(x_55, 1);
lean_inc(x_56);
lean_dec(x_55);
x_57 = lean_box(0);
lean_inc(x_56);
x_58 = lean_apply_2(x_56, lean_box(0), x_57);
x_59 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2___boxed), 4, 3);
lean_closure_set(x_59, 0, x_25);
lean_closure_set(x_59, 1, x_26);
lean_closure_set(x_59, 2, x_56);
x_60 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_58, x_59);
x_61 = lean_apply_4(x_24, lean_box(0), lean_box(0), x_60, x_29);
return x_61;
}
}
}
}
else
{
lean_object* x_85; lean_object* x_86; lean_object* x_87; 
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);
x_85 = lean_ctor_get(x_1, 0);
lean_inc(x_85);
lean_dec(x_1);
x_86 = lean_ctor_get(x_85, 1);
lean_inc(x_86);
lean_dec(x_85);
x_87 = lean_apply_2(x_86, lean_box(0), x_15);
return x_87;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___boxed), 15, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
lean_dec(x_6);
x_8 = lean_box(0);
lean_inc(x_7);
x_9 = lean_apply_2(x_7, lean_box(0), x_8);
x_10 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2___boxed), 4, 3);
lean_closure_set(x_10, 0, x_4);
lean_closure_set(x_10, 1, x_5);
lean_closure_set(x_10, 2, x_7);
x_11 = lean_apply_4(x_2, lean_box(0), lean_box(0), x_9, x_10);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___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) {
_start:
{
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec(x_12);
x_14 = lean_ctor_get(x_1, 0);
lean_inc(x_14);
lean_dec(x_1);
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
x_16 = lean_apply_2(x_15, lean_box(0), x_13);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_17 = lean_ctor_get(x_12, 0);
lean_inc(x_17);
lean_dec(x_12);
x_18 = lean_nat_add(x_2, x_3);
x_19 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg(x_1, lean_box(0), x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_3, x_11, x_18, lean_box(0), x_17);
return x_19;
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___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, 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_nat_dec_lt(x_12, x_9);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_16 = lean_ctor_get(x_1, 0);
lean_inc(x_16);
lean_dec(x_1);
x_17 = lean_ctor_get(x_16, 1);
lean_inc(x_17);
lean_dec(x_16);
x_18 = lean_apply_2(x_17, lean_box(0), x_14);
return x_18;
}
else
{
lean_object* x_19; uint8_t x_20; 
x_19 = lean_unsigned_to_nat(0u);
x_20 = lean_nat_dec_eq(x_11, x_19);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_21 = lean_unsigned_to_nat(1u);
x_22 = lean_nat_sub(x_11, x_21);
x_23 = lean_ctor_get(x_1, 1);
lean_inc(x_23);
x_24 = !lean_is_exclusive(x_14);
if (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; 
x_25 = lean_nat_add(x_12, x_21);
lean_inc(x_5);
lean_inc(x_25);
x_26 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_5);
lean_ctor_set(x_26, 2, x_21);
lean_inc(x_25);
lean_inc(x_12);
lean_inc(x_6);
lean_inc_n(x_5, 2);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_1);
x_27 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_12, x_26, x_25, x_5, x_21, x_5, x_25, lean_box(0), x_14);
lean_inc(x_6);
lean_inc(x_1);
x_28 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___lambda__1), 3, 2);
lean_closure_set(x_28, 0, x_1);
lean_closure_set(x_28, 1, x_6);
lean_inc(x_6);
x_29 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_27, x_28);
x_30 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___lambda__2___boxed), 12, 11);
lean_closure_set(x_30, 0, x_1);
lean_closure_set(x_30, 1, x_12);
lean_closure_set(x_30, 2, x_10);
lean_closure_set(x_30, 3, x_3);
lean_closure_set(x_30, 4, x_4);
lean_closure_set(x_30, 5, x_5);
lean_closure_set(x_30, 6, x_6);
lean_closure_set(x_30, 7, x_7);
lean_closure_set(x_30, 8, x_8);
lean_closure_set(x_30, 9, x_9);
lean_closure_set(x_30, 10, x_22);
x_31 = lean_apply_4(x_23, lean_box(0), lean_box(0), x_29, x_30);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_32 = lean_ctor_get(x_14, 0);
x_33 = lean_ctor_get(x_14, 1);
lean_inc(x_33);
lean_inc(x_32);
lean_dec(x_14);
x_34 = lean_nat_add(x_12, x_21);
lean_inc(x_5);
lean_inc(x_34);
x_35 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_35, 0, x_34);
lean_ctor_set(x_35, 1, x_5);
lean_ctor_set(x_35, 2, x_21);
x_36 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_36, 0, x_32);
lean_ctor_set(x_36, 1, x_33);
lean_inc(x_34);
lean_inc(x_12);
lean_inc(x_6);
lean_inc_n(x_5, 2);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_1);
x_37 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_12, x_35, x_34, x_5, x_21, x_5, x_34, lean_box(0), x_36);
lean_inc(x_6);
lean_inc(x_1);
x_38 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___lambda__1), 3, 2);
lean_closure_set(x_38, 0, x_1);
lean_closure_set(x_38, 1, x_6);
lean_inc(x_6);
x_39 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_37, x_38);
x_40 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___lambda__2___boxed), 12, 11);
lean_closure_set(x_40, 0, x_1);
lean_closure_set(x_40, 1, x_12);
lean_closure_set(x_40, 2, x_10);
lean_closure_set(x_40, 3, x_3);
lean_closure_set(x_40, 4, x_4);
lean_closure_set(x_40, 5, x_5);
lean_closure_set(x_40, 6, x_6);
lean_closure_set(x_40, 7, x_7);
lean_closure_set(x_40, 8, x_8);
lean_closure_set(x_40, 9, x_9);
lean_closure_set(x_40, 10, x_22);
x_41 = lean_apply_4(x_23, lean_box(0), lean_box(0), x_39, x_40);
return x_41;
}
}
else
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; 
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_42 = lean_ctor_get(x_1, 0);
lean_inc(x_42);
lean_dec(x_1);
x_43 = lean_ctor_get(x_42, 1);
lean_inc(x_43);
lean_dec(x_42);
x_44 = lean_apply_2(x_43, lean_box(0), x_14);
return x_44;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___boxed), 14, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___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, lean_object* x_11, lean_object* x_12) {
_start:
{
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec(x_12);
x_14 = lean_ctor_get(x_1, 0);
lean_inc(x_14);
lean_dec(x_1);
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
x_16 = lean_apply_2(x_15, lean_box(0), x_13);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_17 = lean_ctor_get(x_12, 0);
lean_inc(x_17);
lean_dec(x_12);
x_18 = lean_nat_add(x_2, x_3);
x_19 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg(x_1, lean_box(0), x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_3, x_11, x_18, lean_box(0), x_17);
return x_19;
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_4, 0, x_1);
x_5 = lean_apply_2(x_2, lean_box(0), x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___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, 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_nat_dec_lt(x_12, x_9);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_16 = lean_ctor_get(x_1, 0);
lean_inc(x_16);
lean_dec(x_1);
x_17 = lean_ctor_get(x_16, 1);
lean_inc(x_17);
lean_dec(x_16);
x_18 = lean_apply_2(x_17, lean_box(0), x_14);
return x_18;
}
else
{
lean_object* x_19; uint8_t x_20; 
x_19 = lean_unsigned_to_nat(0u);
x_20 = lean_nat_dec_eq(x_11, x_19);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; 
x_21 = lean_unsigned_to_nat(1u);
x_22 = lean_nat_sub(x_11, x_21);
x_23 = lean_ctor_get(x_1, 1);
lean_inc(x_23);
x_24 = lean_array_get_size(x_7);
x_25 = lean_nat_dec_lt(x_12, x_24);
lean_dec(x_24);
lean_inc(x_7);
lean_inc(x_5);
lean_inc(x_3);
lean_inc(x_12);
lean_inc(x_1);
x_26 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___lambda__1___boxed), 12, 11);
lean_closure_set(x_26, 0, x_1);
lean_closure_set(x_26, 1, x_12);
lean_closure_set(x_26, 2, x_10);
lean_closure_set(x_26, 3, x_3);
lean_closure_set(x_26, 4, x_4);
lean_closure_set(x_26, 5, x_5);
lean_closure_set(x_26, 6, x_6);
lean_closure_set(x_26, 7, x_7);
lean_closure_set(x_26, 8, x_8);
lean_closure_set(x_26, 9, x_9);
lean_closure_set(x_26, 10, x_22);
if (x_25 == 0)
{
uint8_t x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; 
lean_dec(x_7);
x_27 = l_instInhabitedBool;
x_28 = lean_box(x_27);
x_29 = l_outOfBounds___rarg(x_28);
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; 
x_31 = lean_array_fget(x_3, x_12);
lean_dec(x_12);
lean_dec(x_3);
x_32 = lean_array_push(x_14, x_31);
x_33 = lean_ctor_get(x_1, 0);
lean_inc(x_33);
lean_dec(x_1);
x_34 = lean_ctor_get(x_33, 1);
lean_inc(x_34);
lean_dec(x_33);
x_35 = lean_box(0);
lean_inc(x_34);
x_36 = lean_apply_2(x_34, lean_box(0), x_35);
x_37 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___lambda__2___boxed), 3, 2);
lean_closure_set(x_37, 0, x_32);
lean_closure_set(x_37, 1, x_34);
x_38 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_36, x_37);
x_39 = lean_apply_4(x_23, lean_box(0), lean_box(0), x_38, x_26);
return x_39;
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
lean_dec(x_12);
lean_dec(x_3);
x_40 = lean_ctor_get(x_1, 0);
lean_inc(x_40);
lean_dec(x_1);
x_41 = lean_ctor_get(x_40, 1);
lean_inc(x_41);
lean_dec(x_40);
x_42 = lean_box(0);
lean_inc(x_41);
x_43 = lean_apply_2(x_41, lean_box(0), x_42);
x_44 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___lambda__2___boxed), 3, 2);
lean_closure_set(x_44, 0, x_14);
lean_closure_set(x_44, 1, x_41);
x_45 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_43, x_44);
x_46 = lean_apply_4(x_23, lean_box(0), lean_box(0), x_45, x_26);
return x_46;
}
}
else
{
lean_object* x_47; uint8_t x_48; 
x_47 = lean_array_fget(x_7, x_12);
lean_dec(x_7);
x_48 = lean_unbox(x_47);
lean_dec(x_47);
if (x_48 == 0)
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_49 = lean_array_fget(x_3, x_12);
lean_dec(x_12);
lean_dec(x_3);
x_50 = lean_array_push(x_14, x_49);
x_51 = lean_ctor_get(x_1, 0);
lean_inc(x_51);
lean_dec(x_1);
x_52 = lean_ctor_get(x_51, 1);
lean_inc(x_52);
lean_dec(x_51);
x_53 = lean_box(0);
lean_inc(x_52);
x_54 = lean_apply_2(x_52, lean_box(0), x_53);
x_55 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___lambda__2___boxed), 3, 2);
lean_closure_set(x_55, 0, x_50);
lean_closure_set(x_55, 1, x_52);
x_56 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_54, x_55);
x_57 = lean_apply_4(x_23, lean_box(0), lean_box(0), x_56, x_26);
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_dec(x_12);
lean_dec(x_3);
x_58 = lean_ctor_get(x_1, 0);
lean_inc(x_58);
lean_dec(x_1);
x_59 = lean_ctor_get(x_58, 1);
lean_inc(x_59);
lean_dec(x_58);
x_60 = lean_box(0);
lean_inc(x_59);
x_61 = lean_apply_2(x_59, lean_box(0), x_60);
x_62 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___lambda__2___boxed), 3, 2);
lean_closure_set(x_62, 0, x_14);
lean_closure_set(x_62, 1, x_59);
x_63 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_61, x_62);
x_64 = lean_apply_4(x_23, lean_box(0), lean_box(0), x_63, x_26);
return x_64;
}
}
}
else
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; 
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_65 = lean_ctor_get(x_1, 0);
lean_inc(x_65);
lean_dec(x_1);
x_66 = lean_ctor_get(x_65, 1);
lean_inc(x_66);
lean_dec(x_65);
x_67 = lean_apply_2(x_66, lean_box(0), x_14);
return x_67;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___boxed), 14, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Array_filterPairsM___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
lean_dec(x_1);
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
lean_dec(x_3);
x_5 = lean_apply_2(x_4, lean_box(0), x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Array_filterPairsM___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
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 = lean_mk_empty_array_with_capacity(x_7);
lean_dec(x_7);
x_10 = lean_unsigned_to_nat(0u);
x_11 = lean_unsigned_to_nat(1u);
lean_inc(x_4);
lean_inc_n(x_3, 2);
lean_inc(x_1);
x_12 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg(x_1, lean_box(0), x_2, x_3, x_4, x_5, x_8, x_10, x_3, x_11, x_3, x_10, lean_box(0), x_9);
lean_dec(x_3);
x_13 = lean_alloc_closure((void*)(l_Array_filterPairsM___rarg___lambda__1), 2, 1);
lean_closure_set(x_13, 0, x_1);
x_14 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_12, x_13);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Array_filterPairsM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 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; 
x_5 = lean_array_get_size(x_3);
x_6 = 0;
x_7 = lean_box(x_6);
lean_inc(x_5);
x_8 = lean_mk_array(x_5, x_7);
x_9 = lean_ctor_get(x_1, 1);
lean_inc(x_9);
x_10 = lean_unsigned_to_nat(0u);
x_11 = lean_unsigned_to_nat(1u);
lean_inc(x_5);
x_12 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_5);
lean_ctor_set(x_12, 2, x_11);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_10);
lean_ctor_set(x_13, 1, x_8);
lean_inc(x_12);
lean_inc(x_9);
lean_inc_n(x_5, 2);
lean_inc(x_3);
lean_inc(x_1);
x_14 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_9, x_12, x_10, x_5, x_11, x_5, x_10, lean_box(0), x_13);
lean_inc(x_9);
x_15 = lean_alloc_closure((void*)(l_Array_filterPairsM___rarg___lambda__2), 6, 5);
lean_closure_set(x_15, 0, x_1);
lean_closure_set(x_15, 1, x_3);
lean_closure_set(x_15, 2, x_5);
lean_closure_set(x_15, 3, x_9);
lean_closure_set(x_15, 4, x_12);
x_16 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_14, x_15);
return x_16;
}
}
LEAN_EXPORT lean_object* l_Array_filterPairsM(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Array_filterPairsM___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
x_14 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_12);
lean_dec(x_2);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__2(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___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) {
_start:
{
uint8_t x_8; lean_object* x_9; 
x_8 = lean_unbox(x_1);
lean_dec(x_1);
x_9 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__3(x_8, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_7);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15) {
_start:
{
lean_object* x_16; 
x_16 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__1___rarg(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_12);
return x_16;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___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) {
_start:
{
lean_object* x_13; 
x_13 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___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_11);
lean_dec(x_2);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; 
x_15 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__2___rarg(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_11);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___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_13; 
x_13 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___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_11);
lean_dec(x_2);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___lambda__2(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14) {
_start:
{
lean_object* x_15; 
x_15 = l_Std_Range_forIn_x27_loop___at_Array_filterPairsM___spec__3___rarg(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_11);
return x_15;
}
}
lean_object* initialize_Init_Data_Range(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Data_Array(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_Data_Range(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
