chore: update stage0

This commit is contained in:
Lean stage0 autoupdater 2025-04-23 14:54:30 +00:00
parent 57915af218
commit 92927cb4df
31 changed files with 33589 additions and 20460 deletions

View file

@ -191,10 +191,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules")
# Initialize CXXFLAGS.
set(CMAKE_CXX_FLAGS "${LEAN_EXTRA_CXX_FLAGS} -DLEAN_BUILD_TYPE=\"${CMAKE_BUILD_TYPE}\" -DLEAN_EXPORTING")
set(CMAKE_CXX_FLAGS_DEBUG "-DLEAN_DEBUG -DLEAN_TRACE")
set(CMAKE_CXX_FLAGS_DEBUG "-DLEAN_DEBUG")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-DNDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-DNDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHASSERT "-DLEAN_DEBUG")
# SPLIT_STACK
if (SPLIT_STACK)
@ -221,6 +222,7 @@ elseif (MSVC)
set(CMAKE_CXX_FLAGS_DEBUG "/Od /Zi ${CMAKE_CXX_FLAGS_DEBUG}")
set(CMAKE_CXX_FLAGS_MINSIZEREL "/Os /Zc:inline ${CMAKE_CXX_FLAGS_MINSIZEREL}")
set(CMAKE_CXX_FLAGS_RELEASE "/O2 /Oi /Oy /Zc:inline ${CMAKE_CXX_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_RELWITHASSERT "/O2 /Oi /Oy /Zc:inline ${CMAKE_CXX_FLAGS_RELWITHASSERT}")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/O2 /Oi /Zi ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
set(LEAN_EXTRA_LINKER_FLAGS "/LTCG:INCREMENTAL ${LEAN_EXTRA_LINKER_FLAGS}")
set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} ${LEAN_EXTRA_LINKER_FLAGS}")
@ -240,11 +242,13 @@ if (NOT MSVC)
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os ${CMAKE_CXX_FLAGS_MINSIZEREL}")
endif ()
set(CMAKE_CXX_FLAGS_RELEASE "-O3 ${CMAKE_CXX_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_RELWITHASSERT "-O3 ${CMAKE_CXX_FLAGS_RELWITHASSERT}")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g3 -fno-omit-frame-pointer ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
elseif (MULTI_THREAD)
set(CMAKE_CXX_FLAGS_DEBUG "/MTd ${CMAKE_CXX_FLAGS_DEBUG}")
set(CMAKE_CXX_FLAGS_MINSIZEREL "/MT ${CMAKE_CXX_FLAGS_MINSIZEREL}")
set(CMAKE_CXX_FLAGS_RELEASE "/MT ${CMAKE_CXX_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_RELWITHASSERT "/MT ${CMAKE_CXX_FLAGS_RELWITHASSERT}")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MT ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
endif ()
@ -843,6 +847,4 @@ endif()
if(USE_LAKE AND STAGE EQUAL 1)
configure_file(${LEAN_SOURCE_DIR}/lakefile.toml.in ${LEAN_SOURCE_DIR}/lakefile.toml)
configure_file(${LEAN_SOURCE_DIR}/lakefile.toml.in ${LEAN_SOURCE_DIR}/../tests/lakefile.toml)
configure_file(${LEAN_SOURCE_DIR}/lakefile.toml.in ${LEAN_SOURCE_DIR}/../lakefile.toml)
endif()

View file

@ -116,8 +116,10 @@ reference counting is not needed (== 0). We don't use reference counting for obj
marked as persistent.
For "small" objects stored in compact regions, the field `m_cs_sz` contains the object size. For "small" objects not
stored in compact regions, we use the page information to retrieve its size. This is not an option
with mimalloc, so there we always use `m_cs_sz` (TODO: do everywhere?).
stored in compact regions, we use the page information to retrieve its size so that we can reuse
`m_cs_sz` to store the deletion list inline. Using the page information is not an option with
mimalloc, so there we always use `m_cs_sz`; reusing it for the deletion list is fine in this case as
we do not need the size after an object has been marked for deletion (see `lean_free_small_object`).
During deallocation and 64-bit machines, the fields `m_rc` and `m_cs_sz` store the next object in the deletion TODO list.
These two fields together have 48-bits, and this is enough for modern computers.
@ -421,7 +423,9 @@ static inline void lean_free_small_object(lean_object * o) {
#ifdef LEAN_SMALL_ALLOCATOR
lean_free_small(o);
#elif defined(LEAN_MIMALLOC)
mi_free_size((void *)o, o->m_cs_sz);
// We must NOT use `m_cs_sz` here as it is repurposed for the deletion list; as `mi_free_size`
// is no different from `mi_free` at the time of writing, we don't lose anything from that.
mi_free((void *)o);
#else
size_t* ptr = (size_t*)o - 1;
free_sized(ptr, *ptr + sizeof(size_t));

View file

@ -599,6 +599,7 @@ template<typename F> optional<expr> type_checker::reduce_bin_nat_op(F const & f,
optional<expr> type_checker::reduce_pow(expr const & e) {
expr arg1 = whnf(app_arg(app_fn(e)));
if (!is_nat_lit_ext(arg1)) return none_expr();
expr arg2 = whnf(app_arg(e));
if (!is_nat_lit_ext(arg2)) return none_expr();
nat v1 = get_nat_val(arg1);

View file

@ -41,7 +41,7 @@ ifeq "${USE_LAKE} ${STAGE}" "ON 1"
# build in parallel
Init:
${PREV_STAGE}/bin/lake build Init Std Lean Lake LakeMain
${PREV_STAGE}/bin/lake build Init Std Lean Lake LakeMain $(LAKE_EXTRA_ARGS)
Std Lean Lake: Init

View file

@ -31,10 +31,12 @@ static lean_object* l_Array_term___x7e_____closed__7;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
static lean_object* l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__6;
static lean_object* l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__3;
static lean_object* l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__19;
static lean_object* l_Array_term___x7e_____closed__3;
static lean_object* l_Array_term___x7e_____closed__4;
static lean_object* l_Array_term___x7e_____closed__2;
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
static lean_object* l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__18;
static lean_object* l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__9;
static lean_object* l_Array_term___x7e_____closed__6;
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -286,56 +288,78 @@ return x_3;
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__11() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("List", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__11;
x_2 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__6;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__12;
x_1 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__9;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__14() {
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__12() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("List", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__13;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
x_1 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__12;
x_2 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__6;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__13;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__10;
x_1 = lean_box(0);
x_2 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__14;
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_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__11;
x_2 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__15;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__16() {
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__10;
x_2 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__16;
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_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__18() {
_start:
{
lean_object* x_1;
@ -343,12 +367,12 @@ x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__17() {
static lean_object* _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__16;
x_2 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__18;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
@ -392,14 +416,14 @@ lean_dec(x_2);
x_17 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__8;
x_18 = l_Lean_addMacroScope(x_16, x_17, x_15);
x_19 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__7;
x_20 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__15;
x_20 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__17;
lean_inc(x_14);
x_21 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_21, 0, x_14);
lean_ctor_set(x_21, 1, x_19);
lean_ctor_set(x_21, 2, x_18);
lean_ctor_set(x_21, 3, x_20);
x_22 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__17;
x_22 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__19;
lean_inc(x_14);
x_23 = l_Lean_Syntax_node2(x_14, x_22, x_9, x_11);
x_24 = l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__5;
@ -600,6 +624,10 @@ l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1__
lean_mark_persistent(l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__16);
l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__17 = _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__17();
lean_mark_persistent(l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__17);
l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__18 = _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__18();
lean_mark_persistent(l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__18);
l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__19 = _init_l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__19();
lean_mark_persistent(l_Array___aux__Init__Data__Array__Perm______macroRules__Array__term___x7e____1___closed__19);
l_Array___aux__Init__Data__Array__Perm______unexpand__Array__Perm__1___closed__1 = _init_l_Array___aux__Init__Data__Array__Perm______unexpand__Array__Perm__1___closed__1();
lean_mark_persistent(l_Array___aux__Init__Data__Array__Perm______unexpand__Array__Perm__1___closed__1);
l_Array___aux__Init__Data__Array__Perm______unexpand__Array__Perm__1___closed__2 = _init_l_Array___aux__Init__Data__Array__Perm______unexpand__Array__Perm__1___closed__2();

View file

@ -25,6 +25,7 @@ static lean_object* l_Vector___aux__Init__Data__Vector__Perm______macroRules__Ve
static lean_object* l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__1;
static lean_object* l_Vector_term___x7e_____closed__2;
LEAN_EXPORT lean_object* l_Vector_instTransPerm___boxed(lean_object*, lean_object*);
static lean_object* l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__23;
static lean_object* l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__15;
LEAN_EXPORT lean_object* l_Vector_term___x7e__;
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
@ -59,6 +60,7 @@ static lean_object* l_Vector___aux__Init__Data__Vector__Perm______macroRules__Ve
static lean_object* l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__18;
static lean_object* l_Vector_term___x7e_____closed__5;
static lean_object* l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__2;
static lean_object* l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__22;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Vector___aux__Init__Data__Vector__Perm______unexpand__Vector__Perm__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Vector_term___x7e_____closed__10;
@ -291,80 +293,78 @@ return x_3;
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__11() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("Array", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__11;
x_2 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__6;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__12;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__9;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__12() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("Array", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__12;
x_2 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__6;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__13;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__15() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("List", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__15() {
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__14;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__15;
x_2 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__6;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__15;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__16;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
lean_object* x_1; lean_object* x_2;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__16;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__13;
x_1 = lean_box(0);
x_2 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__17;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
@ -372,7 +372,7 @@ static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRul
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__10;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__14;
x_2 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__18;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
@ -383,17 +383,41 @@ return x_3;
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__20() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__11;
x_2 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__19;
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_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_1 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__10;
x_2 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__20;
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_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__22() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__22;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
@ -437,14 +461,14 @@ lean_dec(x_2);
x_17 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__8;
x_18 = l_Lean_addMacroScope(x_16, x_17, x_15);
x_19 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__7;
x_20 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__19;
x_20 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__21;
lean_inc(x_14);
x_21 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_21, 0, x_14);
lean_ctor_set(x_21, 1, x_19);
lean_ctor_set(x_21, 2, x_18);
lean_ctor_set(x_21, 3, x_20);
x_22 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__21;
x_22 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__23;
lean_inc(x_14);
x_23 = l_Lean_Syntax_node2(x_14, x_22, x_9, x_11);
x_24 = l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__5;
@ -662,6 +686,10 @@ l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____
lean_mark_persistent(l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__20);
l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__21 = _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__21();
lean_mark_persistent(l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__21);
l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__22 = _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__22();
lean_mark_persistent(l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__22);
l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__23 = _init_l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__23();
lean_mark_persistent(l_Vector___aux__Init__Data__Vector__Perm______macroRules__Vector__term___x7e____1___closed__23);
l_Vector___aux__Init__Data__Vector__Perm______unexpand__Vector__Perm__1___closed__1 = _init_l_Vector___aux__Init__Data__Vector__Perm______unexpand__Vector__Perm__1___closed__1();
lean_mark_persistent(l_Vector___aux__Init__Data__Vector__Perm______unexpand__Vector__Perm__1___closed__1);
l_Vector___aux__Init__Data__Vector__Perm______unexpand__Vector__Perm__1___closed__2 = _init_l_Vector___aux__Init__Data__Vector__Perm______unexpand__Vector__Perm__1___closed__2();

View file

@ -4932,21 +4932,36 @@ x_6 = lean_int_emod(x_1, x_5);
lean_dec(x_5);
x_7 = l_Lean_Grind_CommRing_instInhabitedExpr___closed__1;
x_8 = lean_int_dec_eq(x_6, x_7);
lean_dec(x_6);
if (x_8 == 0)
{
lean_object* x_9;
x_9 = l_Lean_Grind_CommRing_Poly_mulMonC_go(x_1, x_2, x_4, x_3);
return x_9;
lean_object* x_9; uint8_t x_10;
x_9 = lean_box(0);
x_10 = l___private_Init_Grind_CommRing_Poly_0__Lean_Grind_CommRing_beqMon____x40_Init_Grind_CommRing_Poly___hyg_951_(x_2, x_9);
if (x_10 == 0)
{
lean_object* x_11;
lean_dec(x_6);
x_11 = l_Lean_Grind_CommRing_Poly_mulMonC_go(x_1, x_2, x_4, x_3);
return x_11;
}
else
{
lean_object* x_10;
lean_object* x_12;
lean_dec(x_2);
x_12 = l_Lean_Grind_CommRing_Poly_mulConstC(x_6, x_3, x_4);
lean_dec(x_6);
return x_12;
}
}
else
{
lean_object* x_13;
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_10 = l_Lean_Grind_CommRing_instInhabitedPoly___closed__1;
return x_10;
x_13 = l_Lean_Grind_CommRing_instInhabitedPoly___closed__1;
return x_13;
}
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

5133
stage0/stdlib/Lake/DSL/Syntax.c generated Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -809,75 +809,78 @@ x_103 = l_Std_DHashMap_Internal_AssocList_get_x3f___at_Lean_Compiler_LCNF_NormLe
lean_dec(x_102);
if (lean_obj_tag(x_103) == 0)
{
lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; uint8_t x_108;
lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; uint8_t x_109;
x_104 = lean_ctor_get(x_2, 0);
lean_inc(x_104);
x_105 = l_Lean_Compiler_LCNF_NormLevelParam_normLevel___closed__2;
x_106 = lean_name_append_index_after(x_105, x_104);
x_107 = l_Lean_Level_param___override(x_106);
x_108 = !lean_is_exclusive(x_2);
if (x_108 == 0)
x_108 = lean_ctor_get(x_2, 0);
lean_inc(x_108);
x_109 = !lean_is_exclusive(x_2);
if (x_109 == 0)
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115;
x_109 = lean_ctor_get(x_2, 0);
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116;
x_110 = lean_ctor_get(x_2, 1);
x_111 = lean_ctor_get(x_2, 2);
x_112 = lean_unsigned_to_nat(1u);
x_113 = lean_nat_add(x_109, x_112);
lean_dec(x_109);
x_112 = lean_ctor_get(x_2, 0);
lean_dec(x_112);
x_113 = lean_unsigned_to_nat(1u);
x_114 = lean_nat_add(x_108, x_113);
lean_dec(x_108);
lean_inc(x_85);
x_114 = lean_array_push(x_111, x_85);
x_115 = !lean_is_exclusive(x_110);
if (x_115 == 0)
x_115 = lean_array_push(x_111, x_85);
x_116 = !lean_is_exclusive(x_110);
if (x_116 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; size_t x_119; size_t x_120; size_t x_121; lean_object* x_122; uint8_t x_123;
x_116 = lean_ctor_get(x_110, 0);
x_117 = lean_ctor_get(x_110, 1);
x_118 = lean_array_get_size(x_117);
x_119 = lean_usize_of_nat(x_118);
lean_dec(x_118);
x_120 = lean_usize_sub(x_119, x_99);
x_121 = lean_usize_land(x_97, x_120);
x_122 = lean_array_uget(x_117, x_121);
x_123 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__2(x_85, x_122);
if (x_123 == 0)
lean_object* x_117; lean_object* x_118; lean_object* x_119; size_t x_120; size_t x_121; size_t x_122; lean_object* x_123; uint8_t x_124;
x_117 = lean_ctor_get(x_110, 0);
x_118 = lean_ctor_get(x_110, 1);
x_119 = lean_array_get_size(x_118);
x_120 = lean_usize_of_nat(x_119);
lean_dec(x_119);
x_121 = lean_usize_sub(x_120, x_99);
x_122 = lean_usize_land(x_97, x_121);
x_123 = lean_array_uget(x_118, x_122);
x_124 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__2(x_85, x_123);
if (x_124 == 0)
{
lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; uint8_t x_132;
x_124 = lean_nat_add(x_116, x_112);
lean_dec(x_116);
lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; uint8_t x_133;
x_125 = lean_nat_add(x_117, x_113);
lean_dec(x_117);
lean_inc(x_107);
x_125 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_125, 0, x_85);
lean_ctor_set(x_125, 1, x_107);
lean_ctor_set(x_125, 2, x_122);
x_126 = lean_array_uset(x_117, x_121, x_125);
x_127 = lean_unsigned_to_nat(4u);
x_128 = lean_nat_mul(x_124, x_127);
x_129 = lean_unsigned_to_nat(3u);
x_130 = lean_nat_div(x_128, x_129);
lean_dec(x_128);
x_131 = lean_array_get_size(x_126);
x_132 = lean_nat_dec_le(x_130, x_131);
x_126 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_126, 0, x_85);
lean_ctor_set(x_126, 1, x_107);
lean_ctor_set(x_126, 2, x_123);
x_127 = lean_array_uset(x_118, x_122, x_126);
x_128 = lean_unsigned_to_nat(4u);
x_129 = lean_nat_mul(x_125, x_128);
x_130 = lean_unsigned_to_nat(3u);
x_131 = lean_nat_div(x_129, x_130);
lean_dec(x_129);
x_132 = lean_array_get_size(x_127);
x_133 = lean_nat_dec_le(x_131, x_132);
lean_dec(x_132);
lean_dec(x_131);
lean_dec(x_130);
if (x_132 == 0)
if (x_133 == 0)
{
lean_object* x_133;
x_133 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__3(x_126);
lean_ctor_set(x_110, 1, x_133);
lean_ctor_set(x_110, 0, x_124);
lean_ctor_set(x_2, 2, x_114);
lean_ctor_set(x_2, 0, x_113);
lean_object* x_134;
x_134 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__3(x_127);
lean_ctor_set(x_110, 1, x_134);
lean_ctor_set(x_110, 0, x_125);
lean_ctor_set(x_2, 2, x_115);
lean_ctor_set(x_2, 0, x_114);
lean_ctor_set(x_84, 1, x_2);
lean_ctor_set(x_84, 0, x_107);
return x_84;
}
else
{
lean_ctor_set(x_110, 1, x_126);
lean_ctor_set(x_110, 0, x_124);
lean_ctor_set(x_2, 2, x_114);
lean_ctor_set(x_2, 0, x_113);
lean_ctor_set(x_110, 1, x_127);
lean_ctor_set(x_110, 0, x_125);
lean_ctor_set(x_2, 2, x_115);
lean_ctor_set(x_2, 0, x_114);
lean_ctor_set(x_84, 1, x_2);
lean_ctor_set(x_84, 0, x_107);
return x_84;
@ -885,15 +888,15 @@ return x_84;
}
else
{
lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137;
x_134 = lean_box(0);
x_135 = lean_array_uset(x_117, x_121, x_134);
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138;
x_135 = lean_box(0);
x_136 = lean_array_uset(x_118, x_122, x_135);
lean_inc(x_107);
x_136 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__6(x_85, x_107, x_122);
x_137 = lean_array_uset(x_135, x_121, x_136);
lean_ctor_set(x_110, 1, x_137);
lean_ctor_set(x_2, 2, x_114);
lean_ctor_set(x_2, 0, x_113);
x_137 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__6(x_85, x_107, x_123);
x_138 = lean_array_uset(x_136, x_122, x_137);
lean_ctor_set(x_110, 1, x_138);
lean_ctor_set(x_2, 2, x_115);
lean_ctor_set(x_2, 0, x_114);
lean_ctor_set(x_84, 1, x_2);
lean_ctor_set(x_84, 0, x_107);
return x_84;
@ -901,62 +904,62 @@ return x_84;
}
else
{
lean_object* x_138; lean_object* x_139; lean_object* x_140; size_t x_141; size_t x_142; size_t x_143; lean_object* x_144; uint8_t x_145;
x_138 = lean_ctor_get(x_110, 0);
x_139 = lean_ctor_get(x_110, 1);
lean_object* x_139; lean_object* x_140; lean_object* x_141; size_t x_142; size_t x_143; size_t x_144; lean_object* x_145; uint8_t x_146;
x_139 = lean_ctor_get(x_110, 0);
x_140 = lean_ctor_get(x_110, 1);
lean_inc(x_140);
lean_inc(x_139);
lean_inc(x_138);
lean_dec(x_110);
x_140 = lean_array_get_size(x_139);
x_141 = lean_usize_of_nat(x_140);
lean_dec(x_140);
x_142 = lean_usize_sub(x_141, x_99);
x_143 = lean_usize_land(x_97, x_142);
x_144 = lean_array_uget(x_139, x_143);
x_145 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__2(x_85, x_144);
if (x_145 == 0)
x_141 = lean_array_get_size(x_140);
x_142 = lean_usize_of_nat(x_141);
lean_dec(x_141);
x_143 = lean_usize_sub(x_142, x_99);
x_144 = lean_usize_land(x_97, x_143);
x_145 = lean_array_uget(x_140, x_144);
x_146 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__2(x_85, x_145);
if (x_146 == 0)
{
lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; uint8_t x_154;
x_146 = lean_nat_add(x_138, x_112);
lean_dec(x_138);
lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; uint8_t x_155;
x_147 = lean_nat_add(x_139, x_113);
lean_dec(x_139);
lean_inc(x_107);
x_147 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_147, 0, x_85);
lean_ctor_set(x_147, 1, x_107);
lean_ctor_set(x_147, 2, x_144);
x_148 = lean_array_uset(x_139, x_143, x_147);
x_149 = lean_unsigned_to_nat(4u);
x_150 = lean_nat_mul(x_146, x_149);
x_151 = lean_unsigned_to_nat(3u);
x_152 = lean_nat_div(x_150, x_151);
lean_dec(x_150);
x_153 = lean_array_get_size(x_148);
x_154 = lean_nat_dec_le(x_152, x_153);
x_148 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_148, 0, x_85);
lean_ctor_set(x_148, 1, x_107);
lean_ctor_set(x_148, 2, x_145);
x_149 = lean_array_uset(x_140, x_144, x_148);
x_150 = lean_unsigned_to_nat(4u);
x_151 = lean_nat_mul(x_147, x_150);
x_152 = lean_unsigned_to_nat(3u);
x_153 = lean_nat_div(x_151, x_152);
lean_dec(x_151);
x_154 = lean_array_get_size(x_149);
x_155 = lean_nat_dec_le(x_153, x_154);
lean_dec(x_154);
lean_dec(x_153);
lean_dec(x_152);
if (x_154 == 0)
if (x_155 == 0)
{
lean_object* x_155; lean_object* x_156;
x_155 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__3(x_148);
x_156 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_156, 0, x_146);
lean_ctor_set(x_156, 1, x_155);
lean_ctor_set(x_2, 2, x_114);
lean_ctor_set(x_2, 1, x_156);
lean_ctor_set(x_2, 0, x_113);
lean_ctor_set(x_84, 1, x_2);
lean_ctor_set(x_84, 0, x_107);
return x_84;
}
else
{
lean_object* x_157;
lean_object* x_156; lean_object* x_157;
x_156 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__3(x_149);
x_157 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_157, 0, x_146);
lean_ctor_set(x_157, 1, x_148);
lean_ctor_set(x_2, 2, x_114);
lean_ctor_set(x_157, 0, x_147);
lean_ctor_set(x_157, 1, x_156);
lean_ctor_set(x_2, 2, x_115);
lean_ctor_set(x_2, 1, x_157);
lean_ctor_set(x_2, 0, x_113);
lean_ctor_set(x_2, 0, x_114);
lean_ctor_set(x_84, 1, x_2);
lean_ctor_set(x_84, 0, x_107);
return x_84;
}
else
{
lean_object* x_158;
x_158 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_158, 0, x_147);
lean_ctor_set(x_158, 1, x_149);
lean_ctor_set(x_2, 2, x_115);
lean_ctor_set(x_2, 1, x_158);
lean_ctor_set(x_2, 0, x_114);
lean_ctor_set(x_84, 1, x_2);
lean_ctor_set(x_84, 0, x_107);
return x_84;
@ -964,18 +967,18 @@ return x_84;
}
else
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162;
x_158 = lean_box(0);
x_159 = lean_array_uset(x_139, x_143, x_158);
lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163;
x_159 = lean_box(0);
x_160 = lean_array_uset(x_140, x_144, x_159);
lean_inc(x_107);
x_160 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__6(x_85, x_107, x_144);
x_161 = lean_array_uset(x_159, x_143, x_160);
x_162 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_162, 0, x_138);
lean_ctor_set(x_162, 1, x_161);
lean_ctor_set(x_2, 2, x_114);
lean_ctor_set(x_2, 1, x_162);
lean_ctor_set(x_2, 0, x_113);
x_161 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Compiler_LCNF_NormLevelParam_normLevel___spec__6(x_85, x_107, x_145);
x_162 = lean_array_uset(x_160, x_144, x_161);
x_163 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_163, 0, x_139);
lean_ctor_set(x_163, 1, x_162);
lean_ctor_set(x_2, 2, x_115);
lean_ctor_set(x_2, 1, x_163);
lean_ctor_set(x_2, 0, x_114);
lean_ctor_set(x_84, 1, x_2);
lean_ctor_set(x_84, 0, x_107);
return x_84;
@ -984,17 +987,15 @@ return x_84;
}
else
{
lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; size_t x_173; size_t x_174; size_t x_175; lean_object* x_176; uint8_t x_177;
x_163 = lean_ctor_get(x_2, 0);
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; size_t x_173; size_t x_174; size_t x_175; lean_object* x_176; uint8_t x_177;
x_164 = lean_ctor_get(x_2, 1);
x_165 = lean_ctor_get(x_2, 2);
lean_inc(x_165);
lean_inc(x_164);
lean_inc(x_163);
lean_dec(x_2);
x_166 = lean_unsigned_to_nat(1u);
x_167 = lean_nat_add(x_163, x_166);
lean_dec(x_163);
x_167 = lean_nat_add(x_108, x_166);
lean_dec(x_108);
lean_inc(x_85);
x_168 = lean_array_push(x_165, x_85);
x_169 = lean_ctor_get(x_164, 0);

View file

@ -16,7 +16,7 @@ extern "C" {
lean_object* l_Lean_Language_Lean_process(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_profileit(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommands___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__8(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__8(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_runFrontend___spec__2(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setMessages___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Firefox_Profile_export(lean_object*, double, lean_object*, lean_object*, lean_object*);
@ -24,24 +24,21 @@ lean_object* l_Lean_Json_compress(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getParserState(lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__9(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_IO_processCommandsIncrementally(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getCommandState___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__1(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2(lean_object*, lean_object*, uint32_t, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_profileitIOUnsafe___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_runFrontend___lambda__4___closed__2;
lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*);
double lean_float_div(double, double);
static lean_object* l_Lean_Elab_runFrontend___lambda__9___closed__1;
static lean_object* l_Lean_Elab_process___closed__1;
lean_object* l_Lean_Elab_Command_elabCommandTopLevel(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_toString(lean_object*, uint8_t, lean_object*);
static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__1;
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getParserState___rarg(lean_object*, lean_object*);
lean_object* l___private_Init_GetElem_0__List_get_x21Internal___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__2;
uint8_t lean_usize_dec_eq(size_t, size_t);
lean_object* l_Lean_Elab_Command_mkState(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_runFrontend___spec__1(size_t, size_t, lean_object*);
@ -49,10 +46,10 @@ LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__1___boxed(lean_object
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setCommandState___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Lean_Language_Lean_Types_0__Lean_Language_Lean_pushOpt___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommands(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_runFrontend___lambda__7___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_updateCmdPos___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__7___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_Lean_Elab_runFrontend___lambda__7___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*);
static lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg___closed__1;
static lean_object* l_Lean_Elab_runFrontend___lambda__4___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_updateCmdPos___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_List_head_x21___rarg(lean_object*, lean_object*);
@ -62,13 +59,13 @@ static lean_object* l_Lean_Elab_runFrontend___lambda__6___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_runCommandElabM(lean_object*);
static double l_Lean_Elab_runFrontend___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getCommandState___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__3___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__1___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Server_findModuleRefs(lean_object*, lean_object*, uint8_t, uint8_t);
static lean_object* l_Lean_Elab_runFrontend___lambda__8___closed__1;
static lean_object* l_Lean_Elab_runFrontend___lambda__5___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getCommandState___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__8___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*);
size_t lean_usize_of_nat(lean_object*);
uint8_t l_Lean_Parser_isTerminalCommand(lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_runFrontend___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
@ -77,7 +74,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend(lean_object*
lean_object* l_Lean_Language_Lean_processCommands(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_runFrontend___closed__3;
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_runFrontend___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__7(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3___closed__1;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__2(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
@ -88,7 +85,7 @@ LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Elab_IO_processCommandsInc
extern lean_object* l_Lean_Elab_async;
lean_object* lean_st_ref_get(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setParserState___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__6___boxed(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_runFrontend___lambda__6___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* l_Lean_Parser_mkInputContext(lean_object*, lean_object*, uint8_t);
lean_object* l___private_Lean_Util_Profiler_0__Lean_Firefox_toJsonProfile____x40_Lean_Util_Profiler___hyg_4847_(lean_object*);
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
@ -100,22 +97,17 @@ lean_object* l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5(size_t, size_t, 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_Syntax_getArg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__3;
extern lean_object* l_Lean_Language_Lean_experimental_module;
lean_object* lean_task_get_own(lean_object*);
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
lean_object* l_Lean_Server_ModuleRefs_toLspModuleRefs(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__1;
double l_Float_ofScientific(lean_object*, uint8_t, lean_object*);
static lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg___closed__2;
static lean_object* l_Lean_Elab_runFrontend___lambda__5___closed__2;
LEAN_EXPORT lean_object* lean_run_frontend(lean_object*, lean_object*, lean_object*, lean_object*, uint32_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_runFrontend___spec__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setMessages(lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_NameSet_empty;
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_Elab_runFrontend___lambda__3(lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__2___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getCommandState(lean_object*);
static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__3;
@ -127,15 +119,14 @@ lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go(lea
lean_object* l_Lean_Language_Lean_waitForFinalCmdState_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_runFrontend___spec__3(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_IO_processCommandsIncrementally_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, double, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isNone(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__1(lean_object*, lean_object*, uint32_t, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_runFrontend___closed__2;
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__4(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__4___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_firstFrontendMacroScope;
lean_object* l_Lean_Option_setIfNotSet___at_Lean_Language_Lean_process_processHeader___spec__2(lean_object*, lean_object*, uint8_t);
extern lean_object* l_Lean_Elab_Command_instInhabitedScope;
@ -147,7 +138,7 @@ size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Language_SnapshotTask_map___rarg(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
lean_object* l_Lean_MessageLog_append(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_Elab_runFrontend___lambda__4(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, double, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getInputContext___boxed(lean_object*, lean_object*, lean_object*);
lean_object* lean_array_uget(lean_object*, size_t);
size_t lean_array_size(lean_object*);
@ -163,16 +154,16 @@ lean_object* lean_array_get_size(lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setParserState(lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Option_get_x3f___at_Lean_addTraceAsMessages___spec__17(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Frontend_processCommand___closed__1;
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getParserState___boxed(lean_object*);
lean_object* l_Lean_Parser_parseCommand(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, double, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, double, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_internal_cmdlineSnapshots;
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_updateCmdPos(lean_object*);
static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4;
@ -3045,75 +3036,7 @@ lean_ctor_set(x_10, 1, x_7);
return x_10;
}
}
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__2___closed__1() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_Language_Lean_experimental_module;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__2___closed__2() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("`module` keyword is experimental and not enabled here", 53, 53);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__2___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Elab_runFrontend___lambda__2___closed__2;
x_2 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2(lean_object* x_1, lean_object* x_2, uint32_t 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;
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_5, x_8);
x_10 = l_Lean_Syntax_isNone(x_9);
lean_dec(x_9);
if (x_10 == 0)
{
lean_object* x_11; uint8_t x_12;
x_11 = l_Lean_Elab_runFrontend___lambda__2___closed__1;
x_12 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_2, x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14;
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_13 = l_Lean_Elab_runFrontend___lambda__2___closed__3;
x_14 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_7);
return x_14;
}
else
{
lean_object* x_15; lean_object* x_16;
x_15 = lean_box(0);
x_16 = l_Lean_Elab_runFrontend___lambda__1(x_1, x_2, x_3, x_4, x_15, x_6, x_7);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18;
x_17 = lean_box(0);
x_18 = l_Lean_Elab_runFrontend___lambda__1(x_1, x_2, x_3, x_4, x_17, x_6, x_7);
return x_18;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6;
@ -3144,7 +3067,7 @@ return x_11;
}
}
}
LEAN_EXPORT uint8_t l_Lean_Elab_runFrontend___lambda__4(lean_object* x_1) {
LEAN_EXPORT uint8_t l_Lean_Elab_runFrontend___lambda__3(lean_object* x_1) {
_start:
{
uint8_t x_2;
@ -3152,7 +3075,7 @@ x_2 = 0;
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__5___closed__1() {
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__4___closed__1() {
_start:
{
lean_object* x_1;
@ -3160,26 +3083,26 @@ x_1 = l_Lean_trace_profiler_output;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__5___closed__2() {
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__4___closed__2() {
_start:
{
lean_object* x_1;
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_runFrontend___lambda__4___boxed), 1, 0);
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_runFrontend___lambda__3___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, double x_5, lean_object* x_6, lean_object* x_7) {
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, double x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9;
x_8 = l_Lean_Elab_runFrontend___lambda__5___closed__1;
x_8 = l_Lean_Elab_runFrontend___lambda__4___closed__1;
x_9 = l_Lean_Option_get_x3f___at_Lean_addTraceAsMessages___spec__17(x_3, x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11;
lean_dec(x_4);
x_10 = lean_box(0);
x_11 = l_Lean_Elab_runFrontend___lambda__3(x_1, x_2, x_10, x_7);
x_11 = l_Lean_Elab_runFrontend___lambda__2(x_1, x_2, x_10, x_7);
return x_11;
}
else
@ -3194,7 +3117,7 @@ x_14 = lean_array_size(x_13);
x_15 = 0;
x_16 = l_Array_mapMUnsafe_map___at_Lean_Elab_runFrontend___spec__1(x_14, x_15, x_13);
x_17 = 1;
x_18 = l_Lean_Elab_runFrontend___lambda__5___closed__2;
x_18 = l_Lean_Elab_runFrontend___lambda__4___closed__2;
x_19 = l_Lean_Name_toString(x_4, x_17, x_18);
x_20 = l_Lean_Firefox_Profile_export(x_19, x_5, x_16, x_3, x_7);
lean_dec(x_16);
@ -3216,7 +3139,7 @@ lean_inc(x_26);
x_27 = lean_ctor_get(x_25, 1);
lean_inc(x_27);
lean_dec(x_25);
x_28 = l_Lean_Elab_runFrontend___lambda__3(x_1, x_2, x_26, x_27);
x_28 = l_Lean_Elab_runFrontend___lambda__2(x_1, x_2, x_26, x_27);
lean_dec(x_26);
return x_28;
}
@ -3247,7 +3170,7 @@ return x_32;
}
}
}
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__6___closed__1() {
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__5___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2;
@ -3256,7 +3179,7 @@ x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, double x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, double x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
if (lean_obj_tag(x_6) == 0)
@ -3264,7 +3187,7 @@ if (lean_obj_tag(x_6) == 0)
lean_object* x_10; lean_object* x_11;
lean_dec(x_7);
x_10 = lean_box(0);
x_11 = l_Lean_Elab_runFrontend___lambda__5(x_1, x_2, x_3, x_4, x_5, x_10, x_9);
x_11 = l_Lean_Elab_runFrontend___lambda__4(x_1, x_2, x_3, x_4, x_5, x_10, x_9);
return x_11;
}
else
@ -3284,7 +3207,7 @@ lean_dec(x_13);
x_17 = lean_ctor_get(x_7, 2);
lean_inc(x_17);
lean_dec(x_7);
x_18 = l_Lean_Elab_runFrontend___lambda__6___closed__1;
x_18 = l_Lean_Elab_runFrontend___lambda__5___closed__1;
x_19 = 0;
x_20 = l_Lean_Server_findModuleRefs(x_17, x_18, x_19, x_19);
x_21 = l_Lean_Server_ModuleRefs_toLspModuleRefs(x_20, x_9);
@ -3311,7 +3234,7 @@ lean_inc(x_29);
x_30 = lean_ctor_get(x_28, 1);
lean_inc(x_30);
lean_dec(x_28);
x_31 = l_Lean_Elab_runFrontend___lambda__5(x_1, x_2, x_3, x_4, x_5, x_29, x_30);
x_31 = l_Lean_Elab_runFrontend___lambda__4(x_1, x_2, x_3, x_4, x_5, x_29, x_30);
lean_dec(x_29);
return x_31;
}
@ -3353,7 +3276,7 @@ if (x_37 == 0)
lean_object* x_38; uint8_t 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_dec(x_14);
lean_dec(x_13);
x_38 = l_Lean_Elab_runFrontend___lambda__6___closed__1;
x_38 = l_Lean_Elab_runFrontend___lambda__5___closed__1;
x_39 = 0;
x_40 = l_Lean_Server_findModuleRefs(x_36, x_38, x_39, x_39);
x_41 = l_Lean_Server_ModuleRefs_toLspModuleRefs(x_40, x_9);
@ -3380,7 +3303,7 @@ lean_inc(x_49);
x_50 = lean_ctor_get(x_48, 1);
lean_inc(x_50);
lean_dec(x_48);
x_51 = l_Lean_Elab_runFrontend___lambda__5(x_1, x_2, x_3, x_4, x_5, x_49, x_50);
x_51 = l_Lean_Elab_runFrontend___lambda__4(x_1, x_2, x_3, x_4, x_5, x_49, x_50);
lean_dec(x_49);
return x_51;
}
@ -3416,7 +3339,7 @@ size_t x_56; size_t x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; le
x_56 = 0;
x_57 = lean_usize_of_nat(x_14);
lean_dec(x_14);
x_58 = l_Lean_Elab_runFrontend___lambda__6___closed__1;
x_58 = l_Lean_Elab_runFrontend___lambda__5___closed__1;
x_59 = l_Array_foldlMUnsafe_fold___at_Lean_Elab_runFrontend___spec__2(x_13, x_56, x_57, x_58);
lean_dec(x_13);
x_60 = 0;
@ -3446,7 +3369,7 @@ lean_inc(x_70);
x_71 = lean_ctor_get(x_69, 1);
lean_inc(x_71);
lean_dec(x_69);
x_72 = l_Lean_Elab_runFrontend___lambda__5(x_1, x_2, x_3, x_4, x_5, x_70, x_71);
x_72 = l_Lean_Elab_runFrontend___lambda__4(x_1, x_2, x_3, x_4, x_5, x_70, x_71);
lean_dec(x_70);
return x_72;
}
@ -3480,7 +3403,7 @@ return x_76;
}
}
}
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__7___closed__1() {
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__6___closed__1() {
_start:
{
lean_object* x_1;
@ -3488,14 +3411,14 @@ x_1 = lean_mk_string_unchecked(".olean serialization", 20, 20);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, double 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_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, double 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:
{
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_12; lean_object* x_13;
x_12 = lean_box(0);
x_13 = l_Lean_Elab_runFrontend___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_11);
x_13 = l_Lean_Elab_runFrontend___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_12, x_11);
return x_13;
}
else
@ -3508,7 +3431,7 @@ lean_inc(x_2);
x_15 = lean_alloc_closure((void*)(l_Lean_writeModule), 3, 2);
lean_closure_set(x_15, 0, x_2);
lean_closure_set(x_15, 1, x_14);
x_16 = l_Lean_Elab_runFrontend___lambda__7___closed__1;
x_16 = l_Lean_Elab_runFrontend___lambda__6___closed__1;
x_17 = lean_box(0);
x_18 = l_Lean_profileitIOUnsafe___rarg(x_16, x_9, x_15, x_17, x_11);
if (lean_obj_tag(x_18) == 0)
@ -3519,7 +3442,7 @@ lean_inc(x_19);
x_20 = lean_ctor_get(x_18, 1);
lean_inc(x_20);
lean_dec(x_18);
x_21 = l_Lean_Elab_runFrontend___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_19, x_20);
x_21 = l_Lean_Elab_runFrontend___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_19, x_20);
lean_dec(x_19);
return x_21;
}
@ -3552,7 +3475,7 @@ return x_25;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__8(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, double 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_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__7(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, double x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
if (x_1 == 0)
@ -3560,7 +3483,7 @@ if (x_1 == 0)
lean_object* x_14; lean_object* x_15;
lean_dec(x_11);
x_14 = lean_box(0);
x_15 = l_Lean_Elab_runFrontend___lambda__7(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14, x_13);
x_15 = l_Lean_Elab_runFrontend___lambda__6(x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14, x_13);
return x_15;
}
else
@ -3578,7 +3501,7 @@ return x_16;
}
}
}
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__9___closed__1() {
static lean_object* _init_l_Lean_Elab_runFrontend___lambda__8___closed__1() {
_start:
{
lean_object* x_1;
@ -3586,7 +3509,7 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Language_Lean_instToSnapshotTreeCommandP
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__9(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__8(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4;
@ -3640,7 +3563,7 @@ x_16 = lean_ctor_get(x_15, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_15, 1);
lean_inc(x_17);
x_18 = l_Lean_Elab_runFrontend___lambda__9___closed__1;
x_18 = l_Lean_Elab_runFrontend___lambda__8___closed__1;
x_19 = 1;
x_20 = l_Lean_Language_SnapshotTask_map___rarg(x_15, x_18, x_16, x_17, x_19);
lean_ctor_set(x_4, 0, x_20);
@ -3661,7 +3584,7 @@ x_24 = lean_ctor_get(x_23, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_23, 1);
lean_inc(x_25);
x_26 = l_Lean_Elab_runFrontend___lambda__9___closed__1;
x_26 = l_Lean_Elab_runFrontend___lambda__8___closed__1;
x_27 = 1;
x_28 = l_Lean_Language_SnapshotTask_map___rarg(x_23, x_26, x_24, x_25, x_27);
x_29 = lean_alloc_ctor(1, 1, 0);
@ -3693,7 +3616,7 @@ x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
x_36 = lean_ctor_get(x_34, 1);
lean_inc(x_36);
x_37 = l_Lean_Elab_runFrontend___lambda__9___closed__1;
x_37 = l_Lean_Elab_runFrontend___lambda__8___closed__1;
x_38 = 1;
x_39 = l_Lean_Language_SnapshotTask_map___rarg(x_34, x_37, x_35, x_36, x_38);
if (lean_is_scalar(x_33)) {
@ -3773,7 +3696,7 @@ x_26 = l_Lean_Option_setIfNotSet___at_Lean_Language_Lean_process_processHeader__
x_27 = lean_box_uint32(x_5);
lean_inc(x_26);
lean_inc(x_4);
x_28 = lean_alloc_closure((void*)(l_Lean_Elab_runFrontend___lambda__2___boxed), 7, 4);
x_28 = lean_alloc_closure((void*)(l_Lean_Elab_runFrontend___lambda__1___boxed), 7, 4);
lean_closure_set(x_28, 0, x_4);
lean_closure_set(x_28, 1, x_26);
lean_closure_set(x_28, 2, x_27);
@ -3815,7 +3738,7 @@ x_101 = lean_ctor_get(x_100, 1);
lean_inc(x_101);
lean_dec(x_100);
x_102 = l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3___closed__1;
x_103 = lean_alloc_closure((void*)(l_Lean_Elab_runFrontend___lambda__9), 3, 2);
x_103 = lean_alloc_closure((void*)(l_Lean_Elab_runFrontend___lambda__8), 3, 2);
lean_closure_set(x_103, 0, x_29);
lean_closure_set(x_103, 1, x_102);
x_104 = lean_ctor_get(x_101, 0);
@ -3840,7 +3763,7 @@ x_109 = lean_ctor_get(x_108, 1);
lean_inc(x_109);
lean_dec(x_108);
x_110 = l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3___closed__1;
x_111 = lean_alloc_closure((void*)(l_Lean_Elab_runFrontend___lambda__9), 3, 2);
x_111 = lean_alloc_closure((void*)(l_Lean_Elab_runFrontend___lambda__8), 3, 2);
lean_closure_set(x_111, 0, x_29);
lean_closure_set(x_111, 1, x_110);
x_112 = lean_ctor_get(x_109, 0);
@ -3941,7 +3864,7 @@ lean_dec(x_50);
x_52 = lean_box(0);
x_53 = lean_unbox(x_43);
lean_dec(x_43);
x_54 = l_Lean_Elab_runFrontend___lambda__8(x_53, x_39, x_47, x_26, x_4, x_20, x_7, x_22, x_6, x_51, x_29, x_52, x_44);
x_54 = l_Lean_Elab_runFrontend___lambda__7(x_53, x_39, x_47, x_26, x_4, x_20, x_7, x_22, x_6, x_51, x_29, x_52, x_44);
lean_dec(x_51);
lean_dec(x_7);
lean_dec(x_26);
@ -3965,7 +3888,7 @@ lean_inc(x_58);
lean_dec(x_56);
x_59 = lean_unbox(x_43);
lean_dec(x_43);
x_60 = l_Lean_Elab_runFrontend___lambda__8(x_59, x_39, x_47, x_26, x_4, x_20, x_7, x_22, x_6, x_55, x_29, x_57, x_58);
x_60 = l_Lean_Elab_runFrontend___lambda__7(x_59, x_39, x_47, x_26, x_4, x_20, x_7, x_22, x_6, x_55, x_29, x_57, x_58);
lean_dec(x_57);
lean_dec(x_55);
lean_dec(x_7);
@ -4053,7 +3976,7 @@ lean_dec(x_73);
x_75 = lean_box(0);
x_76 = lean_unbox(x_65);
lean_dec(x_65);
x_77 = l_Lean_Elab_runFrontend___lambda__8(x_76, x_39, x_70, x_26, x_4, x_20, x_7, x_22, x_6, x_74, x_29, x_75, x_66);
x_77 = l_Lean_Elab_runFrontend___lambda__7(x_76, x_39, x_70, x_26, x_4, x_20, x_7, x_22, x_6, x_74, x_29, x_75, x_66);
lean_dec(x_74);
lean_dec(x_7);
lean_dec(x_26);
@ -4077,7 +4000,7 @@ lean_inc(x_81);
lean_dec(x_79);
x_82 = lean_unbox(x_65);
lean_dec(x_65);
x_83 = l_Lean_Elab_runFrontend___lambda__8(x_82, x_39, x_70, x_26, x_4, x_20, x_7, x_22, x_6, x_78, x_29, x_80, x_81);
x_83 = l_Lean_Elab_runFrontend___lambda__7(x_82, x_39, x_70, x_26, x_4, x_20, x_7, x_22, x_6, x_78, x_29, x_80, x_81);
lean_dec(x_80);
lean_dec(x_78);
lean_dec(x_7);
@ -4194,7 +4117,7 @@ x_165 = lean_ctor_get(x_163, 1);
lean_inc(x_165);
lean_dec(x_163);
x_166 = l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3___closed__1;
x_167 = lean_alloc_closure((void*)(l_Lean_Elab_runFrontend___lambda__9), 3, 2);
x_167 = lean_alloc_closure((void*)(l_Lean_Elab_runFrontend___lambda__8), 3, 2);
lean_closure_set(x_167, 0, x_29);
lean_closure_set(x_167, 1, x_166);
x_168 = lean_ctor_get(x_165, 0);
@ -4312,7 +4235,7 @@ lean_dec(x_136);
x_138 = lean_box(0);
x_139 = lean_unbox(x_127);
lean_dec(x_127);
x_140 = l_Lean_Elab_runFrontend___lambda__8(x_139, x_124, x_133, x_26, x_4, x_20, x_7, x_22, x_6, x_137, x_29, x_138, x_128);
x_140 = l_Lean_Elab_runFrontend___lambda__7(x_139, x_124, x_133, x_26, x_4, x_20, x_7, x_22, x_6, x_137, x_29, x_138, x_128);
lean_dec(x_137);
lean_dec(x_7);
lean_dec(x_26);
@ -4336,7 +4259,7 @@ lean_inc(x_144);
lean_dec(x_142);
x_145 = lean_unbox(x_127);
lean_dec(x_127);
x_146 = l_Lean_Elab_runFrontend___lambda__8(x_145, x_124, x_133, x_26, x_4, x_20, x_7, x_22, x_6, x_141, x_29, x_143, x_144);
x_146 = l_Lean_Elab_runFrontend___lambda__7(x_145, x_124, x_133, x_26, x_4, x_20, x_7, x_22, x_6, x_141, x_29, x_143, x_144);
lean_dec(x_143);
lean_dec(x_141);
lean_dec(x_7);
@ -4465,69 +4388,57 @@ lean_dec(x_5);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
uint32_t x_8; lean_object* x_9;
x_8 = lean_unbox_uint32(x_3);
lean_dec(x_3);
x_9 = l_Lean_Elab_runFrontend___lambda__2(x_1, x_2, x_8, x_4, x_5, x_6, x_7);
lean_dec(x_6);
lean_dec(x_5);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5;
x_5 = l_Lean_Elab_runFrontend___lambda__3(x_1, x_2, x_3, x_4);
x_5 = l_Lean_Elab_runFrontend___lambda__2(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__4___boxed(lean_object* x_1) {
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__3___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3;
x_2 = l_Lean_Elab_runFrontend___lambda__4(x_1);
x_2 = l_Lean_Elab_runFrontend___lambda__3(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___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_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
double x_8; lean_object* x_9;
x_8 = lean_unbox_float(x_5);
lean_dec(x_5);
x_9 = l_Lean_Elab_runFrontend___lambda__5(x_1, x_2, x_3, x_4, x_8, x_6, x_7);
x_9 = l_Lean_Elab_runFrontend___lambda__4(x_1, x_2, x_3, x_4, x_8, x_6, x_7);
lean_dec(x_6);
lean_dec(x_3);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__6___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_EXPORT lean_object* l_Lean_Elab_runFrontend___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:
{
double x_10; lean_object* x_11;
x_10 = lean_unbox_float(x_5);
lean_dec(x_5);
x_11 = l_Lean_Elab_runFrontend___lambda__6(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9);
x_11 = l_Lean_Elab_runFrontend___lambda__5(x_1, x_2, x_3, x_4, x_10, x_6, x_7, x_8, x_9);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_3);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__7___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_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__6___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:
{
double x_12; lean_object* x_13;
x_12 = lean_unbox_float(x_5);
lean_dec(x_5);
x_13 = l_Lean_Elab_runFrontend___lambda__7(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11);
x_13 = l_Lean_Elab_runFrontend___lambda__6(x_1, x_2, x_3, x_4, x_12, x_6, x_7, x_8, x_9, x_10, x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_6);
@ -4535,7 +4446,7 @@ lean_dec(x_3);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___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, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
uint8_t x_14; double x_15; lean_object* x_16;
@ -4543,7 +4454,7 @@ x_14 = lean_unbox(x_1);
lean_dec(x_1);
x_15 = lean_unbox_float(x_6);
lean_dec(x_6);
x_16 = l_Lean_Elab_runFrontend___lambda__8(x_14, x_2, x_3, x_4, x_5, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
x_16 = l_Lean_Elab_runFrontend___lambda__7(x_14, x_2, x_3, x_4, x_5, x_15, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_7);
@ -4606,22 +4517,16 @@ l_Lean_Elab_process___closed__1 = _init_l_Lean_Elab_process___closed__1();
lean_mark_persistent(l_Lean_Elab_process___closed__1);
l_Lean_Elab_process___closed__2 = _init_l_Lean_Elab_process___closed__2();
lean_mark_persistent(l_Lean_Elab_process___closed__2);
l_Lean_Elab_runFrontend___lambda__2___closed__1 = _init_l_Lean_Elab_runFrontend___lambda__2___closed__1();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__2___closed__1);
l_Lean_Elab_runFrontend___lambda__2___closed__2 = _init_l_Lean_Elab_runFrontend___lambda__2___closed__2();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__2___closed__2);
l_Lean_Elab_runFrontend___lambda__2___closed__3 = _init_l_Lean_Elab_runFrontend___lambda__2___closed__3();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__2___closed__3);
l_Lean_Elab_runFrontend___lambda__4___closed__1 = _init_l_Lean_Elab_runFrontend___lambda__4___closed__1();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__4___closed__1);
l_Lean_Elab_runFrontend___lambda__4___closed__2 = _init_l_Lean_Elab_runFrontend___lambda__4___closed__2();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__4___closed__2);
l_Lean_Elab_runFrontend___lambda__5___closed__1 = _init_l_Lean_Elab_runFrontend___lambda__5___closed__1();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__5___closed__1);
l_Lean_Elab_runFrontend___lambda__5___closed__2 = _init_l_Lean_Elab_runFrontend___lambda__5___closed__2();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__5___closed__2);
l_Lean_Elab_runFrontend___lambda__6___closed__1 = _init_l_Lean_Elab_runFrontend___lambda__6___closed__1();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__6___closed__1);
l_Lean_Elab_runFrontend___lambda__7___closed__1 = _init_l_Lean_Elab_runFrontend___lambda__7___closed__1();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__7___closed__1);
l_Lean_Elab_runFrontend___lambda__9___closed__1 = _init_l_Lean_Elab_runFrontend___lambda__9___closed__1();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__9___closed__1);
l_Lean_Elab_runFrontend___lambda__8___closed__1 = _init_l_Lean_Elab_runFrontend___lambda__8___closed__1();
lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__8___closed__1);
l_Lean_Elab_runFrontend___closed__1 = _init_l_Lean_Elab_runFrontend___closed__1();
l_Lean_Elab_runFrontend___closed__2 = _init_l_Lean_Elab_runFrontend___closed__2();
lean_mark_persistent(l_Lean_Elab_runFrontend___closed__2);

File diff suppressed because it is too large Load diff

View file

@ -90,6 +90,7 @@ static lean_object* l_IO_FS_withIsolatedStreams___at_Lean_Language_Lean_process_
lean_object* l_Lean_Elab_InfoTree_format(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___rarg___closed__6;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__3___closed__4;
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__10___closed__2;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -132,6 +133,7 @@ static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHea
static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__4___closed__5;
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f(lean_object*);
static lean_object* l_Lean_Language_Lean_process_doElab___lambda__3___closed__3;
static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__7___closed__2;
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot;
static lean_object* l_List_forIn_x27_loop___at_Lean_Language_Lean_reparseOptions___spec__1___closed__14;
@ -161,6 +163,7 @@ static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__16___closed_
lean_object* l_Lean_Language_SnapshotTree_waitAll(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__4___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*);
static double l_Lean_Language_Lean_process_processHeader___lambda__7___closed__1;
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__8___closed__6;
extern lean_object* l_ByteArray_empty;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__21___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -174,7 +177,7 @@ static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6___clo
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__16___closed__21;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Language_Lean_process_parseCmd___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__8___closed__5;
static double l_Lean_Language_Lean_process_processHeader___lambda__6___closed__1;
static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6___closed__1;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_instMonadLiftLeanProcessingMLeanProcessingTIO(lean_object*);
static lean_object* l_Lean_Language_Lean_process_doElab___closed__3;
static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6___closed__3;
@ -211,7 +214,7 @@ lean_object* l_Lean_Name_append(lean_object*, lean_object*);
uint8_t l_Lean_checkTraceOption(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_InfoState_substituteLazy(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___rarg___closed__4;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6___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* l_Array_toPArray_x27___rarg(lean_object*);
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__16___closed__20;
extern lean_object* l_Lean_MessageData_nil;
@ -248,6 +251,7 @@ uint8_t l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__4;
LEAN_EXPORT lean_object* l_IO_withStdout___at_Lean_Language_Lean_process_doElab___spec__2(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__15___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*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___rarg___closed__15;
@ -281,7 +285,7 @@ static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_
size_t lean_usize_of_nat(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_doElab___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__8___closed__8;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6(lean_object*, lean_object*, lean_object*, double, lean_object*, lean_object*, lean_object*, lean_object*, double, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__16___closed__19;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Language_Lean_process_parseCmd___spec__2___lambda__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
@ -322,6 +326,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at_Lean_Language_Lean
lean_object* l_Lean_Language_SnapshotTask_bindIO___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*);
static lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__3___closed__2;
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__21___closed__1;
uint8_t l_Lean_Syntax_isNone(lean_object*);
lean_object* l_IO_Promise_result_x21___rarg(lean_object*);
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_getNiceCommandStartPos_x3f___closed__1;
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
@ -414,13 +419,13 @@ LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__20(lean
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions(lean_object*);
static lean_object* l_Lean_Language_Lean_initFn____x40_Lean_Language_Lean___hyg_1166____closed__4;
static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__7___closed__3;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___rarg___closed__8;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* l_List_forIn_x27_loop___at_Lean_Language_Lean_reparseOptions___spec__1___closed__5;
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__8___closed__1;
static lean_object* l_Lean_Language_Lean_process_parseCmd___lambda__3___closed__1;
lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*);
static lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6___closed__4;
static lean_object* l___private_Lean_Language_Lean_0__Lean_Language_Lean_withHeaderExceptions___rarg___closed__18;
LEAN_EXPORT lean_object* l_IO_withStdin___at_Lean_Language_Lean_process_doElab___spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_List_forIn_x27_loop___at_Lean_Language_Lean_reparseOptions___spec__1___closed__6;
@ -16236,7 +16241,79 @@ return x_71;
}
}
}
static double _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__1() {
static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__1() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_Language_Lean_experimental_module;
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__2() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("`module` keyword is experimental and not enabled here", 53, 53);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Language_Lean_process_processHeader___lambda__6___closed__2;
x_2 = lean_alloc_ctor(18, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, double x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, double x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; lean_object* x_15; uint8_t x_16;
x_14 = lean_unsigned_to_nat(0u);
x_15 = l_Lean_Syntax_getArg(x_2, x_14);
x_16 = l_Lean_Syntax_isNone(x_15);
lean_dec(x_15);
if (x_16 == 0)
{
lean_object* x_17; uint8_t x_18;
x_17 = l_Lean_Language_Lean_process_processHeader___lambda__6___closed__1;
x_18 = l_Lean_Option_get___at___private_Lean_Util_Profile_0__Lean_get__profiler___spec__1(x_10, x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20;
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_19 = l_Lean_Language_Lean_process_processHeader___lambda__6___closed__3;
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_13);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22;
x_21 = lean_box(0);
x_22 = l_Lean_Language_Lean_process_processHeader___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_21, x_12, x_13);
return x_22;
}
}
else
{
lean_object* x_23; lean_object* x_24;
x_23 = lean_box(0);
x_24 = l_Lean_Language_Lean_process_processHeader___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_23, x_12, x_13);
return x_24;
}
}
}
static double _init_l_Lean_Language_Lean_process_processHeader___lambda__7___closed__1() {
_start:
{
lean_object* x_1; uint8_t x_2; lean_object* x_3; double x_4;
@ -16247,7 +16324,7 @@ x_4 = l_Float_ofScientific(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__2() {
static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__7___closed__2() {
_start:
{
lean_object* x_1;
@ -16255,25 +16332,17 @@ x_1 = lean_mk_string_unchecked("Init", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__3() {
static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__7___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = lean_box(0);
x_2 = l_Lean_Language_Lean_process_processHeader___lambda__6___closed__2;
x_2 = l_Lean_Language_Lean_process_processHeader___lambda__7___closed__2;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__4() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_Language_Lean_experimental_module;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6(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_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__7(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; uint8_t x_12; lean_object* x_13; double x_14; double x_15; double x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
@ -16287,13 +16356,13 @@ x_12 = 0;
x_13 = lean_unsigned_to_nat(0u);
x_14 = l_Float_ofScientific(x_10, x_12, x_13);
lean_dec(x_10);
x_15 = l_Lean_Language_Lean_process_processHeader___lambda__6___closed__1;
x_15 = l_Lean_Language_Lean_process_processHeader___lambda__7___closed__1;
x_16 = lean_float_div(x_14, x_15);
x_17 = lean_ctor_get(x_6, 1);
lean_inc(x_17);
x_18 = lean_ctor_get(x_6, 0);
lean_inc(x_18);
x_19 = l_Lean_Language_Lean_process_processHeader___lambda__6___closed__3;
x_19 = l_Lean_Language_Lean_process_processHeader___lambda__7___closed__3;
x_20 = l_Lean_Name_isPrefixOf(x_19, x_18);
lean_dec(x_18);
if (x_20 == 0)
@ -16301,25 +16370,25 @@ if (x_20 == 0)
lean_object* x_21; lean_object* x_22;
x_21 = lean_box(0);
lean_inc(x_17);
x_22 = l_Lean_Language_Lean_process_processHeader___lambda__5(x_6, x_1, x_2, x_15, x_3, x_4, x_5, x_17, x_16, x_17, x_21, x_7, x_11);
x_22 = l_Lean_Language_Lean_process_processHeader___lambda__6(x_6, x_1, x_2, x_15, x_3, x_4, x_5, x_17, x_16, x_17, x_21, x_7, x_11);
lean_dec(x_17);
return x_22;
}
else
{
lean_object* x_23; uint8_t x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27;
x_23 = l_Lean_Language_Lean_process_processHeader___lambda__6___closed__4;
x_23 = l_Lean_Language_Lean_process_processHeader___lambda__6___closed__1;
x_24 = 1;
lean_inc(x_17);
x_25 = l_Lean_Option_setIfNotSet___at_Lean_Language_Lean_process_processHeader___spec__2(x_17, x_23, x_24);
x_26 = lean_box(0);
x_27 = l_Lean_Language_Lean_process_processHeader___lambda__5(x_6, x_1, x_2, x_15, x_3, x_4, x_5, x_17, x_16, x_25, x_26, x_7, x_11);
x_27 = l_Lean_Language_Lean_process_processHeader___lambda__6(x_6, x_1, x_2, x_15, x_3, x_4, x_5, x_17, x_16, x_25, x_26, x_7, x_11);
lean_dec(x_17);
return x_27;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__7(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_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___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:
{
if (lean_obj_tag(x_6) == 0)
@ -16344,7 +16413,7 @@ lean_object* x_11; lean_object* x_12;
x_11 = lean_ctor_get(x_6, 0);
lean_inc(x_11);
lean_dec(x_6);
x_12 = l_Lean_Language_Lean_process_processHeader___lambda__6(x_1, x_2, x_3, x_4, x_5, x_11, x_7, x_8);
x_12 = l_Lean_Language_Lean_process_processHeader___lambda__7(x_1, x_2, x_3, x_4, x_5, x_11, x_7, x_8);
return x_12;
}
}
@ -16376,7 +16445,7 @@ x_15 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_processHeader___l
lean_closure_set(x_15, 0, x_1);
lean_closure_set(x_15, 1, x_2);
lean_inc(x_4);
x_16 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_processHeader___lambda__7___boxed), 8, 5);
x_16 = lean_alloc_closure((void*)(l_Lean_Language_Lean_process_processHeader___lambda__8___boxed), 8, 5);
lean_closure_set(x_16, 0, x_2);
lean_closure_set(x_16, 1, x_8);
lean_closure_set(x_16, 2, x_7);
@ -16445,13 +16514,19 @@ lean_dec(x_8);
return x_16;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6___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_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_9;
x_9 = l_Lean_Language_Lean_process_processHeader___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
return x_9;
double x_14; double x_15; lean_object* x_16;
x_14 = lean_unbox_float(x_4);
lean_dec(x_4);
x_15 = lean_unbox_float(x_9);
lean_dec(x_9);
x_16 = l_Lean_Language_Lean_process_processHeader___lambda__6(x_1, x_2, x_3, x_14, x_5, x_6, x_7, x_8, x_15, x_10, x_11, x_12, x_13);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_8);
return x_16;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___lambda__7___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) {
@ -16463,6 +16538,15 @@ lean_dec(x_7);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_processHeader___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_Language_Lean_process_processHeader___lambda__8(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
lean_dec(x_7);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Language_Lean_process_parseHeader___lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
@ -20342,12 +20426,16 @@ lean_mark_persistent(l_Lean_Language_Lean_process_processHeader___lambda__4___cl
l_Lean_Language_Lean_process_processHeader___lambda__4___closed__7 = _init_l_Lean_Language_Lean_process_processHeader___lambda__4___closed__7();
lean_mark_persistent(l_Lean_Language_Lean_process_processHeader___lambda__4___closed__7);
l_Lean_Language_Lean_process_processHeader___lambda__6___closed__1 = _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__1();
lean_mark_persistent(l_Lean_Language_Lean_process_processHeader___lambda__6___closed__1);
l_Lean_Language_Lean_process_processHeader___lambda__6___closed__2 = _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__2();
lean_mark_persistent(l_Lean_Language_Lean_process_processHeader___lambda__6___closed__2);
l_Lean_Language_Lean_process_processHeader___lambda__6___closed__3 = _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__3();
lean_mark_persistent(l_Lean_Language_Lean_process_processHeader___lambda__6___closed__3);
l_Lean_Language_Lean_process_processHeader___lambda__6___closed__4 = _init_l_Lean_Language_Lean_process_processHeader___lambda__6___closed__4();
lean_mark_persistent(l_Lean_Language_Lean_process_processHeader___lambda__6___closed__4);
l_Lean_Language_Lean_process_processHeader___lambda__7___closed__1 = _init_l_Lean_Language_Lean_process_processHeader___lambda__7___closed__1();
l_Lean_Language_Lean_process_processHeader___lambda__7___closed__2 = _init_l_Lean_Language_Lean_process_processHeader___lambda__7___closed__2();
lean_mark_persistent(l_Lean_Language_Lean_process_processHeader___lambda__7___closed__2);
l_Lean_Language_Lean_process_processHeader___lambda__7___closed__3 = _init_l_Lean_Language_Lean_process_processHeader___lambda__7___closed__3();
lean_mark_persistent(l_Lean_Language_Lean_process_processHeader___lambda__7___closed__3);
l_Lean_Language_Lean_process_parseHeader___lambda__3___closed__1 = _init_l_Lean_Language_Lean_process_parseHeader___lambda__3___closed__1();
lean_mark_persistent(l_Lean_Language_Lean_process_parseHeader___lambda__3___closed__1);
l_Lean_Language_Lean_process_parseHeader___lambda__3___closed__2 = _init_l_Lean_Language_Lean_process_parseHeader___lambda__3___closed__2();

File diff suppressed because it is too large Load diff

View file

@ -3062,89 +3062,90 @@ uint8_t x_5;
x_5 = lean_usize_dec_eq(x_2, x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; uint8_t x_10;
lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; uint8_t x_11;
x_6 = lean_array_uget(x_1, x_2);
x_7 = lean_ctor_get(x_4, 0);
lean_inc(x_7);
x_8 = 1;
x_9 = lean_usize_add(x_2, x_8);
x_10 = !lean_is_exclusive(x_4);
if (x_10 == 0)
x_10 = lean_ctor_get(x_4, 0);
lean_inc(x_10);
x_11 = !lean_is_exclusive(x_4);
if (x_11 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint64_t x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; size_t x_21; size_t x_22; size_t x_23; size_t x_24; lean_object* x_25; uint8_t x_26;
x_11 = lean_ctor_get(x_4, 0);
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; uint64_t x_18; uint64_t x_19; uint64_t x_20; uint64_t x_21; size_t x_22; size_t x_23; size_t x_24; size_t x_25; lean_object* x_26; uint8_t x_27;
x_12 = lean_ctor_get(x_4, 1);
x_13 = lean_array_get_size(x_12);
x_14 = l_Lean_Expr_hash(x_6);
x_15 = 32;
x_16 = lean_uint64_shift_right(x_14, x_15);
x_17 = lean_uint64_xor(x_14, x_16);
x_18 = 16;
x_19 = lean_uint64_shift_right(x_17, x_18);
x_20 = lean_uint64_xor(x_17, x_19);
x_21 = lean_uint64_to_usize(x_20);
x_22 = lean_usize_of_nat(x_13);
x_13 = lean_ctor_get(x_4, 0);
lean_dec(x_13);
x_23 = lean_usize_sub(x_22, x_8);
x_24 = lean_usize_land(x_21, x_23);
x_25 = lean_array_uget(x_12, x_24);
x_26 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_AC_toACExpr___spec__2(x_6, x_25);
if (x_26 == 0)
x_14 = lean_array_get_size(x_12);
x_15 = l_Lean_Expr_hash(x_6);
x_16 = 32;
x_17 = lean_uint64_shift_right(x_15, x_16);
x_18 = lean_uint64_xor(x_15, x_17);
x_19 = 16;
x_20 = lean_uint64_shift_right(x_18, x_19);
x_21 = lean_uint64_xor(x_18, x_20);
x_22 = lean_uint64_to_usize(x_21);
x_23 = lean_usize_of_nat(x_14);
lean_dec(x_14);
x_24 = lean_usize_sub(x_23, x_8);
x_25 = lean_usize_land(x_22, x_24);
x_26 = lean_array_uget(x_12, x_25);
x_27 = l_Std_DHashMap_Internal_AssocList_contains___at_Lean_Meta_AC_toACExpr___spec__2(x_6, x_26);
if (x_27 == 0)
{
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; uint8_t x_36;
x_27 = lean_unsigned_to_nat(1u);
x_28 = lean_nat_add(x_11, x_27);
lean_dec(x_11);
x_29 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_29, 0, x_6);
lean_ctor_set(x_29, 1, x_7);
lean_ctor_set(x_29, 2, x_25);
x_30 = lean_array_uset(x_12, x_24, x_29);
x_31 = lean_unsigned_to_nat(4u);
x_32 = lean_nat_mul(x_28, x_31);
x_33 = lean_unsigned_to_nat(3u);
x_34 = lean_nat_div(x_32, x_33);
lean_dec(x_32);
x_35 = lean_array_get_size(x_30);
x_36 = lean_nat_dec_le(x_34, x_35);
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; uint8_t x_37;
x_28 = lean_unsigned_to_nat(1u);
x_29 = lean_nat_add(x_10, x_28);
lean_dec(x_10);
x_30 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_30, 0, x_6);
lean_ctor_set(x_30, 1, x_7);
lean_ctor_set(x_30, 2, x_26);
x_31 = lean_array_uset(x_12, x_25, x_30);
x_32 = lean_unsigned_to_nat(4u);
x_33 = lean_nat_mul(x_29, x_32);
x_34 = lean_unsigned_to_nat(3u);
x_35 = lean_nat_div(x_33, x_34);
lean_dec(x_33);
x_36 = lean_array_get_size(x_31);
x_37 = lean_nat_dec_le(x_35, x_36);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
if (x_36 == 0)
if (x_37 == 0)
{
lean_object* x_37;
x_37 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Meta_AC_toACExpr___spec__3(x_30);
lean_ctor_set(x_4, 1, x_37);
lean_ctor_set(x_4, 0, x_28);
lean_object* x_38;
x_38 = l_Std_DHashMap_Internal_Raw_u2080_expand___at_Lean_Meta_AC_toACExpr___spec__3(x_31);
lean_ctor_set(x_4, 1, x_38);
lean_ctor_set(x_4, 0, x_29);
x_2 = x_9;
goto _start;
}
else
{
lean_ctor_set(x_4, 1, x_30);
lean_ctor_set(x_4, 0, x_28);
lean_ctor_set(x_4, 1, x_31);
lean_ctor_set(x_4, 0, x_29);
x_2 = x_9;
goto _start;
}
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43;
x_40 = lean_box(0);
x_41 = lean_array_uset(x_12, x_24, x_40);
x_42 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_AC_toACExpr___spec__6(x_6, x_7, x_25);
x_43 = lean_array_uset(x_41, x_24, x_42);
lean_ctor_set(x_4, 1, x_43);
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44;
x_41 = lean_box(0);
x_42 = lean_array_uset(x_12, x_25, x_41);
x_43 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_AC_toACExpr___spec__6(x_6, x_7, x_26);
x_44 = lean_array_uset(x_42, x_25, x_43);
lean_ctor_set(x_4, 1, x_44);
x_2 = x_9;
goto _start;
}
}
else
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; uint64_t x_48; uint64_t x_49; uint64_t x_50; uint64_t x_51; uint64_t x_52; uint64_t x_53; uint64_t x_54; size_t x_55; size_t x_56; size_t x_57; size_t x_58; lean_object* x_59; uint8_t x_60;
x_45 = lean_ctor_get(x_4, 0);
lean_object* x_46; lean_object* x_47; uint64_t x_48; uint64_t x_49; uint64_t x_50; uint64_t x_51; uint64_t x_52; uint64_t x_53; uint64_t x_54; size_t x_55; size_t x_56; size_t x_57; size_t x_58; lean_object* x_59; uint8_t x_60;
x_46 = lean_ctor_get(x_4, 1);
lean_inc(x_46);
lean_inc(x_45);
lean_dec(x_4);
x_47 = lean_array_get_size(x_46);
x_48 = l_Lean_Expr_hash(x_6);
@ -3165,8 +3166,8 @@ if (x_60 == 0)
{
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; uint8_t x_70;
x_61 = lean_unsigned_to_nat(1u);
x_62 = lean_nat_add(x_45, x_61);
lean_dec(x_45);
x_62 = lean_nat_add(x_10, x_61);
lean_dec(x_10);
x_63 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_63, 0, x_6);
lean_ctor_set(x_63, 1, x_7);
@ -3211,7 +3212,7 @@ x_77 = lean_array_uset(x_46, x_58, x_76);
x_78 = l_Std_DHashMap_Internal_AssocList_replace___at_Lean_Meta_AC_toACExpr___spec__6(x_6, x_7, x_59);
x_79 = lean_array_uset(x_77, x_58, x_78);
x_80 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_80, 0, x_45);
lean_ctor_set(x_80, 0, x_10);
lean_ctor_set(x_80, 1, x_79);
x_2 = x_9;
x_4 = x_80;

View file

@ -19,19 +19,25 @@ static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing__
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__9;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__1;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_44____closed__3;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__2;
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_252_(lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_294____closed__3;
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336_(lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_210____closed__1;
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__3;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_85____closed__1;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_85____closed__2;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_168____closed__1;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__23;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_252____closed__1;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__2;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__17;
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_44_(lean_object*);
lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__1;
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_126_(lean_object*);
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377_(lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__12;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__14;
lean_object* l_Lean_Name_num___override(lean_object*, lean_object*);
@ -53,22 +59,28 @@ static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing__
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_294_(lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_294____closed__2;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_85____closed__3;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__3;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__3;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__10;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_126____closed__3;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__3;
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_210_(lean_object*);
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__21;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__2;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__1;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_168____closed__3;
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_168_(lean_object*);
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_210____closed__3;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_126____closed__1;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__1;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__13;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_168____closed__2;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__19;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_252____closed__3;
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3_(lean_object*);
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418_(lean_object*);
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__11;
static lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__22;
static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__1() {
@ -456,7 +468,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_Comm
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("store", 5, 5);
x_1 = lean_mk_string_unchecked("queue", 5, 5);
return x_1;
}
}
@ -497,7 +509,7 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_Comm
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("discard", 7, 7);
x_1 = lean_mk_string_unchecked("basis", 5, 5);
return x_1;
}
}
@ -538,19 +550,20 @@ static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_Comm
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("simp", 4, 4);
x_1 = lean_mk_string_unchecked("discard", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_294____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__1;
x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__2;
x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_294____closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_85____closed__1;
x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_294____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_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_294____closed__3() {
@ -568,12 +581,133 @@ _start:
{
lean_object* x_2; uint8_t x_3; lean_object* x_4; lean_object* x_5;
x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_294____closed__2;
x_3 = 0;
x_3 = 1;
x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_294____closed__3;
x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("simp", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__1;
x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__2;
x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__22;
x_2 = lean_unsigned_to_nat(336u);
x_3 = l_Lean_Name_num___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336_(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_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__2;
x_3 = 0;
x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__3;
x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("superpose", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__1;
x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__2;
x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__1;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__22;
x_2 = lean_unsigned_to_nat(377u);
x_3 = l_Lean_Name_num___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377_(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_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__2;
x_3 = 0;
x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__3;
x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__1() {
_start:
{
lean_object* x_1;
x_1 = lean_mk_string_unchecked("debug", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____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_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__1;
x_2 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__1;
x_3 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__2;
x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____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_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_3____closed__22;
x_2 = lean_unsigned_to_nat(418u);
x_3 = l_Lean_Name_num___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418_(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_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__2;
x_3 = 0;
x_4 = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__3;
x_5 = l_Lean_registerTraceClass(x_2, x_3, x_4, x_1);
return x_5;
}
}
lean_object* initialize_Lean_Util_Trace(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Poly(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Types(uint8_t builtin, lean_object*);
@ -735,6 +869,33 @@ lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_
if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_294_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__1();
lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__1);
l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__2();
lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__2);
l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__3();
lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336____closed__3);
if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_336_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__1();
lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__1);
l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__2();
lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__2);
l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__3();
lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377____closed__3);
if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_377_(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__1 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__1();
lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__1);
l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__2 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__2();
lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__2);
l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__3 = _init_l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__3();
lean_mark_persistent(l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418____closed__3);
if (builtin) {res = l_Lean_initFn____x40_Lean_Meta_Tactic_Grind_Arith_CommRing___hyg_418_(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

View file

@ -19,6 +19,7 @@ lean_object* l_Lean_mkNatLit(lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_denoteNum___closed__7;
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_denoteNum___closed__2;
LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Mon_denoteExpr___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_Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Meta_Grind_Arith_CommRing_getRing(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_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_denoteNum___closed__1;
LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteExpr_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -27,6 +28,7 @@ LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Power_denoteExpr___boxed(lean_obj
static lean_object* l_Lean_Grind_CommRing_Mon_denoteExpr___closed__1;
LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Poly_denoteExpr_denoteTerm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_denoteNum(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_Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___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_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_denoteNum___closed__5;
LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Expr_denoteExpr(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_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_denoteNum___closed__3;
@ -36,6 +38,7 @@ lean_object* l_outOfBounds___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Mon_denoteExpr(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_Lean_Grind_CommRing_Mon_denoteExpr_go___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*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_denoteNum___closed__6;
lean_object* l_Lean_Meta_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Grind_CommRing_Power_denoteExpr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
extern lean_object* l_Lean_instInhabitedExpr;
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_denoteNum___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
@ -2120,6 +2123,104 @@ lean_dec(x_2);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr(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:
{
lean_object* x_12; lean_object* x_13;
x_12 = lean_ctor_get(x_1, 0);
lean_inc(x_12);
lean_dec(x_1);
x_13 = l_Lean_Grind_CommRing_Poly_denoteExpr(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
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___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_denoteNum___closed__8;
x_17 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_DenoteExpr_0__Lean_Meta_Grind_Arith_CommRing_denoteNum(x_16, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_15);
if (lean_obj_tag(x_17) == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20;
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 = l_Lean_Meta_mkEq(x_14, x_18, x_7, x_8, x_9, x_10, x_19);
return x_20;
}
else
{
uint8_t x_21;
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_21 = !lean_is_exclusive(x_17);
if (x_21 == 0)
{
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24;
x_22 = lean_ctor_get(x_17, 0);
x_23 = lean_ctor_get(x_17, 1);
lean_inc(x_23);
lean_inc(x_22);
lean_dec(x_17);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
return x_24;
}
}
}
else
{
uint8_t x_25;
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_25 = !lean_is_exclusive(x_13);
if (x_25 == 0)
{
return x_13;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28;
x_26 = lean_ctor_get(x_13, 0);
x_27 = lean_ctor_get(x_13, 1);
lean_inc(x_27);
lean_inc(x_26);
lean_dec(x_13);
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;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr___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:
{
lean_object* x_12;
x_12 = l_Lean_Meta_Grind_Arith_CommRing_EqCnstr_denoteExpr(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
return x_12;
}
}
lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Util(uint8_t builtin, lean_object*);
lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_CommRing_Var(uint8_t builtin, lean_object*);
static bool _G_initialized = false;

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -25,6 +25,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Types_0__L
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Types_0__Lean_Meta_Grind_Arith_CommRing_reprPoly____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_Types___hyg_175____closed__5;
static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instReprPower__lean___closed__1;
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Types_0__Lean_Meta_Grind_Arith_CommRing_reprPower____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_Types___hyg_9____closed__5;
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SimpChain_getPoly(lean_object*);
static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing___closed__6;
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Types_0__Lean_Meta_Grind_Arith_CommRing_reprPower____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_Types___hyg_9____closed__2;
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Types_0__Lean_Meta_Grind_Arith_CommRing_reprMon____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_Types___hyg_67____closed__3;
@ -83,10 +84,12 @@ uint8_t lean_int_dec_lt(lean_object*, lean_object*);
static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr___closed__2;
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Types_0__Lean_Meta_Grind_Arith_CommRing_reprPower____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_Types___hyg_9____closed__7;
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__5;
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr;
static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr___closed__1;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Types_0__Lean_Meta_Grind_Arith_CommRing_reprPower____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_Types___hyg_9____closed__14;
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SimpChain_getPoly___boxed(lean_object*);
static lean_object* l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__4;
lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Types_0__Lean_Meta_Grind_Arith_CommRing_reprPower____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_Types___hyg_9_(lean_object*, lean_object*);
@ -1132,18 +1135,31 @@ static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrP
_start:
{
lean_object* x_1; lean_object* x_2;
x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__3;
x_2 = lean_alloc_ctor(0, 2, 0);
x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_CommRing_Types_0__Lean_Meta_Grind_Arith_CommRing_reprPoly____x40_Lean_Meta_Tactic_Grind_Arith_CommRing_Types___hyg_175____closed__4;
x_2 = lean_alloc_ctor(0, 1, 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_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3;
x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__3;
x_2 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__4;
x_3 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_1);
lean_ctor_set(x_3, 2, x_2);
lean_ctor_set(x_3, 3, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof() {
_start:
{
lean_object* x_1;
x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__4;
x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__5;
return x_1;
}
}
@ -1162,7 +1178,7 @@ _start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
x_1 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr___closed__1;
x_2 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__4;
x_2 = l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__5;
x_3 = lean_unsigned_to_nat(0u);
x_4 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_4, 0, x_1);
@ -1277,6 +1293,24 @@ x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SimpChain_getPoly(lean_object* x_1) {
_start:
{
lean_object* x_2;
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CommRing_SimpChain_getPoly___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2;
x_2 = l_Lean_Meta_Grind_Arith_CommRing_SimpChain_getPoly(x_1);
lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedRing___closed__1() {
_start:
{
@ -1518,6 +1552,8 @@ l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__3 = _init_l
lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__3);
l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__4 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__4();
lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__4);
l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__5 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__5();
lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof___closed__5);
l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof();
lean_mark_persistent(l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstrProof);
l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr___closed__1 = _init_l_Lean_Meta_Grind_Arith_CommRing_instInhabitedEqCnstr___closed__1();

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff