chore: update stage0
This commit is contained in:
parent
5eb5fa49cf
commit
237f392cc1
273 changed files with 586047 additions and 39379 deletions
23
stage0/src/CMakeLists.txt
generated
23
stage0/src/CMakeLists.txt
generated
|
|
@ -73,6 +73,7 @@ option(USE_GMP "USE_GMP" ON)
|
|||
|
||||
# development-specific options
|
||||
option(CHECK_OLEAN_VERSION "Only load .olean files compiled with the current version of Lean" OFF)
|
||||
option(USE_LAKE "Use Lake instead of lean.mk for building core libs from language server" OFF)
|
||||
|
||||
set(LEAN_EXTRA_MAKE_OPTS "" CACHE STRING "extra options to lean --make")
|
||||
set(LEANC_CC ${CMAKE_C_COMPILER} CACHE STRING "C compiler to use in `leanc`")
|
||||
|
|
@ -577,16 +578,12 @@ else()
|
|||
string(APPEND CMAKE_EXE_LINKER_FLAGS " -lInit_shared -lleanshared")
|
||||
endif()
|
||||
|
||||
if(${STAGE} GREATER 0 AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Emscripten")
|
||||
if(NOT EXISTS ${LEAN_SOURCE_DIR}/lake/Lake.lean)
|
||||
message(FATAL_ERROR "src/lake does not exist. Please check out the Lake submodule using `git submodule update --init src/lake`.")
|
||||
endif()
|
||||
|
||||
#add_custom_target(lake ALL
|
||||
# WORKING_DIRECTORY ${LEAN_SOURCE_DIR}
|
||||
# DEPENDS leanshared
|
||||
# COMMAND $(MAKE) -f ${CMAKE_BINARY_DIR}/stdlib.make Lake
|
||||
# VERBATIM)
|
||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Emscripten")
|
||||
add_custom_target(lake ALL
|
||||
WORKING_DIRECTORY ${LEAN_SOURCE_DIR}
|
||||
DEPENDS leanshared
|
||||
COMMAND $(MAKE) -f ${CMAKE_BINARY_DIR}/stdlib.make Lake
|
||||
VERBATIM)
|
||||
endif()
|
||||
|
||||
if(PREV_STAGE)
|
||||
|
|
@ -658,3 +655,9 @@ endif()
|
|||
string(REPLACE "$" "$$" CMAKE_EXE_LINKER_FLAGS_MAKE "${CMAKE_EXE_LINKER_FLAGS}")
|
||||
string(REPLACE "$" "$$" CMAKE_EXE_LINKER_FLAGS_MAKE_MAKE "${CMAKE_EXE_LINKER_FLAGS_MAKE}")
|
||||
configure_file(${LEAN_SOURCE_DIR}/stdlib.make.in ${CMAKE_BINARY_DIR}/stdlib.make)
|
||||
|
||||
if(USE_LAKE AND STAGE EQUAL 1)
|
||||
configure_file(${LEAN_SOURCE_DIR}/lakefile.toml.in ${LEAN_SOURCE_DIR}/lakefile.toml)
|
||||
configure_file(${LEAN_SOURCE_DIR}/lakefile.toml.in ${LEAN_SOURCE_DIR}/../tests/lakefile.toml)
|
||||
configure_file(${LEAN_SOURCE_DIR}/lakefile.toml.in ${LEAN_SOURCE_DIR}/../lakefile.toml)
|
||||
endif()
|
||||
|
|
|
|||
450
stage0/src/lake/README.md
generated
Normal file
450
stage0/src/lake/README.md
generated
Normal file
|
|
@ -0,0 +1,450 @@
|
|||
# Lake
|
||||
|
||||
Lake (Lean Make) is the new build system and package manager for Lean 4.
|
||||
With Lake, the package's configuration is written in Lean inside a dedicated `lakefile.lean` stored in the root of the package's directory.
|
||||
|
||||
Each `lakefile.lean` includes a `package` declaration (akin to `main`) which defines the package's basic configuration. It also typically includes build configurations for different targets (e.g., Lean libraries and binary executables) and Lean scripts to run on the command line (via `lake script run`).
|
||||
|
||||
***This README provides information about Lake relative to the current commit. If you are looking for documentation for the Lake version shipped with a given Lean release, you should look at the README of that version.***
|
||||
|
||||
## Table of Contents
|
||||
|
||||
* [Getting Lake](#getting-lake)
|
||||
* [Creating and Building a Package](#creating-and-building-a-package)
|
||||
* [Glossary of Terms](#glossary-of-terms)
|
||||
* [Package Configuration Options](#package-configuration-options)
|
||||
+ [Layout](#layout)
|
||||
+ [Build & Run](#build--run)
|
||||
+ [Test & Lint](#test--lint)
|
||||
+ [Cloud Releases](#cloud-releases)
|
||||
* [Defining Build Targets](#defining-build-targets)
|
||||
+ [Lean Libraries](#lean-libraries)
|
||||
+ [Binary Executables](#binary-executables)
|
||||
+ [External Libraries](#external-libraries)
|
||||
+ [Custom Targets](#custom-targets)
|
||||
* [Defining New Facets](#defining-new-facets)
|
||||
* [Adding Dependencies](#adding-dependencies)
|
||||
+ [Syntax of `require`](#syntax-of-require)
|
||||
* [GitHub Release Builds](#github-release-builds)
|
||||
* [Writing and Running Scripts](#writing-and-running-scripts)
|
||||
* [Building and Running Lake from the Source](#building-and-running-lake-from-the-source)
|
||||
+ [Building with Nix Flakes](#building-with-nix-flakes)
|
||||
+ [Augmenting Lake's Search Path](#augmenting-lakes-search-path)
|
||||
|
||||
## Getting Lake
|
||||
|
||||
Lake is part of the [lean4](https://github.com/leanprover/lean4) repository and is distributed along with its official releases (e.g., as part of the [elan](https://github.com/leanprover/elan) toolchain). So if you have installed a semi-recent Lean 4 nightly, you should already have it! If you want to build the latest version from the source yourself, check out the [build instructions](#building-and-running-lake-from-the-source) at the bottom of this README.
|
||||
|
||||
## Creating and Building a Package
|
||||
|
||||
To create a new package, either run `lake init` to setup the package in the current directory or `lake new` to create it in a new directory. For example, we could create the package `hello` like so:
|
||||
|
||||
```
|
||||
$ mkdir hello
|
||||
$ cd hello
|
||||
$ lake init hello
|
||||
```
|
||||
|
||||
or like so:
|
||||
|
||||
```
|
||||
$ lake new hello
|
||||
$ cd hello
|
||||
```
|
||||
|
||||
Either way, Lake will create the following template directory structure and initialize a Git repository for the package.
|
||||
|
||||
```
|
||||
.lake/ # Lake output directory
|
||||
Hello/ # library source files; accessible via `import Hello.*`
|
||||
Basic.lean # an example library module file
|
||||
... # additional files should be added here
|
||||
Hello.lean # library root; imports standard modules from Hello
|
||||
Main.lean # main file of the executable (contains `def main`)
|
||||
lakefile.lean # Lake package configuration
|
||||
lean-toolchain # the Lean version used by the package
|
||||
.gitignore # excludes system-specific files (e.g. `build`) from Git
|
||||
```
|
||||
|
||||
The example modules files contain the following dummy "Hello World" program.
|
||||
|
||||
**Hello/Basic.lean**
|
||||
```lean
|
||||
def hello := "world"
|
||||
```
|
||||
|
||||
**Hello.lean**
|
||||
```lean
|
||||
-- This module serves as the root of the `Hello` library.
|
||||
-- Import modules here that should be built as part of the library.
|
||||
import «Hello».Basic
|
||||
```
|
||||
|
||||
**Main.lean**
|
||||
```lean
|
||||
import «Hello»
|
||||
|
||||
def main : IO Unit :=
|
||||
IO.println s!"Hello, {hello}!"
|
||||
```
|
||||
|
||||
Lake also creates a basic `lakefile.lean` for the package along with a `lean-toolchain` file that contains the name of the Lean toolchain Lake belongs to, which tells [`elan`](https://github.com/leanprover/elan) to use that Lean toolchain for the package.
|
||||
|
||||
|
||||
**lakefile.lean**
|
||||
```lean
|
||||
import Lake
|
||||
open Lake DSL
|
||||
|
||||
package «hello» where
|
||||
-- add package configuration options here
|
||||
|
||||
lean_lib «Hello» where
|
||||
-- add library configuration options here
|
||||
|
||||
@[default_target]
|
||||
lean_exe «hello» where
|
||||
root := `Main
|
||||
```
|
||||
|
||||
The command `lake build` is used to build the package (and its [dependencies](#adding-dependencies), if it has them) into a native executable. The result will be placed in `.lake/build/bin`. The command `lake clean` deletes `build`.
|
||||
|
||||
```
|
||||
$ lake build
|
||||
...
|
||||
$ ./.lake/build/bin/hello
|
||||
Hello, world!
|
||||
```
|
||||
|
||||
Examples of different package configurations can be found in the [`examples`](examples) folder of this repository. You can also pass a package template tp `lake init` or `lake new` to control what files Lake creates. For example, instead of using a Lean configuration file for this package, one could produce a TOML version via `lake new hello .toml`.
|
||||
|
||||
**lakefile.toml**
|
||||
```toml
|
||||
name = "hello"
|
||||
defaultTargets = ["hello"]
|
||||
|
||||
[[lean_lib]]
|
||||
name = "Hello"
|
||||
|
||||
[[lean_exe]]
|
||||
name = "hello"
|
||||
root = "Main"
|
||||
```
|
||||
|
||||
See `lake help init` or `lake help new` for more details on other template options.
|
||||
|
||||
## Glossary of Terms
|
||||
|
||||
Lake uses a lot of terms common in software development -- like workspace, package, library, executable, target, etc. -- and some more esoteric ones -- like facet. However, whether common or not, these terms mean different things to different people, so it is important to elucidate how Lake defines these terms:
|
||||
|
||||
* A **package** is the **fundamental unit of code distribution in Lake**. Packages can be sourced from the local file system or downloaded from the web (e.g., via Git). The `package` declaration in package's lakefile names it and [defines its basic properties](#package-configuration-options).
|
||||
|
||||
* A **lakefile** is the Lean file that configures a package. It defines how to view, edit, build, and run the code within it, and it specifies what other packages it may require in order to do so.
|
||||
|
||||
* If package `B` requires package `A`, then package `A` is a **dependency** of package B and package `B` is its **dependent**. Package `A` is **upstream** of package `B` and package `B` is reversely **downstream** of package `A`. See the [Adding Dependencies section](#adding-dependencies) for details on how to specify dependencies.
|
||||
|
||||
* A **workspace** is the **broadest organizational unit in Lake**. It bundles together a package (termed the **root**), its transitive dependencies, and Lake's environment. Every package can operate as the root of a workspace and the workspace will derive its configuration from this root.
|
||||
|
||||
* A **module** is the **smallest unit of code visible to Lake's build system**. It is generally represented by a Lean source file and a set of binary libraries (i.e., a Lean `olean` and `ilean` plus a system shared library if `precompileModules` is turned on). Modules can import one another in order to use each other's code and Lake exists primarily to facilitate this process.
|
||||
|
||||
* A **Lean library** is a collection of modules that share a single configuration. Its configuration defines a set of **module roots** that determines which modules are part of the library, and a set of **module globs** that selects which modules to build on a `lake build` of the library. See the [Lean Libraries section](#lean-libraries) for more details.
|
||||
|
||||
* A **Lean binary executable** is a binary executable (i.e., a program a user can run on their computer without Lean installed) built from a Lean module termed its **root** (which should have a `main` definition). See the [Binary Executables section](#binary-executables) for more details.
|
||||
|
||||
* An **external library** is a native (static) library built from foreign code (e.g., C) that is required by a package's Lean code in order to function (e.g., because it uses `@[extern]` to invoke code written in a foreign language). An `extern_lib` target is used to inform Lake of such a requirement and instruct Lake on how to build requisite library. Lake then automatically links the external library when appropriate to give the Lean code access to the foreign functions (or, more technically, the foreign symbols) it needs. See the [External Libraries section](#external-libraries) for more details.
|
||||
|
||||
* A **target** is the **fundamental build unit of Lake**. A package can defining any number of targets. Each target has a name, which is used to instruct Lake to build the target (e.g., through `lake build <target>`) and to keep track internally of a target's build status. Lake defines a set of builtin target types -- [Lean libraries](#lean-libraries), [binary executables](#binary-executables), and [external libraries](#external-libraries) -- but a user can [define their own custom targets as well](#custom-targets). Complex types (e.g., packages, libraries, modules) have multiple facets, each of which count as separate buildable targets. See the [Defining Build Targets section](#defining-build-targets) for more details.
|
||||
|
||||
* A **facet** is an element built from another organizational unit (e.g., a package, module, library, etc.). For instance, Lake produces `olean`, `ilean`, `c`, and `o` files all from a single module. Each of these components are thus termed a *facet* of the module. Similarly, Lake can build both static and shared binaries from a library. Thus, libraries have both `static` and `shared` facets. Lake also allows users to define their own custom facets to build from modules and packages, but this feature is currently experimental and not yet documented.
|
||||
|
||||
* A **trace** is a piece of data (generally a hash) which is used to verify whether a given target is up-to-date (i.e., does not need to be rebuilt). If the trace stored with a built target matches the trace computed during build, then a target is considered up-to-date. A target's trace is derived from its various **inputs** (e.g., source file, Lean toolchain, imports, etc.).
|
||||
|
||||
## Package Configuration Options
|
||||
|
||||
Lake provides a large assortment of configuration options for packages.
|
||||
|
||||
### Layout
|
||||
|
||||
These options control the top-level directory layout of the package and its build directory. Further paths specified by libraries, executables, and targets within the package are relative to these directories.
|
||||
|
||||
* `packagesDir`: The directory to which Lake should download remote dependencies. Defaults to `.lake/packages`.
|
||||
* `srcDir`: The directory containing the package's Lean source files. Defaults to the package's directory.
|
||||
* `buildDir`: The directory to which Lake should output the package's build results. Defaults to `build`.
|
||||
* `leanLibDir`: The build subdirectory to which Lake should output the package's binary Lean libraries (e.g., `.olean`, `.ilean` files). Defaults to `lib`.
|
||||
* `nativeLibDir`: The build subdirectory to which Lake should output the package's native libraries (e.g., `.a`, `.so`, `.dll` files). Defaults to `lib`.
|
||||
* `binDir`: The build subdirectory to which Lake should output the package's binary executables. Defaults to `bin`.
|
||||
* `irDir`: The build subdirectory to which Lake should output the package's intermediary results (e.g., `.c`, `.o` files). Defaults to `ir`.
|
||||
|
||||
### Build & Run
|
||||
|
||||
These options configure how code is built and run in the package. Libraries, executables, and other targets within a package can further add to parts of this configuration.
|
||||
|
||||
* `platformIndependent`: Asserts whether Lake should assume Lean modules are platform-independent. That is, whether lake should include the platform and platform-dependent elements in a module's trace. See the docstring of `Lake.LeanConfig.platformIndependent` for more details. Defaults to `none`.
|
||||
* `precompileModules`: Whether to compile each module into a native shared library that is loaded whenever the module is imported. This speeds up the evaluation of metaprograms and enables the interpreter to run functions marked `@[extern]`. Defaults to `false`.
|
||||
* `moreServerOptions`: An `Array` of additional options to pass to the Lean language server (i.e., `lean --server`) launched by `lake serve`.
|
||||
* `moreGlobalServerArgs`: An `Array` of additional arguments to pass to `lean --server` which apply both to this package and anything else in the same server session (e.g. when browsing other packages from the same session via go-to-definition)
|
||||
* `buildType`: The `BuildType` of targets in the package (see [`CMAKE_BUILD_TYPE`](https://stackoverflow.com/a/59314670)). One of `debug`, `relWithDebInfo`, `minSizeRel`, or `release`. Defaults to `release`.
|
||||
* `leanOptions`: Additional options to pass to both the Lean language server (i.e., `lean --server`) launched by `lake serve` and to `lean` while compiling Lean source files.
|
||||
* `moreLeanArgs`: An `Array` of additional arguments to pass to `lean` while compiling Lean source files.
|
||||
* `weakLeanArgs`: An `Array` of additional arguments to pass to `lean` while compiling Lean source files. Unlike `moreLeanArgs`, these arguments do not affect the trace of the build result, so they can be changed without triggering a rebuild. They come *before* `moreLeanArgs`.
|
||||
* `moreLeancArgs`: An `Array` of additional arguments to pass to `leanc` while compiling the C source files generated by `lean`. Lake already passes some flags based on the `buildType`, but you can change this by, for example, adding `-O0` and `-UNDEBUG`.
|
||||
* `weakLeancArgs`: An `Array` of additional arguments to pass to `leanc` while compiling the C source files generated by `lean`. Unlike `moreLeancArgs`, these arguments do not affect the trace of the build result, so they can be changed without triggering a rebuild. They come *before* `moreLeancArgs`.
|
||||
* `moreLinkArgs`: An `Array` of additional arguments to pass to `leanc` when linking (e.g., binary executables or shared libraries). These will come *after* the paths of `extern_lib` targets.
|
||||
* `weakLinkArgs`: An `Array` of additional arguments to pass to `leanc` when linking (e.g., binary executables or shared libraries) Unlike `moreLinkArgs`, these arguments do not affect the trace of the build result, so they can be changed without triggering a rebuild. They come *before* `moreLinkArgs`.
|
||||
* `extraDepTargets`: An `Array` of [target](#custom-targets) names that the package should always build before anything else.
|
||||
|
||||
### Test & Lint
|
||||
|
||||
The CLI commands `lake test` and `lake lint` use definitions configured by the workspace's root package to perform testing and linting (this referred to as the test or lint *driver*). In Lean configuration files, these can be specified by applying the `@[test_driver]` or `@[lint_driver]` to a `script`, `lean_exe`, or `lean_lb`. They can also be configured (in Lean or TOML format) via the following options on the package.
|
||||
|
||||
* `testDriver`: The name of the script, executable, or library to drive `lake test`.
|
||||
* `testDriverArgs`: An `Array` of arguments to pass to the package's test driver.
|
||||
* `lintDriver`: The name of the script or executable used by `lake lint`. Libraries cannot be lint drivers.
|
||||
* `lintDriverArgs`: An `Array` of arguments to pass to the package's lint driver.
|
||||
|
||||
You can specify definition from a dependency as a package's test or lint driver by using the syntax `<pkg>/<name>`. An executable driver will be built and then run, a script driver will just be run, and a library driver will just be built. A script or executable driver is run with any arguments configured by package (e.g., via `testDriverArgs`) followed by any specified on the CLI (e.g., via `lake lint -- <args>...`).
|
||||
|
||||
### Cloud Releases
|
||||
|
||||
These options define a cloud release for the package. See the section on [GitHub Release Builds](#github-release-builds) for more information.
|
||||
|
||||
* `releaseRepo`: The URL of the GitHub repository to upload and download releases of this package. If `none` (the default), for downloads, Lake uses the URL the package was download from (if it is a dependency) and for uploads, uses `gh`'s default.
|
||||
* `buildArchive`: The name of the build archive for the GitHub cloud release.
|
||||
Defaults to `{(pkg-)name}-{System.Platform.target}.tar.gz`.
|
||||
* `preferReleaseBuild`: Whether to prefer downloading a prebuilt release (from GitHub) rather than building this package from the source when this package is used as a dependency.
|
||||
|
||||
## Defining Build Targets
|
||||
|
||||
A Lake package can have many build targets, such as different Lean libraries and multiple binary executables. Any number of these declarations can be marked with the `@[default_target]` attribute to tell Lake to build them on a bare `lake build` of the package.
|
||||
|
||||
### Lean Libraries
|
||||
|
||||
A Lean library target defines a set of Lean modules available to `import` and how to build them.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```lean
|
||||
lean_lib «target-name» where
|
||||
-- configuration options go here
|
||||
```
|
||||
|
||||
```toml
|
||||
[[lean_lib]]
|
||||
name = "«target-name»"
|
||||
# more configuration options go here
|
||||
```
|
||||
|
||||
**Configuration Options**
|
||||
|
||||
* `srcDir`: The subdirectory of the package's source directory containing the library's source files. Defaults to the package's `srcDir`. (This will be passed to `lean` as the `-R` option.)
|
||||
* `roots`: An `Array` of root module `Name`(s) of the library. Submodules of these roots (e.g., `Lib.Foo` of `Lib`) are considered part of the library. Defaults to a single root of the target's name.
|
||||
* `globs`: An `Array` of module `Glob`(s) to build for the library. The term `glob` comes from [file globs](https://en.wikipedia.org/wiki/Glob_(programming)) (e.g., `foo/*`) on Unix. A submodule glob builds every Lean source file within the module's directory (i.e., ``Glob.submodules `Foo`` is essentially equivalent to a theoretical `import Foo.*`). Local imports of glob'ed files (i.e., fellow modules of the workspace) are also recursively built. Defaults to a `Glob.one` of each of the library's `roots`.
|
||||
* `libName`: The `String` name of the library. Used as a base for the file names of its static and dynamic binaries. Defaults to the name of the target.
|
||||
* `extraDepTargets`: An `Array` of [target](#custom-targets) names to build before the library's modules.
|
||||
* `defaultFacets`: An `Array` of library facets to build on a bare `lake build` of the library. For example, setting this to `#[LeanLib.sharedLib]` will build the shared library facet.
|
||||
* `nativeFacets`: A function `(shouldExport : Bool) → Array` determining the [module facets](#defining-new-facets) to build and combine into the library's static and shared libraries. If `shouldExport` is true, the module facets should export any symbols a user may expect to lookup in the library. For example, the Lean interpreter will use exported symbols in linked libraries. Defaults to a singleton of `Module.oExportFacet` (if `shouldExport`) or `Module.oFacet`. That is, the object files compiled from the Lean sources, potentially with exported Lean symbols.
|
||||
* `platformIndependent`, `precompileModules`, `buildType`, `leanOptions`, `<more|weak><Lean|Leanc|Link>Args`, `moreServerOptions`: Augments the package's corresponding configuration option. The library's arguments come after, modules are precompiled if either the library or package are, `platformIndependent` falls back to the package on `none`, and the build type is the minimum of the two (`debug` is the lowest, and `release` is the highest).
|
||||
|
||||
### Binary Executables
|
||||
|
||||
A Lean executable target builds a binary executable from a Lean module with a `main` function.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```lean
|
||||
lean_exe «target-name» where
|
||||
-- configuration options go here
|
||||
```
|
||||
|
||||
```toml
|
||||
[[lean_exe]]
|
||||
name = "«target-name»"
|
||||
# more configuration options go here
|
||||
```
|
||||
|
||||
**Configuration Options**
|
||||
|
||||
* `srcDir`: The subdirectory of the package's source directory containing the executable's source file. Defaults to the package's `srcDir`. (This will be passed to `lean` as the `-R` option.)
|
||||
* `root`: The root module `Name` of the binary executable. Should include a `main` definition that will serve as the entry point of the program. The root is built by recursively building its local imports (i.e., fellow modules of the workspace). Defaults to the name of the target.
|
||||
* `exeName`: The `String` name of the binary executable. Defaults to the target name with any `.` replaced with a `-`.
|
||||
* `extraDepTargets`: An `Array` of [target](#custom-targets) names to build before the executable's modules.
|
||||
* `nativeFacets`: A function `(shouldExport : Bool) → Array` determining the [module facets](#defining-new-facets) to build and link into the executable. If `shouldExport` is true, the module facets should export any symbols a user may expect to lookup in the library. For example, the Lean interpreter will use exported symbols in linked libraries. Defaults to a singleton of `Module.oExportFacet` (if `shouldExport`) or `Module.oFacet`. That is, the object file compiled from the Lean source, potentially with exported Lean symbols.
|
||||
* `supportInterpreter`: Whether to expose symbols within the executable to the Lean interpreter. This allows the executable to interpret Lean files (e.g., via `Lean.Elab.runFrontend`). Implementation-wise, on Windows, the Lean shared libraries are linked to the executable and, on other systems, the executable is linked with `-rdynamic`. This increases the size of the binary on Linux and, on Windows, requires `libInit_shared.dll` and `libleanshared.dll` to be co-located with the executable or part of `PATH` (e.g., via `lake exe`). Thus, this feature should only be enabled when necessary. Defaults to `false`.
|
||||
* `platformIndependent`, `precompileModules`, `buildType`, `leanOptions`, `<more|weak><Lean|Leanc|Link>Args`, `moreServerOptions`: Augments the package's corresponding configuration option. The library's arguments come after, modules are precompiled if either the library or package are, `platformIndependent` falls back to the package on `none`, and the build type is the minimum of the two (`debug` is the lowest, and `release` is the highest).
|
||||
|
||||
### External Libraries
|
||||
|
||||
A external library target is a non-Lean **static** library that will be linked to the binaries of the package and its dependents (e.g., their shared libraries and executables).
|
||||
|
||||
**Important:** For the external library to link properly when `precompileModules` is on, the static library produced by an `extern_lib` target must following the platform's naming conventions for libraries (i.e., be named `foo.a` on Windows and `libfoo.a` on Unix). To make this easy, there is the `Lake.nameToStaticLib` utility function to convert a library name into its proper file name for the platform.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```lean
|
||||
extern_lib «target-name» (pkg : NPackage _package.name) :=
|
||||
-- a build function that produces its static library
|
||||
```
|
||||
|
||||
The declaration is essentially a wrapper around a `System.FilePath` [target](#custom-targets). Like such a target, the `pkg` parameter and its type specifier are optional and body should be a term of type `FetchM (BuildJob System.FilePath)` function that builds the static library. The `pkg` parameter is of type `NPackage _package.name` to provably demonstrate that it is the package in which the external library is defined.
|
||||
|
||||
### Custom Targets
|
||||
|
||||
A arbitrary target that can be built via `lake build <target-name>`.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```lean
|
||||
target «target-name» (pkg : NPackage _package.name) : α :=
|
||||
-- a build function that produces a `BuildJob α`
|
||||
```
|
||||
|
||||
The `pkg` parameter and its type specifier are optional and the body should be a term of type `FetchM (BuildJob α)`. The `pkg` parameter is of type `NPackage _package.name` to provably demonstrate that it is the package in which the target is defined.
|
||||
|
||||
## Defining New Facets
|
||||
|
||||
A Lake package can also define new *facets* for packages, modules, and libraries. Once defined, the new facet (e.g., `facet`) can be built on any current or future object of its type (e.g., through `lake build pkg:facet` for a package facet). Module facets can also be provided to [`LeanLib.nativeFacets`](#lean-libraries) to have Lake build and use them automatically when producing shared libraries.
|
||||
|
||||
**Syntax**
|
||||
|
||||
```lean
|
||||
package_facet «facet-name» (pkg : Package) : α :=
|
||||
-- a build function that produces a `BuildJob α`
|
||||
|
||||
module_facet «facet-name» (mod : Module) : α :=
|
||||
-- a build function that produces a `BuildJob α`
|
||||
|
||||
library_facet «facet-name» (lib : LeanLib) : α :=
|
||||
-- a build function that produces a `BuildJob α`
|
||||
```
|
||||
|
||||
In all of these, the object parameter and its type specifier are optional and the body should be a term of type `FetchM (BuildJob α)`.
|
||||
|
||||
## Adding Dependencies
|
||||
|
||||
Lake packages can have dependencies. Dependencies are other Lake packages the current package needs in order to function. They can be sourced directly from a local folder (e.g., a subdirectory of the package) or come from remote Git repositories. For example, one can depend on [mathlib](https://github.com/leanprover-community/mathlib4) like so:
|
||||
|
||||
```lean
|
||||
package hello
|
||||
|
||||
require mathlib from git
|
||||
"https://github.com/leanprover-community/mathlib4.git"
|
||||
```
|
||||
|
||||
The next run of `lake build` (or refreshing dependencies in an editor like VSCode) will clone the mathlib repository and build it. Information on the specific revision cloned will then be saved to `lake-manifest.json` to enable reproducibility (i.e., ensure the same version of mathlib is used by future builds). To update `mathlib` after this, you will need to run `lake update` -- other commands do not update resolved dependencies.
|
||||
|
||||
For theorem proving packages which depend on `mathlib`, you can also run `lake new <package-name> math` to generate a package configuration file that already has the `mathlib` dependency (and no binary executable target).
|
||||
|
||||
**NOTE:** For mathlib in particular, you should run `lake exe cache get` prior to a `lake build` after adding or updating a mathlib dependency. Otherwise, it will be rebuilt from scratch (which can take hours). For more information, see mathlib's [wiki page](https://github.com/leanprover-community/mathlib4/wiki/Using-mathlib4-as-a-dependency) on using it as a dependency.
|
||||
|
||||
### Syntax of `require`
|
||||
|
||||
The `require` command has two forms:
|
||||
|
||||
```lean
|
||||
require foo from "path"/"to"/"local"/"package" with NameMap.empty
|
||||
require bar from git "url.git"@"rev"/"optional"/"path-to"/"dir-with-pkg"
|
||||
```
|
||||
|
||||
The first form adds a local dependency and the second form adds a Git dependency. For a Git dependency, the revision can be a commit hash, branch, or tag. Also, the `@"rev"` and `/"path-to"/"term"` parts of the `require` are optional.
|
||||
|
||||
Both forms also support an optional `with` clause to specify arguments to pass to the dependency's package configuration (i.e., same as `args` in a `lake build -- <args...>` invocation). The elements of both the `from` and `with` clauses are proper terms so normal computation is supported within them (though parentheses made be required to disambiguate the syntax).
|
||||
|
||||
To `require` a package in a TOML configuration, the equivalent syntax is:
|
||||
|
||||
```toml
|
||||
[[require]]
|
||||
path = "path/to/local/package"
|
||||
options = {}
|
||||
|
||||
[[require]]
|
||||
git = "url.git"
|
||||
rev = "rev"
|
||||
subDir = "optional/path-to/dir-with-pkg"
|
||||
```
|
||||
|
||||
## GitHub Release Builds
|
||||
|
||||
Lake supports uploading and downloading build artifacts (i.e., the archived build directory) to/from the GitHub releases of packages. This enables end users to fetch pre-built artifacts from the cloud without needed to rebuild the package from the source themselves.
|
||||
|
||||
### Downloading
|
||||
|
||||
To download artifacts, one should configure the package [options](#cloud-releases) `releaseRepo?` and `buildArchive?` as necessary to point to the GitHub repository hosting the release and the correct artifact name within it (if the defaults are not sufficient). Then, set `preferReleaseBuild := true` to tell Lake to fetch and unpack it as an extra package dependency.
|
||||
|
||||
Lake will only fetch release builds as part of its standard build process if the package wanting it is a dependency (as the root package is expected to modified and thus not often compatible with this scheme). However, should one wish to fetch a release for a root package (e.g., after cloning the release's source but before editing), one can manually do so via `lake build :release`.
|
||||
|
||||
Lake internally uses `curl` to download the release and `tar` to unpack it, so the end user must have both tools installed to use this feature. If Lake fails to fetch a release for any reason, it will move on to building from the source. Also note that this mechanism is not technically limited to GitHub, any Git host that uses the same URL scheme works as well.
|
||||
|
||||
### Uploading
|
||||
|
||||
To upload a built package as an artifact to a GitHub release, Lake provides the `lake upload <tag>` command as a convenient shorthand. This command uses `tar` to pack the package's build directory into an archive and uses `gh release upload` to attach it to a pre-existing GitHub release for `tag`. Thus, in order to use it, the package uploader (but not the downloader) needs to have `gh`, the [GitHub CLI](https://cli.github.com/), installed and in `PATH`.
|
||||
|
||||
## Writing and Running Scripts
|
||||
|
||||
A configuration file can also contain a number of `scripts` declaration. A script is an arbitrary `(args : List String) → ScriptM UInt32` definition that can be run by `lake script run`. For example, given the following `lakefile.lean`:
|
||||
|
||||
```lean
|
||||
import Lake
|
||||
open Lake DSL
|
||||
|
||||
package scripts
|
||||
|
||||
/--
|
||||
Display a greeting
|
||||
|
||||
USAGE:
|
||||
lake run greet [name]
|
||||
|
||||
Greet the entity with the given name. Otherwise, greet the whole world.
|
||||
-/
|
||||
script greet (args) do
|
||||
if h : 0 < args.length then
|
||||
IO.println s!"Hello, {args[0]'h}!"
|
||||
else
|
||||
IO.println "Hello, world!"
|
||||
return 0
|
||||
```
|
||||
|
||||
The script `greet` can be run like so:
|
||||
|
||||
```
|
||||
$ lake script run greet
|
||||
Hello, world!
|
||||
$ lake script run greet me
|
||||
Hello, me!
|
||||
```
|
||||
|
||||
You can print the docstring of a script with `lake script doc`:
|
||||
|
||||
```
|
||||
$ lake script doc greet
|
||||
Display a greeting
|
||||
|
||||
USAGE:
|
||||
lake run greet [name]
|
||||
|
||||
Greet the entity with the given name. Otherwise, greet the whole world.
|
||||
```
|
||||
|
||||
## Building and Running Lake from the Source
|
||||
|
||||
If you already have a Lean installation with `lake` packaged with it, you can build a new `lake` by just running `lake build`.
|
||||
|
||||
Otherwise, there is a pre-packaged `build.sh` shell script that can be used to build Lake. It passes it arguments down to a `make` command. So, if you have more than one core, you will probably want to use a `-jX` option to specify how many build tasks you want it to run in parallel. For example:
|
||||
|
||||
```shell
|
||||
$ ./build.sh -j4
|
||||
```
|
||||
|
||||
After building, the `lake` binary will be located at `.lake/build/bin/lake` and the library's `.olean` files will be located in `.lake/build/lib`.
|
||||
|
||||
### Building with Nix Flakes
|
||||
|
||||
Lake is built as part of the main Lean 4 flake at the repository root.
|
||||
|
||||
### Augmenting Lake's Search Path
|
||||
|
||||
The `lake` executable needs to know where to find the Lean library files (e.g., `.olean`, `.ilean`) for the modules used in the package configuration file (and their source files for go-to-definition support in the editor). Lake will intelligently setup an initial search path based on the location of its own executable and `lean`.
|
||||
|
||||
Specifically, if Lake is co-located with `lean` (i.e., there is `lean` executable in the same directory as itself), it will assume it was installed with Lean and that both Lean and Lake are located under their shared sysroot. In particular, their binaries are located in `<sysroot>/bin`, their Lean libraries in `<sysroot>/lib/lean`, Lean's source files in `<sysroot>/src/lean`, and Lake's source files in `<sysroot>/src/lean/lake`. Otherwise, it will run `lean --print-prefix` to find Lean's sysroot and assume that Lean's files are located as aforementioned, but that `lake` is at `<lake-home>/.lake/build/bin/lake` with its Lean libraries at `<lake-home>/.lake/build/lib` and its sources directly in `<lake-home>`.
|
||||
|
||||
This search path can be augmented by including other directories of Lean libraries in the `LEAN_PATH` environment variable (and their sources in `LEAN_SRC_PATH`). This can allow the user to correct Lake's search when the files for Lean (or Lake itself) are in non-standard locations. However, such directories will *not* take precedence over the initial search path. This is important during development, as this prevents the Lake version used to build Lake from using the Lake version being built's Lean libraries (instead of its own) to elaborate Lake's `lakefile.lean` (which can lead to all kinds of errors).
|
||||
43
stage0/src/lakefile.toml.in
generated
Normal file
43
stage0/src/lakefile.toml.in
generated
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# This file allows lake to build Lean, Init, and Lake as Lean libraries.
|
||||
#
|
||||
# This is the file used when working with the stage0 compiler on the libraries
|
||||
#
|
||||
# It is not yet possible to build the compiler and other tooling executables with Lake; to build
|
||||
# them, please consult the instructions in doc/dev/index.md.
|
||||
|
||||
name = "lean4"
|
||||
|
||||
defaultTargets = ["Init", "Lean", "Lake"]
|
||||
|
||||
# The root of all the compiler output directories
|
||||
buildDir = "${CMAKE_BINARY_DIR}"
|
||||
|
||||
# The directory of Lean source files (i.e., `src`)
|
||||
srcDir = "${LEAN_SOURCE_DIR}"
|
||||
|
||||
# Destination C files and other intermediate representations
|
||||
irDir = "lib/temp"
|
||||
|
||||
# Destination for olean files
|
||||
leanLibDir = "lib/lean"
|
||||
|
||||
# Destination for static libraries
|
||||
nativeLibDir = "lib/lean"
|
||||
|
||||
[[lean_lib]]
|
||||
name = "Init"
|
||||
|
||||
[[lean_lib]]
|
||||
name = "Lean"
|
||||
globs = [
|
||||
# Library root
|
||||
"Lean",
|
||||
# Deliberate orphan file so `import Lean` does not induce an LLVM dependency
|
||||
"Lean.Compiler.IR.EmitLLVM",
|
||||
# New compiler orphan file used in tests
|
||||
"Lean.Compiler.LCNF.Probing",
|
||||
]
|
||||
|
||||
[[lean_lib]]
|
||||
name = "Lake"
|
||||
srcDir = "lake"
|
||||
4
stage0/src/stdlib.make.in
generated
4
stage0/src/stdlib.make.in
generated
|
|
@ -26,7 +26,7 @@ LEANMAKE_OPTS=\
|
|||
CMAKE_LIKE_OUTPUT=1
|
||||
|
||||
ifeq "${STAGE}" "0"
|
||||
LEANMAKE_OPTS+=C_ONLY=1 C_OUT=../stdlib/
|
||||
LEANMAKE_OPTS+=C_ONLY=1 C_OUT=${LEAN_SOURCE_DIR}/../stdlib/
|
||||
endif
|
||||
|
||||
.PHONY: Init Lean leanshared Lake lean
|
||||
|
|
@ -41,7 +41,7 @@ Init:
|
|||
|
||||
Lean: Init
|
||||
+"${LEAN_BIN}/leanmake" lib lib.export PKG=Lean $(LEANMAKE_OPTS)
|
||||
|
||||
|
||||
${LIB}/temp/empty.c:
|
||||
touch $@
|
||||
|
||||
|
|
|
|||
2
stage0/stdlib/Init/Data/Array/Basic.c
generated
2
stage0/stdlib/Init/Data/Array/Basic.c
generated
|
|
@ -6372,7 +6372,7 @@ lean_object* x_7; lean_object* x_8; uint8_t x_9;
|
|||
x_7 = lean_array_uget(x_3, x_4);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_2);
|
||||
x_8 = lean_apply_2(x_1, x_2, x_7);
|
||||
x_8 = lean_apply_2(x_1, x_7, x_2);
|
||||
x_9 = lean_unbox(x_8);
|
||||
lean_dec(x_8);
|
||||
if (x_9 == 0)
|
||||
|
|
|
|||
2
stage0/stdlib/Init/Data/Array/Lemmas.c
generated
2
stage0/stdlib/Init/Data/Array/Lemmas.c
generated
|
|
@ -525,7 +525,7 @@ lean_object* x_7; lean_object* x_8; uint8_t x_9;
|
|||
x_7 = lean_array_uget(x_3, x_4);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_2);
|
||||
x_8 = lean_apply_2(x_1, x_2, x_7);
|
||||
x_8 = lean_apply_2(x_1, x_7, x_2);
|
||||
x_9 = lean_unbox(x_8);
|
||||
lean_dec(x_8);
|
||||
if (x_9 == 0)
|
||||
|
|
|
|||
2
stage0/stdlib/Init/Data/BitVec/Basic.c
generated
2
stage0/stdlib/Init/Data/BitVec/Basic.c
generated
|
|
@ -1773,7 +1773,7 @@ x_4 = lean_unsigned_to_nat(2u);
|
|||
x_5 = lean_nat_pow(x_4, x_1);
|
||||
x_6 = lean_nat_sub(x_5, x_3);
|
||||
lean_dec(x_5);
|
||||
x_7 = lean_nat_add(x_2, x_6);
|
||||
x_7 = lean_nat_add(x_6, x_2);
|
||||
lean_dec(x_6);
|
||||
x_8 = l_BitVec_ofNat(x_1, x_7);
|
||||
lean_dec(x_7);
|
||||
|
|
|
|||
21
stage0/stdlib/Init/Data/Char/Lemmas.c
generated
21
stage0/stdlib/Init/Data/Char/Lemmas.c
generated
|
|
@ -13,6 +13,27 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_String_csize(uint32_t);
|
||||
LEAN_EXPORT lean_object* l_String_csize___boxed(lean_object*);
|
||||
lean_object* l_Char_utf8Size(uint32_t);
|
||||
LEAN_EXPORT lean_object* l_String_csize(uint32_t x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Char_utf8Size(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_String_csize___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint32_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox_uint32(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_String_csize(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init_Data_Char_Basic(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Init_Data_UInt_Lemmas(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
|
|
|
|||
2
stage0/stdlib/Init/Data/Fin/Basic.c
generated
2
stage0/stdlib/Init/Data/Fin/Basic.c
generated
|
|
@ -292,7 +292,7 @@ _start:
|
|||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_4 = lean_nat_sub(x_1, x_3);
|
||||
x_5 = lean_nat_add(x_2, x_4);
|
||||
x_5 = lean_nat_add(x_4, x_2);
|
||||
lean_dec(x_4);
|
||||
x_6 = lean_nat_mod(x_5, x_1);
|
||||
lean_dec(x_5);
|
||||
|
|
|
|||
2
stage0/stdlib/Init/Data/List/Basic.c
generated
2
stage0/stdlib/Init/Data/List/Basic.c
generated
|
|
@ -2632,7 +2632,7 @@ lean_inc(x_6);
|
|||
lean_dec(x_3);
|
||||
lean_inc(x_1);
|
||||
lean_inc(x_2);
|
||||
x_7 = lean_apply_2(x_1, x_2, x_5);
|
||||
x_7 = lean_apply_2(x_1, x_5, x_2);
|
||||
x_8 = lean_unbox(x_7);
|
||||
lean_dec(x_7);
|
||||
if (x_8 == 0)
|
||||
|
|
|
|||
36
stage0/stdlib/Init/Data/String/Basic.c
generated
36
stage0/stdlib/Init/Data/String/Basic.c
generated
|
|
@ -15,6 +15,7 @@ extern "C" {
|
|||
#endif
|
||||
LEAN_EXPORT lean_object* l_String_next_x27___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Substring_nextn___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3894____boxed(lean_object*, lean_object*);
|
||||
uint32_t lean_string_utf8_get_bang(lean_object*, lean_object*);
|
||||
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_revFindAux(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -49,6 +50,7 @@ LEAN_EXPORT uint8_t l_String_Pos_isValid_go(lean_object*, lean_object*, lean_obj
|
|||
LEAN_EXPORT lean_object* l_String_toNat_x3f(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_revPosOfAux___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_Iterator_remainingToString___boxed(lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3894_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_append___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_String_substrEq_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_splitAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -221,7 +223,6 @@ uint8_t lean_string_is_valid_pos(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_String_Iterator_atEnd___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Substring_takeWhileAux___at_Substring_trimLeft___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Substring_splitOn_loop___closed__2;
|
||||
lean_object* l_String_csize(uint32_t);
|
||||
uint8_t l_Char_isDigit(uint32_t);
|
||||
LEAN_EXPORT lean_object* l_String_push___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Substring_nextn(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -236,7 +237,6 @@ LEAN_EXPORT lean_object* l___private_Init_Data_String_Basic_0__Substring_nextn_m
|
|||
LEAN_EXPORT lean_object* l_String_Iterator_forward(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_findAux(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_replace(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3629____boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Substring_beq___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_Iterator_remainingBytes(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_takeRightWhile___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -323,6 +323,7 @@ LEAN_EXPORT lean_object* l_Substring_splitOn(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_String_splitOn___boxed(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Substring_toIterator___boxed(lean_object*);
|
||||
lean_object* l_Char_utf8Size(uint32_t);
|
||||
LEAN_EXPORT lean_object* l_String_nextWhile___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_findLineStart___lambda__1___boxed(lean_object*);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
|
|
@ -332,7 +333,6 @@ LEAN_EXPORT lean_object* l_Substring_foldl___rarg(lean_object*, lean_object*, le
|
|||
LEAN_EXPORT lean_object* l_String_foldl___rarg(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_string_dec_lt(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_extract_go_u2082___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3629_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_String_anyAux___at_Substring_all___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_extract_go_u2081___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_split(lean_object*, lean_object*);
|
||||
|
|
@ -472,7 +472,7 @@ if (x_7 == 0)
|
|||
uint32_t x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_8 = lean_unbox_uint32(x_5);
|
||||
lean_dec(x_5);
|
||||
x_9 = l_String_csize(x_8);
|
||||
x_9 = l_Char_utf8Size(x_8);
|
||||
x_10 = lean_nat_add(x_3, x_9);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_3);
|
||||
|
|
@ -537,7 +537,7 @@ if (x_7 == 0)
|
|||
uint32_t x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_8 = lean_unbox_uint32(x_5);
|
||||
lean_dec(x_5);
|
||||
x_9 = l_String_csize(x_8);
|
||||
x_9 = l_Char_utf8Size(x_8);
|
||||
x_10 = lean_nat_add(x_2, x_9);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_2);
|
||||
|
|
@ -602,7 +602,7 @@ if (x_7 == 0)
|
|||
uint32_t x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_8 = lean_unbox_uint32(x_5);
|
||||
lean_dec(x_5);
|
||||
x_9 = l_String_csize(x_8);
|
||||
x_9 = l_Char_utf8Size(x_8);
|
||||
x_10 = lean_nat_add(x_2, x_9);
|
||||
lean_dec(x_9);
|
||||
lean_dec(x_2);
|
||||
|
|
@ -675,7 +675,7 @@ if (x_9 == 0)
|
|||
{
|
||||
uint32_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13;
|
||||
x_10 = lean_unbox_uint32(x_7);
|
||||
x_11 = l_String_csize(x_10);
|
||||
x_11 = l_Char_utf8Size(x_10);
|
||||
x_12 = lean_nat_add(x_3, x_11);
|
||||
lean_dec(x_11);
|
||||
x_13 = l_String_utf8SetAux(x_1, x_8, x_12, x_4);
|
||||
|
|
@ -705,7 +705,7 @@ if (x_17 == 0)
|
|||
{
|
||||
uint32_t x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_18 = lean_unbox_uint32(x_15);
|
||||
x_19 = l_String_csize(x_18);
|
||||
x_19 = l_Char_utf8Size(x_18);
|
||||
x_20 = lean_nat_add(x_3, x_19);
|
||||
lean_dec(x_19);
|
||||
x_21 = l_String_utf8SetAux(x_1, x_16, x_20, x_4);
|
||||
|
|
@ -804,7 +804,7 @@ lean_inc(x_6);
|
|||
lean_dec(x_1);
|
||||
x_7 = lean_unbox_uint32(x_5);
|
||||
lean_dec(x_5);
|
||||
x_8 = l_String_csize(x_7);
|
||||
x_8 = l_Char_utf8Size(x_7);
|
||||
x_9 = lean_nat_add(x_2, x_8);
|
||||
lean_dec(x_8);
|
||||
x_10 = lean_nat_dec_eq(x_9, x_3);
|
||||
|
|
@ -1338,7 +1338,7 @@ if (x_8 == 0)
|
|||
{
|
||||
uint32_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
x_9 = lean_unbox_uint32(x_6);
|
||||
x_10 = l_String_csize(x_9);
|
||||
x_10 = l_Char_utf8Size(x_9);
|
||||
x_11 = lean_nat_add(x_2, x_10);
|
||||
lean_dec(x_10);
|
||||
x_12 = l_String_extract_go_u2082(x_7, x_11, x_3);
|
||||
|
|
@ -1369,7 +1369,7 @@ if (x_16 == 0)
|
|||
{
|
||||
uint32_t x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_17 = lean_unbox_uint32(x_14);
|
||||
x_18 = l_String_csize(x_17);
|
||||
x_18 = l_Char_utf8Size(x_17);
|
||||
x_19 = lean_nat_add(x_2, x_18);
|
||||
lean_dec(x_18);
|
||||
x_20 = l_String_extract_go_u2082(x_15, x_19, x_3);
|
||||
|
|
@ -1425,7 +1425,7 @@ uint32_t x_9; lean_object* x_10; lean_object* x_11;
|
|||
lean_dec(x_1);
|
||||
x_9 = lean_unbox_uint32(x_6);
|
||||
lean_dec(x_6);
|
||||
x_10 = l_String_csize(x_9);
|
||||
x_10 = l_Char_utf8Size(x_9);
|
||||
x_11 = lean_nat_add(x_2, x_10);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_2);
|
||||
|
|
@ -1917,7 +1917,7 @@ lean_dec(x_1);
|
|||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3629_(lean_object* x_1, lean_object* x_2) {
|
||||
LEAN_EXPORT uint8_t l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3894_(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; uint8_t x_7;
|
||||
|
|
@ -1940,11 +1940,11 @@ return x_9;
|
|||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3629____boxed(lean_object* x_1, lean_object* x_2) {
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3894____boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3629_(x_1, x_2);
|
||||
x_3 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3894_(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
|
|
@ -1955,7 +1955,7 @@ LEAN_EXPORT uint8_t l_String_instDecidableEqIterator(lean_object* x_1, lean_obje
|
|||
_start:
|
||||
{
|
||||
uint8_t x_3;
|
||||
x_3 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3629_(x_1, x_2);
|
||||
x_3 = l___private_Init_Data_String_Basic_0__String_decEqIterator____x40_Init_Data_String_Basic___hyg_3894_(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
|
|
@ -3130,11 +3130,11 @@ return x_11;
|
|||
else
|
||||
{
|
||||
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15;
|
||||
x_12 = l_String_csize(x_8);
|
||||
x_12 = l_Char_utf8Size(x_8);
|
||||
x_13 = lean_nat_add(x_3, x_12);
|
||||
lean_dec(x_12);
|
||||
lean_dec(x_3);
|
||||
x_14 = l_String_csize(x_9);
|
||||
x_14 = l_Char_utf8Size(x_9);
|
||||
x_15 = lean_nat_add(x_4, x_14);
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_4);
|
||||
|
|
|
|||
8
stage0/stdlib/Init/Data/String/Extra.c
generated
8
stage0/stdlib/Init/Data/String/Extra.c
generated
|
|
@ -99,7 +99,6 @@ static lean_object* l_String___aux__Init__Data__String__Extra______macroRules__t
|
|||
static lean_object* l_String___aux__Init__Data__String__Extra______macroRules__tacticDecreasing__trivial__1___closed__20;
|
||||
LEAN_EXPORT lean_object* l___private_Init_Data_String_Extra_0__String_removeNumLeadingSpaces_consumeSpaces(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_validateUTF8___boxed(lean_object*);
|
||||
lean_object* l_String_csize(uint32_t);
|
||||
static lean_object* l_String___aux__Init__Data__String__Extra______macroRules__tacticDecreasing__trivial__1___closed__12;
|
||||
LEAN_EXPORT lean_object* l_String_toNat_x21___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_fromUTF8_x21___boxed(lean_object*);
|
||||
|
|
@ -144,6 +143,7 @@ static lean_object* l_String___aux__Init__Data__String__Extra______macroRules__t
|
|||
LEAN_EXPORT lean_object* l_String_validateUTF8_loop___boxed(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
static uint8_t l_String_crlfToLf_go___closed__1;
|
||||
lean_object* l_Char_utf8Size(uint32_t);
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
static lean_object* l_String___aux__Init__Data__String__Extra______macroRules__tacticDecreasing__trivial__2___closed__6;
|
||||
lean_object* lean_byte_array_size(lean_object*);
|
||||
|
|
@ -685,7 +685,7 @@ lean_inc(x_8);
|
|||
lean_dec(x_6);
|
||||
x_9 = lean_unbox_uint32(x_8);
|
||||
lean_dec(x_8);
|
||||
x_10 = l_String_csize(x_9);
|
||||
x_10 = l_Char_utf8Size(x_9);
|
||||
x_11 = lean_nat_add(x_2, x_10);
|
||||
lean_dec(x_10);
|
||||
lean_dec(x_2);
|
||||
|
|
@ -719,7 +719,7 @@ _start:
|
|||
{
|
||||
uint32_t x_1; lean_object* x_2;
|
||||
x_1 = 65;
|
||||
x_2 = l_String_csize(x_1);
|
||||
x_2 = l_Char_utf8Size(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
@ -758,7 +758,7 @@ x_12 = lean_ctor_get(x_6, 0);
|
|||
lean_inc(x_12);
|
||||
lean_dec(x_6);
|
||||
x_13 = lean_unbox_uint32(x_12);
|
||||
x_14 = l_String_csize(x_13);
|
||||
x_14 = l_Char_utf8Size(x_13);
|
||||
x_15 = lean_nat_add(x_2, x_14);
|
||||
lean_dec(x_14);
|
||||
lean_dec(x_2);
|
||||
|
|
|
|||
2
stage0/stdlib/Init/Meta.c
generated
2
stage0/stdlib/Init/Meta.c
generated
|
|
@ -21581,7 +21581,7 @@ else
|
|||
lean_object* x_4; lean_object* x_5; uint8_t x_6;
|
||||
x_4 = lean_ctor_get(x_2, 0);
|
||||
x_5 = lean_ctor_get(x_2, 1);
|
||||
x_6 = lean_nat_dec_eq(x_1, x_4);
|
||||
x_6 = lean_nat_dec_eq(x_4, x_1);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
x_2 = x_5;
|
||||
|
|
|
|||
94
stage0/stdlib/Init/Prelude.c
generated
94
stage0/stdlib/Init/Prelude.c
generated
|
|
@ -320,7 +320,6 @@ LEAN_EXPORT lean_object* l_String_utf8ByteSize___boxed(lean_object*);
|
|||
static lean_object* l_Lean_Macro_instMonadQuotationMacroM___closed__1;
|
||||
LEAN_EXPORT lean_object* l_id(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_UInt8_ofNatCore___boxed(lean_object*, lean_object*);
|
||||
static uint32_t l_Char_utf8Size___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lean_Name_mkStr7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_EStateM_set___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Macro_instMonadRefMacroM___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -380,7 +379,6 @@ LEAN_EXPORT lean_object* l___private_Init_Prelude_0__Lean_extractImported(lean_o
|
|||
LEAN_EXPORT lean_object* l_tryCatchThe(lean_object*, lean_object*);
|
||||
static lean_object* l_EStateM_nonBacktrackable___closed__2;
|
||||
LEAN_EXPORT uint8_t l_Fin_decLt___rarg(lean_object*, lean_object*);
|
||||
static uint32_t l_Char_utf8Size___closed__7;
|
||||
LEAN_EXPORT lean_object* l_List_foldl(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Macro_throwError___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mk___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -480,7 +478,6 @@ LEAN_EXPORT uint8_t l_instDecidableLtPos(lean_object*, lean_object*);
|
|||
LEAN_EXPORT lean_object* l_ReaderT_instMonadLift___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_unsafeCast(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_MonadExcept_orElse___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static uint32_t l_Char_utf8Size___closed__6;
|
||||
static lean_object* l_Array_mkArray3___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_List_lengthTRAux___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_System_Platform_numBits;
|
||||
|
|
@ -586,7 +583,6 @@ LEAN_EXPORT lean_object* l_EStateM_instInhabited(lean_object*, lean_object*, lea
|
|||
LEAN_EXPORT uint8_t l_Decidable_decide___rarg(uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_matchesLit___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Macro_instInhabitedMethods___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_String_csize(uint32_t);
|
||||
static lean_object* l_Lean_interpolatedStrLitKind___closed__2;
|
||||
LEAN_EXPORT lean_object* l_inferInstance___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_extract___rarg(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -682,7 +678,6 @@ LEAN_EXPORT lean_object* l_ReaderT_instFunctorOfMonad___rarg(lean_object*);
|
|||
LEAN_EXPORT lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_instAddNat;
|
||||
uint32_t lean_uint32_of_nat(lean_object*);
|
||||
static uint32_t l_Char_utf8Size___closed__5;
|
||||
LEAN_EXPORT lean_object* l_instHMod___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Fin_decLt___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Macro_instMonadQuotationMacroM___lambda__2___boxed(lean_object*, lean_object*);
|
||||
|
|
@ -817,7 +812,6 @@ LEAN_EXPORT lean_object* l_Array_extract___rarg___boxed(lean_object*, lean_objec
|
|||
LEAN_EXPORT lean_object* l_ReaderT_instApplicativeOfMonad(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_List_redLength___rarg(lean_object*);
|
||||
static lean_object* l_instAddNat___closed__1;
|
||||
LEAN_EXPORT lean_object* l_String_csize___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_Syntax_getTailPos_x3f_loop(uint8_t, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_getModify___rarg___lambda__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Monad_seqLeft___default___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
|
|
@ -863,7 +857,7 @@ LEAN_EXPORT lean_object* l_instMonadFunctorTOfMonadFunctor___rarg___lambda__2(le
|
|||
static lean_object* l_EStateM_instMonadStateOf___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Array_data___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mkArray2___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint32_t l_Char_utf8Size(uint32_t);
|
||||
LEAN_EXPORT lean_object* l_Char_utf8Size(uint32_t);
|
||||
LEAN_EXPORT lean_object* l_letFun(lean_object*, lean_object*);
|
||||
static lean_object* l_Lean_Macro_instInhabitedMethods___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lean_hygieneInfoKind;
|
||||
|
|
@ -3299,43 +3293,7 @@ x_2 = lean_uint32_of_nat(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
static uint32_t _init_l_Char_utf8Size___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint32_t x_2;
|
||||
x_1 = lean_unsigned_to_nat(4u);
|
||||
x_2 = lean_uint32_of_nat(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static uint32_t _init_l_Char_utf8Size___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint32_t x_2;
|
||||
x_1 = lean_unsigned_to_nat(3u);
|
||||
x_2 = lean_uint32_of_nat(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static uint32_t _init_l_Char_utf8Size___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint32_t x_2;
|
||||
x_1 = lean_unsigned_to_nat(2u);
|
||||
x_2 = lean_uint32_of_nat(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static uint32_t _init_l_Char_utf8Size___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint32_t x_2;
|
||||
x_1 = lean_unsigned_to_nat(1u);
|
||||
x_2 = lean_uint32_of_nat(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint32_t l_Char_utf8Size(uint32_t x_1) {
|
||||
LEAN_EXPORT lean_object* l_Char_utf8Size(uint32_t x_1) {
|
||||
_start:
|
||||
{
|
||||
uint32_t x_2; uint8_t x_3;
|
||||
|
|
@ -3353,28 +3311,28 @@ x_6 = l_Char_utf8Size___closed__3;
|
|||
x_7 = lean_uint32_dec_le(x_1, x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
uint32_t x_8;
|
||||
x_8 = l_Char_utf8Size___closed__4;
|
||||
lean_object* x_8;
|
||||
x_8 = lean_unsigned_to_nat(4u);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint32_t x_9;
|
||||
x_9 = l_Char_utf8Size___closed__5;
|
||||
lean_object* x_9;
|
||||
x_9 = lean_unsigned_to_nat(3u);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint32_t x_10;
|
||||
x_10 = l_Char_utf8Size___closed__6;
|
||||
lean_object* x_10;
|
||||
x_10 = lean_unsigned_to_nat(2u);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint32_t x_11;
|
||||
x_11 = l_Char_utf8Size___closed__7;
|
||||
lean_object* x_11;
|
||||
x_11 = lean_unsigned_to_nat(1u);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
|
|
@ -3382,12 +3340,11 @@ return x_11;
|
|||
LEAN_EXPORT lean_object* l_Char_utf8Size___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint32_t x_2; uint32_t x_3; lean_object* x_4;
|
||||
uint32_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox_uint32(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Char_utf8Size(x_2);
|
||||
x_4 = lean_box_uint32(x_3);
|
||||
return x_4;
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_instInhabitedOption(lean_object* x_1) {
|
||||
|
|
@ -4037,25 +3994,6 @@ lean_dec(x_1);
|
|||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_String_csize(uint32_t x_1) {
|
||||
_start:
|
||||
{
|
||||
uint32_t x_2; lean_object* x_3;
|
||||
x_2 = l_Char_utf8Size(x_1);
|
||||
x_3 = lean_uint32_to_nat(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_String_csize___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint32_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox_uint32(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_String_csize(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_String_utf8ByteSize_go(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
|
|
@ -4076,7 +4014,7 @@ lean_dec(x_1);
|
|||
x_5 = l_String_utf8ByteSize_go(x_4);
|
||||
x_6 = lean_unbox_uint32(x_3);
|
||||
lean_dec(x_3);
|
||||
x_7 = l_String_csize(x_6);
|
||||
x_7 = l_Char_utf8Size(x_6);
|
||||
x_8 = lean_nat_add(x_5, x_7);
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_5);
|
||||
|
|
@ -4133,7 +4071,7 @@ LEAN_EXPORT lean_object* l_instHAddPosChar(lean_object* x_1, uint32_t x_2) {
|
|||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
x_3 = l_String_csize(x_2);
|
||||
x_3 = l_Char_utf8Size(x_2);
|
||||
x_4 = lean_nat_add(x_1, x_3);
|
||||
lean_dec(x_3);
|
||||
return x_4;
|
||||
|
|
@ -12332,10 +12270,6 @@ lean_mark_persistent(l_Char_ofNat___closed__1);
|
|||
l_Char_utf8Size___closed__1 = _init_l_Char_utf8Size___closed__1();
|
||||
l_Char_utf8Size___closed__2 = _init_l_Char_utf8Size___closed__2();
|
||||
l_Char_utf8Size___closed__3 = _init_l_Char_utf8Size___closed__3();
|
||||
l_Char_utf8Size___closed__4 = _init_l_Char_utf8Size___closed__4();
|
||||
l_Char_utf8Size___closed__5 = _init_l_Char_utf8Size___closed__5();
|
||||
l_Char_utf8Size___closed__6 = _init_l_Char_utf8Size___closed__6();
|
||||
l_Char_utf8Size___closed__7 = _init_l_Char_utf8Size___closed__7();
|
||||
l_String_Pos_byteIdx___default = _init_l_String_Pos_byteIdx___default();
|
||||
lean_mark_persistent(l_String_Pos_byteIdx___default);
|
||||
l_instInhabitedPos = _init_l_instInhabitedPos();
|
||||
|
|
|
|||
8
stage0/stdlib/Init/System/FilePath.c
generated
8
stage0/stdlib/Init/System/FilePath.c
generated
|
|
@ -88,7 +88,6 @@ LEAN_EXPORT uint32_t l_System_FilePath_pathSeparator;
|
|||
LEAN_EXPORT lean_object* l_System_FilePath_isAbsolute___boxed(lean_object*);
|
||||
static lean_object* l_System_FilePath_parent___closed__3;
|
||||
lean_object* l_String_revPosOf(lean_object*, uint32_t);
|
||||
lean_object* l_String_csize(uint32_t);
|
||||
static lean_object* l_System_FilePath_fileName___closed__3;
|
||||
LEAN_EXPORT lean_object* l_System_mkFilePath(lean_object*);
|
||||
LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_159____at_System_FilePath_parent___spec__1(lean_object*, lean_object*);
|
||||
|
|
@ -125,6 +124,7 @@ LEAN_EXPORT lean_object* l_List_mapTR_loop___at_System_SearchPath_parse___spec__
|
|||
lean_object* lean_string_append(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_System_FilePath_normalize___lambda__1(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
lean_object* l_Char_utf8Size(uint32_t);
|
||||
static lean_object* l_System_FilePath_fileName___closed__2;
|
||||
lean_object* lean_nat_add(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_System_FilePath_instHDivString(lean_object*, lean_object*);
|
||||
|
|
@ -442,7 +442,7 @@ lean_inc(x_5);
|
|||
lean_dec(x_2);
|
||||
x_6 = lean_unbox_uint32(x_4);
|
||||
lean_dec(x_4);
|
||||
x_7 = lean_uint32_dec_eq(x_1, x_6);
|
||||
x_7 = lean_uint32_dec_eq(x_6, x_1);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
x_2 = x_5;
|
||||
|
|
@ -1085,7 +1085,7 @@ _start:
|
|||
{
|
||||
uint32_t x_1; lean_object* x_2;
|
||||
x_1 = 47;
|
||||
x_2 = l_String_csize(x_1);
|
||||
x_2 = l_Char_utf8Size(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
@ -1403,7 +1403,7 @@ _start:
|
|||
{
|
||||
uint32_t x_1; lean_object* x_2;
|
||||
x_1 = 46;
|
||||
x_2 = l_String_csize(x_1);
|
||||
x_2 = l_Char_utf8Size(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
53
stage0/stdlib/Lake.c
generated
Normal file
53
stage0/stdlib/Lake.c
generated
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake
|
||||
// Imports: Init Lake.Build Lake.Config Lake.DSL Lake.Version Lake.CLI.Actions Lake.Toml
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_DSL(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Version(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_CLI_Actions(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Toml(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_DSL(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Version(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_CLI_Actions(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Toml(builtin, 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));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
53
stage0/stdlib/Lake/Build.c
generated
Normal file
53
stage0/stdlib/Lake/Build.c
generated
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Build
|
||||
// Imports: Init Lake.Build.Run Lake.Build.Module Lake.Build.Package Lake.Build.Library Lake.Build.Imports Lake.Build.Targets
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Run(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Module(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Package(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Library(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Imports(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Targets(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Build(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Run(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Module(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Package(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Library(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Imports(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Targets(builtin, 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));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
5095
stage0/stdlib/Lake/Build/Actions.c
generated
Normal file
5095
stage0/stdlib/Lake/Build/Actions.c
generated
Normal file
File diff suppressed because it is too large
Load diff
741
stage0/stdlib/Lake/Build/Basic.c
generated
Normal file
741
stage0/stdlib/Lake/Build/Basic.c
generated
Normal file
|
|
@ -0,0 +1,741 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Build.Basic
|
||||
// Imports: Init Lake.Util.Log Lake.Util.Exit Lake.Util.Lift Lake.Config.Context Lake.Build.Trace
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static lean_object* l_Lake_getNoBuild___rarg___closed__1;
|
||||
LEAN_EXPORT uint8_t l_Lake_BuildConfig_trustHash___default;
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsQuiet(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsQuiet___rarg___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueJob_nonemptyType;
|
||||
LEAN_EXPORT lean_object* l_Lake_getLeanTrace___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_BuildConfig_noBuild___default;
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsOldMode___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildConfig_outLv___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsVerbose___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_getVerbosity___rarg___lambda__1(lean_object*);
|
||||
static lean_object* l_Lake_getBuildConfig___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsQuiet___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getTrustHash(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_logStep___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildConfig___rarg___lambda__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getVerbosity___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_BuildConfig_failLv___default;
|
||||
LEAN_EXPORT uint8_t l_Lake_BuildConfig_oldMode___default;
|
||||
LEAN_EXPORT lean_object* l_Lake_getLeanTrace___rarg___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildConfig_out___default;
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildContext___rarg___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getLeanTrace___rarg___lambda__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildConfig___rarg___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getNoBuild___rarg(lean_object*, lean_object*);
|
||||
uint8_t l_Lake_Verbosity_minLogLv(uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsOldMode___rarg___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_BuildConfig_verbosity___default;
|
||||
LEAN_EXPORT uint8_t l_Lake_BuildConfig_outLv(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildContext(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getVerbosity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildConfig___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_getIsOldMode___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_getTrustHash___rarg___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_BuildConfig_showProgress(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildContext___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsVerbose(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildConfig_showProgress___boxed(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_getTrustHash___rarg___lambda__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsOldMode(lean_object*);
|
||||
static lean_object* l_Lake_getVerbosity___rarg___closed__1;
|
||||
uint8_t l_Lake_instDecidableEqVerbosity(uint8_t, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lake_getVerbosity___rarg___lambda__1___boxed(lean_object*);
|
||||
static lean_object* l_Lake_getIsQuiet___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_logStep(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_logStep___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_getIsVerbose___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildConfig(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getNoBuild___rarg___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_getTrustHash___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_getTrustHash___rarg___closed__1;
|
||||
LEAN_EXPORT uint8_t l_Lake_getNoBuild___rarg___lambda__1(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_BuildConfig_ansiMode___default;
|
||||
LEAN_EXPORT uint8_t l_Lake_getIsOldMode___rarg___lambda__1(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_getIsVerbose___rarg___lambda__1(uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsVerbose___rarg___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_getIsQuiet___rarg___lambda__1(uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lake_getNoBuild(lean_object*);
|
||||
LEAN_EXPORT uint32_t l_Lake_noBuildCode;
|
||||
LEAN_EXPORT lean_object* l_Lake_getLeanTrace(lean_object*);
|
||||
static lean_object* l_Lake_getLeanTrace___rarg___closed__1;
|
||||
static uint32_t _init_l_Lake_noBuildCode() {
|
||||
_start:
|
||||
{
|
||||
uint32_t x_1;
|
||||
x_1 = 3;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lake_BuildConfig_oldMode___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 0;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lake_BuildConfig_trustHash___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lake_BuildConfig_noBuild___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 0;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lake_BuildConfig_verbosity___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lake_BuildConfig_failLv___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 3;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_BuildConfig_out___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_box(1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lake_BuildConfig_ansiMode___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 0;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_BuildConfig_outLv(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; uint8_t x_3;
|
||||
x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 3);
|
||||
x_3 = l_Lake_Verbosity_minLogLv(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildConfig_outLv___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lake_BuildConfig_outLv(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_BuildConfig_showProgress(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 2);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
uint8_t x_3; uint8_t x_4; uint8_t x_5;
|
||||
x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 3);
|
||||
x_4 = 0;
|
||||
x_5 = l_Lake_instDecidableEqVerbosity(x_3, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
uint8_t x_6;
|
||||
x_6 = 1;
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_7;
|
||||
x_7 = 0;
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_8; uint8_t x_9; uint8_t x_10;
|
||||
x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 3);
|
||||
x_9 = 2;
|
||||
x_10 = l_Lake_instDecidableEqVerbosity(x_8, x_9);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
uint8_t x_11; uint8_t x_12;
|
||||
x_11 = 0;
|
||||
x_12 = l_Lake_instDecidableEqVerbosity(x_8, x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
uint8_t x_13;
|
||||
x_13 = 1;
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_14;
|
||||
x_14 = 0;
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_15;
|
||||
x_15 = 1;
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildConfig_showProgress___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lake_BuildConfig_showProgress(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_OpaqueJob_nonemptyType() {
|
||||
_start:
|
||||
{
|
||||
return lean_box(0);
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildContext___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_inc(x_1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildContext(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_getBuildContext___rarg___boxed), 1, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildContext___rarg___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_getBuildContext___rarg(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getLeanTrace___rarg___lambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_ctor_get(x_1, 2);
|
||||
lean_inc(x_2);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_getLeanTrace___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_getLeanTrace___rarg___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getLeanTrace___rarg(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_1, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = l_Lake_getLeanTrace___rarg___closed__1;
|
||||
x_5 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getLeanTrace(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_getLeanTrace___rarg), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getLeanTrace___rarg___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_getLeanTrace___rarg___lambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildConfig___rarg___lambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_2);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_getBuildConfig___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_getBuildConfig___rarg___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildConfig___rarg(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_1, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = l_Lake_getBuildConfig___rarg___closed__1;
|
||||
x_5 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_2);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildConfig(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_getBuildConfig___rarg), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getBuildConfig___rarg___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_getBuildConfig___rarg___lambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_getIsOldMode___rarg___lambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_getIsOldMode___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_getIsOldMode___rarg___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsOldMode___rarg(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 = l_Lake_getBuildConfig___rarg___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_5 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_2);
|
||||
x_6 = l_Lake_getIsOldMode___rarg___closed__1;
|
||||
x_7 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_6, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsOldMode(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_getIsOldMode___rarg), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsOldMode___rarg___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lake_getIsOldMode___rarg___lambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_getTrustHash___rarg___lambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_getTrustHash___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_getTrustHash___rarg___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getTrustHash___rarg(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 = l_Lake_getBuildConfig___rarg___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_5 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_2);
|
||||
x_6 = l_Lake_getTrustHash___rarg___closed__1;
|
||||
x_7 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_6, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getTrustHash(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_getTrustHash___rarg), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getTrustHash___rarg___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lake_getTrustHash___rarg___lambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_getNoBuild___rarg___lambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 2);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_getNoBuild___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_getNoBuild___rarg___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getNoBuild___rarg(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 = l_Lake_getBuildConfig___rarg___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_5 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_2);
|
||||
x_6 = l_Lake_getNoBuild___rarg___closed__1;
|
||||
x_7 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_6, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getNoBuild(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_getNoBuild___rarg), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getNoBuild___rarg___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lake_getNoBuild___rarg___lambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_getVerbosity___rarg___lambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = lean_ctor_get_uint8(x_1, sizeof(void*)*1 + 3);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_getVerbosity___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_getVerbosity___rarg___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getVerbosity___rarg(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 = l_Lake_getBuildConfig___rarg___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_5 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_2);
|
||||
x_6 = l_Lake_getVerbosity___rarg___closed__1;
|
||||
x_7 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_6, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getVerbosity(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_getVerbosity___rarg), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getVerbosity___rarg___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lake_getVerbosity___rarg___lambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_getIsVerbose___rarg___lambda__1(uint8_t x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; uint8_t x_3;
|
||||
x_2 = 2;
|
||||
x_3 = l_Lake_instDecidableEqVerbosity(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_getIsVerbose___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_getIsVerbose___rarg___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsVerbose___rarg(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; lean_object* x_8; lean_object* x_9;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = l_Lake_getBuildConfig___rarg___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_5 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_2);
|
||||
x_6 = l_Lake_getVerbosity___rarg___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_7 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_6, x_5);
|
||||
x_8 = l_Lake_getIsVerbose___rarg___closed__1;
|
||||
x_9 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_8, x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsVerbose(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_getIsVerbose___rarg), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsVerbose___rarg___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; uint8_t x_3; lean_object* x_4;
|
||||
x_2 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Lake_getIsVerbose___rarg___lambda__1(x_2);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_getIsQuiet___rarg___lambda__1(uint8_t x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; uint8_t x_3;
|
||||
x_2 = 0;
|
||||
x_3 = l_Lake_instDecidableEqVerbosity(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_getIsQuiet___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_getIsQuiet___rarg___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsQuiet___rarg(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; lean_object* x_8; lean_object* x_9;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = l_Lake_getBuildConfig___rarg___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_5 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_2);
|
||||
x_6 = l_Lake_getVerbosity___rarg___closed__1;
|
||||
lean_inc(x_3);
|
||||
x_7 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_6, x_5);
|
||||
x_8 = l_Lake_getIsQuiet___rarg___closed__1;
|
||||
x_9 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_8, x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsQuiet(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_getIsQuiet___rarg), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_getIsQuiet___rarg___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; uint8_t x_3; lean_object* x_4;
|
||||
x_2 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Lake_getIsQuiet___rarg___lambda__1(x_2);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_logStep___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_3 = 0;
|
||||
x_4 = lean_alloc_ctor(0, 1, 1);
|
||||
lean_ctor_set(x_4, 0, x_2);
|
||||
lean_ctor_set_uint8(x_4, sizeof(void*)*1, x_3);
|
||||
x_5 = lean_apply_1(x_1, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_logStep(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lake_logStep___rarg), 2, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_logStep___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_logStep(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_Log(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_Exit(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_Lift(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_Context(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Trace(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Build_Basic(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_Log(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_Exit(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_Lift(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_Context(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Trace(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_noBuildCode = _init_l_Lake_noBuildCode();
|
||||
l_Lake_BuildConfig_oldMode___default = _init_l_Lake_BuildConfig_oldMode___default();
|
||||
l_Lake_BuildConfig_trustHash___default = _init_l_Lake_BuildConfig_trustHash___default();
|
||||
l_Lake_BuildConfig_noBuild___default = _init_l_Lake_BuildConfig_noBuild___default();
|
||||
l_Lake_BuildConfig_verbosity___default = _init_l_Lake_BuildConfig_verbosity___default();
|
||||
l_Lake_BuildConfig_failLv___default = _init_l_Lake_BuildConfig_failLv___default();
|
||||
l_Lake_BuildConfig_out___default = _init_l_Lake_BuildConfig_out___default();
|
||||
lean_mark_persistent(l_Lake_BuildConfig_out___default);
|
||||
l_Lake_BuildConfig_ansiMode___default = _init_l_Lake_BuildConfig_ansiMode___default();
|
||||
l_Lake_OpaqueJob_nonemptyType = _init_l_Lake_OpaqueJob_nonemptyType();
|
||||
l_Lake_getLeanTrace___rarg___closed__1 = _init_l_Lake_getLeanTrace___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_getLeanTrace___rarg___closed__1);
|
||||
l_Lake_getBuildConfig___rarg___closed__1 = _init_l_Lake_getBuildConfig___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_getBuildConfig___rarg___closed__1);
|
||||
l_Lake_getIsOldMode___rarg___closed__1 = _init_l_Lake_getIsOldMode___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_getIsOldMode___rarg___closed__1);
|
||||
l_Lake_getTrustHash___rarg___closed__1 = _init_l_Lake_getTrustHash___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_getTrustHash___rarg___closed__1);
|
||||
l_Lake_getNoBuild___rarg___closed__1 = _init_l_Lake_getNoBuild___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_getNoBuild___rarg___closed__1);
|
||||
l_Lake_getVerbosity___rarg___closed__1 = _init_l_Lake_getVerbosity___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_getVerbosity___rarg___closed__1);
|
||||
l_Lake_getIsVerbose___rarg___closed__1 = _init_l_Lake_getIsVerbose___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_getIsVerbose___rarg___closed__1);
|
||||
l_Lake_getIsQuiet___rarg___closed__1 = _init_l_Lake_getIsQuiet___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_getIsQuiet___rarg___closed__1);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
25092
stage0/stdlib/Lake/Build/Common.c
generated
Normal file
25092
stage0/stdlib/Lake/Build/Common.c
generated
Normal file
File diff suppressed because it is too large
Load diff
2339
stage0/stdlib/Lake/Build/Data.c
generated
Normal file
2339
stage0/stdlib/Lake/Build/Data.c
generated
Normal file
File diff suppressed because it is too large
Load diff
3211
stage0/stdlib/Lake/Build/Executable.c
generated
Normal file
3211
stage0/stdlib/Lake/Build/Executable.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1187
stage0/stdlib/Lake/Build/Facets.c
generated
Normal file
1187
stage0/stdlib/Lake/Build/Facets.c
generated
Normal file
File diff suppressed because it is too large
Load diff
6927
stage0/stdlib/Lake/Build/Fetch.c
generated
Normal file
6927
stage0/stdlib/Lake/Build/Fetch.c
generated
Normal file
File diff suppressed because it is too large
Load diff
8713
stage0/stdlib/Lake/Build/Imports.c
generated
Normal file
8713
stage0/stdlib/Lake/Build/Imports.c
generated
Normal file
File diff suppressed because it is too large
Load diff
4483
stage0/stdlib/Lake/Build/Index.c
generated
Normal file
4483
stage0/stdlib/Lake/Build/Index.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1724
stage0/stdlib/Lake/Build/Info.c
generated
Normal file
1724
stage0/stdlib/Lake/Build/Info.c
generated
Normal file
File diff suppressed because it is too large
Load diff
25371
stage0/stdlib/Lake/Build/Job.c
generated
Normal file
25371
stage0/stdlib/Lake/Build/Job.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1484
stage0/stdlib/Lake/Build/Key.c
generated
Normal file
1484
stage0/stdlib/Lake/Build/Key.c
generated
Normal file
File diff suppressed because it is too large
Load diff
8977
stage0/stdlib/Lake/Build/Library.c
generated
Normal file
8977
stage0/stdlib/Lake/Build/Library.c
generated
Normal file
File diff suppressed because it is too large
Load diff
34041
stage0/stdlib/Lake/Build/Module.c
generated
Normal file
34041
stage0/stdlib/Lake/Build/Module.c
generated
Normal file
File diff suppressed because it is too large
Load diff
30527
stage0/stdlib/Lake/Build/Package.c
generated
Normal file
30527
stage0/stdlib/Lake/Build/Package.c
generated
Normal file
File diff suppressed because it is too large
Load diff
12151
stage0/stdlib/Lake/Build/Run.c
generated
Normal file
12151
stage0/stdlib/Lake/Build/Run.c
generated
Normal file
File diff suppressed because it is too large
Load diff
590
stage0/stdlib/Lake/Build/Store.c
generated
Normal file
590
stage0/stdlib/Lake/Build/Store.c
generated
Normal file
|
|
@ -0,0 +1,590 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Build.Store
|
||||
// Imports: Init Lake.Build.Data Lake.Util.StoreInsts
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectPackageFacetArray(lean_object*);
|
||||
static lean_object* l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectSharedExternLibs___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetArray___spec__1(lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectTargetFacetArray(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetArray___spec__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectTargetFacetArray___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetArray___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetMap___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_empty;
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectPackageFacetArray___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__3;
|
||||
lean_object* l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t lean_name_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectTargetFacetArray___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetMap(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetMap___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectTargetFacetArray___spec__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectPackageFacetArray___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__1;
|
||||
static lean_object* l_Lake_BuildStore_collectModuleFacetArray___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectPackageFacetArray___spec__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetMap___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetArray(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectSharedExternLibs(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetMap___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetArray___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectTargetFacetArray___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetArray___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectTargetFacetArray___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectPackageFacetArray___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectPackageFacetArray___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetMap___spec__1___rarg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* _init_l_Lake_BuildStore_empty() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_box(0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetArray___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_4, 0, x_3);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_5 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_5);
|
||||
x_6 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_ctor_get(x_2, 3);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_2);
|
||||
x_9 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetArray___spec__1___rarg(x_1, x_5, x_3);
|
||||
if (lean_obj_tag(x_6) == 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_9);
|
||||
x_11 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_6);
|
||||
x_12 = lean_name_eq(x_11, x_1);
|
||||
lean_dec(x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_dec(x_7);
|
||||
x_2 = x_8;
|
||||
x_3 = x_10;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = lean_array_push(x_10, x_7);
|
||||
x_2 = x_8;
|
||||
x_3 = x_14;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_16 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_9);
|
||||
x_2 = x_8;
|
||||
x_3 = x_16;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetArray___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetArray___spec__1___rarg___boxed), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_BuildStore_collectModuleFacetArray___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetArray___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_4 = l_Lake_BuildStore_collectModuleFacetArray___rarg___closed__1;
|
||||
x_5 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetArray___spec__1___rarg(x_2, x_1, x_4);
|
||||
x_6 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetArray(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_BuildStore_collectModuleFacetArray___rarg___boxed), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetArray___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetArray___spec__1___rarg(x_1, x_2, x_3);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetArray___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_BuildStore_collectModuleFacetArray___rarg(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetMap___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_4, 0, x_3);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_5 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_5);
|
||||
x_6 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_ctor_get(x_2, 3);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_2);
|
||||
x_9 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetMap___spec__1___rarg(x_1, x_5, x_3);
|
||||
if (lean_obj_tag(x_6) == 0)
|
||||
{
|
||||
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13;
|
||||
x_10 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_9);
|
||||
x_11 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_12);
|
||||
lean_dec(x_6);
|
||||
x_13 = lean_name_eq(x_12, x_1);
|
||||
lean_dec(x_12);
|
||||
if (x_13 == 0)
|
||||
{
|
||||
lean_dec(x_11);
|
||||
lean_dec(x_7);
|
||||
x_2 = x_8;
|
||||
x_3 = x_10;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_15;
|
||||
x_15 = l_Lean_RBNode_insert___at_Lean_NameMap_insert___spec__1___rarg(x_10, x_11, x_7);
|
||||
x_2 = x_8;
|
||||
x_3 = x_15;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_17;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_17 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_17);
|
||||
lean_dec(x_9);
|
||||
x_2 = x_8;
|
||||
x_3 = x_17;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetMap___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetMap___spec__1___rarg___boxed), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetMap___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_4 = lean_box(0);
|
||||
x_5 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetMap___spec__1___rarg(x_2, x_1, x_4);
|
||||
x_6 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetMap(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_BuildStore_collectModuleFacetMap___rarg___boxed), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetMap___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectModuleFacetMap___spec__1___rarg(x_1, x_2, x_3);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectModuleFacetMap___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_BuildStore_collectModuleFacetMap___rarg(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectPackageFacetArray___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_4, 0, x_3);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_5 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_5);
|
||||
x_6 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_ctor_get(x_2, 3);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_2);
|
||||
x_9 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectPackageFacetArray___spec__1___rarg(x_1, x_5, x_3);
|
||||
if (lean_obj_tag(x_6) == 1)
|
||||
{
|
||||
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_9);
|
||||
x_11 = lean_ctor_get(x_6, 1);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_6);
|
||||
x_12 = lean_name_eq(x_11, x_1);
|
||||
lean_dec(x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_dec(x_7);
|
||||
x_2 = x_8;
|
||||
x_3 = x_10;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = lean_array_push(x_10, x_7);
|
||||
x_2 = x_8;
|
||||
x_3 = x_14;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_16 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_9);
|
||||
x_2 = x_8;
|
||||
x_3 = x_16;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectPackageFacetArray___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectPackageFacetArray___spec__1___rarg___boxed), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectPackageFacetArray___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_4 = l_Lake_BuildStore_collectModuleFacetArray___rarg___closed__1;
|
||||
x_5 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectPackageFacetArray___spec__1___rarg(x_2, x_1, x_4);
|
||||
x_6 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectPackageFacetArray(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_BuildStore_collectPackageFacetArray___rarg___boxed), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectPackageFacetArray___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectPackageFacetArray___spec__1___rarg(x_1, x_2, x_3);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectPackageFacetArray___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_BuildStore_collectPackageFacetArray___rarg(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectTargetFacetArray___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_4, 0, x_3);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_5 = lean_ctor_get(x_2, 0);
|
||||
lean_inc(x_5);
|
||||
x_6 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_6);
|
||||
x_7 = lean_ctor_get(x_2, 2);
|
||||
lean_inc(x_7);
|
||||
x_8 = lean_ctor_get(x_2, 3);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_2);
|
||||
x_9 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectTargetFacetArray___spec__1___rarg(x_1, x_5, x_3);
|
||||
if (lean_obj_tag(x_6) == 2)
|
||||
{
|
||||
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_9);
|
||||
x_11 = lean_ctor_get(x_6, 2);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_6);
|
||||
x_12 = lean_name_eq(x_11, x_1);
|
||||
lean_dec(x_11);
|
||||
if (x_12 == 0)
|
||||
{
|
||||
lean_dec(x_7);
|
||||
x_2 = x_8;
|
||||
x_3 = x_10;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_14;
|
||||
x_14 = lean_array_push(x_10, x_7);
|
||||
x_2 = x_8;
|
||||
x_3 = x_14;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_16;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_6);
|
||||
x_16 = lean_ctor_get(x_9, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_9);
|
||||
x_2 = x_8;
|
||||
x_3 = x_16;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectTargetFacetArray___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectTargetFacetArray___spec__1___rarg___boxed), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectTargetFacetArray___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_4 = l_Lake_BuildStore_collectModuleFacetArray___rarg___closed__1;
|
||||
x_5 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectTargetFacetArray___spec__1___rarg(x_2, x_1, x_4);
|
||||
x_6 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_6);
|
||||
lean_dec(x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectTargetFacetArray(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_BuildStore_collectTargetFacetArray___rarg___boxed), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectTargetFacetArray___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_RBNode_forIn_visit___at_Lake_BuildStore_collectTargetFacetArray___spec__1___rarg(x_1, x_2, x_3);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectTargetFacetArray___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_BuildStore_collectTargetFacetArray___rarg(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("externLib", 9);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("shared", 6);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__1;
|
||||
x_2 = l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__2;
|
||||
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectSharedExternLibs___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
x_3 = l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__3;
|
||||
x_4 = l_Lake_BuildStore_collectTargetFacetArray___rarg(x_1, x_3, lean_box(0));
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_BuildStore_collectSharedExternLibs(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_BuildStore_collectSharedExternLibs___rarg), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Data(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_StoreInsts(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Build_Store(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Data(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_StoreInsts(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_BuildStore_empty = _init_l_Lake_BuildStore_empty();
|
||||
lean_mark_persistent(l_Lake_BuildStore_empty);
|
||||
l_Lake_BuildStore_collectModuleFacetArray___rarg___closed__1 = _init_l_Lake_BuildStore_collectModuleFacetArray___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_BuildStore_collectModuleFacetArray___rarg___closed__1);
|
||||
l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__1 = _init_l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__1);
|
||||
l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__2 = _init_l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__2();
|
||||
lean_mark_persistent(l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__2);
|
||||
l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__3 = _init_l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__3();
|
||||
lean_mark_persistent(l_Lake_BuildStore_collectSharedExternLibs___rarg___closed__3);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
3364
stage0/stdlib/Lake/Build/Targets.c
generated
Normal file
3364
stage0/stdlib/Lake/Build/Targets.c
generated
Normal file
File diff suppressed because it is too large
Load diff
415
stage0/stdlib/Lake/Build/Topological.c
generated
Normal file
415
stage0/stdlib/Lake/Build/Topological.c
generated
Normal file
|
|
@ -0,0 +1,415 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Build.Topological
|
||||
// Imports: Init Lake.Util.Cycle Lake.Util.Store Lake.Util.EquipT
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetch___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_recFetchAcyclic___rarg___lambda__3(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_appendTR___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_List_partition_loop___rarg(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_recFetchAcyclic___rarg___lambda__4___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg___lambda__3___boxed(lean_object*, lean_object*, lean_object*);
|
||||
uint8_t l_List_elem___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetch(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetch___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
lean_inc(x_1);
|
||||
x_3 = lean_alloc_closure((void*)(l_Lake_recFetch___rarg), 2, 1);
|
||||
lean_closure_set(x_3, 0, x_1);
|
||||
x_4 = lean_apply_2(x_1, x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetch(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_Lake_recFetch___rarg), 2, 0);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg___lambda__1(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;
|
||||
x_5 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_1);
|
||||
x_6 = lean_apply_1(x_2, x_4);
|
||||
x_7 = lean_apply_3(x_5, lean_box(0), x_3, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg___lambda__2(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;
|
||||
x_6 = lean_alloc_closure((void*)(l_Lake_recFetchAcyclic___rarg___lambda__1), 4, 3);
|
||||
lean_closure_set(x_6, 0, x_1);
|
||||
lean_closure_set(x_6, 1, x_2);
|
||||
lean_closure_set(x_6, 2, x_5);
|
||||
x_7 = lean_apply_2(x_3, x_4, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_recFetchAcyclic___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
x_4 = lean_apply_2(x_1, x_3, x_2);
|
||||
x_5 = lean_unbox(x_4);
|
||||
lean_dec(x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
uint8_t x_6;
|
||||
x_6 = 1;
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_7;
|
||||
x_7 = 0;
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_recFetchAcyclic___rarg___lambda__4___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
lean_ctor_set(x_2, 1, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_7;
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_2);
|
||||
lean_inc(x_1);
|
||||
x_7 = l_List_elem___rarg(x_1, x_2, x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_1);
|
||||
x_8 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_3);
|
||||
x_9 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_2);
|
||||
lean_ctor_set(x_9, 1, x_6);
|
||||
x_10 = lean_apply_3(x_8, lean_box(0), x_9, x_4);
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
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_object* x_19; lean_object* x_20;
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
x_11 = lean_ctor_get(x_5, 1);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_5);
|
||||
lean_inc(x_2);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lake_recFetchAcyclic___rarg___lambda__3___boxed), 3, 2);
|
||||
lean_closure_set(x_12, 0, x_1);
|
||||
lean_closure_set(x_12, 1, x_2);
|
||||
x_13 = lean_box(0);
|
||||
x_14 = l_Lake_recFetchAcyclic___rarg___lambda__4___closed__1;
|
||||
x_15 = l_List_partition_loop___rarg(x_12, x_6, x_14);
|
||||
x_16 = lean_ctor_get(x_15, 0);
|
||||
lean_inc(x_16);
|
||||
lean_dec(x_15);
|
||||
lean_inc(x_2);
|
||||
x_17 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_17, 0, x_2);
|
||||
lean_ctor_set(x_17, 1, x_16);
|
||||
x_18 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_2);
|
||||
lean_ctor_set(x_18, 1, x_13);
|
||||
x_19 = l_List_appendTR___rarg(x_17, x_18);
|
||||
x_20 = lean_apply_2(x_11, lean_box(0), x_19);
|
||||
return x_20;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___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_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_14; lean_object* x_15;
|
||||
lean_inc(x_6);
|
||||
x_8 = lean_apply_1(x_1, x_6);
|
||||
x_9 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_2);
|
||||
x_10 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_ctor_get(x_10, 0);
|
||||
lean_inc(x_11);
|
||||
lean_inc(x_10);
|
||||
x_12 = lean_alloc_closure((void*)(l_Lake_recFetchAcyclic___rarg___lambda__2), 5, 4);
|
||||
lean_closure_set(x_12, 0, x_10);
|
||||
lean_closure_set(x_12, 1, x_7);
|
||||
lean_closure_set(x_12, 2, x_4);
|
||||
lean_closure_set(x_12, 3, x_6);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_11);
|
||||
x_13 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_11, x_12);
|
||||
x_14 = lean_alloc_closure((void*)(l_Lake_recFetchAcyclic___rarg___lambda__4), 6, 5);
|
||||
lean_closure_set(x_14, 0, x_5);
|
||||
lean_closure_set(x_14, 1, x_8);
|
||||
lean_closure_set(x_14, 2, x_10);
|
||||
lean_closure_set(x_14, 3, x_13);
|
||||
lean_closure_set(x_14, 4, x_3);
|
||||
x_15 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_11, x_14);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
x_7 = lean_alloc_closure((void*)(l_Lake_recFetchAcyclic___rarg___lambda__5), 7, 5);
|
||||
lean_closure_set(x_7, 0, x_4);
|
||||
lean_closure_set(x_7, 1, x_2);
|
||||
lean_closure_set(x_7, 2, x_3);
|
||||
lean_closure_set(x_7, 3, x_5);
|
||||
lean_closure_set(x_7, 4, x_1);
|
||||
x_8 = l_Lake_recFetch___rarg(x_7, x_6);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic(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_Lake_recFetchAcyclic___rarg), 6, 0);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchAcyclic___rarg___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4; lean_object* x_5;
|
||||
x_4 = l_Lake_recFetchAcyclic___rarg___lambda__3(x_1, x_2, x_3);
|
||||
x_5 = lean_box(x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
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_2);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg___lambda__2(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);
|
||||
lean_inc(x_5);
|
||||
x_7 = lean_apply_2(x_6, x_2, x_5);
|
||||
x_8 = lean_alloc_closure((void*)(l_Lake_recFetchMemoize___rarg___lambda__1___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_Lake_recFetchMemoize___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:
|
||||
{
|
||||
if (lean_obj_tag(x_6) == 0)
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
lean_inc(x_4);
|
||||
x_7 = lean_alloc_closure((void*)(l_Lake_recFetchMemoize___rarg___lambda__2), 5, 4);
|
||||
lean_closure_set(x_7, 0, x_1);
|
||||
lean_closure_set(x_7, 1, x_2);
|
||||
lean_closure_set(x_7, 2, x_3);
|
||||
lean_closure_set(x_7, 3, x_4);
|
||||
x_8 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_7);
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12;
|
||||
lean_dec(x_5);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_9 = lean_ctor_get(x_6, 0);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_6);
|
||||
x_10 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_3);
|
||||
x_11 = lean_ctor_get(x_10, 1);
|
||||
lean_inc(x_11);
|
||||
lean_dec(x_10);
|
||||
x_12 = lean_apply_2(x_11, lean_box(0), x_9);
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* 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_object* x_15;
|
||||
x_10 = lean_alloc_closure((void*)(l_Lake_recFetchAcyclic___rarg___lambda__1), 4, 3);
|
||||
lean_closure_set(x_10, 0, x_1);
|
||||
lean_closure_set(x_10, 1, x_2);
|
||||
lean_closure_set(x_10, 2, x_9);
|
||||
x_11 = lean_apply_2(x_3, x_4, x_10);
|
||||
x_12 = lean_ctor_get(x_5, 0);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_6);
|
||||
x_13 = lean_apply_1(x_12, x_6);
|
||||
lean_inc(x_8);
|
||||
x_14 = lean_alloc_closure((void*)(l_Lake_recFetchMemoize___rarg___lambda__3), 6, 5);
|
||||
lean_closure_set(x_14, 0, x_5);
|
||||
lean_closure_set(x_14, 1, x_6);
|
||||
lean_closure_set(x_14, 2, x_7);
|
||||
lean_closure_set(x_14, 3, x_8);
|
||||
lean_closure_set(x_14, 4, x_11);
|
||||
x_15 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_13, x_14);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___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_object* x_7, lean_object* x_8) {
|
||||
_start:
|
||||
{
|
||||
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_inc(x_7);
|
||||
x_9 = lean_apply_1(x_1, x_7);
|
||||
x_10 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_10);
|
||||
x_11 = lean_ctor_get(x_3, 0);
|
||||
lean_inc(x_11);
|
||||
x_12 = lean_ctor_get(x_11, 0);
|
||||
lean_inc(x_12);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_11);
|
||||
x_13 = lean_alloc_closure((void*)(l_Lake_recFetchMemoize___rarg___lambda__4), 9, 8);
|
||||
lean_closure_set(x_13, 0, x_11);
|
||||
lean_closure_set(x_13, 1, x_8);
|
||||
lean_closure_set(x_13, 2, x_4);
|
||||
lean_closure_set(x_13, 3, x_7);
|
||||
lean_closure_set(x_13, 4, x_5);
|
||||
lean_closure_set(x_13, 5, x_9);
|
||||
lean_closure_set(x_13, 6, x_2);
|
||||
lean_closure_set(x_13, 7, x_10);
|
||||
lean_inc(x_10);
|
||||
lean_inc(x_12);
|
||||
x_14 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_12, x_13);
|
||||
x_15 = lean_alloc_closure((void*)(l_Lake_recFetchAcyclic___rarg___lambda__4), 6, 5);
|
||||
lean_closure_set(x_15, 0, x_6);
|
||||
lean_closure_set(x_15, 1, x_9);
|
||||
lean_closure_set(x_15, 2, x_11);
|
||||
lean_closure_set(x_15, 3, x_14);
|
||||
lean_closure_set(x_15, 4, x_3);
|
||||
x_16 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_12, x_15);
|
||||
return x_16;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___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) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9;
|
||||
x_8 = lean_alloc_closure((void*)(l_Lake_recFetchMemoize___rarg___lambda__5), 8, 6);
|
||||
lean_closure_set(x_8, 0, x_5);
|
||||
lean_closure_set(x_8, 1, x_2);
|
||||
lean_closure_set(x_8, 2, x_3);
|
||||
lean_closure_set(x_8, 3, x_6);
|
||||
lean_closure_set(x_8, 4, x_4);
|
||||
lean_closure_set(x_8, 5, x_1);
|
||||
x_9 = l_Lake_recFetch___rarg(x_8, x_7);
|
||||
return x_9;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize(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_Lake_recFetchMemoize___rarg), 7, 0);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_recFetchMemoize___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_recFetchMemoize___rarg___lambda__1(x_1, x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_Cycle(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_Store(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_EquipT(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Build_Topological(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_Cycle(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_Store(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_EquipT(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_recFetchAcyclic___rarg___lambda__4___closed__1 = _init_l_Lake_recFetchAcyclic___rarg___lambda__4___closed__1();
|
||||
lean_mark_persistent(l_Lake_recFetchAcyclic___rarg___lambda__4___closed__1);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
3189
stage0/stdlib/Lake/Build/Trace.c
generated
Normal file
3189
stage0/stdlib/Lake/Build/Trace.c
generated
Normal file
File diff suppressed because it is too large
Load diff
33
stage0/stdlib/Lake/CLI.c
generated
Normal file
33
stage0/stdlib/Lake/CLI.c
generated
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.CLI
|
||||
// Imports: Init Lake.CLI.Main
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_CLI_Main(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_CLI(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_CLI_Main(builtin, 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));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
3210
stage0/stdlib/Lake/CLI/Actions.c
generated
Normal file
3210
stage0/stdlib/Lake/CLI/Actions.c
generated
Normal file
File diff suppressed because it is too large
Load diff
4734
stage0/stdlib/Lake/CLI/Build.c
generated
Normal file
4734
stage0/stdlib/Lake/CLI/Build.c
generated
Normal file
File diff suppressed because it is too large
Load diff
4608
stage0/stdlib/Lake/CLI/Error.c
generated
Normal file
4608
stage0/stdlib/Lake/CLI/Error.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1231
stage0/stdlib/Lake/CLI/Help.c
generated
Normal file
1231
stage0/stdlib/Lake/CLI/Help.c
generated
Normal file
File diff suppressed because it is too large
Load diff
6422
stage0/stdlib/Lake/CLI/Init.c
generated
Normal file
6422
stage0/stdlib/Lake/CLI/Init.c
generated
Normal file
File diff suppressed because it is too large
Load diff
49258
stage0/stdlib/Lake/CLI/Main.c
generated
Normal file
49258
stage0/stdlib/Lake/CLI/Main.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1953
stage0/stdlib/Lake/CLI/Serve.c
generated
Normal file
1953
stage0/stdlib/Lake/CLI/Serve.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1699
stage0/stdlib/Lake/CLI/Translate.c
generated
Normal file
1699
stage0/stdlib/Lake/CLI/Translate.c
generated
Normal file
File diff suppressed because it is too large
Load diff
9409
stage0/stdlib/Lake/CLI/Translate/Lean.c
generated
Normal file
9409
stage0/stdlib/Lake/CLI/Translate/Lean.c
generated
Normal file
File diff suppressed because it is too large
Load diff
5264
stage0/stdlib/Lake/CLI/Translate/Toml.c
generated
Normal file
5264
stage0/stdlib/Lake/CLI/Translate/Toml.c
generated
Normal file
File diff suppressed because it is too large
Load diff
33
stage0/stdlib/Lake/Config.c
generated
Normal file
33
stage0/stdlib/Lake/Config.c
generated
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config
|
||||
// Imports: Init Lake.Config.Monad
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_Monad(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_Monad(builtin, 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));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
73
stage0/stdlib/Lake/Config/Context.c
generated
Normal file
73
stage0/stdlib/Lake/Config/Context.c
generated
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.Context
|
||||
// Imports: Init Lake.Config.Opaque Lake.Config.InstallPath
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lake_LakeT_run___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LakeM_run___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LakeT_run(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LakeM_run(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LakeT_run___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_apply_1(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LakeT_run(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lake_LakeT_run___rarg), 2, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LakeM_run___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_apply_1(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LakeM_run(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_LakeM_run___rarg), 2, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_Opaque(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_InstallPath(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_Context(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_Opaque(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_InstallPath(builtin, 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));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
314
stage0/stdlib/Lake/Config/Defaults.c
generated
Normal file
314
stage0/stdlib/Lake/Config/Defaults.c
generated
Normal file
|
|
@ -0,0 +1,314 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.Defaults
|
||||
// Imports: Init
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* l_System_FilePath_join(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultTomlConfigFile;
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultBuildDir;
|
||||
static lean_object* l_Lake_defaultConfigFile___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultPackagesDir;
|
||||
static lean_object* l_Lake_defaultIrDir___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultLeanConfigFile;
|
||||
static lean_object* l_Lake_defaultTomlConfigFile___closed__2;
|
||||
static lean_object* l_Lake_defaultPackagesDir___closed__1;
|
||||
static lean_object* l_Lake_defaultBinDir___closed__1;
|
||||
static lean_object* l_Lake_defaultLeanConfigFile___closed__2;
|
||||
lean_object* l_System_FilePath_addExtension(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_defaultLeanLibDir___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultLakeDir;
|
||||
static lean_object* l_Lake_defaultLeanConfigFile___closed__1;
|
||||
static lean_object* l_Lake_defaultLakeDir___closed__1;
|
||||
static lean_object* l_Lake_defaultBuildDir___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultNativeLibDir;
|
||||
static lean_object* l_Lake_defaultPackagesDir___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultConfigFile;
|
||||
static lean_object* l_Lake_defaultManifestFile___closed__1;
|
||||
static lean_object* l_Lake_defaultBuildDir___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultBinDir;
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultIrDir;
|
||||
static lean_object* l_Lake_defaultTomlConfigFile___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultLeanLibDir;
|
||||
LEAN_EXPORT lean_object* l_Lake_defaultManifestFile;
|
||||
static lean_object* _init_l_Lake_defaultLakeDir___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes(".lake", 5);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultLakeDir() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultLakeDir___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultPackagesDir___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("packages", 8);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultPackagesDir___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_defaultLakeDir;
|
||||
x_2 = l_Lake_defaultPackagesDir___closed__1;
|
||||
x_3 = l_System_FilePath_join(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultPackagesDir() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultPackagesDir___closed__2;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultConfigFile___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("lakefile", 8);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultConfigFile() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultConfigFile___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultLeanConfigFile___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("lean", 4);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultLeanConfigFile___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_defaultConfigFile;
|
||||
x_2 = l_Lake_defaultLeanConfigFile___closed__1;
|
||||
x_3 = l_System_FilePath_addExtension(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultLeanConfigFile() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultLeanConfigFile___closed__2;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultTomlConfigFile___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("toml", 4);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultTomlConfigFile___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_defaultConfigFile;
|
||||
x_2 = l_Lake_defaultTomlConfigFile___closed__1;
|
||||
x_3 = l_System_FilePath_addExtension(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultTomlConfigFile() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultTomlConfigFile___closed__2;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultManifestFile___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("lake-manifest.json", 18);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultManifestFile() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultManifestFile___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultBuildDir___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("build", 5);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultBuildDir___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_defaultLakeDir;
|
||||
x_2 = l_Lake_defaultBuildDir___closed__1;
|
||||
x_3 = l_System_FilePath_join(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultBuildDir() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultBuildDir___closed__2;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultLeanLibDir___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("lib", 3);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultLeanLibDir() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultLeanLibDir___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultNativeLibDir() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultLeanLibDir___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultBinDir___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("bin", 3);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultBinDir() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultBinDir___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultIrDir___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("ir", 2);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_defaultIrDir() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultIrDir___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_Defaults(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_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_Lake_defaultLakeDir___closed__1 = _init_l_Lake_defaultLakeDir___closed__1();
|
||||
lean_mark_persistent(l_Lake_defaultLakeDir___closed__1);
|
||||
l_Lake_defaultLakeDir = _init_l_Lake_defaultLakeDir();
|
||||
lean_mark_persistent(l_Lake_defaultLakeDir);
|
||||
l_Lake_defaultPackagesDir___closed__1 = _init_l_Lake_defaultPackagesDir___closed__1();
|
||||
lean_mark_persistent(l_Lake_defaultPackagesDir___closed__1);
|
||||
l_Lake_defaultPackagesDir___closed__2 = _init_l_Lake_defaultPackagesDir___closed__2();
|
||||
lean_mark_persistent(l_Lake_defaultPackagesDir___closed__2);
|
||||
l_Lake_defaultPackagesDir = _init_l_Lake_defaultPackagesDir();
|
||||
lean_mark_persistent(l_Lake_defaultPackagesDir);
|
||||
l_Lake_defaultConfigFile___closed__1 = _init_l_Lake_defaultConfigFile___closed__1();
|
||||
lean_mark_persistent(l_Lake_defaultConfigFile___closed__1);
|
||||
l_Lake_defaultConfigFile = _init_l_Lake_defaultConfigFile();
|
||||
lean_mark_persistent(l_Lake_defaultConfigFile);
|
||||
l_Lake_defaultLeanConfigFile___closed__1 = _init_l_Lake_defaultLeanConfigFile___closed__1();
|
||||
lean_mark_persistent(l_Lake_defaultLeanConfigFile___closed__1);
|
||||
l_Lake_defaultLeanConfigFile___closed__2 = _init_l_Lake_defaultLeanConfigFile___closed__2();
|
||||
lean_mark_persistent(l_Lake_defaultLeanConfigFile___closed__2);
|
||||
l_Lake_defaultLeanConfigFile = _init_l_Lake_defaultLeanConfigFile();
|
||||
lean_mark_persistent(l_Lake_defaultLeanConfigFile);
|
||||
l_Lake_defaultTomlConfigFile___closed__1 = _init_l_Lake_defaultTomlConfigFile___closed__1();
|
||||
lean_mark_persistent(l_Lake_defaultTomlConfigFile___closed__1);
|
||||
l_Lake_defaultTomlConfigFile___closed__2 = _init_l_Lake_defaultTomlConfigFile___closed__2();
|
||||
lean_mark_persistent(l_Lake_defaultTomlConfigFile___closed__2);
|
||||
l_Lake_defaultTomlConfigFile = _init_l_Lake_defaultTomlConfigFile();
|
||||
lean_mark_persistent(l_Lake_defaultTomlConfigFile);
|
||||
l_Lake_defaultManifestFile___closed__1 = _init_l_Lake_defaultManifestFile___closed__1();
|
||||
lean_mark_persistent(l_Lake_defaultManifestFile___closed__1);
|
||||
l_Lake_defaultManifestFile = _init_l_Lake_defaultManifestFile();
|
||||
lean_mark_persistent(l_Lake_defaultManifestFile);
|
||||
l_Lake_defaultBuildDir___closed__1 = _init_l_Lake_defaultBuildDir___closed__1();
|
||||
lean_mark_persistent(l_Lake_defaultBuildDir___closed__1);
|
||||
l_Lake_defaultBuildDir___closed__2 = _init_l_Lake_defaultBuildDir___closed__2();
|
||||
lean_mark_persistent(l_Lake_defaultBuildDir___closed__2);
|
||||
l_Lake_defaultBuildDir = _init_l_Lake_defaultBuildDir();
|
||||
lean_mark_persistent(l_Lake_defaultBuildDir);
|
||||
l_Lake_defaultLeanLibDir___closed__1 = _init_l_Lake_defaultLeanLibDir___closed__1();
|
||||
lean_mark_persistent(l_Lake_defaultLeanLibDir___closed__1);
|
||||
l_Lake_defaultLeanLibDir = _init_l_Lake_defaultLeanLibDir();
|
||||
lean_mark_persistent(l_Lake_defaultLeanLibDir);
|
||||
l_Lake_defaultNativeLibDir = _init_l_Lake_defaultNativeLibDir();
|
||||
lean_mark_persistent(l_Lake_defaultNativeLibDir);
|
||||
l_Lake_defaultBinDir___closed__1 = _init_l_Lake_defaultBinDir___closed__1();
|
||||
lean_mark_persistent(l_Lake_defaultBinDir___closed__1);
|
||||
l_Lake_defaultBinDir = _init_l_Lake_defaultBinDir();
|
||||
lean_mark_persistent(l_Lake_defaultBinDir);
|
||||
l_Lake_defaultIrDir___closed__1 = _init_l_Lake_defaultIrDir___closed__1();
|
||||
lean_mark_persistent(l_Lake_defaultIrDir___closed__1);
|
||||
l_Lake_defaultIrDir = _init_l_Lake_defaultIrDir();
|
||||
lean_mark_persistent(l_Lake_defaultIrDir);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
620
stage0/stdlib/Lake/Config/Dependency.c
generated
Normal file
620
stage0/stdlib/Lake/Config/Dependency.c
generated
Normal file
|
|
@ -0,0 +1,620 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.Dependency
|
||||
// Imports: Init Lean.Data.NameMap
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__7;
|
||||
LEAN_EXPORT lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedDependency___closed__1;
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52_(lean_object*, lean_object*);
|
||||
lean_object* l_String_quote(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedSource;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedDependency;
|
||||
static lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__5;
|
||||
static lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__6;
|
||||
lean_object* lean_nat_to_int(lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedSource___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_instReprSource;
|
||||
static lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_Dependency_opts___default;
|
||||
static lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__2;
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2(lean_object*, lean_object*);
|
||||
static lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__2;
|
||||
static lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__4;
|
||||
static lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__3;
|
||||
lean_object* l_Repr_addAppParen(lean_object*, lean_object*);
|
||||
static lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__2;
|
||||
static lean_object* l_Lake_instInhabitedSource___closed__2;
|
||||
static lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__1;
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__8;
|
||||
static lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_instReprSource___closed__1;
|
||||
static lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__4;
|
||||
static lean_object* _init_l_Lake_instInhabitedSource___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("", 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedSource___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lake_instInhabitedSource___closed__1;
|
||||
x_2 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedSource() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_instInhabitedSource___closed__2;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("none", 4);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__1;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("some ", 5);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__3;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 0)
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__2;
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = !lean_is_exclusive(x_1);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9;
|
||||
x_5 = lean_ctor_get(x_1, 0);
|
||||
x_6 = l_String_quote(x_5);
|
||||
lean_dec(x_5);
|
||||
lean_ctor_set_tag(x_1, 3);
|
||||
lean_ctor_set(x_1, 0, x_6);
|
||||
x_7 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__4;
|
||||
x_8 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_8, 0, x_7);
|
||||
lean_ctor_set(x_8, 1, x_1);
|
||||
x_9 = l_Repr_addAppParen(x_8, x_2);
|
||||
return x_9;
|
||||
}
|
||||
else
|
||||
{
|
||||
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_10 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_10);
|
||||
lean_dec(x_1);
|
||||
x_11 = l_String_quote(x_10);
|
||||
lean_dec(x_10);
|
||||
x_12 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_12, 0, x_11);
|
||||
x_13 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__4;
|
||||
x_14 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_14, 1, x_12);
|
||||
x_15 = l_Repr_addAppParen(x_14, x_2);
|
||||
return x_15;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("FilePath.mk ", 12);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__1;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 0)
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__2;
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = !lean_is_exclusive(x_1);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
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, 0);
|
||||
x_6 = l_String_quote(x_5);
|
||||
lean_dec(x_5);
|
||||
lean_ctor_set_tag(x_1, 3);
|
||||
lean_ctor_set(x_1, 0, x_6);
|
||||
x_7 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__2;
|
||||
x_8 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_8, 0, x_7);
|
||||
lean_ctor_set(x_8, 1, x_1);
|
||||
x_9 = lean_unsigned_to_nat(1024u);
|
||||
x_10 = l_Repr_addAppParen(x_8, x_9);
|
||||
x_11 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__4;
|
||||
x_12 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_11);
|
||||
lean_ctor_set(x_12, 1, x_10);
|
||||
x_13 = l_Repr_addAppParen(x_12, x_2);
|
||||
return x_13;
|
||||
}
|
||||
else
|
||||
{
|
||||
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_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23;
|
||||
x_14 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_14);
|
||||
lean_dec(x_1);
|
||||
x_15 = l_String_quote(x_14);
|
||||
lean_dec(x_14);
|
||||
x_16 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_16, 0, x_15);
|
||||
x_17 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__2;
|
||||
x_18 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_17);
|
||||
lean_ctor_set(x_18, 1, x_16);
|
||||
x_19 = lean_unsigned_to_nat(1024u);
|
||||
x_20 = l_Repr_addAppParen(x_18, x_19);
|
||||
x_21 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__4;
|
||||
x_22 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_22, 0, x_21);
|
||||
lean_ctor_set(x_22, 1, x_20);
|
||||
x_23 = l_Repr_addAppParen(x_22, x_2);
|
||||
return x_23;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("Lake.Source.path", 16);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__1;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__2;
|
||||
x_2 = lean_box(1);
|
||||
x_3 = lean_alloc_ctor(5, 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___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(2u);
|
||||
x_2 = lean_nat_to_int(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(1u);
|
||||
x_2 = lean_nat_to_int(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("Lake.Source.git", 15);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__6;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__7;
|
||||
x_2 = lean_box(1);
|
||||
x_3 = lean_alloc_ctor(5, 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___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52_(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_1) == 0)
|
||||
{
|
||||
uint8_t x_3;
|
||||
x_3 = !lean_is_exclusive(x_1);
|
||||
if (x_3 == 0)
|
||||
{
|
||||
lean_object* x_4; lean_object* 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; lean_object* x_12;
|
||||
x_4 = lean_ctor_get(x_1, 0);
|
||||
x_5 = lean_unsigned_to_nat(1024u);
|
||||
x_6 = lean_nat_dec_le(x_5, x_2);
|
||||
x_7 = l_String_quote(x_4);
|
||||
lean_dec(x_4);
|
||||
lean_ctor_set_tag(x_1, 3);
|
||||
lean_ctor_set(x_1, 0, x_7);
|
||||
x_8 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__2;
|
||||
x_9 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_8);
|
||||
lean_ctor_set(x_9, 1, x_1);
|
||||
x_10 = l_Repr_addAppParen(x_9, x_5);
|
||||
x_11 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__3;
|
||||
x_12 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_12, 0, x_11);
|
||||
lean_ctor_set(x_12, 1, x_10);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; lean_object* x_17;
|
||||
x_13 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__4;
|
||||
x_14 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_14, 1, x_12);
|
||||
x_15 = 0;
|
||||
x_16 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_16, 0, x_14);
|
||||
lean_ctor_set_uint8(x_16, sizeof(void*)*1, x_15);
|
||||
x_17 = l_Repr_addAppParen(x_16, x_2);
|
||||
return x_17;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_18; lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22;
|
||||
x_18 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__5;
|
||||
x_19 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_19, 0, x_18);
|
||||
lean_ctor_set(x_19, 1, x_12);
|
||||
x_20 = 0;
|
||||
x_21 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_21, 0, x_19);
|
||||
lean_ctor_set_uint8(x_21, sizeof(void*)*1, x_20);
|
||||
x_22 = l_Repr_addAppParen(x_21, x_2);
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_23; lean_object* x_24; uint8_t x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32;
|
||||
x_23 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_23);
|
||||
lean_dec(x_1);
|
||||
x_24 = lean_unsigned_to_nat(1024u);
|
||||
x_25 = lean_nat_dec_le(x_24, x_2);
|
||||
x_26 = l_String_quote(x_23);
|
||||
lean_dec(x_23);
|
||||
x_27 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_27, 0, x_26);
|
||||
x_28 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__2;
|
||||
x_29 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_29, 0, x_28);
|
||||
lean_ctor_set(x_29, 1, x_27);
|
||||
x_30 = l_Repr_addAppParen(x_29, x_24);
|
||||
x_31 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__3;
|
||||
x_32 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_32, 0, x_31);
|
||||
lean_ctor_set(x_32, 1, x_30);
|
||||
if (x_25 == 0)
|
||||
{
|
||||
lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37;
|
||||
x_33 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__4;
|
||||
x_34 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_34, 0, x_33);
|
||||
lean_ctor_set(x_34, 1, x_32);
|
||||
x_35 = 0;
|
||||
x_36 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_36, 0, x_34);
|
||||
lean_ctor_set_uint8(x_36, sizeof(void*)*1, x_35);
|
||||
x_37 = l_Repr_addAppParen(x_36, x_2);
|
||||
return x_37;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_38; lean_object* x_39; uint8_t x_40; lean_object* x_41; lean_object* x_42;
|
||||
x_38 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__5;
|
||||
x_39 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_39, 0, x_38);
|
||||
lean_ctor_set(x_39, 1, x_32);
|
||||
x_40 = 0;
|
||||
x_41 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_41, 0, x_39);
|
||||
lean_ctor_set_uint8(x_41, sizeof(void*)*1, x_40);
|
||||
x_42 = l_Repr_addAppParen(x_41, x_2);
|
||||
return x_42;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58;
|
||||
x_43 = lean_ctor_get(x_1, 0);
|
||||
lean_inc(x_43);
|
||||
x_44 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_44);
|
||||
x_45 = lean_ctor_get(x_1, 2);
|
||||
lean_inc(x_45);
|
||||
lean_dec(x_1);
|
||||
x_46 = lean_unsigned_to_nat(1024u);
|
||||
x_47 = lean_nat_dec_le(x_46, x_2);
|
||||
x_48 = l_String_quote(x_43);
|
||||
lean_dec(x_43);
|
||||
x_49 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_49, 0, x_48);
|
||||
x_50 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__8;
|
||||
x_51 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_51, 0, x_50);
|
||||
lean_ctor_set(x_51, 1, x_49);
|
||||
x_52 = lean_box(1);
|
||||
x_53 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_53, 0, x_51);
|
||||
lean_ctor_set(x_53, 1, x_52);
|
||||
x_54 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1(x_44, x_46);
|
||||
x_55 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_55, 0, x_53);
|
||||
lean_ctor_set(x_55, 1, x_54);
|
||||
x_56 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_56, 0, x_55);
|
||||
lean_ctor_set(x_56, 1, x_52);
|
||||
x_57 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2(x_45, x_46);
|
||||
x_58 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_58, 0, x_56);
|
||||
lean_ctor_set(x_58, 1, x_57);
|
||||
if (x_47 == 0)
|
||||
{
|
||||
lean_object* x_59; lean_object* x_60; uint8_t x_61; lean_object* x_62; lean_object* x_63;
|
||||
x_59 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__4;
|
||||
x_60 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_60, 0, x_59);
|
||||
lean_ctor_set(x_60, 1, x_58);
|
||||
x_61 = 0;
|
||||
x_62 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_62, 0, x_60);
|
||||
lean_ctor_set_uint8(x_62, sizeof(void*)*1, x_61);
|
||||
x_63 = l_Repr_addAppParen(x_62, x_2);
|
||||
return x_63;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_64; lean_object* x_65; uint8_t x_66; lean_object* x_67; lean_object* x_68;
|
||||
x_64 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__5;
|
||||
x_65 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_65, 0, x_64);
|
||||
lean_ctor_set(x_65, 1, x_58);
|
||||
x_66 = 0;
|
||||
x_67 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_67, 0, x_65);
|
||||
lean_ctor_set_uint8(x_67, sizeof(void*)*1, x_66);
|
||||
x_68 = l_Repr_addAppParen(x_67, x_2);
|
||||
return x_68;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52_(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instReprSource___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instReprSource() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_instReprSource___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_Dependency_opts___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_box(0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedDependency___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = lean_box(0);
|
||||
x_3 = l_Lake_instInhabitedSource___closed__2;
|
||||
x_4 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_2);
|
||||
lean_ctor_set(x_4, 1, x_3);
|
||||
lean_ctor_set(x_4, 2, x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedDependency() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_instInhabitedDependency___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Data_NameMap(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_Dependency(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Data_NameMap(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_instInhabitedSource___closed__1 = _init_l_Lake_instInhabitedSource___closed__1();
|
||||
lean_mark_persistent(l_Lake_instInhabitedSource___closed__1);
|
||||
l_Lake_instInhabitedSource___closed__2 = _init_l_Lake_instInhabitedSource___closed__2();
|
||||
lean_mark_persistent(l_Lake_instInhabitedSource___closed__2);
|
||||
l_Lake_instInhabitedSource = _init_l_Lake_instInhabitedSource();
|
||||
lean_mark_persistent(l_Lake_instInhabitedSource);
|
||||
l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__1 = _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__1();
|
||||
lean_mark_persistent(l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__1);
|
||||
l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__2 = _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__2();
|
||||
lean_mark_persistent(l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__2);
|
||||
l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__3 = _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__3();
|
||||
lean_mark_persistent(l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__3);
|
||||
l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__4 = _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__4();
|
||||
lean_mark_persistent(l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__1___closed__4);
|
||||
l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__1 = _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__1();
|
||||
lean_mark_persistent(l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__1);
|
||||
l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__2 = _init_l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__2();
|
||||
lean_mark_persistent(l_Option_repr___at___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____spec__2___closed__2);
|
||||
l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__1 = _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__1();
|
||||
lean_mark_persistent(l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__1);
|
||||
l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__2 = _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__2();
|
||||
lean_mark_persistent(l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__2);
|
||||
l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__3 = _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__3();
|
||||
lean_mark_persistent(l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__3);
|
||||
l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__4 = _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__4();
|
||||
lean_mark_persistent(l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__4);
|
||||
l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__5 = _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__5();
|
||||
lean_mark_persistent(l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__5);
|
||||
l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__6 = _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__6();
|
||||
lean_mark_persistent(l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__6);
|
||||
l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__7 = _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__7();
|
||||
lean_mark_persistent(l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__7);
|
||||
l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__8 = _init_l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__8();
|
||||
lean_mark_persistent(l___private_Lake_Config_Dependency_0__Lake_reprSource____x40_Lake_Config_Dependency___hyg_52____closed__8);
|
||||
l_Lake_instReprSource___closed__1 = _init_l_Lake_instReprSource___closed__1();
|
||||
lean_mark_persistent(l_Lake_instReprSource___closed__1);
|
||||
l_Lake_instReprSource = _init_l_Lake_instReprSource();
|
||||
lean_mark_persistent(l_Lake_instReprSource);
|
||||
l_Lake_Dependency_opts___default = _init_l_Lake_Dependency_opts___default();
|
||||
lean_mark_persistent(l_Lake_Dependency_opts___default);
|
||||
l_Lake_instInhabitedDependency___closed__1 = _init_l_Lake_instInhabitedDependency___closed__1();
|
||||
lean_mark_persistent(l_Lake_instInhabitedDependency___closed__1);
|
||||
l_Lake_instInhabitedDependency = _init_l_Lake_instInhabitedDependency();
|
||||
lean_mark_persistent(l_Lake_instInhabitedDependency);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
1449
stage0/stdlib/Lake/Config/Env.c
generated
Normal file
1449
stage0/stdlib/Lake/Config/Env.c
generated
Normal file
File diff suppressed because it is too large
Load diff
253
stage0/stdlib/Lake/Config/ExternLib.c
generated
Normal file
253
stage0/stdlib/Lake/Config/ExternLib.c
generated
Normal file
|
|
@ -0,0 +1,253 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.ExternLib
|
||||
// Imports: Init Lake.Config.Package
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static lean_object* l_Lake_ExternLib_staticTargetName___closed__1;
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_Package_externLibs(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_RBNode_dFind___at_Lake_Package_findExternLib_x3f___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Package_externLibs___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_Package_externLibs___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_ExternLib_linkArgs(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_ExternLib_linkArgs___boxed(lean_object*);
|
||||
uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_Package_findExternLib_x3f(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Package_externLibs___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_ExternLib_staticTargetName(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_RBNode_dFind___at_Lake_Package_findExternLib_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Package_externLibs___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_3) == 0)
|
||||
{
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10;
|
||||
x_4 = lean_ctor_get(x_3, 0);
|
||||
x_5 = lean_ctor_get(x_3, 1);
|
||||
x_6 = lean_ctor_get(x_3, 2);
|
||||
x_7 = lean_ctor_get(x_3, 3);
|
||||
lean_inc(x_1);
|
||||
x_8 = l_Lean_RBNode_fold___at_Lake_Package_externLibs___spec__1(x_1, x_2, x_4);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_inc(x_1);
|
||||
x_9 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_9, 0, x_1);
|
||||
lean_ctor_set(x_9, 1, x_5);
|
||||
lean_ctor_set(x_9, 2, x_6);
|
||||
x_10 = lean_array_push(x_8, x_9);
|
||||
x_2 = x_10;
|
||||
x_3 = x_7;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_Package_externLibs___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_Package_externLibs(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = lean_ctor_get(x_1, 10);
|
||||
lean_inc(x_2);
|
||||
x_3 = l_Lake_Package_externLibs___closed__1;
|
||||
x_4 = l_Lean_RBNode_fold___at_Lake_Package_externLibs___spec__1(x_1, x_3, x_2);
|
||||
lean_dec(x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lean_RBNode_fold___at_Lake_Package_externLibs___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lean_RBNode_fold___at_Lake_Package_externLibs___spec__1(x_1, x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_RBNode_dFind___at_Lake_Package_findExternLib_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_box(0);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9;
|
||||
x_5 = lean_ctor_get(x_2, 0);
|
||||
x_6 = lean_ctor_get(x_2, 1);
|
||||
x_7 = lean_ctor_get(x_2, 2);
|
||||
x_8 = lean_ctor_get(x_2, 3);
|
||||
x_9 = l_Lean_Name_quickCmp(x_3, x_6);
|
||||
switch (x_9) {
|
||||
case 0:
|
||||
{
|
||||
x_2 = x_5;
|
||||
goto _start;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
lean_object* x_11;
|
||||
lean_inc(x_7);
|
||||
x_11 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_11, 0, x_7);
|
||||
return x_11;
|
||||
}
|
||||
default:
|
||||
{
|
||||
x_2 = x_8;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_Package_findExternLib_x3f(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
x_3 = lean_ctor_get(x_2, 10);
|
||||
lean_inc(x_3);
|
||||
x_4 = l_Lake_RBNode_dFind___at_Lake_Package_findExternLib_x3f___spec__1(x_2, x_3, x_1);
|
||||
lean_dec(x_3);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
lean_object* x_5;
|
||||
lean_dec(x_2);
|
||||
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;
|
||||
x_7 = lean_ctor_get(x_4, 0);
|
||||
x_8 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_8, 0, x_2);
|
||||
lean_ctor_set(x_8, 1, x_1);
|
||||
lean_ctor_set(x_8, 2, x_7);
|
||||
lean_ctor_set(x_4, 0, x_8);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9; lean_object* x_10; lean_object* x_11;
|
||||
x_9 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_9);
|
||||
lean_dec(x_4);
|
||||
x_10 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_10, 0, x_2);
|
||||
lean_ctor_set(x_10, 1, x_1);
|
||||
lean_ctor_set(x_10, 2, x_9);
|
||||
x_11 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_11, 0, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_RBNode_dFind___at_Lake_Package_findExternLib_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_RBNode_dFind___at_Lake_Package_findExternLib_x3f___spec__1(x_1, x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ExternLib_linkArgs(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_2 = lean_ctor_get(x_1, 0);
|
||||
x_3 = lean_ctor_get(x_2, 2);
|
||||
x_4 = lean_ctor_get(x_3, 1);
|
||||
x_5 = lean_ctor_get(x_4, 6);
|
||||
lean_inc(x_5);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ExternLib_linkArgs___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_ExternLib_linkArgs(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_ExternLib_staticTargetName___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("static", 6);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ExternLib_staticTargetName(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_2);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Lake_ExternLib_staticTargetName___closed__1;
|
||||
x_4 = l_Lean_Name_str___override(x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_Package(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_ExternLib(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_Package(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_Package_externLibs___closed__1 = _init_l_Lake_Package_externLibs___closed__1();
|
||||
lean_mark_persistent(l_Lake_Package_externLibs___closed__1);
|
||||
l_Lake_ExternLib_staticTargetName___closed__1 = _init_l_Lake_ExternLib_staticTargetName___closed__1();
|
||||
lean_mark_persistent(l_Lake_ExternLib_staticTargetName___closed__1);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
156
stage0/stdlib/Lake/Config/ExternLibConfig.c
generated
Normal file
156
stage0/stdlib/Lake/Config/ExternLibConfig.c
generated
Normal file
|
|
@ -0,0 +1,156 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.ExternLibConfig
|
||||
// Imports: Init Lake.Build.Job Lake.Build.Data
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedExternLibConfig___closed__3;
|
||||
static lean_object* l_Lake_instInhabitedExternLibConfig___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedExternLibConfig(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* lean_task_pure(lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedExternLibConfig___closed__5;
|
||||
static lean_object* l_Lake_instInhabitedExternLibConfig___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedExternLibConfig___boxed(lean_object*, lean_object*, lean_object*);
|
||||
extern lean_object* l_Lake_BuildTrace_nil;
|
||||
static lean_object* l_Lake_instInhabitedExternLibConfig___closed__4;
|
||||
static lean_object* l_Lake_instInhabitedExternLibConfig___closed__6;
|
||||
static lean_object* l_Lake_instInhabitedExternLibConfig___closed__2;
|
||||
static lean_object* _init_l_Lake_instInhabitedExternLibConfig___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("", 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedExternLibConfig___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_instInhabitedExternLibConfig___closed__1;
|
||||
x_2 = l_Lake_BuildTrace_nil;
|
||||
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_Lake_instInhabitedExternLibConfig___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedExternLibConfig___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint8_t x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_instInhabitedExternLibConfig___closed__3;
|
||||
x_2 = 0;
|
||||
x_3 = lean_alloc_ctor(0, 1, 1);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedExternLibConfig___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_instInhabitedExternLibConfig___closed__2;
|
||||
x_2 = l_Lake_instInhabitedExternLibConfig___closed__4;
|
||||
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_Lake_instInhabitedExternLibConfig___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lake_instInhabitedExternLibConfig___closed__5;
|
||||
x_2 = lean_task_pure(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedExternLibConfig___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_instInhabitedExternLibConfig___closed__6;
|
||||
x_2 = l_Lake_instInhabitedExternLibConfig___closed__1;
|
||||
x_3 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set(x_3, 1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedExternLibConfig(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_instInhabitedExternLibConfig___closed__7;
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedExternLibConfig___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_instInhabitedExternLibConfig(x_1, x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Job(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Data(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_ExternLibConfig(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Job(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Data(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_instInhabitedExternLibConfig___closed__1 = _init_l_Lake_instInhabitedExternLibConfig___closed__1();
|
||||
lean_mark_persistent(l_Lake_instInhabitedExternLibConfig___closed__1);
|
||||
l_Lake_instInhabitedExternLibConfig___closed__2 = _init_l_Lake_instInhabitedExternLibConfig___closed__2();
|
||||
lean_mark_persistent(l_Lake_instInhabitedExternLibConfig___closed__2);
|
||||
l_Lake_instInhabitedExternLibConfig___closed__3 = _init_l_Lake_instInhabitedExternLibConfig___closed__3();
|
||||
lean_mark_persistent(l_Lake_instInhabitedExternLibConfig___closed__3);
|
||||
l_Lake_instInhabitedExternLibConfig___closed__4 = _init_l_Lake_instInhabitedExternLibConfig___closed__4();
|
||||
lean_mark_persistent(l_Lake_instInhabitedExternLibConfig___closed__4);
|
||||
l_Lake_instInhabitedExternLibConfig___closed__5 = _init_l_Lake_instInhabitedExternLibConfig___closed__5();
|
||||
lean_mark_persistent(l_Lake_instInhabitedExternLibConfig___closed__5);
|
||||
l_Lake_instInhabitedExternLibConfig___closed__6 = _init_l_Lake_instInhabitedExternLibConfig___closed__6();
|
||||
lean_mark_persistent(l_Lake_instInhabitedExternLibConfig___closed__6);
|
||||
l_Lake_instInhabitedExternLibConfig___closed__7 = _init_l_Lake_instInhabitedExternLibConfig___closed__7();
|
||||
lean_mark_persistent(l_Lake_instInhabitedExternLibConfig___closed__7);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
300
stage0/stdlib/Lake/Config/FacetConfig.c
generated
Normal file
300
stage0/stdlib/Lake/Config/FacetConfig.c
generated
Normal file
|
|
@ -0,0 +1,300 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.FacetConfig
|
||||
// Imports: Init Lake.Build.Fetch
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lake_FacetConfig_name___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetJobConfig(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedFacetConfig___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetConfig___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedFacetConfig___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedFacetConfig___rarg(lean_object*);
|
||||
extern lean_object* l_Task_Priority_default;
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetJobConfig___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetConfig___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetConfig(lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lake_EResult_map___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_FacetConfig_name(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___lambda__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1(lean_object*);
|
||||
lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedFacetConfig___rarg___boxed(lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedFacetConfig___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetJobConfig___rarg(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedFacetConfig(lean_object*, lean_object*);
|
||||
static lean_object* l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_FacetConfig_name___rarg___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedFacetConfig___rarg___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;
|
||||
x_8 = lean_unsigned_to_nat(0u);
|
||||
x_9 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_8);
|
||||
lean_ctor_set(x_9, 1, x_5);
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_9);
|
||||
lean_ctor_set(x_10, 1, x_6);
|
||||
x_11 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_10);
|
||||
lean_ctor_set(x_11, 1, x_7);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedFacetConfig___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_instInhabitedFacetConfig___rarg___lambda__1___boxed), 7, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedFacetConfig___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = lean_box(0);
|
||||
x_3 = l_Lake_instInhabitedFacetConfig___rarg___closed__1;
|
||||
x_4 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_4, 0, x_3);
|
||||
lean_ctor_set(x_4, 1, x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedFacetConfig(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lake_instInhabitedFacetConfig___rarg___boxed), 1, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedFacetConfig___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lake_instInhabitedFacetConfig___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedFacetConfig___rarg___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_instInhabitedFacetConfig___rarg(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_FacetConfig_name___rarg(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_inc(x_1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_FacetConfig_name(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lake_FacetConfig_name___rarg___boxed), 2, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_FacetConfig_name___rarg___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_FacetConfig_name___rarg(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetConfig___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5;
|
||||
x_4 = lean_box(0);
|
||||
x_5 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_5, 0, x_2);
|
||||
lean_ctor_set(x_5, 1, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetConfig(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lake_mkFacetConfig___rarg___boxed), 3, 0);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetConfig___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_mkFacetConfig___rarg(x_1, x_2, x_3);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___lambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = !lean_is_exclusive(x_1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_dec(x_3);
|
||||
x_4 = lean_box(0);
|
||||
lean_ctor_set(x_1, 0, x_4);
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_1);
|
||||
x_6 = lean_box(0);
|
||||
x_7 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_6);
|
||||
lean_ctor_set(x_7, 1, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___lambda__1), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_EResult_map___rarg), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = !lean_is_exclusive(x_1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
x_4 = l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__2;
|
||||
x_5 = l_Task_Priority_default;
|
||||
x_6 = 0;
|
||||
x_7 = lean_task_map(x_4, x_3, x_5, x_6);
|
||||
lean_ctor_set(x_1, 0, x_7);
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_8 = lean_ctor_get(x_1, 0);
|
||||
x_9 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_1);
|
||||
x_10 = l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__2;
|
||||
x_11 = l_Task_Priority_default;
|
||||
x_12 = 0;
|
||||
x_13 = lean_task_map(x_10, x_8, x_11, x_12);
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_14, 1, x_9);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg), 1, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetJobConfig___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6;
|
||||
x_4 = lean_alloc_closure((void*)(l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg), 1, 0);
|
||||
x_5 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_5, 0, x_4);
|
||||
x_6 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_6, 0, x_2);
|
||||
lean_ctor_set(x_6, 1, x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetJobConfig(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_alloc_closure((void*)(l_Lake_mkFacetJobConfig___rarg___boxed), 3, 0);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_mkFacetJobConfig___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_mkFacetJobConfig___rarg(x_1, x_2, x_3);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Fetch(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_FacetConfig(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Fetch(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_instInhabitedFacetConfig___rarg___closed__1 = _init_l_Lake_instInhabitedFacetConfig___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_instInhabitedFacetConfig___rarg___closed__1);
|
||||
l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__1 = _init_l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__1();
|
||||
lean_mark_persistent(l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__1);
|
||||
l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__2 = _init_l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__2();
|
||||
lean_mark_persistent(l_Functor_discard___at_Lake_mkFacetJobConfig___spec__1___rarg___closed__2);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
1610
stage0/stdlib/Lake/Config/Glob.c
generated
Normal file
1610
stage0/stdlib/Lake/Config/Glob.c
generated
Normal file
File diff suppressed because it is too large
Load diff
4974
stage0/stdlib/Lake/Config/InstallPath.c
generated
Normal file
4974
stage0/stdlib/Lake/Config/InstallPath.c
generated
Normal file
File diff suppressed because it is too large
Load diff
609
stage0/stdlib/Lake/Config/Lang.c
generated
Normal file
609
stage0/stdlib/Lake/Config/Lang.c
generated
Normal file
|
|
@ -0,0 +1,609 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.Lang
|
||||
// Imports: Init
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__3;
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__1;
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__8;
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_toCtorIdx___boxed(lean_object*);
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__9;
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lake_instDecidableEqConfigLang___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_ConfigLang_ofNat(lean_object*);
|
||||
static lean_object* l_Lake_ConfigLang_noConfusion___rarg___closed__1;
|
||||
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__6;
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
lean_object* lean_nat_to_int(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_noConfusion___rarg___lambda__1(lean_object*);
|
||||
static lean_object* l_Lake_ConfigLang_ofString_x3f___closed__2;
|
||||
static lean_object* l_Lake_instToStringConfigLang___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_ofString_x3f(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_noConfusion(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instToStringConfigLang;
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Lake_instDecidableEqConfigLang(uint8_t, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_ofNat___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_ofString_x3f___boxed(lean_object*);
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__5;
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__13;
|
||||
LEAN_EXPORT uint8_t l_Lake_instInhabitedConfigLang;
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__14;
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_fileExtension(uint8_t);
|
||||
static lean_object* l_Lake_ConfigLang_ofString_x3f___closed__3;
|
||||
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_toCtorIdx(uint8_t);
|
||||
static lean_object* l_Lake_ConfigLang_ofString_x3f___closed__4;
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__4;
|
||||
lean_object* l_Repr_addAppParen(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__11;
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_noConfusion___rarg(uint8_t, uint8_t, lean_object*);
|
||||
static lean_object* l_Lake_ConfigLang_ofString_x3f___closed__1;
|
||||
static lean_object* l_Lake_instReprConfigLang___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_noConfusion___rarg___lambda__1___boxed(lean_object*);
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__12;
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_fileExtension___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8_(uint8_t, lean_object*);
|
||||
static lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__10;
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____boxed(lean_object*, lean_object*);
|
||||
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instReprConfigLang;
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_toCtorIdx(uint8_t x_1) {
|
||||
_start:
|
||||
{
|
||||
if (x_1 == 0)
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_unsigned_to_nat(1u);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_toCtorIdx___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Lake_ConfigLang_toCtorIdx(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_noConfusion___rarg___lambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_inc(x_1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_ConfigLang_noConfusion___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_ConfigLang_noConfusion___rarg___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_noConfusion___rarg(uint8_t x_1, uint8_t x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_ConfigLang_noConfusion___rarg___closed__1;
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_noConfusion(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_ConfigLang_noConfusion___rarg___boxed), 3, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_noConfusion___rarg___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_ConfigLang_noConfusion___rarg___lambda__1(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_noConfusion___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4; uint8_t x_5; lean_object* x_6;
|
||||
x_4 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_5 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_6 = l_Lake_ConfigLang_noConfusion___rarg(x_4, x_5, x_3);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("Lake.ConfigLang.lean", 20);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__1;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(2u);
|
||||
x_2 = lean_nat_to_int(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__3;
|
||||
x_2 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__2;
|
||||
x_3 = lean_alloc_ctor(4, 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___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint8_t x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__4;
|
||||
x_2 = 0;
|
||||
x_3 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(1u);
|
||||
x_2 = lean_nat_to_int(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__6;
|
||||
x_2 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__2;
|
||||
x_3 = lean_alloc_ctor(4, 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___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint8_t x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__7;
|
||||
x_2 = 0;
|
||||
x_3 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("Lake.ConfigLang.toml", 20);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__9;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__3;
|
||||
x_2 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__10;
|
||||
x_3 = lean_alloc_ctor(4, 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___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint8_t x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__11;
|
||||
x_2 = 0;
|
||||
x_3 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__13() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__6;
|
||||
x_2 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__10;
|
||||
x_3 = lean_alloc_ctor(4, 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___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__14() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint8_t x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__13;
|
||||
x_2 = 0;
|
||||
x_3 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8_(uint8_t x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
if (x_1 == 0)
|
||||
{
|
||||
lean_object* x_3; uint8_t x_4;
|
||||
x_3 = lean_unsigned_to_nat(1024u);
|
||||
x_4 = lean_nat_dec_le(x_3, x_2);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6;
|
||||
x_5 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__5;
|
||||
x_6 = l_Repr_addAppParen(x_5, x_2);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
x_7 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__8;
|
||||
x_8 = l_Repr_addAppParen(x_7, x_2);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_9; uint8_t x_10;
|
||||
x_9 = lean_unsigned_to_nat(1024u);
|
||||
x_10 = lean_nat_dec_le(x_9, x_2);
|
||||
if (x_10 == 0)
|
||||
{
|
||||
lean_object* x_11; lean_object* x_12;
|
||||
x_11 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__12;
|
||||
x_12 = l_Repr_addAppParen(x_11, x_2);
|
||||
return x_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; lean_object* x_14;
|
||||
x_13 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__14;
|
||||
x_14 = l_Repr_addAppParen(x_13, x_2);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_4 = l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8_(x_3, x_2);
|
||||
lean_dec(x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instReprConfigLang___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instReprConfigLang() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_instReprConfigLang___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_ConfigLang_ofNat(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3;
|
||||
x_2 = lean_unsigned_to_nat(0u);
|
||||
x_3 = lean_nat_dec_eq(x_1, x_2);
|
||||
if (x_3 == 0)
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = 1;
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = 0;
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_ofNat___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = l_Lake_ConfigLang_ofNat(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = lean_box(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_instDecidableEqConfigLang(uint8_t x_1, uint8_t x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; uint8_t x_5;
|
||||
x_3 = l_Lake_ConfigLang_toCtorIdx(x_1);
|
||||
x_4 = l_Lake_ConfigLang_toCtorIdx(x_2);
|
||||
x_5 = lean_nat_dec_eq(x_3, x_4);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instDecidableEqConfigLang___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6;
|
||||
x_3 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_unbox(x_2);
|
||||
lean_dec(x_2);
|
||||
x_5 = l_Lake_instDecidableEqConfigLang(x_3, x_4);
|
||||
x_6 = lean_box(x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lake_instInhabitedConfigLang() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 0;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_ConfigLang_ofString_x3f___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("lean", 4);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_ConfigLang_ofString_x3f___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("toml", 4);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_ConfigLang_ofString_x3f___closed__3() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = 1;
|
||||
x_2 = lean_box(x_1);
|
||||
x_3 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_ConfigLang_ofString_x3f___closed__4() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = 0;
|
||||
x_2 = lean_box(x_1);
|
||||
x_3 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_3, 0, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_ofString_x3f(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3;
|
||||
x_2 = l_Lake_ConfigLang_ofString_x3f___closed__1;
|
||||
x_3 = lean_string_dec_eq(x_1, x_2);
|
||||
if (x_3 == 0)
|
||||
{
|
||||
lean_object* x_4; uint8_t x_5;
|
||||
x_4 = l_Lake_ConfigLang_ofString_x3f___closed__2;
|
||||
x_5 = lean_string_dec_eq(x_1, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6;
|
||||
x_6 = lean_box(0);
|
||||
return x_6;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_7;
|
||||
x_7 = l_Lake_ConfigLang_ofString_x3f___closed__3;
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lake_ConfigLang_ofString_x3f___closed__4;
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_ofString_x3f___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_ConfigLang_ofString_x3f(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_fileExtension(uint8_t x_1) {
|
||||
_start:
|
||||
{
|
||||
if (x_1 == 0)
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_ConfigLang_ofString_x3f___closed__1;
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_ConfigLang_ofString_x3f___closed__2;
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_ConfigLang_fileExtension___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Lake_ConfigLang_fileExtension(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instToStringConfigLang___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_ConfigLang_fileExtension___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instToStringConfigLang() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_instToStringConfigLang___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_Lang(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_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_Lake_ConfigLang_noConfusion___rarg___closed__1 = _init_l_Lake_ConfigLang_noConfusion___rarg___closed__1();
|
||||
lean_mark_persistent(l_Lake_ConfigLang_noConfusion___rarg___closed__1);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__1 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__1();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__1);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__2 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__2();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__2);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__3 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__3();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__3);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__4 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__4();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__4);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__5 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__5();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__5);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__6 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__6();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__6);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__7 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__7();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__7);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__8 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__8();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__8);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__9 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__9();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__9);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__10 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__10();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__10);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__11 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__11();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__11);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__12 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__12();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__12);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__13 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__13();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__13);
|
||||
l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__14 = _init_l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__14();
|
||||
lean_mark_persistent(l___private_Lake_Config_Lang_0__Lake_reprConfigLang____x40_Lake_Config_Lang___hyg_8____closed__14);
|
||||
l_Lake_instReprConfigLang___closed__1 = _init_l_Lake_instReprConfigLang___closed__1();
|
||||
lean_mark_persistent(l_Lake_instReprConfigLang___closed__1);
|
||||
l_Lake_instReprConfigLang = _init_l_Lake_instReprConfigLang();
|
||||
lean_mark_persistent(l_Lake_instReprConfigLang);
|
||||
l_Lake_instInhabitedConfigLang = _init_l_Lake_instInhabitedConfigLang();
|
||||
l_Lake_ConfigLang_ofString_x3f___closed__1 = _init_l_Lake_ConfigLang_ofString_x3f___closed__1();
|
||||
lean_mark_persistent(l_Lake_ConfigLang_ofString_x3f___closed__1);
|
||||
l_Lake_ConfigLang_ofString_x3f___closed__2 = _init_l_Lake_ConfigLang_ofString_x3f___closed__2();
|
||||
lean_mark_persistent(l_Lake_ConfigLang_ofString_x3f___closed__2);
|
||||
l_Lake_ConfigLang_ofString_x3f___closed__3 = _init_l_Lake_ConfigLang_ofString_x3f___closed__3();
|
||||
lean_mark_persistent(l_Lake_ConfigLang_ofString_x3f___closed__3);
|
||||
l_Lake_ConfigLang_ofString_x3f___closed__4 = _init_l_Lake_ConfigLang_ofString_x3f___closed__4();
|
||||
lean_mark_persistent(l_Lake_ConfigLang_ofString_x3f___closed__4);
|
||||
l_Lake_instToStringConfigLang___closed__1 = _init_l_Lake_instToStringConfigLang___closed__1();
|
||||
lean_mark_persistent(l_Lake_instToStringConfigLang___closed__1);
|
||||
l_Lake_instToStringConfigLang = _init_l_Lake_instToStringConfigLang();
|
||||
lean_mark_persistent(l_Lake_instToStringConfigLang);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
4209
stage0/stdlib/Lake/Config/LeanConfig.c
generated
Normal file
4209
stage0/stdlib/Lake/Config/LeanConfig.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1197
stage0/stdlib/Lake/Config/LeanExe.c
generated
Normal file
1197
stage0/stdlib/Lake/Config/LeanExe.c
generated
Normal file
File diff suppressed because it is too large
Load diff
356
stage0/stdlib/Lake/Config/LeanExeConfig.c
generated
Normal file
356
stage0/stdlib/Lake/Config/LeanExeConfig.c
generated
Normal file
|
|
@ -0,0 +1,356 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.LeanExeConfig
|
||||
// Imports: Init Lake.Build.Facets Lake.Config.LeanConfig
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
static lean_object* l_Lake_LeanExeConfig_exeName___default___closed__1;
|
||||
static lean_object* l_Lake_instInhabitedLeanExeConfig___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedLeanExeConfig___lambda__1___boxed(lean_object*);
|
||||
static lean_object* l_Lake_LeanExeConfig_nativeFacets___default___closed__3;
|
||||
static lean_object* l_Lake_LeanExeConfig_nativeFacets___default___closed__2;
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_srcDir___default;
|
||||
LEAN_EXPORT uint8_t l_Lake_LeanExeConfig_supportInterpreter___default;
|
||||
static lean_object* l_Lake_LeanExeConfig_nativeFacets___default___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_root___default(lean_object*);
|
||||
static lean_object* l_Lake_LeanExeConfig_extraDepTargets___default___closed__1;
|
||||
static lean_object* l_Lake_instInhabitedLeanExeConfig___closed__2;
|
||||
static lean_object* l_Lake_LeanExeConfig_nativeFacets___default___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_root___default___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedLeanExeConfig___lambda__1(uint8_t);
|
||||
static lean_object* l_Lake_instInhabitedLeanExeConfig___closed__4;
|
||||
static lean_object* l_Lake_instInhabitedLeanExeConfig___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_extraDepTargets___default;
|
||||
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_LeanExeConfig_nativeFacets___default___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_nativeFacets___default(uint8_t);
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_LeanExeConfig_srcDir___default___closed__1;
|
||||
static lean_object* l_Lake_LeanExeConfig_nativeFacets___default___closed__4;
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_nativeFacets___default___boxed(lean_object*);
|
||||
lean_object* l_Lean_Name_toStringWithSep(lean_object*, uint8_t, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedLeanExeConfig;
|
||||
static lean_object* l_Lake_LeanExeConfig_nativeFacets___default___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_exeName___default(lean_object*);
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_srcDir___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes(".", 1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_srcDir___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_LeanExeConfig_srcDir___default___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_root___default(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_inc(x_1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_root___default___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_LeanExeConfig_root___default(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_exeName___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("-", 1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_exeName___default(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; uint8_t x_3; lean_object* x_4;
|
||||
x_2 = l_Lake_LeanExeConfig_exeName___default___closed__1;
|
||||
x_3 = 0;
|
||||
x_4 = l_Lean_Name_toStringWithSep(x_2, x_3, x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_extraDepTargets___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_extraDepTargets___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_LeanExeConfig_extraDepTargets___default___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lake_LeanExeConfig_supportInterpreter___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 0;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(1u);
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("o", 1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lake_LeanExeConfig_nativeFacets___default___closed__2;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_LeanExeConfig_nativeFacets___default___closed__1;
|
||||
x_2 = l_Lake_LeanExeConfig_nativeFacets___default___closed__3;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("export", 6);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_LeanExeConfig_nativeFacets___default___closed__2;
|
||||
x_2 = l_Lake_LeanExeConfig_nativeFacets___default___closed__5;
|
||||
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_LeanExeConfig_nativeFacets___default___closed__1;
|
||||
x_2 = l_Lake_LeanExeConfig_nativeFacets___default___closed__6;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_nativeFacets___default(uint8_t x_1) {
|
||||
_start:
|
||||
{
|
||||
if (x_1 == 0)
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_LeanExeConfig_nativeFacets___default___closed__4;
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_LeanExeConfig_nativeFacets___default___closed__7;
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanExeConfig_nativeFacets___default___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Lake_LeanExeConfig_nativeFacets___default(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedLeanExeConfig___lambda__1(uint8_t x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_LeanExeConfig_extraDepTargets___default___closed__1;
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedLeanExeConfig___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint8_t x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = 0;
|
||||
x_3 = l_Lake_LeanExeConfig_extraDepTargets___default___closed__1;
|
||||
x_4 = 2;
|
||||
x_5 = lean_alloc_ctor(0, 9, 2);
|
||||
lean_ctor_set(x_5, 0, x_3);
|
||||
lean_ctor_set(x_5, 1, x_3);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_3);
|
||||
lean_ctor_set(x_5, 4, x_3);
|
||||
lean_ctor_set(x_5, 5, x_3);
|
||||
lean_ctor_set(x_5, 6, x_3);
|
||||
lean_ctor_set(x_5, 7, x_3);
|
||||
lean_ctor_set(x_5, 8, x_1);
|
||||
lean_ctor_set_uint8(x_5, sizeof(void*)*9, x_2);
|
||||
lean_ctor_set_uint8(x_5, sizeof(void*)*9 + 1, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedLeanExeConfig___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("", 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedLeanExeConfig___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_instInhabitedLeanExeConfig___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedLeanExeConfig___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_1 = l_Lake_instInhabitedLeanExeConfig___closed__1;
|
||||
x_2 = lean_box(0);
|
||||
x_3 = l_Lake_instInhabitedLeanExeConfig___closed__2;
|
||||
x_4 = l_Lake_LeanExeConfig_extraDepTargets___default___closed__1;
|
||||
x_5 = 0;
|
||||
x_6 = l_Lake_instInhabitedLeanExeConfig___closed__3;
|
||||
x_7 = lean_alloc_ctor(0, 7, 1);
|
||||
lean_ctor_set(x_7, 0, x_1);
|
||||
lean_ctor_set(x_7, 1, x_2);
|
||||
lean_ctor_set(x_7, 2, x_3);
|
||||
lean_ctor_set(x_7, 3, x_2);
|
||||
lean_ctor_set(x_7, 4, x_3);
|
||||
lean_ctor_set(x_7, 5, x_4);
|
||||
lean_ctor_set(x_7, 6, x_6);
|
||||
lean_ctor_set_uint8(x_7, sizeof(void*)*7, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedLeanExeConfig() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_instInhabitedLeanExeConfig___closed__4;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedLeanExeConfig___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Lake_instInhabitedLeanExeConfig___lambda__1(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Facets(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_LeanConfig(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_LeanExeConfig(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Facets(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_LeanConfig(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_LeanExeConfig_srcDir___default___closed__1 = _init_l_Lake_LeanExeConfig_srcDir___default___closed__1();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_srcDir___default___closed__1);
|
||||
l_Lake_LeanExeConfig_srcDir___default = _init_l_Lake_LeanExeConfig_srcDir___default();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_srcDir___default);
|
||||
l_Lake_LeanExeConfig_exeName___default___closed__1 = _init_l_Lake_LeanExeConfig_exeName___default___closed__1();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_exeName___default___closed__1);
|
||||
l_Lake_LeanExeConfig_extraDepTargets___default___closed__1 = _init_l_Lake_LeanExeConfig_extraDepTargets___default___closed__1();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_extraDepTargets___default___closed__1);
|
||||
l_Lake_LeanExeConfig_extraDepTargets___default = _init_l_Lake_LeanExeConfig_extraDepTargets___default();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_extraDepTargets___default);
|
||||
l_Lake_LeanExeConfig_supportInterpreter___default = _init_l_Lake_LeanExeConfig_supportInterpreter___default();
|
||||
l_Lake_LeanExeConfig_nativeFacets___default___closed__1 = _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__1();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_nativeFacets___default___closed__1);
|
||||
l_Lake_LeanExeConfig_nativeFacets___default___closed__2 = _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__2();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_nativeFacets___default___closed__2);
|
||||
l_Lake_LeanExeConfig_nativeFacets___default___closed__3 = _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__3();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_nativeFacets___default___closed__3);
|
||||
l_Lake_LeanExeConfig_nativeFacets___default___closed__4 = _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__4();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_nativeFacets___default___closed__4);
|
||||
l_Lake_LeanExeConfig_nativeFacets___default___closed__5 = _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__5();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_nativeFacets___default___closed__5);
|
||||
l_Lake_LeanExeConfig_nativeFacets___default___closed__6 = _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__6();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_nativeFacets___default___closed__6);
|
||||
l_Lake_LeanExeConfig_nativeFacets___default___closed__7 = _init_l_Lake_LeanExeConfig_nativeFacets___default___closed__7();
|
||||
lean_mark_persistent(l_Lake_LeanExeConfig_nativeFacets___default___closed__7);
|
||||
l_Lake_instInhabitedLeanExeConfig___closed__1 = _init_l_Lake_instInhabitedLeanExeConfig___closed__1();
|
||||
lean_mark_persistent(l_Lake_instInhabitedLeanExeConfig___closed__1);
|
||||
l_Lake_instInhabitedLeanExeConfig___closed__2 = _init_l_Lake_instInhabitedLeanExeConfig___closed__2();
|
||||
lean_mark_persistent(l_Lake_instInhabitedLeanExeConfig___closed__2);
|
||||
l_Lake_instInhabitedLeanExeConfig___closed__3 = _init_l_Lake_instInhabitedLeanExeConfig___closed__3();
|
||||
lean_mark_persistent(l_Lake_instInhabitedLeanExeConfig___closed__3);
|
||||
l_Lake_instInhabitedLeanExeConfig___closed__4 = _init_l_Lake_instInhabitedLeanExeConfig___closed__4();
|
||||
lean_mark_persistent(l_Lake_instInhabitedLeanExeConfig___closed__4);
|
||||
l_Lake_instInhabitedLeanExeConfig = _init_l_Lake_instInhabitedLeanExeConfig();
|
||||
lean_mark_persistent(l_Lake_instInhabitedLeanExeConfig);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
1027
stage0/stdlib/Lake/Config/LeanLib.c
generated
Normal file
1027
stage0/stdlib/Lake/Config/LeanLib.c
generated
Normal file
File diff suppressed because it is too large
Load diff
904
stage0/stdlib/Lake/Config/LeanLibConfig.c
generated
Normal file
904
stage0/stdlib/Lake/Config/LeanLibConfig.c
generated
Normal file
|
|
@ -0,0 +1,904 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.LeanLibConfig
|
||||
// Imports: Init Lake.Util.Casing Lake.Build.Facets Lake.Config.InstallPath Lake.Config.LeanConfig Lake.Config.Glob
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_nativeFacets___default(uint8_t);
|
||||
static lean_object* l_Lake_LeanLibConfig_defaultFacets___default___closed__2;
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
static lean_object* l_Lake_LeanLibConfig_extraDepTargets___default___closed__1;
|
||||
static lean_object* l_Lake_LeanLibConfig_nativeFacets___default___closed__6;
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_LeanLibConfig_nativeFacets___default___closed__3;
|
||||
static lean_object* l_Lake_LeanLibConfig_roots___default___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
|
||||
lean_object* lean_array_push(lean_object*, lean_object*);
|
||||
uint8_t lean_usize_dec_eq(size_t, size_t);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__3(lean_object*, lean_object*, size_t, size_t);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__1(lean_object*, lean_object*, size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_srcDir___default;
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_LeanLibConfig_globs___default___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_LeanLibConfig_nativeFacets___default___closed__1;
|
||||
uint8_t l_Lean_Name_isPrefixOf(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_LeanLibConfig_defaultFacets___default___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedLeanLibConfig___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_roots___default(lean_object*);
|
||||
size_t lean_usize_of_nat(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedLeanLibConfig___lambda__1___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_LeanLibConfig_globs___default___spec__1(size_t, size_t, lean_object*);
|
||||
static lean_object* l_Lake_LeanLibConfig_defaultFacets___default___closed__3;
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_isLocalModule___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__2(lean_object*, lean_object*, size_t, size_t);
|
||||
LEAN_EXPORT uint8_t l_Lake_LeanLibConfig_isLocalModule(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_defaultFacets___default;
|
||||
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t);
|
||||
LEAN_EXPORT uint8_t l_Lake_LeanLibConfig_precompileModules___default;
|
||||
static lean_object* l_Lake_LeanLibConfig_nativeFacets___default___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_libName___default(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_globs___default(lean_object*);
|
||||
static lean_object* l_Lake_LeanLibConfig_srcDir___default___closed__1;
|
||||
static lean_object* l_Lake_LeanLibConfig_nativeFacets___default___closed__5;
|
||||
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__1(lean_object*, lean_object*, size_t, size_t);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedLeanLibConfig___lambda__1(uint8_t);
|
||||
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
|
||||
uint8_t l_Lake_Glob_matches(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_LeanLibConfig_nativeFacets___default___closed__4;
|
||||
static lean_object* l_Lake_instInhabitedLeanLibConfig___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_extraDepTargets___default;
|
||||
size_t lean_usize_add(size_t, size_t);
|
||||
lean_object* lean_array_uget(lean_object*, size_t);
|
||||
LEAN_EXPORT uint8_t l_Lake_LeanLibConfig_isBuildableModule(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedLeanLibConfig;
|
||||
lean_object* lean_array_get_size(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_isBuildableModule___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedLeanLibConfig___closed__4;
|
||||
uint8_t lean_usize_dec_lt(size_t, size_t);
|
||||
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedLeanLibConfig___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_nativeFacets___default___boxed(lean_object*);
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_srcDir___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes(".", 1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_srcDir___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_LeanLibConfig_srcDir___default___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_roots___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(1u);
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_roots___default(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lake_LeanLibConfig_roots___default___closed__1;
|
||||
x_3 = lean_array_push(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_LeanLibConfig_globs___default___spec__1(size_t x_1, size_t x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_4;
|
||||
x_4 = lean_usize_dec_lt(x_2, x_1);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
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;
|
||||
x_5 = lean_array_uget(x_3, x_2);
|
||||
x_6 = lean_unsigned_to_nat(0u);
|
||||
x_7 = lean_array_uset(x_3, x_2, x_6);
|
||||
x_8 = lean_alloc_ctor(0, 1, 0);
|
||||
lean_ctor_set(x_8, 0, x_5);
|
||||
x_9 = 1;
|
||||
x_10 = lean_usize_add(x_2, x_9);
|
||||
x_11 = lean_array_uset(x_7, x_2, x_8);
|
||||
x_2 = x_10;
|
||||
x_3 = x_11;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_globs___default(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; size_t x_3; size_t x_4; lean_object* x_5;
|
||||
x_2 = lean_array_get_size(x_1);
|
||||
x_3 = lean_usize_of_nat(x_2);
|
||||
lean_dec(x_2);
|
||||
x_4 = 0;
|
||||
x_5 = l_Array_mapMUnsafe_map___at_Lake_LeanLibConfig_globs___default___spec__1(x_3, x_4, x_1);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_LeanLibConfig_globs___default___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
size_t x_4; size_t x_5; lean_object* x_6;
|
||||
x_4 = lean_unbox_usize(x_1);
|
||||
lean_dec(x_1);
|
||||
x_5 = lean_unbox_usize(x_2);
|
||||
lean_dec(x_2);
|
||||
x_6 = l_Array_mapMUnsafe_map___at_Lake_LeanLibConfig_globs___default___spec__1(x_4, x_5, x_3);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_libName___default(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = 0;
|
||||
x_3 = l_Lean_Name_toString(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_extraDepTargets___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_extraDepTargets___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_LeanLibConfig_extraDepTargets___default___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lake_LeanLibConfig_precompileModules___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 0;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_defaultFacets___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("leanArts", 8);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_defaultFacets___default___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lake_LeanLibConfig_defaultFacets___default___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_defaultFacets___default___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_LeanLibConfig_roots___default___closed__1;
|
||||
x_2 = l_Lake_LeanLibConfig_defaultFacets___default___closed__2;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_defaultFacets___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_LeanLibConfig_defaultFacets___default___closed__3;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("o", 1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lake_LeanLibConfig_nativeFacets___default___closed__1;
|
||||
x_3 = l_Lean_Name_str___override(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_LeanLibConfig_roots___default___closed__1;
|
||||
x_2 = l_Lake_LeanLibConfig_nativeFacets___default___closed__2;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("export", 6);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_LeanLibConfig_nativeFacets___default___closed__1;
|
||||
x_2 = l_Lake_LeanLibConfig_nativeFacets___default___closed__4;
|
||||
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_LeanLibConfig_roots___default___closed__1;
|
||||
x_2 = l_Lake_LeanLibConfig_nativeFacets___default___closed__5;
|
||||
x_3 = lean_array_push(x_1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_nativeFacets___default(uint8_t x_1) {
|
||||
_start:
|
||||
{
|
||||
if (x_1 == 0)
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_LeanLibConfig_nativeFacets___default___closed__3;
|
||||
return x_2;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_LeanLibConfig_nativeFacets___default___closed__6;
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_nativeFacets___default___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Lake_LeanLibConfig_nativeFacets___default(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedLeanLibConfig___lambda__1(uint8_t x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_LeanLibConfig_extraDepTargets___default___closed__1;
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedLeanLibConfig___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint8_t x_2; lean_object* x_3; uint8_t x_4; lean_object* x_5;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = 0;
|
||||
x_3 = l_Lake_LeanLibConfig_extraDepTargets___default___closed__1;
|
||||
x_4 = 2;
|
||||
x_5 = lean_alloc_ctor(0, 9, 2);
|
||||
lean_ctor_set(x_5, 0, x_3);
|
||||
lean_ctor_set(x_5, 1, x_3);
|
||||
lean_ctor_set(x_5, 2, x_3);
|
||||
lean_ctor_set(x_5, 3, x_3);
|
||||
lean_ctor_set(x_5, 4, x_3);
|
||||
lean_ctor_set(x_5, 5, x_3);
|
||||
lean_ctor_set(x_5, 6, x_3);
|
||||
lean_ctor_set(x_5, 7, x_3);
|
||||
lean_ctor_set(x_5, 8, x_1);
|
||||
lean_ctor_set_uint8(x_5, sizeof(void*)*9, x_2);
|
||||
lean_ctor_set_uint8(x_5, sizeof(void*)*9 + 1, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedLeanLibConfig___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("", 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedLeanLibConfig___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_instInhabitedLeanLibConfig___lambda__1___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedLeanLibConfig___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_1 = l_Lake_instInhabitedLeanLibConfig___closed__1;
|
||||
x_2 = lean_box(0);
|
||||
x_3 = l_Lake_instInhabitedLeanLibConfig___closed__2;
|
||||
x_4 = l_Lake_LeanLibConfig_extraDepTargets___default___closed__1;
|
||||
x_5 = 0;
|
||||
x_6 = l_Lake_instInhabitedLeanLibConfig___closed__3;
|
||||
x_7 = lean_alloc_ctor(0, 9, 1);
|
||||
lean_ctor_set(x_7, 0, x_1);
|
||||
lean_ctor_set(x_7, 1, x_2);
|
||||
lean_ctor_set(x_7, 2, x_3);
|
||||
lean_ctor_set(x_7, 3, x_4);
|
||||
lean_ctor_set(x_7, 4, x_4);
|
||||
lean_ctor_set(x_7, 5, x_3);
|
||||
lean_ctor_set(x_7, 6, x_4);
|
||||
lean_ctor_set(x_7, 7, x_4);
|
||||
lean_ctor_set(x_7, 8, x_6);
|
||||
lean_ctor_set_uint8(x_7, sizeof(void*)*9, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedLeanLibConfig() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_instInhabitedLeanLibConfig___closed__4;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedLeanLibConfig___lambda__1___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2; lean_object* x_3;
|
||||
x_2 = lean_unbox(x_1);
|
||||
lean_dec(x_1);
|
||||
x_3 = l_Lake_instInhabitedLeanLibConfig___lambda__1(x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = lean_usize_dec_eq(x_3, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; uint8_t x_7;
|
||||
x_6 = lean_array_uget(x_2, x_3);
|
||||
x_7 = l_Lake_Glob_matches(x_1, x_6);
|
||||
lean_dec(x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
size_t x_8; size_t x_9;
|
||||
x_8 = 1;
|
||||
x_9 = lean_usize_add(x_3, x_8);
|
||||
x_3 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_11;
|
||||
x_11 = 1;
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = 0;
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__2(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = lean_usize_dec_eq(x_3, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; uint8_t x_7;
|
||||
x_6 = lean_array_uget(x_2, x_3);
|
||||
x_7 = l_Lean_Name_isPrefixOf(x_6, x_1);
|
||||
lean_dec(x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
size_t x_8; size_t x_9;
|
||||
x_8 = 1;
|
||||
x_9 = lean_usize_add(x_3, x_8);
|
||||
x_3 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_11;
|
||||
x_11 = 1;
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = 0;
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_LeanLibConfig_isLocalModule(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16;
|
||||
x_13 = lean_ctor_get(x_2, 3);
|
||||
x_14 = lean_array_get_size(x_13);
|
||||
x_15 = lean_unsigned_to_nat(0u);
|
||||
x_16 = lean_nat_dec_lt(x_15, x_14);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17;
|
||||
lean_dec(x_14);
|
||||
x_17 = lean_box(0);
|
||||
x_3 = x_17;
|
||||
goto block_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_18; size_t x_19; uint8_t x_20;
|
||||
x_18 = 0;
|
||||
x_19 = lean_usize_of_nat(x_14);
|
||||
lean_dec(x_14);
|
||||
x_20 = l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__2(x_1, x_13, x_18, x_19);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_21;
|
||||
x_21 = lean_box(0);
|
||||
x_3 = x_21;
|
||||
goto block_12;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_22;
|
||||
x_22 = 1;
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
block_12:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7;
|
||||
lean_dec(x_3);
|
||||
x_4 = lean_ctor_get(x_2, 4);
|
||||
x_5 = lean_array_get_size(x_4);
|
||||
x_6 = lean_unsigned_to_nat(0u);
|
||||
x_7 = lean_nat_dec_lt(x_6, x_5);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
uint8_t x_8;
|
||||
lean_dec(x_5);
|
||||
x_8 = 0;
|
||||
return x_8;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_9; size_t x_10; uint8_t x_11;
|
||||
x_9 = 0;
|
||||
x_10 = lean_usize_of_nat(x_5);
|
||||
lean_dec(x_5);
|
||||
x_11 = l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__1(x_1, x_4, x_9, x_10);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__1___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_Lake_LeanLibConfig_isLocalModule___spec__1(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_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
|
||||
_start:
|
||||
{
|
||||
size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8;
|
||||
x_5 = lean_unbox_usize(x_3);
|
||||
lean_dec(x_3);
|
||||
x_6 = lean_unbox_usize(x_4);
|
||||
lean_dec(x_4);
|
||||
x_7 = l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isLocalModule___spec__2(x_1, x_2, x_5, x_6);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_8 = lean_box(x_7);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LeanLibConfig_isLocalModule___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l_Lake_LeanLibConfig_isLocalModule(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = lean_usize_dec_eq(x_3, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; uint8_t x_7;
|
||||
x_6 = lean_array_uget(x_2, x_3);
|
||||
x_7 = l_Lake_Glob_matches(x_1, x_6);
|
||||
lean_dec(x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
size_t x_8; size_t x_9;
|
||||
x_8 = 1;
|
||||
x_9 = lean_usize_add(x_3, x_8);
|
||||
x_3 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_11;
|
||||
x_11 = 1;
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = 0;
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, size_t x_5, size_t x_6) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_7;
|
||||
x_7 = lean_usize_dec_eq(x_5, x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
lean_object* x_8; uint8_t x_9;
|
||||
x_8 = lean_array_uget(x_4, x_5);
|
||||
x_9 = l_Lean_Name_isPrefixOf(x_8, x_1);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
size_t x_10; size_t x_11;
|
||||
lean_dec(x_8);
|
||||
x_10 = 1;
|
||||
x_11 = lean_usize_add(x_5, x_10);
|
||||
x_5 = x_11;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_13; uint8_t x_14;
|
||||
x_13 = lean_unsigned_to_nat(0u);
|
||||
x_14 = lean_nat_dec_lt(x_13, x_3);
|
||||
if (x_14 == 0)
|
||||
{
|
||||
size_t x_15; size_t x_16;
|
||||
lean_dec(x_8);
|
||||
x_15 = 1;
|
||||
x_16 = lean_usize_add(x_5, x_15);
|
||||
x_5 = x_16;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_18; size_t x_19; uint8_t x_20;
|
||||
x_18 = 0;
|
||||
x_19 = lean_usize_of_nat(x_3);
|
||||
x_20 = l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__1(x_8, x_2, x_18, x_19);
|
||||
lean_dec(x_8);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
size_t x_21; size_t x_22;
|
||||
x_21 = 1;
|
||||
x_22 = lean_usize_add(x_5, x_21);
|
||||
x_5 = x_22;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_24;
|
||||
x_24 = 1;
|
||||
return x_24;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_25;
|
||||
x_25 = 0;
|
||||
return x_25;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__3(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_5;
|
||||
x_5 = lean_usize_dec_eq(x_3, x_4);
|
||||
if (x_5 == 0)
|
||||
{
|
||||
lean_object* x_6; uint8_t x_7;
|
||||
x_6 = lean_array_uget(x_2, x_3);
|
||||
x_7 = l_Lake_Glob_matches(x_1, x_6);
|
||||
lean_dec(x_6);
|
||||
if (x_7 == 0)
|
||||
{
|
||||
size_t x_8; size_t x_9;
|
||||
x_8 = 1;
|
||||
x_9 = lean_usize_add(x_3, x_8);
|
||||
x_3 = x_9;
|
||||
goto _start;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_11;
|
||||
x_11 = 1;
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_12;
|
||||
x_12 = 0;
|
||||
return x_12;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT uint8_t l_Lake_LeanLibConfig_isBuildableModule(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_15; uint8_t x_16;
|
||||
x_3 = lean_ctor_get(x_2, 4);
|
||||
x_4 = lean_array_get_size(x_3);
|
||||
x_15 = lean_unsigned_to_nat(0u);
|
||||
x_16 = lean_nat_dec_lt(x_15, x_4);
|
||||
if (x_16 == 0)
|
||||
{
|
||||
lean_object* x_17;
|
||||
x_17 = lean_box(0);
|
||||
x_5 = x_17;
|
||||
goto block_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_18; size_t x_19; uint8_t x_20;
|
||||
x_18 = 0;
|
||||
x_19 = lean_usize_of_nat(x_4);
|
||||
x_20 = l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__3(x_1, x_3, x_18, x_19);
|
||||
if (x_20 == 0)
|
||||
{
|
||||
lean_object* x_21;
|
||||
x_21 = lean_box(0);
|
||||
x_5 = x_21;
|
||||
goto block_14;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_22;
|
||||
lean_dec(x_4);
|
||||
x_22 = 1;
|
||||
return x_22;
|
||||
}
|
||||
}
|
||||
block_14:
|
||||
{
|
||||
lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9;
|
||||
lean_dec(x_5);
|
||||
x_6 = lean_ctor_get(x_2, 3);
|
||||
x_7 = lean_array_get_size(x_6);
|
||||
x_8 = lean_unsigned_to_nat(0u);
|
||||
x_9 = lean_nat_dec_lt(x_8, x_7);
|
||||
if (x_9 == 0)
|
||||
{
|
||||
uint8_t x_10;
|
||||
lean_dec(x_7);
|
||||
lean_dec(x_4);
|
||||
x_10 = 0;
|
||||
return x_10;
|
||||
}
|
||||
else
|
||||
{
|
||||
size_t x_11; size_t x_12; uint8_t x_13;
|
||||
x_11 = 0;
|
||||
x_12 = lean_usize_of_nat(x_7);
|
||||
lean_dec(x_7);
|
||||
x_13 = l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__2(x_1, x_3, x_4, x_6, x_11, x_12);
|
||||
lean_dec(x_4);
|
||||
return x_13;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__1___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_Lake_LeanLibConfig_isBuildableModule___spec__1(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_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___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) {
|
||||
_start:
|
||||
{
|
||||
size_t x_7; size_t x_8; uint8_t x_9; lean_object* x_10;
|
||||
x_7 = lean_unbox_usize(x_5);
|
||||
lean_dec(x_5);
|
||||
x_8 = lean_unbox_usize(x_6);
|
||||
lean_dec(x_6);
|
||||
x_9 = l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__2(x_1, x_2, x_3, x_4, x_7, x_8);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_10 = lean_box(x_9);
|
||||
return x_10;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lake_LeanLibConfig_isBuildableModule___spec__3___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_Lake_LeanLibConfig_isBuildableModule___spec__3(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_EXPORT lean_object* l_Lake_LeanLibConfig_isBuildableModule___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_3; lean_object* x_4;
|
||||
x_3 = l_Lake_LeanLibConfig_isBuildableModule(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
x_4 = lean_box(x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_Casing(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Facets(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_InstallPath(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_LeanConfig(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_Glob(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_LeanLibConfig(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_Casing(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Facets(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_InstallPath(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_LeanConfig(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_Glob(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_LeanLibConfig_srcDir___default___closed__1 = _init_l_Lake_LeanLibConfig_srcDir___default___closed__1();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_srcDir___default___closed__1);
|
||||
l_Lake_LeanLibConfig_srcDir___default = _init_l_Lake_LeanLibConfig_srcDir___default();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_srcDir___default);
|
||||
l_Lake_LeanLibConfig_roots___default___closed__1 = _init_l_Lake_LeanLibConfig_roots___default___closed__1();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_roots___default___closed__1);
|
||||
l_Lake_LeanLibConfig_extraDepTargets___default___closed__1 = _init_l_Lake_LeanLibConfig_extraDepTargets___default___closed__1();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_extraDepTargets___default___closed__1);
|
||||
l_Lake_LeanLibConfig_extraDepTargets___default = _init_l_Lake_LeanLibConfig_extraDepTargets___default();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_extraDepTargets___default);
|
||||
l_Lake_LeanLibConfig_precompileModules___default = _init_l_Lake_LeanLibConfig_precompileModules___default();
|
||||
l_Lake_LeanLibConfig_defaultFacets___default___closed__1 = _init_l_Lake_LeanLibConfig_defaultFacets___default___closed__1();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_defaultFacets___default___closed__1);
|
||||
l_Lake_LeanLibConfig_defaultFacets___default___closed__2 = _init_l_Lake_LeanLibConfig_defaultFacets___default___closed__2();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_defaultFacets___default___closed__2);
|
||||
l_Lake_LeanLibConfig_defaultFacets___default___closed__3 = _init_l_Lake_LeanLibConfig_defaultFacets___default___closed__3();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_defaultFacets___default___closed__3);
|
||||
l_Lake_LeanLibConfig_defaultFacets___default = _init_l_Lake_LeanLibConfig_defaultFacets___default();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_defaultFacets___default);
|
||||
l_Lake_LeanLibConfig_nativeFacets___default___closed__1 = _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__1();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_nativeFacets___default___closed__1);
|
||||
l_Lake_LeanLibConfig_nativeFacets___default___closed__2 = _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__2();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_nativeFacets___default___closed__2);
|
||||
l_Lake_LeanLibConfig_nativeFacets___default___closed__3 = _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__3();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_nativeFacets___default___closed__3);
|
||||
l_Lake_LeanLibConfig_nativeFacets___default___closed__4 = _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__4();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_nativeFacets___default___closed__4);
|
||||
l_Lake_LeanLibConfig_nativeFacets___default___closed__5 = _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__5();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_nativeFacets___default___closed__5);
|
||||
l_Lake_LeanLibConfig_nativeFacets___default___closed__6 = _init_l_Lake_LeanLibConfig_nativeFacets___default___closed__6();
|
||||
lean_mark_persistent(l_Lake_LeanLibConfig_nativeFacets___default___closed__6);
|
||||
l_Lake_instInhabitedLeanLibConfig___closed__1 = _init_l_Lake_instInhabitedLeanLibConfig___closed__1();
|
||||
lean_mark_persistent(l_Lake_instInhabitedLeanLibConfig___closed__1);
|
||||
l_Lake_instInhabitedLeanLibConfig___closed__2 = _init_l_Lake_instInhabitedLeanLibConfig___closed__2();
|
||||
lean_mark_persistent(l_Lake_instInhabitedLeanLibConfig___closed__2);
|
||||
l_Lake_instInhabitedLeanLibConfig___closed__3 = _init_l_Lake_instInhabitedLeanLibConfig___closed__3();
|
||||
lean_mark_persistent(l_Lake_instInhabitedLeanLibConfig___closed__3);
|
||||
l_Lake_instInhabitedLeanLibConfig___closed__4 = _init_l_Lake_instInhabitedLeanLibConfig___closed__4();
|
||||
lean_mark_persistent(l_Lake_instInhabitedLeanLibConfig___closed__4);
|
||||
l_Lake_instInhabitedLeanLibConfig = _init_l_Lake_instInhabitedLeanLibConfig();
|
||||
lean_mark_persistent(l_Lake_instInhabitedLeanLibConfig);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
3274
stage0/stdlib/Lake/Config/Module.c
generated
Normal file
3274
stage0/stdlib/Lake/Config/Module.c
generated
Normal file
File diff suppressed because it is too large
Load diff
2032
stage0/stdlib/Lake/Config/Monad.c
generated
Normal file
2032
stage0/stdlib/Lake/Config/Monad.c
generated
Normal file
File diff suppressed because it is too large
Load diff
71
stage0/stdlib/Lake/Config/Opaque.c
generated
Normal file
71
stage0/stdlib/Lake/Config/Opaque.c
generated
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.Opaque
|
||||
// Imports: Init Lake.Util.Name Lake.Util.Opaque
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_nonemptyType___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaquePackage_nonemptyType;
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueWorkspace_nonemptyType;
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_nonemptyType(lean_object*, lean_object*);
|
||||
static lean_object* _init_l_Lake_OpaquePackage_nonemptyType() {
|
||||
_start:
|
||||
{
|
||||
return lean_box(0);
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_OpaqueWorkspace_nonemptyType() {
|
||||
_start:
|
||||
{
|
||||
return lean_box(0);
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_nonemptyType(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
return lean_box(0);
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_nonemptyType___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_OpaqueTargetConfig_nonemptyType(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_Name(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_Opaque(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_Opaque(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_Name(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_Opaque(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_OpaquePackage_nonemptyType = _init_l_Lake_OpaquePackage_nonemptyType();
|
||||
l_Lake_OpaqueWorkspace_nonemptyType = _init_l_Lake_OpaqueWorkspace_nonemptyType();
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
2482
stage0/stdlib/Lake/Config/Package.c
generated
Normal file
2482
stage0/stdlib/Lake/Config/Package.c
generated
Normal file
File diff suppressed because it is too large
Load diff
151
stage0/stdlib/Lake/Config/Script.c
generated
Normal file
151
stage0/stdlib/Lake/Config/Script.c
generated
Normal file
|
|
@ -0,0 +1,151 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.Script
|
||||
// Imports: Init Lake.Util.Exit Lake.Config.Context
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static uint32_t l_Lake_instInhabitedScript___lambda__1___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedScript;
|
||||
static lean_object* l_Lake_instInhabitedScript___lambda__1___closed__3;
|
||||
static lean_object* l_Lake_instInhabitedScript___lambda__1___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedScript___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedScript___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedScript___lambda__1(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_Script_run(lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedScript___closed__1;
|
||||
uint32_t lean_uint32_of_nat(lean_object*);
|
||||
static uint32_t _init_l_Lake_instInhabitedScript___lambda__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint32_t x_2;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = lean_uint32_of_nat(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedScript___lambda__1___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("", 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedScript___lambda__1___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint32_t x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lake_instInhabitedScript___lambda__1___closed__1;
|
||||
x_3 = l_Lake_instInhabitedScript___lambda__1___closed__2;
|
||||
x_4 = lean_alloc_ctor(0, 2, 4);
|
||||
lean_ctor_set(x_4, 0, x_1);
|
||||
lean_ctor_set(x_4, 1, x_3);
|
||||
lean_ctor_set_uint32(x_4, sizeof(void*)*2, x_2);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedScript___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4; lean_object* x_5;
|
||||
x_4 = l_Lake_instInhabitedScript___lambda__1___closed__3;
|
||||
x_5 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_5, 0, x_4);
|
||||
lean_ctor_set(x_5, 1, x_3);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedScript___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_instInhabitedScript___lambda__1___boxed), 3, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedScript___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lake_instInhabitedScript___lambda__1___closed__2;
|
||||
x_3 = l_Lake_instInhabitedScript___closed__1;
|
||||
x_4 = lean_alloc_ctor(0, 3, 0);
|
||||
lean_ctor_set(x_4, 0, x_2);
|
||||
lean_ctor_set(x_4, 1, x_3);
|
||||
lean_ctor_set(x_4, 2, x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedScript() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_instInhabitedScript___closed__2;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedScript___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_instInhabitedScript___lambda__1(x_1, x_2, x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_Script_run(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;
|
||||
x_5 = lean_ctor_get(x_2, 1);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_2);
|
||||
x_6 = lean_apply_3(x_5, x_1, x_3, x_4);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_Exit(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_Context(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_Script(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_Exit(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_Context(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_instInhabitedScript___lambda__1___closed__1 = _init_l_Lake_instInhabitedScript___lambda__1___closed__1();
|
||||
l_Lake_instInhabitedScript___lambda__1___closed__2 = _init_l_Lake_instInhabitedScript___lambda__1___closed__2();
|
||||
lean_mark_persistent(l_Lake_instInhabitedScript___lambda__1___closed__2);
|
||||
l_Lake_instInhabitedScript___lambda__1___closed__3 = _init_l_Lake_instInhabitedScript___lambda__1___closed__3();
|
||||
lean_mark_persistent(l_Lake_instInhabitedScript___lambda__1___closed__3);
|
||||
l_Lake_instInhabitedScript___closed__1 = _init_l_Lake_instInhabitedScript___closed__1();
|
||||
lean_mark_persistent(l_Lake_instInhabitedScript___closed__1);
|
||||
l_Lake_instInhabitedScript___closed__2 = _init_l_Lake_instInhabitedScript___closed__2();
|
||||
lean_mark_persistent(l_Lake_instInhabitedScript___closed__2);
|
||||
l_Lake_instInhabitedScript = _init_l_Lake_instInhabitedScript();
|
||||
lean_mark_persistent(l_Lake_instInhabitedScript);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
626
stage0/stdlib/Lake/Config/TargetConfig.c
generated
Normal file
626
stage0/stdlib/Lake/Config/TargetConfig.c
generated
Normal file
|
|
@ -0,0 +1,626 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.TargetConfig
|
||||
// Imports: Init Lake.Build.Fetch
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeMk___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_RBNode_dFind___at_Lake_Package_findTargetConfig_x3f___spec__1(lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1___closed__1;
|
||||
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeGet___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_mkTargetJobConfig(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig___rarg___boxed(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeGet___rarg___boxed(lean_object*);
|
||||
static lean_object* l_Lake_OpaqueTargetConfig_instCoeTargetConfig___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_Package_findTargetConfig_x3f___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeMk___rarg___boxed(lean_object*);
|
||||
lean_object* lean_task_pure(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeGet(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedTargetConfig___lambda__2___closed__5;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeMk___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig___lambda__2___boxed(lean_object*);
|
||||
static lean_object* l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig___boxed(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedTargetConfig___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_Package_findTargetConfig_x3f(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instCoeTargetConfig___boxed(lean_object*, lean_object*);
|
||||
extern lean_object* l_Task_Priority_default;
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1___boxed(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig___lambda__2(lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedTargetConfig___lambda__2___closed__4;
|
||||
extern lean_object* l_Lake_BuildTrace_nil;
|
||||
lean_object* l_Lake_EResult_map___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_mkTargetJobConfig___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_RBNode_dFind___at_Lake_Package_findTargetConfig_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedTargetConfig___lambda__2___closed__3;
|
||||
static lean_object* l_Lake_instInhabitedTargetConfig___closed__2;
|
||||
static lean_object* l_Lake_instInhabitedTargetConfig___lambda__2___closed__6;
|
||||
static lean_object* l_Lake_instInhabitedTargetConfig___lambda__2___closed__7;
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeGet___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instCoeTargetConfig(lean_object*, lean_object*);
|
||||
lean_object* lean_task_map(lean_object*, lean_object*, lean_object*, uint8_t);
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___lambda__1(lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedTargetConfig___lambda__2___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeMk(lean_object*, lean_object*);
|
||||
uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*);
|
||||
static lean_object* l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_instInhabitedTargetConfig___lambda__2___closed__2;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig___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;
|
||||
x_8 = lean_unsigned_to_nat(0u);
|
||||
x_9 = lean_alloc_ctor(1, 2, 0);
|
||||
lean_ctor_set(x_9, 0, x_8);
|
||||
lean_ctor_set(x_9, 1, x_5);
|
||||
x_10 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_9);
|
||||
lean_ctor_set(x_10, 1, x_6);
|
||||
x_11 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_11, 0, x_10);
|
||||
lean_ctor_set(x_11, 1, x_7);
|
||||
return x_11;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l_Lake_BuildTrace_nil;
|
||||
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_Lake_instInhabitedTargetConfig___lambda__2___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(0u);
|
||||
x_2 = lean_mk_empty_array_with_capacity(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; uint8_t x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_instInhabitedTargetConfig___lambda__2___closed__2;
|
||||
x_2 = 0;
|
||||
x_3 = lean_alloc_ctor(0, 1, 1);
|
||||
lean_ctor_set(x_3, 0, x_1);
|
||||
lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_instInhabitedTargetConfig___lambda__2___closed__1;
|
||||
x_2 = l_Lake_instInhabitedTargetConfig___lambda__2___closed__3;
|
||||
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_Lake_instInhabitedTargetConfig___lambda__2___closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Lake_instInhabitedTargetConfig___lambda__2___closed__4;
|
||||
x_2 = lean_task_pure(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("", 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l_Lake_instInhabitedTargetConfig___lambda__2___closed__5;
|
||||
x_2 = l_Lake_instInhabitedTargetConfig___lambda__2___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;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig___lambda__2(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_instInhabitedTargetConfig___lambda__2___closed__7;
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedTargetConfig___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_instInhabitedTargetConfig___lambda__1___boxed), 7, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedTargetConfig___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_instInhabitedTargetConfig___lambda__2___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5;
|
||||
x_3 = l_Lake_instInhabitedTargetConfig___closed__1;
|
||||
x_4 = l_Lake_instInhabitedTargetConfig___closed__2;
|
||||
x_5 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_5, 0, x_3);
|
||||
lean_ctor_set(x_5, 1, x_4);
|
||||
return x_5;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_8;
|
||||
x_8 = l_Lake_instInhabitedTargetConfig___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
|
||||
lean_dec(x_4);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig___lambda__2___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_instInhabitedTargetConfig___lambda__2(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedTargetConfig___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_instInhabitedTargetConfig(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___lambda__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = !lean_is_exclusive(x_1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
lean_dec(x_3);
|
||||
x_4 = lean_box(0);
|
||||
lean_ctor_set(x_1, 0, x_4);
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_1);
|
||||
x_6 = lean_box(0);
|
||||
x_7 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_6);
|
||||
lean_ctor_set(x_7, 1, x_5);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___lambda__1), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__1;
|
||||
x_2 = lean_alloc_closure((void*)(l_Lake_EResult_map___rarg), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_2;
|
||||
x_2 = !lean_is_exclusive(x_1);
|
||||
if (x_2 == 0)
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; lean_object* x_7;
|
||||
x_3 = lean_ctor_get(x_1, 0);
|
||||
x_4 = l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__2;
|
||||
x_5 = l_Task_Priority_default;
|
||||
x_6 = 0;
|
||||
x_7 = lean_task_map(x_4, x_3, x_5, x_6);
|
||||
lean_ctor_set(x_1, 0, x_7);
|
||||
return x_1;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14;
|
||||
x_8 = lean_ctor_get(x_1, 0);
|
||||
x_9 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_9);
|
||||
lean_inc(x_8);
|
||||
lean_dec(x_1);
|
||||
x_10 = l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__2;
|
||||
x_11 = l_Task_Priority_default;
|
||||
x_12 = 0;
|
||||
x_13 = lean_task_map(x_10, x_8, x_11, x_12);
|
||||
x_14 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_14, 1, x_9);
|
||||
return x_14;
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = lean_alloc_closure((void*)(l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg), 1, 0);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_mkTargetJobConfig(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;
|
||||
x_6 = lean_alloc_closure((void*)(l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg), 1, 0);
|
||||
x_7 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_4);
|
||||
lean_ctor_set(x_7, 1, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_mkTargetJobConfig___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_Lake_mkTargetJobConfig(x_1, x_2, x_3, x_4, x_5);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_1);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeMk___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_inc(x_1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeMk(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lake_OpaqueTargetConfig_unsafeMk___rarg___boxed), 1, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeMk___rarg___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_OpaqueTargetConfig_unsafeMk___rarg(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeMk___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_OpaqueTargetConfig_unsafeMk(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_OpaqueTargetConfig_instCoeTargetConfig___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_OpaqueTargetConfig_unsafeMk___rarg___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instCoeTargetConfig(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_OpaqueTargetConfig_instCoeTargetConfig___closed__1;
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instCoeTargetConfig___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_OpaqueTargetConfig_instCoeTargetConfig(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeGet___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_inc(x_1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeGet(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lake_OpaqueTargetConfig_unsafeGet___rarg___boxed), 1, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeGet___rarg___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_OpaqueTargetConfig_unsafeGet___rarg(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_unsafeGet___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_OpaqueTargetConfig_unsafeGet(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l_Lake_OpaqueTargetConfig_unsafeGet___rarg___boxed), 1, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1___closed__1;
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig___rarg(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_inc(x_1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = lean_alloc_closure((void*)(l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig___rarg___boxed), 1, 0);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig___rarg___boxed(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2;
|
||||
x_2 = l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig___rarg(x_1);
|
||||
lean_dec(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_OpaqueTargetConfig_instInhabitedOfTargetConfig(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_RBNode_dFind___at_Lake_Package_findTargetConfig_x3f___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
if (lean_obj_tag(x_2) == 0)
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = lean_box(0);
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9;
|
||||
x_5 = lean_ctor_get(x_2, 0);
|
||||
x_6 = lean_ctor_get(x_2, 1);
|
||||
x_7 = lean_ctor_get(x_2, 2);
|
||||
x_8 = lean_ctor_get(x_2, 3);
|
||||
x_9 = l_Lean_Name_quickCmp(x_3, x_6);
|
||||
switch (x_9) {
|
||||
case 0:
|
||||
{
|
||||
x_2 = x_5;
|
||||
goto _start;
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
lean_object* x_11;
|
||||
lean_inc(x_7);
|
||||
x_11 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_11, 0, x_7);
|
||||
return x_11;
|
||||
}
|
||||
default:
|
||||
{
|
||||
x_2 = x_8;
|
||||
goto _start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_Package_findTargetConfig_x3f(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; lean_object* x_4;
|
||||
x_3 = lean_ctor_get(x_2, 11);
|
||||
x_4 = l_Lake_RBNode_dFind___at_Lake_Package_findTargetConfig_x3f___spec__1(x_2, x_3, x_1);
|
||||
if (lean_obj_tag(x_4) == 0)
|
||||
{
|
||||
lean_object* x_5;
|
||||
x_5 = lean_box(0);
|
||||
return x_5;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t x_6;
|
||||
x_6 = !lean_is_exclusive(x_4);
|
||||
if (x_6 == 0)
|
||||
{
|
||||
return x_4;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_7; lean_object* x_8;
|
||||
x_7 = lean_ctor_get(x_4, 0);
|
||||
lean_inc(x_7);
|
||||
lean_dec(x_4);
|
||||
x_8 = lean_alloc_ctor(1, 1, 0);
|
||||
lean_ctor_set(x_8, 0, x_7);
|
||||
return x_8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_RBNode_dFind___at_Lake_Package_findTargetConfig_x3f___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_4;
|
||||
x_4 = l_Lake_RBNode_dFind___at_Lake_Package_findTargetConfig_x3f___spec__1(x_1, x_2, x_3);
|
||||
lean_dec(x_3);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_Package_findTargetConfig_x3f___boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l_Lake_Package_findTargetConfig_x3f(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Build_Fetch(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_TargetConfig(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Build_Fetch(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_instInhabitedTargetConfig___lambda__2___closed__1 = _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__1();
|
||||
lean_mark_persistent(l_Lake_instInhabitedTargetConfig___lambda__2___closed__1);
|
||||
l_Lake_instInhabitedTargetConfig___lambda__2___closed__2 = _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__2();
|
||||
lean_mark_persistent(l_Lake_instInhabitedTargetConfig___lambda__2___closed__2);
|
||||
l_Lake_instInhabitedTargetConfig___lambda__2___closed__3 = _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__3();
|
||||
lean_mark_persistent(l_Lake_instInhabitedTargetConfig___lambda__2___closed__3);
|
||||
l_Lake_instInhabitedTargetConfig___lambda__2___closed__4 = _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__4();
|
||||
lean_mark_persistent(l_Lake_instInhabitedTargetConfig___lambda__2___closed__4);
|
||||
l_Lake_instInhabitedTargetConfig___lambda__2___closed__5 = _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__5();
|
||||
lean_mark_persistent(l_Lake_instInhabitedTargetConfig___lambda__2___closed__5);
|
||||
l_Lake_instInhabitedTargetConfig___lambda__2___closed__6 = _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__6();
|
||||
lean_mark_persistent(l_Lake_instInhabitedTargetConfig___lambda__2___closed__6);
|
||||
l_Lake_instInhabitedTargetConfig___lambda__2___closed__7 = _init_l_Lake_instInhabitedTargetConfig___lambda__2___closed__7();
|
||||
lean_mark_persistent(l_Lake_instInhabitedTargetConfig___lambda__2___closed__7);
|
||||
l_Lake_instInhabitedTargetConfig___closed__1 = _init_l_Lake_instInhabitedTargetConfig___closed__1();
|
||||
lean_mark_persistent(l_Lake_instInhabitedTargetConfig___closed__1);
|
||||
l_Lake_instInhabitedTargetConfig___closed__2 = _init_l_Lake_instInhabitedTargetConfig___closed__2();
|
||||
lean_mark_persistent(l_Lake_instInhabitedTargetConfig___closed__2);
|
||||
l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__1 = _init_l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__1();
|
||||
lean_mark_persistent(l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__1);
|
||||
l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__2 = _init_l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__2();
|
||||
lean_mark_persistent(l_Functor_discard___at_Lake_mkTargetJobConfig___spec__1___rarg___closed__2);
|
||||
l_Lake_OpaqueTargetConfig_instCoeTargetConfig___closed__1 = _init_l_Lake_OpaqueTargetConfig_instCoeTargetConfig___closed__1();
|
||||
lean_mark_persistent(l_Lake_OpaqueTargetConfig_instCoeTargetConfig___closed__1);
|
||||
l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1___closed__1 = _init_l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1___closed__1();
|
||||
lean_mark_persistent(l_Lake_OpaqueTargetConfig_instCoeTargetConfig__1___closed__1);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
12126
stage0/stdlib/Lake/Config/Workspace.c
generated
Normal file
12126
stage0/stdlib/Lake/Config/Workspace.c
generated
Normal file
File diff suppressed because it is too large
Load diff
334
stage0/stdlib/Lake/Config/WorkspaceConfig.c
generated
Normal file
334
stage0/stdlib/Lake/Config/WorkspaceConfig.c
generated
Normal file
|
|
@ -0,0 +1,334 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Config.WorkspaceConfig
|
||||
// Imports: Init Lake.Config.Defaults
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__5;
|
||||
lean_object* l_String_quote(lean_object*);
|
||||
extern lean_object* l_Lake_defaultPackagesDir;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__14;
|
||||
static lean_object* l_Lake_instInhabitedWorkspaceConfig___closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_instInhabitedWorkspaceConfig;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__1;
|
||||
LEAN_EXPORT lean_object* l_Lake_WorkspaceConfig_packagesDir___default;
|
||||
lean_object* lean_nat_to_int(lean_object*);
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__11;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__15;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__4;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__6;
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____boxed(lean_object*, lean_object*);
|
||||
lean_object* lean_string_length(lean_object*);
|
||||
static lean_object* l_Lake_instReprWorkspaceConfig___closed__1;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__7;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__10;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__9;
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27_(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_instReprWorkspaceConfig;
|
||||
lean_object* l_Repr_addAppParen(lean_object*, lean_object*);
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__13;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__8;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__12;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__3;
|
||||
static lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__2;
|
||||
static lean_object* _init_l_Lake_WorkspaceConfig_packagesDir___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultPackagesDir;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedWorkspaceConfig___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("", 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instInhabitedWorkspaceConfig() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_instInhabitedWorkspaceConfig___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("packagesDir", 11);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__2() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__1;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__3() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__2;
|
||||
x_3 = lean_alloc_ctor(5, 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___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__4() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes(" := ", 4);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__5() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__4;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__6() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2; lean_object* x_3;
|
||||
x_1 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__3;
|
||||
x_2 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__5;
|
||||
x_3 = lean_alloc_ctor(5, 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___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__7() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_unsigned_to_nat(15u);
|
||||
x_2 = lean_nat_to_int(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__8() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("FilePath.mk ", 12);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__9() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__8;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__10() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes("{ ", 2);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__11() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__10;
|
||||
x_2 = lean_string_length(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__12() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__11;
|
||||
x_2 = lean_nat_to_int(x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__13() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__10;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__14() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes(" }", 2);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__15() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__14;
|
||||
x_2 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27_(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; 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; lean_object* x_19; lean_object* x_20; lean_object* x_21;
|
||||
x_3 = l_String_quote(x_1);
|
||||
x_4 = lean_alloc_ctor(3, 1, 0);
|
||||
lean_ctor_set(x_4, 0, x_3);
|
||||
x_5 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__9;
|
||||
x_6 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_6, 0, x_5);
|
||||
lean_ctor_set(x_6, 1, x_4);
|
||||
x_7 = lean_unsigned_to_nat(0u);
|
||||
x_8 = l_Repr_addAppParen(x_6, x_7);
|
||||
x_9 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__7;
|
||||
x_10 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_10, 0, x_9);
|
||||
lean_ctor_set(x_10, 1, x_8);
|
||||
x_11 = 0;
|
||||
x_12 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_12, 0, x_10);
|
||||
lean_ctor_set_uint8(x_12, sizeof(void*)*1, x_11);
|
||||
x_13 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__6;
|
||||
x_14 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_14, 0, x_13);
|
||||
lean_ctor_set(x_14, 1, x_12);
|
||||
x_15 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__13;
|
||||
x_16 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_16, 0, x_15);
|
||||
lean_ctor_set(x_16, 1, x_14);
|
||||
x_17 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__15;
|
||||
x_18 = lean_alloc_ctor(5, 2, 0);
|
||||
lean_ctor_set(x_18, 0, x_16);
|
||||
lean_ctor_set(x_18, 1, x_17);
|
||||
x_19 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__12;
|
||||
x_20 = lean_alloc_ctor(4, 2, 0);
|
||||
lean_ctor_set(x_20, 0, x_19);
|
||||
lean_ctor_set(x_20, 1, x_18);
|
||||
x_21 = lean_alloc_ctor(6, 1, 1);
|
||||
lean_ctor_set(x_21, 0, x_20);
|
||||
lean_ctor_set_uint8(x_21, sizeof(void*)*1, x_11);
|
||||
return x_21;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____boxed(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3;
|
||||
x_3 = l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27_(x_1, x_2);
|
||||
lean_dec(x_2);
|
||||
lean_dec(x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instReprWorkspaceConfig___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_alloc_closure((void*)(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____boxed), 2, 0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_instReprWorkspaceConfig() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_instReprWorkspaceConfig___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_Defaults(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Config_WorkspaceConfig(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_Defaults(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_WorkspaceConfig_packagesDir___default = _init_l_Lake_WorkspaceConfig_packagesDir___default();
|
||||
lean_mark_persistent(l_Lake_WorkspaceConfig_packagesDir___default);
|
||||
l_Lake_instInhabitedWorkspaceConfig___closed__1 = _init_l_Lake_instInhabitedWorkspaceConfig___closed__1();
|
||||
lean_mark_persistent(l_Lake_instInhabitedWorkspaceConfig___closed__1);
|
||||
l_Lake_instInhabitedWorkspaceConfig = _init_l_Lake_instInhabitedWorkspaceConfig();
|
||||
lean_mark_persistent(l_Lake_instInhabitedWorkspaceConfig);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__1 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__1();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__1);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__2 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__2();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__2);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__3 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__3();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__3);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__4 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__4();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__4);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__5 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__5();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__5);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__6 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__6();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__6);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__7 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__7();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__7);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__8 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__8();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__8);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__9 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__9();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__9);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__10 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__10();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__10);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__11 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__11();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__11);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__12 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__12();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__12);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__13 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__13();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__13);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__14 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__14();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__14);
|
||||
l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__15 = _init_l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__15();
|
||||
lean_mark_persistent(l___private_Lake_Config_WorkspaceConfig_0__Lake_reprWorkspaceConfig____x40_Lake_Config_WorkspaceConfig___hyg_27____closed__15);
|
||||
l_Lake_instReprWorkspaceConfig___closed__1 = _init_l_Lake_instReprWorkspaceConfig___closed__1();
|
||||
lean_mark_persistent(l_Lake_instReprWorkspaceConfig___closed__1);
|
||||
l_Lake_instReprWorkspaceConfig = _init_l_Lake_instReprWorkspaceConfig();
|
||||
lean_mark_persistent(l_Lake_instReprWorkspaceConfig);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
65
stage0/stdlib/Lake/DSL.c
generated
Normal file
65
stage0/stdlib/Lake/DSL.c
generated
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.DSL
|
||||
// Imports: Init Lake.DSL.DeclUtil Lake.DSL.Attributes Lake.DSL.Extensions Lake.DSL.Config Lake.DSL.Package Lake.DSL.Script Lake.DSL.Require Lake.DSL.Targets Lake.DSL.Meta
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_DSL_DeclUtil(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_DSL_Attributes(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_DSL_Extensions(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_DSL_Config(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_DSL_Package(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_DSL_Script(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_DSL_Require(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_DSL_Targets(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_DSL_Meta(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_DSL(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_DSL_DeclUtil(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_DSL_Attributes(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_DSL_Extensions(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_DSL_Config(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_DSL_Package(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_DSL_Script(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_DSL_Require(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_DSL_Targets(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_DSL_Meta(builtin, 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));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
1435
stage0/stdlib/Lake/DSL/Attributes.c
generated
Normal file
1435
stage0/stdlib/Lake/DSL/Attributes.c
generated
Normal file
File diff suppressed because it is too large
Load diff
2079
stage0/stdlib/Lake/DSL/AttributesCore.c
generated
Normal file
2079
stage0/stdlib/Lake/DSL/AttributesCore.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1814
stage0/stdlib/Lake/DSL/Config.c
generated
Normal file
1814
stage0/stdlib/Lake/DSL/Config.c
generated
Normal file
File diff suppressed because it is too large
Load diff
12223
stage0/stdlib/Lake/DSL/DeclUtil.c
generated
Normal file
12223
stage0/stdlib/Lake/DSL/DeclUtil.c
generated
Normal file
File diff suppressed because it is too large
Load diff
80
stage0/stdlib/Lake/DSL/Extensions.c
generated
Normal file
80
stage0/stdlib/Lake/DSL/Extensions.c
generated
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.DSL.Extensions
|
||||
// Imports: Init Lean.Environment
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* l_Lake_dirExt;
|
||||
lean_object* l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_5_(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_optsExt;
|
||||
LEAN_EXPORT lean_object* l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_37_(lean_object*);
|
||||
lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*);
|
||||
static lean_object* l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_5____closed__1;
|
||||
static lean_object* _init_l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_5____closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1; lean_object* x_2;
|
||||
x_1 = lean_box(0);
|
||||
x_2 = lean_alloc_closure((void*)(l_EStateM_pure___rarg), 2, 1);
|
||||
lean_closure_set(x_2, 0, x_1);
|
||||
return x_2;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_5_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_5____closed__1;
|
||||
x_3 = l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_37_(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3;
|
||||
x_2 = l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_5____closed__1;
|
||||
x_3 = l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(x_2, x_1);
|
||||
return x_3;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Environment(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_DSL_Extensions(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Environment(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_5____closed__1 = _init_l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_5____closed__1();
|
||||
lean_mark_persistent(l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_5____closed__1);
|
||||
res = l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_5_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lake_dirExt = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lake_dirExt);
|
||||
lean_dec_ref(res);
|
||||
res = l_Lake_initFn____x40_Lake_DSL_Extensions___hyg_37_(lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
l_Lake_optsExt = lean_io_result_get_value(res);
|
||||
lean_mark_persistent(l_Lake_optsExt);
|
||||
lean_dec_ref(res);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
3504
stage0/stdlib/Lake/DSL/Meta.c
generated
Normal file
3504
stage0/stdlib/Lake/DSL/Meta.c
generated
Normal file
File diff suppressed because it is too large
Load diff
3814
stage0/stdlib/Lake/DSL/Package.c
generated
Normal file
3814
stage0/stdlib/Lake/DSL/Package.c
generated
Normal file
File diff suppressed because it is too large
Load diff
3816
stage0/stdlib/Lake/DSL/Require.c
generated
Normal file
3816
stage0/stdlib/Lake/DSL/Require.c
generated
Normal file
File diff suppressed because it is too large
Load diff
2981
stage0/stdlib/Lake/DSL/Script.c
generated
Normal file
2981
stage0/stdlib/Lake/DSL/Script.c
generated
Normal file
File diff suppressed because it is too large
Load diff
10246
stage0/stdlib/Lake/DSL/Targets.c
generated
Normal file
10246
stage0/stdlib/Lake/DSL/Targets.c
generated
Normal file
File diff suppressed because it is too large
Load diff
33
stage0/stdlib/Lake/Load.c
generated
Normal file
33
stage0/stdlib/Lake/Load.c
generated
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Load
|
||||
// Imports: Init Lake.Load.Workspace
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Load_Workspace(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Load(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Load_Workspace(builtin, 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));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
175
stage0/stdlib/Lake/Load/Config.c
generated
Normal file
175
stage0/stdlib/Lake/Load/Config.c
generated
Normal file
|
|
@ -0,0 +1,175 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Load.Config
|
||||
// Imports: Init Lean.Data.Name Lean.Data.Options Lake.Config.Defaults Lake.Config.Env Lake.Util.Log
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* l_System_FilePath_join(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_relConfigFile___default;
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_lakeDir(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_pkgDir(lean_object*);
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_relPkgDir___default;
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_leanOpts___default;
|
||||
static lean_object* l_Lake_LoadConfig_relPkgDir___default___closed__1;
|
||||
extern lean_object* l_Lake_defaultLakeDir;
|
||||
LEAN_EXPORT uint8_t l_Lake_LoadConfig_reconfigure___default;
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_lakeOpts___default;
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_configFile(lean_object*);
|
||||
extern lean_object* l_Lake_defaultConfigFile;
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_remoteUrl_x3f___default;
|
||||
static lean_object* _init_l_Lake_LoadConfig_relPkgDir___default___closed__1() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_mk_string_from_bytes(".", 1);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LoadConfig_relPkgDir___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_LoadConfig_relPkgDir___default___closed__1;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LoadConfig_relConfigFile___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = l_Lake_defaultConfigFile;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LoadConfig_lakeOpts___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_box(0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LoadConfig_leanOpts___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_box(0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static uint8_t _init_l_Lake_LoadConfig_reconfigure___default() {
|
||||
_start:
|
||||
{
|
||||
uint8_t x_1;
|
||||
x_1 = 0;
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
static lean_object* _init_l_Lake_LoadConfig_remoteUrl_x3f___default() {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_1;
|
||||
x_1 = lean_box(0);
|
||||
return x_1;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_pkgDir(lean_object* x_1) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_2; lean_object* x_3; lean_object* x_4;
|
||||
x_2 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_2);
|
||||
x_3 = lean_ctor_get(x_1, 2);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = l_System_FilePath_join(x_2, x_3);
|
||||
return x_4;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_configFile(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;
|
||||
x_2 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_2);
|
||||
x_3 = lean_ctor_get(x_1, 2);
|
||||
lean_inc(x_3);
|
||||
x_4 = l_System_FilePath_join(x_2, x_3);
|
||||
x_5 = lean_ctor_get(x_1, 3);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_1);
|
||||
x_6 = l_System_FilePath_join(x_4, x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
LEAN_EXPORT lean_object* l_Lake_LoadConfig_lakeDir(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;
|
||||
x_2 = lean_ctor_get(x_1, 1);
|
||||
lean_inc(x_2);
|
||||
x_3 = lean_ctor_get(x_1, 2);
|
||||
lean_inc(x_3);
|
||||
lean_dec(x_1);
|
||||
x_4 = l_System_FilePath_join(x_2, x_3);
|
||||
x_5 = l_Lake_defaultLakeDir;
|
||||
x_6 = l_System_FilePath_join(x_4, x_5);
|
||||
return x_6;
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Data_Name(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lean_Data_Options(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_Defaults(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Config_Env(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Util_Log(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Load_Config(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Data_Name(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lean_Data_Options(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_Defaults(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Config_Env(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Util_Log(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
l_Lake_LoadConfig_relPkgDir___default___closed__1 = _init_l_Lake_LoadConfig_relPkgDir___default___closed__1();
|
||||
lean_mark_persistent(l_Lake_LoadConfig_relPkgDir___default___closed__1);
|
||||
l_Lake_LoadConfig_relPkgDir___default = _init_l_Lake_LoadConfig_relPkgDir___default();
|
||||
lean_mark_persistent(l_Lake_LoadConfig_relPkgDir___default);
|
||||
l_Lake_LoadConfig_relConfigFile___default = _init_l_Lake_LoadConfig_relConfigFile___default();
|
||||
lean_mark_persistent(l_Lake_LoadConfig_relConfigFile___default);
|
||||
l_Lake_LoadConfig_lakeOpts___default = _init_l_Lake_LoadConfig_lakeOpts___default();
|
||||
lean_mark_persistent(l_Lake_LoadConfig_lakeOpts___default);
|
||||
l_Lake_LoadConfig_leanOpts___default = _init_l_Lake_LoadConfig_leanOpts___default();
|
||||
lean_mark_persistent(l_Lake_LoadConfig_leanOpts___default);
|
||||
l_Lake_LoadConfig_reconfigure___default = _init_l_Lake_LoadConfig_reconfigure___default();
|
||||
l_Lake_LoadConfig_remoteUrl_x3f___default = _init_l_Lake_LoadConfig_remoteUrl_x3f___default();
|
||||
lean_mark_persistent(l_Lake_LoadConfig_remoteUrl_x3f___default);
|
||||
return lean_io_result_mk_ok(lean_box(0));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
1129
stage0/stdlib/Lake/Load/Lean.c
generated
Normal file
1129
stage0/stdlib/Lake/Load/Lean.c
generated
Normal file
File diff suppressed because it is too large
Load diff
13975
stage0/stdlib/Lake/Load/Lean/Elab.c
generated
Normal file
13975
stage0/stdlib/Lake/Load/Lean/Elab.c
generated
Normal file
File diff suppressed because it is too large
Load diff
23883
stage0/stdlib/Lake/Load/Lean/Eval.c
generated
Normal file
23883
stage0/stdlib/Lake/Load/Lean/Eval.c
generated
Normal file
File diff suppressed because it is too large
Load diff
9048
stage0/stdlib/Lake/Load/Manifest.c
generated
Normal file
9048
stage0/stdlib/Lake/Load/Manifest.c
generated
Normal file
File diff suppressed because it is too large
Load diff
3302
stage0/stdlib/Lake/Load/Materialize.c
generated
Normal file
3302
stage0/stdlib/Lake/Load/Materialize.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1748
stage0/stdlib/Lake/Load/Package.c
generated
Normal file
1748
stage0/stdlib/Lake/Load/Package.c
generated
Normal file
File diff suppressed because it is too large
Load diff
22268
stage0/stdlib/Lake/Load/Resolve.c
generated
Normal file
22268
stage0/stdlib/Lake/Load/Resolve.c
generated
Normal file
File diff suppressed because it is too large
Load diff
21535
stage0/stdlib/Lake/Load/Toml.c
generated
Normal file
21535
stage0/stdlib/Lake/Load/Toml.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1175
stage0/stdlib/Lake/Load/Workspace.c
generated
Normal file
1175
stage0/stdlib/Lake/Load/Workspace.c
generated
Normal file
File diff suppressed because it is too large
Load diff
104
stage0/stdlib/Lake/Main.c
generated
Normal file
104
stage0/stdlib/Lake/Main.c
generated
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Main
|
||||
// Imports: Init Lake Lake.CLI
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
LEAN_EXPORT lean_object* _lean_main(lean_object*, lean_object*);
|
||||
lean_object* l_Lake_cli(lean_object*, lean_object*);
|
||||
LEAN_EXPORT lean_object* _lean_main(lean_object* x_1, lean_object* x_2) {
|
||||
_start:
|
||||
{
|
||||
lean_object* x_3; uint8_t x_4;
|
||||
x_3 = l_Lake_cli(x_1, x_2);
|
||||
x_4 = !lean_is_exclusive(x_3);
|
||||
if (x_4 == 0)
|
||||
{
|
||||
return x_3;
|
||||
}
|
||||
else
|
||||
{
|
||||
lean_object* x_5; lean_object* x_6; lean_object* x_7;
|
||||
x_5 = lean_ctor_get(x_3, 0);
|
||||
x_6 = lean_ctor_get(x_3, 1);
|
||||
lean_inc(x_6);
|
||||
lean_inc(x_5);
|
||||
lean_dec(x_3);
|
||||
x_7 = lean_alloc_ctor(0, 2, 0);
|
||||
lean_ctor_set(x_7, 0, x_5);
|
||||
lean_ctor_set(x_7, 1, x_6);
|
||||
return x_7;
|
||||
}
|
||||
}
|
||||
}
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_CLI(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Main(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_CLI(builtin, 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));
|
||||
}
|
||||
void lean_initialize();
|
||||
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
int main(int argc, char ** argv) {
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||
#endif
|
||||
lean_object* in; lean_object* res;
|
||||
lean_initialize();
|
||||
lean_set_panic_messages(false);
|
||||
res = initialize_Lake_Main(1 /* builtin */, lean_io_mk_world());
|
||||
lean_set_panic_messages(true);
|
||||
lean_io_mark_end_initialization();
|
||||
if (lean_io_result_is_ok(res)) {
|
||||
lean_dec_ref(res);
|
||||
lean_init_task_manager();
|
||||
in = lean_box(0);
|
||||
int i = argc;
|
||||
while (i > 1) {
|
||||
lean_object* n;
|
||||
i--;
|
||||
n = lean_alloc_ctor(1,2,0); lean_ctor_set(n, 0, lean_mk_string(argv[i])); lean_ctor_set(n, 1, in);
|
||||
in = n;
|
||||
}
|
||||
res = _lean_main(in, lean_io_mk_world());
|
||||
}
|
||||
lean_finalize_task_manager();
|
||||
if (lean_io_result_is_ok(res)) {
|
||||
int ret = lean_unbox_uint32(lean_io_result_get_value(res));
|
||||
lean_dec_ref(res);
|
||||
return ret;
|
||||
} else {
|
||||
lean_io_result_show_error(res);
|
||||
lean_dec_ref(res);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
33
stage0/stdlib/Lake/Toml.c
generated
Normal file
33
stage0/stdlib/Lake/Toml.c
generated
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Toml
|
||||
// Imports: Init Lake.Toml.Load
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Toml_Load(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Toml(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Toml_Load(builtin, 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));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
33
stage0/stdlib/Lake/Toml/Data.c
generated
Normal file
33
stage0/stdlib/Lake/Toml/Data.c
generated
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// Lean compiler output
|
||||
// Module: Lake.Toml.Data
|
||||
// Imports: Init Lake.Toml.Data.Value
|
||||
#include <lean/lean.h>
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic ignored "-Wunused-parameter"
|
||||
#pragma clang diagnostic ignored "-Wunused-label"
|
||||
#elif defined(__GNUC__) && !defined(__CLANG__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
#pragma GCC diagnostic ignored "-Wunused-label"
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
lean_object* initialize_Init(uint8_t builtin, lean_object*);
|
||||
lean_object* initialize_Lake_Toml_Data_Value(uint8_t builtin, lean_object*);
|
||||
static bool _G_initialized = false;
|
||||
LEAN_EXPORT lean_object* initialize_Lake_Toml_Data(uint8_t builtin, lean_object* w) {
|
||||
lean_object * res;
|
||||
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
|
||||
_G_initialized = true;
|
||||
res = initialize_Init(builtin, lean_io_mk_world());
|
||||
if (lean_io_result_is_error(res)) return res;
|
||||
lean_dec_ref(res);
|
||||
res = initialize_Lake_Toml_Data_Value(builtin, 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));
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
5924
stage0/stdlib/Lake/Toml/Data/DateTime.c
generated
Normal file
5924
stage0/stdlib/Lake/Toml/Data/DateTime.c
generated
Normal file
File diff suppressed because it is too large
Load diff
1890
stage0/stdlib/Lake/Toml/Data/Dict.c
generated
Normal file
1890
stage0/stdlib/Lake/Toml/Data/Dict.c
generated
Normal file
File diff suppressed because it is too large
Load diff
2565
stage0/stdlib/Lake/Toml/Data/Value.c
generated
Normal file
2565
stage0/stdlib/Lake/Toml/Data/Value.c
generated
Normal file
File diff suppressed because it is too large
Load diff
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue