chore: update stage0
This commit is contained in:
parent
a8044eb252
commit
20022f3c6d
13 changed files with 2388 additions and 1611 deletions
2
stage0/src/Lean/Elab/Match.lean
generated
2
stage0/src/Lean/Elab/Match.lean
generated
|
|
@ -494,7 +494,7 @@ partial def main (e : Expr) : M Pattern := do
|
|||
match e.getArg! 1 with
|
||||
| Expr.fvar fvarId _ => return Pattern.as fvarId p
|
||||
| _ => throwError "unexpected occurrence of auxiliary declaration 'namedPattern'"
|
||||
else if e.isNatLit || e.isStringLit || e.isCharLit then
|
||||
else if isMatchValue e then
|
||||
return Pattern.val e
|
||||
else if e.isFVar then
|
||||
let fvarId := e.fvarId!
|
||||
|
|
|
|||
2
stage0/src/Lean/Meta/Match/Basic.lean
generated
2
stage0/src/Lean/Meta/Match/Basic.lean
generated
|
|
@ -289,7 +289,7 @@ partial def toPattern (e : Expr) : MetaM Pattern := do
|
|||
match e.getArg! 1 with
|
||||
| Expr.fvar fvarId _ => return Pattern.as fvarId p
|
||||
| _ => throwError "unexpected occurrence of auxiliary declaration 'namedPattern'"
|
||||
else if e.isNatLit || e.isStringLit || e.isCharLit then
|
||||
else if isMatchValue e then
|
||||
return Pattern.val e
|
||||
else if e.isFVar then
|
||||
return Pattern.var e.fvarId!
|
||||
|
|
|
|||
3
stage0/src/Lean/Meta/Match/CaseValues.lean
generated
3
stage0/src/Lean/Meta/Match/CaseValues.lean
generated
|
|
@ -5,6 +5,7 @@ Authors: Leonardo de Moura
|
|||
-/
|
||||
import Lean.Meta.Tactic.Subst
|
||||
import Lean.Meta.Tactic.Clear
|
||||
import Lean.Meta.Match.Value
|
||||
|
||||
namespace Lean.Meta
|
||||
|
||||
|
|
@ -30,7 +31,7 @@ private def caseValueAux (mvarId : MVarId) (fvarId : FVarId) (value : Expr) (hNa
|
|||
let tag ← getMVarTag mvarId
|
||||
checkNotAssigned mvarId `caseValue
|
||||
let target ← getMVarType mvarId
|
||||
let xEqValue ← mkEq (mkFVar fvarId) value
|
||||
let xEqValue ← mkEq (mkFVar fvarId) (foldPatValue value)
|
||||
let xNeqValue := mkApp (mkConst `Not) xEqValue
|
||||
let thenTarget := Lean.mkForall hName BinderInfo.default xEqValue target
|
||||
let elseTarget := Lean.mkForall hName BinderInfo.default xNeqValue target
|
||||
|
|
|
|||
3
stage0/src/Lean/Meta/Match/MatchEqs.lean
generated
3
stage0/src/Lean/Meta/Match/MatchEqs.lean
generated
|
|
@ -41,9 +41,6 @@ where
|
|||
else
|
||||
go (idx + 1)
|
||||
|
||||
private def isMatchValue (e : Expr) : Bool :=
|
||||
e.isNatLit || e.isCharLit || e.isStringLit
|
||||
|
||||
/--
|
||||
Helper method. Recall that alternatives that do not have variables have a `Unit` parameter to ensure
|
||||
they are not eagerly evaluated. -/
|
||||
|
|
|
|||
47
stage0/src/Lean/Meta/Match/Value.lean
generated
Normal file
47
stage0/src/Lean/Meta/Match/Value.lean
generated
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
/-
|
||||
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
Authors: Leonardo de Moura
|
||||
-/
|
||||
import Lean.Expr
|
||||
|
||||
namespace Lean.Meta
|
||||
|
||||
-- TODO: move?
|
||||
private def UIntTypeNames : Array Name :=
|
||||
#[``UInt8, ``UInt16, ``UInt32, ``UInt64, ``USize]
|
||||
|
||||
private def isUIntTypeName (n : Name) : Bool :=
|
||||
UIntTypeNames.contains n
|
||||
|
||||
def isFinPatLit (e : Expr) : Bool :=
|
||||
e.isAppOfArity `Fin.ofNat 2 && e.appArg!.isNatLit
|
||||
|
||||
/-- Return `some (typeName, numLit)` if `v` is of the form `UInt*.mk (Fin.ofNat _ numLit)` -/
|
||||
def isUIntPatLit? (v : Expr) : Option (Name × Expr) :=
|
||||
match v with
|
||||
| Expr.app (Expr.const (Name.str typeName "mk" ..) ..) val .. =>
|
||||
if isUIntTypeName typeName && isFinPatLit val then
|
||||
some (typeName, val.appArg!)
|
||||
else
|
||||
none
|
||||
| _ => none
|
||||
|
||||
def isUIntPatLit (v : Expr) : Bool :=
|
||||
isUIntPatLit? v |>.isSome
|
||||
|
||||
/--
|
||||
The frontend expands uint numerals occurring in patterns into `UInt*.mk ..` contructor applications.
|
||||
This method convert them back into `UInt*.ofNat ..` applications.
|
||||
-/
|
||||
def foldPatValue (v : Expr) : Expr :=
|
||||
match isUIntPatLit? v with
|
||||
| some (typeName, numLit) => mkApp (mkConst (Name.mkStr typeName "ofNat")) numLit
|
||||
| _ => v
|
||||
|
||||
|
||||
/-- Return true is `e` is a term that should be processed by the `match`-compiler using `casesValues` -/
|
||||
def isMatchValue (e : Expr) : Bool :=
|
||||
e.isNatLit || e.isCharLit || e.isStringLit || isFinPatLit e || isUIntPatLit e
|
||||
|
||||
end Lean.Meta
|
||||
12
stage0/src/library/compiler/erase_irrelevant.cpp
generated
12
stage0/src/library/compiler/erase_irrelevant.cpp
generated
|
|
@ -210,6 +210,16 @@ class erase_irrelevant_fn {
|
|||
binding_body(minor));
|
||||
}
|
||||
|
||||
expr elim_uint_cases(name const & uint_name, buffer<expr> & args) {
|
||||
lean_assert(args.size() == 3);
|
||||
expr major = visit(args[1]);
|
||||
expr minor = visit_minor(args[2]);
|
||||
lean_assert(is_lambda(minor));
|
||||
return
|
||||
::lean::mk_let(next_name(), mk_enf_object_type(), mk_app(mk_const(name(uint_name, "toNat")), major),
|
||||
binding_body(minor));
|
||||
}
|
||||
|
||||
expr decidable_to_bool_cases(buffer<expr> const & args) {
|
||||
lean_assert(args.size() == 5);
|
||||
expr const & major = args[2];
|
||||
|
|
@ -235,6 +245,8 @@ class erase_irrelevant_fn {
|
|||
return elim_int_cases(args);
|
||||
} else if (I_name == get_array_name()) {
|
||||
return elim_array_cases(args);
|
||||
} else if (I_name == get_uint8_name() || I_name == get_uint16_name() || I_name == get_uint32_name() || I_name == get_uint64_name() || I_name == get_usize_name()) {
|
||||
return elim_uint_cases(I_name, args);
|
||||
} else if (I_name == get_decidable_name()) {
|
||||
return decidable_to_bool_cases(args);
|
||||
} else {
|
||||
|
|
|
|||
1572
stage0/stdlib/Lean/Elab/Match.c
generated
1572
stage0/stdlib/Lean/Elab/Match.c
generated
File diff suppressed because it is too large
Load diff
6
stage0/stdlib/Lean/Elab/Structure.c
generated
6
stage0/stdlib/Lean/Elab/Structure.c
generated
|
|
@ -434,7 +434,6 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents_go
|
|||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___closed__2;
|
||||
static uint8_t l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___closed__2;
|
||||
lean_object* l_Lean_mkRecOn___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_mkAuxConstructions___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Array_contains___at_Lean_findField_x3f___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars_loop(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Command_instInhabitedStructFieldInfo___closed__3;
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -587,6 +586,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lea
|
|||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_isProjectionOf_x3f___closed__1;
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_go_match__4(lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___lambda__2___closed__4;
|
||||
uint8_t l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_copyNewFieldsFrom_mkCompositeField___spec__1___closed__2;
|
||||
lean_object* l_Lean_Name_getString_x21(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -13358,7 +13358,7 @@ x_4 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_containsFieldName(x_1
|
|||
if (x_4 == 0)
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_2, x_3);
|
||||
x_5 = l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(x_2, x_3);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
uint8_t x_6;
|
||||
|
|
@ -23095,7 +23095,7 @@ else
|
|||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_26;
|
||||
x_16 = lean_array_uget(x_5, x_7);
|
||||
x_26 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_2, x_16);
|
||||
x_26 = l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(x_2, x_16);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27;
|
||||
|
|
|
|||
754
stage0/stdlib/Lean/Meta/Match/Basic.c
generated
754
stage0/stdlib/Lean/Meta/Match/Basic.c
generated
|
|
@ -25,8 +25,6 @@ lean_object* l_List_mapM___at_Lean_Meta_Match_instantiatePatternMVars___spec__2(
|
|||
size_t l_USize_add(size_t, size_t);
|
||||
lean_object* l_Lean_Meta_addPPExplicitToExposeDiff(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__7;
|
||||
uint8_t l_Lean_Expr_isCharLit(lean_object*);
|
||||
uint8_t l_Lean_Expr_isNatLit(lean_object*);
|
||||
lean_object* l_List_foldl___at_Lean_Meta_Match_Pattern_toMessageData___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
|
|
@ -49,6 +47,7 @@ lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_Meta_Match_Pattern_toMessageData___closed__10;
|
||||
static lean_object* l_List_foldl___at_Lean_Meta_Match_Pattern_toMessageData___spec__1___closed__3;
|
||||
lean_object* l_Lean_Meta_Match_Pattern_applyFVarSubst_match__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Meta_isMatchValue(lean_object*);
|
||||
lean_object* lean_environment_find(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_Problem_toMessageData___lambda__1___closed__4;
|
||||
lean_object* l_Lean_Meta_Match_inaccessible_x3f___boxed(lean_object*);
|
||||
|
|
@ -234,7 +233,6 @@ static lean_object* l_Lean_Meta_Match_Alt_checkAndReplaceFVarId___closed__1;
|
|||
lean_object* l_List_mapTRAux___at_Lean_Meta_Match_Pattern_toMessageData___spec__2(lean_object*, lean_object*);
|
||||
lean_object* l_List_mapTRAux___at_Lean_Meta_Match_Pattern_applyFVarSubst___spec__3(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_foldr___at_Lean_Meta_Match_Pattern_hasExprMVar___spec__2___boxed(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isStringLit(lean_object*);
|
||||
lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_mapTRAux___at_Lean_Meta_Match_Alt_toMessageData___spec__1(lean_object*, lean_object*);
|
||||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
|
|
@ -8354,252 +8352,259 @@ x_11 = l_Lean_Expr_isAppOfArity(x_1, x_9, x_10);
|
|||
if (x_11 == 0)
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = l_Lean_Expr_isNatLit(x_1);
|
||||
x_12 = l_Lean_Meta_isMatchValue(x_1);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
uint8_t x_13;
|
||||
x_13 = l_Lean_Expr_isStringLit(x_1);
|
||||
x_13 = l_Lean_Expr_isFVar(x_1);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
uint8_t x_14;
|
||||
x_14 = l_Lean_Expr_isCharLit(x_1);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
uint8_t x_15;
|
||||
x_15 = l_Lean_Expr_isFVar(x_1);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16;
|
||||
lean_object* x_14;
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_16 = lean_whnf(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
x_14 = lean_whnf(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; uint8_t x_19;
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_19 = lean_expr_eqv(x_17, x_1);
|
||||
if (x_19 == 0)
|
||||
lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
x_17 = lean_expr_eqv(x_15, x_1);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_dec(x_1);
|
||||
x_1 = x_17;
|
||||
x_6 = x_18;
|
||||
x_1 = x_15;
|
||||
x_6 = x_16;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21;
|
||||
lean_dec(x_17);
|
||||
x_21 = l_Lean_Expr_getAppFn(x_1);
|
||||
if (lean_obj_tag(x_21) == 4)
|
||||
lean_object* x_19;
|
||||
lean_dec(x_15);
|
||||
x_19 = l_Lean_Expr_getAppFn(x_1);
|
||||
if (lean_obj_tag(x_19) == 4)
|
||||
{
|
||||
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;
|
||||
x_22 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_ctor_get(x_21, 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; lean_object* x_26;
|
||||
x_20 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_20);
|
||||
x_21 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_19);
|
||||
x_22 = lean_st_ref_get(x_5, x_16);
|
||||
x_23 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_21);
|
||||
x_24 = lean_st_ref_get(x_5, x_18);
|
||||
x_25 = lean_ctor_get(x_24, 0);
|
||||
x_24 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_22);
|
||||
x_25 = lean_ctor_get(x_23, 0);
|
||||
lean_inc(x_25);
|
||||
x_26 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_24);
|
||||
x_27 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_25);
|
||||
x_28 = lean_environment_find(x_27, x_22);
|
||||
if (lean_obj_tag(x_28) == 0)
|
||||
{
|
||||
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_dec(x_23);
|
||||
x_29 = l_Lean_indentExpr(x_1);
|
||||
x_30 = l_Lean_Meta_Match_toPattern___closed__2;
|
||||
x_26 = lean_environment_find(x_25, x_20);
|
||||
if (lean_obj_tag(x_26) == 0)
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
lean_dec(x_21);
|
||||
x_27 = l_Lean_indentExpr(x_1);
|
||||
x_28 = l_Lean_Meta_Match_toPattern___closed__2;
|
||||
x_29 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_28);
|
||||
lean_ctor_set(x_29, 1, x_27);
|
||||
x_30 = l_Lean_Meta_Match_Pattern_toMessageData___closed__8;
|
||||
x_31 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_31, 0, x_30);
|
||||
lean_ctor_set(x_31, 1, x_29);
|
||||
x_32 = l_Lean_Meta_Match_Pattern_toMessageData___closed__8;
|
||||
x_33 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_31);
|
||||
lean_ctor_set(x_33, 1, x_32);
|
||||
x_34 = l_Lean_throwError___at_Lean_Meta_Match_toPattern___spec__1(x_33, x_2, x_3, x_4, x_5, x_26);
|
||||
lean_ctor_set(x_31, 0, x_29);
|
||||
lean_ctor_set(x_31, 1, x_30);
|
||||
x_32 = l_Lean_throwError___at_Lean_Meta_Match_toPattern___spec__1(x_31, x_2, x_3, x_4, x_5, x_24);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_34;
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35;
|
||||
x_35 = lean_ctor_get(x_28, 0);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_28);
|
||||
if (lean_obj_tag(x_35) == 6)
|
||||
lean_object* x_33;
|
||||
x_33 = lean_ctor_get(x_26, 0);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_26);
|
||||
if (lean_obj_tag(x_33) == 6)
|
||||
{
|
||||
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; uint8_t x_48;
|
||||
x_36 = lean_ctor_get(x_35, 0);
|
||||
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; uint8_t x_46;
|
||||
x_34 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_33);
|
||||
x_35 = lean_unsigned_to_nat(0u);
|
||||
x_36 = l_Lean_Expr_getAppNumArgsAux(x_1, x_35);
|
||||
x_37 = l_Lean_Meta_Match_toPattern___closed__3;
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_35);
|
||||
x_37 = lean_unsigned_to_nat(0u);
|
||||
x_38 = l_Lean_Expr_getAppNumArgsAux(x_1, x_37);
|
||||
x_39 = l_Lean_Meta_Match_toPattern___closed__3;
|
||||
lean_inc(x_38);
|
||||
x_40 = lean_mk_array(x_38, x_39);
|
||||
x_41 = lean_unsigned_to_nat(1u);
|
||||
x_42 = lean_nat_sub(x_38, x_41);
|
||||
lean_dec(x_38);
|
||||
lean_inc(x_1);
|
||||
x_43 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_40, x_42);
|
||||
x_44 = lean_array_get_size(x_43);
|
||||
x_45 = lean_ctor_get(x_36, 3);
|
||||
lean_inc(x_45);
|
||||
x_46 = lean_ctor_get(x_36, 4);
|
||||
lean_inc(x_46);
|
||||
x_47 = lean_nat_add(x_45, x_46);
|
||||
lean_dec(x_46);
|
||||
lean_dec(x_45);
|
||||
x_48 = lean_nat_dec_eq(x_44, x_47);
|
||||
lean_dec(x_47);
|
||||
lean_dec(x_44);
|
||||
if (x_48 == 0)
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; uint8_t x_55;
|
||||
lean_dec(x_43);
|
||||
x_38 = lean_mk_array(x_36, x_37);
|
||||
x_39 = lean_unsigned_to_nat(1u);
|
||||
x_40 = lean_nat_sub(x_36, x_39);
|
||||
lean_dec(x_36);
|
||||
lean_dec(x_23);
|
||||
x_49 = l_Lean_indentExpr(x_1);
|
||||
x_50 = l_Lean_Meta_Match_toPattern___closed__2;
|
||||
lean_inc(x_1);
|
||||
x_41 = l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(x_1, x_38, x_40);
|
||||
x_42 = lean_array_get_size(x_41);
|
||||
x_43 = lean_ctor_get(x_34, 3);
|
||||
lean_inc(x_43);
|
||||
x_44 = lean_ctor_get(x_34, 4);
|
||||
lean_inc(x_44);
|
||||
x_45 = lean_nat_add(x_43, x_44);
|
||||
lean_dec(x_44);
|
||||
lean_dec(x_43);
|
||||
x_46 = lean_nat_dec_eq(x_42, x_45);
|
||||
lean_dec(x_45);
|
||||
lean_dec(x_42);
|
||||
if (x_46 == 0)
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53;
|
||||
lean_dec(x_41);
|
||||
lean_dec(x_34);
|
||||
lean_dec(x_21);
|
||||
x_47 = l_Lean_indentExpr(x_1);
|
||||
x_48 = l_Lean_Meta_Match_toPattern___closed__2;
|
||||
x_49 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_48);
|
||||
lean_ctor_set(x_49, 1, x_47);
|
||||
x_50 = l_Lean_Meta_Match_Pattern_toMessageData___closed__8;
|
||||
x_51 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_51, 1, x_49);
|
||||
x_52 = l_Lean_Meta_Match_Pattern_toMessageData___closed__8;
|
||||
x_53 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_53, 0, x_51);
|
||||
lean_ctor_set(x_53, 1, x_52);
|
||||
x_54 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_53, x_2, x_3, x_4, x_5, x_26);
|
||||
lean_ctor_set(x_51, 0, x_49);
|
||||
lean_ctor_set(x_51, 1, x_50);
|
||||
x_52 = l_Lean_throwError___at_Lean_Meta_withIncRecDepth___spec__1(x_51, x_2, x_3, x_4, x_5, x_24);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_55 = !lean_is_exclusive(x_54);
|
||||
if (x_55 == 0)
|
||||
x_53 = !lean_is_exclusive(x_52);
|
||||
if (x_53 == 0)
|
||||
{
|
||||
return x_54;
|
||||
return x_52;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_56 = lean_ctor_get(x_54, 0);
|
||||
x_57 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_57);
|
||||
lean_inc(x_56);
|
||||
lean_dec(x_54);
|
||||
x_58 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_56);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
lean_object* x_54; lean_object* x_55; lean_object* x_56;
|
||||
x_54 = lean_ctor_get(x_52, 0);
|
||||
x_55 = lean_ctor_get(x_52, 1);
|
||||
lean_inc(x_55);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_52);
|
||||
x_56 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_56, 0, x_54);
|
||||
lean_ctor_set(x_56, 1, x_55);
|
||||
return x_56;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_57; lean_object* x_58;
|
||||
lean_dec(x_1);
|
||||
x_57 = lean_box(0);
|
||||
x_58 = l_Lean_Meta_Match_toPattern___lambda__1(x_34, x_41, x_21, x_57, x_2, x_3, x_4, x_5, x_24);
|
||||
return x_58;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60;
|
||||
lean_dec(x_1);
|
||||
x_59 = lean_box(0);
|
||||
x_60 = l_Lean_Meta_Match_toPattern___lambda__1(x_36, x_43, x_23, x_59, x_2, x_3, x_4, x_5, x_26);
|
||||
return x_60;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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_dec(x_35);
|
||||
lean_dec(x_23);
|
||||
x_61 = l_Lean_indentExpr(x_1);
|
||||
x_62 = l_Lean_Meta_Match_toPattern___closed__2;
|
||||
x_63 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_63, 0, x_62);
|
||||
lean_ctor_set(x_63, 1, x_61);
|
||||
x_64 = l_Lean_Meta_Match_Pattern_toMessageData___closed__8;
|
||||
x_65 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_65, 0, x_63);
|
||||
lean_ctor_set(x_65, 1, x_64);
|
||||
x_66 = l_Lean_throwError___at_Lean_Meta_Match_toPattern___spec__1(x_65, x_2, x_3, x_4, x_5, x_26);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_66;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64;
|
||||
lean_dec(x_33);
|
||||
lean_dec(x_21);
|
||||
x_67 = l_Lean_indentExpr(x_1);
|
||||
x_68 = l_Lean_Meta_Match_toPattern___closed__2;
|
||||
x_59 = l_Lean_indentExpr(x_1);
|
||||
x_60 = l_Lean_Meta_Match_toPattern___closed__2;
|
||||
x_61 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_61, 0, x_60);
|
||||
lean_ctor_set(x_61, 1, x_59);
|
||||
x_62 = l_Lean_Meta_Match_Pattern_toMessageData___closed__8;
|
||||
x_63 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_63, 0, x_61);
|
||||
lean_ctor_set(x_63, 1, x_62);
|
||||
x_64 = l_Lean_throwError___at_Lean_Meta_Match_toPattern___spec__1(x_63, x_2, x_3, x_4, x_5, x_24);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_64;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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_dec(x_19);
|
||||
x_65 = l_Lean_indentExpr(x_1);
|
||||
x_66 = l_Lean_Meta_Match_toPattern___closed__2;
|
||||
x_67 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_67, 0, x_66);
|
||||
lean_ctor_set(x_67, 1, x_65);
|
||||
x_68 = l_Lean_Meta_Match_Pattern_toMessageData___closed__8;
|
||||
x_69 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_69, 0, x_68);
|
||||
lean_ctor_set(x_69, 1, x_67);
|
||||
x_70 = l_Lean_Meta_Match_Pattern_toMessageData___closed__8;
|
||||
x_71 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_71, 0, x_69);
|
||||
lean_ctor_set(x_71, 1, x_70);
|
||||
x_72 = l_Lean_throwError___at_Lean_Meta_Match_toPattern___spec__1(x_71, x_2, x_3, x_4, x_5, x_18);
|
||||
lean_ctor_set(x_69, 0, x_67);
|
||||
lean_ctor_set(x_69, 1, x_68);
|
||||
x_70 = l_Lean_throwError___at_Lean_Meta_Match_toPattern___spec__1(x_69, x_2, x_3, x_4, x_5, x_16);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_72;
|
||||
return x_70;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_73;
|
||||
uint8_t x_71;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_73 = !lean_is_exclusive(x_16);
|
||||
if (x_73 == 0)
|
||||
x_71 = !lean_is_exclusive(x_14);
|
||||
if (x_71 == 0)
|
||||
{
|
||||
return x_16;
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_74; lean_object* x_75; lean_object* x_76;
|
||||
x_74 = lean_ctor_get(x_16, 0);
|
||||
x_75 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_75);
|
||||
lean_inc(x_74);
|
||||
lean_dec(x_16);
|
||||
x_76 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_76, 0, x_74);
|
||||
lean_ctor_set(x_76, 1, x_75);
|
||||
return x_76;
|
||||
lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_72 = lean_ctor_get(x_14, 0);
|
||||
x_73 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_73);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_14);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_77; lean_object* x_78; lean_object* x_79;
|
||||
lean_object* x_75; lean_object* x_76; lean_object* x_77;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_77 = l_Lean_Expr_fvarId_x21(x_1);
|
||||
x_75 = l_Lean_Expr_fvarId_x21(x_1);
|
||||
lean_dec(x_1);
|
||||
x_78 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_78, 0, x_77);
|
||||
x_76 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_76, 0, x_75);
|
||||
x_77 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_77, 0, x_76);
|
||||
lean_ctor_set(x_77, 1, x_6);
|
||||
return x_77;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_78; lean_object* x_79;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_78 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_78, 0, x_1);
|
||||
x_79 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_79, 0, x_78);
|
||||
lean_ctor_set(x_79, 1, x_6);
|
||||
|
|
@ -8608,274 +8613,229 @@ return x_79;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_80 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_80, 0, x_1);
|
||||
x_81 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_81, 0, x_80);
|
||||
lean_ctor_set(x_81, 1, x_6);
|
||||
return x_81;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_82; lean_object* x_83;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_82 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_82, 0, x_1);
|
||||
x_83 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_83, 0, x_82);
|
||||
lean_ctor_set(x_83, 1, x_6);
|
||||
return x_83;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_84; lean_object* x_85;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_84 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_84, 0, x_1);
|
||||
x_85 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_85, 0, x_84);
|
||||
lean_ctor_set(x_85, 1, x_6);
|
||||
return x_85;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93;
|
||||
x_86 = lean_unsigned_to_nat(0u);
|
||||
x_87 = l_Lean_Expr_getAppNumArgsAux(x_1, x_86);
|
||||
x_88 = lean_unsigned_to_nat(2u);
|
||||
x_89 = lean_nat_sub(x_87, x_88);
|
||||
x_90 = lean_unsigned_to_nat(1u);
|
||||
x_91 = lean_nat_sub(x_89, x_90);
|
||||
lean_dec(x_89);
|
||||
x_92 = l_Lean_Expr_getRevArg_x21(x_1, x_91);
|
||||
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87;
|
||||
x_80 = lean_unsigned_to_nat(0u);
|
||||
x_81 = l_Lean_Expr_getAppNumArgsAux(x_1, x_80);
|
||||
x_82 = lean_unsigned_to_nat(2u);
|
||||
x_83 = lean_nat_sub(x_81, x_82);
|
||||
x_84 = lean_unsigned_to_nat(1u);
|
||||
x_85 = lean_nat_sub(x_83, x_84);
|
||||
lean_dec(x_83);
|
||||
x_86 = l_Lean_Expr_getRevArg_x21(x_1, x_85);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_93 = l_Lean_Meta_Match_toPattern(x_92, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_93) == 0)
|
||||
x_87 = l_Lean_Meta_Match_toPattern(x_86, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_87) == 0)
|
||||
{
|
||||
uint8_t x_94;
|
||||
x_94 = !lean_is_exclusive(x_93);
|
||||
if (x_94 == 0)
|
||||
uint8_t x_88;
|
||||
x_88 = !lean_is_exclusive(x_87);
|
||||
if (x_88 == 0)
|
||||
{
|
||||
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99;
|
||||
x_95 = lean_ctor_get(x_93, 0);
|
||||
x_96 = lean_ctor_get(x_93, 1);
|
||||
x_97 = lean_nat_sub(x_87, x_90);
|
||||
lean_dec(x_87);
|
||||
x_98 = lean_nat_sub(x_97, x_90);
|
||||
lean_dec(x_97);
|
||||
x_99 = l_Lean_Expr_getRevArg_x21(x_1, x_98);
|
||||
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93;
|
||||
x_89 = lean_ctor_get(x_87, 0);
|
||||
x_90 = lean_ctor_get(x_87, 1);
|
||||
x_91 = lean_nat_sub(x_81, x_84);
|
||||
lean_dec(x_81);
|
||||
x_92 = lean_nat_sub(x_91, x_84);
|
||||
lean_dec(x_91);
|
||||
x_93 = l_Lean_Expr_getRevArg_x21(x_1, x_92);
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_99) == 1)
|
||||
if (lean_obj_tag(x_93) == 1)
|
||||
{
|
||||
lean_object* x_100; lean_object* x_101;
|
||||
lean_object* x_94; lean_object* x_95;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_100 = lean_ctor_get(x_99, 0);
|
||||
lean_inc(x_100);
|
||||
lean_dec(x_99);
|
||||
x_101 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_101, 0, x_100);
|
||||
lean_ctor_set(x_101, 1, x_95);
|
||||
lean_ctor_set(x_93, 0, x_101);
|
||||
return x_93;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_102; lean_object* x_103;
|
||||
lean_dec(x_99);
|
||||
lean_free_object(x_93);
|
||||
lean_dec(x_95);
|
||||
x_102 = l_Lean_Meta_Match_toPattern___closed__5;
|
||||
x_103 = l_Lean_throwError___at_Lean_Meta_Match_toPattern___spec__1(x_102, x_2, x_3, x_4, x_5, x_96);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_103;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108;
|
||||
x_104 = lean_ctor_get(x_93, 0);
|
||||
x_105 = lean_ctor_get(x_93, 1);
|
||||
lean_inc(x_105);
|
||||
lean_inc(x_104);
|
||||
x_94 = lean_ctor_get(x_93, 0);
|
||||
lean_inc(x_94);
|
||||
lean_dec(x_93);
|
||||
x_106 = lean_nat_sub(x_87, x_90);
|
||||
x_95 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_95, 0, x_94);
|
||||
lean_ctor_set(x_95, 1, x_89);
|
||||
lean_ctor_set(x_87, 0, x_95);
|
||||
return x_87;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_96; lean_object* x_97;
|
||||
lean_dec(x_93);
|
||||
lean_free_object(x_87);
|
||||
lean_dec(x_89);
|
||||
x_96 = l_Lean_Meta_Match_toPattern___closed__5;
|
||||
x_97 = l_Lean_throwError___at_Lean_Meta_Match_toPattern___spec__1(x_96, x_2, x_3, x_4, x_5, x_90);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_97;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102;
|
||||
x_98 = lean_ctor_get(x_87, 0);
|
||||
x_99 = lean_ctor_get(x_87, 1);
|
||||
lean_inc(x_99);
|
||||
lean_inc(x_98);
|
||||
lean_dec(x_87);
|
||||
x_107 = lean_nat_sub(x_106, x_90);
|
||||
lean_dec(x_106);
|
||||
x_108 = l_Lean_Expr_getRevArg_x21(x_1, x_107);
|
||||
x_100 = lean_nat_sub(x_81, x_84);
|
||||
lean_dec(x_81);
|
||||
x_101 = lean_nat_sub(x_100, x_84);
|
||||
lean_dec(x_100);
|
||||
x_102 = l_Lean_Expr_getRevArg_x21(x_1, x_101);
|
||||
lean_dec(x_1);
|
||||
if (lean_obj_tag(x_108) == 1)
|
||||
if (lean_obj_tag(x_102) == 1)
|
||||
{
|
||||
lean_object* x_103; lean_object* x_104; lean_object* x_105;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_103 = lean_ctor_get(x_102, 0);
|
||||
lean_inc(x_103);
|
||||
lean_dec(x_102);
|
||||
x_104 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_104, 0, x_103);
|
||||
lean_ctor_set(x_104, 1, x_98);
|
||||
x_105 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_105, 0, x_104);
|
||||
lean_ctor_set(x_105, 1, x_99);
|
||||
return x_105;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_106; lean_object* x_107;
|
||||
lean_dec(x_102);
|
||||
lean_dec(x_98);
|
||||
x_106 = l_Lean_Meta_Match_toPattern___closed__5;
|
||||
x_107 = l_Lean_throwError___at_Lean_Meta_Match_toPattern___spec__1(x_106, x_2, x_3, x_4, x_5, x_99);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_107;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_108;
|
||||
lean_dec(x_81);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_108 = !lean_is_exclusive(x_87);
|
||||
if (x_108 == 0)
|
||||
{
|
||||
return x_87;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_109; lean_object* x_110; lean_object* x_111;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_109 = lean_ctor_get(x_108, 0);
|
||||
x_109 = lean_ctor_get(x_87, 0);
|
||||
x_110 = lean_ctor_get(x_87, 1);
|
||||
lean_inc(x_110);
|
||||
lean_inc(x_109);
|
||||
lean_dec(x_108);
|
||||
x_110 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_110, 0, x_109);
|
||||
lean_ctor_set(x_110, 1, x_104);
|
||||
x_111 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_111, 0, x_110);
|
||||
lean_ctor_set(x_111, 1, x_105);
|
||||
lean_dec(x_87);
|
||||
x_111 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_111, 0, x_109);
|
||||
lean_ctor_set(x_111, 1, x_110);
|
||||
return x_111;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_112; lean_object* x_113;
|
||||
lean_dec(x_108);
|
||||
lean_dec(x_104);
|
||||
x_112 = l_Lean_Meta_Match_toPattern___closed__5;
|
||||
x_113 = l_Lean_throwError___at_Lean_Meta_Match_toPattern___spec__1(x_112, x_2, x_3, x_4, x_5, x_105);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_113;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_114;
|
||||
lean_dec(x_87);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115;
|
||||
lean_dec(x_1);
|
||||
x_114 = !lean_is_exclusive(x_93);
|
||||
if (x_114 == 0)
|
||||
{
|
||||
return x_93;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_115; lean_object* x_116; lean_object* x_117;
|
||||
x_115 = lean_ctor_get(x_93, 0);
|
||||
x_116 = lean_ctor_get(x_93, 1);
|
||||
lean_inc(x_116);
|
||||
lean_inc(x_115);
|
||||
lean_dec(x_93);
|
||||
x_117 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_117, 0, x_115);
|
||||
lean_ctor_set(x_117, 1, x_116);
|
||||
return x_117;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121;
|
||||
lean_dec(x_1);
|
||||
x_118 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_118);
|
||||
x_112 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_112);
|
||||
lean_dec(x_8);
|
||||
x_119 = lean_ctor_get(x_118, 0);
|
||||
lean_inc(x_119);
|
||||
x_120 = lean_ctor_get(x_118, 1);
|
||||
x_113 = lean_ctor_get(x_112, 0);
|
||||
lean_inc(x_113);
|
||||
x_114 = lean_ctor_get(x_112, 1);
|
||||
lean_inc(x_114);
|
||||
lean_dec(x_112);
|
||||
x_115 = l_List_mapM___at_Lean_Meta_Match_toPattern___spec__3(x_114, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_115) == 0)
|
||||
{
|
||||
uint8_t x_116;
|
||||
x_116 = !lean_is_exclusive(x_115);
|
||||
if (x_116 == 0)
|
||||
{
|
||||
lean_object* x_117; lean_object* x_118;
|
||||
x_117 = lean_ctor_get(x_115, 0);
|
||||
x_118 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_118, 0, x_113);
|
||||
lean_ctor_set(x_118, 1, x_117);
|
||||
lean_ctor_set(x_115, 0, x_118);
|
||||
return x_115;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122;
|
||||
x_119 = lean_ctor_get(x_115, 0);
|
||||
x_120 = lean_ctor_get(x_115, 1);
|
||||
lean_inc(x_120);
|
||||
lean_dec(x_118);
|
||||
x_121 = l_List_mapM___at_Lean_Meta_Match_toPattern___spec__3(x_120, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_121) == 0)
|
||||
{
|
||||
uint8_t x_122;
|
||||
x_122 = !lean_is_exclusive(x_121);
|
||||
if (x_122 == 0)
|
||||
{
|
||||
lean_object* x_123; lean_object* x_124;
|
||||
x_123 = lean_ctor_get(x_121, 0);
|
||||
x_124 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_124, 0, x_119);
|
||||
lean_ctor_set(x_124, 1, x_123);
|
||||
lean_ctor_set(x_121, 0, x_124);
|
||||
return x_121;
|
||||
lean_inc(x_119);
|
||||
lean_dec(x_115);
|
||||
x_121 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_121, 0, x_113);
|
||||
lean_ctor_set(x_121, 1, x_119);
|
||||
x_122 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_122, 0, x_121);
|
||||
lean_ctor_set(x_122, 1, x_120);
|
||||
return x_122;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128;
|
||||
x_125 = lean_ctor_get(x_121, 0);
|
||||
x_126 = lean_ctor_get(x_121, 1);
|
||||
lean_inc(x_126);
|
||||
uint8_t x_123;
|
||||
lean_dec(x_113);
|
||||
x_123 = !lean_is_exclusive(x_115);
|
||||
if (x_123 == 0)
|
||||
{
|
||||
return x_115;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_124; lean_object* x_125; lean_object* x_126;
|
||||
x_124 = lean_ctor_get(x_115, 0);
|
||||
x_125 = lean_ctor_get(x_115, 1);
|
||||
lean_inc(x_125);
|
||||
lean_dec(x_121);
|
||||
x_127 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_127, 0, x_119);
|
||||
lean_ctor_set(x_127, 1, x_125);
|
||||
x_128 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_128, 0, x_127);
|
||||
lean_ctor_set(x_128, 1, x_126);
|
||||
return x_128;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_129;
|
||||
lean_dec(x_119);
|
||||
x_129 = !lean_is_exclusive(x_121);
|
||||
if (x_129 == 0)
|
||||
{
|
||||
return x_121;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_130; lean_object* x_131; lean_object* x_132;
|
||||
x_130 = lean_ctor_get(x_121, 0);
|
||||
x_131 = lean_ctor_get(x_121, 1);
|
||||
lean_inc(x_131);
|
||||
lean_inc(x_130);
|
||||
lean_dec(x_121);
|
||||
x_132 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_132, 0, x_130);
|
||||
lean_ctor_set(x_132, 1, x_131);
|
||||
return x_132;
|
||||
lean_inc(x_124);
|
||||
lean_dec(x_115);
|
||||
x_126 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_126, 0, x_124);
|
||||
lean_ctor_set(x_126, 1, x_125);
|
||||
return x_126;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_133; lean_object* x_134; lean_object* x_135;
|
||||
lean_object* x_127; lean_object* x_128; lean_object* x_129;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_133 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_133);
|
||||
x_127 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_127);
|
||||
lean_dec(x_7);
|
||||
x_134 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_134, 0, x_133);
|
||||
x_135 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_135, 0, x_134);
|
||||
lean_ctor_set(x_135, 1, x_6);
|
||||
return x_135;
|
||||
x_128 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_128, 0, x_127);
|
||||
x_129 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_129, 0, x_128);
|
||||
lean_ctor_set(x_129, 1, x_6);
|
||||
return x_129;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
701
stage0/stdlib/Lean/Meta/Match/CaseValues.c
generated
701
stage0/stdlib/Lean/Meta/Match/CaseValues.c
generated
|
|
@ -1,6 +1,6 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Meta.Match.CaseValues
|
||||
// Imports: Init Lean.Meta.Tactic.Subst Lean.Meta.Tactic.Clear
|
||||
// Imports: Init Lean.Meta.Tactic.Subst Lean.Meta.Tactic.Clear Lean.Meta.Match.Value
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
|
|
@ -53,6 +53,7 @@ static lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValu
|
|||
static lean_object* l_Lean_Meta_caseValues_loop___closed__4;
|
||||
lean_object* l_Lean_Meta_substCore(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_caseValues_loop___closed__8;
|
||||
lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getMVarType(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_tryClear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -79,6 +80,7 @@ lean_object* l_Lean_mkFVar(lean_object*);
|
|||
static lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__2___closed__2;
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_foldPatValue(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_caseValues_loop_match__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -658,431 +660,432 @@ lean_inc(x_1);
|
|||
x_17 = l_Lean_Meta_getMVarType(x_1, x_6, x_7, x_8, x_9, x_16);
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_18 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_17);
|
||||
x_20 = l_Lean_mkFVar(x_2);
|
||||
x_21 = l_Lean_Meta_foldPatValue(x_3);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_21 = l_Lean_Meta_mkEq(x_20, x_3, x_6, x_7, x_8, x_9, x_19);
|
||||
if (lean_obj_tag(x_21) == 0)
|
||||
x_22 = l_Lean_Meta_mkEq(x_20, x_21, x_6, x_7, x_8, x_9, x_19);
|
||||
if (lean_obj_tag(x_22) == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t 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;
|
||||
x_22 = lean_ctor_get(x_21, 0);
|
||||
lean_inc(x_22);
|
||||
x_23 = lean_ctor_get(x_21, 1);
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t 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;
|
||||
x_23 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_21);
|
||||
x_24 = lean_box(0);
|
||||
x_25 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__5;
|
||||
lean_inc(x_22);
|
||||
x_26 = l_Lean_mkApp(x_25, x_22);
|
||||
x_27 = 0;
|
||||
x_24 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_22);
|
||||
x_25 = lean_box(0);
|
||||
x_26 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__5;
|
||||
lean_inc(x_23);
|
||||
x_27 = l_Lean_mkApp(x_26, x_23);
|
||||
x_28 = 0;
|
||||
lean_inc(x_18);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_4);
|
||||
x_28 = l_Lean_mkForall(x_4, x_27, x_22, x_18);
|
||||
x_29 = l_Lean_mkForall(x_4, x_27, x_26, x_18);
|
||||
x_29 = l_Lean_mkForall(x_4, x_28, x_23, x_18);
|
||||
x_30 = l_Lean_mkForall(x_4, x_28, x_27, x_18);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_12);
|
||||
x_30 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_28, x_12, x_6, x_7, x_8, x_9, x_23);
|
||||
x_31 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_31);
|
||||
x_32 = lean_ctor_get(x_30, 1);
|
||||
x_31 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_29, x_12, x_6, x_7, x_8, x_9, x_24);
|
||||
x_32 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_30);
|
||||
x_33 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_31);
|
||||
lean_inc(x_6);
|
||||
x_33 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_29, x_12, x_6, x_7, x_8, x_9, x_32);
|
||||
x_34 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_34);
|
||||
x_35 = lean_ctor_get(x_33, 1);
|
||||
x_34 = l_Lean_Meta_mkFreshExprSyntheticOpaqueMVar(x_30, x_12, x_6, x_7, x_8, x_9, x_33);
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_33);
|
||||
x_36 = lean_box(0);
|
||||
x_37 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_37, 0, x_22);
|
||||
lean_inc(x_31);
|
||||
x_36 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_34);
|
||||
x_37 = lean_box(0);
|
||||
x_38 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_38, 0, x_31);
|
||||
lean_inc(x_34);
|
||||
lean_ctor_set(x_38, 0, x_23);
|
||||
lean_inc(x_32);
|
||||
x_39 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_39, 0, x_34);
|
||||
x_40 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__9;
|
||||
x_41 = lean_array_push(x_40, x_37);
|
||||
x_42 = lean_array_push(x_41, x_36);
|
||||
x_43 = lean_array_push(x_42, x_38);
|
||||
lean_ctor_set(x_39, 0, x_32);
|
||||
lean_inc(x_35);
|
||||
x_40 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_40, 0, x_35);
|
||||
x_41 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__9;
|
||||
x_42 = lean_array_push(x_41, x_38);
|
||||
x_43 = lean_array_push(x_42, x_37);
|
||||
x_44 = lean_array_push(x_43, x_39);
|
||||
x_45 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__7;
|
||||
x_45 = lean_array_push(x_44, x_40);
|
||||
x_46 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__7;
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_46 = l_Lean_Meta_mkAppOptM(x_45, x_44, x_6, x_7, x_8, x_9, x_35);
|
||||
if (lean_obj_tag(x_46) == 0)
|
||||
x_47 = l_Lean_Meta_mkAppOptM(x_46, x_45, x_6, x_7, x_8, x_9, x_36);
|
||||
if (lean_obj_tag(x_47) == 0)
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; lean_object* x_53;
|
||||
x_47 = lean_ctor_get(x_46, 0);
|
||||
lean_inc(x_47);
|
||||
x_48 = lean_ctor_get(x_46, 1);
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; uint8_t x_53; lean_object* x_54;
|
||||
x_48 = lean_ctor_get(x_47, 0);
|
||||
lean_inc(x_48);
|
||||
lean_dec(x_46);
|
||||
x_49 = l_Lean_Meta_assignExprMVar(x_1, x_47, x_6, x_7, x_8, x_9, x_48);
|
||||
x_50 = lean_ctor_get(x_49, 1);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_49);
|
||||
x_51 = l_Lean_Expr_mvarId_x21(x_34);
|
||||
lean_dec(x_34);
|
||||
x_52 = 1;
|
||||
x_49 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_47);
|
||||
x_50 = l_Lean_Meta_assignExprMVar(x_1, x_48, x_6, x_7, x_8, x_9, x_49);
|
||||
x_51 = lean_ctor_get(x_50, 1);
|
||||
lean_inc(x_51);
|
||||
lean_dec(x_50);
|
||||
x_52 = l_Lean_Expr_mvarId_x21(x_35);
|
||||
lean_dec(x_35);
|
||||
x_53 = 1;
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_53 = l_Lean_Meta_intro1Core(x_51, x_52, x_6, x_7, x_8, x_9, x_50);
|
||||
if (lean_obj_tag(x_53) == 0)
|
||||
x_54 = l_Lean_Meta_intro1Core(x_52, x_53, x_6, x_7, x_8, x_9, x_51);
|
||||
if (lean_obj_tag(x_54) == 0)
|
||||
{
|
||||
lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60;
|
||||
x_54 = lean_ctor_get(x_53, 0);
|
||||
lean_inc(x_54);
|
||||
x_55 = lean_ctor_get(x_53, 1);
|
||||
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61;
|
||||
x_55 = lean_ctor_get(x_54, 0);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_53);
|
||||
x_56 = lean_ctor_get(x_54, 0);
|
||||
x_56 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_56);
|
||||
x_57 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_57);
|
||||
lean_dec(x_54);
|
||||
x_57 = lean_ctor_get(x_55, 0);
|
||||
lean_inc(x_57);
|
||||
x_58 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_58);
|
||||
lean_dec(x_55);
|
||||
lean_inc(x_5);
|
||||
x_58 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_58, 0, x_57);
|
||||
lean_ctor_set(x_58, 1, x_56);
|
||||
lean_ctor_set(x_58, 2, x_5);
|
||||
x_59 = l_Lean_Expr_mvarId_x21(x_31);
|
||||
lean_dec(x_31);
|
||||
x_59 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_59, 0, x_58);
|
||||
lean_ctor_set(x_59, 1, x_57);
|
||||
lean_ctor_set(x_59, 2, x_5);
|
||||
x_60 = l_Lean_Expr_mvarId_x21(x_32);
|
||||
lean_dec(x_32);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_60 = l_Lean_Meta_intro1Core(x_59, x_52, x_6, x_7, x_8, x_9, x_55);
|
||||
if (lean_obj_tag(x_60) == 0)
|
||||
x_61 = l_Lean_Meta_intro1Core(x_60, x_53, x_6, x_7, x_8, x_9, x_56);
|
||||
if (lean_obj_tag(x_61) == 0)
|
||||
{
|
||||
lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; lean_object* x_66;
|
||||
x_61 = lean_ctor_get(x_60, 0);
|
||||
lean_inc(x_61);
|
||||
x_62 = lean_ctor_get(x_60, 1);
|
||||
lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67;
|
||||
x_62 = lean_ctor_get(x_61, 0);
|
||||
lean_inc(x_62);
|
||||
lean_dec(x_60);
|
||||
x_63 = lean_ctor_get(x_61, 0);
|
||||
x_63 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_63);
|
||||
x_64 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_64);
|
||||
lean_dec(x_61);
|
||||
x_65 = 0;
|
||||
x_64 = lean_ctor_get(x_62, 0);
|
||||
lean_inc(x_64);
|
||||
x_65 = lean_ctor_get(x_62, 1);
|
||||
lean_inc(x_65);
|
||||
lean_dec(x_62);
|
||||
x_66 = 0;
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_63);
|
||||
x_66 = l_Lean_Meta_substCore(x_64, x_63, x_65, x_5, x_65, x_65, x_6, x_7, x_8, x_9, x_62);
|
||||
if (lean_obj_tag(x_66) == 0)
|
||||
lean_inc(x_64);
|
||||
x_67 = l_Lean_Meta_substCore(x_65, x_64, x_66, x_5, x_66, x_66, x_6, x_7, x_8, x_9, x_63);
|
||||
if (lean_obj_tag(x_67) == 0)
|
||||
{
|
||||
lean_object* x_67; lean_object* x_68; uint8_t x_69;
|
||||
x_67 = lean_ctor_get(x_66, 0);
|
||||
lean_inc(x_67);
|
||||
x_68 = lean_ctor_get(x_66, 1);
|
||||
lean_object* x_68; lean_object* x_69; uint8_t x_70;
|
||||
x_68 = lean_ctor_get(x_67, 0);
|
||||
lean_inc(x_68);
|
||||
lean_dec(x_66);
|
||||
x_69 = !lean_is_exclusive(x_67);
|
||||
if (x_69 == 0)
|
||||
{
|
||||
lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74;
|
||||
x_70 = lean_ctor_get(x_67, 0);
|
||||
x_71 = lean_ctor_get(x_67, 1);
|
||||
x_72 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__11;
|
||||
lean_inc(x_63);
|
||||
lean_inc(x_70);
|
||||
x_73 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3), 9, 4);
|
||||
lean_closure_set(x_73, 0, x_70);
|
||||
lean_closure_set(x_73, 1, x_63);
|
||||
lean_closure_set(x_73, 2, x_72);
|
||||
lean_closure_set(x_73, 3, x_24);
|
||||
lean_inc(x_71);
|
||||
x_74 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(x_71, x_73, x_6, x_7, x_8, x_9, x_68);
|
||||
if (lean_obj_tag(x_74) == 0)
|
||||
{
|
||||
uint8_t x_75;
|
||||
x_75 = !lean_is_exclusive(x_74);
|
||||
if (x_75 == 0)
|
||||
{
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79;
|
||||
x_76 = lean_ctor_get(x_74, 0);
|
||||
lean_dec(x_76);
|
||||
x_77 = l_Lean_Meta_FVarSubst_get(x_70, x_63);
|
||||
x_78 = l_Lean_Expr_fvarId_x21(x_77);
|
||||
lean_dec(x_77);
|
||||
x_79 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_79, 0, x_71);
|
||||
lean_ctor_set(x_79, 1, x_78);
|
||||
lean_ctor_set(x_79, 2, x_70);
|
||||
lean_ctor_set(x_67, 1, x_58);
|
||||
lean_ctor_set(x_67, 0, x_79);
|
||||
lean_ctor_set(x_74, 0, x_67);
|
||||
return x_74;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84;
|
||||
x_80 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_80);
|
||||
lean_dec(x_74);
|
||||
x_81 = l_Lean_Meta_FVarSubst_get(x_70, x_63);
|
||||
x_82 = l_Lean_Expr_fvarId_x21(x_81);
|
||||
lean_dec(x_81);
|
||||
x_83 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_83, 0, x_71);
|
||||
lean_ctor_set(x_83, 1, x_82);
|
||||
lean_ctor_set(x_83, 2, x_70);
|
||||
lean_ctor_set(x_67, 1, x_58);
|
||||
lean_ctor_set(x_67, 0, x_83);
|
||||
x_84 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_84, 0, x_67);
|
||||
lean_ctor_set(x_84, 1, x_80);
|
||||
return x_84;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_85;
|
||||
lean_free_object(x_67);
|
||||
lean_dec(x_71);
|
||||
lean_dec(x_70);
|
||||
lean_dec(x_63);
|
||||
lean_dec(x_58);
|
||||
x_85 = !lean_is_exclusive(x_74);
|
||||
if (x_85 == 0)
|
||||
{
|
||||
return x_74;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_86; lean_object* x_87; lean_object* x_88;
|
||||
x_86 = lean_ctor_get(x_74, 0);
|
||||
x_87 = lean_ctor_get(x_74, 1);
|
||||
lean_inc(x_87);
|
||||
lean_inc(x_86);
|
||||
lean_dec(x_74);
|
||||
x_88 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_88, 0, x_86);
|
||||
lean_ctor_set(x_88, 1, x_87);
|
||||
return x_88;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93;
|
||||
x_89 = lean_ctor_get(x_67, 0);
|
||||
x_90 = lean_ctor_get(x_67, 1);
|
||||
lean_inc(x_90);
|
||||
lean_inc(x_89);
|
||||
x_69 = lean_ctor_get(x_67, 1);
|
||||
lean_inc(x_69);
|
||||
lean_dec(x_67);
|
||||
x_91 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__11;
|
||||
lean_inc(x_63);
|
||||
lean_inc(x_89);
|
||||
x_92 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3), 9, 4);
|
||||
lean_closure_set(x_92, 0, x_89);
|
||||
lean_closure_set(x_92, 1, x_63);
|
||||
lean_closure_set(x_92, 2, x_91);
|
||||
lean_closure_set(x_92, 3, x_24);
|
||||
x_70 = !lean_is_exclusive(x_68);
|
||||
if (x_70 == 0)
|
||||
{
|
||||
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75;
|
||||
x_71 = lean_ctor_get(x_68, 0);
|
||||
x_72 = lean_ctor_get(x_68, 1);
|
||||
x_73 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__11;
|
||||
lean_inc(x_64);
|
||||
lean_inc(x_71);
|
||||
x_74 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3), 9, 4);
|
||||
lean_closure_set(x_74, 0, x_71);
|
||||
lean_closure_set(x_74, 1, x_64);
|
||||
lean_closure_set(x_74, 2, x_73);
|
||||
lean_closure_set(x_74, 3, x_25);
|
||||
lean_inc(x_72);
|
||||
x_75 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(x_72, x_74, x_6, x_7, x_8, x_9, x_69);
|
||||
if (lean_obj_tag(x_75) == 0)
|
||||
{
|
||||
uint8_t x_76;
|
||||
x_76 = !lean_is_exclusive(x_75);
|
||||
if (x_76 == 0)
|
||||
{
|
||||
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80;
|
||||
x_77 = lean_ctor_get(x_75, 0);
|
||||
lean_dec(x_77);
|
||||
x_78 = l_Lean_Meta_FVarSubst_get(x_71, x_64);
|
||||
x_79 = l_Lean_Expr_fvarId_x21(x_78);
|
||||
lean_dec(x_78);
|
||||
x_80 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_80, 0, x_72);
|
||||
lean_ctor_set(x_80, 1, x_79);
|
||||
lean_ctor_set(x_80, 2, x_71);
|
||||
lean_ctor_set(x_68, 1, x_59);
|
||||
lean_ctor_set(x_68, 0, x_80);
|
||||
lean_ctor_set(x_75, 0, x_68);
|
||||
return x_75;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85;
|
||||
x_81 = lean_ctor_get(x_75, 1);
|
||||
lean_inc(x_81);
|
||||
lean_dec(x_75);
|
||||
x_82 = l_Lean_Meta_FVarSubst_get(x_71, x_64);
|
||||
x_83 = l_Lean_Expr_fvarId_x21(x_82);
|
||||
lean_dec(x_82);
|
||||
x_84 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_84, 0, x_72);
|
||||
lean_ctor_set(x_84, 1, x_83);
|
||||
lean_ctor_set(x_84, 2, x_71);
|
||||
lean_ctor_set(x_68, 1, x_59);
|
||||
lean_ctor_set(x_68, 0, x_84);
|
||||
x_85 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_85, 0, x_68);
|
||||
lean_ctor_set(x_85, 1, x_81);
|
||||
return x_85;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_86;
|
||||
lean_free_object(x_68);
|
||||
lean_dec(x_72);
|
||||
lean_dec(x_71);
|
||||
lean_dec(x_64);
|
||||
lean_dec(x_59);
|
||||
x_86 = !lean_is_exclusive(x_75);
|
||||
if (x_86 == 0)
|
||||
{
|
||||
return x_75;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_87; lean_object* x_88; lean_object* x_89;
|
||||
x_87 = lean_ctor_get(x_75, 0);
|
||||
x_88 = lean_ctor_get(x_75, 1);
|
||||
lean_inc(x_88);
|
||||
lean_inc(x_87);
|
||||
lean_dec(x_75);
|
||||
x_89 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_89, 0, x_87);
|
||||
lean_ctor_set(x_89, 1, x_88);
|
||||
return x_89;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94;
|
||||
x_90 = lean_ctor_get(x_68, 0);
|
||||
x_91 = lean_ctor_get(x_68, 1);
|
||||
lean_inc(x_91);
|
||||
lean_inc(x_90);
|
||||
x_93 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(x_90, x_92, x_6, x_7, x_8, x_9, x_68);
|
||||
if (lean_obj_tag(x_93) == 0)
|
||||
lean_dec(x_68);
|
||||
x_92 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___closed__11;
|
||||
lean_inc(x_64);
|
||||
lean_inc(x_90);
|
||||
x_93 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__3), 9, 4);
|
||||
lean_closure_set(x_93, 0, x_90);
|
||||
lean_closure_set(x_93, 1, x_64);
|
||||
lean_closure_set(x_93, 2, x_92);
|
||||
lean_closure_set(x_93, 3, x_25);
|
||||
lean_inc(x_91);
|
||||
x_94 = l_Lean_Meta_withMVarContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__1___rarg(x_91, x_93, x_6, x_7, x_8, x_9, x_69);
|
||||
if (lean_obj_tag(x_94) == 0)
|
||||
{
|
||||
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_93, 1);
|
||||
lean_inc(x_94);
|
||||
if (lean_is_exclusive(x_93)) {
|
||||
lean_ctor_release(x_93, 0);
|
||||
lean_ctor_release(x_93, 1);
|
||||
x_95 = x_93;
|
||||
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101;
|
||||
x_95 = lean_ctor_get(x_94, 1);
|
||||
lean_inc(x_95);
|
||||
if (lean_is_exclusive(x_94)) {
|
||||
lean_ctor_release(x_94, 0);
|
||||
lean_ctor_release(x_94, 1);
|
||||
x_96 = x_94;
|
||||
} else {
|
||||
lean_dec_ref(x_93);
|
||||
x_95 = lean_box(0);
|
||||
}
|
||||
x_96 = l_Lean_Meta_FVarSubst_get(x_89, x_63);
|
||||
x_97 = l_Lean_Expr_fvarId_x21(x_96);
|
||||
lean_dec(x_96);
|
||||
x_98 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_98, 0, x_90);
|
||||
lean_ctor_set(x_98, 1, x_97);
|
||||
lean_ctor_set(x_98, 2, x_89);
|
||||
x_99 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_99, 0, x_98);
|
||||
lean_ctor_set(x_99, 1, x_58);
|
||||
if (lean_is_scalar(x_95)) {
|
||||
x_100 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_100 = x_95;
|
||||
lean_dec_ref(x_94);
|
||||
x_96 = lean_box(0);
|
||||
}
|
||||
x_97 = l_Lean_Meta_FVarSubst_get(x_90, x_64);
|
||||
x_98 = l_Lean_Expr_fvarId_x21(x_97);
|
||||
lean_dec(x_97);
|
||||
x_99 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_99, 0, x_91);
|
||||
lean_ctor_set(x_99, 1, x_98);
|
||||
lean_ctor_set(x_99, 2, x_90);
|
||||
x_100 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_100, 0, x_99);
|
||||
lean_ctor_set(x_100, 1, x_94);
|
||||
return x_100;
|
||||
lean_ctor_set(x_100, 1, x_59);
|
||||
if (lean_is_scalar(x_96)) {
|
||||
x_101 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_101 = x_96;
|
||||
}
|
||||
lean_ctor_set(x_101, 0, x_100);
|
||||
lean_ctor_set(x_101, 1, x_95);
|
||||
return x_101;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104;
|
||||
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105;
|
||||
lean_dec(x_91);
|
||||
lean_dec(x_90);
|
||||
lean_dec(x_89);
|
||||
lean_dec(x_63);
|
||||
lean_dec(x_58);
|
||||
x_101 = lean_ctor_get(x_93, 0);
|
||||
lean_inc(x_101);
|
||||
x_102 = lean_ctor_get(x_93, 1);
|
||||
lean_dec(x_64);
|
||||
lean_dec(x_59);
|
||||
x_102 = lean_ctor_get(x_94, 0);
|
||||
lean_inc(x_102);
|
||||
if (lean_is_exclusive(x_93)) {
|
||||
lean_ctor_release(x_93, 0);
|
||||
lean_ctor_release(x_93, 1);
|
||||
x_103 = x_93;
|
||||
x_103 = lean_ctor_get(x_94, 1);
|
||||
lean_inc(x_103);
|
||||
if (lean_is_exclusive(x_94)) {
|
||||
lean_ctor_release(x_94, 0);
|
||||
lean_ctor_release(x_94, 1);
|
||||
x_104 = x_94;
|
||||
} else {
|
||||
lean_dec_ref(x_93);
|
||||
x_103 = lean_box(0);
|
||||
lean_dec_ref(x_94);
|
||||
x_104 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_103)) {
|
||||
x_104 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_104)) {
|
||||
x_105 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_104 = x_103;
|
||||
x_105 = x_104;
|
||||
}
|
||||
lean_ctor_set(x_104, 0, x_101);
|
||||
lean_ctor_set(x_104, 1, x_102);
|
||||
return x_104;
|
||||
lean_ctor_set(x_105, 0, x_102);
|
||||
lean_ctor_set(x_105, 1, x_103);
|
||||
return x_105;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_105;
|
||||
lean_dec(x_63);
|
||||
lean_dec(x_58);
|
||||
uint8_t x_106;
|
||||
lean_dec(x_64);
|
||||
lean_dec(x_59);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_105 = !lean_is_exclusive(x_66);
|
||||
if (x_105 == 0)
|
||||
x_106 = !lean_is_exclusive(x_67);
|
||||
if (x_106 == 0)
|
||||
{
|
||||
return x_66;
|
||||
return x_67;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_106; lean_object* x_107; lean_object* x_108;
|
||||
x_106 = lean_ctor_get(x_66, 0);
|
||||
x_107 = lean_ctor_get(x_66, 1);
|
||||
lean_object* x_107; lean_object* x_108; lean_object* x_109;
|
||||
x_107 = lean_ctor_get(x_67, 0);
|
||||
x_108 = lean_ctor_get(x_67, 1);
|
||||
lean_inc(x_108);
|
||||
lean_inc(x_107);
|
||||
lean_inc(x_106);
|
||||
lean_dec(x_66);
|
||||
x_108 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_108, 0, x_106);
|
||||
lean_ctor_set(x_108, 1, x_107);
|
||||
return x_108;
|
||||
lean_dec(x_67);
|
||||
x_109 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_109, 0, x_107);
|
||||
lean_ctor_set(x_109, 1, x_108);
|
||||
return x_109;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_109;
|
||||
lean_dec(x_58);
|
||||
uint8_t x_110;
|
||||
lean_dec(x_59);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
x_109 = !lean_is_exclusive(x_60);
|
||||
if (x_109 == 0)
|
||||
x_110 = !lean_is_exclusive(x_61);
|
||||
if (x_110 == 0)
|
||||
{
|
||||
return x_60;
|
||||
return x_61;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_110; lean_object* x_111; lean_object* x_112;
|
||||
x_110 = lean_ctor_get(x_60, 0);
|
||||
x_111 = lean_ctor_get(x_60, 1);
|
||||
lean_object* x_111; lean_object* x_112; lean_object* x_113;
|
||||
x_111 = lean_ctor_get(x_61, 0);
|
||||
x_112 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_112);
|
||||
lean_inc(x_111);
|
||||
lean_inc(x_110);
|
||||
lean_dec(x_60);
|
||||
x_112 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_112, 0, x_110);
|
||||
lean_ctor_set(x_112, 1, x_111);
|
||||
return x_112;
|
||||
lean_dec(x_61);
|
||||
x_113 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_113, 0, x_111);
|
||||
lean_ctor_set(x_113, 1, x_112);
|
||||
return x_113;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_113;
|
||||
lean_dec(x_31);
|
||||
uint8_t x_114;
|
||||
lean_dec(x_32);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
x_113 = !lean_is_exclusive(x_53);
|
||||
if (x_113 == 0)
|
||||
x_114 = !lean_is_exclusive(x_54);
|
||||
if (x_114 == 0)
|
||||
{
|
||||
return x_53;
|
||||
return x_54;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_114; lean_object* x_115; lean_object* x_116;
|
||||
x_114 = lean_ctor_get(x_53, 0);
|
||||
x_115 = lean_ctor_get(x_53, 1);
|
||||
lean_object* x_115; lean_object* x_116; lean_object* x_117;
|
||||
x_115 = lean_ctor_get(x_54, 0);
|
||||
x_116 = lean_ctor_get(x_54, 1);
|
||||
lean_inc(x_116);
|
||||
lean_inc(x_115);
|
||||
lean_inc(x_114);
|
||||
lean_dec(x_53);
|
||||
x_116 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_116, 0, x_114);
|
||||
lean_ctor_set(x_116, 1, x_115);
|
||||
return x_116;
|
||||
lean_dec(x_54);
|
||||
x_117 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_117, 0, x_115);
|
||||
lean_ctor_set(x_117, 1, x_116);
|
||||
return x_117;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_117;
|
||||
lean_dec(x_34);
|
||||
lean_dec(x_31);
|
||||
uint8_t x_118;
|
||||
lean_dec(x_35);
|
||||
lean_dec(x_32);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_1);
|
||||
x_117 = !lean_is_exclusive(x_46);
|
||||
if (x_117 == 0)
|
||||
x_118 = !lean_is_exclusive(x_47);
|
||||
if (x_118 == 0)
|
||||
{
|
||||
return x_46;
|
||||
return x_47;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_118; lean_object* x_119; lean_object* x_120;
|
||||
x_118 = lean_ctor_get(x_46, 0);
|
||||
x_119 = lean_ctor_get(x_46, 1);
|
||||
lean_object* x_119; lean_object* x_120; lean_object* x_121;
|
||||
x_119 = lean_ctor_get(x_47, 0);
|
||||
x_120 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_120);
|
||||
lean_inc(x_119);
|
||||
lean_inc(x_118);
|
||||
lean_dec(x_46);
|
||||
x_120 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_120, 0, x_118);
|
||||
lean_ctor_set(x_120, 1, x_119);
|
||||
return x_120;
|
||||
lean_dec(x_47);
|
||||
x_121 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_121, 0, x_119);
|
||||
lean_ctor_set(x_121, 1, x_120);
|
||||
return x_121;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_121;
|
||||
uint8_t x_122;
|
||||
lean_dec(x_18);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -1092,29 +1095,29 @@ lean_dec(x_6);
|
|||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
x_121 = !lean_is_exclusive(x_21);
|
||||
if (x_121 == 0)
|
||||
x_122 = !lean_is_exclusive(x_22);
|
||||
if (x_122 == 0)
|
||||
{
|
||||
return x_21;
|
||||
return x_22;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_122; lean_object* x_123; lean_object* x_124;
|
||||
x_122 = lean_ctor_get(x_21, 0);
|
||||
x_123 = lean_ctor_get(x_21, 1);
|
||||
lean_object* x_123; lean_object* x_124; lean_object* x_125;
|
||||
x_123 = lean_ctor_get(x_22, 0);
|
||||
x_124 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_124);
|
||||
lean_inc(x_123);
|
||||
lean_inc(x_122);
|
||||
lean_dec(x_21);
|
||||
x_124 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_124, 0, x_122);
|
||||
lean_ctor_set(x_124, 1, x_123);
|
||||
return x_124;
|
||||
lean_dec(x_22);
|
||||
x_125 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_125, 0, x_123);
|
||||
lean_ctor_set(x_125, 1, x_124);
|
||||
return x_125;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_125;
|
||||
uint8_t x_126;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -1122,32 +1125,31 @@ lean_dec(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_125 = !lean_is_exclusive(x_17);
|
||||
if (x_125 == 0)
|
||||
x_126 = !lean_is_exclusive(x_17);
|
||||
if (x_126 == 0)
|
||||
{
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_126; lean_object* x_127; lean_object* x_128;
|
||||
x_126 = lean_ctor_get(x_17, 0);
|
||||
x_127 = lean_ctor_get(x_17, 1);
|
||||
lean_object* x_127; lean_object* x_128; lean_object* x_129;
|
||||
x_127 = lean_ctor_get(x_17, 0);
|
||||
x_128 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_128);
|
||||
lean_inc(x_127);
|
||||
lean_inc(x_126);
|
||||
lean_dec(x_17);
|
||||
x_128 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_128, 0, x_126);
|
||||
lean_ctor_set(x_128, 1, x_127);
|
||||
return x_128;
|
||||
x_129 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_129, 0, x_127);
|
||||
lean_ctor_set(x_129, 1, x_128);
|
||||
return x_129;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_129;
|
||||
uint8_t x_130;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -1155,58 +1157,56 @@ lean_dec(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_129 = !lean_is_exclusive(x_15);
|
||||
if (x_129 == 0)
|
||||
x_130 = !lean_is_exclusive(x_15);
|
||||
if (x_130 == 0)
|
||||
{
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_130; lean_object* x_131; lean_object* x_132;
|
||||
x_130 = lean_ctor_get(x_15, 0);
|
||||
x_131 = lean_ctor_get(x_15, 1);
|
||||
lean_object* x_131; lean_object* x_132; lean_object* x_133;
|
||||
x_131 = lean_ctor_get(x_15, 0);
|
||||
x_132 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_132);
|
||||
lean_inc(x_131);
|
||||
lean_inc(x_130);
|
||||
lean_dec(x_15);
|
||||
x_132 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_132, 0, x_130);
|
||||
lean_ctor_set(x_132, 1, x_131);
|
||||
return x_132;
|
||||
x_133 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_133, 0, x_131);
|
||||
lean_ctor_set(x_133, 1, x_132);
|
||||
return x_133;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_133;
|
||||
uint8_t x_134;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_133 = !lean_is_exclusive(x_11);
|
||||
if (x_133 == 0)
|
||||
x_134 = !lean_is_exclusive(x_11);
|
||||
if (x_134 == 0)
|
||||
{
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_134; lean_object* x_135; lean_object* x_136;
|
||||
x_134 = lean_ctor_get(x_11, 0);
|
||||
x_135 = lean_ctor_get(x_11, 1);
|
||||
lean_object* x_135; lean_object* x_136; lean_object* x_137;
|
||||
x_135 = lean_ctor_get(x_11, 0);
|
||||
x_136 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_136);
|
||||
lean_inc(x_135);
|
||||
lean_inc(x_134);
|
||||
lean_dec(x_11);
|
||||
x_136 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_136, 0, x_134);
|
||||
lean_ctor_set(x_136, 1, x_135);
|
||||
return x_136;
|
||||
x_137 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_137, 0, x_135);
|
||||
lean_ctor_set(x_137, 1, x_136);
|
||||
return x_137;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1216,7 +1216,7 @@ _start:
|
|||
{
|
||||
lean_object* x_11; lean_object* x_12;
|
||||
lean_inc(x_1);
|
||||
x_11 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4), 10, 5);
|
||||
x_11 = lean_alloc_closure((void*)(l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___boxed), 10, 5);
|
||||
lean_closure_set(x_11, 0, x_1);
|
||||
lean_closure_set(x_11, 1, x_2);
|
||||
lean_closure_set(x_11, 2, x_3);
|
||||
|
|
@ -1238,6 +1238,15 @@ lean_dec(x_3);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l___private_Lean_Meta_Match_CaseValues_0__Lean_Meta_caseValueAux___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_3);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_caseValue___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -2133,6 +2142,7 @@ return x_13;
|
|||
lean_object* initialize_Init(lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Subst(lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Tactic_Clear(lean_object*);
|
||||
lean_object* initialize_Lean_Meta_Match_Value(lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
lean_object* initialize_Lean_Meta_Match_CaseValues(lean_object* w) {
|
||||
lean_object * res;
|
||||
|
|
@ -2147,6 +2157,9 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_Meta_Tactic_Clear(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Meta_Match_Value(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_Meta_CaseValueSubgoal_subst___default = _init_l_Lean_Meta_CaseValueSubgoal_subst___default();
|
||||
lean_mark_persistent(l_Lean_Meta_CaseValueSubgoal_subst___default);
|
||||
l_Lean_Meta_instInhabitedCaseValueSubgoal___closed__1 = _init_l_Lean_Meta_instInhabitedCaseValueSubgoal___closed__1();
|
||||
|
|
|
|||
57
stage0/stdlib/Lean/Meta/Match/MatchEqs.c
generated
57
stage0/stdlib/Lean/Meta/Match/MatchEqs.c
generated
|
|
@ -26,7 +26,6 @@ static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_repr
|
|||
lean_object* l_Array_filterMapM___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_mvarId_x21(lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_proveCondEqThm_go_match__1(lean_object*);
|
||||
uint8_t l_Lean_Expr_isCharLit(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injenctionAny___lambda__2___closed__2;
|
||||
lean_object* l_Lean_registerTraceClass(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isNatLit(lean_object*);
|
||||
|
|
@ -80,6 +79,7 @@ lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(lean_object*,
|
|||
lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Basic_0__Lean_Meta_withLocalDeclImp___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Meta_isMatchValue(lean_object*);
|
||||
lean_object* l_Lean_mkMVar(lean_object*);
|
||||
size_t l_USize_sub(size_t, size_t);
|
||||
lean_object* lean_environment_find(lean_object*, lean_object*);
|
||||
|
|
@ -291,7 +291,6 @@ extern lean_object* l_Lean_instInhabitedExpr;
|
|||
lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkBaseNameFor_go___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forIn_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs_simpEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs_simpEqs_match__1(lean_object*);
|
||||
uint8_t l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_isMatchValue(lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_casesOnStuckLHS___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_contradiction(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_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*);
|
||||
|
|
@ -375,7 +374,7 @@ static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_repr
|
|||
lean_object* l_Lean_throwError___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_shouldCopyArgs___closed__3;
|
||||
lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_101_(lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_4578_(lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_4568_(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoalLoop___lambda__1___closed__3;
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_reprMatchEqns____x40_Lean_Meta_Match_MatchEqs___hyg_42____closed__26;
|
||||
lean_object* l_Lean_Meta_tryClearMany(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -447,7 +446,6 @@ static lean_object* l_Lean_Meta_Match_proveCondEqThm___lambda__3___closed__2;
|
|||
lean_object* l_Lean_Meta_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_Format_joinSep___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_reprMatchEqns____x40_Lean_Meta_Match_MatchEqs___hyg_42____spec__2(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Match_proveCondEqThm___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isStringLit(lean_object*);
|
||||
lean_object* l_Lean_Meta_instantiateMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_reprMatchEqns____x40_Lean_Meta_Match_MatchEqs___hyg_42____closed__3;
|
||||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
|
|
@ -549,7 +547,6 @@ lean_object* l_Lean_Meta_instInhabitedMetaM___boxed(lean_object*, lean_object*,
|
|||
lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Meta_Tactic_Simp_SimpLemmas_0__Lean_Meta_isPerm___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor_match__4___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_isMatchValue___boxed(lean_object*);
|
||||
lean_object* l_Lean_Meta_withIncRecDepth___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__14___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_repr___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_reprMatchEqns____x40_Lean_Meta_Match_MatchEqs___hyg_42____spec__1___closed__1;
|
||||
lean_object* l_Lean_Meta_Match_proveCondEqThm_go___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1420,46 +1417,6 @@ lean_dec(x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
uint8_t l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_isMatchValue(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = l_Lean_Expr_isNatLit(x_1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
uint8_t x_3;
|
||||
x_3 = l_Lean_Expr_isCharLit(x_1);
|
||||
if (x_3 == 0)
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = l_Lean_Expr_isStringLit(x_1);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = 1;
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_6;
|
||||
x_6 = 1;
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_isMatchValue___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_isMatchValue(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_toFVarsRHSArgs___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -2579,7 +2536,7 @@ lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpHs_simp
|
|||
_start:
|
||||
{
|
||||
lean_object* x_9; uint8_t x_383;
|
||||
x_383 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_isMatchValue(x_1);
|
||||
x_383 = l_Lean_Meta_isMatchValue(x_1);
|
||||
if (x_383 == 0)
|
||||
{
|
||||
uint8_t x_384;
|
||||
|
|
@ -2610,7 +2567,7 @@ return x_387;
|
|||
else
|
||||
{
|
||||
uint8_t x_388;
|
||||
x_388 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_isMatchValue(x_2);
|
||||
x_388 = l_Lean_Meta_isMatchValue(x_2);
|
||||
if (x_388 == 0)
|
||||
{
|
||||
uint8_t x_389;
|
||||
|
|
@ -11811,7 +11768,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_shouldCopyArgs___closed__3;
|
||||
x_2 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_shouldCopyArgs___closed__4;
|
||||
x_3 = lean_unsigned_to_nat(232u);
|
||||
x_3 = lean_unsigned_to_nat(229u);
|
||||
x_4 = lean_unsigned_to_nat(13u);
|
||||
x_5 = l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_shouldCopyArgs___closed__5;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -18759,7 +18716,7 @@ lean_dec(x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_4578_(lean_object* x_1) {
|
||||
lean_object* l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_4568_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
|
|
@ -19116,7 +19073,7 @@ l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_Match_getEquationsFor
|
|||
lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_Match_getEquationsFor___spec__1___closed__2);
|
||||
l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_Match_getEquationsFor___spec__1___closed__3 = _init_l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_Match_getEquationsFor___spec__1___closed__3();
|
||||
lean_mark_persistent(l_Lean_EnvExtensionInterfaceUnsafe_getState___at_Lean_Meta_Match_getEquationsFor___spec__1___closed__3);
|
||||
res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_4578_(lean_io_mk_world());
|
||||
res = l_Lean_Meta_Match_initFn____x40_Lean_Meta_Match_MatchEqs___hyg_4568_(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));
|
||||
|
|
|
|||
836
stage0/stdlib/Lean/Meta/Match/Value.c
generated
Normal file
836
stage0/stdlib/Lean/Meta/Match/Value.c
generated
Normal file
|
|
@ -0,0 +1,836 @@
|
|||
// Lean compiler output
|
||||
// Module: Lean.Meta.Match.Value
|
||||
// Imports: Init Lean.Expr
|
||||
#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
|
||||
uint8_t l_Lean_Meta_isUIntPatLit(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2;
|
||||
size_t l_USize_add(size_t, size_t);
|
||||
uint8_t l_Lean_Expr_isCharLit(lean_object*);
|
||||
uint8_t l_Lean_Expr_isNatLit(lean_object*);
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
uint8_t l_USize_decEq(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
static lean_object* l_Lean_Meta_isUIntPatLit_x3f_match__1___rarg___closed__1;
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6;
|
||||
uint8_t l_Lean_Meta_isMatchValue(lean_object*);
|
||||
static lean_object* l_Lean_Meta_isFinPatLit___closed__2;
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
static lean_object* l_Lean_Meta_isFinPatLit___closed__3;
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13;
|
||||
lean_object* l_Lean_Expr_appArg_x21(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11;
|
||||
uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2(lean_object*, lean_object*, size_t, size_t);
|
||||
static lean_object* l_Lean_Meta_isFinPatLit___closed__4;
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4;
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8;
|
||||
lean_object* l_Lean_Meta_foldPatValue_match__1(lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames;
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9;
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1;
|
||||
static lean_object* l_Lean_Meta_isFinPatLit___closed__1;
|
||||
lean_object* l_Lean_Meta_isFinPatLit___boxed(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12;
|
||||
lean_object* l_Lean_Meta_foldPatValue_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1___boxed(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___boxed(lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l_Lean_Meta_foldPatValue(lean_object*);
|
||||
lean_object* l_Lean_Meta_foldPatValue___boxed(lean_object*);
|
||||
uint8_t l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7;
|
||||
lean_object* l_Lean_Meta_isUIntPatLit_x3f_match__1(lean_object*);
|
||||
lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
uint8_t l___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName(lean_object*);
|
||||
lean_object* l_Lean_mkApp(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isUIntPatLit___boxed(lean_object*);
|
||||
lean_object* l_Lean_Meta_isMatchValue___boxed(lean_object*);
|
||||
uint8_t l_Lean_Meta_isFinPatLit(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14;
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16;
|
||||
uint8_t l_Lean_Expr_isStringLit(lean_object*);
|
||||
lean_object* l_Lean_Meta_isUIntPatLit_x3f_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15;
|
||||
lean_object* l_Lean_Meta_isUIntPatLit_x3f___boxed(lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5;
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3;
|
||||
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isUIntPatLit_x3f(lean_object*);
|
||||
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10;
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("UInt8");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("UInt16");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("UInt32");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("UInt64");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("USize");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(5u);
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11;
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12;
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13;
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14;
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15;
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
uint8_t l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = x_3 == x_4;
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; uint8_t x_7;
|
||||
x_6 = lean_array_uget(x_2, x_3);
|
||||
x_7 = lean_name_eq(x_1, x_6);
|
||||
lean_dec(x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
size_t x_8; size_t x_9;
|
||||
x_8 = 1;
|
||||
x_9 = x_3 + x_8;
|
||||
x_3 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_11;
|
||||
x_11 = 1;
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = 0;
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
uint8_t l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; uint8_t x_5;
|
||||
x_3 = lean_array_get_size(x_1);
|
||||
x_4 = lean_unsigned_to_nat(0u);
|
||||
x_5 = lean_nat_dec_lt(x_4, x_3);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
uint8_t x_6;
|
||||
lean_dec(x_3);
|
||||
x_6 = 0;
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_7;
|
||||
x_7 = lean_nat_dec_le(x_3, x_3);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
uint8_t x_8;
|
||||
lean_dec(x_3);
|
||||
x_8 = 0;
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_9; size_t x_10; uint8_t x_11;
|
||||
x_9 = 0;
|
||||
x_10 = lean_usize_of_nat(x_3);
|
||||
lean_dec(x_3);
|
||||
x_11 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2(x_2, x_1, x_9, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
uint8_t l___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3;
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames;
|
||||
x_3 = l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(x_2, x_1);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8;
|
||||
x_5 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_6 = lean_unbox_usize(x_4);
|
||||
lean_dec(x_4);
|
||||
x_7 = l_Array_anyMUnsafe_any___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__2(x_1, x_2, x_5, x_6);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_8 = lean_box(x_7);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* l___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_isFinPatLit___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("Fin");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_isFinPatLit___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Meta_isFinPatLit___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_isFinPatLit___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("ofNat");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_isFinPatLit___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Meta_isFinPatLit___closed__2;
|
||||
x_2 = l_Lean_Meta_isFinPatLit___closed__3;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
uint8_t l_Lean_Meta_isFinPatLit(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; uint8_t x_4;
|
||||
x_2 = l_Lean_Meta_isFinPatLit___closed__4;
|
||||
x_3 = lean_unsigned_to_nat(2u);
|
||||
x_4 = l_Lean_Expr_isAppOfArity(x_1, x_2, x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = 0;
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_6; uint8_t x_7;
|
||||
x_6 = l_Lean_Expr_appArg_x21(x_1);
|
||||
x_7 = l_Lean_Expr_isNatLit(x_6);
|
||||
lean_dec(x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_isFinPatLit___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Meta_isFinPatLit(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Meta_isUIntPatLit_x3f_match__1___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("mk");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_isUIntPatLit_x3f_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 5)
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_4);
|
||||
if (lean_obj_tag(x_4) == 4)
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_5);
|
||||
if (lean_obj_tag(x_5) == 1)
|
||||
{
|
||||
lean_object* x_6; uint64_t x_7; lean_object* x_8; uint64_t x_9; lean_object* x_10; lean_object* x_11; uint64_t x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_6 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_ctor_get_uint64(x_1, sizeof(void*)*2);
|
||||
x_8 = lean_ctor_get(x_4, 1);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get_uint64(x_4, sizeof(void*)*2);
|
||||
lean_dec(x_4);
|
||||
x_10 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get_uint64(x_5, sizeof(void*)*2);
|
||||
lean_dec(x_5);
|
||||
x_13 = l_Lean_Meta_isUIntPatLit_x3f_match__1___rarg___closed__1;
|
||||
x_14 = lean_string_dec_eq(x_11, x_13);
|
||||
lean_dec(x_11);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_2);
|
||||
x_15 = lean_apply_1(x_3, x_1);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_16 = lean_box_uint64(x_12);
|
||||
x_17 = lean_box_uint64(x_9);
|
||||
x_18 = lean_box_uint64(x_7);
|
||||
x_19 = lean_apply_6(x_2, x_10, x_16, x_8, x_17, x_6, x_18);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
x_20 = lean_apply_1(x_3, x_1);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
x_21 = lean_apply_1(x_3, x_1);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22;
|
||||
lean_dec(x_2);
|
||||
x_22 = lean_apply_1(x_3, x_1);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_isUIntPatLit_x3f_match__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_isUIntPatLit_x3f_match__1___rarg), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_isUIntPatLit_x3f(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 5)
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
if (lean_obj_tag(x_2) == 4)
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_ctor_get(x_2, 0);
|
||||
if (lean_obj_tag(x_3) == 1)
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8;
|
||||
x_4 = lean_ctor_get(x_1, 1);
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
x_6 = lean_ctor_get(x_3, 1);
|
||||
x_7 = l_Lean_Meta_isUIntPatLit_x3f_match__1___rarg___closed__1;
|
||||
x_8 = lean_string_dec_eq(x_6, x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = lean_box(0);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_10; uint8_t x_11;
|
||||
x_10 = l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames;
|
||||
x_11 = l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(x_10, x_5);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = lean_box(0);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_13;
|
||||
x_13 = l_Lean_Meta_isFinPatLit(x_4);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = lean_box(0);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_15 = l_Lean_Expr_appArg_x21(x_4);
|
||||
lean_inc(x_5);
|
||||
x_16 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_16, 0, x_5);
|
||||
lean_ctor_set(x_16, 1, x_15);
|
||||
x_17 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18;
|
||||
x_18 = lean_box(0);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19;
|
||||
x_19 = lean_box(0);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20;
|
||||
x_20 = lean_box(0);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_isUIntPatLit_x3f___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_Meta_isUIntPatLit_x3f(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
uint8_t l_Lean_Meta_isUIntPatLit(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_Meta_isUIntPatLit_x3f(x_1);
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
uint8_t x_3;
|
||||
x_3 = 0;
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_4;
|
||||
lean_dec(x_2);
|
||||
x_4 = 1;
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_isUIntPatLit___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Meta_isUIntPatLit(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_foldPatValue_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
lean_dec(x_2);
|
||||
x_4 = lean_apply_1(x_3, x_1);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
lean_dec(x_3);
|
||||
x_5 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_1);
|
||||
x_6 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_7);
|
||||
lean_dec(x_5);
|
||||
x_8 = lean_apply_2(x_2, x_6, x_7);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_foldPatValue_match__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Meta_foldPatValue_match__1___rarg), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_foldPatValue(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_Meta_isUIntPatLit_x3f(x_1);
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_inc(x_1);
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
x_3 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_2);
|
||||
x_4 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_4);
|
||||
x_5 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_6 = l_Lean_Meta_isFinPatLit___closed__3;
|
||||
x_7 = lean_name_mk_string(x_4, x_6);
|
||||
x_8 = lean_box(0);
|
||||
x_9 = l_Lean_mkConst(x_7, x_8);
|
||||
x_10 = l_Lean_mkApp(x_9, x_5);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_foldPatValue___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lean_Meta_foldPatValue(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
uint8_t l_Lean_Meta_isMatchValue(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = l_Lean_Expr_isNatLit(x_1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
uint8_t x_3;
|
||||
x_3 = l_Lean_Expr_isCharLit(x_1);
|
||||
if (x_3 == 0)
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = l_Lean_Expr_isStringLit(x_1);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = l_Lean_Meta_isFinPatLit(x_1);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
uint8_t x_6;
|
||||
x_6 = l_Lean_Meta_isUIntPatLit(x_1);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_7;
|
||||
x_7 = 1;
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_8;
|
||||
x_8 = 1;
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_9;
|
||||
x_9 = 1;
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_10;
|
||||
x_10 = 1;
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Meta_isMatchValue___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Meta_isMatchValue(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(lean_object*);
|
||||
lean_object* initialize_Lean_Expr(lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
lean_object* initialize_Lean_Meta_Match_Value(lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Expr(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__1);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__2);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__3);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__4);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__5);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__6);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__7);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__8);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__9);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__10);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__11);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__12);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__13);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__14);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__15);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16 = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames___closed__16);
|
||||
l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames = _init_l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames();
|
||||
lean_mark_persistent(l___private_Lean_Meta_Match_Value_0__Lean_Meta_UIntTypeNames);
|
||||
l_Lean_Meta_isFinPatLit___closed__1 = _init_l_Lean_Meta_isFinPatLit___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_isFinPatLit___closed__1);
|
||||
l_Lean_Meta_isFinPatLit___closed__2 = _init_l_Lean_Meta_isFinPatLit___closed__2();
|
||||
lean_mark_persistent(l_Lean_Meta_isFinPatLit___closed__2);
|
||||
l_Lean_Meta_isFinPatLit___closed__3 = _init_l_Lean_Meta_isFinPatLit___closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_isFinPatLit___closed__3);
|
||||
l_Lean_Meta_isFinPatLit___closed__4 = _init_l_Lean_Meta_isFinPatLit___closed__4();
|
||||
lean_mark_persistent(l_Lean_Meta_isFinPatLit___closed__4);
|
||||
l_Lean_Meta_isUIntPatLit_x3f_match__1___rarg___closed__1 = _init_l_Lean_Meta_isUIntPatLit_x3f_match__1___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_isUIntPatLit_x3f_match__1___rarg___closed__1);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
@ -530,7 +530,6 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withMDataExpr___at_Lean_Pr
|
|||
lean_object* l_Lean_PrettyPrinter_Delaborator_delabForall(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Delaborator_delabOfNat___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabMVar___closed__4;
|
||||
uint8_t l_Array_contains___at_Lean_findField_x3f___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_getPPFunBinderTypes___boxed(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Delaborator_unexpandStructureInstance___lambda__3___closed__1;
|
||||
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Delaborator_delabOfNat___closed__6;
|
||||
|
|
@ -698,6 +697,7 @@ lean_object* l_Lean_PrettyPrinter_Delaborator_SubExpr_withNaryArg___at_Lean_Pret
|
|||
uint8_t l_List_elem___at_Lean_NameHashSet_insert___spec__2(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_forallTelescopeReducing___at_Lean_PrettyPrinter_Delaborator_getParamKinds_forallTelescopeArgs___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PrettyPrinter_Delaborator_delabDoElems(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_PrettyPrinter_Delaborator_Builtins_0__Lean_PrettyPrinter_Delaborator_unresolveQualifiedName___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Delaborator_delabDIte___lambda__1___closed__7;
|
||||
static lean_object* l_Lean_PrettyPrinter_Delaborator_delabAppImplicit___lambda__3___closed__5;
|
||||
|
|
@ -16090,7 +16090,7 @@ lean_dec(x_11);
|
|||
x_14 = l_Lean_Expr_bindingName_x21(x_12);
|
||||
lean_dec(x_12);
|
||||
x_15 = lean_erase_macro_scopes(x_14);
|
||||
x_16 = l_Array_contains___at_Lean_findField_x3f___spec__1(x_3, x_15);
|
||||
x_16 = l_Array_contains___at___private_Lean_Meta_Match_Value_0__Lean_Meta_isUIntTypeName___spec__1(x_3, x_15);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue