chore: update stage0
This commit is contained in:
parent
7475fd9cbd
commit
65fc6db504
34 changed files with 7824 additions and 7547 deletions
2
stage0/src/Lean/Elab/Quotation.lean
generated
2
stage0/src/Lean/Elab/Quotation.lean
generated
|
|
@ -340,7 +340,7 @@ private partial def getHeadInfo (alt : Alt) : TermElabM HeadInfo :=
|
|||
if let some (k, _) := quoted.antiquotKind? then
|
||||
if let some name := getAntiquotKindSpec? quoted then
|
||||
tryAddSyntaxNodeKindInfo name k
|
||||
if quoted.isAtom then
|
||||
if quoted.isAtom || quoted.isOfKind `patternIgnore then
|
||||
-- We assume that atoms are uniquely determined by the node kind and never have to be checked
|
||||
unconditionally pure
|
||||
else if quoted.isTokenAntiquot then
|
||||
|
|
|
|||
30
stage0/src/Lean/Elab/Syntax.lean
generated
30
stage0/src/Lean/Elab/Syntax.lean
generated
|
|
@ -162,16 +162,28 @@ where
|
|||
let aliasName := id.getId.eraseMacroScopes
|
||||
let info ← Parser.getParserAliasInfo aliasName
|
||||
addAliasInfo id info
|
||||
let args ← args.mapM (withNestedParser ∘ process)
|
||||
let (args, stackSz) := if let some stackSz := info.stackSz? then
|
||||
if !info.autoGroupArgs then
|
||||
(args.map (·.1), stackSz)
|
||||
else
|
||||
(args.map ensureUnaryOutput, stackSz)
|
||||
let args' ← args.mapM (withNestedParser ∘ process)
|
||||
-- wrap lone string literals in `<|>` in dedicated node (#1275)
|
||||
let args' ← if aliasName == `orelse then -- TODO: generalize if necessary
|
||||
args.zip args' |>.mapM fun (arg, arg') => do
|
||||
let mut #[arg] := arg.getArgs | return arg'
|
||||
let sym ← match arg with
|
||||
| `(stx| &$sym) => pure sym
|
||||
| `(stx| $sym:str) => pure sym
|
||||
| _ => return arg'
|
||||
let sym := sym.getString
|
||||
return (← `(ParserDescr.nodeWithAntiquot $(quote sym) $(quote (`token ++ sym)) $(arg'.1)), 1)
|
||||
else
|
||||
let (args, stackSzs) := args.unzip
|
||||
(args, stackSzs.foldl (· + ·) 0)
|
||||
let stx ← match args with
|
||||
pure args'
|
||||
let (args', stackSz) := if let some stackSz := info.stackSz? then
|
||||
if !info.autoGroupArgs then
|
||||
(args'.map (·.1), stackSz)
|
||||
else
|
||||
(args'.map ensureUnaryOutput, stackSz)
|
||||
else
|
||||
let (args', stackSzs) := args'.unzip
|
||||
(args', stackSzs.foldl (· + ·) 0)
|
||||
let stx ← match args' with
|
||||
| #[] => Parser.ensureConstantParserAlias aliasName; ``(ParserDescr.const $(quote aliasName))
|
||||
| #[p1] => Parser.ensureUnaryParserAlias aliasName; ``(ParserDescr.unary $(quote aliasName) $p1)
|
||||
| #[p1, p2] => Parser.ensureBinaryParserAlias aliasName; ``(ParserDescr.binary $(quote aliasName) $p1 $p2)
|
||||
|
|
|
|||
20
stage0/src/Lean/Meta/Tactic/Congr.lean
generated
20
stage0/src/Lean/Meta/Tactic/Congr.lean
generated
|
|
@ -40,7 +40,7 @@ private def applyCongrThm? (mvarId : MVarId) (congrThm : CongrTheorem) : MetaM (
|
|||
Try to apply a `simp` congruence theorem.
|
||||
-/
|
||||
def MVarId.congr? (mvarId : MVarId) : MetaM (Option (List MVarId)) :=
|
||||
mvarId.withContext do
|
||||
mvarId.withContext do commitWhenSomeNoEx? do
|
||||
mvarId.checkNotAssigned `congr
|
||||
let target ← mvarId.getType'
|
||||
let some (_, lhs, _) := target.eq? | return none
|
||||
|
|
@ -53,15 +53,17 @@ def MVarId.congr? (mvarId : MVarId) : MetaM (Option (List MVarId)) :=
|
|||
Try to apply a `hcongr` congruence theorem, and then tries to close resulting goals
|
||||
using `Eq.refl`, `HEq.refl`, and assumption.
|
||||
-/
|
||||
def MVarId.hcongr? (mvarId : MVarId) : MetaM (Option (List MVarId)) :=
|
||||
mvarId.withContext do
|
||||
def MVarId.hcongr? (mvarId : MVarId) : MetaM (Option (List MVarId)) := do
|
||||
commitWhenSomeNoEx? do
|
||||
mvarId.checkNotAssigned `congr
|
||||
let target ← mvarId.getType'
|
||||
let some (_, lhs, _, _) := target.heq? | return none
|
||||
let lhs := lhs.cleanupAnnotations
|
||||
unless lhs.isApp do return none
|
||||
let congrThm ← mkHCongr lhs.getAppFn
|
||||
applyCongrThm? mvarId congrThm
|
||||
let mvarId ← mvarId.eqOfHEq
|
||||
mvarId.withContext do
|
||||
let target ← mvarId.getType'
|
||||
let some (_, lhs, _, _) := target.heq? | return none
|
||||
let lhs := lhs.cleanupAnnotations
|
||||
unless lhs.isApp do return none
|
||||
let congrThm ← mkHCongr lhs.getAppFn
|
||||
applyCongrThm? mvarId congrThm
|
||||
|
||||
/--
|
||||
Try to apply `implies_congr`.
|
||||
|
|
|
|||
8
stage0/src/Lean/Meta/Tactic/Refl.lean
generated
8
stage0/src/Lean/Meta/Tactic/Refl.lean
generated
|
|
@ -52,6 +52,14 @@ def _root_.Lean.MVarId.heqOfEq (mvarId : MVarId) : MetaM MVarId :=
|
|||
let some [mvarId] ← observing? do mvarId.apply (mkConst ``heq_of_eq [← mkFreshLevelMVar]) | return mvarId
|
||||
return mvarId
|
||||
|
||||
/--
|
||||
Try to apply `eq_of_heq`. If successful, then return new goal, otherwise return `mvarId`.
|
||||
-/
|
||||
def _root_.Lean.MVarId.eqOfHEq (mvarId : MVarId) : MetaM MVarId :=
|
||||
mvarId.withContext do
|
||||
let some [mvarId] ← observing? do mvarId.apply (mkConst ``eq_of_heq [← mkFreshLevelMVar]) | return mvarId
|
||||
return mvarId
|
||||
|
||||
/--
|
||||
Close given goal using `HEq.refl`.
|
||||
-/
|
||||
|
|
|
|||
6
stage0/src/Lean/Parser.lean
generated
6
stage0/src/Lean/Parser.lean
generated
|
|
@ -76,7 +76,8 @@ unsafe def interpretParserDescr : ParserDescr → CoreM Parenthesizer
|
|||
| ParserDescr.unary n d => return (← getUnaryAlias parenthesizerAliasesRef n) (← interpretParserDescr d)
|
||||
| ParserDescr.binary n d₁ d₂ => return (← getBinaryAlias parenthesizerAliasesRef n) (← interpretParserDescr d₁) (← interpretParserDescr d₂)
|
||||
| ParserDescr.node k prec d => return leadingNode.parenthesizer k prec (← interpretParserDescr d)
|
||||
| ParserDescr.nodeWithAntiquot _ k d => return node.parenthesizer k (← interpretParserDescr d)
|
||||
| ParserDescr.nodeWithAntiquot n k d => return withAntiquot.parenthesizer (mkAntiquot.parenthesizer' n k (anonymous := true)) <|
|
||||
node.parenthesizer k (← interpretParserDescr d)
|
||||
| ParserDescr.sepBy p sep psep trail => return sepBy.parenthesizer (← interpretParserDescr p) sep (← interpretParserDescr psep) trail
|
||||
| ParserDescr.sepBy1 p sep psep trail => return sepBy1.parenthesizer (← interpretParserDescr p) sep (← interpretParserDescr psep) trail
|
||||
| ParserDescr.trailingNode k prec lhsPrec d => return trailingNode.parenthesizer k prec lhsPrec (← interpretParserDescr d)
|
||||
|
|
@ -107,7 +108,8 @@ unsafe def interpretParserDescr : ParserDescr → CoreM Formatter
|
|||
| ParserDescr.unary n d => return (← getUnaryAlias formatterAliasesRef n) (← interpretParserDescr d)
|
||||
| ParserDescr.binary n d₁ d₂ => return (← getBinaryAlias formatterAliasesRef n) (← interpretParserDescr d₁) (← interpretParserDescr d₂)
|
||||
| ParserDescr.node k _ d => return node.formatter k (← interpretParserDescr d)
|
||||
| ParserDescr.nodeWithAntiquot _ k d => return node.formatter k (← interpretParserDescr d)
|
||||
| ParserDescr.nodeWithAntiquot n k d => return withAntiquot.formatter (mkAntiquot.formatter' n k (anonymous := true)) <|
|
||||
node.formatter k (← interpretParserDescr d)
|
||||
| ParserDescr.sepBy p sep psep trail => return sepBy.formatter (← interpretParserDescr p) sep (← interpretParserDescr psep) trail
|
||||
| ParserDescr.sepBy1 p sep psep trail => return sepBy1.formatter (← interpretParserDescr p) sep (← interpretParserDescr psep) trail
|
||||
| ParserDescr.trailingNode k prec lhsPrec d => return trailingNode.formatter k prec lhsPrec (← interpretParserDescr d)
|
||||
|
|
|
|||
5
stage0/src/Lean/Parser/Extra.lean
generated
5
stage0/src/Lean/Parser/Extra.lean
generated
|
|
@ -89,6 +89,9 @@ attribute [run_builtin_parser_attribute_hooks] sepByIndent sepBy1Indent
|
|||
@[run_builtin_parser_attribute_hooks] abbrev notSymbol (s : String) : Parser :=
|
||||
notFollowedBy (symbol s) s
|
||||
|
||||
/-- No-op parser combinator that annotates subtrees to be ignored in syntax patterns. -/
|
||||
@[inline, run_builtin_parser_attribute_hooks] def patternIgnore : Parser → Parser := node `patternIgnore
|
||||
|
||||
/-- No-op parser that advises the pretty printer to emit a non-breaking space. -/
|
||||
@[inline] def ppHardSpace : Parser := skip
|
||||
/-- No-op parser that advises the pretty printer to emit a space/soft line break. -/
|
||||
|
|
@ -182,6 +185,8 @@ macro_rules
|
|||
PrettyPrinter.Parenthesizer.registerAlias $aliasName $(mkIdentFrom declName (declName.getId ++ `parenthesizer)))
|
||||
|
||||
builtin_initialize
|
||||
register_parser_alias patternIgnore { autoGroupArgs := false }
|
||||
|
||||
register_parser_alias group { autoGroupArgs := false }
|
||||
register_parser_alias ppHardSpace { stackSz? := some 0 }
|
||||
register_parser_alias ppSpace { stackSz? := some 0 }
|
||||
|
|
|
|||
16
stage0/src/Lean/PrettyPrinter/Formatter.lean
generated
16
stage0/src/Lean/PrettyPrinter/Formatter.lean
generated
|
|
@ -173,10 +173,18 @@ def withMaybeTag (pos? : Option String.Pos) (x : FormatterM Unit) : Formatter :=
|
|||
else
|
||||
x
|
||||
|
||||
@[combinator_formatter orelse] def orelse.formatter (p1 p2 : Formatter) : Formatter :=
|
||||
-- HACK: We have no (immediate) information on which side of the orelse could have produced the current node, so try
|
||||
-- them in turn. Uses the syntax traverser non-linearly!
|
||||
p1 <|> p2
|
||||
@[combinator_formatter orelse] partial def orelse.formatter (p1 p2 : Formatter) : Formatter := do
|
||||
let stx ← getCur
|
||||
-- `orelse` may produce `choice` nodes for antiquotations
|
||||
if stx.getKind == `choice then
|
||||
visitArgs do
|
||||
-- format only last choice
|
||||
-- TODO: We could use elaborator data here to format the chosen child when available
|
||||
orelse.formatter p1 p2
|
||||
else
|
||||
-- HACK: We have no (immediate) information on which side of the orelse could have produced the current node, so try
|
||||
-- them in turn. Uses the syntax traverser non-linearly!
|
||||
p1 <|> p2
|
||||
|
||||
-- `mkAntiquot` is quite complex, so we'd rather have its formatter synthesized below the actual parser definition.
|
||||
-- Note that there is a mutual recursion
|
||||
|
|
|
|||
19
stage0/src/Lean/PrettyPrinter/Parenthesizer.lean
generated
19
stage0/src/Lean/PrettyPrinter/Parenthesizer.lean
generated
|
|
@ -247,10 +247,16 @@ def visitToken : Parenthesizer := do
|
|||
modify fun st => { st with contPrec := none, contCat := Name.anonymous, visitedToken := true }
|
||||
goLeft
|
||||
|
||||
@[combinator_parenthesizer orelse] def orelse.parenthesizer (p1 p2 : Parenthesizer) : Parenthesizer := do
|
||||
-- HACK: We have no (immediate) information on which side of the orelse could have produced the current node, so try
|
||||
-- them in turn. Uses the syntax traverser non-linearly!
|
||||
p1 <|> p2
|
||||
@[combinator_parenthesizer orelse] partial def orelse.parenthesizer (p1 p2 : Parenthesizer) : Parenthesizer := do
|
||||
let stx ← getCur
|
||||
-- `orelse` may produce `choice` nodes for antiquotations
|
||||
if stx.getKind == `choice then
|
||||
visitArgs $ stx.getArgs.size.forM fun _ => do
|
||||
orelse.parenthesizer p1 p2
|
||||
else
|
||||
-- HACK: We have no (immediate) information on which side of the orelse could have produced the current node, so try
|
||||
-- them in turn. Uses the syntax traverser non-linearly!
|
||||
p1 <|> p2
|
||||
|
||||
-- `mkAntiquot` is quite complex, so we'd rather have its parenthesizer synthesized below the actual parser definition.
|
||||
-- Note that there is a mutual recursion
|
||||
|
|
@ -299,13 +305,12 @@ def tokenWithAntiquot.parenthesizer (p : Parenthesizer) : Parenthesizer := do
|
|||
else
|
||||
p
|
||||
|
||||
def parenthesizeCategoryCore (cat : Name) (_prec : Nat) : Parenthesizer :=
|
||||
partial def parenthesizeCategoryCore (cat : Name) (_prec : Nat) : Parenthesizer :=
|
||||
withReader (fun ctx => { ctx with cat := cat }) do
|
||||
let stx ← getCur
|
||||
if stx.getKind == `choice then
|
||||
visitArgs $ stx.getArgs.size.forM fun _ => do
|
||||
let stx ← getCur
|
||||
parenthesizerForKind stx.getKind
|
||||
parenthesizeCategoryCore cat _prec
|
||||
else
|
||||
withAntiquot.parenthesizer (mkAntiquot.parenthesizer' cat.toString cat (isPseudoKind := true)) (parenthesizerForKind stx.getKind)
|
||||
modify fun st => { st with contCat := cat }
|
||||
|
|
|
|||
28
stage0/src/Lean/Util/MonadBacktrack.lean
generated
28
stage0/src/Lean/Util/MonadBacktrack.lean
generated
|
|
@ -13,19 +13,33 @@ class MonadBacktrack (s : outParam Type) (m : Type → Type) where
|
|||
|
||||
export MonadBacktrack (saveState restoreState)
|
||||
|
||||
@[specialize] def commitWhenSome? [Monad m] [MonadBacktrack s m] [MonadExcept ε m] (x? : m (Option α)) : m (Option α) := do
|
||||
/--
|
||||
Execute `x?`, but backtrack state if result is `none` or an exception was thrown.
|
||||
-/
|
||||
def commitWhenSome? [Monad m] [MonadBacktrack s m] [MonadExcept ε m] (x? : m (Option α)) : m (Option α) := do
|
||||
let s ← saveState
|
||||
try
|
||||
match (← x?) with
|
||||
| some a => pure (some a)
|
||||
| some a => return some a
|
||||
| none =>
|
||||
restoreState s
|
||||
pure none
|
||||
return none
|
||||
catch ex =>
|
||||
restoreState s
|
||||
throw ex
|
||||
|
||||
@[specialize] def commitWhen [Monad m] [MonadBacktrack s m] [MonadExcept ε m] (x : m Bool) : m Bool := do
|
||||
/--
|
||||
Execute `x?`, but backtrack state if result is `none` or an exception was thrown.
|
||||
If an exception is thrown, `none` is returned.
|
||||
That is, this function is similar to `commitWhenSome?`, but swallows the exception and returns `none`.
|
||||
-/
|
||||
def commitWhenSomeNoEx? [Monad m] [MonadBacktrack s m] [MonadExcept ε m] (x? : m (Option α)) : m (Option α) :=
|
||||
try
|
||||
commitWhenSome? x?
|
||||
catch _ =>
|
||||
return none
|
||||
|
||||
def commitWhen [Monad m] [MonadBacktrack s m] [MonadExcept ε m] (x : m Bool) : m Bool := do
|
||||
let s ← saveState
|
||||
try
|
||||
match (← x) with
|
||||
|
|
@ -37,7 +51,7 @@ export MonadBacktrack (saveState restoreState)
|
|||
restoreState s
|
||||
throw ex
|
||||
|
||||
@[specialize] def commitIfNoEx [Monad m] [MonadBacktrack s m] [MonadExcept ε m] (x : m α) : m α := do
|
||||
def commitIfNoEx [Monad m] [MonadBacktrack s m] [MonadExcept ε m] (x : m α) : m α := do
|
||||
let s ← saveState
|
||||
try
|
||||
x
|
||||
|
|
@ -45,14 +59,14 @@ export MonadBacktrack (saveState restoreState)
|
|||
restoreState s
|
||||
throw ex
|
||||
|
||||
@[specialize] def withoutModifyingState [Monad m] [MonadFinally m] [MonadBacktrack s m] (x : m α) : m α := do
|
||||
def withoutModifyingState [Monad m] [MonadFinally m] [MonadBacktrack s m] (x : m α) : m α := do
|
||||
let s ← saveState
|
||||
try
|
||||
x
|
||||
finally
|
||||
restoreState s
|
||||
|
||||
@[specialize] def observing? [Monad m] [MonadBacktrack s m] [MonadExcept ε m] (x : m α) : m (Option α) := do
|
||||
def observing? [Monad m] [MonadBacktrack s m] [MonadExcept ε m] (x : m α) : m (Option α) := do
|
||||
let s ← saveState
|
||||
try
|
||||
x
|
||||
|
|
|
|||
506
stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c
generated
506
stage0/stdlib/Lean/Elab/PreDefinition/Eqns.c
generated
|
|
@ -77,7 +77,6 @@ lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_objec
|
|||
lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__2___rarg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f___lambda__2___closed__3;
|
||||
size_t lean_usize_sub(size_t, size_t);
|
||||
static lean_object* l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__2;
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___lambda__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__13___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -103,6 +102,7 @@ static lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Elab_PreDefi
|
|||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnType___spec__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_foldrM___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f___spec__3___closed__1;
|
||||
static lean_object* l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__1;
|
||||
static lean_object* l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__2;
|
||||
lean_object* lean_expr_instantiate1(lean_object*, lean_object*);
|
||||
lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -175,7 +175,6 @@ static lean_object* l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1;
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn_collectDeps(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_mkUnfoldEq___lambda__1___closed__2;
|
||||
static lean_object* l_Lean_Elab_Eqns_getUnfoldFor_x3f___closed__2;
|
||||
lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_UnfoldEqnExtState_map___default___closed__1;
|
||||
lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkUnfoldProof_go___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -225,7 +224,6 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_simpEqnTyp
|
|||
lean_object* l_Lean_Expr_replaceFVar(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_7665_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_initFn____x40_Lean_Elab_PreDefinition_Eqns___hyg_6410_(lean_object*);
|
||||
static lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn_pushDecl___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_mkEqnTypes_go___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_foldrM___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -306,6 +304,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___private_Lean_Ela
|
|||
LEAN_EXPORT lean_object* l_Lean_ForEachExpr_visit___at_Lean_Elab_Eqns_simpEqnType_collect___spec__1(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_instInhabitedEqnInfoCore___closed__2;
|
||||
static lean_object* l_Lean_Elab_Eqns_splitMatch_x3f_go___closed__6;
|
||||
lean_object* l_Lean_Meta_splitTarget_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_mul(size_t, size_t);
|
||||
lean_object* l_Lean_Expr_consumeMData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldrM___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -317,7 +316,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_deltaRHS_x3f___lambda__1___boxed(lean_
|
|||
lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_shouldUseSimpMatch___lambda__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldrMAux___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_splitMatch_x3f_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__30(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -471,6 +469,7 @@ static lean_object* l_Lean_Elab_Eqns_mkUnfoldProof_go___lambda__1___closed__3;
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_removeUnusedEqnHypotheses___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_mk_array(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_withContext___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__35(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__2;
|
||||
extern lean_object* l_Lean_Expr_instBEqExpr;
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_removeUnusedEqnHypotheses_go___spec__11___at_Lean_Elab_Eqns_removeUnusedEqnHypotheses_go___spec__12(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -534,6 +533,7 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefi
|
|||
lean_object* l_Lean_PersistentHashMap_mkCollisionNode___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__20(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Eqns_removeUnusedEqnHypotheses_go___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_funext_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___closed__1;
|
||||
static lean_object* l_Lean_Elab_Eqns_mkUnfoldProof___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_foldrMUnsafe_fold___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_saveEqn___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -1058,7 +1058,7 @@ return x_36;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2___closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1; uint8_t x_2; lean_object* x_3;
|
||||
|
|
@ -1070,302 +1070,229 @@ lean_ctor_set_uint8(x_3, 1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_funext_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_27;
|
||||
x_8 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_7);
|
||||
lean_object* x_8;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_8 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_1, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
if (lean_is_exclusive(x_8)) {
|
||||
lean_ctor_release(x_8, 0);
|
||||
lean_ctor_release(x_8, 1);
|
||||
x_11 = x_8;
|
||||
} else {
|
||||
lean_dec_ref(x_8);
|
||||
x_11 = lean_box(0);
|
||||
}
|
||||
lean_dec(x_8);
|
||||
x_11 = l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_27 = l_Lean_Meta_mkConstWithFreshMVarLevels(x_2, x_3, x_4, x_5, x_6, x_10);
|
||||
if (lean_obj_tag(x_27) == 0)
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31;
|
||||
x_28 = lean_ctor_get(x_27, 0);
|
||||
lean_inc(x_28);
|
||||
x_29 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_27);
|
||||
x_30 = l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2___closed__1;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_31 = l_Lean_MVarId_apply(x_1, x_28, x_30, x_3, x_4, x_5, x_6, x_29);
|
||||
if (lean_obj_tag(x_31) == 0)
|
||||
{
|
||||
lean_object* x_32;
|
||||
x_32 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_32);
|
||||
if (lean_obj_tag(x_32) == 0)
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34;
|
||||
x_33 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_31);
|
||||
x_34 = lean_box(0);
|
||||
x_12 = x_34;
|
||||
x_13 = x_33;
|
||||
goto block_26;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35;
|
||||
x_35 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_35);
|
||||
if (lean_obj_tag(x_35) == 0)
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; uint8_t x_38; lean_object* x_39;
|
||||
x_36 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_31);
|
||||
x_37 = lean_ctor_get(x_32, 0);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_32);
|
||||
x_38 = 0;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_39 = l_Lean_Meta_intro1Core(x_37, x_38, x_3, x_4, x_5, x_6, x_36);
|
||||
if (lean_obj_tag(x_39) == 0)
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43;
|
||||
x_40 = lean_ctor_get(x_39, 0);
|
||||
lean_inc(x_40);
|
||||
x_41 = lean_ctor_get(x_39, 1);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_39);
|
||||
x_42 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_40);
|
||||
x_43 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_43, 0, x_42);
|
||||
x_12 = x_43;
|
||||
x_13 = x_41;
|
||||
goto block_26;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47;
|
||||
lean_dec(x_11);
|
||||
x_44 = lean_ctor_get(x_39, 0);
|
||||
lean_inc(x_44);
|
||||
x_45 = lean_ctor_get(x_39, 1);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_39);
|
||||
x_46 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_45);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_47 = !lean_is_exclusive(x_46);
|
||||
if (x_47 == 0)
|
||||
{
|
||||
lean_object* x_48;
|
||||
x_48 = lean_ctor_get(x_46, 0);
|
||||
lean_dec(x_48);
|
||||
lean_ctor_set_tag(x_46, 1);
|
||||
lean_ctor_set(x_46, 0, x_44);
|
||||
return x_46;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50;
|
||||
x_49 = lean_ctor_get(x_46, 1);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_46);
|
||||
x_50 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_50, 0, x_44);
|
||||
lean_ctor_set(x_50, 1, x_49);
|
||||
return x_50;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_51; lean_object* x_52;
|
||||
lean_dec(x_35);
|
||||
lean_dec(x_32);
|
||||
x_51 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_51);
|
||||
lean_dec(x_31);
|
||||
x_52 = lean_box(0);
|
||||
x_12 = x_52;
|
||||
x_13 = x_51;
|
||||
goto block_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56;
|
||||
lean_dec(x_11);
|
||||
x_53 = lean_ctor_get(x_31, 0);
|
||||
lean_inc(x_53);
|
||||
x_54 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_54);
|
||||
lean_dec(x_31);
|
||||
x_55 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_54);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_56 = !lean_is_exclusive(x_55);
|
||||
if (x_56 == 0)
|
||||
{
|
||||
lean_object* x_57;
|
||||
x_57 = lean_ctor_get(x_55, 0);
|
||||
lean_dec(x_57);
|
||||
lean_ctor_set_tag(x_55, 1);
|
||||
lean_ctor_set(x_55, 0, x_53);
|
||||
return x_55;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_58; lean_object* x_59;
|
||||
x_58 = lean_ctor_get(x_55, 1);
|
||||
lean_inc(x_58);
|
||||
lean_dec(x_55);
|
||||
x_59 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_59, 0, x_53);
|
||||
lean_ctor_set(x_59, 1, x_58);
|
||||
return x_59;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_1);
|
||||
x_60 = lean_ctor_get(x_27, 0);
|
||||
lean_inc(x_60);
|
||||
x_61 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_61);
|
||||
lean_dec(x_27);
|
||||
x_62 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_61);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_63 = !lean_is_exclusive(x_62);
|
||||
if (x_63 == 0)
|
||||
{
|
||||
lean_object* x_64;
|
||||
x_64 = lean_ctor_get(x_62, 0);
|
||||
lean_dec(x_64);
|
||||
lean_ctor_set_tag(x_62, 1);
|
||||
lean_ctor_set(x_62, 0, x_60);
|
||||
return x_62;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_65; lean_object* x_66;
|
||||
x_65 = lean_ctor_get(x_62, 1);
|
||||
lean_inc(x_65);
|
||||
lean_dec(x_62);
|
||||
x_66 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_66, 0, x_60);
|
||||
lean_ctor_set(x_66, 1, x_65);
|
||||
return x_66;
|
||||
}
|
||||
}
|
||||
block_26:
|
||||
{
|
||||
x_12 = l_Lean_MVarId_apply(x_2, x_9, x_11, x_3, x_4, x_5, x_6, x_10);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
{
|
||||
lean_object* x_14; uint8_t x_15;
|
||||
lean_dec(x_11);
|
||||
x_14 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_13);
|
||||
lean_object* x_13;
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
uint8_t x_14;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_15 = !lean_is_exclusive(x_14);
|
||||
if (x_15 == 0)
|
||||
x_14 = !lean_is_exclusive(x_12);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
x_16 = lean_ctor_get(x_14, 0);
|
||||
lean_dec(x_16);
|
||||
x_17 = lean_box(0);
|
||||
lean_ctor_set(x_14, 0, x_17);
|
||||
return x_14;
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
x_15 = lean_ctor_get(x_12, 0);
|
||||
lean_dec(x_15);
|
||||
x_16 = lean_box(0);
|
||||
lean_ctor_set(x_12, 0, x_16);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_14);
|
||||
x_19 = lean_box(0);
|
||||
x_20 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_19);
|
||||
lean_ctor_set(x_20, 1, x_18);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_21;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_21 = !lean_is_exclusive(x_12);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22;
|
||||
if (lean_is_scalar(x_11)) {
|
||||
x_22 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_22 = x_11;
|
||||
}
|
||||
lean_ctor_set(x_22, 0, x_12);
|
||||
lean_ctor_set(x_22, 1, x_13);
|
||||
return x_22;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_23);
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_17 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_12);
|
||||
x_24 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
if (lean_is_scalar(x_11)) {
|
||||
x_25 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_25 = x_11;
|
||||
x_18 = lean_box(0);
|
||||
x_19 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_18);
|
||||
lean_ctor_set(x_19, 1, x_17);
|
||||
return x_19;
|
||||
}
|
||||
lean_ctor_set(x_25, 0, x_24);
|
||||
lean_ctor_set(x_25, 1, x_13);
|
||||
return x_25;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20;
|
||||
x_20 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_20);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; uint8_t x_23; lean_object* x_24;
|
||||
x_21 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_12);
|
||||
x_22 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_13);
|
||||
x_23 = 0;
|
||||
x_24 = l_Lean_Meta_intro1Core(x_22, x_23, x_3, x_4, x_5, x_6, x_21);
|
||||
if (lean_obj_tag(x_24) == 0)
|
||||
{
|
||||
uint8_t x_25;
|
||||
x_25 = !lean_is_exclusive(x_24);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28;
|
||||
x_26 = lean_ctor_get(x_24, 0);
|
||||
x_27 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_26);
|
||||
x_28 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_28, 0, x_27);
|
||||
lean_ctor_set(x_24, 0, x_28);
|
||||
return x_24;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_29 = lean_ctor_get(x_24, 0);
|
||||
x_30 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_30);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_24);
|
||||
x_31 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_29);
|
||||
x_32 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_32, 0, x_31);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
lean_ctor_set(x_33, 1, x_30);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_34;
|
||||
x_34 = !lean_is_exclusive(x_24);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
return x_24;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_35 = lean_ctor_get(x_24, 0);
|
||||
x_36 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_36);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_24);
|
||||
x_37 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_35);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_38;
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_38 = !lean_is_exclusive(x_12);
|
||||
if (x_38 == 0)
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40;
|
||||
x_39 = lean_ctor_get(x_12, 0);
|
||||
lean_dec(x_39);
|
||||
x_40 = lean_box(0);
|
||||
lean_ctor_set(x_12, 0, x_40);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43;
|
||||
x_41 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_41);
|
||||
lean_dec(x_12);
|
||||
x_42 = lean_box(0);
|
||||
x_43 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_43, 0, x_42);
|
||||
lean_ctor_set(x_43, 1, x_41);
|
||||
return x_43;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_44;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_44 = !lean_is_exclusive(x_12);
|
||||
if (x_44 == 0)
|
||||
{
|
||||
return x_12;
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1() {
|
||||
else
|
||||
{
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
x_45 = lean_ctor_get(x_12, 0);
|
||||
x_46 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_46);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_12);
|
||||
x_47 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_45);
|
||||
lean_ctor_set(x_47, 1, x_46);
|
||||
return x_47;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_48;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_48 = !lean_is_exclusive(x_8);
|
||||
if (x_48 == 0)
|
||||
{
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_49; lean_object* x_50; lean_object* x_51;
|
||||
x_49 = lean_ctor_get(x_8, 0);
|
||||
x_50 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_50);
|
||||
lean_inc(x_49);
|
||||
lean_dec(x_8);
|
||||
x_51 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_49);
|
||||
lean_ctor_set(x_51, 1, x_50);
|
||||
return x_51;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -1373,24 +1300,27 @@ x_1 = lean_mk_string_from_bytes("funext", 6);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1;
|
||||
x_2 = l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_funext_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_funext_x3f___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
lean_dec(x_2);
|
||||
x_8 = l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__2;
|
||||
x_9 = l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_9;
|
||||
x_8 = l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__2;
|
||||
x_9 = lean_alloc_closure((void*)(l_Lean_Elab_Eqns_funext_x3f___lambda__1), 7, 2);
|
||||
lean_closure_set(x_9, 0, x_8);
|
||||
lean_closure_set(x_9, 1, x_1);
|
||||
x_10 = l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1(x_9, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Eqns_funext_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
|
|
@ -1508,7 +1438,7 @@ else
|
|||
lean_object* x_20; lean_object* x_21;
|
||||
lean_dec(x_10);
|
||||
x_20 = lean_box(0);
|
||||
x_21 = l_Lean_Elab_Eqns_funext_x3f___lambda__1(x_1, x_20, x_2, x_3, x_4, x_5, x_9);
|
||||
x_21 = l_Lean_Elab_Eqns_funext_x3f___lambda__2(x_1, x_20, x_2, x_3, x_4, x_5, x_9);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
|
|
@ -21175,7 +21105,7 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_1);
|
||||
x_11 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_10, x_5, x_6, x_7, x_8, x_9);
|
||||
x_11 = l_Lean_Meta_splitTarget_x3f(x_1, x_10, x_5, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
lean_object* x_12;
|
||||
|
|
@ -21718,7 +21648,7 @@ lean_inc(x_9);
|
|||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
x_11 = l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2___closed__1;
|
||||
x_11 = l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -24231,12 +24161,12 @@ l_Lean_Elab_Eqns_expandRHS_x3f___closed__1 = _init_l_Lean_Elab_Eqns_expandRHS_x3
|
|||
lean_mark_persistent(l_Lean_Elab_Eqns_expandRHS_x3f___closed__1);
|
||||
l_Lean_Elab_Eqns_expandRHS_x3f___closed__2 = _init_l_Lean_Elab_Eqns_expandRHS_x3f___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_expandRHS_x3f___closed__2);
|
||||
l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2___closed__1 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2___closed__1();
|
||||
lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Elab_Eqns_funext_x3f___spec__1___at_Lean_Elab_Eqns_funext_x3f___spec__2___closed__1);
|
||||
l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1 = _init_l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__1);
|
||||
l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__2 = _init_l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_funext_x3f___lambda__1___closed__2);
|
||||
l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__1 = _init_l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__1);
|
||||
l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__2 = _init_l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Eqns_funext_x3f___lambda__2___closed__2);
|
||||
l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f___spec__3___closed__1 = _init_l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f___spec__3___closed__1();
|
||||
lean_mark_persistent(l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f___spec__3___closed__1);
|
||||
l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f___spec__3___closed__2 = _init_l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_Eqns_0__Lean_Elab_Eqns_findMatchToSplit_x3f___spec__3___closed__2();
|
||||
|
|
|
|||
|
|
@ -55,7 +55,6 @@ static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_
|
|||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__7;
|
||||
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Elab_Structural_mkEqns___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Structural_getUnfoldFor_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Structural_getEqnsFor_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -87,6 +86,7 @@ static lean_object* l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__3;
|
|||
extern lean_object* l_Lean_instInhabitedExpr;
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___closed__5;
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_Structural_Eqns_0__Lean_Elab_Structural_mkProof_go___lambda__1___closed__12;
|
||||
lean_object* l_Lean_Meta_splitTarget_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Structural_initFn____x40_Lean_Elab_PreDefinition_Structural_Eqns___hyg_1426____closed__2;
|
||||
static lean_object* l_Lean_Elab_Structural_instInhabitedEqnInfo___closed__1;
|
||||
lean_object* l_Lean_Expr_bvar___override(lean_object*);
|
||||
|
|
@ -676,7 +676,7 @@ lean_inc(x_6);
|
|||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_1);
|
||||
x_46 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_45, x_4, x_5, x_6, x_7, x_44);
|
||||
x_46 = l_Lean_Meta_splitTarget_x3f(x_1, x_45, x_4, x_5, x_6, x_7, x_44);
|
||||
if (lean_obj_tag(x_46) == 0)
|
||||
{
|
||||
lean_object* x_47;
|
||||
|
|
|
|||
4
stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c
generated
4
stage0/stdlib/Lean/Elab/PreDefinition/WF/Eqns.c
generated
|
|
@ -89,7 +89,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_WF_getUnfoldFor_x3f___lambda__1(lean_object
|
|||
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_tryToFoldWellFoundedFix_pre___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_deltaLHSUntilFix___lambda__1___closed__1;
|
||||
lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_hasWellFoundedFix___lambda__1(lean_object*);
|
||||
|
|
@ -156,6 +155,7 @@ uint8_t l_Lean_Expr_isConstOf(lean_object*, lean_object*);
|
|||
static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_decodePackedArg_x3f_decodePSum_x3f___closed__3;
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_decodePackedArg_x3f_decodePSigma___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Eqns_0__Lean_Elab_WF_mkProof(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_splitTarget_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_bvar___override(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_WF_mkEqns(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_addDecl(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -5132,7 +5132,7 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_1);
|
||||
x_46 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_45, x_7, x_8, x_9, x_10, x_44);
|
||||
x_46 = l_Lean_Meta_splitTarget_x3f(x_1, x_45, x_7, x_8, x_9, x_10, x_44);
|
||||
if (lean_obj_tag(x_46) == 0)
|
||||
{
|
||||
lean_object* x_47;
|
||||
|
|
|
|||
253
stage0/stdlib/Lean/Elab/PreDefinition/WF/Rel.c
generated
253
stage0/stdlib/Lean/Elab/PreDefinition/WF/Rel.c
generated
|
|
@ -21,6 +21,7 @@ size_t lean_usize_add(size_t, size_t);
|
|||
lean_object* l_Lean_Expr_mvarId_x21(lean_object*);
|
||||
lean_object* l_Lean_FVarId_getUserName(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_WF_getNumCandidateArgs___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__4___rarg___boxed(lean_object**);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_WF_elabWFRel_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_WF_elabWFRel_go___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -63,6 +64,7 @@ static lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Elab_WF_getForbiddenBy
|
|||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_generateElements___spec__2___closed__2;
|
||||
lean_object* l_Lean_Elab_Term_getMVarDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__4___rarg(lean_object*, lean_object*, lean_object*, 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*);
|
||||
lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
|
|
@ -102,7 +104,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_WF_generateCombinations_x3f___boxed(lean_ob
|
|||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_mvar___override(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_WF_getNumCandidateArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__5___rarg(lean_object*, lean_object*, lean_object*, 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*);
|
||||
lean_object* lean_st_ref_take(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_WF_elabWFRel_go___rarg___lambda__1___closed__4;
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_generateElements___spec__2___closed__16;
|
||||
|
|
@ -128,7 +129,6 @@ lean_object* l_Nat_repr(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_WF_elabWFRel_go___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_WF_elabWFRel_go___rarg___lambda__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Elab_WF_elabWFRel_guess___spec__3___at_Lean_Elab_WF_elabWFRel_guess___spec__4(lean_object*);
|
||||
lean_object* l_Lean_Syntax_getId(lean_object*);
|
||||
lean_object* l_Lean_Elab_addMacroStack___at_Lean_Elab_Term_instAddErrorMessageContextTermElabM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary_go___lambda__1___closed__1;
|
||||
|
|
@ -144,7 +144,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_ge
|
|||
extern lean_object* l_Lean_instInhabitedExpr;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_getRefFromElems___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__5___rarg___boxed(lean_object**);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__4(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Elab_WF_elabWFRel_guess___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_WF_elabWFRel_generateElements___closed__6;
|
||||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -206,7 +206,6 @@ lean_object* l_Lean_Meta_getLevel(lean_object*, lean_object*, lean_object*, lean
|
|||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_WF_elabWFRel_go___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary___spec__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*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_generateElements___spec__2___closed__11;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__5(lean_object*);
|
||||
lean_object* l_Lean_isTracingEnabledFor___at_Lean_Elab_Term_traceAtCmdPos___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary_go___closed__3;
|
||||
|
|
@ -223,7 +222,6 @@ lean_object* lean_infer_type(lean_object*, lean_object*, lean_object*, lean_obje
|
|||
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_panic_fn(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_logUnassignedUsingErrorInfos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Elab_WF_elabWFRel_guess___spec__3___at_Lean_Elab_WF_elabWFRel_guess___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_generateElements___spec__2___boxed(lean_object**);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_generateElements___spec__2___closed__8;
|
||||
static lean_object* l___private_Lean_Elab_PreDefinition_WF_Rel_0__Lean_Elab_WF_unpackUnary_go___lambda__1___closed__3;
|
||||
|
|
@ -9449,101 +9447,7 @@ x_2 = lean_alloc_closure((void*)(l_Lean_observing_x3f___at_Lean_Elab_WF_elabWFRe
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Elab_WF_elabWFRel_guess___spec__3___at_Lean_Elab_WF_elabWFRel_guess___spec__4___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, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_14 = l_Lean_Elab_Term_saveState___rarg(x_8, x_9, x_10, x_11, x_12, x_13);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
x_17 = l_Lean_Elab_WF_elabWFRel_go___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_16);
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
{
|
||||
uint8_t x_18;
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
x_18 = !lean_is_exclusive(x_17);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20;
|
||||
x_19 = lean_ctor_get(x_17, 0);
|
||||
x_20 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_20, 0, x_19);
|
||||
lean_ctor_set(x_17, 0, x_20);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_21 = lean_ctor_get(x_17, 0);
|
||||
x_22 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_22);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_17);
|
||||
x_23 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_23, 0, x_21);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_22);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; uint8_t x_26; lean_object* x_27; uint8_t x_28;
|
||||
x_25 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_17);
|
||||
x_26 = 0;
|
||||
x_27 = l_Lean_Elab_Term_SavedState_restore(x_15, x_26, x_7, x_8, x_9, x_10, x_11, x_12, x_25);
|
||||
x_28 = !lean_is_exclusive(x_27);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30;
|
||||
x_29 = lean_ctor_get(x_27, 0);
|
||||
lean_dec(x_29);
|
||||
x_30 = lean_box(0);
|
||||
lean_ctor_set(x_27, 0, x_30);
|
||||
return x_27;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_31 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_27);
|
||||
x_32 = lean_box(0);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
lean_ctor_set(x_33, 1, x_31);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Elab_WF_elabWFRel_guess___spec__3___at_Lean_Elab_WF_elabWFRel_guess___spec__4(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_observing_x3f___at_Lean_Elab_WF_elabWFRel_guess___spec__3___at_Lean_Elab_WF_elabWFRel_guess___spec__4___rarg), 13, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__5___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, lean_object* x_7, lean_object* x_8, size_t x_9, size_t x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) {
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__4___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, lean_object* x_7, lean_object* x_8, size_t x_9, size_t x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_19;
|
||||
|
|
@ -9571,7 +9475,7 @@ return x_20;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27;
|
||||
lean_dec(x_11);
|
||||
x_21 = lean_array_uget(x_8, x_10);
|
||||
lean_inc(x_16);
|
||||
|
|
@ -9582,33 +9486,40 @@ lean_inc(x_23);
|
|||
x_24 = lean_ctor_get(x_22, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_22);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_25 = lean_alloc_closure((void*)(l_Lean_Elab_WF_elabWFRel_go___rarg), 13, 6);
|
||||
lean_closure_set(x_25, 0, x_1);
|
||||
lean_closure_set(x_25, 1, x_2);
|
||||
lean_closure_set(x_25, 2, x_3);
|
||||
lean_closure_set(x_25, 3, x_4);
|
||||
lean_closure_set(x_25, 4, x_5);
|
||||
lean_closure_set(x_25, 5, x_23);
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_16);
|
||||
lean_inc(x_15);
|
||||
lean_inc(x_14);
|
||||
lean_inc(x_13);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_25 = l_Lean_observing_x3f___at_Lean_Elab_WF_elabWFRel_guess___spec__3___at_Lean_Elab_WF_elabWFRel_guess___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_23, x_12, x_13, x_14, x_15, x_16, x_17, x_24);
|
||||
x_26 = lean_ctor_get(x_25, 0);
|
||||
lean_inc(x_26);
|
||||
if (lean_obj_tag(x_26) == 0)
|
||||
{
|
||||
lean_object* x_27; size_t x_28; size_t x_29;
|
||||
x_27 = lean_ctor_get(x_25, 1);
|
||||
x_26 = l_Lean_observing_x3f___at_Lean_Elab_WF_elabWFRel_guess___spec__3___rarg(x_25, x_12, x_13, x_14, x_15, x_16, x_17, x_24);
|
||||
x_27 = lean_ctor_get(x_26, 0);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_25);
|
||||
x_28 = 1;
|
||||
x_29 = lean_usize_add(x_10, x_28);
|
||||
if (lean_obj_tag(x_27) == 0)
|
||||
{
|
||||
lean_object* x_28; size_t x_29; size_t x_30;
|
||||
x_28 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_26);
|
||||
x_29 = 1;
|
||||
x_30 = lean_usize_add(x_10, x_29);
|
||||
lean_inc(x_7);
|
||||
{
|
||||
size_t _tmp_9 = x_29;
|
||||
size_t _tmp_9 = x_30;
|
||||
lean_object* _tmp_10 = x_7;
|
||||
lean_object* _tmp_17 = x_27;
|
||||
lean_object* _tmp_17 = x_28;
|
||||
x_10 = _tmp_9;
|
||||
x_11 = _tmp_10;
|
||||
x_18 = _tmp_17;
|
||||
|
|
@ -9617,7 +9528,7 @@ goto _start;
|
|||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_31;
|
||||
uint8_t x_32;
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_16);
|
||||
lean_dec(x_15);
|
||||
|
|
@ -9631,78 +9542,78 @@ lean_dec(x_4);
|
|||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_31 = !lean_is_exclusive(x_25);
|
||||
if (x_31 == 0)
|
||||
x_32 = !lean_is_exclusive(x_26);
|
||||
if (x_32 == 0)
|
||||
{
|
||||
lean_object* x_32; uint8_t x_33;
|
||||
x_32 = lean_ctor_get(x_25, 0);
|
||||
lean_dec(x_32);
|
||||
x_33 = !lean_is_exclusive(x_26);
|
||||
if (x_33 == 0)
|
||||
lean_object* x_33; uint8_t x_34;
|
||||
x_33 = lean_ctor_get(x_26, 0);
|
||||
lean_dec(x_33);
|
||||
x_34 = !lean_is_exclusive(x_27);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35;
|
||||
x_34 = lean_box(0);
|
||||
x_35 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_26);
|
||||
lean_ctor_set(x_35, 1, x_34);
|
||||
lean_ctor_set(x_25, 0, x_35);
|
||||
return x_25;
|
||||
lean_object* x_35; lean_object* x_36;
|
||||
x_35 = lean_box(0);
|
||||
x_36 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_27);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
lean_ctor_set(x_26, 0, x_36);
|
||||
return x_26;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
||||
x_36 = lean_ctor_get(x_26, 0);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_26);
|
||||
x_37 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_37, 0, x_36);
|
||||
x_38 = lean_box(0);
|
||||
x_39 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_37);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
lean_ctor_set(x_25, 0, x_39);
|
||||
return x_25;
|
||||
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
x_37 = lean_ctor_get(x_27, 0);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_27);
|
||||
x_38 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_38, 0, x_37);
|
||||
x_39 = lean_box(0);
|
||||
x_40 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_38);
|
||||
lean_ctor_set(x_40, 1, x_39);
|
||||
lean_ctor_set(x_26, 0, x_40);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
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_40 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_25);
|
||||
x_41 = lean_ctor_get(x_26, 0);
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47;
|
||||
x_41 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_41);
|
||||
if (lean_is_exclusive(x_26)) {
|
||||
lean_ctor_release(x_26, 0);
|
||||
x_42 = x_26;
|
||||
lean_dec(x_26);
|
||||
x_42 = lean_ctor_get(x_27, 0);
|
||||
lean_inc(x_42);
|
||||
if (lean_is_exclusive(x_27)) {
|
||||
lean_ctor_release(x_27, 0);
|
||||
x_43 = x_27;
|
||||
} else {
|
||||
lean_dec_ref(x_26);
|
||||
x_42 = lean_box(0);
|
||||
lean_dec_ref(x_27);
|
||||
x_43 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_42)) {
|
||||
x_43 = lean_alloc_ctor(1, 1, 0);
|
||||
if (lean_is_scalar(x_43)) {
|
||||
x_44 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_43 = x_42;
|
||||
x_44 = x_43;
|
||||
}
|
||||
lean_ctor_set(x_43, 0, x_41);
|
||||
x_44 = lean_box(0);
|
||||
x_45 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_43);
|
||||
lean_ctor_set(x_45, 1, x_44);
|
||||
lean_ctor_set(x_44, 0, x_42);
|
||||
x_45 = lean_box(0);
|
||||
x_46 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_46, 0, x_45);
|
||||
lean_ctor_set(x_46, 1, x_40);
|
||||
return x_46;
|
||||
lean_ctor_set(x_46, 0, x_44);
|
||||
lean_ctor_set(x_46, 1, x_45);
|
||||
x_47 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_47, 0, x_46);
|
||||
lean_ctor_set(x_47, 1, x_41);
|
||||
return x_47;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__5(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__4(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__5___rarg___boxed), 18, 0);
|
||||
x_2 = lean_alloc_closure((void*)(l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__4___rarg___boxed), 18, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
@ -9796,7 +9707,7 @@ lean_inc(x_9);
|
|||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
x_29 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_14, x_28, x_25, x_27, x_18, x_28, x_6, x_7, x_8, x_9, x_10, x_11, x_21);
|
||||
x_29 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_14, x_28, x_25, x_27, x_18, x_28, x_6, x_7, x_8, x_9, x_10, x_11, x_21);
|
||||
lean_dec(x_25);
|
||||
x_30 = lean_ctor_get(x_29, 0);
|
||||
lean_inc(x_30);
|
||||
|
|
@ -9955,7 +9866,7 @@ lean_dec(x_3);
|
|||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__5___rarg___boxed(lean_object** _args) {
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__4___rarg___boxed(lean_object** _args) {
|
||||
lean_object* x_1 = _args[0];
|
||||
lean_object* x_2 = _args[1];
|
||||
lean_object* x_3 = _args[2];
|
||||
|
|
@ -9981,7 +9892,7 @@ x_19 = lean_unbox_usize(x_9);
|
|||
lean_dec(x_9);
|
||||
x_20 = lean_unbox_usize(x_10);
|
||||
lean_dec(x_10);
|
||||
x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__5___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19, x_20, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18);
|
||||
x_21 = l_Array_forInUnsafe_loop___at_Lean_Elab_WF_elabWFRel_guess___spec__4___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_19, x_20, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18);
|
||||
lean_dec(x_8);
|
||||
return x_21;
|
||||
}
|
||||
|
|
|
|||
520
stage0/stdlib/Lean/Elab/Quotation.c
generated
520
stage0/stdlib/Lean/Elab/Quotation.c
generated
|
|
@ -687,7 +687,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Term_Quotation_addNamedQuotInfo(lean_object
|
|||
static lean_object* l___private_Init_Meta_0__Lean_quoteList___at_Lean_Elab_Term_Quotation_ArrayStxBuilder_build___spec__2___closed__7;
|
||||
static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___lambda__1___closed__9;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__24(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_19832_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_19839_(lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean_Elab_Quotation___hyg_8115__declRange___closed__4;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__23___closed__20;
|
||||
|
|
@ -808,6 +808,7 @@ LEAN_EXPORT lean_object* l_List_beq___at___private_Lean_Elab_Quotation_0__Lean_E
|
|||
LEAN_EXPORT uint8_t l_Lean_HashSetImp_contains___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_checkUnusedAlts___spec__1(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__23___closed__44;
|
||||
static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__10___closed__5;
|
||||
static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4;
|
||||
static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___lambda__2___closed__16;
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__23___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getSepFromSplice(lean_object*);
|
||||
|
|
@ -967,6 +968,7 @@ static lean_object* l___regBuiltin_Lean_Elab_Term_Quotation_elabQuot____x40_Lean
|
|||
static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___lambda__2___closed__12;
|
||||
static lean_object* l_Lean_Elab_Term_Quotation_instQuotePreresolvedMkStr1___closed__14;
|
||||
static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__23___lambda__3___closed__21;
|
||||
static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__5;
|
||||
lean_object* l_Array_mkArray2___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__23___closed__42;
|
||||
static lean_object* l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__16___closed__2;
|
||||
|
|
@ -28129,6 +28131,24 @@ return x_1;
|
|||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("patternIgnore", 13);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__2;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___lambda__2___closed__3;
|
||||
|
|
@ -28136,7 +28156,7 @@ x_3 = l_Lean_Name_str___override(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__3() {
|
||||
static lean_object* _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -28152,48 +28172,43 @@ lean_dec(x_5);
|
|||
x_82 = l_Lean_Syntax_isAtom(x_1);
|
||||
if (x_82 == 0)
|
||||
{
|
||||
uint8_t x_83;
|
||||
lean_object* x_83; uint8_t x_84;
|
||||
x_83 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__3;
|
||||
lean_inc(x_1);
|
||||
x_83 = l_Lean_Syntax_isTokenAntiquot(x_1);
|
||||
if (x_83 == 0)
|
||||
{
|
||||
uint8_t x_84;
|
||||
lean_inc(x_1);
|
||||
x_84 = l_Lean_Syntax_isAntiquots(x_1);
|
||||
x_84 = l_Lean_Syntax_isOfKind(x_1, x_83);
|
||||
if (x_84 == 0)
|
||||
{
|
||||
uint8_t x_85;
|
||||
x_85 = l_Lean_Syntax_isAntiquotSuffixSplice(x_1);
|
||||
lean_inc(x_1);
|
||||
x_85 = l_Lean_Syntax_isTokenAntiquot(x_1);
|
||||
if (x_85 == 0)
|
||||
{
|
||||
uint8_t x_86;
|
||||
x_86 = l_Lean_Syntax_isAntiquotSplice(x_1);
|
||||
lean_inc(x_1);
|
||||
x_86 = l_Lean_Syntax_isAntiquots(x_1);
|
||||
if (x_86 == 0)
|
||||
{
|
||||
lean_object* x_87;
|
||||
uint8_t x_87;
|
||||
x_87 = l_Lean_Syntax_isAntiquotSuffixSplice(x_1);
|
||||
if (x_87 == 0)
|
||||
{
|
||||
uint8_t x_88;
|
||||
x_88 = l_Lean_Syntax_isAntiquotSplice(x_1);
|
||||
if (x_88 == 0)
|
||||
{
|
||||
lean_object* x_89;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_87 = lean_box(0);
|
||||
x_13 = x_87;
|
||||
x_89 = lean_box(0);
|
||||
x_13 = x_89;
|
||||
goto block_81;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_88; lean_object* x_89;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_88 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___lambda__1___closed__6;
|
||||
x_89 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__1(x_1, x_88, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_89;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_90; lean_object* x_91;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
|
|
@ -28205,181 +28220,181 @@ return x_91;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_92; uint8_t x_93;
|
||||
lean_inc(x_1);
|
||||
x_92 = l_Lean_Syntax_getCanonicalAntiquot(x_1);
|
||||
x_93 = l_Lean_Syntax_isEscapedAntiquot(x_92);
|
||||
if (x_93 == 0)
|
||||
{
|
||||
lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; uint8_t x_100; lean_object* x_101; lean_object* x_102; uint8_t x_103; lean_object* x_104;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
x_94 = l_Lean_Syntax_antiquotKinds(x_1);
|
||||
x_95 = l_List_unzip___rarg(x_94);
|
||||
x_96 = lean_ctor_get(x_95, 0);
|
||||
lean_inc(x_96);
|
||||
x_97 = lean_ctor_get(x_95, 1);
|
||||
lean_inc(x_97);
|
||||
lean_dec(x_95);
|
||||
x_98 = l_Lean_Syntax_getAntiquotTerm(x_92);
|
||||
x_99 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__12___closed__2;
|
||||
lean_inc(x_98);
|
||||
x_100 = l_Lean_Syntax_isOfKind(x_98, x_99);
|
||||
x_101 = lean_unsigned_to_nat(3u);
|
||||
x_102 = l_Lean_Syntax_getArg(x_92, x_101);
|
||||
lean_dec(x_92);
|
||||
x_103 = l_Lean_Syntax_isNone(x_102);
|
||||
lean_dec(x_102);
|
||||
if (x_100 == 0)
|
||||
{
|
||||
lean_object* x_124; uint8_t x_125;
|
||||
x_124 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__2;
|
||||
lean_inc(x_98);
|
||||
x_125 = l_Lean_Syntax_isOfKind(x_98, x_124);
|
||||
if (x_125 == 0)
|
||||
{
|
||||
lean_object* x_126;
|
||||
x_126 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___boxed), 9, 1);
|
||||
lean_closure_set(x_126, 0, x_98);
|
||||
x_104 = x_126;
|
||||
goto block_123;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_127;
|
||||
lean_inc(x_96);
|
||||
lean_inc(x_3);
|
||||
x_127 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__28___boxed), 11, 3);
|
||||
lean_closure_set(x_127, 0, x_98);
|
||||
lean_closure_set(x_127, 1, x_3);
|
||||
lean_closure_set(x_127, 2, x_96);
|
||||
x_104 = x_127;
|
||||
goto block_123;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_128;
|
||||
lean_dec(x_98);
|
||||
x_128 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__23___closed__1;
|
||||
x_104 = x_128;
|
||||
goto block_123;
|
||||
}
|
||||
block_123:
|
||||
{
|
||||
if (x_103 == 0)
|
||||
{
|
||||
uint8_t x_105; uint8_t x_106;
|
||||
x_105 = 1;
|
||||
x_106 = l_List_foldr___at_List_and___spec__1(x_105, x_97);
|
||||
lean_dec(x_97);
|
||||
if (x_106 == 0)
|
||||
{
|
||||
lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112;
|
||||
x_107 = lean_box(0);
|
||||
lean_inc(x_96);
|
||||
x_108 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_108, 0, x_96);
|
||||
lean_ctor_set(x_108, 1, x_107);
|
||||
lean_inc(x_96);
|
||||
x_109 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__25___boxed), 3, 2);
|
||||
lean_closure_set(x_109, 0, x_96);
|
||||
lean_closure_set(x_109, 1, x_104);
|
||||
x_110 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___boxed), 12, 3);
|
||||
lean_closure_set(x_110, 0, x_3);
|
||||
lean_closure_set(x_110, 1, x_2);
|
||||
lean_closure_set(x_110, 2, x_96);
|
||||
x_111 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_111, 0, x_108);
|
||||
lean_ctor_set(x_111, 1, x_109);
|
||||
lean_ctor_set(x_111, 2, x_110);
|
||||
x_112 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_112, 0, x_111);
|
||||
lean_ctor_set(x_112, 1, x_12);
|
||||
return x_112;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117;
|
||||
lean_dec(x_96);
|
||||
lean_dec(x_2);
|
||||
x_113 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__4), 2, 1);
|
||||
lean_closure_set(x_113, 0, x_104);
|
||||
x_114 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_114, 0, x_3);
|
||||
x_115 = lean_box(0);
|
||||
x_116 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_116, 0, x_115);
|
||||
lean_ctor_set(x_116, 1, x_113);
|
||||
lean_ctor_set(x_116, 2, x_114);
|
||||
x_117 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_117, 0, x_116);
|
||||
lean_ctor_set(x_117, 1, x_12);
|
||||
return x_117;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122;
|
||||
lean_dec(x_97);
|
||||
lean_dec(x_96);
|
||||
lean_dec(x_2);
|
||||
x_118 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__4), 2, 1);
|
||||
lean_closure_set(x_118, 0, x_104);
|
||||
x_119 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_119, 0, x_3);
|
||||
x_120 = lean_box(0);
|
||||
x_121 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_121, 0, x_120);
|
||||
lean_ctor_set(x_121, 1, x_118);
|
||||
lean_ctor_set(x_121, 2, x_119);
|
||||
x_122 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_122, 0, x_121);
|
||||
lean_ctor_set(x_122, 1, x_12);
|
||||
return x_122;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_129;
|
||||
lean_dec(x_92);
|
||||
x_129 = l_Lean_Syntax_isAntiquotSuffixSplice(x_1);
|
||||
if (x_129 == 0)
|
||||
{
|
||||
uint8_t x_130;
|
||||
x_130 = l_Lean_Syntax_isAntiquotSplice(x_1);
|
||||
if (x_130 == 0)
|
||||
{
|
||||
lean_object* x_131;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_131 = lean_box(0);
|
||||
x_13 = x_131;
|
||||
goto block_81;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_132; lean_object* x_133;
|
||||
lean_object* x_92; lean_object* x_93;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_132 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___lambda__1___closed__6;
|
||||
x_133 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__1(x_1, x_132, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_133;
|
||||
x_92 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___lambda__1___closed__6;
|
||||
x_93 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__1(x_1, x_92, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_93;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_94; uint8_t x_95;
|
||||
lean_inc(x_1);
|
||||
x_94 = l_Lean_Syntax_getCanonicalAntiquot(x_1);
|
||||
x_95 = l_Lean_Syntax_isEscapedAntiquot(x_94);
|
||||
if (x_95 == 0)
|
||||
{
|
||||
lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; uint8_t x_105; lean_object* x_106;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
x_96 = l_Lean_Syntax_antiquotKinds(x_1);
|
||||
x_97 = l_List_unzip___rarg(x_96);
|
||||
x_98 = lean_ctor_get(x_97, 0);
|
||||
lean_inc(x_98);
|
||||
x_99 = lean_ctor_get(x_97, 1);
|
||||
lean_inc(x_99);
|
||||
lean_dec(x_97);
|
||||
x_100 = l_Lean_Syntax_getAntiquotTerm(x_94);
|
||||
x_101 = l_Array_mapMUnsafe_map___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__12___closed__2;
|
||||
lean_inc(x_100);
|
||||
x_102 = l_Lean_Syntax_isOfKind(x_100, x_101);
|
||||
x_103 = lean_unsigned_to_nat(3u);
|
||||
x_104 = l_Lean_Syntax_getArg(x_94, x_103);
|
||||
lean_dec(x_94);
|
||||
x_105 = l_Lean_Syntax_isNone(x_104);
|
||||
lean_dec(x_104);
|
||||
if (x_102 == 0)
|
||||
{
|
||||
lean_object* x_126; uint8_t x_127;
|
||||
x_126 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4;
|
||||
lean_inc(x_100);
|
||||
x_127 = l_Lean_Syntax_isOfKind(x_100, x_126);
|
||||
if (x_127 == 0)
|
||||
{
|
||||
lean_object* x_128;
|
||||
x_128 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__27___boxed), 9, 1);
|
||||
lean_closure_set(x_128, 0, x_100);
|
||||
x_106 = x_128;
|
||||
goto block_125;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_129;
|
||||
lean_inc(x_98);
|
||||
lean_inc(x_3);
|
||||
x_129 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__28___boxed), 11, 3);
|
||||
lean_closure_set(x_129, 0, x_100);
|
||||
lean_closure_set(x_129, 1, x_3);
|
||||
lean_closure_set(x_129, 2, x_98);
|
||||
x_106 = x_129;
|
||||
goto block_125;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_130;
|
||||
lean_dec(x_100);
|
||||
x_130 = l_Array_forInUnsafe_loop___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___spec__23___closed__1;
|
||||
x_106 = x_130;
|
||||
goto block_125;
|
||||
}
|
||||
block_125:
|
||||
{
|
||||
if (x_105 == 0)
|
||||
{
|
||||
uint8_t x_107; uint8_t x_108;
|
||||
x_107 = 1;
|
||||
x_108 = l_List_foldr___at_List_and___spec__1(x_107, x_99);
|
||||
lean_dec(x_99);
|
||||
if (x_108 == 0)
|
||||
{
|
||||
lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114;
|
||||
x_109 = lean_box(0);
|
||||
lean_inc(x_98);
|
||||
x_110 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_110, 0, x_98);
|
||||
lean_ctor_set(x_110, 1, x_109);
|
||||
lean_inc(x_98);
|
||||
x_111 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__25___boxed), 3, 2);
|
||||
lean_closure_set(x_111, 0, x_98);
|
||||
lean_closure_set(x_111, 1, x_106);
|
||||
x_112 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__26___boxed), 12, 3);
|
||||
lean_closure_set(x_112, 0, x_3);
|
||||
lean_closure_set(x_112, 1, x_2);
|
||||
lean_closure_set(x_112, 2, x_98);
|
||||
x_113 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_113, 0, x_110);
|
||||
lean_ctor_set(x_113, 1, x_111);
|
||||
lean_ctor_set(x_113, 2, x_112);
|
||||
x_114 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_114, 0, x_113);
|
||||
lean_ctor_set(x_114, 1, x_12);
|
||||
return x_114;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119;
|
||||
lean_dec(x_98);
|
||||
lean_dec(x_2);
|
||||
x_115 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__4), 2, 1);
|
||||
lean_closure_set(x_115, 0, x_106);
|
||||
x_116 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_116, 0, x_3);
|
||||
x_117 = lean_box(0);
|
||||
x_118 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_118, 0, x_117);
|
||||
lean_ctor_set(x_118, 1, x_115);
|
||||
lean_ctor_set(x_118, 2, x_116);
|
||||
x_119 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_119, 0, x_118);
|
||||
lean_ctor_set(x_119, 1, x_12);
|
||||
return x_119;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124;
|
||||
lean_dec(x_99);
|
||||
lean_dec(x_98);
|
||||
lean_dec(x_2);
|
||||
x_120 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__4), 2, 1);
|
||||
lean_closure_set(x_120, 0, x_106);
|
||||
x_121 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_121, 0, x_3);
|
||||
x_122 = lean_box(0);
|
||||
x_123 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_123, 0, x_122);
|
||||
lean_ctor_set(x_123, 1, x_120);
|
||||
lean_ctor_set(x_123, 2, x_121);
|
||||
x_124 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_124, 0, x_123);
|
||||
lean_ctor_set(x_124, 1, x_12);
|
||||
return x_124;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_131;
|
||||
lean_dec(x_94);
|
||||
x_131 = l_Lean_Syntax_isAntiquotSuffixSplice(x_1);
|
||||
if (x_131 == 0)
|
||||
{
|
||||
uint8_t x_132;
|
||||
x_132 = l_Lean_Syntax_isAntiquotSplice(x_1);
|
||||
if (x_132 == 0)
|
||||
{
|
||||
lean_object* x_133;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_133 = lean_box(0);
|
||||
x_13 = x_133;
|
||||
goto block_81;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_134; lean_object* x_135;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
|
|
@ -28389,11 +28404,22 @@ x_135 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term
|
|||
return x_135;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_136; lean_object* x_137;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_136 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_quoteSyntax___lambda__1___closed__6;
|
||||
x_137 = l_Lean_throwErrorAt___at___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___spec__1(x_1, x_136, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
return x_137;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141;
|
||||
lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -28403,27 +28429,27 @@ lean_dec(x_6);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_inc(x_3);
|
||||
x_136 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__29___boxed), 10, 2);
|
||||
lean_closure_set(x_136, 0, x_1);
|
||||
lean_closure_set(x_136, 1, x_3);
|
||||
x_137 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__4), 2, 1);
|
||||
lean_closure_set(x_137, 0, x_136);
|
||||
x_138 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_138, 0, x_3);
|
||||
x_139 = lean_box(0);
|
||||
x_140 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_140, 0, x_139);
|
||||
lean_ctor_set(x_140, 1, x_137);
|
||||
lean_ctor_set(x_140, 2, x_138);
|
||||
x_141 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_141, 0, x_140);
|
||||
lean_ctor_set(x_141, 1, x_12);
|
||||
return x_141;
|
||||
x_138 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__29___boxed), 10, 2);
|
||||
lean_closure_set(x_138, 0, x_1);
|
||||
lean_closure_set(x_138, 1, x_3);
|
||||
x_139 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__4), 2, 1);
|
||||
lean_closure_set(x_139, 0, x_138);
|
||||
x_140 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_140, 0, x_3);
|
||||
x_141 = lean_box(0);
|
||||
x_142 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_142, 0, x_141);
|
||||
lean_ctor_set(x_142, 1, x_139);
|
||||
lean_ctor_set(x_142, 2, x_140);
|
||||
x_143 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_143, 0, x_142);
|
||||
lean_ctor_set(x_143, 1, x_12);
|
||||
return x_143;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146;
|
||||
lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
|
|
@ -28433,18 +28459,44 @@ lean_dec(x_6);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_142 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_142, 0, x_3);
|
||||
x_143 = lean_box(0);
|
||||
x_144 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__3;
|
||||
x_145 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_145, 0, x_143);
|
||||
lean_ctor_set(x_145, 1, x_144);
|
||||
lean_ctor_set(x_145, 2, x_142);
|
||||
x_146 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_146, 0, x_145);
|
||||
lean_ctor_set(x_146, 1, x_12);
|
||||
return x_146;
|
||||
x_144 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_144, 0, x_3);
|
||||
x_145 = lean_box(0);
|
||||
x_146 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__5;
|
||||
x_147 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_147, 0, x_145);
|
||||
lean_ctor_set(x_147, 1, x_146);
|
||||
lean_ctor_set(x_147, 2, x_144);
|
||||
x_148 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_148, 0, x_147);
|
||||
lean_ctor_set(x_148, 1, x_12);
|
||||
return x_148;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_149 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_149, 0, x_3);
|
||||
x_150 = lean_box(0);
|
||||
x_151 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__5;
|
||||
x_152 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_152, 0, x_150);
|
||||
lean_ctor_set(x_152, 1, x_151);
|
||||
lean_ctor_set(x_152, 2, x_149);
|
||||
x_153 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_153, 0, x_152);
|
||||
lean_ctor_set(x_153, 1, x_12);
|
||||
return x_153;
|
||||
}
|
||||
block_81:
|
||||
{
|
||||
|
|
@ -28764,7 +28816,7 @@ x_17 = l_Lean_Syntax_isOfKind(x_14, x_16);
|
|||
if (x_17 == 0)
|
||||
{
|
||||
lean_object* x_18; uint8_t x_19;
|
||||
x_18 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__2;
|
||||
x_18 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4;
|
||||
lean_inc(x_14);
|
||||
x_19 = l_Lean_Syntax_isOfKind(x_14, x_18);
|
||||
if (x_19 == 0)
|
||||
|
|
@ -29015,7 +29067,7 @@ lean_dec(x_2);
|
|||
x_79 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_79, 0, x_9);
|
||||
x_80 = lean_box(0);
|
||||
x_81 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__3;
|
||||
x_81 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__5;
|
||||
x_82 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_82, 0, x_80);
|
||||
lean_ctor_set(x_82, 1, x_81);
|
||||
|
|
@ -29141,7 +29193,7 @@ x_111 = l_Lean_Syntax_isOfKind(x_108, x_110);
|
|||
if (x_111 == 0)
|
||||
{
|
||||
lean_object* x_112; uint8_t x_113;
|
||||
x_112 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__2;
|
||||
x_112 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4;
|
||||
lean_inc(x_108);
|
||||
x_113 = l_Lean_Syntax_isOfKind(x_108, x_112);
|
||||
if (x_113 == 0)
|
||||
|
|
@ -29359,7 +29411,7 @@ lean_dec(x_2);
|
|||
x_165 = lean_alloc_closure((void*)(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__5___boxed), 10, 1);
|
||||
lean_closure_set(x_165, 0, x_9);
|
||||
x_166 = lean_box(0);
|
||||
x_167 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__3;
|
||||
x_167 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__5;
|
||||
x_168 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_168, 0, x_166);
|
||||
lean_ctor_set(x_168, 1, x_167);
|
||||
|
|
@ -30612,7 +30664,7 @@ else
|
|||
lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_17 = lean_unsigned_to_nat(0u);
|
||||
x_18 = l_Lean_Syntax_getArg(x_12, x_17);
|
||||
x_19 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__2;
|
||||
x_19 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4;
|
||||
x_20 = l_Lean_Syntax_isOfKind(x_18, x_19);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
|
|
@ -30685,7 +30737,7 @@ else
|
|||
lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41;
|
||||
x_38 = lean_unsigned_to_nat(0u);
|
||||
x_39 = l_Lean_Syntax_getArg(x_33, x_38);
|
||||
x_40 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__2;
|
||||
x_40 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4;
|
||||
x_41 = l_Lean_Syntax_isOfKind(x_39, x_40);
|
||||
if (x_41 == 0)
|
||||
{
|
||||
|
|
@ -36444,7 +36496,7 @@ else
|
|||
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
x_15 = lean_unsigned_to_nat(0u);
|
||||
x_16 = l_Lean_Syntax_getArg(x_2, x_15);
|
||||
x_17 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__2;
|
||||
x_17 = l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4;
|
||||
lean_inc(x_16);
|
||||
x_18 = l_Lean_Syntax_isOfKind(x_16, x_17);
|
||||
if (x_18 == 0)
|
||||
|
|
@ -38763,7 +38815,7 @@ x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
|
|||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_19832_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_19839_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3; lean_object* x_4;
|
||||
|
|
@ -40333,6 +40385,10 @@ l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda
|
|||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__2);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__3 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__3();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__3);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__4);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__5 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__5();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___lambda__30___closed__5);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__1 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__1();
|
||||
lean_mark_persistent(l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__1);
|
||||
l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__2 = _init_l___private_Lean_Elab_Quotation_0__Lean_Elab_Term_Quotation_getHeadInfo___closed__2();
|
||||
|
|
@ -40489,7 +40545,7 @@ lean_mark_persistent(l___regBuiltin_Lean_Elab_Term_Quotation_elabNoErrorIfUnused
|
|||
res = l___regBuiltin_Lean_Elab_Term_Quotation_elabNoErrorIfUnused_declRange(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_19832_(lean_io_mk_world());
|
||||
res = l_Lean_Elab_Term_Quotation_initFn____x40_Lean_Elab_Quotation___hyg_19839_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
2338
stage0/stdlib/Lean/Elab/Syntax.c
generated
2338
stage0/stdlib/Lean/Elab/Syntax.c
generated
File diff suppressed because it is too large
Load diff
147
stage0/stdlib/Lean/Elab/SyntheticMVars.c
generated
147
stage0/stdlib/Lean/Elab/SyntheticMVars.c
generated
|
|
@ -90,6 +90,7 @@ lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_getDelayedMVarAssignmen
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefault___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_withSynthesize___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_processPostponedUniverseContraints(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingDefaultInstance___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*);
|
||||
size_t lean_usize_shift_right(size_t, size_t);
|
||||
|
|
@ -115,7 +116,6 @@ lean_object* l_Lean_Elab_Term_ensureHasType(lean_object*, lean_object*, lean_obj
|
|||
static lean_object* l_Lean_instantiateLCtxMVars___at_Lean_Elab_Term_runTactic___spec__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_withSynthesizeImp(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__1___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__2___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_occursCheck_visitMVar___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_resumePostponed___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Term_reportStuckSyntheticMVar___lambda__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeSomeUsingDefault_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -162,7 +162,6 @@ lean_object* l_Lean_Elab_Term_getSyntheticMVarDecl_x3f(lean_object*, lean_object
|
|||
lean_object* l_Lean_MVarId_admit(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_PersistentArray_get_x21___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__1___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_RBNode_setBlack___rarg(lean_object*);
|
||||
extern lean_object* l_Lean_Level_instHashableLevel;
|
||||
lean_object* l_Lean_Elab_Tactic_mkInitialTacticInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -3535,7 +3534,7 @@ return x_39;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__1___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__2___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
|
|
@ -3593,142 +3592,20 @@ return x_22;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__1___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
lean_inc(x_1);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__1___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__2___lambda__1), 9, 2);
|
||||
lean_closure_set(x_10, 0, x_1);
|
||||
lean_closure_set(x_10, 1, x_2);
|
||||
x_11 = l_Lean_Elab_Term_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
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_14 = l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg(x_1, x_10, x_3, x_4, x_5, x_6, x_7, x_8, x_13);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_15; uint8_t x_16;
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_unbox(x_15);
|
||||
lean_dec(x_15);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; uint8_t x_18; lean_object* x_19; uint8_t x_20;
|
||||
x_17 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_14);
|
||||
x_18 = 0;
|
||||
x_19 = l_Lean_Elab_Term_SavedState_restore(x_12, x_18, x_3, x_4, x_5, x_6, x_7, x_8, x_17);
|
||||
x_20 = !lean_is_exclusive(x_19);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22;
|
||||
x_21 = lean_ctor_get(x_19, 0);
|
||||
lean_dec(x_21);
|
||||
x_22 = lean_box(x_18);
|
||||
lean_ctor_set(x_19, 0, x_22);
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_19);
|
||||
x_24 = lean_box(x_18);
|
||||
x_25 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_24);
|
||||
lean_ctor_set(x_25, 1, x_23);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_26;
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_26 = !lean_is_exclusive(x_14);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27; uint8_t x_28; lean_object* x_29;
|
||||
x_27 = lean_ctor_get(x_14, 0);
|
||||
lean_dec(x_27);
|
||||
x_28 = 1;
|
||||
x_29 = lean_box(x_28);
|
||||
lean_ctor_set(x_14, 0, x_29);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_30 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_14);
|
||||
x_31 = 1;
|
||||
x_32 = lean_box(x_31);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
lean_ctor_set(x_33, 1, x_30);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; uint8_t x_36; lean_object* x_37; uint8_t x_38;
|
||||
x_34 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_34);
|
||||
x_35 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_14);
|
||||
x_36 = 0;
|
||||
x_37 = l_Lean_Elab_Term_SavedState_restore(x_12, x_36, x_3, x_4, x_5, x_6, x_7, x_8, x_35);
|
||||
x_38 = !lean_is_exclusive(x_37);
|
||||
if (x_38 == 0)
|
||||
{
|
||||
lean_object* x_39;
|
||||
x_39 = lean_ctor_get(x_37, 0);
|
||||
lean_dec(x_39);
|
||||
lean_ctor_set_tag(x_37, 1);
|
||||
lean_ctor_set(x_37, 0, x_34);
|
||||
return x_37;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41;
|
||||
x_40 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_37);
|
||||
x_41 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_41, 0, x_34);
|
||||
lean_ctor_set(x_41, 1, x_40);
|
||||
return x_41;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10;
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_9 = lean_box(0);
|
||||
x_10 = l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__1___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__2(x_1, x_9, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_10;
|
||||
lean_inc(x_1);
|
||||
x_10 = lean_alloc_closure((void*)(l___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___lambda__1), 9, 2);
|
||||
lean_closure_set(x_10, 0, x_1);
|
||||
lean_closure_set(x_10, 1, x_9);
|
||||
x_11 = lean_alloc_closure((void*)(l_Lean_MVarId_withContext___at_Lean_Elab_Tactic_run___spec__1___rarg), 9, 2);
|
||||
lean_closure_set(x_11, 0, x_1);
|
||||
lean_closure_set(x_11, 1, x_10);
|
||||
x_12 = l_Lean_commitWhen___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizePendingInstMVar_x27___spec__1(x_11, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_List_filterAuxM___at___private_Lean_Elab_SyntheticMVars_0__Lean_Elab_Term_synthesizeUsingDefaultPrio_synthesizeUsingInstancesStep___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
|
|
|
|||
380
stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c
generated
380
stage0/stdlib/Lean/Elab/Tactic/ElabTerm.c
generated
|
|
@ -15,6 +15,7 @@ extern "C" {
|
|||
#endif
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducibleAndInstances___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalApplyLikeTactic(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___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_EXPORT lean_object* l_Lean_Elab_Tactic_evalApplyLikeTactic___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSpecialize_declRange___closed__2;
|
||||
size_t lean_usize_add(size_t, size_t);
|
||||
|
|
@ -61,7 +62,6 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing___lambda__1(lean_
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducible___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducibleAndInstances___closed__3;
|
||||
uint8_t l_Lean_MetavarKind_isNatural(uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
lean_object* l_Lean_instantiateMVars___at_Lean_Elab_Tactic_getMainTarget___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_mkNativeAuxDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -70,6 +70,7 @@ LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_Elab_Tactic_withCollecting
|
|||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_refineCore___lambda__4___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalExact___spec__1___rarg(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_refineCore___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27_declRange___closed__3;
|
||||
|
|
@ -117,6 +118,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_sortMVarIdArrayByIndex___rarg___lamb
|
|||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalNativeDecide___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_filterOldMVars___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabAsFVar___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalApply(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___lambda__1___closed__2;
|
||||
static lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tactic_evalExact___spec__1___rarg___closed__1;
|
||||
|
|
@ -124,7 +126,6 @@ lean_object* l_Lean_Elab_Term_mkAuxName(lean_object*, lean_object*, lean_object*
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide___closed__5;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__1___closed__4;
|
||||
lean_object* l_Array_qpartition_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_appArg_x21(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_sortMVarIdsByIndex___at_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Elab_Term_synthesizeSyntheticMVars(uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -136,6 +137,7 @@ lean_object* l_Lean_Meta_zetaReduce___lambda__2___boxed(lean_object*, lean_objec
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalConstructor___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_getFVarId___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__1___closed__3;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1___closed__2;
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__1___closed__5;
|
||||
lean_object* l_Lean_Meta_mkDecide(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -144,7 +146,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExact___closed__4;
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSpecialize_declRange___closed__5;
|
||||
lean_object* l_Lean_Meta_mkEqRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Elab_Tactic_getFVarId___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTerm___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_findSomeRevM_x3f_find___at_Lean_Elab_Tactic_evalRename___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide_declRange___closed__5;
|
||||
|
|
@ -155,14 +156,13 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_refineCore___lambda__4(lean_object*,
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27_declRange___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_filterOldMVars(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalSpecialize___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducible_declRange___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withCollectingNewGoalsFrom_go___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_declRange___closed__1;
|
||||
lean_object* l_Lean_Meta_intro1Core(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithUnfoldingAll_declRange___closed__2;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___lambda__1___closed__7;
|
||||
static lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__1;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalNativeDecide_declRange___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_elabTermWithHoles(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
|
|
@ -199,6 +199,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Tacti
|
|||
lean_object* l_Lean_Elab_Term_elabTerm(lean_object*, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalExact___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalConstructor___boxed(lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1___closed__4;
|
||||
lean_object* l_Lean_MVarId_getKind(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -211,7 +212,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide_declRange___close
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducible___closed__1;
|
||||
lean_object* l_Lean_Elab_Tactic_getMainTarget(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalExact___closed__1;
|
||||
static lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__2;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalDecide___rarg___lambda__1___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalApply___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_findSomeRevMAux___at_Lean_Elab_Tactic_evalRename___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -311,7 +311,6 @@ extern lean_object* l_Lean_instInhabitedMVarId;
|
|||
static lean_object* l_Lean_Elab_Tactic_filterOldMVars___closed__1;
|
||||
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalExact___closed__1;
|
||||
static lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentArray_findSomeRevM_x3f___at_Lean_Elab_Tactic_evalRename___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalApply___closed__3;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalNativeDecide___rarg___lambda__1___closed__4;
|
||||
|
|
@ -419,7 +418,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_Tactic_withCol
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine___closed__1;
|
||||
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_LocalContext_findDeclRevM_x3f___at_Lean_Elab_Tactic_evalRename___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_getFVarId___closed__4;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithReducibleAndInstances(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_refineCore___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -463,6 +461,7 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_closeMainGoalUsing___lambda__1___box
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalDecide_declRange___closed__2;
|
||||
static lean_object* l_Lean_Elab_Tactic_getFVarId___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_refineCore(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___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*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalWithUnfoldingAll___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalExact(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalRefine_x27_declRange___closed__7;
|
||||
|
|
@ -10468,7 +10467,7 @@ return x_30;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__1() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_evalRename___lambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -10476,16 +10475,16 @@ x_1 = lean_mk_string_from_bytes("failed to find a hypothesis with type", 37);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__2() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_evalRename___lambda__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__1;
|
||||
x_1 = l_Lean_Elab_Tactic_evalRename___lambda__1___closed__1;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__3() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_evalRename___lambda__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -10493,16 +10492,16 @@ x_1 = lean_mk_string_from_bytes("", 0);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__4() {
|
||||
static lean_object* _init_l_Lean_Elab_Tactic_evalRename___lambda__1___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__3;
|
||||
x_1 = l_Lean_Elab_Tactic_evalRename___lambda__1___closed__3;
|
||||
x_2 = l_Lean_stringToMessageData(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_12; lean_object* x_13;
|
||||
|
|
@ -10546,11 +10545,11 @@ x_19 = lean_ctor_get(x_17, 1);
|
|||
lean_inc(x_19);
|
||||
lean_dec(x_17);
|
||||
x_20 = l_Lean_indentExpr(x_14);
|
||||
x_21 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__2;
|
||||
x_21 = l_Lean_Elab_Tactic_evalRename___lambda__1___closed__2;
|
||||
x_22 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_21);
|
||||
lean_ctor_set(x_22, 1, x_20);
|
||||
x_23 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__4;
|
||||
x_23 = l_Lean_Elab_Tactic_evalRename___lambda__1___closed__4;
|
||||
x_24 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
|
|
@ -10669,21 +10668,10 @@ return x_39;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1), 11, 2);
|
||||
lean_closure_set(x_12, 0, x_1);
|
||||
lean_closure_set(x_12, 1, x_2);
|
||||
x_13 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withoutRecover___rarg), 10, 1);
|
||||
lean_closure_set(x_13, 0, x_12);
|
||||
x_14 = l_Lean_Elab_Tactic_saveState___rarg(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
lean_object* x_12;
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
|
|
@ -10692,98 +10680,15 @@ lean_inc(x_6);
|
|||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_17 = l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tactic_evalRename___spec__7___rarg(x_13, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_16);
|
||||
if (lean_obj_tag(x_17) == 0)
|
||||
x_12 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8(x_1, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_18 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_18);
|
||||
x_19 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_17);
|
||||
x_20 = 0;
|
||||
x_21 = l_Lean_Elab_Tactic_SavedState_restore(x_15, x_20, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_19);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_22 = !lean_is_exclusive(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_23;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
lean_dec(x_23);
|
||||
lean_ctor_set(x_21, 0, x_18);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25;
|
||||
x_24 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_21);
|
||||
x_25 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_18);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; uint8_t x_28; lean_object* x_29; uint8_t x_30;
|
||||
x_26 = lean_ctor_get(x_17, 0);
|
||||
lean_inc(x_26);
|
||||
x_27 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_17);
|
||||
x_28 = 0;
|
||||
x_29 = l_Lean_Elab_Tactic_SavedState_restore(x_15, x_28, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_27);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_30 = !lean_is_exclusive(x_29);
|
||||
if (x_30 == 0)
|
||||
{
|
||||
lean_object* x_31;
|
||||
x_31 = lean_ctor_get(x_29, 0);
|
||||
lean_dec(x_31);
|
||||
lean_ctor_set_tag(x_29, 1);
|
||||
lean_ctor_set(x_29, 0, x_26);
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_32; lean_object* x_33;
|
||||
x_32 = lean_ctor_get(x_29, 1);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_29);
|
||||
x_33 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_26);
|
||||
lean_ctor_set(x_33, 1, x_32);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_13;
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_13 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9(x_1, x_2, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_14);
|
||||
x_15 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_13);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_12);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
|
|
@ -10791,40 +10696,40 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
x_16 = l_Lean_Elab_Tactic_getMainGoal(x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_15);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
lean_inc(x_3);
|
||||
x_15 = l_Lean_Elab_Tactic_getMainGoal(x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
x_17 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
x_19 = l_Lean_Syntax_getId(x_3);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_15);
|
||||
x_18 = l_Lean_Syntax_getId(x_2);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
x_20 = l_Lean_MVarId_rename(x_17, x_14, x_19, x_8, x_9, x_10, x_11, x_18);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
lean_inc(x_7);
|
||||
x_19 = l_Lean_MVarId_rename(x_16, x_13, x_18, x_7, x_8, x_9, x_10, x_17);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_21 = lean_ctor_get(x_20, 0);
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_20 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_20);
|
||||
x_21 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_21);
|
||||
x_22 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_20);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_21);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
x_25 = l_Lean_Elab_Tactic_replaceMainGoal(x_24, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_22);
|
||||
return x_25;
|
||||
lean_dec(x_19);
|
||||
x_22 = lean_box(0);
|
||||
x_23 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_23, 0, x_20);
|
||||
lean_ctor_set(x_23, 1, x_22);
|
||||
x_24 = l_Lean_Elab_Tactic_replaceMainGoal(x_23, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_21);
|
||||
return x_24;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_26;
|
||||
lean_dec(x_11);
|
||||
uint8_t x_25;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -10832,86 +10737,87 @@ lean_dec(x_7);
|
|||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_26 = !lean_is_exclusive(x_20);
|
||||
if (x_26 == 0)
|
||||
lean_dec(x_3);
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_30;
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_30 = !lean_is_exclusive(x_16);
|
||||
if (x_30 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_31 = lean_ctor_get(x_16, 0);
|
||||
x_32 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_32);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_16);
|
||||
x_33 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_31);
|
||||
lean_ctor_set(x_33, 1, x_32);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_34;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
x_34 = !lean_is_exclusive(x_13);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_35 = lean_ctor_get(x_13, 0);
|
||||
x_36 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_36);
|
||||
lean_inc(x_35);
|
||||
uint8_t x_29;
|
||||
lean_dec(x_13);
|
||||
x_37 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_35);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
return x_37;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_29 = !lean_is_exclusive(x_15);
|
||||
if (x_29 == 0)
|
||||
{
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_30 = lean_ctor_get(x_15, 0);
|
||||
x_31 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_31);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_15);
|
||||
x_32 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_30);
|
||||
lean_ctor_set(x_32, 1, x_31);
|
||||
return x_32;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_33;
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_33 = !lean_is_exclusive(x_12);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_12, 0);
|
||||
x_35 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_12);
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11005,14 +10911,20 @@ return x_20;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_21 = lean_box(0);
|
||||
x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRename___lambda__1___boxed), 12, 3);
|
||||
x_22 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRename___lambda__1), 11, 2);
|
||||
lean_closure_set(x_22, 0, x_15);
|
||||
lean_closure_set(x_22, 1, x_21);
|
||||
lean_closure_set(x_22, 2, x_17);
|
||||
x_23 = l_Lean_Elab_Tactic_withMainContext___rarg(x_22, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_23;
|
||||
x_23 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_withoutRecover___rarg), 10, 1);
|
||||
lean_closure_set(x_23, 0, x_22);
|
||||
x_24 = lean_alloc_closure((void*)(l_Lean_Meta_withNewMCtxDepth___at_Lean_Elab_Tactic_evalRename___spec__7___rarg), 10, 1);
|
||||
lean_closure_set(x_24, 0, x_23);
|
||||
x_25 = lean_alloc_closure((void*)(l_Lean_Elab_Tactic_evalRename___lambda__2___boxed), 11, 2);
|
||||
lean_closure_set(x_25, 0, x_24);
|
||||
lean_closure_set(x_25, 1, x_17);
|
||||
x_26 = l_Lean_Elab_Tactic_withMainContext___rarg(x_25, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11084,13 +10996,13 @@ lean_dec(x_4);
|
|||
return x_12;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalRename___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_13;
|
||||
x_13 = l_Lean_Elab_Tactic_evalRename___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
|
||||
lean_dec(x_3);
|
||||
return x_13;
|
||||
lean_object* x_12;
|
||||
x_12 = l_Lean_Elab_Tactic_evalRename___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
lean_dec(x_2);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___regBuiltin_Lean_Elab_Tactic_evalRename___closed__1() {
|
||||
|
|
@ -11304,7 +11216,7 @@ x_12 = l___private_Lean_Elab_Tactic_ElabTerm_0__Lean_Elab_Tactic_preprocessPropT
|
|||
x_13 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_11);
|
||||
x_14 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__4;
|
||||
x_14 = l_Lean_Elab_Tactic_evalRename___lambda__1___closed__4;
|
||||
x_15 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_13);
|
||||
lean_ctor_set(x_15, 1, x_14);
|
||||
|
|
@ -11688,7 +11600,7 @@ x_35 = l_Lean_Elab_Tactic_evalDecide___rarg___lambda__2___closed__2;
|
|||
x_36 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_35);
|
||||
lean_ctor_set(x_36, 1, x_34);
|
||||
x_37 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__4;
|
||||
x_37 = l_Lean_Elab_Tactic_evalRename___lambda__1___closed__4;
|
||||
x_38 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_36);
|
||||
lean_ctor_set(x_38, 1, x_37);
|
||||
|
|
@ -11832,7 +11744,7 @@ x_72 = l_Lean_Elab_Tactic_evalDecide___rarg___lambda__2___closed__2;
|
|||
x_73 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_73, 0, x_72);
|
||||
lean_ctor_set(x_73, 1, x_71);
|
||||
x_74 = l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__4;
|
||||
x_74 = l_Lean_Elab_Tactic_evalRename___lambda__1___closed__4;
|
||||
x_75 = lean_alloc_ctor(10, 2, 0);
|
||||
lean_ctor_set(x_75, 0, x_73);
|
||||
lean_ctor_set(x_75, 1, x_74);
|
||||
|
|
@ -13200,14 +13112,14 @@ l_Lean_Elab_Tactic_elabAsFVar___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic
|
|||
lean_mark_persistent(l_Lean_Elab_Tactic_elabAsFVar___lambda__1___closed__1);
|
||||
l_Lean_Elab_Tactic_elabAsFVar___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_elabAsFVar___lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_elabAsFVar___lambda__1___closed__2);
|
||||
l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__1 = _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__1);
|
||||
l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__2 = _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__2);
|
||||
l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__3 = _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__3();
|
||||
lean_mark_persistent(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__3);
|
||||
l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__4 = _init_l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__4();
|
||||
lean_mark_persistent(l_Lean_withoutModifyingState___at_Lean_Elab_Tactic_evalRename___spec__8___at_Lean_Elab_Tactic_evalRename___spec__9___lambda__1___closed__4);
|
||||
l_Lean_Elab_Tactic_evalRename___lambda__1___closed__1 = _init_l_Lean_Elab_Tactic_evalRename___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalRename___lambda__1___closed__1);
|
||||
l_Lean_Elab_Tactic_evalRename___lambda__1___closed__2 = _init_l_Lean_Elab_Tactic_evalRename___lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalRename___lambda__1___closed__2);
|
||||
l_Lean_Elab_Tactic_evalRename___lambda__1___closed__3 = _init_l_Lean_Elab_Tactic_evalRename___lambda__1___closed__3();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalRename___lambda__1___closed__3);
|
||||
l_Lean_Elab_Tactic_evalRename___lambda__1___closed__4 = _init_l_Lean_Elab_Tactic_evalRename___lambda__1___closed__4();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalRename___lambda__1___closed__4);
|
||||
l_Lean_Elab_Tactic_evalRename___closed__1 = _init_l_Lean_Elab_Tactic_evalRename___closed__1();
|
||||
lean_mark_persistent(l_Lean_Elab_Tactic_evalRename___closed__1);
|
||||
l_Lean_Elab_Tactic_evalRename___closed__2 = _init_l_Lean_Elab_Tactic_evalRename___closed__2();
|
||||
|
|
|
|||
306
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
306
stage0/stdlib/Lean/Elab/Tactic/Induction.c
generated
|
|
@ -223,7 +223,6 @@ static lean_object* l_Lean_Elab_Tactic_ElimApp_setMotiveArg___closed__4;
|
|||
lean_object* lean_array_fget(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_addNewArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_ElimApp_instInhabitedAlt___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__2___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_mvar___override(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_generalizeTargets___spec__1(size_t, size_t, lean_object*);
|
||||
|
|
@ -247,6 +246,7 @@ static lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_g
|
|||
lean_object* l_Lean_Meta_mkHasTypeButIsExpectedMsg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_saveAltVarsInfo___lambda__1(lean_object*, uint8_t, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalCases___closed__2;
|
||||
lean_object* l_Lean_Elab_Tactic_closeUsingOrAdmit(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_checkAltsOfOptInductionAlts___spec__1___lambda__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -4878,223 +4878,183 @@ return x_24;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__2___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12;
|
||||
x_8 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
uint8_t x_8; lean_object* x_9;
|
||||
x_8 = 0;
|
||||
x_9 = l_Lean_Meta_forallMetaBoundedTelescope(x_1, x_2, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; uint8_t x_12;
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
x_11 = 0;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_12 = l_Lean_Meta_forallMetaBoundedTelescope(x_2, x_1, x_11, x_3, x_4, x_5, x_6, x_10);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
x_11 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_10);
|
||||
x_12 = !lean_is_exclusive(x_9);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19;
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_14);
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17;
|
||||
x_13 = lean_ctor_get(x_9, 0);
|
||||
lean_dec(x_13);
|
||||
x_15 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_12);
|
||||
x_16 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_16);
|
||||
x_14 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_11);
|
||||
x_15 = lean_array_get_size(x_14);
|
||||
x_16 = lean_unsigned_to_nat(0u);
|
||||
x_17 = lean_nat_dec_lt(x_16, x_15);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
x_17 = lean_array_get_size(x_16);
|
||||
x_18 = lean_unsigned_to_nat(0u);
|
||||
x_19 = lean_nat_dec_lt(x_18, x_17);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
lean_object* x_20; uint8_t x_21;
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_16);
|
||||
x_20 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_15);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_21 = !lean_is_exclusive(x_20);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22;
|
||||
x_22 = lean_ctor_get(x_20, 0);
|
||||
lean_dec(x_22);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
return x_20;
|
||||
lean_ctor_set(x_9, 0, x_16);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
x_23 = lean_ctor_get(x_20, 1);
|
||||
uint8_t x_18;
|
||||
x_18 = lean_nat_dec_le(x_15, x_15);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_dec(x_15);
|
||||
lean_dec(x_14);
|
||||
lean_ctor_set(x_9, 0, x_16);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_19; size_t x_20; lean_object* x_21;
|
||||
x_19 = 0;
|
||||
x_20 = lean_usize_of_nat(x_15);
|
||||
lean_dec(x_15);
|
||||
x_21 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__1(x_14, x_19, x_20, x_16);
|
||||
lean_dec(x_14);
|
||||
lean_ctor_set(x_9, 0, x_21);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26;
|
||||
x_22 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_9);
|
||||
x_23 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_20);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_18);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
return x_24;
|
||||
lean_dec(x_11);
|
||||
x_24 = lean_array_get_size(x_23);
|
||||
x_25 = lean_unsigned_to_nat(0u);
|
||||
x_26 = lean_nat_dec_lt(x_25, x_24);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27;
|
||||
lean_dec(x_24);
|
||||
lean_dec(x_23);
|
||||
x_27 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_27, 0, x_25);
|
||||
lean_ctor_set(x_27, 1, x_22);
|
||||
return x_27;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_28;
|
||||
x_28 = lean_nat_dec_le(x_24, x_24);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29;
|
||||
lean_dec(x_24);
|
||||
lean_dec(x_23);
|
||||
x_29 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_25);
|
||||
lean_ctor_set(x_29, 1, x_22);
|
||||
return x_29;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_30; size_t x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_30 = 0;
|
||||
x_31 = lean_usize_of_nat(x_24);
|
||||
lean_dec(x_24);
|
||||
x_32 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__1(x_23, x_30, x_31, x_25);
|
||||
lean_dec(x_23);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
lean_ctor_set(x_33, 1, x_22);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_25;
|
||||
x_25 = lean_nat_dec_le(x_17, x_17);
|
||||
if (x_25 == 0)
|
||||
uint8_t x_34;
|
||||
x_34 = !lean_is_exclusive(x_9);
|
||||
if (x_34 == 0)
|
||||
{
|
||||
lean_object* x_26; uint8_t x_27;
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_16);
|
||||
x_26 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_15);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_35 = lean_ctor_get(x_9, 0);
|
||||
x_36 = lean_ctor_get(x_9, 1);
|
||||
lean_inc(x_36);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_9);
|
||||
x_27 = !lean_is_exclusive(x_26);
|
||||
if (x_27 == 0)
|
||||
{
|
||||
lean_object* x_28;
|
||||
x_28 = lean_ctor_get(x_26, 0);
|
||||
lean_dec(x_28);
|
||||
lean_ctor_set(x_26, 0, x_18);
|
||||
return x_26;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30;
|
||||
x_29 = lean_ctor_get(x_26, 1);
|
||||
lean_inc(x_29);
|
||||
lean_dec(x_26);
|
||||
x_30 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_18);
|
||||
lean_ctor_set(x_30, 1, x_29);
|
||||
return x_30;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_31; size_t x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35;
|
||||
x_31 = 0;
|
||||
x_32 = lean_usize_of_nat(x_17);
|
||||
lean_dec(x_17);
|
||||
x_33 = l_Array_foldlMUnsafe_fold___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__1(x_16, x_31, x_32, x_18);
|
||||
lean_dec(x_16);
|
||||
x_34 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_15);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_35 = !lean_is_exclusive(x_34);
|
||||
if (x_35 == 0)
|
||||
{
|
||||
lean_object* x_36;
|
||||
x_36 = lean_ctor_get(x_34, 0);
|
||||
lean_dec(x_36);
|
||||
lean_ctor_set(x_34, 0, x_33);
|
||||
return x_34;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_37; lean_object* x_38;
|
||||
x_37 = lean_ctor_get(x_34, 1);
|
||||
lean_inc(x_37);
|
||||
lean_dec(x_34);
|
||||
x_38 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_33);
|
||||
lean_ctor_set(x_38, 1, x_37);
|
||||
return x_38;
|
||||
x_37 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_35);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42;
|
||||
x_39 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_39);
|
||||
x_40 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_12);
|
||||
x_41 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_40);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_42 = !lean_is_exclusive(x_41);
|
||||
if (x_42 == 0)
|
||||
{
|
||||
lean_object* x_43;
|
||||
x_43 = lean_ctor_get(x_41, 0);
|
||||
lean_dec(x_43);
|
||||
lean_ctor_set_tag(x_41, 1);
|
||||
lean_ctor_set(x_41, 0, x_39);
|
||||
return x_41;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_44; lean_object* x_45;
|
||||
x_44 = lean_ctor_get(x_41, 1);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_41);
|
||||
x_45 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_39);
|
||||
lean_ctor_set(x_45, 1, x_44);
|
||||
return x_45;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_MVarId_getType(x_1, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
x_11 = l_Lean_withoutModifyingState___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__2___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__3(x_2, x_9, x_3, x_4, x_5, x_6, x_10);
|
||||
return x_11;
|
||||
x_11 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___lambda__1), 7, 2);
|
||||
lean_closure_set(x_11, 0, x_9);
|
||||
lean_closure_set(x_11, 1, x_2);
|
||||
x_12 = l_Lean_withoutModifyingState___at___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___spec__2(x_11, x_3, x_4, x_5, x_6, x_10);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_12;
|
||||
uint8_t x_13;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_12 = !lean_is_exclusive(x_8);
|
||||
if (x_12 == 0)
|
||||
x_13 = !lean_is_exclusive(x_8);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_13 = lean_ctor_get(x_8, 0);
|
||||
x_14 = lean_ctor_get(x_8, 1);
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_14 = lean_ctor_get(x_8, 0);
|
||||
x_15 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_15);
|
||||
lean_inc(x_14);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_8);
|
||||
x_15 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_15, 0, x_13);
|
||||
lean_ctor_set(x_15, 1, x_14);
|
||||
return x_15;
|
||||
x_16 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_16, 0, x_14);
|
||||
lean_ctor_set(x_16, 1, x_15);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5104,7 +5064,7 @@ _start:
|
|||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
lean_inc(x_1);
|
||||
x_8 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___lambda__1), 7, 2);
|
||||
x_8 = lean_alloc_closure((void*)(l___private_Lean_Elab_Tactic_Induction_0__Lean_Elab_Tactic_ElimApp_getNumExplicitFields___lambda__2), 7, 2);
|
||||
lean_closure_set(x_8, 0, x_1);
|
||||
lean_closure_set(x_8, 1, x_2);
|
||||
x_9 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
|
|
|
|||
6
stage0/stdlib/Lean/Elab/Tactic/Split.c
generated
6
stage0/stdlib/Lean/Elab/Tactic/Split.c
generated
|
|
@ -31,7 +31,6 @@ static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSplit_declRange___closed
|
|||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSplit___closed__5;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSplit___closed__3;
|
||||
static lean_object* l_Lean_Elab_Tactic_evalSplit___lambda__1___closed__1;
|
||||
lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Elab_Tactic_evalSplit___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Elab_Tactic_evalSplit___closed__2;
|
||||
static lean_object* l___regBuiltin_Lean_Elab_Tactic_evalSplit_declRange___closed__5;
|
||||
|
|
@ -48,6 +47,7 @@ lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean
|
|||
lean_object* l_Lean_Elab_Tactic_getMainGoal(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_evalSplit___lambda__3(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_instInhabitedSyntax;
|
||||
lean_object* l_Lean_Meta_splitTarget_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
lean_object* l_Lean_Meta_splitLocalDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_Elab_Tactic_tacticElabAttribute;
|
||||
|
|
@ -297,7 +297,7 @@ lean_inc(x_5);
|
|||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_1);
|
||||
x_9 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
x_9 = l_Lean_Meta_splitTarget_x3f(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
lean_object* x_10;
|
||||
|
|
@ -923,7 +923,7 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_11);
|
||||
x_14 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_11, x_13, x_5, x_6, x_7, x_8, x_12);
|
||||
x_14 = l_Lean_Meta_splitTarget_x3f(x_11, x_13, x_5, x_6, x_7, x_8, x_12);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_15;
|
||||
|
|
|
|||
877
stage0/stdlib/Lean/Meta/Match/Match.c
generated
877
stage0/stdlib/Lean/Meta/Match/Match.c
generated
File diff suppressed because it is too large
Load diff
10
stage0/stdlib/Lean/Meta/Match/MatchEqs.c
generated
10
stage0/stdlib/Lean/Meta/Match/MatchEqs.c
generated
|
|
@ -147,8 +147,8 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match
|
|||
static lean_object* l_Lean_Meta_Match_proveCondEqThm_go___lambda__2___closed__11;
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
lean_object* l_Lean_Meta_subst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_forallAltTelescope_go___rarg___lambda__5___closed__4;
|
||||
lean_object* l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___lambda__3___closed__1;
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_SimpH_substRHS___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_withLetDecl___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__14(lean_object*, lean_object*);
|
||||
|
|
@ -172,6 +172,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match
|
|||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___closed__1;
|
||||
size_t lean_usize_shift_right(size_t, size_t);
|
||||
static lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___lambda__4___closed__1;
|
||||
lean_object* l_Lean_Meta_splitIfTarget_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_appArg_x21(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Match_forallAltTelescope(lean_object*);
|
||||
|
|
@ -555,7 +556,6 @@ lean_object* l_Lean_Meta_simpIfTarget(lean_object*, uint8_t, lean_object*, lean_
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_injectionAnyCandidate_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_transform___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_convertTemplate___spec__6(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkEquationsFor___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_mkSplitterProof_proveSubgoal___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Match_MatchEqs_0__Lean_Meta_Match_simpH_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Match_forallAltTelescope_go___rarg___closed__11;
|
||||
|
|
@ -10258,7 +10258,7 @@ lean_inc(x_10);
|
|||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_1);
|
||||
x_48 = l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(x_1, x_43, x_8, x_9, x_10, x_11, x_47);
|
||||
x_48 = l_Lean_Meta_subst_x3f(x_1, x_43, x_8, x_9, x_10, x_11, x_47);
|
||||
x_49 = lean_ctor_get(x_48, 0);
|
||||
lean_inc(x_49);
|
||||
if (lean_obj_tag(x_49) == 0)
|
||||
|
|
@ -10778,7 +10778,7 @@ lean_inc(x_10);
|
|||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_1);
|
||||
x_49 = l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(x_1, x_44, x_8, x_9, x_10, x_11, x_48);
|
||||
x_49 = l_Lean_Meta_subst_x3f(x_1, x_44, x_8, x_9, x_10, x_11, x_48);
|
||||
x_50 = lean_ctor_get(x_49, 0);
|
||||
lean_inc(x_50);
|
||||
if (lean_obj_tag(x_50) == 0)
|
||||
|
|
@ -11832,7 +11832,7 @@ lean_inc(x_7);
|
|||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_12);
|
||||
x_99 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_12, x_74, x_5, x_6, x_7, x_8, x_77);
|
||||
x_99 = l_Lean_Meta_splitIfTarget_x3f(x_12, x_74, x_5, x_6, x_7, x_8, x_77);
|
||||
if (lean_obj_tag(x_99) == 0)
|
||||
{
|
||||
lean_object* x_100;
|
||||
|
|
|
|||
730
stage0/stdlib/Lean/Meta/Tactic/Cases.c
generated
730
stage0/stdlib/Lean/Meta/Tactic/Cases.c
generated
File diff suppressed because it is too large
Load diff
631
stage0/stdlib/Lean/Meta/Tactic/Congr.c
generated
631
stage0/stdlib/Lean/Meta/Tactic/Congr.c
generated
|
|
@ -22,6 +22,7 @@ lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_MVarId_congr_x3f___closed__2;
|
||||
lean_object* l_Lean_MVarId_assert(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkConstWithFreshMVarLevels(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_saveState___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_congrImplies_x3f___closed__1;
|
||||
LEAN_EXPORT lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Tactic_Congr_0__Lean_congrPost___spec__1___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
|
|
@ -55,12 +56,13 @@ LEAN_EXPORT lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Tactic_
|
|||
lean_object* l_Lean_MVarId_heqOfEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_nat_sub(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_congr_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_hcongr_x3f___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_cleanupAnnotations(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Tactic_Congr_0__Lean_congrPost___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkHCongr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_assumptionCore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_hcongr_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_hcongr_x3f___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_mk_ref(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_tryClear(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_congrN_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -72,6 +74,7 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Congr_0__Lean_congrPost(le
|
|||
uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_hcongr_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_congr_x3f___lambda__2___closed__2;
|
||||
lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_congr___closed__2;
|
||||
lean_object* l_Lean_MVarId_hrefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_throwTacticEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -85,6 +88,7 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_congr(lean_object*, uint8_t, lean_object*
|
|||
static lean_object* l_Lean_MVarId_congrN___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Congr_0__Lean_applyCongrThm_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_congrImplies_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_MVarId_congr_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_forM___at_Lean_MVarId_congrN_go___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_congrImplies_x3f___lambda__1___closed__1;
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -92,11 +96,13 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_getType_x27(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_congr___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSomeNoEx_x3f___at_Lean_MVarId_congr_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_getAppFn(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_congrN_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Congr_0__Lean_applyCongrThm_x3f___closed__2;
|
||||
static lean_object* l_Lean_MVarId_congr_x3f___lambda__2___closed__1;
|
||||
lean_object* l_Lean_MVarId_eqOfHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_congr_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_filterMapM_loop___at___private_Lean_Meta_Tactic_Congr_0__Lean_congrPost___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
|
|
@ -924,6 +930,214 @@ return x_41;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_MVarId_congr_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_10 = lean_apply_5(x_1, x_2, x_3, x_4, x_5, x_9);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; uint8_t x_14;
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_12);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_8);
|
||||
x_14 = !lean_is_exclusive(x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
x_15 = lean_ctor_get(x_13, 0);
|
||||
lean_dec(x_15);
|
||||
x_16 = lean_box(0);
|
||||
lean_ctor_set(x_13, 0, x_16);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_17 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_13);
|
||||
x_18 = lean_box(0);
|
||||
x_19 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_18);
|
||||
lean_ctor_set(x_19, 1, x_17);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_20;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_20 = !lean_is_exclusive(x_10);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_21; uint8_t x_22;
|
||||
x_21 = lean_ctor_get(x_10, 0);
|
||||
lean_dec(x_21);
|
||||
x_22 = !lean_is_exclusive(x_11);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
x_23 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_11);
|
||||
x_24 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_10, 0, x_24);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
x_25 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_10);
|
||||
x_26 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_26);
|
||||
if (lean_is_exclusive(x_11)) {
|
||||
lean_ctor_release(x_11, 0);
|
||||
x_27 = x_11;
|
||||
} else {
|
||||
lean_dec_ref(x_11);
|
||||
x_27 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_27)) {
|
||||
x_28 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_28 = x_27;
|
||||
}
|
||||
lean_ctor_set(x_28, 0, x_26);
|
||||
x_29 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_28);
|
||||
lean_ctor_set(x_29, 1, x_25);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33;
|
||||
x_30 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_30);
|
||||
x_31 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_10);
|
||||
x_32 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_31);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_8);
|
||||
x_33 = !lean_is_exclusive(x_32);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
lean_object* x_34;
|
||||
x_34 = lean_ctor_get(x_32, 0);
|
||||
lean_dec(x_34);
|
||||
lean_ctor_set_tag(x_32, 1);
|
||||
lean_ctor_set(x_32, 0, x_30);
|
||||
return x_32;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36;
|
||||
x_35 = lean_ctor_get(x_32, 1);
|
||||
lean_inc(x_35);
|
||||
lean_dec(x_32);
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_30);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSomeNoEx_x3f___at_Lean_MVarId_congr_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lean_commitWhenSome_x3f___at_Lean_MVarId_congr_x3f___spec__2(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_7) == 0)
|
||||
{
|
||||
uint8_t x_8;
|
||||
x_8 = !lean_is_exclusive(x_7);
|
||||
if (x_8 == 0)
|
||||
{
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = lean_ctor_get(x_7, 0);
|
||||
x_10 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_11 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_9);
|
||||
lean_ctor_set(x_11, 1, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = !lean_is_exclusive(x_7);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
x_13 = lean_ctor_get(x_7, 0);
|
||||
lean_dec(x_13);
|
||||
x_14 = lean_box(0);
|
||||
lean_ctor_set_tag(x_7, 0);
|
||||
lean_ctor_set(x_7, 0, x_14);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_15 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_7);
|
||||
x_16 = lean_box(0);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_16);
|
||||
lean_ctor_set(x_17, 1, x_15);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_congr_x3f___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -1352,14 +1566,16 @@ return x_3;
|
|||
LEAN_EXPORT lean_object* l_Lean_MVarId_congr_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_7 = l_Lean_MVarId_congr_x3f___closed__2;
|
||||
lean_inc(x_1);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_MVarId_congr_x3f___lambda__2), 7, 2);
|
||||
lean_closure_set(x_8, 0, x_1);
|
||||
lean_closure_set(x_8, 1, x_7);
|
||||
x_9 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_8, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_9;
|
||||
x_9 = lean_alloc_closure((void*)(l_Lean_commitWhenSomeNoEx_x3f___at_Lean_MVarId_congr_x3f___spec__1), 6, 1);
|
||||
lean_closure_set(x_9, 0, x_8);
|
||||
x_10 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_9, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_congr_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
|
||||
|
|
@ -1490,7 +1706,165 @@ x_3 = l_Lean_Name_str___override(x_1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_hcongr_x3f___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_hcongr_x3f___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7;
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_7 = l_Lean_MVarId_getType_x27(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
if (lean_obj_tag(x_7) == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_24; lean_object* x_25; uint8_t x_26;
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_9);
|
||||
if (lean_is_exclusive(x_7)) {
|
||||
lean_ctor_release(x_7, 0);
|
||||
lean_ctor_release(x_7, 1);
|
||||
x_10 = x_7;
|
||||
} else {
|
||||
lean_dec_ref(x_7);
|
||||
x_10 = lean_box(0);
|
||||
}
|
||||
x_24 = l_Lean_MVarId_hcongr_x3f___lambda__2___closed__2;
|
||||
x_25 = lean_unsigned_to_nat(4u);
|
||||
x_26 = l_Lean_Expr_isAppOfArity(x_8, x_24, x_25);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_27;
|
||||
lean_dec(x_8);
|
||||
x_27 = lean_box(0);
|
||||
x_11 = x_27;
|
||||
goto block_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
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_28 = l_Lean_Expr_appFn_x21(x_8);
|
||||
x_29 = l_Lean_Expr_appFn_x21(x_28);
|
||||
x_30 = l_Lean_Expr_appFn_x21(x_29);
|
||||
x_31 = l_Lean_Expr_appArg_x21(x_30);
|
||||
lean_dec(x_30);
|
||||
x_32 = l_Lean_Expr_appArg_x21(x_29);
|
||||
lean_dec(x_29);
|
||||
x_33 = l_Lean_Expr_appArg_x21(x_28);
|
||||
lean_dec(x_28);
|
||||
x_34 = l_Lean_Expr_appArg_x21(x_8);
|
||||
lean_dec(x_8);
|
||||
x_35 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_35, 0, x_33);
|
||||
lean_ctor_set(x_35, 1, x_34);
|
||||
x_36 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_32);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
x_37 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_31);
|
||||
lean_ctor_set(x_37, 1, x_36);
|
||||
x_38 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_38, 0, x_37);
|
||||
x_11 = x_38;
|
||||
goto block_23;
|
||||
}
|
||||
block_23:
|
||||
{
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_12 = lean_box(0);
|
||||
if (lean_is_scalar(x_10)) {
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_13 = x_10;
|
||||
}
|
||||
lean_ctor_set(x_13, 0, x_12);
|
||||
lean_ctor_set(x_13, 1, x_9);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18;
|
||||
x_14 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_11);
|
||||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_15);
|
||||
x_17 = l_Lean_Expr_cleanupAnnotations(x_16);
|
||||
x_18 = l_Lean_Expr_isApp(x_17);
|
||||
if (x_18 == 0)
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20;
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_19 = lean_box(0);
|
||||
if (lean_is_scalar(x_10)) {
|
||||
x_20 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_20 = x_10;
|
||||
}
|
||||
lean_ctor_set(x_20, 0, x_19);
|
||||
lean_ctor_set(x_20, 1, x_9);
|
||||
return x_20;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22;
|
||||
lean_dec(x_10);
|
||||
x_21 = lean_box(0);
|
||||
x_22 = l_Lean_MVarId_hcongr_x3f___lambda__1(x_17, x_1, x_21, x_2, x_3, x_4, x_5, x_9);
|
||||
lean_dec(x_17);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_39;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_39 = !lean_is_exclusive(x_7);
|
||||
if (x_39 == 0)
|
||||
{
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_40 = lean_ctor_get(x_7, 0);
|
||||
x_41 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_41);
|
||||
lean_inc(x_40);
|
||||
lean_dec(x_7);
|
||||
x_42 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_42, 0, x_40);
|
||||
lean_ctor_set(x_42, 1, x_41);
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_hcongr_x3f___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
|
|
@ -1508,180 +1882,73 @@ lean_inc(x_6);
|
|||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_1);
|
||||
x_10 = l_Lean_MVarId_getType_x27(x_1, x_3, x_4, x_5, x_6, x_9);
|
||||
x_10 = l_Lean_MVarId_eqOfHEq(x_1, x_3, x_4, x_5, x_6, x_9);
|
||||
if (lean_obj_tag(x_10) == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_27; lean_object* x_28; uint8_t x_29;
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
if (lean_is_exclusive(x_10)) {
|
||||
lean_ctor_release(x_10, 0);
|
||||
lean_ctor_release(x_10, 1);
|
||||
x_13 = x_10;
|
||||
} else {
|
||||
lean_dec_ref(x_10);
|
||||
x_13 = lean_box(0);
|
||||
}
|
||||
x_27 = l_Lean_MVarId_hcongr_x3f___lambda__2___closed__2;
|
||||
x_28 = lean_unsigned_to_nat(4u);
|
||||
x_29 = l_Lean_Expr_isAppOfArity(x_11, x_27, x_28);
|
||||
if (x_29 == 0)
|
||||
{
|
||||
lean_object* x_30;
|
||||
lean_dec(x_11);
|
||||
x_30 = lean_box(0);
|
||||
x_14 = x_30;
|
||||
goto block_26;
|
||||
lean_dec(x_10);
|
||||
lean_inc(x_11);
|
||||
x_13 = lean_alloc_closure((void*)(l_Lean_MVarId_hcongr_x3f___lambda__2), 6, 1);
|
||||
lean_closure_set(x_13, 0, x_11);
|
||||
x_14 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_11, x_13, x_3, x_4, x_5, x_6, x_12);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41;
|
||||
x_31 = l_Lean_Expr_appFn_x21(x_11);
|
||||
x_32 = l_Lean_Expr_appFn_x21(x_31);
|
||||
x_33 = l_Lean_Expr_appFn_x21(x_32);
|
||||
x_34 = l_Lean_Expr_appArg_x21(x_33);
|
||||
lean_dec(x_33);
|
||||
x_35 = l_Lean_Expr_appArg_x21(x_32);
|
||||
lean_dec(x_32);
|
||||
x_36 = l_Lean_Expr_appArg_x21(x_31);
|
||||
lean_dec(x_31);
|
||||
x_37 = l_Lean_Expr_appArg_x21(x_11);
|
||||
lean_dec(x_11);
|
||||
x_38 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_38, 0, x_36);
|
||||
lean_ctor_set(x_38, 1, x_37);
|
||||
x_39 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_35);
|
||||
lean_ctor_set(x_39, 1, x_38);
|
||||
x_40 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_34);
|
||||
lean_ctor_set(x_40, 1, x_39);
|
||||
x_41 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_41, 0, x_40);
|
||||
x_14 = x_41;
|
||||
goto block_26;
|
||||
}
|
||||
block_26:
|
||||
{
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16;
|
||||
uint8_t x_15;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_15 = lean_box(0);
|
||||
if (lean_is_scalar(x_13)) {
|
||||
x_16 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_16 = x_13;
|
||||
}
|
||||
lean_ctor_set(x_16, 0, x_15);
|
||||
lean_ctor_set(x_16, 1, x_12);
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
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_14, 0);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_14);
|
||||
x_18 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_17);
|
||||
x_19 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_18);
|
||||
x_20 = l_Lean_Expr_cleanupAnnotations(x_19);
|
||||
x_21 = l_Lean_Expr_isApp(x_20);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23;
|
||||
lean_dec(x_20);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_22 = lean_box(0);
|
||||
if (lean_is_scalar(x_13)) {
|
||||
x_23 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_23 = x_13;
|
||||
}
|
||||
lean_ctor_set(x_23, 0, x_22);
|
||||
lean_ctor_set(x_23, 1, x_12);
|
||||
return x_23;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25;
|
||||
lean_dec(x_13);
|
||||
x_24 = lean_box(0);
|
||||
x_25 = l_Lean_MVarId_hcongr_x3f___lambda__1(x_20, x_1, x_24, x_3, x_4, x_5, x_6, x_12);
|
||||
lean_dec(x_20);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_42;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_42 = !lean_is_exclusive(x_10);
|
||||
if (x_42 == 0)
|
||||
x_15 = !lean_is_exclusive(x_10);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45;
|
||||
x_43 = lean_ctor_get(x_10, 0);
|
||||
x_44 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_44);
|
||||
lean_inc(x_43);
|
||||
lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_16 = lean_ctor_get(x_10, 0);
|
||||
x_17 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_17);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_10);
|
||||
x_45 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_45, 0, x_43);
|
||||
lean_ctor_set(x_45, 1, x_44);
|
||||
return x_45;
|
||||
x_18 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_16);
|
||||
lean_ctor_set(x_18, 1, x_17);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_46;
|
||||
uint8_t x_19;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_46 = !lean_is_exclusive(x_8);
|
||||
if (x_46 == 0)
|
||||
x_19 = !lean_is_exclusive(x_8);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
x_47 = lean_ctor_get(x_8, 0);
|
||||
x_48 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_48);
|
||||
lean_inc(x_47);
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_20 = lean_ctor_get(x_8, 0);
|
||||
x_21 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_8);
|
||||
x_49 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_49, 0, x_47);
|
||||
lean_ctor_set(x_49, 1, x_48);
|
||||
return x_49;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1691,11 +1958,10 @@ _start:
|
|||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_7 = l_Lean_MVarId_congr_x3f___closed__2;
|
||||
lean_inc(x_1);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_MVarId_hcongr_x3f___lambda__2), 7, 2);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_MVarId_hcongr_x3f___lambda__3), 7, 2);
|
||||
lean_closure_set(x_8, 0, x_1);
|
||||
lean_closure_set(x_8, 1, x_7);
|
||||
x_9 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_8, x_2, x_3, x_4, x_5, x_6);
|
||||
x_9 = l_Lean_commitWhenSomeNoEx_x3f___at_Lean_MVarId_congr_x3f___spec__1(x_8, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
|
|
@ -2127,7 +2393,7 @@ x_9 = lean_ctor_get(x_8, 0);
|
|||
lean_inc(x_9);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11;
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
|
|
@ -2137,9 +2403,6 @@ lean_inc(x_4);
|
|||
lean_inc(x_3);
|
||||
lean_inc(x_1);
|
||||
x_11 = l_Lean_MVarId_hcongr_x3f(x_1, x_3, x_4, x_5, x_6, x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
if (lean_obj_tag(x_12) == 0)
|
||||
|
|
@ -2216,71 +2479,43 @@ return x_29;
|
|||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_30;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
lean_dec(x_1);
|
||||
x_30 = !lean_is_exclusive(x_11);
|
||||
if (x_30 == 0)
|
||||
{
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_31 = lean_ctor_get(x_11, 0);
|
||||
x_32 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_32);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_11);
|
||||
x_33 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_31);
|
||||
lean_ctor_set(x_33, 1, x_32);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
lean_dec(x_1);
|
||||
x_34 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_34);
|
||||
x_30 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_8);
|
||||
x_35 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_35);
|
||||
x_31 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_9);
|
||||
x_36 = l_Lean_MVarId_congr___lambda__1(x_2, x_35, x_3, x_4, x_5, x_6, x_34);
|
||||
return x_36;
|
||||
x_32 = l_Lean_MVarId_congr___lambda__1(x_2, x_31, x_3, x_4, x_5, x_6, x_30);
|
||||
return x_32;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_37;
|
||||
uint8_t x_33;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
x_37 = !lean_is_exclusive(x_8);
|
||||
if (x_37 == 0)
|
||||
x_33 = !lean_is_exclusive(x_8);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40;
|
||||
x_38 = lean_ctor_get(x_8, 0);
|
||||
x_39 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_39);
|
||||
lean_inc(x_38);
|
||||
lean_object* x_34; lean_object* x_35; lean_object* x_36;
|
||||
x_34 = lean_ctor_get(x_8, 0);
|
||||
x_35 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_35);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_8);
|
||||
x_40 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_38);
|
||||
lean_ctor_set(x_40, 1, x_39);
|
||||
return x_40;
|
||||
x_36 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
lean_ctor_set(x_36, 1, x_35);
|
||||
return x_36;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
975
stage0/stdlib/Lean/Meta/Tactic/Contradiction.c
generated
975
stage0/stdlib/Lean/Meta/Tactic/Contradiction.c
generated
File diff suppressed because it is too large
Load diff
411
stage0/stdlib/Lean/Meta/Tactic/Refl.c
generated
411
stage0/stdlib/Lean/Meta/Tactic/Refl.c
generated
|
|
@ -13,6 +13,7 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static lean_object* l_Lean_MVarId_heqOfEq___lambda__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_MVarId_refl___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_ofExceptKernelException___at_Lean_MVarId_refl___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkFreshLevelMVar(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -28,24 +29,27 @@ LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_MVarId_refl___spe
|
|||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_appFn_x21(lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_refl___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_appArg_x21(lean_object*);
|
||||
static lean_object* l_Lean_MVarId_heqOfEq___lambda__1___closed__1;
|
||||
static lean_object* l_Lean_MVarId_hrefl___lambda__1___closed__2;
|
||||
static lean_object* l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__1;
|
||||
static lean_object* l_Lean_MVarId_heqOfEq___lambda__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_refl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_refl___lambda__2___closed__5;
|
||||
static lean_object* l_Lean_MVarId_refl___lambda__3___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_heqOfEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_eqOfHEq___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_constLevels_x21(lean_object*);
|
||||
static lean_object* l_Lean_MVarId_hrefl___lambda__2___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_throwKernelException___at_Lean_MVarId_refl___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_eqOfHEq___lambda__1___closed__2;
|
||||
lean_object* l_Lean_MVarId_assign___at_Lean_Meta_getLevel___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_refl___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_KernelException_toMessageData(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_refl___lambda__3___closed__5;
|
||||
static lean_object* l_Lean_MVarId_refl___lambda__2___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_heqOfEq___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_checkNotAssigned(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_refl___lambda__2___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_applyRefl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -55,7 +59,6 @@ uint8_t l_Lean_Expr_isAppOfArity(lean_object*, lean_object*, lean_object*);
|
|||
static lean_object* l_Lean_MVarId_refl___lambda__1___closed__3;
|
||||
static lean_object* l_Lean_MVarId_refl___closed__1;
|
||||
static lean_object* l_Lean_MVarId_refl___lambda__4___closed__2;
|
||||
static lean_object* l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__3;
|
||||
lean_object* lean_kernel_is_def_eq(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_SavedState_restore(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_refl___lambda__2___closed__4;
|
||||
|
|
@ -76,6 +79,7 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_refl___lambda__1(lean_object*, lean_objec
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Refl_0__Lean_Meta_useKernel___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_refl___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_refl___lambda__1___closed__1;
|
||||
static lean_object* l_Lean_MVarId_eqOfHEq___lambda__1___closed__1;
|
||||
static lean_object* l_Lean_MVarId_refl___lambda__2___closed__1;
|
||||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_refl___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*);
|
||||
|
|
@ -87,11 +91,11 @@ lean_object* l_Lean_MVarId_getType_x27(lean_object*, lean_object*, lean_object*,
|
|||
lean_object* l_Lean_Meta_getTransparency(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_ofExceptKernelException___at_Lean_MVarId_refl___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_getAppFn(lean_object*);
|
||||
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_indentExpr(lean_object*);
|
||||
uint8_t l_Lean_Expr_hasFVar(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_eqOfHEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Refl_0__Lean_Meta_useKernel(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_hrefl___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_MVarId_refl___lambda__3___closed__2;
|
||||
|
|
@ -1126,7 +1130,7 @@ return x_25;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__1() {
|
||||
static lean_object* _init_l_Lean_MVarId_heqOfEq___lambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -1134,17 +1138,17 @@ x_1 = lean_mk_string_from_bytes("heq_of_eq", 9);
|
|||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__2() {
|
||||
static lean_object* _init_l_Lean_MVarId_heqOfEq___lambda__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__1;
|
||||
x_2 = l_Lean_MVarId_heqOfEq___lambda__1___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__3() {
|
||||
static lean_object* _init_l_Lean_MVarId_heqOfEq___lambda__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1; uint8_t x_2; lean_object* x_3;
|
||||
|
|
@ -1156,62 +1160,118 @@ lean_ctor_set_uint8(x_3, 1, x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_heqOfEq___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_7 = l_Lean_Meta_saveState___rarg(x_3, x_4, x_5, x_6);
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_7 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_10 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_9);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_13 = lean_box(0);
|
||||
x_14 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_11);
|
||||
lean_ctor_set(x_14, 1, x_13);
|
||||
x_15 = l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__2;
|
||||
x_16 = l_Lean_Expr_const___override(x_15, x_14);
|
||||
x_17 = l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__3;
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_18 = l_Lean_MVarId_apply(x_1, x_16, x_17, x_2, x_3, x_4, x_5, x_12);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
x_10 = lean_box(0);
|
||||
x_11 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_8);
|
||||
lean_ctor_set(x_11, 1, x_10);
|
||||
x_12 = l_Lean_MVarId_heqOfEq___lambda__1___closed__2;
|
||||
x_13 = l_Lean_Expr_const___override(x_12, x_11);
|
||||
x_14 = l_Lean_MVarId_heqOfEq___lambda__1___closed__3;
|
||||
x_15 = l_Lean_MVarId_apply(x_1, x_13, x_14, x_2, x_3, x_4, x_5, x_9);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_heqOfEq___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_19;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_19 = !lean_is_exclusive(x_18);
|
||||
if (x_19 == 0)
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1(x_1, x_3, x_4, x_5, x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21;
|
||||
x_20 = lean_ctor_get(x_18, 0);
|
||||
x_21 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_21, 0, x_20);
|
||||
lean_ctor_set(x_18, 0, x_21);
|
||||
return x_18;
|
||||
uint8_t x_10;
|
||||
x_10 = !lean_is_exclusive(x_8);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11;
|
||||
x_11 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_11);
|
||||
lean_ctor_set(x_8, 0, x_2);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_22 = lean_ctor_get(x_18, 0);
|
||||
x_23 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_23);
|
||||
lean_object* x_12; lean_object* x_13;
|
||||
x_12 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_8);
|
||||
x_13 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_13, 0, x_2);
|
||||
lean_ctor_set(x_13, 1, x_12);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_9);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
uint8_t x_15;
|
||||
x_15 = !lean_is_exclusive(x_8);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16;
|
||||
x_16 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_16);
|
||||
lean_ctor_set(x_8, 0, x_2);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_8);
|
||||
x_18 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_2);
|
||||
lean_ctor_set(x_18, 1, x_17);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19;
|
||||
x_19 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_19);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
uint8_t x_20;
|
||||
lean_dec(x_2);
|
||||
x_20 = !lean_is_exclusive(x_8);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22;
|
||||
x_21 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_21);
|
||||
x_22 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_18);
|
||||
x_24 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_24, 0, x_22);
|
||||
lean_dec(x_14);
|
||||
lean_ctor_set(x_8, 0, x_22);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; lean_object* x_25;
|
||||
x_23 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_8);
|
||||
x_24 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_14);
|
||||
x_25 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_24);
|
||||
lean_ctor_set(x_25, 1, x_23);
|
||||
|
|
@ -1220,163 +1280,28 @@ return x_25;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; uint8_t x_28;
|
||||
x_26 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_18);
|
||||
x_27 = l_Lean_Meta_SavedState_restore(x_8, x_2, x_3, x_4, x_5, x_26);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_8);
|
||||
x_28 = !lean_is_exclusive(x_27);
|
||||
if (x_28 == 0)
|
||||
uint8_t x_26;
|
||||
lean_dec(x_19);
|
||||
lean_dec(x_14);
|
||||
x_26 = !lean_is_exclusive(x_8);
|
||||
if (x_26 == 0)
|
||||
{
|
||||
lean_object* x_29; lean_object* x_30;
|
||||
x_29 = lean_ctor_get(x_27, 0);
|
||||
lean_dec(x_29);
|
||||
x_30 = lean_box(0);
|
||||
lean_ctor_set(x_27, 0, x_30);
|
||||
return x_27;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33;
|
||||
x_31 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_31);
|
||||
lean_object* x_27;
|
||||
x_27 = lean_ctor_get(x_8, 0);
|
||||
lean_dec(x_27);
|
||||
x_32 = lean_box(0);
|
||||
x_33 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_33, 0, x_32);
|
||||
lean_ctor_set(x_33, 1, x_31);
|
||||
return x_33;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_heqOfEq___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
lean_inc(x_1);
|
||||
x_7 = l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2(x_1, x_2, x_3, x_4, x_5, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
{
|
||||
uint8_t x_9;
|
||||
x_9 = !lean_is_exclusive(x_7);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = lean_ctor_get(x_7, 0);
|
||||
lean_dec(x_10);
|
||||
lean_ctor_set(x_7, 0, x_1);
|
||||
return x_7;
|
||||
lean_ctor_set(x_8, 0, x_2);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12;
|
||||
x_11 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_7);
|
||||
x_12 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_1);
|
||||
lean_ctor_set(x_12, 1, x_11);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13;
|
||||
x_13 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_13);
|
||||
lean_object* x_28; lean_object* x_29;
|
||||
x_28 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_8);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
{
|
||||
uint8_t x_14;
|
||||
x_14 = !lean_is_exclusive(x_7);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
lean_object* x_15;
|
||||
x_15 = lean_ctor_get(x_7, 0);
|
||||
lean_dec(x_15);
|
||||
lean_ctor_set(x_7, 0, x_1);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16; lean_object* x_17;
|
||||
x_16 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_7);
|
||||
x_17 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_1);
|
||||
lean_ctor_set(x_17, 1, x_16);
|
||||
return x_17;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18;
|
||||
x_18 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_18);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
{
|
||||
uint8_t x_19;
|
||||
lean_dec(x_1);
|
||||
x_19 = !lean_is_exclusive(x_7);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21;
|
||||
x_20 = lean_ctor_get(x_7, 0);
|
||||
lean_dec(x_20);
|
||||
x_21 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_21);
|
||||
lean_dec(x_13);
|
||||
lean_ctor_set(x_7, 0, x_21);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23; lean_object* x_24;
|
||||
x_22 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_22);
|
||||
lean_dec(x_7);
|
||||
x_23 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_13);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_22);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_25;
|
||||
lean_dec(x_18);
|
||||
lean_dec(x_13);
|
||||
x_25 = !lean_is_exclusive(x_7);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_object* x_26;
|
||||
x_26 = lean_ctor_get(x_7, 0);
|
||||
lean_dec(x_26);
|
||||
lean_ctor_set(x_7, 0, x_1);
|
||||
return x_7;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_27; lean_object* x_28;
|
||||
x_27 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_27);
|
||||
lean_dec(x_7);
|
||||
x_28 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_28, 0, x_1);
|
||||
lean_ctor_set(x_28, 1, x_27);
|
||||
return x_28;
|
||||
x_29 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_2);
|
||||
lean_ctor_set(x_29, 1, x_28);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1386,12 +1311,70 @@ return x_28;
|
|||
LEAN_EXPORT lean_object* l_Lean_MVarId_heqOfEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
lean_inc(x_1);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_MVarId_heqOfEq___lambda__1), 6, 1);
|
||||
lean_closure_set(x_7, 0, x_1);
|
||||
x_8 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_7, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_8;
|
||||
lean_inc(x_1);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_MVarId_heqOfEq___lambda__2), 7, 2);
|
||||
lean_closure_set(x_8, 0, x_7);
|
||||
lean_closure_set(x_8, 1, x_1);
|
||||
x_9 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_8, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_MVarId_eqOfHEq___lambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("eq_of_heq", 9);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_MVarId_eqOfHEq___lambda__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_MVarId_eqOfHEq___lambda__1___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_eqOfHEq___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_7 = l_Lean_Meta_mkFreshLevelMVar(x_2, x_3, x_4, x_5, x_6);
|
||||
x_8 = lean_ctor_get(x_7, 0);
|
||||
lean_inc(x_8);
|
||||
x_9 = lean_ctor_get(x_7, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_7);
|
||||
x_10 = lean_box(0);
|
||||
x_11 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_8);
|
||||
lean_ctor_set(x_11, 1, x_10);
|
||||
x_12 = l_Lean_MVarId_eqOfHEq___lambda__1___closed__2;
|
||||
x_13 = l_Lean_Expr_const___override(x_12, x_11);
|
||||
x_14 = l_Lean_MVarId_heqOfEq___lambda__1___closed__3;
|
||||
x_15 = l_Lean_MVarId_apply(x_1, x_13, x_14, x_2, x_3, x_4, x_5, x_9);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_MVarId_eqOfHEq(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
lean_inc(x_1);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_MVarId_eqOfHEq___lambda__1), 6, 1);
|
||||
lean_closure_set(x_7, 0, x_1);
|
||||
lean_inc(x_1);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_MVarId_heqOfEq___lambda__2), 7, 2);
|
||||
lean_closure_set(x_8, 0, x_7);
|
||||
lean_closure_set(x_8, 1, x_1);
|
||||
x_9 = l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(x_1, x_8, x_2, x_3, x_4, x_5, x_6);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_MVarId_hrefl___lambda__1___closed__1() {
|
||||
|
|
@ -1428,7 +1411,7 @@ lean_ctor_set(x_11, 0, x_8);
|
|||
lean_ctor_set(x_11, 1, x_10);
|
||||
x_12 = l_Lean_MVarId_hrefl___lambda__1___closed__2;
|
||||
x_13 = l_Lean_Expr_const___override(x_12, x_11);
|
||||
x_14 = l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__3;
|
||||
x_14 = l_Lean_MVarId_heqOfEq___lambda__1___closed__3;
|
||||
x_15 = l_Lean_MVarId_apply(x_1, x_13, x_14, x_2, x_3, x_4, x_5, x_9);
|
||||
return x_15;
|
||||
}
|
||||
|
|
@ -1629,12 +1612,16 @@ l_Lean_MVarId_refl___lambda__4___closed__3 = _init_l_Lean_MVarId_refl___lambda__
|
|||
lean_mark_persistent(l_Lean_MVarId_refl___lambda__4___closed__3);
|
||||
l_Lean_MVarId_refl___closed__1 = _init_l_Lean_MVarId_refl___closed__1();
|
||||
lean_mark_persistent(l_Lean_MVarId_refl___closed__1);
|
||||
l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__1 = _init_l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__1();
|
||||
lean_mark_persistent(l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__1);
|
||||
l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__2 = _init_l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__2();
|
||||
lean_mark_persistent(l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__2);
|
||||
l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__3 = _init_l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__3();
|
||||
lean_mark_persistent(l_Lean_observing_x3f___at_Lean_MVarId_heqOfEq___spec__1___at_Lean_MVarId_heqOfEq___spec__2___closed__3);
|
||||
l_Lean_MVarId_heqOfEq___lambda__1___closed__1 = _init_l_Lean_MVarId_heqOfEq___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_MVarId_heqOfEq___lambda__1___closed__1);
|
||||
l_Lean_MVarId_heqOfEq___lambda__1___closed__2 = _init_l_Lean_MVarId_heqOfEq___lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_MVarId_heqOfEq___lambda__1___closed__2);
|
||||
l_Lean_MVarId_heqOfEq___lambda__1___closed__3 = _init_l_Lean_MVarId_heqOfEq___lambda__1___closed__3();
|
||||
lean_mark_persistent(l_Lean_MVarId_heqOfEq___lambda__1___closed__3);
|
||||
l_Lean_MVarId_eqOfHEq___lambda__1___closed__1 = _init_l_Lean_MVarId_eqOfHEq___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_MVarId_eqOfHEq___lambda__1___closed__1);
|
||||
l_Lean_MVarId_eqOfHEq___lambda__1___closed__2 = _init_l_Lean_MVarId_eqOfHEq___lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lean_MVarId_eqOfHEq___lambda__1___closed__2);
|
||||
l_Lean_MVarId_hrefl___lambda__1___closed__1 = _init_l_Lean_MVarId_hrefl___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_MVarId_hrefl___lambda__1___closed__1);
|
||||
l_Lean_MVarId_hrefl___lambda__1___closed__2 = _init_l_Lean_MVarId_hrefl___lambda__1___closed__2();
|
||||
|
|
|
|||
254
stage0/stdlib/Lean/Meta/Tactic/Split.c
generated
254
stage0/stdlib/Lean/Meta/Tactic/Split.c
generated
|
|
@ -41,6 +41,7 @@ LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go(lean_object*, uint8_t, l
|
|||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
static lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__1;
|
||||
static lean_object* l_Lean_Meta_Split_applyMatchSplitter___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f___lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_throwError___at_Lean_Meta_mkSimpCongrTheorem___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_Simp_simpMatchCore_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___lambda__6___closed__2;
|
||||
|
|
@ -80,7 +81,6 @@ extern lean_object* l_instInhabitedNat;
|
|||
uint8_t l_Lean_Expr_isAppOf(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate___closed__4;
|
||||
lean_object* l_Lean_Meta_Match_MatcherInfo_getFirstDiscrPos(lean_object*);
|
||||
static lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1;
|
||||
lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
|
|
@ -99,6 +99,7 @@ LEAN_EXPORT lean_object* l_Lean_throwError___at_Lean_Meta_Split_applyMatchSplitt
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_Meta_splitLocalDecl_x3f___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_List_foldlM___at_Lean_Meta_Split_applyMatchSplitter___spec__2___lambda__2___closed__1;
|
||||
lean_object* l_Lean_Meta_splitIfTarget_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_appArg_x21(lean_object*);
|
||||
static lean_object* l_Std_Range_forIn_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__2___lambda__3___closed__1;
|
||||
static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs___lambda__6___closed__6;
|
||||
|
|
@ -130,12 +131,13 @@ lean_object* l_Array_zip___rarg(lean_object*, lean_object*);
|
|||
static lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___lambda__1___closed__2;
|
||||
lean_object* l_Lean_mkAppN(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_simpMatchCore_pre___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MVarId_replaceTargetDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Expr_FindImpl_findUnsafe_x3f(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_withNewAltEqs___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_ReaderT_instMonadLiftReaderT(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_isCandidate___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_splitTarget_x3f___lambda__1___closed__1;
|
||||
uint8_t l_Lean_HashSetImp_contains___at_Lean_CollectFVars_visit___spec__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_withNewAltEqs___spec__2(lean_object*, size_t, size_t, lean_object*);
|
||||
lean_object* l___private_Lean_Expr_0__Lean_Expr_getAppArgsAux(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -208,7 +210,6 @@ lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, ui
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1___at_Lean_Meta_substCore_x3f___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_splitIfLocalDecl_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_Split_simpMatch___closed__3;
|
||||
|
|
@ -264,7 +265,6 @@ lean_object* l_Lean_Meta_mkEqTrans(lean_object*, lean_object*, lean_object*, lea
|
|||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_withEqs_go___rarg___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_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f(lean_object*, lean_object*, uint8_t, lean_object*);
|
||||
lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Split_findSplit_x3f_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter___lambda__1(lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_mkHEqTrans(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -276,6 +276,7 @@ uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_addMessageContextFull___at_Lean_Meta_instAddMessageContextMetaM___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lean_instInhabitedName;
|
||||
lean_object* l_Lean_Expr_app___override(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_substCore_x3f(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_foldlM___at_Lean_Meta_Split_applyMatchSplitter___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_get_match_equations_for(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -302,7 +303,6 @@ lean_object* l_Lean_Meta_mkEqHEq(lean_object*, lean_object*, lean_object*, lean_
|
|||
static lean_object* l_List_foldlM___at_Lean_Meta_Split_applyMatchSplitter___spec__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_Split_applyMatchSplitter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_withLocalDecl___at_Lean_Meta_GeneralizeTelescope_generalizeTelescopeAux___spec__1___rarg(lean_object*, uint8_t, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_Split_0__Lean_Meta_Split_generalizeMatchDiscrs_mkNewTarget___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lean_Meta_Split_findSplit_x3f_isCandidate___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Level_isZero(lean_object*);
|
||||
|
|
@ -5795,7 +5795,7 @@ lean_inc(x_5);
|
|||
lean_inc(x_20);
|
||||
lean_inc(x_29);
|
||||
lean_inc(x_30);
|
||||
x_32 = l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1___at_Lean_Meta_substCore_x3f___spec__2(x_30, x_29, x_31, x_20, x_25, x_31, x_5, x_6, x_7, x_8, x_28);
|
||||
x_32 = l_Lean_Meta_substCore_x3f(x_30, x_29, x_31, x_20, x_25, x_31, x_5, x_6, x_7, x_8, x_28);
|
||||
x_33 = lean_ctor_get(x_32, 0);
|
||||
lean_inc(x_33);
|
||||
if (lean_obj_tag(x_33) == 0)
|
||||
|
|
@ -5810,7 +5810,7 @@ lean_inc(x_6);
|
|||
lean_inc(x_5);
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_30);
|
||||
x_35 = l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1___at_Lean_Meta_substCore_x3f___spec__2(x_30, x_29, x_25, x_20, x_25, x_31, x_5, x_6, x_7, x_8, x_34);
|
||||
x_35 = l_Lean_Meta_substCore_x3f(x_30, x_29, x_25, x_20, x_25, x_31, x_5, x_6, x_7, x_8, x_34);
|
||||
x_36 = lean_ctor_get(x_35, 0);
|
||||
lean_inc(x_36);
|
||||
if (lean_obj_tag(x_36) == 0)
|
||||
|
|
@ -9732,7 +9732,7 @@ lean_dec(x_33);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_45 = lean_box(0);
|
||||
x_46 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_45, x_5, x_6, x_7, x_8, x_12);
|
||||
x_46 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_45, x_5, x_6, x_7, x_8, x_12);
|
||||
if (lean_obj_tag(x_46) == 0)
|
||||
{
|
||||
lean_object* x_47;
|
||||
|
|
@ -9902,7 +9902,7 @@ lean_dec(x_33);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_86 = lean_box(0);
|
||||
x_87 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_86, x_5, x_6, x_7, x_8, x_12);
|
||||
x_87 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_86, x_5, x_6, x_7, x_8, x_12);
|
||||
if (lean_obj_tag(x_87) == 0)
|
||||
{
|
||||
lean_object* x_88;
|
||||
|
|
@ -10138,7 +10138,7 @@ lean_dec(x_127);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_139 = lean_box(0);
|
||||
x_140 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_139, x_5, x_6, x_7, x_8, x_12);
|
||||
x_140 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_139, x_5, x_6, x_7, x_8, x_12);
|
||||
if (lean_obj_tag(x_140) == 0)
|
||||
{
|
||||
lean_object* x_141;
|
||||
|
|
@ -10255,7 +10255,7 @@ lean_dec(x_127);
|
|||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_162 = lean_box(0);
|
||||
x_163 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitIfTarget_x3f___spec__1___at_Lean_Meta_splitIfTarget_x3f___spec__2(x_1, x_162, x_5, x_6, x_7, x_8, x_12);
|
||||
x_163 = l_Lean_Meta_splitIfTarget_x3f(x_1, x_162, x_5, x_6, x_7, x_8, x_12);
|
||||
if (lean_obj_tag(x_163) == 0)
|
||||
{
|
||||
lean_object* x_164;
|
||||
|
|
@ -10543,7 +10543,7 @@ return x_36;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1() {
|
||||
static lean_object* _init_l_Lean_Meta_splitTarget_x3f___lambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
|
|
@ -10552,209 +10552,55 @@ x_2 = l_Lean_mkHashSetImp___rarg(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f___lambda__1(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_8 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_7);
|
||||
lean_object* x_8;
|
||||
lean_inc(x_1);
|
||||
x_8 = l_Lean_MVarId_getType(x_1, x_3, x_4, x_5, x_6, x_7);
|
||||
if (lean_obj_tag(x_8) == 0)
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
lean_inc(x_1);
|
||||
x_11 = l_Lean_MVarId_getType(x_1, x_3, x_4, x_5, x_6, x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_11 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_9, x_3, x_4, x_5, x_6, x_10);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_14 = l_Lean_instantiateMVars___at___private_Lean_Meta_Basic_0__Lean_Meta_mkLeveErrorMessageCore___spec__2(x_12, x_3, x_4, x_5, x_6, x_13);
|
||||
x_15 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_15);
|
||||
x_16 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_14);
|
||||
x_17 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_18 = l_Lean_Meta_splitTarget_x3f_go(x_1, x_2, x_15, x_17, x_3, x_4, x_5, x_6, x_16);
|
||||
if (lean_obj_tag(x_18) == 0)
|
||||
x_14 = l_Lean_Meta_splitTarget_x3f___lambda__1___closed__1;
|
||||
x_15 = l_Lean_Meta_splitTarget_x3f_go(x_1, x_2, x_12, x_14, x_3, x_4, x_5, x_6, x_13);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19;
|
||||
x_19 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_19);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_20 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_18);
|
||||
x_21 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_20);
|
||||
uint8_t x_16;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_22 = !lean_is_exclusive(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
lean_dec(x_23);
|
||||
x_24 = lean_box(0);
|
||||
lean_ctor_set(x_21, 0, x_24);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27;
|
||||
x_25 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_25);
|
||||
lean_dec(x_21);
|
||||
x_26 = lean_box(0);
|
||||
x_27 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_27, 0, x_26);
|
||||
lean_ctor_set(x_27, 1, x_25);
|
||||
return x_27;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_28;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_28 = !lean_is_exclusive(x_18);
|
||||
if (x_28 == 0)
|
||||
{
|
||||
lean_object* x_29; uint8_t x_30;
|
||||
x_29 = lean_ctor_get(x_18, 0);
|
||||
lean_dec(x_29);
|
||||
x_30 = !lean_is_exclusive(x_19);
|
||||
if (x_30 == 0)
|
||||
{
|
||||
return x_18;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_31; lean_object* x_32;
|
||||
x_31 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_31);
|
||||
lean_dec(x_19);
|
||||
x_32 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_32, 0, x_31);
|
||||
lean_ctor_set(x_18, 0, x_32);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_33 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_33);
|
||||
lean_dec(x_18);
|
||||
x_34 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_34);
|
||||
if (lean_is_exclusive(x_19)) {
|
||||
lean_ctor_release(x_19, 0);
|
||||
x_35 = x_19;
|
||||
} else {
|
||||
lean_dec_ref(x_19);
|
||||
x_35 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_35)) {
|
||||
x_36 = lean_alloc_ctor(1, 1, 0);
|
||||
} else {
|
||||
x_36 = x_35;
|
||||
}
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
x_37 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_37, 0, x_36);
|
||||
lean_ctor_set(x_37, 1, x_33);
|
||||
return x_37;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41;
|
||||
x_38 = lean_ctor_get(x_18, 0);
|
||||
lean_inc(x_38);
|
||||
x_39 = lean_ctor_get(x_18, 1);
|
||||
lean_inc(x_39);
|
||||
lean_dec(x_18);
|
||||
x_40 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_39);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_41 = !lean_is_exclusive(x_40);
|
||||
if (x_41 == 0)
|
||||
{
|
||||
lean_object* x_42;
|
||||
x_42 = lean_ctor_get(x_40, 0);
|
||||
lean_dec(x_42);
|
||||
lean_ctor_set_tag(x_40, 1);
|
||||
lean_ctor_set(x_40, 0, x_38);
|
||||
return x_40;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44;
|
||||
x_43 = lean_ctor_get(x_40, 1);
|
||||
lean_inc(x_43);
|
||||
lean_dec(x_40);
|
||||
x_44 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_44, 0, x_38);
|
||||
lean_ctor_set(x_44, 1, x_43);
|
||||
return x_44;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48;
|
||||
lean_dec(x_1);
|
||||
x_45 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_45);
|
||||
x_46 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_46);
|
||||
lean_dec(x_11);
|
||||
x_47 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_46);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_48 = !lean_is_exclusive(x_47);
|
||||
if (x_48 == 0)
|
||||
x_16 = !lean_is_exclusive(x_8);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_49;
|
||||
x_49 = lean_ctor_get(x_47, 0);
|
||||
lean_dec(x_49);
|
||||
lean_ctor_set_tag(x_47, 1);
|
||||
lean_ctor_set(x_47, 0, x_45);
|
||||
return x_47;
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_50; lean_object* x_51;
|
||||
x_50 = lean_ctor_get(x_47, 1);
|
||||
lean_inc(x_50);
|
||||
lean_dec(x_47);
|
||||
x_51 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_45);
|
||||
lean_ctor_set(x_51, 1, x_50);
|
||||
return x_51;
|
||||
lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_17 = lean_ctor_get(x_8, 0);
|
||||
x_18 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_18);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_8);
|
||||
x_19 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_17);
|
||||
lean_ctor_set(x_19, 1, x_18);
|
||||
return x_19;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -10762,18 +10608,22 @@ return x_51;
|
|||
LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_8;
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_8 = lean_box(x_2);
|
||||
x_9 = lean_alloc_closure((void*)(l_Lean_Meta_splitTarget_x3f___lambda__1___boxed), 7, 2);
|
||||
lean_closure_set(x_9, 0, x_1);
|
||||
lean_closure_set(x_9, 1, x_8);
|
||||
x_10 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1(x_9, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_splitTarget_x3f___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_8; lean_object* x_9;
|
||||
x_8 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_9 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
x_9 = l_Lean_Meta_splitTarget_x3f___lambda__1(x_1, x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
|
|
@ -10992,7 +10842,7 @@ lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_obje
|
|||
x_18 = lean_ctor_get(x_16, 0);
|
||||
x_19 = lean_ctor_get(x_16, 1);
|
||||
x_20 = 1;
|
||||
x_21 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1;
|
||||
x_21 = l_Lean_Meta_splitTarget_x3f___lambda__1___closed__1;
|
||||
x_22 = l_Lean_Meta_Split_findSplit_x3f_go(x_11, x_20, x_21, x_18);
|
||||
if (lean_obj_tag(x_22) == 0)
|
||||
{
|
||||
|
|
@ -11875,7 +11725,7 @@ lean_inc(x_212);
|
|||
lean_inc(x_211);
|
||||
lean_dec(x_16);
|
||||
x_213 = 1;
|
||||
x_214 = l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1;
|
||||
x_214 = l_Lean_Meta_splitTarget_x3f___lambda__1___closed__1;
|
||||
x_215 = l_Lean_Meta_Split_findSplit_x3f_go(x_11, x_213, x_214, x_211);
|
||||
if (lean_obj_tag(x_215) == 0)
|
||||
{
|
||||
|
|
@ -12541,8 +12391,8 @@ l_Lean_Meta_splitTarget_x3f_go___closed__2 = _init_l_Lean_Meta_splitTarget_x3f_g
|
|||
lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__2);
|
||||
l_Lean_Meta_splitTarget_x3f_go___closed__3 = _init_l_Lean_Meta_splitTarget_x3f_go___closed__3();
|
||||
lean_mark_persistent(l_Lean_Meta_splitTarget_x3f_go___closed__3);
|
||||
l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1 = _init_l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1();
|
||||
lean_mark_persistent(l_Lean_commitWhenSome_x3f___at_Lean_Meta_splitTarget_x3f___spec__1___at_Lean_Meta_splitTarget_x3f___spec__2___closed__1);
|
||||
l_Lean_Meta_splitTarget_x3f___lambda__1___closed__1 = _init_l_Lean_Meta_splitTarget_x3f___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_splitTarget_x3f___lambda__1___closed__1);
|
||||
l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1 = _init_l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_Meta_splitLocalDecl_x3f___lambda__1___closed__1);
|
||||
res = l_Lean_Meta_initFn____x40_Lean_Meta_Tactic_Split___hyg_7123_(lean_io_mk_world());
|
||||
|
|
|
|||
1971
stage0/stdlib/Lean/Meta/Tactic/SplitIf.c
generated
1971
stage0/stdlib/Lean/Meta/Tactic/SplitIf.c
generated
File diff suppressed because it is too large
Load diff
224
stage0/stdlib/Lean/Meta/Tactic/Subst.c
generated
224
stage0/stdlib/Lean/Meta/Tactic/Subst.c
generated
|
|
@ -73,7 +73,6 @@ LEAN_EXPORT lean_object* l_Lean_Meta_substCore___lambda__16(lean_object*, lean_o
|
|||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_substSomeVar_x3f___spec__5(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_EXPORT lean_object* l_Lean_Meta_substCore___lambda__8___boxed(lean_object**);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_subst_x3f(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_MessageData_ofList(lean_object*);
|
||||
lean_object* l_Lean_MVarId_withContext___at___private_Lean_Meta_SynthInstance_0__Lean_Meta_synthPendingImp___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -152,10 +151,8 @@ lean_object* l_Lean_Meta_introNCore(lean_object*, lean_object*, lean_object*, ui
|
|||
static lean_object* l_Lean_Meta_substCore___lambda__19___closed__1;
|
||||
LEAN_EXPORT lean_object* l_List_mapTRAux___at_Lean_Meta_substCore___spec__6(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_subst_findEq___spec__5___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1___at_Lean_Meta_substCore_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_substCore___lambda__11(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_substCore___lambda__13___boxed(lean_object**);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1___at_Lean_Meta_substCore_x3f___spec__2(lean_object*, lean_object*, uint8_t, lean_object*, uint8_t, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_whnf(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_heqToEq___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Meta_subst_findEq___lambda__1___closed__2;
|
||||
|
|
@ -9845,98 +9842,15 @@ return x_25;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_8 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_11 = l_Lean_Meta_subst(x_1, x_2, x_3, x_4, x_5, x_6, x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
uint8_t x_12;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_12 = !lean_is_exclusive(x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
x_13 = lean_ctor_get(x_11, 0);
|
||||
x_14 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_11, 0, x_14);
|
||||
return x_11;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_15 = lean_ctor_get(x_11, 0);
|
||||
x_16 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_16);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_11);
|
||||
x_17 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_17, 0, x_15);
|
||||
x_18 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_17);
|
||||
lean_ctor_set(x_18, 1, x_16);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; uint8_t x_21;
|
||||
x_19 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_11);
|
||||
x_20 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_19);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_21 = !lean_is_exclusive(x_20);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_22; lean_object* x_23;
|
||||
x_22 = lean_ctor_get(x_20, 0);
|
||||
lean_dec(x_22);
|
||||
x_23 = lean_box(0);
|
||||
lean_ctor_set(x_20, 0, x_23);
|
||||
return x_20;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25; lean_object* x_26;
|
||||
x_24 = lean_ctor_get(x_20, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_20);
|
||||
x_25 = lean_box(0);
|
||||
x_26 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_26, 0, x_25);
|
||||
lean_ctor_set(x_26, 1, x_24);
|
||||
return x_26;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_subst_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_8;
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_Meta_subst), 7, 2);
|
||||
lean_closure_set(x_8, 0, x_1);
|
||||
lean_closure_set(x_8, 1, x_2);
|
||||
x_9 = l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1(x_8, x_3, x_4, x_5, x_6, x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
|
|
@ -10025,112 +9939,22 @@ return x_25;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1___at_Lean_Meta_substCore_x3f___spec__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_12 = l_Lean_Meta_saveState___rarg(x_8, x_9, x_10, x_11);
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_12);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
x_15 = l_Lean_Meta_substCore(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_14);
|
||||
if (lean_obj_tag(x_15) == 0)
|
||||
{
|
||||
uint8_t x_16;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
x_16 = !lean_is_exclusive(x_15);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_15, 0);
|
||||
x_18 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_18, 0, x_17);
|
||||
lean_ctor_set(x_15, 0, x_18);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_19 = lean_ctor_get(x_15, 0);
|
||||
x_20 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_20);
|
||||
lean_inc(x_19);
|
||||
lean_dec(x_15);
|
||||
x_21 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_21, 0, x_19);
|
||||
x_22 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_21);
|
||||
lean_ctor_set(x_22, 1, x_20);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; uint8_t x_25;
|
||||
x_23 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_15);
|
||||
x_24 = l_Lean_Meta_SavedState_restore(x_13, x_7, x_8, x_9, x_10, x_23);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_13);
|
||||
x_25 = !lean_is_exclusive(x_24);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27;
|
||||
x_26 = lean_ctor_get(x_24, 0);
|
||||
lean_dec(x_26);
|
||||
x_27 = lean_box(0);
|
||||
lean_ctor_set(x_24, 0, x_27);
|
||||
return x_24;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_28; lean_object* x_29; lean_object* x_30;
|
||||
x_28 = lean_ctor_get(x_24, 1);
|
||||
lean_inc(x_28);
|
||||
lean_dec(x_24);
|
||||
x_29 = lean_box(0);
|
||||
x_30 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_30, 0, x_29);
|
||||
lean_ctor_set(x_30, 1, x_28);
|
||||
return x_30;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_substCore_x3f(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, uint8_t x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_12;
|
||||
x_12 = l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1___at_Lean_Meta_substCore_x3f___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1___at_Lean_Meta_substCore_x3f___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_12; uint8_t x_13; uint8_t x_14; lean_object* x_15;
|
||||
x_12 = lean_unbox(x_3);
|
||||
lean_dec(x_3);
|
||||
x_13 = lean_unbox(x_5);
|
||||
lean_dec(x_5);
|
||||
x_14 = lean_unbox(x_6);
|
||||
lean_dec(x_6);
|
||||
x_15 = l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1___at_Lean_Meta_substCore_x3f___spec__2(x_1, x_2, x_12, x_4, x_13, x_14, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_15;
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_12 = lean_box(x_3);
|
||||
x_13 = lean_box(x_5);
|
||||
x_14 = lean_box(x_6);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lean_Meta_substCore___boxed), 11, 6);
|
||||
lean_closure_set(x_15, 0, x_1);
|
||||
lean_closure_set(x_15, 1, x_2);
|
||||
lean_closure_set(x_15, 2, x_12);
|
||||
lean_closure_set(x_15, 3, x_4);
|
||||
lean_closure_set(x_15, 4, x_13);
|
||||
lean_closure_set(x_15, 5, x_14);
|
||||
x_16 = l_Lean_observing_x3f___at_Lean_Meta_substCore_x3f___spec__1(x_15, x_7, x_8, x_9, x_10, x_11);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_Meta_substCore_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
|
||||
|
|
@ -10152,7 +9976,7 @@ _start:
|
|||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
lean_inc(x_1);
|
||||
x_8 = l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
x_8 = l_Lean_Meta_subst_x3f(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
if (lean_obj_tag(x_9) == 0)
|
||||
|
|
@ -10449,7 +10273,7 @@ lean_inc(x_10);
|
|||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_1);
|
||||
x_33 = l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(x_1, x_32, x_8, x_9, x_10, x_11, x_12);
|
||||
x_33 = l_Lean_Meta_subst_x3f(x_1, x_32, x_8, x_9, x_10, x_11, x_12);
|
||||
x_34 = lean_ctor_get(x_33, 0);
|
||||
lean_inc(x_34);
|
||||
if (lean_obj_tag(x_34) == 0)
|
||||
|
|
@ -10521,7 +10345,7 @@ lean_inc(x_10);
|
|||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_1);
|
||||
x_49 = l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(x_1, x_48, x_8, x_9, x_10, x_11, x_12);
|
||||
x_49 = l_Lean_Meta_subst_x3f(x_1, x_48, x_8, x_9, x_10, x_11, x_12);
|
||||
x_50 = lean_ctor_get(x_49, 0);
|
||||
lean_inc(x_50);
|
||||
if (lean_obj_tag(x_50) == 0)
|
||||
|
|
@ -10855,7 +10679,7 @@ lean_inc(x_10);
|
|||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_1);
|
||||
x_34 = l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(x_1, x_33, x_8, x_9, x_10, x_11, x_12);
|
||||
x_34 = l_Lean_Meta_subst_x3f(x_1, x_33, x_8, x_9, x_10, x_11, x_12);
|
||||
x_35 = lean_ctor_get(x_34, 0);
|
||||
lean_inc(x_35);
|
||||
if (lean_obj_tag(x_35) == 0)
|
||||
|
|
@ -10927,7 +10751,7 @@ lean_inc(x_10);
|
|||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_1);
|
||||
x_50 = l_Lean_observing_x3f___at_Lean_Meta_subst_x3f___spec__1___at_Lean_Meta_subst_x3f___spec__2(x_1, x_49, x_8, x_9, x_10, x_11, x_12);
|
||||
x_50 = l_Lean_Meta_subst_x3f(x_1, x_49, x_8, x_9, x_10, x_11, x_12);
|
||||
x_51 = lean_ctor_get(x_50, 0);
|
||||
lean_inc(x_51);
|
||||
if (lean_obj_tag(x_51) == 0)
|
||||
|
|
|
|||
985
stage0/stdlib/Lean/Parser.c
generated
985
stage0/stdlib/Lean/Parser.c
generated
File diff suppressed because it is too large
Load diff
2211
stage0/stdlib/Lean/Parser/Extra.c
generated
2211
stage0/stdlib/Lean/Parser/Extra.c
generated
File diff suppressed because it is too large
Load diff
303
stage0/stdlib/Lean/PrettyPrinter/Formatter.c
generated
303
stage0/stdlib/Lean/PrettyPrinter/Formatter.c
generated
|
|
@ -24,7 +24,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_ite___rarg___boxed(lean_
|
|||
uint8_t l_Lean_Syntax_isAntiquotSuffixSplice(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_visitArgs(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
size_t lean_usize_add(size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_6589_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_6640_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkTailWs_formatter___rarg(lean_object*);
|
||||
uint8_t l_Lean_Syntax_isTokenAntiquot(lean_object*);
|
||||
lean_object* l_Lean_registerTraceClass(lean_object*, uint8_t, lean_object*);
|
||||
|
|
@ -122,6 +122,7 @@ lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkNoWsBefore_formatter___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_lookahead_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkTailWs_formatter___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute(lean_object*);
|
||||
|
|
@ -153,7 +154,6 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_pushToken___lambda__3___
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_fill(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__3;
|
||||
static lean_object* l_Lean_PrettyPrinter_mkFormatterAttribute___closed__9;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__7;
|
||||
lean_object* l_Lean_Parser_registerAliasCore___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_getStack___boxed(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_scientificLitNoAntiquot_formatter___closed__2;
|
||||
|
|
@ -271,7 +271,6 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkLhsPrec_formatter(l
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_checkKind___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_mkAntiquot_formatter_x27___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goUp___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__6;
|
||||
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Array_reverse___rarg(lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_identNoAntiquot_formatter___closed__2;
|
||||
|
|
@ -418,11 +417,12 @@ static lean_object* l_Lean_PrettyPrinter_Formatter_instMonadTraverserFormatterM_
|
|||
LEAN_EXPORT lean_object* l___private_Lean_PrettyPrinter_Formatter_0__Lean_PrettyPrinter_Formatter_SourceInfo_getExprPos_x3f___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_withoutInfo_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Std_instInhabitedFormat;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__1;
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_numLitNoAntiquot_formatter___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_concat___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_parserOfStack_formatter(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_nameLitNoAntiquot_formatter___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_7236_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_7287_(lean_object*);
|
||||
lean_object* lean_int_sub(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__6;
|
||||
static lean_object* l_Lean_PrettyPrinter_mkCombinatorFormatterAttribute___closed__4;
|
||||
|
|
@ -3742,155 +3742,196 @@ lean_dec(x_1);
|
|||
return x_8;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("choice", 6);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_orelse_formatter(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_8 = lean_st_ref_get(x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 1);
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_8 = l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__1___rarg(x_4, x_5, x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_st_ref_get(x_4, x_9);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
x_11 = l_Lean_Syntax_getKind(x_9);
|
||||
x_12 = l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__2;
|
||||
x_13 = lean_name_eq(x_11, x_12);
|
||||
lean_dec(x_11);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
x_14 = lean_st_ref_get(x_6, x_10);
|
||||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_16 = lean_st_ref_get(x_4, x_15);
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_13 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_12);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
x_19 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_18);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_13;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
lean_object* x_20;
|
||||
x_20 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_20);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
uint8_t x_15;
|
||||
lean_dec(x_11);
|
||||
uint8_t x_21;
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_15 = !lean_is_exclusive(x_13);
|
||||
if (x_15 == 0)
|
||||
x_21 = !lean_is_exclusive(x_19);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_16;
|
||||
x_16 = lean_ctor_get(x_13, 0);
|
||||
lean_dec(x_16);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_13);
|
||||
x_18 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_14);
|
||||
lean_ctor_set(x_18, 1, x_17);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_19;
|
||||
x_19 = !lean_is_exclusive(x_13);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24;
|
||||
x_20 = lean_ctor_get(x_13, 1);
|
||||
x_21 = lean_ctor_get(x_13, 0);
|
||||
lean_dec(x_21);
|
||||
x_22 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_22);
|
||||
x_23 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1;
|
||||
x_24 = lean_nat_dec_eq(x_23, x_22);
|
||||
lean_object* x_22;
|
||||
x_22 = lean_ctor_get(x_19, 0);
|
||||
lean_dec(x_22);
|
||||
if (x_24 == 0)
|
||||
{
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_13;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
lean_free_object(x_13);
|
||||
lean_dec(x_14);
|
||||
x_25 = lean_st_ref_get(x_6, x_20);
|
||||
x_26 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_25);
|
||||
x_27 = lean_st_ref_set(x_4, x_11, x_26);
|
||||
x_28 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_28);
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
x_23 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_19);
|
||||
x_24 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_20);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_25;
|
||||
x_25 = !lean_is_exclusive(x_19);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30;
|
||||
x_26 = lean_ctor_get(x_19, 1);
|
||||
x_27 = lean_ctor_get(x_19, 0);
|
||||
lean_dec(x_27);
|
||||
x_29 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_28);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
else
|
||||
x_28 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_28);
|
||||
x_29 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1;
|
||||
x_30 = lean_nat_dec_eq(x_29, x_28);
|
||||
lean_dec(x_28);
|
||||
if (x_30 == 0)
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33;
|
||||
x_30 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_13);
|
||||
x_31 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_31);
|
||||
x_32 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1;
|
||||
x_33 = lean_nat_dec_eq(x_32, x_31);
|
||||
lean_dec(x_31);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
lean_object* x_34;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_14);
|
||||
lean_ctor_set(x_34, 1, x_30);
|
||||
return x_34;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
||||
lean_dec(x_14);
|
||||
x_35 = lean_st_ref_get(x_6, x_30);
|
||||
x_36 = lean_ctor_get(x_35, 1);
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35;
|
||||
lean_free_object(x_19);
|
||||
lean_dec(x_20);
|
||||
x_31 = lean_st_ref_get(x_6, x_26);
|
||||
x_32 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_31);
|
||||
x_33 = lean_st_ref_set(x_4, x_17, x_32);
|
||||
x_34 = lean_ctor_get(x_33, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_33);
|
||||
x_35 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_34);
|
||||
return x_35;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39;
|
||||
x_36 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_35);
|
||||
x_37 = lean_st_ref_set(x_4, x_11, x_36);
|
||||
x_38 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_38);
|
||||
lean_dec(x_19);
|
||||
x_37 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_37);
|
||||
x_38 = l_Lean_PrettyPrinter_FormatterM_orElse___rarg___closed__1;
|
||||
x_39 = lean_nat_dec_eq(x_38, x_37);
|
||||
lean_dec(x_37);
|
||||
x_39 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_38);
|
||||
return x_39;
|
||||
if (x_39 == 0)
|
||||
{
|
||||
lean_object* x_40;
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_40 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_20);
|
||||
lean_ctor_set(x_40, 1, x_36);
|
||||
return x_40;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45;
|
||||
lean_dec(x_20);
|
||||
x_41 = lean_st_ref_get(x_6, x_36);
|
||||
x_42 = lean_ctor_get(x_41, 1);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_41);
|
||||
x_43 = lean_st_ref_set(x_4, x_17, x_42);
|
||||
x_44 = lean_ctor_get(x_43, 1);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_43);
|
||||
x_45 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_44);
|
||||
return x_45;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47;
|
||||
x_46 = lean_alloc_closure((void*)(l_Lean_PrettyPrinter_Formatter_orelse_formatter), 7, 2);
|
||||
lean_closure_set(x_46, 0, x_1);
|
||||
lean_closure_set(x_46, 1, x_2);
|
||||
x_47 = l_Lean_PrettyPrinter_Formatter_visitArgs(x_46, x_3, x_4, x_5, x_6, x_10);
|
||||
return x_47;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_mkAntiquot_formatter_x27___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
|
|
@ -4654,7 +4695,7 @@ static lean_object* _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("choice", 6);
|
||||
x_1 = lean_mk_string_from_bytes("rawStx", 6);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
|
|
@ -4672,29 +4713,11 @@ static lean_object* _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore__
|
|||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("rawStx", 6);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__4;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Formatter_visitArgs___spec__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__7() {
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
|
|
@ -4709,12 +4732,12 @@ lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12;
|
|||
x_9 = l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__1;
|
||||
lean_inc(x_1);
|
||||
x_10 = l_Lean_Syntax_getKind(x_1);
|
||||
x_11 = l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__3;
|
||||
x_11 = l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__2;
|
||||
x_12 = lean_name_eq(x_10, x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_object* x_13; uint8_t x_14;
|
||||
x_13 = l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__5;
|
||||
x_13 = l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__3;
|
||||
x_14 = lean_name_eq(x_2, x_13);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
|
|
@ -4845,8 +4868,8 @@ lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50;
|
|||
lean_dec(x_10);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_47 = l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__6;
|
||||
x_48 = l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__7;
|
||||
x_47 = l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__4;
|
||||
x_48 = l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__5;
|
||||
x_49 = lean_alloc_closure((void*)(l_ReaderT_bind___at_Lean_PrettyPrinter_Formatter_categoryFormatterCore___spec__2___rarg), 7, 2);
|
||||
lean_closure_set(x_49, 0, x_47);
|
||||
lean_closure_set(x_49, 1, x_48);
|
||||
|
|
@ -7571,7 +7594,7 @@ _start:
|
|||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_1 = l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__5;
|
||||
x_2 = l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__6;
|
||||
x_3 = lean_unsigned_to_nat(377u);
|
||||
x_3 = lean_unsigned_to_nat(385u);
|
||||
x_4 = lean_unsigned_to_nat(42u);
|
||||
x_5 = l_Lean_PrettyPrinter_Formatter_symbolNoAntiquot_formatter___closed__7;
|
||||
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
|
||||
|
|
@ -10179,7 +10202,7 @@ x_10 = l_Lean_PrettyPrinter_Formatter_ite___rarg(x_9, x_2, x_3, x_4, x_5, x_6, x
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_6589_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_6640_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; uint8_t x_4;
|
||||
|
|
@ -10869,7 +10892,7 @@ x_6 = l_Lean_PrettyPrinter_formatCategory(x_5, x_1, x_2, x_3, x_4);
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_7236_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_7287_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3; lean_object* x_4;
|
||||
|
|
@ -11061,6 +11084,10 @@ l_Lean_PrettyPrinter_Formatter_visitArgs___closed__1 = _init_l_Lean_PrettyPrinte
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_visitArgs___closed__1);
|
||||
l_Lean_PrettyPrinter_Formatter_concat___closed__1 = _init_l_Lean_PrettyPrinter_Formatter_concat___closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_concat___closed__1);
|
||||
l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__1 = _init_l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__1);
|
||||
l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__2 = _init_l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_orelse_formatter___closed__2);
|
||||
l_Lean_PrettyPrinter_Formatter_formatterForKindUnsafe___closed__1 = _init_l_Lean_PrettyPrinter_Formatter_formatterForKindUnsafe___closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_formatterForKindUnsafe___closed__1);
|
||||
l_Lean_PrettyPrinter_Formatter_formatterForKindUnsafe___closed__2 = _init_l_Lean_PrettyPrinter_Formatter_formatterForKindUnsafe___closed__2();
|
||||
|
|
@ -11085,10 +11112,6 @@ l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__4 = _
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__4);
|
||||
l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__5 = _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__5();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__5);
|
||||
l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__6 = _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__6();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__6);
|
||||
l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__7 = _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__7();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___lambda__4___closed__7);
|
||||
l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___closed__1 = _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___closed__1);
|
||||
l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___closed__2 = _init_l_Lean_PrettyPrinter_Formatter_categoryFormatterCore___closed__2();
|
||||
|
|
@ -11207,7 +11230,7 @@ l_Array_foldlMUnsafe_fold___at_Lean_PrettyPrinter_Formatter_interpolatedStr_form
|
|||
lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___spec__2___closed__2);
|
||||
l_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___boxed__const__1 = _init_l_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___boxed__const__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_interpolatedStr_formatter___boxed__const__1);
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_6589_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_Formatter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_6640_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_PrettyPrinter_Formatter_formatterAliasesRef = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Formatter_formatterAliasesRef);
|
||||
|
|
@ -11236,7 +11259,7 @@ l_Lean_PrettyPrinter_formatCommand___closed__1 = _init_l_Lean_PrettyPrinter_form
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_formatCommand___closed__1);
|
||||
l_Lean_PrettyPrinter_formatCommand___closed__2 = _init_l_Lean_PrettyPrinter_formatCommand___closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_formatCommand___closed__2);
|
||||
res = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_7236_(lean_io_mk_world());
|
||||
res = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Formatter___hyg_7287_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
536
stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c
generated
536
stage0/stdlib/Lean/PrettyPrinter/Parenthesizer.c
generated
|
|
@ -79,6 +79,7 @@ static lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__10;
|
|||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_parenthesize___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer___closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkColEq_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -90,7 +91,7 @@ lean_object* lean_environment_find(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goUp___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__4___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_get(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_6568_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_6637_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__9___boxed(lean_object**);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_setCur___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer___lambda__1___closed__6;
|
||||
|
|
@ -242,6 +243,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_pushNone_parenthesiz
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_scientificLitNoAntiquot_parenthesizer___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_incQuotDepth_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_categoryParserOfStack_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_parenthesizeCategory(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -362,7 +364,7 @@ LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_level_p
|
|||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_level_parenthesizer___lambda__1___closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkKind___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute___lambda__1(uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_5957_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_6026_(lean_object*);
|
||||
static lean_object* l_Option_format___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__6___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_isTracingEnabledFor___at_Lean_PrettyPrinter_parenthesize___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_setExpected_parenthesizer(lean_object*);
|
||||
|
|
@ -418,9 +420,8 @@ static lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_tactic_paren
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_parenthesizeTactic(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_instMonadQuotation___rarg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10___closed__10;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10___closed__20;
|
||||
LEAN_EXPORT lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer(lean_object*);
|
||||
|
|
@ -436,7 +437,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_goUp___at_Lean_PrettyPrint
|
|||
static lean_object* l_Lean_PrettyPrinter_mkCombinatorParenthesizerAttribute___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_symbolNoAntiquot_parenthesizer___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_addTrace___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__3___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getIdx___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___regBuiltin_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_mkParenthesizerAttribute___closed__3;
|
||||
|
|
@ -447,7 +448,6 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_mkAntiquot_parenthes
|
|||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_instMonadTraverserParenthesizerM___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_rawIdentNoAntiquot_parenthesizer(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkColGt_parenthesizer(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getIdx___at_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___spec__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_checkLinebreakBefore_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkCategoryParenthesizerAttribute___closed__2;
|
||||
|
|
@ -510,6 +510,7 @@ LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getIdx___at_Lean_PrettyPri
|
|||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_tactic_parenthesizer___closed__1;
|
||||
LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_PrettyPrinter_Parenthesizer_trailingNode_parenthesizer___spec__1(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Syntax_Traverser_left(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10___closed__17;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_categoryParserOfStack_parenthesizer___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_mkCombinatorParenthesizerAttribute___closed__2;
|
||||
|
|
@ -532,6 +533,7 @@ LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___
|
|||
static lean_object* l_Lean_PrettyPrinter_parenthesize___closed__2;
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_level_parenthesizer___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_addPrecCheck___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___lambda__10___closed__9;
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_notFollowedBy_parenthesizer___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -5523,155 +5525,291 @@ lean_dec(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10; uint8_t x_11;
|
||||
x_10 = lean_unsigned_to_nat(0u);
|
||||
x_11 = lean_nat_dec_eq(x_4, x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_12 = lean_unsigned_to_nat(1u);
|
||||
x_13 = lean_nat_sub(x_4, x_12);
|
||||
lean_dec(x_4);
|
||||
lean_inc(x_8);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_14 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(x_1, x_2, x_5, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_15;
|
||||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_4 = x_13;
|
||||
x_9 = x_15;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_17;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_17 = !lean_is_exclusive(x_14);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_14, 0);
|
||||
x_19 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_14);
|
||||
x_20 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_21 = lean_box(0);
|
||||
x_22 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_21);
|
||||
lean_ctor_set(x_22, 1, x_9);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("choice", 6);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_8 = lean_st_ref_get(x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 1);
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_8 = l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__1___rarg(x_4, x_5, x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_st_ref_get(x_4, x_9);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_10);
|
||||
lean_inc(x_9);
|
||||
x_11 = l_Lean_Syntax_getKind(x_9);
|
||||
x_12 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__2;
|
||||
x_13 = lean_name_eq(x_11, x_12);
|
||||
lean_dec(x_11);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19;
|
||||
lean_dec(x_9);
|
||||
x_14 = lean_st_ref_get(x_6, x_10);
|
||||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_16 = lean_st_ref_get(x_4, x_15);
|
||||
x_17 = lean_ctor_get(x_16, 0);
|
||||
lean_inc(x_17);
|
||||
x_18 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_16);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_13 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_12);
|
||||
if (lean_obj_tag(x_13) == 0)
|
||||
x_19 = lean_apply_5(x_1, x_3, x_4, x_5, x_6, x_18);
|
||||
if (lean_obj_tag(x_19) == 0)
|
||||
{
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_13;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = lean_ctor_get(x_13, 0);
|
||||
lean_inc(x_14);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
lean_object* x_20;
|
||||
x_20 = lean_ctor_get(x_19, 0);
|
||||
lean_inc(x_20);
|
||||
if (lean_obj_tag(x_20) == 0)
|
||||
{
|
||||
uint8_t x_15;
|
||||
lean_dec(x_11);
|
||||
uint8_t x_21;
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_15 = !lean_is_exclusive(x_13);
|
||||
if (x_15 == 0)
|
||||
x_21 = !lean_is_exclusive(x_19);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
lean_object* x_16;
|
||||
x_16 = lean_ctor_get(x_13, 0);
|
||||
lean_dec(x_16);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_13);
|
||||
x_18 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_14);
|
||||
lean_ctor_set(x_18, 1, x_17);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_19;
|
||||
x_19 = !lean_is_exclusive(x_13);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24;
|
||||
x_20 = lean_ctor_get(x_13, 1);
|
||||
x_21 = lean_ctor_get(x_13, 0);
|
||||
lean_dec(x_21);
|
||||
x_22 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_22);
|
||||
x_23 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1;
|
||||
x_24 = lean_nat_dec_eq(x_23, x_22);
|
||||
lean_object* x_22;
|
||||
x_22 = lean_ctor_get(x_19, 0);
|
||||
lean_dec(x_22);
|
||||
if (x_24 == 0)
|
||||
{
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
return x_13;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29;
|
||||
lean_free_object(x_13);
|
||||
lean_dec(x_14);
|
||||
x_25 = lean_st_ref_get(x_6, x_20);
|
||||
x_26 = lean_ctor_get(x_25, 1);
|
||||
lean_inc(x_26);
|
||||
lean_dec(x_25);
|
||||
x_27 = lean_st_ref_set(x_4, x_11, x_26);
|
||||
x_28 = lean_ctor_get(x_27, 1);
|
||||
lean_inc(x_28);
|
||||
lean_object* x_23; lean_object* x_24;
|
||||
x_23 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_19);
|
||||
x_24 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_20);
|
||||
lean_ctor_set(x_24, 1, x_23);
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_25;
|
||||
x_25 = !lean_is_exclusive(x_19);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30;
|
||||
x_26 = lean_ctor_get(x_19, 1);
|
||||
x_27 = lean_ctor_get(x_19, 0);
|
||||
lean_dec(x_27);
|
||||
x_29 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_28);
|
||||
return x_29;
|
||||
}
|
||||
}
|
||||
else
|
||||
x_28 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_28);
|
||||
x_29 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1;
|
||||
x_30 = lean_nat_dec_eq(x_29, x_28);
|
||||
lean_dec(x_28);
|
||||
if (x_30 == 0)
|
||||
{
|
||||
lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33;
|
||||
x_30 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_30);
|
||||
lean_dec(x_13);
|
||||
x_31 = lean_ctor_get(x_14, 0);
|
||||
lean_inc(x_31);
|
||||
x_32 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1;
|
||||
x_33 = lean_nat_dec_eq(x_32, x_31);
|
||||
lean_dec(x_31);
|
||||
if (x_33 == 0)
|
||||
{
|
||||
lean_object* x_34;
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_34 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_14);
|
||||
lean_ctor_set(x_34, 1, x_30);
|
||||
return x_34;
|
||||
return x_19;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39;
|
||||
lean_dec(x_14);
|
||||
x_35 = lean_st_ref_get(x_6, x_30);
|
||||
x_36 = lean_ctor_get(x_35, 1);
|
||||
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35;
|
||||
lean_free_object(x_19);
|
||||
lean_dec(x_20);
|
||||
x_31 = lean_st_ref_get(x_6, x_26);
|
||||
x_32 = lean_ctor_get(x_31, 1);
|
||||
lean_inc(x_32);
|
||||
lean_dec(x_31);
|
||||
x_33 = lean_st_ref_set(x_4, x_17, x_32);
|
||||
x_34 = lean_ctor_get(x_33, 1);
|
||||
lean_inc(x_34);
|
||||
lean_dec(x_33);
|
||||
x_35 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_34);
|
||||
return x_35;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39;
|
||||
x_36 = lean_ctor_get(x_19, 1);
|
||||
lean_inc(x_36);
|
||||
lean_dec(x_35);
|
||||
x_37 = lean_st_ref_set(x_4, x_11, x_36);
|
||||
x_38 = lean_ctor_get(x_37, 1);
|
||||
lean_inc(x_38);
|
||||
lean_dec(x_19);
|
||||
x_37 = lean_ctor_get(x_20, 0);
|
||||
lean_inc(x_37);
|
||||
x_38 = l_Lean_PrettyPrinter_ParenthesizerM_orElse___rarg___closed__1;
|
||||
x_39 = lean_nat_dec_eq(x_38, x_37);
|
||||
lean_dec(x_37);
|
||||
x_39 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_38);
|
||||
return x_39;
|
||||
if (x_39 == 0)
|
||||
{
|
||||
lean_object* x_40;
|
||||
lean_dec(x_17);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_40 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_40, 0, x_20);
|
||||
lean_ctor_set(x_40, 1, x_36);
|
||||
return x_40;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45;
|
||||
lean_dec(x_20);
|
||||
x_41 = lean_st_ref_get(x_6, x_36);
|
||||
x_42 = lean_ctor_get(x_41, 1);
|
||||
lean_inc(x_42);
|
||||
lean_dec(x_41);
|
||||
x_43 = lean_st_ref_set(x_4, x_17, x_42);
|
||||
x_44 = lean_ctor_get(x_43, 1);
|
||||
lean_inc(x_44);
|
||||
lean_dec(x_43);
|
||||
x_45 = lean_apply_5(x_2, x_3, x_4, x_5, x_6, x_44);
|
||||
return x_45;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49;
|
||||
x_46 = l_Lean_Syntax_getArgs(x_9);
|
||||
lean_dec(x_9);
|
||||
x_47 = lean_array_get_size(x_46);
|
||||
lean_dec(x_46);
|
||||
lean_inc(x_47);
|
||||
x_48 = lean_alloc_closure((void*)(l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___spec__1___boxed), 9, 4);
|
||||
lean_closure_set(x_48, 0, x_1);
|
||||
lean_closure_set(x_48, 1, x_2);
|
||||
lean_closure_set(x_48, 2, x_47);
|
||||
lean_closure_set(x_48, 3, x_47);
|
||||
x_49 = l_Lean_PrettyPrinter_Parenthesizer_visitArgs(x_48, x_3, x_4, x_5, x_6, x_10);
|
||||
return x_49;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_10;
|
||||
x_10 = l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_3);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_mkAntiquot_parenthesizer_x27___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
|
|
@ -5979,81 +6117,80 @@ return x_12;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; uint8_t x_9;
|
||||
x_8 = lean_unsigned_to_nat(0u);
|
||||
x_9 = lean_nat_dec_eq(x_2, x_8);
|
||||
if (x_9 == 0)
|
||||
lean_object* x_10; uint8_t x_11;
|
||||
x_10 = lean_unsigned_to_nat(0u);
|
||||
x_11 = lean_nat_dec_eq(x_4, x_10);
|
||||
if (x_11 == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16;
|
||||
x_10 = lean_unsigned_to_nat(1u);
|
||||
x_11 = lean_nat_sub(x_2, x_10);
|
||||
lean_dec(x_2);
|
||||
x_12 = l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__1___rarg(x_4, x_5, x_6, x_7);
|
||||
x_13 = lean_ctor_get(x_12, 0);
|
||||
lean_inc(x_13);
|
||||
x_14 = lean_ctor_get(x_12, 1);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_12);
|
||||
x_15 = l_Lean_Syntax_getKind(x_13);
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_12 = lean_unsigned_to_nat(1u);
|
||||
x_13 = lean_nat_sub(x_4, x_12);
|
||||
lean_dec(x_4);
|
||||
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_16 = l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe(x_15, x_3, x_4, x_5, x_6, x_14);
|
||||
if (lean_obj_tag(x_16) == 0)
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_14 = l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore(x_1, x_2, x_5, x_6, x_7, x_8, x_9);
|
||||
if (lean_obj_tag(x_14) == 0)
|
||||
{
|
||||
lean_object* x_17;
|
||||
x_17 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_16);
|
||||
x_2 = x_11;
|
||||
x_7 = x_17;
|
||||
lean_object* x_15;
|
||||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_4 = x_13;
|
||||
x_9 = x_15;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_19;
|
||||
lean_dec(x_11);
|
||||
uint8_t x_17;
|
||||
lean_dec(x_13);
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_19 = !lean_is_exclusive(x_16);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
return x_16;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_20 = lean_ctor_get(x_16, 0);
|
||||
x_21 = lean_ctor_get(x_16, 1);
|
||||
lean_inc(x_21);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_16);
|
||||
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_23; lean_object* x_24;
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_23 = lean_box(0);
|
||||
x_24 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_24, 0, x_23);
|
||||
lean_ctor_set(x_24, 1, x_7);
|
||||
return x_24;
|
||||
lean_dec(x_1);
|
||||
x_17 = !lean_is_exclusive(x_14);
|
||||
if (x_17 == 0)
|
||||
{
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
x_18 = lean_ctor_get(x_14, 0);
|
||||
x_19 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_19);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_14);
|
||||
x_20 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_18);
|
||||
lean_ctor_set(x_20, 1, x_19);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_21; lean_object* x_22;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_21 = lean_box(0);
|
||||
x_22 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_21);
|
||||
lean_ctor_set(x_22, 1, x_9);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -6148,30 +6285,11 @@ return x_33;
|
|||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("choice", 6);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
x_8 = l_Lean_Syntax_MonadTraverser_getCur___at_Lean_PrettyPrinter_Parenthesizer_visitArgs___spec__1___rarg(x_4, x_5, x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
|
|
@ -6180,12 +6298,13 @@ lean_inc(x_10);
|
|||
lean_dec(x_8);
|
||||
lean_inc(x_9);
|
||||
x_11 = l_Lean_Syntax_getKind(x_9);
|
||||
x_12 = l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__2;
|
||||
x_12 = l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__2;
|
||||
x_13 = lean_name_eq(x_11, x_12);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20;
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_2);
|
||||
x_14 = 1;
|
||||
lean_inc(x_1);
|
||||
x_15 = l_Lean_Name_toString(x_1, x_14);
|
||||
|
|
@ -6257,9 +6376,12 @@ lean_dec(x_9);
|
|||
x_29 = lean_array_get_size(x_28);
|
||||
lean_dec(x_28);
|
||||
lean_inc(x_29);
|
||||
x_30 = lean_alloc_closure((void*)(l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1___boxed), 7, 2);
|
||||
lean_closure_set(x_30, 0, x_29);
|
||||
lean_closure_set(x_30, 1, x_29);
|
||||
lean_inc(x_1);
|
||||
x_30 = lean_alloc_closure((void*)(l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1___boxed), 9, 4);
|
||||
lean_closure_set(x_30, 0, x_1);
|
||||
lean_closure_set(x_30, 1, x_2);
|
||||
lean_closure_set(x_30, 2, x_29);
|
||||
lean_closure_set(x_30, 3, x_29);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
|
|
@ -6311,13 +6433,13 @@ return x_38;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
LEAN_EXPORT lean_object* l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
lean_object* x_10;
|
||||
x_10 = l_Nat_forM_loop___at_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___spec__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
|
||||
lean_dec(x_3);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
|
|
@ -9601,7 +9723,7 @@ x_10 = l_Lean_PrettyPrinter_Parenthesizer_ite___rarg(x_9, x_2, x_3, x_4, x_5, x_
|
|||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_5957_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_6026_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; uint8_t x_4;
|
||||
|
|
@ -10221,7 +10343,7 @@ x_6 = l_Lean_PrettyPrinter_parenthesizeCategory(x_5, x_1, x_2, x_3, x_4);
|
|||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_6568_(lean_object* x_1) {
|
||||
LEAN_EXPORT lean_object* l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_6637_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3; lean_object* x_4;
|
||||
|
|
@ -10527,6 +10649,10 @@ l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__4 = _init_l_Lean_
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__4);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__5 = _init_l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__5();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_maybeParenthesize___closed__5);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__1 = _init_l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__1);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__2 = _init_l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_orelse_parenthesizer___closed__2);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe___closed__1 = _init_l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe___closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe___closed__1);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe___closed__2 = _init_l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe___closed__2();
|
||||
|
|
@ -10535,10 +10661,6 @@ l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe___closed__3 = _ini
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe___closed__3);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe___closed__4 = _init_l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe___closed__4();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_parenthesizerForKindUnsafe___closed__4);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__1 = _init_l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__1);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__2 = _init_l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_parenthesizeCategoryCore___closed__2);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_categoryParser_parenthesizer___closed__1 = _init_l_Lean_PrettyPrinter_Parenthesizer_categoryParser_parenthesizer___closed__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_categoryParser_parenthesizer___closed__1);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer___lambda__1___closed__1 = _init_l_Lean_PrettyPrinter_Parenthesizer_term_parenthesizer___lambda__1___closed__1();
|
||||
|
|
@ -10649,7 +10771,7 @@ l_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___closed__1 = _
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___closed__1);
|
||||
l_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___boxed__const__1 = _init_l_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___boxed__const__1();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_interpolatedStr_parenthesizer___boxed__const__1);
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_5957_(lean_io_mk_world());
|
||||
if (builtin) {res = l_Lean_PrettyPrinter_Parenthesizer_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_6026_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lean_PrettyPrinter_Parenthesizer_parenthesizerAliasesRef = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_Parenthesizer_parenthesizerAliasesRef);
|
||||
|
|
@ -10668,7 +10790,7 @@ l_Lean_PrettyPrinter_parenthesizeCommand___closed__1 = _init_l_Lean_PrettyPrinte
|
|||
lean_mark_persistent(l_Lean_PrettyPrinter_parenthesizeCommand___closed__1);
|
||||
l_Lean_PrettyPrinter_parenthesizeCommand___closed__2 = _init_l_Lean_PrettyPrinter_parenthesizeCommand___closed__2();
|
||||
lean_mark_persistent(l_Lean_PrettyPrinter_parenthesizeCommand___closed__2);
|
||||
res = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_6568_(lean_io_mk_world());
|
||||
res = l_Lean_PrettyPrinter_initFn____x40_Lean_PrettyPrinter_Parenthesizer___hyg_6637_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
335
stage0/stdlib/Lean/Server/Completion.c
generated
335
stage0/stdlib/Lean/Server/Completion.c
generated
|
|
@ -19,7 +19,6 @@ lean_object* l_String_csize(uint32_t);
|
|||
size_t lean_usize_add(size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_consumeImplicitPrefix(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__14(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__1___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_erase_macro_scopes(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__13___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_stringToMessageData(lean_object*);
|
||||
|
|
@ -283,6 +282,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentArray_forInAux___at___private_Lean_Ser
|
|||
LEAN_EXPORT lean_object* l_Lean_Server_Completion_State_itemsMain___default;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_dotCompletion(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_tacticCompletion(lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_LocalDecl_type(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_addCompletionItem___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isBlackListed___closed__1;
|
||||
|
|
@ -373,7 +373,6 @@ lean_object* l_Lean_KVMap_findCore(lean_object*, lean_object*);
|
|||
lean_object* l_Lean_mkTagDeclarationExtension(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_allM___at___private_Lean_Server_Completion_0__Lean_Server_Completion_getCompletionKindForDecl___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Meta_isExprDefEq(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Server_Completion_0__Lean_Server_Completion_fieldIdCompletion___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_fieldIdCompletion___closed__4;
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_idCompletionCore_searchAlias(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -960,94 +959,6 @@ return x_24;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__1___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_8 = l_Lean_Meta_saveState___rarg(x_4, x_5, x_6, x_7);
|
||||
x_9 = lean_ctor_get(x_8, 0);
|
||||
lean_inc(x_9);
|
||||
x_10 = lean_ctor_get(x_8, 1);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_8);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_11 = l_Lean_Meta_isExprDefEq(x_2, x_1, x_3, x_4, x_5, x_6, x_10);
|
||||
if (lean_obj_tag(x_11) == 0)
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15;
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
x_13 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_13);
|
||||
lean_dec(x_11);
|
||||
x_14 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_13);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_15 = !lean_is_exclusive(x_14);
|
||||
if (x_15 == 0)
|
||||
{
|
||||
lean_object* x_16;
|
||||
x_16 = lean_ctor_get(x_14, 0);
|
||||
lean_dec(x_16);
|
||||
lean_ctor_set(x_14, 0, x_12);
|
||||
return x_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17; lean_object* x_18;
|
||||
x_17 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_14);
|
||||
x_18 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_12);
|
||||
lean_ctor_set(x_18, 1, x_17);
|
||||
return x_18;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22;
|
||||
x_19 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_19);
|
||||
x_20 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_20);
|
||||
lean_dec(x_11);
|
||||
x_21 = l_Lean_Meta_SavedState_restore(x_9, x_3, x_4, x_5, x_6, x_20);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_9);
|
||||
x_22 = !lean_is_exclusive(x_21);
|
||||
if (x_22 == 0)
|
||||
{
|
||||
lean_object* x_23;
|
||||
x_23 = lean_ctor_get(x_21, 0);
|
||||
lean_dec(x_23);
|
||||
lean_ctor_set_tag(x_21, 1);
|
||||
lean_ctor_set(x_21, 0, x_19);
|
||||
return x_21;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_24; lean_object* x_25;
|
||||
x_24 = lean_ctor_get(x_21, 1);
|
||||
lean_inc(x_24);
|
||||
lean_dec(x_21);
|
||||
x_25 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_25, 0, x_19);
|
||||
lean_ctor_set(x_25, 1, x_24);
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -1070,27 +981,27 @@ lean_inc(x_14);
|
|||
x_15 = lean_ctor_get(x_14, 1);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_14);
|
||||
x_16 = lean_ctor_get(x_5, 0);
|
||||
x_16 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_16);
|
||||
x_17 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_13);
|
||||
x_18 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_18);
|
||||
x_17 = lean_ctor_get(x_15, 1);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_15);
|
||||
x_18 = lean_alloc_closure((void*)(l_Lean_Meta_isDefEq), 7, 2);
|
||||
lean_closure_set(x_18, 0, x_17);
|
||||
lean_closure_set(x_18, 1, x_2);
|
||||
x_19 = !lean_is_exclusive(x_5);
|
||||
if (x_19 == 0)
|
||||
{
|
||||
lean_object* x_20; uint8_t x_21;
|
||||
x_20 = lean_ctor_get(x_5, 0);
|
||||
lean_dec(x_20);
|
||||
x_21 = !lean_is_exclusive(x_16);
|
||||
x_21 = !lean_is_exclusive(x_20);
|
||||
if (x_21 == 0)
|
||||
{
|
||||
uint8_t x_22; lean_object* x_23;
|
||||
x_22 = 2;
|
||||
lean_ctor_set_uint8(x_16, 5, x_22);
|
||||
x_23 = l_Lean_withoutModifyingState___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__1___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__2(x_2, x_18, x_5, x_6, x_7, x_8, x_17);
|
||||
lean_ctor_set_uint8(x_20, 5, x_22);
|
||||
x_23 = l_Lean_withoutModifyingState___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__1(x_18, x_5, x_6, x_7, x_8, x_16);
|
||||
if (lean_obj_tag(x_23) == 0)
|
||||
{
|
||||
uint8_t x_24;
|
||||
|
|
@ -1150,20 +1061,20 @@ return x_36;
|
|||
else
|
||||
{
|
||||
uint8_t x_37; uint8_t x_38; uint8_t x_39; uint8_t x_40; uint8_t x_41; uint8_t x_42; uint8_t x_43; uint8_t x_44; uint8_t x_45; uint8_t x_46; uint8_t x_47; uint8_t x_48; uint8_t x_49; uint8_t x_50; lean_object* x_51; lean_object* x_52;
|
||||
x_37 = lean_ctor_get_uint8(x_16, 0);
|
||||
x_38 = lean_ctor_get_uint8(x_16, 1);
|
||||
x_39 = lean_ctor_get_uint8(x_16, 2);
|
||||
x_40 = lean_ctor_get_uint8(x_16, 3);
|
||||
x_41 = lean_ctor_get_uint8(x_16, 4);
|
||||
x_42 = lean_ctor_get_uint8(x_16, 6);
|
||||
x_43 = lean_ctor_get_uint8(x_16, 7);
|
||||
x_44 = lean_ctor_get_uint8(x_16, 8);
|
||||
x_45 = lean_ctor_get_uint8(x_16, 9);
|
||||
x_46 = lean_ctor_get_uint8(x_16, 10);
|
||||
x_47 = lean_ctor_get_uint8(x_16, 11);
|
||||
x_48 = lean_ctor_get_uint8(x_16, 12);
|
||||
x_49 = lean_ctor_get_uint8(x_16, 13);
|
||||
lean_dec(x_16);
|
||||
x_37 = lean_ctor_get_uint8(x_20, 0);
|
||||
x_38 = lean_ctor_get_uint8(x_20, 1);
|
||||
x_39 = lean_ctor_get_uint8(x_20, 2);
|
||||
x_40 = lean_ctor_get_uint8(x_20, 3);
|
||||
x_41 = lean_ctor_get_uint8(x_20, 4);
|
||||
x_42 = lean_ctor_get_uint8(x_20, 6);
|
||||
x_43 = lean_ctor_get_uint8(x_20, 7);
|
||||
x_44 = lean_ctor_get_uint8(x_20, 8);
|
||||
x_45 = lean_ctor_get_uint8(x_20, 9);
|
||||
x_46 = lean_ctor_get_uint8(x_20, 10);
|
||||
x_47 = lean_ctor_get_uint8(x_20, 11);
|
||||
x_48 = lean_ctor_get_uint8(x_20, 12);
|
||||
x_49 = lean_ctor_get_uint8(x_20, 13);
|
||||
lean_dec(x_20);
|
||||
x_50 = 2;
|
||||
x_51 = lean_alloc_ctor(0, 0, 14);
|
||||
lean_ctor_set_uint8(x_51, 0, x_37);
|
||||
|
|
@ -1181,7 +1092,7 @@ lean_ctor_set_uint8(x_51, 11, x_47);
|
|||
lean_ctor_set_uint8(x_51, 12, x_48);
|
||||
lean_ctor_set_uint8(x_51, 13, x_49);
|
||||
lean_ctor_set(x_5, 0, x_51);
|
||||
x_52 = l_Lean_withoutModifyingState___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__1___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__2(x_2, x_18, x_5, x_6, x_7, x_8, x_17);
|
||||
x_52 = l_Lean_withoutModifyingState___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__1(x_18, x_5, x_6, x_7, x_8, x_16);
|
||||
if (lean_obj_tag(x_52) == 0)
|
||||
{
|
||||
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
|
|
@ -1238,144 +1149,146 @@ return x_62;
|
|||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; lean_object* x_81; uint8_t x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85;
|
||||
x_63 = lean_ctor_get(x_5, 1);
|
||||
x_64 = lean_ctor_get(x_5, 2);
|
||||
x_65 = lean_ctor_get(x_5, 3);
|
||||
x_66 = lean_ctor_get(x_5, 4);
|
||||
x_67 = lean_ctor_get(x_5, 5);
|
||||
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; uint8_t x_70; uint8_t x_71; uint8_t x_72; uint8_t x_73; uint8_t x_74; uint8_t x_75; uint8_t x_76; uint8_t x_77; uint8_t x_78; uint8_t x_79; uint8_t x_80; uint8_t x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86;
|
||||
x_63 = lean_ctor_get(x_5, 0);
|
||||
x_64 = lean_ctor_get(x_5, 1);
|
||||
x_65 = lean_ctor_get(x_5, 2);
|
||||
x_66 = lean_ctor_get(x_5, 3);
|
||||
x_67 = lean_ctor_get(x_5, 4);
|
||||
x_68 = lean_ctor_get(x_5, 5);
|
||||
lean_inc(x_68);
|
||||
lean_inc(x_67);
|
||||
lean_inc(x_66);
|
||||
lean_inc(x_65);
|
||||
lean_inc(x_64);
|
||||
lean_inc(x_63);
|
||||
lean_dec(x_5);
|
||||
x_68 = lean_ctor_get_uint8(x_16, 0);
|
||||
x_69 = lean_ctor_get_uint8(x_16, 1);
|
||||
x_70 = lean_ctor_get_uint8(x_16, 2);
|
||||
x_71 = lean_ctor_get_uint8(x_16, 3);
|
||||
x_72 = lean_ctor_get_uint8(x_16, 4);
|
||||
x_73 = lean_ctor_get_uint8(x_16, 6);
|
||||
x_74 = lean_ctor_get_uint8(x_16, 7);
|
||||
x_75 = lean_ctor_get_uint8(x_16, 8);
|
||||
x_76 = lean_ctor_get_uint8(x_16, 9);
|
||||
x_77 = lean_ctor_get_uint8(x_16, 10);
|
||||
x_78 = lean_ctor_get_uint8(x_16, 11);
|
||||
x_79 = lean_ctor_get_uint8(x_16, 12);
|
||||
x_80 = lean_ctor_get_uint8(x_16, 13);
|
||||
if (lean_is_exclusive(x_16)) {
|
||||
x_81 = x_16;
|
||||
x_69 = lean_ctor_get_uint8(x_63, 0);
|
||||
x_70 = lean_ctor_get_uint8(x_63, 1);
|
||||
x_71 = lean_ctor_get_uint8(x_63, 2);
|
||||
x_72 = lean_ctor_get_uint8(x_63, 3);
|
||||
x_73 = lean_ctor_get_uint8(x_63, 4);
|
||||
x_74 = lean_ctor_get_uint8(x_63, 6);
|
||||
x_75 = lean_ctor_get_uint8(x_63, 7);
|
||||
x_76 = lean_ctor_get_uint8(x_63, 8);
|
||||
x_77 = lean_ctor_get_uint8(x_63, 9);
|
||||
x_78 = lean_ctor_get_uint8(x_63, 10);
|
||||
x_79 = lean_ctor_get_uint8(x_63, 11);
|
||||
x_80 = lean_ctor_get_uint8(x_63, 12);
|
||||
x_81 = lean_ctor_get_uint8(x_63, 13);
|
||||
if (lean_is_exclusive(x_63)) {
|
||||
x_82 = x_63;
|
||||
} else {
|
||||
lean_dec_ref(x_16);
|
||||
x_81 = lean_box(0);
|
||||
lean_dec_ref(x_63);
|
||||
x_82 = lean_box(0);
|
||||
}
|
||||
x_82 = 2;
|
||||
if (lean_is_scalar(x_81)) {
|
||||
x_83 = lean_alloc_ctor(0, 0, 14);
|
||||
x_83 = 2;
|
||||
if (lean_is_scalar(x_82)) {
|
||||
x_84 = lean_alloc_ctor(0, 0, 14);
|
||||
} else {
|
||||
x_83 = x_81;
|
||||
x_84 = x_82;
|
||||
}
|
||||
lean_ctor_set_uint8(x_83, 0, x_68);
|
||||
lean_ctor_set_uint8(x_83, 1, x_69);
|
||||
lean_ctor_set_uint8(x_83, 2, x_70);
|
||||
lean_ctor_set_uint8(x_83, 3, x_71);
|
||||
lean_ctor_set_uint8(x_83, 4, x_72);
|
||||
lean_ctor_set_uint8(x_83, 5, x_82);
|
||||
lean_ctor_set_uint8(x_83, 6, x_73);
|
||||
lean_ctor_set_uint8(x_83, 7, x_74);
|
||||
lean_ctor_set_uint8(x_83, 8, x_75);
|
||||
lean_ctor_set_uint8(x_83, 9, x_76);
|
||||
lean_ctor_set_uint8(x_83, 10, x_77);
|
||||
lean_ctor_set_uint8(x_83, 11, x_78);
|
||||
lean_ctor_set_uint8(x_83, 12, x_79);
|
||||
lean_ctor_set_uint8(x_83, 13, x_80);
|
||||
x_84 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_84, 0, x_83);
|
||||
lean_ctor_set(x_84, 1, x_63);
|
||||
lean_ctor_set(x_84, 2, x_64);
|
||||
lean_ctor_set(x_84, 3, x_65);
|
||||
lean_ctor_set(x_84, 4, x_66);
|
||||
lean_ctor_set(x_84, 5, x_67);
|
||||
x_85 = l_Lean_withoutModifyingState___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__1___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__2(x_2, x_18, x_84, x_6, x_7, x_8, x_17);
|
||||
if (lean_obj_tag(x_85) == 0)
|
||||
lean_ctor_set_uint8(x_84, 0, x_69);
|
||||
lean_ctor_set_uint8(x_84, 1, x_70);
|
||||
lean_ctor_set_uint8(x_84, 2, x_71);
|
||||
lean_ctor_set_uint8(x_84, 3, x_72);
|
||||
lean_ctor_set_uint8(x_84, 4, x_73);
|
||||
lean_ctor_set_uint8(x_84, 5, x_83);
|
||||
lean_ctor_set_uint8(x_84, 6, x_74);
|
||||
lean_ctor_set_uint8(x_84, 7, x_75);
|
||||
lean_ctor_set_uint8(x_84, 8, x_76);
|
||||
lean_ctor_set_uint8(x_84, 9, x_77);
|
||||
lean_ctor_set_uint8(x_84, 10, x_78);
|
||||
lean_ctor_set_uint8(x_84, 11, x_79);
|
||||
lean_ctor_set_uint8(x_84, 12, x_80);
|
||||
lean_ctor_set_uint8(x_84, 13, x_81);
|
||||
x_85 = lean_alloc_ctor(0, 6, 0);
|
||||
lean_ctor_set(x_85, 0, x_84);
|
||||
lean_ctor_set(x_85, 1, x_64);
|
||||
lean_ctor_set(x_85, 2, x_65);
|
||||
lean_ctor_set(x_85, 3, x_66);
|
||||
lean_ctor_set(x_85, 4, x_67);
|
||||
lean_ctor_set(x_85, 5, x_68);
|
||||
x_86 = l_Lean_withoutModifyingState___at___private_Lean_Server_Completion_0__Lean_Server_Completion_isTypeApplicable___spec__1(x_18, x_85, x_6, x_7, x_8, x_16);
|
||||
if (lean_obj_tag(x_86) == 0)
|
||||
{
|
||||
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91;
|
||||
x_86 = lean_ctor_get(x_85, 0);
|
||||
lean_inc(x_86);
|
||||
x_87 = lean_ctor_get(x_85, 1);
|
||||
lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92;
|
||||
x_87 = lean_ctor_get(x_86, 0);
|
||||
lean_inc(x_87);
|
||||
if (lean_is_exclusive(x_85)) {
|
||||
lean_ctor_release(x_85, 0);
|
||||
lean_ctor_release(x_85, 1);
|
||||
x_88 = x_85;
|
||||
x_88 = lean_ctor_get(x_86, 1);
|
||||
lean_inc(x_88);
|
||||
if (lean_is_exclusive(x_86)) {
|
||||
lean_ctor_release(x_86, 0);
|
||||
lean_ctor_release(x_86, 1);
|
||||
x_89 = x_86;
|
||||
} else {
|
||||
lean_dec_ref(x_85);
|
||||
x_88 = lean_box(0);
|
||||
lean_dec_ref(x_86);
|
||||
x_89 = lean_box(0);
|
||||
}
|
||||
x_89 = lean_box(0);
|
||||
x_90 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_90, 0, x_86);
|
||||
lean_ctor_set(x_90, 1, x_89);
|
||||
if (lean_is_scalar(x_88)) {
|
||||
x_91 = lean_alloc_ctor(0, 2, 0);
|
||||
x_90 = lean_box(0);
|
||||
x_91 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_91, 0, x_87);
|
||||
lean_ctor_set(x_91, 1, x_90);
|
||||
if (lean_is_scalar(x_89)) {
|
||||
x_92 = lean_alloc_ctor(0, 2, 0);
|
||||
} else {
|
||||
x_91 = x_88;
|
||||
x_92 = x_89;
|
||||
}
|
||||
lean_ctor_set(x_91, 0, x_90);
|
||||
lean_ctor_set(x_91, 1, x_87);
|
||||
return x_91;
|
||||
lean_ctor_set(x_92, 0, x_91);
|
||||
lean_ctor_set(x_92, 1, x_88);
|
||||
return x_92;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95;
|
||||
x_92 = lean_ctor_get(x_85, 0);
|
||||
lean_inc(x_92);
|
||||
x_93 = lean_ctor_get(x_85, 1);
|
||||
lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96;
|
||||
x_93 = lean_ctor_get(x_86, 0);
|
||||
lean_inc(x_93);
|
||||
if (lean_is_exclusive(x_85)) {
|
||||
lean_ctor_release(x_85, 0);
|
||||
lean_ctor_release(x_85, 1);
|
||||
x_94 = x_85;
|
||||
x_94 = lean_ctor_get(x_86, 1);
|
||||
lean_inc(x_94);
|
||||
if (lean_is_exclusive(x_86)) {
|
||||
lean_ctor_release(x_86, 0);
|
||||
lean_ctor_release(x_86, 1);
|
||||
x_95 = x_86;
|
||||
} else {
|
||||
lean_dec_ref(x_85);
|
||||
x_94 = lean_box(0);
|
||||
lean_dec_ref(x_86);
|
||||
x_95 = lean_box(0);
|
||||
}
|
||||
if (lean_is_scalar(x_94)) {
|
||||
x_95 = lean_alloc_ctor(1, 2, 0);
|
||||
if (lean_is_scalar(x_95)) {
|
||||
x_96 = lean_alloc_ctor(1, 2, 0);
|
||||
} else {
|
||||
x_95 = x_94;
|
||||
x_96 = x_95;
|
||||
}
|
||||
lean_ctor_set(x_95, 0, x_92);
|
||||
lean_ctor_set(x_95, 1, x_93);
|
||||
return x_95;
|
||||
lean_ctor_set(x_96, 0, x_93);
|
||||
lean_ctor_set(x_96, 1, x_94);
|
||||
return x_96;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_96;
|
||||
uint8_t x_97;
|
||||
lean_dec(x_8);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_2);
|
||||
x_96 = !lean_is_exclusive(x_13);
|
||||
if (x_96 == 0)
|
||||
x_97 = !lean_is_exclusive(x_13);
|
||||
if (x_97 == 0)
|
||||
{
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_97; lean_object* x_98; lean_object* x_99;
|
||||
x_97 = lean_ctor_get(x_13, 0);
|
||||
x_98 = lean_ctor_get(x_13, 1);
|
||||
lean_object* x_98; lean_object* x_99; lean_object* x_100;
|
||||
x_98 = lean_ctor_get(x_13, 0);
|
||||
x_99 = lean_ctor_get(x_13, 1);
|
||||
lean_inc(x_99);
|
||||
lean_inc(x_98);
|
||||
lean_inc(x_97);
|
||||
lean_dec(x_13);
|
||||
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;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
320
stage0/stdlib/Lean/Util/MonadBacktrack.c
generated
320
stage0/stdlib/Lean/Util/MonadBacktrack.c
generated
|
|
@ -15,46 +15,62 @@ extern "C" {
|
|||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lean_commitIfNoEx___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_withoutModifyingState___rarg___lambda__3___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__6(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitIfNoEx___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__3(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_instMonadBacktrackExceptT___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___rarg___lambda__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_instMonadBacktrackExceptT___rarg___lambda__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_instMonadBacktrackExceptT(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_instMonadBacktrackExceptT___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSomeNoEx_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_observing_x3f___rarg___lambda__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_commitIfNoEx(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__2___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___rarg___lambda__2(lean_object*);
|
||||
static lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_instMonadBacktrackExceptT___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___rarg___lambda__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_withoutModifyingState___rarg___lambda__2___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__4(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSomeNoEx_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__3(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__3(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* _init_l_Lean_commitWhenSome_x3f___rarg___lambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = lean_box(0);
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -65,7 +81,7 @@ lean_dec(x_1);
|
|||
x_4 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_4);
|
||||
lean_dec(x_3);
|
||||
x_5 = lean_box(0);
|
||||
x_5 = l_Lean_commitWhenSome_x3f___rarg___lambda__1___closed__1;
|
||||
x_6 = lean_apply_2(x_4, lean_box(0), x_5);
|
||||
return x_6;
|
||||
}
|
||||
|
|
@ -94,58 +110,72 @@ lean_dec(x_1);
|
|||
x_10 = !lean_is_exclusive(x_5);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_11 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_3);
|
||||
x_12 = lean_ctor_get(x_11, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_11);
|
||||
x_13 = lean_apply_2(x_12, lean_box(0), x_5);
|
||||
return x_13;
|
||||
x_13 = lean_box(0);
|
||||
x_14 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_5);
|
||||
lean_ctor_set(x_14, 1, x_13);
|
||||
x_15 = lean_apply_2(x_12, lean_box(0), x_14);
|
||||
return x_15;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18;
|
||||
x_14 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_5);
|
||||
x_15 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_15);
|
||||
lean_dec(x_3);
|
||||
x_16 = lean_ctor_get(x_15, 1);
|
||||
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_5, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_15);
|
||||
x_17 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_17, 0, x_14);
|
||||
x_18 = lean_apply_2(x_16, lean_box(0), x_17);
|
||||
return x_18;
|
||||
lean_dec(x_5);
|
||||
x_17 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_3);
|
||||
x_18 = lean_ctor_get(x_17, 1);
|
||||
lean_inc(x_18);
|
||||
lean_dec(x_17);
|
||||
x_19 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_19, 0, x_16);
|
||||
x_20 = lean_box(0);
|
||||
x_21 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_21, 0, x_19);
|
||||
lean_ctor_set(x_21, 1, x_20);
|
||||
x_22 = lean_apply_2(x_18, lean_box(0), x_21);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__3(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5;
|
||||
x_4 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_4);
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_5 = lean_apply_2(x_4, lean_box(0), x_2);
|
||||
return x_5;
|
||||
x_4 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_4);
|
||||
lean_dec(x_3);
|
||||
x_5 = lean_box(0);
|
||||
x_6 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_6, 0, x_2);
|
||||
lean_ctor_set(x_6, 1, x_5);
|
||||
x_7 = lean_apply_2(x_4, lean_box(0), x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_6 = lean_ctor_get(x_1, 1);
|
||||
x_6 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_1);
|
||||
x_7 = lean_apply_1(x_6, x_2);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__3___boxed), 3, 2);
|
||||
x_7 = lean_apply_2(x_6, lean_box(0), x_2);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__3), 2, 1);
|
||||
lean_closure_set(x_8, 0, x_3);
|
||||
lean_closure_set(x_8, 1, x_5);
|
||||
x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
|
|
@ -153,10 +183,46 @@ return x_9;
|
|||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_7 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_7);
|
||||
lean_dec(x_1);
|
||||
x_8 = lean_apply_1(x_7, x_2);
|
||||
lean_inc(x_5);
|
||||
x_9 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__4___boxed), 5, 4);
|
||||
lean_closure_set(x_9, 0, x_3);
|
||||
lean_closure_set(x_9, 1, x_6);
|
||||
lean_closure_set(x_9, 2, x_4);
|
||||
lean_closure_set(x_9, 3, x_5);
|
||||
x_10 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_8, x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__6(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_3 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_2);
|
||||
x_4 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_4);
|
||||
lean_dec(x_1);
|
||||
x_5 = lean_ctor_get(x_4, 1);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_4);
|
||||
x_6 = lean_apply_2(x_5, lean_box(0), x_3);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_7 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_7);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_2);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__2), 5, 4);
|
||||
|
|
@ -166,13 +232,19 @@ lean_closure_set(x_8, 2, x_3);
|
|||
lean_closure_set(x_8, 3, x_4);
|
||||
lean_inc(x_4);
|
||||
x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_8);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__4), 5, 4);
|
||||
lean_inc(x_4);
|
||||
lean_inc(x_3);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__5), 6, 5);
|
||||
lean_closure_set(x_10, 0, x_2);
|
||||
lean_closure_set(x_10, 1, x_6);
|
||||
lean_closure_set(x_10, 2, x_1);
|
||||
lean_closure_set(x_10, 3, x_4);
|
||||
lean_closure_set(x_10, 3, x_3);
|
||||
lean_closure_set(x_10, 4, x_4);
|
||||
x_11 = lean_apply_3(x_7, lean_box(0), x_9, x_10);
|
||||
return x_11;
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__6), 2, 1);
|
||||
lean_closure_set(x_12, 0, x_3);
|
||||
x_13 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_11, x_12);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
|
|
@ -184,7 +256,7 @@ lean_inc(x_5);
|
|||
x_6 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__5), 6, 5);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__7), 6, 5);
|
||||
lean_closure_set(x_7, 0, x_3);
|
||||
lean_closure_set(x_7, 1, x_2);
|
||||
lean_closure_set(x_7, 2, x_1);
|
||||
|
|
@ -211,13 +283,46 @@ lean_dec(x_2);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSome_x3f___rarg___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_commitWhenSome_x3f___rarg___lambda__3(x_1, x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
return x_4;
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_commitWhenSome_x3f___rarg___lambda__4(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSomeNoEx_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_5 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_5);
|
||||
x_6 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_1);
|
||||
x_7 = l_Lean_commitWhenSome_x3f___rarg(x_1, x_2, x_3, x_4);
|
||||
lean_inc(x_1);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__3), 2, 1);
|
||||
lean_closure_set(x_8, 0, x_1);
|
||||
lean_inc(x_5);
|
||||
x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_8);
|
||||
lean_inc(x_1);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__1___boxed), 2, 1);
|
||||
lean_closure_set(x_10, 0, x_1);
|
||||
x_11 = lean_apply_3(x_6, lean_box(0), x_9, x_10);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__6), 2, 1);
|
||||
lean_closure_set(x_12, 0, x_1);
|
||||
x_13 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_11, x_12);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhenSomeNoEx_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = lean_alloc_closure((void*)(l_Lean_commitWhenSomeNoEx_x3f___rarg), 4, 0);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
|
||||
|
|
@ -270,7 +375,33 @@ return x_14;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5;
|
||||
x_4 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_4);
|
||||
lean_dec(x_1);
|
||||
x_5 = lean_apply_2(x_4, lean_box(0), x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_6 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_1);
|
||||
x_7 = lean_apply_1(x_6, x_2);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_commitWhen___rarg___lambda__3___boxed), 3, 2);
|
||||
lean_closure_set(x_8, 0, x_3);
|
||||
lean_closure_set(x_8, 1, x_5);
|
||||
x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
|
|
@ -286,7 +417,7 @@ lean_closure_set(x_8, 2, x_3);
|
|||
lean_closure_set(x_8, 3, x_4);
|
||||
lean_inc(x_4);
|
||||
x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_8);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__4), 5, 4);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_commitWhen___rarg___lambda__4), 5, 4);
|
||||
lean_closure_set(x_10, 0, x_2);
|
||||
lean_closure_set(x_10, 1, x_6);
|
||||
lean_closure_set(x_10, 2, x_1);
|
||||
|
|
@ -304,7 +435,7 @@ lean_inc(x_5);
|
|||
x_6 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_commitWhen___rarg___lambda__3), 6, 5);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_commitWhen___rarg___lambda__5), 6, 5);
|
||||
lean_closure_set(x_7, 0, x_3);
|
||||
lean_closure_set(x_7, 1, x_2);
|
||||
lean_closure_set(x_7, 2, x_1);
|
||||
|
|
@ -341,13 +472,22 @@ x_7 = l_Lean_commitWhen___rarg___lambda__2(x_1, x_2, x_3, x_4, x_6);
|
|||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitWhen___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_commitWhen___rarg___lambda__3(x_1, x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_commitIfNoEx___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8;
|
||||
x_6 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__4), 5, 4);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_commitWhen___rarg___lambda__4), 5, 4);
|
||||
lean_closure_set(x_7, 0, x_2);
|
||||
lean_closure_set(x_7, 1, x_5);
|
||||
lean_closure_set(x_7, 2, x_1);
|
||||
|
|
@ -476,52 +616,7 @@ lean_dec(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_4);
|
||||
lean_dec(x_3);
|
||||
x_5 = lean_box(0);
|
||||
x_6 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_6, 0, x_2);
|
||||
lean_ctor_set(x_6, 1, x_5);
|
||||
x_7 = lean_apply_2(x_4, lean_box(0), x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lean_observing_x3f___rarg___lambda__2___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = lean_box(0);
|
||||
x_3 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__2(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_4);
|
||||
lean_dec(x_3);
|
||||
x_5 = l_Lean_observing_x3f___rarg___lambda__2___closed__1;
|
||||
x_6 = lean_apply_2(x_4, lean_box(0), x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
|
|
@ -529,13 +624,13 @@ x_6 = lean_ctor_get(x_1, 1);
|
|||
lean_inc(x_6);
|
||||
lean_dec(x_1);
|
||||
x_7 = lean_apply_1(x_6, x_2);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_observing_x3f___rarg___lambda__2___boxed), 2, 1);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__1___boxed), 2, 1);
|
||||
lean_closure_set(x_8, 0, x_3);
|
||||
x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_8);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__4(lean_object* x_1, lean_object* x_2) {
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__2(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
|
|
@ -572,7 +667,7 @@ return x_11;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__5(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_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
|
|
@ -580,19 +675,19 @@ x_7 = lean_ctor_get(x_1, 1);
|
|||
lean_inc(x_7);
|
||||
lean_dec(x_1);
|
||||
lean_inc(x_2);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_observing_x3f___rarg___lambda__1), 2, 1);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lean_commitWhenSome_x3f___rarg___lambda__3), 2, 1);
|
||||
lean_closure_set(x_8, 0, x_2);
|
||||
lean_inc(x_3);
|
||||
x_9 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_8);
|
||||
lean_inc(x_3);
|
||||
lean_inc(x_2);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_observing_x3f___rarg___lambda__3___boxed), 5, 4);
|
||||
x_10 = lean_alloc_closure((void*)(l_Lean_observing_x3f___rarg___lambda__1___boxed), 5, 4);
|
||||
lean_closure_set(x_10, 0, x_5);
|
||||
lean_closure_set(x_10, 1, x_6);
|
||||
lean_closure_set(x_10, 2, x_2);
|
||||
lean_closure_set(x_10, 3, x_3);
|
||||
x_11 = lean_apply_3(x_7, lean_box(0), x_9, x_10);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_observing_x3f___rarg___lambda__4), 2, 1);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lean_observing_x3f___rarg___lambda__2), 2, 1);
|
||||
lean_closure_set(x_12, 0, x_2);
|
||||
x_13 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_11, x_12);
|
||||
return x_13;
|
||||
|
|
@ -607,7 +702,7 @@ lean_inc(x_5);
|
|||
x_6 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_observing_x3f___rarg___lambda__5), 6, 5);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lean_observing_x3f___rarg___lambda__3), 6, 5);
|
||||
lean_closure_set(x_7, 0, x_3);
|
||||
lean_closure_set(x_7, 1, x_1);
|
||||
lean_closure_set(x_7, 2, x_5);
|
||||
|
|
@ -625,20 +720,11 @@ x_5 = lean_alloc_closure((void*)(l_Lean_observing_x3f___rarg), 4, 0);
|
|||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lean_observing_x3f___rarg___lambda__2(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
LEAN_EXPORT lean_object* l_Lean_observing_x3f___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = l_Lean_observing_x3f___rarg___lambda__3(x_1, x_2, x_3, x_4, x_5);
|
||||
x_6 = l_Lean_observing_x3f___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_5);
|
||||
return x_6;
|
||||
}
|
||||
|
|
@ -717,10 +803,10 @@ _G_initialized = true;
|
|||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lean_commitWhenSome_x3f___rarg___lambda__1___closed__1 = _init_l_Lean_commitWhenSome_x3f___rarg___lambda__1___closed__1();
|
||||
lean_mark_persistent(l_Lean_commitWhenSome_x3f___rarg___lambda__1___closed__1);
|
||||
l_Lean_withoutModifyingState___rarg___lambda__3___closed__1 = _init_l_Lean_withoutModifyingState___rarg___lambda__3___closed__1();
|
||||
lean_mark_persistent(l_Lean_withoutModifyingState___rarg___lambda__3___closed__1);
|
||||
l_Lean_observing_x3f___rarg___lambda__2___closed__1 = _init_l_Lean_observing_x3f___rarg___lambda__2___closed__1();
|
||||
lean_mark_persistent(l_Lean_observing_x3f___rarg___lambda__2___closed__1);
|
||||
l_Lean_instMonadBacktrackExceptT___rarg___closed__1 = _init_l_Lean_instMonadBacktrackExceptT___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lean_instMonadBacktrackExceptT___rarg___closed__1);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue