From 072fb93cc2354ec4c3f2cf40542d580eefead2db Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Mon, 2 Nov 2020 06:39:59 -0800 Subject: [PATCH] chore: update stage0 --- stage0/src/Lean/Elab.lean | 1 - stage0/src/Lean/Elab/StrategyAttrs.lean | 30 - stage0/src/kernel/abstract.cpp | 2 +- stage0/stdlib/CMakeLists.txt | 2 +- stage0/stdlib/Lean/Elab.c | 6 +- stage0/stdlib/Lean/Elab/StrategyAttrs.c | 1652 ----------------------- 6 files changed, 3 insertions(+), 1690 deletions(-) delete mode 100644 stage0/src/Lean/Elab/StrategyAttrs.lean delete mode 100644 stage0/stdlib/Lean/Elab/StrategyAttrs.c diff --git a/stage0/src/Lean/Elab.lean b/stage0/src/Lean/Elab.lean index b6d22aa99b..e884462a60 100644 --- a/stage0/src/Lean/Elab.lean +++ b/stage0/src/Lean/Elab.lean @@ -5,7 +5,6 @@ Authors: Leonardo de Moura -/ import Lean.Elab.Import import Lean.Elab.Exception -import Lean.Elab.StrategyAttrs import Lean.Elab.Command import Lean.Elab.Term import Lean.Elab.App diff --git a/stage0/src/Lean/Elab/StrategyAttrs.lean b/stage0/src/Lean/Elab/StrategyAttrs.lean deleted file mode 100644 index beefc14f42..0000000000 --- a/stage0/src/Lean/Elab/StrategyAttrs.lean +++ /dev/null @@ -1,30 +0,0 @@ -/- -Copyright (c) 2019 Microsoft Corporation. All rights reserved. -Released under Apache 2.0 license as described in the file LICENSE. -Authors: Leonardo de Moura --/ -import Lean.Attributes - -namespace Lean -/- -Elaborator strategies available in the Lean3 elaborator. -We want to support a more general approach, but we need to provide -the strategy selection attributes while we rely on the Lean3 elaborator. --/ -inductive ElaboratorStrategy - | simple | withExpectedType | asEliminator - -instance : Inhabited ElaboratorStrategy := - ⟨ElaboratorStrategy.withExpectedType⟩ - -builtin_initialize elaboratorStrategyAttrs : EnumAttributes ElaboratorStrategy ← - registerEnumAttributes `elaboratorStrategy - [(`elabWithExpectedType, "instructs elaborator that the arguments of the function application (f ...) should be elaborated using information about the expected type", ElaboratorStrategy.withExpectedType), - (`elabSimple, "instructs elaborator that the arguments of the function application (f ...) should be elaborated from left to right, and without propagating information from the expected type to its arguments", ElaboratorStrategy.simple), - (`elabAsEliminator, "instructs elaborator that the arguments of the function application (f ...) should be elaborated as f were an eliminator", ElaboratorStrategy.asEliminator)] - -@[export lean_get_elaborator_strategy] -def getElaboratorStrategy (env : Environment) (n : Name) : Option ElaboratorStrategy := - elaboratorStrategyAttrs.getValue env n - -end Lean diff --git a/stage0/src/kernel/abstract.cpp b/stage0/src/kernel/abstract.cpp index 9320f11878..8130fed942 100644 --- a/stage0/src/kernel/abstract.cpp +++ b/stage0/src/kernel/abstract.cpp @@ -12,7 +12,7 @@ Author: Leonardo de Moura namespace lean { expr abstract(expr const & e, unsigned n, expr const * subst) { - lean_assert(std::all_of(subst, subst+n, [](expr const & e) { return !has_loose_bvars(e) && is_local_or_fvar(e); })); + lean_assert(std::all_of(subst, subst+n, [](expr const & e) { return !has_loose_bvars(e) && is_fvar(e); })); if (!has_fvar(e)) return e; return replace(e, [=](expr const & m, unsigned offset) -> optional { diff --git a/stage0/stdlib/CMakeLists.txt b/stage0/stdlib/CMakeLists.txt index fac01d42cc..67d3a9e795 100644 --- a/stage0/stdlib/CMakeLists.txt +++ b/stage0/stdlib/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT ./Init.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Alternative.c ./Init/Control/Applicative.c ./Init/Control/Conditional.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Functor.c ./Init/Control/Id.c ./Init/Control/Monad.c ./Init/Control/MonadControl.c ./Init/Control/MonadFunctor.c ./Init/Control/MonadLift.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/Macros.c ./Init/Data/Array/QSort.c ./Init/Data/Array/Subarray.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Range.c ./Init/Data/Repr.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/ToString/Basic.c ./Init/Data/ToString/Macro.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/LeanInit.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Tactics.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/BorrowedAnnotation.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data/Format.c ./Lean/Data/FormatMacro.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/Occurrences.c ./Lean/Data/OpenDecl.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Delaborator.c ./Lean/Elab.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/Do.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/MkInhabitant.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/StrategyAttrs.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Location.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Tactic/Rewrite.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/ForEachExpr.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/MatchUtil.c ./Lean/Meta/Offset.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/Replace.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Do.c ./Lean/Parser/Extension.c ./Lean/Parser/Extra.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/StrInterpolation.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Backtrack.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Meta.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/ResolveName.c ./Lean/Runtime.c ./Lean/Server.c ./Lean/Server/ServerBin.c ./Lean/Server/Snapshots.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/PPGoal.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) +add_library (stage0 OBJECT ./Init.c ./Init/Coe.c ./Init/Control.c ./Init/Control/Alternative.c ./Init/Control/Applicative.c ./Init/Control/Conditional.c ./Init/Control/EState.c ./Init/Control/Except.c ./Init/Control/Functor.c ./Init/Control/Id.c ./Init/Control/Monad.c ./Init/Control/MonadControl.c ./Init/Control/MonadFunctor.c ./Init/Control/MonadLift.c ./Init/Control/Option.c ./Init/Control/Reader.c ./Init/Control/State.c ./Init/Control/StateRef.c ./Init/Core.c ./Init/Data.c ./Init/Data/Array.c ./Init/Data/Array/Basic.c ./Init/Data/Array/BinSearch.c ./Init/Data/Array/Macros.c ./Init/Data/Array/QSort.c ./Init/Data/Array/Subarray.c ./Init/Data/Basic.c ./Init/Data/ByteArray.c ./Init/Data/ByteArray/Basic.c ./Init/Data/Char.c ./Init/Data/Char/Basic.c ./Init/Data/Fin.c ./Init/Data/Fin/Basic.c ./Init/Data/Float.c ./Init/Data/FloatArray.c ./Init/Data/FloatArray/Basic.c ./Init/Data/Hashable.c ./Init/Data/Int.c ./Init/Data/Int/Basic.c ./Init/Data/List.c ./Init/Data/List/Basic.c ./Init/Data/List/BasicAux.c ./Init/Data/List/Control.c ./Init/Data/Nat.c ./Init/Data/Nat/Basic.c ./Init/Data/Nat/Bitwise.c ./Init/Data/Nat/Control.c ./Init/Data/Nat/Div.c ./Init/Data/Option.c ./Init/Data/Option/Basic.c ./Init/Data/Option/BasicAux.c ./Init/Data/Option/Instances.c ./Init/Data/Random.c ./Init/Data/Range.c ./Init/Data/Repr.c ./Init/Data/String.c ./Init/Data/String/Basic.c ./Init/Data/String/Extra.c ./Init/Data/ToString.c ./Init/Data/ToString/Basic.c ./Init/Data/ToString/Macro.c ./Init/Data/UInt.c ./Init/Fix.c ./Init/LeanInit.c ./Init/System.c ./Init/System/FilePath.c ./Init/System/IO.c ./Init/System/IOError.c ./Init/System/Platform.c ./Init/System/ST.c ./Init/Tactics.c ./Init/Util.c ./Init/WF.c ./Lean.c ./Lean/Attributes.c ./Lean/AuxRecursor.c ./Lean/Class.c ./Lean/Compiler.c ./Lean/Compiler/BorrowedAnnotation.c ./Lean/Compiler/ClosedTermCache.c ./Lean/Compiler/ConstFolding.c ./Lean/Compiler/ExportAttr.c ./Lean/Compiler/ExternAttr.c ./Lean/Compiler/IR.c ./Lean/Compiler/IR/Basic.c ./Lean/Compiler/IR/Borrow.c ./Lean/Compiler/IR/Boxing.c ./Lean/Compiler/IR/Checker.c ./Lean/Compiler/IR/CompilerM.c ./Lean/Compiler/IR/CtorLayout.c ./Lean/Compiler/IR/ElimDeadBranches.c ./Lean/Compiler/IR/ElimDeadVars.c ./Lean/Compiler/IR/EmitC.c ./Lean/Compiler/IR/EmitUtil.c ./Lean/Compiler/IR/ExpandResetReuse.c ./Lean/Compiler/IR/Format.c ./Lean/Compiler/IR/FreeVars.c ./Lean/Compiler/IR/LiveVars.c ./Lean/Compiler/IR/NormIds.c ./Lean/Compiler/IR/PushProj.c ./Lean/Compiler/IR/RC.c ./Lean/Compiler/IR/ResetReuse.c ./Lean/Compiler/IR/SimpCase.c ./Lean/Compiler/IR/UnboxResult.c ./Lean/Compiler/ImplementedByAttr.c ./Lean/Compiler/InitAttr.c ./Lean/Compiler/InlineAttrs.c ./Lean/Compiler/NameMangling.c ./Lean/Compiler/NeverExtractAttr.c ./Lean/Compiler/Specialize.c ./Lean/Compiler/Util.c ./Lean/CoreM.c ./Lean/Data/Format.c ./Lean/Data/FormatMacro.c ./Lean/Data/Json.c ./Lean/Data/Json/Basic.c ./Lean/Data/Json/FromToJson.c ./Lean/Data/Json/Parser.c ./Lean/Data/Json/Printer.c ./Lean/Data/Json/Stream.c ./Lean/Data/JsonRpc.c ./Lean/Data/KVMap.c ./Lean/Data/LBool.c ./Lean/Data/LOption.c ./Lean/Data/Lsp.c ./Lean/Data/Lsp/Basic.c ./Lean/Data/Lsp/Capabilities.c ./Lean/Data/Lsp/Communication.c ./Lean/Data/Lsp/Diagnostics.c ./Lean/Data/Lsp/Hover.c ./Lean/Data/Lsp/InitShutdown.c ./Lean/Data/Lsp/TextSync.c ./Lean/Data/Lsp/Utf16.c ./Lean/Data/Lsp/Workspace.c ./Lean/Data/Name.c ./Lean/Data/Occurrences.c ./Lean/Data/OpenDecl.c ./Lean/Data/Options.c ./Lean/Data/Position.c ./Lean/Data/SMap.c ./Lean/Data/Trie.c ./Lean/Declaration.c ./Lean/Delaborator.c ./Lean/Elab.c ./Lean/Elab/App.c ./Lean/Elab/Attributes.c ./Lean/Elab/Binders.c ./Lean/Elab/BuiltinNotation.c ./Lean/Elab/CollectFVars.c ./Lean/Elab/Command.c ./Lean/Elab/DeclModifiers.c ./Lean/Elab/DeclUtil.c ./Lean/Elab/Declaration.c ./Lean/Elab/DefView.c ./Lean/Elab/Do.c ./Lean/Elab/Exception.c ./Lean/Elab/Frontend.c ./Lean/Elab/Import.c ./Lean/Elab/Inductive.c ./Lean/Elab/LetRec.c ./Lean/Elab/Level.c ./Lean/Elab/Log.c ./Lean/Elab/Match.c ./Lean/Elab/MutualDef.c ./Lean/Elab/PreDefinition.c ./Lean/Elab/PreDefinition/Basic.c ./Lean/Elab/PreDefinition/Main.c ./Lean/Elab/PreDefinition/MkInhabitant.c ./Lean/Elab/PreDefinition/Structural.c ./Lean/Elab/PreDefinition/WF.c ./Lean/Elab/Print.c ./Lean/Elab/Quotation.c ./Lean/Elab/StructInst.c ./Lean/Elab/Structure.c ./Lean/Elab/Syntax.c ./Lean/Elab/SyntheticMVars.c ./Lean/Elab/Tactic.c ./Lean/Elab/Tactic/Basic.c ./Lean/Elab/Tactic/Binders.c ./Lean/Elab/Tactic/ElabTerm.c ./Lean/Elab/Tactic/Generalize.c ./Lean/Elab/Tactic/Induction.c ./Lean/Elab/Tactic/Injection.c ./Lean/Elab/Tactic/Location.c ./Lean/Elab/Tactic/Match.c ./Lean/Elab/Tactic/Rewrite.c ./Lean/Elab/Term.c ./Lean/Elab/Util.c ./Lean/Environment.c ./Lean/Eval.c ./Lean/Exception.c ./Lean/Expr.c ./Lean/HeadIndex.c ./Lean/Hygiene.c ./Lean/InternalExceptionId.c ./Lean/KeyedDeclsAttribute.c ./Lean/Level.c ./Lean/LocalContext.c ./Lean/Message.c ./Lean/Meta.c ./Lean/Meta/AbstractMVars.c ./Lean/Meta/AbstractNestedProofs.c ./Lean/Meta/AppBuilder.c ./Lean/Meta/Basic.c ./Lean/Meta/Check.c ./Lean/Meta/Closure.c ./Lean/Meta/CollectMVars.c ./Lean/Meta/DiscrTree.c ./Lean/Meta/DiscrTreeTypes.c ./Lean/Meta/ExprDefEq.c ./Lean/Meta/ForEachExpr.c ./Lean/Meta/FunInfo.c ./Lean/Meta/GeneralizeTelescope.c ./Lean/Meta/InferType.c ./Lean/Meta/Instances.c ./Lean/Meta/KAbstract.c ./Lean/Meta/LevelDefEq.c ./Lean/Meta/Match.c ./Lean/Meta/Match/CaseArraySizes.c ./Lean/Meta/Match/CaseValues.c ./Lean/Meta/Match/MVarRenaming.c ./Lean/Meta/Match/Match.c ./Lean/Meta/Match/MatchPatternAttr.c ./Lean/Meta/MatchUtil.c ./Lean/Meta/Offset.c ./Lean/Meta/RecursorInfo.c ./Lean/Meta/Reduce.c ./Lean/Meta/ReduceEval.c ./Lean/Meta/SynthInstance.c ./Lean/Meta/Tactic.c ./Lean/Meta/Tactic/Apply.c ./Lean/Meta/Tactic/Assert.c ./Lean/Meta/Tactic/Assumption.c ./Lean/Meta/Tactic/Cases.c ./Lean/Meta/Tactic/Clear.c ./Lean/Meta/Tactic/FVarSubst.c ./Lean/Meta/Tactic/Generalize.c ./Lean/Meta/Tactic/Induction.c ./Lean/Meta/Tactic/Injection.c ./Lean/Meta/Tactic/Intro.c ./Lean/Meta/Tactic/Replace.c ./Lean/Meta/Tactic/Revert.c ./Lean/Meta/Tactic/Rewrite.c ./Lean/Meta/Tactic/Subst.c ./Lean/Meta/Tactic/Util.c ./Lean/Meta/TransparencyMode.c ./Lean/Meta/WHNF.c ./Lean/MetavarContext.c ./Lean/Modifiers.c ./Lean/MonadEnv.c ./Lean/Parser.c ./Lean/Parser/Basic.c ./Lean/Parser/Command.c ./Lean/Parser/Do.c ./Lean/Parser/Extension.c ./Lean/Parser/Extra.c ./Lean/Parser/Level.c ./Lean/Parser/Module.c ./Lean/Parser/StrInterpolation.c ./Lean/Parser/Syntax.c ./Lean/Parser/Tactic.c ./Lean/Parser/Term.c ./Lean/Parser/Transform.c ./Lean/ParserCompiler.c ./Lean/ParserCompiler/Attribute.c ./Lean/PrettyPrinter.c ./Lean/PrettyPrinter/Backtrack.c ./Lean/PrettyPrinter/Formatter.c ./Lean/PrettyPrinter/Meta.c ./Lean/PrettyPrinter/Parenthesizer.c ./Lean/ProjFns.c ./Lean/ReducibilityAttrs.c ./Lean/ResolveName.c ./Lean/Runtime.c ./Lean/Server.c ./Lean/Server/ServerBin.c ./Lean/Server/Snapshots.c ./Lean/Structure.c ./Lean/Syntax.c ./Lean/ToExpr.c ./Lean/Util.c ./Lean/Util/CollectFVars.c ./Lean/Util/CollectLevelParams.c ./Lean/Util/CollectMVars.c ./Lean/Util/Constructions.c ./Lean/Util/FindExpr.c ./Lean/Util/FindMVar.c ./Lean/Util/FoldConsts.c ./Lean/Util/ForEachExpr.c ./Lean/Util/MonadCache.c ./Lean/Util/PPExt.c ./Lean/Util/PPGoal.c ./Lean/Util/Path.c ./Lean/Util/Profile.c ./Lean/Util/RecDepth.c ./Lean/Util/Recognizers.c ./Lean/Util/ReplaceExpr.c ./Lean/Util/ReplaceLevel.c ./Lean/Util/SCC.c ./Lean/Util/Sorry.c ./Lean/Util/Trace.c ./Std.c ./Std/Data.c ./Std/Data/AssocList.c ./Std/Data/BinomialHeap.c ./Std/Data/DList.c ./Std/Data/HashMap.c ./Std/Data/HashSet.c ./Std/Data/PersistentArray.c ./Std/Data/PersistentHashMap.c ./Std/Data/PersistentHashSet.c ./Std/Data/Queue.c ./Std/Data/RBMap.c ./Std/Data/RBTree.c ./Std/Data/Stack.c ./Std/ShareCommon.c ) diff --git a/stage0/stdlib/Lean/Elab.c b/stage0/stdlib/Lean/Elab.c index cbe0e58745..97c0d73b5d 100644 --- a/stage0/stdlib/Lean/Elab.c +++ b/stage0/stdlib/Lean/Elab.c @@ -1,6 +1,6 @@ // Lean compiler output // Module: Lean.Elab -// Imports: Init Lean.Elab.Import Lean.Elab.Exception Lean.Elab.StrategyAttrs Lean.Elab.Command Lean.Elab.Term Lean.Elab.App Lean.Elab.Binders Lean.Elab.LetRec Lean.Elab.Quotation Lean.Elab.Frontend Lean.Elab.BuiltinNotation Lean.Elab.Declaration Lean.Elab.Tactic Lean.Elab.Syntax Lean.Elab.Match Lean.Elab.Do Lean.Elab.StructInst Lean.Elab.Inductive Lean.Elab.Structure Lean.Elab.Print Lean.Elab.MutualDef Lean.Elab.PreDefinition +// Imports: Init Lean.Elab.Import Lean.Elab.Exception Lean.Elab.Command Lean.Elab.Term Lean.Elab.App Lean.Elab.Binders Lean.Elab.LetRec Lean.Elab.Quotation Lean.Elab.Frontend Lean.Elab.BuiltinNotation Lean.Elab.Declaration Lean.Elab.Tactic Lean.Elab.Syntax Lean.Elab.Match Lean.Elab.Do Lean.Elab.StructInst Lean.Elab.Inductive Lean.Elab.Structure Lean.Elab.Print Lean.Elab.MutualDef Lean.Elab.PreDefinition #include #if defined(__clang__) #pragma clang diagnostic ignored "-Wunused-parameter" @@ -16,7 +16,6 @@ extern "C" { lean_object* initialize_Init(lean_object*); lean_object* initialize_Lean_Elab_Import(lean_object*); lean_object* initialize_Lean_Elab_Exception(lean_object*); -lean_object* initialize_Lean_Elab_StrategyAttrs(lean_object*); lean_object* initialize_Lean_Elab_Command(lean_object*); lean_object* initialize_Lean_Elab_Term(lean_object*); lean_object* initialize_Lean_Elab_App(lean_object*); @@ -50,9 +49,6 @@ lean_dec_ref(res); res = initialize_Lean_Elab_Exception(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); -res = initialize_Lean_Elab_StrategyAttrs(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); res = initialize_Lean_Elab_Command(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; lean_dec_ref(res); diff --git a/stage0/stdlib/Lean/Elab/StrategyAttrs.c b/stage0/stdlib/Lean/Elab/StrategyAttrs.c deleted file mode 100644 index e9a5e65092..0000000000 --- a/stage0/stdlib/Lean/Elab/StrategyAttrs.c +++ /dev/null @@ -1,1652 +0,0 @@ -// Lean compiler output -// Module: Lean.Elab.StrategyAttrs -// Imports: Init Lean.Attributes -#include -#if defined(__clang__) -#pragma clang diagnostic ignored "-Wunused-parameter" -#pragma clang diagnostic ignored "-Wunused-label" -#elif defined(__GNUC__) && !defined(__CLANG__) -#pragma GCC diagnostic ignored "-Wunused-parameter" -#pragma GCC diagnostic ignored "-Wunused-label" -#pragma GCC diagnostic ignored "-Wunused-but-set-variable" -#endif -#ifdef __cplusplus -extern "C" { -#endif -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__10; -extern lean_object* l_Array_qsort_sort___at_Lean_registerParametricAttribute___spec__2___rarg___closed__1; -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__20; -size_t l_USize_add(size_t, size_t); -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_nat_div(lean_object*, lean_object*); -lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_EnumAttributes_getValue___at_Lean_getElaboratorStrategy___spec__1(lean_object*, lean_object*, lean_object*); -uint8_t l_USize_decEq(size_t, size_t); -lean_object* lean_array_uget(lean_object*, size_t); -uint8_t l_Lean_Name_quickLt(lean_object*, lean_object*); -lean_object* l_Std_RBNode_fold___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__2___boxed(lean_object*, lean_object*); -lean_object* l_List_forM___at_Lean_registerEnumAttributes___spec__10(lean_object*, lean_object*); -lean_object* l_Std_RBNode_fold___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__2(lean_object*, lean_object*); -extern lean_object* l_Lean_registerInternalExceptionId___closed__2; -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__12; -extern lean_object* l_Array_empty___closed__1; -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_st_ref_get(lean_object*, lean_object*); -uint8_t l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__6(lean_object*, lean_object*, size_t, size_t); -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*); -uint8_t lean_name_eq(lean_object*, lean_object*); -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_array_push(lean_object*, lean_object*); -lean_object* lean_array_get_size(lean_object*); -lean_object* l_Array_binSearchAux___at_Lean_getElaboratorStrategy___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* lean_string_append(lean_object*, lean_object*); -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__2(lean_object*); -lean_object* l_Lean_setEnv___at_Lean_registerTagAttribute___spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__3; -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__5; -lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__14; -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__18; -lean_object* l_Lean_elaboratorStrategyAttrs; -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__15; -lean_object* lean_nat_add(lean_object*, lean_object*); -lean_object* l_Lean_Name_toStringWithSep(lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__17; -uint8_t lean_nat_dec_eq(lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__9; -lean_object* lean_nat_sub(lean_object*, lean_object*); -uint8_t l_Lean_Lean_Elab_StrategyAttrs___instance__1; -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__4; -lean_object* lean_array_swap(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__3___boxed(lean_object*, lean_object*, lean_object*); -lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); -lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__3(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Std_RBNode_find___at_Lean_getElaboratorStrategy___spec__2___boxed(lean_object*, lean_object*); -lean_object* lean_name_mk_string(lean_object*, lean_object*); -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__2; -extern lean_object* l_Lean_persistentEnvExtensionsRef; -extern lean_object* l_Lean_registerParametricAttribute___rarg___closed__1; -extern lean_object* l_Lean_registerTagAttribute___lambda__5___closed__4; -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__6; -lean_object* lean_get_elaborator_strategy(lean_object*, lean_object*); -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__1(lean_object*, lean_object*); -extern lean_object* l_Lean_Init_LeanInit___instance__1; -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__2; -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__1; -lean_object* l_Lean_EnumAttributes_getValue___at_Lean_getElaboratorStrategy___spec__1___boxed(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__1; -size_t lean_usize_of_nat(lean_object*); -extern lean_object* l_Lean_registerTagAttribute___lambda__6___closed__2; -lean_object* l_Lean_PersistentEnvExtension_addEntry___rarg(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -extern lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__2___boxed(lean_object*); -extern lean_object* l_Lean_registerTagAttribute___lambda__5___closed__2; -lean_object* l_Std_RBNode_find___at_Lean_getElaboratorStrategy___spec__2(lean_object*, lean_object*); -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(lean_object*, uint8_t, lean_object*, lean_object*); -uint8_t lean_nat_dec_le(lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__19; -extern lean_object* l_Lean_registerEnumAttributes___rarg___closed__2; -extern lean_object* l_Lean_registerEnumAttributes___rarg___closed__1; -lean_object* l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_binSearchAux___at_Lean_getElaboratorStrategy___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__11; -lean_object* l_Lean_throwError___at_Lean_addAttribute___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__5(lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__7; -lean_object* l_Lean_Environment_getModuleIdxFor_x3f(lean_object*, lean_object*); -lean_object* l_Lean_PersistentEnvExtension_getState___rarg(lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__16; -extern lean_object* l_Lean_EnumAttributes_Lean_Attributes___instance__7___closed__1; -extern lean_object* l_System_FilePath_dirName___closed__1; -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10_(lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__13; -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____lambda__1(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__21; -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__8; -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___closed__1; -lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -static uint8_t _init_l_Lean_Lean_Elab_StrategyAttrs___instance__1() { -_start: -{ -uint8_t x_1; -x_1 = 1; -return x_1; -} -} -lean_object* l_Std_RBNode_fold___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_2) == 0) -{ -return x_1; -} -else -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_3 = lean_ctor_get(x_2, 0); -x_4 = lean_ctor_get(x_2, 1); -x_5 = lean_ctor_get(x_2, 2); -x_6 = lean_ctor_get(x_2, 3); -x_7 = l_Std_RBNode_fold___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__2(x_1, x_3); -lean_inc(x_5); -lean_inc(x_4); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_4); -lean_ctor_set(x_8, 1, x_5); -x_9 = lean_array_push(x_7, x_8); -x_1 = x_9; -x_2 = x_6; -goto _start; -} -} -} -static lean_object* _init_l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___closed__1() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_Init_LeanInit___instance__1; -x_2 = l_Lean_Lean_Elab_StrategyAttrs___instance__1; -x_3 = lean_box(x_2); -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_3); -return x_4; -} -} -lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -uint8_t x_7; -x_7 = lean_nat_dec_lt(x_6, x_2); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; -lean_dec(x_6); -lean_dec(x_3); -lean_dec(x_1); -x_8 = lean_array_swap(x_4, x_5, x_2); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_5); -lean_ctor_set(x_9, 1, x_8); -return x_9; -} -else -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___closed__1; -x_11 = lean_array_get(x_10, x_4, x_6); -lean_inc(x_1); -lean_inc(x_3); -x_12 = lean_apply_2(x_1, x_11, x_3); -x_13 = lean_unbox(x_12); -lean_dec(x_12); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -x_14 = lean_unsigned_to_nat(1u); -x_15 = lean_nat_add(x_6, x_14); -lean_dec(x_6); -x_6 = x_15; -goto _start; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; -x_17 = lean_array_swap(x_4, x_5, x_6); -x_18 = lean_unsigned_to_nat(1u); -x_19 = lean_nat_add(x_5, x_18); -lean_dec(x_5); -x_20 = lean_nat_add(x_6, x_18); -lean_dec(x_6); -x_4 = x_17; -x_5 = x_19; -x_6 = x_20; -goto _start; -} -} -} -} -lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; uint8_t x_13; -x_13 = lean_nat_dec_lt(x_2, x_3); -if (x_13 == 0) -{ -lean_dec(x_2); -return x_1; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; -x_14 = lean_nat_add(x_2, x_3); -x_15 = lean_unsigned_to_nat(2u); -x_16 = lean_nat_div(x_14, x_15); -lean_dec(x_14); -x_46 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___closed__1; -x_47 = lean_array_get(x_46, x_1, x_16); -x_48 = lean_array_get(x_46, x_1, x_2); -x_49 = lean_ctor_get(x_47, 0); -lean_inc(x_49); -lean_dec(x_47); -x_50 = lean_ctor_get(x_48, 0); -lean_inc(x_50); -lean_dec(x_48); -x_51 = l_Lean_Name_quickLt(x_49, x_50); -lean_dec(x_50); -lean_dec(x_49); -if (x_51 == 0) -{ -x_17 = x_1; -goto block_45; -} -else -{ -lean_object* x_52; -x_52 = lean_array_swap(x_1, x_2, x_16); -x_17 = x_52; -goto block_45; -} -block_45: -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; -x_18 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___closed__1; -x_19 = lean_array_get(x_18, x_17, x_3); -x_20 = lean_array_get(x_18, x_17, x_2); -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -lean_dec(x_20); -x_23 = l_Lean_Name_quickLt(x_21, x_22); -lean_dec(x_22); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; uint8_t x_26; -x_24 = lean_array_get(x_18, x_17, x_16); -x_25 = lean_ctor_get(x_24, 0); -lean_inc(x_25); -lean_dec(x_24); -x_26 = l_Lean_Name_quickLt(x_25, x_21); -lean_dec(x_21); -lean_dec(x_25); -if (x_26 == 0) -{ -lean_object* x_27; lean_object* x_28; -lean_dec(x_16); -x_27 = l_Array_qsort_sort___at_Lean_registerParametricAttribute___spec__2___rarg___closed__1; -lean_inc_n(x_2, 2); -x_28 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4(x_27, x_3, x_19, x_17, x_2, x_2); -x_4 = x_28; -goto block_12; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -lean_dec(x_19); -x_29 = lean_array_swap(x_17, x_16, x_3); -lean_dec(x_16); -x_30 = lean_array_get(x_18, x_29, x_3); -x_31 = l_Array_qsort_sort___at_Lean_registerParametricAttribute___spec__2___rarg___closed__1; -lean_inc_n(x_2, 2); -x_32 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4(x_31, x_3, x_30, x_29, x_2, x_2); -x_4 = x_32; -goto block_12; -} -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; -lean_dec(x_21); -lean_dec(x_19); -x_33 = lean_array_swap(x_17, x_2, x_3); -x_34 = lean_array_get(x_18, x_33, x_16); -x_35 = lean_array_get(x_18, x_33, x_3); -x_36 = lean_ctor_get(x_34, 0); -lean_inc(x_36); -lean_dec(x_34); -x_37 = lean_ctor_get(x_35, 0); -lean_inc(x_37); -x_38 = l_Lean_Name_quickLt(x_36, x_37); -lean_dec(x_37); -lean_dec(x_36); -if (x_38 == 0) -{ -lean_object* x_39; lean_object* x_40; -lean_dec(x_16); -x_39 = l_Array_qsort_sort___at_Lean_registerParametricAttribute___spec__2___rarg___closed__1; -lean_inc_n(x_2, 2); -x_40 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4(x_39, x_3, x_35, x_33, x_2, x_2); -x_4 = x_40; -goto block_12; -} -else -{ -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; -lean_dec(x_35); -x_41 = lean_array_swap(x_33, x_16, x_3); -lean_dec(x_16); -x_42 = lean_array_get(x_18, x_41, x_3); -x_43 = l_Array_qsort_sort___at_Lean_registerParametricAttribute___spec__2___rarg___closed__1; -lean_inc_n(x_2, 2); -x_44 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4(x_43, x_3, x_42, x_41, x_2, x_2); -x_4 = x_44; -goto block_12; -} -} -} -} -block_12: -{ -lean_object* x_5; lean_object* x_6; uint8_t x_7; -x_5 = lean_ctor_get(x_4, 0); -lean_inc(x_5); -x_6 = lean_ctor_get(x_4, 1); -lean_inc(x_6); -lean_dec(x_4); -x_7 = lean_nat_dec_le(x_3, x_5); -if (x_7 == 0) -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; -x_8 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__3(x_6, x_2, x_5); -x_9 = lean_unsigned_to_nat(1u); -x_10 = lean_nat_add(x_5, x_9); -lean_dec(x_5); -x_1 = x_8; -x_2 = x_10; -goto _start; -} -else -{ -lean_dec(x_5); -lean_dec(x_2); -return x_6; -} -} -} -} -uint8_t l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__6(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) { -_start: -{ -uint8_t x_5; -x_5 = x_3 == x_4; -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -x_6 = lean_array_uget(x_2, x_3); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_ctor_get(x_1, 0); -x_9 = lean_name_eq(x_7, x_8); -lean_dec(x_7); -if (x_9 == 0) -{ -size_t x_10; size_t x_11; -x_10 = 1; -x_11 = x_3 + x_10; -x_3 = x_11; -goto _start; -} -else -{ -uint8_t x_13; -x_13 = 1; -return x_13; -} -} -else -{ -uint8_t x_14; -x_14 = 0; -return x_14; -} -} -} -lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__5(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; uint8_t x_5; -x_3 = l_Lean_persistentEnvExtensionsRef; -x_4 = lean_st_ref_get(x_3, x_2); -x_5 = !lean_is_exclusive(x_4); -if (x_5 == 0) -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; -x_6 = lean_ctor_get(x_4, 0); -x_7 = lean_ctor_get(x_4, 1); -x_8 = lean_array_get_size(x_6); -x_9 = lean_unsigned_to_nat(0u); -x_10 = lean_nat_dec_lt(x_9, x_8); -if (x_10 == 0) -{ -lean_object* x_11; lean_object* x_12; -lean_dec(x_8); -lean_free_object(x_4); -lean_dec(x_6); -x_11 = lean_box(0); -x_12 = l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(x_1, x_11, x_7); -return x_12; -} -else -{ -uint8_t x_13; -x_13 = lean_nat_dec_le(x_8, x_8); -if (x_13 == 0) -{ -lean_object* x_14; lean_object* x_15; -lean_dec(x_8); -lean_free_object(x_4); -lean_dec(x_6); -x_14 = lean_box(0); -x_15 = l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(x_1, x_14, x_7); -return x_15; -} -else -{ -size_t x_16; size_t x_17; uint8_t x_18; -x_16 = 0; -x_17 = lean_usize_of_nat(x_8); -lean_dec(x_8); -x_18 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__6(x_1, x_6, x_16, x_17); -lean_dec(x_6); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -lean_free_object(x_4); -x_19 = lean_box(0); -x_20 = l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(x_1, x_19, x_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_27; lean_object* x_28; -x_21 = lean_ctor_get(x_1, 0); -lean_inc(x_21); -lean_dec(x_1); -x_22 = l_System_FilePath_dirName___closed__1; -x_23 = l_Lean_Name_toStringWithSep(x_22, x_21); -x_24 = l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; -x_25 = lean_string_append(x_24, x_23); -lean_dec(x_23); -x_26 = l_Lean_registerInternalExceptionId___closed__2; -x_27 = lean_string_append(x_25, x_26); -x_28 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_28, 0, x_27); -lean_ctor_set_tag(x_4, 1); -lean_ctor_set(x_4, 0, x_28); -return x_4; -} -} -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_29 = lean_ctor_get(x_4, 0); -x_30 = lean_ctor_get(x_4, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_4); -x_31 = lean_array_get_size(x_29); -x_32 = lean_unsigned_to_nat(0u); -x_33 = lean_nat_dec_lt(x_32, x_31); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; -lean_dec(x_31); -lean_dec(x_29); -x_34 = lean_box(0); -x_35 = l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(x_1, x_34, x_30); -return x_35; -} -else -{ -uint8_t x_36; -x_36 = lean_nat_dec_le(x_31, x_31); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -lean_dec(x_31); -lean_dec(x_29); -x_37 = lean_box(0); -x_38 = l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(x_1, x_37, x_30); -return x_38; -} -else -{ -size_t x_39; size_t x_40; uint8_t x_41; -x_39 = 0; -x_40 = lean_usize_of_nat(x_31); -lean_dec(x_31); -x_41 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__6(x_1, x_29, x_39, x_40); -lean_dec(x_29); -if (x_41 == 0) -{ -lean_object* x_42; lean_object* x_43; -x_42 = lean_box(0); -x_43 = l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(x_1, x_42, x_30); -return x_43; -} -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; -x_44 = lean_ctor_get(x_1, 0); -lean_inc(x_44); -lean_dec(x_1); -x_45 = l_System_FilePath_dirName___closed__1; -x_46 = l_Lean_Name_toStringWithSep(x_45, x_44); -x_47 = l_Lean_registerPersistentEnvExtensionUnsafe___rarg___closed__1; -x_48 = lean_string_append(x_47, x_46); -lean_dec(x_46); -x_49 = l_Lean_registerInternalExceptionId___closed__2; -x_50 = lean_string_append(x_48, x_49); -x_51 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_51, 0, x_50); -x_52 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_52, 0, x_51); -lean_ctor_set(x_52, 1, x_30); -return x_52; -} -} -} -} -} -} -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; -x_11 = lean_box(x_3); -lean_inc(x_9); -lean_inc(x_8); -lean_inc(x_7); -lean_inc(x_2); -x_12 = lean_apply_6(x_1, x_2, x_11, x_7, x_8, x_9, x_10); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_13 = lean_ctor_get(x_12, 1); -lean_inc(x_13); -lean_dec(x_12); -x_14 = lean_box(x_3); -x_15 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_15, 0, x_2); -lean_ctor_set(x_15, 1, x_14); -x_16 = l_Lean_PersistentEnvExtension_addEntry___rarg(x_4, x_5, x_15); -x_17 = l_Lean_setEnv___at_Lean_registerTagAttribute___spec__4(x_16, x_7, x_8, x_9, x_13); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -return x_17; -} -else -{ -uint8_t x_18; -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_2); -x_18 = !lean_is_exclusive(x_12); -if (x_18 == 0) -{ -return x_12; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_12, 0); -x_20 = lean_ctor_get(x_12, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_12); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -} -} -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; -x_11 = lean_st_ref_get(x_9, 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 = lean_ctor_get(x_12, 0); -lean_inc(x_14); -lean_dec(x_12); -x_15 = l_Lean_Environment_getModuleIdxFor_x3f(x_14, x_2); -if (lean_obj_tag(x_15) == 0) -{ -lean_object* x_16; lean_object* x_17; -lean_dec(x_5); -x_16 = lean_box(0); -x_17 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(x_1, x_2, x_3, x_4, x_14, x_16, x_7, x_8, x_9, x_13); -return x_17; -} -else -{ -lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -lean_dec(x_15); -lean_dec(x_14); -lean_dec(x_4); -lean_dec(x_2); -lean_dec(x_1); -x_18 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_18, 0, x_5); -x_19 = l_Lean_registerTagAttribute___lambda__5___closed__2; -x_20 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_20, 0, x_19); -lean_ctor_set(x_20, 1, x_18); -x_21 = l_Lean_registerTagAttribute___lambda__5___closed__4; -x_22 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_22, 0, x_20); -lean_ctor_set(x_22, 1, x_21); -x_23 = l_Lean_throwError___at_Lean_addAttribute___spec__2___rarg(x_22, x_7, x_8, x_9, x_13); -lean_dec(x_9); -lean_dec(x_8); -lean_dec(x_7); -x_24 = !lean_is_exclusive(x_23); -if (x_24 == 0) -{ -return x_23; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_23, 0); -x_26 = lean_ctor_get(x_23, 1); -lean_inc(x_26); -lean_inc(x_25); -lean_dec(x_23); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; -} -} -} -} -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, uint8_t x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -if (x_7 == 0) -{ -lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; -lean_dec(x_5); -lean_dec(x_3); -lean_dec(x_1); -x_12 = lean_alloc_ctor(4, 1, 0); -lean_ctor_set(x_12, 0, x_4); -x_13 = l_Lean_registerTagAttribute___lambda__5___closed__2; -x_14 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_14, 0, x_13); -lean_ctor_set(x_14, 1, x_12); -x_15 = l_Lean_registerTagAttribute___lambda__6___closed__2; -x_16 = lean_alloc_ctor(10, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -x_17 = l_Lean_throwError___at_Lean_addAttribute___spec__2___rarg(x_16, x_8, x_9, x_10, x_11); -lean_dec(x_10); -lean_dec(x_9); -lean_dec(x_8); -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -return x_17; -} -else -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -lean_inc(x_19); -lean_dec(x_17); -x_21 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_21, 0, x_19); -lean_ctor_set(x_21, 1, x_20); -return x_21; -} -} -else -{ -lean_object* x_22; lean_object* x_23; -x_22 = lean_box(0); -x_23 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(x_1, x_5, x_2, x_3, x_4, x_22, x_8, x_9, x_10, x_11); -return x_23; -} -} -} -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_5; -lean_dec(x_3); -lean_dec(x_1); -x_5 = lean_box(0); -return x_5; -} -else -{ -uint8_t x_6; -x_6 = !lean_is_exclusive(x_4); -if (x_6 == 0) -{ -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; -x_7 = lean_ctor_get(x_4, 0); -x_8 = lean_ctor_get(x_4, 1); -lean_inc(x_3); -lean_inc(x_1); -x_9 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_1, x_2, x_3, x_8); -x_10 = lean_ctor_get(x_7, 1); -lean_inc(x_10); -x_11 = lean_ctor_get(x_7, 0); -lean_inc(x_11); -lean_dec(x_7); -x_12 = lean_ctor_get(x_10, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_10, 1); -lean_inc(x_13); -lean_dec(x_10); -lean_inc(x_11); -x_14 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_14, 0, x_11); -lean_ctor_set(x_14, 1, x_12); -lean_ctor_set_uint8(x_14, sizeof(void*)*2, x_2); -x_15 = lean_alloc_closure((void*)(l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed), 11, 4); -lean_closure_set(x_15, 0, x_1); -lean_closure_set(x_15, 1, x_13); -lean_closure_set(x_15, 2, x_3); -lean_closure_set(x_15, 3, x_11); -x_16 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_16, 0, x_14); -lean_ctor_set(x_16, 1, x_15); -lean_ctor_set(x_4, 1, x_9); -lean_ctor_set(x_4, 0, x_16); -return x_4; -} -else -{ -lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_17 = lean_ctor_get(x_4, 0); -x_18 = lean_ctor_get(x_4, 1); -lean_inc(x_18); -lean_inc(x_17); -lean_dec(x_4); -lean_inc(x_3); -lean_inc(x_1); -x_19 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_1, x_2, x_3, x_18); -x_20 = lean_ctor_get(x_17, 1); -lean_inc(x_20); -x_21 = lean_ctor_get(x_17, 0); -lean_inc(x_21); -lean_dec(x_17); -x_22 = lean_ctor_get(x_20, 0); -lean_inc(x_22); -x_23 = lean_ctor_get(x_20, 1); -lean_inc(x_23); -lean_dec(x_20); -lean_inc(x_21); -x_24 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_24, 0, x_21); -lean_ctor_set(x_24, 1, x_22); -lean_ctor_set_uint8(x_24, sizeof(void*)*2, x_2); -x_25 = lean_alloc_closure((void*)(l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed), 11, 4); -lean_closure_set(x_25, 0, x_1); -lean_closure_set(x_25, 1, x_23); -lean_closure_set(x_25, 2, x_3); -lean_closure_set(x_25, 3, x_21); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_19); -return x_27; -} -} -} -} -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__1(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = lean_ctor_get(x_2, 0); -lean_inc(x_3); -x_4 = lean_ctor_get(x_2, 1); -lean_inc(x_4); -lean_dec(x_2); -x_5 = l_Std_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_1, x_3, x_4); -return x_5; -} -} -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__2(lean_object* x_1) { -_start: -{ -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; -x_2 = l_Array_empty___closed__1; -x_3 = l_Std_RBNode_fold___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__2(x_2, x_1); -x_4 = lean_array_get_size(x_3); -x_5 = lean_unsigned_to_nat(1u); -x_6 = lean_nat_sub(x_4, x_5); -lean_dec(x_4); -x_7 = lean_unsigned_to_nat(0u); -x_8 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__3(x_3, x_7, x_6); -lean_dec(x_6); -return x_8; -} -} -static lean_object* _init_l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__1), 2, 0); -return x_1; -} -} -static lean_object* _init_l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__2___boxed), 1, 0); -return x_1; -} -} -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5) { -_start: -{ -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; -x_6 = l_Lean_registerParametricAttribute___rarg___closed__1; -x_7 = l_Lean_registerEnumAttributes___rarg___closed__1; -x_8 = l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__1; -x_9 = l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__2; -x_10 = l_Lean_registerEnumAttributes___rarg___closed__2; -x_11 = lean_alloc_ctor(0, 6, 0); -lean_ctor_set(x_11, 0, x_1); -lean_ctor_set(x_11, 1, x_6); -lean_ctor_set(x_11, 2, x_7); -lean_ctor_set(x_11, 3, x_8); -lean_ctor_set(x_11, 4, x_9); -lean_ctor_set(x_11, 5, x_10); -x_12 = l_Lean_registerPersistentEnvExtensionUnsafe___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__5(x_11, x_5); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; -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_13); -x_15 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_3, x_4, x_13, x_2); -lean_inc(x_15); -x_16 = l_List_forM___at_Lean_registerEnumAttributes___spec__10(x_15, x_14); -if (lean_obj_tag(x_16) == 0) -{ -uint8_t x_17; -x_17 = !lean_is_exclusive(x_16); -if (x_17 == 0) -{ -lean_object* x_18; lean_object* x_19; -x_18 = lean_ctor_get(x_16, 0); -lean_dec(x_18); -x_19 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_19, 0, x_15); -lean_ctor_set(x_19, 1, x_13); -lean_ctor_set(x_16, 0, x_19); -return x_16; -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; -x_20 = lean_ctor_get(x_16, 1); -lean_inc(x_20); -lean_dec(x_16); -x_21 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_21, 0, x_15); -lean_ctor_set(x_21, 1, x_13); -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 -{ -uint8_t x_23; -lean_dec(x_15); -lean_dec(x_13); -x_23 = !lean_is_exclusive(x_16); -if (x_23 == 0) -{ -return x_16; -} -else -{ -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_16, 0); -x_25 = lean_ctor_get(x_16, 1); -lean_inc(x_25); -lean_inc(x_24); -lean_dec(x_16); -x_26 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_26, 0, x_24); -lean_ctor_set(x_26, 1, x_25); -return x_26; -} -} -} -else -{ -uint8_t x_27; -lean_dec(x_3); -lean_dec(x_2); -x_27 = !lean_is_exclusive(x_12); -if (x_27 == 0) -{ -return x_12; -} -else -{ -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_12, 0); -x_29 = lean_ctor_get(x_12, 1); -lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_12); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; -} -} -} -} -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____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) { -_start: -{ -lean_object* x_7; lean_object* x_8; -x_7 = lean_box(0); -x_8 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_8, 0, x_7); -lean_ctor_set(x_8, 1, x_6); -return x_8; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elaboratorStrategy"); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__2() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__1; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__3() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabWithExpectedType"); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__4() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__3; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__5() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("instructs elaborator that the arguments of the function application (f ...) should be elaborated using information about the expected type"); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__6() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__5; -x_2 = 1; -x_3 = lean_box(x_2); -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__7() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__4; -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__6; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabSimple"); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__9() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__8; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__10() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("instructs elaborator that the arguments of the function application (f ...) should be elaborated from left to right, and without propagating information from the expected type to its arguments"); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__11() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__10; -x_2 = 0; -x_3 = lean_box(x_2); -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__12() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__9; -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__11; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__13() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("elabAsEliminator"); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__14() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__13; -x_3 = lean_name_mk_string(x_1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__15() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string("instructs elaborator that the arguments of the function application (f ...) should be elaborated as f were an eliminator"); -return x_1; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__16() { -_start: -{ -lean_object* x_1; uint8_t x_2; lean_object* x_3; lean_object* x_4; -x_1 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__15; -x_2 = 2; -x_3 = lean_box(x_2); -x_4 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_4, 0, x_1); -lean_ctor_set(x_4, 1, x_3); -return x_4; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__17() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__14; -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__16; -x_3 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__18() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_box(0); -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__17; -x_3 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_3, 0, x_2); -lean_ctor_set(x_3, 1, x_1); -return x_3; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__19() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__12; -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__18; -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; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__20() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__7; -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__19; -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; -} -} -static lean_object* _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__21() { -_start: -{ -lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____lambda__1___boxed), 6, 0); -return x_1; -} -} -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10_(lean_object* x_1) { -_start: -{ -lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; -x_2 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__2; -x_3 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__20; -x_4 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__21; -x_5 = 0; -x_6 = l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1(x_2, x_3, x_4, x_5, x_1); -return x_6; -} -} -lean_object* l_Std_RBNode_fold___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_RBNode_fold___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__2(x_1, x_2); -lean_dec(x_2); -return x_3; -} -} -lean_object* l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { -_start: -{ -lean_object* x_7; -x_7 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4(x_1, x_2, x_3, x_4, x_5, x_6); -lean_dec(x_2); -return x_7; -} -} -lean_object* l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Array_qsort_sort___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__3(x_1, x_2, x_3); -lean_dec(x_3); -return x_4; -} -} -lean_object* l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; -x_5 = lean_unbox_usize(x_3); -lean_dec(x_3); -x_6 = lean_unbox_usize(x_4); -lean_dec(x_4); -x_7 = l_Array_anyMUnsafe_any___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__6(x_1, x_2, x_5, x_6); -lean_dec(x_2); -lean_dec(x_1); -x_8 = lean_box(x_7); -return x_8; -} -} -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_3); -lean_dec(x_3); -x_12 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__1(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_6); -return x_12; -} -} -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10) { -_start: -{ -uint8_t x_11; lean_object* x_12; -x_11 = lean_unbox(x_3); -lean_dec(x_3); -x_12 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__2(x_1, x_2, x_11, x_4, x_5, x_6, x_7, x_8, x_9, x_10); -lean_dec(x_6); -return x_12; -} -} -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) { -_start: -{ -uint8_t x_12; uint8_t x_13; lean_object* x_14; -x_12 = lean_unbox(x_2); -lean_dec(x_2); -x_13 = lean_unbox(x_7); -lean_dec(x_7); -x_14 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___lambda__3(x_1, x_12, x_3, x_4, x_5, x_6, x_13, x_8, x_9, x_10, x_11); -lean_dec(x_6); -return x_14; -} -} -lean_object* l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; lean_object* x_6; -x_5 = lean_unbox(x_2); -lean_dec(x_2); -x_6 = l_List_map___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__7(x_1, x_5, x_3, x_4); -return x_6; -} -} -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__2___boxed(lean_object* x_1) { -_start: -{ -lean_object* x_2; -x_2 = l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___lambda__2(x_1); -lean_dec(x_1); -return x_2; -} -} -lean_object* l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -uint8_t x_6; lean_object* x_7; -x_6 = lean_unbox(x_4); -lean_dec(x_4); -x_7 = l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1(x_1, x_2, x_3, x_6, x_5); -return x_7; -} -} -lean_object* l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____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) { -_start: -{ -uint8_t x_7; lean_object* x_8; -x_7 = lean_unbox(x_2); -lean_dec(x_2); -x_8 = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____lambda__1(x_1, x_7, x_3, x_4, x_5, x_6); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_8; -} -} -lean_object* l_Std_RBNode_find___at_Lean_getElaboratorStrategy___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -if (lean_obj_tag(x_1) == 0) -{ -lean_object* x_3; -x_3 = lean_box(0); -return x_3; -} -else -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; -x_4 = lean_ctor_get(x_1, 0); -x_5 = lean_ctor_get(x_1, 1); -x_6 = lean_ctor_get(x_1, 2); -x_7 = lean_ctor_get(x_1, 3); -x_8 = l_Lean_Name_quickLt(x_2, x_5); -if (x_8 == 0) -{ -uint8_t x_9; -x_9 = l_Lean_Name_quickLt(x_5, x_2); -if (x_9 == 0) -{ -lean_object* x_10; -lean_inc(x_6); -x_10 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_10, 0, x_6); -return x_10; -} -else -{ -x_1 = x_7; -goto _start; -} -} -else -{ -x_1 = x_4; -goto _start; -} -} -} -} -lean_object* l_Array_binSearchAux___at_Lean_getElaboratorStrategy___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -uint8_t x_5; -x_5 = lean_nat_dec_le(x_3, x_4); -if (x_5 == 0) -{ -lean_object* x_6; -lean_dec(x_4); -lean_dec(x_3); -x_6 = lean_box(0); -return x_6; -} -else -{ -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; uint8_t x_14; -x_7 = lean_nat_add(x_3, x_4); -x_8 = lean_unsigned_to_nat(2u); -x_9 = lean_nat_div(x_7, x_8); -lean_dec(x_7); -x_10 = l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___closed__1; -x_11 = lean_array_get(x_10, x_1, x_9); -x_12 = lean_ctor_get(x_11, 0); -lean_inc(x_12); -x_13 = lean_ctor_get(x_2, 0); -x_14 = l_Lean_Name_quickLt(x_12, x_13); -if (x_14 == 0) -{ -uint8_t x_15; -lean_dec(x_4); -x_15 = l_Lean_Name_quickLt(x_13, x_12); -lean_dec(x_12); -if (x_15 == 0) -{ -lean_object* x_16; -lean_dec(x_9); -lean_dec(x_3); -x_16 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_16, 0, x_11); -return x_16; -} -else -{ -lean_object* x_17; uint8_t x_18; -lean_dec(x_11); -x_17 = lean_unsigned_to_nat(0u); -x_18 = lean_nat_dec_eq(x_9, x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; -x_19 = lean_unsigned_to_nat(1u); -x_20 = lean_nat_sub(x_9, x_19); -lean_dec(x_9); -x_4 = x_20; -goto _start; -} -else -{ -lean_object* x_22; -lean_dec(x_9); -lean_dec(x_3); -x_22 = lean_box(0); -return x_22; -} -} -} -else -{ -lean_object* x_23; lean_object* x_24; -lean_dec(x_12); -lean_dec(x_11); -lean_dec(x_3); -x_23 = lean_unsigned_to_nat(1u); -x_24 = lean_nat_add(x_9, x_23); -lean_dec(x_9); -x_3 = x_24; -goto _start; -} -} -} -} -lean_object* l_Lean_EnumAttributes_getValue___at_Lean_getElaboratorStrategy___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_Environment_getModuleIdxFor_x3f(x_2, x_3); -if (lean_obj_tag(x_4) == 0) -{ -lean_object* x_5; lean_object* x_6; lean_object* x_7; -x_5 = lean_ctor_get(x_1, 1); -x_6 = l_Lean_PersistentEnvExtension_getState___rarg(x_5, x_2); -x_7 = l_Std_RBNode_find___at_Lean_getElaboratorStrategy___spec__2(x_6, x_3); -lean_dec(x_3); -lean_dec(x_6); -return x_7; -} -else -{ -lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_8 = lean_ctor_get(x_4, 0); -lean_inc(x_8); -lean_dec(x_4); -x_9 = lean_ctor_get(x_1, 1); -x_10 = l_Lean_PersistentEnvExtension_getModuleEntries___rarg(x_9, x_2, x_8); -lean_dec(x_8); -x_11 = 1; -x_12 = lean_box(x_11); -x_13 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_13, 0, x_3); -lean_ctor_set(x_13, 1, x_12); -x_14 = lean_array_get_size(x_10); -x_15 = lean_unsigned_to_nat(1u); -x_16 = lean_nat_sub(x_14, x_15); -lean_dec(x_14); -x_17 = lean_unsigned_to_nat(0u); -x_18 = l_Array_binSearchAux___at_Lean_getElaboratorStrategy___spec__3(x_10, x_13, x_17, x_16); -lean_dec(x_13); -lean_dec(x_10); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; -x_19 = lean_box(0); -return x_19; -} -else -{ -uint8_t x_20; -x_20 = !lean_is_exclusive(x_18); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -x_21 = lean_ctor_get(x_18, 0); -x_22 = lean_ctor_get(x_21, 1); -lean_inc(x_22); -lean_dec(x_21); -lean_ctor_set(x_18, 0, x_22); -return x_18; -} -else -{ -lean_object* x_23; lean_object* x_24; lean_object* x_25; -x_23 = lean_ctor_get(x_18, 0); -lean_inc(x_23); -lean_dec(x_18); -x_24 = lean_ctor_get(x_23, 1); -lean_inc(x_24); -lean_dec(x_23); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_24); -return x_25; -} -} -} -} -} -lean_object* lean_get_elaborator_strategy(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; -x_3 = l_Lean_elaboratorStrategyAttrs; -x_4 = l_Lean_EnumAttributes_getValue___at_Lean_getElaboratorStrategy___spec__1(x_3, x_1, x_2); -lean_dec(x_1); -return x_4; -} -} -lean_object* l_Std_RBNode_find___at_Lean_getElaboratorStrategy___spec__2___boxed(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; -x_3 = l_Std_RBNode_find___at_Lean_getElaboratorStrategy___spec__2(x_1, x_2); -lean_dec(x_2); -lean_dec(x_1); -return x_3; -} -} -lean_object* l_Array_binSearchAux___at_Lean_getElaboratorStrategy___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Array_binSearchAux___at_Lean_getElaboratorStrategy___spec__3(x_1, x_2, x_3, x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_5; -} -} -lean_object* l_Lean_EnumAttributes_getValue___at_Lean_getElaboratorStrategy___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; -x_4 = l_Lean_EnumAttributes_getValue___at_Lean_getElaboratorStrategy___spec__1(x_1, x_2, x_3); -lean_dec(x_2); -lean_dec(x_1); -return x_4; -} -} -lean_object* initialize_Init(lean_object*); -lean_object* initialize_Lean_Attributes(lean_object*); -static bool _G_initialized = false; -lean_object* initialize_Lean_Elab_StrategyAttrs(lean_object* w) { -lean_object * res; -if (_G_initialized) return lean_io_result_mk_ok(lean_box(0)); -_G_initialized = true; -res = initialize_Init(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -res = initialize_Lean_Attributes(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -lean_dec_ref(res); -l_Lean_Lean_Elab_StrategyAttrs___instance__1 = _init_l_Lean_Lean_Elab_StrategyAttrs___instance__1(); -l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___closed__1 = _init_l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___closed__1(); -lean_mark_persistent(l_Array_qpartition_loop___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__4___closed__1); -l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__1 = _init_l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__1(); -lean_mark_persistent(l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__1); -l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__2 = _init_l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__2(); -lean_mark_persistent(l_Lean_registerEnumAttributes___at_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____spec__1___closed__2); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__1 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__1); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__2 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__2); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__3 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__3); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__4 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__4(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__4); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__5 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__5(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__5); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__6 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__6(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__6); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__7 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__7(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__7); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__8 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__8(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__8); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__9 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__9(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__9); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__10 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__10(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__10); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__11 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__11(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__11); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__12 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__12(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__12); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__13 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__13(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__13); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__14 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__14(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__14); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__15 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__15(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__15); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__16 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__16(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__16); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__17 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__17(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__17); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__18 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__18(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__18); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__19 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__19(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__19); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__20 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__20(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__20); -l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__21 = _init_l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__21(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10____closed__21); -res = l_Lean_initFn____x40_Lean_Elab_StrategyAttrs___hyg_10_(lean_io_mk_world()); -if (lean_io_result_is_error(res)) return res; -l_Lean_elaboratorStrategyAttrs = lean_io_result_get_value(res); -lean_mark_persistent(l_Lean_elaboratorStrategyAttrs); -lean_dec_ref(res); -return lean_io_result_mk_ok(lean_box(0)); -} -#ifdef __cplusplus -} -#endif