chore: update stage0
This commit is contained in:
parent
963b0f1270
commit
f896bb27d6
10 changed files with 1932 additions and 2009 deletions
14
stage0/src/Lean/Elab/Attributes.lean
generated
14
stage0/src/Lean/Elab/Attributes.lean
generated
|
|
@ -9,9 +9,9 @@ import Lean.MonadEnv
|
|||
namespace Lean.Elab
|
||||
|
||||
structure Attribute where
|
||||
scoped : Bool := false
|
||||
name : Name
|
||||
args : Syntax := Syntax.missing
|
||||
«scoped» : Bool := false
|
||||
name : Name
|
||||
args : Syntax := Syntax.missing
|
||||
|
||||
instance : ToFormat Attribute where
|
||||
format attr :=
|
||||
|
|
@ -22,18 +22,18 @@ instance : Inhabited Attribute where
|
|||
|
||||
def elabAttr {m} [Monad m] [MonadEnv m] [MonadExceptOf Exception m] [MonadRef m] [AddErrorMessageContext m] (stx : Syntax) : m Attribute := do
|
||||
-- optional "scoped" >> rawIdent >> many attrArg
|
||||
let scoped := false -- !stx[0].isNone
|
||||
let nameStx := stx[0] -- TODO: change to 1
|
||||
let «scoped» := !stx[0].isNone
|
||||
let nameStx := stx[1]
|
||||
let attrName ← match nameStx.isIdOrAtom? with
|
||||
| none => withRef nameStx $ throwError "identifier expected"
|
||||
| some str => pure $ Name.mkSimple str
|
||||
unless isAttribute (← getEnv) attrName do
|
||||
throwError! "unknown attribute [{attrName}]"
|
||||
let mut args := stx[1] -- TODO: change to 2
|
||||
let mut args := stx[2]
|
||||
-- the old frontend passes Syntax.missing for empty args, for reasons
|
||||
if args.getNumArgs == 0 then
|
||||
args := Syntax.missing
|
||||
pure { scoped := scoped, name := attrName, args := args }
|
||||
pure { «scoped» := «scoped», name := attrName, args := args }
|
||||
|
||||
-- sepBy1 attrInstance ", "
|
||||
def elabAttrs {m} [Monad m] [MonadEnv m] [MonadExceptOf Exception m] [MonadRef m] [AddErrorMessageContext m] (stx : Syntax) : m (Array Attribute) := do
|
||||
|
|
|
|||
6
stage0/src/Lean/Elab/Term.lean
generated
6
stage0/src/Lean/Elab/Term.lean
generated
|
|
@ -482,10 +482,10 @@ private def applyAttributesCore
|
|||
if applicationTime == attrImpl.applicationTime then
|
||||
apply attrImpl declName attr.scoped attr.args persistent
|
||||
where
|
||||
apply attrImpl declName scoped args persistent := do
|
||||
if !persistent && scoped then
|
||||
apply attrImpl declName «scoped» args persistent := do
|
||||
if !persistent && «scoped» then
|
||||
throwError "scoped attributes must be persistent"
|
||||
if scoped then
|
||||
if «scoped» then
|
||||
liftAttrM <| attrImpl.addScoped declName args
|
||||
else
|
||||
liftAttrM <| attrImpl.add declName args persistent
|
||||
|
|
|
|||
5
stage0/src/Lean/Parser/Term.lean
generated
5
stage0/src/Lean/Parser/Term.lean
generated
|
|
@ -152,10 +152,7 @@ def letDecl := nodeWithAntiquot "letDecl" `Lean.Parser.Term.letDecl (notFoll
|
|||
@[builtinTermParser] def «let*» := parser!:leadPrec withPosition ("let* " >> letDecl) >> optSemicolon termParser
|
||||
def attrArg : Parser := ident <|> strLit <|> numLit
|
||||
-- use `rawIdent` because of attribute names such as `instance`
|
||||
def attrInstance := ppGroup $ parser!
|
||||
(checkInsideQuot >> optional "scoped" >> rawIdent >> many (ppSpace >> attrArg))
|
||||
<|>
|
||||
(checkOutsideQuot >> rawIdent >> many (ppSpace >> attrArg))
|
||||
def attrInstance := ppGroup $ parser! optional "scoped" >> rawIdent >> many (ppSpace >> attrArg)
|
||||
|
||||
def attributes := parser! "@[" >> sepBy1 attrInstance ", " >> "]"
|
||||
def letRecDecls := sepBy1 (group (optional «attributes» >> letDecl)) ", "
|
||||
|
|
|
|||
385
stage0/stdlib/Lean/Elab/Attributes.c
generated
385
stage0/stdlib/Lean/Elab/Attributes.c
generated
|
|
@ -21,17 +21,18 @@ lean_object* lean_array_uget(lean_object*, size_t);
|
|||
lean_object* l_Lean_Format_pretty(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Attribute_args___default;
|
||||
lean_object* l_Lean_withRef___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__4(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_instInhabitedAttribute;
|
||||
extern lean_object* l_Array_empty___closed__1;
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute(lean_object*);
|
||||
extern lean_object* l_Lean_instInhabitedParserDescr___closed__1;
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_USize_decLt(size_t, size_t);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__2(lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttrs___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -62,20 +63,21 @@ lean_object* l_Lean_Elab_elabAttrs___rarg___lambda__1(lean_object*, lean_object*
|
|||
extern lean_object* l_Lean_Format_sbracket___closed__4;
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute___closed__2;
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute___closed__1;
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isNone(lean_object*);
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute___closed__3;
|
||||
extern lean_object* l___kind_term____x40_Init_Notation___hyg_11713____closed__10;
|
||||
lean_object* l_Lean_fmt___at_Lean_Level_LevelToFormat_toResult___spec__1(lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__1;
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_string_length(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Elab_Attribute_scoped___default;
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_to_int(lean_object*);
|
||||
lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*);
|
||||
|
|
@ -296,70 +298,73 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr_match__1___rarg), 3, 0);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_5 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_1);
|
||||
x_6 = lean_ctor_get(x_5, 1);
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_6 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_5);
|
||||
x_7 = 0;
|
||||
lean_dec(x_1);
|
||||
x_7 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_7);
|
||||
lean_dec(x_6);
|
||||
x_8 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_8, 0, x_2);
|
||||
lean_ctor_set(x_8, 1, x_3);
|
||||
lean_ctor_set_uint8(x_8, sizeof(void*)*2, x_7);
|
||||
x_9 = lean_apply_2(x_6, lean_box(0), x_8);
|
||||
lean_ctor_set(x_8, 0, x_3);
|
||||
lean_ctor_set(x_8, 1, x_4);
|
||||
lean_ctor_set_uint8(x_8, sizeof(void*)*2, x_2);
|
||||
x_9 = lean_apply_2(x_7, lean_box(0), x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
x_6 = lean_unsigned_to_nat(1u);
|
||||
x_7 = l_Lean_Syntax_getArg(x_1, x_6);
|
||||
x_8 = l_Lean_Syntax_getNumArgs(x_7);
|
||||
x_9 = lean_unsigned_to_nat(0u);
|
||||
x_10 = lean_nat_dec_eq(x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
if (x_10 == 0)
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_7 = lean_unsigned_to_nat(2u);
|
||||
x_8 = l_Lean_Syntax_getArg(x_1, x_7);
|
||||
x_9 = l_Lean_Syntax_getNumArgs(x_8);
|
||||
x_10 = lean_unsigned_to_nat(0u);
|
||||
x_11 = lean_nat_dec_eq(x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_11 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_11, 1);
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_12 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_11);
|
||||
x_13 = lean_box(0);
|
||||
x_14 = lean_apply_2(x_12, lean_box(0), x_13);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__1___boxed), 4, 3);
|
||||
lean_closure_set(x_15, 0, x_2);
|
||||
lean_closure_set(x_15, 1, x_3);
|
||||
lean_closure_set(x_15, 2, x_7);
|
||||
x_16 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_14, x_15);
|
||||
return x_16;
|
||||
x_13 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_12);
|
||||
x_14 = lean_box(0);
|
||||
x_15 = lean_apply_2(x_13, lean_box(0), x_14);
|
||||
x_16 = lean_box(x_3);
|
||||
x_17 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__1___boxed), 5, 4);
|
||||
lean_closure_set(x_17, 0, x_2);
|
||||
lean_closure_set(x_17, 1, x_16);
|
||||
lean_closure_set(x_17, 2, x_4);
|
||||
lean_closure_set(x_17, 3, x_8);
|
||||
x_18 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_15, x_17);
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
lean_dec(x_7);
|
||||
x_17 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_17);
|
||||
x_19 = lean_box(0);
|
||||
x_20 = lean_apply_2(x_18, lean_box(0), x_19);
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
lean_dec(x_8);
|
||||
x_19 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_19);
|
||||
x_21 = lean_box(0);
|
||||
x_22 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__1___boxed), 4, 3);
|
||||
lean_closure_set(x_22, 0, x_2);
|
||||
lean_closure_set(x_22, 1, x_3);
|
||||
lean_closure_set(x_22, 2, x_21);
|
||||
x_23 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_20, x_22);
|
||||
return x_23;
|
||||
x_22 = lean_apply_2(x_20, lean_box(0), x_21);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = lean_box(x_3);
|
||||
x_25 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__1___boxed), 5, 4);
|
||||
lean_closure_set(x_25, 0, x_2);
|
||||
lean_closure_set(x_25, 1, x_24);
|
||||
lean_closure_set(x_25, 2, x_4);
|
||||
lean_closure_set(x_25, 3, x_23);
|
||||
x_26 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_22, x_25);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -389,76 +394,80 @@ x_2 = l_Lean_stringToMessageData(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; uint8_t x_10;
|
||||
lean_object* x_10; lean_object* x_11; uint8_t x_12;
|
||||
x_10 = lean_box(x_3);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_9 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__2___boxed), 5, 4);
|
||||
lean_closure_set(x_9, 0, x_1);
|
||||
lean_closure_set(x_9, 1, x_2);
|
||||
lean_closure_set(x_9, 2, x_3);
|
||||
lean_closure_set(x_9, 3, x_4);
|
||||
x_10 = l_Lean_isAttribute(x_8, x_3);
|
||||
if (x_10 == 0)
|
||||
x_11 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__2___boxed), 6, 5);
|
||||
lean_closure_set(x_11, 0, x_1);
|
||||
lean_closure_set(x_11, 1, x_2);
|
||||
lean_closure_set(x_11, 2, x_10);
|
||||
lean_closure_set(x_11, 3, x_4);
|
||||
lean_closure_set(x_11, 4, x_5);
|
||||
x_12 = l_Lean_isAttribute(x_9, x_4);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_11 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_11, 0, x_3);
|
||||
x_12 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
x_13 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_11);
|
||||
x_14 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3;
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_13 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_13, 0, x_4);
|
||||
x_14 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
x_15 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_13);
|
||||
lean_ctor_set(x_15, 1, x_14);
|
||||
x_16 = l_Lean_throwError___rarg(x_2, x_5, x_6, x_7, lean_box(0), x_15);
|
||||
x_17 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_16, x_9);
|
||||
return x_17;
|
||||
lean_ctor_set(x_15, 0, x_14);
|
||||
lean_ctor_set(x_15, 1, x_13);
|
||||
x_16 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3;
|
||||
x_17 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_15);
|
||||
lean_ctor_set(x_17, 1, x_16);
|
||||
x_18 = l_Lean_throwError___rarg(x_2, x_6, x_7, x_8, lean_box(0), x_17);
|
||||
x_19 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_18, x_11);
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_3);
|
||||
x_18 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_4);
|
||||
x_20 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_2);
|
||||
x_19 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_18);
|
||||
x_20 = lean_box(0);
|
||||
x_21 = lean_apply_2(x_19, lean_box(0), x_20);
|
||||
x_22 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_21, x_9);
|
||||
return x_22;
|
||||
x_21 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_22 = lean_box(0);
|
||||
x_23 = lean_apply_2(x_21, lean_box(0), x_22);
|
||||
x_24 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_23, x_11);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_8 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_2, 0);
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_9 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_2);
|
||||
lean_inc(x_8);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__3___boxed), 8, 7);
|
||||
lean_closure_set(x_10, 0, x_3);
|
||||
lean_closure_set(x_10, 1, x_1);
|
||||
lean_closure_set(x_10, 2, x_7);
|
||||
lean_closure_set(x_10, 3, x_8);
|
||||
lean_closure_set(x_10, 4, x_4);
|
||||
lean_closure_set(x_10, 5, x_5);
|
||||
lean_closure_set(x_10, 6, x_6);
|
||||
x_11 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_9, x_10);
|
||||
return x_11;
|
||||
x_11 = lean_box(x_4);
|
||||
lean_inc(x_9);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__3___boxed), 9, 8);
|
||||
lean_closure_set(x_12, 0, x_3);
|
||||
lean_closure_set(x_12, 1, x_1);
|
||||
lean_closure_set(x_12, 2, x_11);
|
||||
lean_closure_set(x_12, 3, x_8);
|
||||
lean_closure_set(x_12, 4, x_9);
|
||||
lean_closure_set(x_12, 5, x_5);
|
||||
lean_closure_set(x_12, 6, x_6);
|
||||
lean_closure_set(x_12, 7, x_7);
|
||||
x_13 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_10, x_12);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_elabAttr___rarg___closed__1() {
|
||||
|
|
@ -492,63 +501,87 @@ return x_2;
|
|||
lean_object* l_Lean_Elab_elabAttr___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_7 = lean_unsigned_to_nat(0u);
|
||||
x_8 = l_Lean_Syntax_getArg(x_6, x_7);
|
||||
x_9 = l_Lean_Syntax_isNone(x_8);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_unsigned_to_nat(1u);
|
||||
x_11 = l_Lean_Syntax_getArg(x_6, x_10);
|
||||
x_12 = l_Lean_Syntax_isIdOrAtom_x3f(x_11);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
uint8_t x_32;
|
||||
x_32 = 1;
|
||||
x_13 = x_32;
|
||||
goto block_31;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_33;
|
||||
x_33 = 0;
|
||||
x_13 = x_33;
|
||||
goto block_31;
|
||||
}
|
||||
block_31:
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15;
|
||||
x_14 = lean_box(x_13);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_1);
|
||||
x_9 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__4), 7, 6);
|
||||
lean_closure_set(x_9, 0, x_1);
|
||||
lean_closure_set(x_9, 1, x_2);
|
||||
lean_closure_set(x_9, 2, x_6);
|
||||
lean_closure_set(x_9, 3, x_3);
|
||||
lean_closure_set(x_9, 4, x_4);
|
||||
lean_closure_set(x_9, 5, x_5);
|
||||
x_10 = l_Lean_Syntax_isIdOrAtom_x3f(x_8);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
x_15 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__4___boxed), 8, 7);
|
||||
lean_closure_set(x_15, 0, x_1);
|
||||
lean_closure_set(x_15, 1, x_2);
|
||||
lean_closure_set(x_15, 2, x_6);
|
||||
lean_closure_set(x_15, 3, x_14);
|
||||
lean_closure_set(x_15, 4, x_3);
|
||||
lean_closure_set(x_15, 5, x_4);
|
||||
lean_closure_set(x_15, 6, x_5);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_11 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_11);
|
||||
x_12 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_16 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_16);
|
||||
x_17 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
lean_inc(x_4);
|
||||
x_13 = l_Lean_throwError___rarg(x_1, x_3, x_4, x_5, lean_box(0), x_12);
|
||||
x_14 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lean_withRef___rarg___lambda__1___boxed), 4, 3);
|
||||
lean_closure_set(x_15, 0, x_8);
|
||||
lean_closure_set(x_15, 1, x_4);
|
||||
lean_closure_set(x_15, 2, x_13);
|
||||
lean_inc(x_11);
|
||||
x_16 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_14, x_15);
|
||||
x_17 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_16, x_9);
|
||||
return x_17;
|
||||
x_18 = l_Lean_throwError___rarg(x_1, x_3, x_4, x_5, lean_box(0), x_17);
|
||||
x_19 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_alloc_closure((void*)(l_Lean_withRef___rarg___lambda__1___boxed), 4, 3);
|
||||
lean_closure_set(x_20, 0, x_11);
|
||||
lean_closure_set(x_20, 1, x_4);
|
||||
lean_closure_set(x_20, 2, x_18);
|
||||
lean_inc(x_16);
|
||||
x_21 = lean_apply_4(x_16, lean_box(0), lean_box(0), x_19, x_20);
|
||||
x_22 = lean_apply_4(x_16, lean_box(0), lean_box(0), x_21, x_15);
|
||||
return x_22;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
lean_dec(x_8);
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_18 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_10);
|
||||
x_19 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_20);
|
||||
x_23 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_12);
|
||||
x_24 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_1);
|
||||
x_21 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_22 = lean_box(0);
|
||||
x_23 = lean_name_mk_string(x_22, x_18);
|
||||
x_24 = lean_apply_2(x_21, lean_box(0), x_23);
|
||||
x_25 = lean_apply_4(x_19, lean_box(0), lean_box(0), x_24, x_9);
|
||||
return x_25;
|
||||
x_26 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_25);
|
||||
x_27 = lean_box(0);
|
||||
x_28 = lean_name_mk_string(x_27, x_23);
|
||||
x_29 = lean_apply_2(x_26, lean_box(0), x_28);
|
||||
x_30 = lean_apply_4(x_24, lean_box(0), lean_box(0), x_29, x_15);
|
||||
return x_30;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -560,32 +593,48 @@ x_2 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg), 6, 0);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = l_Lean_Elab_elabAttr___rarg___lambda__1(x_1, x_2, x_3, x_4);
|
||||
lean_dec(x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_Elab_elabAttr___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5);
|
||||
uint8_t x_6; lean_object* x_7;
|
||||
x_6 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_7 = l_Lean_Elab_elabAttr___rarg___lambda__1(x_1, x_6, x_3, x_4, x_5);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_1);
|
||||
return x_6;
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9;
|
||||
x_9 = l_Lean_Elab_elabAttr___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_8);
|
||||
return x_9;
|
||||
uint8_t x_7; lean_object* x_8;
|
||||
x_7 = lean_unbox(x_3);
|
||||
lean_dec(x_3);
|
||||
x_8 = l_Lean_Elab_elabAttr___rarg___lambda__2(x_1, x_2, x_7, x_4, x_5, x_6);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_10; lean_object* x_11;
|
||||
x_10 = lean_unbox(x_3);
|
||||
lean_dec(x_3);
|
||||
x_11 = l_Lean_Elab_elabAttr___rarg___lambda__3(x_1, x_2, x_10, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_9);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___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) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_9; lean_object* x_10;
|
||||
x_9 = lean_unbox(x_4);
|
||||
lean_dec(x_4);
|
||||
x_10 = l_Lean_Elab_elabAttr___rarg___lambda__4(x_1, x_2, x_3, x_9, x_5, x_6, x_7, x_8);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
|
|
|
|||
58
stage0/stdlib/Lean/Elab/Declaration.c
generated
58
stage0/stdlib/Lean/Elab/Declaration.c
generated
|
|
@ -7625,7 +7625,7 @@ x_70 = lean_alloc_ctor(1, 2, 0);
|
|||
lean_ctor_set(x_70, 0, x_69);
|
||||
lean_ctor_set(x_70, 1, x_68);
|
||||
x_71 = lean_array_push(x_24, x_70);
|
||||
x_72 = lean_array_push(x_24, x_11);
|
||||
x_72 = lean_array_push(x_50, x_11);
|
||||
x_73 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_73, 0, x_39);
|
||||
lean_ctor_set(x_73, 1, x_25);
|
||||
|
|
@ -7699,7 +7699,7 @@ lean_inc(x_111);
|
|||
x_112 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_112);
|
||||
lean_dec(x_3);
|
||||
x_113 = l_Array_empty___closed__1;
|
||||
x_113 = l_Lean_Elab_Term_expandFunBinders_loop___closed__5;
|
||||
x_114 = lean_array_push(x_113, x_11);
|
||||
x_115 = l_myMacro____x40_Init_Notation___hyg_11163____closed__20;
|
||||
x_116 = lean_array_push(x_114, x_115);
|
||||
|
|
@ -7707,25 +7707,25 @@ x_117 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1161____closed__14;
|
|||
x_118 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_118, 0, x_117);
|
||||
lean_ctor_set(x_118, 1, x_116);
|
||||
x_119 = lean_array_push(x_113, x_118);
|
||||
x_120 = l_Lean_nullKind___closed__2;
|
||||
x_121 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_121, 0, x_120);
|
||||
lean_ctor_set(x_121, 1, x_119);
|
||||
x_122 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1161____closed__12;
|
||||
x_123 = lean_array_push(x_122, x_121);
|
||||
x_124 = l_myMacro____x40_Init_Data_Array_Basic___hyg_3438____closed__10;
|
||||
x_125 = lean_array_push(x_123, x_124);
|
||||
x_126 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1161____closed__9;
|
||||
x_127 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_127, 0, x_126);
|
||||
lean_ctor_set(x_127, 1, x_125);
|
||||
x_128 = lean_array_push(x_113, x_127);
|
||||
x_129 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_129, 0, x_120);
|
||||
lean_ctor_set(x_129, 1, x_128);
|
||||
x_130 = l_Lean_Elab_Term_expandFunBinders_loop___closed__5;
|
||||
x_131 = lean_array_push(x_130, x_129);
|
||||
x_119 = l_Array_empty___closed__1;
|
||||
x_120 = lean_array_push(x_119, x_118);
|
||||
x_121 = l_Lean_nullKind___closed__2;
|
||||
x_122 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_122, 0, x_121);
|
||||
lean_ctor_set(x_122, 1, x_120);
|
||||
x_123 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1161____closed__12;
|
||||
x_124 = lean_array_push(x_123, x_122);
|
||||
x_125 = l_myMacro____x40_Init_Data_Array_Basic___hyg_3438____closed__10;
|
||||
x_126 = lean_array_push(x_124, x_125);
|
||||
x_127 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1161____closed__9;
|
||||
x_128 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_128, 0, x_127);
|
||||
lean_ctor_set(x_128, 1, x_126);
|
||||
x_129 = lean_array_push(x_119, x_128);
|
||||
x_130 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_130, 0, x_121);
|
||||
lean_ctor_set(x_130, 1, x_129);
|
||||
x_131 = lean_array_push(x_113, x_130);
|
||||
x_132 = lean_array_push(x_131, x_115);
|
||||
x_133 = lean_array_push(x_132, x_115);
|
||||
x_134 = lean_array_push(x_133, x_115);
|
||||
|
|
@ -7734,7 +7734,7 @@ x_136 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1161____closed__6;
|
|||
x_137 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_137, 0, x_136);
|
||||
lean_ctor_set(x_137, 1, x_135);
|
||||
x_138 = lean_array_push(x_113, x_137);
|
||||
x_138 = lean_array_push(x_119, x_137);
|
||||
x_139 = l_Lean_Elab_Command_expandInitCmd___closed__11;
|
||||
lean_inc(x_111);
|
||||
lean_inc(x_112);
|
||||
|
|
@ -7747,7 +7747,7 @@ lean_ctor_set(x_144, 0, x_142);
|
|||
lean_ctor_set(x_144, 1, x_143);
|
||||
lean_ctor_set(x_144, 2, x_140);
|
||||
lean_ctor_set(x_144, 3, x_141);
|
||||
x_145 = lean_array_push(x_113, x_144);
|
||||
x_145 = lean_array_push(x_119, x_144);
|
||||
x_146 = lean_array_push(x_145, x_115);
|
||||
x_147 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1161____closed__24;
|
||||
x_148 = lean_alloc_ctor(1, 2, 0);
|
||||
|
|
@ -7766,7 +7766,7 @@ lean_ctor_set(x_155, 0, x_142);
|
|||
lean_ctor_set(x_155, 1, x_153);
|
||||
lean_ctor_set(x_155, 2, x_152);
|
||||
lean_ctor_set(x_155, 3, x_154);
|
||||
x_156 = lean_array_push(x_113, x_155);
|
||||
x_156 = lean_array_push(x_119, x_155);
|
||||
x_157 = l_myMacro____x40_Init_System_IO___hyg_2552____closed__16;
|
||||
x_158 = l_Lean_addMacroScope(x_112, x_157, x_111);
|
||||
x_159 = l_myMacro____x40_Init_System_IO___hyg_2552____closed__15;
|
||||
|
|
@ -7776,9 +7776,9 @@ lean_ctor_set(x_161, 0, x_142);
|
|||
lean_ctor_set(x_161, 1, x_159);
|
||||
lean_ctor_set(x_161, 2, x_158);
|
||||
lean_ctor_set(x_161, 3, x_160);
|
||||
x_162 = lean_array_push(x_113, x_161);
|
||||
x_162 = lean_array_push(x_119, x_161);
|
||||
x_163 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_163, 0, x_120);
|
||||
lean_ctor_set(x_163, 0, x_121);
|
||||
lean_ctor_set(x_163, 1, x_162);
|
||||
x_164 = lean_array_push(x_156, x_163);
|
||||
x_165 = l_myMacro____x40_Init_Notation___hyg_54____closed__8;
|
||||
|
|
@ -7791,11 +7791,11 @@ x_169 = l_Lean_expandExplicitBindersAux_loop___closed__8;
|
|||
x_170 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_170, 0, x_169);
|
||||
lean_ctor_set(x_170, 1, x_168);
|
||||
x_171 = lean_array_push(x_113, x_170);
|
||||
x_171 = lean_array_push(x_119, x_170);
|
||||
x_172 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_172, 0, x_120);
|
||||
lean_ctor_set(x_172, 0, x_121);
|
||||
lean_ctor_set(x_172, 1, x_171);
|
||||
x_173 = lean_array_push(x_130, x_172);
|
||||
x_173 = lean_array_push(x_113, x_172);
|
||||
x_174 = l_Lean_myMacro____x40_Init_NotationExtra___hyg_1161____closed__26;
|
||||
x_175 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_175, 0, x_174);
|
||||
|
|
|
|||
362
stage0/stdlib/Lean/Elab/LetRec.c
generated
362
stage0/stdlib/Lean/Elab/LetRec.c
generated
|
|
@ -23,7 +23,7 @@ extern lean_object* l_Lean_Elab_checkNotAlreadyDeclared___rarg___lambda__3___clo
|
|||
lean_object* l_Lean_Meta_mkForallFVarsImp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_name_mk_string(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
lean_object* l_Lean_Elab_Term_elabLetRec___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_getDeclName_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -39,7 +39,7 @@ extern lean_object* l_Array_empty___closed__1;
|
|||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkFreshExprMVar___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_append___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1___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_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
lean_object* lean_private_to_user_name(lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__3___closed__2;
|
||||
|
|
@ -65,7 +65,7 @@ lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_T
|
|||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Term_elabLetDeclCore___closed__2;
|
||||
lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_withAuxLocalDecls_loop(lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___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_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabLetRec___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_getLocalInstances___at_Lean_Elab_Term_elabFunBinders___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_List_foldr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__1(lean_object*, uint8_t, lean_object*);
|
||||
|
|
@ -113,7 +113,7 @@ lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_elabLetRecDeclValues
|
|||
lean_object* l_ReaderT_bind___at_Lean_Elab_Term_instMonadLogTermElabM___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabTermEnsuringType___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_KernelException_toMessageData___closed__3;
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -140,7 +140,7 @@ lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
|||
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withLocalDecl___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabImplicitLambda___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withDeclName___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__8___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView_match__1(lean_object*);
|
||||
|
|
@ -156,7 +156,7 @@ lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab
|
|||
lean_object* l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
|
||||
lean_object* l___regBuiltin_Lean_Elab_Term_elabLetRec___closed__1;
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_elabBinders___rarg(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_registerLetRecsToLift___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -456,78 +456,148 @@ x_7 = lean_alloc_closure((void*)(l_Lean_Elab_throwUnsupportedSyntax___at___priva
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_11 = 0;
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_12, 0, x_1);
|
||||
lean_ctor_set(x_12, 1, x_2);
|
||||
lean_ctor_set_uint8(x_12, sizeof(void*)*2, x_11);
|
||||
lean_ctor_set(x_12, 0, x_2);
|
||||
lean_ctor_set(x_12, 1, x_3);
|
||||
lean_ctor_set_uint8(x_12, sizeof(void*)*2, x_1);
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_10);
|
||||
lean_ctor_set(x_13, 1, x_11);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_11 = lean_unsigned_to_nat(1u);
|
||||
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
|
||||
x_13 = l_Lean_Syntax_getNumArgs(x_12);
|
||||
x_14 = lean_unsigned_to_nat(0u);
|
||||
x_15 = lean_nat_dec_eq(x_13, x_14);
|
||||
lean_dec(x_13);
|
||||
if (x_15 == 0)
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16;
|
||||
x_12 = lean_unsigned_to_nat(2u);
|
||||
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
|
||||
x_14 = l_Lean_Syntax_getNumArgs(x_13);
|
||||
x_15 = lean_unsigned_to_nat(0u);
|
||||
x_16 = lean_nat_dec_eq(x_14, x_15);
|
||||
lean_dec(x_14);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
x_16 = lean_box(0);
|
||||
x_17 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1(x_2, x_12, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_17;
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_box(0);
|
||||
x_18 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1(x_2, x_3, x_13, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
lean_dec(x_12);
|
||||
x_18 = lean_box(0);
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
lean_dec(x_13);
|
||||
x_19 = lean_box(0);
|
||||
x_20 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1(x_2, x_18, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_20;
|
||||
x_20 = lean_box(0);
|
||||
x_21 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1(x_2, x_3, x_19, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_10 = lean_st_ref_get(x_8, x_9);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_11 = lean_st_ref_get(x_9, x_10);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_14 = l_Lean_isAttribute(x_13, x_2);
|
||||
lean_dec(x_13);
|
||||
if (x_14 == 0)
|
||||
x_14 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_12);
|
||||
x_15 = l_Lean_isAttribute(x_14, x_3);
|
||||
lean_dec(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_15 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_15, 0, x_2);
|
||||
x_16 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
x_17 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_15);
|
||||
x_18 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3;
|
||||
x_19 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_17);
|
||||
lean_ctor_set(x_19, 1, x_18);
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_16 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_16, 0, x_3);
|
||||
x_17 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
x_18 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_17);
|
||||
lean_ctor_set(x_18, 1, x_16);
|
||||
x_19 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3;
|
||||
x_20 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
x_21 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
|
||||
x_22 = !lean_is_exclusive(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
x_24 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_21);
|
||||
x_25 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_23);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
x_26 = lean_box(0);
|
||||
x_27 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2(x_1, x_2, x_3, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
|
||||
lean_dec(x_4);
|
||||
return x_27;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_9 = lean_unsigned_to_nat(0u);
|
||||
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
|
||||
x_11 = l_Lean_Syntax_isNone(x_10);
|
||||
lean_dec(x_10);
|
||||
x_12 = lean_unsigned_to_nat(1u);
|
||||
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
|
||||
x_14 = l_Lean_Syntax_isIdOrAtom_x3f(x_13);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
uint8_t x_44;
|
||||
x_44 = 1;
|
||||
x_15 = x_44;
|
||||
goto block_43;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_45;
|
||||
x_45 = 0;
|
||||
x_15 = x_45;
|
||||
goto block_43;
|
||||
}
|
||||
block_43:
|
||||
{
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
uint8_t x_16;
|
||||
x_16 = !lean_is_exclusive(x_6);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_17 = lean_ctor_get(x_6, 3);
|
||||
x_18 = l_Lean_replaceRef(x_13, x_17);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_13);
|
||||
lean_ctor_set(x_6, 3, x_18);
|
||||
x_19 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_6);
|
||||
x_21 = !lean_is_exclusive(x_20);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
|
|
@ -549,118 +619,68 @@ return x_24;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
x_25 = lean_box(0);
|
||||
x_26 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2(x_1, x_2, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
|
||||
lean_dec(x_3);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = lean_unsigned_to_nat(0u);
|
||||
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
|
||||
x_11 = l_Lean_Syntax_isIdOrAtom_x3f(x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = !lean_is_exclusive(x_6);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_13 = lean_ctor_get(x_6, 3);
|
||||
x_14 = l_Lean_replaceRef(x_10, x_13);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_10);
|
||||
lean_ctor_set(x_6, 3, x_14);
|
||||
x_15 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_6);
|
||||
x_17 = !lean_is_exclusive(x_16);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
x_19 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_20 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 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;
|
||||
x_21 = lean_ctor_get(x_6, 0);
|
||||
x_22 = lean_ctor_get(x_6, 1);
|
||||
x_23 = lean_ctor_get(x_6, 2);
|
||||
x_24 = lean_ctor_get(x_6, 3);
|
||||
x_25 = lean_ctor_get(x_6, 4);
|
||||
x_26 = lean_ctor_get(x_6, 5);
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_25 = lean_ctor_get(x_6, 0);
|
||||
x_26 = lean_ctor_get(x_6, 1);
|
||||
x_27 = lean_ctor_get(x_6, 2);
|
||||
x_28 = lean_ctor_get(x_6, 3);
|
||||
x_29 = lean_ctor_get(x_6, 4);
|
||||
x_30 = lean_ctor_get(x_6, 5);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_6);
|
||||
x_27 = l_Lean_replaceRef(x_10, x_24);
|
||||
lean_dec(x_24);
|
||||
lean_dec(x_10);
|
||||
x_28 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_28, 0, x_21);
|
||||
lean_ctor_set(x_28, 1, x_22);
|
||||
lean_ctor_set(x_28, 2, x_23);
|
||||
lean_ctor_set(x_28, 3, x_27);
|
||||
lean_ctor_set(x_28, 4, x_25);
|
||||
lean_ctor_set(x_28, 5, x_26);
|
||||
x_29 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_30 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_29, x_2, x_3, x_4, x_5, x_28, x_7, x_8);
|
||||
x_31 = l_Lean_replaceRef(x_13, x_28);
|
||||
lean_dec(x_28);
|
||||
x_31 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_31);
|
||||
x_32 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_32);
|
||||
if (lean_is_exclusive(x_30)) {
|
||||
lean_ctor_release(x_30, 0);
|
||||
lean_ctor_release(x_30, 1);
|
||||
x_33 = x_30;
|
||||
lean_dec(x_13);
|
||||
x_32 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_32, 0, x_25);
|
||||
lean_ctor_set(x_32, 1, x_26);
|
||||
lean_ctor_set(x_32, 2, x_27);
|
||||
lean_ctor_set(x_32, 3, x_31);
|
||||
lean_ctor_set(x_32, 4, x_29);
|
||||
lean_ctor_set(x_32, 5, x_30);
|
||||
x_33 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_34 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_33, x_2, x_3, x_4, x_5, x_32, x_7, x_8);
|
||||
lean_dec(x_32);
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_36);
|
||||
if (lean_is_exclusive(x_34)) {
|
||||
lean_ctor_release(x_34, 0);
|
||||
lean_ctor_release(x_34, 1);
|
||||
x_37 = x_34;
|
||||
} else {
|
||||
lean_dec_ref(x_30);
|
||||
x_33 = lean_box(0);
|
||||
lean_dec_ref(x_34);
|
||||
x_37 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_33)) {
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_37)) {
|
||||
x_38 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_34 = x_33;
|
||||
x_38 = x_37;
|
||||
}
|
||||
lean_ctor_set(x_34, 0, x_31);
|
||||
lean_ctor_set(x_34, 1, x_32);
|
||||
return x_34;
|
||||
lean_ctor_set(x_38, 0, x_35);
|
||||
lean_ctor_set(x_38, 1, x_36);
|
||||
return x_38;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
lean_dec(x_10);
|
||||
x_35 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_11);
|
||||
x_36 = lean_box(0);
|
||||
x_37 = lean_name_mk_string(x_36, x_35);
|
||||
x_38 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(x_1, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
lean_dec(x_13);
|
||||
x_39 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_14);
|
||||
x_40 = lean_box(0);
|
||||
x_41 = lean_name_mk_string(x_40, x_39);
|
||||
x_42 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(x_1, x_15, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_6);
|
||||
return x_38;
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1703,49 +1723,55 @@ lean_dec(x_1);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
uint8_t x_12; lean_object* x_13;
|
||||
x_12 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_13 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__1(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_11;
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
uint8_t x_12; lean_object* x_13;
|
||||
x_12 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_13 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__2(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
return x_11;
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
uint8_t x_11; lean_object* x_12;
|
||||
x_11 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_12 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
return x_10;
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
|
|
|
|||
382
stage0/stdlib/Lean/Elab/MutualDef.c
generated
382
stage0/stdlib/Lean/Elab/MutualDef.c
generated
|
|
@ -248,7 +248,7 @@ lean_object* l_Lean_Elab_Term_MutualClosure_getModifiersForLetRecs(lean_object*)
|
|||
lean_object* l_Lean_Elab_Term_isAutoImplicit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentArray_anyMAux___at_Lean_Elab_Term_isAutoImplicit___spec__2___boxed(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_MutualClosure_getKindForLetRecs___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_MutualClosure_pushLetRecs(lean_object*, lean_object*, uint8_t, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__4___closed__2;
|
||||
|
|
@ -346,7 +346,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__6
|
|||
lean_object* lean_array_to_list(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Name_isAtomic(lean_object*);
|
||||
lean_object* l_Lean_Macro_throwErrorAt___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_protectedExt;
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_withFunLocalDecls___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -400,7 +400,7 @@ lean_object* l_Lean_Elab_expandDeclIdCore(lean_object*);
|
|||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_14258____closed__13;
|
||||
lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_isExample___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_MutualClosure_Replacement_apply_match__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkInitialUsedFVarsMap___spec__1(lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_Array_anyMUnsafe_any___at_Lean_Elab_Term_isAutoImplicit___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -412,7 +412,7 @@ lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_ob
|
|||
lean_object* l_Lean_Elab_Term_elabBinders___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__3(lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l_List_map___at_Lean_Elab_Term_MutualClosure_main___spec__9(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_feraseIdx___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_instantiateForall___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkLetRecClosureFor___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_nullKind___closed__2;
|
||||
|
|
@ -482,7 +482,7 @@ lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Term_MutualClosure_main___spe
|
|||
lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___lambda__1(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* l_Lean_Elab_Term_elabMutualDef___lambda__1(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* l_Lean_Elab_elabModifiers___at_Lean_Elab_Command_elabMutualDef___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Std_PersistentArray_toArray___rarg(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
||||
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
|
||||
|
|
@ -585,7 +585,7 @@ lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*,
|
|||
lean_object* l_Lean_Elab_Term_withAutoBoundImplicitLocal___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureForAux_match__1(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___boxed__const__1;
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
uint8_t l_List_foldr___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_typeHasRecFun___spec__1(lean_object*, uint8_t, lean_object*);
|
||||
extern lean_object* l_Lean_CollectFVars_instInhabitedState___closed__1;
|
||||
|
|
@ -17565,104 +17565,103 @@ lean_dec(x_2);
|
|||
return x_14;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___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* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_7 = 0;
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_8, 0, x_1);
|
||||
lean_ctor_set(x_8, 1, x_2);
|
||||
lean_ctor_set_uint8(x_8, sizeof(void*)*2, x_7);
|
||||
lean_ctor_set(x_8, 0, x_2);
|
||||
lean_ctor_set(x_8, 1, x_3);
|
||||
lean_ctor_set_uint8(x_8, sizeof(void*)*2, x_1);
|
||||
x_9 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_8);
|
||||
lean_ctor_set(x_9, 1, x_6);
|
||||
lean_ctor_set(x_9, 1, x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12;
|
||||
x_8 = lean_unsigned_to_nat(2u);
|
||||
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
|
||||
x_10 = l_Lean_Syntax_getNumArgs(x_9);
|
||||
x_11 = lean_unsigned_to_nat(0u);
|
||||
x_12 = lean_nat_dec_eq(x_10, x_11);
|
||||
lean_dec(x_10);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
x_13 = lean_box(0);
|
||||
x_14 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(x_2, x_3, x_9, x_13, x_5, x_6, x_7);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
lean_dec(x_9);
|
||||
x_15 = lean_box(0);
|
||||
x_16 = lean_box(0);
|
||||
x_17 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(x_2, x_3, x_15, x_16, x_5, x_6, x_7);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_7 = lean_unsigned_to_nat(1u);
|
||||
x_8 = l_Lean_Syntax_getArg(x_1, x_7);
|
||||
x_9 = l_Lean_Syntax_getNumArgs(x_8);
|
||||
x_10 = lean_unsigned_to_nat(0u);
|
||||
x_11 = lean_nat_dec_eq(x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_box(0);
|
||||
x_13 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(x_2, x_8, x_12, x_4, x_5, x_6);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
lean_dec(x_8);
|
||||
x_14 = lean_box(0);
|
||||
x_15 = lean_box(0);
|
||||
x_16 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(x_2, x_14, x_15, x_4, x_5, x_6);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10;
|
||||
x_6 = lean_st_ref_get(x_4, x_5);
|
||||
x_7 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_ctor_get(x_6, 1);
|
||||
x_7 = lean_st_ref_get(x_5, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_6);
|
||||
x_9 = lean_ctor_get(x_7, 0);
|
||||
x_9 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_10 = l_Lean_isAttribute(x_9, x_2);
|
||||
lean_dec(x_9);
|
||||
if (x_10 == 0)
|
||||
x_10 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
x_11 = l_Lean_isAttribute(x_10, x_3);
|
||||
lean_dec(x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_11 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_11, 0, x_2);
|
||||
x_12 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
x_13 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_11);
|
||||
x_14 = l_Lean_Meta_Match_Pattern_toMessageData___closed__6;
|
||||
x_15 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_13);
|
||||
lean_ctor_set(x_15, 1, x_14);
|
||||
x_16 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___rarg(x_15, x_3, x_4, x_8);
|
||||
x_17 = !lean_is_exclusive(x_16);
|
||||
if (x_17 == 0)
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
x_12 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_12, 0, x_3);
|
||||
x_13 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
x_14 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_14, 1, x_12);
|
||||
x_15 = l_Lean_Meta_Match_Pattern_toMessageData___closed__6;
|
||||
x_16 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_16, 0, x_14);
|
||||
lean_ctor_set(x_16, 1, x_15);
|
||||
x_17 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___rarg(x_16, x_4, x_5, x_9);
|
||||
x_18 = !lean_is_exclusive(x_17);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
return x_16;
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
x_19 = lean_ctor_get(x_16, 1);
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_19 = lean_ctor_get(x_17, 0);
|
||||
x_20 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_20 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
return x_20;
|
||||
lean_dec(x_17);
|
||||
x_21 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_19);
|
||||
lean_ctor_set(x_21, 1, x_20);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22;
|
||||
x_21 = lean_box(0);
|
||||
x_22 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(x_1, x_2, x_21, x_3, x_4, x_8);
|
||||
lean_dec(x_3);
|
||||
return x_22;
|
||||
lean_object* x_22; lean_object* x_23;
|
||||
x_22 = lean_box(0);
|
||||
x_23 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(x_1, x_2, x_3, x_22, x_4, x_5, x_9);
|
||||
lean_dec(x_4);
|
||||
return x_23;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -17689,111 +17688,132 @@ return x_2;
|
|||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
x_5 = lean_unsigned_to_nat(0u);
|
||||
x_6 = l_Lean_Syntax_getArg(x_1, x_5);
|
||||
x_7 = l_Lean_Syntax_isIdOrAtom_x3f(x_6);
|
||||
if (lean_obj_tag(x_7) == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12;
|
||||
x_8 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
x_11 = l_Lean_replaceRef(x_6, x_9);
|
||||
lean_dec(x_9);
|
||||
x_7 = l_Lean_Syntax_isNone(x_6);
|
||||
lean_dec(x_6);
|
||||
x_12 = !lean_is_exclusive(x_2);
|
||||
if (x_12 == 0)
|
||||
x_8 = lean_unsigned_to_nat(1u);
|
||||
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
|
||||
x_10 = l_Lean_Syntax_isIdOrAtom_x3f(x_9);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16;
|
||||
x_13 = lean_ctor_get(x_2, 6);
|
||||
uint8_t x_42;
|
||||
x_42 = 1;
|
||||
x_11 = x_42;
|
||||
goto block_41;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_43;
|
||||
x_43 = 0;
|
||||
x_11 = x_43;
|
||||
goto block_41;
|
||||
}
|
||||
block_41:
|
||||
{
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16;
|
||||
x_12 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4);
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_12);
|
||||
x_15 = l_Lean_replaceRef(x_9, x_13);
|
||||
lean_dec(x_13);
|
||||
lean_ctor_set(x_2, 6, x_11);
|
||||
x_14 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__2;
|
||||
x_15 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___rarg(x_14, x_2, x_3, x_10);
|
||||
x_16 = !lean_is_exclusive(x_15);
|
||||
lean_dec(x_9);
|
||||
x_16 = !lean_is_exclusive(x_2);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_17 = lean_ctor_get(x_2, 6);
|
||||
lean_dec(x_17);
|
||||
lean_ctor_set(x_2, 6, x_15);
|
||||
x_18 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__2;
|
||||
x_19 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___rarg(x_18, x_2, x_3, x_14);
|
||||
x_20 = !lean_is_exclusive(x_19);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_17 = lean_ctor_get(x_15, 0);
|
||||
x_18 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_18);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_15);
|
||||
x_19 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_17);
|
||||
lean_ctor_set(x_19, 1, x_18);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_20 = lean_ctor_get(x_2, 0);
|
||||
x_21 = lean_ctor_get(x_2, 1);
|
||||
x_22 = lean_ctor_get(x_2, 2);
|
||||
x_23 = lean_ctor_get(x_2, 3);
|
||||
x_24 = lean_ctor_get(x_2, 4);
|
||||
x_25 = lean_ctor_get(x_2, 5);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_21 = lean_ctor_get(x_19, 0);
|
||||
x_22 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_2);
|
||||
x_26 = lean_alloc_ctor(0, 7, 0);
|
||||
lean_ctor_set(x_26, 0, x_20);
|
||||
lean_ctor_set(x_26, 1, x_21);
|
||||
lean_ctor_set(x_26, 2, x_22);
|
||||
lean_ctor_set(x_26, 3, x_23);
|
||||
lean_ctor_set(x_26, 4, x_24);
|
||||
lean_ctor_set(x_26, 5, x_25);
|
||||
lean_ctor_set(x_26, 6, x_11);
|
||||
x_27 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__2;
|
||||
x_28 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___rarg(x_27, x_26, x_3, x_10);
|
||||
x_29 = lean_ctor_get(x_28, 0);
|
||||
lean_inc(x_29);
|
||||
x_30 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_30);
|
||||
if (lean_is_exclusive(x_28)) {
|
||||
lean_ctor_release(x_28, 0);
|
||||
lean_ctor_release(x_28, 1);
|
||||
x_31 = x_28;
|
||||
} else {
|
||||
lean_dec_ref(x_28);
|
||||
x_31 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_31)) {
|
||||
x_32 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_32 = x_31;
|
||||
}
|
||||
lean_ctor_set(x_32, 0, x_29);
|
||||
lean_ctor_set(x_32, 1, x_30);
|
||||
return x_32;
|
||||
lean_dec(x_19);
|
||||
x_23 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_23, 0, x_21);
|
||||
lean_ctor_set(x_23, 1, x_22);
|
||||
return x_23;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
lean_dec(x_6);
|
||||
x_33 = lean_ctor_get(x_7, 0);
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_24 = lean_ctor_get(x_2, 0);
|
||||
x_25 = lean_ctor_get(x_2, 1);
|
||||
x_26 = lean_ctor_get(x_2, 2);
|
||||
x_27 = lean_ctor_get(x_2, 3);
|
||||
x_28 = lean_ctor_get(x_2, 4);
|
||||
x_29 = lean_ctor_get(x_2, 5);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_2);
|
||||
x_30 = lean_alloc_ctor(0, 7, 0);
|
||||
lean_ctor_set(x_30, 0, x_24);
|
||||
lean_ctor_set(x_30, 1, x_25);
|
||||
lean_ctor_set(x_30, 2, x_26);
|
||||
lean_ctor_set(x_30, 3, x_27);
|
||||
lean_ctor_set(x_30, 4, x_28);
|
||||
lean_ctor_set(x_30, 5, x_29);
|
||||
lean_ctor_set(x_30, 6, x_15);
|
||||
x_31 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__2;
|
||||
x_32 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___rarg(x_31, x_30, x_3, x_14);
|
||||
x_33 = lean_ctor_get(x_32, 0);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_7);
|
||||
x_34 = lean_box(0);
|
||||
x_35 = lean_name_mk_string(x_34, x_33);
|
||||
x_36 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3(x_1, x_35, x_2, x_3, x_4);
|
||||
x_34 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_34);
|
||||
if (lean_is_exclusive(x_32)) {
|
||||
lean_ctor_release(x_32, 0);
|
||||
lean_ctor_release(x_32, 1);
|
||||
x_35 = x_32;
|
||||
} else {
|
||||
lean_dec_ref(x_32);
|
||||
x_35 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_35)) {
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_36 = x_35;
|
||||
}
|
||||
lean_ctor_set(x_36, 0, x_33);
|
||||
lean_ctor_set(x_36, 1, x_34);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
lean_dec(x_9);
|
||||
x_37 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_10);
|
||||
x_38 = lean_box(0);
|
||||
x_39 = lean_name_mk_string(x_38, x_37);
|
||||
x_40 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3(x_1, x_11, x_39, x_2, x_3, x_4);
|
||||
return x_40;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Command_elabMutualDef___spec__5(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
|
|
@ -18654,37 +18674,43 @@ return x_30;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
uint8_t x_8; lean_object* x_9;
|
||||
x_8 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_9 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__1(x_8, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_7;
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
uint8_t x_8; lean_object* x_9;
|
||||
x_8 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_9 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
return x_7;
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_4);
|
||||
uint8_t x_7; lean_object* x_8;
|
||||
x_7 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_8 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3(x_1, x_7, x_3, x_4, x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_1);
|
||||
return x_6;
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
|
|
|
|||
643
stage0/stdlib/Lean/Elab/Structure.c
generated
643
stage0/stdlib/Lean/Elab/Structure.c
generated
|
|
@ -150,7 +150,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lea
|
|||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__7___lambda__4___closed__2;
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_validStructType_match__1(lean_object*);
|
||||
lean_object* l_Lean_Level_getOffsetAux(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1___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_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_assignLevelMVar___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_mkAuxConstructions(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__4___closed__2;
|
||||
|
|
@ -268,7 +268,7 @@ extern lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__
|
|||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_checkParentIsStructure_match__1(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields___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*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_forM___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1___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_assignLevelMVar___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_updateResultingUniverse___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_getFVarLocalDecl_x21(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
|
||||
|
|
@ -282,7 +282,7 @@ lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___l
|
|||
lean_object* l_Lean_Elab_applyVisibility___at_Lean_Elab_Command_elabStructure___spec__4(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__3___closed__1;
|
||||
lean_object* l_List_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_elabStructureView___spec__8(lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__7___lambda__2___closed__2;
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__2___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -321,7 +321,7 @@ lean_object* lean_array_to_list(lean_object*, lean_object*);
|
|||
uint8_t l_Lean_Name_isAtomic(lean_object*);
|
||||
lean_object* l_Lean_Elab_checkNotAlreadyDeclared___at_Lean_Elab_Command_elabStructure___spec__5___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Environment_contains(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_protectedExt;
|
||||
lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__7___lambda__2___closed__1;
|
||||
lean_object* l_Lean_Elab_Command_elabStructure___lambda__5(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -431,7 +431,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lea
|
|||
lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Syntax_getSepArgs___spec__1(lean_object*, size_t, size_t, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___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*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInStructure(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withFields_match__4(lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -444,13 +444,13 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lea
|
|||
lean_object* l_Lean_Syntax_getArgs(lean_object*);
|
||||
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_elabStructure___closed__2;
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___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_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_getKind(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_withParents___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*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamAux___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_applyVisibility___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__7(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_processSubfields_loop___rarg___closed__2;
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_collectLevelParamsInFVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_inferType___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_levelMVarToParamFVar___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -544,7 +544,7 @@ lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Structure_0__Lea
|
|||
lean_object* l_Lean_Elab_Command_checkValidFieldModifier___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_checkValidFieldModifier___closed__1;
|
||||
uint8_t l_Lean_Elab_Modifiers_isPrivate(lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_addAutoBoundImplicits(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_withAutoBoundImplicitLocal___rarg(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_Structure_0__Lean_Elab_Command_findFieldInfo_x3f___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -849,78 +849,148 @@ x_1 = l___private_Lean_Elab_Structure_0__Lean_Elab_Command_defaultCtorName___clo
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_11 = 0;
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_alloc_ctor(0, 2, 1);
|
||||
lean_ctor_set(x_12, 0, x_1);
|
||||
lean_ctor_set(x_12, 1, x_2);
|
||||
lean_ctor_set_uint8(x_12, sizeof(void*)*2, x_11);
|
||||
lean_ctor_set(x_12, 0, x_2);
|
||||
lean_ctor_set(x_12, 1, x_3);
|
||||
lean_ctor_set_uint8(x_12, sizeof(void*)*2, x_1);
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_10);
|
||||
lean_ctor_set(x_13, 1, x_11);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_11 = lean_unsigned_to_nat(1u);
|
||||
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
|
||||
x_13 = l_Lean_Syntax_getNumArgs(x_12);
|
||||
x_14 = lean_unsigned_to_nat(0u);
|
||||
x_15 = lean_nat_dec_eq(x_13, x_14);
|
||||
lean_dec(x_13);
|
||||
if (x_15 == 0)
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16;
|
||||
x_12 = lean_unsigned_to_nat(2u);
|
||||
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
|
||||
x_14 = l_Lean_Syntax_getNumArgs(x_13);
|
||||
x_15 = lean_unsigned_to_nat(0u);
|
||||
x_16 = lean_nat_dec_eq(x_14, x_15);
|
||||
lean_dec(x_14);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
x_16 = lean_box(0);
|
||||
x_17 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(x_2, x_12, x_16, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_17;
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_box(0);
|
||||
x_18 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(x_2, x_3, x_13, x_17, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
lean_dec(x_12);
|
||||
x_18 = lean_box(0);
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
lean_dec(x_13);
|
||||
x_19 = lean_box(0);
|
||||
x_20 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(x_2, x_18, x_19, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_20;
|
||||
x_20 = lean_box(0);
|
||||
x_21 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(x_2, x_3, x_19, x_20, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_10 = lean_st_ref_get(x_8, x_9);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_11 = lean_st_ref_get(x_9, x_10);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_14 = l_Lean_isAttribute(x_13, x_2);
|
||||
lean_dec(x_13);
|
||||
if (x_14 == 0)
|
||||
x_14 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_12);
|
||||
x_15 = l_Lean_isAttribute(x_14, x_3);
|
||||
lean_dec(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_15 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_15, 0, x_2);
|
||||
x_16 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
x_17 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_15);
|
||||
x_18 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3;
|
||||
x_19 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_17);
|
||||
lean_ctor_set(x_19, 1, x_18);
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_16 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_16, 0, x_3);
|
||||
x_17 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
x_18 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_17);
|
||||
lean_ctor_set(x_18, 1, x_16);
|
||||
x_19 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3;
|
||||
x_20 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
x_21 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
|
||||
x_22 = !lean_is_exclusive(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
x_24 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_21);
|
||||
x_25 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_23);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
x_26 = lean_box(0);
|
||||
x_27 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(x_1, x_2, x_3, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
|
||||
lean_dec(x_4);
|
||||
return x_27;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_9 = lean_unsigned_to_nat(0u);
|
||||
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
|
||||
x_11 = l_Lean_Syntax_isNone(x_10);
|
||||
lean_dec(x_10);
|
||||
x_12 = lean_unsigned_to_nat(1u);
|
||||
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
|
||||
x_14 = l_Lean_Syntax_isIdOrAtom_x3f(x_13);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
uint8_t x_44;
|
||||
x_44 = 1;
|
||||
x_15 = x_44;
|
||||
goto block_43;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_45;
|
||||
x_45 = 0;
|
||||
x_15 = x_45;
|
||||
goto block_43;
|
||||
}
|
||||
block_43:
|
||||
{
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
uint8_t x_16;
|
||||
x_16 = !lean_is_exclusive(x_6);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_17 = lean_ctor_get(x_6, 3);
|
||||
x_18 = l_Lean_replaceRef(x_13, x_17);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_13);
|
||||
lean_ctor_set(x_6, 3, x_18);
|
||||
x_19 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_6);
|
||||
x_21 = !lean_is_exclusive(x_20);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
|
|
@ -942,118 +1012,68 @@ return x_24;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
x_25 = lean_box(0);
|
||||
x_26 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(x_1, x_2, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
|
||||
lean_dec(x_3);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = lean_unsigned_to_nat(0u);
|
||||
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
|
||||
x_11 = l_Lean_Syntax_isIdOrAtom_x3f(x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = !lean_is_exclusive(x_6);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_13 = lean_ctor_get(x_6, 3);
|
||||
x_14 = l_Lean_replaceRef(x_10, x_13);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_10);
|
||||
lean_ctor_set(x_6, 3, x_14);
|
||||
x_15 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_6);
|
||||
x_17 = !lean_is_exclusive(x_16);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
x_19 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_20 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 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;
|
||||
x_21 = lean_ctor_get(x_6, 0);
|
||||
x_22 = lean_ctor_get(x_6, 1);
|
||||
x_23 = lean_ctor_get(x_6, 2);
|
||||
x_24 = lean_ctor_get(x_6, 3);
|
||||
x_25 = lean_ctor_get(x_6, 4);
|
||||
x_26 = lean_ctor_get(x_6, 5);
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_25 = lean_ctor_get(x_6, 0);
|
||||
x_26 = lean_ctor_get(x_6, 1);
|
||||
x_27 = lean_ctor_get(x_6, 2);
|
||||
x_28 = lean_ctor_get(x_6, 3);
|
||||
x_29 = lean_ctor_get(x_6, 4);
|
||||
x_30 = lean_ctor_get(x_6, 5);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_6);
|
||||
x_27 = l_Lean_replaceRef(x_10, x_24);
|
||||
lean_dec(x_24);
|
||||
lean_dec(x_10);
|
||||
x_28 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_28, 0, x_21);
|
||||
lean_ctor_set(x_28, 1, x_22);
|
||||
lean_ctor_set(x_28, 2, x_23);
|
||||
lean_ctor_set(x_28, 3, x_27);
|
||||
lean_ctor_set(x_28, 4, x_25);
|
||||
lean_ctor_set(x_28, 5, x_26);
|
||||
x_29 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_30 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_29, x_2, x_3, x_4, x_5, x_28, x_7, x_8);
|
||||
x_31 = l_Lean_replaceRef(x_13, x_28);
|
||||
lean_dec(x_28);
|
||||
x_31 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_31);
|
||||
x_32 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_32);
|
||||
if (lean_is_exclusive(x_30)) {
|
||||
lean_ctor_release(x_30, 0);
|
||||
lean_ctor_release(x_30, 1);
|
||||
x_33 = x_30;
|
||||
lean_dec(x_13);
|
||||
x_32 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_32, 0, x_25);
|
||||
lean_ctor_set(x_32, 1, x_26);
|
||||
lean_ctor_set(x_32, 2, x_27);
|
||||
lean_ctor_set(x_32, 3, x_31);
|
||||
lean_ctor_set(x_32, 4, x_29);
|
||||
lean_ctor_set(x_32, 5, x_30);
|
||||
x_33 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_34 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_33, x_2, x_3, x_4, x_5, x_32, x_7, x_8);
|
||||
lean_dec(x_32);
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_36);
|
||||
if (lean_is_exclusive(x_34)) {
|
||||
lean_ctor_release(x_34, 0);
|
||||
lean_ctor_release(x_34, 1);
|
||||
x_37 = x_34;
|
||||
} else {
|
||||
lean_dec_ref(x_30);
|
||||
x_33 = lean_box(0);
|
||||
lean_dec_ref(x_34);
|
||||
x_37 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_33)) {
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_37)) {
|
||||
x_38 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_34 = x_33;
|
||||
x_38 = x_37;
|
||||
}
|
||||
lean_ctor_set(x_34, 0, x_31);
|
||||
lean_ctor_set(x_34, 1, x_32);
|
||||
return x_34;
|
||||
lean_ctor_set(x_38, 0, x_35);
|
||||
lean_ctor_set(x_38, 1, x_36);
|
||||
return x_38;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
lean_dec(x_10);
|
||||
x_35 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_11);
|
||||
x_36 = lean_box(0);
|
||||
x_37 = lean_name_mk_string(x_36, x_35);
|
||||
x_38 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(x_1, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
lean_dec(x_13);
|
||||
x_39 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_14);
|
||||
x_40 = lean_box(0);
|
||||
x_41 = lean_name_mk_string(x_40, x_39);
|
||||
x_42 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(x_1, x_15, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_6);
|
||||
return x_38;
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2820,49 +2840,55 @@ return x_87;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
uint8_t x_12; lean_object* x_13;
|
||||
x_12 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_13 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__1(x_12, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_11;
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
uint8_t x_12; lean_object* x_13;
|
||||
x_12 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_13 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(x_1, x_12, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
return x_11;
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
uint8_t x_11; lean_object* x_12;
|
||||
x_11 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_12 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__3(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
return x_10;
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__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) {
|
||||
|
|
@ -3584,35 +3610,106 @@ x_2 = lean_alloc_closure((void*)(l___private_Lean_Elab_Structure_0__Lean_Elab_Co
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_10 = lean_st_ref_get(x_8, x_9);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_11 = lean_st_ref_get(x_9, x_10);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_14 = l_Lean_isAttribute(x_13, x_2);
|
||||
lean_dec(x_13);
|
||||
if (x_14 == 0)
|
||||
x_14 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_12);
|
||||
x_15 = l_Lean_isAttribute(x_14, x_3);
|
||||
lean_dec(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_15 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_15, 0, x_2);
|
||||
x_16 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
x_17 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_15);
|
||||
x_18 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3;
|
||||
x_19 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_17);
|
||||
lean_ctor_set(x_19, 1, x_18);
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2___rarg(x_19, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_16 = lean_alloc_ctor(4, 1, 0);
|
||||
lean_ctor_set(x_16, 0, x_3);
|
||||
x_17 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2;
|
||||
x_18 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_17);
|
||||
lean_ctor_set(x_18, 1, x_16);
|
||||
x_19 = l_Lean_Elab_elabAttr___rarg___lambda__3___closed__3;
|
||||
x_20 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
x_21 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2___rarg(x_20, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
|
||||
x_22 = !lean_is_exclusive(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
x_24 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_21);
|
||||
x_25 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_23);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
x_26 = lean_box(0);
|
||||
x_27 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(x_1, x_2, x_3, x_26, x_4, x_5, x_6, x_7, x_8, x_9, x_13);
|
||||
lean_dec(x_4);
|
||||
return x_27;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_9 = lean_unsigned_to_nat(0u);
|
||||
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
|
||||
x_11 = l_Lean_Syntax_isNone(x_10);
|
||||
lean_dec(x_10);
|
||||
x_12 = lean_unsigned_to_nat(1u);
|
||||
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
|
||||
x_14 = l_Lean_Syntax_isIdOrAtom_x3f(x_13);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
uint8_t x_44;
|
||||
x_44 = 1;
|
||||
x_15 = x_44;
|
||||
goto block_43;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_45;
|
||||
x_45 = 0;
|
||||
x_15 = x_45;
|
||||
goto block_43;
|
||||
}
|
||||
block_43:
|
||||
{
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
uint8_t x_16;
|
||||
x_16 = !lean_is_exclusive(x_6);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_17 = lean_ctor_get(x_6, 3);
|
||||
x_18 = l_Lean_replaceRef(x_13, x_17);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_13);
|
||||
lean_ctor_set(x_6, 3, x_18);
|
||||
x_19 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_20 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2___rarg(x_19, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_6);
|
||||
x_21 = !lean_is_exclusive(x_20);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
|
|
@ -3634,118 +3731,68 @@ return x_24;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
x_25 = lean_box(0);
|
||||
x_26 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandCtor___spec__4___lambda__2(x_1, x_2, x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_12);
|
||||
lean_dec(x_3);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = lean_unsigned_to_nat(0u);
|
||||
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
|
||||
x_11 = l_Lean_Syntax_isIdOrAtom_x3f(x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = !lean_is_exclusive(x_6);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_13 = lean_ctor_get(x_6, 3);
|
||||
x_14 = l_Lean_replaceRef(x_10, x_13);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_10);
|
||||
lean_ctor_set(x_6, 3, x_14);
|
||||
x_15 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_16 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2___rarg(x_15, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_6);
|
||||
x_17 = !lean_is_exclusive(x_16);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_16, 0);
|
||||
x_19 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_20 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 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;
|
||||
x_21 = lean_ctor_get(x_6, 0);
|
||||
x_22 = lean_ctor_get(x_6, 1);
|
||||
x_23 = lean_ctor_get(x_6, 2);
|
||||
x_24 = lean_ctor_get(x_6, 3);
|
||||
x_25 = lean_ctor_get(x_6, 4);
|
||||
x_26 = lean_ctor_get(x_6, 5);
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
x_25 = lean_ctor_get(x_6, 0);
|
||||
x_26 = lean_ctor_get(x_6, 1);
|
||||
x_27 = lean_ctor_get(x_6, 2);
|
||||
x_28 = lean_ctor_get(x_6, 3);
|
||||
x_29 = lean_ctor_get(x_6, 4);
|
||||
x_30 = lean_ctor_get(x_6, 5);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_28);
|
||||
lean_inc(x_27);
|
||||
lean_inc(x_26);
|
||||
lean_inc(x_25);
|
||||
lean_inc(x_24);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_6);
|
||||
x_27 = l_Lean_replaceRef(x_10, x_24);
|
||||
lean_dec(x_24);
|
||||
lean_dec(x_10);
|
||||
x_28 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_28, 0, x_21);
|
||||
lean_ctor_set(x_28, 1, x_22);
|
||||
lean_ctor_set(x_28, 2, x_23);
|
||||
lean_ctor_set(x_28, 3, x_27);
|
||||
lean_ctor_set(x_28, 4, x_25);
|
||||
lean_ctor_set(x_28, 5, x_26);
|
||||
x_29 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_30 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2___rarg(x_29, x_2, x_3, x_4, x_5, x_28, x_7, x_8);
|
||||
x_31 = l_Lean_replaceRef(x_13, x_28);
|
||||
lean_dec(x_28);
|
||||
x_31 = lean_ctor_get(x_30, 0);
|
||||
lean_inc(x_31);
|
||||
x_32 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_32);
|
||||
if (lean_is_exclusive(x_30)) {
|
||||
lean_ctor_release(x_30, 0);
|
||||
lean_ctor_release(x_30, 1);
|
||||
x_33 = x_30;
|
||||
lean_dec(x_13);
|
||||
x_32 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_32, 0, x_25);
|
||||
lean_ctor_set(x_32, 1, x_26);
|
||||
lean_ctor_set(x_32, 2, x_27);
|
||||
lean_ctor_set(x_32, 3, x_31);
|
||||
lean_ctor_set(x_32, 4, x_29);
|
||||
lean_ctor_set(x_32, 5, x_30);
|
||||
x_33 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_34 = l_Lean_throwError___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__2___rarg(x_33, x_2, x_3, x_4, x_5, x_32, x_7, x_8);
|
||||
lean_dec(x_32);
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
x_36 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_36);
|
||||
if (lean_is_exclusive(x_34)) {
|
||||
lean_ctor_release(x_34, 0);
|
||||
lean_ctor_release(x_34, 1);
|
||||
x_37 = x_34;
|
||||
} else {
|
||||
lean_dec_ref(x_30);
|
||||
x_33 = lean_box(0);
|
||||
lean_dec_ref(x_34);
|
||||
x_37 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_33)) {
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_37)) {
|
||||
x_38 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_34 = x_33;
|
||||
x_38 = x_37;
|
||||
}
|
||||
lean_ctor_set(x_34, 0, x_31);
|
||||
lean_ctor_set(x_34, 1, x_32);
|
||||
return x_34;
|
||||
lean_ctor_set(x_38, 0, x_35);
|
||||
lean_ctor_set(x_38, 1, x_36);
|
||||
return x_38;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38;
|
||||
lean_dec(x_10);
|
||||
x_35 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_11);
|
||||
x_36 = lean_box(0);
|
||||
x_37 = lean_name_mk_string(x_36, x_35);
|
||||
x_38 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1(x_1, x_37, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
lean_dec(x_13);
|
||||
x_39 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_14);
|
||||
x_40 = lean_box(0);
|
||||
x_41 = lean_name_mk_string(x_40, x_39);
|
||||
x_42 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1(x_1, x_15, x_41, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_6);
|
||||
return x_38;
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5506,18 +5553,20 @@ return x_39;
|
|||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
uint8_t x_11; lean_object* x_12;
|
||||
x_11 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_12 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__4___lambda__1(x_1, x_11, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_1);
|
||||
return x_10;
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr___at___private_Lean_Elab_Structure_0__Lean_Elab_Command_expandFields___spec__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) {
|
||||
|
|
|
|||
1576
stage0/stdlib/Lean/Elab/Syntax.c
generated
1576
stage0/stdlib/Lean/Elab/Syntax.c
generated
File diff suppressed because it is too large
Load diff
510
stage0/stdlib/Lean/Parser/Term.c
generated
510
stage0/stdlib/Lean/Parser/Term.c
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue