// Lean compiler output
// Module: Lean.Meta.Match.Value
// Imports: Init Lean.Expr
#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 uint8_t l_Lean_Meta_isUIntPatLit(lean_object*);
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2;
size_t lean_usize_add(size_t, size_t);
uint8_t l_Lean_Expr_isCharLit(lean_object*);
uint8_t l_Lean_Expr_isNatLit(lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
lean_object* lean_name_mk_string(lean_object*, lean_object*);
uint8_t lean_usize_dec_eq(size_t, size_t);
lean_object* lean_array_uget(lean_object*, size_t);
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6;
LEAN_EXPORT uint8_t l_Lean_Meta_isMatchValue(lean_object*);
static lean_object* l_Lean_Meta_isFinPatLit___closed__2;
uint8_t lean_name_eq(lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
lean_object* lean_array_get_size(lean_object*);
static lean_object* l_Lean_Meta_isFinPatLit___closed__3;
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13;
lean_object* l_Lean_Expr_appArg_x21(lean_object*);
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11;
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2(lean_object*, lean_object*, size_t, size_t);
static lean_object* l_Lean_Meta_isFinPatLit___closed__4;
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4;
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8;
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames;
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9;
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1;
static lean_object* l_Lean_Meta_isFinPatLit___closed__1;
LEAN_EXPORT lean_object* l_Lean_Meta_isFinPatLit___boxed(lean_object*);
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12;
LEAN_EXPORT lean_object* l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1___boxed(lean_object*, lean_object*);
uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___boxed(lean_object*);
size_t lean_usize_of_nat(lean_object*);
static lean_object* l_Lean_Meta_isUIntPatLit_x3f___closed__1;
LEAN_EXPORT lean_object* l_Lean_Meta_foldPatValue(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_foldPatValue___boxed(lean_object*);
LEAN_EXPORT uint8_t l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7;
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName(lean_object*);
lean_object* l_Lean_mkApp(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_isUIntPatLit___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_isMatchValue___boxed(lean_object*);
LEAN_EXPORT uint8_t l_Lean_Meta_isFinPatLit(lean_object*);
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14;
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16;
uint8_t l_Lean_Expr_isStringLit(lean_object*);
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15;
LEAN_EXPORT lean_object* l_Lean_Meta_isUIntPatLit_x3f___boxed(lean_object*);
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5;
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3;
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Meta_isUIntPatLit_x3f(lean_object*);
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10;
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("UInt8");
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("UInt16");
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("UInt32");
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("UInt64");
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("USize");
return x_1;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(5u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11;
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12;
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13;
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14;
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15;
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames() {
_start:
{
lean_object* x_1; 
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_3, x_4);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_array_uget(x_2, x_3);
x_7 = lean_name_eq(x_1, x_6);
lean_dec(x_6);
if (x_7 == 0)
{
size_t x_8; size_t x_9; 
x_8 = 1;
x_9 = lean_usize_add(x_3, x_8);
x_3 = x_9;
goto _start;
}
else
{
uint8_t x_11; 
x_11 = 1;
return x_11;
}
}
else
{
uint8_t x_12; 
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT uint8_t l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = lean_array_get_size(x_1);
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_nat_dec_lt(x_4, x_3);
if (x_5 == 0)
{
uint8_t x_6; 
lean_dec(x_3);
x_6 = 0;
return x_6;
}
else
{
uint8_t x_7; 
x_7 = lean_nat_dec_le(x_3, x_3);
if (x_7 == 0)
{
uint8_t x_8; 
lean_dec(x_3);
x_8 = 0;
return x_8;
}
else
{
size_t x_9; size_t x_10; uint8_t x_11; 
x_9 = 0;
x_10 = lean_usize_of_nat(x_3);
lean_dec(x_3);
x_11 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2(x_2, x_1, x_9, x_10);
return x_11;
}
}
}
}
LEAN_EXPORT uint8_t l___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames;
x_3 = l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(x_2, x_1);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; 
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_7 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2(x_1, x_2, x_5, x_6);
lean_dec(x_2);
lean_dec(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_isFinPatLit___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Fin");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_isFinPatLit___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Meta_isFinPatLit___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_isFinPatLit___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("ofNat");
return x_1;
}
}
static lean_object* _init_l_Lean_Meta_isFinPatLit___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Meta_isFinPatLit___closed__2;
x_2 = l_Lean_Meta_isFinPatLit___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Lean_Meta_isFinPatLit(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; 
x_2 = l_Lean_Meta_isFinPatLit___closed__4;
x_3 = lean_unsigned_to_nat(2u);
x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3);
if (x_4 == 0)
{
uint8_t x_5; 
x_5 = 0;
return x_5;
}
else
{
lean_object* x_6; uint8_t x_7; 
x_6 = l_Lean_Expr_appArg_x21(x_1);
x_7 = l_Lean_Expr_isNatLit(x_6);
lean_dec(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_isFinPatLit___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_Meta_isFinPatLit(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_isUIntPatLit_x3f___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("mk");
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_isUIntPatLit_x3f(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 5)
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
if (lean_obj_tag(x_2) == 4)
{
lean_object* x_3; 
x_3 = lean_ctor_get(x_2, 0);
if (lean_obj_tag(x_3) == 1)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_3, 1);
x_7 = l_Lean_Meta_isUIntPatLit_x3f___closed__1;
x_8 = lean_string_dec_eq(x_6, x_7);
if (x_8 == 0)
{
lean_object* x_9; 
x_9 = lean_box(0);
return x_9;
}
else
{
lean_object* x_10; uint8_t x_11; 
x_10 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames;
x_11 = l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(x_10, x_5);
if (x_11 == 0)
{
lean_object* x_12; 
x_12 = lean_box(0);
return x_12;
}
else
{
uint8_t x_13; 
x_13 = l_Lean_Meta_isFinPatLit(x_4);
if (x_13 == 0)
{
lean_object* x_14; 
x_14 = lean_box(0);
return x_14;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = l_Lean_Expr_appArg_x21(x_4);
lean_inc(x_5);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_5);
lean_ctor_set(x_16, 1, x_15);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_16);
return x_17;
}
}
}
}
else
{
lean_object* x_18; 
x_18 = lean_box(0);
return x_18;
}
}
else
{
lean_object* x_19; 
x_19 = lean_box(0);
return x_19;
}
}
else
{
lean_object* x_20; 
x_20 = lean_box(0);
return x_20;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_isUIntPatLit_x3f___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Meta_isUIntPatLit_x3f(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Lean_Meta_isUIntPatLit(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Meta_isUIntPatLit_x3f(x_1);
if (lean_obj_tag(x_2) == 0)
{
uint8_t x_3; 
x_3 = 0;
return x_3;
}
else
{
uint8_t x_4; 
lean_dec(x_2);
x_4 = 1;
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_isUIntPatLit___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_Meta_isUIntPatLit(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_foldPatValue(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Meta_isUIntPatLit_x3f(x_1);
if (lean_obj_tag(x_2) == 0)
{
lean_inc(x_1);
return x_1;
}
else
{
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; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
lean_dec(x_2);
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 = l_Lean_Meta_isFinPatLit___closed__3;
x_7 = lean_name_mk_string(x_4, x_6);
x_8 = lean_box(0);
x_9 = l_Lean_mkConst(x_7, x_8);
x_10 = l_Lean_mkApp(x_9, x_5);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_foldPatValue___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Meta_foldPatValue(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Lean_Meta_isMatchValue(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = l_Lean_Expr_isNatLit(x_1);
if (x_2 == 0)
{
uint8_t x_3; 
x_3 = l_Lean_Expr_isCharLit(x_1);
if (x_3 == 0)
{
uint8_t x_4; 
x_4 = l_Lean_Expr_isStringLit(x_1);
if (x_4 == 0)
{
uint8_t x_5; 
x_5 = l_Lean_Meta_isFinPatLit(x_1);
if (x_5 == 0)
{
uint8_t x_6; 
x_6 = l_Lean_Meta_isUIntPatLit(x_1);
return x_6;
}
else
{
uint8_t x_7; 
x_7 = 1;
return x_7;
}
}
else
{
uint8_t x_8; 
x_8 = 1;
return x_8;
}
}
else
{
uint8_t x_9; 
x_9 = 1;
return x_9;
}
}
else
{
uint8_t x_10; 
x_10 = 1;
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_isMatchValue___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_Meta_isMatchValue(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
lean_object* initialize_Init(lean_object*);
lean_object* initialize_Lean_Expr(lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Meta_Match_Value(lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Expr(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16);
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames();
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames);
l_Lean_Meta_isFinPatLit___closed__1 = _init_l_Lean_Meta_isFinPatLit___closed__1();
lean_mark_persistent(l_Lean_Meta_isFinPatLit___closed__1);
l_Lean_Meta_isFinPatLit___closed__2 = _init_l_Lean_Meta_isFinPatLit___closed__2();
lean_mark_persistent(l_Lean_Meta_isFinPatLit___closed__2);
l_Lean_Meta_isFinPatLit___closed__3 = _init_l_Lean_Meta_isFinPatLit___closed__3();
lean_mark_persistent(l_Lean_Meta_isFinPatLit___closed__3);
l_Lean_Meta_isFinPatLit___closed__4 = _init_l_Lean_Meta_isFinPatLit___closed__4();
lean_mark_persistent(l_Lean_Meta_isFinPatLit___closed__4);
l_Lean_Meta_isUIntPatLit_x3f___closed__1 = _init_l_Lean_Meta_isUIntPatLit_x3f___closed__1();
lean_mark_persistent(l_Lean_Meta_isUIntPatLit_x3f___closed__1);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
