feat: local and scoped grind_pattern (#9214)
This PR implements support for local and scoped `grind_pattern` commands.
This commit is contained in:
parent
6f5fdf5c3e
commit
15586e28a8
44 changed files with 25687 additions and 30057 deletions
|
|
@ -21,20 +21,23 @@ open Command Term in
|
|||
@[builtin_command_elab Lean.Parser.Command.grindPattern]
|
||||
def elabGrindPattern : CommandElab := fun stx => do
|
||||
match stx with
|
||||
| `(grind_pattern $thmName:ident => $terms,*) => do
|
||||
liftTermElabM do
|
||||
let declName ← resolveGlobalConstNoOverload thmName
|
||||
discard <| addTermInfo thmName (← mkConstWithLevelParams declName)
|
||||
let info ← getConstInfo declName
|
||||
forallTelescope info.type fun xs _ => do
|
||||
let patterns ← terms.getElems.mapM fun term => do
|
||||
let pattern ← Term.elabTerm term none
|
||||
synthesizeSyntheticMVarsUsingDefault
|
||||
let pattern ← instantiateMVars pattern
|
||||
let pattern ← Grind.preprocessPattern pattern
|
||||
return pattern.abstract xs
|
||||
Grind.addEMatchTheorem declName xs.size patterns.toList .user
|
||||
| `(grind_pattern $thmName:ident => $terms,*) => go thmName terms .global
|
||||
| `(scoped grind_pattern $thmName:ident => $terms,*) => go thmName terms .scoped
|
||||
| `(local grind_pattern $thmName:ident => $terms,*) => go thmName terms .local
|
||||
| _ => throwUnsupportedSyntax
|
||||
where
|
||||
go (thmName : TSyntax `ident) (terms : Syntax.TSepArray `term ",") (kind : AttributeKind) : CommandElabM Unit := liftTermElabM do
|
||||
let declName ← resolveGlobalConstNoOverload thmName
|
||||
discard <| addTermInfo thmName (← mkConstWithLevelParams declName)
|
||||
let info ← getConstInfo declName
|
||||
forallTelescope info.type fun xs _ => do
|
||||
let patterns ← terms.getElems.mapM fun term => do
|
||||
let pattern ← Term.elabTerm term none
|
||||
synthesizeSyntheticMVarsUsingDefault
|
||||
let pattern ← instantiateMVars pattern
|
||||
let pattern ← Grind.preprocessPattern pattern
|
||||
return pattern.abstract xs
|
||||
Grind.addEMatchTheorem declName xs.size patterns.toList .user kind
|
||||
|
||||
open Command in
|
||||
@[builtin_command_elab Lean.Parser.resetGrindAttrs]
|
||||
|
|
|
|||
|
|
@ -935,8 +935,8 @@ def mkEMatchEqTheorem (declName : Name) (normalizePattern := true) (useLhs : Boo
|
|||
Adds an E-matching theorem to the environment.
|
||||
See `mkEMatchTheorem`.
|
||||
-/
|
||||
def addEMatchTheorem (declName : Name) (numParams : Nat) (patterns : List Expr) (kind : EMatchTheoremKind) : MetaM Unit := do
|
||||
ematchTheoremsExt.add (← mkEMatchTheorem declName numParams patterns kind)
|
||||
def addEMatchTheorem (declName : Name) (numParams : Nat) (patterns : List Expr) (kind : EMatchTheoremKind) (attrKind := AttributeKind.global) : MetaM Unit := do
|
||||
ematchTheoremsExt.add (← mkEMatchTheorem declName numParams patterns kind) attrKind
|
||||
|
||||
/--
|
||||
Adds an E-matching equality theorem to the environment.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace Lean.Parser.Command
|
|||
Builtin parsers for `grind` related commands
|
||||
-/
|
||||
@[builtin_command_parser] def grindPattern := leading_parser
|
||||
"grind_pattern " >> ident >> darrow >> sepBy1 termParser ","
|
||||
Term.attrKind >> "grind_pattern " >> ident >> darrow >> sepBy1 termParser ","
|
||||
|
||||
@[builtin_command_parser] def initGrindNorm := leading_parser
|
||||
"init_grind_norm " >> many ident >> "| " >> many ident
|
||||
|
|
|
|||
3693
stage0/stdlib/Lean/Compiler/IR/Basic.c
generated
3693
stage0/stdlib/Lean/Compiler/IR/Basic.c
generated
File diff suppressed because it is too large
Load diff
738
stage0/stdlib/Lean/Compiler/IR/Borrow.c
generated
738
stage0/stdlib/Lean/Compiler/IR/Borrow.c
generated
File diff suppressed because it is too large
Load diff
90
stage0/stdlib/Lean/Compiler/IR/Boxing.c
generated
90
stage0/stdlib/Lean/Compiler/IR/Boxing.c
generated
|
|
@ -45,6 +45,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_IR_ExplicitBoxing_mk
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_IR_Boxing_0__Lean_IR_ExplicitBoxing_M_mkFresh___boxed(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_CtorInfo_isScalar(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_withVDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_eqvTypes___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_IR_ExplicitBoxing_requiresBoxedVersion_spec__0(lean_object*, size_t, size_t);
|
||||
|
|
@ -103,12 +104,12 @@ LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_mkBoxedName(lean_object*);
|
|||
LEAN_EXPORT uint8_t l_Lean_IR_ExplicitBoxing_requiresBoxedVersion(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_castVarIfNeeded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_isBoxedName___boxed(lean_object*);
|
||||
uint8_t l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_visitFnBody(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_ExplicitBoxing_mkCast___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_unboxResultIfNeeded(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_ExplicitBoxing_castArgsIfNeededAux___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_IR_ExplicitBoxing_addBoxedVersions_spec__0(lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
uint8_t l_Lean_IR_IRType_beq(lean_object*, lean_object*);
|
||||
lean_object* lean_name_append_index_after(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_FnBody_beq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux(lean_object*, lean_object*);
|
||||
|
|
@ -140,6 +141,7 @@ LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_getDecl(lean_object*, lean_obj
|
|||
static lean_object* l_Lean_IR_ExplicitBoxing_getDecl___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___Lean_IR_ExplicitBoxing_requiresBoxedVersion_spec__0___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_Decl_getInfo(lean_object*);
|
||||
static lean_object* l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_withParams___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_addBoxedVersions(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitBoxing_withJDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -460,6 +462,30 @@ goto _start;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__0() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Array_empty(lean_box(0));
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__0;
|
||||
x_2 = lean_box(0);
|
||||
x_3 = lean_box(0);
|
||||
x_4 = lean_box(0);
|
||||
x_5 = lean_alloc_ctor(10, 4, 0);
|
||||
lean_ctor_set(x_5, 0, x_4);
|
||||
lean_ctor_set(x_5, 1, x_3);
|
||||
lean_ctor_set(x_5, 2, x_2);
|
||||
lean_ctor_set(x_5, 3, x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg(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:
|
||||
{
|
||||
|
|
@ -529,7 +555,7 @@ lean_inc(x_30);
|
|||
lean_dec(x_20);
|
||||
x_31 = lean_alloc_ctor(10, 1, 0);
|
||||
lean_ctor_set(x_31, 0, x_30);
|
||||
x_32 = lean_box(13);
|
||||
x_32 = l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__1;
|
||||
lean_inc(x_28);
|
||||
x_33 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_33, 0, x_28);
|
||||
|
|
@ -560,7 +586,7 @@ lean_inc(x_40);
|
|||
lean_dec(x_20);
|
||||
x_41 = lean_alloc_ctor(10, 1, 0);
|
||||
lean_ctor_set(x_41, 0, x_40);
|
||||
x_42 = lean_box(13);
|
||||
x_42 = l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__1;
|
||||
lean_inc(x_38);
|
||||
x_43 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_43, 0, x_38);
|
||||
|
|
@ -641,7 +667,7 @@ lean_inc(x_68);
|
|||
lean_dec(x_57);
|
||||
x_69 = lean_alloc_ctor(10, 1, 0);
|
||||
lean_ctor_set(x_69, 0, x_68);
|
||||
x_70 = lean_box(13);
|
||||
x_70 = l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__1;
|
||||
lean_inc(x_65);
|
||||
x_71 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_71, 0, x_65);
|
||||
|
|
@ -729,36 +755,36 @@ lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint
|
|||
lean_inc(x_19);
|
||||
x_20 = lean_alloc_ctor(6, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_19);
|
||||
lean_ctor_set(x_20, 1, x_14);
|
||||
x_21 = lean_box(13);
|
||||
lean_inc(x_16);
|
||||
lean_ctor_set(x_20, 1, x_17);
|
||||
x_21 = l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__1;
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_16);
|
||||
x_22 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_22, 0, x_13);
|
||||
lean_ctor_set(x_22, 1, x_16);
|
||||
lean_ctor_set(x_22, 0, x_16);
|
||||
lean_ctor_set(x_22, 1, x_13);
|
||||
lean_ctor_set(x_22, 2, x_20);
|
||||
lean_ctor_set(x_22, 3, x_21);
|
||||
x_23 = lean_array_push(x_18, x_22);
|
||||
x_24 = l_Lean_IR_IRType_isScalar(x_16);
|
||||
x_24 = l_Lean_IR_IRType_isScalar(x_13);
|
||||
if (x_24 == 0)
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27;
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_13);
|
||||
x_25 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_25, 0, x_13);
|
||||
lean_ctor_set(x_25, 0, x_16);
|
||||
x_26 = lean_alloc_ctor(11, 1, 0);
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
x_27 = l_Lean_IR_reshape(x_23, x_26);
|
||||
x_3 = x_19;
|
||||
x_4 = x_17;
|
||||
x_4 = x_15;
|
||||
x_5 = x_27;
|
||||
x_6 = x_15;
|
||||
x_6 = x_14;
|
||||
goto block_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; uint8_t x_29;
|
||||
x_28 = l___private_Lean_Compiler_IR_Boxing_0__Lean_IR_ExplicitBoxing_N_mkFresh(x_15);
|
||||
x_28 = l___private_Lean_Compiler_IR_Boxing_0__Lean_IR_ExplicitBoxing_N_mkFresh(x_14);
|
||||
x_29 = !lean_is_exclusive(x_28);
|
||||
if (x_29 == 0)
|
||||
{
|
||||
|
|
@ -767,8 +793,8 @@ x_30 = lean_ctor_get(x_28, 0);
|
|||
x_31 = lean_ctor_get(x_28, 1);
|
||||
x_32 = lean_box(7);
|
||||
lean_ctor_set_tag(x_28, 9);
|
||||
lean_ctor_set(x_28, 1, x_13);
|
||||
lean_ctor_set(x_28, 0, x_16);
|
||||
lean_ctor_set(x_28, 1, x_16);
|
||||
lean_ctor_set(x_28, 0, x_13);
|
||||
lean_inc(x_30);
|
||||
x_33 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_33, 0, x_30);
|
||||
|
|
@ -782,7 +808,7 @@ x_36 = lean_alloc_ctor(11, 1, 0);
|
|||
lean_ctor_set(x_36, 0, x_35);
|
||||
x_37 = l_Lean_IR_reshape(x_34, x_36);
|
||||
x_3 = x_19;
|
||||
x_4 = x_17;
|
||||
x_4 = x_15;
|
||||
x_5 = x_37;
|
||||
x_6 = x_31;
|
||||
goto block_12;
|
||||
|
|
@ -797,8 +823,8 @@ lean_inc(x_38);
|
|||
lean_dec(x_28);
|
||||
x_40 = lean_box(7);
|
||||
x_41 = lean_alloc_ctor(9, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_16);
|
||||
lean_ctor_set(x_41, 1, x_13);
|
||||
lean_ctor_set(x_41, 0, x_13);
|
||||
lean_ctor_set(x_41, 1, x_16);
|
||||
lean_inc(x_38);
|
||||
x_42 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_42, 0, x_38);
|
||||
|
|
@ -812,7 +838,7 @@ x_45 = lean_alloc_ctor(11, 1, 0);
|
|||
lean_ctor_set(x_45, 0, x_44);
|
||||
x_46 = l_Lean_IR_reshape(x_43, x_45);
|
||||
x_3 = x_19;
|
||||
x_4 = x_17;
|
||||
x_4 = x_15;
|
||||
x_5 = x_46;
|
||||
x_6 = x_39;
|
||||
goto block_12;
|
||||
|
|
@ -824,10 +850,10 @@ block_55:
|
|||
lean_object* x_54;
|
||||
x_54 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_54);
|
||||
x_13 = x_48;
|
||||
x_14 = x_49;
|
||||
x_15 = x_50;
|
||||
x_16 = x_53;
|
||||
x_13 = x_53;
|
||||
x_14 = x_48;
|
||||
x_15 = x_49;
|
||||
x_16 = x_50;
|
||||
x_17 = x_51;
|
||||
x_18 = x_52;
|
||||
x_19 = x_54;
|
||||
|
|
@ -869,10 +895,10 @@ lean_inc(x_72);
|
|||
lean_dec(x_70);
|
||||
x_73 = lean_ctor_get(x_1, 2);
|
||||
lean_inc(x_73);
|
||||
x_48 = x_71;
|
||||
x_49 = x_69;
|
||||
x_50 = x_72;
|
||||
x_51 = x_61;
|
||||
x_48 = x_72;
|
||||
x_49 = x_61;
|
||||
x_50 = x_71;
|
||||
x_51 = x_69;
|
||||
x_52 = x_68;
|
||||
x_53 = x_73;
|
||||
goto block_55;
|
||||
|
|
@ -1191,7 +1217,7 @@ return x_3;
|
|||
else
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = l_Lean_IR_IRType_beq(x_1, x_2);
|
||||
x_5 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_1, x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
|
|
@ -5363,6 +5389,10 @@ if (lean_io_result_is_error(res)) return res;
|
|||
lean_dec_ref(res);
|
||||
l_Lean_IR_ExplicitBoxing_mkBoxedName___closed__0 = _init_l_Lean_IR_ExplicitBoxing_mkBoxedName___closed__0();
|
||||
lean_mark_persistent(l_Lean_IR_ExplicitBoxing_mkBoxedName___closed__0);
|
||||
l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__0 = _init_l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__0();
|
||||
lean_mark_persistent(l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__0);
|
||||
l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__1 = _init_l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__1();
|
||||
lean_mark_persistent(l_Nat_foldM_loop___at___Lean_IR_ExplicitBoxing_mkBoxedVersionAux_spec__1___redArg___closed__1);
|
||||
l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__0 = _init_l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__0();
|
||||
lean_mark_persistent(l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__0);
|
||||
l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__1 = _init_l_Lean_IR_ExplicitBoxing_mkBoxedVersionAux___closed__1();
|
||||
|
|
|
|||
36
stage0/stdlib/Lean/Compiler/IR/Checker.c
generated
36
stage0/stdlib/Lean/Compiler/IR/Checker.c
generated
|
|
@ -123,6 +123,7 @@ lean_object* l_ExceptT_pure(lean_object*, lean_object*, lean_object*, lean_objec
|
|||
static lean_object* l_Lean_IR_Checker_checkPartialApp___closed__0;
|
||||
static lean_object* l_Lean_IR_Checker_withParams___closed__30;
|
||||
static lean_object* l_Lean_IR_Checker_withParams___closed__5;
|
||||
uint8_t l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_Checker_checkPartialApp___closed__3;
|
||||
lean_object* l_ExceptT_bind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_checkDecls(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -130,7 +131,6 @@ uint8_t l_Lean_IR_LocalContext_isParam(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_IR_Checker_checkVar___closed__1;
|
||||
static lean_object* l_Lean_IR_Checker_maxCtorTag___closed__0;
|
||||
lean_object* l_ExceptT_instMonad___redArg___lam__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_IRType_beq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_Checker_withParams___closed__19;
|
||||
static lean_object* l_Lean_IR_Checker_checkExpr___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_Checker_markJP___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -961,7 +961,7 @@ LEAN_EXPORT lean_object* l_Lean_IR_Checker_checkEqTypes___redArg(lean_object* x_
|
|||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = l_Lean_IR_IRType_beq(x_1, x_2);
|
||||
x_4 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_1, x_2);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6;
|
||||
|
|
@ -986,7 +986,7 @@ LEAN_EXPORT lean_object* l_Lean_IR_Checker_checkEqTypes(lean_object* x_1, lean_o
|
|||
_start:
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = l_Lean_IR_IRType_beq(x_1, x_2);
|
||||
x_5 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_1, x_2);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7;
|
||||
|
|
@ -2910,7 +2910,7 @@ lean_object* x_116; uint8_t x_117;
|
|||
x_116 = lean_array_fget(x_112, x_90);
|
||||
lean_dec(x_90);
|
||||
lean_dec(x_112);
|
||||
x_117 = l_Lean_IR_IRType_beq(x_116, x_1);
|
||||
x_117 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_116, x_1);
|
||||
lean_dec(x_1);
|
||||
lean_dec(x_116);
|
||||
if (x_117 == 0)
|
||||
|
|
@ -2959,7 +2959,7 @@ lean_object* x_126; uint8_t x_127;
|
|||
x_126 = lean_array_fget(x_121, x_90);
|
||||
lean_dec(x_90);
|
||||
lean_dec(x_121);
|
||||
x_127 = l_Lean_IR_IRType_beq(x_126, x_1);
|
||||
x_127 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_126, x_1);
|
||||
lean_dec(x_1);
|
||||
lean_dec(x_126);
|
||||
if (x_127 == 0)
|
||||
|
|
@ -3015,7 +3015,7 @@ lean_object* x_138; uint8_t x_139;
|
|||
x_138 = lean_array_fget(x_134, x_90);
|
||||
lean_dec(x_90);
|
||||
lean_dec(x_134);
|
||||
x_139 = l_Lean_IR_IRType_beq(x_138, x_1);
|
||||
x_139 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_138, x_1);
|
||||
lean_dec(x_1);
|
||||
lean_dec(x_138);
|
||||
if (x_139 == 0)
|
||||
|
|
@ -3064,7 +3064,7 @@ lean_object* x_148; uint8_t x_149;
|
|||
x_148 = lean_array_fget(x_143, x_90);
|
||||
lean_dec(x_90);
|
||||
lean_dec(x_143);
|
||||
x_149 = l_Lean_IR_IRType_beq(x_148, x_1);
|
||||
x_149 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_148, x_1);
|
||||
lean_dec(x_1);
|
||||
lean_dec(x_148);
|
||||
if (x_149 == 0)
|
||||
|
|
@ -3205,7 +3205,7 @@ lean_object* x_186; uint8_t x_187;
|
|||
x_186 = lean_array_fget(x_181, x_90);
|
||||
lean_dec(x_90);
|
||||
lean_dec(x_181);
|
||||
x_187 = l_Lean_IR_IRType_beq(x_186, x_1);
|
||||
x_187 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_186, x_1);
|
||||
lean_dec(x_1);
|
||||
lean_dec(x_186);
|
||||
if (x_187 == 0)
|
||||
|
|
@ -3277,7 +3277,7 @@ lean_object* x_199; uint8_t x_200;
|
|||
x_199 = lean_array_fget(x_194, x_90);
|
||||
lean_dec(x_90);
|
||||
lean_dec(x_194);
|
||||
x_200 = l_Lean_IR_IRType_beq(x_199, x_1);
|
||||
x_200 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_199, x_1);
|
||||
lean_dec(x_1);
|
||||
lean_dec(x_199);
|
||||
if (x_200 == 0)
|
||||
|
|
@ -3379,7 +3379,7 @@ lean_object* x_223; lean_object* x_224; uint8_t x_225;
|
|||
x_223 = lean_ctor_get(x_219, 0);
|
||||
lean_dec(x_223);
|
||||
x_224 = lean_box(5);
|
||||
x_225 = l_Lean_IR_IRType_beq(x_1, x_224);
|
||||
x_225 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_1, x_224);
|
||||
if (x_225 == 0)
|
||||
{
|
||||
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233;
|
||||
|
|
@ -3411,7 +3411,7 @@ else
|
|||
lean_object* x_235; uint8_t x_236;
|
||||
lean_dec(x_219);
|
||||
x_235 = lean_box(5);
|
||||
x_236 = l_Lean_IR_IRType_beq(x_1, x_235);
|
||||
x_236 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_1, x_235);
|
||||
if (x_236 == 0)
|
||||
{
|
||||
lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245;
|
||||
|
|
@ -3453,7 +3453,7 @@ if (lean_is_exclusive(x_219)) {
|
|||
x_248 = lean_box(0);
|
||||
}
|
||||
x_249 = lean_box(5);
|
||||
x_250 = l_Lean_IR_IRType_beq(x_1, x_249);
|
||||
x_250 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_1, x_249);
|
||||
if (x_250 == 0)
|
||||
{
|
||||
lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260;
|
||||
|
|
@ -3715,7 +3715,7 @@ if (x_302 == 0)
|
|||
{
|
||||
lean_object* x_303; uint8_t x_304;
|
||||
x_303 = lean_ctor_get(x_289, 0);
|
||||
x_304 = l_Lean_IR_IRType_beq(x_303, x_283);
|
||||
x_304 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_303, x_283);
|
||||
lean_dec(x_283);
|
||||
if (x_304 == 0)
|
||||
{
|
||||
|
|
@ -3749,7 +3749,7 @@ lean_object* x_314; uint8_t x_315;
|
|||
x_314 = lean_ctor_get(x_289, 0);
|
||||
lean_inc(x_314);
|
||||
lean_dec(x_289);
|
||||
x_315 = l_Lean_IR_IRType_beq(x_314, x_283);
|
||||
x_315 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_314, x_283);
|
||||
lean_dec(x_283);
|
||||
if (x_315 == 0)
|
||||
{
|
||||
|
|
@ -3793,7 +3793,7 @@ if (lean_is_exclusive(x_289)) {
|
|||
lean_dec_ref(x_289);
|
||||
x_328 = lean_box(0);
|
||||
}
|
||||
x_329 = l_Lean_IR_IRType_beq(x_327, x_283);
|
||||
x_329 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_327, x_283);
|
||||
lean_dec(x_283);
|
||||
if (x_329 == 0)
|
||||
{
|
||||
|
|
@ -3921,7 +3921,7 @@ lean_object* x_362; lean_object* x_363; uint8_t x_364;
|
|||
x_362 = lean_ctor_get(x_358, 0);
|
||||
lean_dec(x_362);
|
||||
x_363 = lean_box(1);
|
||||
x_364 = l_Lean_IR_IRType_beq(x_1, x_363);
|
||||
x_364 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_1, x_363);
|
||||
if (x_364 == 0)
|
||||
{
|
||||
lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372;
|
||||
|
|
@ -3953,7 +3953,7 @@ else
|
|||
lean_object* x_374; uint8_t x_375;
|
||||
lean_dec(x_358);
|
||||
x_374 = lean_box(1);
|
||||
x_375 = l_Lean_IR_IRType_beq(x_1, x_374);
|
||||
x_375 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_1, x_374);
|
||||
if (x_375 == 0)
|
||||
{
|
||||
lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384;
|
||||
|
|
@ -3995,7 +3995,7 @@ if (lean_is_exclusive(x_358)) {
|
|||
x_387 = lean_box(0);
|
||||
}
|
||||
x_388 = lean_box(1);
|
||||
x_389 = l_Lean_IR_IRType_beq(x_1, x_388);
|
||||
x_389 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_1, x_388);
|
||||
if (x_389 == 0)
|
||||
{
|
||||
lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399;
|
||||
|
|
|
|||
1236
stage0/stdlib/Lean/Compiler/IR/ElimDeadBranches.c
generated
1236
stage0/stdlib/Lean/Compiler/IR/ElimDeadBranches.c
generated
File diff suppressed because it is too large
Load diff
3
stage0/stdlib/Lean/Compiler/IR/ElimDeadVars.c
generated
3
stage0/stdlib/Lean/Compiler/IR/ElimDeadVars.c
generated
|
|
@ -15,6 +15,7 @@ extern "C" {
|
|||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_Decl_elimDead(lean_object*);
|
||||
uint8_t l_Array_isEmpty___redArg(lean_object*);
|
||||
extern lean_object* l_Lean_IR_instInhabitedFnBody;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_IR_FnBody_elimDead_spec__1(size_t, size_t, lean_object*);
|
||||
lean_object* l_Array_back_x21___redArg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_FnBody_flatten(lean_object*);
|
||||
|
|
@ -56,7 +57,7 @@ x_4 = l_Array_isEmpty___redArg(x_1);
|
|||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_11;
|
||||
x_5 = lean_box(13);
|
||||
x_5 = l_Lean_IR_instInhabitedFnBody;
|
||||
x_6 = l_Array_back_x21___redArg(x_5, x_1);
|
||||
x_7 = lean_array_pop(x_1);
|
||||
switch (lean_obj_tag(x_6)) {
|
||||
|
|
|
|||
10
stage0/stdlib/Lean/Compiler/IR/EmitC.c
generated
10
stage0/stdlib/Lean/Compiler/IR/EmitC.c
generated
|
|
@ -63,7 +63,6 @@ static lean_object* l_Lean_IR_EmitC_emitDeclInit___closed__3;
|
|||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_IR_EmitC_emitInitFn_spec__3___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Array_isEmpty___redArg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_EmitC_emitArg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
uint64_t lean_uint64_of_nat(lean_object*);
|
||||
static lean_object* l_Lean_IR_EmitC_emitSSet___redArg___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_EmitC_emitUProj(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Lean_IR_EmitC_getJPParams_spec__0___redArg___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -396,6 +395,7 @@ LEAN_EXPORT lean_object* l_Lean_IR_EmitC_emitSimpleExternalCall(lean_object*, le
|
|||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_IR_EmitC_emitInitFn_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_EmitC_isTailCall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at___Lean_IR_EmitC_emitCtorSetArgs_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_EmitC_emitFullApp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_NameSet_insert(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_EmitC_emitIf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -416,7 +416,6 @@ static lean_object* l_List_forM___at___Lean_IR_EmitC_emitFnDecls_spec__4___close
|
|||
static lean_object* l_Lean_IR_EmitC_emitFileHeader___closed__2;
|
||||
static lean_object* l_Lean_IR_EmitC_emitFileHeader___closed__8;
|
||||
static lean_object* l_Lean_IR_EmitC_emitNumLit___redArg___closed__0;
|
||||
uint8_t l_Lean_IR_IRType_beq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_emitC___closed__4;
|
||||
static lean_object* l_Lean_IR_EmitC_emitOffset___redArg___closed__1;
|
||||
static lean_object* l_Lean_IR_EmitC_quoteString___closed__0;
|
||||
|
|
@ -496,6 +495,7 @@ LEAN_EXPORT lean_object* l_Lean_IR_EmitC_emitDel(lean_object*, lean_object*, lea
|
|||
static lean_object* l_Lean_IR_EmitC_emitFileFooter___redArg___closed__1;
|
||||
uint8_t l_Lean_IR_ExplicitBoxing_isBoxedName(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at___Lean_IR_EmitC_emitTailCall_spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint64_t l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(lean_object*);
|
||||
lean_object* l_Lean_IR_getUnboxOpName(lean_object*);
|
||||
static lean_object* l_Lean_IR_EmitC_emitBoxFn___redArg___closed__4;
|
||||
static lean_object* l_Lean_IR_emitC___closed__3;
|
||||
|
|
@ -4551,7 +4551,7 @@ x_6 = lean_ctor_get(x_4, 1);
|
|||
x_7 = lean_ctor_get(x_4, 0);
|
||||
lean_dec(x_7);
|
||||
x_8 = lean_array_get_size(x_6);
|
||||
x_9 = lean_uint64_of_nat(x_1);
|
||||
x_9 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_1);
|
||||
x_10 = 32;
|
||||
x_11 = lean_uint64_shift_right(x_9, x_10);
|
||||
x_12 = lean_uint64_xor(x_9, x_11);
|
||||
|
|
@ -4595,7 +4595,7 @@ x_25 = lean_ctor_get(x_4, 1);
|
|||
lean_inc(x_25);
|
||||
lean_dec(x_4);
|
||||
x_26 = lean_array_get_size(x_25);
|
||||
x_27 = lean_uint64_of_nat(x_1);
|
||||
x_27 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_1);
|
||||
x_28 = 32;
|
||||
x_29 = lean_uint64_shift_right(x_27, x_28);
|
||||
x_30 = lean_uint64_xor(x_27, x_29);
|
||||
|
|
@ -9333,7 +9333,7 @@ if (x_6 == 0)
|
|||
{
|
||||
lean_object* x_7; uint8_t x_8;
|
||||
x_7 = lean_box(5);
|
||||
x_8 = l_Lean_IR_IRType_beq(x_1, x_7);
|
||||
x_8 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_1, x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
|
|
|
|||
24
stage0/stdlib/Lean/Compiler/IR/EmitLLVM.c
generated
24
stage0/stdlib/Lean/Compiler/IR/EmitLLVM.c
generated
|
|
@ -661,6 +661,7 @@ static lean_object* l_Lean_IR_EmitLLVM_emitExternCall___closed__3;
|
|||
lean_object* l_Lean_Expr_getForallBody(lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* lean_llvm_create_module(size_t, lean_object*, lean_object*);
|
||||
uint64_t l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_EmitLLVM_IRType_isIntegerType___boxed(lean_object*);
|
||||
lean_object* lean_llvm_build_sub(size_t, size_t, size_t, size_t, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_EmitLLVM_emitMainFn(size_t, size_t, size_t, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -698,6 +699,7 @@ static lean_object* l_Lean_IR_EmitLLVM_emitApp___closed__1;
|
|||
uint8_t l_Lean_IR_ExplicitBoxing_isBoxedName(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Lean_IR_EmitLLVM_emitLhsSlot___spec__0___redArg___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_EmitLLVM_getDecl___redArg___closed__0;
|
||||
uint64_t l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_EmitLLVM_callLeanUnboxUint32___redArg(size_t, size_t, size_t, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_llvm_double_type_in_context(size_t, lean_object*);
|
||||
static lean_object* l_Lean_IR_EmitLLVM_quoteString___closed__0;
|
||||
|
|
@ -1282,7 +1284,7 @@ x_28 = lean_box_usize(x_2);
|
|||
lean_ctor_set(x_6, 1, x_28);
|
||||
lean_ctor_set(x_6, 0, x_27);
|
||||
x_29 = lean_array_get_size(x_16);
|
||||
x_30 = lean_uint64_of_nat(x_1);
|
||||
x_30 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_31 = 32;
|
||||
x_32 = lean_uint64_shift_right(x_30, x_31);
|
||||
x_33 = lean_uint64_xor(x_30, x_32);
|
||||
|
|
@ -1393,7 +1395,7 @@ x_70 = lean_box_usize(x_2);
|
|||
lean_ctor_set(x_6, 1, x_70);
|
||||
lean_ctor_set(x_6, 0, x_69);
|
||||
x_71 = lean_array_get_size(x_60);
|
||||
x_72 = lean_uint64_of_nat(x_1);
|
||||
x_72 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_73 = 32;
|
||||
x_74 = lean_uint64_shift_right(x_72, x_73);
|
||||
x_75 = lean_uint64_xor(x_72, x_74);
|
||||
|
|
@ -1528,7 +1530,7 @@ x_120 = lean_alloc_ctor(0, 2, 0);
|
|||
lean_ctor_set(x_120, 0, x_118);
|
||||
lean_ctor_set(x_120, 1, x_119);
|
||||
x_121 = lean_array_get_size(x_108);
|
||||
x_122 = lean_uint64_of_nat(x_1);
|
||||
x_122 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_123 = 32;
|
||||
x_124 = lean_uint64_shift_right(x_122, x_123);
|
||||
x_125 = lean_uint64_xor(x_122, x_124);
|
||||
|
|
@ -1708,7 +1710,7 @@ lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_24; uint
|
|||
x_12 = lean_ctor_get(x_7, 0);
|
||||
x_13 = lean_ctor_get(x_7, 1);
|
||||
x_24 = lean_array_get_size(x_13);
|
||||
x_25 = lean_uint64_of_nat(x_1);
|
||||
x_25 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_1);
|
||||
x_26 = 32;
|
||||
x_27 = lean_uint64_shift_right(x_25, x_26);
|
||||
x_28 = lean_uint64_xor(x_25, x_27);
|
||||
|
|
@ -1817,7 +1819,7 @@ lean_inc(x_57);
|
|||
lean_inc(x_56);
|
||||
lean_dec(x_7);
|
||||
x_66 = lean_array_get_size(x_57);
|
||||
x_67 = lean_uint64_of_nat(x_1);
|
||||
x_67 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_1);
|
||||
x_68 = 32;
|
||||
x_69 = lean_uint64_shift_right(x_67, x_68);
|
||||
x_70 = lean_uint64_xor(x_67, x_69);
|
||||
|
|
@ -2030,7 +2032,7 @@ x_9 = lean_ctor_get(x_6, 1);
|
|||
lean_inc(x_9);
|
||||
lean_dec(x_6);
|
||||
x_10 = lean_array_get_size(x_9);
|
||||
x_11 = lean_uint64_of_nat(x_1);
|
||||
x_11 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_1);
|
||||
x_12 = 32;
|
||||
x_13 = lean_uint64_shift_right(x_11, x_12);
|
||||
x_14 = lean_uint64_xor(x_11, x_13);
|
||||
|
|
@ -2095,7 +2097,7 @@ x_35 = lean_ctor_get(x_6, 1);
|
|||
lean_inc(x_35);
|
||||
lean_dec(x_6);
|
||||
x_36 = lean_array_get_size(x_35);
|
||||
x_37 = lean_uint64_of_nat(x_1);
|
||||
x_37 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_1);
|
||||
x_38 = 32;
|
||||
x_39 = lean_uint64_shift_right(x_37, x_38);
|
||||
x_40 = lean_uint64_xor(x_37, x_39);
|
||||
|
|
@ -10910,7 +10912,7 @@ x_9 = lean_ctor_get(x_6, 1);
|
|||
lean_inc(x_9);
|
||||
lean_dec(x_6);
|
||||
x_10 = lean_array_get_size(x_9);
|
||||
x_11 = lean_uint64_of_nat(x_1);
|
||||
x_11 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_12 = 32;
|
||||
x_13 = lean_uint64_shift_right(x_11, x_12);
|
||||
x_14 = lean_uint64_xor(x_11, x_13);
|
||||
|
|
@ -10975,7 +10977,7 @@ x_35 = lean_ctor_get(x_6, 1);
|
|||
lean_inc(x_35);
|
||||
lean_dec(x_6);
|
||||
x_36 = lean_array_get_size(x_35);
|
||||
x_37 = lean_uint64_of_nat(x_1);
|
||||
x_37 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_38 = 32;
|
||||
x_39 = lean_uint64_shift_right(x_37, x_38);
|
||||
x_40 = lean_uint64_xor(x_37, x_39);
|
||||
|
|
@ -25043,7 +25045,7 @@ x_10 = lean_ctor_get(x_8, 1);
|
|||
x_11 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_11);
|
||||
x_12 = lean_array_get_size(x_10);
|
||||
x_13 = lean_uint64_of_nat(x_3);
|
||||
x_13 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_3);
|
||||
x_14 = 32;
|
||||
x_15 = lean_uint64_shift_right(x_13, x_14);
|
||||
x_16 = lean_uint64_xor(x_13, x_15);
|
||||
|
|
@ -25228,7 +25230,7 @@ x_67 = lean_ctor_get(x_8, 1);
|
|||
lean_inc(x_67);
|
||||
lean_dec(x_8);
|
||||
x_68 = lean_array_get_size(x_67);
|
||||
x_69 = lean_uint64_of_nat(x_3);
|
||||
x_69 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_3);
|
||||
x_70 = 32;
|
||||
x_71 = lean_uint64_shift_right(x_69, x_70);
|
||||
x_72 = lean_uint64_xor(x_69, x_71);
|
||||
|
|
|
|||
83
stage0/stdlib/Lean/Compiler/IR/EmitUtil.c
generated
83
stage0/stdlib/Lean/Compiler/IR/EmitUtil.c
generated
|
|
@ -19,18 +19,17 @@ LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Lean_I
|
|||
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Lean_IR_CollectMaps_collectFnBody_spec__0(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_IR_CollectMaps_collectParams_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_IR_CollectMaps_collectParams_spec__1(lean_object*, lean_object*);
|
||||
uint64_t lean_uint64_of_nat(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Lean_IR_CollectMaps_collectFnBody_spec__4___redArg(lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_uint64_to_usize(uint64_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_CollectMaps_collectParams(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_IR_CollectMaps_collectFnBody_spec__1___redArg(lean_object*);
|
||||
static lean_object* l_Lean_IR_CollectMaps_collectJP___closed__0;
|
||||
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Lean_IR_CollectMaps_collectParams_spec__0(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_IR_CollectMaps_collectFnBody_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*);
|
||||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_FnBody_isTerminal(lean_object*);
|
||||
lean_object* l_Lean_IR_instHashableVarId___lam__0___boxed(lean_object*);
|
||||
uint8_t l_Lean_Name_isPrefixOf(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Lean_IR_CollectMaps_collectParams_spec__0___redArg(lean_object*, lean_object*);
|
||||
lean_object* l_Std_DHashMap_Internal_AssocList_replace___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -56,6 +55,7 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_IR_CollectUsedDec
|
|||
static lean_object* l_Lean_IR_mkVarJPMaps___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Lean_IR_CollectMaps_collectParams_spec__0___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_CollectUsedDecls_collectDecl(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96____boxed(lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_CollectMaps_collectFnBody(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_IR_CollectMaps_collectParams_spec__5(lean_object*, size_t, size_t, lean_object*);
|
||||
|
|
@ -64,25 +64,29 @@ lean_object* l_Lean_NameSet_insert(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_IR_mkVarJPMaps___closed__3;
|
||||
uint8_t l_Std_DHashMap_Internal_AssocList_contains___redArg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_mkVarJPMaps___closed__5;
|
||||
lean_object* l_Lean_IR_beqVarId____x40_Lean_Compiler_IR_Basic___hyg_38____boxed(lean_object*, lean_object*);
|
||||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_IR_CollectMaps_collectParams_spec__1___redArg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_replace___at___Lean_IR_CollectMaps_collectParams_spec__4___redArg(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
uint64_t l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(lean_object*);
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Lean_IR_CollectMaps_collectParams_spec__0___redArg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Environment_allImportedModuleNames(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_IR_isTailCallTo(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_IR_CollectMaps_collectFnBody_spec__1_spec__1_spec__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_IR_CollectMaps_collectParams_spec__1_spec__1_spec__1___redArg(lean_object*, lean_object*);
|
||||
uint64_t l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_usesModuleFrom___lam__0___boxed(lean_object*, lean_object*);
|
||||
uint64_t lean_uint64_xor(uint64_t, uint64_t);
|
||||
static lean_object* l_Lean_IR_CollectMaps_collectVar___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_mkVarJPMaps(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_CollectUsedDecls_collectInitDecl(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_instBEqVarId___lam__0___boxed(lean_object*, lean_object*);
|
||||
lean_object* lean_nat_mul(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_beqJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_192____boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_IR_usesModuleFrom___lam__0(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_CollectMaps_collectJP(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_CollectMaps_collectJP___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_IR_CollectMaps_collectParams_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Nat_nextPowerOfTwo(lean_object*);
|
||||
size_t lean_usize_sub(size_t, size_t);
|
||||
|
|
@ -107,6 +111,7 @@ LEAN_EXPORT lean_object* l_Lean_IR_CollectUsedDecls_collectFnBody___boxed(lean_o
|
|||
LEAN_EXPORT lean_object* l_Lean_IR_usesModuleFrom___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_CollectMaps_collectParams___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Lean_IR_CollectMaps_collectFnBody_spec__0___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250____boxed(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_IR_isTailCallTo(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -683,7 +688,7 @@ static lean_object* _init_l_Lean_IR_CollectMaps_collectVar___closed__0() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_instBEqVarId___lam__0___boxed), 2, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_beqVarId____x40_Lean_Compiler_IR_Basic___hyg_38____boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -691,7 +696,7 @@ static lean_object* _init_l_Lean_IR_CollectMaps_collectVar___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_instHashableVarId___lam__0___boxed), 1, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96____boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -712,7 +717,7 @@ x_7 = lean_ctor_get(x_5, 0);
|
|||
x_8 = lean_ctor_get(x_5, 1);
|
||||
x_9 = l_Lean_IR_CollectMaps_collectVar___closed__0;
|
||||
x_10 = lean_array_get_size(x_8);
|
||||
x_11 = lean_uint64_of_nat(x_1);
|
||||
x_11 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_12 = 32;
|
||||
x_13 = lean_uint64_shift_right(x_11, x_12);
|
||||
x_14 = lean_uint64_xor(x_11, x_13);
|
||||
|
|
@ -786,7 +791,7 @@ lean_inc(x_41);
|
|||
lean_dec(x_5);
|
||||
x_43 = l_Lean_IR_CollectMaps_collectVar___closed__0;
|
||||
x_44 = lean_array_get_size(x_42);
|
||||
x_45 = lean_uint64_of_nat(x_1);
|
||||
x_45 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_46 = 32;
|
||||
x_47 = lean_uint64_shift_right(x_45, x_46);
|
||||
x_48 = lean_uint64_xor(x_45, x_47);
|
||||
|
|
@ -881,7 +886,7 @@ if (lean_is_exclusive(x_78)) {
|
|||
}
|
||||
x_83 = l_Lean_IR_CollectMaps_collectVar___closed__0;
|
||||
x_84 = lean_array_get_size(x_81);
|
||||
x_85 = lean_uint64_of_nat(x_1);
|
||||
x_85 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_86 = 32;
|
||||
x_87 = lean_uint64_shift_right(x_85, x_86);
|
||||
x_88 = lean_uint64_xor(x_85, x_87);
|
||||
|
|
@ -1025,7 +1030,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; uint64_t x_8
|
|||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 2);
|
||||
x_6 = lean_array_get_size(x_1);
|
||||
x_7 = lean_uint64_of_nat(x_4);
|
||||
x_7 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_4);
|
||||
x_8 = 32;
|
||||
x_9 = lean_uint64_shift_right(x_7, x_8);
|
||||
x_10 = lean_uint64_xor(x_7, x_9);
|
||||
|
|
@ -1056,7 +1061,7 @@ lean_inc(x_23);
|
|||
lean_inc(x_22);
|
||||
lean_dec(x_2);
|
||||
x_25 = lean_array_get_size(x_1);
|
||||
x_26 = lean_uint64_of_nat(x_22);
|
||||
x_26 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_22);
|
||||
x_27 = 32;
|
||||
x_28 = lean_uint64_shift_right(x_26, x_27);
|
||||
x_29 = lean_uint64_xor(x_26, x_28);
|
||||
|
|
@ -1264,7 +1269,7 @@ x_20 = lean_ctor_get(x_18, 1);
|
|||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
x_21 = lean_array_get_size(x_17);
|
||||
x_22 = lean_uint64_of_nat(x_19);
|
||||
x_22 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_19);
|
||||
x_23 = 32;
|
||||
x_24 = lean_uint64_shift_right(x_22, x_23);
|
||||
x_25 = lean_uint64_xor(x_22, x_24);
|
||||
|
|
@ -1343,7 +1348,7 @@ x_55 = lean_ctor_get(x_53, 1);
|
|||
lean_inc(x_55);
|
||||
lean_dec(x_53);
|
||||
x_56 = lean_array_get_size(x_52);
|
||||
x_57 = lean_uint64_of_nat(x_54);
|
||||
x_57 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_54);
|
||||
x_58 = 32;
|
||||
x_59 = lean_uint64_shift_right(x_57, x_58);
|
||||
x_60 = lean_uint64_xor(x_57, x_59);
|
||||
|
|
@ -1512,6 +1517,22 @@ lean_dec(x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_IR_CollectMaps_collectJP___closed__0() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_beqJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_192____boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_IR_CollectMaps_collectJP___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250____boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_CollectMaps_collectJP(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -1527,9 +1548,9 @@ if (x_6 == 0)
|
|||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; uint64_t x_15; uint64_t x_16; uint64_t x_17; size_t x_18; size_t x_19; size_t x_20; size_t x_21; size_t x_22; lean_object* x_23; uint8_t x_24;
|
||||
x_7 = lean_ctor_get(x_5, 0);
|
||||
x_8 = lean_ctor_get(x_5, 1);
|
||||
x_9 = l_Lean_IR_CollectMaps_collectVar___closed__0;
|
||||
x_9 = l_Lean_IR_CollectMaps_collectJP___closed__0;
|
||||
x_10 = lean_array_get_size(x_8);
|
||||
x_11 = lean_uint64_of_nat(x_1);
|
||||
x_11 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_1);
|
||||
x_12 = 32;
|
||||
x_13 = lean_uint64_shift_right(x_11, x_12);
|
||||
x_14 = lean_uint64_xor(x_11, x_13);
|
||||
|
|
@ -1569,7 +1590,7 @@ lean_dec(x_32);
|
|||
if (x_34 == 0)
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36;
|
||||
x_35 = l_Lean_IR_CollectMaps_collectVar___closed__1;
|
||||
x_35 = l_Lean_IR_CollectMaps_collectJP___closed__1;
|
||||
x_36 = l_Std_DHashMap_Internal_Raw_u2080_expand___redArg(x_35, x_28);
|
||||
lean_ctor_set(x_5, 1, x_36);
|
||||
lean_ctor_set(x_5, 0, x_26);
|
||||
|
|
@ -1601,9 +1622,9 @@ x_42 = lean_ctor_get(x_5, 1);
|
|||
lean_inc(x_42);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_5);
|
||||
x_43 = l_Lean_IR_CollectMaps_collectVar___closed__0;
|
||||
x_43 = l_Lean_IR_CollectMaps_collectJP___closed__0;
|
||||
x_44 = lean_array_get_size(x_42);
|
||||
x_45 = lean_uint64_of_nat(x_1);
|
||||
x_45 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_1);
|
||||
x_46 = 32;
|
||||
x_47 = lean_uint64_shift_right(x_45, x_46);
|
||||
x_48 = lean_uint64_xor(x_45, x_47);
|
||||
|
|
@ -1643,7 +1664,7 @@ lean_dec(x_66);
|
|||
if (x_68 == 0)
|
||||
{
|
||||
lean_object* x_69; lean_object* x_70; lean_object* x_71;
|
||||
x_69 = l_Lean_IR_CollectMaps_collectVar___closed__1;
|
||||
x_69 = l_Lean_IR_CollectMaps_collectJP___closed__1;
|
||||
x_70 = l_Std_DHashMap_Internal_Raw_u2080_expand___redArg(x_69, x_62);
|
||||
x_71 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_71, 0, x_60);
|
||||
|
|
@ -1696,9 +1717,9 @@ if (lean_is_exclusive(x_78)) {
|
|||
lean_dec_ref(x_78);
|
||||
x_82 = lean_box(0);
|
||||
}
|
||||
x_83 = l_Lean_IR_CollectMaps_collectVar___closed__0;
|
||||
x_83 = l_Lean_IR_CollectMaps_collectJP___closed__0;
|
||||
x_84 = lean_array_get_size(x_81);
|
||||
x_85 = lean_uint64_of_nat(x_1);
|
||||
x_85 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_1);
|
||||
x_86 = 32;
|
||||
x_87 = lean_uint64_shift_right(x_85, x_86);
|
||||
x_88 = lean_uint64_xor(x_85, x_87);
|
||||
|
|
@ -1738,7 +1759,7 @@ lean_dec(x_106);
|
|||
if (x_108 == 0)
|
||||
{
|
||||
lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112;
|
||||
x_109 = l_Lean_IR_CollectMaps_collectVar___closed__1;
|
||||
x_109 = l_Lean_IR_CollectMaps_collectJP___closed__1;
|
||||
x_110 = l_Std_DHashMap_Internal_Raw_u2080_expand___redArg(x_109, x_102);
|
||||
if (lean_is_scalar(x_82)) {
|
||||
x_111 = lean_alloc_ctor(0, 2, 0);
|
||||
|
|
@ -1842,7 +1863,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; uint64_t x_8
|
|||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 2);
|
||||
x_6 = lean_array_get_size(x_1);
|
||||
x_7 = lean_uint64_of_nat(x_4);
|
||||
x_7 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_4);
|
||||
x_8 = 32;
|
||||
x_9 = lean_uint64_shift_right(x_7, x_8);
|
||||
x_10 = lean_uint64_xor(x_7, x_9);
|
||||
|
|
@ -1873,7 +1894,7 @@ lean_inc(x_23);
|
|||
lean_inc(x_22);
|
||||
lean_dec(x_2);
|
||||
x_25 = lean_array_get_size(x_1);
|
||||
x_26 = lean_uint64_of_nat(x_22);
|
||||
x_26 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_22);
|
||||
x_27 = 32;
|
||||
x_28 = lean_uint64_shift_right(x_26, x_27);
|
||||
x_29 = lean_uint64_xor(x_26, x_28);
|
||||
|
|
@ -2120,7 +2141,7 @@ lean_object* x_10; lean_object* x_11; lean_object* x_12; uint64_t x_13; uint64_t
|
|||
x_10 = lean_ctor_get(x_8, 0);
|
||||
x_11 = lean_ctor_get(x_8, 1);
|
||||
x_12 = lean_array_get_size(x_11);
|
||||
x_13 = lean_uint64_of_nat(x_3);
|
||||
x_13 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_3);
|
||||
x_14 = 32;
|
||||
x_15 = lean_uint64_shift_right(x_13, x_14);
|
||||
x_16 = lean_uint64_xor(x_13, x_15);
|
||||
|
|
@ -2190,7 +2211,7 @@ lean_inc(x_43);
|
|||
lean_inc(x_42);
|
||||
lean_dec(x_8);
|
||||
x_44 = lean_array_get_size(x_43);
|
||||
x_45 = lean_uint64_of_nat(x_3);
|
||||
x_45 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_3);
|
||||
x_46 = 32;
|
||||
x_47 = lean_uint64_shift_right(x_45, x_46);
|
||||
x_48 = lean_uint64_xor(x_45, x_47);
|
||||
|
|
@ -2281,7 +2302,7 @@ if (lean_is_exclusive(x_77)) {
|
|||
x_81 = lean_box(0);
|
||||
}
|
||||
x_82 = lean_array_get_size(x_80);
|
||||
x_83 = lean_uint64_of_nat(x_3);
|
||||
x_83 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_3);
|
||||
x_84 = 32;
|
||||
x_85 = lean_uint64_shift_right(x_83, x_84);
|
||||
x_86 = lean_uint64_xor(x_83, x_85);
|
||||
|
|
@ -2396,7 +2417,7 @@ lean_object* x_128; lean_object* x_129; lean_object* x_130; uint64_t x_131; uint
|
|||
x_128 = lean_ctor_get(x_126, 0);
|
||||
x_129 = lean_ctor_get(x_126, 1);
|
||||
x_130 = lean_array_get_size(x_129);
|
||||
x_131 = lean_uint64_of_nat(x_118);
|
||||
x_131 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_118);
|
||||
x_132 = 32;
|
||||
x_133 = lean_uint64_shift_right(x_131, x_132);
|
||||
x_134 = lean_uint64_xor(x_131, x_133);
|
||||
|
|
@ -2466,7 +2487,7 @@ lean_inc(x_161);
|
|||
lean_inc(x_160);
|
||||
lean_dec(x_126);
|
||||
x_162 = lean_array_get_size(x_161);
|
||||
x_163 = lean_uint64_of_nat(x_118);
|
||||
x_163 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_118);
|
||||
x_164 = 32;
|
||||
x_165 = lean_uint64_shift_right(x_163, x_164);
|
||||
x_166 = lean_uint64_xor(x_163, x_165);
|
||||
|
|
@ -2557,7 +2578,7 @@ if (lean_is_exclusive(x_195)) {
|
|||
x_199 = lean_box(0);
|
||||
}
|
||||
x_200 = lean_array_get_size(x_198);
|
||||
x_201 = lean_uint64_of_nat(x_118);
|
||||
x_201 = l_Lean_IR_hashJoinPointId____x40_Lean_Compiler_IR_Basic___hyg_250_(x_118);
|
||||
x_202 = 32;
|
||||
x_203 = lean_uint64_shift_right(x_201, x_202);
|
||||
x_204 = lean_uint64_xor(x_201, x_203);
|
||||
|
|
@ -2940,6 +2961,10 @@ l_Lean_IR_CollectMaps_collectVar___closed__0 = _init_l_Lean_IR_CollectMaps_colle
|
|||
lean_mark_persistent(l_Lean_IR_CollectMaps_collectVar___closed__0);
|
||||
l_Lean_IR_CollectMaps_collectVar___closed__1 = _init_l_Lean_IR_CollectMaps_collectVar___closed__1();
|
||||
lean_mark_persistent(l_Lean_IR_CollectMaps_collectVar___closed__1);
|
||||
l_Lean_IR_CollectMaps_collectJP___closed__0 = _init_l_Lean_IR_CollectMaps_collectJP___closed__0();
|
||||
lean_mark_persistent(l_Lean_IR_CollectMaps_collectJP___closed__0);
|
||||
l_Lean_IR_CollectMaps_collectJP___closed__1 = _init_l_Lean_IR_CollectMaps_collectJP___closed__1();
|
||||
lean_mark_persistent(l_Lean_IR_CollectMaps_collectJP___closed__1);
|
||||
l_Lean_IR_mkVarJPMaps___closed__0 = _init_l_Lean_IR_mkVarJPMaps___closed__0();
|
||||
lean_mark_persistent(l_Lean_IR_mkVarJPMaps___closed__0);
|
||||
l_Lean_IR_mkVarJPMaps___closed__1 = _init_l_Lean_IR_mkVarJPMaps___closed__1();
|
||||
|
|
|
|||
96
stage0/stdlib/Lean/Compiler/IR/ExpandResetReuse.c
generated
96
stage0/stdlib/Lean/Compiler/IR/ExpandResetReuse.c
generated
|
|
@ -29,7 +29,6 @@ LEAN_EXPORT lean_object* l_Lean_IR_ExpandResetReuse_isSelfSSet___boxed(lean_obje
|
|||
LEAN_EXPORT lean_object* l_Lean_IR_ExpandResetReuse_releaseUnreadFields(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at___Lean_IR_ExpandResetReuse_consumed_spec__0(lean_object*, lean_object*, size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at___Lean_IR_ExpandResetReuse_setFields_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint64_t lean_uint64_of_nat(lean_object*);
|
||||
lean_object* l_Lean_IR_push(lean_object*, lean_object*);
|
||||
size_t lean_uint64_to_usize(uint64_t);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___Lean_IR_ExpandResetReuse_CollectProjMap_collectFnBody_spec__5(lean_object*, size_t, size_t, lean_object*);
|
||||
|
|
@ -50,9 +49,9 @@ LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at___Lean_IR_ExpandResetReuse_setFi
|
|||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Lean_IR_ExpandResetReuse_CollectProjMap_collectFnBody_spec__0___redArg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExpandResetReuse_reuseToCtor(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExpandResetReuse_reuseToSet___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_IR_instInhabitedFnBody;
|
||||
lean_object* l_Lean_IR_FnBody_replaceVar(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_Decl_expandResetReuse(lean_object*);
|
||||
lean_object* l_Lean_IR_instHashableVarId___lam__0___boxed(lean_object*);
|
||||
lean_object* l_Array_back_x21___redArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExpandResetReuse_setFields(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_foldM_loop___at___Lean_IR_ExpandResetReuse_releaseUnreadFields_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -86,6 +85,7 @@ LEAN_EXPORT uint8_t l_Lean_IR_ExpandResetReuse_isSelfSet(lean_object*, lean_obje
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_IR_ExpandResetReuse_reuseToSet_spec__0(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
static lean_object* l_Lean_IR_ExpandResetReuse_mkProjMap___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_get_x3f___at___Lean_IR_ExpandResetReuse_isSelfSet_spec__0(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96____boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_contains___at___Lean_IR_ExpandResetReuse_CollectProjMap_collectFnBody_spec__0___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_IR_ExpandResetReuse_removeSelfSet_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExpandResetReuse_mkFresh___redArg(lean_object*);
|
||||
|
|
@ -93,6 +93,7 @@ LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at___Lean_IR_ExpandResetReuse_setFi
|
|||
uint8_t l_Std_DHashMap_Internal_AssocList_contains___redArg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_IR_ExpandResetReuse_CollectProjMap_collectFnBody_spec__1___redArg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_IR_ExpandResetReuse_CollectProjMap_collectFnBody_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_beqVarId____x40_Lean_Compiler_IR_Basic___hyg_38____boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_mkIf(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExpandResetReuse_consumed___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at___Lean_IR_ExpandResetReuse_setFields_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -105,6 +106,7 @@ static lean_object* l_Lean_IR_ExpandResetReuse_mkProjMap___closed__4;
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_IR_ExpandResetReuse_reuseToSet_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExpandResetReuse_searchAndExpand___lam__0(lean_object*, lean_object*, lean_object*);
|
||||
uint64_t l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExpandResetReuse_mkFastPath___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExpandResetReuse_releaseUnreadFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -113,7 +115,6 @@ LEAN_EXPORT uint8_t l_Lean_IR_ExpandResetReuse_isSelfSSet(lean_object*, lean_obj
|
|||
lean_object* lean_array_set(lean_object*, lean_object*, lean_object*);
|
||||
uint64_t lean_uint64_xor(uint64_t, uint64_t);
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_instBEqVarId___lam__0___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_ExpandResetReuse_eraseProjIncFor___closed__0;
|
||||
lean_object* lean_nat_mul(lean_object*, lean_object*);
|
||||
|
|
@ -149,7 +150,7 @@ static lean_object* _init_l_Lean_IR_ExpandResetReuse_CollectProjMap_collectVDecl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_instBEqVarId___lam__0___boxed), 2, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_beqVarId____x40_Lean_Compiler_IR_Basic___hyg_38____boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -157,7 +158,7 @@ static lean_object* _init_l_Lean_IR_ExpandResetReuse_CollectProjMap_collectVDecl
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_instHashableVarId___lam__0___boxed), 1, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96____boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -186,7 +187,7 @@ lean_object* x_76; lean_object* x_77; lean_object* x_78; uint64_t x_79; uint64_t
|
|||
x_76 = lean_ctor_get(x_3, 0);
|
||||
x_77 = lean_ctor_get(x_3, 1);
|
||||
x_78 = lean_array_get_size(x_77);
|
||||
x_79 = lean_uint64_of_nat(x_1);
|
||||
x_79 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_80 = 32;
|
||||
x_81 = lean_uint64_shift_right(x_79, x_80);
|
||||
x_82 = lean_uint64_xor(x_79, x_81);
|
||||
|
|
@ -258,7 +259,7 @@ lean_inc(x_109);
|
|||
lean_inc(x_108);
|
||||
lean_dec(x_3);
|
||||
x_110 = lean_array_get_size(x_109);
|
||||
x_111 = lean_uint64_of_nat(x_1);
|
||||
x_111 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_112 = 32;
|
||||
x_113 = lean_uint64_shift_right(x_111, x_112);
|
||||
x_114 = lean_uint64_xor(x_111, x_113);
|
||||
|
|
@ -344,7 +345,7 @@ lean_object* x_7; lean_object* x_8; lean_object* x_9; uint64_t x_10; uint64_t x_
|
|||
x_7 = lean_ctor_get(x_3, 0);
|
||||
x_8 = lean_ctor_get(x_3, 1);
|
||||
x_9 = lean_array_get_size(x_8);
|
||||
x_10 = lean_uint64_of_nat(x_1);
|
||||
x_10 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_11 = 32;
|
||||
x_12 = lean_uint64_shift_right(x_10, x_11);
|
||||
x_13 = lean_uint64_xor(x_10, x_12);
|
||||
|
|
@ -416,7 +417,7 @@ lean_inc(x_40);
|
|||
lean_inc(x_39);
|
||||
lean_dec(x_3);
|
||||
x_41 = lean_array_get_size(x_40);
|
||||
x_42 = lean_uint64_of_nat(x_1);
|
||||
x_42 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_1);
|
||||
x_43 = 32;
|
||||
x_44 = lean_uint64_shift_right(x_42, x_43);
|
||||
x_45 = lean_uint64_xor(x_42, x_44);
|
||||
|
|
@ -539,7 +540,7 @@ lean_object* x_4; lean_object* x_5; lean_object* x_6; uint64_t x_7; uint64_t x_8
|
|||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 2);
|
||||
x_6 = lean_array_get_size(x_1);
|
||||
x_7 = lean_uint64_of_nat(x_4);
|
||||
x_7 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_4);
|
||||
x_8 = 32;
|
||||
x_9 = lean_uint64_shift_right(x_7, x_8);
|
||||
x_10 = lean_uint64_xor(x_7, x_9);
|
||||
|
|
@ -570,7 +571,7 @@ lean_inc(x_23);
|
|||
lean_inc(x_22);
|
||||
lean_dec(x_2);
|
||||
x_25 = lean_array_get_size(x_1);
|
||||
x_26 = lean_uint64_of_nat(x_22);
|
||||
x_26 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_22);
|
||||
x_27 = 32;
|
||||
x_28 = lean_uint64_shift_right(x_26, x_27);
|
||||
x_29 = lean_uint64_xor(x_26, x_28);
|
||||
|
|
@ -824,7 +825,7 @@ lean_object* x_77; lean_object* x_78; lean_object* x_79; uint64_t x_80; uint64_t
|
|||
x_77 = lean_ctor_get(x_6, 0);
|
||||
x_78 = lean_ctor_get(x_6, 1);
|
||||
x_79 = lean_array_get_size(x_78);
|
||||
x_80 = lean_uint64_of_nat(x_3);
|
||||
x_80 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_3);
|
||||
x_81 = 32;
|
||||
x_82 = lean_uint64_shift_right(x_80, x_81);
|
||||
x_83 = lean_uint64_xor(x_80, x_82);
|
||||
|
|
@ -894,7 +895,7 @@ lean_inc(x_110);
|
|||
lean_inc(x_109);
|
||||
lean_dec(x_6);
|
||||
x_111 = lean_array_get_size(x_110);
|
||||
x_112 = lean_uint64_of_nat(x_3);
|
||||
x_112 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_3);
|
||||
x_113 = 32;
|
||||
x_114 = lean_uint64_shift_right(x_112, x_113);
|
||||
x_115 = lean_uint64_xor(x_112, x_114);
|
||||
|
|
@ -978,7 +979,7 @@ lean_object* x_8; lean_object* x_9; lean_object* x_10; uint64_t x_11; uint64_t x
|
|||
x_8 = lean_ctor_get(x_6, 0);
|
||||
x_9 = lean_ctor_get(x_6, 1);
|
||||
x_10 = lean_array_get_size(x_9);
|
||||
x_11 = lean_uint64_of_nat(x_3);
|
||||
x_11 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_3);
|
||||
x_12 = 32;
|
||||
x_13 = lean_uint64_shift_right(x_11, x_12);
|
||||
x_14 = lean_uint64_xor(x_11, x_13);
|
||||
|
|
@ -1048,7 +1049,7 @@ lean_inc(x_41);
|
|||
lean_inc(x_40);
|
||||
lean_dec(x_6);
|
||||
x_42 = lean_array_get_size(x_41);
|
||||
x_43 = lean_uint64_of_nat(x_3);
|
||||
x_43 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_3);
|
||||
x_44 = 32;
|
||||
x_45 = lean_uint64_shift_right(x_43, x_44);
|
||||
x_46 = lean_uint64_xor(x_43, x_45);
|
||||
|
|
@ -1680,7 +1681,7 @@ x_18 = lean_nat_dec_lt(x_16, x_17);
|
|||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20;
|
||||
x_19 = lean_box(13);
|
||||
x_19 = l_Lean_IR_instInhabitedFnBody;
|
||||
x_20 = l_Array_back_x21___redArg(x_19, x_2);
|
||||
switch (lean_obj_tag(x_20)) {
|
||||
case 0:
|
||||
|
|
@ -1744,7 +1745,7 @@ x_31 = lean_ctor_get(x_30, 2);
|
|||
lean_inc(x_31);
|
||||
if (lean_obj_tag(x_31) == 3)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_51;
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; uint8_t x_52;
|
||||
x_32 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_ctor_get(x_31, 0);
|
||||
|
|
@ -1752,23 +1753,23 @@ lean_inc(x_33);
|
|||
x_34 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_31);
|
||||
x_51 = lean_nat_dec_eq(x_32, x_22);
|
||||
x_52 = lean_nat_dec_eq(x_32, x_22);
|
||||
lean_dec(x_32);
|
||||
if (x_51 == 0)
|
||||
if (x_52 == 0)
|
||||
{
|
||||
lean_dec(x_34);
|
||||
x_35 = x_51;
|
||||
goto block_50;
|
||||
x_35 = x_52;
|
||||
goto block_51;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_52;
|
||||
x_52 = lean_nat_dec_eq(x_1, x_34);
|
||||
uint8_t x_53;
|
||||
x_53 = lean_nat_dec_eq(x_1, x_34);
|
||||
lean_dec(x_34);
|
||||
x_35 = x_52;
|
||||
goto block_50;
|
||||
x_35 = x_53;
|
||||
goto block_51;
|
||||
}
|
||||
block_50:
|
||||
block_51:
|
||||
{
|
||||
if (x_35 == 0)
|
||||
{
|
||||
|
|
@ -1797,23 +1798,24 @@ x_43 = lean_unsigned_to_nat(1u);
|
|||
x_44 = lean_nat_dec_eq(x_23, x_43);
|
||||
if (x_44 == 0)
|
||||
{
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48;
|
||||
x_45 = lean_nat_sub(x_23, x_43);
|
||||
lean_dec(x_23);
|
||||
x_46 = lean_box(13);
|
||||
if (lean_is_scalar(x_26)) {
|
||||
x_46 = lean_alloc_ctor(6, 3, 2);
|
||||
x_47 = lean_alloc_ctor(6, 3, 2);
|
||||
} else {
|
||||
x_46 = x_26;
|
||||
x_47 = x_26;
|
||||
}
|
||||
lean_ctor_set(x_46, 0, x_22);
|
||||
lean_ctor_set(x_46, 1, x_45);
|
||||
lean_ctor_set(x_46, 2, x_19);
|
||||
lean_ctor_set_uint8(x_46, sizeof(void*)*3, x_24);
|
||||
lean_ctor_set_uint8(x_46, sizeof(void*)*3 + 1, x_25);
|
||||
x_47 = lean_array_push(x_42, x_46);
|
||||
lean_ctor_set(x_47, 0, x_22);
|
||||
lean_ctor_set(x_47, 1, x_45);
|
||||
lean_ctor_set(x_47, 2, x_46);
|
||||
lean_ctor_set_uint8(x_47, sizeof(void*)*3, x_24);
|
||||
lean_ctor_set_uint8(x_47, sizeof(void*)*3 + 1, x_25);
|
||||
x_48 = lean_array_push(x_42, x_47);
|
||||
x_2 = x_39;
|
||||
x_3 = x_41;
|
||||
x_4 = x_47;
|
||||
x_4 = x_48;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
|
|
@ -1850,14 +1852,14 @@ goto block_15;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_53; lean_object* x_54;
|
||||
lean_object* x_54; lean_object* x_55;
|
||||
lean_dec(x_26);
|
||||
lean_dec(x_23);
|
||||
lean_dec(x_22);
|
||||
lean_dec(x_16);
|
||||
x_53 = lean_box(0);
|
||||
x_54 = l_Lean_IR_ExpandResetReuse_eraseProjIncForAux___lam__0(x_4, x_2, x_3, x_53);
|
||||
return x_54;
|
||||
x_54 = lean_box(0);
|
||||
x_55 = l_Lean_IR_ExpandResetReuse_eraseProjIncForAux___lam__0(x_4, x_2, x_3, x_54);
|
||||
return x_55;
|
||||
}
|
||||
}
|
||||
default:
|
||||
|
|
@ -1870,11 +1872,11 @@ goto block_12;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_55; lean_object* x_56;
|
||||
lean_object* x_56; lean_object* x_57;
|
||||
lean_dec(x_16);
|
||||
x_55 = lean_box(0);
|
||||
x_56 = l_Lean_IR_ExpandResetReuse_eraseProjIncForAux___lam__0(x_4, x_2, x_3, x_55);
|
||||
return x_56;
|
||||
x_56 = lean_box(0);
|
||||
x_57 = l_Lean_IR_ExpandResetReuse_eraseProjIncForAux___lam__0(x_4, x_2, x_3, x_56);
|
||||
return x_57;
|
||||
}
|
||||
block_9:
|
||||
{
|
||||
|
|
@ -2816,7 +2818,7 @@ lean_object* x_5; lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9
|
|||
x_5 = lean_ctor_get(x_4, 0);
|
||||
x_6 = lean_ctor_get(x_1, 1);
|
||||
x_7 = lean_array_get_size(x_6);
|
||||
x_8 = lean_uint64_of_nat(x_5);
|
||||
x_8 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_5);
|
||||
x_9 = 32;
|
||||
x_10 = lean_uint64_shift_right(x_8, x_9);
|
||||
x_11 = lean_uint64_xor(x_8, x_10);
|
||||
|
|
@ -2923,7 +2925,7 @@ _start:
|
|||
lean_object* x_5; lean_object* x_6; uint64_t x_7; uint64_t x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; size_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_5 = lean_ctor_get(x_1, 1);
|
||||
x_6 = lean_array_get_size(x_5);
|
||||
x_7 = lean_uint64_of_nat(x_4);
|
||||
x_7 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_4);
|
||||
x_8 = 32;
|
||||
x_9 = lean_uint64_shift_right(x_7, x_8);
|
||||
x_10 = lean_uint64_xor(x_7, x_9);
|
||||
|
|
@ -3003,7 +3005,7 @@ _start:
|
|||
lean_object* x_6; lean_object* x_7; uint64_t x_8; uint64_t x_9; uint64_t x_10; uint64_t x_11; uint64_t x_12; uint64_t x_13; uint64_t x_14; size_t x_15; size_t x_16; size_t x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_6 = lean_ctor_get(x_1, 1);
|
||||
x_7 = lean_array_get_size(x_6);
|
||||
x_8 = lean_uint64_of_nat(x_5);
|
||||
x_8 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_5);
|
||||
x_9 = 32;
|
||||
x_10 = lean_uint64_shift_right(x_8, x_9);
|
||||
x_11 = lean_uint64_xor(x_8, x_10);
|
||||
|
|
|
|||
11
stage0/stdlib/Lean/Compiler/IR/LiveVars.c
generated
11
stage0/stdlib/Lean/Compiler/IR/LiveVars.c
generated
|
|
@ -82,7 +82,6 @@ uint8_t l_Lean_IR_HasIndex_visitArgs(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at_____private_Lean_Compiler_IR_LiveVars_0__Lean_IR_LiveVars_bindVar_spec__0___redArg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_IR_LiveVars_0__Lean_IR_LiveVars_collectArray___redArg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_ins___at___Lean_RBNode_insert___at___Lean_IR_mkLiveVarSet_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_instInhabitedLiveVarSet;
|
||||
uint8_t l_Lean_RBNode_isRed___redArg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_IsLive_visitJP(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_erase___at_____private_Lean_Compiler_IR_LiveVars_0__Lean_IR_LiveVars_bindVar_spec__0(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -858,14 +857,6 @@ x_5 = lean_box(x_4);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_IR_instInhabitedLiveVarSet() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_box(0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lean_RBNode_ins___at___Lean_RBNode_insert___at___Lean_IR_mkLiveVarSet_spec__0_spec__0___redArg___lam__0(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -4068,8 +4059,6 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_Compiler_IR_FreeVars(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_IR_instInhabitedLiveVarSet = _init_l_Lean_IR_instInhabitedLiveVarSet();
|
||||
lean_mark_persistent(l_Lean_IR_instInhabitedLiveVarSet);
|
||||
l___private_Lean_Compiler_IR_LiveVars_0__Lean_IR_LiveVars_collectArgs___closed__0 = _init_l___private_Lean_Compiler_IR_LiveVars_0__Lean_IR_LiveVars_collectArgs___closed__0();
|
||||
lean_mark_persistent(l___private_Lean_Compiler_IR_LiveVars_0__Lean_IR_LiveVars_collectArgs___closed__0);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
26
stage0/stdlib/Lean/Compiler/IR/PushProj.c
generated
26
stage0/stdlib/Lean/Compiler/IR/PushProj.c
generated
|
|
@ -18,9 +18,10 @@ LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_IR_FnBody_pushProj_spec__2(size_t, size_t, lean_object*);
|
||||
lean_object* l_Array_reverse___redArg(lean_object*);
|
||||
uint8_t l_Array_isEmpty___redArg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_IR_instInhabitedFnBody;
|
||||
lean_object* l_Array_back_x21___redArg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_FnBody_flatten(lean_object*);
|
||||
lean_object* l_Lean_IR_FnBody_freeIndices(lean_object*);
|
||||
|
|
@ -48,7 +49,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_IR_FnBody_pushProj_s
|
|||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
size_t lean_array_size(lean_object*);
|
||||
lean_object* l_Lean_IR_FnBody_collectFreeIndices(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
static lean_object* l_Lean_IR_FnBody_pushProj___closed__0;
|
||||
|
|
@ -176,12 +177,12 @@ goto _start;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0(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_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0___redArg(x_1, x_2, x_3, x_4, x_5, x_6, x_8);
|
||||
return x_9;
|
||||
lean_object* x_10;
|
||||
x_10 = l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0___redArg(x_2, x_3, x_4, x_5, x_6, x_7, x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_IR_pushProjs_spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) {
|
||||
|
|
@ -247,7 +248,7 @@ x_6 = l_Array_isEmpty___redArg(x_1);
|
|||
if (x_6 == 0)
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_7 = lean_box(13);
|
||||
x_7 = l_Lean_IR_instInhabitedFnBody;
|
||||
x_8 = l_Array_back_x21___redArg(x_7, x_1);
|
||||
x_9 = lean_array_pop(x_1);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
|
|
@ -405,15 +406,16 @@ lean_dec(x_1);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0___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_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_4);
|
||||
lean_object* x_10;
|
||||
x_10 = l_Array_mapFinIdxM_map___at___Lean_IR_pushProjs_spec__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_9;
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_IR_pushProjs_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Compiler/IR/RC.c
generated
4
stage0/stdlib/Lean/Compiler/IR/RC.c
generated
|
|
@ -68,7 +68,6 @@ lean_object* l_Lean_IR_LocalContext_getJPParams(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_RBNode_findCore___at_____private_Lean_Compiler_IR_RC_0__Lean_IR_ExplicitRC_addDecForAlt_spec__0___redArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_IR_RC_0__Lean_IR_ExplicitRC_addIncBefore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Nat_anyTR_loop___at_____private_Lean_Compiler_IR_RC_0__Lean_IR_ExplicitRC_isBorrowParamAux_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_Arg_beq(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_IRType_isObj(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitRC_getJPLiveVars(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Compiler_IR_RC_0__Lean_IR_ExplicitRC_isBorrowParamAux(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -157,6 +156,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Compiler_IR_RC_0__Lean_IR_ExplicitRC_a
|
|||
LEAN_EXPORT lean_object* l_panic___at___Lean_IR_ExplicitRC_getVarInfo_spec__1(lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Compiler_IR_RC_0__Lean_IR_ExplicitRC_isPersistent(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_findCore___at_____private_Lean_Compiler_IR_RC_0__Lean_IR_ExplicitRC_addDecForAlt_spec__0(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_beqArg____x40_Lean_Compiler_IR_Basic___hyg_1402_(lean_object*, lean_object*);
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ExplicitRC_getVarInfo(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_foldTR_loop___at_____private_Lean_Compiler_IR_RC_0__Lean_IR_ExplicitRC_addIncBeforeAux_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -879,7 +879,7 @@ x_8 = lean_nat_sub(x_4, x_5);
|
|||
lean_inc(x_1);
|
||||
x_9 = lean_array_get(x_1, x_2, x_8);
|
||||
lean_dec(x_8);
|
||||
x_10 = l_Lean_IR_Arg_beq(x_9, x_3);
|
||||
x_10 = l_Lean_IR_beqArg____x40_Lean_Compiler_IR_Basic___hyg_1402_(x_9, x_3);
|
||||
lean_dec(x_9);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
|
|
|
|||
14
stage0/stdlib/Lean/Compiler/IR/ResetReuse.c
generated
14
stage0/stdlib/Lean/Compiler/IR/ResetReuse.c
generated
|
|
@ -25,7 +25,6 @@ lean_object* l_Lean_IR_Decl_maxIndex(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___Lean_IR_ResetReuse_R_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_HasIndex_visitFnBody(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_IR_ResetReuse_R_spec__3___redArg(lean_object*, lean_object*, lean_object*);
|
||||
uint64_t lean_uint64_of_nat(lean_object*);
|
||||
size_t lean_uint64_to_usize(uint64_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at___Lean_IR_ResetReuse_R_spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert_spec__0___redArg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*);
|
||||
|
|
@ -38,7 +37,6 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_empty___at___Lean_IR_Decl_inse
|
|||
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___Lean_IR_ResetReuse_R_spec__0___redArg(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_FnBody_hasLiveVar(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_Decl_insertResetReuseCore(lean_object*, uint8_t);
|
||||
lean_object* l_Lean_IR_instHashableVarId___lam__0___boxed(lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_____private_Lean_Compiler_IR_ResetReuse_0__Lean_IR_ResetReuse_argsContainsVar_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___Lean_IR_ResetReuse_R_spec__0(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -56,6 +54,7 @@ static size_t l_Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap
|
|||
LEAN_EXPORT lean_object* l_Lean_IR_ResetReuse_collectResets(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_IR_ResetReuse_0__Lean_IR_ResetReuse_Dfinalize(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PersistentHashMap_insert___at___Lean_IR_ResetReuse_R_spec__3___redArg___closed__1;
|
||||
lean_object* l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96____boxed(lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PersistentHashMap_insert___at___Lean_IR_ResetReuse_R_spec__3___redArg___closed__0;
|
||||
LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at___Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at___Lean_IR_ResetReuse_R_spec__0_spec__0_spec__0___redArg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -65,6 +64,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Compiler_IR_ResetReuse_0__Lean_IR_Rese
|
|||
lean_object* lean_usize_to_nat(size_t);
|
||||
static lean_object* l_Lean_PersistentHashMap_empty___at___Lean_IR_Decl_insertResetReuseCore_spec__0___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___Lean_IR_ResetReuse_R_spec__0___redArg___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_beqVarId____x40_Lean_Compiler_IR_Basic___hyg_38____boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_Decl_insertResetReuse(lean_object*);
|
||||
uint8_t l_Lean_IR_FnBody_beq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_IR_ResetReuse_0__Lean_IR_ResetReuse_tryS___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -77,8 +77,8 @@ LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at___Lean_PersistentH
|
|||
LEAN_EXPORT uint8_t l___private_Lean_Compiler_IR_ResetReuse_0__Lean_IR_ResetReuse_argsContainsVar(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_IR_ResetReuse_0__Lean_IR_ResetReuse_D(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
uint64_t l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(lean_object*);
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_IR_instBEqVarId___lam__0___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_IR_ResetReuse_0__Lean_IR_ResetReuse_tryS(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at___Lean_IR_ResetReuse_R_spec__0___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Compiler_IR_ResetReuse_0__Lean_IR_ResetReuse_S_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1949,7 +1949,7 @@ LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_contains___at___Lean_IR_ResetReuse_
|
|||
_start:
|
||||
{
|
||||
uint64_t x_3; size_t x_4; uint8_t x_5;
|
||||
x_3 = lean_uint64_of_nat(x_2);
|
||||
x_3 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_2);
|
||||
x_4 = lean_uint64_to_usize(x_3);
|
||||
x_5 = l_Lean_PersistentHashMap_containsAux___at___Lean_PersistentHashMap_contains___at___Lean_IR_ResetReuse_R_spec__0_spec__0___redArg(x_1, x_4, x_2);
|
||||
return x_5;
|
||||
|
|
@ -1967,7 +1967,7 @@ static lean_object* _init_l_Lean_PersistentHashMap_insert___at___Lean_IR_ResetRe
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_instBEqVarId___lam__0___boxed), 2, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_beqVarId____x40_Lean_Compiler_IR_Basic___hyg_38____boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -1975,7 +1975,7 @@ static lean_object* _init_l_Lean_PersistentHashMap_insert___at___Lean_IR_ResetRe
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_instHashableVarId___lam__0___boxed), 1, 0);
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96____boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -1985,7 +1985,7 @@ _start:
|
|||
lean_object* x_4; lean_object* x_5; uint64_t x_6; size_t x_7; size_t x_8; lean_object* x_9;
|
||||
x_4 = l_Lean_PersistentHashMap_insert___at___Lean_IR_ResetReuse_R_spec__3___redArg___closed__0;
|
||||
x_5 = l_Lean_PersistentHashMap_insert___at___Lean_IR_ResetReuse_R_spec__3___redArg___closed__1;
|
||||
x_6 = lean_uint64_of_nat(x_2);
|
||||
x_6 = l_Lean_IR_hashVarId____x40_Lean_Compiler_IR_Basic___hyg_96_(x_2);
|
||||
x_7 = lean_uint64_to_usize(x_6);
|
||||
x_8 = 1;
|
||||
x_9 = l_Lean_PersistentHashMap_insertAux___at___Lean_PersistentHashMap_insert_spec__0___redArg(x_4, x_5, x_1, x_7, x_8, x_2, x_3);
|
||||
|
|
|
|||
19
stage0/stdlib/Lean/Compiler/IR/ToIR.c
generated
19
stage0/stdlib/Lean/Compiler/IR/ToIR.c
generated
|
|
@ -69,6 +69,7 @@ lean_object* l_ReaderT_instApplicativeOfMonad___redArg___lam__3(lean_object*, le
|
|||
static lean_object* l_Lean_IR_ToIR_lowerCode___closed__3;
|
||||
uint8_t l_List_isEmpty___redArg(lean_object*);
|
||||
lean_object* l_Lean_Environment_addExtraName(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_IR_instInhabitedFnBody;
|
||||
static lean_object* l_Lean_IR_ToIR_lowerLet___closed__3;
|
||||
static lean_object* l_Lean_IR_ToIR_lowerLet___closed__15;
|
||||
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
|
||||
|
|
@ -147,13 +148,13 @@ LEAN_EXPORT lean_object* l_panic___at___Lean_IR_ToIR_lowerCode_spec__3(lean_obje
|
|||
static lean_object* l_Lean_IR_ToIR_lowerCode___closed__0;
|
||||
static lean_object* l_Lean_IR_ToIR_M_run___redArg___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ToIR_lowerAlt_loop___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MessageData_tagWithErrorName(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ToIR_lowerLitValue(lean_object*);
|
||||
uint64_t l_Lean_hashFVarId____x40_Lean_Expr___hyg_1561_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ToIR_bindVarToVarId___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_ToIR_lowerLet___closed__26;
|
||||
static lean_object* l_Lean_IR_ToIR_lowerLet___closed__8;
|
||||
uint8_t l_Lean_IR_IRType_beq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_IR_ToIR_lowerLet___lam__1___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_IR_ToIR_lowerLet___closed__24;
|
||||
static lean_object* l_Lean_IR_ToIR_lowerLet___closed__37;
|
||||
|
|
@ -2402,7 +2403,7 @@ lean_ctor_set(x_9, 1, x_17);
|
|||
lean_ctor_set(x_9, 0, x_21);
|
||||
lean_ctor_set(x_7, 1, x_18);
|
||||
x_25 = l_ReaderT_instMonad___redArg(x_7);
|
||||
x_26 = lean_box(13);
|
||||
x_26 = l_Lean_IR_instInhabitedFnBody;
|
||||
x_27 = l_instInhabitedOfMonad___redArg(x_25, x_26);
|
||||
x_28 = lean_panic_fn(x_27, x_1);
|
||||
x_29 = lean_apply_4(x_28, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -2445,7 +2446,7 @@ lean_ctor_set(x_42, 4, x_39);
|
|||
lean_ctor_set(x_7, 1, x_35);
|
||||
lean_ctor_set(x_7, 0, x_42);
|
||||
x_43 = l_ReaderT_instMonad___redArg(x_7);
|
||||
x_44 = lean_box(13);
|
||||
x_44 = l_Lean_IR_instInhabitedFnBody;
|
||||
x_45 = l_instInhabitedOfMonad___redArg(x_43, x_44);
|
||||
x_46 = lean_panic_fn(x_45, x_1);
|
||||
x_47 = lean_apply_4(x_46, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -2507,7 +2508,7 @@ x_63 = lean_alloc_ctor(0, 2, 0);
|
|||
lean_ctor_set(x_63, 0, x_62);
|
||||
lean_ctor_set(x_63, 1, x_55);
|
||||
x_64 = l_ReaderT_instMonad___redArg(x_63);
|
||||
x_65 = lean_box(13);
|
||||
x_65 = l_Lean_IR_instInhabitedFnBody;
|
||||
x_66 = l_instInhabitedOfMonad___redArg(x_64, x_65);
|
||||
x_67 = lean_panic_fn(x_66, x_1);
|
||||
x_68 = lean_apply_4(x_67, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -6658,7 +6659,7 @@ lean_dec(x_344);
|
|||
lean_free_object(x_220);
|
||||
lean_free_object(x_216);
|
||||
x_350 = lean_box(7);
|
||||
x_351 = l_Lean_IR_IRType_beq(x_347, x_350);
|
||||
x_351 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_347, x_350);
|
||||
if (x_351 == 0)
|
||||
{
|
||||
lean_object* x_352; lean_object* x_353;
|
||||
|
|
@ -6994,7 +6995,7 @@ lean_dec(x_405);
|
|||
lean_free_object(x_220);
|
||||
lean_free_object(x_216);
|
||||
x_411 = lean_box(7);
|
||||
x_412 = l_Lean_IR_IRType_beq(x_408, x_411);
|
||||
x_412 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_408, x_411);
|
||||
if (x_412 == 0)
|
||||
{
|
||||
lean_object* x_413; lean_object* x_414;
|
||||
|
|
@ -7394,7 +7395,7 @@ lean_object* x_483; uint8_t x_484;
|
|||
lean_dec(x_477);
|
||||
lean_free_object(x_216);
|
||||
x_483 = lean_box(7);
|
||||
x_484 = l_Lean_IR_IRType_beq(x_480, x_483);
|
||||
x_484 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_480, x_483);
|
||||
if (x_484 == 0)
|
||||
{
|
||||
lean_object* x_485; lean_object* x_486;
|
||||
|
|
@ -8241,7 +8242,7 @@ lean_object* x_644; uint8_t x_645;
|
|||
lean_dec(x_638);
|
||||
lean_dec(x_634);
|
||||
x_644 = lean_box(7);
|
||||
x_645 = l_Lean_IR_IRType_beq(x_641, x_644);
|
||||
x_645 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_641, x_644);
|
||||
if (x_645 == 0)
|
||||
{
|
||||
lean_object* x_646; lean_object* x_647;
|
||||
|
|
@ -9110,7 +9111,7 @@ lean_dec(x_798);
|
|||
lean_dec(x_794);
|
||||
lean_dec(x_737);
|
||||
x_804 = lean_box(7);
|
||||
x_805 = l_Lean_IR_IRType_beq(x_801, x_804);
|
||||
x_805 = l_Lean_IR_beqIRType____x40_Lean_Compiler_IR_Basic___hyg_464_(x_801, x_804);
|
||||
if (x_805 == 0)
|
||||
{
|
||||
lean_object* x_806; lean_object* x_807;
|
||||
|
|
|
|||
2344
stage0/stdlib/Lean/Compiler/LCNF/ElimDeadBranches.c
generated
2344
stage0/stdlib/Lean/Compiler/LCNF/ElimDeadBranches.c
generated
File diff suppressed because it is too large
Load diff
792
stage0/stdlib/Lean/Compiler/LCNF/ToMono.c
generated
792
stage0/stdlib/Lean/Compiler/LCNF/ToMono.c
generated
File diff suppressed because it is too large
Load diff
1210
stage0/stdlib/Lean/Elab/Tactic/Grind.c
generated
1210
stage0/stdlib/Lean/Elab/Tactic/Grind.c
generated
File diff suppressed because it is too large
Load diff
621
stage0/stdlib/Lean/Meta/SynthInstance.c
generated
621
stage0/stdlib/Lean/Meta/SynthInstance.c
generated
File diff suppressed because it is too large
Load diff
6
stage0/stdlib/Lean/Meta/Tactic/Grind.c
generated
6
stage0/stdlib/Lean/Meta/Tactic/Grind.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Meta.Tactic.Grind
|
||||
// Imports: Lean.Meta.Tactic.Grind.Attr Lean.Meta.Tactic.Grind.RevertAll Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Cases Lean.Meta.Tactic.Grind.Injection Lean.Meta.Tactic.Grind.Core Lean.Meta.Tactic.Grind.Canon Lean.Meta.Tactic.Grind.MarkNestedProofs Lean.Meta.Tactic.Grind.Inv Lean.Meta.Tactic.Grind.Proof Lean.Meta.Tactic.Grind.Propagate Lean.Meta.Tactic.Grind.PP Lean.Meta.Tactic.Grind.Simp Lean.Meta.Tactic.Grind.Ctor Lean.Meta.Tactic.Grind.Parser Lean.Meta.Tactic.Grind.EMatchTheorem Lean.Meta.Tactic.Grind.EMatch Lean.Meta.Tactic.Grind.Main Lean.Meta.Tactic.Grind.CasesMatch Lean.Meta.Tactic.Grind.Arith Lean.Meta.Tactic.Grind.Ext Lean.Meta.Tactic.Grind.MatchCond Lean.Meta.Tactic.Grind.MatchDiscrOnly Lean.Meta.Tactic.Grind.Diseq Lean.Meta.Tactic.Grind.MBTC Lean.Meta.Tactic.Grind.Lookahead Lean.Meta.Tactic.Grind.LawfulEqCmp Lean.Meta.Tactic.Grind.ReflCmp
|
||||
// Imports: Lean.Meta.Tactic.Grind.Attr Lean.Meta.Tactic.Grind.RevertAll Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.Util Lean.Meta.Tactic.Grind.Cases Lean.Meta.Tactic.Grind.Injection Lean.Meta.Tactic.Grind.Core Lean.Meta.Tactic.Grind.Canon Lean.Meta.Tactic.Grind.MarkNestedProofs Lean.Meta.Tactic.Grind.Inv Lean.Meta.Tactic.Grind.Proof Lean.Meta.Tactic.Grind.Propagate Lean.Meta.Tactic.Grind.PP Lean.Meta.Tactic.Grind.Simp Lean.Meta.Tactic.Grind.Ctor Lean.Meta.Tactic.Grind.Parser Lean.Meta.Tactic.Grind.EMatchTheorem Lean.Meta.Tactic.Grind.EMatch Lean.Meta.Tactic.Grind.Main Lean.Meta.Tactic.Grind.CasesMatch Lean.Meta.Tactic.Grind.Arith Lean.Meta.Tactic.Grind.Ext Lean.Meta.Tactic.Grind.MatchCond Lean.Meta.Tactic.Grind.MatchDiscrOnly Lean.Meta.Tactic.Grind.Diseq Lean.Meta.Tactic.Grind.MBTC Lean.Meta.Tactic.Grind.Lookahead Lean.Meta.Tactic.Grind.LawfulEqCmp Lean.Meta.Tactic.Grind.ReflCmp Lean.Meta.Tactic.Grind.SynthInstance
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -2132,6 +2132,7 @@ lean_object* initialize_Lean_Meta_Tactic_Grind_MBTC(uint8_t builtin, lean_object
|
|||
lean_object* initialize_Lean_Meta_Tactic_Grind_Lookahead(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Grind_LawfulEqCmp(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Grind_ReflCmp(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Grind_SynthInstance(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -2224,6 +2225,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_Meta_Tactic_Grind_ReflCmp(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Tactic_Grind_SynthInstance(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_initFn___closed__0____x40_Lean_Meta_Tactic_Grind___hyg_4_ = _init_l_Lean_initFn___closed__0____x40_Lean_Meta_Tactic_Grind___hyg_4_();
|
||||
lean_mark_persistent(l_Lean_initFn___closed__0____x40_Lean_Meta_Tactic_Grind___hyg_4_);
|
||||
l_Lean_initFn___closed__1____x40_Lean_Meta_Tactic_Grind___hyg_4_ = _init_l_Lean_initFn___closed__1____x40_Lean_Meta_Tactic_Grind___hyg_4_();
|
||||
|
|
|
|||
7597
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/RingId.c
generated
7597
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/CommRing/RingId.c
generated
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
9872
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Cutsat/ToInt.c
generated
9872
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Cutsat/ToInt.c
generated
File diff suppressed because it is too large
Load diff
1022
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Insts.c
generated
Normal file
1022
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Insts.c
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -12961,7 +12961,7 @@ return x_22;
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Linear_PropagateEq_0__Lean_Meta_Grind_Arith_Linear_updateOccs(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_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_56;
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_56;
|
||||
x_56 = l_Lean_Meta_Grind_Arith_Linear_LinearM_getStruct(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
if (lean_obj_tag(x_56) == 0)
|
||||
{
|
||||
|
|
@ -13058,29 +13058,29 @@ x_88 = lean_nat_dec_lt(x_4, x_87);
|
|||
lean_dec(x_87);
|
||||
if (x_88 == 0)
|
||||
{
|
||||
x_14 = x_80;
|
||||
x_15 = x_59;
|
||||
x_16 = x_65;
|
||||
x_17 = x_67;
|
||||
x_18 = x_74;
|
||||
x_19 = x_71;
|
||||
x_20 = x_83;
|
||||
x_21 = x_72;
|
||||
x_22 = x_70;
|
||||
x_23 = x_79;
|
||||
x_24 = x_64;
|
||||
x_25 = x_69;
|
||||
x_26 = x_81;
|
||||
x_27 = x_77;
|
||||
x_28 = x_75;
|
||||
x_29 = x_73;
|
||||
x_30 = x_85;
|
||||
x_31 = x_86;
|
||||
x_32 = x_76;
|
||||
x_33 = x_66;
|
||||
x_34 = x_68;
|
||||
x_35 = x_78;
|
||||
x_36 = x_82;
|
||||
x_14 = x_76;
|
||||
x_15 = x_85;
|
||||
x_16 = x_86;
|
||||
x_17 = x_71;
|
||||
x_18 = x_77;
|
||||
x_19 = x_66;
|
||||
x_20 = x_64;
|
||||
x_21 = x_70;
|
||||
x_22 = x_69;
|
||||
x_23 = x_65;
|
||||
x_24 = x_83;
|
||||
x_25 = x_67;
|
||||
x_26 = x_78;
|
||||
x_27 = x_74;
|
||||
x_28 = x_59;
|
||||
x_29 = x_68;
|
||||
x_30 = x_72;
|
||||
x_31 = x_73;
|
||||
x_32 = x_80;
|
||||
x_33 = x_75;
|
||||
x_34 = x_82;
|
||||
x_35 = x_79;
|
||||
x_36 = x_81;
|
||||
x_37 = x_84;
|
||||
goto block_55;
|
||||
}
|
||||
|
|
@ -13099,29 +13099,29 @@ x_94 = lean_box(0);
|
|||
x_95 = l_Lean_PersistentArray_set___redArg(x_91, x_2, x_94);
|
||||
lean_ctor_set(x_89, 38, x_95);
|
||||
x_96 = lean_array_fset(x_93, x_4, x_89);
|
||||
x_14 = x_80;
|
||||
x_15 = x_59;
|
||||
x_16 = x_65;
|
||||
x_17 = x_67;
|
||||
x_18 = x_74;
|
||||
x_19 = x_71;
|
||||
x_20 = x_83;
|
||||
x_21 = x_72;
|
||||
x_22 = x_70;
|
||||
x_23 = x_79;
|
||||
x_24 = x_64;
|
||||
x_25 = x_69;
|
||||
x_26 = x_81;
|
||||
x_27 = x_77;
|
||||
x_28 = x_75;
|
||||
x_29 = x_73;
|
||||
x_30 = x_85;
|
||||
x_31 = x_86;
|
||||
x_32 = x_76;
|
||||
x_33 = x_66;
|
||||
x_34 = x_68;
|
||||
x_35 = x_78;
|
||||
x_36 = x_82;
|
||||
x_14 = x_76;
|
||||
x_15 = x_85;
|
||||
x_16 = x_86;
|
||||
x_17 = x_71;
|
||||
x_18 = x_77;
|
||||
x_19 = x_66;
|
||||
x_20 = x_64;
|
||||
x_21 = x_70;
|
||||
x_22 = x_69;
|
||||
x_23 = x_65;
|
||||
x_24 = x_83;
|
||||
x_25 = x_67;
|
||||
x_26 = x_78;
|
||||
x_27 = x_74;
|
||||
x_28 = x_59;
|
||||
x_29 = x_68;
|
||||
x_30 = x_72;
|
||||
x_31 = x_73;
|
||||
x_32 = x_80;
|
||||
x_33 = x_75;
|
||||
x_34 = x_82;
|
||||
x_35 = x_79;
|
||||
x_36 = x_81;
|
||||
x_37 = x_96;
|
||||
goto block_55;
|
||||
}
|
||||
|
|
@ -13257,29 +13257,29 @@ lean_ctor_set(x_142, 38, x_141);
|
|||
lean_ctor_set(x_142, 39, x_137);
|
||||
lean_ctor_set_uint8(x_142, sizeof(void*)*40, x_131);
|
||||
x_143 = lean_array_fset(x_139, x_4, x_142);
|
||||
x_14 = x_80;
|
||||
x_15 = x_59;
|
||||
x_16 = x_65;
|
||||
x_17 = x_67;
|
||||
x_18 = x_74;
|
||||
x_19 = x_71;
|
||||
x_20 = x_83;
|
||||
x_21 = x_72;
|
||||
x_22 = x_70;
|
||||
x_23 = x_79;
|
||||
x_24 = x_64;
|
||||
x_25 = x_69;
|
||||
x_26 = x_81;
|
||||
x_27 = x_77;
|
||||
x_28 = x_75;
|
||||
x_29 = x_73;
|
||||
x_30 = x_85;
|
||||
x_31 = x_86;
|
||||
x_32 = x_76;
|
||||
x_33 = x_66;
|
||||
x_34 = x_68;
|
||||
x_35 = x_78;
|
||||
x_36 = x_82;
|
||||
x_14 = x_76;
|
||||
x_15 = x_85;
|
||||
x_16 = x_86;
|
||||
x_17 = x_71;
|
||||
x_18 = x_77;
|
||||
x_19 = x_66;
|
||||
x_20 = x_64;
|
||||
x_21 = x_70;
|
||||
x_22 = x_69;
|
||||
x_23 = x_65;
|
||||
x_24 = x_83;
|
||||
x_25 = x_67;
|
||||
x_26 = x_78;
|
||||
x_27 = x_74;
|
||||
x_28 = x_59;
|
||||
x_29 = x_68;
|
||||
x_30 = x_72;
|
||||
x_31 = x_73;
|
||||
x_32 = x_80;
|
||||
x_33 = x_75;
|
||||
x_34 = x_82;
|
||||
x_35 = x_79;
|
||||
x_36 = x_81;
|
||||
x_37 = x_143;
|
||||
goto block_55;
|
||||
}
|
||||
|
|
@ -13325,32 +13325,32 @@ block_55:
|
|||
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43;
|
||||
x_38 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_38, 0, x_37);
|
||||
lean_ctor_set(x_38, 1, x_30);
|
||||
lean_ctor_set(x_38, 2, x_31);
|
||||
lean_ctor_set(x_38, 1, x_15);
|
||||
lean_ctor_set(x_38, 2, x_16);
|
||||
x_39 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_39, 0, x_26);
|
||||
lean_ctor_set(x_39, 1, x_36);
|
||||
lean_ctor_set(x_39, 2, x_20);
|
||||
lean_ctor_set(x_39, 0, x_36);
|
||||
lean_ctor_set(x_39, 1, x_34);
|
||||
lean_ctor_set(x_39, 2, x_24);
|
||||
lean_ctor_set(x_39, 3, x_38);
|
||||
x_40 = lean_alloc_ctor(0, 16, 1);
|
||||
lean_ctor_set(x_40, 0, x_16);
|
||||
lean_ctor_set(x_40, 1, x_33);
|
||||
lean_ctor_set(x_40, 2, x_17);
|
||||
lean_ctor_set(x_40, 3, x_34);
|
||||
lean_ctor_set(x_40, 4, x_25);
|
||||
lean_ctor_set(x_40, 5, x_22);
|
||||
lean_ctor_set(x_40, 6, x_19);
|
||||
lean_ctor_set(x_40, 7, x_21);
|
||||
lean_ctor_set(x_40, 8, x_18);
|
||||
lean_ctor_set(x_40, 9, x_28);
|
||||
lean_ctor_set(x_40, 10, x_32);
|
||||
lean_ctor_set(x_40, 11, x_27);
|
||||
lean_ctor_set(x_40, 12, x_35);
|
||||
lean_ctor_set(x_40, 13, x_23);
|
||||
lean_ctor_set(x_40, 0, x_23);
|
||||
lean_ctor_set(x_40, 1, x_19);
|
||||
lean_ctor_set(x_40, 2, x_25);
|
||||
lean_ctor_set(x_40, 3, x_29);
|
||||
lean_ctor_set(x_40, 4, x_22);
|
||||
lean_ctor_set(x_40, 5, x_21);
|
||||
lean_ctor_set(x_40, 6, x_17);
|
||||
lean_ctor_set(x_40, 7, x_30);
|
||||
lean_ctor_set(x_40, 8, x_27);
|
||||
lean_ctor_set(x_40, 9, x_33);
|
||||
lean_ctor_set(x_40, 10, x_14);
|
||||
lean_ctor_set(x_40, 11, x_18);
|
||||
lean_ctor_set(x_40, 12, x_26);
|
||||
lean_ctor_set(x_40, 13, x_35);
|
||||
lean_ctor_set(x_40, 14, x_39);
|
||||
lean_ctor_set(x_40, 15, x_14);
|
||||
lean_ctor_set_uint8(x_40, sizeof(void*)*16, x_29);
|
||||
x_41 = lean_st_ref_set(x_5, x_40, x_24);
|
||||
lean_ctor_set(x_40, 15, x_32);
|
||||
lean_ctor_set_uint8(x_40, sizeof(void*)*16, x_31);
|
||||
x_41 = lean_st_ref_set(x_5, x_40, x_20);
|
||||
x_42 = lean_ctor_get(x_41, 1);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_41);
|
||||
|
|
@ -13374,8 +13374,8 @@ x_44 = lean_ctor_get(x_43, 1);
|
|||
lean_inc(x_44);
|
||||
lean_dec(x_43);
|
||||
x_45 = lean_box(0);
|
||||
x_46 = l_Lean_RBNode_forIn_visit___at_____private_Lean_Meta_Tactic_Grind_Arith_Linear_PropagateEq_0__Lean_Meta_Grind_Arith_Linear_updateOccs_spec__0(x_1, x_2, x_3, x_45, x_15, x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_44);
|
||||
lean_dec(x_15);
|
||||
x_46 = l_Lean_RBNode_forIn_visit___at_____private_Lean_Meta_Tactic_Grind_Arith_Linear_PropagateEq_0__Lean_Meta_Grind_Arith_Linear_updateOccs_spec__0(x_1, x_2, x_3, x_45, x_28, x_45, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_44);
|
||||
lean_dec(x_28);
|
||||
if (lean_obj_tag(x_46) == 0)
|
||||
{
|
||||
uint8_t x_47;
|
||||
|
|
@ -13425,7 +13425,7 @@ return x_54;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_28);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
|
|
@ -13491,7 +13491,7 @@ return x_4;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_Linear_EqCnstr_assert(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_16; uint8_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_531; lean_object* x_532; lean_object* x_533; uint8_t x_534;
|
||||
lean_object* x_12; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_531; lean_object* x_532; lean_object* x_533; uint8_t x_534;
|
||||
x_531 = l_Lean_Meta_Grind_Arith_Linear_DiseqCnstr_assert___closed__0;
|
||||
x_532 = l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_Arith_Linear_IneqCnstr_assert_spec__0___redArg(x_531, x_9, x_11);
|
||||
x_533 = lean_ctor_get(x_532, 0);
|
||||
|
|
@ -13682,36 +13682,36 @@ block_57:
|
|||
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_51 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_51, 1, x_32);
|
||||
lean_ctor_set(x_51, 2, x_33);
|
||||
lean_ctor_set(x_51, 1, x_39);
|
||||
lean_ctor_set(x_51, 2, x_40);
|
||||
x_52 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_52, 0, x_23);
|
||||
lean_ctor_set(x_52, 1, x_22);
|
||||
lean_ctor_set(x_52, 2, x_42);
|
||||
lean_ctor_set(x_52, 0, x_32);
|
||||
lean_ctor_set(x_52, 1, x_20);
|
||||
lean_ctor_set(x_52, 2, x_16);
|
||||
lean_ctor_set(x_52, 3, x_51);
|
||||
x_53 = lean_alloc_ctor(0, 16, 1);
|
||||
lean_ctor_set(x_53, 0, x_40);
|
||||
lean_ctor_set(x_53, 1, x_30);
|
||||
lean_ctor_set(x_53, 2, x_28);
|
||||
lean_ctor_set(x_53, 3, x_27);
|
||||
lean_ctor_set(x_53, 4, x_37);
|
||||
lean_ctor_set(x_53, 5, x_48);
|
||||
lean_ctor_set(x_53, 6, x_49);
|
||||
lean_ctor_set(x_53, 7, x_31);
|
||||
lean_ctor_set(x_53, 8, x_16);
|
||||
lean_ctor_set(x_53, 9, x_43);
|
||||
lean_ctor_set(x_53, 10, x_38);
|
||||
lean_ctor_set(x_53, 11, x_25);
|
||||
lean_ctor_set(x_53, 12, x_45);
|
||||
lean_ctor_set(x_53, 13, x_35);
|
||||
lean_ctor_set(x_53, 0, x_47);
|
||||
lean_ctor_set(x_53, 1, x_18);
|
||||
lean_ctor_set(x_53, 2, x_31);
|
||||
lean_ctor_set(x_53, 3, x_43);
|
||||
lean_ctor_set(x_53, 4, x_35);
|
||||
lean_ctor_set(x_53, 5, x_23);
|
||||
lean_ctor_set(x_53, 6, x_21);
|
||||
lean_ctor_set(x_53, 7, x_34);
|
||||
lean_ctor_set(x_53, 8, x_22);
|
||||
lean_ctor_set(x_53, 9, x_37);
|
||||
lean_ctor_set(x_53, 10, x_30);
|
||||
lean_ctor_set(x_53, 11, x_28);
|
||||
lean_ctor_set(x_53, 12, x_27);
|
||||
lean_ctor_set(x_53, 13, x_36);
|
||||
lean_ctor_set(x_53, 14, x_52);
|
||||
lean_ctor_set(x_53, 15, x_34);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*16, x_17);
|
||||
x_54 = lean_st_ref_set(x_21, x_53, x_44);
|
||||
lean_ctor_set(x_53, 15, x_48);
|
||||
lean_ctor_set_uint8(x_53, sizeof(void*)*16, x_42);
|
||||
x_54 = lean_st_ref_set(x_33, x_53, x_24);
|
||||
x_55 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_54);
|
||||
x_56 = l___private_Lean_Meta_Tactic_Grind_Arith_Linear_PropagateEq_0__Lean_Meta_Grind_Arith_Linear_updateOccs(x_39, x_46, x_19, x_20, x_21, x_24, x_18, x_29, x_26, x_41, x_47, x_36, x_55);
|
||||
x_56 = l___private_Lean_Meta_Tactic_Grind_Arith_Linear_PropagateEq_0__Lean_Meta_Grind_Arith_Linear_updateOccs(x_25, x_38, x_49, x_29, x_33, x_44, x_41, x_26, x_45, x_17, x_46, x_19, x_55);
|
||||
return x_56;
|
||||
}
|
||||
block_233:
|
||||
|
|
@ -13783,40 +13783,40 @@ lean_dec(x_100);
|
|||
if (x_101 == 0)
|
||||
{
|
||||
lean_free_object(x_71);
|
||||
x_16 = x_87;
|
||||
x_17 = x_86;
|
||||
x_18 = x_64;
|
||||
x_19 = x_60;
|
||||
x_20 = x_61;
|
||||
x_21 = x_62;
|
||||
x_22 = x_95;
|
||||
x_23 = x_94;
|
||||
x_24 = x_63;
|
||||
x_25 = x_90;
|
||||
x_26 = x_66;
|
||||
x_27 = x_81;
|
||||
x_28 = x_80;
|
||||
x_29 = x_65;
|
||||
x_30 = x_79;
|
||||
x_31 = x_85;
|
||||
x_32 = x_98;
|
||||
x_33 = x_99;
|
||||
x_34 = x_93;
|
||||
x_35 = x_92;
|
||||
x_36 = x_69;
|
||||
x_37 = x_82;
|
||||
x_38 = x_89;
|
||||
x_39 = x_59;
|
||||
x_40 = x_78;
|
||||
x_41 = x_67;
|
||||
x_42 = x_96;
|
||||
x_43 = x_88;
|
||||
x_44 = x_76;
|
||||
x_45 = x_91;
|
||||
x_46 = x_58;
|
||||
x_47 = x_68;
|
||||
x_48 = x_83;
|
||||
x_49 = x_84;
|
||||
x_16 = x_96;
|
||||
x_17 = x_67;
|
||||
x_18 = x_79;
|
||||
x_19 = x_69;
|
||||
x_20 = x_95;
|
||||
x_21 = x_84;
|
||||
x_22 = x_87;
|
||||
x_23 = x_83;
|
||||
x_24 = x_76;
|
||||
x_25 = x_58;
|
||||
x_26 = x_65;
|
||||
x_27 = x_91;
|
||||
x_28 = x_90;
|
||||
x_29 = x_61;
|
||||
x_30 = x_89;
|
||||
x_31 = x_80;
|
||||
x_32 = x_94;
|
||||
x_33 = x_62;
|
||||
x_34 = x_85;
|
||||
x_35 = x_82;
|
||||
x_36 = x_92;
|
||||
x_37 = x_88;
|
||||
x_38 = x_59;
|
||||
x_39 = x_98;
|
||||
x_40 = x_99;
|
||||
x_41 = x_64;
|
||||
x_42 = x_86;
|
||||
x_43 = x_81;
|
||||
x_44 = x_63;
|
||||
x_45 = x_66;
|
||||
x_46 = x_68;
|
||||
x_47 = x_78;
|
||||
x_48 = x_93;
|
||||
x_49 = x_60;
|
||||
x_50 = x_97;
|
||||
goto block_57;
|
||||
}
|
||||
|
|
@ -13835,48 +13835,48 @@ x_107 = lean_array_fset(x_97, x_61, x_106);
|
|||
lean_inc(x_60);
|
||||
x_108 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_108, 0, x_60);
|
||||
x_109 = l_Lean_PersistentArray_set___redArg(x_104, x_58, x_108);
|
||||
lean_inc(x_58);
|
||||
x_109 = l_Lean_PersistentArray_set___redArg(x_104, x_59, x_108);
|
||||
lean_inc(x_59);
|
||||
lean_ctor_set_tag(x_71, 1);
|
||||
lean_ctor_set(x_71, 1, x_105);
|
||||
lean_ctor_set(x_71, 0, x_58);
|
||||
lean_ctor_set(x_71, 0, x_59);
|
||||
lean_ctor_set(x_102, 37, x_71);
|
||||
lean_ctor_set(x_102, 36, x_109);
|
||||
x_110 = lean_array_fset(x_107, x_61, x_102);
|
||||
x_16 = x_87;
|
||||
x_17 = x_86;
|
||||
x_18 = x_64;
|
||||
x_19 = x_60;
|
||||
x_20 = x_61;
|
||||
x_21 = x_62;
|
||||
x_22 = x_95;
|
||||
x_23 = x_94;
|
||||
x_24 = x_63;
|
||||
x_25 = x_90;
|
||||
x_26 = x_66;
|
||||
x_27 = x_81;
|
||||
x_28 = x_80;
|
||||
x_29 = x_65;
|
||||
x_30 = x_79;
|
||||
x_31 = x_85;
|
||||
x_32 = x_98;
|
||||
x_33 = x_99;
|
||||
x_34 = x_93;
|
||||
x_35 = x_92;
|
||||
x_36 = x_69;
|
||||
x_37 = x_82;
|
||||
x_38 = x_89;
|
||||
x_39 = x_59;
|
||||
x_40 = x_78;
|
||||
x_41 = x_67;
|
||||
x_42 = x_96;
|
||||
x_43 = x_88;
|
||||
x_44 = x_76;
|
||||
x_45 = x_91;
|
||||
x_46 = x_58;
|
||||
x_47 = x_68;
|
||||
x_48 = x_83;
|
||||
x_49 = x_84;
|
||||
x_16 = x_96;
|
||||
x_17 = x_67;
|
||||
x_18 = x_79;
|
||||
x_19 = x_69;
|
||||
x_20 = x_95;
|
||||
x_21 = x_84;
|
||||
x_22 = x_87;
|
||||
x_23 = x_83;
|
||||
x_24 = x_76;
|
||||
x_25 = x_58;
|
||||
x_26 = x_65;
|
||||
x_27 = x_91;
|
||||
x_28 = x_90;
|
||||
x_29 = x_61;
|
||||
x_30 = x_89;
|
||||
x_31 = x_80;
|
||||
x_32 = x_94;
|
||||
x_33 = x_62;
|
||||
x_34 = x_85;
|
||||
x_35 = x_82;
|
||||
x_36 = x_92;
|
||||
x_37 = x_88;
|
||||
x_38 = x_59;
|
||||
x_39 = x_98;
|
||||
x_40 = x_99;
|
||||
x_41 = x_64;
|
||||
x_42 = x_86;
|
||||
x_43 = x_81;
|
||||
x_44 = x_63;
|
||||
x_45 = x_66;
|
||||
x_46 = x_68;
|
||||
x_47 = x_78;
|
||||
x_48 = x_93;
|
||||
x_49 = x_60;
|
||||
x_50 = x_110;
|
||||
goto block_57;
|
||||
}
|
||||
|
|
@ -13970,11 +13970,11 @@ x_153 = lean_array_fset(x_97, x_61, x_152);
|
|||
lean_inc(x_60);
|
||||
x_154 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_154, 0, x_60);
|
||||
x_155 = l_Lean_PersistentArray_set___redArg(x_148, x_58, x_154);
|
||||
lean_inc(x_58);
|
||||
x_155 = l_Lean_PersistentArray_set___redArg(x_148, x_59, x_154);
|
||||
lean_inc(x_59);
|
||||
lean_ctor_set_tag(x_71, 1);
|
||||
lean_ctor_set(x_71, 1, x_149);
|
||||
lean_ctor_set(x_71, 0, x_58);
|
||||
lean_ctor_set(x_71, 0, x_59);
|
||||
x_156 = lean_alloc_ctor(0, 40, 1);
|
||||
lean_ctor_set(x_156, 0, x_111);
|
||||
lean_ctor_set(x_156, 1, x_112);
|
||||
|
|
@ -14018,40 +14018,40 @@ lean_ctor_set(x_156, 38, x_150);
|
|||
lean_ctor_set(x_156, 39, x_151);
|
||||
lean_ctor_set_uint8(x_156, sizeof(void*)*40, x_145);
|
||||
x_157 = lean_array_fset(x_153, x_61, x_156);
|
||||
x_16 = x_87;
|
||||
x_17 = x_86;
|
||||
x_18 = x_64;
|
||||
x_19 = x_60;
|
||||
x_20 = x_61;
|
||||
x_21 = x_62;
|
||||
x_22 = x_95;
|
||||
x_23 = x_94;
|
||||
x_24 = x_63;
|
||||
x_25 = x_90;
|
||||
x_26 = x_66;
|
||||
x_27 = x_81;
|
||||
x_28 = x_80;
|
||||
x_29 = x_65;
|
||||
x_30 = x_79;
|
||||
x_31 = x_85;
|
||||
x_32 = x_98;
|
||||
x_33 = x_99;
|
||||
x_34 = x_93;
|
||||
x_35 = x_92;
|
||||
x_36 = x_69;
|
||||
x_37 = x_82;
|
||||
x_38 = x_89;
|
||||
x_39 = x_59;
|
||||
x_40 = x_78;
|
||||
x_41 = x_67;
|
||||
x_42 = x_96;
|
||||
x_43 = x_88;
|
||||
x_44 = x_76;
|
||||
x_45 = x_91;
|
||||
x_46 = x_58;
|
||||
x_47 = x_68;
|
||||
x_48 = x_83;
|
||||
x_49 = x_84;
|
||||
x_16 = x_96;
|
||||
x_17 = x_67;
|
||||
x_18 = x_79;
|
||||
x_19 = x_69;
|
||||
x_20 = x_95;
|
||||
x_21 = x_84;
|
||||
x_22 = x_87;
|
||||
x_23 = x_83;
|
||||
x_24 = x_76;
|
||||
x_25 = x_58;
|
||||
x_26 = x_65;
|
||||
x_27 = x_91;
|
||||
x_28 = x_90;
|
||||
x_29 = x_61;
|
||||
x_30 = x_89;
|
||||
x_31 = x_80;
|
||||
x_32 = x_94;
|
||||
x_33 = x_62;
|
||||
x_34 = x_85;
|
||||
x_35 = x_82;
|
||||
x_36 = x_92;
|
||||
x_37 = x_88;
|
||||
x_38 = x_59;
|
||||
x_39 = x_98;
|
||||
x_40 = x_99;
|
||||
x_41 = x_64;
|
||||
x_42 = x_86;
|
||||
x_43 = x_81;
|
||||
x_44 = x_63;
|
||||
x_45 = x_66;
|
||||
x_46 = x_68;
|
||||
x_47 = x_78;
|
||||
x_48 = x_93;
|
||||
x_49 = x_60;
|
||||
x_50 = x_157;
|
||||
goto block_57;
|
||||
}
|
||||
|
|
@ -14114,40 +14114,40 @@ x_182 = lean_nat_dec_lt(x_61, x_181);
|
|||
lean_dec(x_181);
|
||||
if (x_182 == 0)
|
||||
{
|
||||
x_16 = x_168;
|
||||
x_17 = x_167;
|
||||
x_18 = x_64;
|
||||
x_19 = x_60;
|
||||
x_20 = x_61;
|
||||
x_21 = x_62;
|
||||
x_22 = x_176;
|
||||
x_23 = x_175;
|
||||
x_24 = x_63;
|
||||
x_25 = x_171;
|
||||
x_26 = x_66;
|
||||
x_27 = x_162;
|
||||
x_28 = x_161;
|
||||
x_29 = x_65;
|
||||
x_30 = x_160;
|
||||
x_31 = x_166;
|
||||
x_32 = x_179;
|
||||
x_33 = x_180;
|
||||
x_34 = x_174;
|
||||
x_35 = x_173;
|
||||
x_36 = x_69;
|
||||
x_37 = x_163;
|
||||
x_38 = x_170;
|
||||
x_39 = x_59;
|
||||
x_40 = x_159;
|
||||
x_41 = x_67;
|
||||
x_42 = x_177;
|
||||
x_43 = x_169;
|
||||
x_44 = x_158;
|
||||
x_45 = x_172;
|
||||
x_46 = x_58;
|
||||
x_47 = x_68;
|
||||
x_48 = x_164;
|
||||
x_49 = x_165;
|
||||
x_16 = x_177;
|
||||
x_17 = x_67;
|
||||
x_18 = x_160;
|
||||
x_19 = x_69;
|
||||
x_20 = x_176;
|
||||
x_21 = x_165;
|
||||
x_22 = x_168;
|
||||
x_23 = x_164;
|
||||
x_24 = x_158;
|
||||
x_25 = x_58;
|
||||
x_26 = x_65;
|
||||
x_27 = x_172;
|
||||
x_28 = x_171;
|
||||
x_29 = x_61;
|
||||
x_30 = x_170;
|
||||
x_31 = x_161;
|
||||
x_32 = x_175;
|
||||
x_33 = x_62;
|
||||
x_34 = x_166;
|
||||
x_35 = x_163;
|
||||
x_36 = x_173;
|
||||
x_37 = x_169;
|
||||
x_38 = x_59;
|
||||
x_39 = x_179;
|
||||
x_40 = x_180;
|
||||
x_41 = x_64;
|
||||
x_42 = x_167;
|
||||
x_43 = x_162;
|
||||
x_44 = x_63;
|
||||
x_45 = x_66;
|
||||
x_46 = x_68;
|
||||
x_47 = x_159;
|
||||
x_48 = x_174;
|
||||
x_49 = x_60;
|
||||
x_50 = x_178;
|
||||
goto block_57;
|
||||
}
|
||||
|
|
@ -14287,10 +14287,10 @@ x_227 = lean_array_fset(x_178, x_61, x_226);
|
|||
lean_inc(x_60);
|
||||
x_228 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_228, 0, x_60);
|
||||
x_229 = l_Lean_PersistentArray_set___redArg(x_221, x_58, x_228);
|
||||
lean_inc(x_58);
|
||||
x_229 = l_Lean_PersistentArray_set___redArg(x_221, x_59, x_228);
|
||||
lean_inc(x_59);
|
||||
x_230 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_230, 0, x_58);
|
||||
lean_ctor_set(x_230, 0, x_59);
|
||||
lean_ctor_set(x_230, 1, x_222);
|
||||
if (lean_is_scalar(x_225)) {
|
||||
x_231 = lean_alloc_ctor(0, 40, 1);
|
||||
|
|
@ -14339,40 +14339,40 @@ lean_ctor_set(x_231, 38, x_223);
|
|||
lean_ctor_set(x_231, 39, x_224);
|
||||
lean_ctor_set_uint8(x_231, sizeof(void*)*40, x_218);
|
||||
x_232 = lean_array_fset(x_227, x_61, x_231);
|
||||
x_16 = x_168;
|
||||
x_17 = x_167;
|
||||
x_18 = x_64;
|
||||
x_19 = x_60;
|
||||
x_20 = x_61;
|
||||
x_21 = x_62;
|
||||
x_22 = x_176;
|
||||
x_23 = x_175;
|
||||
x_24 = x_63;
|
||||
x_25 = x_171;
|
||||
x_26 = x_66;
|
||||
x_27 = x_162;
|
||||
x_28 = x_161;
|
||||
x_29 = x_65;
|
||||
x_30 = x_160;
|
||||
x_31 = x_166;
|
||||
x_32 = x_179;
|
||||
x_33 = x_180;
|
||||
x_34 = x_174;
|
||||
x_35 = x_173;
|
||||
x_36 = x_69;
|
||||
x_37 = x_163;
|
||||
x_38 = x_170;
|
||||
x_39 = x_59;
|
||||
x_40 = x_159;
|
||||
x_41 = x_67;
|
||||
x_42 = x_177;
|
||||
x_43 = x_169;
|
||||
x_44 = x_158;
|
||||
x_45 = x_172;
|
||||
x_46 = x_58;
|
||||
x_47 = x_68;
|
||||
x_48 = x_164;
|
||||
x_49 = x_165;
|
||||
x_16 = x_177;
|
||||
x_17 = x_67;
|
||||
x_18 = x_160;
|
||||
x_19 = x_69;
|
||||
x_20 = x_176;
|
||||
x_21 = x_165;
|
||||
x_22 = x_168;
|
||||
x_23 = x_164;
|
||||
x_24 = x_158;
|
||||
x_25 = x_58;
|
||||
x_26 = x_65;
|
||||
x_27 = x_172;
|
||||
x_28 = x_171;
|
||||
x_29 = x_61;
|
||||
x_30 = x_170;
|
||||
x_31 = x_161;
|
||||
x_32 = x_175;
|
||||
x_33 = x_62;
|
||||
x_34 = x_166;
|
||||
x_35 = x_163;
|
||||
x_36 = x_173;
|
||||
x_37 = x_169;
|
||||
x_38 = x_59;
|
||||
x_39 = x_179;
|
||||
x_40 = x_180;
|
||||
x_41 = x_64;
|
||||
x_42 = x_167;
|
||||
x_43 = x_162;
|
||||
x_44 = x_63;
|
||||
x_45 = x_66;
|
||||
x_46 = x_68;
|
||||
x_47 = x_159;
|
||||
x_48 = x_174;
|
||||
x_49 = x_60;
|
||||
x_50 = x_232;
|
||||
goto block_57;
|
||||
}
|
||||
|
|
@ -14649,8 +14649,8 @@ lean_free_object(x_293);
|
|||
x_315 = lean_ctor_get(x_312, 1);
|
||||
lean_inc(x_315);
|
||||
lean_dec(x_312);
|
||||
x_234 = x_309;
|
||||
x_235 = x_306;
|
||||
x_234 = x_306;
|
||||
x_235 = x_309;
|
||||
x_236 = x_310;
|
||||
x_237 = x_282;
|
||||
x_238 = x_283;
|
||||
|
|
@ -14713,8 +14713,8 @@ x_330 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_Linear_IneqCnstr_assert_spe
|
|||
x_331 = lean_ctor_get(x_330, 1);
|
||||
lean_inc(x_331);
|
||||
lean_dec(x_330);
|
||||
x_234 = x_309;
|
||||
x_235 = x_306;
|
||||
x_234 = x_306;
|
||||
x_235 = x_309;
|
||||
x_236 = x_310;
|
||||
x_237 = x_282;
|
||||
x_238 = x_283;
|
||||
|
|
@ -14852,8 +14852,8 @@ x_353 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_Linear_IneqCnstr_assert_spe
|
|||
x_354 = lean_ctor_get(x_353, 1);
|
||||
lean_inc(x_354);
|
||||
lean_dec(x_353);
|
||||
x_234 = x_309;
|
||||
x_235 = x_306;
|
||||
x_234 = x_306;
|
||||
x_235 = x_309;
|
||||
x_236 = x_310;
|
||||
x_237 = x_282;
|
||||
x_238 = x_283;
|
||||
|
|
@ -14972,8 +14972,8 @@ lean_free_object(x_293);
|
|||
x_369 = lean_ctor_get(x_366, 1);
|
||||
lean_inc(x_369);
|
||||
lean_dec(x_366);
|
||||
x_234 = x_363;
|
||||
x_235 = x_306;
|
||||
x_234 = x_306;
|
||||
x_235 = x_363;
|
||||
x_236 = x_364;
|
||||
x_237 = x_282;
|
||||
x_238 = x_283;
|
||||
|
|
@ -15044,8 +15044,8 @@ x_385 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_Linear_IneqCnstr_assert_spe
|
|||
x_386 = lean_ctor_get(x_385, 1);
|
||||
lean_inc(x_386);
|
||||
lean_dec(x_385);
|
||||
x_234 = x_363;
|
||||
x_235 = x_306;
|
||||
x_234 = x_306;
|
||||
x_235 = x_363;
|
||||
x_236 = x_364;
|
||||
x_237 = x_282;
|
||||
x_238 = x_283;
|
||||
|
|
@ -15174,8 +15174,8 @@ lean_free_object(x_293);
|
|||
x_403 = lean_ctor_get(x_400, 1);
|
||||
lean_inc(x_403);
|
||||
lean_dec(x_400);
|
||||
x_234 = x_396;
|
||||
x_235 = x_395;
|
||||
x_234 = x_395;
|
||||
x_235 = x_396;
|
||||
x_236 = x_397;
|
||||
x_237 = x_282;
|
||||
x_238 = x_283;
|
||||
|
|
@ -15251,8 +15251,8 @@ x_420 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_Linear_IneqCnstr_assert_spe
|
|||
x_421 = lean_ctor_get(x_420, 1);
|
||||
lean_inc(x_421);
|
||||
lean_dec(x_420);
|
||||
x_234 = x_396;
|
||||
x_235 = x_395;
|
||||
x_234 = x_395;
|
||||
x_235 = x_396;
|
||||
x_236 = x_397;
|
||||
x_237 = x_282;
|
||||
x_238 = x_283;
|
||||
|
|
@ -15431,8 +15431,8 @@ lean_dec(x_438);
|
|||
x_446 = lean_ctor_get(x_443, 1);
|
||||
lean_inc(x_446);
|
||||
lean_dec(x_443);
|
||||
x_234 = x_439;
|
||||
x_235 = x_437;
|
||||
x_234 = x_437;
|
||||
x_235 = x_439;
|
||||
x_236 = x_440;
|
||||
x_237 = x_282;
|
||||
x_238 = x_283;
|
||||
|
|
@ -15513,8 +15513,8 @@ x_464 = l_Lean_addTrace___at___Lean_Meta_Grind_Arith_Linear_IneqCnstr_assert_spe
|
|||
x_465 = lean_ctor_get(x_464, 1);
|
||||
lean_inc(x_465);
|
||||
lean_dec(x_464);
|
||||
x_234 = x_439;
|
||||
x_235 = x_437;
|
||||
x_234 = x_437;
|
||||
x_235 = x_439;
|
||||
x_236 = x_440;
|
||||
x_237 = x_282;
|
||||
x_238 = x_283;
|
||||
|
|
|
|||
14588
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Linear/StructId.c
generated
14588
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Linear/StructId.c
generated
File diff suppressed because it is too large
Load diff
460
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Simproc.c
generated
460
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Simproc.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Meta.Tactic.Grind.Arith.Simproc
|
||||
// Imports: Init.Grind.Ring.Basic Init.Simproc Lean.Meta.Tactic.Simp.Simproc
|
||||
// Imports: Init.Grind.Ring.Basic Init.Simproc Lean.Meta.Tactic.Simp.Simproc Lean.Meta.Tactic.Grind.SynthInstance
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -17,26 +17,28 @@ static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__3;
|
|||
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__7;
|
||||
lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__8;
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_addSimproc(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getNatValue_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isApp(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__12;
|
||||
lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_addSimproc___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getDecLevel_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__3;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
lean_object* l_Lean_Meta_instantiateMVarsIfMVarApp___redArg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__4;
|
||||
|
|
@ -47,37 +49,35 @@ lean_object* l_Lean_Meta_Simp_Simprocs_add(lean_object*, lean_object*, uint8_t,
|
|||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__5;
|
||||
lean_object* l_Lean_Expr_appFn_x21(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__10;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__1;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
lean_object* l_Lean_Expr_appFnCleanup___redArg(lean_object*);
|
||||
lean_object* l_Lean_Meta_mkMul(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__9;
|
||||
lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
lean_object* l_Lean_Meta_Simp_registerBuiltinSimproc(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__11;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__6;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__0;
|
||||
lean_object* l_Lean_Meta_mkNumeral(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__2;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
lean_object* l_Lean_Name_mkStr1(lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__14;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__1;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__0() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -162,261 +162,133 @@ return x_15;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; uint8_t x_17;
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_16 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_8);
|
||||
x_17 = !lean_is_exclusive(x_9);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_18 = lean_ctor_get(x_9, 0);
|
||||
x_19 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__3;
|
||||
x_20 = lean_box(0);
|
||||
x_21 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_18);
|
||||
lean_ctor_set(x_21, 1, x_20);
|
||||
lean_inc(x_21);
|
||||
x_22 = l_Lean_Expr_const___override(x_19, x_21);
|
||||
x_17 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_9);
|
||||
x_18 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__3;
|
||||
x_19 = lean_box(0);
|
||||
x_20 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_17);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
lean_inc(x_20);
|
||||
x_21 = l_Lean_Expr_const___override(x_18, x_20);
|
||||
lean_inc(x_2);
|
||||
x_23 = l_Lean_Expr_app___override(x_22, x_2);
|
||||
x_24 = lean_box(0);
|
||||
x_25 = l_Lean_Meta_trySynthInstance(x_23, x_24, x_3, x_4, x_5, x_6, x_16);
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
x_22 = l_Lean_Expr_app___override(x_21, x_2);
|
||||
x_23 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_22, x_3, x_4, x_5, x_6, x_16);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
{
|
||||
lean_object* x_26;
|
||||
x_26 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_26);
|
||||
if (lean_obj_tag(x_26) == 1)
|
||||
lean_object* x_24;
|
||||
x_24 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_24);
|
||||
if (lean_obj_tag(x_24) == 0)
|
||||
{
|
||||
uint8_t x_27;
|
||||
x_27 = !lean_is_exclusive(x_25);
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_25;
|
||||
x_25 = !lean_is_exclusive(x_23);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_object* x_26; uint8_t x_27;
|
||||
x_26 = lean_ctor_get(x_23, 0);
|
||||
lean_dec(x_26);
|
||||
x_27 = !lean_is_exclusive(x_24);
|
||||
if (x_27 == 0)
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_28 = lean_ctor_get(x_25, 0);
|
||||
lean_dec(x_28);
|
||||
x_29 = lean_ctor_get(x_26, 0);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_26);
|
||||
x_30 = l_Lean_Expr_const___override(x_1, x_21);
|
||||
x_31 = l_Lean_mkAppB(x_30, x_2, x_29);
|
||||
lean_ctor_set(x_9, 0, x_31);
|
||||
lean_ctor_set(x_25, 0, x_9);
|
||||
return x_25;
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_28 = lean_ctor_get(x_24, 0);
|
||||
x_29 = l_Lean_Expr_const___override(x_1, x_20);
|
||||
x_30 = l_Lean_mkAppB(x_29, x_2, x_28);
|
||||
lean_ctor_set(x_24, 0, x_30);
|
||||
return x_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_32 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_25);
|
||||
x_33 = lean_ctor_get(x_26, 0);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_26);
|
||||
x_34 = l_Lean_Expr_const___override(x_1, x_21);
|
||||
x_35 = l_Lean_mkAppB(x_34, x_2, x_33);
|
||||
lean_ctor_set(x_9, 0, x_35);
|
||||
x_36 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_9);
|
||||
lean_ctor_set(x_36, 1, x_32);
|
||||
return x_36;
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_31 = lean_ctor_get(x_24, 0);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_24);
|
||||
x_32 = l_Lean_Expr_const___override(x_1, x_20);
|
||||
x_33 = l_Lean_mkAppB(x_32, x_2, x_31);
|
||||
x_34 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_34, 0, x_33);
|
||||
lean_ctor_set(x_23, 0, x_34);
|
||||
return x_23;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_37;
|
||||
lean_dec(x_26);
|
||||
lean_dec(x_21);
|
||||
lean_free_object(x_9);
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41;
|
||||
x_35 = lean_ctor_get(x_23, 1);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_23);
|
||||
x_36 = lean_ctor_get(x_24, 0);
|
||||
lean_inc(x_36);
|
||||
if (lean_is_exclusive(x_24)) {
|
||||
lean_ctor_release(x_24, 0);
|
||||
x_37 = x_24;
|
||||
} else {
|
||||
lean_dec_ref(x_24);
|
||||
x_37 = lean_box(0);
|
||||
}
|
||||
x_38 = l_Lean_Expr_const___override(x_1, x_20);
|
||||
x_39 = l_Lean_mkAppB(x_38, x_2, x_36);
|
||||
if (lean_is_scalar(x_37)) {
|
||||
x_40 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_40 = x_37;
|
||||
}
|
||||
lean_ctor_set(x_40, 0, x_39);
|
||||
x_41 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_40);
|
||||
lean_ctor_set(x_41, 1, x_35);
|
||||
return x_41;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_37 = !lean_is_exclusive(x_25);
|
||||
if (x_37 == 0)
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39;
|
||||
x_38 = lean_ctor_get(x_25, 0);
|
||||
lean_dec(x_38);
|
||||
x_39 = lean_box(0);
|
||||
lean_ctor_set(x_25, 0, x_39);
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_40 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_25);
|
||||
x_41 = lean_box(0);
|
||||
x_42 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_42, 0, x_41);
|
||||
lean_ctor_set(x_42, 1, x_40);
|
||||
return x_42;
|
||||
return x_23;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_43;
|
||||
lean_dec(x_21);
|
||||
lean_free_object(x_9);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_43 = !lean_is_exclusive(x_25);
|
||||
if (x_43 == 0)
|
||||
{
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_44 = lean_ctor_get(x_25, 0);
|
||||
x_45 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_45);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_25);
|
||||
x_46 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_44);
|
||||
lean_ctor_set(x_46, 1, x_45);
|
||||
return x_46;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54;
|
||||
x_47 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_47);
|
||||
lean_dec(x_9);
|
||||
x_48 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__3;
|
||||
x_49 = lean_box(0);
|
||||
x_50 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_50, 0, x_47);
|
||||
lean_ctor_set(x_50, 1, x_49);
|
||||
lean_inc(x_50);
|
||||
x_51 = l_Lean_Expr_const___override(x_48, x_50);
|
||||
lean_inc(x_2);
|
||||
x_52 = l_Lean_Expr_app___override(x_51, x_2);
|
||||
x_53 = lean_box(0);
|
||||
x_54 = l_Lean_Meta_trySynthInstance(x_52, x_53, x_3, x_4, x_5, x_6, x_16);
|
||||
if (lean_obj_tag(x_54) == 0)
|
||||
{
|
||||
lean_object* x_55;
|
||||
x_55 = lean_ctor_get(x_54, 0);
|
||||
lean_inc(x_55);
|
||||
if (lean_obj_tag(x_55) == 1)
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_56 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_56);
|
||||
if (lean_is_exclusive(x_54)) {
|
||||
lean_ctor_release(x_54, 0);
|
||||
lean_ctor_release(x_54, 1);
|
||||
x_57 = x_54;
|
||||
} else {
|
||||
lean_dec_ref(x_54);
|
||||
x_57 = lean_box(0);
|
||||
}
|
||||
x_58 = lean_ctor_get(x_55, 0);
|
||||
lean_inc(x_58);
|
||||
lean_dec(x_55);
|
||||
x_59 = l_Lean_Expr_const___override(x_1, x_50);
|
||||
x_60 = l_Lean_mkAppB(x_59, x_2, x_58);
|
||||
x_61 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_61, 0, x_60);
|
||||
if (lean_is_scalar(x_57)) {
|
||||
x_62 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_62 = x_57;
|
||||
}
|
||||
lean_ctor_set(x_62, 0, x_61);
|
||||
lean_ctor_set(x_62, 1, x_56);
|
||||
return x_62;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66;
|
||||
lean_dec(x_55);
|
||||
lean_dec(x_50);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_63 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_63);
|
||||
if (lean_is_exclusive(x_54)) {
|
||||
lean_ctor_release(x_54, 0);
|
||||
lean_ctor_release(x_54, 1);
|
||||
x_64 = x_54;
|
||||
} else {
|
||||
lean_dec_ref(x_54);
|
||||
x_64 = lean_box(0);
|
||||
}
|
||||
x_65 = lean_box(0);
|
||||
if (lean_is_scalar(x_64)) {
|
||||
x_66 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_66 = x_64;
|
||||
}
|
||||
lean_ctor_set(x_66, 0, x_65);
|
||||
lean_ctor_set(x_66, 1, x_63);
|
||||
return x_66;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70;
|
||||
lean_dec(x_50);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_67 = lean_ctor_get(x_54, 0);
|
||||
lean_inc(x_67);
|
||||
x_68 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_68);
|
||||
if (lean_is_exclusive(x_54)) {
|
||||
lean_ctor_release(x_54, 0);
|
||||
lean_ctor_release(x_54, 1);
|
||||
x_69 = x_54;
|
||||
} else {
|
||||
lean_dec_ref(x_54);
|
||||
x_69 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_69)) {
|
||||
x_70 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_70 = x_69;
|
||||
}
|
||||
lean_ctor_set(x_70, 0, x_67);
|
||||
lean_ctor_set(x_70, 1, x_68);
|
||||
return x_70;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_71;
|
||||
uint8_t x_42;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_71 = !lean_is_exclusive(x_8);
|
||||
if (x_71 == 0)
|
||||
x_42 = !lean_is_exclusive(x_8);
|
||||
if (x_42 == 0)
|
||||
{
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_72 = lean_ctor_get(x_8, 0);
|
||||
x_73 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_73);
|
||||
lean_inc(x_72);
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45;
|
||||
x_43 = lean_ctor_get(x_8, 0);
|
||||
x_44 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_8);
|
||||
x_74 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_74, 0, x_72);
|
||||
lean_ctor_set(x_74, 1, x_73);
|
||||
return x_74;
|
||||
x_45 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_43);
|
||||
lean_ctor_set(x_45, 1, x_44);
|
||||
return x_45;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3854,7 +3726,7 @@ lean_dec(x_2);
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -3862,7 +3734,7 @@ x_1 = lean_mk_string_unchecked("Meta", 4, 4);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -3870,7 +3742,7 @@ x_1 = lean_mk_string_unchecked("Arith", 5, 5);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -3878,20 +3750,20 @@ x_1 = lean_mk_string_unchecked("expandPowAdd", 12, 12);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__1;
|
||||
x_4 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_4 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_5 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__0;
|
||||
x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -3903,7 +3775,7 @@ lean_ctor_set(x_3, 1, x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
|
|
@ -3912,82 +3784,82 @@ x_2 = lean_mk_empty_array_with_capacity(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(3);
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(3);
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(3);
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(3);
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(3);
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(3);
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_3 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_expandPowAdd___boxed), 9, 0);
|
||||
x_5 = l_Lean_Meta_Simp_registerBuiltinSimproc(x_2, x_3, x_4, x_1);
|
||||
return x_5;
|
||||
|
|
@ -3997,7 +3869,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_addSimproc(lean_object* x_1, le
|
|||
_start:
|
||||
{
|
||||
lean_object* x_5; uint8_t x_6; lean_object* x_7;
|
||||
x_5 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_;
|
||||
x_5 = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_;
|
||||
x_6 = 1;
|
||||
x_7 = l_Lean_Meta_Simp_Simprocs_add(x_1, x_5, x_6, x_2, x_3, x_4);
|
||||
return x_7;
|
||||
|
|
@ -4016,6 +3888,7 @@ return x_5;
|
|||
lean_object* initialize_Init_Grind_Ring_Basic(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Simproc(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Simp_Simproc(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Grind_SynthInstance(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Arith_Simproc(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -4030,6 +3903,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_Meta_Tactic_Simp_Simproc(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Tactic_Grind_SynthInstance(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__0();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__0);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0__Lean_Meta_Grind_Arith_mkSemiringThm___closed__1();
|
||||
|
|
@ -4068,33 +3944,33 @@ l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__13 = _init_l_Lean_Meta_G
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__13);
|
||||
l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__14 = _init_l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__14();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_expandPowAdd___redArg___closed__14);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_);
|
||||
if (builtin) {res = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1167_(lean_io_mk_world());
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__0____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__1____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__2____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__3____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__4____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__5____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__6____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__8____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__9____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__10____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__11____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_ = _init_l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7___closed__12____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_);
|
||||
if (builtin) {res = l___private_Lean_Meta_Tactic_Grind_Arith_Simproc_0____regBuiltin_Lean_Meta_Grind_Arith_expandPowAdd_declare__7____x40_Lean_Meta_Tactic_Grind_Arith_Simproc___hyg_1168_(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));
|
||||
|
|
|
|||
776
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Util.c
generated
776
stage0/stdlib/Lean/Meta/Tactic/Grind/Arith/Util.c
generated
|
|
@ -33,25 +33,20 @@ static lean_object* l_Lean_Meta_Grind_Arith_split___redArg___closed__11;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_isInstAddNat___boxed(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__10;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_alreadyVisited_unsafe__1___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_CollectDecVarsM_run(lean_object*, lean_object*);
|
||||
size_t lean_uint64_to_usize(uint64_t);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_CollectDecVarsM_run___closed__1;
|
||||
uint8_t l_Lean_Expr_isApp(lean_object*);
|
||||
lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__1;
|
||||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Meta_Grind_Arith_isSupportedType(lean_object*);
|
||||
lean_object* lean_int_emod(lean_object*, lean_object*);
|
||||
lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_markAsFound___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_CollectDecVarsM_run___closed__4;
|
||||
LEAN_EXPORT uint8_t l_Lean_Meta_Grind_Arith_isRelevantPred(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isArithTerm___closed__17;
|
||||
lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*);
|
||||
lean_object* l_Lean_Meta_evalNat(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_split___redArg___closed__5;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isArithTerm___closed__9;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__9;
|
||||
|
|
@ -65,7 +60,6 @@ static lean_object* l_Lean_Meta_Grind_Arith_isInstAddNat___closed__1;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_isSupportedType___boxed(lean_object*);
|
||||
lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_CollectDecVarsM_run___closed__2;
|
||||
lean_object* l_Lean_Level_ofNat(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__20;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__11;
|
||||
LEAN_EXPORT uint8_t l_Lean_Meta_Grind_Arith_isNatType(lean_object*);
|
||||
|
|
@ -75,7 +69,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_alreadyVisited(l
|
|||
static lean_object* l_Lean_Meta_Grind_Arith_split___redArg___closed__12;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isNatAdd_x3f___closed__0;
|
||||
size_t lean_ptr_addr(lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isArithTerm___closed__8;
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__18;
|
||||
|
|
@ -89,13 +82,11 @@ uint64_t lean_uint64_shift_right(uint64_t, uint64_t);
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_alreadyVisited___redArg___boxed(lean_object*, lean_object*);
|
||||
uint64_t lean_usize_to_uint64(size_t);
|
||||
lean_object* lean_nat_to_int(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_div(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__8;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isArithTerm___closed__5;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isIntType___closed__1;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__4;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__2;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_split___redArg___closed__6;
|
||||
lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__2;
|
||||
|
|
@ -123,8 +114,6 @@ lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, l
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_resize_go(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isArithTerm___closed__11;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isRelevantPred___closed__1;
|
||||
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_Meta_Grind_Arith_CollectDecVars_alreadyVisited_spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_shrink(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_isIntType___boxed(lean_object*);
|
||||
|
|
@ -132,7 +121,6 @@ static lean_object* l_Lean_Meta_Grind_Arith_isInstAddNat___closed__2;
|
|||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__1;
|
||||
lean_object* lean_int_sub(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MessageData_ofExpr(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isArithTerm___closed__16;
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_Meta_Grind_Arith_CollectDecVars_alreadyVisited_spec__1___redArg(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_CollectDecVarsM_run___closed__0;
|
||||
|
|
@ -148,12 +136,9 @@ lean_object* lean_nat_abs(lean_object*);
|
|||
static lean_object* l_Lean_Meta_Grind_Arith_split___redArg___closed__13;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_split___redArg___closed__7;
|
||||
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Lean_Meta_Grind_Arith_CollectDecVars_alreadyVisited_spec__0(lean_object*, uint64_t, lean_object*);
|
||||
lean_object* l_Lean_LOption_toOption___redArg(lean_object*);
|
||||
lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_appFnCleanup___redArg(lean_object*);
|
||||
lean_object* lean_int_mul(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isIntType___closed__0;
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
|
|
@ -167,8 +152,6 @@ uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Meta_Grind_Arith_isNatAdd_x3f___closed__1;
|
||||
LEAN_EXPORT uint8_t l_Std_DHashMap_Internal_AssocList_contains___at___Lean_Meta_Grind_Arith_CollectDecVars_alreadyVisited_spec__0___redArg(uint64_t, lean_object*);
|
||||
uint64_t lean_uint64_xor(uint64_t, uint64_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_getIsCharInst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_split___redArg___closed__9;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__0;
|
||||
lean_object* lean_nat_mul(lean_object*, lean_object*);
|
||||
|
|
@ -182,14 +165,12 @@ static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__
|
|||
LEAN_EXPORT uint8_t l_Lean_Meta_Grind_Arith_isIntModuleVirtualParent(lean_object*);
|
||||
lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_alreadyVisited___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__3;
|
||||
uint8_t lean_uint64_dec_eq(uint64_t, uint64_t);
|
||||
size_t lean_usize_sub(size_t, size_t);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isNatType___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Std_DHashMap_Internal_AssocList_foldlM___at___Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at___Lean_Meta_Grind_Arith_CollectDecVars_alreadyVisited_spec__1_spec__1_spec__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isNatNum_x3f___closed__1;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_CollectDecVars_CollectDecVarsM_run___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___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_Lean_Meta_Grind_Arith_resize_go___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_shrink___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Meta_Grind_Arith_isNatAdd(lean_object*);
|
||||
|
|
@ -226,10 +207,7 @@ static lean_object* l_Lean_Meta_Grind_Arith_split___redArg___closed__4;
|
|||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__12;
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_split___redArg___closed__8;
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__1;
|
||||
lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__1___redArg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withNewMCtxDepth___at___Lean_Meta_matchesInstance_spec__0___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_isNatNum_x3f___closed__2;
|
||||
size_t lean_usize_land(size_t, size_t);
|
||||
static lean_object* l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__21;
|
||||
|
|
@ -2529,744 +2507,6 @@ x_3 = lean_box(x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__0() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_unchecked("IsCharP", 7, 7);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__0;
|
||||
x_2 = l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__8;
|
||||
x_3 = l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__2;
|
||||
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_13; uint8_t x_14;
|
||||
lean_inc(x_8);
|
||||
x_13 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_1, x_2, x_3, x_8, x_9, x_10, x_11, x_12);
|
||||
x_14 = !lean_is_exclusive(x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_15 = lean_ctor_get(x_13, 0);
|
||||
x_16 = lean_ctor_get(x_13, 1);
|
||||
x_17 = l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__1;
|
||||
lean_ctor_set_tag(x_13, 1);
|
||||
lean_ctor_set(x_13, 1, x_5);
|
||||
lean_ctor_set(x_13, 0, x_4);
|
||||
x_18 = l_Lean_Expr_const___override(x_17, x_13);
|
||||
lean_inc(x_15);
|
||||
x_19 = l_Lean_mkApp3(x_18, x_6, x_7, x_15);
|
||||
x_20 = lean_box(0);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_21 = l_Lean_Meta_trySynthInstance(x_19, x_20, x_8, x_9, x_10, x_11, x_16);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
{
|
||||
lean_object* x_22;
|
||||
x_22 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_22);
|
||||
if (lean_obj_tag(x_22) == 1)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26;
|
||||
x_23 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_21);
|
||||
x_24 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_22);
|
||||
x_25 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__1___redArg(x_15, x_9, x_23);
|
||||
x_26 = !lean_is_exclusive(x_25);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
x_28 = lean_ctor_get(x_25, 1);
|
||||
x_29 = l_Lean_Meta_evalNat(x_27, x_8, x_9, x_10, x_11, x_28);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_30 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_30);
|
||||
if (lean_obj_tag(x_30) == 0)
|
||||
{
|
||||
uint8_t x_31;
|
||||
lean_free_object(x_25);
|
||||
lean_dec(x_24);
|
||||
x_31 = !lean_is_exclusive(x_29);
|
||||
if (x_31 == 0)
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
x_32 = lean_ctor_get(x_29, 0);
|
||||
lean_dec(x_32);
|
||||
x_33 = lean_box(0);
|
||||
lean_ctor_set(x_29, 0, x_33);
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_29);
|
||||
x_35 = lean_box(0);
|
||||
x_36 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_35);
|
||||
lean_ctor_set(x_36, 1, x_34);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_37;
|
||||
x_37 = !lean_is_exclusive(x_29);
|
||||
if (x_37 == 0)
|
||||
{
|
||||
lean_object* x_38; uint8_t x_39;
|
||||
x_38 = lean_ctor_get(x_29, 0);
|
||||
lean_dec(x_38);
|
||||
x_39 = !lean_is_exclusive(x_30);
|
||||
if (x_39 == 0)
|
||||
{
|
||||
lean_object* x_40;
|
||||
x_40 = lean_ctor_get(x_30, 0);
|
||||
lean_ctor_set(x_25, 1, x_40);
|
||||
lean_ctor_set(x_25, 0, x_24);
|
||||
lean_ctor_set(x_30, 0, x_25);
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42;
|
||||
x_41 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_30);
|
||||
lean_ctor_set(x_25, 1, x_41);
|
||||
lean_ctor_set(x_25, 0, x_24);
|
||||
x_42 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_42, 0, x_25);
|
||||
lean_ctor_set(x_29, 0, x_42);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
x_43 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_29);
|
||||
x_44 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_44);
|
||||
if (lean_is_exclusive(x_30)) {
|
||||
lean_ctor_release(x_30, 0);
|
||||
x_45 = x_30;
|
||||
} else {
|
||||
lean_dec_ref(x_30);
|
||||
x_45 = lean_box(0);
|
||||
}
|
||||
lean_ctor_set(x_25, 1, x_44);
|
||||
lean_ctor_set(x_25, 0, x_24);
|
||||
if (lean_is_scalar(x_45)) {
|
||||
x_46 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_46 = x_45;
|
||||
}
|
||||
lean_ctor_set(x_46, 0, x_25);
|
||||
x_47 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_46);
|
||||
lean_ctor_set(x_47, 1, x_43);
|
||||
return x_47;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_48 = lean_ctor_get(x_25, 0);
|
||||
x_49 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_49);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_25);
|
||||
x_50 = l_Lean_Meta_evalNat(x_48, x_8, x_9, x_10, x_11, x_49);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_51 = lean_ctor_get(x_50, 0);
|
||||
lean_inc(x_51);
|
||||
if (lean_obj_tag(x_51) == 0)
|
||||
{
|
||||
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55;
|
||||
lean_dec(x_24);
|
||||
x_52 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_52);
|
||||
if (lean_is_exclusive(x_50)) {
|
||||
lean_ctor_release(x_50, 0);
|
||||
lean_ctor_release(x_50, 1);
|
||||
x_53 = x_50;
|
||||
} else {
|
||||
lean_dec_ref(x_50);
|
||||
x_53 = lean_box(0);
|
||||
}
|
||||
x_54 = lean_box(0);
|
||||
if (lean_is_scalar(x_53)) {
|
||||
x_55 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_55 = x_53;
|
||||
}
|
||||
lean_ctor_set(x_55, 0, x_54);
|
||||
lean_ctor_set(x_55, 1, x_52);
|
||||
return x_55;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62;
|
||||
x_56 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_56);
|
||||
if (lean_is_exclusive(x_50)) {
|
||||
lean_ctor_release(x_50, 0);
|
||||
lean_ctor_release(x_50, 1);
|
||||
x_57 = x_50;
|
||||
} else {
|
||||
lean_dec_ref(x_50);
|
||||
x_57 = lean_box(0);
|
||||
}
|
||||
x_58 = lean_ctor_get(x_51, 0);
|
||||
lean_inc(x_58);
|
||||
if (lean_is_exclusive(x_51)) {
|
||||
lean_ctor_release(x_51, 0);
|
||||
x_59 = x_51;
|
||||
} else {
|
||||
lean_dec_ref(x_51);
|
||||
x_59 = lean_box(0);
|
||||
}
|
||||
x_60 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_24);
|
||||
lean_ctor_set(x_60, 1, x_58);
|
||||
if (lean_is_scalar(x_59)) {
|
||||
x_61 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_61 = x_59;
|
||||
}
|
||||
lean_ctor_set(x_61, 0, x_60);
|
||||
if (lean_is_scalar(x_57)) {
|
||||
x_62 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_62 = x_57;
|
||||
}
|
||||
lean_ctor_set(x_62, 0, x_61);
|
||||
lean_ctor_set(x_62, 1, x_56);
|
||||
return x_62;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_63;
|
||||
lean_dec(x_22);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_63 = !lean_is_exclusive(x_21);
|
||||
if (x_63 == 0)
|
||||
{
|
||||
lean_object* x_64; lean_object* x_65;
|
||||
x_64 = lean_ctor_get(x_21, 0);
|
||||
lean_dec(x_64);
|
||||
x_65 = lean_box(0);
|
||||
lean_ctor_set(x_21, 0, x_65);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_66; lean_object* x_67; lean_object* x_68;
|
||||
x_66 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_66);
|
||||
lean_dec(x_21);
|
||||
x_67 = lean_box(0);
|
||||
x_68 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_68, 0, x_67);
|
||||
lean_ctor_set(x_68, 1, x_66);
|
||||
return x_68;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_69;
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_69 = !lean_is_exclusive(x_21);
|
||||
if (x_69 == 0)
|
||||
{
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_70; lean_object* x_71; lean_object* x_72;
|
||||
x_70 = lean_ctor_get(x_21, 0);
|
||||
x_71 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_71);
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_21);
|
||||
x_72 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_72, 0, x_70);
|
||||
lean_ctor_set(x_72, 1, x_71);
|
||||
return x_72;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80;
|
||||
x_73 = lean_ctor_get(x_13, 0);
|
||||
x_74 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_74);
|
||||
lean_inc(x_73);
|
||||
lean_dec(x_13);
|
||||
x_75 = l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__1;
|
||||
x_76 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_76, 0, x_4);
|
||||
lean_ctor_set(x_76, 1, x_5);
|
||||
x_77 = l_Lean_Expr_const___override(x_75, x_76);
|
||||
lean_inc(x_73);
|
||||
x_78 = l_Lean_mkApp3(x_77, x_6, x_7, x_73);
|
||||
x_79 = lean_box(0);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_80 = l_Lean_Meta_trySynthInstance(x_78, x_79, x_8, x_9, x_10, x_11, x_74);
|
||||
if (lean_obj_tag(x_80) == 0)
|
||||
{
|
||||
lean_object* x_81;
|
||||
x_81 = lean_ctor_get(x_80, 0);
|
||||
lean_inc(x_81);
|
||||
if (lean_obj_tag(x_81) == 1)
|
||||
{
|
||||
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
x_82 = lean_ctor_get(x_80, 1);
|
||||
lean_inc(x_82);
|
||||
lean_dec(x_80);
|
||||
x_83 = lean_ctor_get(x_81, 0);
|
||||
lean_inc(x_83);
|
||||
lean_dec(x_81);
|
||||
x_84 = l_Lean_instantiateMVars___at_____private_Lean_Meta_Basic_0__Lean_Meta_mkLevelErrorMessageCore_spec__1___redArg(x_73, x_9, x_82);
|
||||
x_85 = lean_ctor_get(x_84, 0);
|
||||
lean_inc(x_85);
|
||||
x_86 = lean_ctor_get(x_84, 1);
|
||||
lean_inc(x_86);
|
||||
if (lean_is_exclusive(x_84)) {
|
||||
lean_ctor_release(x_84, 0);
|
||||
lean_ctor_release(x_84, 1);
|
||||
x_87 = x_84;
|
||||
} else {
|
||||
lean_dec_ref(x_84);
|
||||
x_87 = lean_box(0);
|
||||
}
|
||||
x_88 = l_Lean_Meta_evalNat(x_85, x_8, x_9, x_10, x_11, x_86);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_89 = lean_ctor_get(x_88, 0);
|
||||
lean_inc(x_89);
|
||||
if (lean_obj_tag(x_89) == 0)
|
||||
{
|
||||
lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93;
|
||||
lean_dec(x_87);
|
||||
lean_dec(x_83);
|
||||
x_90 = lean_ctor_get(x_88, 1);
|
||||
lean_inc(x_90);
|
||||
if (lean_is_exclusive(x_88)) {
|
||||
lean_ctor_release(x_88, 0);
|
||||
lean_ctor_release(x_88, 1);
|
||||
x_91 = x_88;
|
||||
} else {
|
||||
lean_dec_ref(x_88);
|
||||
x_91 = lean_box(0);
|
||||
}
|
||||
x_92 = lean_box(0);
|
||||
if (lean_is_scalar(x_91)) {
|
||||
x_93 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_93 = x_91;
|
||||
}
|
||||
lean_ctor_set(x_93, 0, x_92);
|
||||
lean_ctor_set(x_93, 1, x_90);
|
||||
return x_93;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100;
|
||||
x_94 = lean_ctor_get(x_88, 1);
|
||||
lean_inc(x_94);
|
||||
if (lean_is_exclusive(x_88)) {
|
||||
lean_ctor_release(x_88, 0);
|
||||
lean_ctor_release(x_88, 1);
|
||||
x_95 = x_88;
|
||||
} else {
|
||||
lean_dec_ref(x_88);
|
||||
x_95 = lean_box(0);
|
||||
}
|
||||
x_96 = lean_ctor_get(x_89, 0);
|
||||
lean_inc(x_96);
|
||||
if (lean_is_exclusive(x_89)) {
|
||||
lean_ctor_release(x_89, 0);
|
||||
x_97 = x_89;
|
||||
} else {
|
||||
lean_dec_ref(x_89);
|
||||
x_97 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_87)) {
|
||||
x_98 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_98 = x_87;
|
||||
}
|
||||
lean_ctor_set(x_98, 0, x_83);
|
||||
lean_ctor_set(x_98, 1, x_96);
|
||||
if (lean_is_scalar(x_97)) {
|
||||
x_99 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_99 = x_97;
|
||||
}
|
||||
lean_ctor_set(x_99, 0, x_98);
|
||||
if (lean_is_scalar(x_95)) {
|
||||
x_100 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_100 = x_95;
|
||||
}
|
||||
lean_ctor_set(x_100, 0, x_99);
|
||||
lean_ctor_set(x_100, 1, x_94);
|
||||
return x_100;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104;
|
||||
lean_dec(x_81);
|
||||
lean_dec(x_73);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_101 = lean_ctor_get(x_80, 1);
|
||||
lean_inc(x_101);
|
||||
if (lean_is_exclusive(x_80)) {
|
||||
lean_ctor_release(x_80, 0);
|
||||
lean_ctor_release(x_80, 1);
|
||||
x_102 = x_80;
|
||||
} else {
|
||||
lean_dec_ref(x_80);
|
||||
x_102 = lean_box(0);
|
||||
}
|
||||
x_103 = lean_box(0);
|
||||
if (lean_is_scalar(x_102)) {
|
||||
x_104 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_104 = x_102;
|
||||
}
|
||||
lean_ctor_set(x_104, 0, x_103);
|
||||
lean_ctor_set(x_104, 1, x_101);
|
||||
return x_104;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108;
|
||||
lean_dec(x_73);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
x_105 = lean_ctor_get(x_80, 0);
|
||||
lean_inc(x_105);
|
||||
x_106 = lean_ctor_get(x_80, 1);
|
||||
lean_inc(x_106);
|
||||
if (lean_is_exclusive(x_80)) {
|
||||
lean_ctor_release(x_80, 0);
|
||||
lean_ctor_release(x_80, 1);
|
||||
x_107 = x_80;
|
||||
} else {
|
||||
lean_dec_ref(x_80);
|
||||
x_107 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_107)) {
|
||||
x_108 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_108 = x_107;
|
||||
}
|
||||
lean_ctor_set(x_108, 0, x_105);
|
||||
lean_ctor_set(x_108, 1, x_106);
|
||||
return x_108;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__0() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Meta_Grind_Arith_isNatType___closed__1;
|
||||
x_3 = l_Lean_Expr_const___override(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__0;
|
||||
x_2 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_getIsCharInst_x3f(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; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16;
|
||||
x_9 = lean_box(0);
|
||||
x_10 = l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__1;
|
||||
x_11 = 0;
|
||||
x_12 = lean_box(0);
|
||||
x_13 = lean_box(x_11);
|
||||
x_14 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___boxed), 12, 7);
|
||||
lean_closure_set(x_14, 0, x_10);
|
||||
lean_closure_set(x_14, 1, x_13);
|
||||
lean_closure_set(x_14, 2, x_12);
|
||||
lean_closure_set(x_14, 3, x_1);
|
||||
lean_closure_set(x_14, 4, x_9);
|
||||
lean_closure_set(x_14, 5, x_2);
|
||||
lean_closure_set(x_14, 6, x_3);
|
||||
x_15 = 0;
|
||||
x_16 = l_Lean_Meta_withNewMCtxDepth___at___Lean_Meta_matchesInstance_spec__0___redArg(x_14, x_15, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___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) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_13; lean_object* x_14;
|
||||
x_13 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_14 = l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0(x_1, x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__0() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_Grind_Arith_isArithTerm___closed__12;
|
||||
x_2 = l_Lean_Name_mkStr1(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = l_Lean_Level_ofNat(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_unchecked("NoNatZeroDivisors", 17, 17);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__2;
|
||||
x_2 = l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__8;
|
||||
x_3 = l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__2;
|
||||
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_8 = l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__0;
|
||||
x_9 = l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__1;
|
||||
x_10 = lean_box(0);
|
||||
lean_inc(x_1);
|
||||
x_11 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_1);
|
||||
lean_ctor_set(x_11, 1, x_10);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_1);
|
||||
lean_ctor_set(x_12, 1, x_11);
|
||||
x_13 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_9);
|
||||
lean_ctor_set(x_13, 1, x_12);
|
||||
x_14 = l_Lean_Expr_const___override(x_8, x_13);
|
||||
x_15 = l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__0;
|
||||
lean_inc_n(x_2, 2);
|
||||
x_16 = l_Lean_mkApp3(x_14, x_15, x_2, x_2);
|
||||
x_17 = lean_box(0);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_18 = l_Lean_Meta_trySynthInstance(x_16, x_17, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
lean_object* x_19;
|
||||
x_19 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_19);
|
||||
if (lean_obj_tag(x_19) == 1)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_20 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
x_21 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_19);
|
||||
x_22 = l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__3;
|
||||
x_23 = l_Lean_Expr_const___override(x_22, x_11);
|
||||
x_24 = l_Lean_mkAppB(x_23, x_2, x_21);
|
||||
x_25 = l_Lean_Meta_trySynthInstance(x_24, x_17, x_3, x_4, x_5, x_6, x_20);
|
||||
if (lean_obj_tag(x_25) == 0)
|
||||
{
|
||||
uint8_t x_26;
|
||||
x_26 = !lean_is_exclusive(x_25);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28;
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
x_28 = l_Lean_LOption_toOption___redArg(x_27);
|
||||
lean_ctor_set(x_25, 0, x_28);
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_29 = lean_ctor_get(x_25, 0);
|
||||
x_30 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_25);
|
||||
x_31 = l_Lean_LOption_toOption___redArg(x_29);
|
||||
x_32 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_31);
|
||||
lean_ctor_set(x_32, 1, x_30);
|
||||
return x_32;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_33;
|
||||
x_33 = !lean_is_exclusive(x_25);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_25, 0);
|
||||
x_35 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_25);
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_37;
|
||||
lean_dec(x_19);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_37 = !lean_is_exclusive(x_18);
|
||||
if (x_37 == 0)
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39;
|
||||
x_38 = lean_ctor_get(x_18, 0);
|
||||
lean_dec(x_38);
|
||||
x_39 = lean_box(0);
|
||||
lean_ctor_set(x_18, 0, x_39);
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_40 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_18);
|
||||
x_41 = lean_box(0);
|
||||
x_42 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_42, 0, x_41);
|
||||
lean_ctor_set(x_42, 1, x_40);
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_43;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_43 = !lean_is_exclusive(x_18);
|
||||
if (x_43 == 0)
|
||||
{
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_44 = lean_ctor_get(x_18, 0);
|
||||
x_45 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_45);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_18);
|
||||
x_46 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_44);
|
||||
lean_ctor_set(x_46, 1, x_45);
|
||||
return x_46;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_Arith_split___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -3717,22 +2957,6 @@ l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__21 = _init_l_Lean_Me
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent___closed__21);
|
||||
l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent = _init_l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_getIntModuleVirtualParent);
|
||||
l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__0 = _init_l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__0();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__0);
|
||||
l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__1 = _init_l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___lam__0___closed__1);
|
||||
l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__0 = _init_l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__0();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__0);
|
||||
l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__1 = _init_l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_getIsCharInst_x3f___closed__1);
|
||||
l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__0 = _init_l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__0();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__0);
|
||||
l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__1 = _init_l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__1);
|
||||
l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__2 = _init_l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__2);
|
||||
l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__3 = _init_l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_getNoZeroDivInst_x3f___closed__3);
|
||||
l_Lean_Meta_Grind_Arith_split___redArg___closed__0 = _init_l_Lean_Meta_Grind_Arith_split___redArg___closed__0();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_Arith_split___redArg___closed__0);
|
||||
l_Lean_Meta_Grind_Arith_split___redArg___closed__1 = _init_l_Lean_Meta_Grind_Arith_split___redArg___closed__1();
|
||||
|
|
|
|||
1182
stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c
generated
1182
stage0/stdlib/Lean/Meta/Tactic/Grind/EMatch.c
generated
File diff suppressed because it is too large
Load diff
380
stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c
generated
380
stage0/stdlib/Lean/Meta/Tactic/Grind/EMatchTheorem.c
generated
|
|
@ -97,7 +97,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkGenHEqPattern(lean_object*, lean_ob
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_initFn____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_6081_(lean_object*);
|
||||
LEAN_EXPORT uint64_t l_Lean_Meta_Grind_hashEMatchTheoremKind____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_4983_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collectPatterns_x3f_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem(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_addEMatchTheorem(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_checkTypeFVars___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_reprGenPatternInfo___redArg___closed__3____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_1203_;
|
||||
lean_object* l_Lean_Meta_isProp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -453,6 +453,7 @@ lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_splitWhileForbidden(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType_spec__0___redArg(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_Meta_Grind_initFn___closed__1____x40_Lean_Meta_Tactic_Grind_EMatchTheorem___hyg_6081_;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___boxed(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_forIn_x27Unsafe_loop___at___Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_mkEMatchEqBwdTheoremCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_NormalizePattern_isCandidateSymbol___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -21446,48 +21447,47 @@ x_15 = l_Lean_Meta_Grind_mkEMatchEqTheorem(x_1, x_11, x_12, x_13, x_14, x_6, x_7
|
|||
return x_15;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem(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_Meta_Grind_addEMatchTheorem(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
lean_object* x_11;
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_10 = l_Lean_Meta_Grind_mkEMatchTheorem(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
x_11 = l_Lean_Meta_Grind_mkEMatchTheorem(x_1, x_2, x_3, x_4, x_6, x_7, x_8, x_9, x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15;
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = l_Lean_Meta_Grind_isEMatchTheorem___redArg___closed__0;
|
||||
x_14 = 0;
|
||||
x_15 = l_Lean_ScopedEnvExtension_add___at___Lean_Meta_addSimpCongrTheorem_spec__0___redArg(x_13, x_11, x_14, x_6, x_7, x_8, x_12);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_6);
|
||||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_14 = l_Lean_Meta_Grind_isEMatchTheorem___redArg___closed__0;
|
||||
x_15 = l_Lean_ScopedEnvExtension_add___at___Lean_Meta_addSimpCongrTheorem_spec__0___redArg(x_14, x_12, x_5, x_7, x_8, x_9, x_13);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_7);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_16;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_16 = !lean_is_exclusive(x_10);
|
||||
x_16 = !lean_is_exclusive(x_11);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
return x_10;
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_17 = lean_ctor_get(x_10, 0);
|
||||
x_18 = lean_ctor_get(x_10, 1);
|
||||
x_17 = lean_ctor_get(x_11, 0);
|
||||
x_18 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_18);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_11);
|
||||
x_19 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_17);
|
||||
lean_ctor_set(x_19, 1, x_18);
|
||||
|
|
@ -21496,6 +21496,16 @@ return x_19;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchTheorem___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_11; lean_object* x_12;
|
||||
x_11 = lean_unbox(x_5);
|
||||
lean_dec(x_5);
|
||||
x_12 = l_Lean_Meta_Grind_addEMatchTheorem(x_1, x_2, x_3, x_4, x_11, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_addEMatchEqTheorem(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -25256,15 +25266,15 @@ block_49:
|
|||
{
|
||||
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; size_t x_36; size_t x_37; lean_object* x_38;
|
||||
x_28 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_preprocessMatchCongrEqType___lam__0___closed__0;
|
||||
lean_inc(x_18);
|
||||
x_29 = lean_mk_array(x_18, x_28);
|
||||
lean_inc(x_17);
|
||||
x_29 = lean_mk_array(x_17, x_28);
|
||||
x_30 = lean_unsigned_to_nat(1u);
|
||||
x_31 = lean_nat_sub(x_18, x_30);
|
||||
lean_dec(x_18);
|
||||
x_31 = lean_nat_sub(x_17, x_30);
|
||||
lean_dec(x_17);
|
||||
x_32 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_29, x_31);
|
||||
x_33 = lean_unsigned_to_nat(0u);
|
||||
x_34 = lean_array_get_size(x_17);
|
||||
x_35 = l_Array_toSubarray___redArg(x_17, x_33, x_34);
|
||||
x_34 = lean_array_get_size(x_18);
|
||||
x_35 = l_Array_toSubarray___redArg(x_18, x_33, x_34);
|
||||
x_36 = lean_array_size(x_32);
|
||||
x_37 = 0;
|
||||
x_38 = l_Array_forIn_x27Unsafe_loop___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect_spec__0___redArg(x_16, x_32, x_36, x_37, x_35, x_19, x_20, x_21, x_22, x_23, x_24, x_25, x_26, x_27);
|
||||
|
|
@ -25324,16 +25334,16 @@ if (lean_obj_tag(x_60) == 0)
|
|||
{
|
||||
lean_dec(x_60);
|
||||
lean_dec(x_15);
|
||||
x_17 = x_51;
|
||||
x_18 = x_55;
|
||||
x_19 = x_56;
|
||||
x_17 = x_53;
|
||||
x_18 = x_58;
|
||||
x_19 = x_51;
|
||||
x_20 = x_57;
|
||||
x_21 = x_59;
|
||||
x_21 = x_55;
|
||||
x_22 = x_54;
|
||||
x_23 = x_52;
|
||||
x_24 = x_53;
|
||||
x_25 = x_58;
|
||||
x_26 = x_50;
|
||||
x_23 = x_50;
|
||||
x_24 = x_59;
|
||||
x_25 = x_52;
|
||||
x_26 = x_56;
|
||||
x_27 = x_61;
|
||||
goto block_49;
|
||||
}
|
||||
|
|
@ -25377,10 +25387,10 @@ lean_dec(x_75);
|
|||
x_50 = x_65;
|
||||
x_51 = x_66;
|
||||
x_52 = x_67;
|
||||
x_53 = x_69;
|
||||
x_54 = x_68;
|
||||
x_55 = x_71;
|
||||
x_56 = x_70;
|
||||
x_53 = x_70;
|
||||
x_54 = x_69;
|
||||
x_55 = x_68;
|
||||
x_56 = x_71;
|
||||
x_57 = x_72;
|
||||
x_58 = x_74;
|
||||
x_59 = x_73;
|
||||
|
|
@ -25428,7 +25438,7 @@ block_127:
|
|||
if (x_96 == 0)
|
||||
{
|
||||
lean_object* x_97; lean_object* x_98; uint8_t x_99;
|
||||
x_97 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_16, x_94, x_83);
|
||||
x_97 = l_Lean_isTracingEnabledFor___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__0___redArg(x_16, x_90, x_87);
|
||||
x_98 = lean_ctor_get(x_97, 0);
|
||||
lean_inc(x_98);
|
||||
x_99 = lean_unbox(x_98);
|
||||
|
|
@ -25436,30 +25446,30 @@ lean_dec(x_98);
|
|||
if (x_99 == 0)
|
||||
{
|
||||
lean_object* x_100; lean_object* x_101; lean_object* x_102;
|
||||
lean_dec(x_87);
|
||||
lean_dec(x_85);
|
||||
x_100 = lean_ctor_get(x_97, 1);
|
||||
lean_inc(x_100);
|
||||
lean_dec(x_97);
|
||||
x_101 = lean_box(0);
|
||||
lean_inc(x_89);
|
||||
lean_inc(x_94);
|
||||
lean_inc(x_93);
|
||||
lean_inc(x_90);
|
||||
lean_inc(x_95);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_91);
|
||||
lean_inc(x_84);
|
||||
lean_inc(x_85);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_93);
|
||||
lean_inc(x_86);
|
||||
x_102 = lean_apply_10(x_95, x_101, x_86, x_93, x_88, x_85, x_84, x_91, x_94, x_89, x_100);
|
||||
x_65 = x_89;
|
||||
x_66 = x_90;
|
||||
x_67 = x_84;
|
||||
x_68 = x_85;
|
||||
lean_inc(x_94);
|
||||
lean_inc(x_89);
|
||||
x_102 = lean_apply_10(x_83, x_101, x_89, x_94, x_84, x_91, x_88, x_95, x_90, x_93, x_100);
|
||||
x_65 = x_88;
|
||||
x_66 = x_89;
|
||||
x_67 = x_90;
|
||||
x_68 = x_84;
|
||||
x_69 = x_91;
|
||||
x_70 = x_86;
|
||||
x_71 = x_92;
|
||||
x_72 = x_93;
|
||||
x_73 = x_88;
|
||||
x_74 = x_94;
|
||||
x_70 = x_92;
|
||||
x_71 = x_93;
|
||||
x_72 = x_94;
|
||||
x_73 = x_95;
|
||||
x_74 = x_86;
|
||||
x_75 = x_102;
|
||||
goto block_82;
|
||||
}
|
||||
|
|
@ -25474,7 +25484,7 @@ x_104 = lean_ctor_get(x_97, 1);
|
|||
x_105 = lean_ctor_get(x_97, 0);
|
||||
lean_dec(x_105);
|
||||
x_106 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___closed__1;
|
||||
x_107 = l_Lean_Exception_toMessageData(x_87);
|
||||
x_107 = l_Lean_Exception_toMessageData(x_85);
|
||||
x_108 = l_Lean_indentD(x_107);
|
||||
lean_ctor_set_tag(x_97, 7);
|
||||
lean_ctor_set(x_97, 1, x_108);
|
||||
|
|
@ -25483,31 +25493,31 @@ x_109 = l_Lean_Meta_Grind_ppPattern___closed__3;
|
|||
x_110 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_110, 0, x_97);
|
||||
lean_ctor_set(x_110, 1, x_109);
|
||||
x_111 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_16, x_110, x_84, x_91, x_94, x_89, x_104);
|
||||
x_111 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_16, x_110, x_88, x_95, x_90, x_93, x_104);
|
||||
x_112 = lean_ctor_get(x_111, 0);
|
||||
lean_inc(x_112);
|
||||
x_113 = lean_ctor_get(x_111, 1);
|
||||
lean_inc(x_113);
|
||||
lean_dec(x_111);
|
||||
lean_inc(x_89);
|
||||
lean_inc(x_94);
|
||||
lean_inc(x_93);
|
||||
lean_inc(x_90);
|
||||
lean_inc(x_95);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_91);
|
||||
lean_inc(x_84);
|
||||
lean_inc(x_85);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_93);
|
||||
lean_inc(x_86);
|
||||
x_114 = lean_apply_10(x_95, x_112, x_86, x_93, x_88, x_85, x_84, x_91, x_94, x_89, x_113);
|
||||
x_65 = x_89;
|
||||
x_66 = x_90;
|
||||
x_67 = x_84;
|
||||
x_68 = x_85;
|
||||
lean_inc(x_94);
|
||||
lean_inc(x_89);
|
||||
x_114 = lean_apply_10(x_83, x_112, x_89, x_94, x_84, x_91, x_88, x_95, x_90, x_93, x_113);
|
||||
x_65 = x_88;
|
||||
x_66 = x_89;
|
||||
x_67 = x_90;
|
||||
x_68 = x_84;
|
||||
x_69 = x_91;
|
||||
x_70 = x_86;
|
||||
x_71 = x_92;
|
||||
x_72 = x_93;
|
||||
x_73 = x_88;
|
||||
x_74 = x_94;
|
||||
x_70 = x_92;
|
||||
x_71 = x_93;
|
||||
x_72 = x_94;
|
||||
x_73 = x_95;
|
||||
x_74 = x_86;
|
||||
x_75 = x_114;
|
||||
goto block_82;
|
||||
}
|
||||
|
|
@ -25518,7 +25528,7 @@ x_115 = lean_ctor_get(x_97, 1);
|
|||
lean_inc(x_115);
|
||||
lean_dec(x_97);
|
||||
x_116 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___closed__1;
|
||||
x_117 = l_Lean_Exception_toMessageData(x_87);
|
||||
x_117 = l_Lean_Exception_toMessageData(x_85);
|
||||
x_118 = l_Lean_indentD(x_117);
|
||||
x_119 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_119, 0, x_116);
|
||||
|
|
@ -25527,31 +25537,31 @@ x_120 = l_Lean_Meta_Grind_ppPattern___closed__3;
|
|||
x_121 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_121, 0, x_119);
|
||||
lean_ctor_set(x_121, 1, x_120);
|
||||
x_122 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_16, x_121, x_84, x_91, x_94, x_89, x_115);
|
||||
x_122 = l_Lean_addTrace___at_____private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_addNewPattern_spec__1___redArg(x_16, x_121, x_88, x_95, x_90, x_93, x_115);
|
||||
x_123 = lean_ctor_get(x_122, 0);
|
||||
lean_inc(x_123);
|
||||
x_124 = lean_ctor_get(x_122, 1);
|
||||
lean_inc(x_124);
|
||||
lean_dec(x_122);
|
||||
lean_inc(x_89);
|
||||
lean_inc(x_94);
|
||||
lean_inc(x_93);
|
||||
lean_inc(x_90);
|
||||
lean_inc(x_95);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_91);
|
||||
lean_inc(x_84);
|
||||
lean_inc(x_85);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_93);
|
||||
lean_inc(x_86);
|
||||
x_125 = lean_apply_10(x_95, x_123, x_86, x_93, x_88, x_85, x_84, x_91, x_94, x_89, x_124);
|
||||
x_65 = x_89;
|
||||
x_66 = x_90;
|
||||
x_67 = x_84;
|
||||
x_68 = x_85;
|
||||
lean_inc(x_94);
|
||||
lean_inc(x_89);
|
||||
x_125 = lean_apply_10(x_83, x_123, x_89, x_94, x_84, x_91, x_88, x_95, x_90, x_93, x_124);
|
||||
x_65 = x_88;
|
||||
x_66 = x_89;
|
||||
x_67 = x_90;
|
||||
x_68 = x_84;
|
||||
x_69 = x_91;
|
||||
x_70 = x_86;
|
||||
x_71 = x_92;
|
||||
x_72 = x_93;
|
||||
x_73 = x_88;
|
||||
x_74 = x_94;
|
||||
x_70 = x_92;
|
||||
x_71 = x_93;
|
||||
x_72 = x_94;
|
||||
x_73 = x_95;
|
||||
x_74 = x_86;
|
||||
x_75 = x_125;
|
||||
goto block_82;
|
||||
}
|
||||
|
|
@ -25569,13 +25579,13 @@ lean_dec(x_90);
|
|||
lean_dec(x_89);
|
||||
lean_dec(x_88);
|
||||
lean_dec(x_86);
|
||||
lean_dec(x_85);
|
||||
lean_dec(x_84);
|
||||
lean_dec(x_83);
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_1);
|
||||
x_126 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_126, 0, x_87);
|
||||
lean_ctor_set(x_126, 1, x_83);
|
||||
lean_ctor_set(x_126, 0, x_85);
|
||||
lean_ctor_set(x_126, 1, x_87);
|
||||
return x_126;
|
||||
}
|
||||
}
|
||||
|
|
@ -25587,37 +25597,37 @@ if (x_141 == 0)
|
|||
{
|
||||
uint8_t x_142;
|
||||
x_142 = l_Lean_Exception_isRuntime(x_139);
|
||||
x_83 = x_140;
|
||||
x_84 = x_130;
|
||||
x_85 = x_132;
|
||||
x_86 = x_134;
|
||||
x_87 = x_139;
|
||||
x_88 = x_137;
|
||||
x_89 = x_128;
|
||||
x_90 = x_129;
|
||||
x_91 = x_131;
|
||||
x_92 = x_133;
|
||||
x_83 = x_134;
|
||||
x_84 = x_133;
|
||||
x_85 = x_139;
|
||||
x_86 = x_138;
|
||||
x_87 = x_140;
|
||||
x_88 = x_128;
|
||||
x_89 = x_129;
|
||||
x_90 = x_130;
|
||||
x_91 = x_132;
|
||||
x_92 = x_131;
|
||||
x_93 = x_135;
|
||||
x_94 = x_136;
|
||||
x_95 = x_138;
|
||||
x_95 = x_137;
|
||||
x_96 = x_142;
|
||||
goto block_127;
|
||||
}
|
||||
else
|
||||
{
|
||||
x_83 = x_140;
|
||||
x_84 = x_130;
|
||||
x_85 = x_132;
|
||||
x_86 = x_134;
|
||||
x_87 = x_139;
|
||||
x_88 = x_137;
|
||||
x_89 = x_128;
|
||||
x_90 = x_129;
|
||||
x_91 = x_131;
|
||||
x_92 = x_133;
|
||||
x_83 = x_134;
|
||||
x_84 = x_133;
|
||||
x_85 = x_139;
|
||||
x_86 = x_138;
|
||||
x_87 = x_140;
|
||||
x_88 = x_128;
|
||||
x_89 = x_129;
|
||||
x_90 = x_130;
|
||||
x_91 = x_132;
|
||||
x_92 = x_131;
|
||||
x_93 = x_135;
|
||||
x_94 = x_136;
|
||||
x_95 = x_138;
|
||||
x_95 = x_137;
|
||||
x_96 = x_141;
|
||||
goto block_127;
|
||||
}
|
||||
|
|
@ -25627,7 +25637,7 @@ block_160:
|
|||
if (lean_obj_tag(x_155) == 0)
|
||||
{
|
||||
lean_object* x_156; lean_object* x_157;
|
||||
lean_dec(x_154);
|
||||
lean_dec(x_147);
|
||||
x_156 = lean_ctor_get(x_155, 0);
|
||||
lean_inc(x_156);
|
||||
x_157 = lean_ctor_get(x_155, 1);
|
||||
|
|
@ -25636,13 +25646,13 @@ lean_dec(x_155);
|
|||
x_50 = x_144;
|
||||
x_51 = x_145;
|
||||
x_52 = x_146;
|
||||
x_53 = x_148;
|
||||
x_54 = x_147;
|
||||
x_55 = x_150;
|
||||
x_56 = x_149;
|
||||
x_57 = x_151;
|
||||
x_58 = x_153;
|
||||
x_59 = x_152;
|
||||
x_53 = x_150;
|
||||
x_54 = x_149;
|
||||
x_55 = x_148;
|
||||
x_56 = x_151;
|
||||
x_57 = x_152;
|
||||
x_58 = x_154;
|
||||
x_59 = x_153;
|
||||
x_60 = x_156;
|
||||
x_61 = x_157;
|
||||
goto block_64;
|
||||
|
|
@ -25658,13 +25668,13 @@ lean_dec(x_155);
|
|||
x_128 = x_144;
|
||||
x_129 = x_145;
|
||||
x_130 = x_146;
|
||||
x_131 = x_148;
|
||||
x_132 = x_147;
|
||||
x_133 = x_150;
|
||||
x_134 = x_149;
|
||||
x_131 = x_150;
|
||||
x_132 = x_149;
|
||||
x_133 = x_148;
|
||||
x_134 = x_147;
|
||||
x_135 = x_151;
|
||||
x_136 = x_153;
|
||||
x_137 = x_152;
|
||||
x_136 = x_152;
|
||||
x_137 = x_153;
|
||||
x_138 = x_154;
|
||||
x_139 = x_158;
|
||||
x_140 = x_159;
|
||||
|
|
@ -25705,8 +25715,8 @@ lean_dec(x_15);
|
|||
x_178 = lean_ctor_get(x_175, 1);
|
||||
lean_inc(x_178);
|
||||
lean_dec(x_175);
|
||||
x_17 = x_173;
|
||||
x_18 = x_171;
|
||||
x_17 = x_171;
|
||||
x_18 = x_173;
|
||||
x_19 = x_161;
|
||||
x_20 = x_162;
|
||||
x_21 = x_163;
|
||||
|
|
@ -25756,17 +25766,17 @@ lean_inc(x_163);
|
|||
lean_inc(x_161);
|
||||
lean_inc(x_173);
|
||||
x_190 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lam__1(x_1, x_16, x_182, x_173, x_189, x_161, x_162, x_163, x_164, x_165, x_166, x_167, x_168, x_188);
|
||||
x_144 = x_168;
|
||||
x_145 = x_173;
|
||||
x_146 = x_165;
|
||||
x_147 = x_164;
|
||||
x_148 = x_166;
|
||||
x_149 = x_161;
|
||||
x_144 = x_165;
|
||||
x_145 = x_161;
|
||||
x_146 = x_167;
|
||||
x_147 = x_184;
|
||||
x_148 = x_163;
|
||||
x_149 = x_164;
|
||||
x_150 = x_171;
|
||||
x_151 = x_162;
|
||||
x_152 = x_163;
|
||||
x_153 = x_167;
|
||||
x_154 = x_184;
|
||||
x_151 = x_168;
|
||||
x_152 = x_162;
|
||||
x_153 = x_166;
|
||||
x_154 = x_173;
|
||||
x_155 = x_190;
|
||||
goto block_160;
|
||||
}
|
||||
|
|
@ -25806,17 +25816,17 @@ lean_inc(x_161);
|
|||
lean_inc(x_173);
|
||||
x_200 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lam__1(x_1, x_16, x_182, x_173, x_198, x_161, x_162, x_163, x_164, x_165, x_166, x_167, x_168, x_199);
|
||||
lean_dec(x_198);
|
||||
x_144 = x_168;
|
||||
x_145 = x_173;
|
||||
x_146 = x_165;
|
||||
x_147 = x_164;
|
||||
x_148 = x_166;
|
||||
x_149 = x_161;
|
||||
x_144 = x_165;
|
||||
x_145 = x_161;
|
||||
x_146 = x_167;
|
||||
x_147 = x_184;
|
||||
x_148 = x_163;
|
||||
x_149 = x_164;
|
||||
x_150 = x_171;
|
||||
x_151 = x_162;
|
||||
x_152 = x_163;
|
||||
x_153 = x_167;
|
||||
x_154 = x_184;
|
||||
x_151 = x_168;
|
||||
x_152 = x_162;
|
||||
x_153 = x_166;
|
||||
x_154 = x_173;
|
||||
x_155 = x_200;
|
||||
goto block_160;
|
||||
}
|
||||
|
|
@ -25852,17 +25862,17 @@ lean_inc(x_161);
|
|||
lean_inc(x_173);
|
||||
x_209 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lam__1(x_1, x_16, x_182, x_173, x_207, x_161, x_162, x_163, x_164, x_165, x_166, x_167, x_168, x_208);
|
||||
lean_dec(x_207);
|
||||
x_144 = x_168;
|
||||
x_145 = x_173;
|
||||
x_146 = x_165;
|
||||
x_147 = x_164;
|
||||
x_148 = x_166;
|
||||
x_149 = x_161;
|
||||
x_144 = x_165;
|
||||
x_145 = x_161;
|
||||
x_146 = x_167;
|
||||
x_147 = x_184;
|
||||
x_148 = x_163;
|
||||
x_149 = x_164;
|
||||
x_150 = x_171;
|
||||
x_151 = x_162;
|
||||
x_152 = x_163;
|
||||
x_153 = x_167;
|
||||
x_154 = x_184;
|
||||
x_151 = x_168;
|
||||
x_152 = x_162;
|
||||
x_153 = x_166;
|
||||
x_154 = x_173;
|
||||
x_155 = x_209;
|
||||
goto block_160;
|
||||
}
|
||||
|
|
@ -25900,17 +25910,17 @@ lean_inc(x_163);
|
|||
lean_inc(x_161);
|
||||
lean_inc(x_173);
|
||||
x_218 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lam__1(x_1, x_16, x_210, x_173, x_217, x_161, x_162, x_163, x_164, x_165, x_166, x_167, x_168, x_216);
|
||||
x_144 = x_168;
|
||||
x_145 = x_173;
|
||||
x_146 = x_165;
|
||||
x_147 = x_164;
|
||||
x_148 = x_166;
|
||||
x_149 = x_161;
|
||||
x_144 = x_165;
|
||||
x_145 = x_161;
|
||||
x_146 = x_167;
|
||||
x_147 = x_212;
|
||||
x_148 = x_163;
|
||||
x_149 = x_164;
|
||||
x_150 = x_171;
|
||||
x_151 = x_162;
|
||||
x_152 = x_163;
|
||||
x_153 = x_167;
|
||||
x_154 = x_212;
|
||||
x_151 = x_168;
|
||||
x_152 = x_162;
|
||||
x_153 = x_166;
|
||||
x_154 = x_173;
|
||||
x_155 = x_218;
|
||||
goto block_160;
|
||||
}
|
||||
|
|
@ -25958,17 +25968,17 @@ lean_inc(x_161);
|
|||
lean_inc(x_173);
|
||||
x_229 = l___private_Lean_Meta_Tactic_Grind_EMatchTheorem_0__Lean_Meta_Grind_collect___lam__1(x_1, x_16, x_210, x_173, x_227, x_161, x_162, x_163, x_164, x_165, x_166, x_167, x_168, x_228);
|
||||
lean_dec(x_227);
|
||||
x_144 = x_168;
|
||||
x_145 = x_173;
|
||||
x_146 = x_165;
|
||||
x_147 = x_164;
|
||||
x_148 = x_166;
|
||||
x_149 = x_161;
|
||||
x_144 = x_165;
|
||||
x_145 = x_161;
|
||||
x_146 = x_167;
|
||||
x_147 = x_212;
|
||||
x_148 = x_163;
|
||||
x_149 = x_164;
|
||||
x_150 = x_171;
|
||||
x_151 = x_162;
|
||||
x_152 = x_163;
|
||||
x_153 = x_167;
|
||||
x_154 = x_212;
|
||||
x_151 = x_168;
|
||||
x_152 = x_162;
|
||||
x_153 = x_166;
|
||||
x_154 = x_173;
|
||||
x_155 = x_229;
|
||||
goto block_160;
|
||||
}
|
||||
|
|
|
|||
68
stage0/stdlib/Lean/Meta/Tactic/Grind/Ext.c
generated
68
stage0/stdlib/Lean/Meta/Tactic/Grind/Ext.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Meta.Tactic.Grind.Ext
|
||||
// Imports: Lean.Meta.Tactic.Grind.Types
|
||||
// Imports: Lean.Meta.Tactic.Grind.Types Lean.Meta.Tactic.Grind.SynthInstance
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -43,7 +43,6 @@ lean_object* l_Lean_Meta_Grind_getConfig___redArg(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at___Lean_Meta_Grind_instantiateExtTheorem_spec__3___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_Lean_Meta_Grind_instantiateExtTheorem___lam__0___closed__1;
|
||||
static lean_object* l_Lean_Meta_Grind_instantiateExtTheorem___lam__0___closed__16;
|
||||
lean_object* l_Lean_Meta_Grind_synthesizeInstanceAndAssign(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_instantiateExtTheorem_spec__0___redArg___closed__0;
|
||||
uint8_t l_Lean_Expr_hasMVar(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_instantiateExtTheorem___lam__0___closed__14;
|
||||
|
|
@ -99,6 +98,7 @@ lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_obje
|
|||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withNewMCtxDepth___at___Lean_Meta_Grind_instantiateExtTheorem_spec__3___redArg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_lt(size_t, size_t);
|
||||
lean_object* l_Lean_Meta_Grind_synthInstanceAndAssign___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_instantiateExtTheorem_spec__0___redArg___closed__5;
|
||||
lean_object* l_Lean_Meta_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint64_t l_Lean_Meta_TransparencyMode_toUInt64(uint8_t);
|
||||
|
|
@ -354,7 +354,7 @@ lean_inc(x_14);
|
|||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
x_57 = l_Lean_Meta_Grind_synthesizeInstanceAndAssign(x_36, x_55, x_11, x_12, x_13, x_14, x_56);
|
||||
x_57 = l_Lean_Meta_Grind_synthInstanceAndAssign___redArg(x_36, x_55, x_11, x_12, x_13, x_14, x_56);
|
||||
if (lean_obj_tag(x_57) == 0)
|
||||
{
|
||||
lean_object* x_58; uint8_t x_59;
|
||||
|
|
@ -665,7 +665,7 @@ lean_inc(x_14);
|
|||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
x_125 = l_Lean_Meta_Grind_synthesizeInstanceAndAssign(x_103, x_123, x_11, x_12, x_13, x_14, x_124);
|
||||
x_125 = l_Lean_Meta_Grind_synthInstanceAndAssign___redArg(x_103, x_123, x_11, x_12, x_13, x_14, x_124);
|
||||
if (lean_obj_tag(x_125) == 0)
|
||||
{
|
||||
lean_object* x_126; uint8_t x_127;
|
||||
|
|
@ -1310,7 +1310,7 @@ return x_24;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_162;
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_162;
|
||||
lean_free_object(x_24);
|
||||
x_30 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_30);
|
||||
|
|
@ -1858,8 +1858,8 @@ lean_dec(x_233);
|
|||
lean_dec(x_170);
|
||||
x_236 = lean_unbox(x_174);
|
||||
lean_dec(x_174);
|
||||
x_81 = x_236;
|
||||
x_82 = x_232;
|
||||
x_81 = x_232;
|
||||
x_82 = x_236;
|
||||
x_83 = x_234;
|
||||
x_84 = x_230;
|
||||
goto block_161;
|
||||
|
|
@ -1875,8 +1875,8 @@ lean_dec(x_233);
|
|||
lean_dec(x_170);
|
||||
x_238 = lean_unbox(x_174);
|
||||
lean_dec(x_174);
|
||||
x_81 = x_238;
|
||||
x_82 = x_232;
|
||||
x_81 = x_232;
|
||||
x_82 = x_238;
|
||||
x_83 = x_234;
|
||||
x_84 = x_230;
|
||||
goto block_161;
|
||||
|
|
@ -1895,8 +1895,8 @@ lean_inc(x_242);
|
|||
lean_dec(x_240);
|
||||
x_243 = lean_unbox(x_174);
|
||||
lean_dec(x_174);
|
||||
x_81 = x_243;
|
||||
x_82 = x_232;
|
||||
x_81 = x_232;
|
||||
x_82 = x_243;
|
||||
x_83 = x_241;
|
||||
x_84 = x_242;
|
||||
goto block_161;
|
||||
|
|
@ -2262,8 +2262,8 @@ lean_dec(x_313);
|
|||
lean_dec(x_262);
|
||||
x_316 = lean_unbox(x_266);
|
||||
lean_dec(x_266);
|
||||
x_81 = x_316;
|
||||
x_82 = x_312;
|
||||
x_81 = x_312;
|
||||
x_82 = x_316;
|
||||
x_83 = x_314;
|
||||
x_84 = x_310;
|
||||
goto block_161;
|
||||
|
|
@ -2279,8 +2279,8 @@ lean_dec(x_313);
|
|||
lean_dec(x_262);
|
||||
x_318 = lean_unbox(x_266);
|
||||
lean_dec(x_266);
|
||||
x_81 = x_318;
|
||||
x_82 = x_312;
|
||||
x_81 = x_312;
|
||||
x_82 = x_318;
|
||||
x_83 = x_314;
|
||||
x_84 = x_310;
|
||||
goto block_161;
|
||||
|
|
@ -2299,8 +2299,8 @@ lean_inc(x_322);
|
|||
lean_dec(x_320);
|
||||
x_323 = lean_unbox(x_266);
|
||||
lean_dec(x_266);
|
||||
x_81 = x_323;
|
||||
x_82 = x_312;
|
||||
x_81 = x_312;
|
||||
x_82 = x_323;
|
||||
x_83 = x_321;
|
||||
x_84 = x_322;
|
||||
goto block_161;
|
||||
|
|
@ -2686,8 +2686,8 @@ lean_dec(x_394);
|
|||
lean_dec(x_341);
|
||||
x_397 = lean_unbox(x_346);
|
||||
lean_dec(x_346);
|
||||
x_81 = x_397;
|
||||
x_82 = x_393;
|
||||
x_81 = x_393;
|
||||
x_82 = x_397;
|
||||
x_83 = x_395;
|
||||
x_84 = x_391;
|
||||
goto block_161;
|
||||
|
|
@ -2703,8 +2703,8 @@ lean_dec(x_394);
|
|||
lean_dec(x_341);
|
||||
x_399 = lean_unbox(x_346);
|
||||
lean_dec(x_346);
|
||||
x_81 = x_399;
|
||||
x_82 = x_393;
|
||||
x_81 = x_393;
|
||||
x_82 = x_399;
|
||||
x_83 = x_395;
|
||||
x_84 = x_391;
|
||||
goto block_161;
|
||||
|
|
@ -2723,8 +2723,8 @@ lean_inc(x_403);
|
|||
lean_dec(x_401);
|
||||
x_404 = lean_unbox(x_346);
|
||||
lean_dec(x_346);
|
||||
x_81 = x_404;
|
||||
x_82 = x_393;
|
||||
x_81 = x_393;
|
||||
x_82 = x_404;
|
||||
x_83 = x_402;
|
||||
x_84 = x_403;
|
||||
goto block_161;
|
||||
|
|
@ -3069,7 +3069,7 @@ block_161:
|
|||
uint8_t x_85; uint8_t x_86; lean_object* x_87;
|
||||
x_85 = 0;
|
||||
x_86 = 1;
|
||||
x_87 = l_Lean_Meta_mkLambdaFVars(x_83, x_82, x_85, x_81, x_85, x_81, x_86, x_7, x_8, x_9, x_10, x_84);
|
||||
x_87 = l_Lean_Meta_mkLambdaFVars(x_83, x_81, x_85, x_82, x_85, x_82, x_86, x_7, x_8, x_9, x_10, x_84);
|
||||
if (lean_obj_tag(x_87) == 0)
|
||||
{
|
||||
lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91;
|
||||
|
|
@ -3513,7 +3513,7 @@ return x_506;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_507; lean_object* x_508; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; uint8_t x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_590;
|
||||
lean_object* x_507; lean_object* x_508; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_546; uint8_t x_547; lean_object* x_548; lean_object* x_549; lean_object* x_590;
|
||||
x_507 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_507);
|
||||
lean_dec(x_2);
|
||||
|
|
@ -3963,8 +3963,8 @@ lean_dec(x_650);
|
|||
lean_dec(x_596);
|
||||
x_653 = lean_unbox(x_602);
|
||||
lean_dec(x_602);
|
||||
x_546 = x_653;
|
||||
x_547 = x_649;
|
||||
x_546 = x_649;
|
||||
x_547 = x_653;
|
||||
x_548 = x_651;
|
||||
x_549 = x_647;
|
||||
goto block_589;
|
||||
|
|
@ -3980,8 +3980,8 @@ lean_dec(x_650);
|
|||
lean_dec(x_596);
|
||||
x_655 = lean_unbox(x_602);
|
||||
lean_dec(x_602);
|
||||
x_546 = x_655;
|
||||
x_547 = x_649;
|
||||
x_546 = x_649;
|
||||
x_547 = x_655;
|
||||
x_548 = x_651;
|
||||
x_549 = x_647;
|
||||
goto block_589;
|
||||
|
|
@ -4000,8 +4000,8 @@ lean_inc(x_659);
|
|||
lean_dec(x_657);
|
||||
x_660 = lean_unbox(x_602);
|
||||
lean_dec(x_602);
|
||||
x_546 = x_660;
|
||||
x_547 = x_649;
|
||||
x_546 = x_649;
|
||||
x_547 = x_660;
|
||||
x_548 = x_658;
|
||||
x_549 = x_659;
|
||||
goto block_589;
|
||||
|
|
@ -4313,7 +4313,7 @@ block_589:
|
|||
uint8_t x_550; uint8_t x_551; lean_object* x_552;
|
||||
x_550 = 0;
|
||||
x_551 = 1;
|
||||
x_552 = l_Lean_Meta_mkLambdaFVars(x_548, x_547, x_550, x_546, x_550, x_546, x_551, x_7, x_8, x_9, x_10, x_549);
|
||||
x_552 = l_Lean_Meta_mkLambdaFVars(x_548, x_546, x_550, x_547, x_550, x_547, x_551, x_7, x_8, x_9, x_10, x_549);
|
||||
if (lean_obj_tag(x_552) == 0)
|
||||
{
|
||||
lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559;
|
||||
|
|
@ -4685,6 +4685,7 @@ return x_14;
|
|||
}
|
||||
}
|
||||
lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Grind_SynthInstance(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_Ext(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -4693,6 +4694,9 @@ _G_initialized = true;
|
|||
res = initialize_Lean_Meta_Tactic_Grind_Types(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Tactic_Grind_SynthInstance(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_instantiateExtTheorem_spec__0___redArg___closed__0 = _init_l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_instantiateExtTheorem_spec__0___redArg___closed__0();
|
||||
lean_mark_persistent(l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_instantiateExtTheorem_spec__0___redArg___closed__0);
|
||||
l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_instantiateExtTheorem_spec__0___redArg___closed__1 = _init_l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_instantiateExtTheorem_spec__0___redArg___closed__1();
|
||||
|
|
|
|||
558
stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c
generated
558
stage0/stdlib/Lean/Meta/Tactic/Grind/ForallProp.c
generated
|
|
@ -23,6 +23,7 @@ static lean_object* l_Lean_Meta_Grind_simpForall___closed__29;
|
|||
lean_object* l_Lean_Meta_Grind_addNewRawFact(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_Meta_Grind_propagateForallPropUp_propagateImpliesUp___closed__13;
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__1;
|
||||
lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__16;
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateExistsDown___closed__5;
|
||||
|
|
@ -43,10 +44,8 @@ uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*);
|
|||
uint8_t l_Lean_Expr_isApp(lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_reportIssue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_sort___override(lean_object*);
|
||||
lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__19;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_addLocalEMatchTheorems___closed__4;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___closed__4;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___closed__10;
|
||||
|
|
@ -56,6 +55,7 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_G
|
|||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__3;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___closed__11;
|
||||
lean_object* l_Lean_Expr_bvar___override(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
lean_object* l_Lean_Meta_Grind_pushEqCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_registerBuiltinDownwardPropagator(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateExistsDown___closed__0;
|
||||
|
|
@ -84,14 +84,12 @@ lean_object* l_Lean_Meta_Grind_activateTheorem(lean_object*, lean_object*, lean_
|
|||
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__3;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___closed__2;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__14;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__1;
|
||||
lean_object* l_Lean_Meta_withLocalDeclD___at___Lean_Meta_Simp_simpProj_spec__1___redArg(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_Meta_Grind_simpForall___closed__11;
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__9;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___closed__1;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_Meta_Grind_mkEMatchTheoremWithKind_x27_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_simpExists___redArg___closed__8;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___closed__7;
|
||||
|
|
@ -115,12 +113,14 @@ static lean_object* l_Lean_Meta_Grind_simpExists___redArg___closed__12;
|
|||
static lean_object* l_Lean_Meta_Grind_simpExists___redArg___closed__5;
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__17;
|
||||
lean_object* l_Lean_Meta_Grind_eqResolution(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__1;
|
||||
lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_forallE___override(lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpForall_declare__27____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_4646_(lean_object*);
|
||||
uint8_t l_Lean_Expr_hasLooseBVars(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown___regBuiltin_Lean_Meta_Grind_propagateExistsDown_declare__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_2940_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__31;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__7;
|
||||
|
|
@ -130,13 +130,11 @@ static lean_object* l_Lean_Meta_Grind_simpForall___closed__4;
|
|||
static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__12;
|
||||
lean_object* l_Lean_Meta_Grind_pushEqTrue(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
lean_object* l_Lean_Meta_Grind_isEqFalse___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpForall_declare__27___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_4646_;
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__10;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpForall_declare__27___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_4646_;
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__3;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
lean_object* l_Lean_Meta_Grind_getGeneration___redArg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_mkNot(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__11;
|
||||
|
|
@ -156,6 +154,7 @@ lean_object* l_Lean_MessageData_ofExpr(lean_object*);
|
|||
static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateExistsDown(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_mkOfEqFalseCore(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
lean_object* l_Lean_mkOr(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_getAppNumArgs(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__6;
|
||||
|
|
@ -176,6 +175,7 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_mkApp3(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_mkEqFalseProof(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_ForallProp_0__Lean_Meta_Grind_isForallOrNot_x3f___closed__1;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__4;
|
||||
lean_object* l_Lean_indentExpr(lean_object*);
|
||||
|
|
@ -191,17 +191,17 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0__Lean_M
|
|||
lean_object* l_Lean_Meta_Grind_alreadyInternalized___redArg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__14;
|
||||
lean_object* l_Lean_Meta_Grind_getSymbolPriorities___redArg(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
lean_object* l_Lean_Meta_Grind_mkEqTrueProof(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_Meta_Grind_simpExists___redArg___closed__2;
|
||||
lean_object* l_Lean_Meta_mkOfEqTrueCore(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_(lean_object*);
|
||||
lean_object* l_Lean_isTracingEnabledFor___at___Lean_Meta_Grind_updateLastTag_spec__0___redArg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_simpExists___redArg___closed__10;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__9;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__2;
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__26;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___closed__9;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropUp___closed__13;
|
||||
lean_object* l_Lean_Meta_Grind_isEqTrue___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -219,6 +219,7 @@ static lean_object* l_Lean_Meta_Grind_propagateExistsDown___closed__2;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp(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_Lean_Meta_Grind_propagateForallPropUp(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_ForallProp_0__Lean_Meta_Grind_isEqTrueHyp_x3f___closed__0;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_(lean_object*);
|
||||
lean_object* l_Lean_Expr_headBeta(lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_preprocess(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_ForallProp_0__Lean_Meta_Grind_isForallOrNot_x3f___boxed(lean_object*);
|
||||
|
|
@ -236,7 +237,6 @@ lean_object* l_Lean_Expr_lam___override(lean_object*, lean_object*, lean_object*
|
|||
lean_object* l_Lean_mkApp5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_simpExists___redArg___closed__11;
|
||||
static lean_object* l_Lean_Meta_Grind_simpForall___closed__32;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateForallPropDown___closed__11;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpForall_declare__27___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_4646_;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpForall_declare__27___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_4646_;
|
||||
|
|
@ -9594,29 +9594,29 @@ else
|
|||
{
|
||||
if (lean_obj_tag(x_17) == 6)
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_95; lean_object* x_96; uint8_t x_97; uint8_t x_124; uint8_t x_154;
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_94; lean_object* x_95; uint8_t x_96; uint8_t x_123; uint8_t x_153;
|
||||
x_24 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_17, 2);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_17);
|
||||
x_154 = l_Lean_Expr_isApp(x_25);
|
||||
if (x_154 == 0)
|
||||
x_153 = l_Lean_Expr_isApp(x_25);
|
||||
if (x_153 == 0)
|
||||
{
|
||||
x_124 = x_154;
|
||||
goto block_153;
|
||||
x_123 = x_153;
|
||||
goto block_152;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_155; lean_object* x_156; uint8_t x_157;
|
||||
x_155 = l_Lean_Expr_getAppNumArgs(x_25);
|
||||
x_156 = lean_unsigned_to_nat(2u);
|
||||
x_157 = lean_nat_dec_eq(x_155, x_156);
|
||||
lean_dec(x_155);
|
||||
x_124 = x_157;
|
||||
goto block_153;
|
||||
lean_object* x_154; lean_object* x_155; uint8_t x_156;
|
||||
x_154 = l_Lean_Expr_getAppNumArgs(x_25);
|
||||
x_155 = lean_unsigned_to_nat(2u);
|
||||
x_156 = lean_nat_dec_eq(x_154, x_155);
|
||||
lean_dec(x_154);
|
||||
x_123 = x_156;
|
||||
goto block_152;
|
||||
}
|
||||
block_94:
|
||||
block_93:
|
||||
{
|
||||
uint8_t x_31;
|
||||
x_31 = l_Lean_Expr_hasLooseBVars(x_25);
|
||||
|
|
@ -9652,7 +9652,7 @@ x_34 = lean_unbox(x_33);
|
|||
lean_dec(x_33);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41;
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
x_35 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_32);
|
||||
|
|
@ -9663,47 +9663,58 @@ lean_inc(x_36);
|
|||
x_38 = l_Lean_Expr_const___override(x_37, x_36);
|
||||
lean_inc(x_20);
|
||||
x_39 = l_Lean_Expr_app___override(x_38, x_20);
|
||||
x_40 = lean_box(0);
|
||||
x_41 = l_Lean_Meta_trySynthInstance(x_39, x_40, x_26, x_27, x_28, x_29, x_35);
|
||||
x_40 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_39, x_26, x_27, x_28, x_29, x_35);
|
||||
if (lean_obj_tag(x_40) == 0)
|
||||
{
|
||||
lean_object* x_41;
|
||||
x_41 = lean_ctor_get(x_40, 0);
|
||||
lean_inc(x_41);
|
||||
if (lean_obj_tag(x_41) == 0)
|
||||
{
|
||||
lean_object* x_42;
|
||||
x_42 = lean_ctor_get(x_41, 0);
|
||||
lean_dec(x_36);
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_20);
|
||||
x_42 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_42);
|
||||
if (lean_obj_tag(x_42) == 1)
|
||||
lean_dec(x_40);
|
||||
x_11 = x_42;
|
||||
goto block_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_43;
|
||||
x_43 = !lean_is_exclusive(x_41);
|
||||
x_43 = !lean_is_exclusive(x_40);
|
||||
if (x_43 == 0)
|
||||
{
|
||||
lean_object* x_44; uint8_t x_45;
|
||||
x_44 = lean_ctor_get(x_41, 0);
|
||||
x_44 = lean_ctor_get(x_40, 0);
|
||||
lean_dec(x_44);
|
||||
x_45 = !lean_is_exclusive(x_42);
|
||||
x_45 = !lean_is_exclusive(x_41);
|
||||
if (x_45 == 0)
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_46 = lean_ctor_get(x_42, 0);
|
||||
x_46 = lean_ctor_get(x_41, 0);
|
||||
x_47 = l_Lean_Meta_Grind_simpExists___redArg___closed__3;
|
||||
x_48 = l_Lean_Expr_const___override(x_47, x_36);
|
||||
lean_inc(x_25);
|
||||
x_49 = l_Lean_mkApp3(x_48, x_20, x_46, x_25);
|
||||
lean_ctor_set(x_42, 0, x_49);
|
||||
lean_ctor_set(x_41, 0, x_49);
|
||||
x_50 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_50, 0, x_25);
|
||||
lean_ctor_set(x_50, 1, x_42);
|
||||
lean_ctor_set(x_50, 1, x_41);
|
||||
lean_ctor_set_uint8(x_50, sizeof(void*)*2, x_23);
|
||||
x_51 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_41, 0, x_51);
|
||||
return x_41;
|
||||
lean_ctor_set(x_40, 0, x_51);
|
||||
return x_40;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_52 = lean_ctor_get(x_42, 0);
|
||||
x_52 = lean_ctor_get(x_41, 0);
|
||||
lean_inc(x_52);
|
||||
lean_dec(x_42);
|
||||
lean_dec(x_41);
|
||||
x_53 = l_Lean_Meta_Grind_simpExists___redArg___closed__3;
|
||||
x_54 = l_Lean_Expr_const___override(x_53, x_36);
|
||||
lean_inc(x_25);
|
||||
|
|
@ -9716,23 +9727,23 @@ lean_ctor_set(x_57, 1, x_56);
|
|||
lean_ctor_set_uint8(x_57, sizeof(void*)*2, x_23);
|
||||
x_58 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_58, 0, x_57);
|
||||
lean_ctor_set(x_41, 0, x_58);
|
||||
return x_41;
|
||||
lean_ctor_set(x_40, 0, x_58);
|
||||
return x_40;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68;
|
||||
x_59 = lean_ctor_get(x_41, 1);
|
||||
x_59 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_41);
|
||||
x_60 = lean_ctor_get(x_42, 0);
|
||||
lean_dec(x_40);
|
||||
x_60 = lean_ctor_get(x_41, 0);
|
||||
lean_inc(x_60);
|
||||
if (lean_is_exclusive(x_42)) {
|
||||
lean_ctor_release(x_42, 0);
|
||||
x_61 = x_42;
|
||||
if (lean_is_exclusive(x_41)) {
|
||||
lean_ctor_release(x_41, 0);
|
||||
x_61 = x_41;
|
||||
} else {
|
||||
lean_dec_ref(x_42);
|
||||
lean_dec_ref(x_41);
|
||||
x_61 = lean_box(0);
|
||||
}
|
||||
x_62 = l_Lean_Meta_Grind_simpExists___redArg___closed__3;
|
||||
|
|
@ -9757,105 +9768,92 @@ lean_ctor_set(x_68, 1, x_59);
|
|||
return x_68;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_69;
|
||||
lean_dec(x_42);
|
||||
uint8_t x_69;
|
||||
lean_dec(x_36);
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_20);
|
||||
x_69 = lean_ctor_get(x_41, 1);
|
||||
lean_inc(x_69);
|
||||
lean_dec(x_41);
|
||||
x_11 = x_69;
|
||||
goto block_14;
|
||||
}
|
||||
x_69 = !lean_is_exclusive(x_40);
|
||||
if (x_69 == 0)
|
||||
{
|
||||
return x_40;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_70;
|
||||
lean_dec(x_36);
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_20);
|
||||
x_70 = !lean_is_exclusive(x_41);
|
||||
if (x_70 == 0)
|
||||
{
|
||||
return x_41;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_71; lean_object* x_72; lean_object* x_73;
|
||||
x_71 = lean_ctor_get(x_41, 0);
|
||||
x_72 = lean_ctor_get(x_41, 1);
|
||||
lean_inc(x_72);
|
||||
lean_object* x_70; lean_object* x_71; lean_object* x_72;
|
||||
x_70 = lean_ctor_get(x_40, 0);
|
||||
x_71 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_71);
|
||||
lean_dec(x_41);
|
||||
x_73 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_73, 0, x_71);
|
||||
lean_ctor_set(x_73, 1, x_72);
|
||||
return x_73;
|
||||
lean_inc(x_70);
|
||||
lean_dec(x_40);
|
||||
x_72 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_72, 0, x_70);
|
||||
lean_ctor_set(x_72, 1, x_71);
|
||||
return x_72;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_74;
|
||||
uint8_t x_73;
|
||||
lean_dec(x_29);
|
||||
lean_dec(x_28);
|
||||
lean_dec(x_27);
|
||||
lean_dec(x_26);
|
||||
lean_dec(x_21);
|
||||
x_74 = !lean_is_exclusive(x_32);
|
||||
if (x_74 == 0)
|
||||
x_73 = !lean_is_exclusive(x_32);
|
||||
if (x_73 == 0)
|
||||
{
|
||||
lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81;
|
||||
x_75 = lean_ctor_get(x_32, 0);
|
||||
lean_dec(x_75);
|
||||
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80;
|
||||
x_74 = lean_ctor_get(x_32, 0);
|
||||
lean_dec(x_74);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_20);
|
||||
x_76 = l_Lean_mkAnd(x_20, x_25);
|
||||
x_77 = l_Lean_Meta_Grind_simpExists___redArg___closed__6;
|
||||
x_78 = l_Lean_mkAppB(x_77, x_20, x_25);
|
||||
x_79 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_79, 0, x_78);
|
||||
x_80 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_80, 0, x_76);
|
||||
lean_ctor_set(x_80, 1, x_79);
|
||||
lean_ctor_set_uint8(x_80, sizeof(void*)*2, x_23);
|
||||
x_81 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_81, 0, x_80);
|
||||
lean_ctor_set(x_32, 0, x_81);
|
||||
x_75 = l_Lean_mkAnd(x_20, x_25);
|
||||
x_76 = l_Lean_Meta_Grind_simpExists___redArg___closed__6;
|
||||
x_77 = l_Lean_mkAppB(x_76, x_20, x_25);
|
||||
x_78 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_78, 0, x_77);
|
||||
x_79 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_79, 0, x_75);
|
||||
lean_ctor_set(x_79, 1, x_78);
|
||||
lean_ctor_set_uint8(x_79, sizeof(void*)*2, x_23);
|
||||
x_80 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_80, 0, x_79);
|
||||
lean_ctor_set(x_32, 0, x_80);
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
x_82 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_82);
|
||||
lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
x_81 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_81);
|
||||
lean_dec(x_32);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_20);
|
||||
x_83 = l_Lean_mkAnd(x_20, x_25);
|
||||
x_84 = l_Lean_Meta_Grind_simpExists___redArg___closed__6;
|
||||
x_85 = l_Lean_mkAppB(x_84, x_20, x_25);
|
||||
x_86 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_86, 0, x_85);
|
||||
x_87 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_87, 0, x_83);
|
||||
lean_ctor_set(x_87, 1, x_86);
|
||||
lean_ctor_set_uint8(x_87, sizeof(void*)*2, x_23);
|
||||
x_88 = lean_alloc_ctor(1, 1, 0);
|
||||
x_82 = l_Lean_mkAnd(x_20, x_25);
|
||||
x_83 = l_Lean_Meta_Grind_simpExists___redArg___closed__6;
|
||||
x_84 = l_Lean_mkAppB(x_83, x_20, x_25);
|
||||
x_85 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_85, 0, x_84);
|
||||
x_86 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_86, 0, x_82);
|
||||
lean_ctor_set(x_86, 1, x_85);
|
||||
lean_ctor_set_uint8(x_86, sizeof(void*)*2, x_23);
|
||||
x_87 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_87, 0, x_86);
|
||||
x_88 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_87);
|
||||
x_89 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_88);
|
||||
lean_ctor_set(x_89, 1, x_82);
|
||||
return x_89;
|
||||
lean_ctor_set(x_88, 1, x_81);
|
||||
return x_88;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_90;
|
||||
uint8_t x_89;
|
||||
lean_dec(x_29);
|
||||
lean_dec(x_28);
|
||||
lean_dec(x_27);
|
||||
|
|
@ -9863,23 +9861,23 @@ lean_dec(x_26);
|
|||
lean_dec(x_25);
|
||||
lean_dec(x_21);
|
||||
lean_dec(x_20);
|
||||
x_90 = !lean_is_exclusive(x_32);
|
||||
if (x_90 == 0)
|
||||
x_89 = !lean_is_exclusive(x_32);
|
||||
if (x_89 == 0)
|
||||
{
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_91; lean_object* x_92; lean_object* x_93;
|
||||
x_91 = lean_ctor_get(x_32, 0);
|
||||
x_92 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_92);
|
||||
lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
x_90 = lean_ctor_get(x_32, 0);
|
||||
x_91 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_91);
|
||||
lean_inc(x_90);
|
||||
lean_dec(x_32);
|
||||
x_93 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_93, 0, x_91);
|
||||
lean_ctor_set(x_93, 1, x_92);
|
||||
return x_93;
|
||||
x_92 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_92, 0, x_90);
|
||||
lean_ctor_set(x_92, 1, x_91);
|
||||
return x_92;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -9897,114 +9895,114 @@ x_11 = x_30;
|
|||
goto block_14;
|
||||
}
|
||||
}
|
||||
block_123:
|
||||
block_122:
|
||||
{
|
||||
if (x_96 == 0)
|
||||
{
|
||||
uint8_t x_97;
|
||||
x_97 = l_Lean_Expr_hasLooseBVars(x_94);
|
||||
if (x_97 == 0)
|
||||
{
|
||||
uint8_t x_98;
|
||||
x_98 = l_Lean_Expr_hasLooseBVars(x_95);
|
||||
if (x_98 == 0)
|
||||
{
|
||||
if (x_23 == 0)
|
||||
{
|
||||
lean_dec(x_96);
|
||||
lean_dec(x_95);
|
||||
lean_dec(x_94);
|
||||
lean_dec(x_24);
|
||||
x_26 = x_2;
|
||||
x_27 = x_3;
|
||||
x_28 = x_4;
|
||||
x_29 = x_5;
|
||||
x_30 = x_6;
|
||||
goto block_94;
|
||||
goto block_93;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110;
|
||||
uint8_t x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109;
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_99 = 0;
|
||||
x_98 = 0;
|
||||
lean_inc(x_20);
|
||||
x_100 = l_Lean_Expr_lam___override(x_24, x_20, x_96, x_99);
|
||||
lean_inc(x_100);
|
||||
x_99 = l_Lean_Expr_lam___override(x_24, x_20, x_95, x_98);
|
||||
lean_inc(x_99);
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_21);
|
||||
x_101 = l_Lean_mkAppB(x_21, x_20, x_100);
|
||||
lean_inc(x_95);
|
||||
x_102 = l_Lean_mkAnd(x_101, x_95);
|
||||
x_103 = l_Lean_Expr_constLevels_x21(x_21);
|
||||
x_100 = l_Lean_mkAppB(x_21, x_20, x_99);
|
||||
lean_inc(x_94);
|
||||
x_101 = l_Lean_mkAnd(x_100, x_94);
|
||||
x_102 = l_Lean_Expr_constLevels_x21(x_21);
|
||||
lean_dec(x_21);
|
||||
x_104 = l_Lean_Meta_Grind_simpExists___redArg___closed__8;
|
||||
x_105 = l_Lean_Expr_const___override(x_104, x_103);
|
||||
x_106 = l_Lean_mkApp3(x_105, x_20, x_100, x_95);
|
||||
x_107 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_107, 0, x_106);
|
||||
x_108 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_108, 0, x_102);
|
||||
lean_ctor_set(x_108, 1, x_107);
|
||||
lean_ctor_set_uint8(x_108, sizeof(void*)*2, x_23);
|
||||
x_109 = lean_alloc_ctor(1, 1, 0);
|
||||
x_103 = l_Lean_Meta_Grind_simpExists___redArg___closed__8;
|
||||
x_104 = l_Lean_Expr_const___override(x_103, x_102);
|
||||
x_105 = l_Lean_mkApp3(x_104, x_20, x_99, x_94);
|
||||
x_106 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_106, 0, x_105);
|
||||
x_107 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_107, 0, x_101);
|
||||
lean_ctor_set(x_107, 1, x_106);
|
||||
lean_ctor_set_uint8(x_107, sizeof(void*)*2, x_23);
|
||||
x_108 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_108, 0, x_107);
|
||||
x_109 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_109, 0, x_108);
|
||||
x_110 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_110, 0, x_109);
|
||||
lean_ctor_set(x_110, 1, x_6);
|
||||
return x_110;
|
||||
lean_ctor_set(x_109, 1, x_6);
|
||||
return x_109;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_96);
|
||||
lean_dec(x_95);
|
||||
lean_dec(x_94);
|
||||
lean_dec(x_24);
|
||||
x_26 = x_2;
|
||||
x_27 = x_3;
|
||||
x_28 = x_4;
|
||||
x_29 = x_5;
|
||||
x_30 = x_6;
|
||||
goto block_94;
|
||||
goto block_93;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122;
|
||||
uint8_t x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121;
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_111 = 0;
|
||||
x_110 = 0;
|
||||
lean_inc(x_20);
|
||||
x_112 = l_Lean_Expr_lam___override(x_24, x_20, x_95, x_111);
|
||||
lean_inc(x_112);
|
||||
x_111 = l_Lean_Expr_lam___override(x_24, x_20, x_94, x_110);
|
||||
lean_inc(x_111);
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_21);
|
||||
x_113 = l_Lean_mkAppB(x_21, x_20, x_112);
|
||||
lean_inc(x_96);
|
||||
x_114 = l_Lean_mkAnd(x_96, x_113);
|
||||
x_115 = l_Lean_Expr_constLevels_x21(x_21);
|
||||
x_112 = l_Lean_mkAppB(x_21, x_20, x_111);
|
||||
lean_inc(x_95);
|
||||
x_113 = l_Lean_mkAnd(x_95, x_112);
|
||||
x_114 = l_Lean_Expr_constLevels_x21(x_21);
|
||||
lean_dec(x_21);
|
||||
x_116 = l_Lean_Meta_Grind_simpExists___redArg___closed__10;
|
||||
x_117 = l_Lean_Expr_const___override(x_116, x_115);
|
||||
x_118 = l_Lean_mkApp3(x_117, x_20, x_112, x_96);
|
||||
x_119 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_119, 0, x_118);
|
||||
x_120 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_120, 0, x_114);
|
||||
lean_ctor_set(x_120, 1, x_119);
|
||||
lean_ctor_set_uint8(x_120, sizeof(void*)*2, x_23);
|
||||
x_121 = lean_alloc_ctor(1, 1, 0);
|
||||
x_115 = l_Lean_Meta_Grind_simpExists___redArg___closed__10;
|
||||
x_116 = l_Lean_Expr_const___override(x_115, x_114);
|
||||
x_117 = l_Lean_mkApp3(x_116, x_20, x_111, x_95);
|
||||
x_118 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_118, 0, x_117);
|
||||
x_119 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_119, 0, x_113);
|
||||
lean_ctor_set(x_119, 1, x_118);
|
||||
lean_ctor_set_uint8(x_119, sizeof(void*)*2, x_23);
|
||||
x_120 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_120, 0, x_119);
|
||||
x_121 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_121, 0, x_120);
|
||||
x_122 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_122, 0, x_121);
|
||||
lean_ctor_set(x_122, 1, x_6);
|
||||
return x_122;
|
||||
lean_ctor_set(x_121, 1, x_6);
|
||||
return x_121;
|
||||
}
|
||||
}
|
||||
block_153:
|
||||
block_152:
|
||||
{
|
||||
if (x_124 == 0)
|
||||
if (x_123 == 0)
|
||||
{
|
||||
lean_dec(x_24);
|
||||
x_26 = x_2;
|
||||
|
|
@ -10012,110 +10010,110 @@ x_27 = x_3;
|
|||
x_28 = x_4;
|
||||
x_29 = x_5;
|
||||
x_30 = x_6;
|
||||
goto block_94;
|
||||
goto block_93;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_125; lean_object* x_126;
|
||||
x_125 = l_Lean_Expr_appFn_x21(x_25);
|
||||
x_126 = l_Lean_Expr_appFn_x21(x_125);
|
||||
if (lean_obj_tag(x_126) == 4)
|
||||
lean_object* x_124; lean_object* x_125;
|
||||
x_124 = l_Lean_Expr_appFn_x21(x_25);
|
||||
x_125 = l_Lean_Expr_appFn_x21(x_124);
|
||||
if (lean_obj_tag(x_125) == 4)
|
||||
{
|
||||
lean_object* x_127; lean_object* x_128; uint8_t x_129;
|
||||
x_127 = lean_ctor_get(x_126, 0);
|
||||
lean_inc(x_127);
|
||||
lean_object* x_126; lean_object* x_127; uint8_t x_128;
|
||||
x_126 = lean_ctor_get(x_125, 0);
|
||||
lean_inc(x_126);
|
||||
lean_dec(x_125);
|
||||
x_127 = l_Lean_Meta_Grind_simpForall___closed__2;
|
||||
x_128 = lean_name_eq(x_126, x_127);
|
||||
if (x_128 == 0)
|
||||
{
|
||||
lean_object* x_129; uint8_t x_130;
|
||||
x_129 = l_Lean_Meta_Grind_simpForall___closed__4;
|
||||
x_130 = lean_name_eq(x_126, x_129);
|
||||
lean_dec(x_126);
|
||||
x_128 = l_Lean_Meta_Grind_simpForall___closed__2;
|
||||
x_129 = lean_name_eq(x_127, x_128);
|
||||
if (x_129 == 0)
|
||||
if (x_130 == 0)
|
||||
{
|
||||
lean_object* x_130; uint8_t x_131;
|
||||
x_130 = l_Lean_Meta_Grind_simpForall___closed__4;
|
||||
x_131 = lean_name_eq(x_127, x_130);
|
||||
lean_dec(x_127);
|
||||
if (x_131 == 0)
|
||||
{
|
||||
lean_dec(x_125);
|
||||
lean_dec(x_124);
|
||||
lean_dec(x_24);
|
||||
x_26 = x_2;
|
||||
x_27 = x_3;
|
||||
x_28 = x_4;
|
||||
x_29 = x_5;
|
||||
x_30 = x_6;
|
||||
goto block_94;
|
||||
goto block_93;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_132; lean_object* x_133; uint8_t x_134;
|
||||
x_132 = l_Lean_Expr_appArg_x21(x_125);
|
||||
lean_dec(x_125);
|
||||
x_133 = l_Lean_Expr_appArg_x21(x_25);
|
||||
x_134 = l_Lean_Expr_hasLooseBVars(x_132);
|
||||
if (x_134 == 0)
|
||||
lean_object* x_131; lean_object* x_132; uint8_t x_133;
|
||||
x_131 = l_Lean_Expr_appArg_x21(x_124);
|
||||
lean_dec(x_124);
|
||||
x_132 = l_Lean_Expr_appArg_x21(x_25);
|
||||
x_133 = l_Lean_Expr_hasLooseBVars(x_131);
|
||||
if (x_133 == 0)
|
||||
{
|
||||
x_95 = x_133;
|
||||
x_96 = x_132;
|
||||
x_97 = x_23;
|
||||
goto block_123;
|
||||
x_94 = x_132;
|
||||
x_95 = x_131;
|
||||
x_96 = x_23;
|
||||
goto block_122;
|
||||
}
|
||||
else
|
||||
{
|
||||
x_95 = x_133;
|
||||
x_96 = x_132;
|
||||
x_97 = x_129;
|
||||
goto block_123;
|
||||
x_94 = x_132;
|
||||
x_95 = x_131;
|
||||
x_96 = x_128;
|
||||
goto block_122;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_135; lean_object* x_136; uint8_t x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150;
|
||||
lean_dec(x_127);
|
||||
lean_object* x_134; lean_object* x_135; uint8_t x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149;
|
||||
lean_dec(x_126);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_135 = l_Lean_Expr_appArg_x21(x_125);
|
||||
lean_dec(x_125);
|
||||
x_136 = l_Lean_Expr_appArg_x21(x_25);
|
||||
x_134 = l_Lean_Expr_appArg_x21(x_124);
|
||||
lean_dec(x_124);
|
||||
x_135 = l_Lean_Expr_appArg_x21(x_25);
|
||||
lean_dec(x_25);
|
||||
x_137 = 0;
|
||||
x_136 = 0;
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_24);
|
||||
x_138 = l_Lean_Expr_lam___override(x_24, x_20, x_135, x_137);
|
||||
x_137 = l_Lean_Expr_lam___override(x_24, x_20, x_134, x_136);
|
||||
lean_inc(x_20);
|
||||
x_139 = l_Lean_Expr_lam___override(x_24, x_20, x_136, x_137);
|
||||
x_140 = l_Lean_Expr_constLevels_x21(x_21);
|
||||
lean_inc(x_138);
|
||||
x_138 = l_Lean_Expr_lam___override(x_24, x_20, x_135, x_136);
|
||||
x_139 = l_Lean_Expr_constLevels_x21(x_21);
|
||||
lean_inc(x_137);
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_21);
|
||||
x_141 = l_Lean_mkAppB(x_21, x_20, x_138);
|
||||
lean_inc(x_139);
|
||||
x_140 = l_Lean_mkAppB(x_21, x_20, x_137);
|
||||
lean_inc(x_138);
|
||||
lean_inc(x_20);
|
||||
x_142 = l_Lean_mkAppB(x_21, x_20, x_139);
|
||||
x_143 = l_Lean_mkOr(x_141, x_142);
|
||||
x_144 = l_Lean_Meta_Grind_simpExists___redArg___closed__12;
|
||||
x_145 = l_Lean_Expr_const___override(x_144, x_140);
|
||||
x_146 = l_Lean_mkApp3(x_145, x_20, x_138, x_139);
|
||||
x_147 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_147, 0, x_146);
|
||||
x_148 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_148, 0, x_143);
|
||||
lean_ctor_set(x_148, 1, x_147);
|
||||
lean_ctor_set_uint8(x_148, sizeof(void*)*2, x_23);
|
||||
x_149 = lean_alloc_ctor(1, 1, 0);
|
||||
x_141 = l_Lean_mkAppB(x_21, x_20, x_138);
|
||||
x_142 = l_Lean_mkOr(x_140, x_141);
|
||||
x_143 = l_Lean_Meta_Grind_simpExists___redArg___closed__12;
|
||||
x_144 = l_Lean_Expr_const___override(x_143, x_139);
|
||||
x_145 = l_Lean_mkApp3(x_144, x_20, x_137, x_138);
|
||||
x_146 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_146, 0, x_145);
|
||||
x_147 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_147, 0, x_142);
|
||||
lean_ctor_set(x_147, 1, x_146);
|
||||
lean_ctor_set_uint8(x_147, sizeof(void*)*2, x_23);
|
||||
x_148 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_148, 0, x_147);
|
||||
x_149 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_149, 0, x_148);
|
||||
x_150 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_150, 0, x_149);
|
||||
lean_ctor_set(x_150, 1, x_6);
|
||||
return x_150;
|
||||
lean_ctor_set(x_149, 1, x_6);
|
||||
return x_149;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_151; lean_object* x_152;
|
||||
lean_dec(x_126);
|
||||
lean_object* x_150; lean_object* x_151;
|
||||
lean_dec(x_125);
|
||||
lean_dec(x_124);
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_24);
|
||||
lean_dec(x_21);
|
||||
|
|
@ -10124,18 +10122,18 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_151 = l_Lean_Meta_Grind_simpForall___closed__0;
|
||||
x_152 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_152, 0, x_151);
|
||||
lean_ctor_set(x_152, 1, x_6);
|
||||
return x_152;
|
||||
x_150 = l_Lean_Meta_Grind_simpForall___closed__0;
|
||||
x_151 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_151, 0, x_150);
|
||||
lean_ctor_set(x_151, 1, x_6);
|
||||
return x_151;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_158; lean_object* x_159;
|
||||
lean_object* x_157; lean_object* x_158;
|
||||
lean_dec(x_21);
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_17);
|
||||
|
|
@ -10143,11 +10141,11 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_158 = l_Lean_Meta_Grind_simpForall___closed__0;
|
||||
x_159 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_159, 0, x_158);
|
||||
lean_ctor_set(x_159, 1, x_6);
|
||||
return x_159;
|
||||
x_157 = l_Lean_Meta_Grind_simpForall___closed__0;
|
||||
x_158 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_158, 0, x_157);
|
||||
lean_ctor_set(x_158, 1, x_6);
|
||||
return x_158;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -10191,7 +10189,7 @@ lean_dec(x_2);
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -10199,11 +10197,11 @@ x_1 = lean_mk_string_unchecked("simpExists", 10, 10);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
x_2 = l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___closed__1;
|
||||
x_3 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpForall_declare__27___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_4646_;
|
||||
x_4 = l_Lean_Meta_Grind_propagateForallPropUp_propagateImpliesUp___closed__0;
|
||||
|
|
@ -10211,7 +10209,7 @@ x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -10223,7 +10221,7 @@ lean_ctor_set(x_3, 1, x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
|
|
@ -10232,42 +10230,42 @@ x_2 = lean_mk_empty_array_with_capacity(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(3);
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(3);
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
x_3 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
x_2 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
x_3 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_simpExists___boxed), 9, 0);
|
||||
x_5 = l_Lean_Meta_Simp_registerBuiltinSimproc(x_2, x_3, x_4, x_1);
|
||||
return x_5;
|
||||
|
|
@ -10288,7 +10286,7 @@ lean_inc(x_8);
|
|||
x_9 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_10 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_;
|
||||
x_10 = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_;
|
||||
x_11 = l_Lean_Meta_Simp_Simprocs_add(x_8, x_10, x_6, x_2, x_3, x_9);
|
||||
return x_11;
|
||||
}
|
||||
|
|
@ -10589,21 +10587,21 @@ l_Lean_Meta_Grind_simpExists___redArg___closed__11 = _init_l_Lean_Meta_Grind_sim
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_simpExists___redArg___closed__11);
|
||||
l_Lean_Meta_Grind_simpExists___redArg___closed__12 = _init_l_Lean_Meta_Grind_simpExists___redArg___closed__12();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_simpExists___redArg___closed__12);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_);
|
||||
if (builtin) {res = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5401_(lean_io_mk_world());
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__0____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__1____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__2____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__3____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__4____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__5____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_);
|
||||
l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_ = _init_l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32___closed__6____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_);
|
||||
if (builtin) {res = l___private_Lean_Meta_Tactic_Grind_ForallProp_0____regBuiltin_Lean_Meta_Grind_simpExists_declare__32____x40_Lean_Meta_Tactic_Grind_ForallProp___hyg_5402_(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));
|
||||
|
|
|
|||
2867
stage0/stdlib/Lean/Meta/Tactic/Grind/LawfulEqCmp.c
generated
2867
stage0/stdlib/Lean/Meta/Tactic/Grind/LawfulEqCmp.c
generated
File diff suppressed because it is too large
Load diff
6
stage0/stdlib/Lean/Meta/Tactic/Grind/Lookahead.c
generated
6
stage0/stdlib/Lean/Meta/Tactic/Grind/Lookahead.c
generated
|
|
@ -22,6 +22,7 @@ lean_object* l_Lean_Meta_Grind_splitNext(lean_object*, lean_object*, lean_object
|
|||
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Lookahead_0__Lean_Meta_Grind_tryLookahead___closed__10;
|
||||
lean_object* l_Lean_MVarId_withContext___at___Lean_Meta_Grind_Goal_checkInvariants_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instantiateMVars___at___Lean_Meta_Grind_Arith_getIsCharInst_x3f_spec__0___redArg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_getFalseExpr___redArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withoutModifyingMCtx___at_____private_Lean_Meta_Tactic_Grind_Lookahead_0__Lean_Meta_Grind_tryLookahead_spec__0(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_Lookahead_0__Lean_Meta_Grind_tryLookahead___closed__5;
|
||||
|
|
@ -35,7 +36,6 @@ lean_object* l_Lean_Meta_Grind_getConfig___redArg(lean_object*, lean_object*);
|
|||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Lookahead_0__Lean_Meta_Grind_tryLookahead___closed__12;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Lookahead_0__Lean_Meta_Grind_tryLookahead___closed__3;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Lookahead_0__Lean_Meta_Grind_tryLookahead___closed__11;
|
||||
lean_object* l_Lean_instantiateMVars___at___Lean_Meta_Grind_preprocess_spec__0___redArg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Lookahead_0__Lean_Meta_Grind_tryLookahead___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Lookahead_0__Lean_Meta_Grind_tryLookahead___closed__8;
|
||||
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -2754,7 +2754,7 @@ lean_object* x_59; lean_object* x_60; uint8_t x_61;
|
|||
x_59 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_49);
|
||||
x_60 = l_Lean_instantiateMVars___at___Lean_Meta_Grind_preprocess_spec__0___redArg(x_38, x_23, x_59);
|
||||
x_60 = l_Lean_instantiateMVars___at___Lean_Meta_Grind_Arith_getIsCharInst_x3f_spec__0___redArg(x_38, x_23, x_59);
|
||||
lean_dec(x_23);
|
||||
x_61 = !lean_is_exclusive(x_60);
|
||||
if (x_61 == 0)
|
||||
|
|
@ -2887,7 +2887,7 @@ lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean
|
|||
x_88 = lean_ctor_get(x_80, 1);
|
||||
lean_inc(x_88);
|
||||
lean_dec(x_80);
|
||||
x_89 = l_Lean_instantiateMVars___at___Lean_Meta_Grind_preprocess_spec__0___redArg(x_38, x_23, x_88);
|
||||
x_89 = l_Lean_instantiateMVars___at___Lean_Meta_Grind_Arith_getIsCharInst_x3f_spec__0___redArg(x_38, x_23, x_88);
|
||||
lean_dec(x_23);
|
||||
x_90 = lean_ctor_get(x_89, 0);
|
||||
lean_inc(x_90);
|
||||
|
|
|
|||
74
stage0/stdlib/Lean/Meta/Tactic/Grind/Parser.c
generated
74
stage0/stdlib/Lean/Meta/Tactic/Grind/Parser.c
generated
|
|
@ -50,6 +50,7 @@ static lean_object* l_Lean_Parser_Command_initGrindNorm_parenthesizer___closed__
|
|||
LEAN_EXPORT lean_object* l_Lean_Parser_Command_grindPattern_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Parser_Command_initGrindNorm_formatter___closed__3;
|
||||
lean_object* l_Lean_Parser_mkAntiquot_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern_parenthesizer___closed__9;
|
||||
static lean_object* l_Lean_Parser_Command_initGrindNorm___closed__9;
|
||||
static lean_object* l_Lean_Parser_Command_initGrindNorm_formatter___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_parenthesizer__9(lean_object*);
|
||||
|
|
@ -64,6 +65,7 @@ extern lean_object* l_Lean_PrettyPrinter_parenthesizerAttribute;
|
|||
static lean_object* l_Lean_Parser_Command_grindPattern___closed__17;
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern___closed__11;
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern_formatter___closed__6;
|
||||
extern lean_object* l_Lean_Parser_Term_attrKind;
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_sepBy1(lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
|
|
@ -83,6 +85,7 @@ static lean_object* l_Lean_Parser_Command_initGrindNorm_formatter___closed__0;
|
|||
static lean_object* l_Lean_Parser_Command_grindPattern___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Command_initGrindNorm_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_darrow_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_attrKind_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Command_initGrindNorm___regBuiltin_Lean_Parser_Command_initGrindNorm_parenthesizer__9(lean_object*);
|
||||
lean_object* l_Lean_Parser_many_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Parser_Command_initGrindNorm___closed__4;
|
||||
|
|
@ -92,6 +95,7 @@ LEAN_EXPORT lean_object* l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Pa
|
|||
lean_object* l_Lean_Parser_andthen(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Command_grindPattern_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_ident_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern_formatter___closed__9;
|
||||
static lean_object* l_Lean_Parser_Command_initGrindNorm___regBuiltin_Lean_Parser_Command_initGrindNorm_formatter__5___closed__0;
|
||||
lean_object* l_Lean_Parser_many(lean_object*);
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_formatter__5___closed__1;
|
||||
|
|
@ -127,12 +131,14 @@ extern lean_object* l_Lean_PrettyPrinter_formatterAttribute;
|
|||
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Parser_Command_initGrindNorm_parenthesizer___closed__4;
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern_parenthesizer___closed__0;
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern___closed__18;
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern___closed__14;
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern_formatter___closed__3;
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern_parenthesizer___closed__3;
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern_formatter___closed__0;
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern_formatter___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_formatter__5(lean_object*);
|
||||
lean_object* l_Lean_Parser_Term_attrKind_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Parser_Command_grindPattern_parenthesizer___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Command_initGrindNorm___regBuiltin_Lean_Parser_Command_initGrindNorm_formatter__5(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Parser_Command_initGrindNorm___regBuiltin_Lean_Parser_Command_initGrindNorm__1(lean_object*);
|
||||
|
|
@ -283,22 +289,22 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Parser_Command_grindPattern___closed__15() {
|
||||
_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;
|
||||
x_1 = l_Lean_Parser_Command_grindPattern___closed__14;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Command_grindPattern___closed__4;
|
||||
x_4 = l_Lean_Parser_leadingNode(x_3, x_2, x_1);
|
||||
return x_4;
|
||||
x_2 = l_Lean_Parser_Term_attrKind;
|
||||
x_3 = l_Lean_Parser_andthen(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_grindPattern___closed__16() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Command_grindPattern___closed__15;
|
||||
x_2 = l_Lean_Parser_Command_grindPattern___closed__5;
|
||||
x_3 = l_Lean_Parser_withAntiquot(x_2, x_1);
|
||||
return x_3;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Command_grindPattern___closed__4;
|
||||
x_4 = l_Lean_Parser_leadingNode(x_3, x_2, x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_grindPattern___closed__17() {
|
||||
|
|
@ -306,6 +312,16 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_grindPattern___closed__16;
|
||||
x_2 = l_Lean_Parser_Command_grindPattern___closed__5;
|
||||
x_3 = l_Lean_Parser_withAntiquot(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_grindPattern___closed__18() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_grindPattern___closed__17;
|
||||
x_2 = l_Lean_Parser_Command_grindPattern___closed__4;
|
||||
x_3 = l_Lean_Parser_withCache(x_2, x_1);
|
||||
return x_3;
|
||||
|
|
@ -315,7 +331,7 @@ static lean_object* _init_l_Lean_Parser_Command_grindPattern() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_Parser_Command_grindPattern___closed__17;
|
||||
x_1 = l_Lean_Parser_Command_grindPattern___closed__18;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -452,8 +468,20 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Parser_Command_grindPattern_formatter___closed__8() {
|
||||
_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;
|
||||
x_1 = l_Lean_Parser_Command_grindPattern_formatter___closed__7;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Term_attrKind_formatter), 5, 0);
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_2);
|
||||
lean_closure_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_grindPattern_formatter___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Command_grindPattern_formatter___closed__8;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Command_grindPattern___closed__4;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3);
|
||||
|
|
@ -468,7 +496,7 @@ _start:
|
|||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
x_6 = l_Lean_Parser_Command_grindPattern_formatter___closed__0;
|
||||
x_7 = l_Lean_Parser_Command_grindPattern_formatter___closed__8;
|
||||
x_7 = l_Lean_Parser_Command_grindPattern_formatter___closed__9;
|
||||
x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5);
|
||||
return x_8;
|
||||
}
|
||||
|
|
@ -618,8 +646,20 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Parser_Command_grindPattern_parenthesizer___closed__8() {
|
||||
_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;
|
||||
x_1 = l_Lean_Parser_Command_grindPattern_parenthesizer___closed__7;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Term_attrKind_parenthesizer), 5, 0);
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_2);
|
||||
lean_closure_set(x_3, 1, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_grindPattern_parenthesizer___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Command_grindPattern_parenthesizer___closed__8;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Command_grindPattern___closed__4;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer), 8, 3);
|
||||
|
|
@ -634,7 +674,7 @@ _start:
|
|||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
x_6 = l_Lean_Parser_Command_grindPattern_parenthesizer___closed__0;
|
||||
x_7 = l_Lean_Parser_Command_grindPattern_parenthesizer___closed__8;
|
||||
x_7 = l_Lean_Parser_Command_grindPattern_parenthesizer___closed__9;
|
||||
x_8 = l_Lean_PrettyPrinter_Parenthesizer_withAntiquot_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5);
|
||||
return x_8;
|
||||
}
|
||||
|
|
@ -1147,6 +1187,8 @@ l_Lean_Parser_Command_grindPattern___closed__16 = _init_l_Lean_Parser_Command_gr
|
|||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern___closed__16);
|
||||
l_Lean_Parser_Command_grindPattern___closed__17 = _init_l_Lean_Parser_Command_grindPattern___closed__17();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern___closed__17);
|
||||
l_Lean_Parser_Command_grindPattern___closed__18 = _init_l_Lean_Parser_Command_grindPattern___closed__18();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern___closed__18);
|
||||
l_Lean_Parser_Command_grindPattern = _init_l_Lean_Parser_Command_grindPattern();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern);
|
||||
l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern__1___closed__0 = _init_l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern__1___closed__0();
|
||||
|
|
@ -1174,6 +1216,8 @@ l_Lean_Parser_Command_grindPattern_formatter___closed__7 = _init_l_Lean_Parser_C
|
|||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern_formatter___closed__7);
|
||||
l_Lean_Parser_Command_grindPattern_formatter___closed__8 = _init_l_Lean_Parser_Command_grindPattern_formatter___closed__8();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern_formatter___closed__8);
|
||||
l_Lean_Parser_Command_grindPattern_formatter___closed__9 = _init_l_Lean_Parser_Command_grindPattern_formatter___closed__9();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern_formatter___closed__9);
|
||||
l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_formatter__5___closed__0 = _init_l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_formatter__5___closed__0();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_formatter__5___closed__0);
|
||||
l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_formatter__5___closed__1 = _init_l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_formatter__5___closed__1();
|
||||
|
|
@ -1201,6 +1245,8 @@ l_Lean_Parser_Command_grindPattern_parenthesizer___closed__7 = _init_l_Lean_Pars
|
|||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern_parenthesizer___closed__7);
|
||||
l_Lean_Parser_Command_grindPattern_parenthesizer___closed__8 = _init_l_Lean_Parser_Command_grindPattern_parenthesizer___closed__8();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern_parenthesizer___closed__8);
|
||||
l_Lean_Parser_Command_grindPattern_parenthesizer___closed__9 = _init_l_Lean_Parser_Command_grindPattern_parenthesizer___closed__9();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern_parenthesizer___closed__9);
|
||||
l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_parenthesizer__9___closed__0 = _init_l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_parenthesizer__9___closed__0();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_parenthesizer__9___closed__0);
|
||||
l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_parenthesizer__9___closed__1 = _init_l_Lean_Parser_Command_grindPattern___regBuiltin_Lean_Parser_Command_grindPattern_parenthesizer__9___closed__1();
|
||||
|
|
|
|||
286
stage0/stdlib/Lean/Meta/Tactic/Grind/Propagate.c
generated
286
stage0/stdlib/Lean/Meta/Tactic/Grind/Propagate.c
generated
|
|
@ -14,18 +14,16 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolNotDown___regBuiltin_Lean_Meta_Grind_propagateBoolNotDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12724_(lean_object*);
|
||||
lean_object* l_Lean_Meta_Simp_Result_getProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateNotUp___regBuiltin_Lean_Meta_Grind_propagateNotUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_1486_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndUp___closed__10;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqDown___regBuiltin_Lean_Meta_Grind_propagateHEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_5030_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndUp___closed__8;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolNotUp___regBuiltin_Lean_Meta_Grind_propagateBoolNotUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12444_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndUp___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateOrUp___closed__3;
|
||||
lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateOrUp___closed__8;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBEqUp___regBuiltin_Lean_Meta_Grind_propagateBEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_3967_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolAndDown(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_Meta_Grind_propagateBoolAndUp___closed__0;
|
||||
lean_object* l_Lean_Meta_mkNoConfusion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -42,15 +40,13 @@ lean_object* l_Lean_Meta_mkEqTrueCore(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Meta_Grind_propagateBoolAndUp___closed__4;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndUp___closed__5;
|
||||
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolNotDown(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_Meta_Grind_propagateDecideUp___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolOrDown___regBuiltin_Lean_Meta_Grind_propagateBoolOrDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12164_(lean_object*);
|
||||
uint8_t l_Lean_Expr_isApp(lean_object*);
|
||||
lean_object* l_Lean_Level_succ___override(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBEqUp___regBuiltin_Lean_Meta_Grind_propagateBEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_3929_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBEqUp___closed__0;
|
||||
lean_object* l_Lean_Expr_sort___override(lean_object*);
|
||||
lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBEqUp___closed__4;
|
||||
lean_object* l_Lean_Meta_Grind_instantiateExtTheorem(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -58,6 +54,7 @@ static lean_object* l_Lean_Meta_Grind_propagateBoolDiseq___closed__0;
|
|||
static lean_object* l_Lean_Meta_Grind_propagateOrUp___closed__7;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateNotUp___closed__3;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateEqUp___closed__13;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqDown___regBuiltin_Lean_Meta_Grind_propagateHEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4992_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateNotUp___closed__0;
|
||||
lean_object* l_Lean_Meta_Grind_getFalseExpr___redArg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_registerBuiltinUpwardPropagator(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -72,17 +69,15 @@ static lean_object* l_Lean_Meta_Grind_propagateBoolAndUp___closed__5;
|
|||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateHEqDown___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateNotDown___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolNotDown___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolAndDown___regBuiltin_Lean_Meta_Grind_propagateBoolAndDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11562_(lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_preprocessLight(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_Meta_Grind_propagateHEqDown___closed__1;
|
||||
lean_object* l_Lean_Meta_Grind_pushEqCore(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_registerBuiltinDownwardPropagator(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqUp___regBuiltin_Lean_Meta_Grind_propagateHEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_5248_(lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_getRootENode___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateOrUp___closed__12;
|
||||
lean_object* l_Lean_Meta_Grind_isEqBoolFalse___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDecideUp___regBuiltin_Lean_Meta_Grind_propagateDecideUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10960_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateOrUp___closed__10;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateAndUp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*);
|
||||
|
|
@ -90,6 +85,7 @@ static lean_object* l_Lean_Meta_Grind_propagateBoolAndDown___closed__3;
|
|||
lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateOrUp___closed__4;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDecideDown___closed__10;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndDown___closed__2;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolAndUp___closed__7;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolDiseq___closed__3;
|
||||
|
|
@ -102,7 +98,6 @@ lean_object* l_Lean_Meta_Grind_mkEqBoolFalseProof(lean_object*, lean_object*, le
|
|||
static lean_object* l_Lean_Meta_Grind_propagateOrUp___closed__11;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolOrDown(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_Meta_Grind_propagateAndDown___closed__1;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateEqMatchDown___closed__1;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBEqDown___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDIte(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -113,7 +108,6 @@ static lean_object* l_Lean_Meta_Grind_propagateNotUp___closed__9;
|
|||
lean_object* l_Lean_mkApp6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateNotUp___closed__4;
|
||||
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndDown___closed__4;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDecideDown___closed__9;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolNotUp___closed__7;
|
||||
|
|
@ -122,8 +116,10 @@ static lean_object* l_Lean_Meta_Grind_propagateDecideDown___closed__0;
|
|||
static lean_object* l_Lean_Meta_Grind_propagateOrDown___closed__2;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateEqUp___closed__3;
|
||||
lean_object* l_Lean_Meta_Grind_markCaseSplitAsResolved(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_propagateBoolAndUp___regBuiltin_Lean_Meta_Grind_propagateBoolAndUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11341_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolOrUp(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_propagateBoolAndUp___regBuiltin_Lean_Meta_Grind_propagateBoolAndUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11303_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__1;
|
||||
lean_object* l_Lean_Expr_getRevArg_x21(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateEqUp___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, uint8_t, 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_Meta_Grind_propagateBoolAndUp___closed__3;
|
||||
|
|
@ -133,7 +129,6 @@ static lean_object* l_Lean_Meta_Grind_propagateOrDown___closed__1;
|
|||
static lean_object* l_Lean_Meta_Grind_propagateAndUp___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolAndUp(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_Propagate_0__Lean_Meta_Grind_applyCongrFun(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_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__1;
|
||||
lean_object* l_Lean_Meta_Grind_closeGoal(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_Meta_Grind_propagateNotUp___closed__10;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolDiseq___closed__1;
|
||||
|
|
@ -147,7 +142,6 @@ static lean_object* l_Lean_Meta_Grind_propagateDIte___closed__0;
|
|||
lean_object* l_Lean_Meta_Grind_getBoolTrueExpr___redArg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDecideUp___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDecideUp___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqUp___regBuiltin_Lean_Meta_Grind_propagateHEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_5286_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateIte___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolDiseq(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_Meta_Grind_propagateNotDown___closed__2;
|
||||
|
|
@ -157,10 +151,11 @@ lean_object* l_Lean_Meta_mkEqTrans(lean_object*, lean_object*, lean_object*, lea
|
|||
static lean_object* l_Lean_Meta_Grind_propagateNotUp___closed__7;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolNotUp___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateAndDown___regBuiltin_Lean_Meta_Grind_propagateAndDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_604_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolAndDown___regBuiltin_Lean_Meta_Grind_propagateBoolAndDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11524_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateNotDown___regBuiltin_Lean_Meta_Grind_propagateNotDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_1766_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBEqUp(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_mkEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolOrUp___regBuiltin_Lean_Meta_Grind_propagateBoolOrUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11943_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndDown___closed__3;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateNotDown___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateEqMatchDown___closed__0;
|
||||
|
|
@ -169,16 +164,16 @@ static lean_object* l_Lean_Meta_Grind_propagateDecideDown___closed__5;
|
|||
static lean_object* l_Lean_Meta_Grind_propagateDecideDown___closed__12;
|
||||
extern lean_object* l_Lean_instInhabitedExpr;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateEqUp___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateEqMatchDown___regBuiltin_Lean_Meta_Grind_propagateEqMatchDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4775_(lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_propagateLinarithDiseq(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_pushEqTrue(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_Meta_Grind_propagateEqUp___closed__9;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateEqUp___closed__11;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolOrUp___closed__3;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f(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_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f(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_Meta_Grind_propagateEqUp___closed__8;
|
||||
lean_object* l_Lean_Meta_withLocalDeclD___at_____private_Lean_Meta_Tactic_Grind_Proof_0__Lean_Meta_Grind_mkHCongrProof_spec__0___redArg(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_Meta_Grind_propagateBoolOrDown___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___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_Lean_Meta_Grind_propagateIte___closed__3;
|
||||
lean_object* l_Lean_Meta_Grind_pushEqBoolFalse(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_propagateEqDown(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -191,6 +186,7 @@ lean_object* l_Lean_Meta_Grind_getGeneration___redArg(lean_object*, lean_object*
|
|||
static lean_object* l_Lean_Meta_Grind_propagateBoolDiseq___closed__4;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolNotUp___closed__2;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndUp___closed__13;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDecideDown___regBuiltin_Lean_Meta_Grind_propagateDecideDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10627_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateOrUp___regBuiltin_Lean_Meta_Grind_propagateOrUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_985_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBEqUp___closed__3;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDIte___closed__2;
|
||||
|
|
@ -201,6 +197,7 @@ static lean_object* l_Lean_Meta_Grind_propagateBoolOrUp___closed__4;
|
|||
static lean_object* l_Lean_Meta_Grind_propagateEqUp___closed__10;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndUp___closed__6;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateIte___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDecideUp___regBuiltin_Lean_Meta_Grind_propagateDecideUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10922_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDecideDown___closed__2;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolOrDown___closed__1;
|
||||
lean_object* l_Lean_Meta_mkOfEqFalseCore(lean_object*, lean_object*);
|
||||
|
|
@ -210,7 +207,6 @@ lean_object* l_Lean_Expr_getAppNumArgs(lean_object*);
|
|||
lean_object* l_List_head_x21___redArg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolAndUp___closed__1;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateOrDown___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDecideDown___regBuiltin_Lean_Meta_Grind_propagateDecideDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10665_(lean_object*);
|
||||
lean_object* lean_grind_mk_eq_proof(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_Meta_Grind_propagateEqUp___closed__1;
|
||||
lean_object* lean_grind_mk_heq_proof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -235,8 +231,8 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateOrDown(lean_object*, lean_ob
|
|||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDecideUp___closed__1;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolAndDown___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolOrDown___regBuiltin_Lean_Meta_Grind_propagateBoolOrDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12126_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateAndDown(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_propagateBEqDown___regBuiltin_Lean_Meta_Grind_propagateBEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4497_(lean_object*);
|
||||
uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBEqDown___closed__3;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolOrUp___closed__5;
|
||||
|
|
@ -250,6 +246,7 @@ static lean_object* l_Lean_Meta_Grind_propagateOrDown___closed__5;
|
|||
static lean_object* l_Lean_Meta_Grind_propagateBoolOrUp___closed__9;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBEqUp___closed__5;
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolNotDown___regBuiltin_Lean_Meta_Grind_propagateBoolNotDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12686_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolDiseq___closed__5;
|
||||
lean_object* l_Lean_Expr_getAppFn(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndUp___closed__4;
|
||||
|
|
@ -258,10 +255,12 @@ lean_object* l_Lean_Meta_Grind_mkEqTrueProof(lean_object*, lean_object*, lean_ob
|
|||
static lean_object* l_Lean_Meta_Grind_propagateEqUp___lam__0___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolNotUp___closed__4;
|
||||
lean_object* l_Lean_Meta_mkOfEqTrueCore(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_applyCongrFun___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_Lean_Meta_Grind_propagateIte___closed__4;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolOrUp___closed__2;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDecideUp___closed__3;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_;
|
||||
lean_object* l_Lean_Meta_Grind_isEqTrue___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateIte(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_Meta_Grind_propagateBoolOrUp___closed__1;
|
||||
|
|
@ -283,13 +282,14 @@ size_t lean_array_size(lean_object*);
|
|||
static lean_object* l_Lean_Meta_Grind_propagateBEqUp___closed__1;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateEqUp___closed__6;
|
||||
lean_object* l_Lean_Meta_Grind_pushEqBoolTrue(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_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_;
|
||||
lean_object* l_Lean_Name_mkStr1(lean_object*);
|
||||
lean_object* l_Lean_Meta_Grind_shareCommon___redArg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolAndUp___closed__2;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolNotDown___closed__0;
|
||||
lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolOrUp___regBuiltin_Lean_Meta_Grind_propagateBoolOrUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11905_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBEqDown___regBuiltin_Lean_Meta_Grind_propagateBEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4459_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolAndUp___closed__6;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolOrUp___closed__0;
|
||||
lean_object* l_Lean_Meta_Grind_mkEqBoolTrueProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -300,12 +300,11 @@ static lean_object* l_Lean_Meta_Grind_propagateOrUp___closed__9;
|
|||
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndUp___closed__11;
|
||||
uint8_t lean_usize_dec_lt(size_t, size_t);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateOrUp___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolNotUp(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_mkLambdaFVars(lean_object*, lean_object*, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_;
|
||||
lean_object* l_Lean_Meta_Grind_propagateCommRingDiseq(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_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_propagateEqDown_spec__0(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateNotUp___closed__1;
|
||||
|
|
@ -315,15 +314,18 @@ LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_Grind_pro
|
|||
static lean_object* l_Lean_Meta_Grind_propagateEqDown___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateNotDown___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateOrDown___regBuiltin_Lean_Meta_Grind_propagateOrDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_1206_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateBoolAndDown___closed__2;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateAndUp___closed__3;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateEqUp___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_applyCongrFun_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*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqUp(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_Meta_Grind_propagateAndUp___closed__14;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateEqMatchDown___regBuiltin_Lean_Meta_Grind_propagateEqMatchDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4737_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqDown(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_Meta_Grind_propagateAndUp___closed__7;
|
||||
static lean_object* l_Lean_Meta_Grind_propagateEqUp___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolNotUp___regBuiltin_Lean_Meta_Grind_propagateBoolNotUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12406_(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_propagateDecideDown___closed__1;
|
||||
lean_object* lean_grind_internalize(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_Meta_Grind_propagateOrUp___closed__6;
|
||||
|
|
@ -6186,7 +6188,7 @@ x_4 = l_Lean_Meta_Grind_registerBuiltinDownwardPropagator(x_2, x_3, x_1);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__0() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__0() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -6194,133 +6196,45 @@ x_1 = lean_mk_string_unchecked("LawfulBEq", 9, 9);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__1() {
|
||||
static lean_object* _init_l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__0;
|
||||
x_1 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__0;
|
||||
x_2 = l_Lean_Name_mkStr1(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f(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___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_9 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__1;
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_9 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__1;
|
||||
x_10 = l_Lean_Expr_const___override(x_9, x_1);
|
||||
x_11 = l_Lean_mkAppB(x_10, x_2, x_3);
|
||||
x_12 = lean_box(0);
|
||||
x_13 = l_Lean_Meta_trySynthInstance(x_11, x_12, x_4, x_5, x_6, x_7, x_8);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
if (lean_obj_tag(x_14) == 1)
|
||||
{
|
||||
uint8_t x_15;
|
||||
x_15 = !lean_is_exclusive(x_13);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16; uint8_t x_17;
|
||||
x_16 = lean_ctor_get(x_13, 0);
|
||||
lean_dec(x_16);
|
||||
x_17 = !lean_is_exclusive(x_14);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
return x_13;
|
||||
x_12 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_11, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f(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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19;
|
||||
x_18 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_14);
|
||||
x_19 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_19, 0, x_18);
|
||||
lean_ctor_set(x_13, 0, x_19);
|
||||
lean_object* x_13;
|
||||
x_13 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg(x_1, x_2, x_3, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
else
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_20 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_13);
|
||||
x_21 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_21);
|
||||
if (lean_is_exclusive(x_14)) {
|
||||
lean_ctor_release(x_14, 0);
|
||||
x_22 = x_14;
|
||||
} else {
|
||||
lean_dec_ref(x_14);
|
||||
x_22 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_22)) {
|
||||
x_23 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_23 = x_22;
|
||||
}
|
||||
lean_ctor_set(x_23, 0, x_21);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_20);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_25;
|
||||
lean_dec(x_14);
|
||||
x_25 = !lean_is_exclusive(x_13);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
x_26 = lean_ctor_get(x_13, 0);
|
||||
lean_dec(x_26);
|
||||
x_27 = lean_box(0);
|
||||
lean_ctor_set(x_13, 0, x_27);
|
||||
lean_object* x_13;
|
||||
x_13 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_28 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_13);
|
||||
x_29 = lean_box(0);
|
||||
x_30 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_29);
|
||||
lean_ctor_set(x_30, 1, x_28);
|
||||
return x_30;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_31;
|
||||
x_31 = !lean_is_exclusive(x_13);
|
||||
if (x_31 == 0)
|
||||
{
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33; lean_object* x_34;
|
||||
x_32 = lean_ctor_get(x_13, 0);
|
||||
x_33 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_33);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_13);
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_32);
|
||||
lean_ctor_set(x_34, 1, x_33);
|
||||
return x_34;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_propagateBEqUp___closed__0() {
|
||||
_start:
|
||||
|
|
@ -6597,7 +6511,7 @@ lean_inc(x_6);
|
|||
lean_inc(x_23);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_33);
|
||||
x_45 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f(x_33, x_26, x_23, x_6, x_7, x_8, x_9, x_43);
|
||||
x_45 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg(x_33, x_26, x_23, x_6, x_7, x_8, x_9, x_43);
|
||||
if (lean_obj_tag(x_45) == 0)
|
||||
{
|
||||
lean_object* x_46;
|
||||
|
|
@ -6750,7 +6664,7 @@ lean_inc(x_6);
|
|||
lean_inc(x_23);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_33);
|
||||
x_67 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f(x_33, x_26, x_23, x_6, x_7, x_8, x_9, x_32);
|
||||
x_67 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg(x_33, x_26, x_23, x_6, x_7, x_8, x_9, x_32);
|
||||
if (lean_obj_tag(x_67) == 0)
|
||||
{
|
||||
lean_object* x_68;
|
||||
|
|
@ -6926,7 +6840,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBEqUp___regBuiltin_Lean_Meta_Grind_propagateBEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_3967_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBEqUp___regBuiltin_Lean_Meta_Grind_propagateBEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_3929_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -7177,7 +7091,7 @@ lean_inc(x_6);
|
|||
lean_inc(x_23);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_33);
|
||||
x_45 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f(x_33, x_26, x_23, x_6, x_7, x_8, x_9, x_44);
|
||||
x_45 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg(x_33, x_26, x_23, x_6, x_7, x_8, x_9, x_44);
|
||||
if (lean_obj_tag(x_45) == 0)
|
||||
{
|
||||
lean_object* x_46;
|
||||
|
|
@ -7453,7 +7367,7 @@ lean_inc(x_6);
|
|||
lean_inc(x_23);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_33);
|
||||
x_94 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f(x_33, x_26, x_23, x_6, x_7, x_8, x_9, x_32);
|
||||
x_94 = l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg(x_33, x_26, x_23, x_6, x_7, x_8, x_9, x_32);
|
||||
if (lean_obj_tag(x_94) == 0)
|
||||
{
|
||||
lean_object* x_95;
|
||||
|
|
@ -7672,7 +7586,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBEqDown___regBuiltin_Lean_Meta_Grind_propagateBEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4497_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBEqDown___regBuiltin_Lean_Meta_Grind_propagateBEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4459_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -8004,7 +7918,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateEqMatchDown___regBuiltin_Lean_Meta_Grind_propagateEqMatchDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4775_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateEqMatchDown___regBuiltin_Lean_Meta_Grind_propagateEqMatchDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4737_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -8305,7 +8219,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqDown___regBuiltin_Lean_Meta_Grind_propagateHEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_5030_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqDown___regBuiltin_Lean_Meta_Grind_propagateHEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4992_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -8555,7 +8469,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqUp___regBuiltin_Lean_Meta_Grind_propagateHEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_5286_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateHEqUp___regBuiltin_Lean_Meta_Grind_propagateHEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_5248_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -9187,7 +9101,7 @@ return x_84;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_() {
|
||||
static lean_object* _init_l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -9195,20 +9109,20 @@ x_1 = lean_mk_string_unchecked("ite", 3, 3);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_() {
|
||||
static lean_object* _init_l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_;
|
||||
x_1 = l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_;
|
||||
x_2 = l_Lean_Name_mkStr1(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_;
|
||||
x_2 = l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_propagateIte), 10, 0);
|
||||
x_4 = l_Lean_Meta_Grind_registerBuiltinUpwardPropagator(x_2, x_3, x_1);
|
||||
return x_4;
|
||||
|
|
@ -9791,7 +9705,7 @@ return x_118;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_() {
|
||||
static lean_object* _init_l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -9799,20 +9713,20 @@ x_1 = lean_mk_string_unchecked("dite", 4, 4);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_() {
|
||||
static lean_object* _init_l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_;
|
||||
x_1 = l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_;
|
||||
x_2 = l_Lean_Name_mkStr1(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_;
|
||||
x_2 = l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_propagateDIte), 10, 0);
|
||||
x_4 = l_Lean_Meta_Grind_registerBuiltinUpwardPropagator(x_2, x_3, x_1);
|
||||
return x_4;
|
||||
|
|
@ -10521,7 +10435,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDecideDown___regBuiltin_Lean_Meta_Grind_propagateDecideDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10665_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDecideDown___regBuiltin_Lean_Meta_Grind_propagateDecideDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10627_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -10960,7 +10874,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDecideUp___regBuiltin_Lean_Meta_Grind_propagateDecideUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10960_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateDecideUp___regBuiltin_Lean_Meta_Grind_propagateDecideUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10922_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -11669,7 +11583,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolAndUp___regBuiltin_Lean_Meta_Grind_propagateBoolAndUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11341_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolAndUp___regBuiltin_Lean_Meta_Grind_propagateBoolAndUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11303_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -11985,7 +11899,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolAndDown___regBuiltin_Lean_Meta_Grind_propagateBoolAndDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11562_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolAndDown___regBuiltin_Lean_Meta_Grind_propagateBoolAndDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11524_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -12694,7 +12608,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolOrUp___regBuiltin_Lean_Meta_Grind_propagateBoolOrUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11943_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolOrUp___regBuiltin_Lean_Meta_Grind_propagateBoolOrUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11905_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -13010,7 +12924,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolOrDown___regBuiltin_Lean_Meta_Grind_propagateBoolOrDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12164_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolOrDown___regBuiltin_Lean_Meta_Grind_propagateBoolOrDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12126_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -13504,7 +13418,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolNotUp___regBuiltin_Lean_Meta_Grind_propagateBoolNotUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12444_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolNotUp___regBuiltin_Lean_Meta_Grind_propagateBoolNotUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12406_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -13956,7 +13870,7 @@ return x_13;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolNotDown___regBuiltin_Lean_Meta_Grind_propagateBoolNotDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12724_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateBoolNotDown___regBuiltin_Lean_Meta_Grind_propagateBoolNotDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12686_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
|
|
@ -14185,10 +14099,10 @@ lean_mark_persistent(l_Lean_Meta_Grind_propagateEqDown___closed__1);
|
|||
if (builtin) {res = l_Lean_Meta_Grind_propagateEqDown___regBuiltin_Lean_Meta_Grind_propagateEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_3480_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__0();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__0);
|
||||
l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___closed__1);
|
||||
}l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__0 = _init_l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__0();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__0);
|
||||
l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__1 = _init_l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Tactic_Grind_Propagate_0__Lean_Meta_Grind_getLawfulBEqInst_x3f___redArg___closed__1);
|
||||
l_Lean_Meta_Grind_propagateBEqUp___closed__0 = _init_l_Lean_Meta_Grind_propagateBEqUp___closed__0();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBEqUp___closed__0);
|
||||
l_Lean_Meta_Grind_propagateBEqUp___closed__1 = _init_l_Lean_Meta_Grind_propagateBEqUp___closed__1();
|
||||
|
|
@ -14203,7 +14117,7 @@ l_Lean_Meta_Grind_propagateBEqUp___closed__5 = _init_l_Lean_Meta_Grind_propagate
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBEqUp___closed__5);
|
||||
l_Lean_Meta_Grind_propagateBEqUp___closed__6 = _init_l_Lean_Meta_Grind_propagateBEqUp___closed__6();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBEqUp___closed__6);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBEqUp___regBuiltin_Lean_Meta_Grind_propagateBEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_3967_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBEqUp___regBuiltin_Lean_Meta_Grind_propagateBEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_3929_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateBEqDown___closed__0 = _init_l_Lean_Meta_Grind_propagateBEqDown___closed__0();
|
||||
|
|
@ -14214,24 +14128,24 @@ l_Lean_Meta_Grind_propagateBEqDown___closed__2 = _init_l_Lean_Meta_Grind_propaga
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBEqDown___closed__2);
|
||||
l_Lean_Meta_Grind_propagateBEqDown___closed__3 = _init_l_Lean_Meta_Grind_propagateBEqDown___closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBEqDown___closed__3);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBEqDown___regBuiltin_Lean_Meta_Grind_propagateBEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4497_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBEqDown___regBuiltin_Lean_Meta_Grind_propagateBEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4459_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateEqMatchDown___closed__0 = _init_l_Lean_Meta_Grind_propagateEqMatchDown___closed__0();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateEqMatchDown___closed__0);
|
||||
l_Lean_Meta_Grind_propagateEqMatchDown___closed__1 = _init_l_Lean_Meta_Grind_propagateEqMatchDown___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateEqMatchDown___closed__1);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateEqMatchDown___regBuiltin_Lean_Meta_Grind_propagateEqMatchDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4775_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateEqMatchDown___regBuiltin_Lean_Meta_Grind_propagateEqMatchDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4737_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateHEqDown___closed__0 = _init_l_Lean_Meta_Grind_propagateHEqDown___closed__0();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateHEqDown___closed__0);
|
||||
l_Lean_Meta_Grind_propagateHEqDown___closed__1 = _init_l_Lean_Meta_Grind_propagateHEqDown___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateHEqDown___closed__1);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateHEqDown___regBuiltin_Lean_Meta_Grind_propagateHEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_5030_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateHEqDown___regBuiltin_Lean_Meta_Grind_propagateHEqDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_4992_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}if (builtin) {res = l_Lean_Meta_Grind_propagateHEqUp___regBuiltin_Lean_Meta_Grind_propagateHEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_5286_(lean_io_mk_world());
|
||||
}if (builtin) {res = l_Lean_Meta_Grind_propagateHEqUp___regBuiltin_Lean_Meta_Grind_propagateHEqUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_5248_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateIte___closed__0 = _init_l_Lean_Meta_Grind_propagateIte___closed__0();
|
||||
|
|
@ -14244,11 +14158,11 @@ l_Lean_Meta_Grind_propagateIte___closed__3 = _init_l_Lean_Meta_Grind_propagateIt
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateIte___closed__3);
|
||||
l_Lean_Meta_Grind_propagateIte___closed__4 = _init_l_Lean_Meta_Grind_propagateIte___closed__4();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateIte___closed__4);
|
||||
l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_ = _init_l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_);
|
||||
l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_ = _init_l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10053_(lean_io_mk_world());
|
||||
l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_ = _init_l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_);
|
||||
l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_ = _init_l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateIte___regBuiltin_Lean_Meta_Grind_propagateIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10015_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateDIte___closed__0 = _init_l_Lean_Meta_Grind_propagateDIte___closed__0();
|
||||
|
|
@ -14259,11 +14173,11 @@ l_Lean_Meta_Grind_propagateDIte___closed__2 = _init_l_Lean_Meta_Grind_propagateD
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateDIte___closed__2);
|
||||
l_Lean_Meta_Grind_propagateDIte___closed__3 = _init_l_Lean_Meta_Grind_propagateDIte___closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateDIte___closed__3);
|
||||
l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_ = _init_l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_);
|
||||
l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_ = _init_l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10385_(lean_io_mk_world());
|
||||
l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_ = _init_l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__0____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_);
|
||||
l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_ = _init_l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1___closed__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateDIte___regBuiltin_Lean_Meta_Grind_propagateDIte_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10347_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateDecideDown___closed__0 = _init_l_Lean_Meta_Grind_propagateDecideDown___closed__0();
|
||||
|
|
@ -14292,7 +14206,7 @@ l_Lean_Meta_Grind_propagateDecideDown___closed__11 = _init_l_Lean_Meta_Grind_pro
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateDecideDown___closed__11);
|
||||
l_Lean_Meta_Grind_propagateDecideDown___closed__12 = _init_l_Lean_Meta_Grind_propagateDecideDown___closed__12();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateDecideDown___closed__12);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateDecideDown___regBuiltin_Lean_Meta_Grind_propagateDecideDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10665_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateDecideDown___regBuiltin_Lean_Meta_Grind_propagateDecideDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10627_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateDecideUp___closed__0 = _init_l_Lean_Meta_Grind_propagateDecideUp___closed__0();
|
||||
|
|
@ -14307,7 +14221,7 @@ l_Lean_Meta_Grind_propagateDecideUp___closed__4 = _init_l_Lean_Meta_Grind_propag
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateDecideUp___closed__4);
|
||||
l_Lean_Meta_Grind_propagateDecideUp___closed__5 = _init_l_Lean_Meta_Grind_propagateDecideUp___closed__5();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateDecideUp___closed__5);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateDecideUp___regBuiltin_Lean_Meta_Grind_propagateDecideUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10960_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateDecideUp___regBuiltin_Lean_Meta_Grind_propagateDecideUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_10922_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateBoolAndUp___closed__0 = _init_l_Lean_Meta_Grind_propagateBoolAndUp___closed__0();
|
||||
|
|
@ -14330,7 +14244,7 @@ l_Lean_Meta_Grind_propagateBoolAndUp___closed__8 = _init_l_Lean_Meta_Grind_propa
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolAndUp___closed__8);
|
||||
l_Lean_Meta_Grind_propagateBoolAndUp___closed__9 = _init_l_Lean_Meta_Grind_propagateBoolAndUp___closed__9();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolAndUp___closed__9);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolAndUp___regBuiltin_Lean_Meta_Grind_propagateBoolAndUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11341_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolAndUp___regBuiltin_Lean_Meta_Grind_propagateBoolAndUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11303_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateBoolAndDown___closed__0 = _init_l_Lean_Meta_Grind_propagateBoolAndDown___closed__0();
|
||||
|
|
@ -14341,7 +14255,7 @@ l_Lean_Meta_Grind_propagateBoolAndDown___closed__2 = _init_l_Lean_Meta_Grind_pro
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolAndDown___closed__2);
|
||||
l_Lean_Meta_Grind_propagateBoolAndDown___closed__3 = _init_l_Lean_Meta_Grind_propagateBoolAndDown___closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolAndDown___closed__3);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolAndDown___regBuiltin_Lean_Meta_Grind_propagateBoolAndDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11562_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolAndDown___regBuiltin_Lean_Meta_Grind_propagateBoolAndDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11524_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateBoolOrUp___closed__0 = _init_l_Lean_Meta_Grind_propagateBoolOrUp___closed__0();
|
||||
|
|
@ -14364,7 +14278,7 @@ l_Lean_Meta_Grind_propagateBoolOrUp___closed__8 = _init_l_Lean_Meta_Grind_propag
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolOrUp___closed__8);
|
||||
l_Lean_Meta_Grind_propagateBoolOrUp___closed__9 = _init_l_Lean_Meta_Grind_propagateBoolOrUp___closed__9();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolOrUp___closed__9);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolOrUp___regBuiltin_Lean_Meta_Grind_propagateBoolOrUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11943_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolOrUp___regBuiltin_Lean_Meta_Grind_propagateBoolOrUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_11905_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateBoolOrDown___closed__0 = _init_l_Lean_Meta_Grind_propagateBoolOrDown___closed__0();
|
||||
|
|
@ -14375,7 +14289,7 @@ l_Lean_Meta_Grind_propagateBoolOrDown___closed__2 = _init_l_Lean_Meta_Grind_prop
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolOrDown___closed__2);
|
||||
l_Lean_Meta_Grind_propagateBoolOrDown___closed__3 = _init_l_Lean_Meta_Grind_propagateBoolOrDown___closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolOrDown___closed__3);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolOrDown___regBuiltin_Lean_Meta_Grind_propagateBoolOrDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12164_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolOrDown___regBuiltin_Lean_Meta_Grind_propagateBoolOrDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12126_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateBoolNotUp___closed__0 = _init_l_Lean_Meta_Grind_propagateBoolNotUp___closed__0();
|
||||
|
|
@ -14394,7 +14308,7 @@ l_Lean_Meta_Grind_propagateBoolNotUp___closed__6 = _init_l_Lean_Meta_Grind_propa
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolNotUp___closed__6);
|
||||
l_Lean_Meta_Grind_propagateBoolNotUp___closed__7 = _init_l_Lean_Meta_Grind_propagateBoolNotUp___closed__7();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolNotUp___closed__7);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolNotUp___regBuiltin_Lean_Meta_Grind_propagateBoolNotUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12444_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolNotUp___regBuiltin_Lean_Meta_Grind_propagateBoolNotUp_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12406_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
}l_Lean_Meta_Grind_propagateBoolNotDown___closed__0 = _init_l_Lean_Meta_Grind_propagateBoolNotDown___closed__0();
|
||||
|
|
@ -14405,7 +14319,7 @@ l_Lean_Meta_Grind_propagateBoolNotDown___closed__2 = _init_l_Lean_Meta_Grind_pro
|
|||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolNotDown___closed__2);
|
||||
l_Lean_Meta_Grind_propagateBoolNotDown___closed__3 = _init_l_Lean_Meta_Grind_propagateBoolNotDown___closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_propagateBoolNotDown___closed__3);
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolNotDown___regBuiltin_Lean_Meta_Grind_propagateBoolNotDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12724_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_Meta_Grind_propagateBoolNotDown___regBuiltin_Lean_Meta_Grind_propagateBoolNotDown_declare__1____x40_Lean_Meta_Tactic_Grind_Propagate___hyg_12686_(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));
|
||||
|
|
|
|||
2867
stage0/stdlib/Lean/Meta/Tactic/Grind/ReflCmp.c
generated
2867
stage0/stdlib/Lean/Meta/Tactic/Grind/ReflCmp.c
generated
File diff suppressed because it is too large
Load diff
522
stage0/stdlib/Lean/Meta/Tactic/Grind/SynthInstance.c
generated
Normal file
522
stage0/stdlib/Lean/Meta/Tactic/Grind/SynthInstance.c
generated
Normal file
|
|
@ -0,0 +1,522 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Meta.Tactic.Grind.SynthInstance
|
||||
// Imports: Lean.Meta.SynthInstance Lean.Meta.Tactic.Grind.Types
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
extern lean_object* l_Lean_Meta_isDefEqStuckExceptionId;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Exception_isInterrupt(lean_object*);
|
||||
lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_synthInstance___redArg___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstanceAndAssign(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_synthInstanceMeta_x3f___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_profileitM___at___Lean_Meta_letToHave_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__0;
|
||||
static lean_object* l_Lean_Meta_Grind_synthInstance___redArg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_constName_x3f(lean_object*);
|
||||
lean_object* l_Lean_Meta_synthInstanceCore_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at___Lean_Meta_Grind_addNewRawFact_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_synthInstance___redArg___closed__2;
|
||||
static lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance_x3f___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Grind_synthInstance___redArg___closed__0;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstanceAndAssign___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_indentExpr(lean_object*);
|
||||
lean_object* l_Lean_Expr_getAppFn(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance_x3f(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_synthInstanceAndAssign___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Exception_isRuntime(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance(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_synthInstance___boxed(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_synthInstanceMeta_x3f___lam__0(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_Meta_synthInstanceCore_x3f(x_1, x_2, x_4, x_5, x_6, x_7, x_8);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; uint8_t x_12; uint8_t x_22;
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_11);
|
||||
x_22 = l_Lean_Exception_isInterrupt(x_10);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
uint8_t x_23;
|
||||
x_23 = l_Lean_Exception_isRuntime(x_10);
|
||||
x_12 = x_23;
|
||||
goto block_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
x_12 = x_22;
|
||||
goto block_21;
|
||||
}
|
||||
block_21:
|
||||
{
|
||||
if (x_12 == 0)
|
||||
{
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; uint8_t x_14;
|
||||
x_13 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_10);
|
||||
x_14 = lean_nat_dec_eq(x_3, x_13);
|
||||
lean_dec(x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_dec(x_11);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_15;
|
||||
x_15 = !lean_is_exclusive(x_9);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_16 = lean_ctor_get(x_9, 1);
|
||||
lean_dec(x_16);
|
||||
x_17 = lean_ctor_get(x_9, 0);
|
||||
lean_dec(x_17);
|
||||
x_18 = lean_box(0);
|
||||
lean_ctor_set_tag(x_9, 0);
|
||||
lean_ctor_set(x_9, 0, x_18);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20;
|
||||
lean_dec(x_9);
|
||||
x_19 = lean_box(0);
|
||||
x_20 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_19);
|
||||
lean_ctor_set(x_20, 1, x_11);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__0() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_unchecked("grind typeclass inference", 25, 25);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_Meta_isDefEqStuckExceptionId;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_7 = lean_ctor_get(x_4, 2);
|
||||
lean_inc(x_7);
|
||||
x_8 = l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__0;
|
||||
x_9 = l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__1;
|
||||
x_10 = lean_box(0);
|
||||
lean_inc(x_1);
|
||||
x_11 = lean_alloc_closure((void*)(l_Lean_Meta_Grind_synthInstanceMeta_x3f___lam__0___boxed), 8, 3);
|
||||
lean_closure_set(x_11, 0, x_1);
|
||||
lean_closure_set(x_11, 1, x_10);
|
||||
lean_closure_set(x_11, 2, x_9);
|
||||
x_12 = l_Lean_Expr_getAppFn(x_1);
|
||||
lean_dec(x_1);
|
||||
x_13 = l_Lean_Expr_constName_x3f(x_12);
|
||||
lean_dec(x_12);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15;
|
||||
x_14 = lean_box(0);
|
||||
x_15 = l_Lean_profileitM___at___Lean_Meta_letToHave_spec__1___redArg(x_8, x_7, x_11, x_14, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_7);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
x_16 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_13);
|
||||
x_17 = l_Lean_profileitM___at___Lean_Meta_letToHave_spec__1___redArg(x_8, x_7, x_11, x_16, x_2, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_7);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstanceMeta_x3f___lam__0___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_Meta_Grind_synthInstanceMeta_x3f___lam__0(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_3);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_1, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Meta_Grind_synthInstance_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_synthInstance___redArg___closed__0() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_unchecked("`grind` failed to find instance", 31, 31);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_synthInstance___redArg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_Grind_synthInstance___redArg___closed__0;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_synthInstance___redArg___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_unchecked("", 0, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_synthInstance___redArg___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Meta_Grind_synthInstance___redArg___closed__2;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_7 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_7) == 0)
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_9 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_10 = l_Lean_Meta_Grind_synthInstance___redArg___closed__1;
|
||||
x_11 = l_Lean_indentExpr(x_1);
|
||||
x_12 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_10);
|
||||
lean_ctor_set(x_12, 1, x_11);
|
||||
x_13 = l_Lean_Meta_Grind_synthInstance___redArg___closed__3;
|
||||
x_14 = lean_alloc_ctor(7, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_12);
|
||||
lean_ctor_set(x_14, 1, x_13);
|
||||
x_15 = l_Lean_throwError___at___Lean_Meta_Grind_addNewRawFact_spec__0___redArg(x_14, x_2, x_3, x_4, x_5, x_9);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_16;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_16 = !lean_is_exclusive(x_7);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_7, 0);
|
||||
lean_dec(x_17);
|
||||
x_18 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_8);
|
||||
lean_ctor_set(x_7, 0, x_18);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_19 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_7);
|
||||
x_20 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_8);
|
||||
x_21 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_20);
|
||||
lean_ctor_set(x_21, 1, x_19);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_22;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_22 = !lean_is_exclusive(x_7);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_7, 0);
|
||||
x_24 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_7);
|
||||
x_25 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_23);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Meta_Grind_synthInstance___redArg(x_1, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstance___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Meta_Grind_synthInstance(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstanceAndAssign___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_8 = l_Lean_Meta_Grind_synthInstanceMeta_x3f(x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
uint8_t x_10;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_10 = !lean_is_exclusive(x_8);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; uint8_t x_12; lean_object* x_13;
|
||||
x_11 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_11);
|
||||
x_12 = 0;
|
||||
x_13 = lean_box(x_12);
|
||||
lean_ctor_set(x_8, 0, x_13);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_14 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_8);
|
||||
x_15 = 0;
|
||||
x_16 = lean_box(x_15);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_14);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_8);
|
||||
x_19 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_9);
|
||||
x_20 = l_Lean_Meta_isExprDefEq(x_1, x_19, x_3, x_4, x_5, x_6, x_18);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_21;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_21 = !lean_is_exclusive(x_8);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_22 = lean_ctor_get(x_8, 0);
|
||||
x_23 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_8);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstanceAndAssign(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_synthInstanceAndAssign___redArg(x_1, x_2, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthInstanceAndAssign___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_synthInstanceAndAssign(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);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Lean_Meta_SynthInstance(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Grind_Types(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lean_Meta_Tactic_Grind_SynthInstance(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Lean_Meta_SynthInstance(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Tactic_Grind_Types(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__0 = _init_l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__0();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__0);
|
||||
l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__1 = _init_l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_synthInstanceMeta_x3f___closed__1);
|
||||
l_Lean_Meta_Grind_synthInstance___redArg___closed__0 = _init_l_Lean_Meta_Grind_synthInstance___redArg___closed__0();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_synthInstance___redArg___closed__0);
|
||||
l_Lean_Meta_Grind_synthInstance___redArg___closed__1 = _init_l_Lean_Meta_Grind_synthInstance___redArg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_synthInstance___redArg___closed__1);
|
||||
l_Lean_Meta_Grind_synthInstance___redArg___closed__2 = _init_l_Lean_Meta_Grind_synthInstance___redArg___closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_synthInstance___redArg___closed__2);
|
||||
l_Lean_Meta_Grind_synthInstance___redArg___closed__3 = _init_l_Lean_Meta_Grind_synthInstance___redArg___closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_Grind_synthInstance___redArg___closed__3);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
93
stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c
generated
93
stage0/stdlib/Lean/Meta/Tactic/Grind/Types.c
generated
|
|
@ -147,7 +147,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateLinarithDiseq_get_x3f___redA
|
|||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_reportIssue(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_isInterpreted(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_trySynthInstance(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_qpartition___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_registerParent___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_expandReportIssueMacro___closed__41;
|
||||
|
|
@ -331,7 +330,6 @@ static lean_object* l___private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_propagateUp(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_isResolvedCaseSplit___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lean_Meta_Grind_SplitInfo_lt(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthesizeInstanceAndAssign(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_isEqTrue___boxed(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_Std_DHashMap_Internal_Raw_u2080_expand_go___at___Std_DHashMap_Internal_Raw_u2080_expand___at_____private_Lean_Meta_Tactic_Grind_Types_0__Lean_Meta_Grind_updateSplitArgPosMap_spec__1_spec__1___redArg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_saveCases___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -46769,97 +46767,6 @@ lean_dec(x_2);
|
|||
return x_11;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Grind_synthesizeInstanceAndAssign(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = lean_box(0);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_9 = l_Lean_Meta_trySynthInstance(x_2, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
if (lean_obj_tag(x_10) == 1)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_11 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_9);
|
||||
x_12 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = l_Lean_Meta_isExprDefEq(x_1, x_12, x_3, x_4, x_5, x_6, x_11);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_14;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_14 = !lean_is_exclusive(x_9);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15; uint8_t x_16; lean_object* x_17;
|
||||
x_15 = lean_ctor_get(x_9, 0);
|
||||
lean_dec(x_15);
|
||||
x_16 = 0;
|
||||
x_17 = lean_box(x_16);
|
||||
lean_ctor_set(x_9, 0, x_17);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_18 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_9);
|
||||
x_19 = 0;
|
||||
x_20 = lean_box(x_19);
|
||||
x_21 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_20);
|
||||
lean_ctor_set(x_21, 1, x_18);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_22;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_22 = !lean_is_exclusive(x_9);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_9, 0);
|
||||
x_24 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_9);
|
||||
x_25 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_23);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_Grind_addLookaheadCandidate___closed__0() {
|
||||
_start:
|
||||
{
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Meta/Tactic/LibrarySearch.c
generated
4
stage0/stdlib/Lean/Meta/Tactic/LibrarySearch.c
generated
|
|
@ -36,6 +36,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_LibrarySearch_solveByElim(lean_object*, uin
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_LibrarySearch_librarySearch(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_LibrarySearch_0__Lean_Meta_LibrarySearch_librarySearchLemma___lam__0___closed__12;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LibrarySearch_0__Lean_Meta_LibrarySearch_addImport___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_profileitM___at___Lean_Meta_synthInstance_x3f_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Exception_isInterrupt(lean_object*);
|
||||
static lean_object* l_Lean_Meta_LibrarySearch_initFn___closed__11____x40_Lean_Meta_Tactic_LibrarySearch___hyg_4_;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LibrarySearch_0__Lean_Meta_LibrarySearch_addImport___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -209,7 +210,6 @@ static lean_object* l_Array_forIn_x27Unsafe_loop___at___Lean_Meta_LibrarySearch_
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_LibrarySearch_abortSpeculation(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_LibrarySearch_interleaveWith___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_add(size_t, size_t);
|
||||
lean_object* l_Lean_profileitM___at___Lean_Meta_synthInstance_x3f_spec__1___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
size_t lean_array_size(lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -5000,7 +5000,7 @@ lean_closure_set(x_13, 2, x_2);
|
|||
lean_closure_set(x_13, 3, x_3);
|
||||
lean_closure_set(x_13, 4, x_4);
|
||||
x_14 = lean_box(0);
|
||||
x_15 = l_Lean_profileitM___at___Lean_Meta_synthInstance_x3f_spec__1___redArg(x_5, x_11, x_13, x_14, x_6, x_7, x_8, x_9, x_10);
|
||||
x_15 = l_Lean_profileitM___at___Lean_Meta_synthInstance_x3f_spec__0___redArg(x_5, x_11, x_13, x_14, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_11);
|
||||
return x_15;
|
||||
}
|
||||
|
|
|
|||
61
tests/lean/run/grind_pattern3.lean
Normal file
61
tests/lean/run/grind_pattern3.lean
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
reset_grind_attrs%
|
||||
def Set (α : Type) := α → Bool
|
||||
|
||||
def insertElem [DecidableEq α] (s : Set α) (a : α) : Set α :=
|
||||
fun x => a = x || s x
|
||||
|
||||
def contains (s : Set α) (a : α) : Bool :=
|
||||
s a
|
||||
|
||||
namespace Set
|
||||
|
||||
theorem contains_insert [DecidableEq α] (s : Set α) (a : α) : contains (insertElem s a) a := by
|
||||
simp [contains, insertElem]
|
||||
|
||||
scoped grind_pattern contains_insert => contains (insertElem s a) a
|
||||
|
||||
end Set
|
||||
|
||||
example [DecidableEq α] (s₁ s₂ : Set α) (a₁ a₂ : α) :
|
||||
s₂ = insertElem s₁ a₁ → a₁ = a₂ → contains s₂ a₂ := by
|
||||
fail_if_success grind -- should fail
|
||||
open Set in grind -- scoped pattern was activated, it should work now
|
||||
|
||||
example [DecidableEq α] (s₁ s₂ : Set α) (a₁ a₂ : α) :
|
||||
s₂ = insertElem s₁ a₁ → a₁ = a₂ → contains s₂ a₂ := by
|
||||
fail_if_success grind -- should fail
|
||||
intros; subst s₂ a₁; apply Set.contains_insert
|
||||
|
||||
open Set in
|
||||
example [DecidableEq α] (s₁ s₂ : Set α) (a₁ a₂ : α) :
|
||||
s₂ = insertElem s₁ a₁ → a₁ = a₂ → contains s₂ a₂ := by
|
||||
grind -- should work
|
||||
|
||||
example [DecidableEq α] (s₁ s₂ : Set α) (a₁ a₂ : α) :
|
||||
s₂ = insertElem s₁ a₁ → a₁ = a₂ → contains s₂ a₂ := by
|
||||
fail_if_success grind -- should fail
|
||||
intros; subst s₂ a₁; apply Set.contains_insert
|
||||
|
||||
|
||||
-- TheoremPattern activation test
|
||||
|
||||
def a := 10
|
||||
def b := 20
|
||||
def foo (x : List Nat) (y : List Nat) := x ++ y ++ x
|
||||
|
||||
theorem fooThm : foo x [a, b] = x ++ [a, b] ++ x := rfl
|
||||
|
||||
section
|
||||
local grind_pattern fooThm => foo x [a, b]
|
||||
|
||||
/-- trace: [grind.ematch.instance] fooThm: foo x [a, b] = x ++ [a, b] ++ x -/
|
||||
#guard_msgs in
|
||||
set_option trace.grind.ematch.instance true in
|
||||
example : xs = [a, b] → foo x xs = x ++ [a, b] ++ x := by
|
||||
grind
|
||||
|
||||
end
|
||||
|
||||
example : xs = [a, b] → foo x xs = x ++ [a, b] ++ x := by
|
||||
fail_if_success grind -- should fail, `local grind_pattern` is not active anymore
|
||||
intro; subst xs; apply fooThm
|
||||
Loading…
Add table
Reference in a new issue