// Lean compiler output
// Module: Lean.Exception
// Imports: Init Lean.Message Lean.InternalExceptionId Lean.Data.Options Lean.Util.MonadCache
#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_object* l_Lean_InternalExceptionId_toString(lean_object*);
lean_object* l_Lean_stringToMessageData(lean_object*);
static lean_object* l_Lean_termThrowError_______closed__6;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__2;
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg___lambda__2(lean_object*, lean_object*);
lean_object* lean_name_mk_string(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__4;
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__10;
static lean_object* l_Lean_termThrowError_______closed__2;
static lean_object* l_Lean_termThrowErrorAt_________closed__6;
static lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___closed__1;
static lean_object* l_Lean_throwUnknownConstant___rarg___closed__4;
static lean_object* l_Lean_instInhabitedException___closed__2;
extern lean_object* l_Lean_maxRecDepthErrorMessage;
static lean_object* l_Lean_termThrowError_______closed__13;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__20;
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg___lambda__3(lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__12;
static lean_object* l_Lean_termThrowError_______closed__17;
static lean_object* l_Lean_termThrowError_______closed__1;
LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___rarg(lean_object*, lean_object*, lean_object*);
uint8_t lean_name_eq(lean_object*, lean_object*);
static lean_object* l_Lean_termThrowErrorAt_________closed__8;
lean_object* l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(lean_object*, lean_object*);
static lean_object* l_Lean_termThrowErrorAt_________closed__2;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_termThrowError____;
lean_object* lean_array_push(lean_object*, lean_object*);
extern lean_object* l_Lean_interpolatedStrKind;
static lean_object* l_Lean_termThrowError_______closed__4;
LEAN_EXPORT lean_object* l_Lean_throwKernelException(lean_object*, lean_object*);
static lean_object* l_Lean_termThrowErrorAt_________closed__1;
static lean_object* l_Lean_termThrowError_______closed__9;
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthStateRefT_x27(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1(lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_termThrowError_______closed__8;
lean_object* lean_nat_add(lean_object*, lean_object*);
static lean_object* l_Lean_throwUnknownConstant___rarg___closed__2;
static lean_object* l_Lean_instInhabitedException___closed__1;
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg___lambda__2___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__19;
static lean_object* l_Lean_termThrowError_______closed__15;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__11;
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_termThrowError_______closed__14;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__23;
static lean_object* l_Lean_termThrowErrorAt_________closed__7;
static lean_object* l_Lean_termThrowError_______closed__18;
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthMonadCacheT___rarg(lean_object*);
static lean_object* l_Lean_termThrowError_______closed__3;
static lean_object* l_Lean_termThrowError_______closed__5;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__2;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__27;
static lean_object* l_Lean_throwUnknownConstant___rarg___closed__1;
LEAN_EXPORT lean_object* l_Lean_throwKernelException___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instAddErrorMessageContext___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__9;
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__5;
LEAN_EXPORT lean_object* l_Lean_instAddErrorMessageContext(lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__8;
LEAN_EXPORT lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17;
static lean_object* l_Lean_termThrowErrorAt_________closed__5;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__26;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__1;
LEAN_EXPORT lean_object* l_Lean_instAddErrorMessageContext___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg(lean_object*);
static lean_object* l_Lean_termThrowErrorAt_________closed__3;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__21;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__6;
static lean_object* l_Lean_throwUnknownConstant___rarg___closed__3;
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__13;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Exception_getRef___boxed(lean_object*);
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___rarg___lambda__1(lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__3;
LEAN_EXPORT lean_object* l_Lean_throwError(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instInhabitedException;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__2;
static lean_object* l_Lean_termThrowError_______closed__10;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__22;
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth(lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__3;
static lean_object* l_Lean_termThrowError_______closed__7;
lean_object* l_Lean_Syntax_getKind(lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6;
LEAN_EXPORT lean_object* l_Lean_throwKernelException___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___rarg___lambda__1___boxed(lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__4;
static lean_object* l_Lean_termThrowError_______closed__16;
LEAN_EXPORT lean_object* l_Lean_Exception_getRef(lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwErrorAt(lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__18;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__5;
LEAN_EXPORT lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_termThrowError_______closed__19;
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__7;
static lean_object* l_Lean_termThrowError_______closed__11;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_termThrowErrorAt______;
LEAN_EXPORT lean_object* l_Lean_throwError___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthStateRefT_x27___rarg(lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__14;
static lean_object* l_Lean_termThrowErrorAt_________closed__4;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__16;
LEAN_EXPORT lean_object* l_Lean_ofExcept(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg___lambda__3___boxed(lean_object*, lean_object*);
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__7;
static lean_object* l_Lean_termThrowError_______closed__12;
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__25;
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthStateRefT_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Exception_toMessageData(lean_object*);
static lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__24;
LEAN_EXPORT lean_object* l_Lean_ofExcept___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Exception_toMessageData(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 1);
lean_inc(x_2);
lean_dec(x_1);
return x_2;
}
else
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
lean_dec(x_1);
x_4 = l_Lean_InternalExceptionId_toString(x_3);
x_5 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_5, 0, x_4);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Exception_getRef(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
return x_2;
}
else
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Exception_getRef___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Exception_getRef(x_1);
lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instInhabitedException___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instInhabitedException___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instInhabitedException___closed__1;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instInhabitedException() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedException___closed__2;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instAddErrorMessageContext___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; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
lean_dec(x_4);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_2);
lean_ctor_set(x_6, 1, x_3);
x_7 = lean_apply_2(x_5, lean_box(0), x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_instAddErrorMessageContext___rarg(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; 
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
x_6 = lean_apply_1(x_1, x_4);
x_7 = lean_alloc_closure((void*)(l_Lean_instAddErrorMessageContext___rarg___lambda__1), 3, 2);
lean_closure_set(x_7, 0, x_2);
lean_closure_set(x_7, 1, x_3);
x_8 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_6, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_instAddErrorMessageContext(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_instAddErrorMessageContext___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_2, 1);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec(x_1);
lean_inc(x_4);
lean_inc(x_3);
x_6 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_6, 0, x_3);
lean_ctor_set(x_6, 1, x_4);
x_7 = lean_ctor_get(x_5, 0);
lean_inc(x_7);
lean_dec(x_5);
x_8 = lean_apply_2(x_7, lean_box(0), x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___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; lean_object* x_8; 
x_5 = lean_ctor_get(x_1, 2);
lean_inc(x_5);
x_6 = lean_apply_2(x_5, x_4, x_2);
x_7 = lean_alloc_closure((void*)(l_Lean_throwError___rarg___lambda__1___boxed), 2, 1);
lean_closure_set(x_7, 0, x_1);
x_8 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_6, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___rarg(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; 
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec(x_5);
lean_inc(x_4);
x_7 = lean_alloc_closure((void*)(l_Lean_throwError___rarg___lambda__2), 4, 3);
lean_closure_set(x_7, 0, x_2);
lean_closure_set(x_7, 1, x_3);
lean_closure_set(x_7, 2, x_4);
x_8 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_6, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_throwError___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_throwError___rarg___lambda__1(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_throwUnknownConstant___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("unknown constant '");
return x_1;
}
}
static lean_object* _init_l_Lean_throwUnknownConstant___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_throwUnknownConstant___rarg___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_throwUnknownConstant___rarg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("'");
return x_1;
}
}
static lean_object* _init_l_Lean_throwUnknownConstant___rarg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_throwUnknownConstant___rarg___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant___rarg(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_box(0);
x_5 = l_Lean_mkConst(x_3, x_4);
x_6 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_6, 0, x_5);
x_7 = l_Lean_throwUnknownConstant___rarg___closed__2;
x_8 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_6);
x_9 = l_Lean_throwUnknownConstant___rarg___closed__4;
x_10 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
x_11 = l_Lean_throwError___rarg(x_1, x_2, x_10);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_throwUnknownConstant(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_throwUnknownConstant___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = l_Lean_replaceRef(x_1, x_4);
x_6 = lean_ctor_get(x_2, 1);
lean_inc(x_6);
lean_dec(x_2);
x_7 = lean_apply_3(x_6, lean_box(0), x_5, x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
lean_inc(x_1);
x_6 = l_Lean_throwError___rarg(x_1, x_2, x_4);
x_7 = lean_ctor_get(x_1, 1);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_ctor_get(x_5, 0);
lean_inc(x_8);
x_9 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___rarg___lambda__1___boxed), 4, 3);
lean_closure_set(x_9, 0, x_3);
lean_closure_set(x_9, 1, x_5);
lean_closure_set(x_9, 2, x_6);
x_10 = lean_apply_4(x_7, lean_box(0), lean_box(0), x_8, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_throwErrorAt___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_throwErrorAt___rarg___lambda__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_throwErrorAt___rarg___lambda__1(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
x_6 = lean_apply_1(x_3, x_5);
x_7 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_7, 0, x_6);
x_8 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_8, 0, x_7);
x_9 = l_Lean_throwError___rarg(x_1, x_2, x_8);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
lean_dec(x_3);
lean_dec(x_2);
x_10 = lean_ctor_get(x_4, 0);
lean_inc(x_10);
lean_dec(x_4);
x_11 = lean_ctor_get(x_1, 0);
lean_inc(x_11);
lean_dec(x_1);
x_12 = lean_ctor_get(x_11, 1);
lean_inc(x_12);
lean_dec(x_11);
x_13 = lean_apply_2(x_12, lean_box(0), x_10);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Lean_ofExcept___rarg), 4, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_throwKernelException___rarg___lambda__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; 
x_5 = l_Lean_KernelException_toMessageData(x_1, x_4);
x_6 = l_Lean_throwError___rarg(x_2, x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_throwKernelException___rarg(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_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_alloc_closure((void*)(l_Lean_throwKernelException___rarg___lambda__1), 4, 3);
lean_closure_set(x_6, 0, x_4);
lean_closure_set(x_6, 1, x_1);
lean_closure_set(x_6, 2, x_2);
x_7 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_3, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_throwKernelException(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_throwKernelException___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg___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_object* x_8; 
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_apply_1(x_4, x_5);
x_8 = lean_apply_3(x_6, lean_box(0), x_3, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg___lambda__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg___lambda__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_ctor_get(x_1, 2);
lean_inc(x_3);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
lean_inc(x_1);
x_2 = lean_alloc_closure((void*)(l_Lean_instMonadRecDepthReaderT___rarg___lambda__1), 5, 1);
lean_closure_set(x_2, 0, x_1);
lean_inc(x_1);
x_3 = lean_alloc_closure((void*)(l_Lean_instMonadRecDepthReaderT___rarg___lambda__2___boxed), 2, 1);
lean_closure_set(x_3, 0, x_1);
x_4 = lean_alloc_closure((void*)(l_Lean_instMonadRecDepthReaderT___rarg___lambda__3___boxed), 2, 1);
lean_closure_set(x_4, 0, x_1);
x_5 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_5, 0, x_2);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Lean_instMonadRecDepthReaderT___rarg), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instMonadRecDepthReaderT___rarg___lambda__2(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instMonadRecDepthReaderT___rarg___lambda__3(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthReaderT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_instMonadRecDepthReaderT(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthStateRefT_x27___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_instMonadRecDepthReaderT___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthStateRefT_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Lean_instMonadRecDepthStateRefT_x27___rarg), 1, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthStateRefT_x27___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_instMonadRecDepthStateRefT_x27(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthMonadCacheT___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_instMonadRecDepthReaderT___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthMonadCacheT(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = lean_alloc_closure((void*)(l_Lean_instMonadRecDepthMonadCacheT___rarg), 1, 0);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadRecDepthMonadCacheT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_instMonadRecDepthMonadCacheT(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___rarg___lambda__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; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec(x_1);
x_6 = lean_unsigned_to_nat(1u);
x_7 = lean_nat_add(x_2, x_6);
x_8 = lean_apply_3(x_5, lean_box(0), x_7, x_3);
return x_8;
}
}
static lean_object* _init_l_Lean_withIncRecDepth___rarg___lambda__2___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_maxRecDepthErrorMessage;
x_2 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_withIncRecDepth___rarg___lambda__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__1;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___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) {
_start:
{
lean_object* x_8; uint8_t x_9; 
lean_inc(x_2);
x_8 = lean_alloc_closure((void*)(l_Lean_withIncRecDepth___rarg___lambda__1___boxed), 4, 3);
lean_closure_set(x_8, 0, x_1);
lean_closure_set(x_8, 1, x_2);
lean_closure_set(x_8, 2, x_3);
x_9 = lean_nat_dec_eq(x_2, x_7);
lean_dec(x_2);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
lean_dec(x_6);
x_10 = lean_ctor_get(x_4, 0);
lean_inc(x_10);
lean_dec(x_4);
x_11 = lean_ctor_get(x_10, 1);
lean_inc(x_11);
lean_dec(x_10);
x_12 = lean_box(0);
x_13 = lean_apply_2(x_11, lean_box(0), x_12);
x_14 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_13, x_8);
return x_14;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = l_Lean_withIncRecDepth___rarg___lambda__2___closed__2;
x_16 = l_Lean_throwError___rarg(x_4, x_6, x_15);
x_17 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_16, x_8);
return x_17;
}
}
}
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_1, 2);
lean_inc(x_7);
lean_inc(x_4);
x_8 = lean_alloc_closure((void*)(l_Lean_withIncRecDepth___rarg___lambda__2___boxed), 7, 6);
lean_closure_set(x_8, 0, x_1);
lean_closure_set(x_8, 1, x_6);
lean_closure_set(x_8, 2, x_2);
lean_closure_set(x_8, 3, x_3);
lean_closure_set(x_8, 4, x_4);
lean_closure_set(x_8, 5, x_5);
x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___rarg(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; 
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
lean_inc(x_5);
x_7 = lean_alloc_closure((void*)(l_Lean_withIncRecDepth___rarg___lambda__3), 6, 5);
lean_closure_set(x_7, 0, x_3);
lean_closure_set(x_7, 1, x_4);
lean_closure_set(x_7, 2, x_1);
lean_closure_set(x_7, 3, x_5);
lean_closure_set(x_7, 4, x_2);
x_8 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_6, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_withIncRecDepth___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___rarg___lambda__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_withIncRecDepth___rarg___lambda__1(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_withIncRecDepth___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) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_withIncRecDepth___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_7);
return x_8;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Lean");
return x_1;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_termThrowError_______closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("termThrowError__");
return x_1;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termThrowError_______closed__2;
x_2 = l_Lean_termThrowError_______closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("andthen");
return x_1;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_termThrowError_______closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("throwError ");
return x_1;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_termThrowError_______closed__7;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("orelse");
return x_1;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_termThrowError_______closed__9;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("interpolatedStr");
return x_1;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_termThrowError_______closed__11;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("term");
return x_1;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_termThrowError_______closed__13;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termThrowError_______closed__14;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termThrowError_______closed__12;
x_2 = l_Lean_termThrowError_______closed__15;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_termThrowError_______closed__10;
x_2 = l_Lean_termThrowError_______closed__16;
x_3 = l_Lean_termThrowError_______closed__15;
x_4 = lean_alloc_ctor(2, 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;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_termThrowError_______closed__6;
x_2 = l_Lean_termThrowError_______closed__8;
x_3 = l_Lean_termThrowError_______closed__17;
x_4 = lean_alloc_ctor(2, 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;
}
}
static lean_object* _init_l_Lean_termThrowError_______closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_termThrowError_______closed__4;
x_2 = lean_unsigned_to_nat(1022u);
x_3 = l_Lean_termThrowError_______closed__18;
x_4 = lean_alloc_ctor(3, 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;
}
}
static lean_object* _init_l_Lean_termThrowError____() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_termThrowError_______closed__19;
return x_1;
}
}
static lean_object* _init_l_Lean_termThrowErrorAt_________closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("termThrowErrorAt___");
return x_1;
}
}
static lean_object* _init_l_Lean_termThrowErrorAt_________closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termThrowError_______closed__2;
x_2 = l_Lean_termThrowErrorAt_________closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_termThrowErrorAt_________closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("throwErrorAt ");
return x_1;
}
}
static lean_object* _init_l_Lean_termThrowErrorAt_________closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_termThrowErrorAt_________closed__3;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_termThrowErrorAt_________closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termThrowError_______closed__14;
x_2 = lean_unsigned_to_nat(1024u);
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_termThrowErrorAt_________closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_termThrowError_______closed__6;
x_2 = l_Lean_termThrowErrorAt_________closed__4;
x_3 = l_Lean_termThrowErrorAt_________closed__5;
x_4 = lean_alloc_ctor(2, 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;
}
}
static lean_object* _init_l_Lean_termThrowErrorAt_________closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_termThrowError_______closed__6;
x_2 = l_Lean_termThrowErrorAt_________closed__6;
x_3 = l_Lean_termThrowError_______closed__17;
x_4 = lean_alloc_ctor(2, 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;
}
}
static lean_object* _init_l_Lean_termThrowErrorAt_________closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_termThrowErrorAt_________closed__2;
x_2 = lean_unsigned_to_nat(1022u);
x_3 = l_Lean_termThrowErrorAt_________closed__7;
x_4 = lean_alloc_ctor(3, 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;
}
}
static lean_object* _init_l_Lean_termThrowErrorAt______() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_termThrowErrorAt_________closed__8;
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Parser");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termThrowError_______closed__2;
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__1;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Term");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__2;
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__3;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("app");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__4;
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__5;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Lean.throwError");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__7;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__7;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__8;
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;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("throwError");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termThrowError_______closed__2;
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__10;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__11;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______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___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__12;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("null");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__14;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(1u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______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___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("paren");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__4;
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__18;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("(");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("termM!_");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termThrowError_______closed__2;
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__21;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("m!");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(2);
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15;
x_3 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__24;
x_4 = lean_alloc_ctor(1, 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;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string(")");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(3u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_termThrowError_______closed__4;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
lean_dec(x_1);
lean_inc(x_9);
x_10 = l_Lean_Syntax_getKind(x_9);
x_11 = l_Lean_interpolatedStrKind;
x_12 = lean_name_eq(x_10, x_11);
lean_dec(x_10);
if (x_12 == 0)
{
lean_object* x_13; uint8_t x_14; 
lean_inc(x_2);
x_13 = l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(x_2, x_3);
x_14 = !lean_is_exclusive(x_13);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 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; 
x_15 = lean_ctor_get(x_13, 0);
x_16 = lean_ctor_get(x_2, 2);
lean_inc(x_16);
x_17 = lean_ctor_get(x_2, 1);
lean_inc(x_17);
lean_dec(x_2);
x_18 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__11;
x_19 = l_Lean_addMacroScope(x_17, x_18, x_16);
x_20 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__9;
x_21 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__13;
x_22 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_22, 0, x_15);
lean_ctor_set(x_22, 1, x_20);
lean_ctor_set(x_22, 2, x_19);
lean_ctor_set(x_22, 3, x_21);
x_23 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__16;
x_24 = lean_array_push(x_23, x_9);
x_25 = lean_box(2);
x_26 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15;
x_27 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
lean_ctor_set(x_27, 2, x_24);
x_28 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17;
x_29 = lean_array_push(x_28, x_22);
x_30 = lean_array_push(x_29, x_27);
x_31 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6;
x_32 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_32, 0, x_25);
lean_ctor_set(x_32, 1, x_31);
lean_ctor_set(x_32, 2, x_30);
lean_ctor_set(x_13, 0, x_32);
return x_13;
}
else
{
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; 
x_33 = lean_ctor_get(x_13, 0);
x_34 = lean_ctor_get(x_13, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_13);
x_35 = lean_ctor_get(x_2, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_2, 1);
lean_inc(x_36);
lean_dec(x_2);
x_37 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__11;
x_38 = l_Lean_addMacroScope(x_36, x_37, x_35);
x_39 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__9;
x_40 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__13;
x_41 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_41, 0, x_33);
lean_ctor_set(x_41, 1, x_39);
lean_ctor_set(x_41, 2, x_38);
lean_ctor_set(x_41, 3, x_40);
x_42 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__16;
x_43 = lean_array_push(x_42, x_9);
x_44 = lean_box(2);
x_45 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15;
x_46 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_46, 0, x_44);
lean_ctor_set(x_46, 1, x_45);
lean_ctor_set(x_46, 2, x_43);
x_47 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17;
x_48 = lean_array_push(x_47, x_41);
x_49 = lean_array_push(x_48, x_46);
x_50 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6;
x_51 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_51, 0, x_44);
lean_ctor_set(x_51, 1, x_50);
lean_ctor_set(x_51, 2, x_49);
x_52 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_52, 0, x_51);
lean_ctor_set(x_52, 1, x_34);
return x_52;
}
}
else
{
lean_object* x_53; uint8_t x_54; 
lean_inc(x_2);
x_53 = l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(x_2, x_3);
x_54 = !lean_is_exclusive(x_53);
if (x_54 == 0)
{
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; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; 
x_55 = lean_ctor_get(x_53, 0);
x_56 = lean_ctor_get(x_2, 2);
lean_inc(x_56);
x_57 = lean_ctor_get(x_2, 1);
lean_inc(x_57);
lean_dec(x_2);
x_58 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__11;
x_59 = l_Lean_addMacroScope(x_57, x_58, x_56);
x_60 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__9;
x_61 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__13;
lean_inc(x_55);
x_62 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_62, 0, x_55);
lean_ctor_set(x_62, 1, x_60);
lean_ctor_set(x_62, 2, x_59);
lean_ctor_set(x_62, 3, x_61);
x_63 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__20;
lean_inc(x_55);
x_64 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_64, 0, x_55);
lean_ctor_set(x_64, 1, x_63);
x_65 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__23;
lean_inc(x_55);
x_66 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_66, 0, x_55);
lean_ctor_set(x_66, 1, x_65);
x_67 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17;
x_68 = lean_array_push(x_67, x_66);
x_69 = lean_array_push(x_68, x_9);
x_70 = lean_box(2);
x_71 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__22;
x_72 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_72, 0, x_70);
lean_ctor_set(x_72, 1, x_71);
lean_ctor_set(x_72, 2, x_69);
x_73 = lean_array_push(x_67, x_72);
x_74 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__25;
x_75 = lean_array_push(x_73, x_74);
x_76 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15;
x_77 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_77, 0, x_70);
lean_ctor_set(x_77, 1, x_76);
lean_ctor_set(x_77, 2, x_75);
x_78 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__26;
x_79 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_79, 0, x_55);
lean_ctor_set(x_79, 1, x_78);
x_80 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__27;
x_81 = lean_array_push(x_80, x_64);
x_82 = lean_array_push(x_81, x_77);
x_83 = lean_array_push(x_82, x_79);
x_84 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__19;
x_85 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_85, 0, x_70);
lean_ctor_set(x_85, 1, x_84);
lean_ctor_set(x_85, 2, x_83);
x_86 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__16;
x_87 = lean_array_push(x_86, x_85);
x_88 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_88, 0, x_70);
lean_ctor_set(x_88, 1, x_76);
lean_ctor_set(x_88, 2, x_87);
x_89 = lean_array_push(x_67, x_62);
x_90 = lean_array_push(x_89, x_88);
x_91 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6;
x_92 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_92, 0, x_70);
lean_ctor_set(x_92, 1, x_91);
lean_ctor_set(x_92, 2, x_90);
lean_ctor_set(x_53, 0, x_92);
return x_53;
}
else
{
lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; 
x_93 = lean_ctor_get(x_53, 0);
x_94 = lean_ctor_get(x_53, 1);
lean_inc(x_94);
lean_inc(x_93);
lean_dec(x_53);
x_95 = lean_ctor_get(x_2, 2);
lean_inc(x_95);
x_96 = lean_ctor_get(x_2, 1);
lean_inc(x_96);
lean_dec(x_2);
x_97 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__11;
x_98 = l_Lean_addMacroScope(x_96, x_97, x_95);
x_99 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__9;
x_100 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__13;
lean_inc(x_93);
x_101 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_101, 0, x_93);
lean_ctor_set(x_101, 1, x_99);
lean_ctor_set(x_101, 2, x_98);
lean_ctor_set(x_101, 3, x_100);
x_102 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__20;
lean_inc(x_93);
x_103 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_103, 0, x_93);
lean_ctor_set(x_103, 1, x_102);
x_104 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__23;
lean_inc(x_93);
x_105 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_105, 0, x_93);
lean_ctor_set(x_105, 1, x_104);
x_106 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17;
x_107 = lean_array_push(x_106, x_105);
x_108 = lean_array_push(x_107, x_9);
x_109 = lean_box(2);
x_110 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__22;
x_111 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_111, 0, x_109);
lean_ctor_set(x_111, 1, x_110);
lean_ctor_set(x_111, 2, x_108);
x_112 = lean_array_push(x_106, x_111);
x_113 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__25;
x_114 = lean_array_push(x_112, x_113);
x_115 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15;
x_116 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_116, 0, x_109);
lean_ctor_set(x_116, 1, x_115);
lean_ctor_set(x_116, 2, x_114);
x_117 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__26;
x_118 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_118, 0, x_93);
lean_ctor_set(x_118, 1, x_117);
x_119 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__27;
x_120 = lean_array_push(x_119, x_103);
x_121 = lean_array_push(x_120, x_116);
x_122 = lean_array_push(x_121, x_118);
x_123 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__19;
x_124 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_124, 0, x_109);
lean_ctor_set(x_124, 1, x_123);
lean_ctor_set(x_124, 2, x_122);
x_125 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__16;
x_126 = lean_array_push(x_125, x_124);
x_127 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_127, 0, x_109);
lean_ctor_set(x_127, 1, x_115);
lean_ctor_set(x_127, 2, x_126);
x_128 = lean_array_push(x_106, x_101);
x_129 = lean_array_push(x_128, x_127);
x_130 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6;
x_131 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_131, 0, x_109);
lean_ctor_set(x_131, 1, x_130);
lean_ctor_set(x_131, 2, x_129);
x_132 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_132, 0, x_131);
lean_ctor_set(x_132, 1, x_94);
return x_132;
}
}
}
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("Lean.throwErrorAt");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__1;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__2;
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;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string("throwErrorAt");
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termThrowError_______closed__2;
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__4;
x_3 = lean_name_mk_string(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________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___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__5;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_termThrowErrorAt_________closed__2;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_2);
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_8 = lean_unsigned_to_nat(1u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(2u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_dec(x_1);
lean_inc(x_11);
x_12 = l_Lean_Syntax_getKind(x_11);
x_13 = l_Lean_interpolatedStrKind;
x_14 = lean_name_eq(x_12, x_13);
lean_dec(x_12);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
lean_inc(x_2);
x_15 = l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(x_2, x_3);
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
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; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = lean_ctor_get(x_2, 2);
lean_inc(x_18);
x_19 = lean_ctor_get(x_2, 1);
lean_inc(x_19);
lean_dec(x_2);
x_20 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__5;
x_21 = l_Lean_addMacroScope(x_19, x_20, x_18);
x_22 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__3;
x_23 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__7;
x_24 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_24, 0, x_17);
lean_ctor_set(x_24, 1, x_22);
lean_ctor_set(x_24, 2, x_21);
lean_ctor_set(x_24, 3, x_23);
x_25 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17;
x_26 = lean_array_push(x_25, x_9);
x_27 = lean_array_push(x_26, x_11);
x_28 = lean_box(2);
x_29 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15;
x_30 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_30, 0, x_28);
lean_ctor_set(x_30, 1, x_29);
lean_ctor_set(x_30, 2, x_27);
x_31 = lean_array_push(x_25, x_24);
x_32 = lean_array_push(x_31, x_30);
x_33 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6;
x_34 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_34, 0, x_28);
lean_ctor_set(x_34, 1, x_33);
lean_ctor_set(x_34, 2, x_32);
lean_ctor_set(x_15, 0, x_34);
return x_15;
}
else
{
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; 
x_35 = lean_ctor_get(x_15, 0);
x_36 = lean_ctor_get(x_15, 1);
lean_inc(x_36);
lean_inc(x_35);
lean_dec(x_15);
x_37 = lean_ctor_get(x_2, 2);
lean_inc(x_37);
x_38 = lean_ctor_get(x_2, 1);
lean_inc(x_38);
lean_dec(x_2);
x_39 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__5;
x_40 = l_Lean_addMacroScope(x_38, x_39, x_37);
x_41 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__3;
x_42 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__7;
x_43 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_43, 0, x_35);
lean_ctor_set(x_43, 1, x_41);
lean_ctor_set(x_43, 2, x_40);
lean_ctor_set(x_43, 3, x_42);
x_44 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17;
x_45 = lean_array_push(x_44, x_9);
x_46 = lean_array_push(x_45, x_11);
x_47 = lean_box(2);
x_48 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15;
x_49 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_49, 0, x_47);
lean_ctor_set(x_49, 1, x_48);
lean_ctor_set(x_49, 2, x_46);
x_50 = lean_array_push(x_44, x_43);
x_51 = lean_array_push(x_50, x_49);
x_52 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6;
x_53 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_53, 0, x_47);
lean_ctor_set(x_53, 1, x_52);
lean_ctor_set(x_53, 2, x_51);
x_54 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_54, 0, x_53);
lean_ctor_set(x_54, 1, x_36);
return x_54;
}
}
else
{
lean_object* x_55; uint8_t x_56; 
lean_inc(x_2);
x_55 = l_Lean_MonadRef_mkInfoFromRefPos___at___aux__Init__Notation______macroRules__precMax__1___spec__1(x_2, x_3);
x_56 = !lean_is_exclusive(x_55);
if (x_56 == 0)
{
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; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_57 = lean_ctor_get(x_55, 0);
x_58 = lean_ctor_get(x_2, 2);
lean_inc(x_58);
x_59 = lean_ctor_get(x_2, 1);
lean_inc(x_59);
lean_dec(x_2);
x_60 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__5;
x_61 = l_Lean_addMacroScope(x_59, x_60, x_58);
x_62 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__3;
x_63 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__7;
lean_inc(x_57);
x_64 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_64, 0, x_57);
lean_ctor_set(x_64, 1, x_62);
lean_ctor_set(x_64, 2, x_61);
lean_ctor_set(x_64, 3, x_63);
x_65 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__20;
lean_inc(x_57);
x_66 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_66, 0, x_57);
lean_ctor_set(x_66, 1, x_65);
x_67 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__23;
lean_inc(x_57);
x_68 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_68, 0, x_57);
lean_ctor_set(x_68, 1, x_67);
x_69 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17;
x_70 = lean_array_push(x_69, x_68);
x_71 = lean_array_push(x_70, x_11);
x_72 = lean_box(2);
x_73 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__22;
x_74 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_74, 0, x_72);
lean_ctor_set(x_74, 1, x_73);
lean_ctor_set(x_74, 2, x_71);
x_75 = lean_array_push(x_69, x_74);
x_76 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__25;
x_77 = lean_array_push(x_75, x_76);
x_78 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15;
x_79 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_79, 0, x_72);
lean_ctor_set(x_79, 1, x_78);
lean_ctor_set(x_79, 2, x_77);
x_80 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__26;
x_81 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_81, 0, x_57);
lean_ctor_set(x_81, 1, x_80);
x_82 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__27;
x_83 = lean_array_push(x_82, x_66);
x_84 = lean_array_push(x_83, x_79);
x_85 = lean_array_push(x_84, x_81);
x_86 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__19;
x_87 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_87, 0, x_72);
lean_ctor_set(x_87, 1, x_86);
lean_ctor_set(x_87, 2, x_85);
x_88 = lean_array_push(x_69, x_9);
x_89 = lean_array_push(x_88, x_87);
x_90 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_90, 0, x_72);
lean_ctor_set(x_90, 1, x_78);
lean_ctor_set(x_90, 2, x_89);
x_91 = lean_array_push(x_69, x_64);
x_92 = lean_array_push(x_91, x_90);
x_93 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6;
x_94 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_94, 0, x_72);
lean_ctor_set(x_94, 1, x_93);
lean_ctor_set(x_94, 2, x_92);
lean_ctor_set(x_55, 0, x_94);
return x_55;
}
else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; 
x_95 = lean_ctor_get(x_55, 0);
x_96 = lean_ctor_get(x_55, 1);
lean_inc(x_96);
lean_inc(x_95);
lean_dec(x_55);
x_97 = lean_ctor_get(x_2, 2);
lean_inc(x_97);
x_98 = lean_ctor_get(x_2, 1);
lean_inc(x_98);
lean_dec(x_2);
x_99 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__5;
x_100 = l_Lean_addMacroScope(x_98, x_99, x_97);
x_101 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__3;
x_102 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__7;
lean_inc(x_95);
x_103 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_103, 0, x_95);
lean_ctor_set(x_103, 1, x_101);
lean_ctor_set(x_103, 2, x_100);
lean_ctor_set(x_103, 3, x_102);
x_104 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__20;
lean_inc(x_95);
x_105 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_105, 0, x_95);
lean_ctor_set(x_105, 1, x_104);
x_106 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__23;
lean_inc(x_95);
x_107 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_107, 0, x_95);
lean_ctor_set(x_107, 1, x_106);
x_108 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17;
x_109 = lean_array_push(x_108, x_107);
x_110 = lean_array_push(x_109, x_11);
x_111 = lean_box(2);
x_112 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__22;
x_113 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_113, 0, x_111);
lean_ctor_set(x_113, 1, x_112);
lean_ctor_set(x_113, 2, x_110);
x_114 = lean_array_push(x_108, x_113);
x_115 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__25;
x_116 = lean_array_push(x_114, x_115);
x_117 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15;
x_118 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_118, 0, x_111);
lean_ctor_set(x_118, 1, x_117);
lean_ctor_set(x_118, 2, x_116);
x_119 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__26;
x_120 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_120, 0, x_95);
lean_ctor_set(x_120, 1, x_119);
x_121 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__27;
x_122 = lean_array_push(x_121, x_105);
x_123 = lean_array_push(x_122, x_118);
x_124 = lean_array_push(x_123, x_120);
x_125 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__19;
x_126 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_126, 0, x_111);
lean_ctor_set(x_126, 1, x_125);
lean_ctor_set(x_126, 2, x_124);
x_127 = lean_array_push(x_108, x_9);
x_128 = lean_array_push(x_127, x_126);
x_129 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_129, 0, x_111);
lean_ctor_set(x_129, 1, x_117);
lean_ctor_set(x_129, 2, x_128);
x_130 = lean_array_push(x_108, x_103);
x_131 = lean_array_push(x_130, x_129);
x_132 = l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6;
x_133 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_133, 0, x_111);
lean_ctor_set(x_133, 1, x_132);
lean_ctor_set(x_133, 2, x_131);
x_134 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_134, 0, x_133);
lean_ctor_set(x_134, 1, x_96);
return x_134;
}
}
}
}
}
lean_object* initialize_Init(lean_object*);
lean_object* initialize_Lean_Message(lean_object*);
lean_object* initialize_Lean_InternalExceptionId(lean_object*);
lean_object* initialize_Lean_Data_Options(lean_object*);
lean_object* initialize_Lean_Util_MonadCache(lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Exception(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_Message(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_InternalExceptionId(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Data_Options(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Util_MonadCache(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_instInhabitedException___closed__1 = _init_l_Lean_instInhabitedException___closed__1();
lean_mark_persistent(l_Lean_instInhabitedException___closed__1);
l_Lean_instInhabitedException___closed__2 = _init_l_Lean_instInhabitedException___closed__2();
lean_mark_persistent(l_Lean_instInhabitedException___closed__2);
l_Lean_instInhabitedException = _init_l_Lean_instInhabitedException();
lean_mark_persistent(l_Lean_instInhabitedException);
l_Lean_throwUnknownConstant___rarg___closed__1 = _init_l_Lean_throwUnknownConstant___rarg___closed__1();
lean_mark_persistent(l_Lean_throwUnknownConstant___rarg___closed__1);
l_Lean_throwUnknownConstant___rarg___closed__2 = _init_l_Lean_throwUnknownConstant___rarg___closed__2();
lean_mark_persistent(l_Lean_throwUnknownConstant___rarg___closed__2);
l_Lean_throwUnknownConstant___rarg___closed__3 = _init_l_Lean_throwUnknownConstant___rarg___closed__3();
lean_mark_persistent(l_Lean_throwUnknownConstant___rarg___closed__3);
l_Lean_throwUnknownConstant___rarg___closed__4 = _init_l_Lean_throwUnknownConstant___rarg___closed__4();
lean_mark_persistent(l_Lean_throwUnknownConstant___rarg___closed__4);
l_Lean_withIncRecDepth___rarg___lambda__2___closed__1 = _init_l_Lean_withIncRecDepth___rarg___lambda__2___closed__1();
lean_mark_persistent(l_Lean_withIncRecDepth___rarg___lambda__2___closed__1);
l_Lean_withIncRecDepth___rarg___lambda__2___closed__2 = _init_l_Lean_withIncRecDepth___rarg___lambda__2___closed__2();
lean_mark_persistent(l_Lean_withIncRecDepth___rarg___lambda__2___closed__2);
l_Lean_termThrowError_______closed__1 = _init_l_Lean_termThrowError_______closed__1();
lean_mark_persistent(l_Lean_termThrowError_______closed__1);
l_Lean_termThrowError_______closed__2 = _init_l_Lean_termThrowError_______closed__2();
lean_mark_persistent(l_Lean_termThrowError_______closed__2);
l_Lean_termThrowError_______closed__3 = _init_l_Lean_termThrowError_______closed__3();
lean_mark_persistent(l_Lean_termThrowError_______closed__3);
l_Lean_termThrowError_______closed__4 = _init_l_Lean_termThrowError_______closed__4();
lean_mark_persistent(l_Lean_termThrowError_______closed__4);
l_Lean_termThrowError_______closed__5 = _init_l_Lean_termThrowError_______closed__5();
lean_mark_persistent(l_Lean_termThrowError_______closed__5);
l_Lean_termThrowError_______closed__6 = _init_l_Lean_termThrowError_______closed__6();
lean_mark_persistent(l_Lean_termThrowError_______closed__6);
l_Lean_termThrowError_______closed__7 = _init_l_Lean_termThrowError_______closed__7();
lean_mark_persistent(l_Lean_termThrowError_______closed__7);
l_Lean_termThrowError_______closed__8 = _init_l_Lean_termThrowError_______closed__8();
lean_mark_persistent(l_Lean_termThrowError_______closed__8);
l_Lean_termThrowError_______closed__9 = _init_l_Lean_termThrowError_______closed__9();
lean_mark_persistent(l_Lean_termThrowError_______closed__9);
l_Lean_termThrowError_______closed__10 = _init_l_Lean_termThrowError_______closed__10();
lean_mark_persistent(l_Lean_termThrowError_______closed__10);
l_Lean_termThrowError_______closed__11 = _init_l_Lean_termThrowError_______closed__11();
lean_mark_persistent(l_Lean_termThrowError_______closed__11);
l_Lean_termThrowError_______closed__12 = _init_l_Lean_termThrowError_______closed__12();
lean_mark_persistent(l_Lean_termThrowError_______closed__12);
l_Lean_termThrowError_______closed__13 = _init_l_Lean_termThrowError_______closed__13();
lean_mark_persistent(l_Lean_termThrowError_______closed__13);
l_Lean_termThrowError_______closed__14 = _init_l_Lean_termThrowError_______closed__14();
lean_mark_persistent(l_Lean_termThrowError_______closed__14);
l_Lean_termThrowError_______closed__15 = _init_l_Lean_termThrowError_______closed__15();
lean_mark_persistent(l_Lean_termThrowError_______closed__15);
l_Lean_termThrowError_______closed__16 = _init_l_Lean_termThrowError_______closed__16();
lean_mark_persistent(l_Lean_termThrowError_______closed__16);
l_Lean_termThrowError_______closed__17 = _init_l_Lean_termThrowError_______closed__17();
lean_mark_persistent(l_Lean_termThrowError_______closed__17);
l_Lean_termThrowError_______closed__18 = _init_l_Lean_termThrowError_______closed__18();
lean_mark_persistent(l_Lean_termThrowError_______closed__18);
l_Lean_termThrowError_______closed__19 = _init_l_Lean_termThrowError_______closed__19();
lean_mark_persistent(l_Lean_termThrowError_______closed__19);
l_Lean_termThrowError____ = _init_l_Lean_termThrowError____();
lean_mark_persistent(l_Lean_termThrowError____);
l_Lean_termThrowErrorAt_________closed__1 = _init_l_Lean_termThrowErrorAt_________closed__1();
lean_mark_persistent(l_Lean_termThrowErrorAt_________closed__1);
l_Lean_termThrowErrorAt_________closed__2 = _init_l_Lean_termThrowErrorAt_________closed__2();
lean_mark_persistent(l_Lean_termThrowErrorAt_________closed__2);
l_Lean_termThrowErrorAt_________closed__3 = _init_l_Lean_termThrowErrorAt_________closed__3();
lean_mark_persistent(l_Lean_termThrowErrorAt_________closed__3);
l_Lean_termThrowErrorAt_________closed__4 = _init_l_Lean_termThrowErrorAt_________closed__4();
lean_mark_persistent(l_Lean_termThrowErrorAt_________closed__4);
l_Lean_termThrowErrorAt_________closed__5 = _init_l_Lean_termThrowErrorAt_________closed__5();
lean_mark_persistent(l_Lean_termThrowErrorAt_________closed__5);
l_Lean_termThrowErrorAt_________closed__6 = _init_l_Lean_termThrowErrorAt_________closed__6();
lean_mark_persistent(l_Lean_termThrowErrorAt_________closed__6);
l_Lean_termThrowErrorAt_________closed__7 = _init_l_Lean_termThrowErrorAt_________closed__7();
lean_mark_persistent(l_Lean_termThrowErrorAt_________closed__7);
l_Lean_termThrowErrorAt_________closed__8 = _init_l_Lean_termThrowErrorAt_________closed__8();
lean_mark_persistent(l_Lean_termThrowErrorAt_________closed__8);
l_Lean_termThrowErrorAt______ = _init_l_Lean_termThrowErrorAt______();
lean_mark_persistent(l_Lean_termThrowErrorAt______);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__1 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__1();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__1);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__2 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__2();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__2);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__3 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__3();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__3);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__4 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__4();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__4);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__5 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__5();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__5);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__6);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__7 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__7();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__7);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__8 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__8();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__8);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__9 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__9();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__9);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__10 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__10();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__10);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__11 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__11();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__11);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__12 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__12();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__12);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__13 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__13();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__13);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__14 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__14();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__14);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__15);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__16 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__16();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__16);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__17);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__18 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__18();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__18);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__19 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__19();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__19);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__20 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__20();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__20);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__21 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__21();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__21);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__22 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__22();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__22);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__23 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__23();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__23);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__24 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__24();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__24);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__25 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__25();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__25);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__26 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__26();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__26);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__27 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__27();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowError______1___closed__27);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__1 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__1();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__1);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__2 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__2();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__2);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__3 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__3();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__3);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__4 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__4();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__4);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__5 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__5();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__5);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__6 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__6();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__6);
l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__7 = _init_l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__7();
lean_mark_persistent(l_Lean___aux__Lean__Exception______macroRules__Lean__termThrowErrorAt________1___closed__7);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
