chore: update stage0
This commit is contained in:
parent
a5d0ab510e
commit
bfc5d43ad3
10 changed files with 12483 additions and 11420 deletions
7
stage0/src/stdlib.make.in
generated
7
stage0/src/stdlib.make.in
generated
|
|
@ -138,6 +138,13 @@ else
|
|||
-Wl,--whole-archive ${LIB}/temp/Lean.*o.export ${LIB}/temp/libleanshell.a -Wl,--no-whole-archive -Wl,--start-group -lInit -lStd -lLean -lleancpp -Wl,--end-group ${CMAKE_BINARY_DIR}/runtime/libleanrt_initial-exec.a ${LEANSHARED_LINKER_FLAGS} ${TOOLCHAIN_SHARED_LINKER_FLAGS} ${LEANC_OPTS}
|
||||
endif
|
||||
endif
|
||||
ifeq "${CMAKE_BUILD_TYPE}" "Release"
|
||||
ifeq "${CMAKE_SYSTEM_NAME}" "Linux"
|
||||
# We only strip like this on Linux for now as our other platforms already seem to exclude the
|
||||
# unexported symbols by default
|
||||
strip --strip-unneeded $@
|
||||
endif
|
||||
endif
|
||||
|
||||
leanshared: ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libleanshared${CMAKE_SHARED_LIBRARY_SUFFIX}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
#include "util/options.h"
|
||||
|
||||
// update thy
|
||||
|
||||
namespace lean {
|
||||
options get_default_options() {
|
||||
options opts;
|
||||
|
|
|
|||
9
stage0/stdlib/Init/Core.c
generated
9
stage0/stdlib/Init/Core.c
generated
|
|
@ -858,6 +858,7 @@ LEAN_EXPORT lean_object* l_Quot_pliftOn___redArg(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Quot_pliftOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Quotient_pliftOn___redArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Quotient_pliftOn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Setoid_trivial(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Squash_mk___redArg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Squash_mk___redArg___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Squash_mk(lean_object*, lean_object*);
|
||||
|
|
@ -6497,6 +6498,14 @@ x_7 = lean_apply_2(x_5, x_4, lean_box(0));
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Setoid_trivial(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_box(0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Squash_mk___redArg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
|
|
|
|||
325
stage0/stdlib/Lean/Compiler/LCNF/ExplicitBoxing.c
generated
325
stage0/stdlib/Lean/Compiler/LCNF/ExplicitBoxing.c
generated
|
|
@ -80,6 +80,16 @@ LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_C
|
|||
uint8_t lean_expr_eqv(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_typesEqvForBoxing(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_typesEqvForBoxing___boxed(lean_object*, lean_object*);
|
||||
static const lean_ctor_object l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = sizeof(lean_ctor_object) + sizeof(void*)*2 + 0, .m_other = 2, .m_tag = 0}, .m_objs = {((lean_object*)(((size_t)(0) << 1) | 1)),((lean_object*)(((size_t)(0) << 1) | 1))}};
|
||||
static const lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0___closed__0 = (const lean_object*)&l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0___closed__0_value;
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Compiler_LCNF_getImpureSignature_x3f___redArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static const lean_string_object l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_isExpensiveConstantValueBoxing___redArg___closed__0_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 6, .m_capacity = 6, .m_length = 5, .m_data = "UInt8"};
|
||||
static const lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_isExpensiveConstantValueBoxing___redArg___closed__0 = (const lean_object*)&l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_isExpensiveConstantValueBoxing___redArg___closed__0_value;
|
||||
static const lean_string_object l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_isExpensiveConstantValueBoxing___redArg___closed__1_value = {.m_header = {.m_rc = 0, .m_cs_sz = 0, .m_other = 0, .m_tag = 249}, .m_size = 7, .m_capacity = 7, .m_length = 6, .m_data = "UInt16"};
|
||||
|
|
@ -203,7 +213,6 @@ static const lean_ctor_object l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__L
|
|||
static const lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__10 = (const lean_object*)&l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__10_value;
|
||||
static lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__11;
|
||||
static lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__12;
|
||||
lean_object* l_Lean_Compiler_LCNF_getImpureSignature_x3f___redArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_panic___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_visitLet_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -2165,6 +2174,208 @@ x_4 = lean_box(x_3);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_6;
|
||||
x_6 = lean_usize_dec_lt(x_4, x_3);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
lean_dec_ref(x_5);
|
||||
x_7 = lean_array_uget(x_2, x_4);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc_ref(x_8);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
lean_dec_ref(x_8);
|
||||
x_10 = lean_box(0);
|
||||
x_11 = lean_name_eq(x_9, x_1);
|
||||
lean_dec(x_9);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; size_t x_13; size_t x_14;
|
||||
lean_dec(x_7);
|
||||
x_12 = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0___closed__0));
|
||||
x_13 = 1;
|
||||
x_14 = lean_usize_add(x_4, x_13);
|
||||
x_4 = x_14;
|
||||
x_5 = x_12;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_16 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_16, 0, x_7);
|
||||
x_17 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
x_18 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_17);
|
||||
lean_ctor_set(x_18, 1, x_10);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
size_t x_6; size_t x_7; lean_object* x_8;
|
||||
x_6 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_7 = lean_unbox_usize(x_4);
|
||||
lean_dec(x_4);
|
||||
x_8 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0(x_1, x_2, x_6, x_7, x_5);
|
||||
lean_dec_ref(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; size_t x_7; size_t x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_5 = lean_ctor_get(x_2, 2);
|
||||
x_6 = ((lean_object*)(l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0___closed__0));
|
||||
x_7 = lean_array_size(x_5);
|
||||
x_8 = 0;
|
||||
x_9 = l___private_Init_Data_Array_Basic_0__Array_forIn_x27Unsafe_loop___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig_spec__0(x_1, x_5, x_7, x_8, x_6);
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec_ref(x_9);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Compiler_LCNF_getImpureSignature_x3f___redArg(x_1, x_3);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = !lean_is_exclusive(x_10);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13;
|
||||
x_13 = lean_ctor_get(x_10, 0);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
lean_object* x_14;
|
||||
lean_free_object(x_10);
|
||||
x_14 = l_Lean_Compiler_LCNF_getImpureSignature_x3f___redArg(x_1, x_3);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_15;
|
||||
lean_dec(x_1);
|
||||
x_15 = !lean_is_exclusive(x_13);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
x_16 = lean_ctor_get(x_13, 0);
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_inc_ref(x_17);
|
||||
lean_dec(x_16);
|
||||
lean_ctor_set(x_13, 0, x_17);
|
||||
lean_ctor_set_tag(x_10, 0);
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_13);
|
||||
x_19 = lean_ctor_get(x_18, 0);
|
||||
lean_inc_ref(x_19);
|
||||
lean_dec(x_18);
|
||||
x_20 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_20, 0, x_19);
|
||||
lean_ctor_set_tag(x_10, 0);
|
||||
lean_ctor_set(x_10, 0, x_20);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21;
|
||||
x_21 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_10);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
lean_object* x_22;
|
||||
x_22 = l_Lean_Compiler_LCNF_getImpureSignature_x3f___redArg(x_1, x_3);
|
||||
return x_22;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27;
|
||||
lean_dec(x_1);
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_23);
|
||||
if (lean_is_exclusive(x_21)) {
|
||||
lean_ctor_release(x_21, 0);
|
||||
x_24 = x_21;
|
||||
} else {
|
||||
lean_dec_ref(x_21);
|
||||
x_24 = lean_box(0);
|
||||
}
|
||||
x_25 = lean_ctor_get(x_23, 0);
|
||||
lean_inc_ref(x_25);
|
||||
lean_dec(x_23);
|
||||
if (lean_is_scalar(x_24)) {
|
||||
x_26 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_26 = x_24;
|
||||
}
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
x_27 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_27, 0, x_26);
|
||||
return x_27;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg___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___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg(x_1, x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
lean_dec_ref(x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg(x_1, x_2, x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_7);
|
||||
lean_dec_ref(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec_ref(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec_ref(x_2);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_isExpensiveConstantValueBoxing___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -5927,8 +6138,8 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_unboxResultIfNeeded___redArg___closed__2));
|
||||
x_2 = lean_unsigned_to_nat(45u);
|
||||
x_3 = lean_unsigned_to_nat(303u);
|
||||
x_2 = lean_unsigned_to_nat(36u);
|
||||
x_3 = lean_unsigned_to_nat(308u);
|
||||
x_4 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__7));
|
||||
x_5 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__6));
|
||||
x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1);
|
||||
|
|
@ -5951,7 +6162,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_unboxResultIfNeeded___redArg___closed__2));
|
||||
x_2 = lean_unsigned_to_nat(29u);
|
||||
x_3 = lean_unsigned_to_nat(310u);
|
||||
x_3 = lean_unsigned_to_nat(315u);
|
||||
x_4 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__7));
|
||||
x_5 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__6));
|
||||
x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1);
|
||||
|
|
@ -6027,7 +6238,7 @@ lean_dec_ref(x_1);
|
|||
x_17 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_17);
|
||||
lean_dec_ref(x_2);
|
||||
x_18 = l_Lean_Compiler_LCNF_getImpureSignature_x3f___redArg(x_17, x_8);
|
||||
x_18 = l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg(x_17, x_3, x_8);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
uint8_t x_19;
|
||||
|
|
@ -7167,8 +7378,8 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_unboxResultIfNeeded___redArg___closed__2));
|
||||
x_2 = lean_unsigned_to_nat(45u);
|
||||
x_3 = lean_unsigned_to_nat(330u);
|
||||
x_2 = lean_unsigned_to_nat(36u);
|
||||
x_3 = lean_unsigned_to_nat(335u);
|
||||
x_4 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_visitLet___closed__1));
|
||||
x_5 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__6));
|
||||
x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1);
|
||||
|
|
@ -7180,8 +7391,8 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_unboxResultIfNeeded___redArg___closed__2));
|
||||
x_2 = lean_unsigned_to_nat(45u);
|
||||
x_3 = lean_unsigned_to_nat(335u);
|
||||
x_2 = lean_unsigned_to_nat(36u);
|
||||
x_3 = lean_unsigned_to_nat(340u);
|
||||
x_4 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_visitLet___closed__1));
|
||||
x_5 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__6));
|
||||
x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1);
|
||||
|
|
@ -7194,7 +7405,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_unboxResultIfNeeded___redArg___closed__2));
|
||||
x_2 = lean_unsigned_to_nat(29u);
|
||||
x_3 = lean_unsigned_to_nat(347u);
|
||||
x_3 = lean_unsigned_to_nat(352u);
|
||||
x_4 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_visitLet___closed__1));
|
||||
x_5 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__6));
|
||||
x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1);
|
||||
|
|
@ -7560,8 +7771,8 @@ x_112 = lean_ptr_addr(x_33);
|
|||
x_113 = lean_usize_dec_eq(x_111, x_112);
|
||||
if (x_113 == 0)
|
||||
{
|
||||
x_41 = x_108;
|
||||
x_42 = lean_box(0);
|
||||
x_41 = lean_box(0);
|
||||
x_42 = x_108;
|
||||
x_43 = x_113;
|
||||
goto block_47;
|
||||
}
|
||||
|
|
@ -7571,8 +7782,8 @@ size_t x_114; size_t x_115; uint8_t x_116;
|
|||
x_114 = lean_ptr_addr(x_109);
|
||||
x_115 = lean_ptr_addr(x_108);
|
||||
x_116 = lean_usize_dec_eq(x_114, x_115);
|
||||
x_41 = x_108;
|
||||
x_42 = lean_box(0);
|
||||
x_41 = lean_box(0);
|
||||
x_42 = x_108;
|
||||
x_43 = x_116;
|
||||
goto block_47;
|
||||
}
|
||||
|
|
@ -7641,7 +7852,7 @@ lean_dec(x_14);
|
|||
x_130 = lean_ctor_get(x_54, 0);
|
||||
x_131 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_130);
|
||||
x_132 = l_Lean_Compiler_LCNF_getImpureSignature_x3f___redArg(x_130, x_9);
|
||||
x_132 = l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg(x_130, x_4, x_9);
|
||||
if (lean_obj_tag(x_132) == 0)
|
||||
{
|
||||
lean_object* x_133;
|
||||
|
|
@ -7835,7 +8046,7 @@ lean_dec(x_14);
|
|||
x_164 = lean_ctor_get(x_54, 0);
|
||||
x_165 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_164);
|
||||
x_166 = l_Lean_Compiler_LCNF_getImpureSignature_x3f___redArg(x_164, x_9);
|
||||
x_166 = l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg(x_164, x_4, x_9);
|
||||
if (lean_obj_tag(x_166) == 0)
|
||||
{
|
||||
lean_object* x_167;
|
||||
|
|
@ -7907,9 +8118,9 @@ x_183 = lean_ptr_addr(x_33);
|
|||
x_184 = lean_usize_dec_eq(x_182, x_183);
|
||||
if (x_184 == 0)
|
||||
{
|
||||
x_35 = lean_box(0);
|
||||
x_36 = x_179;
|
||||
x_37 = x_176;
|
||||
x_35 = x_179;
|
||||
x_36 = x_176;
|
||||
x_37 = lean_box(0);
|
||||
x_38 = x_184;
|
||||
goto block_40;
|
||||
}
|
||||
|
|
@ -7919,9 +8130,9 @@ size_t x_185; size_t x_186; uint8_t x_187;
|
|||
x_185 = lean_ptr_addr(x_180);
|
||||
x_186 = lean_ptr_addr(x_179);
|
||||
x_187 = lean_usize_dec_eq(x_185, x_186);
|
||||
x_35 = lean_box(0);
|
||||
x_36 = x_179;
|
||||
x_37 = x_176;
|
||||
x_35 = x_179;
|
||||
x_36 = x_176;
|
||||
x_37 = lean_box(0);
|
||||
x_38 = x_187;
|
||||
goto block_40;
|
||||
}
|
||||
|
|
@ -7934,8 +8145,8 @@ lean_dec(x_33);
|
|||
lean_dec_ref(x_1);
|
||||
x_188 = l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_unboxResultIfNeeded___redArg___closed__3;
|
||||
x_189 = l_panic___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_unboxResultIfNeeded_spec__0(x_188);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = x_176;
|
||||
x_23 = x_176;
|
||||
x_24 = lean_box(0);
|
||||
x_25 = x_189;
|
||||
goto block_28;
|
||||
}
|
||||
|
|
@ -8379,19 +8590,19 @@ if (x_38 == 0)
|
|||
lean_object* x_39;
|
||||
lean_dec_ref(x_1);
|
||||
x_39 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_36);
|
||||
lean_ctor_set(x_39, 0, x_35);
|
||||
lean_ctor_set(x_39, 1, x_33);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = x_37;
|
||||
x_23 = x_36;
|
||||
x_24 = lean_box(0);
|
||||
x_25 = x_39;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec_ref(x_36);
|
||||
lean_dec_ref(x_35);
|
||||
lean_dec(x_33);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = x_37;
|
||||
x_23 = x_36;
|
||||
x_24 = lean_box(0);
|
||||
x_25 = x_1;
|
||||
goto block_28;
|
||||
}
|
||||
|
|
@ -8403,7 +8614,7 @@ if (x_43 == 0)
|
|||
lean_object* x_44; lean_object* x_45;
|
||||
lean_dec_ref(x_1);
|
||||
x_44 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_44, 0, x_41);
|
||||
lean_ctor_set(x_44, 0, x_42);
|
||||
lean_ctor_set(x_44, 1, x_33);
|
||||
if (lean_is_scalar(x_34)) {
|
||||
x_45 = lean_alloc_ctor(0, 1, 0);
|
||||
|
|
@ -8416,7 +8627,7 @@ return x_45;
|
|||
else
|
||||
{
|
||||
lean_object* x_46;
|
||||
lean_dec_ref(x_41);
|
||||
lean_dec_ref(x_42);
|
||||
lean_dec(x_33);
|
||||
if (lean_is_scalar(x_34)) {
|
||||
x_46 = lean_alloc_ctor(0, 1, 0);
|
||||
|
|
@ -8792,8 +9003,8 @@ x_345 = lean_ptr_addr(x_268);
|
|||
x_346 = lean_usize_dec_eq(x_344, x_345);
|
||||
if (x_346 == 0)
|
||||
{
|
||||
x_276 = x_341;
|
||||
x_277 = lean_box(0);
|
||||
x_276 = lean_box(0);
|
||||
x_277 = x_341;
|
||||
x_278 = x_346;
|
||||
goto block_282;
|
||||
}
|
||||
|
|
@ -8803,8 +9014,8 @@ size_t x_347; size_t x_348; uint8_t x_349;
|
|||
x_347 = lean_ptr_addr(x_342);
|
||||
x_348 = lean_ptr_addr(x_341);
|
||||
x_349 = lean_usize_dec_eq(x_347, x_348);
|
||||
x_276 = x_341;
|
||||
x_277 = lean_box(0);
|
||||
x_276 = lean_box(0);
|
||||
x_277 = x_341;
|
||||
x_278 = x_349;
|
||||
goto block_282;
|
||||
}
|
||||
|
|
@ -8868,7 +9079,7 @@ lean_dec(x_14);
|
|||
x_360 = lean_ctor_get(x_289, 0);
|
||||
x_361 = lean_ctor_get(x_289, 1);
|
||||
lean_inc(x_360);
|
||||
x_362 = l_Lean_Compiler_LCNF_getImpureSignature_x3f___redArg(x_360, x_9);
|
||||
x_362 = l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg(x_360, x_4, x_9);
|
||||
if (lean_obj_tag(x_362) == 0)
|
||||
{
|
||||
lean_object* x_363;
|
||||
|
|
@ -9060,7 +9271,7 @@ lean_dec(x_14);
|
|||
x_392 = lean_ctor_get(x_289, 0);
|
||||
x_393 = lean_ctor_get(x_289, 1);
|
||||
lean_inc(x_392);
|
||||
x_394 = l_Lean_Compiler_LCNF_getImpureSignature_x3f___redArg(x_392, x_9);
|
||||
x_394 = l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_getDeclSig___redArg(x_392, x_4, x_9);
|
||||
if (lean_obj_tag(x_394) == 0)
|
||||
{
|
||||
lean_object* x_395;
|
||||
|
|
@ -9132,9 +9343,9 @@ x_411 = lean_ptr_addr(x_268);
|
|||
x_412 = lean_usize_dec_eq(x_410, x_411);
|
||||
if (x_412 == 0)
|
||||
{
|
||||
x_270 = lean_box(0);
|
||||
x_271 = x_407;
|
||||
x_272 = x_404;
|
||||
x_270 = x_407;
|
||||
x_271 = x_404;
|
||||
x_272 = lean_box(0);
|
||||
x_273 = x_412;
|
||||
goto block_275;
|
||||
}
|
||||
|
|
@ -9144,9 +9355,9 @@ size_t x_413; size_t x_414; uint8_t x_415;
|
|||
x_413 = lean_ptr_addr(x_408);
|
||||
x_414 = lean_ptr_addr(x_407);
|
||||
x_415 = lean_usize_dec_eq(x_413, x_414);
|
||||
x_270 = lean_box(0);
|
||||
x_271 = x_407;
|
||||
x_272 = x_404;
|
||||
x_270 = x_407;
|
||||
x_271 = x_404;
|
||||
x_272 = lean_box(0);
|
||||
x_273 = x_415;
|
||||
goto block_275;
|
||||
}
|
||||
|
|
@ -9159,8 +9370,8 @@ lean_dec(x_268);
|
|||
lean_dec_ref(x_1);
|
||||
x_416 = l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_unboxResultIfNeeded___redArg___closed__3;
|
||||
x_417 = l_panic___at___00__private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_unboxResultIfNeeded_spec__0(x_416);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = x_404;
|
||||
x_23 = x_404;
|
||||
x_24 = lean_box(0);
|
||||
x_25 = x_417;
|
||||
goto block_28;
|
||||
}
|
||||
|
|
@ -9607,19 +9818,19 @@ if (x_273 == 0)
|
|||
lean_object* x_274;
|
||||
lean_dec_ref(x_1);
|
||||
x_274 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_274, 0, x_271);
|
||||
lean_ctor_set(x_274, 0, x_270);
|
||||
lean_ctor_set(x_274, 1, x_268);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = x_272;
|
||||
x_23 = x_271;
|
||||
x_24 = lean_box(0);
|
||||
x_25 = x_274;
|
||||
goto block_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec_ref(x_271);
|
||||
lean_dec_ref(x_270);
|
||||
lean_dec(x_268);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = x_272;
|
||||
x_23 = x_271;
|
||||
x_24 = lean_box(0);
|
||||
x_25 = x_1;
|
||||
goto block_28;
|
||||
}
|
||||
|
|
@ -9631,7 +9842,7 @@ if (x_278 == 0)
|
|||
lean_object* x_279; lean_object* x_280;
|
||||
lean_dec_ref(x_1);
|
||||
x_279 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_279, 0, x_276);
|
||||
lean_ctor_set(x_279, 0, x_277);
|
||||
lean_ctor_set(x_279, 1, x_268);
|
||||
if (lean_is_scalar(x_269)) {
|
||||
x_280 = lean_alloc_ctor(0, 1, 0);
|
||||
|
|
@ -9644,7 +9855,7 @@ return x_280;
|
|||
else
|
||||
{
|
||||
lean_object* x_281;
|
||||
lean_dec_ref(x_276);
|
||||
lean_dec_ref(x_277);
|
||||
lean_dec(x_268);
|
||||
if (lean_is_scalar(x_269)) {
|
||||
x_281 = lean_alloc_ctor(0, 1, 0);
|
||||
|
|
@ -9741,8 +9952,8 @@ return x_21;
|
|||
block_28:
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
x_26 = l_Lean_Compiler_LCNF_attachCodeDecls(x_16, x_24, x_25);
|
||||
lean_dec_ref(x_24);
|
||||
x_26 = l_Lean_Compiler_LCNF_attachCodeDecls(x_16, x_23, x_25);
|
||||
lean_dec_ref(x_23);
|
||||
x_27 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_27, 0, x_26);
|
||||
return x_27;
|
||||
|
|
@ -9785,7 +9996,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_unboxResultIfNeeded___redArg___closed__2));
|
||||
x_2 = lean_unsigned_to_nat(44u);
|
||||
x_3 = lean_unsigned_to_nat(287u);
|
||||
x_3 = lean_unsigned_to_nat(292u);
|
||||
x_4 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing___closed__0));
|
||||
x_5 = ((lean_object*)(l___private_Lean_Compiler_LCNF_ExplicitBoxing_0__Lean_Compiler_LCNF_Code_explicitBoxing_tryCorrectLetDeclType___closed__6));
|
||||
x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1);
|
||||
|
|
|
|||
60
stage0/stdlib/Lean/Data/Position.c
generated
60
stage0/stdlib/Lean/Data/Position.c
generated
|
|
@ -175,7 +175,7 @@ uint8_t lean_string_utf8_at_end(lean_object*, lean_object*);
|
|||
uint32_t lean_string_utf8_get(lean_object*, lean_object*);
|
||||
lean_object* lean_string_utf8_next(lean_object*, lean_object*);
|
||||
uint8_t lean_uint32_dec_eq(uint32_t, uint32_t);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Data_Position_0__Lean_FileMap_ofString_loop(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Data_Position_0__Lean_FileMap_ofString_loop(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_FileMap_ofString___closed__0;
|
||||
static lean_object* l_Lean_FileMap_ofString___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_FileMap_ofString(lean_object*);
|
||||
|
|
@ -1157,47 +1157,42 @@ lean_dec_ref(x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Data_Position_0__Lean_FileMap_ofString_loop(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Data_Position_0__Lean_FileMap_ofString_loop(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = lean_string_utf8_at_end(x_1, x_2);
|
||||
if (x_5 == 0)
|
||||
uint8_t x_4;
|
||||
x_4 = lean_string_utf8_at_end(x_1, x_2);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
uint32_t x_6; lean_object* x_7; uint32_t x_8; uint8_t x_9;
|
||||
x_6 = lean_string_utf8_get(x_1, x_2);
|
||||
x_7 = lean_string_utf8_next(x_1, x_2);
|
||||
uint32_t x_5; lean_object* x_6; uint32_t x_7; uint8_t x_8;
|
||||
x_5 = lean_string_utf8_get(x_1, x_2);
|
||||
x_6 = lean_string_utf8_next(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
x_8 = 10;
|
||||
x_9 = lean_uint32_dec_eq(x_6, x_8);
|
||||
if (x_9 == 0)
|
||||
x_7 = 10;
|
||||
x_8 = lean_uint32_dec_eq(x_5, x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
x_2 = x_7;
|
||||
x_2 = x_6;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_11 = lean_unsigned_to_nat(1u);
|
||||
x_12 = lean_nat_add(x_3, x_11);
|
||||
lean_dec(x_3);
|
||||
lean_inc(x_7);
|
||||
x_13 = lean_array_push(x_4, x_7);
|
||||
x_2 = x_7;
|
||||
x_3 = x_12;
|
||||
x_4 = x_13;
|
||||
lean_object* x_10;
|
||||
lean_inc(x_6);
|
||||
x_10 = lean_array_push(x_3, x_6);
|
||||
x_2 = x_6;
|
||||
x_3 = x_10;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
lean_dec(x_3);
|
||||
x_15 = lean_array_push(x_4, x_2);
|
||||
x_16 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_16, 0, x_1);
|
||||
lean_ctor_set(x_16, 1, x_15);
|
||||
return x_16;
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_array_push(x_3, x_2);
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_1);
|
||||
lean_ctor_set(x_13, 1, x_12);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1223,12 +1218,11 @@ return x_3;
|
|||
LEAN_EXPORT lean_object* l_Lean_FileMap_ofString(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = lean_unsigned_to_nat(1u);
|
||||
x_4 = l_Lean_FileMap_ofString___closed__1;
|
||||
x_5 = l___private_Lean_Data_Position_0__Lean_FileMap_ofString_loop(x_1, x_2, x_3, x_4);
|
||||
return x_5;
|
||||
x_3 = l_Lean_FileMap_ofString___closed__1;
|
||||
x_4 = l___private_Lean_Data_Position_0__Lean_FileMap_ofString_loop(x_1, x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Data_Position_0__Lean_FileMap_toPosition_toColumn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
|
|
|
|||
1982
stage0/stdlib/Lean/Environment.c
generated
1982
stage0/stdlib/Lean/Environment.c
generated
File diff suppressed because it is too large
Load diff
12009
stage0/stdlib/Lean/Meta/ExprDefEq.c
generated
12009
stage0/stdlib/Lean/Meta/ExprDefEq.c
generated
File diff suppressed because it is too large
Load diff
5165
stage0/stdlib/Lean/Meta/InferType.c
generated
5165
stage0/stdlib/Lean/Meta/InferType.c
generated
File diff suppressed because it is too large
Load diff
4129
stage0/stdlib/Lean/Meta/LetToHave.c
generated
4129
stage0/stdlib/Lean/Meta/LetToHave.c
generated
File diff suppressed because it is too large
Load diff
215
stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c
generated
215
stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c
generated
|
|
@ -40860,7 +40860,6 @@ _start:
|
|||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_15 = lean_ctor_get(x_1, 1);
|
||||
lean_inc_ref(x_15);
|
||||
x_16 = lean_unsigned_to_nat(0u);
|
||||
x_17 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_processUnassigned_unassignOrFail___redArg___closed__0;
|
||||
lean_inc_ref(x_15);
|
||||
|
|
@ -40878,7 +40877,6 @@ lean_dec(x_20);
|
|||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22;
|
||||
lean_dec_ref(x_15);
|
||||
lean_dec(x_13);
|
||||
lean_dec_ref(x_12);
|
||||
lean_dec(x_11);
|
||||
|
|
@ -40898,83 +40896,166 @@ return x_18;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
lean_object* x_23;
|
||||
lean_free_object(x_18);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance(x_1, x_15, x_16, x_23, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
return x_24;
|
||||
lean_inc_ref(x_12);
|
||||
lean_inc_ref(x_1);
|
||||
x_23 = l_Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels(x_1, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_24 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_24);
|
||||
lean_dec_ref(x_23);
|
||||
x_25 = lean_box(0);
|
||||
x_26 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance(x_1, x_24, x_16, x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
return x_26;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_27;
|
||||
lean_dec(x_13);
|
||||
lean_dec_ref(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec_ref(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec_ref(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec_ref(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec_ref(x_2);
|
||||
lean_dec_ref(x_1);
|
||||
x_27 = !lean_is_exclusive(x_23);
|
||||
if (x_27 == 0)
|
||||
{
|
||||
return x_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29;
|
||||
x_28 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_23);
|
||||
x_29 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_29, 0, x_28);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; uint8_t x_26;
|
||||
x_25 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_25);
|
||||
lean_object* x_30; uint8_t x_31;
|
||||
x_30 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_18);
|
||||
x_26 = lean_unbox(x_25);
|
||||
lean_dec(x_25);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28;
|
||||
lean_dec_ref(x_15);
|
||||
lean_dec(x_13);
|
||||
lean_dec_ref(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec_ref(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec_ref(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec_ref(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec_ref(x_2);
|
||||
lean_dec_ref(x_1);
|
||||
x_27 = lean_box(0);
|
||||
x_28 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_28, 0, x_27);
|
||||
return x_28;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30;
|
||||
x_29 = lean_box(0);
|
||||
x_30 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance(x_1, x_15, x_16, x_29, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
return x_30;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_31;
|
||||
lean_dec_ref(x_15);
|
||||
lean_dec(x_13);
|
||||
lean_dec_ref(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec_ref(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec_ref(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec_ref(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec_ref(x_2);
|
||||
lean_dec_ref(x_1);
|
||||
x_31 = !lean_is_exclusive(x_18);
|
||||
x_31 = lean_unbox(x_30);
|
||||
lean_dec(x_30);
|
||||
if (x_31 == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
lean_dec(x_13);
|
||||
lean_dec_ref(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec_ref(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec_ref(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec_ref(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec_ref(x_2);
|
||||
lean_dec_ref(x_1);
|
||||
x_32 = lean_box(0);
|
||||
x_33 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
return x_33;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34;
|
||||
lean_inc_ref(x_12);
|
||||
lean_inc_ref(x_1);
|
||||
x_34 = l_Lean_Meta_Grind_EMatchTheorem_getProofWithFreshMVarLevels(x_1, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_34) == 0)
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
lean_dec_ref(x_34);
|
||||
x_36 = lean_box(0);
|
||||
x_37 = l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_addNewInstance(x_1, x_35, x_16, x_36, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
return x_37;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
lean_dec(x_13);
|
||||
lean_dec_ref(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec_ref(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec_ref(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec_ref(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec_ref(x_2);
|
||||
lean_dec_ref(x_1);
|
||||
x_38 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_38);
|
||||
if (lean_is_exclusive(x_34)) {
|
||||
lean_ctor_release(x_34, 0);
|
||||
x_39 = x_34;
|
||||
} else {
|
||||
lean_dec_ref(x_34);
|
||||
x_39 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_39)) {
|
||||
x_40 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_40 = x_39;
|
||||
}
|
||||
lean_ctor_set(x_40, 0, x_38);
|
||||
return x_40;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_41;
|
||||
lean_dec(x_13);
|
||||
lean_dec_ref(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec_ref(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec_ref(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec_ref(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec_ref(x_2);
|
||||
lean_dec_ref(x_1);
|
||||
x_41 = !lean_is_exclusive(x_18);
|
||||
if (x_41 == 0)
|
||||
{
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
x_32 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_32);
|
||||
lean_object* x_42; lean_object* x_43;
|
||||
x_42 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_18);
|
||||
x_33 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
return x_33;
|
||||
x_43 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_43, 0, x_42);
|
||||
return x_43;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -41238,7 +41319,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = ((lean_object*)(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__2));
|
||||
x_2 = lean_unsigned_to_nat(22u);
|
||||
x_3 = lean_unsigned_to_nat(883u);
|
||||
x_3 = lean_unsigned_to_nat(884u);
|
||||
x_4 = ((lean_object*)(l_Lean_Meta_Grind_EMatch_ematchTheorem___closed__0));
|
||||
x_5 = ((lean_object*)(l___private_Lean_Meta_Tactic_Grind_EMatch_0__Lean_Meta_Grind_EMatch_assign_x3f___closed__0));
|
||||
x_6 = l_mkPanicMessageWithDecl(x_5, x_4, x_3, x_2, x_1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue