// Lean compiler output
// Module: Lean.Elab.BuiltinEvalCommand
// Imports: Lean.Util.CollectAxioms Lean.Elab.Deriving.Basic Lean.Elab.MutualDef
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__4;
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEval(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__5;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__34;
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__21;
static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__1;
lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__3;
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__14;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__7;
lean_object* l_Lean_Meta_mkAppOptM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__2;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabEvalBang__1(lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4___closed__1;
LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__18___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__2;
lean_object* l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__2;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__36;
LEAN_EXPORT lean_object* l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__6;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabEval__1(lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunCmd___closed__3;
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__3;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__6;
lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10;
uint8_t l_Lean_Exception_isInterrupt(lean_object*);
lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_get_set_stdout(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd__1(lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__1;
lean_object* l_Lean_CollectAxioms_collect(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__6;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__4;
static lean_object* l_Lean_Elab_Command_elabRunCmd___closed__1;
static lean_object* l_Lean_Elab_Command_elabRunMeta___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__6;
lean_object* l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__16(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_elabTermEnsuringType(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__10;
lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunElab___lambda__1___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__3;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__45;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__1;
lean_object* l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1(lean_object*);
static lean_object* l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_eval_derive_repr;
lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__2;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__16;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_mkFreshMonadApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__7;
lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__9;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46_(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__2;
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__8;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
lean_object* l_Lean_Elab_applyDerivingHandlers(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__20;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__3;
lean_object* l_Lean_stringToMessageData(lean_object*);
lean_object* l_Lean_Elab_Term_elabMutualDef(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__25;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__25;
lean_object* l_List_head_x21___rarg(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_eval_type;
lean_object* l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunMeta___closed__4;
lean_object* l_Lean_Exception_toMessageData(lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunElab___closed__2;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__41;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__12;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__31;
static lean_object* l_Lean_Elab_Command_elabRunElab___closed__1;
static lean_object* l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122_(lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__22;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__8;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__18;
lean_object* l_Lean_Expr_appArg_x21(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__4;
uint8_t lean_string_validate_utf8(lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__8;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunElab___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Expr_hasSyntheticSorry(lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__6;
LEAN_EXPORT lean_object* l_IO_withStdin___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__4;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEval___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__7;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunElab(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__18(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__5;
LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7_(lean_object*);
lean_object* l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__1;
lean_object* lean_st_ref_take(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__35;
extern lean_object* l_Lean_Elab_Command_commandElabAttribute;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__2;
static lean_object* l_Lean_Elab_Command_elabRunMeta___closed__3;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__26;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__2;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__10;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__9;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__19(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
lean_object* l_Lean_Meta_isType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_isMonad_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_ByteArray_empty;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
static size_t l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__13;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__5;
lean_object* l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__5;
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__4;
lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* lean_eval_const(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_exprToSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__9;
lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__6;
lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__3;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__24;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__4;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_MessageData_ofFormat(lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__12;
lean_object* l_Lean_Elab_getBetterRef(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_IO_withStderr___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__11;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__7;
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__1;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__9;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__1;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__13;
lean_object* l_Lean_Elab_Command_liftTermElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__3;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunMeta(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__11;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__2;
lean_object* lean_st_ref_get(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__14;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__1;
lean_object* l_Lean_Meta_mkAppM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__7;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__40;
lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_liftCommandElabM___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__11;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__27;
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunMeta___closed__2;
lean_object* l_Lean_Elab_Term_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_num___override(lean_object*, lean_object*);
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__3;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_panic___at_String_fromUTF8_x21___spec__1(lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__29;
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1(lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__11;
lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__7;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__6;
lean_object* l_Lean_Meta_mkDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__1;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalBang(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__13;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__12(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__4;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__10;
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
lean_object* l_IO_FS_Stream_ofBuffer(lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__12;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__2;
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunCmd(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(lean_object*, lean_object*);
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__3;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__3(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__17;
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__2;
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__2(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__5;
lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__39;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__8;
lean_object* lean_get_set_stderr(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__3;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__26;
lean_object* l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_ensureType___spec__1___rarg(lean_object*);
lean_object* l_Lean_Expr_appFn_x21(lean_object*);
lean_object* lean_mk_syntax_ident(lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunElab___closed__3;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__19;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__2;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4;
static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__2;
lean_object* lean_string_from_utf8_unchecked(lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__1;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__5;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__2;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1(lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__13;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__7;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__4;
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
lean_object* l_Lean_MessageData_ofExpr(lean_object*);
lean_object* l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunMeta___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__1;
static lean_object* l_Lean_Elab_Command_elabRunCmd___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__43;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__6;
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__10;
lean_object* l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__6;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__3;
lean_object* l_Lean_Name_mkStr6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__1;
lean_object* l_Lean_Meta_forallMetaBoundedTelescope(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__42;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__2;
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__3;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__2;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1(lean_object*);
extern lean_object* l_Lean_NameSet_empty;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__17;
static lean_object* l_Lean_Elab_Command_elabRunElab___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__13;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__1;
lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__15;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
lean_object* l_Lean_Meta_isTypeApp_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunElab___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__10;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__13(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunElab___lambda__1___closed__1;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__4;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__2;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__9;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__20;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__3;
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__8;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__6;
lean_object* l_Lean_indentExpr(lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__1;
LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__1;
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_unfoldDefinition_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunMeta___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__1;
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_reduce(lean_object*, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__1;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__37;
static lean_object* l_Lean_Elab_Command_elabEvalBang___closed__1;
lean_object* l_Lean_Expr_getAppFn(lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__11;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__5;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__14;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__11;
lean_object* lean_get_set_stdin(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__5;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__12___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__2;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__5;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__1;
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__3;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__4;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__3;
static lean_object* l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__16;
static lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Elab_Command_instInhabitedScope;
lean_object* lean_array_mk(lean_object*);
lean_object* l_Lean_throwError___at_Lean_Elab_Term_mkCoe___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__4;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1;
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__6;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__7;
size_t lean_usize_add(size_t, size_t);
lean_object* l_Lean_Meta_getMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__4;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__21;
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta__1(lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_eval_pp;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__3;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__19;
lean_object* lean_array_uget(lean_object*, size_t);
size_t lean_array_size(lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__27;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__7;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__7;
lean_object* lean_io_error_to_string(lean_object*);
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__1;
static lean_object* l_Lean_Elab_Command_elabEvalBang___closed__2;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkFreshTypeMVar(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__4;
lean_object* l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Array_contains___at_Lean_HasConstCache_containsUnsafe___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab__1(lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__22;
lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__38;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85_(lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__3;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__3;
lean_object* l_Lean_throwError___at_Lean_withSetOptionIn___spec__7(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__2;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__23;
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8;
uint8_t l_Lean_Exception_isRuntime(lean_object*);
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__8;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__9;
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__12;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__23;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__2;
lean_object* l_Lean_Elab_Term_SavedState_restore(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__1;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_String_toSubstring_x27(lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__44;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__4;
static lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__15;
static lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__5;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__18;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__6;
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__2;
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__6;
lean_object* l_Lean_Meta_isProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__32;
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__46;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_IO_withStdout___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__28;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__15;
static lean_object* l_Lean_Elab_Command_elabRunCmd___closed__2;
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__2;
lean_object* l_Lean_Elab_Command_mkDefViewOfDef(lean_object*, lean_object*);
static lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__12;
lean_object* l_Lean_Elab_Term_withDeclName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("eval", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("pp", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__2;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("('#eval' command) enables using 'ToExpr' instances to pretty print the result, otherwise uses 'Repr' or 'ToString' instances", 124, 124);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__6() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 1;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__5;
x_4 = lean_box(x_1);
x_5 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Elab", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Command", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1;
x_5 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__2;
x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__3;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__6;
x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__10;
x_5 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(x_2, x_3, x_4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("type", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__1;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("('#eval' command) enables pretty printing the type of the result", 64, 64);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__4() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 0;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__3;
x_4 = lean_box(x_1);
x_5 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1;
x_5 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__1;
x_6 = l_Lean_Name_mkStr5(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__2;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__4;
x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__5;
x_5 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(x_2, x_3, x_4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("derive", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("repr", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__1;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__2;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("('#eval' command) enables auto-deriving 'Repr' instances as a fallback", 70, 70);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__5() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 1;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__4;
x_4 = lean_box(x_1);
x_5 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1;
x_5 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__1;
x_6 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__2;
x_7 = l_Lean_Name_mkStr6(x_1, x_2, x_3, x_4, x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85_(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__3;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__5;
x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__6;
x_5 = l_Lean_Option_register___at_Lean_Elab_initFn____x40_Lean_Elab_AutoBound___hyg_6____spec__1(x_2, x_3, x_4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__2;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__3;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("initFn", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__4;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__5;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_@", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__6;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__7;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__8;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__9;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("BuiltinEvalCommand", 18, 18);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__10;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__11;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_hyg", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__12;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__13;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__14;
x_2 = lean_unsigned_to_nat(122u);
x_3 = l_Lean_Name_num___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122_(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__1;
x_3 = 0;
x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__15;
x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_mkFreshMonadApp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_1, x_2, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_8);
x_10 = lean_infer_type(x_8, x_2, x_3, x_4, x_5, x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_unsigned_to_nat(1u);
x_14 = 0;
x_15 = l_Lean_Meta_forallMetaBoundedTelescope(x_11, x_13, x_14, x_2, x_3, x_4, x_5, x_12);
if (lean_obj_tag(x_15) == 0)
{
uint8_t x_16; 
x_16 = !lean_is_exclusive(x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
lean_dec(x_17);
x_19 = l_Lean_mkAppN(x_8, x_18);
lean_dec(x_18);
lean_ctor_set(x_15, 0, x_19);
return x_15;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_20 = lean_ctor_get(x_15, 0);
x_21 = lean_ctor_get(x_15, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_15);
x_22 = lean_ctor_get(x_20, 0);
lean_inc(x_22);
lean_dec(x_20);
x_23 = l_Lean_mkAppN(x_8, x_22);
lean_dec(x_22);
x_24 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_21);
return x_24;
}
}
else
{
uint8_t x_25; 
lean_dec(x_8);
x_25 = !lean_is_exclusive(x_15);
if (x_25 == 0)
{
return x_15;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_26 = lean_ctor_get(x_15, 0);
x_27 = lean_ctor_get(x_15, 1);
lean_inc(x_27);
lean_inc(x_26);
lean_dec(x_15);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_26);
lean_ctor_set(x_28, 1, x_27);
return x_28;
}
}
}
else
{
uint8_t x_29; 
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_29 = !lean_is_exclusive(x_10);
if (x_29 == 0)
{
return x_10;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_10, 0);
x_31 = lean_ctor_get(x_10, 1);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_10);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
return x_32;
}
}
}
else
{
uint8_t x_33; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_33 = !lean_is_exclusive(x_7);
if (x_33 == 0)
{
return x_7;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_34 = lean_ctor_get(x_7, 0);
x_35 = lean_ctor_get(x_7, 1);
lean_inc(x_35);
lean_inc(x_34);
lean_dec(x_7);
x_36 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_36, 0, x_34);
lean_ctor_set(x_36, 1, x_35);
return x_36;
}
}
}
}
static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) {
_start:
{
uint8_t x_17; 
x_17 = lean_usize_dec_lt(x_8, x_7);
if (x_17 == 0)
{
lean_object* x_18; 
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_9);
lean_ctor_set(x_18, 1, x_16);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_37; lean_object* x_38; uint8_t x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; 
lean_dec(x_9);
x_19 = lean_array_uget(x_6, x_8);
x_45 = 1;
lean_inc(x_2);
x_46 = l_Lean_Elab_Term_SavedState_restore(x_2, x_45, x_10, x_11, x_12, x_13, x_14, x_15, x_16);
x_47 = lean_ctor_get(x_46, 1);
lean_inc(x_47);
lean_dec(x_46);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
x_48 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_mkFreshMonadApp(x_19, x_12, x_13, x_14, x_15, x_47);
if (lean_obj_tag(x_48) == 0)
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_49 = lean_ctor_get(x_48, 0);
lean_inc(x_49);
x_50 = lean_ctor_get(x_48, 1);
lean_inc(x_50);
lean_dec(x_48);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_1);
x_51 = l_Lean_Meta_isExprDefEq(x_1, x_49, x_12, x_13, x_14, x_15, x_50);
if (lean_obj_tag(x_51) == 0)
{
lean_object* x_52; uint8_t x_53; 
x_52 = lean_ctor_get(x_51, 0);
lean_inc(x_52);
x_53 = lean_unbox(x_52);
lean_dec(x_52);
if (x_53 == 0)
{
lean_object* x_54; lean_object* x_55; 
x_54 = lean_ctor_get(x_51, 1);
lean_inc(x_54);
lean_dec(x_51);
x_55 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__1;
x_20 = x_55;
x_21 = x_54;
goto block_36;
}
else
{
lean_object* x_56; uint8_t x_57; uint8_t x_58; lean_object* x_59; 
x_56 = lean_ctor_get(x_51, 1);
lean_inc(x_56);
lean_dec(x_51);
x_57 = 1;
x_58 = 0;
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
x_59 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_57, x_58, x_10, x_11, x_12, x_13, x_14, x_15, x_56);
if (lean_obj_tag(x_59) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_59, 1);
lean_inc(x_60);
lean_dec(x_59);
x_61 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__2;
x_20 = x_61;
x_21 = x_60;
goto block_36;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_ctor_get(x_59, 0);
lean_inc(x_62);
x_63 = lean_ctor_get(x_59, 1);
lean_inc(x_63);
lean_dec(x_59);
x_37 = x_62;
x_38 = x_63;
goto block_44;
}
}
}
else
{
lean_object* x_64; lean_object* x_65; 
x_64 = lean_ctor_get(x_51, 0);
lean_inc(x_64);
x_65 = lean_ctor_get(x_51, 1);
lean_inc(x_65);
lean_dec(x_51);
x_37 = x_64;
x_38 = x_65;
goto block_44;
}
}
else
{
lean_object* x_66; lean_object* x_67; 
x_66 = lean_ctor_get(x_48, 0);
lean_inc(x_66);
x_67 = lean_ctor_get(x_48, 1);
lean_inc(x_67);
lean_dec(x_48);
x_37 = x_66;
x_38 = x_67;
goto block_44;
}
block_36:
{
if (lean_obj_tag(x_20) == 0)
{
size_t x_22; size_t x_23; 
lean_dec(x_20);
x_22 = 1;
x_23 = lean_usize_add(x_8, x_22);
lean_inc(x_5);
{
size_t _tmp_7 = x_23;
lean_object* _tmp_8 = x_5;
lean_object* _tmp_15 = x_21;
x_8 = _tmp_7;
x_9 = _tmp_8;
x_16 = _tmp_15;
}
goto _start;
}
else
{
uint8_t x_25; 
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_25 = !lean_is_exclusive(x_20);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_26 = lean_ctor_get(x_20, 0);
x_27 = lean_ctor_get(x_20, 1);
lean_dec(x_27);
x_28 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_28, 0, x_26);
x_29 = lean_box(0);
lean_ctor_set_tag(x_20, 0);
lean_ctor_set(x_20, 1, x_29);
lean_ctor_set(x_20, 0, x_28);
x_30 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_30, 0, x_20);
lean_ctor_set(x_30, 1, x_21);
return x_30;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_31 = lean_ctor_get(x_20, 0);
lean_inc(x_31);
lean_dec(x_20);
x_32 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_32, 0, x_31);
x_33 = lean_box(0);
x_34 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_34, 0, x_32);
lean_ctor_set(x_34, 1, x_33);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_34);
lean_ctor_set(x_35, 1, x_21);
return x_35;
}
}
}
block_44:
{
uint8_t x_39; 
x_39 = l_Lean_Exception_isInterrupt(x_37);
if (x_39 == 0)
{
uint8_t x_40; 
x_40 = l_Lean_Exception_isRuntime(x_37);
if (x_40 == 0)
{
lean_object* x_41; 
lean_dec(x_37);
x_41 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__1;
x_20 = x_41;
x_21 = x_38;
goto block_36;
}
else
{
lean_object* x_42; 
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_42 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_42, 0, x_37);
lean_ctor_set(x_42, 1, x_38);
return x_42;
}
}
else
{
lean_object* x_43; 
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_43 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_43, 0, x_37);
lean_ctor_set(x_43, 1, x_38);
return x_43;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
uint8_t x_11; lean_object* x_12; uint8_t x_13; 
x_11 = 1;
x_12 = l_Lean_Elab_Term_SavedState_restore(x_1, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; 
x_14 = lean_ctor_get(x_12, 0);
lean_dec(x_14);
lean_ctor_set_tag(x_12, 1);
lean_ctor_set(x_12, 0, x_2);
return x_12;
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_12, 1);
lean_inc(x_15);
lean_dec(x_12);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_2);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("CommandElabM", 12, 12);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TermElabM", 9, 9);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__3;
x_4 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__4;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("IO", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__6;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__7;
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___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__5;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__8;
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___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__2;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__9;
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___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__10;
x_2 = lean_array_mk(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = lean_box(0);
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 size_t _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__13() {
_start:
{
lean_object* x_1; size_t x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__11;
x_2 = lean_array_size(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_9 = l_Lean_Elab_Term_synthesizeSyntheticMVarsUsingDefault(x_2, x_3, x_4, x_5, x_6, x_7, x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; uint8_t x_15; lean_object* x_16; 
x_10 = lean_ctor_get(x_9, 1);
lean_inc(x_10);
lean_dec(x_9);
x_11 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_10);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
x_14 = 1;
x_15 = 0;
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_16 = l_Lean_Elab_Term_synthesizeSyntheticMVars(x_14, x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_13);
if (lean_obj_tag(x_16) == 0)
{
uint8_t x_17; 
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_17 = !lean_is_exclusive(x_16);
if (x_17 == 0)
{
return x_16;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_18 = lean_ctor_get(x_16, 0);
x_19 = lean_ctor_get(x_16, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_16);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
return x_20;
}
}
else
{
uint8_t x_21; 
x_21 = !lean_is_exclusive(x_16);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_22 = lean_ctor_get(x_16, 0);
x_23 = lean_ctor_get(x_16, 1);
x_24 = l_Lean_Exception_isInterrupt(x_22);
if (x_24 == 0)
{
uint8_t x_25; 
x_25 = l_Lean_Exception_isRuntime(x_22);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; size_t x_31; lean_object* x_32; size_t x_33; lean_object* x_34; 
lean_free_object(x_16);
x_26 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_23);
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
x_28 = lean_ctor_get(x_26, 1);
lean_inc(x_28);
lean_dec(x_26);
x_29 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__11;
x_30 = lean_box(0);
x_31 = 0;
x_32 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__12;
x_33 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__13;
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_34 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1(x_1, x_12, x_29, x_30, x_32, x_29, x_33, x_31, x_32, x_2, x_3, x_4, x_5, x_6, x_7, x_28);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_35; lean_object* x_36; 
x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
x_36 = lean_ctor_get(x_35, 0);
lean_inc(x_36);
lean_dec(x_35);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_37 = lean_ctor_get(x_34, 1);
lean_inc(x_37);
lean_dec(x_34);
x_38 = lean_box(0);
x_39 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___lambda__1(x_27, x_22, x_38, x_2, x_3, x_4, x_5, x_6, x_7, x_37);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_40 = !lean_is_exclusive(x_39);
if (x_40 == 0)
{
return x_39;
}
else
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_41 = lean_ctor_get(x_39, 0);
x_42 = lean_ctor_get(x_39, 1);
lean_inc(x_42);
lean_inc(x_41);
lean_dec(x_39);
x_43 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_43, 0, x_41);
lean_ctor_set(x_43, 1, x_42);
return x_43;
}
}
else
{
uint8_t x_44; 
lean_dec(x_27);
lean_dec(x_22);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_44 = !lean_is_exclusive(x_34);
if (x_44 == 0)
{
lean_object* x_45; lean_object* x_46; 
x_45 = lean_ctor_get(x_34, 0);
lean_dec(x_45);
x_46 = lean_ctor_get(x_36, 0);
lean_inc(x_46);
lean_dec(x_36);
lean_ctor_set(x_34, 0, x_46);
return x_34;
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_34, 1);
lean_inc(x_47);
lean_dec(x_34);
x_48 = lean_ctor_get(x_36, 0);
lean_inc(x_48);
lean_dec(x_36);
x_49 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_49, 0, x_48);
lean_ctor_set(x_49, 1, x_47);
return x_49;
}
}
}
else
{
uint8_t x_50; 
lean_dec(x_27);
lean_dec(x_22);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_50 = !lean_is_exclusive(x_34);
if (x_50 == 0)
{
return x_34;
}
else
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_51 = lean_ctor_get(x_34, 0);
x_52 = lean_ctor_get(x_34, 1);
lean_inc(x_52);
lean_inc(x_51);
lean_dec(x_34);
x_53 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_53, 0, x_51);
lean_ctor_set(x_53, 1, x_52);
return x_53;
}
}
}
else
{
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_16;
}
}
else
{
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_16;
}
}
else
{
lean_object* x_54; lean_object* x_55; uint8_t x_56; 
x_54 = lean_ctor_get(x_16, 0);
x_55 = lean_ctor_get(x_16, 1);
lean_inc(x_55);
lean_inc(x_54);
lean_dec(x_16);
x_56 = l_Lean_Exception_isInterrupt(x_54);
if (x_56 == 0)
{
uint8_t x_57; 
x_57 = l_Lean_Exception_isRuntime(x_54);
if (x_57 == 0)
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; size_t x_63; lean_object* x_64; size_t x_65; lean_object* x_66; 
x_58 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_55);
x_59 = lean_ctor_get(x_58, 0);
lean_inc(x_59);
x_60 = lean_ctor_get(x_58, 1);
lean_inc(x_60);
lean_dec(x_58);
x_61 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__11;
x_62 = lean_box(0);
x_63 = 0;
x_64 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__12;
x_65 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__13;
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_66 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1(x_1, x_12, x_61, x_62, x_64, x_61, x_65, x_63, x_64, x_2, x_3, x_4, x_5, x_6, x_7, x_60);
if (lean_obj_tag(x_66) == 0)
{
lean_object* x_67; lean_object* x_68; 
x_67 = lean_ctor_get(x_66, 0);
lean_inc(x_67);
x_68 = lean_ctor_get(x_67, 0);
lean_inc(x_68);
lean_dec(x_67);
if (lean_obj_tag(x_68) == 0)
{
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; 
x_69 = lean_ctor_get(x_66, 1);
lean_inc(x_69);
lean_dec(x_66);
x_70 = lean_box(0);
x_71 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___lambda__1(x_59, x_54, x_70, x_2, x_3, x_4, x_5, x_6, x_7, x_69);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_72 = lean_ctor_get(x_71, 0);
lean_inc(x_72);
x_73 = lean_ctor_get(x_71, 1);
lean_inc(x_73);
if (lean_is_exclusive(x_71)) {
 lean_ctor_release(x_71, 0);
 lean_ctor_release(x_71, 1);
 x_74 = x_71;
} else {
 lean_dec_ref(x_71);
 x_74 = lean_box(0);
}
if (lean_is_scalar(x_74)) {
 x_75 = lean_alloc_ctor(1, 2, 0);
} else {
 x_75 = x_74;
}
lean_ctor_set(x_75, 0, x_72);
lean_ctor_set(x_75, 1, x_73);
return x_75;
}
else
{
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; 
lean_dec(x_59);
lean_dec(x_54);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_76 = lean_ctor_get(x_66, 1);
lean_inc(x_76);
if (lean_is_exclusive(x_66)) {
 lean_ctor_release(x_66, 0);
 lean_ctor_release(x_66, 1);
 x_77 = x_66;
} else {
 lean_dec_ref(x_66);
 x_77 = lean_box(0);
}
x_78 = lean_ctor_get(x_68, 0);
lean_inc(x_78);
lean_dec(x_68);
if (lean_is_scalar(x_77)) {
 x_79 = lean_alloc_ctor(0, 2, 0);
} else {
 x_79 = x_77;
}
lean_ctor_set(x_79, 0, x_78);
lean_ctor_set(x_79, 1, x_76);
return x_79;
}
}
else
{
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; 
lean_dec(x_59);
lean_dec(x_54);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_80 = lean_ctor_get(x_66, 0);
lean_inc(x_80);
x_81 = lean_ctor_get(x_66, 1);
lean_inc(x_81);
if (lean_is_exclusive(x_66)) {
 lean_ctor_release(x_66, 0);
 lean_ctor_release(x_66, 1);
 x_82 = x_66;
} else {
 lean_dec_ref(x_66);
 x_82 = lean_box(0);
}
if (lean_is_scalar(x_82)) {
 x_83 = lean_alloc_ctor(1, 2, 0);
} else {
 x_83 = x_82;
}
lean_ctor_set(x_83, 0, x_80);
lean_ctor_set(x_83, 1, x_81);
return x_83;
}
}
else
{
lean_object* x_84; 
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_84 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_84, 0, x_54);
lean_ctor_set(x_84, 1, x_55);
return x_84;
}
}
else
{
lean_object* x_85; 
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_85 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_85, 0, x_54);
lean_ctor_set(x_85, 1, x_55);
return x_85;
}
}
}
}
else
{
uint8_t x_86; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_86 = !lean_is_exclusive(x_9);
if (x_86 == 0)
{
return x_9;
}
else
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; 
x_87 = lean_ctor_get(x_9, 0);
x_88 = lean_ctor_get(x_9, 1);
lean_inc(x_88);
lean_inc(x_87);
lean_dec(x_9);
x_89 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_89, 0, x_87);
lean_ctor_set(x_89, 1, x_88);
return x_89;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16) {
_start:
{
size_t x_17; size_t x_18; lean_object* x_19; 
x_17 = lean_unbox_usize(x_7);
lean_dec(x_7);
x_18 = lean_unbox_usize(x_8);
lean_dec(x_8);
x_19 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_17, x_18, x_9, x_10, x_11, x_12, x_13, x_14, x_15, x_16);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
return x_19;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
x_11 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_11;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_9);
return x_10;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elaborated term:", 16, 16);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__1;
x_11 = l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
if (x_13 == 0)
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_11);
if (x_14 == 0)
{
lean_object* x_15; 
x_15 = lean_ctor_get(x_11, 0);
lean_dec(x_15);
lean_ctor_set(x_11, 0, x_1);
return x_11;
}
else
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_ctor_get(x_11, 1);
lean_inc(x_16);
lean_dec(x_11);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_1);
lean_ctor_set(x_17, 1, x_16);
return x_17;
}
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_18 = lean_ctor_get(x_11, 1);
lean_inc(x_18);
lean_dec(x_11);
lean_inc(x_1);
x_19 = l_Lean_indentExpr(x_1);
x_20 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__2;
x_21 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_19);
x_22 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
x_23 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
x_24 = l_Lean_addTrace___at_Lean_Elab_Term_traceAtCmdPos___spec__2(x_10, x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_18);
x_25 = !lean_is_exclusive(x_24);
if (x_25 == 0)
{
lean_object* x_26; 
x_26 = lean_ctor_get(x_24, 0);
lean_dec(x_26);
lean_ctor_set(x_24, 0, x_1);
return x_24;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_24, 1);
lean_inc(x_27);
lean_dec(x_24);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_1);
lean_ctor_set(x_28, 1, x_27);
return x_28;
}
}
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("cannot evaluate, types are not computationally relevant", 55, 55);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_1);
x_9 = l_Lean_Meta_isType(x_1, x_4, x_5, x_6, x_7, x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; uint8_t x_11; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_9, 1);
lean_inc(x_12);
lean_dec(x_9);
x_13 = lean_box(0);
x_14 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2(x_1, x_13, x_2, x_3, x_4, x_5, x_6, x_7, x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
return x_14;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
lean_dec(x_1);
x_15 = lean_ctor_get(x_9, 1);
lean_inc(x_15);
lean_dec(x_9);
x_16 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__2;
x_17 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_15);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
return x_17;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = lean_ctor_get(x_17, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_17);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
}
else
{
uint8_t x_22; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_22 = !lean_is_exclusive(x_9);
if (x_22 == 0)
{
return x_9;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_9, 0);
x_24 = lean_ctor_get(x_9, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_9);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set(x_25, 1, x_24);
return x_25;
}
}
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___boxed), 8, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1);
x_10 = l_Lean_Meta_isProp(x_1, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4___closed__1;
x_14 = lean_unbox(x_11);
lean_dec(x_11);
if (x_14 == 0)
{
lean_object* x_15; 
x_15 = lean_apply_8(x_13, x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
return x_15;
}
else
{
lean_object* x_16; 
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_16 = l_Lean_Meta_mkDecide(x_1, x_5, x_6, x_7, x_8, x_12);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec(x_16);
x_19 = lean_apply_8(x_13, x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_18);
return x_19;
}
else
{
uint8_t x_20; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_20 = !lean_is_exclusive(x_16);
if (x_20 == 0)
{
return x_16;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_16, 0);
x_22 = lean_ctor_get(x_16, 1);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_16);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
return x_23;
}
}
}
}
else
{
uint8_t x_24; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_24 = !lean_is_exclusive(x_10);
if (x_24 == 0)
{
return x_10;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_10, 0);
x_26 = lean_ctor_get(x_10, 1);
lean_inc(x_26);
lean_inc(x_25);
lean_dec(x_10);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
return x_27;
}
}
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("cannot evaluate, proofs are not computationally relevant", 56, 56);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1);
x_10 = l_Lean_Meta_isProof(x_1, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_10, 1);
lean_inc(x_13);
lean_dec(x_10);
x_14 = lean_box(0);
x_15 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4(x_1, x_14, x_3, x_4, x_5, x_6, x_7, x_8, x_13);
return x_15;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; 
lean_dec(x_1);
x_16 = lean_ctor_get(x_10, 1);
lean_inc(x_16);
lean_dec(x_10);
x_17 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__2;
x_18 = l_Lean_throwError___at_Lean_Elab_Term_synthesizeInstMVarCore___spec__3(x_17, x_3, x_4, x_5, x_6, x_7, x_8, x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_19 = !lean_is_exclusive(x_18);
if (x_19 == 0)
{
return x_18;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_18, 0);
x_21 = lean_ctor_get(x_18, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_18);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
else
{
uint8_t x_23; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_23 = !lean_is_exclusive(x_10);
if (x_23 == 0)
{
return x_10;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = lean_ctor_get(x_10, 0);
x_25 = lean_ctor_get(x_10, 1);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_10);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_24);
lean_ctor_set(x_26, 1, x_25);
return x_26;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; 
if (lean_obj_tag(x_2) == 0)
{
uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
x_51 = 0;
x_52 = lean_box(0);
lean_inc(x_5);
x_53 = l_Lean_Meta_mkFreshTypeMVar(x_51, x_52, x_5, x_6, x_7, x_8, x_9);
x_54 = lean_ctor_get(x_53, 0);
lean_inc(x_54);
x_55 = lean_ctor_get(x_53, 1);
lean_inc(x_55);
lean_dec(x_53);
x_10 = x_54;
x_11 = x_55;
goto block_50;
}
else
{
lean_object* x_56; 
x_56 = lean_ctor_get(x_2, 0);
lean_inc(x_56);
lean_dec(x_2);
x_10 = x_56;
x_11 = x_9;
goto block_50;
}
block_50:
{
lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; 
lean_inc(x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_10);
x_13 = lean_box(0);
x_14 = 1;
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_15 = l_Lean_Elab_Term_elabTermEnsuringType(x_1, x_12, x_14, x_14, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_11);
if (lean_obj_tag(x_15) == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
lean_dec(x_15);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_18 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting(x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_19 = lean_ctor_get(x_18, 1);
lean_inc(x_19);
lean_dec(x_18);
x_20 = l_Lean_instantiateMVars___at_Lean_Elab_Term_MVarErrorInfo_logError___spec__1(x_16, x_3, x_4, x_5, x_6, x_7, x_8, x_19);
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
lean_dec(x_20);
lean_inc(x_21);
x_23 = l_Lean_Meta_getMVars(x_21, x_5, x_6, x_7, x_8, x_22);
x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
lean_dec(x_23);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_26 = l_Lean_Elab_Term_logUnassignedUsingErrorInfos(x_24, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_25);
lean_dec(x_24);
if (lean_obj_tag(x_26) == 0)
{
lean_object* x_27; uint8_t x_28; 
x_27 = lean_ctor_get(x_26, 0);
lean_inc(x_27);
x_28 = lean_unbox(x_27);
lean_dec(x_27);
if (x_28 == 0)
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_26, 1);
lean_inc(x_29);
lean_dec(x_26);
x_30 = lean_box(0);
x_31 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5(x_21, x_30, x_3, x_4, x_5, x_6, x_7, x_8, x_29);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; uint8_t x_34; 
lean_dec(x_21);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_32 = lean_ctor_get(x_26, 1);
lean_inc(x_32);
lean_dec(x_26);
x_33 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_ensureType___spec__1___rarg(x_32);
x_34 = !lean_is_exclusive(x_33);
if (x_34 == 0)
{
return x_33;
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_35 = lean_ctor_get(x_33, 0);
x_36 = lean_ctor_get(x_33, 1);
lean_inc(x_36);
lean_inc(x_35);
lean_dec(x_33);
x_37 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_37, 0, x_35);
lean_ctor_set(x_37, 1, x_36);
return x_37;
}
}
}
else
{
uint8_t x_38; 
lean_dec(x_21);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_38 = !lean_is_exclusive(x_26);
if (x_38 == 0)
{
return x_26;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_39 = lean_ctor_get(x_26, 0);
x_40 = lean_ctor_get(x_26, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_26);
x_41 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_41, 0, x_39);
lean_ctor_set(x_41, 1, x_40);
return x_41;
}
}
}
else
{
uint8_t x_42; 
lean_dec(x_16);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_42 = !lean_is_exclusive(x_18);
if (x_42 == 0)
{
return x_18;
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_18, 0);
x_44 = lean_ctor_get(x_18, 1);
lean_inc(x_44);
lean_inc(x_43);
lean_dec(x_18);
x_45 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_45, 0, x_43);
lean_ctor_set(x_45, 1, x_44);
return x_45;
}
}
}
else
{
uint8_t x_46; 
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_46 = !lean_is_exclusive(x_15);
if (x_46 == 0)
{
return x_15;
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_15, 0);
x_48 = lean_ctor_get(x_15, 1);
lean_inc(x_48);
lean_inc(x_47);
lean_dec(x_15);
x_49 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_49, 0, x_47);
lean_ctor_set(x_49, 1, x_48);
return x_49;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_2);
return x_10;
}
}
static lean_object* _init_l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_array_mk(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_NameSet_empty;
x_2 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; uint8_t x_10; 
x_9 = lean_st_ref_get(x_7, x_8);
x_10 = !lean_is_exclusive(x_9);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_11 = lean_ctor_get(x_9, 0);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
lean_dec(x_11);
x_13 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__2;
x_14 = l_Lean_CollectAxioms_collect(x_1, x_12, x_13);
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
x_16 = lean_ctor_get(x_15, 1);
lean_inc(x_16);
lean_dec(x_15);
lean_ctor_set(x_9, 0, x_16);
return x_9;
}
else
{
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; 
x_17 = lean_ctor_get(x_9, 0);
x_18 = lean_ctor_get(x_9, 1);
lean_inc(x_18);
lean_inc(x_17);
lean_dec(x_9);
x_19 = lean_ctor_get(x_17, 0);
lean_inc(x_19);
lean_dec(x_17);
x_20 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__2;
x_21 = l_Lean_CollectAxioms_collect(x_1, x_19, x_20);
x_22 = lean_ctor_get(x_21, 1);
lean_inc(x_22);
lean_dec(x_21);
x_23 = lean_ctor_get(x_22, 1);
lean_inc(x_23);
lean_dec(x_22);
x_24 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_18);
return x_24;
}
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("definition", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__2;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("def", 3, 3);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declId", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__5;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_root_", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__7;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__9;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__11() {
_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___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10;
x_3 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1;
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___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__11;
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___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("optDeclSig", 10, 10);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__13;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__15() {
_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___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declValSimple", 13, 13);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__16;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":=", 2, 2);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__19() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Termination", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("suffix", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1;
x_3 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__19;
x_4 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__20;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; uint8_t x_3; uint8_t x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; 
x_1 = lean_box(0);
x_2 = lean_box(0);
x_3 = 0;
x_4 = 0;
x_5 = 2;
x_6 = 1;
x_7 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1;
x_8 = lean_alloc_ctor(0, 3, 4);
lean_ctor_set(x_8, 0, x_2);
lean_ctor_set(x_8, 1, x_1);
lean_ctor_set(x_8, 2, x_7);
lean_ctor_set_uint8(x_8, sizeof(void*)*3, x_3);
lean_ctor_set_uint8(x_8, sizeof(void*)*3 + 1, x_4);
lean_ctor_set_uint8(x_8, sizeof(void*)*3 + 2, x_5);
lean_ctor_set_uint8(x_8, sizeof(void*)*3 + 3, x_6);
return x_8;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4;
x_3 = lean_box(0);
x_4 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1;
x_5 = 0;
x_6 = lean_alloc_ctor(0, 9, 1);
lean_ctor_set(x_6, 0, x_2);
lean_ctor_set(x_6, 1, x_1);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_1);
lean_ctor_set(x_6, 4, x_1);
lean_ctor_set(x_6, 5, x_4);
lean_ctor_set(x_6, 6, x_4);
lean_ctor_set(x_6, 7, x_1);
lean_ctor_set(x_6, 8, x_1);
lean_ctor_set_uint8(x_6, sizeof(void*)*9, x_5);
return x_6;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__24() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("sorryAx", 7, 7);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__24;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("aborting evaluation since the expression depends on the 'sorry' axiom, which can lead to runtime instability and crashes.\n\nTo attempt to evaluate anyway despite the risks, use the '#eval!' command.", 197, 197);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__26;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; 
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
x_11 = l_Lean_Elab_Term_exprToSyntax(x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
x_14 = lean_ctor_get(x_8, 5);
lean_inc(x_14);
x_15 = 0;
x_16 = l_Lean_SourceInfo_fromRef(x_14, x_15);
lean_dec(x_14);
x_17 = lean_st_ref_get(x_9, x_13);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_19 = lean_ctor_get(x_17, 1);
x_20 = lean_ctor_get(x_17, 0);
lean_dec(x_20);
x_21 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__4;
lean_inc(x_16);
lean_ctor_set_tag(x_17, 2);
lean_ctor_set(x_17, 1, x_21);
lean_ctor_set(x_17, 0, x_16);
x_22 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__8;
lean_inc(x_1);
x_23 = l_Lean_Name_append(x_22, x_1);
x_24 = lean_mk_syntax_ident(x_23);
x_25 = lean_box(0);
x_26 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__12;
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_24);
lean_ctor_set(x_27, 1, x_26);
x_28 = lean_array_mk(x_27);
x_29 = lean_box(2);
x_30 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__6;
x_31 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_31, 0, x_29);
lean_ctor_set(x_31, 1, x_30);
lean_ctor_set(x_31, 2, x_28);
x_32 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10;
x_33 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__15;
lean_inc(x_16);
x_34 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_34, 0, x_16);
lean_ctor_set(x_34, 1, x_32);
lean_ctor_set(x_34, 2, x_33);
x_35 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__14;
lean_inc_n(x_34, 2);
lean_inc(x_16);
x_36 = l_Lean_Syntax_node2(x_16, x_35, x_34, x_34);
x_37 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__18;
lean_inc(x_16);
x_38 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_38, 0, x_16);
lean_ctor_set(x_38, 1, x_37);
x_39 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__21;
lean_inc_n(x_34, 2);
lean_inc(x_16);
x_40 = l_Lean_Syntax_node2(x_16, x_39, x_34, x_34);
x_41 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__17;
lean_inc(x_34);
lean_inc(x_16);
x_42 = l_Lean_Syntax_node4(x_16, x_41, x_38, x_12, x_40, x_34);
x_43 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__3;
x_44 = l_Lean_Syntax_node5(x_16, x_43, x_17, x_31, x_36, x_42, x_34);
x_45 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__22;
x_46 = l_Lean_Elab_Command_mkDefViewOfDef(x_45, x_44);
x_47 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_47, 0, x_46);
lean_ctor_set(x_47, 1, x_25);
x_48 = lean_array_mk(x_47);
x_49 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1;
x_50 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__23;
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
x_51 = l_Lean_Elab_Term_elabMutualDef(x_49, x_50, x_48, x_4, x_5, x_6, x_7, x_8, x_9, x_19);
if (lean_obj_tag(x_51) == 0)
{
if (x_3 == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_51, 1);
lean_inc(x_52);
lean_dec(x_51);
x_53 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_52);
x_54 = !lean_is_exclusive(x_53);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; uint8_t x_58; 
x_55 = lean_ctor_get(x_53, 0);
x_56 = lean_ctor_get(x_53, 1);
x_57 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__25;
x_58 = l_Array_contains___at_Lean_HasConstCache_containsUnsafe___spec__1(x_55, x_57);
lean_dec(x_55);
if (x_58 == 0)
{
lean_object* x_59; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_59 = lean_box(0);
lean_ctor_set(x_53, 0, x_59);
return x_53;
}
else
{
lean_object* x_60; lean_object* x_61; 
lean_free_object(x_53);
x_60 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__27;
x_61 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_60, x_4, x_5, x_6, x_7, x_8, x_9, x_56);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_61;
}
}
else
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; 
x_62 = lean_ctor_get(x_53, 0);
x_63 = lean_ctor_get(x_53, 1);
lean_inc(x_63);
lean_inc(x_62);
lean_dec(x_53);
x_64 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__25;
x_65 = l_Array_contains___at_Lean_HasConstCache_containsUnsafe___spec__1(x_62, x_64);
lean_dec(x_62);
if (x_65 == 0)
{
lean_object* x_66; lean_object* x_67; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_66 = lean_box(0);
x_67 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_67, 0, x_66);
lean_ctor_set(x_67, 1, x_63);
return x_67;
}
else
{
lean_object* x_68; lean_object* x_69; 
x_68 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__27;
x_69 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_68, x_4, x_5, x_6, x_7, x_8, x_9, x_63);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_69;
}
}
}
else
{
uint8_t x_70; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_70 = !lean_is_exclusive(x_51);
if (x_70 == 0)
{
lean_object* x_71; lean_object* x_72; 
x_71 = lean_ctor_get(x_51, 0);
lean_dec(x_71);
x_72 = lean_box(0);
lean_ctor_set(x_51, 0, x_72);
return x_51;
}
else
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; 
x_73 = lean_ctor_get(x_51, 1);
lean_inc(x_73);
lean_dec(x_51);
x_74 = lean_box(0);
x_75 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_75, 0, x_74);
lean_ctor_set(x_75, 1, x_73);
return x_75;
}
}
}
else
{
uint8_t x_76; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_76 = !lean_is_exclusive(x_51);
if (x_76 == 0)
{
return x_51;
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; 
x_77 = lean_ctor_get(x_51, 0);
x_78 = lean_ctor_get(x_51, 1);
lean_inc(x_78);
lean_inc(x_77);
lean_dec(x_51);
x_79 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_79, 0, x_77);
lean_ctor_set(x_79, 1, x_78);
return x_79;
}
}
}
else
{
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; 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; 
x_80 = lean_ctor_get(x_17, 1);
lean_inc(x_80);
lean_dec(x_17);
x_81 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__4;
lean_inc(x_16);
x_82 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_82, 0, x_16);
lean_ctor_set(x_82, 1, x_81);
x_83 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__8;
lean_inc(x_1);
x_84 = l_Lean_Name_append(x_83, x_1);
x_85 = lean_mk_syntax_ident(x_84);
x_86 = lean_box(0);
x_87 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__12;
x_88 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_88, 0, x_85);
lean_ctor_set(x_88, 1, x_87);
x_89 = lean_array_mk(x_88);
x_90 = lean_box(2);
x_91 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__6;
x_92 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_92, 0, x_90);
lean_ctor_set(x_92, 1, x_91);
lean_ctor_set(x_92, 2, x_89);
x_93 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10;
x_94 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__15;
lean_inc(x_16);
x_95 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_95, 0, x_16);
lean_ctor_set(x_95, 1, x_93);
lean_ctor_set(x_95, 2, x_94);
x_96 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__14;
lean_inc_n(x_95, 2);
lean_inc(x_16);
x_97 = l_Lean_Syntax_node2(x_16, x_96, x_95, x_95);
x_98 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__18;
lean_inc(x_16);
x_99 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_99, 0, x_16);
lean_ctor_set(x_99, 1, x_98);
x_100 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__21;
lean_inc_n(x_95, 2);
lean_inc(x_16);
x_101 = l_Lean_Syntax_node2(x_16, x_100, x_95, x_95);
x_102 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__17;
lean_inc(x_95);
lean_inc(x_16);
x_103 = l_Lean_Syntax_node4(x_16, x_102, x_99, x_12, x_101, x_95);
x_104 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__3;
x_105 = l_Lean_Syntax_node5(x_16, x_104, x_82, x_92, x_97, x_103, x_95);
x_106 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__22;
x_107 = l_Lean_Elab_Command_mkDefViewOfDef(x_106, x_105);
x_108 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_86);
x_109 = lean_array_mk(x_108);
x_110 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1;
x_111 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__23;
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
x_112 = l_Lean_Elab_Term_elabMutualDef(x_110, x_111, x_109, x_4, x_5, x_6, x_7, x_8, x_9, x_80);
if (lean_obj_tag(x_112) == 0)
{
if (x_3 == 0)
{
lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; uint8_t x_119; 
x_113 = lean_ctor_get(x_112, 1);
lean_inc(x_113);
lean_dec(x_112);
x_114 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1(x_1, x_4, x_5, x_6, x_7, x_8, x_9, x_113);
x_115 = lean_ctor_get(x_114, 0);
lean_inc(x_115);
x_116 = lean_ctor_get(x_114, 1);
lean_inc(x_116);
if (lean_is_exclusive(x_114)) {
 lean_ctor_release(x_114, 0);
 lean_ctor_release(x_114, 1);
 x_117 = x_114;
} else {
 lean_dec_ref(x_114);
 x_117 = lean_box(0);
}
x_118 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__25;
x_119 = l_Array_contains___at_Lean_HasConstCache_containsUnsafe___spec__1(x_115, x_118);
lean_dec(x_115);
if (x_119 == 0)
{
lean_object* x_120; lean_object* x_121; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
x_120 = lean_box(0);
if (lean_is_scalar(x_117)) {
 x_121 = lean_alloc_ctor(0, 2, 0);
} else {
 x_121 = x_117;
}
lean_ctor_set(x_121, 0, x_120);
lean_ctor_set(x_121, 1, x_116);
return x_121;
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_dec(x_117);
x_122 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__27;
x_123 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1(x_122, x_4, x_5, x_6, x_7, x_8, x_9, x_116);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_124 = lean_ctor_get(x_112, 1);
lean_inc(x_124);
if (lean_is_exclusive(x_112)) {
 lean_ctor_release(x_112, 0);
 lean_ctor_release(x_112, 1);
 x_125 = x_112;
} else {
 lean_dec_ref(x_112);
 x_125 = lean_box(0);
}
x_126 = lean_box(0);
if (lean_is_scalar(x_125)) {
 x_127 = lean_alloc_ctor(0, 2, 0);
} else {
 x_127 = x_125;
}
lean_ctor_set(x_127, 0, x_126);
lean_ctor_set(x_127, 1, x_124);
return x_127;
}
}
else
{
lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_128 = lean_ctor_get(x_112, 0);
lean_inc(x_128);
x_129 = lean_ctor_get(x_112, 1);
lean_inc(x_129);
if (lean_is_exclusive(x_112)) {
 lean_ctor_release(x_112, 0);
 lean_ctor_release(x_112, 1);
 x_130 = x_112;
} else {
 lean_dec_ref(x_112);
 x_130 = lean_box(0);
}
if (lean_is_scalar(x_130)) {
 x_131 = lean_alloc_ctor(1, 2, 0);
} else {
 x_131 = x_130;
}
lean_ctor_set(x_131, 0, x_128);
lean_ctor_set(x_131, 1, x_129);
return x_131;
}
}
}
else
{
uint8_t x_132; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_132 = !lean_is_exclusive(x_11);
if (x_132 == 0)
{
return x_11;
}
else
{
lean_object* x_133; lean_object* x_134; lean_object* x_135; 
x_133 = lean_ctor_get(x_11, 0);
x_134 = lean_ctor_get(x_11, 1);
lean_inc(x_134);
lean_inc(x_133);
lean_dec(x_11);
x_135 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_135, 0, x_133);
lean_ctor_set(x_135, 1, x_134);
return x_135;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
uint8_t x_11; lean_object* x_12; 
x_11 = lean_unbox(x_3);
lean_dec(x_3);
x_12 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__1() {
_start:
{
uint8_t x_1; uint8_t x_2; lean_object* x_3; 
x_1 = 1;
x_2 = 2;
x_3 = lean_alloc_ctor(0, 0, 5);
lean_ctor_set_uint8(x_3, 0, x_1);
lean_ctor_set_uint8(x_3, 1, x_1);
lean_ctor_set_uint8(x_3, 2, x_2);
lean_ctor_set_uint8(x_3, 3, x_1);
lean_ctor_set_uint8(x_3, 4, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("failed", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
lean_object* x_11; lean_object* x_12; 
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_134; 
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_3);
x_134 = lean_infer_type(x_3, x_6, x_7, x_8, x_9, x_10);
if (lean_obj_tag(x_134) == 0)
{
lean_object* x_135; lean_object* x_136; 
x_135 = lean_ctor_get(x_134, 0);
lean_inc(x_135);
x_136 = lean_ctor_get(x_134, 1);
lean_inc(x_136);
lean_dec(x_134);
x_11 = x_135;
x_12 = x_136;
goto block_133;
}
else
{
uint8_t x_137; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_137 = !lean_is_exclusive(x_134);
if (x_137 == 0)
{
return x_134;
}
else
{
lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_138 = lean_ctor_get(x_134, 0);
x_139 = lean_ctor_get(x_134, 1);
lean_inc(x_139);
lean_inc(x_138);
lean_dec(x_134);
x_140 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_140, 0, x_138);
lean_ctor_set(x_140, 1, x_139);
return x_140;
}
}
}
else
{
lean_object* x_141; 
x_141 = lean_ctor_get(x_4, 0);
lean_inc(x_141);
lean_dec(x_4);
x_11 = x_141;
x_12 = x_10;
goto block_133;
}
block_133:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_13 = lean_box(0);
lean_inc(x_11);
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_11);
lean_ctor_set(x_14, 1, x_13);
x_15 = lean_array_mk(x_14);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_1);
x_16 = l_Lean_Meta_mkAppM(x_1, x_15, x_6, x_7, x_8, x_9, x_12);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec(x_16);
x_19 = lean_box(0);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
x_20 = l_Lean_Meta_trySynthInstance(x_17, x_19, x_6, x_7, x_8, x_9, x_18);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; 
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
switch (lean_obj_tag(x_21)) {
case 0:
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
lean_dec(x_20);
x_23 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__1;
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
x_24 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__2(x_23, x_11, x_23, x_6, x_7, x_8, x_9, x_22);
if (lean_obj_tag(x_24) == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_ctor_get(x_24, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_24, 1);
lean_inc(x_26);
lean_dec(x_24);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_25);
x_27 = l_Lean_Meta_unfoldDefinition_x3f(x_25, x_6, x_7, x_8, x_9, x_26);
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_28; lean_object* x_29; uint8_t x_30; 
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
x_29 = lean_ctor_get(x_27, 1);
lean_inc(x_29);
lean_dec(x_27);
if (lean_obj_tag(x_28) == 0)
{
if (x_5 == 0)
{
uint8_t x_49; 
x_49 = 0;
x_30 = x_49;
goto block_48;
}
else
{
uint8_t x_50; 
x_50 = 1;
x_30 = x_50;
goto block_48;
}
}
else
{
uint8_t x_51; 
lean_dec(x_25);
x_51 = !lean_is_exclusive(x_28);
if (x_51 == 0)
{
x_4 = x_28;
x_10 = x_29;
goto _start;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_ctor_get(x_28, 0);
lean_inc(x_53);
lean_dec(x_28);
x_54 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_54, 0, x_53);
x_4 = x_54;
x_10 = x_29;
goto _start;
}
}
block_48:
{
if (x_30 == 0)
{
lean_object* x_31; lean_object* x_32; uint8_t x_33; 
lean_dec(x_25);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_31 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3;
x_32 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_31, x_6, x_7, x_8, x_9, x_29);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_33 = !lean_is_exclusive(x_32);
if (x_33 == 0)
{
return x_32;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_34 = lean_ctor_get(x_32, 0);
x_35 = lean_ctor_get(x_32, 1);
lean_inc(x_35);
lean_inc(x_34);
lean_dec(x_32);
x_36 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_36, 0, x_34);
lean_ctor_set(x_36, 1, x_35);
return x_36;
}
}
else
{
uint8_t x_37; uint8_t x_38; lean_object* x_39; 
x_37 = 1;
x_38 = 0;
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
x_39 = l_Lean_Meta_reduce(x_25, x_37, x_38, x_37, x_6, x_7, x_8, x_9, x_29);
if (lean_obj_tag(x_39) == 0)
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_40 = lean_ctor_get(x_39, 0);
lean_inc(x_40);
x_41 = lean_ctor_get(x_39, 1);
lean_inc(x_41);
lean_dec(x_39);
x_42 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_42, 0, x_40);
x_4 = x_42;
x_5 = x_38;
x_10 = x_41;
goto _start;
}
else
{
uint8_t x_44; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_44 = !lean_is_exclusive(x_39);
if (x_44 == 0)
{
return x_39;
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; 
x_45 = lean_ctor_get(x_39, 0);
x_46 = lean_ctor_get(x_39, 1);
lean_inc(x_46);
lean_inc(x_45);
lean_dec(x_39);
x_47 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_47, 0, x_45);
lean_ctor_set(x_47, 1, x_46);
return x_47;
}
}
}
}
}
else
{
uint8_t x_56; 
lean_dec(x_25);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_56 = !lean_is_exclusive(x_27);
if (x_56 == 0)
{
return x_27;
}
else
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_57 = lean_ctor_get(x_27, 0);
x_58 = lean_ctor_get(x_27, 1);
lean_inc(x_58);
lean_inc(x_57);
lean_dec(x_27);
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_57);
lean_ctor_set(x_59, 1, x_58);
return x_59;
}
}
}
else
{
uint8_t x_60; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_60 = !lean_is_exclusive(x_24);
if (x_60 == 0)
{
return x_24;
}
else
{
lean_object* x_61; lean_object* x_62; lean_object* x_63; 
x_61 = lean_ctor_get(x_24, 0);
x_62 = lean_ctor_get(x_24, 1);
lean_inc(x_62);
lean_inc(x_61);
lean_dec(x_24);
x_63 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_63, 0, x_61);
lean_ctor_set(x_63, 1, x_62);
return x_63;
}
}
}
case 1:
{
lean_object* x_64; uint8_t x_65; 
lean_dec(x_1);
x_64 = lean_ctor_get(x_20, 1);
lean_inc(x_64);
lean_dec(x_20);
x_65 = !lean_is_exclusive(x_21);
if (x_65 == 0)
{
lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_66 = lean_ctor_get(x_21, 0);
lean_ctor_set(x_21, 0, x_11);
x_67 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_67, 0, x_66);
x_68 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_68, 0, x_3);
x_69 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_13);
x_70 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_70, 0, x_67);
lean_ctor_set(x_70, 1, x_69);
x_71 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_71, 0, x_21);
lean_ctor_set(x_71, 1, x_70);
x_72 = lean_array_mk(x_71);
x_73 = l_Lean_Meta_mkAppOptM(x_2, x_72, x_6, x_7, x_8, x_9, x_64);
return x_73;
}
else
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; 
x_74 = lean_ctor_get(x_21, 0);
lean_inc(x_74);
lean_dec(x_21);
x_75 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_75, 0, x_11);
x_76 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_76, 0, x_74);
x_77 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_77, 0, x_3);
x_78 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_78, 0, x_77);
lean_ctor_set(x_78, 1, x_13);
x_79 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_79, 0, x_76);
lean_ctor_set(x_79, 1, x_78);
x_80 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_80, 0, x_75);
lean_ctor_set(x_80, 1, x_79);
x_81 = lean_array_mk(x_80);
x_82 = l_Lean_Meta_mkAppOptM(x_2, x_81, x_6, x_7, x_8, x_9, x_64);
return x_82;
}
}
default: 
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; 
x_83 = lean_ctor_get(x_20, 1);
lean_inc(x_83);
lean_dec(x_20);
x_84 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__1;
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
x_85 = l_Lean_Meta_whnfEasyCases___at_Lean_Meta_whnfCore_go___spec__2(x_84, x_11, x_84, x_6, x_7, x_8, x_9, x_83);
if (lean_obj_tag(x_85) == 0)
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; 
x_86 = lean_ctor_get(x_85, 0);
lean_inc(x_86);
x_87 = lean_ctor_get(x_85, 1);
lean_inc(x_87);
lean_dec(x_85);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_86);
x_88 = l_Lean_Meta_unfoldDefinition_x3f(x_86, x_6, x_7, x_8, x_9, x_87);
if (lean_obj_tag(x_88) == 0)
{
lean_object* x_89; lean_object* x_90; uint8_t x_91; 
x_89 = lean_ctor_get(x_88, 0);
lean_inc(x_89);
x_90 = lean_ctor_get(x_88, 1);
lean_inc(x_90);
lean_dec(x_88);
if (lean_obj_tag(x_89) == 0)
{
if (x_5 == 0)
{
uint8_t x_110; 
x_110 = 0;
x_91 = x_110;
goto block_109;
}
else
{
uint8_t x_111; 
x_111 = 1;
x_91 = x_111;
goto block_109;
}
}
else
{
uint8_t x_112; 
lean_dec(x_86);
x_112 = !lean_is_exclusive(x_89);
if (x_112 == 0)
{
x_4 = x_89;
x_10 = x_90;
goto _start;
}
else
{
lean_object* x_114; lean_object* x_115; 
x_114 = lean_ctor_get(x_89, 0);
lean_inc(x_114);
lean_dec(x_89);
x_115 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_115, 0, x_114);
x_4 = x_115;
x_10 = x_90;
goto _start;
}
}
block_109:
{
if (x_91 == 0)
{
lean_object* x_92; lean_object* x_93; uint8_t x_94; 
lean_dec(x_86);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_92 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3;
x_93 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_92, x_6, x_7, x_8, x_9, x_90);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_94 = !lean_is_exclusive(x_93);
if (x_94 == 0)
{
return x_93;
}
else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_93, 0);
x_96 = lean_ctor_get(x_93, 1);
lean_inc(x_96);
lean_inc(x_95);
lean_dec(x_93);
x_97 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_97, 0, x_95);
lean_ctor_set(x_97, 1, x_96);
return x_97;
}
}
else
{
uint8_t x_98; uint8_t x_99; lean_object* x_100; 
x_98 = 1;
x_99 = 0;
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
x_100 = l_Lean_Meta_reduce(x_86, x_98, x_99, x_98, x_6, x_7, x_8, x_9, x_90);
if (lean_obj_tag(x_100) == 0)
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; 
x_101 = lean_ctor_get(x_100, 0);
lean_inc(x_101);
x_102 = lean_ctor_get(x_100, 1);
lean_inc(x_102);
lean_dec(x_100);
x_103 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_103, 0, x_101);
x_4 = x_103;
x_5 = x_99;
x_10 = x_102;
goto _start;
}
else
{
uint8_t x_105; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_105 = !lean_is_exclusive(x_100);
if (x_105 == 0)
{
return x_100;
}
else
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_100, 0);
x_107 = lean_ctor_get(x_100, 1);
lean_inc(x_107);
lean_inc(x_106);
lean_dec(x_100);
x_108 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_108, 0, x_106);
lean_ctor_set(x_108, 1, x_107);
return x_108;
}
}
}
}
}
else
{
uint8_t x_117; 
lean_dec(x_86);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_117 = !lean_is_exclusive(x_88);
if (x_117 == 0)
{
return x_88;
}
else
{
lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_118 = lean_ctor_get(x_88, 0);
x_119 = lean_ctor_get(x_88, 1);
lean_inc(x_119);
lean_inc(x_118);
lean_dec(x_88);
x_120 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_120, 0, x_118);
lean_ctor_set(x_120, 1, x_119);
return x_120;
}
}
}
else
{
uint8_t x_121; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_121 = !lean_is_exclusive(x_85);
if (x_121 == 0)
{
return x_85;
}
else
{
lean_object* x_122; lean_object* x_123; lean_object* x_124; 
x_122 = lean_ctor_get(x_85, 0);
x_123 = lean_ctor_get(x_85, 1);
lean_inc(x_123);
lean_inc(x_122);
lean_dec(x_85);
x_124 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_124, 0, x_122);
lean_ctor_set(x_124, 1, x_123);
return x_124;
}
}
}
}
}
else
{
uint8_t x_125; 
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_125 = !lean_is_exclusive(x_20);
if (x_125 == 0)
{
return x_20;
}
else
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; 
x_126 = lean_ctor_get(x_20, 0);
x_127 = lean_ctor_get(x_20, 1);
lean_inc(x_127);
lean_inc(x_126);
lean_dec(x_20);
x_128 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_128, 0, x_126);
lean_ctor_set(x_128, 1, x_127);
return x_128;
}
}
}
else
{
uint8_t x_129; 
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_129 = !lean_is_exclusive(x_16);
if (x_129 == 0)
{
return x_16;
}
else
{
lean_object* x_130; lean_object* x_131; lean_object* x_132; 
x_130 = lean_ctor_get(x_16, 0);
x_131 = lean_ctor_get(x_16, 1);
lean_inc(x_131);
lean_inc(x_130);
lean_dec(x_16);
x_132 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_132, 0, x_130);
lean_ctor_set(x_132, 1, x_131);
return x_132;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
_start:
{
uint8_t x_11; lean_object* x_12; 
x_11 = lean_unbox(x_5);
lean_dec(x_5);
x_12 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10);
return x_12;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ToString", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("toString", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__1;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__3;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_8 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__2;
x_9 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__4;
x_10 = 1;
x_11 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj(x_8, x_9, x_1, x_2, x_10, x_3, x_4, x_5, x_6, x_7);
return x_11;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Repr", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_8 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__2;
x_9 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__3;
x_10 = 1;
x_11 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj(x_8, x_9, x_1, x_2, x_10, x_3, x_4, x_5, x_6, x_7);
return x_11;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ToExpr", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__1;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("toExpr", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__1;
x_3 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__3;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_8 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__2;
x_9 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__4;
x_10 = 1;
x_11 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj(x_8, x_9, x_1, x_2, x_10, x_3, x_4, x_5, x_6, x_7);
return x_11;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("could not synthesize a 'Repr' or 'ToString' instance for type", 61, 61);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__1;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
x_8 = lean_infer_type(x_1, x_3, x_4, x_5, x_6, x_7);
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_8, 1);
lean_inc(x_10);
lean_dec(x_8);
x_11 = l_Lean_indentExpr(x_9);
x_12 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__2;
x_13 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_11);
x_14 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
x_15 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
x_16 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_15, x_3, x_4, x_5, x_6, x_10);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_16;
}
else
{
uint8_t x_17; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_17 = !lean_is_exclusive(x_8);
if (x_17 == 0)
{
return x_8;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_18 = lean_ctor_get(x_8, 0);
x_19 = lean_ctor_get(x_8, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_8);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
return x_20;
}
}
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___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___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; 
x_10 = lean_box(0);
x_11 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_11, 0, x_1);
lean_ctor_set(x_11, 1, x_10);
x_12 = lean_array_mk(x_11);
x_13 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__2;
x_14 = lean_alloc_closure((void*)(l_Lean_Elab_applyDerivingHandlers), 5, 2);
lean_closure_set(x_14, 0, x_13);
lean_closure_set(x_14, 1, x_12);
x_15 = 1;
x_16 = l_Lean_liftCommandElabM___rarg(x_14, x_15, x_7, x_8, x_9);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_17 = lean_ctor_get(x_16, 1);
lean_inc(x_17);
lean_dec(x_16);
x_18 = lean_st_ref_take(x_6, x_17);
x_19 = lean_ctor_get(x_18, 0);
lean_inc(x_19);
x_20 = lean_ctor_get(x_18, 1);
lean_inc(x_20);
lean_dec(x_18);
x_21 = !lean_is_exclusive(x_19);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
x_22 = lean_ctor_get(x_19, 1);
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_22, 1);
lean_inc(x_24);
x_25 = lean_ctor_get(x_22, 3);
lean_inc(x_25);
x_26 = lean_ctor_get(x_22, 4);
lean_inc(x_26);
x_27 = lean_ctor_get(x_22, 5);
lean_inc(x_27);
x_28 = lean_ctor_get(x_22, 6);
lean_inc(x_28);
lean_dec(x_22);
x_29 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__2;
x_30 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_30, 0, x_23);
lean_ctor_set(x_30, 1, x_24);
lean_ctor_set(x_30, 2, x_29);
lean_ctor_set(x_30, 3, x_25);
lean_ctor_set(x_30, 4, x_26);
lean_ctor_set(x_30, 5, x_27);
lean_ctor_set(x_30, 6, x_28);
lean_ctor_set(x_19, 1, x_30);
x_31 = lean_st_ref_set(x_6, x_19, x_20);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 1);
x_34 = lean_ctor_get(x_31, 0);
lean_dec(x_34);
x_35 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr(x_2, x_3, x_5, x_6, x_7, x_8, x_33);
if (lean_obj_tag(x_35) == 0)
{
uint8_t x_36; 
x_36 = !lean_is_exclusive(x_35);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; 
x_37 = lean_ctor_get(x_35, 0);
x_38 = lean_box(0);
lean_ctor_set_tag(x_31, 1);
lean_ctor_set(x_31, 1, x_38);
lean_ctor_set(x_31, 0, x_37);
lean_ctor_set(x_35, 0, x_31);
return x_35;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_39 = lean_ctor_get(x_35, 0);
x_40 = lean_ctor_get(x_35, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_35);
x_41 = lean_box(0);
lean_ctor_set_tag(x_31, 1);
lean_ctor_set(x_31, 1, x_41);
lean_ctor_set(x_31, 0, x_39);
x_42 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_42, 0, x_31);
lean_ctor_set(x_42, 1, x_40);
return x_42;
}
}
else
{
uint8_t x_43; 
lean_free_object(x_31);
x_43 = !lean_is_exclusive(x_35);
if (x_43 == 0)
{
return x_35;
}
else
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_44 = lean_ctor_get(x_35, 0);
x_45 = lean_ctor_get(x_35, 1);
lean_inc(x_45);
lean_inc(x_44);
lean_dec(x_35);
x_46 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_46, 0, x_44);
lean_ctor_set(x_46, 1, x_45);
return x_46;
}
}
}
else
{
lean_object* x_47; lean_object* x_48; 
x_47 = lean_ctor_get(x_31, 1);
lean_inc(x_47);
lean_dec(x_31);
x_48 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr(x_2, x_3, x_5, x_6, x_7, x_8, x_47);
if (lean_obj_tag(x_48) == 0)
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_49 = lean_ctor_get(x_48, 0);
lean_inc(x_49);
x_50 = lean_ctor_get(x_48, 1);
lean_inc(x_50);
if (lean_is_exclusive(x_48)) {
 lean_ctor_release(x_48, 0);
 lean_ctor_release(x_48, 1);
 x_51 = x_48;
} else {
 lean_dec_ref(x_48);
 x_51 = lean_box(0);
}
x_52 = lean_box(0);
x_53 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_53, 0, x_49);
lean_ctor_set(x_53, 1, x_52);
if (lean_is_scalar(x_51)) {
 x_54 = lean_alloc_ctor(0, 2, 0);
} else {
 x_54 = x_51;
}
lean_ctor_set(x_54, 0, x_53);
lean_ctor_set(x_54, 1, x_50);
return x_54;
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; 
x_55 = lean_ctor_get(x_48, 0);
lean_inc(x_55);
x_56 = lean_ctor_get(x_48, 1);
lean_inc(x_56);
if (lean_is_exclusive(x_48)) {
 lean_ctor_release(x_48, 0);
 lean_ctor_release(x_48, 1);
 x_57 = x_48;
} else {
 lean_dec_ref(x_48);
 x_57 = lean_box(0);
}
if (lean_is_scalar(x_57)) {
 x_58 = lean_alloc_ctor(1, 2, 0);
} else {
 x_58 = x_57;
}
lean_ctor_set(x_58, 0, x_55);
lean_ctor_set(x_58, 1, x_56);
return x_58;
}
}
}
else
{
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; 
x_59 = lean_ctor_get(x_19, 0);
x_60 = lean_ctor_get(x_19, 1);
x_61 = lean_ctor_get(x_19, 2);
x_62 = lean_ctor_get(x_19, 3);
x_63 = lean_ctor_get(x_19, 4);
lean_inc(x_63);
lean_inc(x_62);
lean_inc(x_61);
lean_inc(x_60);
lean_inc(x_59);
lean_dec(x_19);
x_64 = lean_ctor_get(x_60, 0);
lean_inc(x_64);
x_65 = lean_ctor_get(x_60, 1);
lean_inc(x_65);
x_66 = lean_ctor_get(x_60, 3);
lean_inc(x_66);
x_67 = lean_ctor_get(x_60, 4);
lean_inc(x_67);
x_68 = lean_ctor_get(x_60, 5);
lean_inc(x_68);
x_69 = lean_ctor_get(x_60, 6);
lean_inc(x_69);
lean_dec(x_60);
x_70 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__2;
x_71 = lean_alloc_ctor(0, 7, 0);
lean_ctor_set(x_71, 0, x_64);
lean_ctor_set(x_71, 1, x_65);
lean_ctor_set(x_71, 2, x_70);
lean_ctor_set(x_71, 3, x_66);
lean_ctor_set(x_71, 4, x_67);
lean_ctor_set(x_71, 5, x_68);
lean_ctor_set(x_71, 6, x_69);
x_72 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_72, 0, x_59);
lean_ctor_set(x_72, 1, x_71);
lean_ctor_set(x_72, 2, x_61);
lean_ctor_set(x_72, 3, x_62);
lean_ctor_set(x_72, 4, x_63);
x_73 = lean_st_ref_set(x_6, x_72, x_20);
x_74 = lean_ctor_get(x_73, 1);
lean_inc(x_74);
if (lean_is_exclusive(x_73)) {
 lean_ctor_release(x_73, 0);
 lean_ctor_release(x_73, 1);
 x_75 = x_73;
} else {
 lean_dec_ref(x_73);
 x_75 = lean_box(0);
}
x_76 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr(x_2, x_3, x_5, x_6, x_7, x_8, x_74);
if (lean_obj_tag(x_76) == 0)
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; 
x_77 = lean_ctor_get(x_76, 0);
lean_inc(x_77);
x_78 = lean_ctor_get(x_76, 1);
lean_inc(x_78);
if (lean_is_exclusive(x_76)) {
 lean_ctor_release(x_76, 0);
 lean_ctor_release(x_76, 1);
 x_79 = x_76;
} else {
 lean_dec_ref(x_76);
 x_79 = lean_box(0);
}
x_80 = lean_box(0);
if (lean_is_scalar(x_75)) {
 x_81 = lean_alloc_ctor(1, 2, 0);
} else {
 x_81 = x_75;
 lean_ctor_set_tag(x_81, 1);
}
lean_ctor_set(x_81, 0, x_77);
lean_ctor_set(x_81, 1, x_80);
if (lean_is_scalar(x_79)) {
 x_82 = lean_alloc_ctor(0, 2, 0);
} else {
 x_82 = x_79;
}
lean_ctor_set(x_82, 0, x_81);
lean_ctor_set(x_82, 1, x_78);
return x_82;
}
else
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; 
lean_dec(x_75);
x_83 = lean_ctor_get(x_76, 0);
lean_inc(x_83);
x_84 = lean_ctor_get(x_76, 1);
lean_inc(x_84);
if (lean_is_exclusive(x_76)) {
 lean_ctor_release(x_76, 0);
 lean_ctor_release(x_76, 1);
 x_85 = x_76;
} else {
 lean_dec_ref(x_76);
 x_85 = lean_box(0);
}
if (lean_is_scalar(x_85)) {
 x_86 = lean_alloc_ctor(1, 2, 0);
} else {
 x_86 = x_85;
}
lean_ctor_set(x_86, 0, x_83);
lean_ctor_set(x_86, 1, x_84);
return x_86;
}
}
}
else
{
uint8_t x_87; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
x_87 = !lean_is_exclusive(x_16);
if (x_87 == 0)
{
return x_16;
}
else
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; 
x_88 = lean_ctor_get(x_16, 0);
x_89 = lean_ctor_get(x_16, 1);
lean_inc(x_89);
lean_inc(x_88);
lean_dec(x_16);
x_90 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_90, 0, x_88);
lean_ctor_set(x_90, 1, x_89);
return x_90;
}
}
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_eval_derive_repr;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Failed to use derived 'Repr' instance. Exception: ", 50, 50);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Attempting to derive a 'Repr' instance for '", 44, 44);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__4;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("'", 1, 1);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__6;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std", 3, 3);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Format", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("text", 4, 4);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__8;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__9;
x_3 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__10;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_7 = lean_box(0);
x_8 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6);
x_9 = lean_ctor_get(x_8, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_8, 1);
lean_inc(x_10);
lean_dec(x_8);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_11 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr(x_1, x_7, x_2, x_3, x_4, x_5, x_10);
if (lean_obj_tag(x_11) == 0)
{
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_11;
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_13 = lean_ctor_get(x_11, 0);
x_14 = lean_ctor_get(x_11, 1);
x_15 = l_Lean_Exception_isInterrupt(x_13);
if (x_15 == 0)
{
uint8_t x_16; 
x_16 = l_Lean_Exception_isRuntime(x_13);
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_147; 
lean_free_object(x_11);
lean_dec(x_13);
x_17 = l_Lean_Meta_SavedState_restore(x_9, x_2, x_3, x_4, x_5, x_14);
lean_dec(x_9);
x_18 = lean_ctor_get(x_17, 1);
lean_inc(x_18);
if (lean_is_exclusive(x_17)) {
 lean_ctor_release(x_17, 0);
 lean_ctor_release(x_17, 1);
 x_19 = x_17;
} else {
 lean_dec_ref(x_17);
 x_19 = lean_box(0);
}
x_20 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_18);
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 x_23 = x_20;
} else {
 lean_dec_ref(x_20);
 x_23 = lean_box(0);
}
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_147 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString(x_1, x_7, x_2, x_3, x_4, x_5, x_22);
if (lean_obj_tag(x_147) == 0)
{
uint8_t x_148; 
x_148 = !lean_is_exclusive(x_147);
if (x_148 == 0)
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; 
x_149 = lean_ctor_get(x_147, 1);
x_150 = lean_box(0);
lean_ctor_set_tag(x_147, 1);
lean_ctor_set(x_147, 1, x_150);
x_151 = lean_array_mk(x_147);
x_152 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__11;
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_153 = l_Lean_Meta_mkAppM(x_152, x_151, x_2, x_3, x_4, x_5, x_149);
if (lean_obj_tag(x_153) == 0)
{
lean_dec(x_23);
lean_dec(x_21);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_153;
}
else
{
lean_object* x_154; lean_object* x_155; 
x_154 = lean_ctor_get(x_153, 0);
lean_inc(x_154);
x_155 = lean_ctor_get(x_153, 1);
lean_inc(x_155);
lean_dec(x_153);
x_24 = x_154;
x_25 = x_155;
goto block_146;
}
}
else
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; 
x_156 = lean_ctor_get(x_147, 0);
x_157 = lean_ctor_get(x_147, 1);
lean_inc(x_157);
lean_inc(x_156);
lean_dec(x_147);
x_158 = lean_box(0);
x_159 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_159, 0, x_156);
lean_ctor_set(x_159, 1, x_158);
x_160 = lean_array_mk(x_159);
x_161 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__11;
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_162 = l_Lean_Meta_mkAppM(x_161, x_160, x_2, x_3, x_4, x_5, x_157);
if (lean_obj_tag(x_162) == 0)
{
lean_dec(x_23);
lean_dec(x_21);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_162;
}
else
{
lean_object* x_163; lean_object* x_164; 
x_163 = lean_ctor_get(x_162, 0);
lean_inc(x_163);
x_164 = lean_ctor_get(x_162, 1);
lean_inc(x_164);
lean_dec(x_162);
x_24 = x_163;
x_25 = x_164;
goto block_146;
}
}
}
else
{
lean_object* x_165; lean_object* x_166; 
x_165 = lean_ctor_get(x_147, 0);
lean_inc(x_165);
x_166 = lean_ctor_get(x_147, 1);
lean_inc(x_166);
lean_dec(x_147);
x_24 = x_165;
x_25 = x_166;
goto block_146;
}
block_146:
{
uint8_t x_26; 
x_26 = l_Lean_Exception_isInterrupt(x_24);
if (x_26 == 0)
{
uint8_t x_27; 
x_27 = l_Lean_Exception_isRuntime(x_24);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 
lean_dec(x_24);
lean_dec(x_23);
x_28 = l_Lean_Meta_SavedState_restore(x_21, x_2, x_3, x_4, x_5, x_25);
lean_dec(x_21);
x_29 = lean_ctor_get(x_28, 1);
lean_inc(x_29);
if (lean_is_exclusive(x_28)) {
 lean_ctor_release(x_28, 0);
 lean_ctor_release(x_28, 1);
 x_30 = x_28;
} else {
 lean_dec_ref(x_28);
 x_30 = lean_box(0);
}
x_31 = lean_ctor_get(x_4, 2);
lean_inc(x_31);
x_32 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__1;
x_33 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_31, x_32);
lean_dec(x_31);
if (x_33 == 0)
{
lean_object* x_34; lean_object* x_35; 
lean_dec(x_30);
lean_dec(x_19);
x_34 = lean_box(0);
x_35 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1(x_1, x_34, x_2, x_3, x_4, x_5, x_29);
return x_35;
}
else
{
lean_object* x_36; 
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_36 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_29);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_37 = lean_ctor_get(x_36, 0);
lean_inc(x_37);
x_38 = lean_ctor_get(x_36, 1);
lean_inc(x_38);
if (lean_is_exclusive(x_36)) {
 lean_ctor_release(x_36, 0);
 lean_ctor_release(x_36, 1);
 x_39 = x_36;
} else {
 lean_dec_ref(x_36);
 x_39 = lean_box(0);
}
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_40 = lean_whnf(x_37, x_2, x_3, x_4, x_5, x_38);
if (lean_obj_tag(x_40) == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_41 = lean_ctor_get(x_40, 0);
lean_inc(x_41);
x_42 = lean_ctor_get(x_40, 1);
lean_inc(x_42);
if (lean_is_exclusive(x_40)) {
 lean_ctor_release(x_40, 0);
 lean_ctor_release(x_40, 1);
 x_43 = x_40;
} else {
 lean_dec_ref(x_40);
 x_43 = lean_box(0);
}
x_44 = l_Lean_Expr_getAppFn(x_41);
lean_dec(x_41);
if (lean_obj_tag(x_44) == 4)
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_54; lean_object* x_55; lean_object* x_93; lean_object* x_94; uint8_t x_95; 
x_45 = lean_ctor_get(x_44, 0);
lean_inc(x_45);
lean_dec(x_44);
x_46 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__1;
x_93 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_46, x_2, x_3, x_4, x_5, x_42);
x_94 = lean_ctor_get(x_93, 0);
lean_inc(x_94);
x_95 = lean_unbox(x_94);
lean_dec(x_94);
if (x_95 == 0)
{
lean_object* x_96; lean_object* x_97; lean_object* x_98; 
lean_dec(x_19);
x_96 = lean_ctor_get(x_93, 1);
lean_inc(x_96);
lean_dec(x_93);
x_97 = lean_box(0);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_98 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2(x_45, x_1, x_7, x_97, x_2, x_3, x_4, x_5, x_96);
if (lean_obj_tag(x_98) == 0)
{
lean_object* x_99; lean_object* x_100; 
lean_dec(x_39);
lean_dec(x_30);
x_99 = lean_ctor_get(x_98, 0);
lean_inc(x_99);
x_100 = lean_ctor_get(x_98, 1);
lean_inc(x_100);
lean_dec(x_98);
x_47 = x_99;
x_48 = x_100;
goto block_53;
}
else
{
lean_object* x_101; lean_object* x_102; 
x_101 = lean_ctor_get(x_98, 0);
lean_inc(x_101);
x_102 = lean_ctor_get(x_98, 1);
lean_inc(x_102);
lean_dec(x_98);
x_54 = x_101;
x_55 = x_102;
goto block_92;
}
}
else
{
uint8_t x_103; 
x_103 = !lean_is_exclusive(x_93);
if (x_103 == 0)
{
lean_object* x_104; lean_object* x_105; uint8_t 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; 
x_104 = lean_ctor_get(x_93, 1);
x_105 = lean_ctor_get(x_93, 0);
lean_dec(x_105);
x_106 = 0;
lean_inc(x_45);
x_107 = l_Lean_MessageData_ofConstName(x_45, x_106);
x_108 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__5;
lean_ctor_set_tag(x_93, 7);
lean_ctor_set(x_93, 1, x_107);
lean_ctor_set(x_93, 0, x_108);
x_109 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__7;
if (lean_is_scalar(x_19)) {
 x_110 = lean_alloc_ctor(7, 2, 0);
} else {
 x_110 = x_19;
 lean_ctor_set_tag(x_110, 7);
}
lean_ctor_set(x_110, 0, x_93);
lean_ctor_set(x_110, 1, x_109);
x_111 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_46, x_110, x_2, x_3, x_4, x_5, x_104);
x_112 = lean_ctor_get(x_111, 0);
lean_inc(x_112);
x_113 = lean_ctor_get(x_111, 1);
lean_inc(x_113);
lean_dec(x_111);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_114 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2(x_45, x_1, x_7, x_112, x_2, x_3, x_4, x_5, x_113);
lean_dec(x_112);
if (lean_obj_tag(x_114) == 0)
{
lean_object* x_115; lean_object* x_116; 
lean_dec(x_39);
lean_dec(x_30);
x_115 = lean_ctor_get(x_114, 0);
lean_inc(x_115);
x_116 = lean_ctor_get(x_114, 1);
lean_inc(x_116);
lean_dec(x_114);
x_47 = x_115;
x_48 = x_116;
goto block_53;
}
else
{
lean_object* x_117; lean_object* x_118; 
x_117 = lean_ctor_get(x_114, 0);
lean_inc(x_117);
x_118 = lean_ctor_get(x_114, 1);
lean_inc(x_118);
lean_dec(x_114);
x_54 = x_117;
x_55 = x_118;
goto block_92;
}
}
else
{
lean_object* x_119; uint8_t 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; 
x_119 = lean_ctor_get(x_93, 1);
lean_inc(x_119);
lean_dec(x_93);
x_120 = 0;
lean_inc(x_45);
x_121 = l_Lean_MessageData_ofConstName(x_45, x_120);
x_122 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__5;
x_123 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_123, 0, x_122);
lean_ctor_set(x_123, 1, x_121);
x_124 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__7;
if (lean_is_scalar(x_19)) {
 x_125 = lean_alloc_ctor(7, 2, 0);
} else {
 x_125 = x_19;
 lean_ctor_set_tag(x_125, 7);
}
lean_ctor_set(x_125, 0, x_123);
lean_ctor_set(x_125, 1, x_124);
x_126 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_46, x_125, x_2, x_3, x_4, x_5, x_119);
x_127 = lean_ctor_get(x_126, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_126, 1);
lean_inc(x_128);
lean_dec(x_126);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_129 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2(x_45, x_1, x_7, x_127, x_2, x_3, x_4, x_5, x_128);
lean_dec(x_127);
if (lean_obj_tag(x_129) == 0)
{
lean_object* x_130; lean_object* x_131; 
lean_dec(x_39);
lean_dec(x_30);
x_130 = lean_ctor_get(x_129, 0);
lean_inc(x_130);
x_131 = lean_ctor_get(x_129, 1);
lean_inc(x_131);
lean_dec(x_129);
x_47 = x_130;
x_48 = x_131;
goto block_53;
}
else
{
lean_object* x_132; lean_object* x_133; 
x_132 = lean_ctor_get(x_129, 0);
lean_inc(x_132);
x_133 = lean_ctor_get(x_129, 1);
lean_inc(x_133);
lean_dec(x_129);
x_54 = x_132;
x_55 = x_133;
goto block_92;
}
}
}
block_53:
{
if (lean_obj_tag(x_47) == 0)
{
lean_object* x_49; lean_object* x_50; 
lean_dec(x_43);
x_49 = lean_ctor_get(x_47, 0);
lean_inc(x_49);
lean_dec(x_47);
x_50 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1(x_1, x_49, x_2, x_3, x_4, x_5, x_48);
lean_dec(x_49);
return x_50;
}
else
{
lean_object* x_51; lean_object* x_52; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_51 = lean_ctor_get(x_47, 0);
lean_inc(x_51);
lean_dec(x_47);
if (lean_is_scalar(x_43)) {
 x_52 = lean_alloc_ctor(0, 2, 0);
} else {
 x_52 = x_43;
}
lean_ctor_set(x_52, 0, x_51);
lean_ctor_set(x_52, 1, x_48);
return x_52;
}
}
block_92:
{
uint8_t x_56; 
x_56 = l_Lean_Exception_isInterrupt(x_54);
if (x_56 == 0)
{
uint8_t x_57; 
x_57 = l_Lean_Exception_isRuntime(x_54);
if (x_57 == 0)
{
lean_object* x_58; lean_object* x_59; uint8_t x_60; 
lean_dec(x_39);
x_58 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_46, x_2, x_3, x_4, x_5, x_55);
x_59 = lean_ctor_get(x_58, 0);
lean_inc(x_59);
x_60 = lean_unbox(x_59);
lean_dec(x_59);
if (x_60 == 0)
{
lean_object* x_61; lean_object* x_62; 
lean_dec(x_54);
lean_dec(x_30);
x_61 = lean_ctor_get(x_58, 1);
lean_inc(x_61);
lean_dec(x_58);
x_62 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__1;
x_47 = x_62;
x_48 = x_61;
goto block_53;
}
else
{
uint8_t x_63; 
x_63 = !lean_is_exclusive(x_58);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_71; 
x_64 = lean_ctor_get(x_58, 1);
x_65 = lean_ctor_get(x_58, 0);
lean_dec(x_65);
x_66 = l_Lean_Exception_toMessageData(x_54);
x_67 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__3;
lean_ctor_set_tag(x_58, 7);
lean_ctor_set(x_58, 1, x_66);
lean_ctor_set(x_58, 0, x_67);
x_68 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
if (lean_is_scalar(x_30)) {
 x_69 = lean_alloc_ctor(7, 2, 0);
} else {
 x_69 = x_30;
 lean_ctor_set_tag(x_69, 7);
}
lean_ctor_set(x_69, 0, x_58);
lean_ctor_set(x_69, 1, x_68);
x_70 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_46, x_69, x_2, x_3, x_4, x_5, x_64);
x_71 = !lean_is_exclusive(x_70);
if (x_71 == 0)
{
lean_object* x_72; lean_object* x_73; 
x_72 = lean_ctor_get(x_70, 1);
x_73 = lean_box(0);
lean_ctor_set(x_70, 1, x_73);
x_47 = x_70;
x_48 = x_72;
goto block_53;
}
else
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_74 = lean_ctor_get(x_70, 0);
x_75 = lean_ctor_get(x_70, 1);
lean_inc(x_75);
lean_inc(x_74);
lean_dec(x_70);
x_76 = lean_box(0);
x_77 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_77, 0, x_74);
lean_ctor_set(x_77, 1, x_76);
x_47 = x_77;
x_48 = x_75;
goto block_53;
}
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; 
x_78 = lean_ctor_get(x_58, 1);
lean_inc(x_78);
lean_dec(x_58);
x_79 = l_Lean_Exception_toMessageData(x_54);
x_80 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__3;
x_81 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_81, 0, x_80);
lean_ctor_set(x_81, 1, x_79);
x_82 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
if (lean_is_scalar(x_30)) {
 x_83 = lean_alloc_ctor(7, 2, 0);
} else {
 x_83 = x_30;
 lean_ctor_set_tag(x_83, 7);
}
lean_ctor_set(x_83, 0, x_81);
lean_ctor_set(x_83, 1, x_82);
x_84 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_46, x_83, x_2, x_3, x_4, x_5, x_78);
x_85 = lean_ctor_get(x_84, 0);
lean_inc(x_85);
x_86 = lean_ctor_get(x_84, 1);
lean_inc(x_86);
if (lean_is_exclusive(x_84)) {
 lean_ctor_release(x_84, 0);
 lean_ctor_release(x_84, 1);
 x_87 = x_84;
} else {
 lean_dec_ref(x_84);
 x_87 = lean_box(0);
}
x_88 = lean_box(0);
if (lean_is_scalar(x_87)) {
 x_89 = lean_alloc_ctor(0, 2, 0);
} else {
 x_89 = x_87;
}
lean_ctor_set(x_89, 0, x_85);
lean_ctor_set(x_89, 1, x_88);
x_47 = x_89;
x_48 = x_86;
goto block_53;
}
}
}
else
{
lean_object* x_90; 
lean_dec(x_43);
lean_dec(x_30);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_39)) {
 x_90 = lean_alloc_ctor(1, 2, 0);
} else {
 x_90 = x_39;
 lean_ctor_set_tag(x_90, 1);
}
lean_ctor_set(x_90, 0, x_54);
lean_ctor_set(x_90, 1, x_55);
return x_90;
}
}
else
{
lean_object* x_91; 
lean_dec(x_43);
lean_dec(x_30);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_39)) {
 x_91 = lean_alloc_ctor(1, 2, 0);
} else {
 x_91 = x_39;
 lean_ctor_set_tag(x_91, 1);
}
lean_ctor_set(x_91, 0, x_54);
lean_ctor_set(x_91, 1, x_55);
return x_91;
}
}
}
else
{
lean_object* x_134; lean_object* x_135; 
lean_dec(x_44);
lean_dec(x_43);
lean_dec(x_39);
lean_dec(x_30);
lean_dec(x_19);
x_134 = lean_box(0);
x_135 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1(x_1, x_134, x_2, x_3, x_4, x_5, x_42);
return x_135;
}
}
else
{
uint8_t x_136; 
lean_dec(x_39);
lean_dec(x_30);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_136 = !lean_is_exclusive(x_40);
if (x_136 == 0)
{
return x_40;
}
else
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; 
x_137 = lean_ctor_get(x_40, 0);
x_138 = lean_ctor_get(x_40, 1);
lean_inc(x_138);
lean_inc(x_137);
lean_dec(x_40);
x_139 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_139, 0, x_137);
lean_ctor_set(x_139, 1, x_138);
return x_139;
}
}
}
else
{
uint8_t x_140; 
lean_dec(x_30);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_140 = !lean_is_exclusive(x_36);
if (x_140 == 0)
{
return x_36;
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; 
x_141 = lean_ctor_get(x_36, 0);
x_142 = lean_ctor_get(x_36, 1);
lean_inc(x_142);
lean_inc(x_141);
lean_dec(x_36);
x_143 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_143, 0, x_141);
lean_ctor_set(x_143, 1, x_142);
return x_143;
}
}
}
}
else
{
lean_object* x_144; 
lean_dec(x_21);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_23)) {
 x_144 = lean_alloc_ctor(1, 2, 0);
} else {
 x_144 = x_23;
 lean_ctor_set_tag(x_144, 1);
}
lean_ctor_set(x_144, 0, x_24);
lean_ctor_set(x_144, 1, x_25);
return x_144;
}
}
else
{
lean_object* x_145; 
lean_dec(x_21);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_23)) {
 x_145 = lean_alloc_ctor(1, 2, 0);
} else {
 x_145 = x_23;
 lean_ctor_set_tag(x_145, 1);
}
lean_ctor_set(x_145, 0, x_24);
lean_ctor_set(x_145, 1, x_25);
return x_145;
}
}
}
else
{
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_11;
}
}
else
{
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_11;
}
}
else
{
lean_object* x_167; lean_object* x_168; uint8_t x_169; 
x_167 = lean_ctor_get(x_11, 0);
x_168 = lean_ctor_get(x_11, 1);
lean_inc(x_168);
lean_inc(x_167);
lean_dec(x_11);
x_169 = l_Lean_Exception_isInterrupt(x_167);
if (x_169 == 0)
{
uint8_t x_170; 
x_170 = l_Lean_Exception_isRuntime(x_167);
if (x_170 == 0)
{
lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_272; 
lean_dec(x_167);
x_171 = l_Lean_Meta_SavedState_restore(x_9, x_2, x_3, x_4, x_5, x_168);
lean_dec(x_9);
x_172 = lean_ctor_get(x_171, 1);
lean_inc(x_172);
if (lean_is_exclusive(x_171)) {
 lean_ctor_release(x_171, 0);
 lean_ctor_release(x_171, 1);
 x_173 = x_171;
} else {
 lean_dec_ref(x_171);
 x_173 = lean_box(0);
}
x_174 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_172);
x_175 = lean_ctor_get(x_174, 0);
lean_inc(x_175);
x_176 = lean_ctor_get(x_174, 1);
lean_inc(x_176);
if (lean_is_exclusive(x_174)) {
 lean_ctor_release(x_174, 0);
 lean_ctor_release(x_174, 1);
 x_177 = x_174;
} else {
 lean_dec_ref(x_174);
 x_177 = lean_box(0);
}
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_272 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString(x_1, x_7, x_2, x_3, x_4, x_5, x_176);
if (lean_obj_tag(x_272) == 0)
{
lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; 
x_273 = lean_ctor_get(x_272, 0);
lean_inc(x_273);
x_274 = lean_ctor_get(x_272, 1);
lean_inc(x_274);
if (lean_is_exclusive(x_272)) {
 lean_ctor_release(x_272, 0);
 lean_ctor_release(x_272, 1);
 x_275 = x_272;
} else {
 lean_dec_ref(x_272);
 x_275 = lean_box(0);
}
x_276 = lean_box(0);
if (lean_is_scalar(x_275)) {
 x_277 = lean_alloc_ctor(1, 2, 0);
} else {
 x_277 = x_275;
 lean_ctor_set_tag(x_277, 1);
}
lean_ctor_set(x_277, 0, x_273);
lean_ctor_set(x_277, 1, x_276);
x_278 = lean_array_mk(x_277);
x_279 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__11;
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_280 = l_Lean_Meta_mkAppM(x_279, x_278, x_2, x_3, x_4, x_5, x_274);
if (lean_obj_tag(x_280) == 0)
{
lean_dec(x_177);
lean_dec(x_175);
lean_dec(x_173);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_280;
}
else
{
lean_object* x_281; lean_object* x_282; 
x_281 = lean_ctor_get(x_280, 0);
lean_inc(x_281);
x_282 = lean_ctor_get(x_280, 1);
lean_inc(x_282);
lean_dec(x_280);
x_178 = x_281;
x_179 = x_282;
goto block_271;
}
}
else
{
lean_object* x_283; lean_object* x_284; 
x_283 = lean_ctor_get(x_272, 0);
lean_inc(x_283);
x_284 = lean_ctor_get(x_272, 1);
lean_inc(x_284);
lean_dec(x_272);
x_178 = x_283;
x_179 = x_284;
goto block_271;
}
block_271:
{
uint8_t x_180; 
x_180 = l_Lean_Exception_isInterrupt(x_178);
if (x_180 == 0)
{
uint8_t x_181; 
x_181 = l_Lean_Exception_isRuntime(x_178);
if (x_181 == 0)
{
lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; uint8_t x_187; 
lean_dec(x_178);
lean_dec(x_177);
x_182 = l_Lean_Meta_SavedState_restore(x_175, x_2, x_3, x_4, x_5, x_179);
lean_dec(x_175);
x_183 = lean_ctor_get(x_182, 1);
lean_inc(x_183);
if (lean_is_exclusive(x_182)) {
 lean_ctor_release(x_182, 0);
 lean_ctor_release(x_182, 1);
 x_184 = x_182;
} else {
 lean_dec_ref(x_182);
 x_184 = lean_box(0);
}
x_185 = lean_ctor_get(x_4, 2);
lean_inc(x_185);
x_186 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__1;
x_187 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_185, x_186);
lean_dec(x_185);
if (x_187 == 0)
{
lean_object* x_188; lean_object* x_189; 
lean_dec(x_184);
lean_dec(x_173);
x_188 = lean_box(0);
x_189 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1(x_1, x_188, x_2, x_3, x_4, x_5, x_183);
return x_189;
}
else
{
lean_object* x_190; 
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_190 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_183);
if (lean_obj_tag(x_190) == 0)
{
lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; 
x_191 = lean_ctor_get(x_190, 0);
lean_inc(x_191);
x_192 = lean_ctor_get(x_190, 1);
lean_inc(x_192);
if (lean_is_exclusive(x_190)) {
 lean_ctor_release(x_190, 0);
 lean_ctor_release(x_190, 1);
 x_193 = x_190;
} else {
 lean_dec_ref(x_190);
 x_193 = lean_box(0);
}
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_194 = lean_whnf(x_191, x_2, x_3, x_4, x_5, x_192);
if (lean_obj_tag(x_194) == 0)
{
lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; 
x_195 = lean_ctor_get(x_194, 0);
lean_inc(x_195);
x_196 = lean_ctor_get(x_194, 1);
lean_inc(x_196);
if (lean_is_exclusive(x_194)) {
 lean_ctor_release(x_194, 0);
 lean_ctor_release(x_194, 1);
 x_197 = x_194;
} else {
 lean_dec_ref(x_194);
 x_197 = lean_box(0);
}
x_198 = l_Lean_Expr_getAppFn(x_195);
lean_dec(x_195);
if (lean_obj_tag(x_198) == 4)
{
lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_208; lean_object* x_209; lean_object* x_233; lean_object* x_234; uint8_t x_235; 
x_199 = lean_ctor_get(x_198, 0);
lean_inc(x_199);
lean_dec(x_198);
x_200 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__1;
x_233 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_200, x_2, x_3, x_4, x_5, x_196);
x_234 = lean_ctor_get(x_233, 0);
lean_inc(x_234);
x_235 = lean_unbox(x_234);
lean_dec(x_234);
if (x_235 == 0)
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; 
lean_dec(x_173);
x_236 = lean_ctor_get(x_233, 1);
lean_inc(x_236);
lean_dec(x_233);
x_237 = lean_box(0);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_238 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2(x_199, x_1, x_7, x_237, x_2, x_3, x_4, x_5, x_236);
if (lean_obj_tag(x_238) == 0)
{
lean_object* x_239; lean_object* x_240; 
lean_dec(x_193);
lean_dec(x_184);
x_239 = lean_ctor_get(x_238, 0);
lean_inc(x_239);
x_240 = lean_ctor_get(x_238, 1);
lean_inc(x_240);
lean_dec(x_238);
x_201 = x_239;
x_202 = x_240;
goto block_207;
}
else
{
lean_object* x_241; lean_object* x_242; 
x_241 = lean_ctor_get(x_238, 0);
lean_inc(x_241);
x_242 = lean_ctor_get(x_238, 1);
lean_inc(x_242);
lean_dec(x_238);
x_208 = x_241;
x_209 = x_242;
goto block_232;
}
}
else
{
lean_object* x_243; lean_object* x_244; uint8_t x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; 
x_243 = lean_ctor_get(x_233, 1);
lean_inc(x_243);
if (lean_is_exclusive(x_233)) {
 lean_ctor_release(x_233, 0);
 lean_ctor_release(x_233, 1);
 x_244 = x_233;
} else {
 lean_dec_ref(x_233);
 x_244 = lean_box(0);
}
x_245 = 0;
lean_inc(x_199);
x_246 = l_Lean_MessageData_ofConstName(x_199, x_245);
x_247 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__5;
if (lean_is_scalar(x_244)) {
 x_248 = lean_alloc_ctor(7, 2, 0);
} else {
 x_248 = x_244;
 lean_ctor_set_tag(x_248, 7);
}
lean_ctor_set(x_248, 0, x_247);
lean_ctor_set(x_248, 1, x_246);
x_249 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__7;
if (lean_is_scalar(x_173)) {
 x_250 = lean_alloc_ctor(7, 2, 0);
} else {
 x_250 = x_173;
 lean_ctor_set_tag(x_250, 7);
}
lean_ctor_set(x_250, 0, x_248);
lean_ctor_set(x_250, 1, x_249);
x_251 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_200, x_250, x_2, x_3, x_4, x_5, x_243);
x_252 = lean_ctor_get(x_251, 0);
lean_inc(x_252);
x_253 = lean_ctor_get(x_251, 1);
lean_inc(x_253);
lean_dec(x_251);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_254 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2(x_199, x_1, x_7, x_252, x_2, x_3, x_4, x_5, x_253);
lean_dec(x_252);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_255; lean_object* x_256; 
lean_dec(x_193);
lean_dec(x_184);
x_255 = lean_ctor_get(x_254, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_254, 1);
lean_inc(x_256);
lean_dec(x_254);
x_201 = x_255;
x_202 = x_256;
goto block_207;
}
else
{
lean_object* x_257; lean_object* x_258; 
x_257 = lean_ctor_get(x_254, 0);
lean_inc(x_257);
x_258 = lean_ctor_get(x_254, 1);
lean_inc(x_258);
lean_dec(x_254);
x_208 = x_257;
x_209 = x_258;
goto block_232;
}
}
block_207:
{
if (lean_obj_tag(x_201) == 0)
{
lean_object* x_203; lean_object* x_204; 
lean_dec(x_197);
x_203 = lean_ctor_get(x_201, 0);
lean_inc(x_203);
lean_dec(x_201);
x_204 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1(x_1, x_203, x_2, x_3, x_4, x_5, x_202);
lean_dec(x_203);
return x_204;
}
else
{
lean_object* x_205; lean_object* x_206; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_205 = lean_ctor_get(x_201, 0);
lean_inc(x_205);
lean_dec(x_201);
if (lean_is_scalar(x_197)) {
 x_206 = lean_alloc_ctor(0, 2, 0);
} else {
 x_206 = x_197;
}
lean_ctor_set(x_206, 0, x_205);
lean_ctor_set(x_206, 1, x_202);
return x_206;
}
}
block_232:
{
uint8_t x_210; 
x_210 = l_Lean_Exception_isInterrupt(x_208);
if (x_210 == 0)
{
uint8_t x_211; 
x_211 = l_Lean_Exception_isRuntime(x_208);
if (x_211 == 0)
{
lean_object* x_212; lean_object* x_213; uint8_t x_214; 
lean_dec(x_193);
x_212 = l_Lean_isTracingEnabledFor___at_Lean_Meta_processPostponed_loop___spec__1(x_200, x_2, x_3, x_4, x_5, x_209);
x_213 = lean_ctor_get(x_212, 0);
lean_inc(x_213);
x_214 = lean_unbox(x_213);
lean_dec(x_213);
if (x_214 == 0)
{
lean_object* x_215; lean_object* x_216; 
lean_dec(x_208);
lean_dec(x_184);
x_215 = lean_ctor_get(x_212, 1);
lean_inc(x_215);
lean_dec(x_212);
x_216 = l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__1;
x_201 = x_216;
x_202 = x_215;
goto block_207;
}
else
{
lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; 
x_217 = lean_ctor_get(x_212, 1);
lean_inc(x_217);
if (lean_is_exclusive(x_212)) {
 lean_ctor_release(x_212, 0);
 lean_ctor_release(x_212, 1);
 x_218 = x_212;
} else {
 lean_dec_ref(x_212);
 x_218 = lean_box(0);
}
x_219 = l_Lean_Exception_toMessageData(x_208);
x_220 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__3;
if (lean_is_scalar(x_218)) {
 x_221 = lean_alloc_ctor(7, 2, 0);
} else {
 x_221 = x_218;
 lean_ctor_set_tag(x_221, 7);
}
lean_ctor_set(x_221, 0, x_220);
lean_ctor_set(x_221, 1, x_219);
x_222 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
if (lean_is_scalar(x_184)) {
 x_223 = lean_alloc_ctor(7, 2, 0);
} else {
 x_223 = x_184;
 lean_ctor_set_tag(x_223, 7);
}
lean_ctor_set(x_223, 0, x_221);
lean_ctor_set(x_223, 1, x_222);
x_224 = l_Lean_addTrace___at_Lean_Meta_processPostponed_loop___spec__2(x_200, x_223, x_2, x_3, x_4, x_5, x_217);
x_225 = lean_ctor_get(x_224, 0);
lean_inc(x_225);
x_226 = lean_ctor_get(x_224, 1);
lean_inc(x_226);
if (lean_is_exclusive(x_224)) {
 lean_ctor_release(x_224, 0);
 lean_ctor_release(x_224, 1);
 x_227 = x_224;
} else {
 lean_dec_ref(x_224);
 x_227 = lean_box(0);
}
x_228 = lean_box(0);
if (lean_is_scalar(x_227)) {
 x_229 = lean_alloc_ctor(0, 2, 0);
} else {
 x_229 = x_227;
}
lean_ctor_set(x_229, 0, x_225);
lean_ctor_set(x_229, 1, x_228);
x_201 = x_229;
x_202 = x_226;
goto block_207;
}
}
else
{
lean_object* x_230; 
lean_dec(x_197);
lean_dec(x_184);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_193)) {
 x_230 = lean_alloc_ctor(1, 2, 0);
} else {
 x_230 = x_193;
 lean_ctor_set_tag(x_230, 1);
}
lean_ctor_set(x_230, 0, x_208);
lean_ctor_set(x_230, 1, x_209);
return x_230;
}
}
else
{
lean_object* x_231; 
lean_dec(x_197);
lean_dec(x_184);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_193)) {
 x_231 = lean_alloc_ctor(1, 2, 0);
} else {
 x_231 = x_193;
 lean_ctor_set_tag(x_231, 1);
}
lean_ctor_set(x_231, 0, x_208);
lean_ctor_set(x_231, 1, x_209);
return x_231;
}
}
}
else
{
lean_object* x_259; lean_object* x_260; 
lean_dec(x_198);
lean_dec(x_197);
lean_dec(x_193);
lean_dec(x_184);
lean_dec(x_173);
x_259 = lean_box(0);
x_260 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1(x_1, x_259, x_2, x_3, x_4, x_5, x_196);
return x_260;
}
}
else
{
lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; 
lean_dec(x_193);
lean_dec(x_184);
lean_dec(x_173);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_261 = lean_ctor_get(x_194, 0);
lean_inc(x_261);
x_262 = lean_ctor_get(x_194, 1);
lean_inc(x_262);
if (lean_is_exclusive(x_194)) {
 lean_ctor_release(x_194, 0);
 lean_ctor_release(x_194, 1);
 x_263 = x_194;
} else {
 lean_dec_ref(x_194);
 x_263 = lean_box(0);
}
if (lean_is_scalar(x_263)) {
 x_264 = lean_alloc_ctor(1, 2, 0);
} else {
 x_264 = x_263;
}
lean_ctor_set(x_264, 0, x_261);
lean_ctor_set(x_264, 1, x_262);
return x_264;
}
}
else
{
lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; 
lean_dec(x_184);
lean_dec(x_173);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_265 = lean_ctor_get(x_190, 0);
lean_inc(x_265);
x_266 = lean_ctor_get(x_190, 1);
lean_inc(x_266);
if (lean_is_exclusive(x_190)) {
 lean_ctor_release(x_190, 0);
 lean_ctor_release(x_190, 1);
 x_267 = x_190;
} else {
 lean_dec_ref(x_190);
 x_267 = lean_box(0);
}
if (lean_is_scalar(x_267)) {
 x_268 = lean_alloc_ctor(1, 2, 0);
} else {
 x_268 = x_267;
}
lean_ctor_set(x_268, 0, x_265);
lean_ctor_set(x_268, 1, x_266);
return x_268;
}
}
}
else
{
lean_object* x_269; 
lean_dec(x_175);
lean_dec(x_173);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_177)) {
 x_269 = lean_alloc_ctor(1, 2, 0);
} else {
 x_269 = x_177;
 lean_ctor_set_tag(x_269, 1);
}
lean_ctor_set(x_269, 0, x_178);
lean_ctor_set(x_269, 1, x_179);
return x_269;
}
}
else
{
lean_object* x_270; 
lean_dec(x_175);
lean_dec(x_173);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_177)) {
 x_270 = lean_alloc_ctor(1, 2, 0);
} else {
 x_270 = x_177;
 lean_ctor_set_tag(x_270, 1);
}
lean_ctor_set(x_270, 0, x_178);
lean_ctor_set(x_270, 1, x_179);
return x_270;
}
}
}
else
{
lean_object* x_285; 
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_285 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_285, 0, x_167);
lean_ctor_set(x_285, 1, x_168);
return x_285;
}
}
else
{
lean_object* x_286; 
lean_dec(x_9);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_286 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_286, 0, x_167);
lean_ctor_set(x_286, 1, x_168);
return x_286;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_2);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_4);
return x_10;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("MessageData", 11, 11);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ofFormat", 8, 8);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__1;
x_3 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__2;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__3;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("could not synthesize a 'ToExpr', 'Repr', or 'ToString' instance for type", 72, 72);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__5;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_eval_pp;
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ofExpr", 6, 6);
return x_1;
}
}
static lean_object* _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__1;
x_3 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__8;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_120; lean_object* x_121; uint8_t x_122; 
x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 x_10 = x_7;
} else {
 lean_dec_ref(x_7);
 x_10 = lean_box(0);
}
x_120 = lean_ctor_get(x_4, 2);
lean_inc(x_120);
x_121 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__7;
x_122 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_120, x_121);
lean_dec(x_120);
if (x_122 == 0)
{
lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; 
x_123 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3;
x_124 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_123, x_2, x_3, x_4, x_5, x_9);
x_125 = lean_ctor_get(x_124, 0);
lean_inc(x_125);
x_126 = lean_ctor_get(x_124, 1);
lean_inc(x_126);
lean_dec(x_124);
x_11 = x_125;
x_12 = x_126;
goto block_119;
}
else
{
lean_object* x_127; lean_object* x_128; 
x_127 = lean_box(0);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_128 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr(x_1, x_127, x_2, x_3, x_4, x_5, x_9);
if (lean_obj_tag(x_128) == 0)
{
uint8_t x_129; 
x_129 = !lean_is_exclusive(x_128);
if (x_129 == 0)
{
lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; 
x_130 = lean_ctor_get(x_128, 1);
x_131 = lean_box(0);
lean_ctor_set_tag(x_128, 1);
lean_ctor_set(x_128, 1, x_131);
x_132 = lean_array_mk(x_128);
x_133 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__9;
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_134 = l_Lean_Meta_mkAppM(x_133, x_132, x_2, x_3, x_4, x_5, x_130);
if (lean_obj_tag(x_134) == 0)
{
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_134;
}
else
{
lean_object* x_135; lean_object* x_136; 
x_135 = lean_ctor_get(x_134, 0);
lean_inc(x_135);
x_136 = lean_ctor_get(x_134, 1);
lean_inc(x_136);
lean_dec(x_134);
x_11 = x_135;
x_12 = x_136;
goto block_119;
}
}
else
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; 
x_137 = lean_ctor_get(x_128, 0);
x_138 = lean_ctor_get(x_128, 1);
lean_inc(x_138);
lean_inc(x_137);
lean_dec(x_128);
x_139 = lean_box(0);
x_140 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_140, 0, x_137);
lean_ctor_set(x_140, 1, x_139);
x_141 = lean_array_mk(x_140);
x_142 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__9;
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_143 = l_Lean_Meta_mkAppM(x_142, x_141, x_2, x_3, x_4, x_5, x_138);
if (lean_obj_tag(x_143) == 0)
{
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_143;
}
else
{
lean_object* x_144; lean_object* x_145; 
x_144 = lean_ctor_get(x_143, 0);
lean_inc(x_144);
x_145 = lean_ctor_get(x_143, 1);
lean_inc(x_145);
lean_dec(x_143);
x_11 = x_144;
x_12 = x_145;
goto block_119;
}
}
}
else
{
lean_object* x_146; lean_object* x_147; 
x_146 = lean_ctor_get(x_128, 0);
lean_inc(x_146);
x_147 = lean_ctor_get(x_128, 1);
lean_inc(x_147);
lean_dec(x_128);
x_11 = x_146;
x_12 = x_147;
goto block_119;
}
}
block_119:
{
uint8_t x_13; 
x_13 = l_Lean_Exception_isInterrupt(x_11);
if (x_13 == 0)
{
uint8_t x_14; 
x_14 = l_Lean_Exception_isRuntime(x_11);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
lean_dec(x_11);
lean_dec(x_10);
x_15 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12);
lean_dec(x_8);
x_16 = lean_ctor_get(x_15, 1);
lean_inc(x_16);
lean_dec(x_15);
x_17 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_16);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = lean_ctor_get(x_17, 1);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_21 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat(x_1, x_2, x_3, x_4, x_5, x_20);
if (lean_obj_tag(x_21) == 0)
{
uint8_t x_22; 
lean_free_object(x_17);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_22 = !lean_is_exclusive(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_23 = lean_ctor_get(x_21, 0);
x_24 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__4;
x_25 = l_Lean_Expr_app___override(x_24, x_23);
lean_ctor_set(x_21, 0, x_25);
return x_21;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_26 = lean_ctor_get(x_21, 0);
x_27 = lean_ctor_get(x_21, 1);
lean_inc(x_27);
lean_inc(x_26);
lean_dec(x_21);
x_28 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__4;
x_29 = l_Lean_Expr_app___override(x_28, x_26);
x_30 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_30, 0, x_29);
lean_ctor_set(x_30, 1, x_27);
return x_30;
}
}
else
{
uint8_t x_31; 
x_31 = !lean_is_exclusive(x_21);
if (x_31 == 0)
{
lean_object* x_32; lean_object* x_33; uint8_t x_34; 
x_32 = lean_ctor_get(x_21, 0);
x_33 = lean_ctor_get(x_21, 1);
x_34 = l_Lean_Exception_isInterrupt(x_32);
if (x_34 == 0)
{
uint8_t x_35; 
x_35 = l_Lean_Exception_isRuntime(x_32);
if (x_35 == 0)
{
lean_object* x_36; uint8_t x_37; 
lean_free_object(x_21);
lean_dec(x_32);
x_36 = l_Lean_Meta_SavedState_restore(x_19, x_2, x_3, x_4, x_5, x_33);
lean_dec(x_19);
x_37 = !lean_is_exclusive(x_36);
if (x_37 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_38 = lean_ctor_get(x_36, 1);
x_39 = lean_ctor_get(x_36, 0);
lean_dec(x_39);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_40 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_38);
if (lean_obj_tag(x_40) == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; 
x_41 = lean_ctor_get(x_40, 0);
lean_inc(x_41);
x_42 = lean_ctor_get(x_40, 1);
lean_inc(x_42);
lean_dec(x_40);
x_43 = l_Lean_indentExpr(x_41);
x_44 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__6;
lean_ctor_set_tag(x_36, 7);
lean_ctor_set(x_36, 1, x_43);
lean_ctor_set(x_36, 0, x_44);
x_45 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
lean_ctor_set_tag(x_17, 7);
lean_ctor_set(x_17, 1, x_45);
lean_ctor_set(x_17, 0, x_36);
x_46 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_17, x_2, x_3, x_4, x_5, x_42);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_46;
}
else
{
uint8_t x_47; 
lean_free_object(x_36);
lean_free_object(x_17);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_47 = !lean_is_exclusive(x_40);
if (x_47 == 0)
{
return x_40;
}
else
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_48 = lean_ctor_get(x_40, 0);
x_49 = lean_ctor_get(x_40, 1);
lean_inc(x_49);
lean_inc(x_48);
lean_dec(x_40);
x_50 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_50, 0, x_48);
lean_ctor_set(x_50, 1, x_49);
return x_50;
}
}
}
else
{
lean_object* x_51; lean_object* x_52; 
x_51 = lean_ctor_get(x_36, 1);
lean_inc(x_51);
lean_dec(x_36);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_52 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_51);
if (lean_obj_tag(x_52) == 0)
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_53 = lean_ctor_get(x_52, 0);
lean_inc(x_53);
x_54 = lean_ctor_get(x_52, 1);
lean_inc(x_54);
lean_dec(x_52);
x_55 = l_Lean_indentExpr(x_53);
x_56 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__6;
x_57 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_55);
x_58 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
lean_ctor_set_tag(x_17, 7);
lean_ctor_set(x_17, 1, x_58);
lean_ctor_set(x_17, 0, x_57);
x_59 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_17, x_2, x_3, x_4, x_5, x_54);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_59;
}
else
{
lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; 
lean_free_object(x_17);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_60 = lean_ctor_get(x_52, 0);
lean_inc(x_60);
x_61 = lean_ctor_get(x_52, 1);
lean_inc(x_61);
if (lean_is_exclusive(x_52)) {
 lean_ctor_release(x_52, 0);
 lean_ctor_release(x_52, 1);
 x_62 = x_52;
} else {
 lean_dec_ref(x_52);
 x_62 = lean_box(0);
}
if (lean_is_scalar(x_62)) {
 x_63 = lean_alloc_ctor(1, 2, 0);
} else {
 x_63 = x_62;
}
lean_ctor_set(x_63, 0, x_60);
lean_ctor_set(x_63, 1, x_61);
return x_63;
}
}
}
else
{
lean_free_object(x_17);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_21;
}
}
else
{
lean_free_object(x_17);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_21;
}
}
else
{
lean_object* x_64; lean_object* x_65; uint8_t x_66; 
x_64 = lean_ctor_get(x_21, 0);
x_65 = lean_ctor_get(x_21, 1);
lean_inc(x_65);
lean_inc(x_64);
lean_dec(x_21);
x_66 = l_Lean_Exception_isInterrupt(x_64);
if (x_66 == 0)
{
uint8_t x_67; 
x_67 = l_Lean_Exception_isRuntime(x_64);
if (x_67 == 0)
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; 
lean_dec(x_64);
x_68 = l_Lean_Meta_SavedState_restore(x_19, x_2, x_3, x_4, x_5, x_65);
lean_dec(x_19);
x_69 = lean_ctor_get(x_68, 1);
lean_inc(x_69);
if (lean_is_exclusive(x_68)) {
 lean_ctor_release(x_68, 0);
 lean_ctor_release(x_68, 1);
 x_70 = x_68;
} else {
 lean_dec_ref(x_68);
 x_70 = lean_box(0);
}
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_71 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_69);
if (lean_obj_tag(x_71) == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; 
x_72 = lean_ctor_get(x_71, 0);
lean_inc(x_72);
x_73 = lean_ctor_get(x_71, 1);
lean_inc(x_73);
lean_dec(x_71);
x_74 = l_Lean_indentExpr(x_72);
x_75 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__6;
if (lean_is_scalar(x_70)) {
 x_76 = lean_alloc_ctor(7, 2, 0);
} else {
 x_76 = x_70;
 lean_ctor_set_tag(x_76, 7);
}
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_74);
x_77 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
lean_ctor_set_tag(x_17, 7);
lean_ctor_set(x_17, 1, x_77);
lean_ctor_set(x_17, 0, x_76);
x_78 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_17, x_2, x_3, x_4, x_5, x_73);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_78;
}
else
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; 
lean_dec(x_70);
lean_free_object(x_17);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_79 = lean_ctor_get(x_71, 0);
lean_inc(x_79);
x_80 = lean_ctor_get(x_71, 1);
lean_inc(x_80);
if (lean_is_exclusive(x_71)) {
 lean_ctor_release(x_71, 0);
 lean_ctor_release(x_71, 1);
 x_81 = x_71;
} else {
 lean_dec_ref(x_71);
 x_81 = lean_box(0);
}
if (lean_is_scalar(x_81)) {
 x_82 = lean_alloc_ctor(1, 2, 0);
} else {
 x_82 = x_81;
}
lean_ctor_set(x_82, 0, x_79);
lean_ctor_set(x_82, 1, x_80);
return x_82;
}
}
else
{
lean_object* x_83; 
lean_free_object(x_17);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_83 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_83, 0, x_64);
lean_ctor_set(x_83, 1, x_65);
return x_83;
}
}
else
{
lean_object* x_84; 
lean_free_object(x_17);
lean_dec(x_19);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_84 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_84, 0, x_64);
lean_ctor_set(x_84, 1, x_65);
return x_84;
}
}
}
}
else
{
lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_85 = lean_ctor_get(x_17, 0);
x_86 = lean_ctor_get(x_17, 1);
lean_inc(x_86);
lean_inc(x_85);
lean_dec(x_17);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_87 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat(x_1, x_2, x_3, x_4, x_5, x_86);
if (lean_obj_tag(x_87) == 0)
{
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_dec(x_85);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_88 = lean_ctor_get(x_87, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_87, 1);
lean_inc(x_89);
if (lean_is_exclusive(x_87)) {
 lean_ctor_release(x_87, 0);
 lean_ctor_release(x_87, 1);
 x_90 = x_87;
} else {
 lean_dec_ref(x_87);
 x_90 = lean_box(0);
}
x_91 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__4;
x_92 = l_Lean_Expr_app___override(x_91, x_88);
if (lean_is_scalar(x_90)) {
 x_93 = lean_alloc_ctor(0, 2, 0);
} else {
 x_93 = x_90;
}
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_89);
return x_93;
}
else
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; uint8_t x_97; 
x_94 = lean_ctor_get(x_87, 0);
lean_inc(x_94);
x_95 = lean_ctor_get(x_87, 1);
lean_inc(x_95);
if (lean_is_exclusive(x_87)) {
 lean_ctor_release(x_87, 0);
 lean_ctor_release(x_87, 1);
 x_96 = x_87;
} else {
 lean_dec_ref(x_87);
 x_96 = lean_box(0);
}
x_97 = l_Lean_Exception_isInterrupt(x_94);
if (x_97 == 0)
{
uint8_t x_98; 
x_98 = l_Lean_Exception_isRuntime(x_94);
if (x_98 == 0)
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; 
lean_dec(x_96);
lean_dec(x_94);
x_99 = l_Lean_Meta_SavedState_restore(x_85, x_2, x_3, x_4, x_5, x_95);
lean_dec(x_85);
x_100 = lean_ctor_get(x_99, 1);
lean_inc(x_100);
if (lean_is_exclusive(x_99)) {
 lean_ctor_release(x_99, 0);
 lean_ctor_release(x_99, 1);
 x_101 = x_99;
} else {
 lean_dec_ref(x_99);
 x_101 = lean_box(0);
}
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_102 = lean_infer_type(x_1, x_2, x_3, x_4, x_5, x_100);
if (lean_obj_tag(x_102) == 0)
{
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; 
x_103 = lean_ctor_get(x_102, 0);
lean_inc(x_103);
x_104 = lean_ctor_get(x_102, 1);
lean_inc(x_104);
lean_dec(x_102);
x_105 = l_Lean_indentExpr(x_103);
x_106 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__6;
if (lean_is_scalar(x_101)) {
 x_107 = lean_alloc_ctor(7, 2, 0);
} else {
 x_107 = x_101;
 lean_ctor_set_tag(x_107, 7);
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_105);
x_108 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
x_109 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_109, 0, x_107);
lean_ctor_set(x_109, 1, x_108);
x_110 = l_Lean_throwError___at_Lean_Expr_abstractRangeM___spec__1(x_109, x_2, x_3, x_4, x_5, x_104);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_110;
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; 
lean_dec(x_101);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_111 = lean_ctor_get(x_102, 0);
lean_inc(x_111);
x_112 = lean_ctor_get(x_102, 1);
lean_inc(x_112);
if (lean_is_exclusive(x_102)) {
 lean_ctor_release(x_102, 0);
 lean_ctor_release(x_102, 1);
 x_113 = x_102;
} else {
 lean_dec_ref(x_102);
 x_113 = lean_box(0);
}
if (lean_is_scalar(x_113)) {
 x_114 = lean_alloc_ctor(1, 2, 0);
} else {
 x_114 = x_113;
}
lean_ctor_set(x_114, 0, x_111);
lean_ctor_set(x_114, 1, x_112);
return x_114;
}
}
else
{
lean_object* x_115; 
lean_dec(x_85);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_96)) {
 x_115 = lean_alloc_ctor(1, 2, 0);
} else {
 x_115 = x_96;
}
lean_ctor_set(x_115, 0, x_94);
lean_ctor_set(x_115, 1, x_95);
return x_115;
}
}
else
{
lean_object* x_116; 
lean_dec(x_85);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_96)) {
 x_116 = lean_alloc_ctor(1, 2, 0);
} else {
 x_116 = x_96;
}
lean_ctor_set(x_116, 0, x_94);
lean_ctor_set(x_116, 1, x_95);
return x_116;
}
}
}
}
else
{
lean_object* x_117; 
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_10)) {
 x_117 = lean_alloc_ctor(1, 2, 0);
} else {
 x_117 = x_10;
 lean_ctor_set_tag(x_117, 1);
}
lean_ctor_set(x_117, 0, x_11);
lean_ctor_set(x_117, 1, x_12);
return x_117;
}
}
else
{
lean_object* x_118; 
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
if (lean_is_scalar(x_10)) {
 x_118 = lean_alloc_ctor(1, 2, 0);
} else {
 x_118 = x_10;
 lean_ctor_set_tag(x_118, 1);
}
lean_ctor_set(x_118, 0, x_11);
lean_ctor_set(x_118, 1, x_12);
return x_118;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_9 = lean_ctor_get(x_6, 5);
x_10 = lean_ctor_get(x_2, 2);
lean_inc(x_10);
lean_inc(x_10);
x_11 = l_Lean_Elab_getBetterRef(x_9, x_10);
x_12 = l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(x_1, x_4, x_5, x_6, x_7, x_8);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_14 = lean_ctor_get(x_12, 0);
x_15 = lean_ctor_get(x_12, 1);
x_16 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_14, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_15);
lean_dec(x_2);
x_17 = !lean_is_exclusive(x_16);
if (x_17 == 0)
{
lean_object* x_18; 
x_18 = lean_ctor_get(x_16, 0);
lean_ctor_set(x_12, 1, x_18);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set_tag(x_16, 1);
lean_ctor_set(x_16, 0, x_12);
return x_16;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_16, 0);
x_20 = lean_ctor_get(x_16, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_16);
lean_ctor_set(x_12, 1, x_19);
lean_ctor_set(x_12, 0, x_11);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_12);
lean_ctor_set(x_21, 1, x_20);
return x_21;
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_22 = lean_ctor_get(x_12, 0);
x_23 = lean_ctor_get(x_12, 1);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_12);
x_24 = l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(x_22, x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_23);
lean_dec(x_2);
x_25 = lean_ctor_get(x_24, 0);
lean_inc(x_25);
x_26 = lean_ctor_get(x_24, 1);
lean_inc(x_26);
if (lean_is_exclusive(x_24)) {
 lean_ctor_release(x_24, 0);
 lean_ctor_release(x_24, 1);
 x_27 = x_24;
} else {
 lean_dec_ref(x_24);
 x_27 = lean_box(0);
}
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_11);
lean_ctor_set(x_28, 1, x_25);
if (lean_is_scalar(x_27)) {
 x_29 = lean_alloc_ctor(1, 2, 0);
} else {
 x_29 = x_27;
 lean_ctor_set_tag(x_29, 1);
}
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_26);
return x_29;
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_throwError___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__3___rarg___boxed), 8, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_1, 0);
x_10 = l_Lean_stringToMessageData(x_9);
x_11 = l_Lean_throwError___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__3___rarg(x_10, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_2);
x_12 = lean_ctor_get(x_1, 0);
lean_inc(x_12);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_12);
lean_ctor_set(x_13, 1, x_8);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__2___rarg___boxed), 8, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_9 = lean_st_ref_get(x_7, x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_ctor_get(x_6, 2);
x_14 = lean_eval_const(x_12, x_13, x_1);
lean_dec(x_12);
x_15 = l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__2___rarg(x_14, x_2, x_3, x_4, x_5, x_6, x_7, x_11);
lean_dec(x_14);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg___boxed), 8, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4___rarg(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_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4___rarg___boxed), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_9 = l_Lean_Elab_Term_saveState___rarg(x_3, x_4, x_5, x_6, x_7, x_8);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_2);
x_12 = lean_apply_7(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_11);
if (lean_obj_tag(x_12) == 0)
{
uint8_t x_13; 
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_12, 0);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_12, 0, x_15);
return x_12;
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_16 = lean_ctor_get(x_12, 0);
x_17 = lean_ctor_get(x_12, 1);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_12);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_16);
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_19, 1, x_17);
return x_19;
}
}
else
{
uint8_t x_20; 
x_20 = !lean_is_exclusive(x_12);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; uint8_t x_23; 
x_21 = lean_ctor_get(x_12, 0);
x_22 = lean_ctor_get(x_12, 1);
x_23 = l_Lean_Exception_isInterrupt(x_21);
if (x_23 == 0)
{
uint8_t x_24; 
x_24 = l_Lean_Exception_isRuntime(x_21);
if (x_24 == 0)
{
uint8_t x_25; lean_object* x_26; uint8_t x_27; 
lean_free_object(x_12);
lean_dec(x_21);
x_25 = 0;
x_26 = l_Lean_Elab_Term_SavedState_restore(x_10, x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_22);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_27 = !lean_is_exclusive(x_26);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; 
x_28 = lean_ctor_get(x_26, 0);
lean_dec(x_28);
x_29 = lean_box(0);
lean_ctor_set(x_26, 0, x_29);
return x_26;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_26, 1);
lean_inc(x_30);
lean_dec(x_26);
x_31 = lean_box(0);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_30);
return x_32;
}
}
else
{
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_12;
}
}
else
{
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_12;
}
}
else
{
lean_object* x_33; lean_object* x_34; uint8_t x_35; 
x_33 = lean_ctor_get(x_12, 0);
x_34 = lean_ctor_get(x_12, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_12);
x_35 = l_Lean_Exception_isInterrupt(x_33);
if (x_35 == 0)
{
uint8_t x_36; 
x_36 = l_Lean_Exception_isRuntime(x_33);
if (x_36 == 0)
{
uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_33);
x_37 = 0;
x_38 = l_Lean_Elab_Term_SavedState_restore(x_10, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_34);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_39 = lean_ctor_get(x_38, 1);
lean_inc(x_39);
if (lean_is_exclusive(x_38)) {
 lean_ctor_release(x_38, 0);
 lean_ctor_release(x_38, 1);
 x_40 = x_38;
} else {
 lean_dec_ref(x_38);
 x_40 = lean_box(0);
}
x_41 = lean_box(0);
if (lean_is_scalar(x_40)) {
 x_42 = lean_alloc_ctor(0, 2, 0);
} else {
 x_42 = x_40;
}
lean_ctor_set(x_42, 0, x_41);
lean_ctor_set(x_42, 1, x_39);
return x_42;
}
else
{
lean_object* x_43; 
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_43 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_43, 0, x_33);
lean_ctor_set(x_43, 1, x_34);
return x_43;
}
}
else
{
lean_object* x_44; 
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_44 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_44, 0, x_33);
lean_ctor_set(x_44, 1, x_34);
return x_44;
}
}
}
}
}
LEAN_EXPORT lean_object* l_IO_withStdout___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__7(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; lean_object* x_9; 
x_6 = lean_get_set_stdout(x_1, x_5);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_apply_3(x_2, x_3, x_4, x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_get_set_stdout(x_7, x_11);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; 
x_14 = lean_ctor_get(x_12, 0);
lean_dec(x_14);
lean_ctor_set(x_12, 0, x_10);
return x_12;
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_12, 1);
lean_inc(x_15);
lean_dec(x_12);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_10);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_17 = lean_ctor_get(x_9, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_9, 1);
lean_inc(x_18);
lean_dec(x_9);
x_19 = lean_get_set_stdout(x_7, x_18);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
lean_object* x_21; 
x_21 = lean_ctor_get(x_19, 0);
lean_dec(x_21);
lean_ctor_set_tag(x_19, 1);
lean_ctor_set(x_19, 0, x_17);
return x_19;
}
else
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_ctor_get(x_19, 1);
lean_inc(x_22);
lean_dec(x_19);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_17);
lean_ctor_set(x_23, 1, x_22);
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_IO_withStdin___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__8(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; lean_object* x_9; 
x_6 = lean_get_set_stdin(x_1, x_5);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_apply_3(x_2, x_3, x_4, x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_get_set_stdin(x_7, x_11);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; 
x_14 = lean_ctor_get(x_12, 0);
lean_dec(x_14);
lean_ctor_set(x_12, 0, x_10);
return x_12;
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_12, 1);
lean_inc(x_15);
lean_dec(x_12);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_10);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_17 = lean_ctor_get(x_9, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_9, 1);
lean_inc(x_18);
lean_dec(x_9);
x_19 = lean_get_set_stdin(x_7, x_18);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
lean_object* x_21; 
x_21 = lean_ctor_get(x_19, 0);
lean_dec(x_21);
lean_ctor_set_tag(x_19, 1);
lean_ctor_set(x_19, 0, x_17);
return x_19;
}
else
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_ctor_get(x_19, 1);
lean_inc(x_22);
lean_dec(x_19);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_17);
lean_ctor_set(x_23, 1, x_22);
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_IO_withStderr___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__9(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; lean_object* x_9; 
x_6 = lean_get_set_stderr(x_1, x_5);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_6, 1);
lean_inc(x_8);
lean_dec(x_6);
x_9 = lean_apply_3(x_2, x_3, x_4, x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_9, 1);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_get_set_stderr(x_7, x_11);
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; 
x_14 = lean_ctor_get(x_12, 0);
lean_dec(x_14);
lean_ctor_set(x_12, 0, x_10);
return x_12;
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_12, 1);
lean_inc(x_15);
lean_dec(x_12);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_10);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_17 = lean_ctor_get(x_9, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_9, 1);
lean_inc(x_18);
lean_dec(x_9);
x_19 = lean_get_set_stderr(x_7, x_18);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
lean_object* x_21; 
x_21 = lean_ctor_get(x_19, 0);
lean_dec(x_21);
lean_ctor_set_tag(x_19, 1);
lean_ctor_set(x_19, 0, x_17);
return x_19;
}
else
{
lean_object* x_22; lean_object* x_23; 
x_22 = lean_ctor_get(x_19, 1);
lean_inc(x_22);
lean_dec(x_19);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_17);
lean_ctor_set(x_23, 1, x_22);
return x_23;
}
}
}
}
static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_ByteArray_empty;
x_2 = lean_unsigned_to_nat(0u);
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_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Init.Data.String.Extra", 22, 22);
return x_1;
}
}
static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("String.fromUTF8!", 16, 16);
return x_1;
}
}
static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("invalid UTF-8 string", 20, 20);
return x_1;
}
}
static lean_object* _init_l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__2;
x_2 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__3;
x_3 = lean_unsigned_to_nat(100u);
x_4 = lean_unsigned_to_nat(47u);
x_5 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__4;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6(lean_object* x_1, uint8_t 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; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__1;
x_7 = lean_st_mk_ref(x_6, x_5);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = lean_st_mk_ref(x_6, x_9);
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = lean_ctor_get(x_10, 1);
x_14 = l_IO_FS_Stream_ofBuffer(x_8);
lean_inc(x_12);
x_15 = l_IO_FS_Stream_ofBuffer(x_12);
if (x_2 == 0)
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__7), 5, 2);
lean_closure_set(x_16, 0, x_15);
lean_closure_set(x_16, 1, x_1);
x_17 = l_IO_withStdin___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__8(x_14, x_16, x_3, x_4, x_13);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_18 = lean_ctor_get(x_17, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_17, 1);
lean_inc(x_19);
lean_dec(x_17);
x_20 = lean_st_ref_get(x_12, x_19);
lean_dec(x_12);
x_21 = !lean_is_exclusive(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_22 = lean_ctor_get(x_20, 0);
x_23 = lean_ctor_get(x_22, 0);
lean_inc(x_23);
lean_dec(x_22);
x_24 = lean_string_validate_utf8(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; 
lean_dec(x_23);
x_25 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5;
x_26 = l_panic___at_String_fromUTF8_x21___spec__1(x_25);
lean_ctor_set(x_10, 1, x_18);
lean_ctor_set(x_10, 0, x_26);
lean_ctor_set(x_20, 0, x_10);
return x_20;
}
else
{
lean_object* x_27; 
x_27 = lean_string_from_utf8_unchecked(x_23);
lean_dec(x_23);
lean_ctor_set(x_10, 1, x_18);
lean_ctor_set(x_10, 0, x_27);
lean_ctor_set(x_20, 0, x_10);
return x_20;
}
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; 
x_28 = lean_ctor_get(x_20, 0);
x_29 = lean_ctor_get(x_20, 1);
lean_inc(x_29);
lean_inc(x_28);
lean_dec(x_20);
x_30 = lean_ctor_get(x_28, 0);
lean_inc(x_30);
lean_dec(x_28);
x_31 = lean_string_validate_utf8(x_30);
if (x_31 == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; 
lean_dec(x_30);
x_32 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5;
x_33 = l_panic___at_String_fromUTF8_x21___spec__1(x_32);
lean_ctor_set(x_10, 1, x_18);
lean_ctor_set(x_10, 0, x_33);
x_34 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_34, 0, x_10);
lean_ctor_set(x_34, 1, x_29);
return x_34;
}
else
{
lean_object* x_35; lean_object* x_36; 
x_35 = lean_string_from_utf8_unchecked(x_30);
lean_dec(x_30);
lean_ctor_set(x_10, 1, x_18);
lean_ctor_set(x_10, 0, x_35);
x_36 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_36, 0, x_10);
lean_ctor_set(x_36, 1, x_29);
return x_36;
}
}
}
else
{
uint8_t x_37; 
lean_free_object(x_10);
lean_dec(x_12);
x_37 = !lean_is_exclusive(x_17);
if (x_37 == 0)
{
return x_17;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_38 = lean_ctor_get(x_17, 0);
x_39 = lean_ctor_get(x_17, 1);
lean_inc(x_39);
lean_inc(x_38);
lean_dec(x_17);
x_40 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_39);
return x_40;
}
}
}
else
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; 
lean_inc(x_15);
x_41 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__9), 5, 2);
lean_closure_set(x_41, 0, x_15);
lean_closure_set(x_41, 1, x_1);
x_42 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__7), 5, 2);
lean_closure_set(x_42, 0, x_15);
lean_closure_set(x_42, 1, x_41);
x_43 = l_IO_withStdin___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__8(x_14, x_42, x_3, x_4, x_13);
if (lean_obj_tag(x_43) == 0)
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; 
x_44 = lean_ctor_get(x_43, 0);
lean_inc(x_44);
x_45 = lean_ctor_get(x_43, 1);
lean_inc(x_45);
lean_dec(x_43);
x_46 = lean_st_ref_get(x_12, x_45);
lean_dec(x_12);
x_47 = !lean_is_exclusive(x_46);
if (x_47 == 0)
{
lean_object* x_48; lean_object* x_49; uint8_t x_50; 
x_48 = lean_ctor_get(x_46, 0);
x_49 = lean_ctor_get(x_48, 0);
lean_inc(x_49);
lean_dec(x_48);
x_50 = lean_string_validate_utf8(x_49);
if (x_50 == 0)
{
lean_object* x_51; lean_object* x_52; 
lean_dec(x_49);
x_51 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5;
x_52 = l_panic___at_String_fromUTF8_x21___spec__1(x_51);
lean_ctor_set(x_10, 1, x_44);
lean_ctor_set(x_10, 0, x_52);
lean_ctor_set(x_46, 0, x_10);
return x_46;
}
else
{
lean_object* x_53; 
x_53 = lean_string_from_utf8_unchecked(x_49);
lean_dec(x_49);
lean_ctor_set(x_10, 1, x_44);
lean_ctor_set(x_10, 0, x_53);
lean_ctor_set(x_46, 0, x_10);
return x_46;
}
}
else
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; uint8_t x_57; 
x_54 = lean_ctor_get(x_46, 0);
x_55 = lean_ctor_get(x_46, 1);
lean_inc(x_55);
lean_inc(x_54);
lean_dec(x_46);
x_56 = lean_ctor_get(x_54, 0);
lean_inc(x_56);
lean_dec(x_54);
x_57 = lean_string_validate_utf8(x_56);
if (x_57 == 0)
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
lean_dec(x_56);
x_58 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5;
x_59 = l_panic___at_String_fromUTF8_x21___spec__1(x_58);
lean_ctor_set(x_10, 1, x_44);
lean_ctor_set(x_10, 0, x_59);
x_60 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_60, 0, x_10);
lean_ctor_set(x_60, 1, x_55);
return x_60;
}
else
{
lean_object* x_61; lean_object* x_62; 
x_61 = lean_string_from_utf8_unchecked(x_56);
lean_dec(x_56);
lean_ctor_set(x_10, 1, x_44);
lean_ctor_set(x_10, 0, x_61);
x_62 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_62, 0, x_10);
lean_ctor_set(x_62, 1, x_55);
return x_62;
}
}
}
else
{
uint8_t x_63; 
lean_free_object(x_10);
lean_dec(x_12);
x_63 = !lean_is_exclusive(x_43);
if (x_63 == 0)
{
return x_43;
}
else
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_43, 0);
x_65 = lean_ctor_get(x_43, 1);
lean_inc(x_65);
lean_inc(x_64);
lean_dec(x_43);
x_66 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_66, 0, x_64);
lean_ctor_set(x_66, 1, x_65);
return x_66;
}
}
}
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; 
x_67 = lean_ctor_get(x_10, 0);
x_68 = lean_ctor_get(x_10, 1);
lean_inc(x_68);
lean_inc(x_67);
lean_dec(x_10);
x_69 = l_IO_FS_Stream_ofBuffer(x_8);
lean_inc(x_67);
x_70 = l_IO_FS_Stream_ofBuffer(x_67);
if (x_2 == 0)
{
lean_object* x_71; lean_object* x_72; 
x_71 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__7), 5, 2);
lean_closure_set(x_71, 0, x_70);
lean_closure_set(x_71, 1, x_1);
x_72 = l_IO_withStdin___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__8(x_69, x_71, x_3, x_4, x_68);
if (lean_obj_tag(x_72) == 0)
{
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; uint8_t x_80; 
x_73 = lean_ctor_get(x_72, 0);
lean_inc(x_73);
x_74 = lean_ctor_get(x_72, 1);
lean_inc(x_74);
lean_dec(x_72);
x_75 = lean_st_ref_get(x_67, x_74);
lean_dec(x_67);
x_76 = lean_ctor_get(x_75, 0);
lean_inc(x_76);
x_77 = lean_ctor_get(x_75, 1);
lean_inc(x_77);
if (lean_is_exclusive(x_75)) {
 lean_ctor_release(x_75, 0);
 lean_ctor_release(x_75, 1);
 x_78 = x_75;
} else {
 lean_dec_ref(x_75);
 x_78 = lean_box(0);
}
x_79 = lean_ctor_get(x_76, 0);
lean_inc(x_79);
lean_dec(x_76);
x_80 = lean_string_validate_utf8(x_79);
if (x_80 == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; 
lean_dec(x_79);
x_81 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5;
x_82 = l_panic___at_String_fromUTF8_x21___spec__1(x_81);
x_83 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_73);
if (lean_is_scalar(x_78)) {
 x_84 = lean_alloc_ctor(0, 2, 0);
} else {
 x_84 = x_78;
}
lean_ctor_set(x_84, 0, x_83);
lean_ctor_set(x_84, 1, x_77);
return x_84;
}
else
{
lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_85 = lean_string_from_utf8_unchecked(x_79);
lean_dec(x_79);
x_86 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_86, 0, x_85);
lean_ctor_set(x_86, 1, x_73);
if (lean_is_scalar(x_78)) {
 x_87 = lean_alloc_ctor(0, 2, 0);
} else {
 x_87 = x_78;
}
lean_ctor_set(x_87, 0, x_86);
lean_ctor_set(x_87, 1, x_77);
return x_87;
}
}
else
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
lean_dec(x_67);
x_88 = lean_ctor_get(x_72, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_72, 1);
lean_inc(x_89);
if (lean_is_exclusive(x_72)) {
 lean_ctor_release(x_72, 0);
 lean_ctor_release(x_72, 1);
 x_90 = x_72;
} else {
 lean_dec_ref(x_72);
 x_90 = lean_box(0);
}
if (lean_is_scalar(x_90)) {
 x_91 = lean_alloc_ctor(1, 2, 0);
} else {
 x_91 = x_90;
}
lean_ctor_set(x_91, 0, x_88);
lean_ctor_set(x_91, 1, x_89);
return x_91;
}
}
else
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; 
lean_inc(x_70);
x_92 = lean_alloc_closure((void*)(l_IO_withStderr___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__9), 5, 2);
lean_closure_set(x_92, 0, x_70);
lean_closure_set(x_92, 1, x_1);
x_93 = lean_alloc_closure((void*)(l_IO_withStdout___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__7), 5, 2);
lean_closure_set(x_93, 0, x_70);
lean_closure_set(x_93, 1, x_92);
x_94 = l_IO_withStdin___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__8(x_69, x_93, x_3, x_4, x_68);
if (lean_obj_tag(x_94) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; 
x_95 = lean_ctor_get(x_94, 0);
lean_inc(x_95);
x_96 = lean_ctor_get(x_94, 1);
lean_inc(x_96);
lean_dec(x_94);
x_97 = lean_st_ref_get(x_67, x_96);
lean_dec(x_67);
x_98 = lean_ctor_get(x_97, 0);
lean_inc(x_98);
x_99 = lean_ctor_get(x_97, 1);
lean_inc(x_99);
if (lean_is_exclusive(x_97)) {
 lean_ctor_release(x_97, 0);
 lean_ctor_release(x_97, 1);
 x_100 = x_97;
} else {
 lean_dec_ref(x_97);
 x_100 = lean_box(0);
}
x_101 = lean_ctor_get(x_98, 0);
lean_inc(x_101);
lean_dec(x_98);
x_102 = lean_string_validate_utf8(x_101);
if (x_102 == 0)
{
lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; 
lean_dec(x_101);
x_103 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5;
x_104 = l_panic___at_String_fromUTF8_x21___spec__1(x_103);
x_105 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_105, 0, x_104);
lean_ctor_set(x_105, 1, x_95);
if (lean_is_scalar(x_100)) {
 x_106 = lean_alloc_ctor(0, 2, 0);
} else {
 x_106 = x_100;
}
lean_ctor_set(x_106, 0, x_105);
lean_ctor_set(x_106, 1, x_99);
return x_106;
}
else
{
lean_object* x_107; lean_object* x_108; lean_object* x_109; 
x_107 = lean_string_from_utf8_unchecked(x_101);
lean_dec(x_101);
x_108 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_95);
if (lean_is_scalar(x_100)) {
 x_109 = lean_alloc_ctor(0, 2, 0);
} else {
 x_109 = x_100;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_99);
return x_109;
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; 
lean_dec(x_67);
x_110 = lean_ctor_get(x_94, 0);
lean_inc(x_110);
x_111 = lean_ctor_get(x_94, 1);
lean_inc(x_111);
if (lean_is_exclusive(x_94)) {
 lean_ctor_release(x_94, 0);
 lean_ctor_release(x_94, 1);
 x_112 = x_94;
} else {
 lean_dec_ref(x_94);
 x_112 = lean_box(0);
}
if (lean_is_scalar(x_112)) {
 x_113 = lean_alloc_ctor(1, 2, 0);
} else {
 x_113 = x_112;
}
lean_ctor_set(x_113, 0, x_110);
lean_ctor_set(x_113, 1, x_111);
return x_113;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Meta_mkAppOptM(x_1, x_2, x_5, x_6, x_7, x_8, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1);
x_12 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_1, x_4, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_12, 1);
lean_inc(x_13);
lean_dec(x_12);
x_14 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_13);
lean_dec(x_6);
lean_dec(x_1);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
x_17 = l_Lean_MessageData_ofFormat(x_15);
x_18 = lean_infer_type(x_3, x_7, x_8, x_9, x_10, x_16);
if (lean_obj_tag(x_18) == 0)
{
uint8_t x_19; 
x_19 = !lean_is_exclusive(x_18);
if (x_19 == 0)
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_20 = lean_ctor_get(x_18, 0);
x_21 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4___rarg___boxed), 4, 1);
lean_closure_set(x_21, 0, x_17);
x_22 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_22, 0, x_20);
x_23 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
lean_ctor_set(x_18, 0, x_23);
return x_18;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_24 = lean_ctor_get(x_18, 0);
x_25 = lean_ctor_get(x_18, 1);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_18);
x_26 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4___rarg___boxed), 4, 1);
lean_closure_set(x_26, 0, x_17);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_24);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_26);
lean_ctor_set(x_28, 1, x_27);
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_25);
return x_29;
}
}
else
{
uint8_t x_30; 
lean_dec(x_17);
x_30 = !lean_is_exclusive(x_18);
if (x_30 == 0)
{
return x_18;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_18, 0);
x_32 = lean_ctor_get(x_18, 1);
lean_inc(x_32);
lean_inc(x_31);
lean_dec(x_18);
x_33 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_32);
return x_33;
}
}
}
else
{
uint8_t x_34; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_3);
x_34 = !lean_is_exclusive(x_14);
if (x_34 == 0)
{
return x_14;
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_35 = lean_ctor_get(x_14, 0);
x_36 = lean_ctor_get(x_14, 1);
lean_inc(x_36);
lean_inc(x_35);
lean_dec(x_14);
x_37 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_37, 0, x_35);
lean_ctor_set(x_37, 1, x_36);
return x_37;
}
}
}
else
{
uint8_t x_38; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_1);
x_38 = !lean_is_exclusive(x_12);
if (x_38 == 0)
{
return x_12;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_39 = lean_ctor_get(x_12, 0);
x_40 = lean_ctor_get(x_12, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_12);
x_41 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_41, 0, x_39);
lean_ctor_set(x_41, 1, x_40);
return x_41;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat(x_1, x_4, x_5, x_6, x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_10 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat(x_2, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_2);
lean_ctor_set(x_13, 1, x_1);
x_14 = lean_array_mk(x_13);
x_15 = 0;
x_16 = 1;
x_17 = 1;
x_18 = l_Lean_Meta_mkLambdaFVars(x_14, x_11, x_15, x_16, x_15, x_17, x_5, x_6, x_7, x_8, x_12);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_18;
}
else
{
uint8_t x_19; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_19 = !lean_is_exclusive(x_10);
if (x_19 == 0)
{
return x_10;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_10, 0);
x_21 = lean_ctor_get(x_10, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_10);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; lean_object* x_10; 
x_9 = lean_ctor_get(x_6, 5);
x_10 = lean_apply_1(x_1, x_8);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
return x_10;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_10, 0);
x_13 = lean_ctor_get(x_10, 1);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_10);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
return x_14;
}
}
else
{
uint8_t x_15; 
x_15 = !lean_is_exclusive(x_10);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_16 = lean_ctor_get(x_10, 0);
x_17 = lean_io_error_to_string(x_16);
x_18 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_18, 0, x_17);
x_19 = l_Lean_MessageData_ofFormat(x_18);
lean_inc(x_9);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_9);
lean_ctor_set(x_20, 1, x_19);
lean_ctor_set(x_10, 0, x_20);
return x_10;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_21 = lean_ctor_get(x_10, 0);
x_22 = lean_ctor_get(x_10, 1);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_10);
x_23 = lean_io_error_to_string(x_21);
x_24 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_24, 0, x_23);
x_25 = l_Lean_MessageData_ofFormat(x_24);
lean_inc(x_9);
x_26 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_26, 0, x_9);
lean_ctor_set(x_26, 1, x_25);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_22);
return x_27;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6(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_Elab_Command_liftTermElabM___rarg(x_1, x_2, x_3, x_4);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = l_Lean_MessageData_ofFormat(x_7);
lean_ctor_set(x_5, 0, x_8);
return x_5;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_9 = lean_ctor_get(x_5, 0);
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
lean_inc(x_9);
lean_dec(x_5);
x_11 = l_Lean_MessageData_ofFormat(x_9);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_10);
return x_12;
}
}
else
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_5);
if (x_13 == 0)
{
return x_5;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_5, 0);
x_15 = lean_ctor_get(x_5, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_5);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_14);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7(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_Elab_Command_liftTermElabM___rarg(x_1, x_2, x_3, x_4);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_5, 0);
lean_dec(x_7);
x_8 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__2;
lean_ctor_set(x_5, 0, x_8);
return x_5;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_5, 1);
lean_inc(x_9);
lean_dec(x_5);
x_10 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__2;
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_9);
return x_11;
}
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_5);
if (x_12 == 0)
{
return x_5;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_5, 0);
x_14 = lean_ctor_get(x_5, 1);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_5);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
return x_15;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = lean_apply_3(x_1, x_6, x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = lean_apply_5(x_1, x_4, x_5, x_6, x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__10(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_apply_3(x_1, x_2, x_3, x_4);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = l_Lean_MessageData_ofFormat(x_7);
lean_ctor_set(x_5, 0, x_8);
return x_5;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_9 = lean_ctor_get(x_5, 0);
x_10 = lean_ctor_get(x_5, 1);
lean_inc(x_10);
lean_inc(x_9);
lean_dec(x_5);
x_11 = l_Lean_MessageData_ofFormat(x_9);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_10);
return x_12;
}
}
else
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_5);
if (x_13 == 0)
{
return x_5;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_5, 0);
x_15 = lean_ctor_get(x_5, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_5);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_14);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__11(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_apply_3(x_1, x_2, x_3, x_4);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_ctor_get(x_5, 0);
lean_dec(x_7);
x_8 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__2;
lean_ctor_set(x_5, 0, x_8);
return x_5;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_5, 1);
lean_inc(x_9);
lean_dec(x_5);
x_10 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__2;
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_9);
return x_11;
}
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_5);
if (x_12 == 0)
{
return x_5;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_5, 0);
x_14 = lean_ctor_get(x_5, 1);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_5);
x_15 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
return x_15;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__12(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1);
x_12 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_1, x_4, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_12, 1);
lean_inc(x_13);
lean_dec(x_12);
x_14 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_1, x_5, x_6, x_7, x_8, x_9, x_10, x_13);
lean_dec(x_6);
lean_dec(x_1);
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 1);
lean_inc(x_16);
lean_dec(x_14);
x_17 = lean_infer_type(x_3, x_7, x_8, x_9, x_10, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4___rarg___boxed), 4, 1);
lean_closure_set(x_20, 0, x_15);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_19);
x_22 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
lean_ctor_set(x_17, 0, x_22);
return x_17;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_23 = lean_ctor_get(x_17, 0);
x_24 = lean_ctor_get(x_17, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_17);
x_25 = lean_alloc_closure((void*)(l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4___rarg___boxed), 4, 1);
lean_closure_set(x_25, 0, x_15);
x_26 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_26, 0, x_23);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_24);
return x_28;
}
}
else
{
uint8_t x_29; 
lean_dec(x_15);
x_29 = !lean_is_exclusive(x_17);
if (x_29 == 0)
{
return x_17;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_30 = lean_ctor_get(x_17, 0);
x_31 = lean_ctor_get(x_17, 1);
lean_inc(x_31);
lean_inc(x_30);
lean_dec(x_17);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
return x_32;
}
}
}
else
{
uint8_t x_33; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_3);
x_33 = !lean_is_exclusive(x_14);
if (x_33 == 0)
{
return x_14;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_34 = lean_ctor_get(x_14, 0);
x_35 = lean_ctor_get(x_14, 1);
lean_inc(x_35);
lean_inc(x_34);
lean_dec(x_14);
x_36 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_36, 0, x_34);
lean_ctor_set(x_36, 1, x_35);
return x_36;
}
}
}
else
{
uint8_t x_37; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_1);
x_37 = !lean_is_exclusive(x_12);
if (x_37 == 0)
{
return x_12;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_38 = lean_ctor_get(x_12, 0);
x_39 = lean_ctor_get(x_12, 1);
lean_inc(x_39);
lean_inc(x_38);
lean_dec(x_12);
x_40 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_39);
return x_40;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__13(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData(x_1, x_4, x_5, x_6, x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_10 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData(x_2, x_5, x_6, x_7, x_8, x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; uint8_t x_16; uint8_t x_17; lean_object* x_18; 
x_11 = lean_ctor_get(x_10, 0);
lean_inc(x_11);
x_12 = lean_ctor_get(x_10, 1);
lean_inc(x_12);
lean_dec(x_10);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_2);
lean_ctor_set(x_13, 1, x_1);
x_14 = lean_array_mk(x_13);
x_15 = 0;
x_16 = 1;
x_17 = 1;
x_18 = l_Lean_Meta_mkLambdaFVars(x_14, x_11, x_15, x_16, x_15, x_17, x_5, x_6, x_7, x_8, x_12);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_18;
}
else
{
uint8_t x_19; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_19 = !lean_is_exclusive(x_10);
if (x_19 == 0)
{
return x_10;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_10, 0);
x_21 = lean_ctor_get(x_10, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_10);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15(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_Elab_Command_liftTermElabM___rarg(x_1, x_2, x_3, x_4);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
return x_5;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
lean_inc(x_7);
lean_dec(x_5);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_7);
lean_ctor_set(x_9, 1, x_8);
return x_9;
}
}
else
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_5);
if (x_10 == 0)
{
return x_5;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_5, 0);
x_12 = lean_ctor_get(x_5, 1);
lean_inc(x_12);
lean_inc(x_11);
lean_dec(x_5);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set(x_13, 1, x_12);
return x_13;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__16(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_apply_3(x_1, x_2, x_3, x_4);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
return x_5;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
lean_inc(x_7);
lean_dec(x_5);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_7);
lean_ctor_set(x_9, 1, x_8);
return x_9;
}
}
else
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_5);
if (x_10 == 0)
{
return x_5;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_5, 0);
x_12 = lean_ctor_get(x_5, 1);
lean_inc(x_12);
lean_inc(x_11);
lean_dec(x_5);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set(x_13, 1, x_12);
return x_13;
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("MonadEvalT", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("monadEval", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__1;
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__2;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__2;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__4;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unable to synthesize '", 22, 22);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__6;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("MonadEval", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__8;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__10() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__9;
x_2 = 0;
x_3 = l_Lean_MessageData_ofConstName(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__7;
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__10;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' instance to adapt", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__12;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__11;
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__13;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\nto '", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__15;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__17() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__7;
x_2 = 0;
x_3 = l_Lean_MessageData_ofConstName(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' or '", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__18;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__20() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; 
x_1 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__2;
x_2 = 0;
x_3 = l_Lean_MessageData_ofConstName(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("'.", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__21;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("x", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__23;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__25() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__3___boxed), 8, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__7;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__26;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__28() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Unit", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__28;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__29;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__31() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Functor", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__32() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("map", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__31;
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__32;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__34() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Core", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__35() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("CoreM", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__36() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__34;
x_3 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__35;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__36;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__38() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__37;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__39() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Meta", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__40() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("MetaM", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__41() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__39;
x_3 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__40;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__42() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__41;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__43() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__42;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__44() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__5;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__45() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__44;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__46() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__13___boxed), 8, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_12 = lean_st_ref_get(x_10, x_11);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 x_15 = x_12;
} else {
 lean_dec_ref(x_12);
 x_15 = lean_box(0);
}
x_16 = lean_ctor_get(x_13, 0);
lean_inc(x_16);
lean_dec(x_13);
x_17 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__3;
x_18 = l_Lean_Environment_contains(x_16, x_17);
if (x_18 == 0)
{
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_120; lean_object* x_121; lean_object* x_275; lean_object* x_276; lean_object* x_430; lean_object* x_431; lean_object* x_585; lean_object* x_586; lean_object* x_736; 
x_19 = lean_box(0);
x_20 = lean_box(0);
lean_inc(x_1);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_1);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_21);
lean_ctor_set(x_22, 1, x_20);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_19);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_19);
lean_ctor_set(x_24, 1, x_23);
x_25 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__5;
lean_inc(x_24);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_25);
lean_ctor_set(x_26, 1, x_24);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_19);
lean_ctor_set(x_27, 1, x_26);
x_28 = lean_array_mk(x_27);
x_29 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__3;
x_30 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed), 9, 2);
lean_closure_set(x_30, 0, x_29);
lean_closure_set(x_30, 1, x_28);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_736 = l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(x_30, x_5, x_6, x_7, x_8, x_9, x_10, x_14);
if (lean_obj_tag(x_736) == 0)
{
lean_object* x_737; 
x_737 = lean_ctor_get(x_736, 0);
lean_inc(x_737);
if (lean_obj_tag(x_737) == 0)
{
lean_object* x_738; 
x_738 = lean_ctor_get(x_736, 1);
lean_inc(x_738);
lean_dec(x_736);
x_585 = x_19;
x_586 = x_738;
goto block_735;
}
else
{
lean_object* x_739; uint8_t x_740; 
x_739 = lean_ctor_get(x_736, 1);
lean_inc(x_739);
lean_dec(x_736);
x_740 = !lean_is_exclusive(x_737);
if (x_740 == 0)
{
lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; 
x_741 = lean_ctor_get(x_737, 0);
x_742 = l_Lean_Expr_appFn_x21(x_741);
x_743 = l_Lean_Expr_appArg_x21(x_742);
lean_dec(x_742);
x_744 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_743);
x_745 = l_Lean_Meta_isExprDefEq(x_743, x_744, x_7, x_8, x_9, x_10, x_739);
if (lean_obj_tag(x_745) == 0)
{
lean_object* x_746; uint8_t x_747; 
x_746 = lean_ctor_get(x_745, 0);
lean_inc(x_746);
x_747 = lean_unbox(x_746);
lean_dec(x_746);
if (x_747 == 0)
{
lean_object* x_748; lean_object* x_749; lean_object* x_750; uint8_t x_751; uint8_t x_752; lean_object* x_753; 
x_748 = lean_ctor_get(x_745, 1);
lean_inc(x_748);
lean_dec(x_745);
x_749 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed), 9, 1);
lean_closure_set(x_749, 0, x_20);
x_750 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_751 = 0;
x_752 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_743);
x_753 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_750, x_751, x_743, x_749, x_752, x_5, x_6, x_7, x_8, x_9, x_10, x_748);
if (lean_obj_tag(x_753) == 0)
{
lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; 
x_754 = lean_ctor_get(x_753, 0);
lean_inc(x_754);
x_755 = lean_ctor_get(x_753, 1);
lean_inc(x_755);
lean_dec(x_753);
x_756 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_756, 0, x_741);
lean_ctor_set(x_756, 1, x_20);
x_757 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_757, 0, x_754);
lean_ctor_set(x_757, 1, x_756);
x_758 = lean_array_mk(x_757);
x_759 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_760 = l_Lean_Meta_mkAppM(x_759, x_758, x_7, x_8, x_9, x_10, x_755);
if (lean_obj_tag(x_760) == 0)
{
lean_object* x_761; lean_object* x_762; lean_object* x_763; 
x_761 = lean_ctor_get(x_760, 0);
lean_inc(x_761);
x_762 = lean_ctor_get(x_760, 1);
lean_inc(x_762);
lean_dec(x_760);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_763 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_761, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_762);
if (lean_obj_tag(x_763) == 0)
{
lean_object* x_764; lean_object* x_765; 
x_764 = lean_ctor_get(x_763, 1);
lean_inc(x_764);
lean_dec(x_763);
lean_inc(x_5);
x_765 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_764);
if (lean_obj_tag(x_765) == 0)
{
lean_object* x_766; lean_object* x_767; lean_object* x_768; lean_object* x_769; lean_object* x_770; 
x_766 = lean_ctor_get(x_765, 0);
lean_inc(x_766);
x_767 = lean_ctor_get(x_765, 1);
lean_inc(x_767);
lean_dec(x_765);
x_768 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__10), 4, 1);
lean_closure_set(x_768, 0, x_766);
lean_ctor_set(x_737, 0, x_743);
x_769 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_769, 0, x_768);
lean_ctor_set(x_769, 1, x_737);
x_770 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_770, 0, x_769);
x_585 = x_770;
x_586 = x_767;
goto block_735;
}
else
{
uint8_t x_771; 
lean_dec(x_743);
lean_free_object(x_737);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_771 = !lean_is_exclusive(x_765);
if (x_771 == 0)
{
return x_765;
}
else
{
lean_object* x_772; lean_object* x_773; lean_object* x_774; 
x_772 = lean_ctor_get(x_765, 0);
x_773 = lean_ctor_get(x_765, 1);
lean_inc(x_773);
lean_inc(x_772);
lean_dec(x_765);
x_774 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_774, 0, x_772);
lean_ctor_set(x_774, 1, x_773);
return x_774;
}
}
}
else
{
uint8_t x_775; 
lean_dec(x_743);
lean_free_object(x_737);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_775 = !lean_is_exclusive(x_763);
if (x_775 == 0)
{
return x_763;
}
else
{
lean_object* x_776; lean_object* x_777; lean_object* x_778; 
x_776 = lean_ctor_get(x_763, 0);
x_777 = lean_ctor_get(x_763, 1);
lean_inc(x_777);
lean_inc(x_776);
lean_dec(x_763);
x_778 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_778, 0, x_776);
lean_ctor_set(x_778, 1, x_777);
return x_778;
}
}
}
else
{
uint8_t x_779; 
lean_dec(x_743);
lean_free_object(x_737);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_779 = !lean_is_exclusive(x_760);
if (x_779 == 0)
{
return x_760;
}
else
{
lean_object* x_780; lean_object* x_781; lean_object* x_782; 
x_780 = lean_ctor_get(x_760, 0);
x_781 = lean_ctor_get(x_760, 1);
lean_inc(x_781);
lean_inc(x_780);
lean_dec(x_760);
x_782 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_782, 0, x_780);
lean_ctor_set(x_782, 1, x_781);
return x_782;
}
}
}
else
{
uint8_t x_783; 
lean_dec(x_743);
lean_free_object(x_737);
lean_dec(x_741);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_783 = !lean_is_exclusive(x_753);
if (x_783 == 0)
{
return x_753;
}
else
{
lean_object* x_784; lean_object* x_785; lean_object* x_786; 
x_784 = lean_ctor_get(x_753, 0);
x_785 = lean_ctor_get(x_753, 1);
lean_inc(x_785);
lean_inc(x_784);
lean_dec(x_753);
x_786 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_786, 0, x_784);
lean_ctor_set(x_786, 1, x_785);
return x_786;
}
}
}
else
{
lean_object* x_787; lean_object* x_788; 
lean_dec(x_743);
x_787 = lean_ctor_get(x_745, 1);
lean_inc(x_787);
lean_dec(x_745);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_788 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_741, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_787);
if (lean_obj_tag(x_788) == 0)
{
lean_object* x_789; lean_object* x_790; 
x_789 = lean_ctor_get(x_788, 1);
lean_inc(x_789);
lean_dec(x_788);
lean_inc(x_5);
x_790 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_789);
if (lean_obj_tag(x_790) == 0)
{
lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; 
x_791 = lean_ctor_get(x_790, 0);
lean_inc(x_791);
x_792 = lean_ctor_get(x_790, 1);
lean_inc(x_792);
lean_dec(x_790);
x_793 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__11), 4, 1);
lean_closure_set(x_793, 0, x_791);
x_794 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_794, 0, x_793);
lean_ctor_set(x_794, 1, x_19);
lean_ctor_set(x_737, 0, x_794);
x_585 = x_737;
x_586 = x_792;
goto block_735;
}
else
{
uint8_t x_795; 
lean_free_object(x_737);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_795 = !lean_is_exclusive(x_790);
if (x_795 == 0)
{
return x_790;
}
else
{
lean_object* x_796; lean_object* x_797; lean_object* x_798; 
x_796 = lean_ctor_get(x_790, 0);
x_797 = lean_ctor_get(x_790, 1);
lean_inc(x_797);
lean_inc(x_796);
lean_dec(x_790);
x_798 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_798, 0, x_796);
lean_ctor_set(x_798, 1, x_797);
return x_798;
}
}
}
else
{
uint8_t x_799; 
lean_free_object(x_737);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_799 = !lean_is_exclusive(x_788);
if (x_799 == 0)
{
return x_788;
}
else
{
lean_object* x_800; lean_object* x_801; lean_object* x_802; 
x_800 = lean_ctor_get(x_788, 0);
x_801 = lean_ctor_get(x_788, 1);
lean_inc(x_801);
lean_inc(x_800);
lean_dec(x_788);
x_802 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_802, 0, x_800);
lean_ctor_set(x_802, 1, x_801);
return x_802;
}
}
}
}
else
{
uint8_t x_803; 
lean_dec(x_743);
lean_free_object(x_737);
lean_dec(x_741);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_803 = !lean_is_exclusive(x_745);
if (x_803 == 0)
{
return x_745;
}
else
{
lean_object* x_804; lean_object* x_805; lean_object* x_806; 
x_804 = lean_ctor_get(x_745, 0);
x_805 = lean_ctor_get(x_745, 1);
lean_inc(x_805);
lean_inc(x_804);
lean_dec(x_745);
x_806 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_806, 0, x_804);
lean_ctor_set(x_806, 1, x_805);
return x_806;
}
}
}
else
{
lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; 
x_807 = lean_ctor_get(x_737, 0);
lean_inc(x_807);
lean_dec(x_737);
x_808 = l_Lean_Expr_appFn_x21(x_807);
x_809 = l_Lean_Expr_appArg_x21(x_808);
lean_dec(x_808);
x_810 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_809);
x_811 = l_Lean_Meta_isExprDefEq(x_809, x_810, x_7, x_8, x_9, x_10, x_739);
if (lean_obj_tag(x_811) == 0)
{
lean_object* x_812; uint8_t x_813; 
x_812 = lean_ctor_get(x_811, 0);
lean_inc(x_812);
x_813 = lean_unbox(x_812);
lean_dec(x_812);
if (x_813 == 0)
{
lean_object* x_814; lean_object* x_815; lean_object* x_816; uint8_t x_817; uint8_t x_818; lean_object* x_819; 
x_814 = lean_ctor_get(x_811, 1);
lean_inc(x_814);
lean_dec(x_811);
x_815 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed), 9, 1);
lean_closure_set(x_815, 0, x_20);
x_816 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_817 = 0;
x_818 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_809);
x_819 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_816, x_817, x_809, x_815, x_818, x_5, x_6, x_7, x_8, x_9, x_10, x_814);
if (lean_obj_tag(x_819) == 0)
{
lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; 
x_820 = lean_ctor_get(x_819, 0);
lean_inc(x_820);
x_821 = lean_ctor_get(x_819, 1);
lean_inc(x_821);
lean_dec(x_819);
x_822 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_822, 0, x_807);
lean_ctor_set(x_822, 1, x_20);
x_823 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_823, 0, x_820);
lean_ctor_set(x_823, 1, x_822);
x_824 = lean_array_mk(x_823);
x_825 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_826 = l_Lean_Meta_mkAppM(x_825, x_824, x_7, x_8, x_9, x_10, x_821);
if (lean_obj_tag(x_826) == 0)
{
lean_object* x_827; lean_object* x_828; lean_object* x_829; 
x_827 = lean_ctor_get(x_826, 0);
lean_inc(x_827);
x_828 = lean_ctor_get(x_826, 1);
lean_inc(x_828);
lean_dec(x_826);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_829 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_827, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_828);
if (lean_obj_tag(x_829) == 0)
{
lean_object* x_830; lean_object* x_831; 
x_830 = lean_ctor_get(x_829, 1);
lean_inc(x_830);
lean_dec(x_829);
lean_inc(x_5);
x_831 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_830);
if (lean_obj_tag(x_831) == 0)
{
lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; 
x_832 = lean_ctor_get(x_831, 0);
lean_inc(x_832);
x_833 = lean_ctor_get(x_831, 1);
lean_inc(x_833);
lean_dec(x_831);
x_834 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__10), 4, 1);
lean_closure_set(x_834, 0, x_832);
x_835 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_835, 0, x_809);
x_836 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_836, 0, x_834);
lean_ctor_set(x_836, 1, x_835);
x_837 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_837, 0, x_836);
x_585 = x_837;
x_586 = x_833;
goto block_735;
}
else
{
lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; 
lean_dec(x_809);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_838 = lean_ctor_get(x_831, 0);
lean_inc(x_838);
x_839 = lean_ctor_get(x_831, 1);
lean_inc(x_839);
if (lean_is_exclusive(x_831)) {
 lean_ctor_release(x_831, 0);
 lean_ctor_release(x_831, 1);
 x_840 = x_831;
} else {
 lean_dec_ref(x_831);
 x_840 = lean_box(0);
}
if (lean_is_scalar(x_840)) {
 x_841 = lean_alloc_ctor(1, 2, 0);
} else {
 x_841 = x_840;
}
lean_ctor_set(x_841, 0, x_838);
lean_ctor_set(x_841, 1, x_839);
return x_841;
}
}
else
{
lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; 
lean_dec(x_809);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_842 = lean_ctor_get(x_829, 0);
lean_inc(x_842);
x_843 = lean_ctor_get(x_829, 1);
lean_inc(x_843);
if (lean_is_exclusive(x_829)) {
 lean_ctor_release(x_829, 0);
 lean_ctor_release(x_829, 1);
 x_844 = x_829;
} else {
 lean_dec_ref(x_829);
 x_844 = lean_box(0);
}
if (lean_is_scalar(x_844)) {
 x_845 = lean_alloc_ctor(1, 2, 0);
} else {
 x_845 = x_844;
}
lean_ctor_set(x_845, 0, x_842);
lean_ctor_set(x_845, 1, x_843);
return x_845;
}
}
else
{
lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; 
lean_dec(x_809);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_846 = lean_ctor_get(x_826, 0);
lean_inc(x_846);
x_847 = lean_ctor_get(x_826, 1);
lean_inc(x_847);
if (lean_is_exclusive(x_826)) {
 lean_ctor_release(x_826, 0);
 lean_ctor_release(x_826, 1);
 x_848 = x_826;
} else {
 lean_dec_ref(x_826);
 x_848 = lean_box(0);
}
if (lean_is_scalar(x_848)) {
 x_849 = lean_alloc_ctor(1, 2, 0);
} else {
 x_849 = x_848;
}
lean_ctor_set(x_849, 0, x_846);
lean_ctor_set(x_849, 1, x_847);
return x_849;
}
}
else
{
lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; 
lean_dec(x_809);
lean_dec(x_807);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_850 = lean_ctor_get(x_819, 0);
lean_inc(x_850);
x_851 = lean_ctor_get(x_819, 1);
lean_inc(x_851);
if (lean_is_exclusive(x_819)) {
 lean_ctor_release(x_819, 0);
 lean_ctor_release(x_819, 1);
 x_852 = x_819;
} else {
 lean_dec_ref(x_819);
 x_852 = lean_box(0);
}
if (lean_is_scalar(x_852)) {
 x_853 = lean_alloc_ctor(1, 2, 0);
} else {
 x_853 = x_852;
}
lean_ctor_set(x_853, 0, x_850);
lean_ctor_set(x_853, 1, x_851);
return x_853;
}
}
else
{
lean_object* x_854; lean_object* x_855; 
lean_dec(x_809);
x_854 = lean_ctor_get(x_811, 1);
lean_inc(x_854);
lean_dec(x_811);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_855 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_807, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_854);
if (lean_obj_tag(x_855) == 0)
{
lean_object* x_856; lean_object* x_857; 
x_856 = lean_ctor_get(x_855, 1);
lean_inc(x_856);
lean_dec(x_855);
lean_inc(x_5);
x_857 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_856);
if (lean_obj_tag(x_857) == 0)
{
lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; 
x_858 = lean_ctor_get(x_857, 0);
lean_inc(x_858);
x_859 = lean_ctor_get(x_857, 1);
lean_inc(x_859);
lean_dec(x_857);
x_860 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__11), 4, 1);
lean_closure_set(x_860, 0, x_858);
x_861 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_861, 0, x_860);
lean_ctor_set(x_861, 1, x_19);
x_862 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_862, 0, x_861);
x_585 = x_862;
x_586 = x_859;
goto block_735;
}
else
{
lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_863 = lean_ctor_get(x_857, 0);
lean_inc(x_863);
x_864 = lean_ctor_get(x_857, 1);
lean_inc(x_864);
if (lean_is_exclusive(x_857)) {
 lean_ctor_release(x_857, 0);
 lean_ctor_release(x_857, 1);
 x_865 = x_857;
} else {
 lean_dec_ref(x_857);
 x_865 = lean_box(0);
}
if (lean_is_scalar(x_865)) {
 x_866 = lean_alloc_ctor(1, 2, 0);
} else {
 x_866 = x_865;
}
lean_ctor_set(x_866, 0, x_863);
lean_ctor_set(x_866, 1, x_864);
return x_866;
}
}
else
{
lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_867 = lean_ctor_get(x_855, 0);
lean_inc(x_867);
x_868 = lean_ctor_get(x_855, 1);
lean_inc(x_868);
if (lean_is_exclusive(x_855)) {
 lean_ctor_release(x_855, 0);
 lean_ctor_release(x_855, 1);
 x_869 = x_855;
} else {
 lean_dec_ref(x_855);
 x_869 = lean_box(0);
}
if (lean_is_scalar(x_869)) {
 x_870 = lean_alloc_ctor(1, 2, 0);
} else {
 x_870 = x_869;
}
lean_ctor_set(x_870, 0, x_867);
lean_ctor_set(x_870, 1, x_868);
return x_870;
}
}
}
else
{
lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; 
lean_dec(x_809);
lean_dec(x_807);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_871 = lean_ctor_get(x_811, 0);
lean_inc(x_871);
x_872 = lean_ctor_get(x_811, 1);
lean_inc(x_872);
if (lean_is_exclusive(x_811)) {
 lean_ctor_release(x_811, 0);
 lean_ctor_release(x_811, 1);
 x_873 = x_811;
} else {
 lean_dec_ref(x_811);
 x_873 = lean_box(0);
}
if (lean_is_scalar(x_873)) {
 x_874 = lean_alloc_ctor(1, 2, 0);
} else {
 x_874 = x_873;
}
lean_ctor_set(x_874, 0, x_871);
lean_ctor_set(x_874, 1, x_872);
return x_874;
}
}
}
}
else
{
uint8_t x_875; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_875 = !lean_is_exclusive(x_736);
if (x_875 == 0)
{
return x_736;
}
else
{
lean_object* x_876; lean_object* x_877; lean_object* x_878; 
x_876 = lean_ctor_get(x_736, 0);
x_877 = lean_ctor_get(x_736, 1);
lean_inc(x_877);
lean_inc(x_876);
lean_dec(x_736);
x_878 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_878, 0, x_876);
lean_ctor_set(x_878, 1, x_877);
return x_878;
}
}
block_119:
{
if (lean_obj_tag(x_31) == 0)
{
lean_object* x_33; lean_object* x_42; lean_object* x_65; 
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1);
x_65 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat(x_1, x_7, x_8, x_9, x_10, x_32);
if (lean_obj_tag(x_65) == 0)
{
lean_dec(x_15);
x_33 = x_65;
goto block_41;
}
else
{
lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; uint8_t x_77; 
x_66 = lean_ctor_get(x_65, 0);
lean_inc(x_66);
x_67 = lean_ctor_get(x_65, 1);
lean_inc(x_67);
if (lean_is_exclusive(x_65)) {
 lean_ctor_release(x_65, 0);
 lean_ctor_release(x_65, 1);
 x_68 = x_65;
} else {
 lean_dec_ref(x_65);
 x_68 = lean_box(0);
}
x_77 = l_Lean_Exception_isInterrupt(x_66);
if (x_77 == 0)
{
uint8_t x_78; 
x_78 = l_Lean_Exception_isRuntime(x_66);
if (x_78 == 0)
{
lean_object* x_79; 
lean_dec(x_15);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1);
x_79 = lean_infer_type(x_1, x_7, x_8, x_9, x_10, x_67);
if (lean_obj_tag(x_79) == 0)
{
lean_object* x_80; lean_object* x_81; lean_object* x_82; 
x_80 = lean_ctor_get(x_79, 0);
lean_inc(x_80);
x_81 = lean_ctor_get(x_79, 1);
lean_inc(x_81);
lean_dec(x_79);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_82 = l_Lean_Meta_isTypeApp_x3f(x_80, x_7, x_8, x_9, x_10, x_81);
if (lean_obj_tag(x_82) == 0)
{
lean_object* x_83; 
x_83 = lean_ctor_get(x_82, 0);
lean_inc(x_83);
if (lean_obj_tag(x_83) == 0)
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; 
x_84 = lean_ctor_get(x_82, 1);
lean_inc(x_84);
lean_dec(x_82);
x_85 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3;
x_86 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_85, x_7, x_8, x_9, x_10, x_84);
x_87 = lean_ctor_get(x_86, 0);
lean_inc(x_87);
x_88 = lean_ctor_get(x_86, 1);
lean_inc(x_88);
lean_dec(x_86);
x_69 = x_87;
x_70 = x_88;
goto block_76;
}
else
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; 
x_89 = lean_ctor_get(x_83, 0);
lean_inc(x_89);
lean_dec(x_83);
x_90 = lean_ctor_get(x_82, 1);
lean_inc(x_90);
lean_dec(x_82);
x_91 = lean_ctor_get(x_89, 0);
lean_inc(x_91);
x_92 = lean_ctor_get(x_89, 1);
lean_inc(x_92);
lean_dec(x_89);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_93 = l_Lean_Meta_isMonad_x3f(x_91, x_7, x_8, x_9, x_10, x_90);
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_94; 
x_94 = lean_ctor_get(x_93, 0);
lean_inc(x_94);
if (lean_obj_tag(x_94) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; 
lean_dec(x_92);
x_95 = lean_ctor_get(x_93, 1);
lean_inc(x_95);
lean_dec(x_93);
x_96 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3;
x_97 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_96, x_7, x_8, x_9, x_10, x_95);
x_98 = lean_ctor_get(x_97, 0);
lean_inc(x_98);
x_99 = lean_ctor_get(x_97, 1);
lean_inc(x_99);
lean_dec(x_97);
x_69 = x_98;
x_70 = x_99;
goto block_76;
}
else
{
lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; 
lean_dec(x_94);
x_100 = lean_ctor_get(x_93, 1);
lean_inc(x_100);
lean_dec(x_93);
x_101 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_102 = 0;
x_103 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__25;
x_104 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_105 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_101, x_102, x_92, x_103, x_104, x_5, x_6, x_7, x_8, x_9, x_10, x_100);
if (lean_obj_tag(x_105) == 0)
{
lean_object* x_106; 
lean_dec(x_68);
lean_dec(x_66);
x_106 = lean_ctor_get(x_105, 1);
lean_inc(x_106);
lean_dec(x_105);
x_42 = x_106;
goto block_64;
}
else
{
lean_object* x_107; lean_object* x_108; 
x_107 = lean_ctor_get(x_105, 0);
lean_inc(x_107);
x_108 = lean_ctor_get(x_105, 1);
lean_inc(x_108);
lean_dec(x_105);
x_69 = x_107;
x_70 = x_108;
goto block_76;
}
}
}
else
{
lean_object* x_109; lean_object* x_110; 
lean_dec(x_92);
x_109 = lean_ctor_get(x_93, 0);
lean_inc(x_109);
x_110 = lean_ctor_get(x_93, 1);
lean_inc(x_110);
lean_dec(x_93);
x_69 = x_109;
x_70 = x_110;
goto block_76;
}
}
}
else
{
lean_object* x_111; lean_object* x_112; 
x_111 = lean_ctor_get(x_82, 0);
lean_inc(x_111);
x_112 = lean_ctor_get(x_82, 1);
lean_inc(x_112);
lean_dec(x_82);
x_69 = x_111;
x_70 = x_112;
goto block_76;
}
}
else
{
lean_object* x_113; lean_object* x_114; 
x_113 = lean_ctor_get(x_79, 0);
lean_inc(x_113);
x_114 = lean_ctor_get(x_79, 1);
lean_inc(x_114);
lean_dec(x_79);
x_69 = x_113;
x_70 = x_114;
goto block_76;
}
}
else
{
lean_object* x_115; 
lean_dec(x_68);
if (lean_is_scalar(x_15)) {
 x_115 = lean_alloc_ctor(1, 2, 0);
} else {
 x_115 = x_15;
 lean_ctor_set_tag(x_115, 1);
}
lean_ctor_set(x_115, 0, x_66);
lean_ctor_set(x_115, 1, x_67);
x_33 = x_115;
goto block_41;
}
}
else
{
lean_object* x_116; 
lean_dec(x_68);
if (lean_is_scalar(x_15)) {
 x_116 = lean_alloc_ctor(1, 2, 0);
} else {
 x_116 = x_15;
 lean_ctor_set_tag(x_116, 1);
}
lean_ctor_set(x_116, 0, x_66);
lean_ctor_set(x_116, 1, x_67);
x_33 = x_116;
goto block_41;
}
block_76:
{
uint8_t x_71; 
x_71 = l_Lean_Exception_isInterrupt(x_69);
if (x_71 == 0)
{
uint8_t x_72; 
x_72 = l_Lean_Exception_isRuntime(x_69);
if (x_72 == 0)
{
lean_object* x_73; 
lean_dec(x_69);
if (lean_is_scalar(x_68)) {
 x_73 = lean_alloc_ctor(1, 2, 0);
} else {
 x_73 = x_68;
}
lean_ctor_set(x_73, 0, x_66);
lean_ctor_set(x_73, 1, x_70);
x_33 = x_73;
goto block_41;
}
else
{
lean_object* x_74; 
lean_dec(x_66);
if (lean_is_scalar(x_68)) {
 x_74 = lean_alloc_ctor(1, 2, 0);
} else {
 x_74 = x_68;
}
lean_ctor_set(x_74, 0, x_69);
lean_ctor_set(x_74, 1, x_70);
x_33 = x_74;
goto block_41;
}
}
else
{
lean_object* x_75; 
lean_dec(x_66);
if (lean_is_scalar(x_68)) {
 x_75 = lean_alloc_ctor(1, 2, 0);
} else {
 x_75 = x_68;
}
lean_ctor_set(x_75, 0, x_69);
lean_ctor_set(x_75, 1, x_70);
x_33 = x_75;
goto block_41;
}
}
}
block_41:
{
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_34 = lean_ctor_get(x_33, 0);
lean_inc(x_34);
x_35 = lean_ctor_get(x_33, 1);
lean_inc(x_35);
lean_dec(x_33);
x_36 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__2(x_2, x_3, x_1, x_34, x_5, x_6, x_7, x_8, x_9, x_10, x_35);
return x_36;
}
else
{
uint8_t x_37; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_37 = !lean_is_exclusive(x_33);
if (x_37 == 0)
{
return x_33;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_38 = lean_ctor_get(x_33, 0);
x_39 = lean_ctor_get(x_33, 1);
lean_inc(x_39);
lean_inc(x_38);
lean_dec(x_33);
x_40 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_39);
return x_40;
}
}
}
block_64:
{
lean_object* x_43; 
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1);
x_43 = lean_infer_type(x_1, x_7, x_8, x_9, x_10, x_42);
if (lean_obj_tag(x_43) == 0)
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_44 = lean_ctor_get(x_43, 0);
lean_inc(x_44);
x_45 = lean_ctor_get(x_43, 1);
lean_inc(x_45);
lean_dec(x_43);
x_46 = l_Lean_indentExpr(x_44);
x_47 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__14;
x_48 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_48, 0, x_47);
lean_ctor_set(x_48, 1, x_46);
x_49 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__16;
x_50 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_50, 0, x_48);
lean_ctor_set(x_50, 1, x_49);
x_51 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__17;
x_52 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_52, 0, x_50);
lean_ctor_set(x_52, 1, x_51);
x_53 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__19;
x_54 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_54, 0, x_52);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__20;
x_56 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_56, 0, x_54);
lean_ctor_set(x_56, 1, x_55);
x_57 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__22;
x_58 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_58, 0, x_56);
lean_ctor_set(x_58, 1, x_57);
lean_inc(x_5);
x_59 = l_Lean_throwError___at_Lean_Elab_Term_mkCoe___spec__1(x_58, x_5, x_6, x_7, x_8, x_9, x_10, x_45);
x_33 = x_59;
goto block_41;
}
else
{
uint8_t x_60; 
x_60 = !lean_is_exclusive(x_43);
if (x_60 == 0)
{
x_33 = x_43;
goto block_41;
}
else
{
lean_object* x_61; lean_object* x_62; lean_object* x_63; 
x_61 = lean_ctor_get(x_43, 0);
x_62 = lean_ctor_get(x_43, 1);
lean_inc(x_62);
lean_inc(x_61);
lean_dec(x_43);
x_63 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_63, 0, x_61);
lean_ctor_set(x_63, 1, x_62);
x_33 = x_63;
goto block_41;
}
}
}
}
else
{
lean_object* x_117; lean_object* x_118; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_117 = lean_ctor_get(x_31, 0);
lean_inc(x_117);
lean_dec(x_31);
if (lean_is_scalar(x_15)) {
 x_118 = lean_alloc_ctor(0, 2, 0);
} else {
 x_118 = x_15;
}
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_32);
return x_118;
}
}
block_274:
{
if (lean_obj_tag(x_120) == 0)
{
lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; 
x_122 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__27;
x_123 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_123, 0, x_122);
lean_ctor_set(x_123, 1, x_24);
x_124 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_124, 0, x_19);
lean_ctor_set(x_124, 1, x_123);
x_125 = lean_array_mk(x_124);
x_126 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed), 9, 2);
lean_closure_set(x_126, 0, x_29);
lean_closure_set(x_126, 1, x_125);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_127 = l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(x_126, x_5, x_6, x_7, x_8, x_9, x_10, x_121);
if (lean_obj_tag(x_127) == 0)
{
lean_object* x_128; 
x_128 = lean_ctor_get(x_127, 0);
lean_inc(x_128);
if (lean_obj_tag(x_128) == 0)
{
lean_object* x_129; 
x_129 = lean_ctor_get(x_127, 1);
lean_inc(x_129);
lean_dec(x_127);
x_31 = x_19;
x_32 = x_129;
goto block_119;
}
else
{
lean_object* x_130; uint8_t x_131; 
x_130 = lean_ctor_get(x_127, 1);
lean_inc(x_130);
lean_dec(x_127);
x_131 = !lean_is_exclusive(x_128);
if (x_131 == 0)
{
lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; 
x_132 = lean_ctor_get(x_128, 0);
x_133 = l_Lean_Expr_appFn_x21(x_132);
x_134 = l_Lean_Expr_appArg_x21(x_133);
lean_dec(x_133);
x_135 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_134);
x_136 = l_Lean_Meta_isExprDefEq(x_134, x_135, x_7, x_8, x_9, x_10, x_130);
if (lean_obj_tag(x_136) == 0)
{
lean_object* x_137; uint8_t x_138; 
x_137 = lean_ctor_get(x_136, 0);
lean_inc(x_137);
x_138 = lean_unbox(x_137);
lean_dec(x_137);
if (x_138 == 0)
{
lean_object* x_139; lean_object* x_140; lean_object* x_141; uint8_t x_142; uint8_t x_143; lean_object* x_144; 
x_139 = lean_ctor_get(x_136, 1);
lean_inc(x_139);
lean_dec(x_136);
x_140 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed), 9, 1);
lean_closure_set(x_140, 0, x_20);
x_141 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_142 = 0;
x_143 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_134);
x_144 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_141, x_142, x_134, x_140, x_143, x_5, x_6, x_7, x_8, x_9, x_10, x_139);
if (lean_obj_tag(x_144) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; 
x_145 = lean_ctor_get(x_144, 0);
lean_inc(x_145);
x_146 = lean_ctor_get(x_144, 1);
lean_inc(x_146);
lean_dec(x_144);
x_147 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_147, 0, x_132);
lean_ctor_set(x_147, 1, x_20);
x_148 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_148, 0, x_145);
lean_ctor_set(x_148, 1, x_147);
x_149 = lean_array_mk(x_148);
x_150 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_151 = l_Lean_Meta_mkAppM(x_150, x_149, x_7, x_8, x_9, x_10, x_146);
if (lean_obj_tag(x_151) == 0)
{
lean_object* x_152; lean_object* x_153; lean_object* x_154; 
x_152 = lean_ctor_get(x_151, 0);
lean_inc(x_152);
x_153 = lean_ctor_get(x_151, 1);
lean_inc(x_153);
lean_dec(x_151);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_154 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_152, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_153);
if (lean_obj_tag(x_154) == 0)
{
lean_object* x_155; lean_object* x_156; 
x_155 = lean_ctor_get(x_154, 1);
lean_inc(x_155);
lean_dec(x_154);
lean_inc(x_5);
x_156 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_155);
if (lean_obj_tag(x_156) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; 
x_157 = lean_ctor_get(x_156, 0);
lean_inc(x_157);
x_158 = lean_ctor_get(x_156, 1);
lean_inc(x_158);
lean_dec(x_156);
x_159 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5___boxed), 8, 1);
lean_closure_set(x_159, 0, x_157);
x_160 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6___boxed), 4, 1);
lean_closure_set(x_160, 0, x_159);
lean_ctor_set(x_128, 0, x_134);
x_161 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_161, 0, x_160);
lean_ctor_set(x_161, 1, x_128);
x_162 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_162, 0, x_161);
x_31 = x_162;
x_32 = x_158;
goto block_119;
}
else
{
uint8_t x_163; 
lean_dec(x_134);
lean_free_object(x_128);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_163 = !lean_is_exclusive(x_156);
if (x_163 == 0)
{
return x_156;
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; 
x_164 = lean_ctor_get(x_156, 0);
x_165 = lean_ctor_get(x_156, 1);
lean_inc(x_165);
lean_inc(x_164);
lean_dec(x_156);
x_166 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_166, 0, x_164);
lean_ctor_set(x_166, 1, x_165);
return x_166;
}
}
}
else
{
uint8_t x_167; 
lean_dec(x_134);
lean_free_object(x_128);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_167 = !lean_is_exclusive(x_154);
if (x_167 == 0)
{
return x_154;
}
else
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; 
x_168 = lean_ctor_get(x_154, 0);
x_169 = lean_ctor_get(x_154, 1);
lean_inc(x_169);
lean_inc(x_168);
lean_dec(x_154);
x_170 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_170, 0, x_168);
lean_ctor_set(x_170, 1, x_169);
return x_170;
}
}
}
else
{
uint8_t x_171; 
lean_dec(x_134);
lean_free_object(x_128);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_171 = !lean_is_exclusive(x_151);
if (x_171 == 0)
{
return x_151;
}
else
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; 
x_172 = lean_ctor_get(x_151, 0);
x_173 = lean_ctor_get(x_151, 1);
lean_inc(x_173);
lean_inc(x_172);
lean_dec(x_151);
x_174 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_174, 0, x_172);
lean_ctor_set(x_174, 1, x_173);
return x_174;
}
}
}
else
{
uint8_t x_175; 
lean_dec(x_134);
lean_free_object(x_128);
lean_dec(x_132);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_175 = !lean_is_exclusive(x_144);
if (x_175 == 0)
{
return x_144;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_ctor_get(x_144, 0);
x_177 = lean_ctor_get(x_144, 1);
lean_inc(x_177);
lean_inc(x_176);
lean_dec(x_144);
x_178 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_178, 0, x_176);
lean_ctor_set(x_178, 1, x_177);
return x_178;
}
}
}
else
{
lean_object* x_179; lean_object* x_180; 
lean_dec(x_134);
x_179 = lean_ctor_get(x_136, 1);
lean_inc(x_179);
lean_dec(x_136);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_180 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_132, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_179);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; lean_object* x_182; 
x_181 = lean_ctor_get(x_180, 1);
lean_inc(x_181);
lean_dec(x_180);
lean_inc(x_5);
x_182 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_181);
if (lean_obj_tag(x_182) == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
x_183 = lean_ctor_get(x_182, 0);
lean_inc(x_183);
x_184 = lean_ctor_get(x_182, 1);
lean_inc(x_184);
lean_dec(x_182);
x_185 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5___boxed), 8, 1);
lean_closure_set(x_185, 0, x_183);
x_186 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_186, 0, x_185);
x_187 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_187, 0, x_186);
lean_ctor_set(x_187, 1, x_19);
lean_ctor_set(x_128, 0, x_187);
x_31 = x_128;
x_32 = x_184;
goto block_119;
}
else
{
uint8_t x_188; 
lean_free_object(x_128);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_188 = !lean_is_exclusive(x_182);
if (x_188 == 0)
{
return x_182;
}
else
{
lean_object* x_189; lean_object* x_190; lean_object* x_191; 
x_189 = lean_ctor_get(x_182, 0);
x_190 = lean_ctor_get(x_182, 1);
lean_inc(x_190);
lean_inc(x_189);
lean_dec(x_182);
x_191 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_191, 0, x_189);
lean_ctor_set(x_191, 1, x_190);
return x_191;
}
}
}
else
{
uint8_t x_192; 
lean_free_object(x_128);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_192 = !lean_is_exclusive(x_180);
if (x_192 == 0)
{
return x_180;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; 
x_193 = lean_ctor_get(x_180, 0);
x_194 = lean_ctor_get(x_180, 1);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_180);
x_195 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_195, 0, x_193);
lean_ctor_set(x_195, 1, x_194);
return x_195;
}
}
}
}
else
{
uint8_t x_196; 
lean_dec(x_134);
lean_free_object(x_128);
lean_dec(x_132);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_196 = !lean_is_exclusive(x_136);
if (x_196 == 0)
{
return x_136;
}
else
{
lean_object* x_197; lean_object* x_198; lean_object* x_199; 
x_197 = lean_ctor_get(x_136, 0);
x_198 = lean_ctor_get(x_136, 1);
lean_inc(x_198);
lean_inc(x_197);
lean_dec(x_136);
x_199 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_199, 0, x_197);
lean_ctor_set(x_199, 1, x_198);
return x_199;
}
}
}
else
{
lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; 
x_200 = lean_ctor_get(x_128, 0);
lean_inc(x_200);
lean_dec(x_128);
x_201 = l_Lean_Expr_appFn_x21(x_200);
x_202 = l_Lean_Expr_appArg_x21(x_201);
lean_dec(x_201);
x_203 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_202);
x_204 = l_Lean_Meta_isExprDefEq(x_202, x_203, x_7, x_8, x_9, x_10, x_130);
if (lean_obj_tag(x_204) == 0)
{
lean_object* x_205; uint8_t x_206; 
x_205 = lean_ctor_get(x_204, 0);
lean_inc(x_205);
x_206 = lean_unbox(x_205);
lean_dec(x_205);
if (x_206 == 0)
{
lean_object* x_207; lean_object* x_208; lean_object* x_209; uint8_t x_210; uint8_t x_211; lean_object* x_212; 
x_207 = lean_ctor_get(x_204, 1);
lean_inc(x_207);
lean_dec(x_204);
x_208 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed), 9, 1);
lean_closure_set(x_208, 0, x_20);
x_209 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_210 = 0;
x_211 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_202);
x_212 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_209, x_210, x_202, x_208, x_211, x_5, x_6, x_7, x_8, x_9, x_10, x_207);
if (lean_obj_tag(x_212) == 0)
{
lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
x_213 = lean_ctor_get(x_212, 0);
lean_inc(x_213);
x_214 = lean_ctor_get(x_212, 1);
lean_inc(x_214);
lean_dec(x_212);
x_215 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_215, 0, x_200);
lean_ctor_set(x_215, 1, x_20);
x_216 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_216, 0, x_213);
lean_ctor_set(x_216, 1, x_215);
x_217 = lean_array_mk(x_216);
x_218 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_219 = l_Lean_Meta_mkAppM(x_218, x_217, x_7, x_8, x_9, x_10, x_214);
if (lean_obj_tag(x_219) == 0)
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; 
x_220 = lean_ctor_get(x_219, 0);
lean_inc(x_220);
x_221 = lean_ctor_get(x_219, 1);
lean_inc(x_221);
lean_dec(x_219);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_222 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_220, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_221);
if (lean_obj_tag(x_222) == 0)
{
lean_object* x_223; lean_object* x_224; 
x_223 = lean_ctor_get(x_222, 1);
lean_inc(x_223);
lean_dec(x_222);
lean_inc(x_5);
x_224 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_223);
if (lean_obj_tag(x_224) == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; 
x_225 = lean_ctor_get(x_224, 0);
lean_inc(x_225);
x_226 = lean_ctor_get(x_224, 1);
lean_inc(x_226);
lean_dec(x_224);
x_227 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5___boxed), 8, 1);
lean_closure_set(x_227, 0, x_225);
x_228 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6___boxed), 4, 1);
lean_closure_set(x_228, 0, x_227);
x_229 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_229, 0, x_202);
x_230 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_230, 0, x_228);
lean_ctor_set(x_230, 1, x_229);
x_231 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_231, 0, x_230);
x_31 = x_231;
x_32 = x_226;
goto block_119;
}
else
{
lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
lean_dec(x_202);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_232 = lean_ctor_get(x_224, 0);
lean_inc(x_232);
x_233 = lean_ctor_get(x_224, 1);
lean_inc(x_233);
if (lean_is_exclusive(x_224)) {
 lean_ctor_release(x_224, 0);
 lean_ctor_release(x_224, 1);
 x_234 = x_224;
} else {
 lean_dec_ref(x_224);
 x_234 = lean_box(0);
}
if (lean_is_scalar(x_234)) {
 x_235 = lean_alloc_ctor(1, 2, 0);
} else {
 x_235 = x_234;
}
lean_ctor_set(x_235, 0, x_232);
lean_ctor_set(x_235, 1, x_233);
return x_235;
}
}
else
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; 
lean_dec(x_202);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_236 = lean_ctor_get(x_222, 0);
lean_inc(x_236);
x_237 = lean_ctor_get(x_222, 1);
lean_inc(x_237);
if (lean_is_exclusive(x_222)) {
 lean_ctor_release(x_222, 0);
 lean_ctor_release(x_222, 1);
 x_238 = x_222;
} else {
 lean_dec_ref(x_222);
 x_238 = lean_box(0);
}
if (lean_is_scalar(x_238)) {
 x_239 = lean_alloc_ctor(1, 2, 0);
} else {
 x_239 = x_238;
}
lean_ctor_set(x_239, 0, x_236);
lean_ctor_set(x_239, 1, x_237);
return x_239;
}
}
else
{
lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; 
lean_dec(x_202);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_240 = lean_ctor_get(x_219, 0);
lean_inc(x_240);
x_241 = lean_ctor_get(x_219, 1);
lean_inc(x_241);
if (lean_is_exclusive(x_219)) {
 lean_ctor_release(x_219, 0);
 lean_ctor_release(x_219, 1);
 x_242 = x_219;
} else {
 lean_dec_ref(x_219);
 x_242 = lean_box(0);
}
if (lean_is_scalar(x_242)) {
 x_243 = lean_alloc_ctor(1, 2, 0);
} else {
 x_243 = x_242;
}
lean_ctor_set(x_243, 0, x_240);
lean_ctor_set(x_243, 1, x_241);
return x_243;
}
}
else
{
lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; 
lean_dec(x_202);
lean_dec(x_200);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_244 = lean_ctor_get(x_212, 0);
lean_inc(x_244);
x_245 = lean_ctor_get(x_212, 1);
lean_inc(x_245);
if (lean_is_exclusive(x_212)) {
 lean_ctor_release(x_212, 0);
 lean_ctor_release(x_212, 1);
 x_246 = x_212;
} else {
 lean_dec_ref(x_212);
 x_246 = lean_box(0);
}
if (lean_is_scalar(x_246)) {
 x_247 = lean_alloc_ctor(1, 2, 0);
} else {
 x_247 = x_246;
}
lean_ctor_set(x_247, 0, x_244);
lean_ctor_set(x_247, 1, x_245);
return x_247;
}
}
else
{
lean_object* x_248; lean_object* x_249; 
lean_dec(x_202);
x_248 = lean_ctor_get(x_204, 1);
lean_inc(x_248);
lean_dec(x_204);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_249 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_200, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_248);
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_250; lean_object* x_251; 
x_250 = lean_ctor_get(x_249, 1);
lean_inc(x_250);
lean_dec(x_249);
lean_inc(x_5);
x_251 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_250);
if (lean_obj_tag(x_251) == 0)
{
lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; 
x_252 = lean_ctor_get(x_251, 0);
lean_inc(x_252);
x_253 = lean_ctor_get(x_251, 1);
lean_inc(x_253);
lean_dec(x_251);
x_254 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5___boxed), 8, 1);
lean_closure_set(x_254, 0, x_252);
x_255 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_255, 0, x_254);
x_256 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_256, 0, x_255);
lean_ctor_set(x_256, 1, x_19);
x_257 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_257, 0, x_256);
x_31 = x_257;
x_32 = x_253;
goto block_119;
}
else
{
lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; 
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_258 = lean_ctor_get(x_251, 0);
lean_inc(x_258);
x_259 = lean_ctor_get(x_251, 1);
lean_inc(x_259);
if (lean_is_exclusive(x_251)) {
 lean_ctor_release(x_251, 0);
 lean_ctor_release(x_251, 1);
 x_260 = x_251;
} else {
 lean_dec_ref(x_251);
 x_260 = lean_box(0);
}
if (lean_is_scalar(x_260)) {
 x_261 = lean_alloc_ctor(1, 2, 0);
} else {
 x_261 = x_260;
}
lean_ctor_set(x_261, 0, x_258);
lean_ctor_set(x_261, 1, x_259);
return x_261;
}
}
else
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_262 = lean_ctor_get(x_249, 0);
lean_inc(x_262);
x_263 = lean_ctor_get(x_249, 1);
lean_inc(x_263);
if (lean_is_exclusive(x_249)) {
 lean_ctor_release(x_249, 0);
 lean_ctor_release(x_249, 1);
 x_264 = x_249;
} else {
 lean_dec_ref(x_249);
 x_264 = lean_box(0);
}
if (lean_is_scalar(x_264)) {
 x_265 = lean_alloc_ctor(1, 2, 0);
} else {
 x_265 = x_264;
}
lean_ctor_set(x_265, 0, x_262);
lean_ctor_set(x_265, 1, x_263);
return x_265;
}
}
}
else
{
lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; 
lean_dec(x_202);
lean_dec(x_200);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_266 = lean_ctor_get(x_204, 0);
lean_inc(x_266);
x_267 = lean_ctor_get(x_204, 1);
lean_inc(x_267);
if (lean_is_exclusive(x_204)) {
 lean_ctor_release(x_204, 0);
 lean_ctor_release(x_204, 1);
 x_268 = x_204;
} else {
 lean_dec_ref(x_204);
 x_268 = lean_box(0);
}
if (lean_is_scalar(x_268)) {
 x_269 = lean_alloc_ctor(1, 2, 0);
} else {
 x_269 = x_268;
}
lean_ctor_set(x_269, 0, x_266);
lean_ctor_set(x_269, 1, x_267);
return x_269;
}
}
}
}
else
{
uint8_t x_270; 
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_270 = !lean_is_exclusive(x_127);
if (x_270 == 0)
{
return x_127;
}
else
{
lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_271 = lean_ctor_get(x_127, 0);
x_272 = lean_ctor_get(x_127, 1);
lean_inc(x_272);
lean_inc(x_271);
lean_dec(x_127);
x_273 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_273, 0, x_271);
lean_ctor_set(x_273, 1, x_272);
return x_273;
}
}
}
else
{
lean_dec(x_24);
x_31 = x_120;
x_32 = x_121;
goto block_119;
}
}
block_429:
{
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; 
x_277 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__38;
lean_inc(x_24);
x_278 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_278, 0, x_277);
lean_ctor_set(x_278, 1, x_24);
x_279 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_279, 0, x_19);
lean_ctor_set(x_279, 1, x_278);
x_280 = lean_array_mk(x_279);
x_281 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed), 9, 2);
lean_closure_set(x_281, 0, x_29);
lean_closure_set(x_281, 1, x_280);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_282 = l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(x_281, x_5, x_6, x_7, x_8, x_9, x_10, x_276);
if (lean_obj_tag(x_282) == 0)
{
lean_object* x_283; 
x_283 = lean_ctor_get(x_282, 0);
lean_inc(x_283);
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_284; 
x_284 = lean_ctor_get(x_282, 1);
lean_inc(x_284);
lean_dec(x_282);
x_120 = x_19;
x_121 = x_284;
goto block_274;
}
else
{
lean_object* x_285; uint8_t x_286; 
x_285 = lean_ctor_get(x_282, 1);
lean_inc(x_285);
lean_dec(x_282);
x_286 = !lean_is_exclusive(x_283);
if (x_286 == 0)
{
lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_287 = lean_ctor_get(x_283, 0);
x_288 = l_Lean_Expr_appFn_x21(x_287);
x_289 = l_Lean_Expr_appArg_x21(x_288);
lean_dec(x_288);
x_290 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_289);
x_291 = l_Lean_Meta_isExprDefEq(x_289, x_290, x_7, x_8, x_9, x_10, x_285);
if (lean_obj_tag(x_291) == 0)
{
lean_object* x_292; uint8_t x_293; 
x_292 = lean_ctor_get(x_291, 0);
lean_inc(x_292);
x_293 = lean_unbox(x_292);
lean_dec(x_292);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; uint8_t x_298; lean_object* x_299; 
x_294 = lean_ctor_get(x_291, 1);
lean_inc(x_294);
lean_dec(x_291);
x_295 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed), 9, 1);
lean_closure_set(x_295, 0, x_20);
x_296 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_297 = 0;
x_298 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_289);
x_299 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_296, x_297, x_289, x_295, x_298, x_5, x_6, x_7, x_8, x_9, x_10, x_294);
if (lean_obj_tag(x_299) == 0)
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; 
x_300 = lean_ctor_get(x_299, 0);
lean_inc(x_300);
x_301 = lean_ctor_get(x_299, 1);
lean_inc(x_301);
lean_dec(x_299);
x_302 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_302, 0, x_287);
lean_ctor_set(x_302, 1, x_20);
x_303 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_303, 0, x_300);
lean_ctor_set(x_303, 1, x_302);
x_304 = lean_array_mk(x_303);
x_305 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_306 = l_Lean_Meta_mkAppM(x_305, x_304, x_7, x_8, x_9, x_10, x_301);
if (lean_obj_tag(x_306) == 0)
{
lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_307 = lean_ctor_get(x_306, 0);
lean_inc(x_307);
x_308 = lean_ctor_get(x_306, 1);
lean_inc(x_308);
lean_dec(x_306);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_309 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_307, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_308);
if (lean_obj_tag(x_309) == 0)
{
lean_object* x_310; lean_object* x_311; 
x_310 = lean_ctor_get(x_309, 1);
lean_inc(x_310);
lean_dec(x_309);
lean_inc(x_5);
x_311 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_310);
if (lean_obj_tag(x_311) == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; 
x_312 = lean_ctor_get(x_311, 0);
lean_inc(x_312);
x_313 = lean_ctor_get(x_311, 1);
lean_inc(x_313);
lean_dec(x_311);
x_314 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8___boxed), 8, 1);
lean_closure_set(x_314, 0, x_312);
x_315 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6___boxed), 4, 1);
lean_closure_set(x_315, 0, x_314);
lean_ctor_set(x_283, 0, x_289);
x_316 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_316, 0, x_315);
lean_ctor_set(x_316, 1, x_283);
x_317 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_317, 0, x_316);
x_120 = x_317;
x_121 = x_313;
goto block_274;
}
else
{
uint8_t x_318; 
lean_dec(x_289);
lean_free_object(x_283);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_318 = !lean_is_exclusive(x_311);
if (x_318 == 0)
{
return x_311;
}
else
{
lean_object* x_319; lean_object* x_320; lean_object* x_321; 
x_319 = lean_ctor_get(x_311, 0);
x_320 = lean_ctor_get(x_311, 1);
lean_inc(x_320);
lean_inc(x_319);
lean_dec(x_311);
x_321 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_321, 0, x_319);
lean_ctor_set(x_321, 1, x_320);
return x_321;
}
}
}
else
{
uint8_t x_322; 
lean_dec(x_289);
lean_free_object(x_283);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_322 = !lean_is_exclusive(x_309);
if (x_322 == 0)
{
return x_309;
}
else
{
lean_object* x_323; lean_object* x_324; lean_object* x_325; 
x_323 = lean_ctor_get(x_309, 0);
x_324 = lean_ctor_get(x_309, 1);
lean_inc(x_324);
lean_inc(x_323);
lean_dec(x_309);
x_325 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_325, 0, x_323);
lean_ctor_set(x_325, 1, x_324);
return x_325;
}
}
}
else
{
uint8_t x_326; 
lean_dec(x_289);
lean_free_object(x_283);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_326 = !lean_is_exclusive(x_306);
if (x_326 == 0)
{
return x_306;
}
else
{
lean_object* x_327; lean_object* x_328; lean_object* x_329; 
x_327 = lean_ctor_get(x_306, 0);
x_328 = lean_ctor_get(x_306, 1);
lean_inc(x_328);
lean_inc(x_327);
lean_dec(x_306);
x_329 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_329, 0, x_327);
lean_ctor_set(x_329, 1, x_328);
return x_329;
}
}
}
else
{
uint8_t x_330; 
lean_dec(x_289);
lean_free_object(x_283);
lean_dec(x_287);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_330 = !lean_is_exclusive(x_299);
if (x_330 == 0)
{
return x_299;
}
else
{
lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_331 = lean_ctor_get(x_299, 0);
x_332 = lean_ctor_get(x_299, 1);
lean_inc(x_332);
lean_inc(x_331);
lean_dec(x_299);
x_333 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_333, 0, x_331);
lean_ctor_set(x_333, 1, x_332);
return x_333;
}
}
}
else
{
lean_object* x_334; lean_object* x_335; 
lean_dec(x_289);
x_334 = lean_ctor_get(x_291, 1);
lean_inc(x_334);
lean_dec(x_291);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_335 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_287, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_334);
if (lean_obj_tag(x_335) == 0)
{
lean_object* x_336; lean_object* x_337; 
x_336 = lean_ctor_get(x_335, 1);
lean_inc(x_336);
lean_dec(x_335);
lean_inc(x_5);
x_337 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_336);
if (lean_obj_tag(x_337) == 0)
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_338 = lean_ctor_get(x_337, 0);
lean_inc(x_338);
x_339 = lean_ctor_get(x_337, 1);
lean_inc(x_339);
lean_dec(x_337);
x_340 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8___boxed), 8, 1);
lean_closure_set(x_340, 0, x_338);
x_341 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_341, 0, x_340);
x_342 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_342, 0, x_341);
lean_ctor_set(x_342, 1, x_19);
lean_ctor_set(x_283, 0, x_342);
x_120 = x_283;
x_121 = x_339;
goto block_274;
}
else
{
uint8_t x_343; 
lean_free_object(x_283);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_343 = !lean_is_exclusive(x_337);
if (x_343 == 0)
{
return x_337;
}
else
{
lean_object* x_344; lean_object* x_345; lean_object* x_346; 
x_344 = lean_ctor_get(x_337, 0);
x_345 = lean_ctor_get(x_337, 1);
lean_inc(x_345);
lean_inc(x_344);
lean_dec(x_337);
x_346 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_346, 0, x_344);
lean_ctor_set(x_346, 1, x_345);
return x_346;
}
}
}
else
{
uint8_t x_347; 
lean_free_object(x_283);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_347 = !lean_is_exclusive(x_335);
if (x_347 == 0)
{
return x_335;
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; 
x_348 = lean_ctor_get(x_335, 0);
x_349 = lean_ctor_get(x_335, 1);
lean_inc(x_349);
lean_inc(x_348);
lean_dec(x_335);
x_350 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_350, 0, x_348);
lean_ctor_set(x_350, 1, x_349);
return x_350;
}
}
}
}
else
{
uint8_t x_351; 
lean_dec(x_289);
lean_free_object(x_283);
lean_dec(x_287);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_351 = !lean_is_exclusive(x_291);
if (x_351 == 0)
{
return x_291;
}
else
{
lean_object* x_352; lean_object* x_353; lean_object* x_354; 
x_352 = lean_ctor_get(x_291, 0);
x_353 = lean_ctor_get(x_291, 1);
lean_inc(x_353);
lean_inc(x_352);
lean_dec(x_291);
x_354 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_354, 0, x_352);
lean_ctor_set(x_354, 1, x_353);
return x_354;
}
}
}
else
{
lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; 
x_355 = lean_ctor_get(x_283, 0);
lean_inc(x_355);
lean_dec(x_283);
x_356 = l_Lean_Expr_appFn_x21(x_355);
x_357 = l_Lean_Expr_appArg_x21(x_356);
lean_dec(x_356);
x_358 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_357);
x_359 = l_Lean_Meta_isExprDefEq(x_357, x_358, x_7, x_8, x_9, x_10, x_285);
if (lean_obj_tag(x_359) == 0)
{
lean_object* x_360; uint8_t x_361; 
x_360 = lean_ctor_get(x_359, 0);
lean_inc(x_360);
x_361 = lean_unbox(x_360);
lean_dec(x_360);
if (x_361 == 0)
{
lean_object* x_362; lean_object* x_363; lean_object* x_364; uint8_t x_365; uint8_t x_366; lean_object* x_367; 
x_362 = lean_ctor_get(x_359, 1);
lean_inc(x_362);
lean_dec(x_359);
x_363 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed), 9, 1);
lean_closure_set(x_363, 0, x_20);
x_364 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_365 = 0;
x_366 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_357);
x_367 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_364, x_365, x_357, x_363, x_366, x_5, x_6, x_7, x_8, x_9, x_10, x_362);
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; 
x_368 = lean_ctor_get(x_367, 0);
lean_inc(x_368);
x_369 = lean_ctor_get(x_367, 1);
lean_inc(x_369);
lean_dec(x_367);
x_370 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_370, 0, x_355);
lean_ctor_set(x_370, 1, x_20);
x_371 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_371, 0, x_368);
lean_ctor_set(x_371, 1, x_370);
x_372 = lean_array_mk(x_371);
x_373 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_374 = l_Lean_Meta_mkAppM(x_373, x_372, x_7, x_8, x_9, x_10, x_369);
if (lean_obj_tag(x_374) == 0)
{
lean_object* x_375; lean_object* x_376; lean_object* x_377; 
x_375 = lean_ctor_get(x_374, 0);
lean_inc(x_375);
x_376 = lean_ctor_get(x_374, 1);
lean_inc(x_376);
lean_dec(x_374);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_377 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_375, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_376);
if (lean_obj_tag(x_377) == 0)
{
lean_object* x_378; lean_object* x_379; 
x_378 = lean_ctor_get(x_377, 1);
lean_inc(x_378);
lean_dec(x_377);
lean_inc(x_5);
x_379 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_378);
if (lean_obj_tag(x_379) == 0)
{
lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; 
x_380 = lean_ctor_get(x_379, 0);
lean_inc(x_380);
x_381 = lean_ctor_get(x_379, 1);
lean_inc(x_381);
lean_dec(x_379);
x_382 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8___boxed), 8, 1);
lean_closure_set(x_382, 0, x_380);
x_383 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6___boxed), 4, 1);
lean_closure_set(x_383, 0, x_382);
x_384 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_384, 0, x_357);
x_385 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_385, 0, x_383);
lean_ctor_set(x_385, 1, x_384);
x_386 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_386, 0, x_385);
x_120 = x_386;
x_121 = x_381;
goto block_274;
}
else
{
lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; 
lean_dec(x_357);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_387 = lean_ctor_get(x_379, 0);
lean_inc(x_387);
x_388 = lean_ctor_get(x_379, 1);
lean_inc(x_388);
if (lean_is_exclusive(x_379)) {
 lean_ctor_release(x_379, 0);
 lean_ctor_release(x_379, 1);
 x_389 = x_379;
} else {
 lean_dec_ref(x_379);
 x_389 = lean_box(0);
}
if (lean_is_scalar(x_389)) {
 x_390 = lean_alloc_ctor(1, 2, 0);
} else {
 x_390 = x_389;
}
lean_ctor_set(x_390, 0, x_387);
lean_ctor_set(x_390, 1, x_388);
return x_390;
}
}
else
{
lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; 
lean_dec(x_357);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_391 = lean_ctor_get(x_377, 0);
lean_inc(x_391);
x_392 = lean_ctor_get(x_377, 1);
lean_inc(x_392);
if (lean_is_exclusive(x_377)) {
 lean_ctor_release(x_377, 0);
 lean_ctor_release(x_377, 1);
 x_393 = x_377;
} else {
 lean_dec_ref(x_377);
 x_393 = lean_box(0);
}
if (lean_is_scalar(x_393)) {
 x_394 = lean_alloc_ctor(1, 2, 0);
} else {
 x_394 = x_393;
}
lean_ctor_set(x_394, 0, x_391);
lean_ctor_set(x_394, 1, x_392);
return x_394;
}
}
else
{
lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; 
lean_dec(x_357);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_395 = lean_ctor_get(x_374, 0);
lean_inc(x_395);
x_396 = lean_ctor_get(x_374, 1);
lean_inc(x_396);
if (lean_is_exclusive(x_374)) {
 lean_ctor_release(x_374, 0);
 lean_ctor_release(x_374, 1);
 x_397 = x_374;
} else {
 lean_dec_ref(x_374);
 x_397 = lean_box(0);
}
if (lean_is_scalar(x_397)) {
 x_398 = lean_alloc_ctor(1, 2, 0);
} else {
 x_398 = x_397;
}
lean_ctor_set(x_398, 0, x_395);
lean_ctor_set(x_398, 1, x_396);
return x_398;
}
}
else
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; 
lean_dec(x_357);
lean_dec(x_355);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_399 = lean_ctor_get(x_367, 0);
lean_inc(x_399);
x_400 = lean_ctor_get(x_367, 1);
lean_inc(x_400);
if (lean_is_exclusive(x_367)) {
 lean_ctor_release(x_367, 0);
 lean_ctor_release(x_367, 1);
 x_401 = x_367;
} else {
 lean_dec_ref(x_367);
 x_401 = lean_box(0);
}
if (lean_is_scalar(x_401)) {
 x_402 = lean_alloc_ctor(1, 2, 0);
} else {
 x_402 = x_401;
}
lean_ctor_set(x_402, 0, x_399);
lean_ctor_set(x_402, 1, x_400);
return x_402;
}
}
else
{
lean_object* x_403; lean_object* x_404; 
lean_dec(x_357);
x_403 = lean_ctor_get(x_359, 1);
lean_inc(x_403);
lean_dec(x_359);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_404 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_355, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_403);
if (lean_obj_tag(x_404) == 0)
{
lean_object* x_405; lean_object* x_406; 
x_405 = lean_ctor_get(x_404, 1);
lean_inc(x_405);
lean_dec(x_404);
lean_inc(x_5);
x_406 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_405);
if (lean_obj_tag(x_406) == 0)
{
lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; 
x_407 = lean_ctor_get(x_406, 0);
lean_inc(x_407);
x_408 = lean_ctor_get(x_406, 1);
lean_inc(x_408);
lean_dec(x_406);
x_409 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8___boxed), 8, 1);
lean_closure_set(x_409, 0, x_407);
x_410 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_410, 0, x_409);
x_411 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_411, 0, x_410);
lean_ctor_set(x_411, 1, x_19);
x_412 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_412, 0, x_411);
x_120 = x_412;
x_121 = x_408;
goto block_274;
}
else
{
lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_413 = lean_ctor_get(x_406, 0);
lean_inc(x_413);
x_414 = lean_ctor_get(x_406, 1);
lean_inc(x_414);
if (lean_is_exclusive(x_406)) {
 lean_ctor_release(x_406, 0);
 lean_ctor_release(x_406, 1);
 x_415 = x_406;
} else {
 lean_dec_ref(x_406);
 x_415 = lean_box(0);
}
if (lean_is_scalar(x_415)) {
 x_416 = lean_alloc_ctor(1, 2, 0);
} else {
 x_416 = x_415;
}
lean_ctor_set(x_416, 0, x_413);
lean_ctor_set(x_416, 1, x_414);
return x_416;
}
}
else
{
lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_417 = lean_ctor_get(x_404, 0);
lean_inc(x_417);
x_418 = lean_ctor_get(x_404, 1);
lean_inc(x_418);
if (lean_is_exclusive(x_404)) {
 lean_ctor_release(x_404, 0);
 lean_ctor_release(x_404, 1);
 x_419 = x_404;
} else {
 lean_dec_ref(x_404);
 x_419 = lean_box(0);
}
if (lean_is_scalar(x_419)) {
 x_420 = lean_alloc_ctor(1, 2, 0);
} else {
 x_420 = x_419;
}
lean_ctor_set(x_420, 0, x_417);
lean_ctor_set(x_420, 1, x_418);
return x_420;
}
}
}
else
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; 
lean_dec(x_357);
lean_dec(x_355);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_421 = lean_ctor_get(x_359, 0);
lean_inc(x_421);
x_422 = lean_ctor_get(x_359, 1);
lean_inc(x_422);
if (lean_is_exclusive(x_359)) {
 lean_ctor_release(x_359, 0);
 lean_ctor_release(x_359, 1);
 x_423 = x_359;
} else {
 lean_dec_ref(x_359);
 x_423 = lean_box(0);
}
if (lean_is_scalar(x_423)) {
 x_424 = lean_alloc_ctor(1, 2, 0);
} else {
 x_424 = x_423;
}
lean_ctor_set(x_424, 0, x_421);
lean_ctor_set(x_424, 1, x_422);
return x_424;
}
}
}
}
else
{
uint8_t x_425; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_425 = !lean_is_exclusive(x_282);
if (x_425 == 0)
{
return x_282;
}
else
{
lean_object* x_426; lean_object* x_427; lean_object* x_428; 
x_426 = lean_ctor_get(x_282, 0);
x_427 = lean_ctor_get(x_282, 1);
lean_inc(x_427);
lean_inc(x_426);
lean_dec(x_282);
x_428 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_428, 0, x_426);
lean_ctor_set(x_428, 1, x_427);
return x_428;
}
}
}
else
{
lean_dec(x_24);
x_31 = x_275;
x_32 = x_276;
goto block_119;
}
}
block_584:
{
if (lean_obj_tag(x_430) == 0)
{
lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; 
x_432 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__43;
lean_inc(x_24);
x_433 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_433, 0, x_432);
lean_ctor_set(x_433, 1, x_24);
x_434 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_434, 0, x_19);
lean_ctor_set(x_434, 1, x_433);
x_435 = lean_array_mk(x_434);
x_436 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed), 9, 2);
lean_closure_set(x_436, 0, x_29);
lean_closure_set(x_436, 1, x_435);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_437 = l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(x_436, x_5, x_6, x_7, x_8, x_9, x_10, x_431);
if (lean_obj_tag(x_437) == 0)
{
lean_object* x_438; 
x_438 = lean_ctor_get(x_437, 0);
lean_inc(x_438);
if (lean_obj_tag(x_438) == 0)
{
lean_object* x_439; 
x_439 = lean_ctor_get(x_437, 1);
lean_inc(x_439);
lean_dec(x_437);
x_275 = x_19;
x_276 = x_439;
goto block_429;
}
else
{
lean_object* x_440; uint8_t x_441; 
x_440 = lean_ctor_get(x_437, 1);
lean_inc(x_440);
lean_dec(x_437);
x_441 = !lean_is_exclusive(x_438);
if (x_441 == 0)
{
lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_442 = lean_ctor_get(x_438, 0);
x_443 = l_Lean_Expr_appFn_x21(x_442);
x_444 = l_Lean_Expr_appArg_x21(x_443);
lean_dec(x_443);
x_445 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_444);
x_446 = l_Lean_Meta_isExprDefEq(x_444, x_445, x_7, x_8, x_9, x_10, x_440);
if (lean_obj_tag(x_446) == 0)
{
lean_object* x_447; uint8_t x_448; 
x_447 = lean_ctor_get(x_446, 0);
lean_inc(x_447);
x_448 = lean_unbox(x_447);
lean_dec(x_447);
if (x_448 == 0)
{
lean_object* x_449; lean_object* x_450; lean_object* x_451; uint8_t x_452; uint8_t x_453; lean_object* x_454; 
x_449 = lean_ctor_get(x_446, 1);
lean_inc(x_449);
lean_dec(x_446);
x_450 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed), 9, 1);
lean_closure_set(x_450, 0, x_20);
x_451 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_452 = 0;
x_453 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_444);
x_454 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_451, x_452, x_444, x_450, x_453, x_5, x_6, x_7, x_8, x_9, x_10, x_449);
if (lean_obj_tag(x_454) == 0)
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; 
x_455 = lean_ctor_get(x_454, 0);
lean_inc(x_455);
x_456 = lean_ctor_get(x_454, 1);
lean_inc(x_456);
lean_dec(x_454);
x_457 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_457, 0, x_442);
lean_ctor_set(x_457, 1, x_20);
x_458 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_458, 0, x_455);
lean_ctor_set(x_458, 1, x_457);
x_459 = lean_array_mk(x_458);
x_460 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_461 = l_Lean_Meta_mkAppM(x_460, x_459, x_7, x_8, x_9, x_10, x_456);
if (lean_obj_tag(x_461) == 0)
{
lean_object* x_462; lean_object* x_463; lean_object* x_464; 
x_462 = lean_ctor_get(x_461, 0);
lean_inc(x_462);
x_463 = lean_ctor_get(x_461, 1);
lean_inc(x_463);
lean_dec(x_461);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_464 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_462, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_463);
if (lean_obj_tag(x_464) == 0)
{
lean_object* x_465; lean_object* x_466; 
x_465 = lean_ctor_get(x_464, 1);
lean_inc(x_465);
lean_dec(x_464);
lean_inc(x_5);
x_466 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_465);
if (lean_obj_tag(x_466) == 0)
{
lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; 
x_467 = lean_ctor_get(x_466, 0);
lean_inc(x_467);
x_468 = lean_ctor_get(x_466, 1);
lean_inc(x_468);
lean_dec(x_466);
x_469 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9___boxed), 8, 1);
lean_closure_set(x_469, 0, x_467);
x_470 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6___boxed), 4, 1);
lean_closure_set(x_470, 0, x_469);
lean_ctor_set(x_438, 0, x_444);
x_471 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_471, 0, x_470);
lean_ctor_set(x_471, 1, x_438);
x_472 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_472, 0, x_471);
x_275 = x_472;
x_276 = x_468;
goto block_429;
}
else
{
uint8_t x_473; 
lean_dec(x_444);
lean_free_object(x_438);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_473 = !lean_is_exclusive(x_466);
if (x_473 == 0)
{
return x_466;
}
else
{
lean_object* x_474; lean_object* x_475; lean_object* x_476; 
x_474 = lean_ctor_get(x_466, 0);
x_475 = lean_ctor_get(x_466, 1);
lean_inc(x_475);
lean_inc(x_474);
lean_dec(x_466);
x_476 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_476, 0, x_474);
lean_ctor_set(x_476, 1, x_475);
return x_476;
}
}
}
else
{
uint8_t x_477; 
lean_dec(x_444);
lean_free_object(x_438);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_477 = !lean_is_exclusive(x_464);
if (x_477 == 0)
{
return x_464;
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; 
x_478 = lean_ctor_get(x_464, 0);
x_479 = lean_ctor_get(x_464, 1);
lean_inc(x_479);
lean_inc(x_478);
lean_dec(x_464);
x_480 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_480, 0, x_478);
lean_ctor_set(x_480, 1, x_479);
return x_480;
}
}
}
else
{
uint8_t x_481; 
lean_dec(x_444);
lean_free_object(x_438);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_481 = !lean_is_exclusive(x_461);
if (x_481 == 0)
{
return x_461;
}
else
{
lean_object* x_482; lean_object* x_483; lean_object* x_484; 
x_482 = lean_ctor_get(x_461, 0);
x_483 = lean_ctor_get(x_461, 1);
lean_inc(x_483);
lean_inc(x_482);
lean_dec(x_461);
x_484 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_484, 0, x_482);
lean_ctor_set(x_484, 1, x_483);
return x_484;
}
}
}
else
{
uint8_t x_485; 
lean_dec(x_444);
lean_free_object(x_438);
lean_dec(x_442);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_485 = !lean_is_exclusive(x_454);
if (x_485 == 0)
{
return x_454;
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; 
x_486 = lean_ctor_get(x_454, 0);
x_487 = lean_ctor_get(x_454, 1);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_454);
x_488 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_488, 0, x_486);
lean_ctor_set(x_488, 1, x_487);
return x_488;
}
}
}
else
{
lean_object* x_489; lean_object* x_490; 
lean_dec(x_444);
x_489 = lean_ctor_get(x_446, 1);
lean_inc(x_489);
lean_dec(x_446);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_490 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_442, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_489);
if (lean_obj_tag(x_490) == 0)
{
lean_object* x_491; lean_object* x_492; 
x_491 = lean_ctor_get(x_490, 1);
lean_inc(x_491);
lean_dec(x_490);
lean_inc(x_5);
x_492 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_491);
if (lean_obj_tag(x_492) == 0)
{
lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; 
x_493 = lean_ctor_get(x_492, 0);
lean_inc(x_493);
x_494 = lean_ctor_get(x_492, 1);
lean_inc(x_494);
lean_dec(x_492);
x_495 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9___boxed), 8, 1);
lean_closure_set(x_495, 0, x_493);
x_496 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_496, 0, x_495);
x_497 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_497, 0, x_496);
lean_ctor_set(x_497, 1, x_19);
lean_ctor_set(x_438, 0, x_497);
x_275 = x_438;
x_276 = x_494;
goto block_429;
}
else
{
uint8_t x_498; 
lean_free_object(x_438);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_498 = !lean_is_exclusive(x_492);
if (x_498 == 0)
{
return x_492;
}
else
{
lean_object* x_499; lean_object* x_500; lean_object* x_501; 
x_499 = lean_ctor_get(x_492, 0);
x_500 = lean_ctor_get(x_492, 1);
lean_inc(x_500);
lean_inc(x_499);
lean_dec(x_492);
x_501 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_501, 0, x_499);
lean_ctor_set(x_501, 1, x_500);
return x_501;
}
}
}
else
{
uint8_t x_502; 
lean_free_object(x_438);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_502 = !lean_is_exclusive(x_490);
if (x_502 == 0)
{
return x_490;
}
else
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; 
x_503 = lean_ctor_get(x_490, 0);
x_504 = lean_ctor_get(x_490, 1);
lean_inc(x_504);
lean_inc(x_503);
lean_dec(x_490);
x_505 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_505, 0, x_503);
lean_ctor_set(x_505, 1, x_504);
return x_505;
}
}
}
}
else
{
uint8_t x_506; 
lean_dec(x_444);
lean_free_object(x_438);
lean_dec(x_442);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_506 = !lean_is_exclusive(x_446);
if (x_506 == 0)
{
return x_446;
}
else
{
lean_object* x_507; lean_object* x_508; lean_object* x_509; 
x_507 = lean_ctor_get(x_446, 0);
x_508 = lean_ctor_get(x_446, 1);
lean_inc(x_508);
lean_inc(x_507);
lean_dec(x_446);
x_509 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_509, 0, x_507);
lean_ctor_set(x_509, 1, x_508);
return x_509;
}
}
}
else
{
lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; 
x_510 = lean_ctor_get(x_438, 0);
lean_inc(x_510);
lean_dec(x_438);
x_511 = l_Lean_Expr_appFn_x21(x_510);
x_512 = l_Lean_Expr_appArg_x21(x_511);
lean_dec(x_511);
x_513 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_512);
x_514 = l_Lean_Meta_isExprDefEq(x_512, x_513, x_7, x_8, x_9, x_10, x_440);
if (lean_obj_tag(x_514) == 0)
{
lean_object* x_515; uint8_t x_516; 
x_515 = lean_ctor_get(x_514, 0);
lean_inc(x_515);
x_516 = lean_unbox(x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; uint8_t x_520; uint8_t x_521; lean_object* x_522; 
x_517 = lean_ctor_get(x_514, 1);
lean_inc(x_517);
lean_dec(x_514);
x_518 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed), 9, 1);
lean_closure_set(x_518, 0, x_20);
x_519 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_520 = 0;
x_521 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_512);
x_522 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_519, x_520, x_512, x_518, x_521, x_5, x_6, x_7, x_8, x_9, x_10, x_517);
if (lean_obj_tag(x_522) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; 
x_523 = lean_ctor_get(x_522, 0);
lean_inc(x_523);
x_524 = lean_ctor_get(x_522, 1);
lean_inc(x_524);
lean_dec(x_522);
x_525 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_525, 0, x_510);
lean_ctor_set(x_525, 1, x_20);
x_526 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_526, 0, x_523);
lean_ctor_set(x_526, 1, x_525);
x_527 = lean_array_mk(x_526);
x_528 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_529 = l_Lean_Meta_mkAppM(x_528, x_527, x_7, x_8, x_9, x_10, x_524);
if (lean_obj_tag(x_529) == 0)
{
lean_object* x_530; lean_object* x_531; lean_object* x_532; 
x_530 = lean_ctor_get(x_529, 0);
lean_inc(x_530);
x_531 = lean_ctor_get(x_529, 1);
lean_inc(x_531);
lean_dec(x_529);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_532 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_530, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_531);
if (lean_obj_tag(x_532) == 0)
{
lean_object* x_533; lean_object* x_534; 
x_533 = lean_ctor_get(x_532, 1);
lean_inc(x_533);
lean_dec(x_532);
lean_inc(x_5);
x_534 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_533);
if (lean_obj_tag(x_534) == 0)
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; 
x_535 = lean_ctor_get(x_534, 0);
lean_inc(x_535);
x_536 = lean_ctor_get(x_534, 1);
lean_inc(x_536);
lean_dec(x_534);
x_537 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9___boxed), 8, 1);
lean_closure_set(x_537, 0, x_535);
x_538 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6___boxed), 4, 1);
lean_closure_set(x_538, 0, x_537);
x_539 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_539, 0, x_512);
x_540 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_540, 0, x_538);
lean_ctor_set(x_540, 1, x_539);
x_541 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_541, 0, x_540);
x_275 = x_541;
x_276 = x_536;
goto block_429;
}
else
{
lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; 
lean_dec(x_512);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_542 = lean_ctor_get(x_534, 0);
lean_inc(x_542);
x_543 = lean_ctor_get(x_534, 1);
lean_inc(x_543);
if (lean_is_exclusive(x_534)) {
 lean_ctor_release(x_534, 0);
 lean_ctor_release(x_534, 1);
 x_544 = x_534;
} else {
 lean_dec_ref(x_534);
 x_544 = lean_box(0);
}
if (lean_is_scalar(x_544)) {
 x_545 = lean_alloc_ctor(1, 2, 0);
} else {
 x_545 = x_544;
}
lean_ctor_set(x_545, 0, x_542);
lean_ctor_set(x_545, 1, x_543);
return x_545;
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; 
lean_dec(x_512);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_546 = lean_ctor_get(x_532, 0);
lean_inc(x_546);
x_547 = lean_ctor_get(x_532, 1);
lean_inc(x_547);
if (lean_is_exclusive(x_532)) {
 lean_ctor_release(x_532, 0);
 lean_ctor_release(x_532, 1);
 x_548 = x_532;
} else {
 lean_dec_ref(x_532);
 x_548 = lean_box(0);
}
if (lean_is_scalar(x_548)) {
 x_549 = lean_alloc_ctor(1, 2, 0);
} else {
 x_549 = x_548;
}
lean_ctor_set(x_549, 0, x_546);
lean_ctor_set(x_549, 1, x_547);
return x_549;
}
}
else
{
lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_512);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_550 = lean_ctor_get(x_529, 0);
lean_inc(x_550);
x_551 = lean_ctor_get(x_529, 1);
lean_inc(x_551);
if (lean_is_exclusive(x_529)) {
 lean_ctor_release(x_529, 0);
 lean_ctor_release(x_529, 1);
 x_552 = x_529;
} else {
 lean_dec_ref(x_529);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(1, 2, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_550);
lean_ctor_set(x_553, 1, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; 
lean_dec(x_512);
lean_dec(x_510);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_554 = lean_ctor_get(x_522, 0);
lean_inc(x_554);
x_555 = lean_ctor_get(x_522, 1);
lean_inc(x_555);
if (lean_is_exclusive(x_522)) {
 lean_ctor_release(x_522, 0);
 lean_ctor_release(x_522, 1);
 x_556 = x_522;
} else {
 lean_dec_ref(x_522);
 x_556 = lean_box(0);
}
if (lean_is_scalar(x_556)) {
 x_557 = lean_alloc_ctor(1, 2, 0);
} else {
 x_557 = x_556;
}
lean_ctor_set(x_557, 0, x_554);
lean_ctor_set(x_557, 1, x_555);
return x_557;
}
}
else
{
lean_object* x_558; lean_object* x_559; 
lean_dec(x_512);
x_558 = lean_ctor_get(x_514, 1);
lean_inc(x_558);
lean_dec(x_514);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_559 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_510, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_558);
if (lean_obj_tag(x_559) == 0)
{
lean_object* x_560; lean_object* x_561; 
x_560 = lean_ctor_get(x_559, 1);
lean_inc(x_560);
lean_dec(x_559);
lean_inc(x_5);
x_561 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_560);
if (lean_obj_tag(x_561) == 0)
{
lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; 
x_562 = lean_ctor_get(x_561, 0);
lean_inc(x_562);
x_563 = lean_ctor_get(x_561, 1);
lean_inc(x_563);
lean_dec(x_561);
x_564 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9___boxed), 8, 1);
lean_closure_set(x_564, 0, x_562);
x_565 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_565, 0, x_564);
x_566 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_566, 0, x_565);
lean_ctor_set(x_566, 1, x_19);
x_567 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_567, 0, x_566);
x_275 = x_567;
x_276 = x_563;
goto block_429;
}
else
{
lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_568 = lean_ctor_get(x_561, 0);
lean_inc(x_568);
x_569 = lean_ctor_get(x_561, 1);
lean_inc(x_569);
if (lean_is_exclusive(x_561)) {
 lean_ctor_release(x_561, 0);
 lean_ctor_release(x_561, 1);
 x_570 = x_561;
} else {
 lean_dec_ref(x_561);
 x_570 = lean_box(0);
}
if (lean_is_scalar(x_570)) {
 x_571 = lean_alloc_ctor(1, 2, 0);
} else {
 x_571 = x_570;
}
lean_ctor_set(x_571, 0, x_568);
lean_ctor_set(x_571, 1, x_569);
return x_571;
}
}
else
{
lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_572 = lean_ctor_get(x_559, 0);
lean_inc(x_572);
x_573 = lean_ctor_get(x_559, 1);
lean_inc(x_573);
if (lean_is_exclusive(x_559)) {
 lean_ctor_release(x_559, 0);
 lean_ctor_release(x_559, 1);
 x_574 = x_559;
} else {
 lean_dec_ref(x_559);
 x_574 = lean_box(0);
}
if (lean_is_scalar(x_574)) {
 x_575 = lean_alloc_ctor(1, 2, 0);
} else {
 x_575 = x_574;
}
lean_ctor_set(x_575, 0, x_572);
lean_ctor_set(x_575, 1, x_573);
return x_575;
}
}
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; 
lean_dec(x_512);
lean_dec(x_510);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_576 = lean_ctor_get(x_514, 0);
lean_inc(x_576);
x_577 = lean_ctor_get(x_514, 1);
lean_inc(x_577);
if (lean_is_exclusive(x_514)) {
 lean_ctor_release(x_514, 0);
 lean_ctor_release(x_514, 1);
 x_578 = x_514;
} else {
 lean_dec_ref(x_514);
 x_578 = lean_box(0);
}
if (lean_is_scalar(x_578)) {
 x_579 = lean_alloc_ctor(1, 2, 0);
} else {
 x_579 = x_578;
}
lean_ctor_set(x_579, 0, x_576);
lean_ctor_set(x_579, 1, x_577);
return x_579;
}
}
}
}
else
{
uint8_t x_580; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_580 = !lean_is_exclusive(x_437);
if (x_580 == 0)
{
return x_437;
}
else
{
lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_581 = lean_ctor_get(x_437, 0);
x_582 = lean_ctor_get(x_437, 1);
lean_inc(x_582);
lean_inc(x_581);
lean_dec(x_437);
x_583 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_583, 0, x_581);
lean_ctor_set(x_583, 1, x_582);
return x_583;
}
}
}
else
{
lean_dec(x_24);
x_31 = x_430;
x_32 = x_431;
goto block_119;
}
}
block_735:
{
if (lean_obj_tag(x_585) == 0)
{
lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; 
x_587 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__45;
lean_inc(x_24);
x_588 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_588, 0, x_587);
lean_ctor_set(x_588, 1, x_24);
x_589 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_589, 0, x_19);
lean_ctor_set(x_589, 1, x_588);
x_590 = lean_array_mk(x_589);
x_591 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed), 9, 2);
lean_closure_set(x_591, 0, x_29);
lean_closure_set(x_591, 1, x_590);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_592 = l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(x_591, x_5, x_6, x_7, x_8, x_9, x_10, x_586);
if (lean_obj_tag(x_592) == 0)
{
lean_object* x_593; 
x_593 = lean_ctor_get(x_592, 0);
lean_inc(x_593);
if (lean_obj_tag(x_593) == 0)
{
lean_object* x_594; 
x_594 = lean_ctor_get(x_592, 1);
lean_inc(x_594);
lean_dec(x_592);
x_430 = x_19;
x_431 = x_594;
goto block_584;
}
else
{
lean_object* x_595; uint8_t x_596; 
x_595 = lean_ctor_get(x_592, 1);
lean_inc(x_595);
lean_dec(x_592);
x_596 = !lean_is_exclusive(x_593);
if (x_596 == 0)
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; 
x_597 = lean_ctor_get(x_593, 0);
x_598 = l_Lean_Expr_appFn_x21(x_597);
x_599 = l_Lean_Expr_appArg_x21(x_598);
lean_dec(x_598);
x_600 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_599);
x_601 = l_Lean_Meta_isExprDefEq(x_599, x_600, x_7, x_8, x_9, x_10, x_595);
if (lean_obj_tag(x_601) == 0)
{
lean_object* x_602; uint8_t x_603; 
x_602 = lean_ctor_get(x_601, 0);
lean_inc(x_602);
x_603 = lean_unbox(x_602);
lean_dec(x_602);
if (x_603 == 0)
{
lean_object* x_604; lean_object* x_605; lean_object* x_606; uint8_t x_607; uint8_t x_608; lean_object* x_609; 
x_604 = lean_ctor_get(x_601, 1);
lean_inc(x_604);
lean_dec(x_601);
x_605 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed), 9, 1);
lean_closure_set(x_605, 0, x_20);
x_606 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_607 = 0;
x_608 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_599);
x_609 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_606, x_607, x_599, x_605, x_608, x_5, x_6, x_7, x_8, x_9, x_10, x_604);
if (lean_obj_tag(x_609) == 0)
{
lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; 
x_610 = lean_ctor_get(x_609, 0);
lean_inc(x_610);
x_611 = lean_ctor_get(x_609, 1);
lean_inc(x_611);
lean_dec(x_609);
x_612 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_612, 0, x_597);
lean_ctor_set(x_612, 1, x_20);
x_613 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_613, 0, x_610);
lean_ctor_set(x_613, 1, x_612);
x_614 = lean_array_mk(x_613);
x_615 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_616 = l_Lean_Meta_mkAppM(x_615, x_614, x_7, x_8, x_9, x_10, x_611);
if (lean_obj_tag(x_616) == 0)
{
lean_object* x_617; lean_object* x_618; lean_object* x_619; 
x_617 = lean_ctor_get(x_616, 0);
lean_inc(x_617);
x_618 = lean_ctor_get(x_616, 1);
lean_inc(x_618);
lean_dec(x_616);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_619 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_617, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_618);
if (lean_obj_tag(x_619) == 0)
{
lean_object* x_620; lean_object* x_621; 
x_620 = lean_ctor_get(x_619, 1);
lean_inc(x_620);
lean_dec(x_619);
lean_inc(x_5);
x_621 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_620);
if (lean_obj_tag(x_621) == 0)
{
lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; 
x_622 = lean_ctor_get(x_621, 0);
lean_inc(x_622);
x_623 = lean_ctor_get(x_621, 1);
lean_inc(x_623);
lean_dec(x_621);
x_624 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6___boxed), 4, 1);
lean_closure_set(x_624, 0, x_622);
lean_ctor_set(x_593, 0, x_599);
x_625 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_625, 0, x_624);
lean_ctor_set(x_625, 1, x_593);
x_626 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_626, 0, x_625);
x_430 = x_626;
x_431 = x_623;
goto block_584;
}
else
{
uint8_t x_627; 
lean_dec(x_599);
lean_free_object(x_593);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_627 = !lean_is_exclusive(x_621);
if (x_627 == 0)
{
return x_621;
}
else
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; 
x_628 = lean_ctor_get(x_621, 0);
x_629 = lean_ctor_get(x_621, 1);
lean_inc(x_629);
lean_inc(x_628);
lean_dec(x_621);
x_630 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_630, 0, x_628);
lean_ctor_set(x_630, 1, x_629);
return x_630;
}
}
}
else
{
uint8_t x_631; 
lean_dec(x_599);
lean_free_object(x_593);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_631 = !lean_is_exclusive(x_619);
if (x_631 == 0)
{
return x_619;
}
else
{
lean_object* x_632; lean_object* x_633; lean_object* x_634; 
x_632 = lean_ctor_get(x_619, 0);
x_633 = lean_ctor_get(x_619, 1);
lean_inc(x_633);
lean_inc(x_632);
lean_dec(x_619);
x_634 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_634, 0, x_632);
lean_ctor_set(x_634, 1, x_633);
return x_634;
}
}
}
else
{
uint8_t x_635; 
lean_dec(x_599);
lean_free_object(x_593);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_635 = !lean_is_exclusive(x_616);
if (x_635 == 0)
{
return x_616;
}
else
{
lean_object* x_636; lean_object* x_637; lean_object* x_638; 
x_636 = lean_ctor_get(x_616, 0);
x_637 = lean_ctor_get(x_616, 1);
lean_inc(x_637);
lean_inc(x_636);
lean_dec(x_616);
x_638 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_638, 0, x_636);
lean_ctor_set(x_638, 1, x_637);
return x_638;
}
}
}
else
{
uint8_t x_639; 
lean_dec(x_599);
lean_free_object(x_593);
lean_dec(x_597);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_639 = !lean_is_exclusive(x_609);
if (x_639 == 0)
{
return x_609;
}
else
{
lean_object* x_640; lean_object* x_641; lean_object* x_642; 
x_640 = lean_ctor_get(x_609, 0);
x_641 = lean_ctor_get(x_609, 1);
lean_inc(x_641);
lean_inc(x_640);
lean_dec(x_609);
x_642 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_642, 0, x_640);
lean_ctor_set(x_642, 1, x_641);
return x_642;
}
}
}
else
{
lean_object* x_643; lean_object* x_644; 
lean_dec(x_599);
x_643 = lean_ctor_get(x_601, 1);
lean_inc(x_643);
lean_dec(x_601);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_644 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_597, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_643);
if (lean_obj_tag(x_644) == 0)
{
lean_object* x_645; lean_object* x_646; 
x_645 = lean_ctor_get(x_644, 1);
lean_inc(x_645);
lean_dec(x_644);
lean_inc(x_5);
x_646 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_645);
if (lean_obj_tag(x_646) == 0)
{
lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; 
x_647 = lean_ctor_get(x_646, 0);
lean_inc(x_647);
x_648 = lean_ctor_get(x_646, 1);
lean_inc(x_648);
lean_dec(x_646);
x_649 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_649, 0, x_647);
x_650 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_650, 0, x_649);
lean_ctor_set(x_650, 1, x_19);
lean_ctor_set(x_593, 0, x_650);
x_430 = x_593;
x_431 = x_648;
goto block_584;
}
else
{
uint8_t x_651; 
lean_free_object(x_593);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_651 = !lean_is_exclusive(x_646);
if (x_651 == 0)
{
return x_646;
}
else
{
lean_object* x_652; lean_object* x_653; lean_object* x_654; 
x_652 = lean_ctor_get(x_646, 0);
x_653 = lean_ctor_get(x_646, 1);
lean_inc(x_653);
lean_inc(x_652);
lean_dec(x_646);
x_654 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_654, 0, x_652);
lean_ctor_set(x_654, 1, x_653);
return x_654;
}
}
}
else
{
uint8_t x_655; 
lean_free_object(x_593);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_655 = !lean_is_exclusive(x_644);
if (x_655 == 0)
{
return x_644;
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; 
x_656 = lean_ctor_get(x_644, 0);
x_657 = lean_ctor_get(x_644, 1);
lean_inc(x_657);
lean_inc(x_656);
lean_dec(x_644);
x_658 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_658, 0, x_656);
lean_ctor_set(x_658, 1, x_657);
return x_658;
}
}
}
}
else
{
uint8_t x_659; 
lean_dec(x_599);
lean_free_object(x_593);
lean_dec(x_597);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_659 = !lean_is_exclusive(x_601);
if (x_659 == 0)
{
return x_601;
}
else
{
lean_object* x_660; lean_object* x_661; lean_object* x_662; 
x_660 = lean_ctor_get(x_601, 0);
x_661 = lean_ctor_get(x_601, 1);
lean_inc(x_661);
lean_inc(x_660);
lean_dec(x_601);
x_662 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_662, 0, x_660);
lean_ctor_set(x_662, 1, x_661);
return x_662;
}
}
}
else
{
lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; lean_object* x_667; 
x_663 = lean_ctor_get(x_593, 0);
lean_inc(x_663);
lean_dec(x_593);
x_664 = l_Lean_Expr_appFn_x21(x_663);
x_665 = l_Lean_Expr_appArg_x21(x_664);
lean_dec(x_664);
x_666 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_665);
x_667 = l_Lean_Meta_isExprDefEq(x_665, x_666, x_7, x_8, x_9, x_10, x_595);
if (lean_obj_tag(x_667) == 0)
{
lean_object* x_668; uint8_t x_669; 
x_668 = lean_ctor_get(x_667, 0);
lean_inc(x_668);
x_669 = lean_unbox(x_668);
lean_dec(x_668);
if (x_669 == 0)
{
lean_object* x_670; lean_object* x_671; lean_object* x_672; uint8_t x_673; uint8_t x_674; lean_object* x_675; 
x_670 = lean_ctor_get(x_667, 1);
lean_inc(x_670);
lean_dec(x_667);
x_671 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed), 9, 1);
lean_closure_set(x_671, 0, x_20);
x_672 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_673 = 0;
x_674 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_665);
x_675 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_672, x_673, x_665, x_671, x_674, x_5, x_6, x_7, x_8, x_9, x_10, x_670);
if (lean_obj_tag(x_675) == 0)
{
lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; 
x_676 = lean_ctor_get(x_675, 0);
lean_inc(x_676);
x_677 = lean_ctor_get(x_675, 1);
lean_inc(x_677);
lean_dec(x_675);
x_678 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_678, 0, x_663);
lean_ctor_set(x_678, 1, x_20);
x_679 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_679, 0, x_676);
lean_ctor_set(x_679, 1, x_678);
x_680 = lean_array_mk(x_679);
x_681 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_682 = l_Lean_Meta_mkAppM(x_681, x_680, x_7, x_8, x_9, x_10, x_677);
if (lean_obj_tag(x_682) == 0)
{
lean_object* x_683; lean_object* x_684; lean_object* x_685; 
x_683 = lean_ctor_get(x_682, 0);
lean_inc(x_683);
x_684 = lean_ctor_get(x_682, 1);
lean_inc(x_684);
lean_dec(x_682);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_685 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_683, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_684);
if (lean_obj_tag(x_685) == 0)
{
lean_object* x_686; lean_object* x_687; 
x_686 = lean_ctor_get(x_685, 1);
lean_inc(x_686);
lean_dec(x_685);
lean_inc(x_5);
x_687 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_686);
if (lean_obj_tag(x_687) == 0)
{
lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; 
x_688 = lean_ctor_get(x_687, 0);
lean_inc(x_688);
x_689 = lean_ctor_get(x_687, 1);
lean_inc(x_689);
lean_dec(x_687);
x_690 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6___boxed), 4, 1);
lean_closure_set(x_690, 0, x_688);
x_691 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_691, 0, x_665);
x_692 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_692, 0, x_690);
lean_ctor_set(x_692, 1, x_691);
x_693 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_693, 0, x_692);
x_430 = x_693;
x_431 = x_689;
goto block_584;
}
else
{
lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; 
lean_dec(x_665);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_694 = lean_ctor_get(x_687, 0);
lean_inc(x_694);
x_695 = lean_ctor_get(x_687, 1);
lean_inc(x_695);
if (lean_is_exclusive(x_687)) {
 lean_ctor_release(x_687, 0);
 lean_ctor_release(x_687, 1);
 x_696 = x_687;
} else {
 lean_dec_ref(x_687);
 x_696 = lean_box(0);
}
if (lean_is_scalar(x_696)) {
 x_697 = lean_alloc_ctor(1, 2, 0);
} else {
 x_697 = x_696;
}
lean_ctor_set(x_697, 0, x_694);
lean_ctor_set(x_697, 1, x_695);
return x_697;
}
}
else
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; 
lean_dec(x_665);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_698 = lean_ctor_get(x_685, 0);
lean_inc(x_698);
x_699 = lean_ctor_get(x_685, 1);
lean_inc(x_699);
if (lean_is_exclusive(x_685)) {
 lean_ctor_release(x_685, 0);
 lean_ctor_release(x_685, 1);
 x_700 = x_685;
} else {
 lean_dec_ref(x_685);
 x_700 = lean_box(0);
}
if (lean_is_scalar(x_700)) {
 x_701 = lean_alloc_ctor(1, 2, 0);
} else {
 x_701 = x_700;
}
lean_ctor_set(x_701, 0, x_698);
lean_ctor_set(x_701, 1, x_699);
return x_701;
}
}
else
{
lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
lean_dec(x_665);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_702 = lean_ctor_get(x_682, 0);
lean_inc(x_702);
x_703 = lean_ctor_get(x_682, 1);
lean_inc(x_703);
if (lean_is_exclusive(x_682)) {
 lean_ctor_release(x_682, 0);
 lean_ctor_release(x_682, 1);
 x_704 = x_682;
} else {
 lean_dec_ref(x_682);
 x_704 = lean_box(0);
}
if (lean_is_scalar(x_704)) {
 x_705 = lean_alloc_ctor(1, 2, 0);
} else {
 x_705 = x_704;
}
lean_ctor_set(x_705, 0, x_702);
lean_ctor_set(x_705, 1, x_703);
return x_705;
}
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; 
lean_dec(x_665);
lean_dec(x_663);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_706 = lean_ctor_get(x_675, 0);
lean_inc(x_706);
x_707 = lean_ctor_get(x_675, 1);
lean_inc(x_707);
if (lean_is_exclusive(x_675)) {
 lean_ctor_release(x_675, 0);
 lean_ctor_release(x_675, 1);
 x_708 = x_675;
} else {
 lean_dec_ref(x_675);
 x_708 = lean_box(0);
}
if (lean_is_scalar(x_708)) {
 x_709 = lean_alloc_ctor(1, 2, 0);
} else {
 x_709 = x_708;
}
lean_ctor_set(x_709, 0, x_706);
lean_ctor_set(x_709, 1, x_707);
return x_709;
}
}
else
{
lean_object* x_710; lean_object* x_711; 
lean_dec(x_665);
x_710 = lean_ctor_get(x_667, 1);
lean_inc(x_710);
lean_dec(x_667);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_711 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_663, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_710);
if (lean_obj_tag(x_711) == 0)
{
lean_object* x_712; lean_object* x_713; 
x_712 = lean_ctor_get(x_711, 1);
lean_inc(x_712);
lean_dec(x_711);
lean_inc(x_5);
x_713 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_712);
if (lean_obj_tag(x_713) == 0)
{
lean_object* x_714; lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; 
x_714 = lean_ctor_get(x_713, 0);
lean_inc(x_714);
x_715 = lean_ctor_get(x_713, 1);
lean_inc(x_715);
lean_dec(x_713);
x_716 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_716, 0, x_714);
x_717 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_717, 0, x_716);
lean_ctor_set(x_717, 1, x_19);
x_718 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_718, 0, x_717);
x_430 = x_718;
x_431 = x_715;
goto block_584;
}
else
{
lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_719 = lean_ctor_get(x_713, 0);
lean_inc(x_719);
x_720 = lean_ctor_get(x_713, 1);
lean_inc(x_720);
if (lean_is_exclusive(x_713)) {
 lean_ctor_release(x_713, 0);
 lean_ctor_release(x_713, 1);
 x_721 = x_713;
} else {
 lean_dec_ref(x_713);
 x_721 = lean_box(0);
}
if (lean_is_scalar(x_721)) {
 x_722 = lean_alloc_ctor(1, 2, 0);
} else {
 x_722 = x_721;
}
lean_ctor_set(x_722, 0, x_719);
lean_ctor_set(x_722, 1, x_720);
return x_722;
}
}
else
{
lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_723 = lean_ctor_get(x_711, 0);
lean_inc(x_723);
x_724 = lean_ctor_get(x_711, 1);
lean_inc(x_724);
if (lean_is_exclusive(x_711)) {
 lean_ctor_release(x_711, 0);
 lean_ctor_release(x_711, 1);
 x_725 = x_711;
} else {
 lean_dec_ref(x_711);
 x_725 = lean_box(0);
}
if (lean_is_scalar(x_725)) {
 x_726 = lean_alloc_ctor(1, 2, 0);
} else {
 x_726 = x_725;
}
lean_ctor_set(x_726, 0, x_723);
lean_ctor_set(x_726, 1, x_724);
return x_726;
}
}
}
else
{
lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; 
lean_dec(x_665);
lean_dec(x_663);
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_727 = lean_ctor_get(x_667, 0);
lean_inc(x_727);
x_728 = lean_ctor_get(x_667, 1);
lean_inc(x_728);
if (lean_is_exclusive(x_667)) {
 lean_ctor_release(x_667, 0);
 lean_ctor_release(x_667, 1);
 x_729 = x_667;
} else {
 lean_dec_ref(x_667);
 x_729 = lean_box(0);
}
if (lean_is_scalar(x_729)) {
 x_730 = lean_alloc_ctor(1, 2, 0);
} else {
 x_730 = x_729;
}
lean_ctor_set(x_730, 0, x_727);
lean_ctor_set(x_730, 1, x_728);
return x_730;
}
}
}
}
else
{
uint8_t x_731; 
lean_dec(x_24);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_731 = !lean_is_exclusive(x_592);
if (x_731 == 0)
{
return x_592;
}
else
{
lean_object* x_732; lean_object* x_733; lean_object* x_734; 
x_732 = lean_ctor_get(x_592, 0);
x_733 = lean_ctor_get(x_592, 1);
lean_inc(x_733);
lean_inc(x_732);
lean_dec(x_592);
x_734 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_734, 0, x_732);
lean_ctor_set(x_734, 1, x_733);
return x_734;
}
}
}
else
{
lean_dec(x_24);
x_31 = x_585;
x_32 = x_586;
goto block_119;
}
}
}
else
{
lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_980; lean_object* x_981; lean_object* x_1135; lean_object* x_1136; lean_object* x_1290; lean_object* x_1291; lean_object* x_1445; lean_object* x_1446; lean_object* x_1596; 
x_879 = lean_box(0);
x_880 = lean_box(0);
lean_inc(x_1);
x_881 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_881, 0, x_1);
x_882 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_882, 0, x_881);
lean_ctor_set(x_882, 1, x_880);
x_883 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_883, 0, x_879);
lean_ctor_set(x_883, 1, x_882);
x_884 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_884, 0, x_879);
lean_ctor_set(x_884, 1, x_883);
x_885 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__5;
lean_inc(x_884);
x_886 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_886, 0, x_885);
lean_ctor_set(x_886, 1, x_884);
x_887 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_887, 0, x_879);
lean_ctor_set(x_887, 1, x_886);
x_888 = lean_array_mk(x_887);
x_889 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__3;
x_890 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed), 9, 2);
lean_closure_set(x_890, 0, x_889);
lean_closure_set(x_890, 1, x_888);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_1596 = l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(x_890, x_5, x_6, x_7, x_8, x_9, x_10, x_14);
if (lean_obj_tag(x_1596) == 0)
{
lean_object* x_1597; 
x_1597 = lean_ctor_get(x_1596, 0);
lean_inc(x_1597);
if (lean_obj_tag(x_1597) == 0)
{
lean_object* x_1598; 
x_1598 = lean_ctor_get(x_1596, 1);
lean_inc(x_1598);
lean_dec(x_1596);
x_1445 = x_879;
x_1446 = x_1598;
goto block_1595;
}
else
{
lean_object* x_1599; uint8_t x_1600; 
x_1599 = lean_ctor_get(x_1596, 1);
lean_inc(x_1599);
lean_dec(x_1596);
x_1600 = !lean_is_exclusive(x_1597);
if (x_1600 == 0)
{
lean_object* x_1601; lean_object* x_1602; lean_object* x_1603; lean_object* x_1604; lean_object* x_1605; 
x_1601 = lean_ctor_get(x_1597, 0);
x_1602 = l_Lean_Expr_appFn_x21(x_1601);
x_1603 = l_Lean_Expr_appArg_x21(x_1602);
lean_dec(x_1602);
x_1604 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1603);
x_1605 = l_Lean_Meta_isExprDefEq(x_1603, x_1604, x_7, x_8, x_9, x_10, x_1599);
if (lean_obj_tag(x_1605) == 0)
{
lean_object* x_1606; uint8_t x_1607; 
x_1606 = lean_ctor_get(x_1605, 0);
lean_inc(x_1606);
x_1607 = lean_unbox(x_1606);
lean_dec(x_1606);
if (x_1607 == 0)
{
lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; uint8_t x_1611; uint8_t x_1612; lean_object* x_1613; 
x_1608 = lean_ctor_get(x_1605, 1);
lean_inc(x_1608);
lean_dec(x_1605);
x_1609 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed), 9, 1);
lean_closure_set(x_1609, 0, x_880);
x_1610 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_1611 = 0;
x_1612 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1603);
x_1613 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_1610, x_1611, x_1603, x_1609, x_1612, x_5, x_6, x_7, x_8, x_9, x_10, x_1608);
if (lean_obj_tag(x_1613) == 0)
{
lean_object* x_1614; lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; lean_object* x_1618; lean_object* x_1619; lean_object* x_1620; 
x_1614 = lean_ctor_get(x_1613, 0);
lean_inc(x_1614);
x_1615 = lean_ctor_get(x_1613, 1);
lean_inc(x_1615);
lean_dec(x_1613);
x_1616 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1616, 0, x_1601);
lean_ctor_set(x_1616, 1, x_880);
x_1617 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1617, 0, x_1614);
lean_ctor_set(x_1617, 1, x_1616);
x_1618 = lean_array_mk(x_1617);
x_1619 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_1620 = l_Lean_Meta_mkAppM(x_1619, x_1618, x_7, x_8, x_9, x_10, x_1615);
if (lean_obj_tag(x_1620) == 0)
{
lean_object* x_1621; lean_object* x_1622; lean_object* x_1623; 
x_1621 = lean_ctor_get(x_1620, 0);
lean_inc(x_1621);
x_1622 = lean_ctor_get(x_1620, 1);
lean_inc(x_1622);
lean_dec(x_1620);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1623 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1621, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1622);
if (lean_obj_tag(x_1623) == 0)
{
lean_object* x_1624; lean_object* x_1625; 
x_1624 = lean_ctor_get(x_1623, 1);
lean_inc(x_1624);
lean_dec(x_1623);
lean_inc(x_5);
x_1625 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1624);
if (lean_obj_tag(x_1625) == 0)
{
lean_object* x_1626; lean_object* x_1627; lean_object* x_1628; lean_object* x_1629; lean_object* x_1630; 
x_1626 = lean_ctor_get(x_1625, 0);
lean_inc(x_1626);
x_1627 = lean_ctor_get(x_1625, 1);
lean_inc(x_1627);
lean_dec(x_1625);
x_1628 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__16), 4, 1);
lean_closure_set(x_1628, 0, x_1626);
lean_ctor_set(x_1597, 0, x_1603);
x_1629 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1629, 0, x_1628);
lean_ctor_set(x_1629, 1, x_1597);
x_1630 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1630, 0, x_1629);
x_1445 = x_1630;
x_1446 = x_1627;
goto block_1595;
}
else
{
uint8_t x_1631; 
lean_dec(x_1603);
lean_free_object(x_1597);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1631 = !lean_is_exclusive(x_1625);
if (x_1631 == 0)
{
return x_1625;
}
else
{
lean_object* x_1632; lean_object* x_1633; lean_object* x_1634; 
x_1632 = lean_ctor_get(x_1625, 0);
x_1633 = lean_ctor_get(x_1625, 1);
lean_inc(x_1633);
lean_inc(x_1632);
lean_dec(x_1625);
x_1634 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1634, 0, x_1632);
lean_ctor_set(x_1634, 1, x_1633);
return x_1634;
}
}
}
else
{
uint8_t x_1635; 
lean_dec(x_1603);
lean_free_object(x_1597);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1635 = !lean_is_exclusive(x_1623);
if (x_1635 == 0)
{
return x_1623;
}
else
{
lean_object* x_1636; lean_object* x_1637; lean_object* x_1638; 
x_1636 = lean_ctor_get(x_1623, 0);
x_1637 = lean_ctor_get(x_1623, 1);
lean_inc(x_1637);
lean_inc(x_1636);
lean_dec(x_1623);
x_1638 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1638, 0, x_1636);
lean_ctor_set(x_1638, 1, x_1637);
return x_1638;
}
}
}
else
{
uint8_t x_1639; 
lean_dec(x_1603);
lean_free_object(x_1597);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1639 = !lean_is_exclusive(x_1620);
if (x_1639 == 0)
{
return x_1620;
}
else
{
lean_object* x_1640; lean_object* x_1641; lean_object* x_1642; 
x_1640 = lean_ctor_get(x_1620, 0);
x_1641 = lean_ctor_get(x_1620, 1);
lean_inc(x_1641);
lean_inc(x_1640);
lean_dec(x_1620);
x_1642 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1642, 0, x_1640);
lean_ctor_set(x_1642, 1, x_1641);
return x_1642;
}
}
}
else
{
uint8_t x_1643; 
lean_dec(x_1603);
lean_free_object(x_1597);
lean_dec(x_1601);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1643 = !lean_is_exclusive(x_1613);
if (x_1643 == 0)
{
return x_1613;
}
else
{
lean_object* x_1644; lean_object* x_1645; lean_object* x_1646; 
x_1644 = lean_ctor_get(x_1613, 0);
x_1645 = lean_ctor_get(x_1613, 1);
lean_inc(x_1645);
lean_inc(x_1644);
lean_dec(x_1613);
x_1646 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1646, 0, x_1644);
lean_ctor_set(x_1646, 1, x_1645);
return x_1646;
}
}
}
else
{
lean_object* x_1647; lean_object* x_1648; 
lean_dec(x_1603);
x_1647 = lean_ctor_get(x_1605, 1);
lean_inc(x_1647);
lean_dec(x_1605);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1648 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1601, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1647);
if (lean_obj_tag(x_1648) == 0)
{
lean_object* x_1649; lean_object* x_1650; 
x_1649 = lean_ctor_get(x_1648, 1);
lean_inc(x_1649);
lean_dec(x_1648);
lean_inc(x_5);
x_1650 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1649);
if (lean_obj_tag(x_1650) == 0)
{
lean_object* x_1651; lean_object* x_1652; lean_object* x_1653; lean_object* x_1654; 
x_1651 = lean_ctor_get(x_1650, 0);
lean_inc(x_1651);
x_1652 = lean_ctor_get(x_1650, 1);
lean_inc(x_1652);
lean_dec(x_1650);
x_1653 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__11), 4, 1);
lean_closure_set(x_1653, 0, x_1651);
x_1654 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1654, 0, x_1653);
lean_ctor_set(x_1654, 1, x_879);
lean_ctor_set(x_1597, 0, x_1654);
x_1445 = x_1597;
x_1446 = x_1652;
goto block_1595;
}
else
{
uint8_t x_1655; 
lean_free_object(x_1597);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1655 = !lean_is_exclusive(x_1650);
if (x_1655 == 0)
{
return x_1650;
}
else
{
lean_object* x_1656; lean_object* x_1657; lean_object* x_1658; 
x_1656 = lean_ctor_get(x_1650, 0);
x_1657 = lean_ctor_get(x_1650, 1);
lean_inc(x_1657);
lean_inc(x_1656);
lean_dec(x_1650);
x_1658 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1658, 0, x_1656);
lean_ctor_set(x_1658, 1, x_1657);
return x_1658;
}
}
}
else
{
uint8_t x_1659; 
lean_free_object(x_1597);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1659 = !lean_is_exclusive(x_1648);
if (x_1659 == 0)
{
return x_1648;
}
else
{
lean_object* x_1660; lean_object* x_1661; lean_object* x_1662; 
x_1660 = lean_ctor_get(x_1648, 0);
x_1661 = lean_ctor_get(x_1648, 1);
lean_inc(x_1661);
lean_inc(x_1660);
lean_dec(x_1648);
x_1662 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1662, 0, x_1660);
lean_ctor_set(x_1662, 1, x_1661);
return x_1662;
}
}
}
}
else
{
uint8_t x_1663; 
lean_dec(x_1603);
lean_free_object(x_1597);
lean_dec(x_1601);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1663 = !lean_is_exclusive(x_1605);
if (x_1663 == 0)
{
return x_1605;
}
else
{
lean_object* x_1664; lean_object* x_1665; lean_object* x_1666; 
x_1664 = lean_ctor_get(x_1605, 0);
x_1665 = lean_ctor_get(x_1605, 1);
lean_inc(x_1665);
lean_inc(x_1664);
lean_dec(x_1605);
x_1666 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1666, 0, x_1664);
lean_ctor_set(x_1666, 1, x_1665);
return x_1666;
}
}
}
else
{
lean_object* x_1667; lean_object* x_1668; lean_object* x_1669; lean_object* x_1670; lean_object* x_1671; 
x_1667 = lean_ctor_get(x_1597, 0);
lean_inc(x_1667);
lean_dec(x_1597);
x_1668 = l_Lean_Expr_appFn_x21(x_1667);
x_1669 = l_Lean_Expr_appArg_x21(x_1668);
lean_dec(x_1668);
x_1670 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1669);
x_1671 = l_Lean_Meta_isExprDefEq(x_1669, x_1670, x_7, x_8, x_9, x_10, x_1599);
if (lean_obj_tag(x_1671) == 0)
{
lean_object* x_1672; uint8_t x_1673; 
x_1672 = lean_ctor_get(x_1671, 0);
lean_inc(x_1672);
x_1673 = lean_unbox(x_1672);
lean_dec(x_1672);
if (x_1673 == 0)
{
lean_object* x_1674; lean_object* x_1675; lean_object* x_1676; uint8_t x_1677; uint8_t x_1678; lean_object* x_1679; 
x_1674 = lean_ctor_get(x_1671, 1);
lean_inc(x_1674);
lean_dec(x_1671);
x_1675 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed), 9, 1);
lean_closure_set(x_1675, 0, x_880);
x_1676 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_1677 = 0;
x_1678 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1669);
x_1679 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_1676, x_1677, x_1669, x_1675, x_1678, x_5, x_6, x_7, x_8, x_9, x_10, x_1674);
if (lean_obj_tag(x_1679) == 0)
{
lean_object* x_1680; lean_object* x_1681; lean_object* x_1682; lean_object* x_1683; lean_object* x_1684; lean_object* x_1685; lean_object* x_1686; 
x_1680 = lean_ctor_get(x_1679, 0);
lean_inc(x_1680);
x_1681 = lean_ctor_get(x_1679, 1);
lean_inc(x_1681);
lean_dec(x_1679);
x_1682 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1682, 0, x_1667);
lean_ctor_set(x_1682, 1, x_880);
x_1683 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1683, 0, x_1680);
lean_ctor_set(x_1683, 1, x_1682);
x_1684 = lean_array_mk(x_1683);
x_1685 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_1686 = l_Lean_Meta_mkAppM(x_1685, x_1684, x_7, x_8, x_9, x_10, x_1681);
if (lean_obj_tag(x_1686) == 0)
{
lean_object* x_1687; lean_object* x_1688; lean_object* x_1689; 
x_1687 = lean_ctor_get(x_1686, 0);
lean_inc(x_1687);
x_1688 = lean_ctor_get(x_1686, 1);
lean_inc(x_1688);
lean_dec(x_1686);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1689 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1687, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1688);
if (lean_obj_tag(x_1689) == 0)
{
lean_object* x_1690; lean_object* x_1691; 
x_1690 = lean_ctor_get(x_1689, 1);
lean_inc(x_1690);
lean_dec(x_1689);
lean_inc(x_5);
x_1691 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1690);
if (lean_obj_tag(x_1691) == 0)
{
lean_object* x_1692; lean_object* x_1693; lean_object* x_1694; lean_object* x_1695; lean_object* x_1696; lean_object* x_1697; 
x_1692 = lean_ctor_get(x_1691, 0);
lean_inc(x_1692);
x_1693 = lean_ctor_get(x_1691, 1);
lean_inc(x_1693);
lean_dec(x_1691);
x_1694 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__16), 4, 1);
lean_closure_set(x_1694, 0, x_1692);
x_1695 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1695, 0, x_1669);
x_1696 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1696, 0, x_1694);
lean_ctor_set(x_1696, 1, x_1695);
x_1697 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1697, 0, x_1696);
x_1445 = x_1697;
x_1446 = x_1693;
goto block_1595;
}
else
{
lean_object* x_1698; lean_object* x_1699; lean_object* x_1700; lean_object* x_1701; 
lean_dec(x_1669);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1698 = lean_ctor_get(x_1691, 0);
lean_inc(x_1698);
x_1699 = lean_ctor_get(x_1691, 1);
lean_inc(x_1699);
if (lean_is_exclusive(x_1691)) {
 lean_ctor_release(x_1691, 0);
 lean_ctor_release(x_1691, 1);
 x_1700 = x_1691;
} else {
 lean_dec_ref(x_1691);
 x_1700 = lean_box(0);
}
if (lean_is_scalar(x_1700)) {
 x_1701 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1701 = x_1700;
}
lean_ctor_set(x_1701, 0, x_1698);
lean_ctor_set(x_1701, 1, x_1699);
return x_1701;
}
}
else
{
lean_object* x_1702; lean_object* x_1703; lean_object* x_1704; lean_object* x_1705; 
lean_dec(x_1669);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1702 = lean_ctor_get(x_1689, 0);
lean_inc(x_1702);
x_1703 = lean_ctor_get(x_1689, 1);
lean_inc(x_1703);
if (lean_is_exclusive(x_1689)) {
 lean_ctor_release(x_1689, 0);
 lean_ctor_release(x_1689, 1);
 x_1704 = x_1689;
} else {
 lean_dec_ref(x_1689);
 x_1704 = lean_box(0);
}
if (lean_is_scalar(x_1704)) {
 x_1705 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1705 = x_1704;
}
lean_ctor_set(x_1705, 0, x_1702);
lean_ctor_set(x_1705, 1, x_1703);
return x_1705;
}
}
else
{
lean_object* x_1706; lean_object* x_1707; lean_object* x_1708; lean_object* x_1709; 
lean_dec(x_1669);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1706 = lean_ctor_get(x_1686, 0);
lean_inc(x_1706);
x_1707 = lean_ctor_get(x_1686, 1);
lean_inc(x_1707);
if (lean_is_exclusive(x_1686)) {
 lean_ctor_release(x_1686, 0);
 lean_ctor_release(x_1686, 1);
 x_1708 = x_1686;
} else {
 lean_dec_ref(x_1686);
 x_1708 = lean_box(0);
}
if (lean_is_scalar(x_1708)) {
 x_1709 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1709 = x_1708;
}
lean_ctor_set(x_1709, 0, x_1706);
lean_ctor_set(x_1709, 1, x_1707);
return x_1709;
}
}
else
{
lean_object* x_1710; lean_object* x_1711; lean_object* x_1712; lean_object* x_1713; 
lean_dec(x_1669);
lean_dec(x_1667);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1710 = lean_ctor_get(x_1679, 0);
lean_inc(x_1710);
x_1711 = lean_ctor_get(x_1679, 1);
lean_inc(x_1711);
if (lean_is_exclusive(x_1679)) {
 lean_ctor_release(x_1679, 0);
 lean_ctor_release(x_1679, 1);
 x_1712 = x_1679;
} else {
 lean_dec_ref(x_1679);
 x_1712 = lean_box(0);
}
if (lean_is_scalar(x_1712)) {
 x_1713 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1713 = x_1712;
}
lean_ctor_set(x_1713, 0, x_1710);
lean_ctor_set(x_1713, 1, x_1711);
return x_1713;
}
}
else
{
lean_object* x_1714; lean_object* x_1715; 
lean_dec(x_1669);
x_1714 = lean_ctor_get(x_1671, 1);
lean_inc(x_1714);
lean_dec(x_1671);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1715 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1667, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1714);
if (lean_obj_tag(x_1715) == 0)
{
lean_object* x_1716; lean_object* x_1717; 
x_1716 = lean_ctor_get(x_1715, 1);
lean_inc(x_1716);
lean_dec(x_1715);
lean_inc(x_5);
x_1717 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1716);
if (lean_obj_tag(x_1717) == 0)
{
lean_object* x_1718; lean_object* x_1719; lean_object* x_1720; lean_object* x_1721; lean_object* x_1722; 
x_1718 = lean_ctor_get(x_1717, 0);
lean_inc(x_1718);
x_1719 = lean_ctor_get(x_1717, 1);
lean_inc(x_1719);
lean_dec(x_1717);
x_1720 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__11), 4, 1);
lean_closure_set(x_1720, 0, x_1718);
x_1721 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1721, 0, x_1720);
lean_ctor_set(x_1721, 1, x_879);
x_1722 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1722, 0, x_1721);
x_1445 = x_1722;
x_1446 = x_1719;
goto block_1595;
}
else
{
lean_object* x_1723; lean_object* x_1724; lean_object* x_1725; lean_object* x_1726; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1723 = lean_ctor_get(x_1717, 0);
lean_inc(x_1723);
x_1724 = lean_ctor_get(x_1717, 1);
lean_inc(x_1724);
if (lean_is_exclusive(x_1717)) {
 lean_ctor_release(x_1717, 0);
 lean_ctor_release(x_1717, 1);
 x_1725 = x_1717;
} else {
 lean_dec_ref(x_1717);
 x_1725 = lean_box(0);
}
if (lean_is_scalar(x_1725)) {
 x_1726 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1726 = x_1725;
}
lean_ctor_set(x_1726, 0, x_1723);
lean_ctor_set(x_1726, 1, x_1724);
return x_1726;
}
}
else
{
lean_object* x_1727; lean_object* x_1728; lean_object* x_1729; lean_object* x_1730; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1727 = lean_ctor_get(x_1715, 0);
lean_inc(x_1727);
x_1728 = lean_ctor_get(x_1715, 1);
lean_inc(x_1728);
if (lean_is_exclusive(x_1715)) {
 lean_ctor_release(x_1715, 0);
 lean_ctor_release(x_1715, 1);
 x_1729 = x_1715;
} else {
 lean_dec_ref(x_1715);
 x_1729 = lean_box(0);
}
if (lean_is_scalar(x_1729)) {
 x_1730 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1730 = x_1729;
}
lean_ctor_set(x_1730, 0, x_1727);
lean_ctor_set(x_1730, 1, x_1728);
return x_1730;
}
}
}
else
{
lean_object* x_1731; lean_object* x_1732; lean_object* x_1733; lean_object* x_1734; 
lean_dec(x_1669);
lean_dec(x_1667);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1731 = lean_ctor_get(x_1671, 0);
lean_inc(x_1731);
x_1732 = lean_ctor_get(x_1671, 1);
lean_inc(x_1732);
if (lean_is_exclusive(x_1671)) {
 lean_ctor_release(x_1671, 0);
 lean_ctor_release(x_1671, 1);
 x_1733 = x_1671;
} else {
 lean_dec_ref(x_1671);
 x_1733 = lean_box(0);
}
if (lean_is_scalar(x_1733)) {
 x_1734 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1734 = x_1733;
}
lean_ctor_set(x_1734, 0, x_1731);
lean_ctor_set(x_1734, 1, x_1732);
return x_1734;
}
}
}
}
else
{
uint8_t x_1735; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1735 = !lean_is_exclusive(x_1596);
if (x_1735 == 0)
{
return x_1596;
}
else
{
lean_object* x_1736; lean_object* x_1737; lean_object* x_1738; 
x_1736 = lean_ctor_get(x_1596, 0);
x_1737 = lean_ctor_get(x_1596, 1);
lean_inc(x_1737);
lean_inc(x_1736);
lean_dec(x_1596);
x_1738 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1738, 0, x_1736);
lean_ctor_set(x_1738, 1, x_1737);
return x_1738;
}
}
block_979:
{
if (lean_obj_tag(x_891) == 0)
{
lean_object* x_893; lean_object* x_902; lean_object* x_925; 
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1);
x_925 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData(x_1, x_7, x_8, x_9, x_10, x_892);
if (lean_obj_tag(x_925) == 0)
{
lean_dec(x_15);
x_893 = x_925;
goto block_901;
}
else
{
lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; uint8_t x_937; 
x_926 = lean_ctor_get(x_925, 0);
lean_inc(x_926);
x_927 = lean_ctor_get(x_925, 1);
lean_inc(x_927);
if (lean_is_exclusive(x_925)) {
 lean_ctor_release(x_925, 0);
 lean_ctor_release(x_925, 1);
 x_928 = x_925;
} else {
 lean_dec_ref(x_925);
 x_928 = lean_box(0);
}
x_937 = l_Lean_Exception_isInterrupt(x_926);
if (x_937 == 0)
{
uint8_t x_938; 
x_938 = l_Lean_Exception_isRuntime(x_926);
if (x_938 == 0)
{
lean_object* x_939; 
lean_dec(x_15);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1);
x_939 = lean_infer_type(x_1, x_7, x_8, x_9, x_10, x_927);
if (lean_obj_tag(x_939) == 0)
{
lean_object* x_940; lean_object* x_941; lean_object* x_942; 
x_940 = lean_ctor_get(x_939, 0);
lean_inc(x_940);
x_941 = lean_ctor_get(x_939, 1);
lean_inc(x_941);
lean_dec(x_939);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_942 = l_Lean_Meta_isTypeApp_x3f(x_940, x_7, x_8, x_9, x_10, x_941);
if (lean_obj_tag(x_942) == 0)
{
lean_object* x_943; 
x_943 = lean_ctor_get(x_942, 0);
lean_inc(x_943);
if (lean_obj_tag(x_943) == 0)
{
lean_object* x_944; lean_object* x_945; lean_object* x_946; lean_object* x_947; lean_object* x_948; 
x_944 = lean_ctor_get(x_942, 1);
lean_inc(x_944);
lean_dec(x_942);
x_945 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3;
x_946 = l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(x_945, x_7, x_8, x_9, x_10, x_944);
x_947 = lean_ctor_get(x_946, 0);
lean_inc(x_947);
x_948 = lean_ctor_get(x_946, 1);
lean_inc(x_948);
lean_dec(x_946);
x_929 = x_947;
x_930 = x_948;
goto block_936;
}
else
{
lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; 
x_949 = lean_ctor_get(x_943, 0);
lean_inc(x_949);
lean_dec(x_943);
x_950 = lean_ctor_get(x_942, 1);
lean_inc(x_950);
lean_dec(x_942);
x_951 = lean_ctor_get(x_949, 0);
lean_inc(x_951);
x_952 = lean_ctor_get(x_949, 1);
lean_inc(x_952);
lean_dec(x_949);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_953 = l_Lean_Meta_isMonad_x3f(x_951, x_7, x_8, x_9, x_10, x_950);
if (lean_obj_tag(x_953) == 0)
{
lean_object* x_954; 
x_954 = lean_ctor_get(x_953, 0);
lean_inc(x_954);
if (lean_obj_tag(x_954) == 0)
{
lean_object* x_955; lean_object* x_956; lean_object* x_957; lean_object* x_958; lean_object* x_959; 
lean_dec(x_952);
x_955 = lean_ctor_get(x_953, 1);
lean_inc(x_955);
lean_dec(x_953);
x_956 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3;
x_957 = l_Lean_throwError___at_Lean_Meta_setInlineAttribute___spec__1(x_956, x_7, x_8, x_9, x_10, x_955);
x_958 = lean_ctor_get(x_957, 0);
lean_inc(x_958);
x_959 = lean_ctor_get(x_957, 1);
lean_inc(x_959);
lean_dec(x_957);
x_929 = x_958;
x_930 = x_959;
goto block_936;
}
else
{
lean_object* x_960; lean_object* x_961; uint8_t x_962; lean_object* x_963; uint8_t x_964; lean_object* x_965; 
lean_dec(x_954);
x_960 = lean_ctor_get(x_953, 1);
lean_inc(x_960);
lean_dec(x_953);
x_961 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_962 = 0;
x_963 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__46;
x_964 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_965 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_961, x_962, x_952, x_963, x_964, x_5, x_6, x_7, x_8, x_9, x_10, x_960);
if (lean_obj_tag(x_965) == 0)
{
lean_object* x_966; 
lean_dec(x_928);
lean_dec(x_926);
x_966 = lean_ctor_get(x_965, 1);
lean_inc(x_966);
lean_dec(x_965);
x_902 = x_966;
goto block_924;
}
else
{
lean_object* x_967; lean_object* x_968; 
x_967 = lean_ctor_get(x_965, 0);
lean_inc(x_967);
x_968 = lean_ctor_get(x_965, 1);
lean_inc(x_968);
lean_dec(x_965);
x_929 = x_967;
x_930 = x_968;
goto block_936;
}
}
}
else
{
lean_object* x_969; lean_object* x_970; 
lean_dec(x_952);
x_969 = lean_ctor_get(x_953, 0);
lean_inc(x_969);
x_970 = lean_ctor_get(x_953, 1);
lean_inc(x_970);
lean_dec(x_953);
x_929 = x_969;
x_930 = x_970;
goto block_936;
}
}
}
else
{
lean_object* x_971; lean_object* x_972; 
x_971 = lean_ctor_get(x_942, 0);
lean_inc(x_971);
x_972 = lean_ctor_get(x_942, 1);
lean_inc(x_972);
lean_dec(x_942);
x_929 = x_971;
x_930 = x_972;
goto block_936;
}
}
else
{
lean_object* x_973; lean_object* x_974; 
x_973 = lean_ctor_get(x_939, 0);
lean_inc(x_973);
x_974 = lean_ctor_get(x_939, 1);
lean_inc(x_974);
lean_dec(x_939);
x_929 = x_973;
x_930 = x_974;
goto block_936;
}
}
else
{
lean_object* x_975; 
lean_dec(x_928);
if (lean_is_scalar(x_15)) {
 x_975 = lean_alloc_ctor(1, 2, 0);
} else {
 x_975 = x_15;
 lean_ctor_set_tag(x_975, 1);
}
lean_ctor_set(x_975, 0, x_926);
lean_ctor_set(x_975, 1, x_927);
x_893 = x_975;
goto block_901;
}
}
else
{
lean_object* x_976; 
lean_dec(x_928);
if (lean_is_scalar(x_15)) {
 x_976 = lean_alloc_ctor(1, 2, 0);
} else {
 x_976 = x_15;
 lean_ctor_set_tag(x_976, 1);
}
lean_ctor_set(x_976, 0, x_926);
lean_ctor_set(x_976, 1, x_927);
x_893 = x_976;
goto block_901;
}
block_936:
{
uint8_t x_931; 
x_931 = l_Lean_Exception_isInterrupt(x_929);
if (x_931 == 0)
{
uint8_t x_932; 
x_932 = l_Lean_Exception_isRuntime(x_929);
if (x_932 == 0)
{
lean_object* x_933; 
lean_dec(x_929);
if (lean_is_scalar(x_928)) {
 x_933 = lean_alloc_ctor(1, 2, 0);
} else {
 x_933 = x_928;
}
lean_ctor_set(x_933, 0, x_926);
lean_ctor_set(x_933, 1, x_930);
x_893 = x_933;
goto block_901;
}
else
{
lean_object* x_934; 
lean_dec(x_926);
if (lean_is_scalar(x_928)) {
 x_934 = lean_alloc_ctor(1, 2, 0);
} else {
 x_934 = x_928;
}
lean_ctor_set(x_934, 0, x_929);
lean_ctor_set(x_934, 1, x_930);
x_893 = x_934;
goto block_901;
}
}
else
{
lean_object* x_935; 
lean_dec(x_926);
if (lean_is_scalar(x_928)) {
 x_935 = lean_alloc_ctor(1, 2, 0);
} else {
 x_935 = x_928;
}
lean_ctor_set(x_935, 0, x_929);
lean_ctor_set(x_935, 1, x_930);
x_893 = x_935;
goto block_901;
}
}
}
block_901:
{
if (lean_obj_tag(x_893) == 0)
{
lean_object* x_894; lean_object* x_895; lean_object* x_896; 
x_894 = lean_ctor_get(x_893, 0);
lean_inc(x_894);
x_895 = lean_ctor_get(x_893, 1);
lean_inc(x_895);
lean_dec(x_893);
x_896 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__12(x_2, x_3, x_1, x_894, x_5, x_6, x_7, x_8, x_9, x_10, x_895);
return x_896;
}
else
{
uint8_t x_897; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_897 = !lean_is_exclusive(x_893);
if (x_897 == 0)
{
return x_893;
}
else
{
lean_object* x_898; lean_object* x_899; lean_object* x_900; 
x_898 = lean_ctor_get(x_893, 0);
x_899 = lean_ctor_get(x_893, 1);
lean_inc(x_899);
lean_inc(x_898);
lean_dec(x_893);
x_900 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_900, 0, x_898);
lean_ctor_set(x_900, 1, x_899);
return x_900;
}
}
}
block_924:
{
lean_object* x_903; 
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1);
x_903 = lean_infer_type(x_1, x_7, x_8, x_9, x_10, x_902);
if (lean_obj_tag(x_903) == 0)
{
lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; 
x_904 = lean_ctor_get(x_903, 0);
lean_inc(x_904);
x_905 = lean_ctor_get(x_903, 1);
lean_inc(x_905);
lean_dec(x_903);
x_906 = l_Lean_indentExpr(x_904);
x_907 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__14;
x_908 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_908, 0, x_907);
lean_ctor_set(x_908, 1, x_906);
x_909 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__16;
x_910 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_910, 0, x_908);
lean_ctor_set(x_910, 1, x_909);
x_911 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__17;
x_912 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_912, 0, x_910);
lean_ctor_set(x_912, 1, x_911);
x_913 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__19;
x_914 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_914, 0, x_912);
lean_ctor_set(x_914, 1, x_913);
x_915 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__20;
x_916 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_916, 0, x_914);
lean_ctor_set(x_916, 1, x_915);
x_917 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__22;
x_918 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_918, 0, x_916);
lean_ctor_set(x_918, 1, x_917);
lean_inc(x_5);
x_919 = l_Lean_throwError___at_Lean_Elab_Term_mkCoe___spec__1(x_918, x_5, x_6, x_7, x_8, x_9, x_10, x_905);
x_893 = x_919;
goto block_901;
}
else
{
uint8_t x_920; 
x_920 = !lean_is_exclusive(x_903);
if (x_920 == 0)
{
x_893 = x_903;
goto block_901;
}
else
{
lean_object* x_921; lean_object* x_922; lean_object* x_923; 
x_921 = lean_ctor_get(x_903, 0);
x_922 = lean_ctor_get(x_903, 1);
lean_inc(x_922);
lean_inc(x_921);
lean_dec(x_903);
x_923 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_923, 0, x_921);
lean_ctor_set(x_923, 1, x_922);
x_893 = x_923;
goto block_901;
}
}
}
}
else
{
lean_object* x_977; lean_object* x_978; 
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_977 = lean_ctor_get(x_891, 0);
lean_inc(x_977);
lean_dec(x_891);
if (lean_is_scalar(x_15)) {
 x_978 = lean_alloc_ctor(0, 2, 0);
} else {
 x_978 = x_15;
}
lean_ctor_set(x_978, 0, x_977);
lean_ctor_set(x_978, 1, x_892);
return x_978;
}
}
block_1134:
{
if (lean_obj_tag(x_980) == 0)
{
lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; lean_object* x_986; lean_object* x_987; 
x_982 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__27;
x_983 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_983, 0, x_982);
lean_ctor_set(x_983, 1, x_884);
x_984 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_984, 0, x_879);
lean_ctor_set(x_984, 1, x_983);
x_985 = lean_array_mk(x_984);
x_986 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed), 9, 2);
lean_closure_set(x_986, 0, x_889);
lean_closure_set(x_986, 1, x_985);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_987 = l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(x_986, x_5, x_6, x_7, x_8, x_9, x_10, x_981);
if (lean_obj_tag(x_987) == 0)
{
lean_object* x_988; 
x_988 = lean_ctor_get(x_987, 0);
lean_inc(x_988);
if (lean_obj_tag(x_988) == 0)
{
lean_object* x_989; 
x_989 = lean_ctor_get(x_987, 1);
lean_inc(x_989);
lean_dec(x_987);
x_891 = x_879;
x_892 = x_989;
goto block_979;
}
else
{
lean_object* x_990; uint8_t x_991; 
x_990 = lean_ctor_get(x_987, 1);
lean_inc(x_990);
lean_dec(x_987);
x_991 = !lean_is_exclusive(x_988);
if (x_991 == 0)
{
lean_object* x_992; lean_object* x_993; lean_object* x_994; lean_object* x_995; lean_object* x_996; 
x_992 = lean_ctor_get(x_988, 0);
x_993 = l_Lean_Expr_appFn_x21(x_992);
x_994 = l_Lean_Expr_appArg_x21(x_993);
lean_dec(x_993);
x_995 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_994);
x_996 = l_Lean_Meta_isExprDefEq(x_994, x_995, x_7, x_8, x_9, x_10, x_990);
if (lean_obj_tag(x_996) == 0)
{
lean_object* x_997; uint8_t x_998; 
x_997 = lean_ctor_get(x_996, 0);
lean_inc(x_997);
x_998 = lean_unbox(x_997);
lean_dec(x_997);
if (x_998 == 0)
{
lean_object* x_999; lean_object* x_1000; lean_object* x_1001; uint8_t x_1002; uint8_t x_1003; lean_object* x_1004; 
x_999 = lean_ctor_get(x_996, 1);
lean_inc(x_999);
lean_dec(x_996);
x_1000 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed), 9, 1);
lean_closure_set(x_1000, 0, x_880);
x_1001 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_1002 = 0;
x_1003 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_994);
x_1004 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_1001, x_1002, x_994, x_1000, x_1003, x_5, x_6, x_7, x_8, x_9, x_10, x_999);
if (lean_obj_tag(x_1004) == 0)
{
lean_object* x_1005; lean_object* x_1006; lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; 
x_1005 = lean_ctor_get(x_1004, 0);
lean_inc(x_1005);
x_1006 = lean_ctor_get(x_1004, 1);
lean_inc(x_1006);
lean_dec(x_1004);
x_1007 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1007, 0, x_992);
lean_ctor_set(x_1007, 1, x_880);
x_1008 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1008, 0, x_1005);
lean_ctor_set(x_1008, 1, x_1007);
x_1009 = lean_array_mk(x_1008);
x_1010 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_1011 = l_Lean_Meta_mkAppM(x_1010, x_1009, x_7, x_8, x_9, x_10, x_1006);
if (lean_obj_tag(x_1011) == 0)
{
lean_object* x_1012; lean_object* x_1013; lean_object* x_1014; 
x_1012 = lean_ctor_get(x_1011, 0);
lean_inc(x_1012);
x_1013 = lean_ctor_get(x_1011, 1);
lean_inc(x_1013);
lean_dec(x_1011);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1014 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1012, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1013);
if (lean_obj_tag(x_1014) == 0)
{
lean_object* x_1015; lean_object* x_1016; 
x_1015 = lean_ctor_get(x_1014, 1);
lean_inc(x_1015);
lean_dec(x_1014);
lean_inc(x_5);
x_1016 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1015);
if (lean_obj_tag(x_1016) == 0)
{
lean_object* x_1017; lean_object* x_1018; lean_object* x_1019; lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; 
x_1017 = lean_ctor_get(x_1016, 0);
lean_inc(x_1017);
x_1018 = lean_ctor_get(x_1016, 1);
lean_inc(x_1018);
lean_dec(x_1016);
x_1019 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5___boxed), 8, 1);
lean_closure_set(x_1019, 0, x_1017);
x_1020 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15___boxed), 4, 1);
lean_closure_set(x_1020, 0, x_1019);
lean_ctor_set(x_988, 0, x_994);
x_1021 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1021, 0, x_1020);
lean_ctor_set(x_1021, 1, x_988);
x_1022 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1022, 0, x_1021);
x_891 = x_1022;
x_892 = x_1018;
goto block_979;
}
else
{
uint8_t x_1023; 
lean_dec(x_994);
lean_free_object(x_988);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1023 = !lean_is_exclusive(x_1016);
if (x_1023 == 0)
{
return x_1016;
}
else
{
lean_object* x_1024; lean_object* x_1025; lean_object* x_1026; 
x_1024 = lean_ctor_get(x_1016, 0);
x_1025 = lean_ctor_get(x_1016, 1);
lean_inc(x_1025);
lean_inc(x_1024);
lean_dec(x_1016);
x_1026 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1026, 0, x_1024);
lean_ctor_set(x_1026, 1, x_1025);
return x_1026;
}
}
}
else
{
uint8_t x_1027; 
lean_dec(x_994);
lean_free_object(x_988);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1027 = !lean_is_exclusive(x_1014);
if (x_1027 == 0)
{
return x_1014;
}
else
{
lean_object* x_1028; lean_object* x_1029; lean_object* x_1030; 
x_1028 = lean_ctor_get(x_1014, 0);
x_1029 = lean_ctor_get(x_1014, 1);
lean_inc(x_1029);
lean_inc(x_1028);
lean_dec(x_1014);
x_1030 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1030, 0, x_1028);
lean_ctor_set(x_1030, 1, x_1029);
return x_1030;
}
}
}
else
{
uint8_t x_1031; 
lean_dec(x_994);
lean_free_object(x_988);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1031 = !lean_is_exclusive(x_1011);
if (x_1031 == 0)
{
return x_1011;
}
else
{
lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; 
x_1032 = lean_ctor_get(x_1011, 0);
x_1033 = lean_ctor_get(x_1011, 1);
lean_inc(x_1033);
lean_inc(x_1032);
lean_dec(x_1011);
x_1034 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1034, 0, x_1032);
lean_ctor_set(x_1034, 1, x_1033);
return x_1034;
}
}
}
else
{
uint8_t x_1035; 
lean_dec(x_994);
lean_free_object(x_988);
lean_dec(x_992);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1035 = !lean_is_exclusive(x_1004);
if (x_1035 == 0)
{
return x_1004;
}
else
{
lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; 
x_1036 = lean_ctor_get(x_1004, 0);
x_1037 = lean_ctor_get(x_1004, 1);
lean_inc(x_1037);
lean_inc(x_1036);
lean_dec(x_1004);
x_1038 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1038, 0, x_1036);
lean_ctor_set(x_1038, 1, x_1037);
return x_1038;
}
}
}
else
{
lean_object* x_1039; lean_object* x_1040; 
lean_dec(x_994);
x_1039 = lean_ctor_get(x_996, 1);
lean_inc(x_1039);
lean_dec(x_996);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1040 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_992, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1039);
if (lean_obj_tag(x_1040) == 0)
{
lean_object* x_1041; lean_object* x_1042; 
x_1041 = lean_ctor_get(x_1040, 1);
lean_inc(x_1041);
lean_dec(x_1040);
lean_inc(x_5);
x_1042 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1041);
if (lean_obj_tag(x_1042) == 0)
{
lean_object* x_1043; lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; 
x_1043 = lean_ctor_get(x_1042, 0);
lean_inc(x_1043);
x_1044 = lean_ctor_get(x_1042, 1);
lean_inc(x_1044);
lean_dec(x_1042);
x_1045 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5___boxed), 8, 1);
lean_closure_set(x_1045, 0, x_1043);
x_1046 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_1046, 0, x_1045);
x_1047 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1047, 0, x_1046);
lean_ctor_set(x_1047, 1, x_879);
lean_ctor_set(x_988, 0, x_1047);
x_891 = x_988;
x_892 = x_1044;
goto block_979;
}
else
{
uint8_t x_1048; 
lean_free_object(x_988);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1048 = !lean_is_exclusive(x_1042);
if (x_1048 == 0)
{
return x_1042;
}
else
{
lean_object* x_1049; lean_object* x_1050; lean_object* x_1051; 
x_1049 = lean_ctor_get(x_1042, 0);
x_1050 = lean_ctor_get(x_1042, 1);
lean_inc(x_1050);
lean_inc(x_1049);
lean_dec(x_1042);
x_1051 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1051, 0, x_1049);
lean_ctor_set(x_1051, 1, x_1050);
return x_1051;
}
}
}
else
{
uint8_t x_1052; 
lean_free_object(x_988);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1052 = !lean_is_exclusive(x_1040);
if (x_1052 == 0)
{
return x_1040;
}
else
{
lean_object* x_1053; lean_object* x_1054; lean_object* x_1055; 
x_1053 = lean_ctor_get(x_1040, 0);
x_1054 = lean_ctor_get(x_1040, 1);
lean_inc(x_1054);
lean_inc(x_1053);
lean_dec(x_1040);
x_1055 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1055, 0, x_1053);
lean_ctor_set(x_1055, 1, x_1054);
return x_1055;
}
}
}
}
else
{
uint8_t x_1056; 
lean_dec(x_994);
lean_free_object(x_988);
lean_dec(x_992);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1056 = !lean_is_exclusive(x_996);
if (x_1056 == 0)
{
return x_996;
}
else
{
lean_object* x_1057; lean_object* x_1058; lean_object* x_1059; 
x_1057 = lean_ctor_get(x_996, 0);
x_1058 = lean_ctor_get(x_996, 1);
lean_inc(x_1058);
lean_inc(x_1057);
lean_dec(x_996);
x_1059 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1059, 0, x_1057);
lean_ctor_set(x_1059, 1, x_1058);
return x_1059;
}
}
}
else
{
lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; 
x_1060 = lean_ctor_get(x_988, 0);
lean_inc(x_1060);
lean_dec(x_988);
x_1061 = l_Lean_Expr_appFn_x21(x_1060);
x_1062 = l_Lean_Expr_appArg_x21(x_1061);
lean_dec(x_1061);
x_1063 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1062);
x_1064 = l_Lean_Meta_isExprDefEq(x_1062, x_1063, x_7, x_8, x_9, x_10, x_990);
if (lean_obj_tag(x_1064) == 0)
{
lean_object* x_1065; uint8_t x_1066; 
x_1065 = lean_ctor_get(x_1064, 0);
lean_inc(x_1065);
x_1066 = lean_unbox(x_1065);
lean_dec(x_1065);
if (x_1066 == 0)
{
lean_object* x_1067; lean_object* x_1068; lean_object* x_1069; uint8_t x_1070; uint8_t x_1071; lean_object* x_1072; 
x_1067 = lean_ctor_get(x_1064, 1);
lean_inc(x_1067);
lean_dec(x_1064);
x_1068 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed), 9, 1);
lean_closure_set(x_1068, 0, x_880);
x_1069 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_1070 = 0;
x_1071 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1062);
x_1072 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_1069, x_1070, x_1062, x_1068, x_1071, x_5, x_6, x_7, x_8, x_9, x_10, x_1067);
if (lean_obj_tag(x_1072) == 0)
{
lean_object* x_1073; lean_object* x_1074; lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; lean_object* x_1079; 
x_1073 = lean_ctor_get(x_1072, 0);
lean_inc(x_1073);
x_1074 = lean_ctor_get(x_1072, 1);
lean_inc(x_1074);
lean_dec(x_1072);
x_1075 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1075, 0, x_1060);
lean_ctor_set(x_1075, 1, x_880);
x_1076 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1076, 0, x_1073);
lean_ctor_set(x_1076, 1, x_1075);
x_1077 = lean_array_mk(x_1076);
x_1078 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_1079 = l_Lean_Meta_mkAppM(x_1078, x_1077, x_7, x_8, x_9, x_10, x_1074);
if (lean_obj_tag(x_1079) == 0)
{
lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; 
x_1080 = lean_ctor_get(x_1079, 0);
lean_inc(x_1080);
x_1081 = lean_ctor_get(x_1079, 1);
lean_inc(x_1081);
lean_dec(x_1079);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1082 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1080, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1081);
if (lean_obj_tag(x_1082) == 0)
{
lean_object* x_1083; lean_object* x_1084; 
x_1083 = lean_ctor_get(x_1082, 1);
lean_inc(x_1083);
lean_dec(x_1082);
lean_inc(x_5);
x_1084 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1083);
if (lean_obj_tag(x_1084) == 0)
{
lean_object* x_1085; lean_object* x_1086; lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; lean_object* x_1091; 
x_1085 = lean_ctor_get(x_1084, 0);
lean_inc(x_1085);
x_1086 = lean_ctor_get(x_1084, 1);
lean_inc(x_1086);
lean_dec(x_1084);
x_1087 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5___boxed), 8, 1);
lean_closure_set(x_1087, 0, x_1085);
x_1088 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15___boxed), 4, 1);
lean_closure_set(x_1088, 0, x_1087);
x_1089 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1089, 0, x_1062);
x_1090 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1090, 0, x_1088);
lean_ctor_set(x_1090, 1, x_1089);
x_1091 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1091, 0, x_1090);
x_891 = x_1091;
x_892 = x_1086;
goto block_979;
}
else
{
lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; lean_object* x_1095; 
lean_dec(x_1062);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1092 = lean_ctor_get(x_1084, 0);
lean_inc(x_1092);
x_1093 = lean_ctor_get(x_1084, 1);
lean_inc(x_1093);
if (lean_is_exclusive(x_1084)) {
 lean_ctor_release(x_1084, 0);
 lean_ctor_release(x_1084, 1);
 x_1094 = x_1084;
} else {
 lean_dec_ref(x_1084);
 x_1094 = lean_box(0);
}
if (lean_is_scalar(x_1094)) {
 x_1095 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1095 = x_1094;
}
lean_ctor_set(x_1095, 0, x_1092);
lean_ctor_set(x_1095, 1, x_1093);
return x_1095;
}
}
else
{
lean_object* x_1096; lean_object* x_1097; lean_object* x_1098; lean_object* x_1099; 
lean_dec(x_1062);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1096 = lean_ctor_get(x_1082, 0);
lean_inc(x_1096);
x_1097 = lean_ctor_get(x_1082, 1);
lean_inc(x_1097);
if (lean_is_exclusive(x_1082)) {
 lean_ctor_release(x_1082, 0);
 lean_ctor_release(x_1082, 1);
 x_1098 = x_1082;
} else {
 lean_dec_ref(x_1082);
 x_1098 = lean_box(0);
}
if (lean_is_scalar(x_1098)) {
 x_1099 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1099 = x_1098;
}
lean_ctor_set(x_1099, 0, x_1096);
lean_ctor_set(x_1099, 1, x_1097);
return x_1099;
}
}
else
{
lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; 
lean_dec(x_1062);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1100 = lean_ctor_get(x_1079, 0);
lean_inc(x_1100);
x_1101 = lean_ctor_get(x_1079, 1);
lean_inc(x_1101);
if (lean_is_exclusive(x_1079)) {
 lean_ctor_release(x_1079, 0);
 lean_ctor_release(x_1079, 1);
 x_1102 = x_1079;
} else {
 lean_dec_ref(x_1079);
 x_1102 = lean_box(0);
}
if (lean_is_scalar(x_1102)) {
 x_1103 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1103 = x_1102;
}
lean_ctor_set(x_1103, 0, x_1100);
lean_ctor_set(x_1103, 1, x_1101);
return x_1103;
}
}
else
{
lean_object* x_1104; lean_object* x_1105; lean_object* x_1106; lean_object* x_1107; 
lean_dec(x_1062);
lean_dec(x_1060);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1104 = lean_ctor_get(x_1072, 0);
lean_inc(x_1104);
x_1105 = lean_ctor_get(x_1072, 1);
lean_inc(x_1105);
if (lean_is_exclusive(x_1072)) {
 lean_ctor_release(x_1072, 0);
 lean_ctor_release(x_1072, 1);
 x_1106 = x_1072;
} else {
 lean_dec_ref(x_1072);
 x_1106 = lean_box(0);
}
if (lean_is_scalar(x_1106)) {
 x_1107 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1107 = x_1106;
}
lean_ctor_set(x_1107, 0, x_1104);
lean_ctor_set(x_1107, 1, x_1105);
return x_1107;
}
}
else
{
lean_object* x_1108; lean_object* x_1109; 
lean_dec(x_1062);
x_1108 = lean_ctor_get(x_1064, 1);
lean_inc(x_1108);
lean_dec(x_1064);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1109 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1060, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1108);
if (lean_obj_tag(x_1109) == 0)
{
lean_object* x_1110; lean_object* x_1111; 
x_1110 = lean_ctor_get(x_1109, 1);
lean_inc(x_1110);
lean_dec(x_1109);
lean_inc(x_5);
x_1111 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1110);
if (lean_obj_tag(x_1111) == 0)
{
lean_object* x_1112; lean_object* x_1113; lean_object* x_1114; lean_object* x_1115; lean_object* x_1116; lean_object* x_1117; 
x_1112 = lean_ctor_get(x_1111, 0);
lean_inc(x_1112);
x_1113 = lean_ctor_get(x_1111, 1);
lean_inc(x_1113);
lean_dec(x_1111);
x_1114 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5___boxed), 8, 1);
lean_closure_set(x_1114, 0, x_1112);
x_1115 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_1115, 0, x_1114);
x_1116 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1116, 0, x_1115);
lean_ctor_set(x_1116, 1, x_879);
x_1117 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1117, 0, x_1116);
x_891 = x_1117;
x_892 = x_1113;
goto block_979;
}
else
{
lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; 
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1118 = lean_ctor_get(x_1111, 0);
lean_inc(x_1118);
x_1119 = lean_ctor_get(x_1111, 1);
lean_inc(x_1119);
if (lean_is_exclusive(x_1111)) {
 lean_ctor_release(x_1111, 0);
 lean_ctor_release(x_1111, 1);
 x_1120 = x_1111;
} else {
 lean_dec_ref(x_1111);
 x_1120 = lean_box(0);
}
if (lean_is_scalar(x_1120)) {
 x_1121 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1121 = x_1120;
}
lean_ctor_set(x_1121, 0, x_1118);
lean_ctor_set(x_1121, 1, x_1119);
return x_1121;
}
}
else
{
lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; 
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1122 = lean_ctor_get(x_1109, 0);
lean_inc(x_1122);
x_1123 = lean_ctor_get(x_1109, 1);
lean_inc(x_1123);
if (lean_is_exclusive(x_1109)) {
 lean_ctor_release(x_1109, 0);
 lean_ctor_release(x_1109, 1);
 x_1124 = x_1109;
} else {
 lean_dec_ref(x_1109);
 x_1124 = lean_box(0);
}
if (lean_is_scalar(x_1124)) {
 x_1125 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1125 = x_1124;
}
lean_ctor_set(x_1125, 0, x_1122);
lean_ctor_set(x_1125, 1, x_1123);
return x_1125;
}
}
}
else
{
lean_object* x_1126; lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; 
lean_dec(x_1062);
lean_dec(x_1060);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1126 = lean_ctor_get(x_1064, 0);
lean_inc(x_1126);
x_1127 = lean_ctor_get(x_1064, 1);
lean_inc(x_1127);
if (lean_is_exclusive(x_1064)) {
 lean_ctor_release(x_1064, 0);
 lean_ctor_release(x_1064, 1);
 x_1128 = x_1064;
} else {
 lean_dec_ref(x_1064);
 x_1128 = lean_box(0);
}
if (lean_is_scalar(x_1128)) {
 x_1129 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1129 = x_1128;
}
lean_ctor_set(x_1129, 0, x_1126);
lean_ctor_set(x_1129, 1, x_1127);
return x_1129;
}
}
}
}
else
{
uint8_t x_1130; 
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1130 = !lean_is_exclusive(x_987);
if (x_1130 == 0)
{
return x_987;
}
else
{
lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; 
x_1131 = lean_ctor_get(x_987, 0);
x_1132 = lean_ctor_get(x_987, 1);
lean_inc(x_1132);
lean_inc(x_1131);
lean_dec(x_987);
x_1133 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1133, 0, x_1131);
lean_ctor_set(x_1133, 1, x_1132);
return x_1133;
}
}
}
else
{
lean_dec(x_884);
x_891 = x_980;
x_892 = x_981;
goto block_979;
}
}
block_1289:
{
if (lean_obj_tag(x_1135) == 0)
{
lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; 
x_1137 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__38;
lean_inc(x_884);
x_1138 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1138, 0, x_1137);
lean_ctor_set(x_1138, 1, x_884);
x_1139 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1139, 0, x_879);
lean_ctor_set(x_1139, 1, x_1138);
x_1140 = lean_array_mk(x_1139);
x_1141 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed), 9, 2);
lean_closure_set(x_1141, 0, x_889);
lean_closure_set(x_1141, 1, x_1140);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_1142 = l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(x_1141, x_5, x_6, x_7, x_8, x_9, x_10, x_1136);
if (lean_obj_tag(x_1142) == 0)
{
lean_object* x_1143; 
x_1143 = lean_ctor_get(x_1142, 0);
lean_inc(x_1143);
if (lean_obj_tag(x_1143) == 0)
{
lean_object* x_1144; 
x_1144 = lean_ctor_get(x_1142, 1);
lean_inc(x_1144);
lean_dec(x_1142);
x_980 = x_879;
x_981 = x_1144;
goto block_1134;
}
else
{
lean_object* x_1145; uint8_t x_1146; 
x_1145 = lean_ctor_get(x_1142, 1);
lean_inc(x_1145);
lean_dec(x_1142);
x_1146 = !lean_is_exclusive(x_1143);
if (x_1146 == 0)
{
lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; lean_object* x_1151; 
x_1147 = lean_ctor_get(x_1143, 0);
x_1148 = l_Lean_Expr_appFn_x21(x_1147);
x_1149 = l_Lean_Expr_appArg_x21(x_1148);
lean_dec(x_1148);
x_1150 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1149);
x_1151 = l_Lean_Meta_isExprDefEq(x_1149, x_1150, x_7, x_8, x_9, x_10, x_1145);
if (lean_obj_tag(x_1151) == 0)
{
lean_object* x_1152; uint8_t x_1153; 
x_1152 = lean_ctor_get(x_1151, 0);
lean_inc(x_1152);
x_1153 = lean_unbox(x_1152);
lean_dec(x_1152);
if (x_1153 == 0)
{
lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; uint8_t x_1157; uint8_t x_1158; lean_object* x_1159; 
x_1154 = lean_ctor_get(x_1151, 1);
lean_inc(x_1154);
lean_dec(x_1151);
x_1155 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed), 9, 1);
lean_closure_set(x_1155, 0, x_880);
x_1156 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_1157 = 0;
x_1158 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1149);
x_1159 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_1156, x_1157, x_1149, x_1155, x_1158, x_5, x_6, x_7, x_8, x_9, x_10, x_1154);
if (lean_obj_tag(x_1159) == 0)
{
lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; 
x_1160 = lean_ctor_get(x_1159, 0);
lean_inc(x_1160);
x_1161 = lean_ctor_get(x_1159, 1);
lean_inc(x_1161);
lean_dec(x_1159);
x_1162 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1162, 0, x_1147);
lean_ctor_set(x_1162, 1, x_880);
x_1163 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1163, 0, x_1160);
lean_ctor_set(x_1163, 1, x_1162);
x_1164 = lean_array_mk(x_1163);
x_1165 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_1166 = l_Lean_Meta_mkAppM(x_1165, x_1164, x_7, x_8, x_9, x_10, x_1161);
if (lean_obj_tag(x_1166) == 0)
{
lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; 
x_1167 = lean_ctor_get(x_1166, 0);
lean_inc(x_1167);
x_1168 = lean_ctor_get(x_1166, 1);
lean_inc(x_1168);
lean_dec(x_1166);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1169 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1167, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1168);
if (lean_obj_tag(x_1169) == 0)
{
lean_object* x_1170; lean_object* x_1171; 
x_1170 = lean_ctor_get(x_1169, 1);
lean_inc(x_1170);
lean_dec(x_1169);
lean_inc(x_5);
x_1171 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1170);
if (lean_obj_tag(x_1171) == 0)
{
lean_object* x_1172; lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; 
x_1172 = lean_ctor_get(x_1171, 0);
lean_inc(x_1172);
x_1173 = lean_ctor_get(x_1171, 1);
lean_inc(x_1173);
lean_dec(x_1171);
x_1174 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8___boxed), 8, 1);
lean_closure_set(x_1174, 0, x_1172);
x_1175 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15___boxed), 4, 1);
lean_closure_set(x_1175, 0, x_1174);
lean_ctor_set(x_1143, 0, x_1149);
x_1176 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1176, 0, x_1175);
lean_ctor_set(x_1176, 1, x_1143);
x_1177 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1177, 0, x_1176);
x_980 = x_1177;
x_981 = x_1173;
goto block_1134;
}
else
{
uint8_t x_1178; 
lean_dec(x_1149);
lean_free_object(x_1143);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1178 = !lean_is_exclusive(x_1171);
if (x_1178 == 0)
{
return x_1171;
}
else
{
lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; 
x_1179 = lean_ctor_get(x_1171, 0);
x_1180 = lean_ctor_get(x_1171, 1);
lean_inc(x_1180);
lean_inc(x_1179);
lean_dec(x_1171);
x_1181 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1181, 0, x_1179);
lean_ctor_set(x_1181, 1, x_1180);
return x_1181;
}
}
}
else
{
uint8_t x_1182; 
lean_dec(x_1149);
lean_free_object(x_1143);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1182 = !lean_is_exclusive(x_1169);
if (x_1182 == 0)
{
return x_1169;
}
else
{
lean_object* x_1183; lean_object* x_1184; lean_object* x_1185; 
x_1183 = lean_ctor_get(x_1169, 0);
x_1184 = lean_ctor_get(x_1169, 1);
lean_inc(x_1184);
lean_inc(x_1183);
lean_dec(x_1169);
x_1185 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1185, 0, x_1183);
lean_ctor_set(x_1185, 1, x_1184);
return x_1185;
}
}
}
else
{
uint8_t x_1186; 
lean_dec(x_1149);
lean_free_object(x_1143);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1186 = !lean_is_exclusive(x_1166);
if (x_1186 == 0)
{
return x_1166;
}
else
{
lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; 
x_1187 = lean_ctor_get(x_1166, 0);
x_1188 = lean_ctor_get(x_1166, 1);
lean_inc(x_1188);
lean_inc(x_1187);
lean_dec(x_1166);
x_1189 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1189, 0, x_1187);
lean_ctor_set(x_1189, 1, x_1188);
return x_1189;
}
}
}
else
{
uint8_t x_1190; 
lean_dec(x_1149);
lean_free_object(x_1143);
lean_dec(x_1147);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1190 = !lean_is_exclusive(x_1159);
if (x_1190 == 0)
{
return x_1159;
}
else
{
lean_object* x_1191; lean_object* x_1192; lean_object* x_1193; 
x_1191 = lean_ctor_get(x_1159, 0);
x_1192 = lean_ctor_get(x_1159, 1);
lean_inc(x_1192);
lean_inc(x_1191);
lean_dec(x_1159);
x_1193 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1193, 0, x_1191);
lean_ctor_set(x_1193, 1, x_1192);
return x_1193;
}
}
}
else
{
lean_object* x_1194; lean_object* x_1195; 
lean_dec(x_1149);
x_1194 = lean_ctor_get(x_1151, 1);
lean_inc(x_1194);
lean_dec(x_1151);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1195 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1147, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1194);
if (lean_obj_tag(x_1195) == 0)
{
lean_object* x_1196; lean_object* x_1197; 
x_1196 = lean_ctor_get(x_1195, 1);
lean_inc(x_1196);
lean_dec(x_1195);
lean_inc(x_5);
x_1197 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1196);
if (lean_obj_tag(x_1197) == 0)
{
lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; lean_object* x_1202; 
x_1198 = lean_ctor_get(x_1197, 0);
lean_inc(x_1198);
x_1199 = lean_ctor_get(x_1197, 1);
lean_inc(x_1199);
lean_dec(x_1197);
x_1200 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8___boxed), 8, 1);
lean_closure_set(x_1200, 0, x_1198);
x_1201 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_1201, 0, x_1200);
x_1202 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1202, 0, x_1201);
lean_ctor_set(x_1202, 1, x_879);
lean_ctor_set(x_1143, 0, x_1202);
x_980 = x_1143;
x_981 = x_1199;
goto block_1134;
}
else
{
uint8_t x_1203; 
lean_free_object(x_1143);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1203 = !lean_is_exclusive(x_1197);
if (x_1203 == 0)
{
return x_1197;
}
else
{
lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; 
x_1204 = lean_ctor_get(x_1197, 0);
x_1205 = lean_ctor_get(x_1197, 1);
lean_inc(x_1205);
lean_inc(x_1204);
lean_dec(x_1197);
x_1206 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1206, 0, x_1204);
lean_ctor_set(x_1206, 1, x_1205);
return x_1206;
}
}
}
else
{
uint8_t x_1207; 
lean_free_object(x_1143);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1207 = !lean_is_exclusive(x_1195);
if (x_1207 == 0)
{
return x_1195;
}
else
{
lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; 
x_1208 = lean_ctor_get(x_1195, 0);
x_1209 = lean_ctor_get(x_1195, 1);
lean_inc(x_1209);
lean_inc(x_1208);
lean_dec(x_1195);
x_1210 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1210, 0, x_1208);
lean_ctor_set(x_1210, 1, x_1209);
return x_1210;
}
}
}
}
else
{
uint8_t x_1211; 
lean_dec(x_1149);
lean_free_object(x_1143);
lean_dec(x_1147);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1211 = !lean_is_exclusive(x_1151);
if (x_1211 == 0)
{
return x_1151;
}
else
{
lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; 
x_1212 = lean_ctor_get(x_1151, 0);
x_1213 = lean_ctor_get(x_1151, 1);
lean_inc(x_1213);
lean_inc(x_1212);
lean_dec(x_1151);
x_1214 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1214, 0, x_1212);
lean_ctor_set(x_1214, 1, x_1213);
return x_1214;
}
}
}
else
{
lean_object* x_1215; lean_object* x_1216; lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; 
x_1215 = lean_ctor_get(x_1143, 0);
lean_inc(x_1215);
lean_dec(x_1143);
x_1216 = l_Lean_Expr_appFn_x21(x_1215);
x_1217 = l_Lean_Expr_appArg_x21(x_1216);
lean_dec(x_1216);
x_1218 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1217);
x_1219 = l_Lean_Meta_isExprDefEq(x_1217, x_1218, x_7, x_8, x_9, x_10, x_1145);
if (lean_obj_tag(x_1219) == 0)
{
lean_object* x_1220; uint8_t x_1221; 
x_1220 = lean_ctor_get(x_1219, 0);
lean_inc(x_1220);
x_1221 = lean_unbox(x_1220);
lean_dec(x_1220);
if (x_1221 == 0)
{
lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; uint8_t x_1225; uint8_t x_1226; lean_object* x_1227; 
x_1222 = lean_ctor_get(x_1219, 1);
lean_inc(x_1222);
lean_dec(x_1219);
x_1223 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed), 9, 1);
lean_closure_set(x_1223, 0, x_880);
x_1224 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_1225 = 0;
x_1226 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1217);
x_1227 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_1224, x_1225, x_1217, x_1223, x_1226, x_5, x_6, x_7, x_8, x_9, x_10, x_1222);
if (lean_obj_tag(x_1227) == 0)
{
lean_object* x_1228; lean_object* x_1229; lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; lean_object* x_1234; 
x_1228 = lean_ctor_get(x_1227, 0);
lean_inc(x_1228);
x_1229 = lean_ctor_get(x_1227, 1);
lean_inc(x_1229);
lean_dec(x_1227);
x_1230 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1230, 0, x_1215);
lean_ctor_set(x_1230, 1, x_880);
x_1231 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1231, 0, x_1228);
lean_ctor_set(x_1231, 1, x_1230);
x_1232 = lean_array_mk(x_1231);
x_1233 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_1234 = l_Lean_Meta_mkAppM(x_1233, x_1232, x_7, x_8, x_9, x_10, x_1229);
if (lean_obj_tag(x_1234) == 0)
{
lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; 
x_1235 = lean_ctor_get(x_1234, 0);
lean_inc(x_1235);
x_1236 = lean_ctor_get(x_1234, 1);
lean_inc(x_1236);
lean_dec(x_1234);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1237 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1235, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1236);
if (lean_obj_tag(x_1237) == 0)
{
lean_object* x_1238; lean_object* x_1239; 
x_1238 = lean_ctor_get(x_1237, 1);
lean_inc(x_1238);
lean_dec(x_1237);
lean_inc(x_5);
x_1239 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1238);
if (lean_obj_tag(x_1239) == 0)
{
lean_object* x_1240; lean_object* x_1241; lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; lean_object* x_1245; lean_object* x_1246; 
x_1240 = lean_ctor_get(x_1239, 0);
lean_inc(x_1240);
x_1241 = lean_ctor_get(x_1239, 1);
lean_inc(x_1241);
lean_dec(x_1239);
x_1242 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8___boxed), 8, 1);
lean_closure_set(x_1242, 0, x_1240);
x_1243 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15___boxed), 4, 1);
lean_closure_set(x_1243, 0, x_1242);
x_1244 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1244, 0, x_1217);
x_1245 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1245, 0, x_1243);
lean_ctor_set(x_1245, 1, x_1244);
x_1246 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1246, 0, x_1245);
x_980 = x_1246;
x_981 = x_1241;
goto block_1134;
}
else
{
lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; 
lean_dec(x_1217);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1247 = lean_ctor_get(x_1239, 0);
lean_inc(x_1247);
x_1248 = lean_ctor_get(x_1239, 1);
lean_inc(x_1248);
if (lean_is_exclusive(x_1239)) {
 lean_ctor_release(x_1239, 0);
 lean_ctor_release(x_1239, 1);
 x_1249 = x_1239;
} else {
 lean_dec_ref(x_1239);
 x_1249 = lean_box(0);
}
if (lean_is_scalar(x_1249)) {
 x_1250 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1250 = x_1249;
}
lean_ctor_set(x_1250, 0, x_1247);
lean_ctor_set(x_1250, 1, x_1248);
return x_1250;
}
}
else
{
lean_object* x_1251; lean_object* x_1252; lean_object* x_1253; lean_object* x_1254; 
lean_dec(x_1217);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1251 = lean_ctor_get(x_1237, 0);
lean_inc(x_1251);
x_1252 = lean_ctor_get(x_1237, 1);
lean_inc(x_1252);
if (lean_is_exclusive(x_1237)) {
 lean_ctor_release(x_1237, 0);
 lean_ctor_release(x_1237, 1);
 x_1253 = x_1237;
} else {
 lean_dec_ref(x_1237);
 x_1253 = lean_box(0);
}
if (lean_is_scalar(x_1253)) {
 x_1254 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1254 = x_1253;
}
lean_ctor_set(x_1254, 0, x_1251);
lean_ctor_set(x_1254, 1, x_1252);
return x_1254;
}
}
else
{
lean_object* x_1255; lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; 
lean_dec(x_1217);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1255 = lean_ctor_get(x_1234, 0);
lean_inc(x_1255);
x_1256 = lean_ctor_get(x_1234, 1);
lean_inc(x_1256);
if (lean_is_exclusive(x_1234)) {
 lean_ctor_release(x_1234, 0);
 lean_ctor_release(x_1234, 1);
 x_1257 = x_1234;
} else {
 lean_dec_ref(x_1234);
 x_1257 = lean_box(0);
}
if (lean_is_scalar(x_1257)) {
 x_1258 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1258 = x_1257;
}
lean_ctor_set(x_1258, 0, x_1255);
lean_ctor_set(x_1258, 1, x_1256);
return x_1258;
}
}
else
{
lean_object* x_1259; lean_object* x_1260; lean_object* x_1261; lean_object* x_1262; 
lean_dec(x_1217);
lean_dec(x_1215);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1259 = lean_ctor_get(x_1227, 0);
lean_inc(x_1259);
x_1260 = lean_ctor_get(x_1227, 1);
lean_inc(x_1260);
if (lean_is_exclusive(x_1227)) {
 lean_ctor_release(x_1227, 0);
 lean_ctor_release(x_1227, 1);
 x_1261 = x_1227;
} else {
 lean_dec_ref(x_1227);
 x_1261 = lean_box(0);
}
if (lean_is_scalar(x_1261)) {
 x_1262 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1262 = x_1261;
}
lean_ctor_set(x_1262, 0, x_1259);
lean_ctor_set(x_1262, 1, x_1260);
return x_1262;
}
}
else
{
lean_object* x_1263; lean_object* x_1264; 
lean_dec(x_1217);
x_1263 = lean_ctor_get(x_1219, 1);
lean_inc(x_1263);
lean_dec(x_1219);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1264 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1215, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1263);
if (lean_obj_tag(x_1264) == 0)
{
lean_object* x_1265; lean_object* x_1266; 
x_1265 = lean_ctor_get(x_1264, 1);
lean_inc(x_1265);
lean_dec(x_1264);
lean_inc(x_5);
x_1266 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1265);
if (lean_obj_tag(x_1266) == 0)
{
lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; 
x_1267 = lean_ctor_get(x_1266, 0);
lean_inc(x_1267);
x_1268 = lean_ctor_get(x_1266, 1);
lean_inc(x_1268);
lean_dec(x_1266);
x_1269 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8___boxed), 8, 1);
lean_closure_set(x_1269, 0, x_1267);
x_1270 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_1270, 0, x_1269);
x_1271 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1271, 0, x_1270);
lean_ctor_set(x_1271, 1, x_879);
x_1272 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1272, 0, x_1271);
x_980 = x_1272;
x_981 = x_1268;
goto block_1134;
}
else
{
lean_object* x_1273; lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1273 = lean_ctor_get(x_1266, 0);
lean_inc(x_1273);
x_1274 = lean_ctor_get(x_1266, 1);
lean_inc(x_1274);
if (lean_is_exclusive(x_1266)) {
 lean_ctor_release(x_1266, 0);
 lean_ctor_release(x_1266, 1);
 x_1275 = x_1266;
} else {
 lean_dec_ref(x_1266);
 x_1275 = lean_box(0);
}
if (lean_is_scalar(x_1275)) {
 x_1276 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1276 = x_1275;
}
lean_ctor_set(x_1276, 0, x_1273);
lean_ctor_set(x_1276, 1, x_1274);
return x_1276;
}
}
else
{
lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1277 = lean_ctor_get(x_1264, 0);
lean_inc(x_1277);
x_1278 = lean_ctor_get(x_1264, 1);
lean_inc(x_1278);
if (lean_is_exclusive(x_1264)) {
 lean_ctor_release(x_1264, 0);
 lean_ctor_release(x_1264, 1);
 x_1279 = x_1264;
} else {
 lean_dec_ref(x_1264);
 x_1279 = lean_box(0);
}
if (lean_is_scalar(x_1279)) {
 x_1280 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1280 = x_1279;
}
lean_ctor_set(x_1280, 0, x_1277);
lean_ctor_set(x_1280, 1, x_1278);
return x_1280;
}
}
}
else
{
lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; 
lean_dec(x_1217);
lean_dec(x_1215);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1281 = lean_ctor_get(x_1219, 0);
lean_inc(x_1281);
x_1282 = lean_ctor_get(x_1219, 1);
lean_inc(x_1282);
if (lean_is_exclusive(x_1219)) {
 lean_ctor_release(x_1219, 0);
 lean_ctor_release(x_1219, 1);
 x_1283 = x_1219;
} else {
 lean_dec_ref(x_1219);
 x_1283 = lean_box(0);
}
if (lean_is_scalar(x_1283)) {
 x_1284 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1284 = x_1283;
}
lean_ctor_set(x_1284, 0, x_1281);
lean_ctor_set(x_1284, 1, x_1282);
return x_1284;
}
}
}
}
else
{
uint8_t x_1285; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1285 = !lean_is_exclusive(x_1142);
if (x_1285 == 0)
{
return x_1142;
}
else
{
lean_object* x_1286; lean_object* x_1287; lean_object* x_1288; 
x_1286 = lean_ctor_get(x_1142, 0);
x_1287 = lean_ctor_get(x_1142, 1);
lean_inc(x_1287);
lean_inc(x_1286);
lean_dec(x_1142);
x_1288 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1288, 0, x_1286);
lean_ctor_set(x_1288, 1, x_1287);
return x_1288;
}
}
}
else
{
lean_dec(x_884);
x_891 = x_1135;
x_892 = x_1136;
goto block_979;
}
}
block_1444:
{
if (lean_obj_tag(x_1290) == 0)
{
lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; 
x_1292 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__43;
lean_inc(x_884);
x_1293 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1293, 0, x_1292);
lean_ctor_set(x_1293, 1, x_884);
x_1294 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1294, 0, x_879);
lean_ctor_set(x_1294, 1, x_1293);
x_1295 = lean_array_mk(x_1294);
x_1296 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed), 9, 2);
lean_closure_set(x_1296, 0, x_889);
lean_closure_set(x_1296, 1, x_1295);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_1297 = l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(x_1296, x_5, x_6, x_7, x_8, x_9, x_10, x_1291);
if (lean_obj_tag(x_1297) == 0)
{
lean_object* x_1298; 
x_1298 = lean_ctor_get(x_1297, 0);
lean_inc(x_1298);
if (lean_obj_tag(x_1298) == 0)
{
lean_object* x_1299; 
x_1299 = lean_ctor_get(x_1297, 1);
lean_inc(x_1299);
lean_dec(x_1297);
x_1135 = x_879;
x_1136 = x_1299;
goto block_1289;
}
else
{
lean_object* x_1300; uint8_t x_1301; 
x_1300 = lean_ctor_get(x_1297, 1);
lean_inc(x_1300);
lean_dec(x_1297);
x_1301 = !lean_is_exclusive(x_1298);
if (x_1301 == 0)
{
lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; 
x_1302 = lean_ctor_get(x_1298, 0);
x_1303 = l_Lean_Expr_appFn_x21(x_1302);
x_1304 = l_Lean_Expr_appArg_x21(x_1303);
lean_dec(x_1303);
x_1305 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1304);
x_1306 = l_Lean_Meta_isExprDefEq(x_1304, x_1305, x_7, x_8, x_9, x_10, x_1300);
if (lean_obj_tag(x_1306) == 0)
{
lean_object* x_1307; uint8_t x_1308; 
x_1307 = lean_ctor_get(x_1306, 0);
lean_inc(x_1307);
x_1308 = lean_unbox(x_1307);
lean_dec(x_1307);
if (x_1308 == 0)
{
lean_object* x_1309; lean_object* x_1310; lean_object* x_1311; uint8_t x_1312; uint8_t x_1313; lean_object* x_1314; 
x_1309 = lean_ctor_get(x_1306, 1);
lean_inc(x_1309);
lean_dec(x_1306);
x_1310 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed), 9, 1);
lean_closure_set(x_1310, 0, x_880);
x_1311 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_1312 = 0;
x_1313 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1304);
x_1314 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_1311, x_1312, x_1304, x_1310, x_1313, x_5, x_6, x_7, x_8, x_9, x_10, x_1309);
if (lean_obj_tag(x_1314) == 0)
{
lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; lean_object* x_1320; lean_object* x_1321; 
x_1315 = lean_ctor_get(x_1314, 0);
lean_inc(x_1315);
x_1316 = lean_ctor_get(x_1314, 1);
lean_inc(x_1316);
lean_dec(x_1314);
x_1317 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1317, 0, x_1302);
lean_ctor_set(x_1317, 1, x_880);
x_1318 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1318, 0, x_1315);
lean_ctor_set(x_1318, 1, x_1317);
x_1319 = lean_array_mk(x_1318);
x_1320 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_1321 = l_Lean_Meta_mkAppM(x_1320, x_1319, x_7, x_8, x_9, x_10, x_1316);
if (lean_obj_tag(x_1321) == 0)
{
lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; 
x_1322 = lean_ctor_get(x_1321, 0);
lean_inc(x_1322);
x_1323 = lean_ctor_get(x_1321, 1);
lean_inc(x_1323);
lean_dec(x_1321);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1324 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1322, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1323);
if (lean_obj_tag(x_1324) == 0)
{
lean_object* x_1325; lean_object* x_1326; 
x_1325 = lean_ctor_get(x_1324, 1);
lean_inc(x_1325);
lean_dec(x_1324);
lean_inc(x_5);
x_1326 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1325);
if (lean_obj_tag(x_1326) == 0)
{
lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; 
x_1327 = lean_ctor_get(x_1326, 0);
lean_inc(x_1327);
x_1328 = lean_ctor_get(x_1326, 1);
lean_inc(x_1328);
lean_dec(x_1326);
x_1329 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9___boxed), 8, 1);
lean_closure_set(x_1329, 0, x_1327);
x_1330 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15___boxed), 4, 1);
lean_closure_set(x_1330, 0, x_1329);
lean_ctor_set(x_1298, 0, x_1304);
x_1331 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1331, 0, x_1330);
lean_ctor_set(x_1331, 1, x_1298);
x_1332 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1332, 0, x_1331);
x_1135 = x_1332;
x_1136 = x_1328;
goto block_1289;
}
else
{
uint8_t x_1333; 
lean_dec(x_1304);
lean_free_object(x_1298);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1333 = !lean_is_exclusive(x_1326);
if (x_1333 == 0)
{
return x_1326;
}
else
{
lean_object* x_1334; lean_object* x_1335; lean_object* x_1336; 
x_1334 = lean_ctor_get(x_1326, 0);
x_1335 = lean_ctor_get(x_1326, 1);
lean_inc(x_1335);
lean_inc(x_1334);
lean_dec(x_1326);
x_1336 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1336, 0, x_1334);
lean_ctor_set(x_1336, 1, x_1335);
return x_1336;
}
}
}
else
{
uint8_t x_1337; 
lean_dec(x_1304);
lean_free_object(x_1298);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1337 = !lean_is_exclusive(x_1324);
if (x_1337 == 0)
{
return x_1324;
}
else
{
lean_object* x_1338; lean_object* x_1339; lean_object* x_1340; 
x_1338 = lean_ctor_get(x_1324, 0);
x_1339 = lean_ctor_get(x_1324, 1);
lean_inc(x_1339);
lean_inc(x_1338);
lean_dec(x_1324);
x_1340 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1340, 0, x_1338);
lean_ctor_set(x_1340, 1, x_1339);
return x_1340;
}
}
}
else
{
uint8_t x_1341; 
lean_dec(x_1304);
lean_free_object(x_1298);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1341 = !lean_is_exclusive(x_1321);
if (x_1341 == 0)
{
return x_1321;
}
else
{
lean_object* x_1342; lean_object* x_1343; lean_object* x_1344; 
x_1342 = lean_ctor_get(x_1321, 0);
x_1343 = lean_ctor_get(x_1321, 1);
lean_inc(x_1343);
lean_inc(x_1342);
lean_dec(x_1321);
x_1344 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1344, 0, x_1342);
lean_ctor_set(x_1344, 1, x_1343);
return x_1344;
}
}
}
else
{
uint8_t x_1345; 
lean_dec(x_1304);
lean_free_object(x_1298);
lean_dec(x_1302);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1345 = !lean_is_exclusive(x_1314);
if (x_1345 == 0)
{
return x_1314;
}
else
{
lean_object* x_1346; lean_object* x_1347; lean_object* x_1348; 
x_1346 = lean_ctor_get(x_1314, 0);
x_1347 = lean_ctor_get(x_1314, 1);
lean_inc(x_1347);
lean_inc(x_1346);
lean_dec(x_1314);
x_1348 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1348, 0, x_1346);
lean_ctor_set(x_1348, 1, x_1347);
return x_1348;
}
}
}
else
{
lean_object* x_1349; lean_object* x_1350; 
lean_dec(x_1304);
x_1349 = lean_ctor_get(x_1306, 1);
lean_inc(x_1349);
lean_dec(x_1306);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1350 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1302, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1349);
if (lean_obj_tag(x_1350) == 0)
{
lean_object* x_1351; lean_object* x_1352; 
x_1351 = lean_ctor_get(x_1350, 1);
lean_inc(x_1351);
lean_dec(x_1350);
lean_inc(x_5);
x_1352 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1351);
if (lean_obj_tag(x_1352) == 0)
{
lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; lean_object* x_1356; lean_object* x_1357; 
x_1353 = lean_ctor_get(x_1352, 0);
lean_inc(x_1353);
x_1354 = lean_ctor_get(x_1352, 1);
lean_inc(x_1354);
lean_dec(x_1352);
x_1355 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9___boxed), 8, 1);
lean_closure_set(x_1355, 0, x_1353);
x_1356 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_1356, 0, x_1355);
x_1357 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1357, 0, x_1356);
lean_ctor_set(x_1357, 1, x_879);
lean_ctor_set(x_1298, 0, x_1357);
x_1135 = x_1298;
x_1136 = x_1354;
goto block_1289;
}
else
{
uint8_t x_1358; 
lean_free_object(x_1298);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1358 = !lean_is_exclusive(x_1352);
if (x_1358 == 0)
{
return x_1352;
}
else
{
lean_object* x_1359; lean_object* x_1360; lean_object* x_1361; 
x_1359 = lean_ctor_get(x_1352, 0);
x_1360 = lean_ctor_get(x_1352, 1);
lean_inc(x_1360);
lean_inc(x_1359);
lean_dec(x_1352);
x_1361 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1361, 0, x_1359);
lean_ctor_set(x_1361, 1, x_1360);
return x_1361;
}
}
}
else
{
uint8_t x_1362; 
lean_free_object(x_1298);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1362 = !lean_is_exclusive(x_1350);
if (x_1362 == 0)
{
return x_1350;
}
else
{
lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; 
x_1363 = lean_ctor_get(x_1350, 0);
x_1364 = lean_ctor_get(x_1350, 1);
lean_inc(x_1364);
lean_inc(x_1363);
lean_dec(x_1350);
x_1365 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1365, 0, x_1363);
lean_ctor_set(x_1365, 1, x_1364);
return x_1365;
}
}
}
}
else
{
uint8_t x_1366; 
lean_dec(x_1304);
lean_free_object(x_1298);
lean_dec(x_1302);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1366 = !lean_is_exclusive(x_1306);
if (x_1366 == 0)
{
return x_1306;
}
else
{
lean_object* x_1367; lean_object* x_1368; lean_object* x_1369; 
x_1367 = lean_ctor_get(x_1306, 0);
x_1368 = lean_ctor_get(x_1306, 1);
lean_inc(x_1368);
lean_inc(x_1367);
lean_dec(x_1306);
x_1369 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1369, 0, x_1367);
lean_ctor_set(x_1369, 1, x_1368);
return x_1369;
}
}
}
else
{
lean_object* x_1370; lean_object* x_1371; lean_object* x_1372; lean_object* x_1373; lean_object* x_1374; 
x_1370 = lean_ctor_get(x_1298, 0);
lean_inc(x_1370);
lean_dec(x_1298);
x_1371 = l_Lean_Expr_appFn_x21(x_1370);
x_1372 = l_Lean_Expr_appArg_x21(x_1371);
lean_dec(x_1371);
x_1373 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1372);
x_1374 = l_Lean_Meta_isExprDefEq(x_1372, x_1373, x_7, x_8, x_9, x_10, x_1300);
if (lean_obj_tag(x_1374) == 0)
{
lean_object* x_1375; uint8_t x_1376; 
x_1375 = lean_ctor_get(x_1374, 0);
lean_inc(x_1375);
x_1376 = lean_unbox(x_1375);
lean_dec(x_1375);
if (x_1376 == 0)
{
lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; uint8_t x_1380; uint8_t x_1381; lean_object* x_1382; 
x_1377 = lean_ctor_get(x_1374, 1);
lean_inc(x_1377);
lean_dec(x_1374);
x_1378 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed), 9, 1);
lean_closure_set(x_1378, 0, x_880);
x_1379 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_1380 = 0;
x_1381 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1372);
x_1382 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_1379, x_1380, x_1372, x_1378, x_1381, x_5, x_6, x_7, x_8, x_9, x_10, x_1377);
if (lean_obj_tag(x_1382) == 0)
{
lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; lean_object* x_1386; lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; 
x_1383 = lean_ctor_get(x_1382, 0);
lean_inc(x_1383);
x_1384 = lean_ctor_get(x_1382, 1);
lean_inc(x_1384);
lean_dec(x_1382);
x_1385 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1385, 0, x_1370);
lean_ctor_set(x_1385, 1, x_880);
x_1386 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1386, 0, x_1383);
lean_ctor_set(x_1386, 1, x_1385);
x_1387 = lean_array_mk(x_1386);
x_1388 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_1389 = l_Lean_Meta_mkAppM(x_1388, x_1387, x_7, x_8, x_9, x_10, x_1384);
if (lean_obj_tag(x_1389) == 0)
{
lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; 
x_1390 = lean_ctor_get(x_1389, 0);
lean_inc(x_1390);
x_1391 = lean_ctor_get(x_1389, 1);
lean_inc(x_1391);
lean_dec(x_1389);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1392 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1390, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1391);
if (lean_obj_tag(x_1392) == 0)
{
lean_object* x_1393; lean_object* x_1394; 
x_1393 = lean_ctor_get(x_1392, 1);
lean_inc(x_1393);
lean_dec(x_1392);
lean_inc(x_5);
x_1394 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1393);
if (lean_obj_tag(x_1394) == 0)
{
lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; 
x_1395 = lean_ctor_get(x_1394, 0);
lean_inc(x_1395);
x_1396 = lean_ctor_get(x_1394, 1);
lean_inc(x_1396);
lean_dec(x_1394);
x_1397 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9___boxed), 8, 1);
lean_closure_set(x_1397, 0, x_1395);
x_1398 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15___boxed), 4, 1);
lean_closure_set(x_1398, 0, x_1397);
x_1399 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1399, 0, x_1372);
x_1400 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1400, 0, x_1398);
lean_ctor_set(x_1400, 1, x_1399);
x_1401 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1401, 0, x_1400);
x_1135 = x_1401;
x_1136 = x_1396;
goto block_1289;
}
else
{
lean_object* x_1402; lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; 
lean_dec(x_1372);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1402 = lean_ctor_get(x_1394, 0);
lean_inc(x_1402);
x_1403 = lean_ctor_get(x_1394, 1);
lean_inc(x_1403);
if (lean_is_exclusive(x_1394)) {
 lean_ctor_release(x_1394, 0);
 lean_ctor_release(x_1394, 1);
 x_1404 = x_1394;
} else {
 lean_dec_ref(x_1394);
 x_1404 = lean_box(0);
}
if (lean_is_scalar(x_1404)) {
 x_1405 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1405 = x_1404;
}
lean_ctor_set(x_1405, 0, x_1402);
lean_ctor_set(x_1405, 1, x_1403);
return x_1405;
}
}
else
{
lean_object* x_1406; lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; 
lean_dec(x_1372);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1406 = lean_ctor_get(x_1392, 0);
lean_inc(x_1406);
x_1407 = lean_ctor_get(x_1392, 1);
lean_inc(x_1407);
if (lean_is_exclusive(x_1392)) {
 lean_ctor_release(x_1392, 0);
 lean_ctor_release(x_1392, 1);
 x_1408 = x_1392;
} else {
 lean_dec_ref(x_1392);
 x_1408 = lean_box(0);
}
if (lean_is_scalar(x_1408)) {
 x_1409 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1409 = x_1408;
}
lean_ctor_set(x_1409, 0, x_1406);
lean_ctor_set(x_1409, 1, x_1407);
return x_1409;
}
}
else
{
lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; 
lean_dec(x_1372);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1410 = lean_ctor_get(x_1389, 0);
lean_inc(x_1410);
x_1411 = lean_ctor_get(x_1389, 1);
lean_inc(x_1411);
if (lean_is_exclusive(x_1389)) {
 lean_ctor_release(x_1389, 0);
 lean_ctor_release(x_1389, 1);
 x_1412 = x_1389;
} else {
 lean_dec_ref(x_1389);
 x_1412 = lean_box(0);
}
if (lean_is_scalar(x_1412)) {
 x_1413 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1413 = x_1412;
}
lean_ctor_set(x_1413, 0, x_1410);
lean_ctor_set(x_1413, 1, x_1411);
return x_1413;
}
}
else
{
lean_object* x_1414; lean_object* x_1415; lean_object* x_1416; lean_object* x_1417; 
lean_dec(x_1372);
lean_dec(x_1370);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1414 = lean_ctor_get(x_1382, 0);
lean_inc(x_1414);
x_1415 = lean_ctor_get(x_1382, 1);
lean_inc(x_1415);
if (lean_is_exclusive(x_1382)) {
 lean_ctor_release(x_1382, 0);
 lean_ctor_release(x_1382, 1);
 x_1416 = x_1382;
} else {
 lean_dec_ref(x_1382);
 x_1416 = lean_box(0);
}
if (lean_is_scalar(x_1416)) {
 x_1417 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1417 = x_1416;
}
lean_ctor_set(x_1417, 0, x_1414);
lean_ctor_set(x_1417, 1, x_1415);
return x_1417;
}
}
else
{
lean_object* x_1418; lean_object* x_1419; 
lean_dec(x_1372);
x_1418 = lean_ctor_get(x_1374, 1);
lean_inc(x_1418);
lean_dec(x_1374);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1419 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1370, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1418);
if (lean_obj_tag(x_1419) == 0)
{
lean_object* x_1420; lean_object* x_1421; 
x_1420 = lean_ctor_get(x_1419, 1);
lean_inc(x_1420);
lean_dec(x_1419);
lean_inc(x_5);
x_1421 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1420);
if (lean_obj_tag(x_1421) == 0)
{
lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; 
x_1422 = lean_ctor_get(x_1421, 0);
lean_inc(x_1422);
x_1423 = lean_ctor_get(x_1421, 1);
lean_inc(x_1423);
lean_dec(x_1421);
x_1424 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9___boxed), 8, 1);
lean_closure_set(x_1424, 0, x_1422);
x_1425 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_1425, 0, x_1424);
x_1426 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1426, 0, x_1425);
lean_ctor_set(x_1426, 1, x_879);
x_1427 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1427, 0, x_1426);
x_1135 = x_1427;
x_1136 = x_1423;
goto block_1289;
}
else
{
lean_object* x_1428; lean_object* x_1429; lean_object* x_1430; lean_object* x_1431; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1428 = lean_ctor_get(x_1421, 0);
lean_inc(x_1428);
x_1429 = lean_ctor_get(x_1421, 1);
lean_inc(x_1429);
if (lean_is_exclusive(x_1421)) {
 lean_ctor_release(x_1421, 0);
 lean_ctor_release(x_1421, 1);
 x_1430 = x_1421;
} else {
 lean_dec_ref(x_1421);
 x_1430 = lean_box(0);
}
if (lean_is_scalar(x_1430)) {
 x_1431 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1431 = x_1430;
}
lean_ctor_set(x_1431, 0, x_1428);
lean_ctor_set(x_1431, 1, x_1429);
return x_1431;
}
}
else
{
lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1432 = lean_ctor_get(x_1419, 0);
lean_inc(x_1432);
x_1433 = lean_ctor_get(x_1419, 1);
lean_inc(x_1433);
if (lean_is_exclusive(x_1419)) {
 lean_ctor_release(x_1419, 0);
 lean_ctor_release(x_1419, 1);
 x_1434 = x_1419;
} else {
 lean_dec_ref(x_1419);
 x_1434 = lean_box(0);
}
if (lean_is_scalar(x_1434)) {
 x_1435 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1435 = x_1434;
}
lean_ctor_set(x_1435, 0, x_1432);
lean_ctor_set(x_1435, 1, x_1433);
return x_1435;
}
}
}
else
{
lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; 
lean_dec(x_1372);
lean_dec(x_1370);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1436 = lean_ctor_get(x_1374, 0);
lean_inc(x_1436);
x_1437 = lean_ctor_get(x_1374, 1);
lean_inc(x_1437);
if (lean_is_exclusive(x_1374)) {
 lean_ctor_release(x_1374, 0);
 lean_ctor_release(x_1374, 1);
 x_1438 = x_1374;
} else {
 lean_dec_ref(x_1374);
 x_1438 = lean_box(0);
}
if (lean_is_scalar(x_1438)) {
 x_1439 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1439 = x_1438;
}
lean_ctor_set(x_1439, 0, x_1436);
lean_ctor_set(x_1439, 1, x_1437);
return x_1439;
}
}
}
}
else
{
uint8_t x_1440; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1440 = !lean_is_exclusive(x_1297);
if (x_1440 == 0)
{
return x_1297;
}
else
{
lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; 
x_1441 = lean_ctor_get(x_1297, 0);
x_1442 = lean_ctor_get(x_1297, 1);
lean_inc(x_1442);
lean_inc(x_1441);
lean_dec(x_1297);
x_1443 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1443, 0, x_1441);
lean_ctor_set(x_1443, 1, x_1442);
return x_1443;
}
}
}
else
{
lean_dec(x_884);
x_891 = x_1290;
x_892 = x_1291;
goto block_979;
}
}
block_1595:
{
if (lean_obj_tag(x_1445) == 0)
{
lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; lean_object* x_1450; lean_object* x_1451; lean_object* x_1452; 
x_1447 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__45;
lean_inc(x_884);
x_1448 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1448, 0, x_1447);
lean_ctor_set(x_1448, 1, x_884);
x_1449 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1449, 0, x_879);
lean_ctor_set(x_1449, 1, x_1448);
x_1450 = lean_array_mk(x_1449);
x_1451 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed), 9, 2);
lean_closure_set(x_1451, 0, x_889);
lean_closure_set(x_1451, 1, x_1450);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_1452 = l_Lean_observing_x3f___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__5(x_1451, x_5, x_6, x_7, x_8, x_9, x_10, x_1446);
if (lean_obj_tag(x_1452) == 0)
{
lean_object* x_1453; 
x_1453 = lean_ctor_get(x_1452, 0);
lean_inc(x_1453);
if (lean_obj_tag(x_1453) == 0)
{
lean_object* x_1454; 
x_1454 = lean_ctor_get(x_1452, 1);
lean_inc(x_1454);
lean_dec(x_1452);
x_1290 = x_879;
x_1291 = x_1454;
goto block_1444;
}
else
{
lean_object* x_1455; uint8_t x_1456; 
x_1455 = lean_ctor_get(x_1452, 1);
lean_inc(x_1455);
lean_dec(x_1452);
x_1456 = !lean_is_exclusive(x_1453);
if (x_1456 == 0)
{
lean_object* x_1457; lean_object* x_1458; lean_object* x_1459; lean_object* x_1460; lean_object* x_1461; 
x_1457 = lean_ctor_get(x_1453, 0);
x_1458 = l_Lean_Expr_appFn_x21(x_1457);
x_1459 = l_Lean_Expr_appArg_x21(x_1458);
lean_dec(x_1458);
x_1460 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1459);
x_1461 = l_Lean_Meta_isExprDefEq(x_1459, x_1460, x_7, x_8, x_9, x_10, x_1455);
if (lean_obj_tag(x_1461) == 0)
{
lean_object* x_1462; uint8_t x_1463; 
x_1462 = lean_ctor_get(x_1461, 0);
lean_inc(x_1462);
x_1463 = lean_unbox(x_1462);
lean_dec(x_1462);
if (x_1463 == 0)
{
lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; uint8_t x_1467; uint8_t x_1468; lean_object* x_1469; 
x_1464 = lean_ctor_get(x_1461, 1);
lean_inc(x_1464);
lean_dec(x_1461);
x_1465 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed), 9, 1);
lean_closure_set(x_1465, 0, x_880);
x_1466 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_1467 = 0;
x_1468 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1459);
x_1469 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_1466, x_1467, x_1459, x_1465, x_1468, x_5, x_6, x_7, x_8, x_9, x_10, x_1464);
if (lean_obj_tag(x_1469) == 0)
{
lean_object* x_1470; lean_object* x_1471; lean_object* x_1472; lean_object* x_1473; lean_object* x_1474; lean_object* x_1475; lean_object* x_1476; 
x_1470 = lean_ctor_get(x_1469, 0);
lean_inc(x_1470);
x_1471 = lean_ctor_get(x_1469, 1);
lean_inc(x_1471);
lean_dec(x_1469);
x_1472 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1472, 0, x_1457);
lean_ctor_set(x_1472, 1, x_880);
x_1473 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1473, 0, x_1470);
lean_ctor_set(x_1473, 1, x_1472);
x_1474 = lean_array_mk(x_1473);
x_1475 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_1476 = l_Lean_Meta_mkAppM(x_1475, x_1474, x_7, x_8, x_9, x_10, x_1471);
if (lean_obj_tag(x_1476) == 0)
{
lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; 
x_1477 = lean_ctor_get(x_1476, 0);
lean_inc(x_1477);
x_1478 = lean_ctor_get(x_1476, 1);
lean_inc(x_1478);
lean_dec(x_1476);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1479 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1477, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1478);
if (lean_obj_tag(x_1479) == 0)
{
lean_object* x_1480; lean_object* x_1481; 
x_1480 = lean_ctor_get(x_1479, 1);
lean_inc(x_1480);
lean_dec(x_1479);
lean_inc(x_5);
x_1481 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1480);
if (lean_obj_tag(x_1481) == 0)
{
lean_object* x_1482; lean_object* x_1483; lean_object* x_1484; lean_object* x_1485; lean_object* x_1486; 
x_1482 = lean_ctor_get(x_1481, 0);
lean_inc(x_1482);
x_1483 = lean_ctor_get(x_1481, 1);
lean_inc(x_1483);
lean_dec(x_1481);
x_1484 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15___boxed), 4, 1);
lean_closure_set(x_1484, 0, x_1482);
lean_ctor_set(x_1453, 0, x_1459);
x_1485 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1485, 0, x_1484);
lean_ctor_set(x_1485, 1, x_1453);
x_1486 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1486, 0, x_1485);
x_1290 = x_1486;
x_1291 = x_1483;
goto block_1444;
}
else
{
uint8_t x_1487; 
lean_dec(x_1459);
lean_free_object(x_1453);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1487 = !lean_is_exclusive(x_1481);
if (x_1487 == 0)
{
return x_1481;
}
else
{
lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; 
x_1488 = lean_ctor_get(x_1481, 0);
x_1489 = lean_ctor_get(x_1481, 1);
lean_inc(x_1489);
lean_inc(x_1488);
lean_dec(x_1481);
x_1490 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1490, 0, x_1488);
lean_ctor_set(x_1490, 1, x_1489);
return x_1490;
}
}
}
else
{
uint8_t x_1491; 
lean_dec(x_1459);
lean_free_object(x_1453);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1491 = !lean_is_exclusive(x_1479);
if (x_1491 == 0)
{
return x_1479;
}
else
{
lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; 
x_1492 = lean_ctor_get(x_1479, 0);
x_1493 = lean_ctor_get(x_1479, 1);
lean_inc(x_1493);
lean_inc(x_1492);
lean_dec(x_1479);
x_1494 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1494, 0, x_1492);
lean_ctor_set(x_1494, 1, x_1493);
return x_1494;
}
}
}
else
{
uint8_t x_1495; 
lean_dec(x_1459);
lean_free_object(x_1453);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1495 = !lean_is_exclusive(x_1476);
if (x_1495 == 0)
{
return x_1476;
}
else
{
lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; 
x_1496 = lean_ctor_get(x_1476, 0);
x_1497 = lean_ctor_get(x_1476, 1);
lean_inc(x_1497);
lean_inc(x_1496);
lean_dec(x_1476);
x_1498 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1498, 0, x_1496);
lean_ctor_set(x_1498, 1, x_1497);
return x_1498;
}
}
}
else
{
uint8_t x_1499; 
lean_dec(x_1459);
lean_free_object(x_1453);
lean_dec(x_1457);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1499 = !lean_is_exclusive(x_1469);
if (x_1499 == 0)
{
return x_1469;
}
else
{
lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; 
x_1500 = lean_ctor_get(x_1469, 0);
x_1501 = lean_ctor_get(x_1469, 1);
lean_inc(x_1501);
lean_inc(x_1500);
lean_dec(x_1469);
x_1502 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1502, 0, x_1500);
lean_ctor_set(x_1502, 1, x_1501);
return x_1502;
}
}
}
else
{
lean_object* x_1503; lean_object* x_1504; 
lean_dec(x_1459);
x_1503 = lean_ctor_get(x_1461, 1);
lean_inc(x_1503);
lean_dec(x_1461);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1504 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1457, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1503);
if (lean_obj_tag(x_1504) == 0)
{
lean_object* x_1505; lean_object* x_1506; 
x_1505 = lean_ctor_get(x_1504, 1);
lean_inc(x_1505);
lean_dec(x_1504);
lean_inc(x_5);
x_1506 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1505);
if (lean_obj_tag(x_1506) == 0)
{
lean_object* x_1507; lean_object* x_1508; lean_object* x_1509; lean_object* x_1510; 
x_1507 = lean_ctor_get(x_1506, 0);
lean_inc(x_1507);
x_1508 = lean_ctor_get(x_1506, 1);
lean_inc(x_1508);
lean_dec(x_1506);
x_1509 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_1509, 0, x_1507);
x_1510 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1510, 0, x_1509);
lean_ctor_set(x_1510, 1, x_879);
lean_ctor_set(x_1453, 0, x_1510);
x_1290 = x_1453;
x_1291 = x_1508;
goto block_1444;
}
else
{
uint8_t x_1511; 
lean_free_object(x_1453);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1511 = !lean_is_exclusive(x_1506);
if (x_1511 == 0)
{
return x_1506;
}
else
{
lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; 
x_1512 = lean_ctor_get(x_1506, 0);
x_1513 = lean_ctor_get(x_1506, 1);
lean_inc(x_1513);
lean_inc(x_1512);
lean_dec(x_1506);
x_1514 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1514, 0, x_1512);
lean_ctor_set(x_1514, 1, x_1513);
return x_1514;
}
}
}
else
{
uint8_t x_1515; 
lean_free_object(x_1453);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1515 = !lean_is_exclusive(x_1504);
if (x_1515 == 0)
{
return x_1504;
}
else
{
lean_object* x_1516; lean_object* x_1517; lean_object* x_1518; 
x_1516 = lean_ctor_get(x_1504, 0);
x_1517 = lean_ctor_get(x_1504, 1);
lean_inc(x_1517);
lean_inc(x_1516);
lean_dec(x_1504);
x_1518 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1518, 0, x_1516);
lean_ctor_set(x_1518, 1, x_1517);
return x_1518;
}
}
}
}
else
{
uint8_t x_1519; 
lean_dec(x_1459);
lean_free_object(x_1453);
lean_dec(x_1457);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1519 = !lean_is_exclusive(x_1461);
if (x_1519 == 0)
{
return x_1461;
}
else
{
lean_object* x_1520; lean_object* x_1521; lean_object* x_1522; 
x_1520 = lean_ctor_get(x_1461, 0);
x_1521 = lean_ctor_get(x_1461, 1);
lean_inc(x_1521);
lean_inc(x_1520);
lean_dec(x_1461);
x_1522 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1522, 0, x_1520);
lean_ctor_set(x_1522, 1, x_1521);
return x_1522;
}
}
}
else
{
lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; lean_object* x_1527; 
x_1523 = lean_ctor_get(x_1453, 0);
lean_inc(x_1523);
lean_dec(x_1453);
x_1524 = l_Lean_Expr_appFn_x21(x_1523);
x_1525 = l_Lean_Expr_appArg_x21(x_1524);
lean_dec(x_1524);
x_1526 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_1525);
x_1527 = l_Lean_Meta_isExprDefEq(x_1525, x_1526, x_7, x_8, x_9, x_10, x_1455);
if (lean_obj_tag(x_1527) == 0)
{
lean_object* x_1528; uint8_t x_1529; 
x_1528 = lean_ctor_get(x_1527, 0);
lean_inc(x_1528);
x_1529 = lean_unbox(x_1528);
lean_dec(x_1528);
if (x_1529 == 0)
{
lean_object* x_1530; lean_object* x_1531; lean_object* x_1532; uint8_t x_1533; uint8_t x_1534; lean_object* x_1535; 
x_1530 = lean_ctor_get(x_1527, 1);
lean_inc(x_1530);
lean_dec(x_1527);
x_1531 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed), 9, 1);
lean_closure_set(x_1531, 0, x_880);
x_1532 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24;
x_1533 = 0;
x_1534 = 0;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_1525);
x_1535 = l_Lean_Meta_withLocalDecl___at_Lean_Elab_Term_withAuxDecl___spec__1___rarg(x_1532, x_1533, x_1525, x_1531, x_1534, x_5, x_6, x_7, x_8, x_9, x_10, x_1530);
if (lean_obj_tag(x_1535) == 0)
{
lean_object* x_1536; lean_object* x_1537; lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; lean_object* x_1542; 
x_1536 = lean_ctor_get(x_1535, 0);
lean_inc(x_1536);
x_1537 = lean_ctor_get(x_1535, 1);
lean_inc(x_1537);
lean_dec(x_1535);
x_1538 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1538, 0, x_1523);
lean_ctor_set(x_1538, 1, x_880);
x_1539 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1539, 0, x_1536);
lean_ctor_set(x_1539, 1, x_1538);
x_1540 = lean_array_mk(x_1539);
x_1541 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33;
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
x_1542 = l_Lean_Meta_mkAppM(x_1541, x_1540, x_7, x_8, x_9, x_10, x_1537);
if (lean_obj_tag(x_1542) == 0)
{
lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; 
x_1543 = lean_ctor_get(x_1542, 0);
lean_inc(x_1543);
x_1544 = lean_ctor_get(x_1542, 1);
lean_inc(x_1544);
lean_dec(x_1542);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1545 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1543, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1544);
if (lean_obj_tag(x_1545) == 0)
{
lean_object* x_1546; lean_object* x_1547; 
x_1546 = lean_ctor_get(x_1545, 1);
lean_inc(x_1546);
lean_dec(x_1545);
lean_inc(x_5);
x_1547 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1546);
if (lean_obj_tag(x_1547) == 0)
{
lean_object* x_1548; lean_object* x_1549; lean_object* x_1550; lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; 
x_1548 = lean_ctor_get(x_1547, 0);
lean_inc(x_1548);
x_1549 = lean_ctor_get(x_1547, 1);
lean_inc(x_1549);
lean_dec(x_1547);
x_1550 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15___boxed), 4, 1);
lean_closure_set(x_1550, 0, x_1548);
x_1551 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1551, 0, x_1525);
x_1552 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1552, 0, x_1550);
lean_ctor_set(x_1552, 1, x_1551);
x_1553 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1553, 0, x_1552);
x_1290 = x_1553;
x_1291 = x_1549;
goto block_1444;
}
else
{
lean_object* x_1554; lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; 
lean_dec(x_1525);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1554 = lean_ctor_get(x_1547, 0);
lean_inc(x_1554);
x_1555 = lean_ctor_get(x_1547, 1);
lean_inc(x_1555);
if (lean_is_exclusive(x_1547)) {
 lean_ctor_release(x_1547, 0);
 lean_ctor_release(x_1547, 1);
 x_1556 = x_1547;
} else {
 lean_dec_ref(x_1547);
 x_1556 = lean_box(0);
}
if (lean_is_scalar(x_1556)) {
 x_1557 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1557 = x_1556;
}
lean_ctor_set(x_1557, 0, x_1554);
lean_ctor_set(x_1557, 1, x_1555);
return x_1557;
}
}
else
{
lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; lean_object* x_1561; 
lean_dec(x_1525);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1558 = lean_ctor_get(x_1545, 0);
lean_inc(x_1558);
x_1559 = lean_ctor_get(x_1545, 1);
lean_inc(x_1559);
if (lean_is_exclusive(x_1545)) {
 lean_ctor_release(x_1545, 0);
 lean_ctor_release(x_1545, 1);
 x_1560 = x_1545;
} else {
 lean_dec_ref(x_1545);
 x_1560 = lean_box(0);
}
if (lean_is_scalar(x_1560)) {
 x_1561 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1561 = x_1560;
}
lean_ctor_set(x_1561, 0, x_1558);
lean_ctor_set(x_1561, 1, x_1559);
return x_1561;
}
}
else
{
lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; 
lean_dec(x_1525);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1562 = lean_ctor_get(x_1542, 0);
lean_inc(x_1562);
x_1563 = lean_ctor_get(x_1542, 1);
lean_inc(x_1563);
if (lean_is_exclusive(x_1542)) {
 lean_ctor_release(x_1542, 0);
 lean_ctor_release(x_1542, 1);
 x_1564 = x_1542;
} else {
 lean_dec_ref(x_1542);
 x_1564 = lean_box(0);
}
if (lean_is_scalar(x_1564)) {
 x_1565 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1565 = x_1564;
}
lean_ctor_set(x_1565, 0, x_1562);
lean_ctor_set(x_1565, 1, x_1563);
return x_1565;
}
}
else
{
lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; lean_object* x_1569; 
lean_dec(x_1525);
lean_dec(x_1523);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1566 = lean_ctor_get(x_1535, 0);
lean_inc(x_1566);
x_1567 = lean_ctor_get(x_1535, 1);
lean_inc(x_1567);
if (lean_is_exclusive(x_1535)) {
 lean_ctor_release(x_1535, 0);
 lean_ctor_release(x_1535, 1);
 x_1568 = x_1535;
} else {
 lean_dec_ref(x_1535);
 x_1568 = lean_box(0);
}
if (lean_is_scalar(x_1568)) {
 x_1569 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1569 = x_1568;
}
lean_ctor_set(x_1569, 0, x_1566);
lean_ctor_set(x_1569, 1, x_1567);
return x_1569;
}
}
else
{
lean_object* x_1570; lean_object* x_1571; 
lean_dec(x_1525);
x_1570 = lean_ctor_get(x_1527, 1);
lean_inc(x_1570);
lean_dec(x_1527);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
lean_inc(x_2);
x_1571 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval(x_2, x_1523, x_3, x_5, x_6, x_7, x_8, x_9, x_10, x_1570);
if (lean_obj_tag(x_1571) == 0)
{
lean_object* x_1572; lean_object* x_1573; 
x_1572 = lean_ctor_get(x_1571, 1);
lean_inc(x_1572);
lean_dec(x_1571);
lean_inc(x_5);
x_1573 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_1572);
if (lean_obj_tag(x_1573) == 0)
{
lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; lean_object* x_1578; 
x_1574 = lean_ctor_get(x_1573, 0);
lean_inc(x_1574);
x_1575 = lean_ctor_get(x_1573, 1);
lean_inc(x_1575);
lean_dec(x_1573);
x_1576 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___boxed), 4, 1);
lean_closure_set(x_1576, 0, x_1574);
x_1577 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_1577, 0, x_1576);
lean_ctor_set(x_1577, 1, x_879);
x_1578 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_1578, 0, x_1577);
x_1290 = x_1578;
x_1291 = x_1575;
goto block_1444;
}
else
{
lean_object* x_1579; lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1579 = lean_ctor_get(x_1573, 0);
lean_inc(x_1579);
x_1580 = lean_ctor_get(x_1573, 1);
lean_inc(x_1580);
if (lean_is_exclusive(x_1573)) {
 lean_ctor_release(x_1573, 0);
 lean_ctor_release(x_1573, 1);
 x_1581 = x_1573;
} else {
 lean_dec_ref(x_1573);
 x_1581 = lean_box(0);
}
if (lean_is_scalar(x_1581)) {
 x_1582 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1582 = x_1581;
}
lean_ctor_set(x_1582, 0, x_1579);
lean_ctor_set(x_1582, 1, x_1580);
return x_1582;
}
}
else
{
lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1583 = lean_ctor_get(x_1571, 0);
lean_inc(x_1583);
x_1584 = lean_ctor_get(x_1571, 1);
lean_inc(x_1584);
if (lean_is_exclusive(x_1571)) {
 lean_ctor_release(x_1571, 0);
 lean_ctor_release(x_1571, 1);
 x_1585 = x_1571;
} else {
 lean_dec_ref(x_1571);
 x_1585 = lean_box(0);
}
if (lean_is_scalar(x_1585)) {
 x_1586 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1586 = x_1585;
}
lean_ctor_set(x_1586, 0, x_1583);
lean_ctor_set(x_1586, 1, x_1584);
return x_1586;
}
}
}
else
{
lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; 
lean_dec(x_1525);
lean_dec(x_1523);
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1587 = lean_ctor_get(x_1527, 0);
lean_inc(x_1587);
x_1588 = lean_ctor_get(x_1527, 1);
lean_inc(x_1588);
if (lean_is_exclusive(x_1527)) {
 lean_ctor_release(x_1527, 0);
 lean_ctor_release(x_1527, 1);
 x_1589 = x_1527;
} else {
 lean_dec_ref(x_1527);
 x_1589 = lean_box(0);
}
if (lean_is_scalar(x_1589)) {
 x_1590 = lean_alloc_ctor(1, 2, 0);
} else {
 x_1590 = x_1589;
}
lean_ctor_set(x_1590, 0, x_1587);
lean_ctor_set(x_1590, 1, x_1588);
return x_1590;
}
}
}
}
else
{
uint8_t x_1591; 
lean_dec(x_884);
lean_dec(x_15);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_1591 = !lean_is_exclusive(x_1452);
if (x_1591 == 0)
{
return x_1452;
}
else
{
lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; 
x_1592 = lean_ctor_get(x_1452, 0);
x_1593 = lean_ctor_get(x_1452, 1);
lean_inc(x_1593);
lean_inc(x_1592);
lean_dec(x_1452);
x_1594 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_1594, 0, x_1592);
lean_ctor_set(x_1594, 1, x_1593);
return x_1594;
}
}
}
else
{
lean_dec(x_884);
x_891 = x_1445;
x_892 = x_1446;
goto block_979;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__18(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_12 = lean_st_ref_get(x_10, x_11);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
lean_dec(x_13);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_16 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval(x_1, x_2, x_5, x_6, x_7, x_8, x_9, x_10, x_14);
if (lean_obj_tag(x_16) == 0)
{
lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
x_18 = lean_ctor_get(x_16, 1);
lean_inc(x_18);
lean_dec(x_16);
x_19 = l_Lean_Expr_hasSyntheticSorry(x_17);
if (x_19 == 0)
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_box(0);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc(x_5);
x_21 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17(x_17, x_3, x_4, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_18);
if (lean_obj_tag(x_21) == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_22 = lean_ctor_get(x_21, 0);
lean_inc(x_22);
x_23 = lean_ctor_get(x_21, 1);
lean_inc(x_23);
lean_dec(x_21);
x_24 = l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__1(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_23);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_25 = !lean_is_exclusive(x_24);
if (x_25 == 0)
{
lean_object* x_26; 
x_26 = lean_ctor_get(x_24, 0);
lean_dec(x_26);
lean_ctor_set(x_24, 0, x_22);
return x_24;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_24, 1);
lean_inc(x_27);
lean_dec(x_24);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_22);
lean_ctor_set(x_28, 1, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; uint8_t x_32; 
x_29 = lean_ctor_get(x_21, 0);
lean_inc(x_29);
x_30 = lean_ctor_get(x_21, 1);
lean_inc(x_30);
lean_dec(x_21);
x_31 = l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__1(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_30);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; 
x_33 = lean_ctor_get(x_31, 0);
lean_dec(x_33);
lean_ctor_set_tag(x_31, 1);
lean_ctor_set(x_31, 0, x_29);
return x_31;
}
else
{
lean_object* x_34; lean_object* x_35; 
x_34 = lean_ctor_get(x_31, 1);
lean_inc(x_34);
lean_dec(x_31);
x_35 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_35, 0, x_29);
lean_ctor_set(x_35, 1, x_34);
return x_35;
}
}
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
lean_dec(x_17);
lean_dec(x_3);
x_36 = l_Lean_Elab_throwAbortTerm___at_Lean_Elab_Term_ensureType___spec__1___rarg(x_18);
x_37 = lean_ctor_get(x_36, 0);
lean_inc(x_37);
x_38 = lean_ctor_get(x_36, 1);
lean_inc(x_38);
lean_dec(x_36);
x_39 = l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__1(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_38);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_40 = !lean_is_exclusive(x_39);
if (x_40 == 0)
{
lean_object* x_41; 
x_41 = lean_ctor_get(x_39, 0);
lean_dec(x_41);
lean_ctor_set_tag(x_39, 1);
lean_ctor_set(x_39, 0, x_37);
return x_39;
}
else
{
lean_object* x_42; lean_object* x_43; 
x_42 = lean_ctor_get(x_39, 1);
lean_inc(x_42);
lean_dec(x_39);
x_43 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_43, 0, x_37);
lean_ctor_set(x_43, 1, x_42);
return x_43;
}
}
}
else
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; 
lean_dec(x_3);
x_44 = lean_ctor_get(x_16, 0);
lean_inc(x_44);
x_45 = lean_ctor_get(x_16, 1);
lean_inc(x_45);
lean_dec(x_16);
x_46 = l_Lean_setEnv___at_Lean_Elab_Term_evalTerm___spec__1(x_15, x_5, x_6, x_7, x_8, x_9, x_10, x_45);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_47 = !lean_is_exclusive(x_46);
if (x_47 == 0)
{
lean_object* x_48; 
x_48 = lean_ctor_get(x_46, 0);
lean_dec(x_48);
lean_ctor_set_tag(x_46, 1);
lean_ctor_set(x_46, 0, x_44);
return x_46;
}
else
{
lean_object* x_49; lean_object* x_50; 
x_49 = lean_ctor_get(x_46, 1);
lean_inc(x_49);
lean_dec(x_46);
x_50 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_50, 0, x_44);
lean_ctor_set(x_50, 1, x_49);
return x_50;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__19(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_Elab_Command_liftTermElabM___rarg(x_1, x_2, x_3, x_4);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec(x_5);
x_8 = !lean_is_exclusive(x_6);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_6, 0);
x_10 = lean_ctor_get(x_6, 1);
x_11 = lean_apply_3(x_9, x_2, x_3, x_7);
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_11, 0);
lean_ctor_set(x_6, 0, x_13);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_6);
lean_ctor_set(x_11, 0, x_14);
return x_11;
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = lean_ctor_get(x_11, 0);
x_16 = lean_ctor_get(x_11, 1);
lean_inc(x_16);
lean_inc(x_15);
lean_dec(x_11);
lean_ctor_set(x_6, 0, x_15);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_6);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_16);
return x_18;
}
}
else
{
uint8_t x_19; 
lean_free_object(x_6);
lean_dec(x_10);
x_19 = !lean_is_exclusive(x_11);
if (x_19 == 0)
{
lean_object* x_20; uint8_t x_21; 
x_20 = lean_ctor_get(x_11, 0);
x_21 = l_Lean_Exception_isInterrupt(x_20);
if (x_21 == 0)
{
lean_object* x_22; 
x_22 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set_tag(x_11, 0);
lean_ctor_set(x_11, 0, x_22);
return x_11;
}
else
{
return x_11;
}
}
else
{
lean_object* x_23; lean_object* x_24; uint8_t x_25; 
x_23 = lean_ctor_get(x_11, 0);
x_24 = lean_ctor_get(x_11, 1);
lean_inc(x_24);
lean_inc(x_23);
lean_dec(x_11);
x_25 = l_Lean_Exception_isInterrupt(x_23);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; 
x_26 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_26, 0, x_23);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_24);
return x_27;
}
else
{
lean_object* x_28; 
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_23);
lean_ctor_set(x_28, 1, x_24);
return x_28;
}
}
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_6, 0);
x_30 = lean_ctor_get(x_6, 1);
lean_inc(x_30);
lean_inc(x_29);
lean_dec(x_6);
x_31 = lean_apply_3(x_29, x_2, x_3, x_7);
if (lean_obj_tag(x_31) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_31, 1);
lean_inc(x_33);
if (lean_is_exclusive(x_31)) {
 lean_ctor_release(x_31, 0);
 lean_ctor_release(x_31, 1);
 x_34 = x_31;
} else {
 lean_dec_ref(x_31);
 x_34 = lean_box(0);
}
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_32);
lean_ctor_set(x_35, 1, x_30);
x_36 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_36, 0, x_35);
if (lean_is_scalar(x_34)) {
 x_37 = lean_alloc_ctor(0, 2, 0);
} else {
 x_37 = x_34;
}
lean_ctor_set(x_37, 0, x_36);
lean_ctor_set(x_37, 1, x_33);
return x_37;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; 
lean_dec(x_30);
x_38 = lean_ctor_get(x_31, 0);
lean_inc(x_38);
x_39 = lean_ctor_get(x_31, 1);
lean_inc(x_39);
if (lean_is_exclusive(x_31)) {
 lean_ctor_release(x_31, 0);
 lean_ctor_release(x_31, 1);
 x_40 = x_31;
} else {
 lean_dec_ref(x_31);
 x_40 = lean_box(0);
}
x_41 = l_Lean_Exception_isInterrupt(x_38);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; 
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_38);
if (lean_is_scalar(x_40)) {
 x_43 = lean_alloc_ctor(0, 2, 0);
} else {
 x_43 = x_40;
 lean_ctor_set_tag(x_43, 0);
}
lean_ctor_set(x_43, 0, x_42);
lean_ctor_set(x_43, 1, x_39);
return x_43;
}
else
{
lean_object* x_44; 
if (lean_is_scalar(x_40)) {
 x_44 = lean_alloc_ctor(1, 2, 0);
} else {
 x_44 = x_40;
}
lean_ctor_set(x_44, 0, x_38);
lean_ctor_set(x_44, 1, x_39);
return x_44;
}
}
}
}
else
{
uint8_t x_45; 
lean_dec(x_3);
lean_dec(x_2);
x_45 = !lean_is_exclusive(x_5);
if (x_45 == 0)
{
lean_object* x_46; uint8_t x_47; 
x_46 = lean_ctor_get(x_5, 0);
x_47 = l_Lean_Exception_isInterrupt(x_46);
if (x_47 == 0)
{
lean_object* x_48; 
x_48 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_48, 0, x_46);
lean_ctor_set_tag(x_5, 0);
lean_ctor_set(x_5, 0, x_48);
return x_5;
}
else
{
return x_5;
}
}
else
{
lean_object* x_49; lean_object* x_50; uint8_t x_51; 
x_49 = lean_ctor_get(x_5, 0);
x_50 = lean_ctor_get(x_5, 1);
lean_inc(x_50);
lean_inc(x_49);
lean_dec(x_5);
x_51 = l_Lean_Exception_isInterrupt(x_49);
if (x_51 == 0)
{
lean_object* x_52; lean_object* x_53; 
x_52 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_52, 0, x_49);
x_53 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_53, 0, x_52);
lean_ctor_set(x_53, 1, x_50);
return x_53;
}
else
{
lean_object* x_54; 
x_54 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_54, 0, x_49);
lean_ctor_set(x_54, 1, x_50);
return x_54;
}
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_eval_type;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" : ", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = l_Lean_Elab_logException___at_Lean_Elab_Command_elabCommand___spec__3(x_6, x_3, x_4, x_5);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_1, 0);
lean_inc(x_8);
lean_dec(x_1);
x_9 = lean_ctor_get(x_8, 1);
lean_inc(x_9);
if (lean_obj_tag(x_9) == 0)
{
uint8_t x_10; 
lean_dec(x_3);
x_10 = !lean_is_exclusive(x_8);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_8, 1);
lean_dec(x_11);
x_12 = lean_ctor_get(x_8, 0);
lean_dec(x_12);
x_13 = lean_box(0);
lean_ctor_set(x_8, 1, x_5);
lean_ctor_set(x_8, 0, x_13);
return x_8;
}
else
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_8);
x_14 = lean_box(0);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_5);
return x_15;
}
}
else
{
uint8_t x_16; 
x_16 = !lean_is_exclusive(x_8);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_17 = lean_ctor_get(x_8, 0);
x_18 = lean_ctor_get(x_8, 1);
lean_dec(x_18);
x_19 = lean_ctor_get(x_9, 0);
lean_inc(x_19);
lean_dec(x_9);
x_20 = lean_st_ref_get(x_4, x_5);
x_21 = !lean_is_exclusive(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_22 = lean_ctor_get(x_20, 0);
x_23 = lean_ctor_get(x_20, 1);
x_24 = lean_ctor_get(x_22, 2);
lean_inc(x_24);
lean_dec(x_22);
x_25 = l_Lean_Elab_Command_instInhabitedScope;
x_26 = l_List_head_x21___rarg(x_25, x_24);
lean_dec(x_24);
x_27 = lean_ctor_get(x_26, 1);
lean_inc(x_27);
lean_dec(x_26);
x_28 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__1;
x_29 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_27, x_28);
lean_dec(x_27);
if (x_29 == 0)
{
uint8_t x_30; lean_object* x_31; 
lean_free_object(x_20);
lean_dec(x_19);
lean_free_object(x_8);
x_30 = 0;
x_31 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_17, x_30, x_3, x_4, x_23);
return x_31;
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; 
x_32 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
lean_ctor_set_tag(x_20, 7);
lean_ctor_set(x_20, 1, x_17);
lean_ctor_set(x_20, 0, x_32);
x_33 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__3;
lean_ctor_set_tag(x_8, 7);
lean_ctor_set(x_8, 1, x_33);
lean_ctor_set(x_8, 0, x_20);
x_34 = l_Lean_MessageData_ofExpr(x_19);
x_35 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_35, 0, x_8);
lean_ctor_set(x_35, 1, x_34);
x_36 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_32);
x_37 = 0;
x_38 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_36, x_37, x_3, x_4, x_23);
return x_38;
}
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
x_39 = lean_ctor_get(x_20, 0);
x_40 = lean_ctor_get(x_20, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_20);
x_41 = lean_ctor_get(x_39, 2);
lean_inc(x_41);
lean_dec(x_39);
x_42 = l_Lean_Elab_Command_instInhabitedScope;
x_43 = l_List_head_x21___rarg(x_42, x_41);
lean_dec(x_41);
x_44 = lean_ctor_get(x_43, 1);
lean_inc(x_44);
lean_dec(x_43);
x_45 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__1;
x_46 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_44, x_45);
lean_dec(x_44);
if (x_46 == 0)
{
uint8_t x_47; lean_object* x_48; 
lean_dec(x_19);
lean_free_object(x_8);
x_47 = 0;
x_48 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_17, x_47, x_3, x_4, x_40);
return x_48;
}
else
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55; lean_object* x_56; 
x_49 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
x_50 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_50, 0, x_49);
lean_ctor_set(x_50, 1, x_17);
x_51 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__3;
lean_ctor_set_tag(x_8, 7);
lean_ctor_set(x_8, 1, x_51);
lean_ctor_set(x_8, 0, x_50);
x_52 = l_Lean_MessageData_ofExpr(x_19);
x_53 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_53, 0, x_8);
lean_ctor_set(x_53, 1, x_52);
x_54 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_54, 0, x_53);
lean_ctor_set(x_54, 1, x_49);
x_55 = 0;
x_56 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_54, x_55, x_3, x_4, x_40);
return x_56;
}
}
}
else
{
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; uint8_t x_68; 
x_57 = lean_ctor_get(x_8, 0);
lean_inc(x_57);
lean_dec(x_8);
x_58 = lean_ctor_get(x_9, 0);
lean_inc(x_58);
lean_dec(x_9);
x_59 = lean_st_ref_get(x_4, x_5);
x_60 = lean_ctor_get(x_59, 0);
lean_inc(x_60);
x_61 = lean_ctor_get(x_59, 1);
lean_inc(x_61);
if (lean_is_exclusive(x_59)) {
 lean_ctor_release(x_59, 0);
 lean_ctor_release(x_59, 1);
 x_62 = x_59;
} else {
 lean_dec_ref(x_59);
 x_62 = lean_box(0);
}
x_63 = lean_ctor_get(x_60, 2);
lean_inc(x_63);
lean_dec(x_60);
x_64 = l_Lean_Elab_Command_instInhabitedScope;
x_65 = l_List_head_x21___rarg(x_64, x_63);
lean_dec(x_63);
x_66 = lean_ctor_get(x_65, 1);
lean_inc(x_66);
lean_dec(x_65);
x_67 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__1;
x_68 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_66, x_67);
lean_dec(x_66);
if (x_68 == 0)
{
uint8_t x_69; lean_object* x_70; 
lean_dec(x_62);
lean_dec(x_58);
x_69 = 0;
x_70 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_57, x_69, x_3, x_4, x_61);
return x_70;
}
else
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; uint8_t x_78; lean_object* x_79; 
x_71 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3;
if (lean_is_scalar(x_62)) {
 x_72 = lean_alloc_ctor(7, 2, 0);
} else {
 x_72 = x_62;
 lean_ctor_set_tag(x_72, 7);
}
lean_ctor_set(x_72, 0, x_71);
lean_ctor_set(x_72, 1, x_57);
x_73 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__3;
x_74 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_74, 0, x_72);
lean_ctor_set(x_74, 1, x_73);
x_75 = l_Lean_MessageData_ofExpr(x_58);
x_76 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_76, 0, x_74);
lean_ctor_set(x_76, 1, x_75);
x_77 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_77, 0, x_76);
lean_ctor_set(x_77, 1, x_71);
x_78 = 0;
x_79 = l_Lean_log___at_Lean_Elab_Command_elabCommand___spec__5(x_77, x_78, x_3, x_4, x_61);
return x_79;
}
}
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_eval", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__1;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_8 = l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__2;
x_9 = lean_box(x_1);
x_10 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__18___boxed), 11, 4);
lean_closure_set(x_10, 0, x_3);
lean_closure_set(x_10, 1, x_4);
lean_closure_set(x_10, 2, x_8);
lean_closure_set(x_10, 3, x_9);
x_11 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withDeclName___rarg), 9, 2);
lean_closure_set(x_11, 0, x_8);
lean_closure_set(x_11, 1, x_10);
x_12 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__19), 4, 1);
lean_closure_set(x_12, 0, x_11);
x_13 = l_Lean_Elab_Command_getRef(x_5, x_6, x_7);
x_14 = lean_ctor_get(x_13, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 1);
lean_inc(x_15);
lean_dec(x_13);
x_16 = l_Lean_replaceRef(x_2, x_14);
lean_dec(x_14);
x_17 = !lean_is_exclusive(x_5);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; lean_object* x_20; 
x_18 = lean_ctor_get(x_5, 6);
lean_dec(x_18);
lean_ctor_set(x_5, 6, x_16);
x_19 = 1;
lean_inc(x_6);
lean_inc(x_5);
x_20 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6(x_12, x_19, x_5, x_6, x_15);
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
lean_dec(x_20);
x_23 = lean_ctor_get(x_21, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_21, 1);
lean_inc(x_24);
lean_dec(x_21);
x_25 = lean_string_utf8_byte_size(x_23);
x_26 = lean_unsigned_to_nat(0u);
x_27 = lean_nat_dec_eq(x_25, x_26);
lean_dec(x_25);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; 
x_28 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_28, 0, x_23);
x_29 = l_Lean_MessageData_ofFormat(x_28);
x_30 = 0;
lean_inc(x_5);
x_31 = l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(x_2, x_29, x_30, x_5, x_6, x_22);
x_32 = lean_ctor_get(x_31, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_31, 1);
lean_inc(x_33);
lean_dec(x_31);
x_34 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20(x_24, x_32, x_5, x_6, x_33);
lean_dec(x_6);
lean_dec(x_32);
return x_34;
}
else
{
lean_object* x_35; lean_object* x_36; 
lean_dec(x_23);
x_35 = lean_box(0);
x_36 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20(x_24, x_35, x_5, x_6, x_22);
lean_dec(x_6);
return x_36;
}
}
else
{
uint8_t x_37; 
lean_dec(x_5);
lean_dec(x_6);
x_37 = !lean_is_exclusive(x_20);
if (x_37 == 0)
{
return x_20;
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_38 = lean_ctor_get(x_20, 0);
x_39 = lean_ctor_get(x_20, 1);
lean_inc(x_39);
lean_inc(x_38);
lean_dec(x_20);
x_40 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_39);
return x_40;
}
}
}
else
{
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; uint8_t x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53; 
x_41 = lean_ctor_get(x_5, 0);
x_42 = lean_ctor_get(x_5, 1);
x_43 = lean_ctor_get(x_5, 2);
x_44 = lean_ctor_get(x_5, 3);
x_45 = lean_ctor_get(x_5, 4);
x_46 = lean_ctor_get(x_5, 5);
x_47 = lean_ctor_get(x_5, 7);
x_48 = lean_ctor_get(x_5, 8);
x_49 = lean_ctor_get(x_5, 9);
x_50 = lean_ctor_get_uint8(x_5, sizeof(void*)*10);
lean_inc(x_49);
lean_inc(x_48);
lean_inc(x_47);
lean_inc(x_46);
lean_inc(x_45);
lean_inc(x_44);
lean_inc(x_43);
lean_inc(x_42);
lean_inc(x_41);
lean_dec(x_5);
x_51 = lean_alloc_ctor(0, 10, 1);
lean_ctor_set(x_51, 0, x_41);
lean_ctor_set(x_51, 1, x_42);
lean_ctor_set(x_51, 2, x_43);
lean_ctor_set(x_51, 3, x_44);
lean_ctor_set(x_51, 4, x_45);
lean_ctor_set(x_51, 5, x_46);
lean_ctor_set(x_51, 6, x_16);
lean_ctor_set(x_51, 7, x_47);
lean_ctor_set(x_51, 8, x_48);
lean_ctor_set(x_51, 9, x_49);
lean_ctor_set_uint8(x_51, sizeof(void*)*10, x_50);
x_52 = 1;
lean_inc(x_6);
lean_inc(x_51);
x_53 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6(x_12, x_52, x_51, x_6, x_15);
if (lean_obj_tag(x_53) == 0)
{
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; 
x_54 = lean_ctor_get(x_53, 0);
lean_inc(x_54);
x_55 = lean_ctor_get(x_53, 1);
lean_inc(x_55);
lean_dec(x_53);
x_56 = lean_ctor_get(x_54, 0);
lean_inc(x_56);
x_57 = lean_ctor_get(x_54, 1);
lean_inc(x_57);
lean_dec(x_54);
x_58 = lean_string_utf8_byte_size(x_56);
x_59 = lean_unsigned_to_nat(0u);
x_60 = lean_nat_dec_eq(x_58, x_59);
lean_dec(x_58);
if (x_60 == 0)
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_61 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_61, 0, x_56);
x_62 = l_Lean_MessageData_ofFormat(x_61);
x_63 = 0;
lean_inc(x_51);
x_64 = l_Lean_logAt___at_Lean_Elab_Command_elabCommand___spec__4(x_2, x_62, x_63, x_51, x_6, x_55);
x_65 = lean_ctor_get(x_64, 0);
lean_inc(x_65);
x_66 = lean_ctor_get(x_64, 1);
lean_inc(x_66);
lean_dec(x_64);
x_67 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20(x_57, x_65, x_51, x_6, x_66);
lean_dec(x_6);
lean_dec(x_65);
return x_67;
}
else
{
lean_object* x_68; lean_object* x_69; 
lean_dec(x_56);
x_68 = lean_box(0);
x_69 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20(x_57, x_68, x_51, x_6, x_55);
lean_dec(x_6);
return x_69;
}
}
else
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; 
lean_dec(x_51);
lean_dec(x_6);
x_70 = lean_ctor_get(x_53, 0);
lean_inc(x_70);
x_71 = lean_ctor_get(x_53, 1);
lean_inc(x_71);
if (lean_is_exclusive(x_53)) {
 lean_ctor_release(x_53, 0);
 lean_ctor_release(x_53, 1);
 x_72 = x_53;
} else {
 lean_dec_ref(x_53);
 x_72 = lean_box(0);
}
if (lean_is_scalar(x_72)) {
 x_73 = lean_alloc_ctor(1, 2, 0);
} else {
 x_73 = x_72;
}
lean_ctor_set(x_73, 0, x_70);
lean_ctor_set(x_73, 1, x_71);
return x_73;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_throwError___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_ofExcept___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_evalConst___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_9;
}
}
LEAN_EXPORT lean_object* l_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4___rarg___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_ReaderT_pure___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__4___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_2);
lean_dec(x_2);
x_7 = l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6(x_1, x_6, x_3, x_4, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_4);
lean_dec(x_3);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
uint8_t x_12; lean_object* x_13; 
x_12 = lean_unbox(x_2);
lean_dec(x_2);
x_13 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__2(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_4);
lean_dec(x_3);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__6___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_Elab_Command_elabEvalCoreUnsafe___lambda__6(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___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_Elab_Command_elabEvalCoreUnsafe___lambda__7(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__9(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__12___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
uint8_t x_12; lean_object* x_13; 
x_12 = lean_unbox(x_2);
lean_dec(x_2);
x_13 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__12(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__13___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
lean_object* x_9; 
x_9 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__13(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_3);
lean_dec(x_2);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__14(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_4);
lean_dec(x_3);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__15___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_Elab_Command_elabEvalCoreUnsafe___lambda__15(x_1, x_2, x_3, x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
uint8_t x_12; lean_object* x_13; 
x_12 = lean_unbox(x_3);
lean_dec(x_3);
x_13 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17(x_1, x_2, x_12, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
lean_dec(x_4);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__18___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
uint8_t x_12; lean_object* x_13; 
x_12 = lean_unbox(x_4);
lean_dec(x_4);
x_13 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__18(x_1, x_2, x_3, x_12, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_4);
lean_dec(x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalCoreUnsafe___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
uint8_t x_8; lean_object* x_9; 
x_8 = lean_unbox(x_1);
lean_dec(x_1);
x_9 = l_Lean_Elab_Command_elabEvalCoreUnsafe(x_8, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_2);
return x_9;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEval___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEval(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l_Lean_Elab_Command_elabEval___closed__1;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_dec(x_1);
x_12 = lean_box(0);
x_13 = 0;
x_14 = l_Lean_Elab_Command_elabEvalCoreUnsafe(x_13, x_9, x_11, x_12, x_2, x_3, x_4);
lean_dec(x_9);
return x_14;
}
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabEval", 8, 8);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_commandElabAttribute;
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEval), 4, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabEval__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__3;
x_3 = l_Lean_Elab_Command_elabEval___closed__1;
x_4 = l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__4;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(419u);
x_2 = lean_unsigned_to_nat(0u);
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___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(419u);
x_2 = lean_unsigned_to_nat(29u);
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___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(29u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(419u);
x_2 = lean_unsigned_to_nat(7u);
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___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(419u);
x_2 = lean_unsigned_to_nat(15u);
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___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(7u);
x_3 = l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(15u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalBang___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("evalBang", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabEvalBang___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l_Lean_Elab_Command_elabEvalBang___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabEvalBang(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l_Lean_Elab_Command_elabEvalBang___closed__2;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_dec(x_1);
x_12 = lean_box(0);
x_13 = 1;
x_14 = l_Lean_Elab_Command_elabEvalCoreUnsafe(x_13, x_9, x_11, x_12, x_2, x_3, x_4);
lean_dec(x_9);
return x_14;
}
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabEvalBang", 12, 12);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabEvalBang), 4, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabEvalBang__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__3;
x_3 = l_Lean_Elab_Command_elabEvalBang___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("app", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1;
x_3 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__3;
x_4 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("discard", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__3;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__31;
x_2 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__3;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__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_Elab_Command_elabRunCmd___lambda__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;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__7;
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_Elab_Command_elabRunCmd___lambda__1___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("do", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1;
x_3 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__3;
x_4 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__2;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__11;
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
x_3 = l_Lean_Expr_app___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__12;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_7 = l_Lean_Elab_Command_getRef(x_4, x_5, x_6);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = 0;
x_11 = l_Lean_SourceInfo_fromRef(x_8, x_10);
lean_dec(x_8);
x_12 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_9);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_14);
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; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = lean_ctor_get(x_15, 1);
x_19 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5;
x_20 = l_Lean_addMacroScope(x_17, x_19, x_13);
x_21 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4;
x_22 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8;
lean_inc(x_11);
x_23 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_23, 0, x_11);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_20);
lean_ctor_set(x_23, 3, x_22);
x_24 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9;
lean_inc(x_11);
lean_ctor_set_tag(x_15, 2);
lean_ctor_set(x_15, 1, x_24);
lean_ctor_set(x_15, 0, x_11);
x_25 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10;
lean_inc(x_11);
x_26 = l_Lean_Syntax_node2(x_11, x_25, x_15, x_1);
x_27 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10;
lean_inc(x_11);
x_28 = l_Lean_Syntax_node1(x_11, x_27, x_26);
x_29 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2;
x_30 = l_Lean_Syntax_node2(x_11, x_29, x_23, x_28);
x_31 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__13;
x_32 = l_Lean_Elab_Command_elabEvalCoreUnsafe(x_10, x_2, x_30, x_31, x_4, x_5, x_18);
return x_32;
}
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; 
x_33 = lean_ctor_get(x_15, 0);
x_34 = lean_ctor_get(x_15, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_15);
x_35 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5;
x_36 = l_Lean_addMacroScope(x_33, x_35, x_13);
x_37 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4;
x_38 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8;
lean_inc(x_11);
x_39 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_39, 0, x_11);
lean_ctor_set(x_39, 1, x_37);
lean_ctor_set(x_39, 2, x_36);
lean_ctor_set(x_39, 3, x_38);
x_40 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9;
lean_inc(x_11);
x_41 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_41, 0, x_11);
lean_ctor_set(x_41, 1, x_40);
x_42 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10;
lean_inc(x_11);
x_43 = l_Lean_Syntax_node2(x_11, x_42, x_41, x_1);
x_44 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10;
lean_inc(x_11);
x_45 = l_Lean_Syntax_node1(x_11, x_44, x_43);
x_46 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2;
x_47 = l_Lean_Syntax_node2(x_11, x_46, x_39, x_45);
x_48 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__13;
x_49 = l_Lean_Elab_Command_elabEvalCoreUnsafe(x_10, x_2, x_47, x_48, x_4, x_5, x_34);
return x_49;
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("runCmd", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_elabRunCmd___closed__1;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("to use this command, include `import Lean.Elab.Command`", 55, 55);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunCmd___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabRunCmd___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunCmd(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l_Lean_Elab_Command_elabRunCmd___closed__2;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4);
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; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_dec(x_1);
x_12 = lean_st_ref_get(x_3, x_4);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
lean_dec(x_13);
x_16 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__2;
x_17 = l_Lean_Environment_contains(x_15, x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; 
lean_dec(x_11);
lean_dec(x_9);
x_18 = l_Lean_Elab_Command_elabRunCmd___closed__4;
x_19 = l_Lean_throwError___at_Lean_withSetOptionIn___spec__7(x_18, x_2, x_3, x_14);
lean_dec(x_3);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
return x_19;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_19, 0);
x_22 = lean_ctor_get(x_19, 1);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_19);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
return x_23;
}
}
else
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_box(0);
x_25 = l_Lean_Elab_Command_elabRunCmd___lambda__1(x_11, x_9, x_24, x_2, x_3, x_14);
lean_dec(x_9);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunCmd___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_Command_elabRunCmd___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_3);
lean_dec(x_2);
return x_7;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabRunCmd", 10, 10);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabRunCmd), 4, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__3;
x_3 = l_Lean_Elab_Command_elabRunCmd___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(426u);
x_2 = lean_unsigned_to_nat(0u);
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___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(433u);
x_2 = lean_unsigned_to_nat(31u);
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___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(426u);
x_2 = lean_unsigned_to_nat(4u);
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___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(426u);
x_2 = lean_unsigned_to_nat(14u);
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___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(4u);
x_3 = l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(14u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunElab___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__44;
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
x_3 = l_Lean_Expr_app___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunElab___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabRunElab___lambda__1___closed__1;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunElab___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_7 = l_Lean_Elab_Command_getRef(x_4, x_5, x_6);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = 0;
x_11 = l_Lean_SourceInfo_fromRef(x_8, x_10);
lean_dec(x_8);
x_12 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_9);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_14);
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; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = lean_ctor_get(x_15, 1);
x_19 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5;
x_20 = l_Lean_addMacroScope(x_17, x_19, x_13);
x_21 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4;
x_22 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8;
lean_inc(x_11);
x_23 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_23, 0, x_11);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_20);
lean_ctor_set(x_23, 3, x_22);
x_24 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9;
lean_inc(x_11);
lean_ctor_set_tag(x_15, 2);
lean_ctor_set(x_15, 1, x_24);
lean_ctor_set(x_15, 0, x_11);
x_25 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10;
lean_inc(x_11);
x_26 = l_Lean_Syntax_node2(x_11, x_25, x_15, x_1);
x_27 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10;
lean_inc(x_11);
x_28 = l_Lean_Syntax_node1(x_11, x_27, x_26);
x_29 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2;
x_30 = l_Lean_Syntax_node2(x_11, x_29, x_23, x_28);
x_31 = l_Lean_Elab_Command_elabRunElab___lambda__1___closed__2;
x_32 = l_Lean_Elab_Command_elabEvalCoreUnsafe(x_10, x_2, x_30, x_31, x_4, x_5, x_18);
return x_32;
}
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; 
x_33 = lean_ctor_get(x_15, 0);
x_34 = lean_ctor_get(x_15, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_15);
x_35 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5;
x_36 = l_Lean_addMacroScope(x_33, x_35, x_13);
x_37 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4;
x_38 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8;
lean_inc(x_11);
x_39 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_39, 0, x_11);
lean_ctor_set(x_39, 1, x_37);
lean_ctor_set(x_39, 2, x_36);
lean_ctor_set(x_39, 3, x_38);
x_40 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9;
lean_inc(x_11);
x_41 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_41, 0, x_11);
lean_ctor_set(x_41, 1, x_40);
x_42 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10;
lean_inc(x_11);
x_43 = l_Lean_Syntax_node2(x_11, x_42, x_41, x_1);
x_44 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10;
lean_inc(x_11);
x_45 = l_Lean_Syntax_node1(x_11, x_44, x_43);
x_46 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2;
x_47 = l_Lean_Syntax_node2(x_11, x_46, x_39, x_45);
x_48 = l_Lean_Elab_Command_elabRunElab___lambda__1___closed__2;
x_49 = l_Lean_Elab_Command_elabEvalCoreUnsafe(x_10, x_2, x_47, x_48, x_4, x_5, x_34);
return x_49;
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunElab___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("runElab", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunElab___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_elabRunElab___closed__1;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunElab___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("to use this command, include `import Lean.Elab.Term`", 52, 52);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunElab___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabRunElab___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunElab(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l_Lean_Elab_Command_elabRunElab___closed__2;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4);
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; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_dec(x_1);
x_12 = lean_st_ref_get(x_3, x_4);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
lean_dec(x_13);
x_16 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__5;
x_17 = l_Lean_Environment_contains(x_15, x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; 
lean_dec(x_11);
lean_dec(x_9);
x_18 = l_Lean_Elab_Command_elabRunElab___closed__4;
x_19 = l_Lean_throwError___at_Lean_withSetOptionIn___spec__7(x_18, x_2, x_3, x_14);
lean_dec(x_3);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
return x_19;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_19, 0);
x_22 = lean_ctor_get(x_19, 1);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_19);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
return x_23;
}
}
else
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_box(0);
x_25 = l_Lean_Elab_Command_elabRunElab___lambda__1(x_11, x_9, x_24, x_2, x_3, x_14);
lean_dec(x_9);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunElab___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_Command_elabRunElab___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_3);
lean_dec(x_2);
return x_7;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabRunElab", 11, 11);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabRunElab), 4, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__3;
x_3 = l_Lean_Elab_Command_elabRunElab___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(436u);
x_2 = lean_unsigned_to_nat(0u);
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___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(443u);
x_2 = lean_unsigned_to_nat(31u);
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___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(436u);
x_2 = lean_unsigned_to_nat(4u);
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___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(436u);
x_2 = lean_unsigned_to_nat(15u);
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___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(4u);
x_3 = l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(15u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__42;
x_2 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30;
x_3 = l_Lean_Expr_app___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__1;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunMeta___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_7 = l_Lean_Elab_Command_getRef(x_4, x_5, x_6);
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_7, 1);
lean_inc(x_9);
lean_dec(x_7);
x_10 = 0;
x_11 = l_Lean_SourceInfo_fromRef(x_8, x_10);
lean_dec(x_8);
x_12 = l_Lean_Elab_Command_getCurrMacroScope(x_4, x_5, x_9);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = l_Lean_Elab_Command_getMainModule___rarg(x_5, x_14);
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; 
x_17 = lean_ctor_get(x_15, 0);
x_18 = lean_ctor_get(x_15, 1);
x_19 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5;
x_20 = l_Lean_addMacroScope(x_17, x_19, x_13);
x_21 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4;
x_22 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8;
lean_inc(x_11);
x_23 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_23, 0, x_11);
lean_ctor_set(x_23, 1, x_21);
lean_ctor_set(x_23, 2, x_20);
lean_ctor_set(x_23, 3, x_22);
x_24 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9;
lean_inc(x_11);
lean_ctor_set_tag(x_15, 2);
lean_ctor_set(x_15, 1, x_24);
lean_ctor_set(x_15, 0, x_11);
x_25 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10;
lean_inc(x_11);
x_26 = l_Lean_Syntax_node2(x_11, x_25, x_15, x_1);
x_27 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10;
lean_inc(x_11);
x_28 = l_Lean_Syntax_node1(x_11, x_27, x_26);
x_29 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2;
x_30 = l_Lean_Syntax_node2(x_11, x_29, x_23, x_28);
x_31 = l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__2;
x_32 = l_Lean_Elab_Command_elabEvalCoreUnsafe(x_10, x_2, x_30, x_31, x_4, x_5, x_18);
return x_32;
}
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; 
x_33 = lean_ctor_get(x_15, 0);
x_34 = lean_ctor_get(x_15, 1);
lean_inc(x_34);
lean_inc(x_33);
lean_dec(x_15);
x_35 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5;
x_36 = l_Lean_addMacroScope(x_33, x_35, x_13);
x_37 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4;
x_38 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8;
lean_inc(x_11);
x_39 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_39, 0, x_11);
lean_ctor_set(x_39, 1, x_37);
lean_ctor_set(x_39, 2, x_36);
lean_ctor_set(x_39, 3, x_38);
x_40 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9;
lean_inc(x_11);
x_41 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_41, 0, x_11);
lean_ctor_set(x_41, 1, x_40);
x_42 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10;
lean_inc(x_11);
x_43 = l_Lean_Syntax_node2(x_11, x_42, x_41, x_1);
x_44 = l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10;
lean_inc(x_11);
x_45 = l_Lean_Syntax_node1(x_11, x_44, x_43);
x_46 = l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2;
x_47 = l_Lean_Syntax_node2(x_11, x_46, x_39, x_45);
x_48 = l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__2;
x_49 = l_Lean_Elab_Command_elabEvalCoreUnsafe(x_10, x_2, x_47, x_48, x_4, x_5, x_34);
return x_49;
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunMeta___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("runMeta", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunMeta___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_elabRunMeta___closed__1;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunMeta___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("to use this command, include `import Lean.Meta.Basic`", 53, 53);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabRunMeta___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabRunMeta___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunMeta(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l_Lean_Elab_Command_elabRunMeta___closed__2;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4);
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; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = lean_unsigned_to_nat(1u);
x_11 = l_Lean_Syntax_getArg(x_1, x_10);
lean_dec(x_1);
x_12 = lean_st_ref_get(x_3, x_4);
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
lean_dec(x_13);
x_16 = l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__41;
x_17 = l_Lean_Environment_contains(x_15, x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; 
lean_dec(x_11);
lean_dec(x_9);
x_18 = l_Lean_Elab_Command_elabRunMeta___closed__4;
x_19 = l_Lean_throwError___at_Lean_withSetOptionIn___spec__7(x_18, x_2, x_3, x_14);
lean_dec(x_3);
x_20 = !lean_is_exclusive(x_19);
if (x_20 == 0)
{
return x_19;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_ctor_get(x_19, 0);
x_22 = lean_ctor_get(x_19, 1);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_19);
x_23 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
return x_23;
}
}
else
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_box(0);
x_25 = l_Lean_Elab_Command_elabRunMeta___lambda__1(x_11, x_9, x_24, x_2, x_3, x_14);
lean_dec(x_9);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabRunMeta___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_Command_elabRunMeta___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_3);
lean_dec(x_2);
return x_7;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabRunMeta", 11, 11);
return x_1;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7;
x_2 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8;
x_3 = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9;
x_4 = l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabRunMeta), 4, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__3;
x_3 = l_Lean_Elab_Command_elabRunMeta___closed__2;
x_4 = l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__2;
x_5 = l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__3;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(446u);
x_2 = lean_unsigned_to_nat(0u);
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___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(452u);
x_2 = lean_unsigned_to_nat(31u);
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___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(446u);
x_2 = lean_unsigned_to_nat(4u);
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___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(446u);
x_2 = lean_unsigned_to_nat(15u);
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___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__4;
x_2 = lean_unsigned_to_nat(4u);
x_3 = l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__5;
x_4 = lean_unsigned_to_nat(15u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__3;
x_2 = l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__2;
x_3 = l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
lean_object* initialize_Lean_Util_CollectAxioms(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Elab_Deriving_Basic(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Elab_MutualDef(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Elab_BuiltinEvalCommand(uint8_t builtin, lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Util_CollectAxioms(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_Deriving_Basic(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Elab_MutualDef(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__1);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__2();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__2);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__3();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__3);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__4);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__5();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__5);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__6();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__6);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__7);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__8);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__9);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__10 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__10();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7____closed__10);
if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_7_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Elab_Command_eval_pp = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Elab_Command_eval_pp);
lean_dec_ref(res);
}l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__1();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__1);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__2();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__2);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__3();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__3);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__4();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__4);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__5();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46____closed__5);
if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_46_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Elab_Command_eval_type = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Elab_Command_eval_type);
lean_dec_ref(res);
}l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__1();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__1);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__2();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__2);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__3();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__3);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__4();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__4);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__5();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__5);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__6();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85____closed__6);
if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_85_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
l_Lean_Elab_Command_eval_derive_repr = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_Elab_Command_eval_derive_repr);
lean_dec_ref(res);
}l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__1 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__1();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__1);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__2 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__2();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__2);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__3 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__3();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__3);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__4 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__4();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__4);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__5 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__5();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__5);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__6 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__6();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__6);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__7 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__7();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__7);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__8 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__8();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__8);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__9 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__9();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__9);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__10 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__10();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__10);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__11 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__11();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__11);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__12 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__12();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__12);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__13 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__13();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__13);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__14 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__14();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__14);
l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__15 = _init_l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__15();
lean_mark_persistent(l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122____closed__15);
if (builtin) {res = l_Lean_Elab_Command_initFn____x40_Lean_Elab_BuiltinEvalCommand___hyg_122_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__1();
lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__1);
l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__2 = _init_l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__2();
lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___spec__1___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__3 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__3);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__4 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__4();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__4);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__5 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__5();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__5);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__6 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__6();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__6);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__7 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__7();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__7);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__8 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__8();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__8);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__9 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__9();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__9);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__10 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__10();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__10);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__11 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__11();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__11);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__12 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__12();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__12);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__13 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval_synthesizeWithHinting___closed__13();
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__2___closed__3);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__3___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__4___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_elabTermForEval___lambda__5___closed__2);
l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1 = _init_l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1();
lean_mark_persistent(l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__1);
l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__2 = _init_l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__2();
lean_mark_persistent(l_Lean_collectAxioms___at___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___spec__1___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__3 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__3);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__4 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__4();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__4);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__5 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__5();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__5);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__6 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__6();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__6);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__7 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__7();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__7);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__8 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__8();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__8);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__9 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__9();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__9);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__10);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__11 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__11();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__11);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__12 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__12();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__12);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__13 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__13();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__13);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__14 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__14();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__14);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__15 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__15();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__15);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__16 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__16();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__16);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__17 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__17();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__17);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__18 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__18();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__18);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__19 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__19();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__19);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__20 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__20();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__20);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__21 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__21();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__21);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__22 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__22();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__22);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__23 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__23();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__23);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__24 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__24();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__24);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__25 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__25();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__25);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__26 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__26();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__26);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__27 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__27();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_addAndCompileExprForEval___closed__27);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkDeltaInstProj___closed__3);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__3 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__3);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__4 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__4();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToString___closed__4);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__3 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkRepr___closed__3);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__3 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__3);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__4 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__4();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkToExpr___closed__4);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__1___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___lambda__2___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__3 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__3);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__4 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__4();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__4);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__5 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__5();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__5);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__6 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__6();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__6);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__7 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__7();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__7);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__8 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__8();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__8);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__9 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__9();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__9);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__10 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__10();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__10);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__11 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__11();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkFormat___closed__11);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__1 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__1();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__1);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__2 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__2();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__2);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__3 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__3();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__3);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__4 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__4();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__4);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__5 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__5();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__5);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__6 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__6();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__6);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__7 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__7();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__7);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__8 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__8();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__8);
l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__9 = _init_l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__9();
lean_mark_persistent(l___private_Lean_Elab_BuiltinEvalCommand_0__Lean_Elab_Command_mkMessageData___closed__9);
l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__1 = _init_l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__1();
lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__1);
l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__2 = _init_l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__2();
lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__2);
l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__3 = _init_l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__3();
lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__3);
l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__4 = _init_l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__4();
lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__4);
l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5 = _init_l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5();
lean_mark_persistent(l_IO_FS_withIsolatedStreams___at_Lean_Elab_Command_elabEvalCoreUnsafe___spec__6___closed__5);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__1 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__1);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__2 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__7___closed__2);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__1 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__1);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__2 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__2);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__3 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__3);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__4 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__4);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__5 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__5);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__6 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__6);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__7 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__7);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__8 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__8);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__9 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__9);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__10 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__10);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__11 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__11();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__11);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__12 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__12();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__12);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__13 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__13();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__13);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__14 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__14();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__14);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__15 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__15();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__15);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__16 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__16();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__16);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__17 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__17();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__17);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__18 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__18();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__18);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__19 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__19();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__19);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__20 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__20();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__20);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__21 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__21();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__21);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__22 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__22();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__22);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__23 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__23();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__23);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__24);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__25 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__25();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__25);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__26 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__26();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__26);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__27 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__27();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__27);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__28 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__28();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__28);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__29 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__29();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__29);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__30);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__31 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__31();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__31);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__32 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__32();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__32);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__33);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__34 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__34();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__34);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__35 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__35();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__35);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__36 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__36();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__36);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__37 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__37();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__37);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__38 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__38();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__38);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__39 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__39();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__39);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__40 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__40();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__40);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__41 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__41();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__41);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__42 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__42();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__42);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__43 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__43();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__43);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__44 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__44();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__44);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__45 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__45();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__45);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__46 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__46();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__17___closed__46);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__1 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__1);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__2 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__2);
l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__3 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___lambda__20___closed__3);
l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__1 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__1);
l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__2 = _init_l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalCoreUnsafe___closed__2);
l_Lean_Elab_Command_elabEval___closed__1 = _init_l_Lean_Elab_Command_elabEval___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabEval___closed__1);
l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__1);
l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__2);
l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__3);
l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval__1___closed__4);
if (builtin) {res = l___regBuiltin_Lean_Elab_Command_elabEval__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Command_elabEval_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Command_elabEvalBang___closed__1 = _init_l_Lean_Elab_Command_elabEvalBang___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalBang___closed__1);
l_Lean_Elab_Command_elabEvalBang___closed__2 = _init_l_Lean_Elab_Command_elabEvalBang___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabEvalBang___closed__2);
l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__1);
l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__2);
l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabEvalBang__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Command_elabEvalBang__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__1);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__2);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__3 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__3);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__4);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__5);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__6 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__6);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__7 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__7);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__8);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__9);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__10);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__11 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__11();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__11);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__12 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__12();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__12);
l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__13 = _init_l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__13();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___lambda__1___closed__13);
l_Lean_Elab_Command_elabRunCmd___closed__1 = _init_l_Lean_Elab_Command_elabRunCmd___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___closed__1);
l_Lean_Elab_Command_elabRunCmd___closed__2 = _init_l_Lean_Elab_Command_elabRunCmd___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___closed__2);
l_Lean_Elab_Command_elabRunCmd___closed__3 = _init_l_Lean_Elab_Command_elabRunCmd___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___closed__3);
l_Lean_Elab_Command_elabRunCmd___closed__4 = _init_l_Lean_Elab_Command_elabRunCmd___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabRunCmd___closed__4);
l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__1);
l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__2);
l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunCmd__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Command_elabRunCmd__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Command_elabRunCmd_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Command_elabRunElab___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabRunElab___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabRunElab___lambda__1___closed__1);
l_Lean_Elab_Command_elabRunElab___lambda__1___closed__2 = _init_l_Lean_Elab_Command_elabRunElab___lambda__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabRunElab___lambda__1___closed__2);
l_Lean_Elab_Command_elabRunElab___closed__1 = _init_l_Lean_Elab_Command_elabRunElab___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabRunElab___closed__1);
l_Lean_Elab_Command_elabRunElab___closed__2 = _init_l_Lean_Elab_Command_elabRunElab___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabRunElab___closed__2);
l_Lean_Elab_Command_elabRunElab___closed__3 = _init_l_Lean_Elab_Command_elabRunElab___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabRunElab___closed__3);
l_Lean_Elab_Command_elabRunElab___closed__4 = _init_l_Lean_Elab_Command_elabRunElab___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabRunElab___closed__4);
l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__1);
l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__2);
l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunElab__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Command_elabRunElab__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Command_elabRunElab_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__1 = _init_l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__1);
l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__2 = _init_l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabRunMeta___lambda__1___closed__2);
l_Lean_Elab_Command_elabRunMeta___closed__1 = _init_l_Lean_Elab_Command_elabRunMeta___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabRunMeta___closed__1);
l_Lean_Elab_Command_elabRunMeta___closed__2 = _init_l_Lean_Elab_Command_elabRunMeta___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabRunMeta___closed__2);
l_Lean_Elab_Command_elabRunMeta___closed__3 = _init_l_Lean_Elab_Command_elabRunMeta___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabRunMeta___closed__3);
l_Lean_Elab_Command_elabRunMeta___closed__4 = _init_l_Lean_Elab_Command_elabRunMeta___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabRunMeta___closed__4);
l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__1);
l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__2);
l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunMeta__1___closed__3);
if (builtin) {res = l___regBuiltin_Lean_Elab_Command_elabRunMeta__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__1 = _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__1();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__1);
l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__2 = _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__2();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__2);
l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__3 = _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__3();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__3);
l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__4 = _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__4();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__4);
l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__5 = _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__5();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__5);
l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__6 = _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__6();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__6);
l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__7 = _init_l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__7();
lean_mark_persistent(l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1___closed__7);
if (builtin) {res = l___regBuiltin_Lean_Elab_Command_elabRunMeta_declRange__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
