// Lean compiler output
// Module: Lean.BuiltinDocAttr
// Imports: Lean.Compiler.InitAttr Lean.DocString.Extension
#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
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__2;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__18;
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_isRec___at_Lean_declareBuiltinDocStringAndRanges___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkNatLit(lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_isRec___at_Lean_declareBuiltinDocStringAndRanges___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_declRangeExt;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___closed__2;
lean_object* lean_array_push(lean_object*, lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__11;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___closed__4;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___closed__3;
LEAN_EXPORT lean_object* l_Lean_declareBuiltinDocStringAndRanges(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__16;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__6;
lean_object* l_Lean_Attribute_Builtin_ensureNoArgs(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__9;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__12;
lean_object* l_Lean_stringToMessageData(lean_object*);
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___closed__5;
LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__17;
uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkStrLit(lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__10;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__14;
LEAN_EXPORT lean_object* l_Lean_declareBuiltinDocStringAndRanges___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208_(lean_object*);
lean_object* l_Lean_declareBuiltin(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_is_aux_recursor(lean_object*, lean_object*);
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__5;
lean_object* l_Lean_findSimpleDocString_x3f(lean_object*, lean_object*, uint8_t, lean_object*);
extern lean_object* l_Lean_builtinDeclRanges;
lean_object* l_Lean_Name_getPrefix(lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__17;
lean_object* lean_st_ref_get(lean_object*, lean_object*);
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__4;
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__8;
lean_object* l_Lean_Name_num___override(lean_object*, lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__7;
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__10;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__11;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__1;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__13;
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__9;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__2;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__1;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__12;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__6;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__7;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__13;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__8;
LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1___closed__1;
lean_object* l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__3;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
static lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3___closed__1;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__16;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__4;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__15;
extern lean_object* l_Lean_instInhabitedDeclarationRanges;
lean_object* l_Lean_registerBuiltinAttribute(lean_object*, lean_object*);
uint8_t l_Lean_isRecCore(lean_object*, lean_object*);
lean_object* l___private_Lean_ToExpr_0__Lean_Name_toExprAux(lean_object*);
LEAN_EXPORT lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_noConfusionExt;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3;
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__2;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__5;
static lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__15;
LEAN_EXPORT lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___closed__1;
lean_object* l_Lean_RBNode_find___at_Lean_NameMap_find_x3f___spec__1___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__14;
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__18;
LEAN_EXPORT lean_object* l_Lean_isRec___at_Lean_declareBuiltinDocStringAndRanges___spec__2(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; 
x_5 = lean_st_ref_get(x_3, x_4);
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec(x_7);
x_9 = l_Lean_isRecCore(x_8, x_1);
x_10 = lean_box(x_9);
lean_ctor_set(x_5, 0, x_10);
return x_5;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; 
x_11 = lean_ctor_get(x_5, 0);
x_12 = lean_ctor_get(x_5, 1);
lean_inc(x_12);
lean_inc(x_11);
lean_dec(x_5);
x_13 = lean_ctor_get(x_11, 0);
lean_inc(x_13);
lean_dec(x_11);
x_14 = l_Lean_isRecCore(x_13, x_1);
x_15 = lean_box(x_14);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_12);
return x_16;
}
}
}
static lean_object* _init_l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_declRangeExt;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3(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; 
x_5 = lean_st_ref_get(x_3, x_4);
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec(x_7);
x_9 = l_Lean_instInhabitedDeclarationRanges;
x_10 = l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3___closed__1;
x_11 = l_Lean_MapDeclarationExtension_find_x3f___rarg(x_9, x_10, x_8, x_1);
lean_dec(x_8);
lean_ctor_set(x_5, 0, x_11);
return x_5;
}
else
{
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_12 = lean_ctor_get(x_5, 0);
x_13 = lean_ctor_get(x_5, 1);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_5);
x_14 = lean_ctor_get(x_12, 0);
lean_inc(x_14);
lean_dec(x_12);
x_15 = l_Lean_instInhabitedDeclarationRanges;
x_16 = l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3___closed__1;
x_17 = l_Lean_MapDeclarationExtension_find_x3f___rarg(x_15, x_16, x_14, x_1);
lean_dec(x_14);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_13);
return x_18;
}
}
}
static lean_object* _init_l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_builtinDeclRanges;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1___closed__1;
x_7 = lean_st_ref_get(x_6, x_5);
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 = l_Lean_RBNode_find___at_Lean_NameMap_find_x3f___spec__1___rarg(x_9, x_1);
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 = l_Lean_RBNode_find___at_Lean_NameMap_find_x3f___spec__1___rarg(x_11, x_1);
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;
}
}
else
{
lean_object* x_15; 
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_2);
lean_ctor_set(x_15, 1, x_5);
return x_15;
}
}
}
static lean_object* _init_l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_noConfusionExt;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___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; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_5 = lean_st_ref_get(x_3, x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec(x_5);
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_8);
lean_dec(x_6);
lean_inc(x_1);
x_9 = l_Lean_isRec___at_Lean_declareBuiltinDocStringAndRanges___spec__2(x_1, x_2, x_3, x_7);
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);
lean_inc(x_1);
lean_inc(x_8);
x_12 = lean_is_aux_recursor(x_8, x_1);
if (x_12 == 0)
{
lean_object* x_13; uint8_t x_14; 
x_13 = l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___closed__1;
lean_inc(x_1);
x_14 = l_Lean_TagDeclarationExtension_isTagged(x_13, x_8, x_1);
lean_dec(x_8);
if (x_14 == 0)
{
uint8_t x_15; 
x_15 = lean_unbox(x_10);
lean_dec(x_10);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
lean_inc(x_1);
x_16 = l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3(x_1, x_2, x_3, x_11);
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec(x_16);
x_19 = l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1(x_1, x_17, x_2, x_3, x_18);
lean_dec(x_1);
return x_19;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_20 = l_Lean_Name_getPrefix(x_1);
x_21 = l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3(x_20, x_2, x_3, x_11);
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_21, 1);
lean_inc(x_23);
lean_dec(x_21);
x_24 = l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1(x_1, x_22, x_2, x_3, x_23);
lean_dec(x_1);
return x_24;
}
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_dec(x_10);
x_25 = l_Lean_Name_getPrefix(x_1);
x_26 = l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3(x_25, x_2, x_3, x_11);
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_26, 1);
lean_inc(x_28);
lean_dec(x_26);
x_29 = l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1(x_1, x_27, x_2, x_3, x_28);
lean_dec(x_1);
return x_29;
}
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
lean_dec(x_10);
lean_dec(x_8);
x_30 = l_Lean_Name_getPrefix(x_1);
x_31 = l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3(x_30, x_2, x_3, x_11);
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_31, 1);
lean_inc(x_33);
lean_dec(x_31);
x_34 = l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1(x_1, x_32, x_2, x_3, x_33);
lean_dec(x_1);
return x_34;
}
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declRange", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___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_declareBuiltinDocStringAndRanges___lambda__1___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("addBuiltinDeclarationRanges", 27, 27);
return x_1;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3;
x_2 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__4;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__5;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("DeclarationRanges", 17, 17);
return x_1;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("mk", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3;
x_2 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__7;
x_3 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__8;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__9;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("DeclarationRange", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3;
x_2 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__11;
x_3 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__8;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__12;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Position", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3;
x_2 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__14;
x_3 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__8;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__15;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(4u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_declareBuiltinDocStringAndRanges___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; 
lean_inc(x_1);
x_6 = l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1(x_1, x_3, x_4, x_5);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
lean_dec(x_1);
x_8 = !lean_is_exclusive(x_6);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_6, 0);
lean_dec(x_9);
x_10 = lean_box(0);
lean_ctor_set(x_6, 0, x_10);
return x_6;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_6, 1);
lean_inc(x_11);
lean_dec(x_6);
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_11);
return x_13;
}
}
else
{
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; 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; 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; 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; lean_object* x_83; 
x_14 = lean_ctor_get(x_6, 1);
lean_inc(x_14);
lean_dec(x_6);
x_15 = lean_ctor_get(x_7, 0);
lean_inc(x_15);
lean_dec(x_7);
x_16 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__2;
lean_inc(x_1);
x_17 = l_Lean_Name_append(x_1, x_16);
x_18 = l___private_Lean_ToExpr_0__Lean_Name_toExprAux(x_1);
x_19 = lean_ctor_get(x_15, 0);
lean_inc(x_19);
x_20 = lean_ctor_get(x_19, 0);
lean_inc(x_20);
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = l_Lean_mkNatLit(x_21);
x_23 = lean_ctor_get(x_20, 1);
lean_inc(x_23);
lean_dec(x_20);
x_24 = l_Lean_mkNatLit(x_23);
x_25 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__17;
x_26 = lean_array_push(x_25, x_22);
x_27 = lean_array_push(x_26, x_24);
x_28 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__16;
x_29 = l_Lean_mkAppN(x_28, x_27);
lean_dec(x_27);
x_30 = lean_ctor_get(x_19, 1);
lean_inc(x_30);
x_31 = l_Lean_mkNatLit(x_30);
x_32 = lean_ctor_get(x_19, 2);
lean_inc(x_32);
x_33 = lean_ctor_get(x_32, 0);
lean_inc(x_33);
x_34 = l_Lean_mkNatLit(x_33);
x_35 = lean_ctor_get(x_32, 1);
lean_inc(x_35);
lean_dec(x_32);
x_36 = l_Lean_mkNatLit(x_35);
x_37 = lean_array_push(x_25, x_34);
x_38 = lean_array_push(x_37, x_36);
x_39 = l_Lean_mkAppN(x_28, x_38);
lean_dec(x_38);
x_40 = lean_ctor_get(x_19, 3);
lean_inc(x_40);
lean_dec(x_19);
x_41 = l_Lean_mkNatLit(x_40);
x_42 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__18;
x_43 = lean_array_push(x_42, x_29);
x_44 = lean_array_push(x_43, x_31);
x_45 = lean_array_push(x_44, x_39);
x_46 = lean_array_push(x_45, x_41);
x_47 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__13;
x_48 = l_Lean_mkAppN(x_47, x_46);
lean_dec(x_46);
x_49 = lean_ctor_get(x_15, 1);
lean_inc(x_49);
lean_dec(x_15);
x_50 = lean_ctor_get(x_49, 0);
lean_inc(x_50);
x_51 = lean_ctor_get(x_50, 0);
lean_inc(x_51);
x_52 = l_Lean_mkNatLit(x_51);
x_53 = lean_ctor_get(x_50, 1);
lean_inc(x_53);
lean_dec(x_50);
x_54 = l_Lean_mkNatLit(x_53);
x_55 = lean_array_push(x_25, x_52);
x_56 = lean_array_push(x_55, x_54);
x_57 = l_Lean_mkAppN(x_28, x_56);
lean_dec(x_56);
x_58 = lean_ctor_get(x_49, 1);
lean_inc(x_58);
x_59 = l_Lean_mkNatLit(x_58);
x_60 = lean_ctor_get(x_49, 2);
lean_inc(x_60);
x_61 = lean_ctor_get(x_60, 0);
lean_inc(x_61);
x_62 = l_Lean_mkNatLit(x_61);
x_63 = lean_ctor_get(x_60, 1);
lean_inc(x_63);
lean_dec(x_60);
x_64 = l_Lean_mkNatLit(x_63);
x_65 = lean_array_push(x_25, x_62);
x_66 = lean_array_push(x_65, x_64);
x_67 = l_Lean_mkAppN(x_28, x_66);
lean_dec(x_66);
x_68 = lean_ctor_get(x_49, 3);
lean_inc(x_68);
lean_dec(x_49);
x_69 = l_Lean_mkNatLit(x_68);
x_70 = lean_array_push(x_42, x_57);
x_71 = lean_array_push(x_70, x_59);
x_72 = lean_array_push(x_71, x_67);
x_73 = lean_array_push(x_72, x_69);
x_74 = l_Lean_mkAppN(x_47, x_73);
lean_dec(x_73);
x_75 = lean_array_push(x_25, x_48);
x_76 = lean_array_push(x_75, x_74);
x_77 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__10;
x_78 = l_Lean_mkAppN(x_77, x_76);
lean_dec(x_76);
x_79 = lean_array_push(x_25, x_18);
x_80 = lean_array_push(x_79, x_78);
x_81 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__6;
x_82 = l_Lean_mkAppN(x_81, x_80);
lean_dec(x_80);
x_83 = l_Lean_declareBuiltin(x_17, x_82, x_3, x_4, x_14);
return x_83;
}
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("docString", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_declareBuiltinDocStringAndRanges___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("addBuiltinDocString", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3;
x_2 = l_Lean_declareBuiltinDocStringAndRanges___closed__3;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_declareBuiltinDocStringAndRanges___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_declareBuiltinDocStringAndRanges___closed__4;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_declareBuiltinDocStringAndRanges(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; uint8_t x_9; lean_object* x_10; lean_object* x_11; 
x_5 = lean_st_ref_get(x_3, x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec(x_5);
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_8);
lean_dec(x_6);
x_9 = 0;
lean_inc(x_1);
x_10 = l_Lean_findSimpleDocString_x3f(x_8, x_1, x_9, x_7);
lean_dec(x_8);
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_box(0);
x_14 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1(x_1, x_13, x_2, x_3, x_12);
return x_14;
}
else
{
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; 
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 = l_Lean_declareBuiltinDocStringAndRanges___closed__2;
lean_inc(x_1);
x_18 = l_Lean_Name_append(x_1, x_17);
lean_inc(x_1);
x_19 = l___private_Lean_ToExpr_0__Lean_Name_toExprAux(x_1);
x_20 = l_Lean_mkStrLit(x_16);
x_21 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__17;
x_22 = lean_array_push(x_21, x_19);
x_23 = lean_array_push(x_22, x_20);
x_24 = l_Lean_declareBuiltinDocStringAndRanges___closed__5;
x_25 = l_Lean_mkAppN(x_24, x_23);
lean_dec(x_23);
x_26 = l_Lean_declareBuiltin(x_18, x_25, x_2, x_3, x_15);
if (lean_obj_tag(x_26) == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_26, 1);
lean_inc(x_28);
lean_dec(x_26);
x_29 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1(x_1, x_27, x_2, x_3, x_28);
lean_dec(x_27);
return x_29;
}
else
{
uint8_t x_30; 
lean_dec(x_1);
x_30 = !lean_is_exclusive(x_26);
if (x_30 == 0)
{
return x_26;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_26, 0);
x_32 = lean_ctor_get(x_26, 1);
lean_inc(x_32);
lean_inc(x_31);
lean_dec(x_26);
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;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_isRec___at_Lean_declareBuiltinDocStringAndRanges___spec__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_Lean_isRec___at_Lean_declareBuiltinDocStringAndRanges___spec__2(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3___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_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___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) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___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_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_declareBuiltinDocStringAndRanges___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_declareBuiltinDocStringAndRanges___lambda__1(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_declareBuiltinDocStringAndRanges___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_Lean_declareBuiltinDocStringAndRanges(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
lean_inc(x_4);
x_7 = l_Lean_Attribute_Builtin_ensureNoArgs(x_2, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_7, 1);
lean_inc(x_8);
lean_dec(x_7);
x_9 = l_Lean_declareBuiltinDocStringAndRanges(x_1, x_4, x_5, x_8);
lean_dec(x_4);
return x_9;
}
else
{
uint8_t x_10; 
lean_dec(x_4);
lean_dec(x_1);
x_10 = !lean_is_exclusive(x_7);
if (x_10 == 0)
{
return x_7;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
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_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set(x_13, 1, x_12);
return x_13;
}
}
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attribute cannot be erased", 26, 26);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____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; 
x_5 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__2;
x_6 = l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(x_5, x_2, x_3, x_4);
return x_6;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("initFn", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__1;
x_2 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_@", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__3;
x_2 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__4;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__5;
x_2 = l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("BuiltinDocAttr", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__6;
x_2 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__7;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_hyg", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__8;
x_2 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__9;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__10;
x_2 = lean_unsigned_to_nat(208u);
x_3 = l_Lean_Name_num___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("builtin_doc", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__12;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("make the docs and location of this declaration available as a builtin", 69, 69);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5; 
x_1 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__11;
x_2 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__13;
x_3 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__14;
x_4 = 0;
x_5 = lean_alloc_ctor(0, 3, 1);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set_uint8(x_5, sizeof(void*)*3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__1___boxed), 6, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__15;
x_2 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__16;
x_3 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__17;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__18;
x_3 = l_Lean_registerBuiltinAttribute(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____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) {
_start:
{
uint8_t x_7; lean_object* x_8; 
x_7 = lean_unbox(x_3);
lean_dec(x_3);
x_8 = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__1(x_1, x_2, x_7, x_4, x_5, x_6);
lean_dec(x_5);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____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_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_5;
}
}
lean_object* initialize_Lean_Compiler_InitAttr(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_DocString_Extension(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_BuiltinDocAttr(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_Compiler_InitAttr(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_DocString_Extension(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3___closed__1 = _init_l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3___closed__1();
lean_mark_persistent(l_Lean_findDeclarationRangesCore_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__3___closed__1);
l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1___closed__1 = _init_l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1___closed__1();
lean_mark_persistent(l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___lambda__1___closed__1);
l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___closed__1 = _init_l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___closed__1();
lean_mark_persistent(l_Lean_findDeclarationRanges_x3f___at_Lean_declareBuiltinDocStringAndRanges___spec__1___closed__1);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__1 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__1();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__1);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__2 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__2();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__2);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__3);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__4 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__4();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__4);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__5 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__5();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__5);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__6 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__6();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__6);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__7 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__7();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__7);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__8 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__8();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__8);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__9 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__9();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__9);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__10 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__10();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__10);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__11 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__11();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__11);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__12 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__12();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__12);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__13 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__13();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__13);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__14 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__14();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__14);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__15 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__15();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__15);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__16 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__16();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__16);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__17 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__17();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__17);
l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__18 = _init_l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__18();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___lambda__1___closed__18);
l_Lean_declareBuiltinDocStringAndRanges___closed__1 = _init_l_Lean_declareBuiltinDocStringAndRanges___closed__1();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___closed__1);
l_Lean_declareBuiltinDocStringAndRanges___closed__2 = _init_l_Lean_declareBuiltinDocStringAndRanges___closed__2();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___closed__2);
l_Lean_declareBuiltinDocStringAndRanges___closed__3 = _init_l_Lean_declareBuiltinDocStringAndRanges___closed__3();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___closed__3);
l_Lean_declareBuiltinDocStringAndRanges___closed__4 = _init_l_Lean_declareBuiltinDocStringAndRanges___closed__4();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___closed__4);
l_Lean_declareBuiltinDocStringAndRanges___closed__5 = _init_l_Lean_declareBuiltinDocStringAndRanges___closed__5();
lean_mark_persistent(l_Lean_declareBuiltinDocStringAndRanges___closed__5);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__1 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__1();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__1);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__2 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__2();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____lambda__2___closed__2);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__1 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__1();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__1);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__2 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__2();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__2);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__3 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__3();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__3);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__4 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__4();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__4);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__5 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__5();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__5);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__6 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__6();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__6);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__7 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__7();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__7);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__8 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__8();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__8);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__9 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__9();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__9);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__10 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__10();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__10);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__11 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__11();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__11);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__12 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__12();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__12);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__13 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__13();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__13);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__14 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__14();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__14);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__15 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__15();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__15);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__16 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__16();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__16);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__17 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__17();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__17);
l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__18 = _init_l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__18();
lean_mark_persistent(l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208____closed__18);
if (builtin) {res = l_Lean_initFn____x40_Lean_BuiltinDocAttr___hyg_208_(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
