chore: update stage0
This commit is contained in:
parent
10102bf370
commit
94ff89bfc4
15 changed files with 2333 additions and 2632 deletions
24
stage0/src/Lean/Elab/Attributes.lean
generated
24
stage0/src/Lean/Elab/Attributes.lean
generated
|
|
@ -9,20 +9,34 @@ import Lean.MonadEnv
|
|||
namespace Lean.Elab
|
||||
|
||||
structure Attribute where
|
||||
«scoped» : Bool := false
|
||||
kind : AttributeKind := AttributeKind.global
|
||||
name : Name
|
||||
args : Syntax := Syntax.missing
|
||||
|
||||
instance : ToFormat Attribute where
|
||||
format attr :=
|
||||
Format.bracket "@[" f!"{if attr.scoped then "scoped" else ""}{attr.name}{if attr.args.isMissing then "" else toString attr.args}" "]"
|
||||
let kindStr := match attr.kind with
|
||||
| AttributeKind.global => ""
|
||||
| AttributeKind.local => "local "
|
||||
| AttributeKind.scoped => "scoped "
|
||||
Format.bracket "@[" f!"{kindStr}{attr.name}{if attr.args.isMissing then "" else toString attr.args}" "]"
|
||||
|
||||
instance : Inhabited Attribute where
|
||||
default := { name := arbitrary }
|
||||
|
||||
/-
|
||||
```
|
||||
attrKind := optional («scoped» <|> «local»)
|
||||
```
|
||||
-/
|
||||
def toAttributeKind (attrKindStx : Syntax) : AttributeKind :=
|
||||
if attrKindStx.isNone then AttributeKind.global
|
||||
else if attrKindStx[0].getKind == `Lean.Parser.Term.scoped then AttributeKind.scoped
|
||||
else AttributeKind.local
|
||||
|
||||
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» := !stx[0].isNone
|
||||
-- attrKind >> rawIdent >> many attrArg
|
||||
let kind := toAttributeKind stx[0]
|
||||
let nameStx := stx[1]
|
||||
let attrName ← match nameStx.isIdOrAtom? with
|
||||
| none => withRef nameStx $ throwError "identifier expected"
|
||||
|
|
@ -33,7 +47,7 @@ def elabAttr {m} [Monad m] [MonadEnv m] [MonadExceptOf Exception m] [MonadRef m]
|
|||
-- 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 { kind := kind, 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
|
||||
|
|
|
|||
9
stage0/src/Lean/Elab/Declaration.lean
generated
9
stage0/src/Lean/Elab/Declaration.lean
generated
|
|
@ -250,14 +250,13 @@ def elabMutual : CommandElab := fun stx => do
|
|||
else
|
||||
throwError "invalid mutual block"
|
||||
|
||||
/- parser! optional "local " >> "attribute " >> "[" >> sepBy1 Term.attrInstance ", " >> "]" >> many1 ident -/
|
||||
/- parser! "attribute " >> "[" >> sepBy1 Term.attrInstance ", " >> "]" >> many1 ident -/
|
||||
@[builtinCommandElab «attribute»] def elabAttr : CommandElab := fun stx => do
|
||||
let persistent := stx[0].isNone
|
||||
let attrs ← elabAttrs stx[3]
|
||||
let idents := stx[5].getArgs
|
||||
let attrs ← elabAttrs stx[2]
|
||||
let idents := stx[4].getArgs
|
||||
for ident in idents do withRef ident $ liftTermElabM none do
|
||||
let declName ← resolveGlobalConstNoOverload ident.getId
|
||||
Term.applyAttributes declName attrs persistent
|
||||
Term.applyAttributes declName attrs
|
||||
|
||||
def expandInitCmd (builtin : Bool) : Macro := fun stx =>
|
||||
let optHeader := stx[1]
|
||||
|
|
|
|||
23
stage0/src/Lean/Elab/Term.lean
generated
23
stage0/src/Lean/Elab/Term.lean
generated
|
|
@ -470,33 +470,24 @@ private def liftAttrM {α} (x : AttrM α) : TermElabM α := do
|
|||
|
||||
private def applyAttributesCore
|
||||
(declName : Name) (attrs : Array Attribute)
|
||||
(applicationTime? : Option AttributeApplicationTime) (persistent : Bool) : TermElabM Unit :=
|
||||
(applicationTime? : Option AttributeApplicationTime) : TermElabM Unit :=
|
||||
for attr in attrs do
|
||||
let env ← getEnv
|
||||
match getAttributeImpl env attr.name with
|
||||
| Except.error errMsg => throwError errMsg
|
||||
| Except.ok attrImpl =>
|
||||
match applicationTime? with
|
||||
| none => apply attrImpl declName attr.scoped attr.args persistent
|
||||
| none => liftAttrM <| attrImpl.add declName attr.args attr.kind
|
||||
| some applicationTime =>
|
||||
if applicationTime == attrImpl.applicationTime then
|
||||
apply attrImpl declName attr.scoped attr.args persistent
|
||||
where
|
||||
apply attrImpl declName «scoped» args persistent := do
|
||||
let kind ←
|
||||
match persistent, «scoped» with
|
||||
| true, true => pure AttributeKind.scoped
|
||||
| false, true => throwError "scoped local attributes are not allowed"
|
||||
| true, false => pure AttributeKind.global
|
||||
| false, false => pure AttributeKind.local
|
||||
liftAttrM <| attrImpl.add declName args kind
|
||||
liftAttrM <| attrImpl.add declName attr.args attr.kind
|
||||
|
||||
/-- Apply given attributes **at** a given application time -/
|
||||
def applyAttributesAt (declName : Name) (attrs : Array Attribute) (applicationTime : AttributeApplicationTime) (persistent : Bool := true) : TermElabM Unit :=
|
||||
applyAttributesCore declName attrs applicationTime persistent
|
||||
def applyAttributesAt (declName : Name) (attrs : Array Attribute) (applicationTime : AttributeApplicationTime) : TermElabM Unit :=
|
||||
applyAttributesCore declName attrs applicationTime
|
||||
|
||||
def applyAttributes (declName : Name) (attrs : Array Attribute) (persistent : Bool) : TermElabM Unit :=
|
||||
applyAttributesCore declName attrs none persistent
|
||||
def applyAttributes (declName : Name) (attrs : Array Attribute) : TermElabM Unit :=
|
||||
applyAttributesCore declName attrs none
|
||||
|
||||
def mkTypeMismatchError (header? : Option String) (e : Expr) (eType : Expr) (expectedType : Expr) : MessageData :=
|
||||
let header : MessageData := match header? with
|
||||
|
|
|
|||
2
stage0/src/Lean/Parser/Command.lean
generated
2
stage0/src/Lean/Parser/Command.lean
generated
|
|
@ -81,7 +81,7 @@ declModifiers false >> («abbrev» <|> «def» <|> «theorem» <|> «constant»
|
|||
@[builtinCommandParser] def «resolve_name» := parser! "#resolve_name " >> ident
|
||||
@[builtinCommandParser] def «init_quot» := parser! "init_quot"
|
||||
@[builtinCommandParser] def «set_option» := parser! "set_option " >> ident >> (nonReservedSymbol "true" <|> nonReservedSymbol "false" <|> strLit <|> numLit)
|
||||
@[builtinCommandParser] def «attribute» := parser! optional "local " >> "attribute " >> "[" >> sepBy1 Term.attrInstance ", " >> "] " >> many1 ident
|
||||
@[builtinCommandParser] def «attribute» := parser! "attribute " >> "[" >> sepBy1 Term.attrInstance ", " >> "] " >> many1 ident
|
||||
@[builtinCommandParser] def «export» := parser! "export " >> ident >> "(" >> many1 ident >> ")"
|
||||
def openHiding := parser! atomic (ident >> "hiding") >> many1 ident
|
||||
def openRenamingItem := parser! ident >> unicodeSymbol "→" "->" >> ident
|
||||
|
|
|
|||
263
stage0/stdlib/Lean/Elab/Attributes.c
generated
263
stage0/stdlib/Lean/Elab/Attributes.c
generated
|
|
@ -27,6 +27,7 @@ extern lean_object* l_Array_empty___closed__1;
|
|||
lean_object* l_Lean_Elab_instToFormatAttribute(lean_object*);
|
||||
extern lean_object* l_Lean_instInhabitedParserDescr___closed__1;
|
||||
extern lean_object* l_term_x5b___x2c_x5d___closed__11;
|
||||
uint8_t lean_name_eq(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*);
|
||||
|
|
@ -38,6 +39,8 @@ lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg_
|
|||
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*);
|
||||
lean_object* l_Lean_Elab_elabAttrs___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Elab_Attribute_kind___default;
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute_match__1(lean_object*);
|
||||
extern lean_object* l_Lean_Format_join___closed__1;
|
||||
extern lean_object* l_Lean_myMacro____x40_Init_NotationExtra___hyg_1121____closed__10;
|
||||
lean_object* l_Lean_Elab_elabAttrs(lean_object*);
|
||||
|
|
@ -45,6 +48,7 @@ lean_object* l_Lean_Elab_elabAttr(lean_object*);
|
|||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1(lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l_Lean_Elab_elabAttr___rarg___closed__2;
|
||||
extern lean_object* l_myMacro____x40_Init_Notation___hyg_38____closed__6;
|
||||
lean_object* l_Lean_Elab_instInhabitedAttribute___closed__1;
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_elabAttrs___spec__1___rarg___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___rarg___closed__1;
|
||||
|
|
@ -62,19 +66,26 @@ lean_object* l_Lean_Elab_instToFormatAttribute___closed__4;
|
|||
lean_object* l_Lean_Elab_elabAttr___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
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_Syntax_getKind(lean_object*);
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute___closed__5;
|
||||
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*);
|
||||
lean_object* l_Lean_throwError___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_toAttributeKind___closed__1;
|
||||
uint8_t l_Lean_Syntax_isNone(lean_object*);
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute___closed__3;
|
||||
lean_object* l_Lean_fmt___at_Lean_Level_LevelToFormat_toResult___spec__1(lean_object*);
|
||||
lean_object* l_Lean_Elab_toAttributeKind___closed__2;
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute_match__1___rarg___boxed(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*, 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_Elab_toAttributeKind___boxed(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Elab_Attribute_scoped___default;
|
||||
uint8_t l_Lean_Elab_toAttributeKind(lean_object*);
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute_match__1___rarg(uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
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*, uint8_t, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -83,7 +94,7 @@ lean_object* lean_nat_to_int(lean_object*);
|
|||
lean_object* l_Lean_Syntax_formatStxAux(lean_object*, uint8_t, lean_object*, lean_object*);
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Array_findSomeM_x3f___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabDeclAttrs___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static uint8_t _init_l_Lean_Elab_Attribute_scoped___default() {
|
||||
static uint8_t _init_l_Lean_Elab_Attribute_kind___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
|
|
@ -99,6 +110,58 @@ x_1 = lean_box(0);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute_match__1___rarg(uint8_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
switch (x_1) {
|
||||
case 0:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_5 = lean_box(0);
|
||||
x_6 = lean_apply_1(x_2, x_5);
|
||||
return x_6;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
x_7 = lean_box(0);
|
||||
x_8 = lean_apply_1(x_3, x_7);
|
||||
return x_8;
|
||||
}
|
||||
default:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_9 = lean_box(0);
|
||||
x_10 = lean_apply_1(x_4, x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute_match__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Elab_instToFormatAttribute_match__1___rarg___boxed), 4, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_instToFormatAttribute_match__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5; lean_object* x_6;
|
||||
x_5 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_6 = l_Lean_Elab_instToFormatAttribute_match__1___rarg(x_5, x_2, x_3, x_4);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_instToFormatAttribute___closed__1() {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -131,7 +194,15 @@ static lean_object* _init_l_Lean_Elab_instToFormatAttribute___closed__4() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("scoped");
|
||||
x_1 = lean_mk_string("local ");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_instToFormatAttribute___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("scoped ");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -147,20 +218,29 @@ x_5 = lean_ctor_get(x_1, 1);
|
|||
lean_inc(x_5);
|
||||
lean_dec(x_1);
|
||||
x_6 = l_Lean_Syntax_isMissing(x_5);
|
||||
if (x_2 == 0)
|
||||
switch (x_2) {
|
||||
case 0:
|
||||
{
|
||||
lean_object* x_42;
|
||||
x_42 = l_Lean_instInhabitedParserDescr___closed__1;
|
||||
x_7 = x_42;
|
||||
goto block_41;
|
||||
}
|
||||
else
|
||||
case 1:
|
||||
{
|
||||
lean_object* x_43;
|
||||
x_43 = l_Lean_Elab_instToFormatAttribute___closed__4;
|
||||
x_7 = x_43;
|
||||
goto block_41;
|
||||
}
|
||||
default:
|
||||
{
|
||||
lean_object* x_44;
|
||||
x_44 = l_Lean_Elab_instToFormatAttribute___closed__5;
|
||||
x_7 = x_44;
|
||||
goto block_41;
|
||||
}
|
||||
}
|
||||
block_41:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
|
|
@ -267,6 +347,69 @@ x_1 = l_Lean_Elab_instInhabitedAttribute___closed__1;
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_toAttributeKind___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("scoped");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_toAttributeKind___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_myMacro____x40_Init_Notation___hyg_38____closed__6;
|
||||
x_2 = l_Lean_Elab_toAttributeKind___closed__1;
|
||||
x_3 = lean_name_mk_string(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
uint8_t l_Lean_Elab_toAttributeKind(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = l_Lean_Syntax_isNone(x_1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7;
|
||||
x_3 = lean_unsigned_to_nat(0u);
|
||||
x_4 = l_Lean_Syntax_getArg(x_1, x_3);
|
||||
x_5 = l_Lean_Syntax_getKind(x_4);
|
||||
x_6 = l_Lean_Elab_toAttributeKind___closed__2;
|
||||
x_7 = lean_name_eq(x_5, x_6);
|
||||
lean_dec(x_5);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
uint8_t x_8;
|
||||
x_8 = 1;
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_9;
|
||||
x_9 = 2;
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_10;
|
||||
x_10 = 0;
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_toAttributeKind___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lean_Elab_toAttributeKind(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* l_Lean_Elab_elabAttr_match__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -501,87 +644,69 @@ 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; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
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);
|
||||
x_9 = l_Lean_Elab_toAttributeKind(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);
|
||||
x_12 = lean_box(x_9);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_1);
|
||||
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)
|
||||
x_13 = lean_alloc_closure((void*)(l_Lean_Elab_elabAttr___rarg___lambda__4___boxed), 8, 7);
|
||||
lean_closure_set(x_13, 0, x_1);
|
||||
lean_closure_set(x_13, 1, x_2);
|
||||
lean_closure_set(x_13, 2, x_6);
|
||||
lean_closure_set(x_13, 3, x_12);
|
||||
lean_closure_set(x_13, 4, x_3);
|
||||
lean_closure_set(x_13, 5, x_4);
|
||||
lean_closure_set(x_13, 6, x_5);
|
||||
x_14 = l_Lean_Syntax_isIdOrAtom_x3f(x_11);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
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_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_15 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_15);
|
||||
x_16 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
lean_inc(x_4);
|
||||
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;
|
||||
x_17 = l_Lean_throwError___rarg(x_1, x_3, x_4, x_5, lean_box(0), x_16);
|
||||
x_18 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_alloc_closure((void*)(l_Lean_withRef___rarg___lambda__1___boxed), 4, 3);
|
||||
lean_closure_set(x_19, 0, x_11);
|
||||
lean_closure_set(x_19, 1, x_4);
|
||||
lean_closure_set(x_19, 2, x_17);
|
||||
lean_inc(x_15);
|
||||
x_20 = lean_apply_4(x_15, lean_box(0), lean_box(0), x_18, x_19);
|
||||
x_21 = lean_apply_4(x_15, lean_box(0), lean_box(0), x_20, x_13);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
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_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_dec(x_11);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_23 = lean_ctor_get(x_12, 0);
|
||||
x_22 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_14);
|
||||
x_23 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_12);
|
||||
x_24 = lean_ctor_get(x_1, 1);
|
||||
x_24 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_24);
|
||||
x_25 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_1);
|
||||
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;
|
||||
}
|
||||
x_25 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_24);
|
||||
x_26 = lean_box(0);
|
||||
x_27 = lean_name_mk_string(x_26, x_22);
|
||||
x_28 = lean_apply_2(x_25, lean_box(0), x_27);
|
||||
x_29 = lean_apply_4(x_23, lean_box(0), lean_box(0), x_28, x_13);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -888,7 +1013,7 @@ lean_dec_ref(res);
|
|||
res = initialize_Lean_MonadEnv(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_Elab_Attribute_scoped___default = _init_l_Lean_Elab_Attribute_scoped___default();
|
||||
l_Lean_Elab_Attribute_kind___default = _init_l_Lean_Elab_Attribute_kind___default();
|
||||
l_Lean_Elab_Attribute_args___default = _init_l_Lean_Elab_Attribute_args___default();
|
||||
lean_mark_persistent(l_Lean_Elab_Attribute_args___default);
|
||||
l_Lean_Elab_instToFormatAttribute___closed__1 = _init_l_Lean_Elab_instToFormatAttribute___closed__1();
|
||||
|
|
@ -899,10 +1024,16 @@ l_Lean_Elab_instToFormatAttribute___closed__3 = _init_l_Lean_Elab_instToFormatAt
|
|||
lean_mark_persistent(l_Lean_Elab_instToFormatAttribute___closed__3);
|
||||
l_Lean_Elab_instToFormatAttribute___closed__4 = _init_l_Lean_Elab_instToFormatAttribute___closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_instToFormatAttribute___closed__4);
|
||||
l_Lean_Elab_instToFormatAttribute___closed__5 = _init_l_Lean_Elab_instToFormatAttribute___closed__5();
|
||||
lean_mark_persistent(l_Lean_Elab_instToFormatAttribute___closed__5);
|
||||
l_Lean_Elab_instInhabitedAttribute___closed__1 = _init_l_Lean_Elab_instInhabitedAttribute___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_instInhabitedAttribute___closed__1);
|
||||
l_Lean_Elab_instInhabitedAttribute = _init_l_Lean_Elab_instInhabitedAttribute();
|
||||
lean_mark_persistent(l_Lean_Elab_instInhabitedAttribute);
|
||||
l_Lean_Elab_toAttributeKind___closed__1 = _init_l_Lean_Elab_toAttributeKind___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_toAttributeKind___closed__1);
|
||||
l_Lean_Elab_toAttributeKind___closed__2 = _init_l_Lean_Elab_toAttributeKind___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_toAttributeKind___closed__2);
|
||||
l_Lean_Elab_elabAttr___rarg___lambda__3___closed__1 = _init_l_Lean_Elab_elabAttr___rarg___lambda__3___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_elabAttr___rarg___lambda__3___closed__1);
|
||||
l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2 = _init_l_Lean_Elab_elabAttr___rarg___lambda__3___closed__2();
|
||||
|
|
|
|||
14
stage0/stdlib/Lean/Elab/DeclModifiers.c
generated
14
stage0/stdlib/Lean/Elab/DeclModifiers.c
generated
|
|
@ -149,6 +149,7 @@ lean_object* l_Lean_Elab_instToFormatModifiers_match__1(lean_object*);
|
|||
lean_object* l_Lean_Syntax_getKind(lean_object*);
|
||||
lean_object* l_Lean_Elab_mkDeclName___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_elabModifiers___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_instToFormatAttribute___closed__5;
|
||||
lean_object* l_Lean_Elab_expandDeclId___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Modifiers_isPrivate___boxed(lean_object*);
|
||||
extern lean_object* l_Lean_Elab_instToFormatAttribute___closed__2;
|
||||
|
|
@ -1015,20 +1016,29 @@ x_5 = lean_ctor_get(x_1, 1);
|
|||
lean_inc(x_5);
|
||||
lean_dec(x_1);
|
||||
x_6 = l_Lean_Syntax_isMissing(x_5);
|
||||
if (x_2 == 0)
|
||||
switch (x_2) {
|
||||
case 0:
|
||||
{
|
||||
lean_object* x_42;
|
||||
x_42 = l_Lean_instInhabitedParserDescr___closed__1;
|
||||
x_7 = x_42;
|
||||
goto block_41;
|
||||
}
|
||||
else
|
||||
case 1:
|
||||
{
|
||||
lean_object* x_43;
|
||||
x_43 = l_Lean_Elab_instToFormatAttribute___closed__4;
|
||||
x_7 = x_43;
|
||||
goto block_41;
|
||||
}
|
||||
default:
|
||||
{
|
||||
lean_object* x_44;
|
||||
x_44 = l_Lean_Elab_instToFormatAttribute___closed__5;
|
||||
x_7 = x_44;
|
||||
goto block_41;
|
||||
}
|
||||
}
|
||||
block_41:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
|
|
|
|||
879
stage0/stdlib/Lean/Elab/Declaration.c
generated
879
stage0/stdlib/Lean/Elab/Declaration.c
generated
File diff suppressed because it is too large
Load diff
55
stage0/stdlib/Lean/Elab/Inductive.c
generated
55
stage0/stdlib/Lean/Elab/Inductive.c
generated
|
|
@ -117,7 +117,7 @@ lean_object* l_Lean_Elab_Command_accLevelAtCtor___closed__1;
|
|||
lean_object* l_List_mapM___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_levelMVarToParamAux___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MessageData_ofList(lean_object*);
|
||||
lean_object* l_Lean_Meta_mkForallFVars___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_elabCtors___spec__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_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Command_checkValidCtorModifier___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Expr_getAppArgs___closed__1;
|
||||
lean_object* l_List_map___at___private_Lean_Elab_Inductive_0__Lean_Elab_Command_applyInferMod___spec__1___closed__1;
|
||||
|
|
@ -15351,7 +15351,7 @@ return x_13;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; uint8_t x_19; lean_object* x_20;
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; lean_object* x_19;
|
||||
lean_dec(x_4);
|
||||
x_14 = lean_array_uget(x_1, x_3);
|
||||
x_15 = lean_ctor_get(x_14, 3);
|
||||
|
|
@ -15363,49 +15363,48 @@ x_17 = lean_ctor_get(x_16, 1);
|
|||
lean_inc(x_17);
|
||||
lean_dec(x_16);
|
||||
x_18 = 0;
|
||||
x_19 = 1;
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_5);
|
||||
x_20 = l_Lean_Elab_Term_applyAttributesAt(x_15, x_17, x_18, x_19, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
x_19 = l_Lean_Elab_Term_applyAttributesAt(x_15, x_17, x_18, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_17);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24;
|
||||
x_21 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_22 = 1;
|
||||
x_23 = x_3 + x_22;
|
||||
x_24 = lean_box(0);
|
||||
x_3 = x_23;
|
||||
x_4 = x_24;
|
||||
x_11 = x_21;
|
||||
lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23;
|
||||
x_20 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_19);
|
||||
x_21 = 1;
|
||||
x_22 = x_3 + x_21;
|
||||
x_23 = lean_box(0);
|
||||
x_3 = x_22;
|
||||
x_4 = x_23;
|
||||
x_11 = x_20;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_26;
|
||||
uint8_t x_25;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_5);
|
||||
x_26 = !lean_is_exclusive(x_20);
|
||||
if (x_26 == 0)
|
||||
x_25 = !lean_is_exclusive(x_19);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
return x_20;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_27 = lean_ctor_get(x_20, 0);
|
||||
x_28 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_28);
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_26 = lean_ctor_get(x_19, 0);
|
||||
x_27 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_20);
|
||||
x_29 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_27);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
return x_29;
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_19);
|
||||
x_28 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_26);
|
||||
lean_ctor_set(x_28, 1, x_27);
|
||||
return x_28;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
525
stage0/stdlib/Lean/Elab/LetRec.c
generated
525
stage0/stdlib/Lean/Elab/LetRec.c
generated
|
|
@ -49,7 +49,7 @@ extern lean_object* l_Lean_Elab_throwAlreadyDeclaredUniverseLevel___rarg___close
|
|||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, 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__3___closed__1;
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__3(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__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -165,6 +165,7 @@ lean_object* l_Lean_Elab_elabDeclAttrs___at___private_Lean_Elab_LetRec_0__Lean_E
|
|||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__1___closed__3;
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Elab_toAttributeKind(lean_object*);
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(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*);
|
||||
extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__1;
|
||||
extern lean_object* l_Lean_Meta_CheckAssignment_checkFVar___closed__2;
|
||||
|
|
@ -559,128 +560,111 @@ 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;
|
||||
lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
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);
|
||||
x_11 = l_Lean_Elab_toAttributeKind(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)
|
||||
uint8_t x_15;
|
||||
x_15 = !lean_is_exclusive(x_6);
|
||||
if (x_15 == 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_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_16 = lean_ctor_get(x_6, 3);
|
||||
x_17 = l_Lean_replaceRef(x_13, x_16);
|
||||
lean_dec(x_16);
|
||||
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_ctor_set(x_6, 3, x_17);
|
||||
x_18 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_19 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_18, 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)
|
||||
x_20 = !lean_is_exclusive(x_19);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
return x_20;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_22 = lean_ctor_get(x_20, 0);
|
||||
x_23 = lean_ctor_get(x_20, 1);
|
||||
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_dec(x_20);
|
||||
x_24 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
return x_24;
|
||||
lean_inc(x_21);
|
||||
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_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_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_24 = lean_ctor_get(x_6, 0);
|
||||
x_25 = lean_ctor_get(x_6, 1);
|
||||
x_26 = lean_ctor_get(x_6, 2);
|
||||
x_27 = lean_ctor_get(x_6, 3);
|
||||
x_28 = lean_ctor_get(x_6, 4);
|
||||
x_29 = lean_ctor_get(x_6, 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_6);
|
||||
x_31 = l_Lean_replaceRef(x_13, x_28);
|
||||
lean_dec(x_28);
|
||||
x_30 = l_Lean_replaceRef(x_13, x_27);
|
||||
lean_dec(x_27);
|
||||
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);
|
||||
x_31 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_31, 0, x_24);
|
||||
lean_ctor_set(x_31, 1, x_25);
|
||||
lean_ctor_set(x_31, 2, x_26);
|
||||
lean_ctor_set(x_31, 3, x_30);
|
||||
lean_ctor_set(x_31, 4, x_28);
|
||||
lean_ctor_set(x_31, 5, x_29);
|
||||
x_32 = l_Lean_Elab_elabAttr___rarg___closed__3;
|
||||
x_33 = l_Lean_throwError___at_Lean_Elab_Term_throwErrorIfErrors___spec__1___rarg(x_32, x_2, x_3, x_4, x_5, x_31, x_7, x_8);
|
||||
lean_dec(x_31);
|
||||
x_34 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_34);
|
||||
x_35 = lean_ctor_get(x_33, 1);
|
||||
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;
|
||||
if (lean_is_exclusive(x_33)) {
|
||||
lean_ctor_release(x_33, 0);
|
||||
lean_ctor_release(x_33, 1);
|
||||
x_36 = x_33;
|
||||
} else {
|
||||
lean_dec_ref(x_34);
|
||||
x_37 = lean_box(0);
|
||||
lean_dec_ref(x_33);
|
||||
x_36 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_37)) {
|
||||
x_38 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_36)) {
|
||||
x_37 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_38 = x_37;
|
||||
x_37 = x_36;
|
||||
}
|
||||
lean_ctor_set(x_38, 0, x_35);
|
||||
lean_ctor_set(x_38, 1, x_36);
|
||||
return x_38;
|
||||
lean_ctor_set(x_37, 0, x_34);
|
||||
lean_ctor_set(x_37, 1, x_35);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41;
|
||||
lean_dec(x_13);
|
||||
x_39 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_39);
|
||||
x_38 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_38);
|
||||
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);
|
||||
x_39 = lean_box(0);
|
||||
x_40 = lean_name_mk_string(x_39, x_38);
|
||||
x_41 = l_Lean_Elab_elabAttr___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__7___lambda__3(x_1, x_11, x_40, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
lean_dec(x_6);
|
||||
return x_42;
|
||||
}
|
||||
return x_41;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1038,13 +1022,13 @@ lean_inc(x_13);
|
|||
x_17 = l_Lean_Syntax_isOfKind(x_13, x_16);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_109; uint8_t x_110;
|
||||
x_109 = l_Lean_Elab_Term_elabLetDeclCore___closed__4;
|
||||
lean_object* x_108; uint8_t x_109;
|
||||
x_108 = l_Lean_Elab_Term_elabLetDeclCore___closed__4;
|
||||
lean_inc(x_13);
|
||||
x_110 = l_Lean_Syntax_isOfKind(x_13, x_109);
|
||||
if (x_110 == 0)
|
||||
x_109 = l_Lean_Syntax_isOfKind(x_13, x_108);
|
||||
if (x_109 == 0)
|
||||
{
|
||||
lean_object* x_111;
|
||||
lean_object* x_110;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
|
|
@ -1053,25 +1037,25 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_111 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__4___rarg(x_9);
|
||||
return x_111;
|
||||
x_110 = l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__4___rarg(x_9);
|
||||
return x_110;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_111;
|
||||
x_111 = lean_box(0);
|
||||
x_18 = x_111;
|
||||
goto block_107;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_112;
|
||||
x_112 = lean_box(0);
|
||||
x_18 = x_112;
|
||||
goto block_108;
|
||||
goto block_107;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_113;
|
||||
x_113 = lean_box(0);
|
||||
x_18 = x_113;
|
||||
goto block_108;
|
||||
}
|
||||
block_108:
|
||||
block_107:
|
||||
{
|
||||
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_dec(x_18);
|
||||
|
|
@ -1086,21 +1070,21 @@ lean_inc(x_23);
|
|||
lean_dec(x_21);
|
||||
if (lean_obj_tag(x_22) == 0)
|
||||
{
|
||||
lean_object* x_106;
|
||||
x_106 = lean_box(0);
|
||||
x_24 = x_106;
|
||||
goto block_105;
|
||||
lean_object* x_105;
|
||||
x_105 = lean_box(0);
|
||||
x_24 = x_105;
|
||||
goto block_104;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_107;
|
||||
x_107 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_107);
|
||||
lean_object* x_106;
|
||||
x_106 = lean_ctor_get(x_22, 0);
|
||||
lean_inc(x_106);
|
||||
lean_dec(x_22);
|
||||
x_24 = x_107;
|
||||
goto block_105;
|
||||
x_24 = x_106;
|
||||
goto block_104;
|
||||
}
|
||||
block_105:
|
||||
block_104:
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26;
|
||||
lean_inc(x_20);
|
||||
|
|
@ -1111,196 +1095,195 @@ lean_inc(x_25);
|
|||
x_26 = l_Lean_Elab_checkNotAlreadyDeclared___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__1(x_25, x_3, x_4, x_5, x_6, x_7, x_8, x_23);
|
||||
if (lean_obj_tag(x_26) == 0)
|
||||
{
|
||||
lean_object* x_27; uint8_t x_28; uint8_t x_29; lean_object* x_30;
|
||||
lean_object* x_27; uint8_t x_28; lean_object* x_29;
|
||||
x_27 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_26);
|
||||
x_28 = 2;
|
||||
x_29 = 1;
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_25);
|
||||
x_30 = l_Lean_Elab_Term_applyAttributesAt(x_25, x_2, x_28, x_29, x_3, x_4, x_5, x_6, x_7, x_8, x_27);
|
||||
if (lean_obj_tag(x_30) == 0)
|
||||
x_29 = l_Lean_Elab_Term_applyAttributesAt(x_25, x_2, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_27);
|
||||
if (lean_obj_tag(x_29) == 0)
|
||||
{
|
||||
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; uint8_t x_38; lean_object* x_39;
|
||||
x_31 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_30);
|
||||
x_32 = l_Lean_Syntax_getArg(x_13, x_10);
|
||||
x_33 = l_Lean_Syntax_getArgs(x_32);
|
||||
lean_dec(x_32);
|
||||
x_34 = lean_unsigned_to_nat(2u);
|
||||
x_35 = l_Lean_Syntax_getArg(x_13, x_34);
|
||||
x_36 = l_Lean_Elab_Term_expandOptType(x_13, x_35);
|
||||
lean_dec(x_35);
|
||||
x_37 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__1), 9, 1);
|
||||
lean_closure_set(x_37, 0, x_36);
|
||||
x_38 = 0;
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38;
|
||||
x_30 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_29);
|
||||
x_31 = l_Lean_Syntax_getArg(x_13, x_10);
|
||||
x_32 = l_Lean_Syntax_getArgs(x_31);
|
||||
lean_dec(x_31);
|
||||
x_33 = lean_unsigned_to_nat(2u);
|
||||
x_34 = l_Lean_Syntax_getArg(x_13, x_33);
|
||||
x_35 = l_Lean_Elab_Term_expandOptType(x_13, x_34);
|
||||
lean_dec(x_34);
|
||||
x_36 = lean_alloc_closure((void*)(l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__1), 9, 1);
|
||||
lean_closure_set(x_36, 0, x_35);
|
||||
x_37 = 0;
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_39 = l_Lean_Elab_Term_elabBinders___rarg(x_33, x_37, x_38, x_3, x_4, x_5, x_6, x_7, x_8, x_31);
|
||||
if (lean_obj_tag(x_39) == 0)
|
||||
x_38 = l_Lean_Elab_Term_elabBinders___rarg(x_32, x_36, x_37, x_3, x_4, x_5, x_6, x_7, x_8, x_30);
|
||||
if (lean_obj_tag(x_38) == 0)
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; uint8_t x_45; lean_object* x_46; lean_object* x_47;
|
||||
x_40 = lean_ctor_get(x_39, 0);
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; uint8_t x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_39 = lean_ctor_get(x_38, 0);
|
||||
lean_inc(x_39);
|
||||
x_40 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_40);
|
||||
x_41 = lean_ctor_get(x_39, 1);
|
||||
lean_dec(x_38);
|
||||
x_41 = lean_ctor_get(x_39, 0);
|
||||
lean_inc(x_41);
|
||||
x_42 = lean_ctor_get(x_39, 1);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_39);
|
||||
x_42 = lean_ctor_get(x_40, 0);
|
||||
lean_inc(x_42);
|
||||
x_43 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_40);
|
||||
lean_inc(x_42);
|
||||
x_44 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_44, 0, x_42);
|
||||
x_45 = 2;
|
||||
x_46 = lean_box(0);
|
||||
lean_inc(x_41);
|
||||
x_43 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_43, 0, x_41);
|
||||
x_44 = 2;
|
||||
x_45 = lean_box(0);
|
||||
lean_inc(x_5);
|
||||
x_47 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_44, x_45, x_46, x_5, x_6, x_7, x_8, x_41);
|
||||
x_46 = l___private_Lean_Meta_Basic_0__Lean_Meta_mkFreshExprMVarImpl(x_43, x_44, x_45, x_5, x_6, x_7, x_8, x_40);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; uint8_t x_76;
|
||||
x_48 = lean_ctor_get(x_47, 0);
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; uint8_t x_75;
|
||||
x_47 = lean_ctor_get(x_46, 0);
|
||||
lean_inc(x_47);
|
||||
x_48 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_48);
|
||||
x_49 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_47);
|
||||
x_50 = lean_unsigned_to_nat(3u);
|
||||
x_51 = l_Lean_Syntax_getArg(x_13, x_50);
|
||||
x_52 = lean_st_ref_get(x_8, x_49);
|
||||
x_53 = lean_ctor_get(x_52, 0);
|
||||
lean_dec(x_46);
|
||||
x_49 = lean_unsigned_to_nat(3u);
|
||||
x_50 = l_Lean_Syntax_getArg(x_13, x_49);
|
||||
x_51 = lean_st_ref_get(x_8, x_48);
|
||||
x_52 = lean_ctor_get(x_51, 0);
|
||||
lean_inc(x_52);
|
||||
x_53 = lean_ctor_get(x_51, 1);
|
||||
lean_inc(x_53);
|
||||
x_54 = lean_ctor_get(x_52, 1);
|
||||
lean_dec(x_51);
|
||||
x_54 = lean_ctor_get(x_52, 0);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_52);
|
||||
x_55 = lean_ctor_get(x_53, 0);
|
||||
x_55 = lean_ctor_get(x_7, 3);
|
||||
lean_inc(x_55);
|
||||
lean_dec(x_53);
|
||||
x_56 = lean_ctor_get(x_7, 3);
|
||||
lean_inc(x_56);
|
||||
x_57 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_54);
|
||||
x_58 = lean_ctor_get(x_57, 0);
|
||||
x_56 = l_Lean_Elab_Term_getCurrMacroScope(x_3, x_4, x_5, x_6, x_7, x_8, x_53);
|
||||
x_57 = lean_ctor_get(x_56, 0);
|
||||
lean_inc(x_57);
|
||||
x_58 = lean_ctor_get(x_56, 1);
|
||||
lean_inc(x_58);
|
||||
x_59 = lean_ctor_get(x_57, 1);
|
||||
lean_dec(x_56);
|
||||
x_59 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_59);
|
||||
lean_dec(x_57);
|
||||
x_60 = lean_ctor_get(x_7, 1);
|
||||
x_60 = lean_ctor_get(x_7, 2);
|
||||
lean_inc(x_60);
|
||||
x_61 = lean_ctor_get(x_7, 2);
|
||||
lean_inc(x_61);
|
||||
x_62 = lean_st_ref_get(x_8, x_59);
|
||||
x_63 = lean_ctor_get(x_62, 0);
|
||||
x_61 = lean_st_ref_get(x_8, x_58);
|
||||
x_62 = lean_ctor_get(x_61, 0);
|
||||
lean_inc(x_62);
|
||||
x_63 = lean_ctor_get(x_61, 1);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_61);
|
||||
x_64 = lean_ctor_get(x_62, 1);
|
||||
lean_inc(x_64);
|
||||
lean_dec(x_62);
|
||||
x_65 = lean_ctor_get(x_63, 1);
|
||||
lean_inc(x_65);
|
||||
lean_dec(x_63);
|
||||
lean_inc(x_55);
|
||||
x_66 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1);
|
||||
lean_closure_set(x_66, 0, x_55);
|
||||
x_67 = x_66;
|
||||
x_68 = lean_environment_main_module(x_55);
|
||||
x_69 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_69, 0, x_67);
|
||||
lean_ctor_set(x_69, 1, x_68);
|
||||
lean_ctor_set(x_69, 2, x_58);
|
||||
lean_ctor_set(x_69, 3, x_60);
|
||||
lean_ctor_set(x_69, 4, x_61);
|
||||
lean_ctor_set(x_69, 5, x_56);
|
||||
x_70 = l_Lean_Elab_Term_expandMatchAltsIntoMatch(x_13, x_51, x_38, x_69, x_65);
|
||||
x_71 = lean_ctor_get(x_70, 0);
|
||||
lean_inc(x_54);
|
||||
x_65 = lean_alloc_closure((void*)(l___private_Lean_Elab_Util_0__Lean_Elab_expandMacro_x3f___boxed), 4, 1);
|
||||
lean_closure_set(x_65, 0, x_54);
|
||||
x_66 = x_65;
|
||||
x_67 = lean_environment_main_module(x_54);
|
||||
x_68 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_68, 0, x_66);
|
||||
lean_ctor_set(x_68, 1, x_67);
|
||||
lean_ctor_set(x_68, 2, x_57);
|
||||
lean_ctor_set(x_68, 3, x_59);
|
||||
lean_ctor_set(x_68, 4, x_60);
|
||||
lean_ctor_set(x_68, 5, x_55);
|
||||
x_69 = l_Lean_Elab_Term_expandMatchAltsIntoMatch(x_13, x_50, x_37, x_68, x_64);
|
||||
x_70 = lean_ctor_get(x_69, 0);
|
||||
lean_inc(x_70);
|
||||
x_71 = lean_ctor_get(x_69, 1);
|
||||
lean_inc(x_71);
|
||||
x_72 = lean_ctor_get(x_70, 1);
|
||||
lean_inc(x_72);
|
||||
lean_dec(x_70);
|
||||
x_73 = lean_st_ref_take(x_8, x_64);
|
||||
x_74 = lean_ctor_get(x_73, 0);
|
||||
lean_dec(x_69);
|
||||
x_72 = lean_st_ref_take(x_8, x_63);
|
||||
x_73 = lean_ctor_get(x_72, 0);
|
||||
lean_inc(x_73);
|
||||
x_74 = lean_ctor_get(x_72, 1);
|
||||
lean_inc(x_74);
|
||||
x_75 = lean_ctor_get(x_73, 1);
|
||||
lean_inc(x_75);
|
||||
lean_dec(x_73);
|
||||
x_76 = !lean_is_exclusive(x_74);
|
||||
if (x_76 == 0)
|
||||
lean_dec(x_72);
|
||||
x_75 = !lean_is_exclusive(x_73);
|
||||
if (x_75 == 0)
|
||||
{
|
||||
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80;
|
||||
x_77 = lean_ctor_get(x_74, 1);
|
||||
lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79;
|
||||
x_76 = lean_ctor_get(x_73, 1);
|
||||
lean_dec(x_76);
|
||||
lean_ctor_set(x_73, 1, x_71);
|
||||
x_77 = lean_st_ref_set(x_8, x_73, x_74);
|
||||
x_78 = lean_ctor_get(x_77, 1);
|
||||
lean_inc(x_78);
|
||||
lean_dec(x_77);
|
||||
lean_ctor_set(x_74, 1, x_72);
|
||||
x_78 = lean_st_ref_set(x_8, x_74, x_75);
|
||||
x_79 = lean_ctor_get(x_78, 1);
|
||||
lean_inc(x_79);
|
||||
lean_dec(x_78);
|
||||
x_80 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_43, x_42, x_48, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_79);
|
||||
x_79 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_42, x_41, x_47, x_70, x_3, x_4, x_5, x_6, x_7, x_8, x_78);
|
||||
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_80;
|
||||
return x_79;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87;
|
||||
x_81 = lean_ctor_get(x_74, 0);
|
||||
x_82 = lean_ctor_get(x_74, 2);
|
||||
x_83 = lean_ctor_get(x_74, 3);
|
||||
lean_inc(x_83);
|
||||
lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86;
|
||||
x_80 = lean_ctor_get(x_73, 0);
|
||||
x_81 = lean_ctor_get(x_73, 2);
|
||||
x_82 = lean_ctor_get(x_73, 3);
|
||||
lean_inc(x_82);
|
||||
lean_inc(x_81);
|
||||
lean_dec(x_74);
|
||||
x_84 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_84, 0, x_81);
|
||||
lean_ctor_set(x_84, 1, x_72);
|
||||
lean_ctor_set(x_84, 2, x_82);
|
||||
lean_ctor_set(x_84, 3, x_83);
|
||||
x_85 = lean_st_ref_set(x_8, x_84, x_75);
|
||||
x_86 = lean_ctor_get(x_85, 1);
|
||||
lean_inc(x_86);
|
||||
lean_dec(x_85);
|
||||
x_87 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_43, x_42, x_48, x_71, x_3, x_4, x_5, x_6, x_7, x_8, x_86);
|
||||
lean_inc(x_80);
|
||||
lean_dec(x_73);
|
||||
x_83 = lean_alloc_ctor(0, 4, 0);
|
||||
lean_ctor_set(x_83, 0, x_80);
|
||||
lean_ctor_set(x_83, 1, x_71);
|
||||
lean_ctor_set(x_83, 2, x_81);
|
||||
lean_ctor_set(x_83, 3, x_82);
|
||||
x_84 = lean_st_ref_set(x_8, x_83, x_74);
|
||||
x_85 = lean_ctor_get(x_84, 1);
|
||||
lean_inc(x_85);
|
||||
lean_dec(x_84);
|
||||
x_86 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_42, x_41, x_47, x_70, x_3, x_4, x_5, x_6, x_7, x_8, x_85);
|
||||
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_87;
|
||||
return x_86;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
x_88 = lean_ctor_get(x_47, 0);
|
||||
lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91;
|
||||
x_87 = lean_ctor_get(x_46, 0);
|
||||
lean_inc(x_87);
|
||||
x_88 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_88);
|
||||
x_89 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_89);
|
||||
lean_dec(x_47);
|
||||
x_90 = lean_unsigned_to_nat(4u);
|
||||
x_91 = l_Lean_Syntax_getArg(x_13, x_90);
|
||||
x_92 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_43, x_42, x_88, x_91, x_3, x_4, x_5, x_6, x_7, x_8, x_89);
|
||||
lean_dec(x_46);
|
||||
x_89 = lean_unsigned_to_nat(4u);
|
||||
x_90 = l_Lean_Syntax_getArg(x_13, x_89);
|
||||
x_91 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__2(x_13, x_2, x_20, x_25, x_42, x_41, x_87, x_90, x_3, x_4, x_5, x_6, x_7, x_8, x_88);
|
||||
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_92;
|
||||
return x_91;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_93;
|
||||
uint8_t x_92;
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_13);
|
||||
|
|
@ -1311,29 +1294,29 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_93 = !lean_is_exclusive(x_39);
|
||||
if (x_93 == 0)
|
||||
x_92 = !lean_is_exclusive(x_38);
|
||||
if (x_92 == 0)
|
||||
{
|
||||
return x_39;
|
||||
return x_38;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_94; lean_object* x_95; lean_object* x_96;
|
||||
x_94 = lean_ctor_get(x_39, 0);
|
||||
x_95 = lean_ctor_get(x_39, 1);
|
||||
lean_inc(x_95);
|
||||
lean_object* x_93; lean_object* x_94; lean_object* x_95;
|
||||
x_93 = lean_ctor_get(x_38, 0);
|
||||
x_94 = lean_ctor_get(x_38, 1);
|
||||
lean_inc(x_94);
|
||||
lean_dec(x_39);
|
||||
x_96 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_96, 0, x_94);
|
||||
lean_ctor_set(x_96, 1, x_95);
|
||||
return x_96;
|
||||
lean_inc(x_93);
|
||||
lean_dec(x_38);
|
||||
x_95 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_95, 0, x_93);
|
||||
lean_ctor_set(x_95, 1, x_94);
|
||||
return x_95;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_97;
|
||||
uint8_t x_96;
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_13);
|
||||
|
|
@ -1344,29 +1327,29 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_97 = !lean_is_exclusive(x_30);
|
||||
if (x_97 == 0)
|
||||
x_96 = !lean_is_exclusive(x_29);
|
||||
if (x_96 == 0)
|
||||
{
|
||||
return x_30;
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_98; lean_object* x_99; lean_object* x_100;
|
||||
x_98 = lean_ctor_get(x_30, 0);
|
||||
x_99 = lean_ctor_get(x_30, 1);
|
||||
lean_inc(x_99);
|
||||
lean_object* x_97; lean_object* x_98; lean_object* x_99;
|
||||
x_97 = lean_ctor_get(x_29, 0);
|
||||
x_98 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_98);
|
||||
lean_dec(x_30);
|
||||
x_100 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_100, 0, x_98);
|
||||
lean_ctor_set(x_100, 1, x_99);
|
||||
return x_100;
|
||||
lean_inc(x_97);
|
||||
lean_dec(x_29);
|
||||
x_99 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_99, 0, x_97);
|
||||
lean_ctor_set(x_99, 1, x_98);
|
||||
return x_99;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_101;
|
||||
uint8_t x_100;
|
||||
lean_dec(x_25);
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_13);
|
||||
|
|
@ -1377,23 +1360,23 @@ lean_dec(x_5);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_101 = !lean_is_exclusive(x_26);
|
||||
if (x_101 == 0)
|
||||
x_100 = !lean_is_exclusive(x_26);
|
||||
if (x_100 == 0)
|
||||
{
|
||||
return x_26;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_102; lean_object* x_103; lean_object* x_104;
|
||||
x_102 = lean_ctor_get(x_26, 0);
|
||||
x_103 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_103);
|
||||
lean_object* x_101; lean_object* x_102; lean_object* x_103;
|
||||
x_101 = lean_ctor_get(x_26, 0);
|
||||
x_102 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_102);
|
||||
lean_inc(x_101);
|
||||
lean_dec(x_26);
|
||||
x_104 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_104, 0, x_102);
|
||||
lean_ctor_set(x_104, 1, x_103);
|
||||
return x_104;
|
||||
x_103 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_103, 0, x_101);
|
||||
lean_ctor_set(x_103, 1, x_102);
|
||||
return x_103;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1401,16 +1384,16 @@ return x_104;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_114; lean_object* x_115;
|
||||
lean_object* x_113; lean_object* x_114;
|
||||
lean_dec(x_2);
|
||||
x_114 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__3___closed__3;
|
||||
x_115 = l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___rarg(x_13, x_114, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_113 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_LetRec_0__Lean_Elab_Term_mkLetRecDeclView___spec__9___lambda__3___closed__3;
|
||||
x_114 = l_Lean_throwErrorAt___at_Lean_Elab_Term_Quotation_match__syntax_expand___spec__1___rarg(x_13, x_113, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_13);
|
||||
return x_115;
|
||||
return x_114;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
212
stage0/stdlib/Lean/Elab/MutualDef.c
generated
212
stage0/stdlib/Lean/Elab/MutualDef.c
generated
|
|
@ -137,7 +137,7 @@ lean_object* l_Lean_MessageData_ofList(lean_object*);
|
|||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___closed__1;
|
||||
lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsAsStructInst___spec__2___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_mapM___at_Lean_Elab_Term_MutualClosure_main___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at___private_Lean_Elab_Term_0__Lean_Elab_Term_elabTermAux___spec__2___rarg(lean_object*);
|
||||
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_checkKinds___lambda__1(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -591,6 +591,7 @@ lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_expandWhereDeclsA
|
|||
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*);
|
||||
uint8_t l_Lean_Elab_toAttributeKind(lean_object*);
|
||||
extern lean_object* l_Lean_CollectFVars_instInhabitedState___closed__1;
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_MutualClosure_mkClosureFor_match__1___rarg(lean_object*, lean_object*);
|
||||
lean_object* l___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_check___lambda__3___closed__2;
|
||||
|
|
@ -4209,7 +4210,7 @@ x_29 = l_Lean_Elab_expandDeclId___at___private_Lean_Elab_MutualDef_0__Lean_Elab_
|
|||
lean_dec(x_27);
|
||||
if (lean_obj_tag(x_29) == 0)
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; uint8_t x_37; lean_object* x_38;
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37;
|
||||
x_30 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_29, 1);
|
||||
|
|
@ -4225,35 +4226,35 @@ lean_dec(x_30);
|
|||
x_35 = lean_ctor_get(x_28, 1);
|
||||
lean_inc(x_35);
|
||||
x_36 = 2;
|
||||
x_37 = 1;
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_23);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_33);
|
||||
x_38 = l_Lean_Elab_Term_applyAttributesAt(x_33, x_35, x_36, x_37, x_5, x_6, x_7, x_8, x_23, x_10, x_31);
|
||||
x_37 = l_Lean_Elab_Term_applyAttributesAt(x_33, x_35, x_36, x_5, x_6, x_7, x_8, x_23, x_10, x_31);
|
||||
lean_dec(x_35);
|
||||
if (lean_obj_tag(x_38) == 0)
|
||||
if (lean_obj_tag(x_37) == 0)
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_39 = lean_ctor_get(x_38, 1);
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46;
|
||||
x_38 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_38);
|
||||
lean_dec(x_37);
|
||||
x_39 = lean_ctor_get(x_14, 3);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_38);
|
||||
x_40 = lean_ctor_get(x_14, 3);
|
||||
lean_inc(x_40);
|
||||
x_41 = l_Lean_Syntax_getArgs(x_40);
|
||||
lean_dec(x_40);
|
||||
x_40 = l_Lean_Syntax_getArgs(x_39);
|
||||
lean_dec(x_39);
|
||||
lean_inc(x_4);
|
||||
x_42 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___lambda__2), 14, 6);
|
||||
lean_closure_set(x_42, 0, x_14);
|
||||
lean_closure_set(x_42, 1, x_15);
|
||||
lean_closure_set(x_42, 2, x_28);
|
||||
lean_closure_set(x_42, 3, x_32);
|
||||
lean_closure_set(x_42, 4, x_33);
|
||||
lean_closure_set(x_42, 5, x_4);
|
||||
x_43 = lean_box(x_37);
|
||||
x_41 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at___private_Lean_Elab_MutualDef_0__Lean_Elab_Term_elabHeaders___spec__7___lambda__2), 14, 6);
|
||||
lean_closure_set(x_41, 0, x_14);
|
||||
lean_closure_set(x_41, 1, x_15);
|
||||
lean_closure_set(x_41, 2, x_28);
|
||||
lean_closure_set(x_41, 3, x_32);
|
||||
lean_closure_set(x_41, 4, x_33);
|
||||
lean_closure_set(x_41, 5, x_4);
|
||||
x_42 = 1;
|
||||
x_43 = lean_box(x_42);
|
||||
x_44 = lean_alloc_closure((void*)(l_Lean_Elab_Term_elabBinders___rarg___boxed), 10, 3);
|
||||
lean_closure_set(x_44, 0, x_41);
|
||||
lean_closure_set(x_44, 1, x_42);
|
||||
lean_closure_set(x_44, 0, x_40);
|
||||
lean_closure_set(x_44, 1, x_41);
|
||||
lean_closure_set(x_44, 2, x_43);
|
||||
x_45 = lean_alloc_closure((void*)(l_Lean_Elab_Term_withLevelNames___rarg), 9, 2);
|
||||
lean_closure_set(x_45, 0, x_34);
|
||||
|
|
@ -4263,7 +4264,7 @@ lean_inc(x_8);
|
|||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_46 = l_Lean_Elab_Term_withAutoBoundImplicitLocal___rarg(x_45, x_37, x_5, x_6, x_7, x_8, x_23, x_10, x_39);
|
||||
x_46 = l_Lean_Elab_Term_withAutoBoundImplicitLocal___rarg(x_45, x_42, x_5, x_6, x_7, x_8, x_23, x_10, x_38);
|
||||
if (lean_obj_tag(x_46) == 0)
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49; size_t x_50; size_t x_51;
|
||||
|
|
@ -4327,19 +4328,19 @@ lean_dec(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_57 = !lean_is_exclusive(x_38);
|
||||
x_57 = !lean_is_exclusive(x_37);
|
||||
if (x_57 == 0)
|
||||
{
|
||||
return x_38;
|
||||
return x_37;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_58; lean_object* x_59; lean_object* x_60;
|
||||
x_58 = lean_ctor_get(x_38, 0);
|
||||
x_59 = lean_ctor_get(x_38, 1);
|
||||
x_58 = lean_ctor_get(x_37, 0);
|
||||
x_59 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_59);
|
||||
lean_inc(x_58);
|
||||
lean_dec(x_38);
|
||||
lean_dec(x_37);
|
||||
x_60 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_58);
|
||||
lean_ctor_set(x_60, 1, x_59);
|
||||
|
|
@ -17688,130 +17689,113 @@ 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; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11;
|
||||
lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_5 = lean_unsigned_to_nat(0u);
|
||||
x_6 = l_Lean_Syntax_getArg(x_1, x_5);
|
||||
x_7 = l_Lean_Syntax_isNone(x_6);
|
||||
x_7 = l_Lean_Elab_toAttributeKind(x_6);
|
||||
lean_dec(x_6);
|
||||
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)
|
||||
{
|
||||
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_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_11 = l_Lean_Elab_Command_getRef(x_2, x_3, x_4);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_11);
|
||||
x_14 = l_Lean_replaceRef(x_9, x_12);
|
||||
lean_dec(x_12);
|
||||
x_15 = l_Lean_replaceRef(x_9, x_13);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_9);
|
||||
x_16 = !lean_is_exclusive(x_2);
|
||||
if (x_16 == 0)
|
||||
x_15 = !lean_is_exclusive(x_2);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
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_16; lean_object* x_17; lean_object* x_18; uint8_t x_19;
|
||||
x_16 = lean_ctor_get(x_2, 6);
|
||||
lean_dec(x_16);
|
||||
lean_ctor_set(x_2, 6, x_14);
|
||||
x_17 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__2;
|
||||
x_18 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___rarg(x_17, x_2, x_3, x_13);
|
||||
x_19 = !lean_is_exclusive(x_18);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
return x_19;
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
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_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_20 = lean_ctor_get(x_18, 0);
|
||||
x_21 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_21);
|
||||
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;
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
x_22 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_20);
|
||||
lean_ctor_set(x_22, 1, x_21);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35;
|
||||
x_23 = lean_ctor_get(x_2, 0);
|
||||
x_24 = lean_ctor_get(x_2, 1);
|
||||
x_25 = lean_ctor_get(x_2, 2);
|
||||
x_26 = lean_ctor_get(x_2, 3);
|
||||
x_27 = lean_ctor_get(x_2, 4);
|
||||
x_28 = lean_ctor_get(x_2, 5);
|
||||
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_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);
|
||||
x_29 = lean_alloc_ctor(0, 7, 0);
|
||||
lean_ctor_set(x_29, 0, x_23);
|
||||
lean_ctor_set(x_29, 1, x_24);
|
||||
lean_ctor_set(x_29, 2, x_25);
|
||||
lean_ctor_set(x_29, 3, x_26);
|
||||
lean_ctor_set(x_29, 4, x_27);
|
||||
lean_ctor_set(x_29, 5, x_28);
|
||||
lean_ctor_set(x_29, 6, x_14);
|
||||
x_30 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___closed__2;
|
||||
x_31 = l_Lean_throwError___at___private_Lean_Elab_Command_0__Lean_Elab_Command_elabCommandUsing___spec__1___rarg(x_30, x_29, x_3, x_13);
|
||||
x_32 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_32);
|
||||
x_33 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_33);
|
||||
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;
|
||||
if (lean_is_exclusive(x_31)) {
|
||||
lean_ctor_release(x_31, 0);
|
||||
lean_ctor_release(x_31, 1);
|
||||
x_34 = x_31;
|
||||
} else {
|
||||
lean_dec_ref(x_32);
|
||||
x_35 = lean_box(0);
|
||||
lean_dec_ref(x_31);
|
||||
x_34 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_35)) {
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_34)) {
|
||||
x_35 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_36 = x_35;
|
||||
x_35 = x_34;
|
||||
}
|
||||
lean_ctor_set(x_36, 0, x_33);
|
||||
lean_ctor_set(x_36, 1, x_34);
|
||||
return x_36;
|
||||
lean_ctor_set(x_35, 0, x_32);
|
||||
lean_ctor_set(x_35, 1, x_33);
|
||||
return x_35;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
||||
lean_dec(x_9);
|
||||
x_37 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_37);
|
||||
x_36 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_36);
|
||||
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;
|
||||
}
|
||||
x_37 = lean_box(0);
|
||||
x_38 = lean_name_mk_string(x_37, x_36);
|
||||
x_39 = l_Lean_Elab_elabAttr___at_Lean_Elab_Command_elabMutualDef___spec__4___lambda__3(x_1, x_7, x_38, x_2, x_3, x_4);
|
||||
return x_39;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
55
stage0/stdlib/Lean/Elab/PreDefinition/Basic.c
generated
55
stage0/stdlib/Lean/Elab/PreDefinition/Basic.c
generated
|
|
@ -41,7 +41,7 @@ uint8_t lean_name_eq(lean_object*, lean_object*);
|
|||
lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_addAndCompileUnsafeRec___spec__3___boxed(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_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_applyAttributesAt(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_instantiateMVarsAtPreDecls___boxed__const__1;
|
||||
lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_applyAttributesOf___spec__1(uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Elab_DefKind_isExample(uint8_t);
|
||||
|
|
@ -3142,7 +3142,7 @@ return x_14;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20;
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
lean_dec(x_5);
|
||||
x_15 = lean_array_uget(x_2, x_4);
|
||||
x_16 = lean_ctor_get(x_15, 2);
|
||||
|
|
@ -3153,49 +3153,48 @@ lean_dec(x_15);
|
|||
x_18 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_17);
|
||||
x_19 = 1;
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_6);
|
||||
x_20 = l_Lean_Elab_Term_applyAttributesAt(x_16, x_18, x_1, x_19, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
x_19 = l_Lean_Elab_Term_applyAttributesAt(x_16, x_18, x_1, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_18);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_object* x_21; size_t x_22; size_t x_23; lean_object* x_24;
|
||||
x_21 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_20);
|
||||
x_22 = 1;
|
||||
x_23 = x_4 + x_22;
|
||||
x_24 = lean_box(0);
|
||||
x_4 = x_23;
|
||||
x_5 = x_24;
|
||||
x_12 = x_21;
|
||||
lean_object* x_20; size_t x_21; size_t x_22; lean_object* x_23;
|
||||
x_20 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_19);
|
||||
x_21 = 1;
|
||||
x_22 = x_4 + x_21;
|
||||
x_23 = lean_box(0);
|
||||
x_4 = x_22;
|
||||
x_5 = x_23;
|
||||
x_12 = x_20;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_26;
|
||||
uint8_t x_25;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_6);
|
||||
x_26 = !lean_is_exclusive(x_20);
|
||||
if (x_26 == 0)
|
||||
x_25 = !lean_is_exclusive(x_19);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
return x_20;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_27 = lean_ctor_get(x_20, 0);
|
||||
x_28 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_28);
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_26 = lean_ctor_get(x_19, 0);
|
||||
x_27 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_20);
|
||||
x_29 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_27);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
return x_29;
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_19);
|
||||
x_28 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_26);
|
||||
lean_ctor_set(x_28, 1, x_27);
|
||||
return x_28;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
1228
stage0/stdlib/Lean/Elab/Structure.c
generated
1228
stage0/stdlib/Lean/Elab/Structure.c
generated
File diff suppressed because it is too large
Load diff
688
stage0/stdlib/Lean/Elab/Syntax.c
generated
688
stage0/stdlib/Lean/Elab/Syntax.c
generated
File diff suppressed because it is too large
Load diff
768
stage0/stdlib/Lean/Elab/Term.c
generated
768
stage0/stdlib/Lean/Elab/Term.c
generated
File diff suppressed because it is too large
Load diff
220
stage0/stdlib/Lean/Parser/Command.c
generated
220
stage0/stdlib/Lean/Parser/Command.c
generated
|
|
@ -135,7 +135,6 @@ lean_object* l_Lean_Parser_Command_inductive___elambda__1(lean_object*, lean_obj
|
|||
lean_object* l_Lean_Parser_Command_initialize_parenthesizer___closed__5;
|
||||
lean_object* l_Lean_Parser_Command_ctor___elambda__1___closed__8;
|
||||
lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__14;
|
||||
lean_object* l_Lean_Parser_Command_attribute_parenthesizer___closed__6;
|
||||
lean_object* l_Lean_Parser_Command_declaration_formatter___closed__3;
|
||||
lean_object* l_Lean_Parser_Command_declSig_parenthesizer___closed__1;
|
||||
lean_object* l_Lean_Parser_Command_declaration_parenthesizer___closed__23;
|
||||
|
|
@ -557,7 +556,6 @@ lean_object* l_Lean_Parser_atomicFn(lean_object*, lean_object*, lean_object*);
|
|||
lean_object* l_Lean_Parser_Command_declaration___closed__10;
|
||||
lean_object* l_Lean_Parser_Command_commentBody___closed__1;
|
||||
lean_object* l_Lean_Parser_Command_eval___elambda__1___closed__10;
|
||||
lean_object* l_Lean_Parser_Command_attribute___closed__12;
|
||||
lean_object* l_Lean_Parser_Command_export___elambda__1___closed__1;
|
||||
lean_object* l_Lean_Parser_Command_synth_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Command_synth___closed__7;
|
||||
|
|
@ -699,7 +697,6 @@ lean_object* l_Lean_Parser_Command_openSimple___elambda__1___closed__1;
|
|||
lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__20;
|
||||
lean_object* l_Lean_Parser_Command_declaration_formatter___closed__10;
|
||||
lean_object* l_Lean_Parser_optional_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Term_local___closed__1;
|
||||
lean_object* l_Lean_Parser_Command_instance_parenthesizer___closed__1;
|
||||
lean_object* l_Lean_Parser_Command_initialize___elambda__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Command_example___elambda__1___closed__1;
|
||||
|
|
@ -1132,7 +1129,6 @@ lean_object* l___regBuiltinParser_Lean_Parser_Command_check__failure(lean_object
|
|||
lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_section___elambda__1___closed__3;
|
||||
lean_object* l_Lean_Parser_Command_export_parenthesizer___closed__3;
|
||||
lean_object* l_Lean_Parser_Command_attribute_formatter___closed__9;
|
||||
lean_object* l_Lean_Parser_Command_variable_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Parser_Term_doFor_formatter___closed__3;
|
||||
lean_object* l_Lean_Parser_Command_theorem_formatter___closed__2;
|
||||
|
|
@ -1213,7 +1209,6 @@ lean_object* l_Lean_Parser_Command_declValEqns___closed__1;
|
|||
lean_object* l_Lean_Parser_Command_namespace___elambda__1___closed__9;
|
||||
lean_object* l_Lean_Parser_Command_structure___elambda__1___closed__26;
|
||||
lean_object* l_Lean_Parser_Command_variables___closed__3;
|
||||
lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__19;
|
||||
extern lean_object* l_Lean_Parser_Term_doSeq___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_openHiding_parenthesizer___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_variable___elambda__1___closed__4;
|
||||
|
|
@ -1256,7 +1251,6 @@ lean_object* l_Lean_Parser_Command_classTk___closed__2;
|
|||
lean_object* l_Lean_Parser_Command_declValEqns_formatter___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_noncomputable_parenthesizer___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_initialize___elambda__1___closed__14;
|
||||
extern lean_object* l_Lean_Parser_Term_local_formatter___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_structSimpleBinder_formatter___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_declaration___elambda__1___closed__11;
|
||||
lean_object* l_Lean_Parser_Command_optDeclSig_formatter___closed__2;
|
||||
|
|
@ -2030,7 +2024,6 @@ lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__2;
|
|||
lean_object* l_Lean_Parser_Command_structSimpleBinder___elambda__1___closed__3;
|
||||
lean_object* l_Lean_Parser_Command_resolve__name_formatter___closed__1;
|
||||
lean_object* l_Lean_Parser_Command_openHiding___closed__1;
|
||||
extern lean_object* l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__3;
|
||||
lean_object* l_Lean_Parser_Command_check__failure___elambda__1___closed__6;
|
||||
lean_object* l_Lean_Parser_Command_def___elambda__1___closed__7;
|
||||
lean_object* l_Lean_Parser_Command_inductive___elambda__1___closed__2;
|
||||
|
|
@ -2160,7 +2153,6 @@ lean_object* l_Lean_Parser_Command_abbrev___elambda__1___closed__10;
|
|||
lean_object* l_Lean_Parser_Command_set__option___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_init__quot___elambda__1___closed__6;
|
||||
lean_object* l___regBuiltinParser_Lean_Parser_Command_mutual(lean_object*);
|
||||
lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__17;
|
||||
lean_object* l_Lean_Parser_Command_openOnly___elambda__1___closed__9;
|
||||
lean_object* l_Lean_Parser_Command_openSimple___elambda__1___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_openOnly___closed__1;
|
||||
|
|
@ -2200,7 +2192,6 @@ lean_object* l_Lean_Parser_Command_open_formatter___closed__4;
|
|||
lean_object* l_Lean_Parser_Command_def___closed__2;
|
||||
lean_object* l_Lean_Parser_mkAntiquot(lean_object*, lean_object*, uint8_t);
|
||||
lean_object* l_Lean_Parser_Command_init__quot___elambda__1___closed__3;
|
||||
lean_object* l_Lean_Parser_Command_attribute_formatter___closed__10;
|
||||
extern lean_object* l_Lean_Parser_Term_doFor___elambda__1___closed__6;
|
||||
lean_object* l_Lean_Parser_Command_ctor___elambda__1___closed__6;
|
||||
lean_object* l_Lean_Parser_Command_optDeclSig___elambda__1___closed__1;
|
||||
|
|
@ -2307,7 +2298,6 @@ lean_object* l_Lean_Parser_Command_partial___elambda__1___closed__2;
|
|||
lean_object* l_Lean_Parser_Command_openOnly_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Parser_Command_openOnly___closed__7;
|
||||
lean_object* l_Lean_Parser_Command_attribute_formatter___closed__7;
|
||||
extern lean_object* l_Lean_Parser_Term_local___elambda__1___closed__7;
|
||||
lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__14;
|
||||
lean_object* l_Lean_Parser_Command_inductive_formatter___closed__7;
|
||||
lean_object* l_Lean_Parser_Command_classInductive_formatter___closed__4;
|
||||
|
|
@ -2627,7 +2617,6 @@ lean_object* l_Lean_Parser_Command_structure_formatter___closed__3;
|
|||
extern lean_object* l_Lean_Parser_Term_explicitBinder_formatter___closed__5;
|
||||
lean_object* l_Lean_Parser_Command_instance___elambda__1___closed__6;
|
||||
lean_object* l_Lean_Parser_Command_set__option___closed__11;
|
||||
lean_object* l_Lean_Parser_Command_attribute___elambda__1___closed__18;
|
||||
lean_object* l_Lean_Parser_Command_open___elambda__1___closed__9;
|
||||
lean_object* l_Lean_Parser_Command_theorem___closed__2;
|
||||
lean_object* l_Lean_Parser_Command_check_parenthesizer___closed__1;
|
||||
|
|
@ -23923,13 +23912,9 @@ return x_4;
|
|||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Term_local___closed__1;
|
||||
x_2 = l_Lean_Parser_Term_local___elambda__1___closed__7;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("] ");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__6() {
|
||||
|
|
@ -23937,78 +23922,61 @@ _start:
|
|||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__5;
|
||||
x_2 = l_Lean_Parser_optional(x_1);
|
||||
x_2 = l_String_trim(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string("] ");
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__7;
|
||||
x_2 = l_String_trim(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__8;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__6;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbolFn___boxed), 3, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__10() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Command_structExplicitBinder___elambda__1___closed__7;
|
||||
x_2 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lean_Parser_Command_attribute___elambda__1___closed__9;
|
||||
x_3 = l_Lean_Parser_Command_attribute___elambda__1___closed__7;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
lean_closure_set(x_4, 0, x_3);
|
||||
lean_closure_set(x_4, 1, x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__11() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Term_attributes___elambda__1___closed__3;
|
||||
x_2 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lean_Parser_Command_attribute___elambda__1___closed__10;
|
||||
x_3 = l_Lean_Parser_Command_attribute___elambda__1___closed__8;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
lean_closure_set(x_4, 0, x_2);
|
||||
lean_closure_set(x_4, 1, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__12() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_mkAntiquotScope___closed__5;
|
||||
x_2 = l_Lean_Parser_Command_attribute___elambda__1___closed__11;
|
||||
x_2 = l_Lean_Parser_Command_attribute___elambda__1___closed__9;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__13() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -24016,69 +23984,55 @@ x_1 = lean_mk_string("attribute ");
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__14() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__13;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__11;
|
||||
x_2 = l_String_trim(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__15() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__13() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__14;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__12;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_symbolFn___boxed), 3, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__16() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__14() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__15;
|
||||
x_2 = l_Lean_Parser_Command_attribute___elambda__1___closed__12;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__13;
|
||||
x_2 = l_Lean_Parser_Command_attribute___elambda__1___closed__10;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__17() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__6;
|
||||
x_2 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lean_Parser_Command_attribute___elambda__1___closed__16;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
lean_closure_set(x_4, 0, x_2);
|
||||
lean_closure_set(x_4, 1, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__18() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__15() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__2;
|
||||
x_2 = l_Lean_Parser_Command_attribute___elambda__1___closed__17;
|
||||
x_2 = l_Lean_Parser_Command_attribute___elambda__1___closed__14;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_nodeFn), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__19() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___elambda__1___closed__16() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_sepByScopeSuffixes___elambda__1___closed__11;
|
||||
x_2 = l_Lean_Parser_Command_attribute___elambda__1___closed__18;
|
||||
x_2 = l_Lean_Parser_Command_attribute___elambda__1___closed__15;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_Parser_andthenFn), 4, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
|
|
@ -24092,7 +24046,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object*
|
|||
x_3 = l_Lean_Parser_Command_attribute___elambda__1___closed__4;
|
||||
x_4 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_4);
|
||||
x_5 = l_Lean_Parser_Command_attribute___elambda__1___closed__19;
|
||||
x_5 = l_Lean_Parser_Command_attribute___elambda__1___closed__16;
|
||||
x_6 = 1;
|
||||
x_7 = l_Lean_Parser_orelseFnCore(x_4, x_5, x_6, x_1, x_2);
|
||||
return x_7;
|
||||
|
|
@ -24102,7 +24056,7 @@ static lean_object* _init_l_Lean_Parser_Command_attribute___closed__1() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__8;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__6;
|
||||
x_2 = l_Lean_Parser_symbolInfo(x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -24145,7 +24099,7 @@ static lean_object* _init_l_Lean_Parser_Command_attribute___closed__5() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__14;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__12;
|
||||
x_2 = l_Lean_Parser_symbolInfo(x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -24163,48 +24117,36 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Parser_Command_attribute___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__6;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lean_Parser_Command_attribute___closed__6;
|
||||
x_4 = l_Lean_Parser_andthenInfo(x_2, x_3);
|
||||
return x_4;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__2;
|
||||
x_2 = l_Lean_Parser_Command_attribute___closed__6;
|
||||
x_3 = l_Lean_Parser_nodeInfo(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__2;
|
||||
x_1 = l_Lean_Parser_epsilonInfo;
|
||||
x_2 = l_Lean_Parser_Command_attribute___closed__7;
|
||||
x_3 = l_Lean_Parser_nodeInfo(x_1, x_2);
|
||||
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_epsilonInfo;
|
||||
x_2 = l_Lean_Parser_Command_attribute___closed__8;
|
||||
x_3 = l_Lean_Parser_andthenInfo(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__4;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lean_Parser_Command_attribute___closed__9;
|
||||
x_3 = l_Lean_Parser_Command_attribute___closed__8;
|
||||
x_4 = l_Lean_Parser_orelseInfo(x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___closed__11() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -24212,12 +24154,12 @@ x_1 = lean_alloc_closure((void*)(l_Lean_Parser_Command_attribute___elambda__1),
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___closed__12() {
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute___closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_attribute___closed__10;
|
||||
x_2 = l_Lean_Parser_Command_attribute___closed__11;
|
||||
x_1 = l_Lean_Parser_Command_attribute___closed__9;
|
||||
x_2 = l_Lean_Parser_Command_attribute___closed__10;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
|
|
@ -24228,7 +24170,7 @@ static lean_object* _init_l_Lean_Parser_Command_attribute() {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lean_Parser_Command_attribute___closed__12;
|
||||
x_1 = l_Lean_Parser_Command_attribute___closed__11;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -24264,8 +24206,8 @@ static lean_object* _init_l_Lean_Parser_Command_attribute_formatter___closed__2(
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Term_local_formatter___closed__2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_optional_formatter), 6, 1);
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__11;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_symbol_formatter), 6, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
|
|
@ -24274,7 +24216,7 @@ static lean_object* _init_l_Lean_Parser_Command_attribute_formatter___closed__3(
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__13;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__5;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_symbol_formatter), 6, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
|
|
@ -24283,19 +24225,21 @@ return x_2;
|
|||
static lean_object* _init_l_Lean_Parser_Command_attribute_formatter___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__7;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_symbol_formatter), 6, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_attribute_formatter___closed__3;
|
||||
x_2 = l_Lean_Parser_Command_structExplicitBinder_formatter___closed__4;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute_formatter___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_attribute_formatter___closed__4;
|
||||
x_2 = l_Lean_Parser_Command_structExplicitBinder_formatter___closed__4;
|
||||
x_1 = l_Lean_Parser_Term_attributes_formatter___closed__4;
|
||||
x_2 = l_Lean_Parser_Command_attribute_formatter___closed__4;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
|
|
@ -24306,7 +24250,7 @@ static lean_object* _init_l_Lean_Parser_Command_attribute_formatter___closed__6(
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Term_attributes_formatter___closed__4;
|
||||
x_1 = l_Lean_Parser_mkAntiquotScope_formatter___closed__1;
|
||||
x_2 = l_Lean_Parser_Command_attribute_formatter___closed__5;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -24318,7 +24262,7 @@ static lean_object* _init_l_Lean_Parser_Command_attribute_formatter___closed__7(
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_mkAntiquotScope_formatter___closed__1;
|
||||
x_1 = l_Lean_Parser_Command_attribute_formatter___closed__2;
|
||||
x_2 = l_Lean_Parser_Command_attribute_formatter___closed__6;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
|
|
@ -24329,34 +24273,10 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Parser_Command_attribute_formatter___closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_attribute_formatter___closed__3;
|
||||
x_2 = l_Lean_Parser_Command_attribute_formatter___closed__7;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute_formatter___closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Command_attribute_formatter___closed__2;
|
||||
x_2 = l_Lean_Parser_Command_attribute_formatter___closed__8;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_andthen_formatter), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute_formatter___closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__2;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Command_attribute_formatter___closed__9;
|
||||
x_3 = l_Lean_Parser_Command_attribute_formatter___closed__7;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_Parser_leadingNode_formatter___boxed), 8, 3);
|
||||
lean_closure_set(x_4, 0, x_1);
|
||||
lean_closure_set(x_4, 1, x_2);
|
||||
|
|
@ -24369,7 +24289,7 @@ _start:
|
|||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
x_6 = l_Lean_Parser_Command_attribute_formatter___closed__1;
|
||||
x_7 = l_Lean_Parser_Command_attribute_formatter___closed__10;
|
||||
x_7 = l_Lean_Parser_Command_attribute_formatter___closed__8;
|
||||
x_8 = l_Lean_PrettyPrinter_Formatter_orelse_formatter(x_6, x_7, x_1, x_2, x_3, x_4, x_5);
|
||||
return x_8;
|
||||
}
|
||||
|
|
@ -24445,22 +24365,10 @@ return x_3;
|
|||
static lean_object* _init_l_Lean_Parser_Command_attribute_parenthesizer___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lean_Parser_Tactic_tacticSeqBracketed_parenthesizer___closed__3;
|
||||
x_2 = l_Lean_Parser_Command_attribute_parenthesizer___closed__4;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_andthen_parenthesizer), 7, 2);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
lean_closure_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Parser_Command_attribute_parenthesizer___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = l_Lean_Parser_Command_attribute___elambda__1___closed__2;
|
||||
x_2 = lean_unsigned_to_nat(1024u);
|
||||
x_3 = l_Lean_Parser_Command_attribute_parenthesizer___closed__5;
|
||||
x_3 = l_Lean_Parser_Command_attribute_parenthesizer___closed__4;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Parenthesizer_leadingNode_parenthesizer___boxed), 8, 3);
|
||||
lean_closure_set(x_4, 0, x_1);
|
||||
lean_closure_set(x_4, 1, x_2);
|
||||
|
|
@ -24473,7 +24381,7 @@ _start:
|
|||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
x_6 = l_Lean_Parser_Command_attribute_parenthesizer___closed__1;
|
||||
x_7 = l_Lean_Parser_Command_attribute_parenthesizer___closed__6;
|
||||
x_7 = l_Lean_Parser_Command_attribute_parenthesizer___closed__5;
|
||||
x_8 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_6, x_7, x_1, x_2, x_3, x_4, x_5);
|
||||
return x_8;
|
||||
}
|
||||
|
|
@ -32627,12 +32535,6 @@ l_Lean_Parser_Command_attribute___elambda__1___closed__15 = _init_l_Lean_Parser_
|
|||
lean_mark_persistent(l_Lean_Parser_Command_attribute___elambda__1___closed__15);
|
||||
l_Lean_Parser_Command_attribute___elambda__1___closed__16 = _init_l_Lean_Parser_Command_attribute___elambda__1___closed__16();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute___elambda__1___closed__16);
|
||||
l_Lean_Parser_Command_attribute___elambda__1___closed__17 = _init_l_Lean_Parser_Command_attribute___elambda__1___closed__17();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute___elambda__1___closed__17);
|
||||
l_Lean_Parser_Command_attribute___elambda__1___closed__18 = _init_l_Lean_Parser_Command_attribute___elambda__1___closed__18();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute___elambda__1___closed__18);
|
||||
l_Lean_Parser_Command_attribute___elambda__1___closed__19 = _init_l_Lean_Parser_Command_attribute___elambda__1___closed__19();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute___elambda__1___closed__19);
|
||||
l_Lean_Parser_Command_attribute___closed__1 = _init_l_Lean_Parser_Command_attribute___closed__1();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute___closed__1);
|
||||
l_Lean_Parser_Command_attribute___closed__2 = _init_l_Lean_Parser_Command_attribute___closed__2();
|
||||
|
|
@ -32655,8 +32557,6 @@ l_Lean_Parser_Command_attribute___closed__10 = _init_l_Lean_Parser_Command_attri
|
|||
lean_mark_persistent(l_Lean_Parser_Command_attribute___closed__10);
|
||||
l_Lean_Parser_Command_attribute___closed__11 = _init_l_Lean_Parser_Command_attribute___closed__11();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute___closed__11);
|
||||
l_Lean_Parser_Command_attribute___closed__12 = _init_l_Lean_Parser_Command_attribute___closed__12();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute___closed__12);
|
||||
l_Lean_Parser_Command_attribute = _init_l_Lean_Parser_Command_attribute();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute);
|
||||
res = l___regBuiltinParser_Lean_Parser_Command_attribute(lean_io_mk_world());
|
||||
|
|
@ -32678,10 +32578,6 @@ l_Lean_Parser_Command_attribute_formatter___closed__7 = _init_l_Lean_Parser_Comm
|
|||
lean_mark_persistent(l_Lean_Parser_Command_attribute_formatter___closed__7);
|
||||
l_Lean_Parser_Command_attribute_formatter___closed__8 = _init_l_Lean_Parser_Command_attribute_formatter___closed__8();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute_formatter___closed__8);
|
||||
l_Lean_Parser_Command_attribute_formatter___closed__9 = _init_l_Lean_Parser_Command_attribute_formatter___closed__9();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute_formatter___closed__9);
|
||||
l_Lean_Parser_Command_attribute_formatter___closed__10 = _init_l_Lean_Parser_Command_attribute_formatter___closed__10();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute_formatter___closed__10);
|
||||
l___regBuiltin_Lean_Parser_Command_attribute_formatter___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_attribute_formatter___closed__1();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_attribute_formatter___closed__1);
|
||||
res = l___regBuiltin_Lean_Parser_Command_attribute_formatter(lean_io_mk_world());
|
||||
|
|
@ -32697,8 +32593,6 @@ l_Lean_Parser_Command_attribute_parenthesizer___closed__4 = _init_l_Lean_Parser_
|
|||
lean_mark_persistent(l_Lean_Parser_Command_attribute_parenthesizer___closed__4);
|
||||
l_Lean_Parser_Command_attribute_parenthesizer___closed__5 = _init_l_Lean_Parser_Command_attribute_parenthesizer___closed__5();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute_parenthesizer___closed__5);
|
||||
l_Lean_Parser_Command_attribute_parenthesizer___closed__6 = _init_l_Lean_Parser_Command_attribute_parenthesizer___closed__6();
|
||||
lean_mark_persistent(l_Lean_Parser_Command_attribute_parenthesizer___closed__6);
|
||||
l___regBuiltin_Lean_Parser_Command_attribute_parenthesizer___closed__1 = _init_l___regBuiltin_Lean_Parser_Command_attribute_parenthesizer___closed__1();
|
||||
lean_mark_persistent(l___regBuiltin_Lean_Parser_Command_attribute_parenthesizer___closed__1);
|
||||
res = l___regBuiltin_Lean_Parser_Command_attribute_parenthesizer(lean_io_mk_world());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue