From 21b4377d36be6f787dcbb41f09ae8f9611d8bb26 Mon Sep 17 00:00:00 2001 From: Lean stage0 autoupdater <> Date: Sun, 4 Aug 2024 19:11:50 +0000 Subject: [PATCH] chore: update stage0 --- stage0/src/kernel/CMakeLists.txt | 2 +- stage0/src/kernel/declaration.h | 56 +- stage0/src/kernel/expr.h | 8 +- stage0/src/kernel/instantiate_mvars.cpp | 95 + stage0/src/kernel/level.h | 6 +- stage0/src/kernel/local_ctx.h | 8 +- stage0/src/kernel/replace_fn.cpp | 5 +- stage0/src/library/compiler/specialize.cpp | 4 +- stage0/src/library/projection.h | 4 +- stage0/src/runtime/array_ref.h | 4 +- stage0/src/runtime/list_ref.h | 4 +- stage0/src/runtime/object_ref.h | 4 + stage0/src/runtime/option_ref.h | 6 +- stage0/src/runtime/optional.h | 16 +- stage0/src/runtime/string_ref.h | 4 +- stage0/src/util/kvmap.h | 4 +- stage0/src/util/name.h | 4 +- stage0/src/util/nat.h | 4 +- stage0/src/util/shell.cpp | 4 +- stage0/stdlib/Init/Data/BitVec/Basic.c | 8 +- stage0/stdlib/Init/Data/BitVec/Lemmas.c | 55 + stage0/stdlib/Init/Data/Int/Basic.c | 18 +- stage0/stdlib/Lake/Build/Module.c | 2930 +++++++---------- stage0/stdlib/Lean/Compiler/CSimpAttr.c | 6 +- stage0/stdlib/Lean/Elab/Frontend.c | 1147 ++++++- stage0/stdlib/Lean/Elab/Import.c | 95 +- stage0/stdlib/Lean/Environment.c | 958 +++--- stage0/stdlib/Lean/Meta/AppBuilder.c | 2 +- stage0/stdlib/Lean/Meta/LevelDefEq.c | 2 +- .../Lean/Meta/Tactic/LinearArith/Solver.c | 562 ++-- stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c | 2 +- stage0/stdlib/Lean/MetavarContext.c | 235 +- stage0/stdlib/Lean/Server/References.c | 4 +- stage0/stdlib/Lean/Util/Path.c | 1824 ++-------- 34 files changed, 3825 insertions(+), 4265 deletions(-) create mode 100644 stage0/src/kernel/instantiate_mvars.cpp diff --git a/stage0/src/kernel/CMakeLists.txt b/stage0/src/kernel/CMakeLists.txt index 9b9c1e42d6..2d21c3af49 100644 --- a/stage0/src/kernel/CMakeLists.txt +++ b/stage0/src/kernel/CMakeLists.txt @@ -2,4 +2,4 @@ add_library(kernel OBJECT level.cpp expr.cpp expr_eq_fn.cpp for_each_fn.cpp replace_fn.cpp abstract.cpp instantiate.cpp local_ctx.cpp declaration.cpp environment.cpp type_checker.cpp init_module.cpp expr_cache.cpp equiv_manager.cpp quot.cpp -inductive.cpp trace.cpp) +inductive.cpp trace.cpp instantiate_mvars.cpp) diff --git a/stage0/src/kernel/declaration.h b/stage0/src/kernel/declaration.h index cf45393b43..9b636ae0a8 100644 --- a/stage0/src/kernel/declaration.h +++ b/stage0/src/kernel/declaration.h @@ -63,9 +63,9 @@ class constant_val : public object_ref { public: constant_val(name const & n, names const & lparams, expr const & type); constant_val(constant_val const & other):object_ref(other) {} - constant_val(constant_val && other):object_ref(other) {} + constant_val(constant_val && other):object_ref(std::move(other)) {} constant_val & operator=(constant_val const & other) { object_ref::operator=(other); return *this; } - constant_val & operator=(constant_val && other) { object_ref::operator=(other); return *this; } + constant_val & operator=(constant_val && other) { object_ref::operator=(std::move(other)); return *this; } name const & get_name() const { return static_cast(cnstr_get_ref(*this, 0)); } names const & get_lparams() const { return static_cast(cnstr_get_ref(*this, 1)); } expr const & get_type() const { return static_cast(cnstr_get_ref(*this, 2)); } @@ -79,9 +79,9 @@ class axiom_val : public object_ref { public: axiom_val(name const & n, names const & lparams, expr const & type, bool is_unsafe); axiom_val(axiom_val const & other):object_ref(other) {} - axiom_val(axiom_val && other):object_ref(other) {} + axiom_val(axiom_val && other):object_ref(std::move(other)) {} axiom_val & operator=(axiom_val const & other) { object_ref::operator=(other); return *this; } - axiom_val & operator=(axiom_val && other) { object_ref::operator=(other); return *this; } + axiom_val & operator=(axiom_val && other) { object_ref::operator=(std::move(other)); return *this; } constant_val const & to_constant_val() const { return static_cast(cnstr_get_ref(*this, 0)); } name const & get_name() const { return to_constant_val().get_name(); } names const & get_lparams() const { return to_constant_val().get_lparams(); } @@ -105,9 +105,9 @@ class definition_val : public object_ref { public: definition_val(name const & n, names const & lparams, expr const & type, expr const & val, reducibility_hints const & hints, definition_safety safety, names const & all); definition_val(definition_val const & other):object_ref(other) {} - definition_val(definition_val && other):object_ref(other) {} + definition_val(definition_val && other):object_ref(std::move(other)) {} definition_val & operator=(definition_val const & other) { object_ref::operator=(other); return *this; } - definition_val & operator=(definition_val && other) { object_ref::operator=(other); return *this; } + definition_val & operator=(definition_val && other) { object_ref::operator=(std::move(other)); return *this; } constant_val const & to_constant_val() const { return static_cast(cnstr_get_ref(*this, 0)); } name const & get_name() const { return to_constant_val().get_name(); } names const & get_lparams() const { return to_constant_val().get_lparams(); } @@ -128,9 +128,9 @@ class theorem_val : public object_ref { public: theorem_val(name const & n, names const & lparams, expr const & type, expr const & val, names const & all); theorem_val(theorem_val const & other):object_ref(other) {} - theorem_val(theorem_val && other):object_ref(other) {} + theorem_val(theorem_val && other):object_ref(std::move(other)) {} theorem_val & operator=(theorem_val const & other) { object_ref::operator=(other); return *this; } - theorem_val & operator=(theorem_val && other) { object_ref::operator=(other); return *this; } + theorem_val & operator=(theorem_val && other) { object_ref::operator=(std::move(other)); return *this; } constant_val const & to_constant_val() const { return static_cast(cnstr_get_ref(*this, 0)); } name const & get_name() const { return to_constant_val().get_name(); } names const & get_lparams() const { return to_constant_val().get_lparams(); } @@ -148,9 +148,9 @@ class opaque_val : public object_ref { public: opaque_val(name const & n, names const & lparams, expr const & type, expr const & val, bool is_unsafe, names const & all); opaque_val(opaque_val const & other):object_ref(other) {} - opaque_val(opaque_val && other):object_ref(other) {} + opaque_val(opaque_val && other):object_ref(std::move(other)) {} opaque_val & operator=(opaque_val const & other) { object_ref::operator=(other); return *this; } - opaque_val & operator=(opaque_val && other) { object_ref::operator=(other); return *this; } + opaque_val & operator=(opaque_val && other) { object_ref::operator=(std::move(other)); return *this; } constant_val const & to_constant_val() const { return static_cast(cnstr_get_ref(*this, 0)); } name const & get_name() const { return to_constant_val().get_name(); } names const & get_lparams() const { return to_constant_val().get_lparams(); } @@ -179,9 +179,9 @@ class inductive_type : public object_ref { public: inductive_type(name const & id, expr const & type, constructors const & cnstrs); inductive_type(inductive_type const & other):object_ref(other) {} - inductive_type(inductive_type && other):object_ref(other) {} + inductive_type(inductive_type && other):object_ref(std::move(other)) {} inductive_type & operator=(inductive_type const & other) { object_ref::operator=(other); return *this; } - inductive_type & operator=(inductive_type && other) { object_ref::operator=(other); return *this; } + inductive_type & operator=(inductive_type && other) { object_ref::operator=(std::move(other)); return *this; } name const & get_name() const { return static_cast(cnstr_get_ref(*this, 0)); } expr const & get_type() const { return static_cast(cnstr_get_ref(*this, 1)); } constructors const & get_cnstrs() const { return static_cast(cnstr_get_ref(*this, 2)); } @@ -205,7 +205,7 @@ class declaration : public object_ref { public: declaration(); declaration(declaration const & other):object_ref(other) {} - declaration(declaration && other):object_ref(other) {} + declaration(declaration && other):object_ref(std::move(other)) {} /* low-level constructors */ explicit declaration(object * o):object_ref(o) {} explicit declaration(b_obj_arg o, bool b):object_ref(o, b) {} @@ -213,7 +213,7 @@ public: declaration_kind kind() const { return static_cast(obj_tag(raw())); } declaration & operator=(declaration const & other) { object_ref::operator=(other); return *this; } - declaration & operator=(declaration && other) { object_ref::operator=(other); return *this; } + declaration & operator=(declaration && other) { object_ref::operator=(std::move(other)); return *this; } friend bool is_eqp(declaration const & d1, declaration const & d2) { return d1.raw() == d2.raw(); } @@ -263,10 +263,10 @@ declaration mk_axiom_inferring_unsafe(environment const & env, name const & n, class inductive_decl : public object_ref { public: inductive_decl(inductive_decl const & other):object_ref(other) {} - inductive_decl(inductive_decl && other):object_ref(other) {} + inductive_decl(inductive_decl && other):object_ref(std::move(other)) {} inductive_decl(declaration const & d):object_ref(d) { lean_assert(d.is_inductive()); } inductive_decl & operator=(inductive_decl const & other) { object_ref::operator=(other); return *this; } - inductive_decl & operator=(inductive_decl && other) { object_ref::operator=(other); return *this; } + inductive_decl & operator=(inductive_decl && other) { object_ref::operator=(std::move(other)); return *this; } names const & get_lparams() const { return static_cast(cnstr_get_ref(raw(), 0)); } nat const & get_nparams() const { return static_cast(cnstr_get_ref(raw(), 1)); } inductive_types const & get_types() const { return static_cast(cnstr_get_ref(raw(), 2)); } @@ -290,9 +290,9 @@ public: inductive_val(name const & n, names const & lparams, expr const & type, unsigned nparams, unsigned nindices, names const & all, names const & cnstrs, unsigned nnested, bool is_rec, bool is_unsafe, bool is_reflexive); inductive_val(inductive_val const & other):object_ref(other) {} - inductive_val(inductive_val && other):object_ref(other) {} + inductive_val(inductive_val && other):object_ref(std::move(other)) {} inductive_val & operator=(inductive_val const & other) { object_ref::operator=(other); return *this; } - inductive_val & operator=(inductive_val && other) { object_ref::operator=(other); return *this; } + inductive_val & operator=(inductive_val && other) { object_ref::operator=(std::move(other)); return *this; } constant_val const & to_constant_val() const { return static_cast(cnstr_get_ref(*this, 0)); } unsigned get_nparams() const { return static_cast(cnstr_get_ref(*this, 1)).get_small_value(); } unsigned get_nindices() const { return static_cast(cnstr_get_ref(*this, 2)).get_small_value(); } @@ -317,9 +317,9 @@ class constructor_val : public object_ref { public: constructor_val(name const & n, names const & lparams, expr const & type, name const & induct, unsigned cidx, unsigned nparams, unsigned nfields, bool is_unsafe); constructor_val(constructor_val const & other):object_ref(other) {} - constructor_val(constructor_val && other):object_ref(other) {} + constructor_val(constructor_val && other):object_ref(std::move(other)) {} constructor_val & operator=(constructor_val const & other) { object_ref::operator=(other); return *this; } - constructor_val & operator=(constructor_val && other) { object_ref::operator=(other); return *this; } + constructor_val & operator=(constructor_val && other) { object_ref::operator=(std::move(other)); return *this; } constant_val const & to_constant_val() const { return static_cast(cnstr_get_ref(*this, 0)); } name const & get_induct() const { return static_cast(cnstr_get_ref(*this, 1)); } unsigned get_cidx() const { return static_cast(cnstr_get_ref(*this, 2)).get_small_value(); } @@ -338,9 +338,9 @@ class recursor_rule : public object_ref { public: recursor_rule(name const & cnstr, unsigned nfields, expr const & rhs); recursor_rule(recursor_rule const & other):object_ref(other) {} - recursor_rule(recursor_rule && other):object_ref(other) {} + recursor_rule(recursor_rule && other):object_ref(std::move(other)) {} recursor_rule & operator=(recursor_rule const & other) { object_ref::operator=(other); return *this; } - recursor_rule & operator=(recursor_rule && other) { object_ref::operator=(other); return *this; } + recursor_rule & operator=(recursor_rule && other) { object_ref::operator=(std::move(other)); return *this; } name const & get_cnstr() const { return static_cast(cnstr_get_ref(*this, 0)); } unsigned get_nfields() const { return static_cast(cnstr_get_ref(*this, 1)).get_small_value(); } expr const & get_rhs() const { return static_cast(cnstr_get_ref(*this, 2)); } @@ -365,9 +365,9 @@ public: names const & all, unsigned nparams, unsigned nindices, unsigned nmotives, unsigned nminors, recursor_rules const & rules, bool k, bool is_unsafe); recursor_val(recursor_val const & other):object_ref(other) {} - recursor_val(recursor_val && other):object_ref(other) {} + recursor_val(recursor_val && other):object_ref(std::move(other)) {} recursor_val & operator=(recursor_val const & other) { object_ref::operator=(other); return *this; } - recursor_val & operator=(recursor_val && other) { object_ref::operator=(other); return *this; } + recursor_val & operator=(recursor_val && other) { object_ref::operator=(std::move(other)); return *this; } constant_val const & to_constant_val() const { return static_cast(cnstr_get_ref(*this, 0)); } name const & get_name() const { return to_constant_val().get_name(); } name const & get_induct() const { return get_name().get_prefix(); } @@ -398,9 +398,9 @@ class quot_val : public object_ref { public: quot_val(name const & n, names const & lparams, expr const & type, quot_kind k); quot_val(quot_val const & other):object_ref(other) {} - quot_val(quot_val && other):object_ref(other) {} + quot_val(quot_val && other):object_ref(std::move(other)) {} quot_val & operator=(quot_val const & other) { object_ref::operator=(other); return *this; } - quot_val & operator=(quot_val && other) { object_ref::operator=(other); return *this; } + quot_val & operator=(quot_val && other) { object_ref::operator=(std::move(other)); return *this; } constant_val const & to_constant_val() const { return static_cast(cnstr_get_ref(*this, 0)); } name const & get_name() const { return to_constant_val().get_name(); } names const & get_lparams() const { return to_constant_val().get_lparams(); } @@ -434,14 +434,14 @@ public: constant_info(constructor_val const & v); constant_info(recursor_val const & v); constant_info(constant_info const & other):object_ref(other) {} - constant_info(constant_info && other):object_ref(other) {} + constant_info(constant_info && other):object_ref(std::move(other)) {} explicit constant_info(b_obj_arg o, bool b):object_ref(o, b) {} explicit constant_info(obj_arg o):object_ref(o) {} constant_info_kind kind() const { return static_cast(cnstr_tag(raw())); } constant_info & operator=(constant_info const & other) { object_ref::operator=(other); return *this; } - constant_info & operator=(constant_info && other) { object_ref::operator=(other); return *this; } + constant_info & operator=(constant_info && other) { object_ref::operator=(std::move(other)); return *this; } friend bool is_eqp(constant_info const & d1, constant_info const & d2) { return d1.raw() == d2.raw(); } diff --git a/stage0/src/kernel/expr.h b/stage0/src/kernel/expr.h index 0371110d33..d1771e73a3 100644 --- a/stage0/src/kernel/expr.h +++ b/stage0/src/kernel/expr.h @@ -50,9 +50,9 @@ public: explicit literal(nat const & v); literal():literal(0u) {} literal(literal const & other):object_ref(other) {} - literal(literal && other):object_ref(other) {} + literal(literal && other):object_ref(std::move(other)) {} literal & operator=(literal const & other) { object_ref::operator=(other); return *this; } - literal & operator=(literal && other) { object_ref::operator=(other); return *this; } + literal & operator=(literal && other) { object_ref::operator=(std::move(other)); return *this; } static literal_kind kind(object * o) { return static_cast(cnstr_tag(o)); } literal_kind kind() const { return kind(raw()); } @@ -100,14 +100,14 @@ class expr : public object_ref { public: expr(); expr(expr const & other):object_ref(other) {} - expr(expr && other):object_ref(other) {} + expr(expr && other):object_ref(std::move(other)) {} explicit expr(b_obj_arg o, bool b):object_ref(o, b) {} explicit expr(obj_arg o):object_ref(o) {} static expr_kind kind(object * o) { return static_cast(cnstr_tag(o)); } expr_kind kind() const { return kind(raw()); } expr & operator=(expr const & other) { object_ref::operator=(other); return *this; } - expr & operator=(expr && other) { object_ref::operator=(other); return *this; } + expr & operator=(expr && other) { object_ref::operator=(std::move(other)); return *this; } friend bool is_eqp(expr const & e1, expr const & e2) { return e1.raw() == e2.raw(); } }; diff --git a/stage0/src/kernel/instantiate_mvars.cpp b/stage0/src/kernel/instantiate_mvars.cpp new file mode 100644 index 0000000000..21ead42840 --- /dev/null +++ b/stage0/src/kernel/instantiate_mvars.cpp @@ -0,0 +1,95 @@ +/* +Copyright (c) 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved. +Released under Apache 2.0 license as described in the file LICENSE. + +Authors: Leonardo de Moura +*/ +#include +#include "runtime/option_ref.h" +#include "kernel/instantiate.h" +#include "kernel/abstract.h" + +/* +This module is not used by the kernel. It just provides an efficient implementation of +`instantiateExprMVars` +*/ + +namespace lean { + +extern "C" object * lean_get_lmvar_assignment(obj_arg mctx, obj_arg mid); +extern "C" object * lean_assign_lmvar(obj_arg mctx, obj_arg mid, obj_arg val); + +typedef object_ref metavar_ctx; +void assign_lmvar(metavar_ctx & mctx, name const & mid, level const & l) { + object * r = lean_assign_lmvar(mctx.steal(), mid.to_obj_arg(), l.to_obj_arg()); + mctx.set_box(r); +} + +option_ref get_lmvar_assignment(metavar_ctx & mctx, name const & mid) { + return option_ref(lean_get_lmvar_assignment(mctx.to_obj_arg(), mid.to_obj_arg())); +} + +class instantiate_lmvar_fn { + metavar_ctx & m_mctx; + std::unordered_map m_cache; + + inline level cache(level const & l, level && r, bool shared) { + if (shared) { + m_cache.insert(mk_pair(l.raw(), r.raw())); + } + return r; + } +public: + instantiate_lmvar_fn(metavar_ctx & mctx):m_mctx(mctx) {} + level visit(level const & l) { + if (!has_mvar(l)) + return l; + bool shared = false; + if (is_shared(l)) { + auto it = m_cache.find(l.raw()); + if (it != m_cache.end()) { + return level(it->second, true); + } + shared = true; + } + switch (l.kind()) { + case level_kind::Succ: + return cache(l, update_succ(l, visit(succ_of(l))), shared); + case level_kind::Max: case level_kind::IMax: + return cache(l, update_max(l, visit(level_lhs(l)), visit(level_rhs(l))), shared); + case level_kind::Zero: case level_kind::Param: + lean_unreachable(); + case level_kind::MVar: { + option_ref r = get_lmvar_assignment(m_mctx, mvar_id(l)); + if (!r) { + return l; + } else { + level a(r.get_val()); + if (!has_mvar(a)) { + return a; + } else { + level a_new = visit(a); + if (!is_eqp(a, a_new)) { + assign_lmvar(m_mctx, mvar_id(l), a_new); + } + return a_new; + } + } + }} + } + level operator()(level const & l) { return visit(l); } +}; + +extern "C" LEAN_EXPORT object * lean_instantiate_level_mvars(object * m, object * l) { + metavar_ctx mctx(m); + level l_new = instantiate_lmvar_fn(mctx)(level(l)); + object * r = alloc_cnstr(0, 2, 0); + cnstr_set(r, 0, mctx.steal()); + cnstr_set(r, 1, l_new.steal()); + return r; +} + +extern "C" LEAN_EXPORT object * lean_instantiate_expr_mvars(object *, object *) { + lean_internal_panic("not implemented yet"); +} +} diff --git a/stage0/src/kernel/level.h b/stage0/src/kernel/level.h index b01240747e..0739ab6e8f 100644 --- a/stage0/src/kernel/level.h +++ b/stage0/src/kernel/level.h @@ -43,14 +43,14 @@ public: explicit level(obj_arg o):object_ref(o) {} explicit level(b_obj_arg o, bool b):object_ref(o, b) {} level(level const & other):object_ref(other) {} - level(level && other):object_ref(other) {} + level(level && other):object_ref(std::move(other)) {} level_kind kind() const { return lean_is_scalar(raw()) ? level_kind::Zero : static_cast(lean_ptr_tag(raw())); } unsigned hash() const; level & operator=(level const & other) { object_ref::operator=(other); return *this; } - level & operator=(level && other) { object_ref::operator=(other); return *this; } + level & operator=(level && other) { object_ref::operator=(std::move(other)); return *this; } friend bool is_eqp(level const & l1, level const & l2) { return l1.raw() == l2.raw(); } @@ -82,6 +82,8 @@ inline bool operator!=(level const & l1, level const & l2) { return !operator==( struct level_hash { unsigned operator()(level const & n) const { return n.hash(); } }; struct level_eq { bool operator()(level const & n1, level const & n2) const { return n1 == n2; } }; +inline bool is_shared(level const & l) { return !is_exclusive(l.raw()); } + inline optional none_level() { return optional(); } inline optional some_level(level const & e) { return optional(e); } inline optional some_level(level && e) { return optional(std::forward(e)); } diff --git a/stage0/src/kernel/local_ctx.h b/stage0/src/kernel/local_ctx.h index 8338316a4a..500d62a03c 100644 --- a/stage0/src/kernel/local_ctx.h +++ b/stage0/src/kernel/local_ctx.h @@ -27,11 +27,11 @@ class local_decl : public object_ref { public: local_decl(); local_decl(local_decl const & other):object_ref(other) {} - local_decl(local_decl && other):object_ref(other) {} + local_decl(local_decl && other):object_ref(std::move(other)) {} local_decl(obj_arg o):object_ref(o) {} local_decl(b_obj_arg o, bool):object_ref(o, true) {} local_decl & operator=(local_decl const & other) { object_ref::operator=(other); return *this; } - local_decl & operator=(local_decl && other) { object_ref::operator=(other); return *this; } + local_decl & operator=(local_decl && other) { object_ref::operator=(std::move(other)); return *this; } friend bool is_eqp(local_decl const & d1, local_decl const & d2) { return d1.raw() == d2.raw(); } unsigned get_idx() const { return static_cast(cnstr_get_ref(raw(), 0)).get_small_value(); } name const & get_name() const { return static_cast(cnstr_get_ref(raw(), 1)); } @@ -54,9 +54,9 @@ public: explicit local_ctx(obj_arg o):object_ref(o) {} local_ctx(b_obj_arg o, bool):object_ref(o, true) {} local_ctx(local_ctx const & other):object_ref(other) {} - local_ctx(local_ctx && other):object_ref(other) {} + local_ctx(local_ctx && other):object_ref(std::move(other)) {} local_ctx & operator=(local_ctx const & other) { object_ref::operator=(other); return *this; } - local_ctx & operator=(local_ctx && other) { object_ref::operator=(other); return *this; } + local_ctx & operator=(local_ctx && other) { object_ref::operator=(std::move(other)); return *this; } bool empty() const; diff --git a/stage0/src/kernel/replace_fn.cpp b/stage0/src/kernel/replace_fn.cpp index 0dde49600e..0a2b1030d1 100644 --- a/stage0/src/kernel/replace_fn.cpp +++ b/stage0/src/kernel/replace_fn.cpp @@ -6,6 +6,7 @@ Author: Leonardo de Moura */ #include #include +#include #include #include "kernel/replace_fn.h" @@ -21,7 +22,7 @@ class replace_rec_fn { std::function(expr const &, unsigned)> m_f; bool m_use_cache; - expr save_result(expr const & e, unsigned offset, expr const & r, bool shared) { + expr save_result(expr const & e, unsigned offset, expr r, bool shared) { if (shared) m_cache.insert(mk_pair(mk_pair(e.raw(), offset), r)); return r; @@ -36,7 +37,7 @@ class replace_rec_fn { shared = true; } if (optional r = m_f(e, offset)) { - return save_result(e, offset, *r, shared); + return save_result(e, offset, std::move(*r), shared); } else { switch (e.kind()) { case expr_kind::Const: case expr_kind::Sort: diff --git a/stage0/src/library/compiler/specialize.cpp b/stage0/src/library/compiler/specialize.cpp index e6aa59c715..6874412c89 100644 --- a/stage0/src/library/compiler/specialize.cpp +++ b/stage0/src/library/compiler/specialize.cpp @@ -92,10 +92,10 @@ public: object_ref(mk_cnstr(0, ns, ks)) {} spec_info():spec_info(names(), spec_arg_kinds()) {} spec_info(spec_info const & other):object_ref(other) {} - spec_info(spec_info && other):object_ref(other) {} + spec_info(spec_info && other):object_ref(std::move(other)) {} spec_info(b_obj_arg o, bool b):object_ref(o, b) {} spec_info & operator=(spec_info const & other) { object_ref::operator=(other); return *this; } - spec_info & operator=(spec_info && other) { object_ref::operator=(other); return *this; } + spec_info & operator=(spec_info && other) { object_ref::operator=(std::move(other)); return *this; } names const & get_mutual_decls() const { return static_cast(cnstr_get_ref(*this, 0)); } spec_arg_kinds const & get_arg_kinds() const { return static_cast(cnstr_get_ref(*this, 1)); } }; diff --git a/stage0/src/library/projection.h b/stage0/src/library/projection.h index 11e1abb2c8..3ade6827e6 100644 --- a/stage0/src/library/projection.h +++ b/stage0/src/library/projection.h @@ -24,13 +24,13 @@ public: projection_info(name const & c, unsigned nparams, unsigned i, bool inst_implicit); projection_info():projection_info(name(), 0, 0, false) {} projection_info(projection_info const & other):object_ref(other) {} - projection_info(projection_info && other):object_ref(other) {} + projection_info(projection_info && other):object_ref(std::move(other)) {} /* low-level constructors */ explicit projection_info(object * o):object_ref(o) {} explicit projection_info(b_obj_arg o, bool b):object_ref(o, b) {} explicit projection_info(object_ref const & o):object_ref(o) {} projection_info & operator=(projection_info const & other) { object_ref::operator=(other); return *this; } - projection_info & operator=(projection_info && other) { object_ref::operator=(other); return *this; } + projection_info & operator=(projection_info && other) { object_ref::operator=(std::move(other)); return *this; } name const & get_constructor() const { return static_cast(cnstr_get_ref(*this, 0)); } unsigned get_nparams() const { return static_cast(cnstr_get_ref(*this, 1)).get_small_value(); } unsigned get_i() const { return static_cast(cnstr_get_ref(*this, 2)).get_small_value(); } diff --git a/stage0/src/runtime/array_ref.h b/stage0/src/runtime/array_ref.h index a0f4db4450..468ca77340 100644 --- a/stage0/src/runtime/array_ref.h +++ b/stage0/src/runtime/array_ref.h @@ -28,12 +28,12 @@ public: array_ref(b_obj_arg o, bool b):object_ref(o, b) {} array_ref():object_ref(array_mk_empty()) {} array_ref(array_ref const & other):object_ref(other) {} - array_ref(array_ref && other):object_ref(other) {} + array_ref(array_ref && other):object_ref(std::move(other)) {} array_ref(std::initializer_list const & elems):object_ref(to_array(elems)) {} array_ref(buffer const & elems):object_ref(to_array(elems)) {} array_ref & operator=(array_ref const & other) { object_ref::operator=(other); return *this; } - array_ref & operator=(array_ref && other) { object_ref::operator=(other); return *this; } + array_ref & operator=(array_ref && other) { object_ref::operator=(std::move(other)); return *this; } size_t size() const { return array_size(raw()); } diff --git a/stage0/src/runtime/list_ref.h b/stage0/src/runtime/list_ref.h index 19aa342a6f..1b5f163c56 100644 --- a/stage0/src/runtime/list_ref.h +++ b/stage0/src/runtime/list_ref.h @@ -23,7 +23,7 @@ public: explicit list_ref(list_ref const * l) { if (l) *this = *l; } list_ref(T const & h, list_ref const & t):object_ref(mk_cnstr(1, h.raw(), t.raw())) { inc(h.raw()); inc(t.raw()); } list_ref(list_ref const & other):object_ref(other) {} - list_ref(list_ref && other):object_ref(other) {} + list_ref(list_ref && other):object_ref(std::move(other)) {} template list_ref(It const & begin, It const & end):list_ref() { auto it = end; while (it != begin) { @@ -35,7 +35,7 @@ public: list_ref(buffer const & b):list_ref(b.begin(), b.end()) {} list_ref & operator=(list_ref const & other) { object_ref::operator=(other); return *this; } - list_ref & operator=(list_ref && other) { object_ref::operator=(other); return *this; } + list_ref & operator=(list_ref && other) { object_ref::operator=(std::move(other)); return *this; } explicit operator bool() const { return !is_scalar(raw()); } friend bool is_nil(list_ref const & l) { return is_scalar(l.raw()); } diff --git a/stage0/src/runtime/object_ref.h b/stage0/src/runtime/object_ref.h index c0209676f3..e543384dc3 100644 --- a/stage0/src/runtime/object_ref.h +++ b/stage0/src/runtime/object_ref.h @@ -35,6 +35,10 @@ public: s.m_obj = box(0); return *this; } + void set_box(object * o) { + lean_assert(is_scalar(m_obj)); + m_obj = o; + } object * raw() const { return m_obj; } object * steal() { object * r = m_obj; m_obj = box(0); return r; } object * to_obj_arg() const { inc(m_obj); return m_obj; } diff --git a/stage0/src/runtime/option_ref.h b/stage0/src/runtime/option_ref.h index 187616e6c9..5191bca14e 100644 --- a/stage0/src/runtime/option_ref.h +++ b/stage0/src/runtime/option_ref.h @@ -16,18 +16,20 @@ public: option_ref(b_obj_arg o, bool b):object_ref(o, b) {} option_ref():object_ref(box(0)) {} option_ref(option_ref const & other):object_ref(other) {} - option_ref(option_ref && other):object_ref(other) {} + option_ref(option_ref && other):object_ref(std::move(other)) {} explicit option_ref(T const & a):object_ref(mk_cnstr(1, a.raw())) { inc(a.raw()); } explicit option_ref(T const * a) { if (a) *this = option_ref(*a); } explicit option_ref(option_ref const * o) { if (o) *this = *o; } explicit option_ref(optional const & o):option_ref(o ? &*o : nullptr) {} option_ref & operator=(option_ref const & other) { object_ref::operator=(other); return *this; } - option_ref & operator=(option_ref && other) { object_ref::operator=(other); return *this; } + option_ref & operator=(option_ref && other) { object_ref::operator=(std::move(other)); return *this; } explicit operator bool() const { return !is_scalar(raw()); } optional get() const { return *this ? some(static_cast(cnstr_get_ref(*this, 0))) : optional(); } + T get_val() const { lean_assert(*this); return static_cast(cnstr_get_ref(*this, 0)); } + /** \brief Structural equality. */ friend bool operator==(option_ref const & o1, option_ref const & o2) { return o1.get() == o2.get(); diff --git a/stage0/src/runtime/optional.h b/stage0/src/runtime/optional.h index cf3455fc54..995fb31859 100644 --- a/stage0/src/runtime/optional.h +++ b/stage0/src/runtime/optional.h @@ -31,13 +31,13 @@ public: } optional(optional && other):m_some(other.m_some) { if (other.m_some) - new (&m_value) T(std::forward(other.m_value)); + new (&m_value) T(std::move(other.m_value)); } explicit optional(T const & v):m_some(true) { new (&m_value) T(v); } explicit optional(T && v):m_some(true) { - new (&m_value) T(std::forward(v)); + new (&m_value) T(std::move(v)); } template explicit optional(Args&&... args):m_some(true) { @@ -84,7 +84,7 @@ public: m_value.~T(); m_some = other.m_some; if (m_some) - new (&m_value) T(std::forward(other.m_value)); + new (&m_value) T(std::move(other.m_value)); return *this; } optional& operator=(T const & other) { @@ -98,7 +98,7 @@ public: if (m_some) m_value.~T(); m_some = true; - new (&m_value) T(std::forward(other)); + new (&m_value) T(std::move(other)); return *this; } @@ -130,9 +130,9 @@ template<> class optional

{ \ public: \ optional():m_value(nullptr) {} \ optional(optional const & other):m_value(other.m_value) {} \ - optional(optional && other):m_value(std::forward

(other.m_value)) {} \ + optional(optional && other):m_value(std::move(other.m_value)) {} \ explicit optional(P const & v):m_value(v) {} \ - explicit optional(P && v):m_value(std::forward

(v)) {} \ + explicit optional(P && v):m_value(std::move(v)) {} \ \ explicit operator bool() const { return m_value.m_ptr != nullptr; } \ P const * operator->() const { lean_assert(m_value.m_ptr); return &m_value; } \ @@ -142,9 +142,9 @@ public: \ P const & value() const { lean_assert(m_value.m_ptr); return m_value; } \ P & value() { lean_assert(m_value.m_ptr); return m_value; } \ optional & operator=(optional const & other) { m_value = other.m_value; return *this; } \ - optional& operator=(optional && other) { m_value = std::forward

(other.m_value); return *this; } \ + optional& operator=(optional && other) { m_value = std::move(other.m_value); return *this; } \ optional& operator=(P const & other) { m_value = other; return *this; } \ - optional& operator=(P && other) { m_value = std::forward

(other); return *this; } \ + optional& operator=(P && other) { m_value = std::move(other); return *this; } \ friend bool operator==(optional const & o1, optional const & o2) { \ return static_cast(o1) == static_cast(o2) && (!o1 || o1.m_value == o2.m_value); \ } \ diff --git a/stage0/src/runtime/string_ref.h b/stage0/src/runtime/string_ref.h index a510ee8375..dd9fb726cb 100644 --- a/stage0/src/runtime/string_ref.h +++ b/stage0/src/runtime/string_ref.h @@ -17,11 +17,11 @@ public: explicit string_ref(std::string const & s):object_ref(mk_string(s)) {} explicit string_ref(sstream const & strm):string_ref(strm.str()) {} string_ref(string_ref const & other):object_ref(other) {} - string_ref(string_ref && other):object_ref(other) {} + string_ref(string_ref && other):object_ref(std::move(other)) {} explicit string_ref(obj_arg o):object_ref(o) {} string_ref(b_obj_arg o, bool b):object_ref(o, b) {} string_ref & operator=(string_ref const & other) { object_ref::operator=(other); return *this; } - string_ref & operator=(string_ref && other) { object_ref::operator=(other); return *this; } + string_ref & operator=(string_ref && other) { object_ref::operator=(std::move(other)); return *this; } /* Number of bytes used to store the string in UTF8. Remark: it does not include the null character added in the end to make it efficient to convert to C string. */ diff --git a/stage0/src/util/kvmap.h b/stage0/src/util/kvmap.h index 172c441472..ff16d98328 100644 --- a/stage0/src/util/kvmap.h +++ b/stage0/src/util/kvmap.h @@ -30,9 +30,9 @@ public: explicit data_value(name const & v):object_ref(mk_cnstr(static_cast(data_value_kind::Name), v.raw())) { inc(v.raw()); } data_value():data_value(false) {} data_value(data_value const & other):object_ref(other) {} - data_value(data_value && other):object_ref(other) {} + data_value(data_value && other):object_ref(std::move(other)) {} data_value & operator=(data_value const & other) { object_ref::operator=(other); return *this; } - data_value & operator=(data_value && other) { object_ref::operator=(other); return *this; } + data_value & operator=(data_value && other) { object_ref::operator=(std::move(other)); return *this; } data_value_kind kind() const { return static_cast(cnstr_tag(raw())); } string_ref const & get_string() const { lean_assert(kind() == data_value_kind::String); return static_cast(cnstr_get_ref(*this, 0)); } diff --git a/stage0/src/util/name.h b/stage0/src/util/name.h index 9c1d70e575..f15fa1e29d 100644 --- a/stage0/src/util/name.h +++ b/stage0/src/util/name.h @@ -74,7 +74,7 @@ public: name(std::string const & s):name(name(), string_ref(s)) {} name(string_ref const & s):name(name(), s) {} name(name const & other):object_ref(other) {} - name(name && other):object_ref(other) {} + name(name && other):object_ref(std::move(other)) {} /** \brief Create a hierarchical name using the given strings. Example: name{"foo", "bla", "tst"} creates the hierarchical @@ -97,7 +97,7 @@ public: */ static name mk_internal_unique_name(); name & operator=(name const & other) { object_ref::operator=(other); return *this; } - name & operator=(name && other) { object_ref::operator=(other); return *this; } + name & operator=(name && other) { object_ref::operator=(std::move(other)); return *this; } static uint64_t hash(b_obj_arg n) { lean_assert(lean_name_hash(n) == lean_name_hash_exported_b(n)); return lean_name_hash(n); diff --git a/stage0/src/util/nat.h b/stage0/src/util/nat.h index e0bae8429a..8035a9cd5f 100644 --- a/stage0/src/util/nat.h +++ b/stage0/src/util/nat.h @@ -27,10 +27,10 @@ public: static nat of_size_t(size_t v) { return nat(lean_usize_to_nat(v)); } nat(nat const & other):object_ref(other) {} - nat(nat && other):object_ref(other) {} + nat(nat && other):object_ref(std::move(other)) {} nat & operator=(nat const & other) { object_ref::operator=(other); return *this; } - nat & operator=(nat && other) { object_ref::operator=(other); return *this; } + nat & operator=(nat && other) { object_ref::operator=(std::move(other)); return *this; } bool is_small() const { return is_scalar(raw()); } size_t get_small_value() const { lean_assert(is_small()); return unbox(raw()); } bool is_zero() const { return is_small() && get_small_value() == 0; } diff --git a/stage0/src/util/shell.cpp b/stage0/src/util/shell.cpp index b5053f84ba..779c682b89 100644 --- a/stage0/src/util/shell.cpp +++ b/stage0/src/util/shell.cpp @@ -310,7 +310,9 @@ options set_config_option(options const & opts, char const * in) { << "' cannot be set in the command line, use set_option command"); } } else { - throw lean::exception(lean::sstream() << "invalid -D parameter, unknown configuration option '" << opt << "'"); + // More options may be registered by imports, so we leave validating them to the Lean side. + // This (minor) duplication will be resolved when this file is rewritten in Lean. + return opts.update(opt, val.c_str()); } } diff --git a/stage0/stdlib/Init/Data/BitVec/Basic.c b/stage0/stdlib/Init/Data/BitVec/Basic.c index 99c16d7fa5..e8c0624f82 100644 --- a/stage0/stdlib/Init/Data/BitVec/Basic.c +++ b/stage0/stdlib/Init/Data/BitVec/Basic.c @@ -3498,11 +3498,9 @@ return x_10; } else { -lean_object* x_11; lean_object* x_12; -x_11 = lean_nat_mul(x_1, x_4); -x_12 = l_BitVec_ofNat(x_11, x_4); -lean_dec(x_11); -return x_12; +lean_object* x_11; +x_11 = l_BitVec_nil___closed__1; +return x_11; } } } diff --git a/stage0/stdlib/Init/Data/BitVec/Lemmas.c b/stage0/stdlib/Init/Data/BitVec/Lemmas.c index 9a123a215c..5a395836b6 100644 --- a/stage0/stdlib/Init/Data/BitVec/Lemmas.c +++ b/stage0/stdlib/Init/Data/BitVec/Lemmas.c @@ -13,12 +13,17 @@ #ifdef __cplusplus extern "C" { #endif +LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_ofBoolListBE_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_BitVec_ofNat(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_BitVec_intMax___boxed(lean_object*); LEAN_EXPORT lean_object* l_BitVec_intMax(lean_object*); lean_object* lean_nat_pow(lean_object*, lean_object*); +uint8_t lean_nat_dec_eq(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_ofBoolListBE_match__1_splitter___rarg___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_ofBoolListBE_match__1_splitter(lean_object*); LEAN_EXPORT lean_object* l_BitVec_intMax(lean_object* x_1) { @@ -83,6 +88,56 @@ lean_dec(x_2); return x_4; } } +LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; uint8_t x_6; +x_5 = lean_unsigned_to_nat(0u); +x_6 = lean_nat_dec_eq(x_1, x_5); +if (x_6 == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; +lean_dec(x_3); +x_7 = lean_unsigned_to_nat(1u); +x_8 = lean_nat_sub(x_1, x_7); +x_9 = lean_apply_2(x_4, x_8, x_2); +return x_9; +} +else +{ +lean_object* x_10; +lean_dec(x_4); +x_10 = lean_apply_1(x_3, x_2); +return x_10; +} +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_alloc_closure((void*)(l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter___rarg___boxed), 4, 0); +return x_3; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter___rarg(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} +LEAN_EXPORT lean_object* l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = l___private_Init_Data_BitVec_Lemmas_0__BitVec_replicate_match__1_splitter(x_1, x_2); +lean_dec(x_1); +return x_3; +} +} lean_object* initialize_Init_Data_Bool(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_BitVec_Basic(uint8_t builtin, lean_object*); lean_object* initialize_Init_Data_Fin_Lemmas(uint8_t builtin, lean_object*); diff --git a/stage0/stdlib/Init/Data/Int/Basic.c b/stage0/stdlib/Init/Data/Int/Basic.c index b540680c9f..90a5dc1e4c 100644 --- a/stage0/stdlib/Init/Data/Int/Basic.c +++ b/stage0/stdlib/Init/Data/Int/Basic.c @@ -52,6 +52,7 @@ lean_object* lean_nat_to_int(lean_object*); LEAN_EXPORT lean_object* l_instCoeHTCTIntOfIntCast___rarg(lean_object*); LEAN_EXPORT lean_object* l_Int_pow(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Int___aux__Init__Data__Int__Basic______unexpand__Int__negSucc__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Int_instNatPow; LEAN_EXPORT lean_object* l_Int_decLe___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Int_decLt___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Int_negSucc___boxed(lean_object*); @@ -64,6 +65,7 @@ LEAN_EXPORT lean_object* l_Int_cast___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Int_instLTInt; lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +static lean_object* l_Int_instNatPow___closed__1; lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*); static lean_object* l_Int___aux__Init__Data__Int__Basic______unexpand__Int__negSucc__1___closed__1; @@ -78,7 +80,6 @@ LEAN_EXPORT lean_object* l_Int_subNatNat(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Int_ofNat___boxed(lean_object*); static lean_object* l_Int___aux__Init__Data__Int__Basic______macroRules__Int__term_x2d_x5b___x2b1_x5d__1___closed__3; LEAN_EXPORT lean_object* l_Int_subNatNat___boxed(lean_object*, lean_object*); -static lean_object* l_Int_instHPowNat___closed__1; lean_object* lean_nat_abs(lean_object*); lean_object* lean_int_mul(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Int_instDecidableEq___boxed(lean_object*, lean_object*); @@ -94,7 +95,6 @@ LEAN_EXPORT lean_object* l_Int_neg___boxed(lean_object*); lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Int_instSub; static lean_object* l_Int_term_x2d_x5b___x2b1_x5d___closed__4; -LEAN_EXPORT lean_object* l_Int_instHPowNat; LEAN_EXPORT lean_object* l_Int_mul___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Int_toNat(lean_object*); uint8_t lean_int_dec_lt(lean_object*, lean_object*); @@ -1075,7 +1075,7 @@ lean_dec(x_1); return x_3; } } -static lean_object* _init_l_Int_instHPowNat___closed__1() { +static lean_object* _init_l_Int_instNatPow___closed__1() { _start: { lean_object* x_1; @@ -1083,11 +1083,11 @@ x_1 = lean_alloc_closure((void*)(l_Int_pow___boxed), 2, 0); return x_1; } } -static lean_object* _init_l_Int_instHPowNat() { +static lean_object* _init_l_Int_instNatPow() { _start: { lean_object* x_1; -x_1 = l_Int_instHPowNat___closed__1; +x_1 = l_Int_instNatPow___closed__1; return x_1; } } @@ -1324,10 +1324,10 @@ l_Int_sign___closed__2 = _init_l_Int_sign___closed__2(); lean_mark_persistent(l_Int_sign___closed__2); l_Int_instDvd = _init_l_Int_instDvd(); lean_mark_persistent(l_Int_instDvd); -l_Int_instHPowNat___closed__1 = _init_l_Int_instHPowNat___closed__1(); -lean_mark_persistent(l_Int_instHPowNat___closed__1); -l_Int_instHPowNat = _init_l_Int_instHPowNat(); -lean_mark_persistent(l_Int_instHPowNat); +l_Int_instNatPow___closed__1 = _init_l_Int_instNatPow___closed__1(); +lean_mark_persistent(l_Int_instNatPow___closed__1); +l_Int_instNatPow = _init_l_Int_instNatPow(); +lean_mark_persistent(l_Int_instNatPow); return lean_io_result_mk_ok(lean_box(0)); } #ifdef __cplusplus diff --git a/stage0/stdlib/Lake/Build/Module.c b/stage0/stdlib/Lake/Build/Module.c index 532f294f28..30c2d43758 100644 --- a/stage0/stdlib/Lake/Build/Module.c +++ b/stage0/stdlib/Lake/Build/Module.c @@ -198,7 +198,6 @@ lean_object* l_Lake_withRegisterJob___rarg(lean_object*, lean_object*, uint8_t, static lean_object* l_Lake_initModuleFacetConfigs___closed__1; static lean_object* l_Lake_Module_oExportFacetConfig___closed__2; LEAN_EXPORT lean_object* l_Lake_Module_bcFacetConfig; -lean_object* l_Lean_moduleExists_go(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_initModuleFacetConfigs___closed__16; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lake_Module_recComputePrecompileImports___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_precompileImportsFacetConfig___elambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -245,7 +244,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___ lean_object* l_IO_FS_Stream_ofBuffer(lean_object*); LEAN_EXPORT lean_object* l_Lean_HashSetImp_expand___at_Lake_Module_recBuildDeps___spec__10(lean_object*, lean_object*); static lean_object* l_Lake_Module_coExportFacetConfig___closed__4; -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_initModuleFacetConfigs___closed__17; LEAN_EXPORT lean_object* l_Lake_Module_recBuildLeanCToONoExport(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_159____at_Lake_buildFileUnlessUpToDate___spec__5(lean_object*, lean_object*); @@ -277,7 +275,6 @@ LEAN_EXPORT lean_object* l_Lake_Module_bcoFacetConfig; LEAN_EXPORT lean_object* l_Lake_OrdHashSet_appendArray___at_Lake_collectImportsAux___spec__1(lean_object*, lean_object*); lean_object* l_Array_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_recComputeTransImports(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_Module_recParseImports___closed__2; static lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12___closed__3; LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__1___closed__3___boxed__const__1; static lean_object* l_Lake_Module_coExportFacetConfig___closed__1; @@ -392,7 +389,6 @@ LEAN_EXPORT lean_object* l_Lake_Module_recBuildLean___lambda__5(lean_object*, le lean_object* lean_io_error_to_string(lean_object*); static lean_object* l_Lake_Module_recBuildDeps___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lake_Module_oExportFacetConfig; -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lake_Module_recBuildDynlib___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_Module_coNoExportFacetConfig___closed__3; lean_object* l_Lean_modToFilePath(lean_object*, lean_object*, lean_object*); @@ -415,7 +411,6 @@ lean_object* l_Lake_fetchFileTrace___boxed(lean_object*, lean_object*, lean_obje LEAN_EXPORT lean_object* l_Lake_Module_oNoExportFacetConfig; static lean_object* l_Lake_Module_depsFacetConfig___closed__6; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lake_Module_recParseImports___lambda__1___closed__1; LEAN_EXPORT lean_object* l_Lake_Module_recComputePrecompileImports(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lake_OrdHashSet_insert___at_Lake_Module_recBuildDeps___spec__6___closed__1; static lean_object* l_Lake_Module_dynlibFacetConfig___closed__1; @@ -431,6 +426,7 @@ LEAN_EXPORT lean_object* l_Functor_discard___at_Lake_Module_dynlibFacetConfig___ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12___lambda__3(lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_replace___at_Lake_Module_recParseImports___spec__10___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; lean_object* l_Lake_BuildType_leancArgs(uint8_t); static lean_object* l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lake_Module_recBuildDeps___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*); @@ -2881,7 +2877,7 @@ return x_59; } } } -static lean_object* _init_l_Lake_Module_recParseImports___lambda__1___closed__1() { +static lean_object* _init_l_Lake_Module_recParseImports___closed__1() { _start: { lean_object* x_1; @@ -2889,1677 +2885,1256 @@ x_1 = lean_mk_string_unchecked("lean", 4, 4); return x_1; } } -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; lean_object* x_10; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_271; -x_193 = lean_ctor_get(x_1, 0); -lean_inc(x_193); -x_194 = lean_ctor_get(x_193, 0); -lean_inc(x_194); -x_195 = lean_ctor_get(x_194, 0); -lean_inc(x_195); -x_196 = lean_ctor_get(x_194, 2); -lean_inc(x_196); -lean_dec(x_194); -x_197 = lean_ctor_get(x_196, 7); -lean_inc(x_197); -lean_dec(x_196); -x_198 = l_System_FilePath_join(x_195, x_197); -x_199 = lean_ctor_get(x_193, 1); -lean_inc(x_199); -lean_dec(x_193); -x_200 = lean_ctor_get(x_199, 2); -lean_inc(x_200); -lean_dec(x_199); -x_201 = l_System_FilePath_join(x_198, x_200); -x_202 = lean_ctor_get(x_1, 1); -lean_inc(x_202); -lean_dec(x_1); -x_203 = l_Lake_Module_recParseImports___lambda__1___closed__1; -x_204 = l_Lean_modToFilePath(x_201, x_202, x_203); -lean_dec(x_201); -x_271 = l_IO_FS_readFile(x_204, x_8); -if (lean_obj_tag(x_271) == 0) -{ -uint8_t x_272; -x_272 = !lean_is_exclusive(x_271); -if (x_272 == 0) -{ -lean_object* x_273; lean_object* x_274; -x_273 = lean_ctor_get(x_271, 1); -lean_ctor_set(x_271, 1, x_6); -x_274 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_274, 0, x_271); -lean_ctor_set(x_274, 1, x_7); -x_205 = x_274; -x_206 = x_273; -goto block_270; -} -else -{ -lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; -x_275 = lean_ctor_get(x_271, 0); -x_276 = lean_ctor_get(x_271, 1); -lean_inc(x_276); -lean_inc(x_275); -lean_dec(x_271); -x_277 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_277, 0, x_275); -lean_ctor_set(x_277, 1, x_6); -x_278 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_278, 0, x_277); -lean_ctor_set(x_278, 1, x_7); -x_205 = x_278; -x_206 = x_276; -goto block_270; -} -} -else -{ -uint8_t x_279; -x_279 = !lean_is_exclusive(x_271); -if (x_279 == 0) -{ -lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; -x_280 = lean_ctor_get(x_271, 0); -x_281 = lean_ctor_get(x_271, 1); -x_282 = lean_io_error_to_string(x_280); -x_283 = 3; -x_284 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_284, 0, x_282); -lean_ctor_set_uint8(x_284, sizeof(void*)*1, x_283); -x_285 = lean_array_get_size(x_6); -x_286 = lean_array_push(x_6, x_284); -lean_ctor_set(x_271, 1, x_286); -lean_ctor_set(x_271, 0, x_285); -x_287 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_287, 0, x_271); -lean_ctor_set(x_287, 1, x_7); -x_205 = x_287; -x_206 = x_281; -goto block_270; -} -else -{ -lean_object* x_288; lean_object* x_289; lean_object* x_290; uint8_t x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; -x_288 = lean_ctor_get(x_271, 0); -x_289 = lean_ctor_get(x_271, 1); -lean_inc(x_289); -lean_inc(x_288); -lean_dec(x_271); -x_290 = lean_io_error_to_string(x_288); -x_291 = 3; -x_292 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_292, 0, x_290); -lean_ctor_set_uint8(x_292, sizeof(void*)*1, x_291); -x_293 = lean_array_get_size(x_6); -x_294 = lean_array_push(x_6, x_292); -x_295 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_295, 0, x_293); -lean_ctor_set(x_295, 1, x_294); -x_296 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_296, 0, x_295); -lean_ctor_set(x_296, 1, x_7); -x_205 = x_296; -x_206 = x_289; -goto block_270; -} -} -block_192: -{ -lean_object* x_11; -x_11 = lean_ctor_get(x_9, 0); -lean_inc(x_11); -if (lean_obj_tag(x_11) == 0) -{ -uint8_t x_12; -x_12 = !lean_is_exclusive(x_9); -if (x_12 == 0) -{ -lean_object* x_13; lean_object* x_14; uint8_t x_15; -x_13 = lean_ctor_get(x_9, 1); -x_14 = lean_ctor_get(x_9, 0); -lean_dec(x_14); -x_15 = !lean_is_exclusive(x_11); -if (x_15 == 0) -{ -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; -x_16 = lean_ctor_get(x_11, 0); -x_17 = lean_ctor_get(x_11, 1); -x_18 = lean_array_get_size(x_16); -x_19 = lean_unsigned_to_nat(0u); -x_20 = lean_nat_dec_lt(x_19, x_18); -if (x_20 == 0) -{ -lean_object* x_21; lean_object* x_22; -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_21 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; -lean_ctor_set(x_11, 0, x_21); -x_22 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_22, 0, x_9); -lean_ctor_set(x_22, 1, x_10); -return x_22; -} -else -{ -uint8_t x_23; -x_23 = lean_nat_dec_le(x_18, x_18); -if (x_23 == 0) -{ -lean_object* x_24; lean_object* x_25; -lean_dec(x_18); -lean_dec(x_16); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_24 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; -lean_ctor_set(x_11, 0, x_24); -x_25 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_25, 0, x_9); -lean_ctor_set(x_25, 1, x_10); -return x_25; -} -else -{ -size_t x_26; size_t x_27; lean_object* x_28; lean_object* x_29; -lean_free_object(x_11); -lean_free_object(x_9); -x_26 = 0; -x_27 = lean_usize_of_nat(x_18); -lean_dec(x_18); -x_28 = l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; -x_29 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12(x_16, x_26, x_27, x_28, x_3, x_4, x_5, x_17, x_13, x_10); -lean_dec(x_16); -if (lean_obj_tag(x_29) == 0) -{ -lean_object* x_30; lean_object* x_31; -x_30 = lean_ctor_get(x_29, 0); -lean_inc(x_30); -x_31 = lean_ctor_get(x_30, 0); -lean_inc(x_31); -if (lean_obj_tag(x_31) == 0) -{ -uint8_t x_32; -x_32 = !lean_is_exclusive(x_29); -if (x_32 == 0) -{ -lean_object* x_33; uint8_t x_34; -x_33 = lean_ctor_get(x_29, 0); -lean_dec(x_33); -x_34 = !lean_is_exclusive(x_30); -if (x_34 == 0) -{ -lean_object* x_35; uint8_t x_36; -x_35 = lean_ctor_get(x_30, 0); -lean_dec(x_35); -x_36 = !lean_is_exclusive(x_31); -if (x_36 == 0) -{ -lean_object* x_37; lean_object* x_38; -x_37 = lean_ctor_get(x_31, 0); -x_38 = lean_ctor_get(x_37, 1); -lean_inc(x_38); -lean_dec(x_37); -lean_ctor_set(x_31, 0, x_38); -return x_29; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_39 = lean_ctor_get(x_31, 0); -x_40 = lean_ctor_get(x_31, 1); -lean_inc(x_40); -lean_inc(x_39); -lean_dec(x_31); -x_41 = lean_ctor_get(x_39, 1); -lean_inc(x_41); -lean_dec(x_39); -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -lean_ctor_set(x_30, 0, x_42); -return x_29; -} -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; -x_43 = lean_ctor_get(x_30, 1); -lean_inc(x_43); -lean_dec(x_30); -x_44 = lean_ctor_get(x_31, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_31, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_46 = x_31; -} else { - lean_dec_ref(x_31); - x_46 = lean_box(0); -} -x_47 = lean_ctor_get(x_44, 1); -lean_inc(x_47); -lean_dec(x_44); -if (lean_is_scalar(x_46)) { - x_48 = lean_alloc_ctor(0, 2, 0); -} else { - x_48 = x_46; -} -lean_ctor_set(x_48, 0, x_47); -lean_ctor_set(x_48, 1, x_45); -x_49 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_49, 0, x_48); -lean_ctor_set(x_49, 1, x_43); -lean_ctor_set(x_29, 0, x_49); -return x_29; -} -} -else -{ -lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_50 = lean_ctor_get(x_29, 1); -lean_inc(x_50); -lean_dec(x_29); -x_51 = lean_ctor_get(x_30, 1); -lean_inc(x_51); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); - x_52 = x_30; -} else { - lean_dec_ref(x_30); - x_52 = lean_box(0); -} -x_53 = lean_ctor_get(x_31, 0); -lean_inc(x_53); -x_54 = lean_ctor_get(x_31, 1); -lean_inc(x_54); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_55 = x_31; -} else { - lean_dec_ref(x_31); - x_55 = lean_box(0); -} -x_56 = lean_ctor_get(x_53, 1); -lean_inc(x_56); -lean_dec(x_53); -if (lean_is_scalar(x_55)) { - x_57 = lean_alloc_ctor(0, 2, 0); -} else { - x_57 = x_55; -} -lean_ctor_set(x_57, 0, x_56); -lean_ctor_set(x_57, 1, x_54); -if (lean_is_scalar(x_52)) { - x_58 = lean_alloc_ctor(0, 2, 0); -} else { - x_58 = x_52; -} -lean_ctor_set(x_58, 0, x_57); -lean_ctor_set(x_58, 1, x_51); -x_59 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_59, 0, x_58); -lean_ctor_set(x_59, 1, x_50); -return x_59; -} -} -else -{ -uint8_t x_60; -x_60 = !lean_is_exclusive(x_29); -if (x_60 == 0) -{ -lean_object* x_61; uint8_t x_62; -x_61 = lean_ctor_get(x_29, 0); -lean_dec(x_61); -x_62 = !lean_is_exclusive(x_30); -if (x_62 == 0) -{ -lean_object* x_63; uint8_t x_64; -x_63 = lean_ctor_get(x_30, 0); -lean_dec(x_63); -x_64 = !lean_is_exclusive(x_31); -if (x_64 == 0) -{ -return x_29; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_31, 0); -x_66 = lean_ctor_get(x_31, 1); -lean_inc(x_66); -lean_inc(x_65); -lean_dec(x_31); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -lean_ctor_set(x_30, 0, x_67); -return x_29; -} -} -else -{ -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_68 = lean_ctor_get(x_30, 1); -lean_inc(x_68); -lean_dec(x_30); -x_69 = lean_ctor_get(x_31, 0); -lean_inc(x_69); -x_70 = lean_ctor_get(x_31, 1); -lean_inc(x_70); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_71 = x_31; -} else { - lean_dec_ref(x_31); - x_71 = lean_box(0); -} -if (lean_is_scalar(x_71)) { - x_72 = lean_alloc_ctor(1, 2, 0); -} else { - x_72 = x_71; -} -lean_ctor_set(x_72, 0, x_69); -lean_ctor_set(x_72, 1, x_70); -x_73 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_73, 0, x_72); -lean_ctor_set(x_73, 1, x_68); -lean_ctor_set(x_29, 0, x_73); -return x_29; -} -} -else -{ -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; -x_74 = lean_ctor_get(x_29, 1); -lean_inc(x_74); -lean_dec(x_29); -x_75 = lean_ctor_get(x_30, 1); -lean_inc(x_75); -if (lean_is_exclusive(x_30)) { - lean_ctor_release(x_30, 0); - lean_ctor_release(x_30, 1); - x_76 = x_30; -} else { - lean_dec_ref(x_30); - x_76 = lean_box(0); -} -x_77 = lean_ctor_get(x_31, 0); -lean_inc(x_77); -x_78 = lean_ctor_get(x_31, 1); -lean_inc(x_78); -if (lean_is_exclusive(x_31)) { - lean_ctor_release(x_31, 0); - lean_ctor_release(x_31, 1); - x_79 = x_31; -} else { - lean_dec_ref(x_31); - x_79 = lean_box(0); -} -if (lean_is_scalar(x_79)) { - x_80 = lean_alloc_ctor(1, 2, 0); -} else { - x_80 = x_79; -} -lean_ctor_set(x_80, 0, x_77); -lean_ctor_set(x_80, 1, x_78); -if (lean_is_scalar(x_76)) { - x_81 = lean_alloc_ctor(0, 2, 0); -} else { - x_81 = x_76; -} -lean_ctor_set(x_81, 0, x_80); -lean_ctor_set(x_81, 1, x_75); -x_82 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_82, 0, x_81); -lean_ctor_set(x_82, 1, x_74); -return x_82; -} -} -} -else -{ -uint8_t x_83; -x_83 = !lean_is_exclusive(x_29); -if (x_83 == 0) -{ -return x_29; -} -else -{ -lean_object* x_84; lean_object* x_85; lean_object* x_86; -x_84 = lean_ctor_get(x_29, 0); -x_85 = lean_ctor_get(x_29, 1); -lean_inc(x_85); -lean_inc(x_84); -lean_dec(x_29); -x_86 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_86, 0, x_84); -lean_ctor_set(x_86, 1, x_85); -return x_86; -} -} -} -} -} -else -{ -lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; uint8_t x_91; -x_87 = lean_ctor_get(x_11, 0); -x_88 = lean_ctor_get(x_11, 1); -lean_inc(x_88); -lean_inc(x_87); -lean_dec(x_11); -x_89 = lean_array_get_size(x_87); -x_90 = lean_unsigned_to_nat(0u); -x_91 = lean_nat_dec_lt(x_90, x_89); -if (x_91 == 0) -{ -lean_object* x_92; lean_object* x_93; lean_object* x_94; -lean_dec(x_89); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_92 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; -x_93 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_93, 0, x_92); -lean_ctor_set(x_93, 1, x_88); -lean_ctor_set(x_9, 0, x_93); -x_94 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_94, 0, x_9); -lean_ctor_set(x_94, 1, x_10); -return x_94; -} -else -{ -uint8_t x_95; -x_95 = lean_nat_dec_le(x_89, x_89); -if (x_95 == 0) -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_89); -lean_dec(x_87); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_96 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; -x_97 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_97, 0, x_96); -lean_ctor_set(x_97, 1, x_88); -lean_ctor_set(x_9, 0, x_97); -x_98 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_98, 0, x_9); -lean_ctor_set(x_98, 1, x_10); -return x_98; -} -else -{ -size_t x_99; size_t x_100; lean_object* x_101; lean_object* x_102; -lean_free_object(x_9); -x_99 = 0; -x_100 = lean_usize_of_nat(x_89); -lean_dec(x_89); -x_101 = l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; -x_102 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12(x_87, x_99, x_100, x_101, x_3, x_4, x_5, x_88, x_13, x_10); -lean_dec(x_87); -if (lean_obj_tag(x_102) == 0) -{ -lean_object* x_103; lean_object* x_104; -x_103 = lean_ctor_get(x_102, 0); -lean_inc(x_103); -x_104 = lean_ctor_get(x_103, 0); -lean_inc(x_104); -if (lean_obj_tag(x_104) == 0) -{ -lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; -x_105 = lean_ctor_get(x_102, 1); -lean_inc(x_105); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_106 = x_102; -} else { - lean_dec_ref(x_102); - x_106 = lean_box(0); -} -x_107 = lean_ctor_get(x_103, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_108 = x_103; -} else { - lean_dec_ref(x_103); - x_108 = lean_box(0); -} -x_109 = lean_ctor_get(x_104, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_104, 1); -lean_inc(x_110); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_111 = x_104; -} else { - lean_dec_ref(x_104); - x_111 = lean_box(0); -} -x_112 = lean_ctor_get(x_109, 1); -lean_inc(x_112); -lean_dec(x_109); -if (lean_is_scalar(x_111)) { - x_113 = lean_alloc_ctor(0, 2, 0); -} else { - x_113 = x_111; -} -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_110); -if (lean_is_scalar(x_108)) { - x_114 = lean_alloc_ctor(0, 2, 0); -} else { - x_114 = x_108; -} -lean_ctor_set(x_114, 0, x_113); -lean_ctor_set(x_114, 1, x_107); -if (lean_is_scalar(x_106)) { - x_115 = lean_alloc_ctor(0, 2, 0); -} else { - x_115 = x_106; -} -lean_ctor_set(x_115, 0, x_114); -lean_ctor_set(x_115, 1, x_105); -return x_115; -} -else -{ -lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; -x_116 = lean_ctor_get(x_102, 1); -lean_inc(x_116); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_117 = x_102; -} else { - lean_dec_ref(x_102); - x_117 = lean_box(0); -} -x_118 = lean_ctor_get(x_103, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_103)) { - lean_ctor_release(x_103, 0); - lean_ctor_release(x_103, 1); - x_119 = x_103; -} else { - lean_dec_ref(x_103); - x_119 = lean_box(0); -} -x_120 = lean_ctor_get(x_104, 0); -lean_inc(x_120); -x_121 = lean_ctor_get(x_104, 1); -lean_inc(x_121); -if (lean_is_exclusive(x_104)) { - lean_ctor_release(x_104, 0); - lean_ctor_release(x_104, 1); - x_122 = x_104; -} else { - lean_dec_ref(x_104); - x_122 = lean_box(0); -} -if (lean_is_scalar(x_122)) { - x_123 = lean_alloc_ctor(1, 2, 0); -} else { - x_123 = x_122; -} -lean_ctor_set(x_123, 0, x_120); -lean_ctor_set(x_123, 1, x_121); -if (lean_is_scalar(x_119)) { - x_124 = lean_alloc_ctor(0, 2, 0); -} else { - x_124 = x_119; -} -lean_ctor_set(x_124, 0, x_123); -lean_ctor_set(x_124, 1, x_118); -if (lean_is_scalar(x_117)) { - x_125 = lean_alloc_ctor(0, 2, 0); -} else { - x_125 = x_117; -} -lean_ctor_set(x_125, 0, x_124); -lean_ctor_set(x_125, 1, x_116); -return x_125; -} -} -else -{ -lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; -x_126 = lean_ctor_get(x_102, 0); -lean_inc(x_126); -x_127 = lean_ctor_get(x_102, 1); -lean_inc(x_127); -if (lean_is_exclusive(x_102)) { - lean_ctor_release(x_102, 0); - lean_ctor_release(x_102, 1); - x_128 = x_102; -} else { - lean_dec_ref(x_102); - x_128 = lean_box(0); -} -if (lean_is_scalar(x_128)) { - x_129 = lean_alloc_ctor(1, 2, 0); -} else { - x_129 = x_128; -} -lean_ctor_set(x_129, 0, x_126); -lean_ctor_set(x_129, 1, x_127); -return x_129; -} -} -} -} -} -else -{ -lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; -x_130 = lean_ctor_get(x_9, 1); -lean_inc(x_130); -lean_dec(x_9); -x_131 = lean_ctor_get(x_11, 0); -lean_inc(x_131); -x_132 = lean_ctor_get(x_11, 1); -lean_inc(x_132); -if (lean_is_exclusive(x_11)) { - lean_ctor_release(x_11, 0); - lean_ctor_release(x_11, 1); - x_133 = x_11; -} else { - lean_dec_ref(x_11); - x_133 = lean_box(0); -} -x_134 = lean_array_get_size(x_131); -x_135 = lean_unsigned_to_nat(0u); -x_136 = lean_nat_dec_lt(x_135, x_134); -if (x_136 == 0) -{ -lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; -lean_dec(x_134); -lean_dec(x_131); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_137 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; -if (lean_is_scalar(x_133)) { - x_138 = lean_alloc_ctor(0, 2, 0); -} else { - x_138 = x_133; -} -lean_ctor_set(x_138, 0, x_137); -lean_ctor_set(x_138, 1, x_132); -x_139 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_139, 0, x_138); -lean_ctor_set(x_139, 1, x_130); -x_140 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_140, 0, x_139); -lean_ctor_set(x_140, 1, x_10); -return x_140; -} -else -{ -uint8_t x_141; -x_141 = lean_nat_dec_le(x_134, x_134); -if (x_141 == 0) -{ -lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; -lean_dec(x_134); -lean_dec(x_131); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_142 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; -if (lean_is_scalar(x_133)) { - x_143 = lean_alloc_ctor(0, 2, 0); -} else { - x_143 = x_133; -} -lean_ctor_set(x_143, 0, x_142); -lean_ctor_set(x_143, 1, x_132); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_130); -x_145 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_145, 0, x_144); -lean_ctor_set(x_145, 1, x_10); -return x_145; -} -else -{ -size_t x_146; size_t x_147; lean_object* x_148; lean_object* x_149; -lean_dec(x_133); -x_146 = 0; -x_147 = lean_usize_of_nat(x_134); -lean_dec(x_134); -x_148 = l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; -x_149 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12(x_131, x_146, x_147, x_148, x_3, x_4, x_5, x_132, x_130, x_10); -lean_dec(x_131); -if (lean_obj_tag(x_149) == 0) -{ -lean_object* x_150; lean_object* x_151; -x_150 = lean_ctor_get(x_149, 0); -lean_inc(x_150); -x_151 = lean_ctor_get(x_150, 0); -lean_inc(x_151); -if (lean_obj_tag(x_151) == 0) -{ -lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; -x_152 = lean_ctor_get(x_149, 1); -lean_inc(x_152); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_153 = x_149; -} else { - lean_dec_ref(x_149); - x_153 = lean_box(0); -} -x_154 = lean_ctor_get(x_150, 1); -lean_inc(x_154); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_155 = x_150; -} else { - lean_dec_ref(x_150); - x_155 = lean_box(0); -} -x_156 = lean_ctor_get(x_151, 0); -lean_inc(x_156); -x_157 = lean_ctor_get(x_151, 1); -lean_inc(x_157); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_158 = x_151; -} else { - lean_dec_ref(x_151); - x_158 = lean_box(0); -} -x_159 = lean_ctor_get(x_156, 1); -lean_inc(x_159); -lean_dec(x_156); -if (lean_is_scalar(x_158)) { - x_160 = lean_alloc_ctor(0, 2, 0); -} else { - x_160 = x_158; -} -lean_ctor_set(x_160, 0, x_159); -lean_ctor_set(x_160, 1, x_157); -if (lean_is_scalar(x_155)) { - x_161 = lean_alloc_ctor(0, 2, 0); -} else { - x_161 = x_155; -} -lean_ctor_set(x_161, 0, x_160); -lean_ctor_set(x_161, 1, x_154); -if (lean_is_scalar(x_153)) { - x_162 = lean_alloc_ctor(0, 2, 0); -} else { - x_162 = x_153; -} -lean_ctor_set(x_162, 0, x_161); -lean_ctor_set(x_162, 1, x_152); -return x_162; -} -else -{ -lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; -x_163 = lean_ctor_get(x_149, 1); -lean_inc(x_163); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_164 = x_149; -} else { - lean_dec_ref(x_149); - x_164 = lean_box(0); -} -x_165 = lean_ctor_get(x_150, 1); -lean_inc(x_165); -if (lean_is_exclusive(x_150)) { - lean_ctor_release(x_150, 0); - lean_ctor_release(x_150, 1); - x_166 = x_150; -} else { - lean_dec_ref(x_150); - x_166 = lean_box(0); -} -x_167 = lean_ctor_get(x_151, 0); -lean_inc(x_167); -x_168 = lean_ctor_get(x_151, 1); -lean_inc(x_168); -if (lean_is_exclusive(x_151)) { - lean_ctor_release(x_151, 0); - lean_ctor_release(x_151, 1); - x_169 = x_151; -} else { - lean_dec_ref(x_151); - x_169 = lean_box(0); -} -if (lean_is_scalar(x_169)) { - x_170 = lean_alloc_ctor(1, 2, 0); -} else { - x_170 = x_169; -} -lean_ctor_set(x_170, 0, x_167); -lean_ctor_set(x_170, 1, x_168); -if (lean_is_scalar(x_166)) { - x_171 = lean_alloc_ctor(0, 2, 0); -} else { - x_171 = x_166; -} -lean_ctor_set(x_171, 0, x_170); -lean_ctor_set(x_171, 1, x_165); -if (lean_is_scalar(x_164)) { - x_172 = lean_alloc_ctor(0, 2, 0); -} else { - x_172 = x_164; -} -lean_ctor_set(x_172, 0, x_171); -lean_ctor_set(x_172, 1, x_163); -return x_172; -} -} -else -{ -lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; -x_173 = lean_ctor_get(x_149, 0); -lean_inc(x_173); -x_174 = lean_ctor_get(x_149, 1); -lean_inc(x_174); -if (lean_is_exclusive(x_149)) { - lean_ctor_release(x_149, 0); - lean_ctor_release(x_149, 1); - x_175 = x_149; -} else { - lean_dec_ref(x_149); - x_175 = lean_box(0); -} -if (lean_is_scalar(x_175)) { - x_176 = lean_alloc_ctor(1, 2, 0); -} else { - x_176 = x_175; -} -lean_ctor_set(x_176, 0, x_173); -lean_ctor_set(x_176, 1, x_174); -return x_176; -} -} -} -} -} -else -{ -uint8_t x_177; -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_177 = !lean_is_exclusive(x_9); -if (x_177 == 0) -{ -lean_object* x_178; uint8_t x_179; -x_178 = lean_ctor_get(x_9, 0); -lean_dec(x_178); -x_179 = !lean_is_exclusive(x_11); -if (x_179 == 0) -{ -lean_object* x_180; -x_180 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_180, 0, x_9); -lean_ctor_set(x_180, 1, x_10); -return x_180; -} -else -{ -lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; -x_181 = lean_ctor_get(x_11, 0); -x_182 = lean_ctor_get(x_11, 1); -lean_inc(x_182); -lean_inc(x_181); -lean_dec(x_11); -x_183 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_183, 0, x_181); -lean_ctor_set(x_183, 1, x_182); -lean_ctor_set(x_9, 0, x_183); -x_184 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_184, 0, x_9); -lean_ctor_set(x_184, 1, x_10); -return x_184; -} -} -else -{ -lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; -x_185 = lean_ctor_get(x_9, 1); -lean_inc(x_185); -lean_dec(x_9); -x_186 = lean_ctor_get(x_11, 0); -lean_inc(x_186); -x_187 = lean_ctor_get(x_11, 1); -lean_inc(x_187); -if (lean_is_exclusive(x_11)) { - lean_ctor_release(x_11, 0); - lean_ctor_release(x_11, 1); - x_188 = x_11; -} else { - lean_dec_ref(x_11); - x_188 = lean_box(0); -} -if (lean_is_scalar(x_188)) { - x_189 = lean_alloc_ctor(1, 2, 0); -} else { - x_189 = x_188; -} -lean_ctor_set(x_189, 0, x_186); -lean_ctor_set(x_189, 1, x_187); -x_190 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_190, 0, x_189); -lean_ctor_set(x_190, 1, x_185); -x_191 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_191, 0, x_190); -lean_ctor_set(x_191, 1, x_10); -return x_191; -} -} -} -block_270: -{ -lean_object* x_207; -x_207 = lean_ctor_get(x_205, 0); -lean_inc(x_207); -if (lean_obj_tag(x_207) == 0) -{ -uint8_t x_208; -x_208 = !lean_is_exclusive(x_205); -if (x_208 == 0) -{ -lean_object* x_209; uint8_t x_210; -x_209 = lean_ctor_get(x_205, 0); -lean_dec(x_209); -x_210 = !lean_is_exclusive(x_207); -if (x_210 == 0) -{ -lean_object* x_211; lean_object* x_212; lean_object* x_213; -x_211 = lean_ctor_get(x_207, 0); -x_212 = lean_ctor_get(x_207, 1); -x_213 = l_Lean_parseImports_x27(x_211, x_204, x_206); -lean_dec(x_204); -lean_dec(x_211); -if (lean_obj_tag(x_213) == 0) -{ -lean_object* x_214; lean_object* x_215; -x_214 = lean_ctor_get(x_213, 0); -lean_inc(x_214); -x_215 = lean_ctor_get(x_213, 1); -lean_inc(x_215); -lean_dec(x_213); -lean_ctor_set(x_207, 0, x_214); -x_9 = x_205; -x_10 = x_215; -goto block_192; -} -else -{ -lean_object* x_216; lean_object* x_217; lean_object* x_218; uint8_t x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; -x_216 = lean_ctor_get(x_213, 0); -lean_inc(x_216); -x_217 = lean_ctor_get(x_213, 1); -lean_inc(x_217); -lean_dec(x_213); -x_218 = lean_io_error_to_string(x_216); -x_219 = 3; -x_220 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_220, 0, x_218); -lean_ctor_set_uint8(x_220, sizeof(void*)*1, x_219); -x_221 = lean_array_get_size(x_212); -x_222 = lean_array_push(x_212, x_220); -lean_ctor_set_tag(x_207, 1); -lean_ctor_set(x_207, 1, x_222); -lean_ctor_set(x_207, 0, x_221); -x_9 = x_205; -x_10 = x_217; -goto block_192; -} -} -else -{ -lean_object* x_223; lean_object* x_224; lean_object* x_225; -x_223 = lean_ctor_get(x_207, 0); -x_224 = lean_ctor_get(x_207, 1); -lean_inc(x_224); -lean_inc(x_223); -lean_dec(x_207); -x_225 = l_Lean_parseImports_x27(x_223, x_204, x_206); -lean_dec(x_204); -lean_dec(x_223); -if (lean_obj_tag(x_225) == 0) -{ -lean_object* x_226; lean_object* x_227; lean_object* x_228; -x_226 = lean_ctor_get(x_225, 0); -lean_inc(x_226); -x_227 = lean_ctor_get(x_225, 1); -lean_inc(x_227); -lean_dec(x_225); -x_228 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_228, 0, x_226); -lean_ctor_set(x_228, 1, x_224); -lean_ctor_set(x_205, 0, x_228); -x_9 = x_205; -x_10 = x_227; -goto block_192; -} -else -{ -lean_object* x_229; lean_object* x_230; lean_object* x_231; uint8_t x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; -x_229 = lean_ctor_get(x_225, 0); -lean_inc(x_229); -x_230 = lean_ctor_get(x_225, 1); -lean_inc(x_230); -lean_dec(x_225); -x_231 = lean_io_error_to_string(x_229); -x_232 = 3; -x_233 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_233, 0, x_231); -lean_ctor_set_uint8(x_233, sizeof(void*)*1, x_232); -x_234 = lean_array_get_size(x_224); -x_235 = lean_array_push(x_224, x_233); -x_236 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_236, 0, x_234); -lean_ctor_set(x_236, 1, x_235); -lean_ctor_set(x_205, 0, x_236); -x_9 = x_205; -x_10 = x_230; -goto block_192; -} -} -} -else -{ -lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; -x_237 = lean_ctor_get(x_205, 1); -lean_inc(x_237); -lean_dec(x_205); -x_238 = lean_ctor_get(x_207, 0); -lean_inc(x_238); -x_239 = lean_ctor_get(x_207, 1); -lean_inc(x_239); -if (lean_is_exclusive(x_207)) { - lean_ctor_release(x_207, 0); - lean_ctor_release(x_207, 1); - x_240 = x_207; -} else { - lean_dec_ref(x_207); - x_240 = lean_box(0); -} -x_241 = l_Lean_parseImports_x27(x_238, x_204, x_206); -lean_dec(x_204); -lean_dec(x_238); -if (lean_obj_tag(x_241) == 0) -{ -lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; -x_242 = lean_ctor_get(x_241, 0); -lean_inc(x_242); -x_243 = lean_ctor_get(x_241, 1); -lean_inc(x_243); -lean_dec(x_241); -if (lean_is_scalar(x_240)) { - x_244 = lean_alloc_ctor(0, 2, 0); -} else { - x_244 = x_240; -} -lean_ctor_set(x_244, 0, x_242); -lean_ctor_set(x_244, 1, x_239); -x_245 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_245, 0, x_244); -lean_ctor_set(x_245, 1, x_237); -x_9 = x_245; -x_10 = x_243; -goto block_192; -} -else -{ -lean_object* x_246; lean_object* x_247; lean_object* x_248; uint8_t x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; -x_246 = lean_ctor_get(x_241, 0); -lean_inc(x_246); -x_247 = lean_ctor_get(x_241, 1); -lean_inc(x_247); -lean_dec(x_241); -x_248 = lean_io_error_to_string(x_246); -x_249 = 3; -x_250 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_250, 0, x_248); -lean_ctor_set_uint8(x_250, sizeof(void*)*1, x_249); -x_251 = lean_array_get_size(x_239); -x_252 = lean_array_push(x_239, x_250); -if (lean_is_scalar(x_240)) { - x_253 = lean_alloc_ctor(1, 2, 0); -} else { - x_253 = x_240; - lean_ctor_set_tag(x_253, 1); -} -lean_ctor_set(x_253, 0, x_251); -lean_ctor_set(x_253, 1, x_252); -x_254 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_254, 0, x_253); -lean_ctor_set(x_254, 1, x_237); -x_9 = x_254; -x_10 = x_247; -goto block_192; -} -} -} -else -{ -uint8_t x_255; -lean_dec(x_204); -lean_dec(x_5); -lean_dec(x_4); -lean_dec(x_3); -x_255 = !lean_is_exclusive(x_205); -if (x_255 == 0) -{ -lean_object* x_256; uint8_t x_257; -x_256 = lean_ctor_get(x_205, 0); -lean_dec(x_256); -x_257 = !lean_is_exclusive(x_207); -if (x_257 == 0) -{ -lean_object* x_258; -x_258 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_258, 0, x_205); -lean_ctor_set(x_258, 1, x_206); -return x_258; -} -else -{ -lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; -x_259 = lean_ctor_get(x_207, 0); -x_260 = lean_ctor_get(x_207, 1); -lean_inc(x_260); -lean_inc(x_259); -lean_dec(x_207); -x_261 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_261, 0, x_259); -lean_ctor_set(x_261, 1, x_260); -lean_ctor_set(x_205, 0, x_261); -x_262 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_262, 0, x_205); -lean_ctor_set(x_262, 1, x_206); -return x_262; -} -} -else -{ -lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; -x_263 = lean_ctor_get(x_205, 1); -lean_inc(x_263); -lean_dec(x_205); -x_264 = lean_ctor_get(x_207, 0); -lean_inc(x_264); -x_265 = lean_ctor_get(x_207, 1); -lean_inc(x_265); -if (lean_is_exclusive(x_207)) { - lean_ctor_release(x_207, 0); - lean_ctor_release(x_207, 1); - x_266 = x_207; -} else { - lean_dec_ref(x_207); - x_266 = lean_box(0); -} -if (lean_is_scalar(x_266)) { - x_267 = lean_alloc_ctor(1, 2, 0); -} else { - x_267 = x_266; -} -lean_ctor_set(x_267, 0, x_264); -lean_ctor_set(x_267, 1, x_265); -x_268 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_268, 0, x_267); -lean_ctor_set(x_268, 1, x_263); -x_269 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_269, 0, x_268); -lean_ctor_set(x_269, 1, x_206); -return x_269; -} -} -} -} -} -static lean_object* _init_l_Lake_Module_recParseImports___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("module source file not found: ", 30, 30); -return x_1; -} -} -static lean_object* _init_l_Lake_Module_recParseImports___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("", 0, 0); -return x_1; -} -} LEAN_EXPORT lean_object* l_Lake_Module_recParseImports(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_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; -x_108 = lean_ctor_get(x_1, 0); -lean_inc(x_108); -x_109 = lean_ctor_get(x_108, 0); -lean_inc(x_109); -x_110 = lean_ctor_get(x_109, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_109, 2); -lean_inc(x_111); -lean_dec(x_109); -x_112 = lean_ctor_get(x_111, 7); -lean_inc(x_112); -lean_dec(x_111); -x_113 = l_System_FilePath_join(x_110, x_112); -x_114 = lean_ctor_get(x_108, 1); -lean_inc(x_114); -lean_dec(x_108); -x_115 = lean_ctor_get(x_114, 2); -lean_inc(x_115); -lean_dec(x_114); -x_116 = l_System_FilePath_join(x_113, x_115); -x_117 = lean_ctor_get(x_1, 1); -lean_inc(x_117); -x_118 = l_Lake_Module_recParseImports___lambda__1___closed__1; -x_119 = l_Lean_moduleExists_go(x_116, x_118, x_117, x_7); -lean_dec(x_116); -if (lean_obj_tag(x_119) == 0) +lean_object* x_8; lean_object* x_9; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_270; +x_192 = lean_ctor_get(x_1, 0); +lean_inc(x_192); +x_193 = lean_ctor_get(x_192, 0); +lean_inc(x_193); +x_194 = lean_ctor_get(x_193, 0); +lean_inc(x_194); +x_195 = lean_ctor_get(x_193, 2); +lean_inc(x_195); +lean_dec(x_193); +x_196 = lean_ctor_get(x_195, 7); +lean_inc(x_196); +lean_dec(x_195); +x_197 = l_System_FilePath_join(x_194, x_196); +x_198 = lean_ctor_get(x_192, 1); +lean_inc(x_198); +lean_dec(x_192); +x_199 = lean_ctor_get(x_198, 2); +lean_inc(x_199); +lean_dec(x_198); +x_200 = l_System_FilePath_join(x_197, x_199); +x_201 = lean_ctor_get(x_1, 1); +lean_inc(x_201); +lean_dec(x_1); +x_202 = l_Lake_Module_recParseImports___closed__1; +x_203 = l_Lean_modToFilePath(x_200, x_201, x_202); +lean_dec(x_200); +x_270 = l_IO_FS_readFile(x_203, x_7); +if (lean_obj_tag(x_270) == 0) { -uint8_t x_120; -x_120 = !lean_is_exclusive(x_119); -if (x_120 == 0) +uint8_t x_271; +x_271 = !lean_is_exclusive(x_270); +if (x_271 == 0) { -lean_object* x_121; lean_object* x_122; -x_121 = lean_ctor_get(x_119, 1); -lean_ctor_set(x_119, 1, x_5); -x_122 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_122, 0, x_119); -lean_ctor_set(x_122, 1, x_6); -x_8 = x_122; -x_9 = x_121; -goto block_107; +lean_object* x_272; lean_object* x_273; +x_272 = lean_ctor_get(x_270, 1); +lean_ctor_set(x_270, 1, x_5); +x_273 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_273, 0, x_270); +lean_ctor_set(x_273, 1, x_6); +x_204 = x_273; +x_205 = x_272; +goto block_269; } else { -lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; -x_123 = lean_ctor_get(x_119, 0); -x_124 = lean_ctor_get(x_119, 1); -lean_inc(x_124); -lean_inc(x_123); -lean_dec(x_119); -x_125 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_125, 0, x_123); -lean_ctor_set(x_125, 1, x_5); -x_126 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_126, 0, x_125); -lean_ctor_set(x_126, 1, x_6); -x_8 = x_126; -x_9 = x_124; -goto block_107; +lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; +x_274 = lean_ctor_get(x_270, 0); +x_275 = lean_ctor_get(x_270, 1); +lean_inc(x_275); +lean_inc(x_274); +lean_dec(x_270); +x_276 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_276, 0, x_274); +lean_ctor_set(x_276, 1, x_5); +x_277 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_277, 0, x_276); +lean_ctor_set(x_277, 1, x_6); +x_204 = x_277; +x_205 = x_275; +goto block_269; } } else { -uint8_t x_127; -x_127 = !lean_is_exclusive(x_119); -if (x_127 == 0) +uint8_t x_278; +x_278 = !lean_is_exclusive(x_270); +if (x_278 == 0) { -lean_object* x_128; lean_object* x_129; lean_object* x_130; uint8_t x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; -x_128 = lean_ctor_get(x_119, 0); -x_129 = lean_ctor_get(x_119, 1); -x_130 = lean_io_error_to_string(x_128); -x_131 = 3; -x_132 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_132, 0, x_130); -lean_ctor_set_uint8(x_132, sizeof(void*)*1, x_131); -x_133 = lean_array_get_size(x_5); -x_134 = lean_array_push(x_5, x_132); -lean_ctor_set(x_119, 1, x_134); -lean_ctor_set(x_119, 0, x_133); -x_135 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_135, 0, x_119); -lean_ctor_set(x_135, 1, x_6); -x_8 = x_135; -x_9 = x_129; -goto block_107; +lean_object* x_279; lean_object* x_280; lean_object* x_281; uint8_t x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; +x_279 = lean_ctor_get(x_270, 0); +x_280 = lean_ctor_get(x_270, 1); +x_281 = lean_io_error_to_string(x_279); +x_282 = 3; +x_283 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_283, 0, x_281); +lean_ctor_set_uint8(x_283, sizeof(void*)*1, x_282); +x_284 = lean_array_get_size(x_5); +x_285 = lean_array_push(x_5, x_283); +lean_ctor_set(x_270, 1, x_285); +lean_ctor_set(x_270, 0, x_284); +x_286 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_286, 0, x_270); +lean_ctor_set(x_286, 1, x_6); +x_204 = x_286; +x_205 = x_280; +goto block_269; } else { -lean_object* x_136; lean_object* x_137; lean_object* x_138; uint8_t x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; -x_136 = lean_ctor_get(x_119, 0); -x_137 = lean_ctor_get(x_119, 1); -lean_inc(x_137); -lean_inc(x_136); -lean_dec(x_119); -x_138 = lean_io_error_to_string(x_136); -x_139 = 3; -x_140 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_140, 0, x_138); -lean_ctor_set_uint8(x_140, sizeof(void*)*1, x_139); -x_141 = lean_array_get_size(x_5); -x_142 = lean_array_push(x_5, x_140); -x_143 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_143, 0, x_141); -lean_ctor_set(x_143, 1, x_142); -x_144 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_144, 0, x_143); -lean_ctor_set(x_144, 1, x_6); -x_8 = x_144; -x_9 = x_137; -goto block_107; +lean_object* x_287; lean_object* x_288; lean_object* x_289; uint8_t x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; +x_287 = lean_ctor_get(x_270, 0); +x_288 = lean_ctor_get(x_270, 1); +lean_inc(x_288); +lean_inc(x_287); +lean_dec(x_270); +x_289 = lean_io_error_to_string(x_287); +x_290 = 3; +x_291 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_291, 0, x_289); +lean_ctor_set_uint8(x_291, sizeof(void*)*1, x_290); +x_292 = lean_array_get_size(x_5); +x_293 = lean_array_push(x_5, x_291); +x_294 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_294, 0, x_292); +lean_ctor_set(x_294, 1, x_293); +x_295 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_295, 0, x_294); +lean_ctor_set(x_295, 1, x_6); +x_204 = x_295; +x_205 = x_288; +goto block_269; } } -block_107: +block_191: { lean_object* x_10; x_10 = lean_ctor_get(x_8, 0); lean_inc(x_10); if (lean_obj_tag(x_10) == 0) { -lean_object* x_11; uint8_t x_12; -x_11 = lean_ctor_get(x_10, 0); -lean_inc(x_11); -x_12 = lean_unbox(x_11); -lean_dec(x_11); -if (x_12 == 0) +uint8_t x_11; +x_11 = !lean_is_exclusive(x_8); +if (x_11 == 0) { -uint8_t x_13; +lean_object* x_12; lean_object* x_13; uint8_t x_14; +x_12 = lean_ctor_get(x_8, 1); +x_13 = lean_ctor_get(x_8, 0); +lean_dec(x_13); +x_14 = !lean_is_exclusive(x_10); +if (x_14 == 0) +{ +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = lean_ctor_get(x_10, 0); +x_16 = lean_ctor_get(x_10, 1); +x_17 = lean_array_get_size(x_15); +x_18 = lean_unsigned_to_nat(0u); +x_19 = lean_nat_dec_lt(x_18, x_17); +if (x_19 == 0) +{ +lean_object* x_20; lean_object* x_21; +lean_dec(x_17); +lean_dec(x_15); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -x_13 = !lean_is_exclusive(x_8); -if (x_13 == 0) +x_20 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; +lean_ctor_set(x_10, 0, x_20); +x_21 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_21, 0, x_8); +lean_ctor_set(x_21, 1, x_9); +return x_21; +} +else { -lean_object* x_14; uint8_t x_15; -x_14 = lean_ctor_get(x_8, 0); -lean_dec(x_14); -x_15 = !lean_is_exclusive(x_10); -if (x_15 == 0) +uint8_t x_22; +x_22 = lean_nat_dec_le(x_17, x_17); +if (x_22 == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; -x_16 = lean_ctor_get(x_10, 1); -x_17 = lean_ctor_get(x_10, 0); +lean_object* x_23; lean_object* x_24; lean_dec(x_17); -x_18 = lean_ctor_get(x_1, 0); -lean_inc(x_18); -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_19, 0); -lean_inc(x_20); -x_21 = lean_ctor_get(x_19, 2); -lean_inc(x_21); -lean_dec(x_19); -x_22 = lean_ctor_get(x_21, 7); -lean_inc(x_22); -lean_dec(x_21); -x_23 = l_System_FilePath_join(x_20, x_22); -x_24 = lean_ctor_get(x_18, 1); -lean_inc(x_24); -lean_dec(x_18); -x_25 = lean_ctor_get(x_24, 2); -lean_inc(x_25); -lean_dec(x_24); -x_26 = l_System_FilePath_join(x_23, x_25); -x_27 = lean_ctor_get(x_1, 1); -lean_inc(x_27); -lean_dec(x_1); -x_28 = l_Lake_Module_recParseImports___lambda__1___closed__1; -x_29 = l_Lean_modToFilePath(x_26, x_27, x_28); -lean_dec(x_26); -x_30 = l_Lake_Module_recParseImports___closed__1; -x_31 = lean_string_append(x_30, x_29); -lean_dec(x_29); -x_32 = l_Lake_Module_recParseImports___closed__2; -x_33 = lean_string_append(x_31, x_32); -x_34 = 3; -x_35 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_35, 0, x_33); -lean_ctor_set_uint8(x_35, sizeof(void*)*1, x_34); -x_36 = lean_array_get_size(x_16); -x_37 = lean_array_push(x_16, x_35); -lean_ctor_set_tag(x_10, 1); -lean_ctor_set(x_10, 1, x_37); -lean_ctor_set(x_10, 0, x_36); -x_38 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_38, 0, x_8); -lean_ctor_set(x_38, 1, x_9); -return x_38; +lean_dec(x_15); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_23 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; +lean_ctor_set(x_10, 0, x_23); +x_24 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_24, 0, x_8); +lean_ctor_set(x_24, 1, x_9); +return x_24; } else { -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; uint8_t x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; -x_39 = lean_ctor_get(x_10, 1); +size_t x_25; size_t x_26; lean_object* x_27; lean_object* x_28; +lean_free_object(x_10); +lean_free_object(x_8); +x_25 = 0; +x_26 = lean_usize_of_nat(x_17); +lean_dec(x_17); +x_27 = l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; +x_28 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12(x_15, x_25, x_26, x_27, x_2, x_3, x_4, x_16, x_12, x_9); +lean_dec(x_15); +if (lean_obj_tag(x_28) == 0) +{ +lean_object* x_29; lean_object* x_30; +x_29 = lean_ctor_get(x_28, 0); +lean_inc(x_29); +x_30 = lean_ctor_get(x_29, 0); +lean_inc(x_30); +if (lean_obj_tag(x_30) == 0) +{ +uint8_t x_31; +x_31 = !lean_is_exclusive(x_28); +if (x_31 == 0) +{ +lean_object* x_32; uint8_t x_33; +x_32 = lean_ctor_get(x_28, 0); +lean_dec(x_32); +x_33 = !lean_is_exclusive(x_29); +if (x_33 == 0) +{ +lean_object* x_34; uint8_t x_35; +x_34 = lean_ctor_get(x_29, 0); +lean_dec(x_34); +x_35 = !lean_is_exclusive(x_30); +if (x_35 == 0) +{ +lean_object* x_36; lean_object* x_37; +x_36 = lean_ctor_get(x_30, 0); +x_37 = lean_ctor_get(x_36, 1); +lean_inc(x_37); +lean_dec(x_36); +lean_ctor_set(x_30, 0, x_37); +return x_28; +} +else +{ +lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; +x_38 = lean_ctor_get(x_30, 0); +x_39 = lean_ctor_get(x_30, 1); lean_inc(x_39); -lean_dec(x_10); -x_40 = lean_ctor_get(x_1, 0); +lean_inc(x_38); +lean_dec(x_30); +x_40 = lean_ctor_get(x_38, 1); lean_inc(x_40); -x_41 = lean_ctor_get(x_40, 0); -lean_inc(x_41); -x_42 = lean_ctor_get(x_41, 0); -lean_inc(x_42); -x_43 = lean_ctor_get(x_41, 2); -lean_inc(x_43); -lean_dec(x_41); -x_44 = lean_ctor_get(x_43, 7); -lean_inc(x_44); -lean_dec(x_43); -x_45 = l_System_FilePath_join(x_42, x_44); -x_46 = lean_ctor_get(x_40, 1); -lean_inc(x_46); -lean_dec(x_40); -x_47 = lean_ctor_get(x_46, 2); -lean_inc(x_47); -lean_dec(x_46); -x_48 = l_System_FilePath_join(x_45, x_47); -x_49 = lean_ctor_get(x_1, 1); -lean_inc(x_49); -lean_dec(x_1); -x_50 = l_Lake_Module_recParseImports___lambda__1___closed__1; -x_51 = l_Lean_modToFilePath(x_48, x_49, x_50); -lean_dec(x_48); -x_52 = l_Lake_Module_recParseImports___closed__1; -x_53 = lean_string_append(x_52, x_51); -lean_dec(x_51); -x_54 = l_Lake_Module_recParseImports___closed__2; -x_55 = lean_string_append(x_53, x_54); -x_56 = 3; -x_57 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_57, 0, x_55); -lean_ctor_set_uint8(x_57, sizeof(void*)*1, x_56); -x_58 = lean_array_get_size(x_39); -x_59 = lean_array_push(x_39, x_57); -x_60 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_60, 0, x_58); -lean_ctor_set(x_60, 1, x_59); -lean_ctor_set(x_8, 0, x_60); -x_61 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_61, 0, x_8); -lean_ctor_set(x_61, 1, x_9); -return x_61; +lean_dec(x_38); +x_41 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_41, 0, x_40); +lean_ctor_set(x_41, 1, x_39); +lean_ctor_set(x_29, 0, x_41); +return x_28; } } else { -lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; uint8_t x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_62 = lean_ctor_get(x_8, 1); -lean_inc(x_62); -lean_dec(x_8); -x_63 = lean_ctor_get(x_10, 1); -lean_inc(x_63); -if (lean_is_exclusive(x_10)) { - lean_ctor_release(x_10, 0); - lean_ctor_release(x_10, 1); - x_64 = x_10; +lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; +x_42 = lean_ctor_get(x_29, 1); +lean_inc(x_42); +lean_dec(x_29); +x_43 = lean_ctor_get(x_30, 0); +lean_inc(x_43); +x_44 = lean_ctor_get(x_30, 1); +lean_inc(x_44); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_45 = x_30; } else { - lean_dec_ref(x_10); - x_64 = lean_box(0); + lean_dec_ref(x_30); + x_45 = lean_box(0); } -x_65 = lean_ctor_get(x_1, 0); +x_46 = lean_ctor_get(x_43, 1); +lean_inc(x_46); +lean_dec(x_43); +if (lean_is_scalar(x_45)) { + x_47 = lean_alloc_ctor(0, 2, 0); +} else { + x_47 = x_45; +} +lean_ctor_set(x_47, 0, x_46); +lean_ctor_set(x_47, 1, x_44); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_47); +lean_ctor_set(x_48, 1, x_42); +lean_ctor_set(x_28, 0, x_48); +return x_28; +} +} +else +{ +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_49 = lean_ctor_get(x_28, 1); +lean_inc(x_49); +lean_dec(x_28); +x_50 = lean_ctor_get(x_29, 1); +lean_inc(x_50); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_51 = x_29; +} else { + lean_dec_ref(x_29); + x_51 = lean_box(0); +} +x_52 = lean_ctor_get(x_30, 0); +lean_inc(x_52); +x_53 = lean_ctor_get(x_30, 1); +lean_inc(x_53); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_54 = x_30; +} else { + lean_dec_ref(x_30); + x_54 = lean_box(0); +} +x_55 = lean_ctor_get(x_52, 1); +lean_inc(x_55); +lean_dec(x_52); +if (lean_is_scalar(x_54)) { + x_56 = lean_alloc_ctor(0, 2, 0); +} else { + x_56 = x_54; +} +lean_ctor_set(x_56, 0, x_55); +lean_ctor_set(x_56, 1, x_53); +if (lean_is_scalar(x_51)) { + x_57 = lean_alloc_ctor(0, 2, 0); +} else { + x_57 = x_51; +} +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_50); +x_58 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_58, 0, x_57); +lean_ctor_set(x_58, 1, x_49); +return x_58; +} +} +else +{ +uint8_t x_59; +x_59 = !lean_is_exclusive(x_28); +if (x_59 == 0) +{ +lean_object* x_60; uint8_t x_61; +x_60 = lean_ctor_get(x_28, 0); +lean_dec(x_60); +x_61 = !lean_is_exclusive(x_29); +if (x_61 == 0) +{ +lean_object* x_62; uint8_t x_63; +x_62 = lean_ctor_get(x_29, 0); +lean_dec(x_62); +x_63 = !lean_is_exclusive(x_30); +if (x_63 == 0) +{ +return x_28; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; +x_64 = lean_ctor_get(x_30, 0); +x_65 = lean_ctor_get(x_30, 1); lean_inc(x_65); -x_66 = lean_ctor_get(x_65, 0); -lean_inc(x_66); -x_67 = lean_ctor_get(x_66, 0); -lean_inc(x_67); -x_68 = lean_ctor_get(x_66, 2); -lean_inc(x_68); -lean_dec(x_66); -x_69 = lean_ctor_get(x_68, 7); -lean_inc(x_69); -lean_dec(x_68); -x_70 = l_System_FilePath_join(x_67, x_69); -x_71 = lean_ctor_get(x_65, 1); -lean_inc(x_71); -lean_dec(x_65); -x_72 = lean_ctor_get(x_71, 2); -lean_inc(x_72); -lean_dec(x_71); -x_73 = l_System_FilePath_join(x_70, x_72); -x_74 = lean_ctor_get(x_1, 1); -lean_inc(x_74); -lean_dec(x_1); -x_75 = l_Lake_Module_recParseImports___lambda__1___closed__1; -x_76 = l_Lean_modToFilePath(x_73, x_74, x_75); -lean_dec(x_73); -x_77 = l_Lake_Module_recParseImports___closed__1; -x_78 = lean_string_append(x_77, x_76); -lean_dec(x_76); -x_79 = l_Lake_Module_recParseImports___closed__2; -x_80 = lean_string_append(x_78, x_79); -x_81 = 3; -x_82 = lean_alloc_ctor(0, 1, 1); -lean_ctor_set(x_82, 0, x_80); -lean_ctor_set_uint8(x_82, sizeof(void*)*1, x_81); -x_83 = lean_array_get_size(x_63); -x_84 = lean_array_push(x_63, x_82); -if (lean_is_scalar(x_64)) { - x_85 = lean_alloc_ctor(1, 2, 0); -} else { - x_85 = x_64; - lean_ctor_set_tag(x_85, 1); +lean_inc(x_64); +lean_dec(x_30); +x_66 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_66, 0, x_64); +lean_ctor_set(x_66, 1, x_65); +lean_ctor_set(x_29, 0, x_66); +return x_28; } +} +else +{ +lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; +x_67 = lean_ctor_get(x_29, 1); +lean_inc(x_67); +lean_dec(x_29); +x_68 = lean_ctor_get(x_30, 0); +lean_inc(x_68); +x_69 = lean_ctor_get(x_30, 1); +lean_inc(x_69); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_70 = x_30; +} else { + lean_dec_ref(x_30); + x_70 = lean_box(0); +} +if (lean_is_scalar(x_70)) { + x_71 = lean_alloc_ctor(1, 2, 0); +} else { + x_71 = x_70; +} +lean_ctor_set(x_71, 0, x_68); +lean_ctor_set(x_71, 1, x_69); +x_72 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_72, 0, x_71); +lean_ctor_set(x_72, 1, x_67); +lean_ctor_set(x_28, 0, x_72); +return x_28; +} +} +else +{ +lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; +x_73 = lean_ctor_get(x_28, 1); +lean_inc(x_73); +lean_dec(x_28); +x_74 = lean_ctor_get(x_29, 1); +lean_inc(x_74); +if (lean_is_exclusive(x_29)) { + lean_ctor_release(x_29, 0); + lean_ctor_release(x_29, 1); + x_75 = x_29; +} else { + lean_dec_ref(x_29); + x_75 = lean_box(0); +} +x_76 = lean_ctor_get(x_30, 0); +lean_inc(x_76); +x_77 = lean_ctor_get(x_30, 1); +lean_inc(x_77); +if (lean_is_exclusive(x_30)) { + lean_ctor_release(x_30, 0); + lean_ctor_release(x_30, 1); + x_78 = x_30; +} else { + lean_dec_ref(x_30); + x_78 = lean_box(0); +} +if (lean_is_scalar(x_78)) { + x_79 = lean_alloc_ctor(1, 2, 0); +} else { + x_79 = x_78; +} +lean_ctor_set(x_79, 0, x_76); +lean_ctor_set(x_79, 1, x_77); +if (lean_is_scalar(x_75)) { + x_80 = lean_alloc_ctor(0, 2, 0); +} else { + x_80 = x_75; +} +lean_ctor_set(x_80, 0, x_79); +lean_ctor_set(x_80, 1, x_74); +x_81 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_81, 0, x_80); +lean_ctor_set(x_81, 1, x_73); +return x_81; +} +} +} +else +{ +uint8_t x_82; +x_82 = !lean_is_exclusive(x_28); +if (x_82 == 0) +{ +return x_28; +} +else +{ +lean_object* x_83; lean_object* x_84; lean_object* x_85; +x_83 = lean_ctor_get(x_28, 0); +x_84 = lean_ctor_get(x_28, 1); +lean_inc(x_84); +lean_inc(x_83); +lean_dec(x_28); +x_85 = lean_alloc_ctor(1, 2, 0); lean_ctor_set(x_85, 0, x_83); lean_ctor_set(x_85, 1, x_84); -x_86 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_86, 0, x_85); -lean_ctor_set(x_86, 1, x_62); -x_87 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_87, 0, x_86); -lean_ctor_set(x_87, 1, x_9); -return x_87; +return x_85; +} +} +} } } else { -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; -x_88 = lean_ctor_get(x_8, 1); -lean_inc(x_88); -lean_dec(x_8); -x_89 = lean_ctor_get(x_10, 1); -lean_inc(x_89); +lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; uint8_t x_90; +x_86 = lean_ctor_get(x_10, 0); +x_87 = lean_ctor_get(x_10, 1); +lean_inc(x_87); +lean_inc(x_86); lean_dec(x_10); -x_90 = lean_box(0); -x_91 = l_Lake_Module_recParseImports___lambda__1(x_1, x_90, x_2, x_3, x_4, x_89, x_88, x_9); -return x_91; -} -} -else +x_88 = lean_array_get_size(x_86); +x_89 = lean_unsigned_to_nat(0u); +x_90 = lean_nat_dec_lt(x_89, x_88); +if (x_90 == 0) { -uint8_t x_92; +lean_object* x_91; lean_object* x_92; lean_object* x_93; +lean_dec(x_88); +lean_dec(x_86); lean_dec(x_4); lean_dec(x_3); lean_dec(x_2); -lean_dec(x_1); -x_92 = !lean_is_exclusive(x_8); -if (x_92 == 0) +x_91 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; +x_92 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_92, 0, x_91); +lean_ctor_set(x_92, 1, x_87); +lean_ctor_set(x_8, 0, x_92); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_8); +lean_ctor_set(x_93, 1, x_9); +return x_93; +} +else { -lean_object* x_93; uint8_t x_94; -x_93 = lean_ctor_get(x_8, 0); -lean_dec(x_93); -x_94 = !lean_is_exclusive(x_10); +uint8_t x_94; +x_94 = lean_nat_dec_le(x_88, x_88); if (x_94 == 0) { -lean_object* x_95; -x_95 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_95, 0, x_8); -lean_ctor_set(x_95, 1, x_9); -return x_95; +lean_object* x_95; lean_object* x_96; lean_object* x_97; +lean_dec(x_88); +lean_dec(x_86); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_95 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; +x_96 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_96, 0, x_95); +lean_ctor_set(x_96, 1, x_87); +lean_ctor_set(x_8, 0, x_96); +x_97 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_97, 0, x_8); +lean_ctor_set(x_97, 1, x_9); +return x_97; } else { -lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; -x_96 = lean_ctor_get(x_10, 0); -x_97 = lean_ctor_get(x_10, 1); -lean_inc(x_97); -lean_inc(x_96); -lean_dec(x_10); -x_98 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_98, 0, x_96); -lean_ctor_set(x_98, 1, x_97); -lean_ctor_set(x_8, 0, x_98); -x_99 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_99, 0, x_8); -lean_ctor_set(x_99, 1, x_9); -return x_99; -} -} -else +size_t x_98; size_t x_99; lean_object* x_100; lean_object* x_101; +lean_free_object(x_8); +x_98 = 0; +x_99 = lean_usize_of_nat(x_88); +lean_dec(x_88); +x_100 = l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; +x_101 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12(x_86, x_98, x_99, x_100, x_2, x_3, x_4, x_87, x_12, x_9); +lean_dec(x_86); +if (lean_obj_tag(x_101) == 0) { -lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; -x_100 = lean_ctor_get(x_8, 1); -lean_inc(x_100); -lean_dec(x_8); -x_101 = lean_ctor_get(x_10, 0); -lean_inc(x_101); -x_102 = lean_ctor_get(x_10, 1); +lean_object* x_102; lean_object* x_103; +x_102 = lean_ctor_get(x_101, 0); lean_inc(x_102); +x_103 = lean_ctor_get(x_102, 0); +lean_inc(x_103); +if (lean_obj_tag(x_103) == 0) +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; +x_104 = lean_ctor_get(x_101, 1); +lean_inc(x_104); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_105 = x_101; +} else { + lean_dec_ref(x_101); + x_105 = lean_box(0); +} +x_106 = lean_ctor_get(x_102, 1); +lean_inc(x_106); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_107 = x_102; +} else { + lean_dec_ref(x_102); + x_107 = lean_box(0); +} +x_108 = lean_ctor_get(x_103, 0); +lean_inc(x_108); +x_109 = lean_ctor_get(x_103, 1); +lean_inc(x_109); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_110 = x_103; +} else { + lean_dec_ref(x_103); + x_110 = lean_box(0); +} +x_111 = lean_ctor_get(x_108, 1); +lean_inc(x_111); +lean_dec(x_108); +if (lean_is_scalar(x_110)) { + x_112 = lean_alloc_ctor(0, 2, 0); +} else { + x_112 = x_110; +} +lean_ctor_set(x_112, 0, x_111); +lean_ctor_set(x_112, 1, x_109); +if (lean_is_scalar(x_107)) { + x_113 = lean_alloc_ctor(0, 2, 0); +} else { + x_113 = x_107; +} +lean_ctor_set(x_113, 0, x_112); +lean_ctor_set(x_113, 1, x_106); +if (lean_is_scalar(x_105)) { + x_114 = lean_alloc_ctor(0, 2, 0); +} else { + x_114 = x_105; +} +lean_ctor_set(x_114, 0, x_113); +lean_ctor_set(x_114, 1, x_104); +return x_114; +} +else +{ +lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; +x_115 = lean_ctor_get(x_101, 1); +lean_inc(x_115); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_116 = x_101; +} else { + lean_dec_ref(x_101); + x_116 = lean_box(0); +} +x_117 = lean_ctor_get(x_102, 1); +lean_inc(x_117); +if (lean_is_exclusive(x_102)) { + lean_ctor_release(x_102, 0); + lean_ctor_release(x_102, 1); + x_118 = x_102; +} else { + lean_dec_ref(x_102); + x_118 = lean_box(0); +} +x_119 = lean_ctor_get(x_103, 0); +lean_inc(x_119); +x_120 = lean_ctor_get(x_103, 1); +lean_inc(x_120); +if (lean_is_exclusive(x_103)) { + lean_ctor_release(x_103, 0); + lean_ctor_release(x_103, 1); + x_121 = x_103; +} else { + lean_dec_ref(x_103); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_121)) { + x_122 = lean_alloc_ctor(1, 2, 0); +} else { + x_122 = x_121; +} +lean_ctor_set(x_122, 0, x_119); +lean_ctor_set(x_122, 1, x_120); +if (lean_is_scalar(x_118)) { + x_123 = lean_alloc_ctor(0, 2, 0); +} else { + x_123 = x_118; +} +lean_ctor_set(x_123, 0, x_122); +lean_ctor_set(x_123, 1, x_117); +if (lean_is_scalar(x_116)) { + x_124 = lean_alloc_ctor(0, 2, 0); +} else { + x_124 = x_116; +} +lean_ctor_set(x_124, 0, x_123); +lean_ctor_set(x_124, 1, x_115); +return x_124; +} +} +else +{ +lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; +x_125 = lean_ctor_get(x_101, 0); +lean_inc(x_125); +x_126 = lean_ctor_get(x_101, 1); +lean_inc(x_126); +if (lean_is_exclusive(x_101)) { + lean_ctor_release(x_101, 0); + lean_ctor_release(x_101, 1); + x_127 = x_101; +} else { + lean_dec_ref(x_101); + x_127 = lean_box(0); +} +if (lean_is_scalar(x_127)) { + x_128 = lean_alloc_ctor(1, 2, 0); +} else { + x_128 = x_127; +} +lean_ctor_set(x_128, 0, x_125); +lean_ctor_set(x_128, 1, x_126); +return x_128; +} +} +} +} +} +else +{ +lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; +x_129 = lean_ctor_get(x_8, 1); +lean_inc(x_129); +lean_dec(x_8); +x_130 = lean_ctor_get(x_10, 0); +lean_inc(x_130); +x_131 = lean_ctor_get(x_10, 1); +lean_inc(x_131); if (lean_is_exclusive(x_10)) { lean_ctor_release(x_10, 0); lean_ctor_release(x_10, 1); - x_103 = x_10; + x_132 = x_10; } else { lean_dec_ref(x_10); - x_103 = lean_box(0); + x_132 = lean_box(0); } -if (lean_is_scalar(x_103)) { - x_104 = lean_alloc_ctor(1, 2, 0); +x_133 = lean_array_get_size(x_130); +x_134 = lean_unsigned_to_nat(0u); +x_135 = lean_nat_dec_lt(x_134, x_133); +if (x_135 == 0) +{ +lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; +lean_dec(x_133); +lean_dec(x_130); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_136 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; +if (lean_is_scalar(x_132)) { + x_137 = lean_alloc_ctor(0, 2, 0); } else { - x_104 = x_103; + x_137 = x_132; } -lean_ctor_set(x_104, 0, x_101); -lean_ctor_set(x_104, 1, x_102); -x_105 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_100); -x_106 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_106, 0, x_105); -lean_ctor_set(x_106, 1, x_9); -return x_106; +lean_ctor_set(x_137, 0, x_136); +lean_ctor_set(x_137, 1, x_131); +x_138 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_138, 0, x_137); +lean_ctor_set(x_138, 1, x_129); +x_139 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_139, 0, x_138); +lean_ctor_set(x_139, 1, x_9); +return x_139; +} +else +{ +uint8_t x_140; +x_140 = lean_nat_dec_le(x_133, x_133); +if (x_140 == 0) +{ +lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; +lean_dec(x_133); +lean_dec(x_130); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_141 = l_Array_forInUnsafe_loop___at_Lake_recBuildExternDynlibs___spec__3___closed__1; +if (lean_is_scalar(x_132)) { + x_142 = lean_alloc_ctor(0, 2, 0); +} else { + x_142 = x_132; +} +lean_ctor_set(x_142, 0, x_141); +lean_ctor_set(x_142, 1, x_131); +x_143 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_143, 0, x_142); +lean_ctor_set(x_143, 1, x_129); +x_144 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_144, 0, x_143); +lean_ctor_set(x_144, 1, x_9); +return x_144; +} +else +{ +size_t x_145; size_t x_146; lean_object* x_147; lean_object* x_148; +lean_dec(x_132); +x_145 = 0; +x_146 = lean_usize_of_nat(x_133); +lean_dec(x_133); +x_147 = l_Lake_OrdHashSet_empty___at_Lake_OrdModuleSet_empty___spec__1; +x_148 = l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12(x_130, x_145, x_146, x_147, x_2, x_3, x_4, x_131, x_129, x_9); +lean_dec(x_130); +if (lean_obj_tag(x_148) == 0) +{ +lean_object* x_149; lean_object* x_150; +x_149 = lean_ctor_get(x_148, 0); +lean_inc(x_149); +x_150 = lean_ctor_get(x_149, 0); +lean_inc(x_150); +if (lean_obj_tag(x_150) == 0) +{ +lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; +x_151 = lean_ctor_get(x_148, 1); +lean_inc(x_151); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_152 = x_148; +} else { + lean_dec_ref(x_148); + x_152 = lean_box(0); +} +x_153 = lean_ctor_get(x_149, 1); +lean_inc(x_153); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_154 = x_149; +} else { + lean_dec_ref(x_149); + x_154 = lean_box(0); +} +x_155 = lean_ctor_get(x_150, 0); +lean_inc(x_155); +x_156 = lean_ctor_get(x_150, 1); +lean_inc(x_156); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_157 = x_150; +} else { + lean_dec_ref(x_150); + x_157 = lean_box(0); +} +x_158 = lean_ctor_get(x_155, 1); +lean_inc(x_158); +lean_dec(x_155); +if (lean_is_scalar(x_157)) { + x_159 = lean_alloc_ctor(0, 2, 0); +} else { + x_159 = x_157; +} +lean_ctor_set(x_159, 0, x_158); +lean_ctor_set(x_159, 1, x_156); +if (lean_is_scalar(x_154)) { + x_160 = lean_alloc_ctor(0, 2, 0); +} else { + x_160 = x_154; +} +lean_ctor_set(x_160, 0, x_159); +lean_ctor_set(x_160, 1, x_153); +if (lean_is_scalar(x_152)) { + x_161 = lean_alloc_ctor(0, 2, 0); +} else { + x_161 = x_152; +} +lean_ctor_set(x_161, 0, x_160); +lean_ctor_set(x_161, 1, x_151); +return x_161; +} +else +{ +lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; +x_162 = lean_ctor_get(x_148, 1); +lean_inc(x_162); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_163 = x_148; +} else { + lean_dec_ref(x_148); + x_163 = lean_box(0); +} +x_164 = lean_ctor_get(x_149, 1); +lean_inc(x_164); +if (lean_is_exclusive(x_149)) { + lean_ctor_release(x_149, 0); + lean_ctor_release(x_149, 1); + x_165 = x_149; +} else { + lean_dec_ref(x_149); + x_165 = lean_box(0); +} +x_166 = lean_ctor_get(x_150, 0); +lean_inc(x_166); +x_167 = lean_ctor_get(x_150, 1); +lean_inc(x_167); +if (lean_is_exclusive(x_150)) { + lean_ctor_release(x_150, 0); + lean_ctor_release(x_150, 1); + x_168 = x_150; +} else { + lean_dec_ref(x_150); + x_168 = lean_box(0); +} +if (lean_is_scalar(x_168)) { + x_169 = lean_alloc_ctor(1, 2, 0); +} else { + x_169 = x_168; +} +lean_ctor_set(x_169, 0, x_166); +lean_ctor_set(x_169, 1, x_167); +if (lean_is_scalar(x_165)) { + x_170 = lean_alloc_ctor(0, 2, 0); +} else { + x_170 = x_165; +} +lean_ctor_set(x_170, 0, x_169); +lean_ctor_set(x_170, 1, x_164); +if (lean_is_scalar(x_163)) { + x_171 = lean_alloc_ctor(0, 2, 0); +} else { + x_171 = x_163; +} +lean_ctor_set(x_171, 0, x_170); +lean_ctor_set(x_171, 1, x_162); +return x_171; +} +} +else +{ +lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; +x_172 = lean_ctor_get(x_148, 0); +lean_inc(x_172); +x_173 = lean_ctor_get(x_148, 1); +lean_inc(x_173); +if (lean_is_exclusive(x_148)) { + lean_ctor_release(x_148, 0); + lean_ctor_release(x_148, 1); + x_174 = x_148; +} else { + lean_dec_ref(x_148); + x_174 = lean_box(0); +} +if (lean_is_scalar(x_174)) { + x_175 = lean_alloc_ctor(1, 2, 0); +} else { + x_175 = x_174; +} +lean_ctor_set(x_175, 0, x_172); +lean_ctor_set(x_175, 1, x_173); +return x_175; +} +} +} +} +} +else +{ +uint8_t x_176; +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_176 = !lean_is_exclusive(x_8); +if (x_176 == 0) +{ +lean_object* x_177; uint8_t x_178; +x_177 = lean_ctor_get(x_8, 0); +lean_dec(x_177); +x_178 = !lean_is_exclusive(x_10); +if (x_178 == 0) +{ +lean_object* x_179; +x_179 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_179, 0, x_8); +lean_ctor_set(x_179, 1, x_9); +return x_179; +} +else +{ +lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; +x_180 = lean_ctor_get(x_10, 0); +x_181 = lean_ctor_get(x_10, 1); +lean_inc(x_181); +lean_inc(x_180); +lean_dec(x_10); +x_182 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_182, 0, x_180); +lean_ctor_set(x_182, 1, x_181); +lean_ctor_set(x_8, 0, x_182); +x_183 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_183, 0, x_8); +lean_ctor_set(x_183, 1, x_9); +return x_183; +} +} +else +{ +lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; +x_184 = lean_ctor_get(x_8, 1); +lean_inc(x_184); +lean_dec(x_8); +x_185 = lean_ctor_get(x_10, 0); +lean_inc(x_185); +x_186 = lean_ctor_get(x_10, 1); +lean_inc(x_186); +if (lean_is_exclusive(x_10)) { + lean_ctor_release(x_10, 0); + lean_ctor_release(x_10, 1); + x_187 = x_10; +} else { + lean_dec_ref(x_10); + x_187 = lean_box(0); +} +if (lean_is_scalar(x_187)) { + x_188 = lean_alloc_ctor(1, 2, 0); +} else { + x_188 = x_187; +} +lean_ctor_set(x_188, 0, x_185); +lean_ctor_set(x_188, 1, x_186); +x_189 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_189, 0, x_188); +lean_ctor_set(x_189, 1, x_184); +x_190 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_190, 0, x_189); +lean_ctor_set(x_190, 1, x_9); +return x_190; +} +} +} +block_269: +{ +lean_object* x_206; +x_206 = lean_ctor_get(x_204, 0); +lean_inc(x_206); +if (lean_obj_tag(x_206) == 0) +{ +uint8_t x_207; +x_207 = !lean_is_exclusive(x_204); +if (x_207 == 0) +{ +lean_object* x_208; uint8_t x_209; +x_208 = lean_ctor_get(x_204, 0); +lean_dec(x_208); +x_209 = !lean_is_exclusive(x_206); +if (x_209 == 0) +{ +lean_object* x_210; lean_object* x_211; lean_object* x_212; +x_210 = lean_ctor_get(x_206, 0); +x_211 = lean_ctor_get(x_206, 1); +x_212 = l_Lean_parseImports_x27(x_210, x_203, x_205); +lean_dec(x_203); +lean_dec(x_210); +if (lean_obj_tag(x_212) == 0) +{ +lean_object* x_213; lean_object* x_214; +x_213 = lean_ctor_get(x_212, 0); +lean_inc(x_213); +x_214 = lean_ctor_get(x_212, 1); +lean_inc(x_214); +lean_dec(x_212); +lean_ctor_set(x_206, 0, x_213); +x_8 = x_204; +x_9 = x_214; +goto block_191; +} +else +{ +lean_object* x_215; lean_object* x_216; lean_object* x_217; uint8_t x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; +x_215 = lean_ctor_get(x_212, 0); +lean_inc(x_215); +x_216 = lean_ctor_get(x_212, 1); +lean_inc(x_216); +lean_dec(x_212); +x_217 = lean_io_error_to_string(x_215); +x_218 = 3; +x_219 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_219, 0, x_217); +lean_ctor_set_uint8(x_219, sizeof(void*)*1, x_218); +x_220 = lean_array_get_size(x_211); +x_221 = lean_array_push(x_211, x_219); +lean_ctor_set_tag(x_206, 1); +lean_ctor_set(x_206, 1, x_221); +lean_ctor_set(x_206, 0, x_220); +x_8 = x_204; +x_9 = x_216; +goto block_191; +} +} +else +{ +lean_object* x_222; lean_object* x_223; lean_object* x_224; +x_222 = lean_ctor_get(x_206, 0); +x_223 = lean_ctor_get(x_206, 1); +lean_inc(x_223); +lean_inc(x_222); +lean_dec(x_206); +x_224 = l_Lean_parseImports_x27(x_222, x_203, x_205); +lean_dec(x_203); +lean_dec(x_222); +if (lean_obj_tag(x_224) == 0) +{ +lean_object* x_225; lean_object* x_226; lean_object* x_227; +x_225 = lean_ctor_get(x_224, 0); +lean_inc(x_225); +x_226 = lean_ctor_get(x_224, 1); +lean_inc(x_226); +lean_dec(x_224); +x_227 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_227, 0, x_225); +lean_ctor_set(x_227, 1, x_223); +lean_ctor_set(x_204, 0, x_227); +x_8 = x_204; +x_9 = x_226; +goto block_191; +} +else +{ +lean_object* x_228; lean_object* x_229; lean_object* x_230; uint8_t x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; +x_228 = lean_ctor_get(x_224, 0); +lean_inc(x_228); +x_229 = lean_ctor_get(x_224, 1); +lean_inc(x_229); +lean_dec(x_224); +x_230 = lean_io_error_to_string(x_228); +x_231 = 3; +x_232 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_232, 0, x_230); +lean_ctor_set_uint8(x_232, sizeof(void*)*1, x_231); +x_233 = lean_array_get_size(x_223); +x_234 = lean_array_push(x_223, x_232); +x_235 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_235, 0, x_233); +lean_ctor_set(x_235, 1, x_234); +lean_ctor_set(x_204, 0, x_235); +x_8 = x_204; +x_9 = x_229; +goto block_191; +} +} +} +else +{ +lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; +x_236 = lean_ctor_get(x_204, 1); +lean_inc(x_236); +lean_dec(x_204); +x_237 = lean_ctor_get(x_206, 0); +lean_inc(x_237); +x_238 = lean_ctor_get(x_206, 1); +lean_inc(x_238); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + x_239 = x_206; +} else { + lean_dec_ref(x_206); + x_239 = lean_box(0); +} +x_240 = l_Lean_parseImports_x27(x_237, x_203, x_205); +lean_dec(x_203); +lean_dec(x_237); +if (lean_obj_tag(x_240) == 0) +{ +lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; +x_241 = lean_ctor_get(x_240, 0); +lean_inc(x_241); +x_242 = lean_ctor_get(x_240, 1); +lean_inc(x_242); +lean_dec(x_240); +if (lean_is_scalar(x_239)) { + x_243 = lean_alloc_ctor(0, 2, 0); +} else { + x_243 = x_239; +} +lean_ctor_set(x_243, 0, x_241); +lean_ctor_set(x_243, 1, x_238); +x_244 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_244, 0, x_243); +lean_ctor_set(x_244, 1, x_236); +x_8 = x_244; +x_9 = x_242; +goto block_191; +} +else +{ +lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; +x_245 = lean_ctor_get(x_240, 0); +lean_inc(x_245); +x_246 = lean_ctor_get(x_240, 1); +lean_inc(x_246); +lean_dec(x_240); +x_247 = lean_io_error_to_string(x_245); +x_248 = 3; +x_249 = lean_alloc_ctor(0, 1, 1); +lean_ctor_set(x_249, 0, x_247); +lean_ctor_set_uint8(x_249, sizeof(void*)*1, x_248); +x_250 = lean_array_get_size(x_238); +x_251 = lean_array_push(x_238, x_249); +if (lean_is_scalar(x_239)) { + x_252 = lean_alloc_ctor(1, 2, 0); +} else { + x_252 = x_239; + lean_ctor_set_tag(x_252, 1); +} +lean_ctor_set(x_252, 0, x_250); +lean_ctor_set(x_252, 1, x_251); +x_253 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_253, 0, x_252); +lean_ctor_set(x_253, 1, x_236); +x_8 = x_253; +x_9 = x_246; +goto block_191; +} +} +} +else +{ +uint8_t x_254; +lean_dec(x_203); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_2); +x_254 = !lean_is_exclusive(x_204); +if (x_254 == 0) +{ +lean_object* x_255; uint8_t x_256; +x_255 = lean_ctor_get(x_204, 0); +lean_dec(x_255); +x_256 = !lean_is_exclusive(x_206); +if (x_256 == 0) +{ +lean_object* x_257; +x_257 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_257, 0, x_204); +lean_ctor_set(x_257, 1, x_205); +return x_257; +} +else +{ +lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; +x_258 = lean_ctor_get(x_206, 0); +x_259 = lean_ctor_get(x_206, 1); +lean_inc(x_259); +lean_inc(x_258); +lean_dec(x_206); +x_260 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_260, 0, x_258); +lean_ctor_set(x_260, 1, x_259); +lean_ctor_set(x_204, 0, x_260); +x_261 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_261, 0, x_204); +lean_ctor_set(x_261, 1, x_205); +return x_261; +} +} +else +{ +lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; +x_262 = lean_ctor_get(x_204, 1); +lean_inc(x_262); +lean_dec(x_204); +x_263 = lean_ctor_get(x_206, 0); +lean_inc(x_263); +x_264 = lean_ctor_get(x_206, 1); +lean_inc(x_264); +if (lean_is_exclusive(x_206)) { + lean_ctor_release(x_206, 0); + lean_ctor_release(x_206, 1); + x_265 = x_206; +} else { + lean_dec_ref(x_206); + x_265 = lean_box(0); +} +if (lean_is_scalar(x_265)) { + x_266 = lean_alloc_ctor(1, 2, 0); +} else { + x_266 = x_265; +} +lean_ctor_set(x_266, 0, x_263); +lean_ctor_set(x_266, 1, x_264); +x_267 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_267, 0, x_266); +lean_ctor_set(x_267, 1, x_262); +x_268 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_268, 0, x_267); +lean_ctor_set(x_268, 1, x_205); +return x_268; } } } @@ -4628,15 +4203,6 @@ lean_dec(x_1); return x_13; } } -LEAN_EXPORT lean_object* l_Lake_Module_recParseImports___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { -_start: -{ -lean_object* x_9; -x_9 = l_Lake_Module_recParseImports___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8); -lean_dec(x_2); -return x_9; -} -} LEAN_EXPORT lean_object* l_Lake_Module_importsFacetConfig___elambda__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: { @@ -4657,7 +4223,7 @@ static lean_object* _init_l_Lake_Module_importsFacetConfig___closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_recParseImports___lambda__1___closed__1; +x_1 = l_Lake_Module_recParseImports___closed__1; x_2 = l_Lake_Module_importsFacetConfig___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -4750,7 +4316,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at_Lake_collectImportsAux__ _start: { lean_object* x_1; -x_1 = lean_mk_string_unchecked(": bad import '", 14, 14); +x_1 = lean_mk_string_unchecked("", 0, 0); return x_1; } } @@ -4758,6 +4324,14 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at_Lake_collectImportsAux__ _start: { lean_object* x_1; +x_1 = lean_mk_string_unchecked(": bad import '", 14, 14); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3() { +_start: +{ +lean_object* x_1; x_1 = lean_mk_string_unchecked("'", 1, 1); return x_1; } @@ -5160,9 +4734,9 @@ x_119 = lean_ctor_get(x_111, 0); x_120 = lean_ctor_get(x_111, 1); x_121 = l_Array_shrink___rarg(x_120, x_119); lean_dec(x_119); -x_122 = l_Lake_Module_recParseImports___closed__2; +x_122 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_123 = lean_string_append(x_122, x_1); -x_124 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_124 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_125 = lean_string_append(x_123, x_124); x_126 = lean_ctor_get(x_105, 1); lean_inc(x_126); @@ -5171,7 +4745,7 @@ x_127 = 1; x_128 = l_Lean_Name_toString(x_126, x_127); x_129 = lean_string_append(x_125, x_128); lean_dec(x_128); -x_130 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_130 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_131 = lean_string_append(x_129, x_130); x_132 = 3; x_133 = lean_alloc_ctor(0, 1, 1); @@ -5207,9 +4781,9 @@ lean_inc(x_139); lean_dec(x_111); x_141 = l_Array_shrink___rarg(x_140, x_139); lean_dec(x_139); -x_142 = l_Lake_Module_recParseImports___closed__2; +x_142 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_143 = lean_string_append(x_142, x_1); -x_144 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_144 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_145 = lean_string_append(x_143, x_144); x_146 = lean_ctor_get(x_105, 1); lean_inc(x_146); @@ -5218,7 +4792,7 @@ x_147 = 1; x_148 = l_Lean_Name_toString(x_146, x_147); x_149 = lean_string_append(x_145, x_148); lean_dec(x_148); -x_150 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_150 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_151 = lean_string_append(x_149, x_150); x_152 = 3; x_153 = lean_alloc_ctor(0, 1, 1); @@ -5266,9 +4840,9 @@ if (lean_is_exclusive(x_111)) { } x_164 = l_Array_shrink___rarg(x_162, x_161); lean_dec(x_161); -x_165 = l_Lake_Module_recParseImports___closed__2; +x_165 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_166 = lean_string_append(x_165, x_1); -x_167 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_167 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_168 = lean_string_append(x_166, x_167); x_169 = lean_ctor_get(x_105, 1); lean_inc(x_169); @@ -5277,7 +4851,7 @@ x_170 = 1; x_171 = l_Lean_Name_toString(x_169, x_170); x_172 = lean_string_append(x_168, x_171); lean_dec(x_171); -x_173 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_173 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_174 = lean_string_append(x_172, x_173); x_175 = 3; x_176 = lean_alloc_ctor(0, 1, 1); @@ -6175,7 +5749,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at_Lake_Module_recComputeTr _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_recParseImports___lambda__1___closed__1; +x_1 = l_Lake_Module_recParseImports___closed__1; x_2 = l_Array_forInUnsafe_loop___at_Lake_Module_recComputeTransImports___spec__1___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -6477,9 +6051,9 @@ x_118 = lean_ctor_get(x_110, 0); x_119 = lean_ctor_get(x_110, 1); x_120 = l_Array_shrink___rarg(x_119, x_118); lean_dec(x_118); -x_121 = l_Lake_Module_recParseImports___closed__2; +x_121 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_122 = lean_string_append(x_121, x_1); -x_123 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_123 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_124 = lean_string_append(x_122, x_123); x_125 = lean_ctor_get(x_104, 1); lean_inc(x_125); @@ -6488,7 +6062,7 @@ x_126 = 1; x_127 = l_Lean_Name_toString(x_125, x_126); x_128 = lean_string_append(x_124, x_127); lean_dec(x_127); -x_129 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_129 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_130 = lean_string_append(x_128, x_129); x_131 = 3; x_132 = lean_alloc_ctor(0, 1, 1); @@ -6524,9 +6098,9 @@ lean_inc(x_138); lean_dec(x_110); x_140 = l_Array_shrink___rarg(x_139, x_138); lean_dec(x_138); -x_141 = l_Lake_Module_recParseImports___closed__2; +x_141 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_142 = lean_string_append(x_141, x_1); -x_143 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_143 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_144 = lean_string_append(x_142, x_143); x_145 = lean_ctor_get(x_104, 1); lean_inc(x_145); @@ -6535,7 +6109,7 @@ x_146 = 1; x_147 = l_Lean_Name_toString(x_145, x_146); x_148 = lean_string_append(x_144, x_147); lean_dec(x_147); -x_149 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_149 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_150 = lean_string_append(x_148, x_149); x_151 = 3; x_152 = lean_alloc_ctor(0, 1, 1); @@ -6583,9 +6157,9 @@ if (lean_is_exclusive(x_110)) { } x_163 = l_Array_shrink___rarg(x_161, x_160); lean_dec(x_160); -x_164 = l_Lake_Module_recParseImports___closed__2; +x_164 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_165 = lean_string_append(x_164, x_1); -x_166 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_166 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_167 = lean_string_append(x_165, x_166); x_168 = lean_ctor_get(x_104, 1); lean_inc(x_168); @@ -6594,7 +6168,7 @@ x_169 = 1; x_170 = l_Lean_Name_toString(x_168, x_169); x_171 = lean_string_append(x_167, x_170); lean_dec(x_170); -x_172 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_172 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_173 = lean_string_append(x_171, x_172); x_174 = 3; x_175 = lean_alloc_ctor(0, 1, 1); @@ -7357,7 +6931,7 @@ x_26 = l_System_FilePath_join(x_23, x_25); x_27 = lean_ctor_get(x_1, 1); lean_inc(x_27); lean_dec(x_1); -x_28 = l_Lake_Module_recParseImports___lambda__1___closed__1; +x_28 = l_Lake_Module_recParseImports___closed__1; x_29 = l_Lean_modToFilePath(x_26, x_27, x_28); lean_dec(x_26); x_30 = lean_array_size(x_16); @@ -7977,7 +7551,7 @@ static lean_object* _init_l_Array_forInUnsafe_loop___at_Lake_computePrecompileIm _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l_Lake_Module_recParseImports___lambda__1___closed__1; +x_1 = l_Lake_Module_recParseImports___closed__1; x_2 = l_Array_forInUnsafe_loop___at_Lake_computePrecompileImportsAux___spec__1___closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; @@ -8722,9 +8296,9 @@ x_118 = lean_ctor_get(x_110, 0); x_119 = lean_ctor_get(x_110, 1); x_120 = l_Array_shrink___rarg(x_119, x_118); lean_dec(x_118); -x_121 = l_Lake_Module_recParseImports___closed__2; +x_121 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_122 = lean_string_append(x_121, x_1); -x_123 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_123 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_124 = lean_string_append(x_122, x_123); x_125 = lean_ctor_get(x_104, 1); lean_inc(x_125); @@ -8733,7 +8307,7 @@ x_126 = 1; x_127 = l_Lean_Name_toString(x_125, x_126); x_128 = lean_string_append(x_124, x_127); lean_dec(x_127); -x_129 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_129 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_130 = lean_string_append(x_128, x_129); x_131 = 3; x_132 = lean_alloc_ctor(0, 1, 1); @@ -8769,9 +8343,9 @@ lean_inc(x_138); lean_dec(x_110); x_140 = l_Array_shrink___rarg(x_139, x_138); lean_dec(x_138); -x_141 = l_Lake_Module_recParseImports___closed__2; +x_141 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_142 = lean_string_append(x_141, x_1); -x_143 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_143 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_144 = lean_string_append(x_142, x_143); x_145 = lean_ctor_get(x_104, 1); lean_inc(x_145); @@ -8780,7 +8354,7 @@ x_146 = 1; x_147 = l_Lean_Name_toString(x_145, x_146); x_148 = lean_string_append(x_144, x_147); lean_dec(x_147); -x_149 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_149 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_150 = lean_string_append(x_148, x_149); x_151 = 3; x_152 = lean_alloc_ctor(0, 1, 1); @@ -8828,9 +8402,9 @@ if (lean_is_exclusive(x_110)) { } x_163 = l_Array_shrink___rarg(x_161, x_160); lean_dec(x_160); -x_164 = l_Lake_Module_recParseImports___closed__2; +x_164 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_165 = lean_string_append(x_164, x_1); -x_166 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_166 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_167 = lean_string_append(x_165, x_166); x_168 = lean_ctor_get(x_104, 1); lean_inc(x_168); @@ -8839,7 +8413,7 @@ x_169 = 1; x_170 = l_Lean_Name_toString(x_168, x_169); x_171 = lean_string_append(x_167, x_170); lean_dec(x_170); -x_172 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_172 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_173 = lean_string_append(x_171, x_172); x_174 = 3; x_175 = lean_alloc_ctor(0, 1, 1); @@ -10690,9 +10264,9 @@ x_118 = lean_ctor_get(x_110, 0); x_119 = lean_ctor_get(x_110, 1); x_120 = l_Array_shrink___rarg(x_119, x_118); lean_dec(x_118); -x_121 = l_Lake_Module_recParseImports___closed__2; +x_121 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_122 = lean_string_append(x_121, x_1); -x_123 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_123 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_124 = lean_string_append(x_122, x_123); x_125 = lean_ctor_get(x_104, 1); lean_inc(x_125); @@ -10701,7 +10275,7 @@ x_126 = 1; x_127 = l_Lean_Name_toString(x_125, x_126); x_128 = lean_string_append(x_124, x_127); lean_dec(x_127); -x_129 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_129 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_130 = lean_string_append(x_128, x_129); x_131 = 3; x_132 = lean_alloc_ctor(0, 1, 1); @@ -10737,9 +10311,9 @@ lean_inc(x_138); lean_dec(x_110); x_140 = l_Array_shrink___rarg(x_139, x_138); lean_dec(x_138); -x_141 = l_Lake_Module_recParseImports___closed__2; +x_141 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_142 = lean_string_append(x_141, x_1); -x_143 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_143 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_144 = lean_string_append(x_142, x_143); x_145 = lean_ctor_get(x_104, 1); lean_inc(x_145); @@ -10748,7 +10322,7 @@ x_146 = 1; x_147 = l_Lean_Name_toString(x_145, x_146); x_148 = lean_string_append(x_144, x_147); lean_dec(x_147); -x_149 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_149 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_150 = lean_string_append(x_148, x_149); x_151 = 3; x_152 = lean_alloc_ctor(0, 1, 1); @@ -10796,9 +10370,9 @@ if (lean_is_exclusive(x_110)) { } x_163 = l_Array_shrink___rarg(x_161, x_160); lean_dec(x_160); -x_164 = l_Lake_Module_recParseImports___closed__2; +x_164 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_165 = lean_string_append(x_164, x_1); -x_166 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; +x_166 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; x_167 = lean_string_append(x_165, x_166); x_168 = lean_ctor_get(x_104, 1); lean_inc(x_168); @@ -10807,7 +10381,7 @@ x_169 = 1; x_170 = l_Lean_Name_toString(x_168, x_169); x_171 = lean_string_append(x_167, x_170); lean_dec(x_170); -x_172 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2; +x_172 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3; x_173 = lean_string_append(x_171, x_172); x_174 = 3; x_175 = lean_alloc_ctor(0, 1, 1); @@ -11570,7 +11144,7 @@ x_26 = l_System_FilePath_join(x_23, x_25); x_27 = lean_ctor_get(x_1, 1); lean_inc(x_27); lean_dec(x_1); -x_28 = l_Lake_Module_recParseImports___lambda__1___closed__1; +x_28 = l_Lake_Module_recParseImports___closed__1; x_29 = l_Lean_modToFilePath(x_26, x_27, x_28); lean_dec(x_26); x_30 = lean_array_size(x_16); @@ -12463,10 +12037,10 @@ x_67 = lean_ctor_get(x_66, 2); lean_inc(x_67); lean_dec(x_66); x_68 = l_System_FilePath_join(x_65, x_67); -x_69 = l_Lake_Module_recParseImports___lambda__1___closed__1; +x_69 = l_Lake_Module_recParseImports___closed__1; x_70 = l_Lean_modToFilePath(x_68, x_20, x_69); lean_dec(x_68); -x_71 = l_Lake_Module_recParseImports___closed__2; +x_71 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_72 = lean_string_append(x_71, x_70); lean_dec(x_70); x_73 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDeps___spec__1___closed__1; @@ -24082,7 +23656,7 @@ x_37 = lean_ctor_get(x_23, 2); lean_inc(x_37); lean_dec(x_23); x_38 = l_System_FilePath_join(x_36, x_37); -x_39 = l_Lake_Module_recParseImports___lambda__1___closed__1; +x_39 = l_Lake_Module_recParseImports___closed__1; lean_inc(x_2); x_40 = l_Lean_modToFilePath(x_38, x_2, x_39); lean_inc(x_40); @@ -24136,7 +23710,7 @@ lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; uint x_53 = l_Lake_Module_recBuildLean___lambda__5___closed__1; x_54 = lean_string_append(x_53, x_50); lean_dec(x_50); -x_55 = l_Lake_Module_recParseImports___closed__2; +x_55 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_56 = lean_string_append(x_54, x_55); x_57 = 1; x_58 = lean_alloc_ctor(0, 1, 1); @@ -24324,7 +23898,7 @@ x_115 = lean_ctor_get(x_100, 2); lean_inc(x_115); lean_dec(x_100); x_116 = l_System_FilePath_join(x_114, x_115); -x_117 = l_Lake_Module_recParseImports___lambda__1___closed__1; +x_117 = l_Lake_Module_recParseImports___closed__1; lean_inc(x_2); x_118 = l_Lean_modToFilePath(x_116, x_2, x_117); lean_inc(x_118); @@ -24378,7 +23952,7 @@ lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; x_131 = l_Lake_Module_recBuildLean___lambda__5___closed__1; x_132 = lean_string_append(x_131, x_128); lean_dec(x_128); -x_133 = l_Lake_Module_recParseImports___closed__2; +x_133 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_134 = lean_string_append(x_132, x_133); x_135 = 1; x_136 = lean_alloc_ctor(0, 1, 1); @@ -25050,7 +24624,7 @@ lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint x_31 = l_Lake_Module_recBuildLean___lambda__5___closed__1; x_32 = lean_string_append(x_31, x_28); lean_dec(x_28); -x_33 = l_Lake_Module_recParseImports___closed__2; +x_33 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_34 = lean_string_append(x_32, x_33); x_35 = 1; x_36 = lean_alloc_ctor(0, 1, 1); @@ -25910,7 +25484,7 @@ lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint x_31 = l_Lake_Module_recBuildLean___lambda__5___closed__1; x_32 = lean_string_append(x_31, x_28); lean_dec(x_28); -x_33 = l_Lake_Module_recParseImports___closed__2; +x_33 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_34 = lean_string_append(x_32, x_33); x_35 = 1; x_36 = lean_alloc_ctor(0, 1, 1); @@ -26726,7 +26300,7 @@ lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint x_29 = l_Lake_Module_recBuildLean___lambda__5___closed__1; x_30 = lean_string_append(x_29, x_26); lean_dec(x_26); -x_31 = l_Lake_Module_recParseImports___closed__2; +x_31 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_32 = lean_string_append(x_30, x_31); x_33 = 1; x_34 = lean_alloc_ctor(0, 1, 1); @@ -27535,7 +27109,7 @@ lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint x_29 = l_Lake_Module_recBuildLean___lambda__5___closed__1; x_30 = lean_string_append(x_29, x_26); lean_dec(x_26); -x_31 = l_Lake_Module_recParseImports___closed__2; +x_31 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_32 = lean_string_append(x_30, x_31); x_33 = 1; x_34 = lean_alloc_ctor(0, 1, 1); @@ -28813,7 +28387,7 @@ lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint x_23 = l_Lake_Module_recBuildLean___lambda__5___closed__1; x_24 = lean_string_append(x_23, x_20); lean_dec(x_20); -x_25 = l_Lake_Module_recParseImports___closed__2; +x_25 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_26 = lean_string_append(x_24, x_25); x_27 = 1; x_28 = lean_alloc_ctor(0, 1, 1); @@ -29246,7 +28820,7 @@ lean_inc(x_12); x_13 = 1; lean_inc(x_12); x_14 = l_Lean_Name_toString(x_12, x_13); -x_15 = l_Lake_Module_recParseImports___closed__2; +x_15 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_16 = lean_string_append(x_15, x_14); lean_dec(x_14); x_17 = l_Lake_Module_recBuildLeanCToOExport___closed__1; @@ -29685,7 +29259,7 @@ lean_inc(x_12); x_13 = 1; lean_inc(x_12); x_14 = l_Lean_Name_toString(x_12, x_13); -x_15 = l_Lake_Module_recParseImports___closed__2; +x_15 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_16 = lean_string_append(x_15, x_14); lean_dec(x_14); x_17 = l_Lake_Module_recBuildLeanCToOExport___closed__1; @@ -30078,7 +29652,7 @@ lean_inc(x_8); x_9 = 1; lean_inc(x_8); x_10 = l_Lean_Name_toString(x_8, x_9); -x_11 = l_Lake_Module_recParseImports___closed__2; +x_11 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_12 = lean_string_append(x_11, x_10); lean_dec(x_10); x_13 = l_Lake_Module_recBuildLeanBcToO___closed__1; @@ -30714,7 +30288,7 @@ x_7 = lean_array_uset(x_3, x_2, x_6); x_8 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDynlib___spec__3___closed__1; x_9 = lean_string_append(x_8, x_5); lean_dec(x_5); -x_10 = l_Lake_Module_recParseImports___closed__2; +x_10 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_11 = lean_string_append(x_9, x_10); x_12 = 1; x_13 = lean_usize_add(x_2, x_12); @@ -30751,7 +30325,7 @@ x_7 = lean_array_uset(x_3, x_2, x_6); x_8 = l_Array_mapMUnsafe_map___at_Lake_Module_recBuildDynlib___spec__4___closed__1; x_9 = lean_string_append(x_8, x_5); lean_dec(x_5); -x_10 = l_Lake_Module_recParseImports___closed__2; +x_10 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_11 = lean_string_append(x_9, x_10); x_12 = 1; x_13 = lean_usize_add(x_2, x_12); @@ -31339,7 +30913,7 @@ lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint x_39 = l_Lake_Module_recBuildLean___lambda__5___closed__1; x_40 = lean_string_append(x_39, x_36); lean_dec(x_36); -x_41 = l_Lake_Module_recParseImports___closed__2; +x_41 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_42 = lean_string_append(x_40, x_41); x_43 = 1; x_44 = lean_alloc_ctor(0, 1, 1); @@ -32803,7 +32377,7 @@ lean_inc(x_8); x_9 = 1; lean_inc(x_8); x_10 = l_Lean_Name_toString(x_8, x_9); -x_11 = l_Lake_Module_recParseImports___closed__2; +x_11 = l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1; x_12 = lean_string_append(x_11, x_10); lean_dec(x_10); x_13 = l_Lake_Module_recBuildDynlib___closed__1; @@ -33243,12 +32817,8 @@ l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12___closed__ lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12___closed__2); l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12___closed__3 = _init_l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12___closed__3(); lean_mark_persistent(l_Array_foldlMUnsafe_fold___at_Lake_Module_recParseImports___spec__12___closed__3); -l_Lake_Module_recParseImports___lambda__1___closed__1 = _init_l_Lake_Module_recParseImports___lambda__1___closed__1(); -lean_mark_persistent(l_Lake_Module_recParseImports___lambda__1___closed__1); l_Lake_Module_recParseImports___closed__1 = _init_l_Lake_Module_recParseImports___closed__1(); lean_mark_persistent(l_Lake_Module_recParseImports___closed__1); -l_Lake_Module_recParseImports___closed__2 = _init_l_Lake_Module_recParseImports___closed__2(); -lean_mark_persistent(l_Lake_Module_recParseImports___closed__2); l_Lake_Module_importsFacetConfig___closed__1 = _init_l_Lake_Module_importsFacetConfig___closed__1(); lean_mark_persistent(l_Lake_Module_importsFacetConfig___closed__1); l_Lake_Module_importsFacetConfig___closed__2 = _init_l_Lake_Module_importsFacetConfig___closed__2(); @@ -33263,6 +32833,8 @@ l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1 = _in lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__1); l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__2); +l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lake_collectImportsAux___spec__3___closed__3); l_Lake_collectImportsAux___closed__1 = _init_l_Lake_collectImportsAux___closed__1(); lean_mark_persistent(l_Lake_collectImportsAux___closed__1); l_Array_forInUnsafe_loop___at_Lake_Module_recComputeTransImports___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lake_Module_recComputeTransImports___spec__1___closed__1(); diff --git a/stage0/stdlib/Lean/Compiler/CSimpAttr.c b/stage0/stdlib/Lean/Compiler/CSimpAttr.c index cf3609c7e5..ce238e4d67 100644 --- a/stage0/stdlib/Lean/Compiler/CSimpAttr.c +++ b/stage0/stdlib/Lean/Compiler/CSimpAttr.c @@ -34,6 +34,7 @@ uint8_t lean_usize_dec_le(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr___hyg_474____lambda__1(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Compiler_CSimp_add___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr___hyg_138_(lean_object*); +lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lean_Compiler_hasCSimpAttribute___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr___hyg_138____closed__4; size_t lean_uint64_to_usize(uint64_t); @@ -109,7 +110,6 @@ size_t lean_hashmap_mk_idx(lean_object*, uint64_t); LEAN_EXPORT uint8_t l_Lean_Compiler_hasCSimpAttribute(lean_object*, lean_object*); lean_object* l_Lean_MessageData_ofExpr(lean_object*); static lean_object* l_Lean_ScopedEnvExtension_add___at_Lean_Compiler_CSimp_add___spec__2___closed__1; -lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__4(lean_object*); static lean_object* l_Lean_Compiler_CSimp_initFn____x40_Lean_Compiler_CSimpAttr___hyg_138____closed__5; lean_object* l_Lean_Expr_constLevels_x21(lean_object*); lean_object* l_Lean_throwError___at_Lean_AttributeImpl_erase___default___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); @@ -350,7 +350,7 @@ lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_3 = lean_ctor_get(x_1, 0); x_4 = lean_ctor_get(x_1, 1); x_5 = l_Lean_SMap_switch___at_Lean_Compiler_CSimp_State_switch___spec__1(x_3); -x_6 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__4(x_4); +x_6 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__4(x_4); lean_ctor_set(x_1, 1, x_6); lean_ctor_set(x_1, 0, x_5); return x_1; @@ -364,7 +364,7 @@ lean_inc(x_8); lean_inc(x_7); lean_dec(x_1); x_9 = l_Lean_SMap_switch___at_Lean_Compiler_CSimp_State_switch___spec__1(x_7); -x_10 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__4(x_8); +x_10 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__4(x_8); x_11 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_11, 0, x_9); lean_ctor_set(x_11, 1, x_10); diff --git a/stage0/stdlib/Lean/Elab/Frontend.c b/stage0/stdlib/Lean/Elab/Frontend.c index 3043100a2e..2e1823b7b7 100644 --- a/stage0/stdlib/Lean/Elab/Frontend.c +++ b/stage0/stdlib/Lean/Elab/Frontend.c @@ -14,7 +14,9 @@ extern "C" { #endif lean_object* lean_profileit(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__4; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommands___boxed(lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__11; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setMessages___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Firefox_Profile_export(lean_object*, double, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Json_compress(lean_object*); @@ -29,9 +31,12 @@ LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand___boxed(lean_object lean_object* l_Lean_PersistentArray_toArray___rarg(lean_object*); lean_object* l_Lean_MessageData_toString(lean_object*, lean_object*); double lean_float_div(double, double); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__1; static lean_object* l_Lean_Elab_process___closed__1; +lean_object* l_String_toNat_x3f(lean_object*); lean_object* l_Lean_Elab_Command_elabCommandTopLevel(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__3; static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__1; lean_object* lean_array_push(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getParserState___rarg(lean_object*, lean_object*); @@ -40,16 +45,20 @@ uint8_t lean_usize_dec_eq(size_t, size_t); lean_object* l_Lean_Elab_Command_mkState(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setCommandState___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommands(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_updateCmdPos___rarg___boxed(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg___closed__1; lean_object* l_Lean_Elab_processHeader(lean_object*, lean_object*, lean_object*, lean_object*, uint32_t, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_updateCmdPos___boxed(lean_object*); extern lean_object* l_Lean_maxRecDepth; +lean_object* l_Lean_KVMap_insertCore(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_head_x21___rarg(lean_object*, lean_object*); +uint8_t lean_string_dec_eq(lean_object*, lean_object*); lean_object* l_Lean_Language_SnapshotTree_getAll(lean_object*); lean_object* l_Lean_Exception_toMessageData(lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__9; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_runCommandElabM(lean_object*); static double l_Lean_Elab_runFrontend___closed__1; static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__6; @@ -65,37 +74,51 @@ lean_object* lean_st_ref_take(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Language_Lean_processCommands(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___closed__3; +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__5; lean_object* l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__2(size_t, size_t, lean_object*); lean_object* l_Lean_Language_reportMessages(lean_object*, lean_object*, uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__10; static lean_object* l_Lean_Elab_process___closed__2; lean_object* l_Lean_MessageData_ofFormat(lean_object*); lean_object* l_Lean_PersistentArray_append___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_filterMapM___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__3___boxed(lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_Name_replacePrefix(lean_object*, lean_object*, lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setParserState___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Parser_mkInputContext(lean_object*, lean_object*, uint8_t); lean_object* lean_st_mk_ref(lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__7; +lean_object* l_Lean_getOptionDecls(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5(lean_object*, size_t, size_t, lean_object*); +lean_object* l_Lean_Name_append(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Frontend_State_commands___default___closed__1; lean_object* l_Array_toPArray_x27___rarg(lean_object*); +lean_object* l_Lean_Name_getRoot(lean_object*); lean_object* lean_io_mono_nanos_now(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_environment_set_main_module(lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__2; static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__3; +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Lean_Util_Profiler_0__Lean_Firefox_toJsonProfile____x40_Lean_Util_Profiler___hyg_3604_(lean_object*); lean_object* l_Lean_Server_ModuleRefs_toLspModuleRefs(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__1; +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__1; double l_Float_ofScientific(lean_object*, uint8_t, lean_object*); static lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg___closed__2; LEAN_EXPORT lean_object* lean_run_frontend(lean_object*, lean_object*, lean_object*, lean_object*, uint32_t, lean_object*, uint8_t, lean_object*); lean_object* l___private_Lean_Server_References_0__Lean_Server_toJsonIlean____x40_Lean_Server_References___hyg_1472_(lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setMessages(lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_Lean_KVMap_erase(lean_object*, lean_object*); extern lean_object* l_Lean_NameSet_empty; +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__3(lean_object*, lean_object*, lean_object*, uint8_t, double, double, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getCommandState(lean_object*); @@ -103,13 +126,16 @@ static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__3; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getInputContext(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_IO_processCommands(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__7; lean_object* l_Lean_Language_Lean_instToSnapshotTreeCommandParsedSnapshot_go(lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__12; LEAN_EXPORT lean_object* l_Lean_Elab_IO_processCommandsIncrementally_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Option_get_x3f___at___private_Lean_Elab_Command_0__Lean_Elab_Command_addTraceAsMessages___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___closed__2; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_State_commands___default; +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_processCommand(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__4(lean_object*, size_t, size_t, lean_object*); extern lean_object* l_Lean_firstFrontendMacroScope; @@ -124,6 +150,7 @@ lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); lean_object* l_Lean_Language_SnapshotTask_get___rarg(lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); +static lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__8; LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getParserState___rarg___boxed(lean_object*, lean_object*); lean_object* l_IO_FS_writeFile(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__5; @@ -135,6 +162,7 @@ uint8_t lean_nat_dec_le(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_setParserState(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Elab_IO_processCommandsIncrementally_go___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); +lean_object* l_Lean_RBNode_find___at_Lean_NameMap_find_x3f___spec__1___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_Frontend_processCommand___closed__1; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_getParserState___boxed(lean_object*); @@ -143,6 +171,7 @@ lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_runCommandElabM___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Elab_runFrontend___lambda__2___closed__4; +LEAN_EXPORT lean_object* l_Lean_Elab_reparseOptions(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Elab_Frontend_updateCmdPos(lean_object*); static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__4; static lean_object* l_Lean_Elab_Frontend_elabCommandAtFrontend___closed__2; @@ -3256,6 +3285,804 @@ return x_49; } } } +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid -D parameter, unknown configuration option '", 52, 52); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("'\n \nIf the option is defined in this library, use '-D", 62, 62); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' to set it conditionally", 25, 25); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__4() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("true", 4, 4); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__5() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("false", 5, 5); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__6() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid -D parameter, invalid configuration option '", 52, 52); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__7() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' value, it must be true/false", 30, 30); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__8() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 0; +x_2 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__9() { +_start: +{ +uint8_t x_1; lean_object* x_2; +x_1 = 1; +x_2 = lean_alloc_ctor(1, 0, 1); +lean_ctor_set_uint8(x_2, 0, x_1); +return x_2; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__10() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("invalid -D parameter, configuration option '", 44, 44); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__11() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' cannot be set in the command line, use set_option command", 59, 59); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__12() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' value, it must be a natural number", 36, 36); +return x_1; +} +} +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +lean_object* x_9; lean_object* x_10; lean_object* x_11; +x_9 = lean_box(0); +x_10 = l_Lean_Name_replacePrefix(x_1, x_2, x_9); +x_11 = l_Lean_RBNode_find___at_Lean_NameMap_find_x3f___spec__1___rarg(x_3, x_10); +if (lean_obj_tag(x_11) == 0) +{ +lean_dec(x_5); +if (x_4 == 0) +{ +uint8_t 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; lean_object* x_22; lean_object* x_23; lean_object* x_24; +lean_dec(x_6); +x_12 = 1; +lean_inc(x_10); +x_13 = l_Lean_Name_toString(x_10, x_12); +x_14 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__1; +x_15 = lean_string_append(x_14, x_13); +lean_dec(x_13); +x_16 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__2; +x_17 = lean_string_append(x_15, x_16); +x_18 = l_Lean_Name_append(x_2, x_10); +x_19 = l_Lean_Name_toString(x_18, x_12); +x_20 = lean_string_append(x_17, x_19); +lean_dec(x_19); +x_21 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__3; +x_22 = lean_string_append(x_20, x_21); +x_23 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_23, 0, x_22); +x_24 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_24, 0, x_23); +lean_ctor_set(x_24, 1, x_8); +return x_24; +} +else +{ +lean_object* x_25; lean_object* x_26; +lean_dec(x_10); +lean_dec(x_2); +x_25 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_25, 0, x_6); +x_26 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_26, 0, x_25); +lean_ctor_set(x_26, 1, x_8); +return x_26; +} +} +else +{ +uint8_t x_27; +lean_dec(x_2); +x_27 = !lean_is_exclusive(x_11); +if (x_27 == 0) +{ +lean_object* x_28; lean_object* x_29; +x_28 = lean_ctor_get(x_11, 0); +x_29 = lean_ctor_get(x_28, 1); +lean_inc(x_29); +lean_dec(x_28); +switch (lean_obj_tag(x_29)) { +case 0: +{ +uint8_t x_30; +x_30 = !lean_is_exclusive(x_29); +if (x_30 == 0) +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_31 = lean_ctor_get(x_29, 0); +lean_dec(x_31); +lean_ctor_set(x_29, 0, x_5); +x_32 = l_Lean_KVMap_insertCore(x_6, x_10, x_29); +lean_ctor_set(x_11, 0, x_32); +x_33 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_33, 0, x_11); +lean_ctor_set(x_33, 1, x_8); +return x_33; +} +else +{ +lean_object* x_34; lean_object* x_35; lean_object* x_36; +lean_dec(x_29); +x_34 = lean_alloc_ctor(0, 1, 0); +lean_ctor_set(x_34, 0, x_5); +x_35 = l_Lean_KVMap_insertCore(x_6, x_10, x_34); +lean_ctor_set(x_11, 0, x_35); +x_36 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_36, 0, x_11); +lean_ctor_set(x_36, 1, x_8); +return x_36; +} +} +case 1: +{ +lean_object* x_37; uint8_t x_38; +lean_dec(x_29); +x_37 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__4; +x_38 = lean_string_dec_eq(x_5, x_37); +if (x_38 == 0) +{ +lean_object* x_39; uint8_t x_40; +x_39 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__5; +x_40 = lean_string_dec_eq(x_5, x_39); +if (x_40 == 0) +{ +lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; +lean_dec(x_10); +lean_dec(x_6); +x_41 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__6; +x_42 = lean_string_append(x_41, x_5); +lean_dec(x_5); +x_43 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__7; +x_44 = lean_string_append(x_42, x_43); +lean_ctor_set_tag(x_11, 18); +lean_ctor_set(x_11, 0, x_44); +x_45 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_45, 0, x_11); +lean_ctor_set(x_45, 1, x_8); +return x_45; +} +else +{ +lean_object* x_46; lean_object* x_47; lean_object* x_48; +lean_dec(x_5); +x_46 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__8; +x_47 = l_Lean_KVMap_insertCore(x_6, x_10, x_46); +lean_ctor_set(x_11, 0, x_47); +x_48 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_48, 0, x_11); +lean_ctor_set(x_48, 1, x_8); +return x_48; +} +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +lean_dec(x_5); +x_49 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__9; +x_50 = l_Lean_KVMap_insertCore(x_6, x_10, x_49); +lean_ctor_set(x_11, 0, x_50); +x_51 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_51, 0, x_11); +lean_ctor_set(x_51, 1, x_8); +return x_51; +} +} +case 3: +{ +uint8_t x_52; +x_52 = !lean_is_exclusive(x_29); +if (x_52 == 0) +{ +lean_object* x_53; lean_object* x_54; +x_53 = lean_ctor_get(x_29, 0); +lean_dec(x_53); +x_54 = l_String_toNat_x3f(x_5); +if (lean_obj_tag(x_54) == 0) +{ +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; +lean_free_object(x_29); +lean_dec(x_10); +lean_dec(x_6); +x_55 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__6; +x_56 = lean_string_append(x_55, x_5); +lean_dec(x_5); +x_57 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__12; +x_58 = lean_string_append(x_56, x_57); +lean_ctor_set_tag(x_11, 18); +lean_ctor_set(x_11, 0, x_58); +x_59 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_59, 0, x_11); +lean_ctor_set(x_59, 1, x_8); +return x_59; +} +else +{ +uint8_t x_60; +lean_free_object(x_11); +lean_dec(x_5); +x_60 = !lean_is_exclusive(x_54); +if (x_60 == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; +x_61 = lean_ctor_get(x_54, 0); +lean_ctor_set(x_29, 0, x_61); +x_62 = l_Lean_KVMap_insertCore(x_6, x_10, x_29); +lean_ctor_set(x_54, 0, x_62); +x_63 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_63, 0, x_54); +lean_ctor_set(x_63, 1, x_8); +return x_63; +} +else +{ +lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; +x_64 = lean_ctor_get(x_54, 0); +lean_inc(x_64); +lean_dec(x_54); +lean_ctor_set(x_29, 0, x_64); +x_65 = l_Lean_KVMap_insertCore(x_6, x_10, x_29); +x_66 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_66, 0, x_65); +x_67 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_67, 0, x_66); +lean_ctor_set(x_67, 1, x_8); +return x_67; +} +} +} +else +{ +lean_object* x_68; +lean_dec(x_29); +x_68 = l_String_toNat_x3f(x_5); +if (lean_obj_tag(x_68) == 0) +{ +lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; +lean_dec(x_10); +lean_dec(x_6); +x_69 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__6; +x_70 = lean_string_append(x_69, x_5); +lean_dec(x_5); +x_71 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__12; +x_72 = lean_string_append(x_70, x_71); +lean_ctor_set_tag(x_11, 18); +lean_ctor_set(x_11, 0, x_72); +x_73 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_73, 0, x_11); +lean_ctor_set(x_73, 1, x_8); +return x_73; +} +else +{ +lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; +lean_free_object(x_11); +lean_dec(x_5); +x_74 = lean_ctor_get(x_68, 0); +lean_inc(x_74); +if (lean_is_exclusive(x_68)) { + lean_ctor_release(x_68, 0); + x_75 = x_68; +} else { + lean_dec_ref(x_68); + x_75 = lean_box(0); +} +x_76 = lean_alloc_ctor(3, 1, 0); +lean_ctor_set(x_76, 0, x_74); +x_77 = l_Lean_KVMap_insertCore(x_6, x_10, x_76); +if (lean_is_scalar(x_75)) { + x_78 = lean_alloc_ctor(1, 1, 0); +} else { + x_78 = x_75; +} +lean_ctor_set(x_78, 0, x_77); +x_79 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_79, 0, x_78); +lean_ctor_set(x_79, 1, x_8); +return x_79; +} +} +} +default: +{ +uint8_t x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; +lean_dec(x_29); +lean_dec(x_6); +lean_dec(x_5); +x_80 = 1; +x_81 = l_Lean_Name_toString(x_10, x_80); +x_82 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__10; +x_83 = lean_string_append(x_82, x_81); +lean_dec(x_81); +x_84 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__11; +x_85 = lean_string_append(x_83, x_84); +lean_ctor_set_tag(x_11, 18); +lean_ctor_set(x_11, 0, x_85); +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_11); +lean_ctor_set(x_86, 1, x_8); +return x_86; +} +} +} +else +{ +lean_object* x_87; lean_object* x_88; +x_87 = lean_ctor_get(x_11, 0); +lean_inc(x_87); +lean_dec(x_11); +x_88 = lean_ctor_get(x_87, 1); +lean_inc(x_88); +lean_dec(x_87); +switch (lean_obj_tag(x_88)) { +case 0: +{ +lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + x_89 = x_88; +} else { + lean_dec_ref(x_88); + x_89 = lean_box(0); +} +if (lean_is_scalar(x_89)) { + x_90 = lean_alloc_ctor(0, 1, 0); +} else { + x_90 = x_89; +} +lean_ctor_set(x_90, 0, x_5); +x_91 = l_Lean_KVMap_insertCore(x_6, x_10, x_90); +x_92 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_92, 0, x_91); +x_93 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_93, 0, x_92); +lean_ctor_set(x_93, 1, x_8); +return x_93; +} +case 1: +{ +lean_object* x_94; uint8_t x_95; +lean_dec(x_88); +x_94 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__4; +x_95 = lean_string_dec_eq(x_5, x_94); +if (x_95 == 0) +{ +lean_object* x_96; uint8_t x_97; +x_96 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__5; +x_97 = lean_string_dec_eq(x_5, x_96); +if (x_97 == 0) +{ +lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; +lean_dec(x_10); +lean_dec(x_6); +x_98 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__6; +x_99 = lean_string_append(x_98, x_5); +lean_dec(x_5); +x_100 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__7; +x_101 = lean_string_append(x_99, x_100); +x_102 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_102, 0, x_101); +x_103 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_103, 0, x_102); +lean_ctor_set(x_103, 1, x_8); +return x_103; +} +else +{ +lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; +lean_dec(x_5); +x_104 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__8; +x_105 = l_Lean_KVMap_insertCore(x_6, x_10, x_104); +x_106 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_106, 0, x_105); +x_107 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_107, 0, x_106); +lean_ctor_set(x_107, 1, x_8); +return x_107; +} +} +else +{ +lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; +lean_dec(x_5); +x_108 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__9; +x_109 = l_Lean_KVMap_insertCore(x_6, x_10, x_108); +x_110 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_110, 0, x_109); +x_111 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_111, 0, x_110); +lean_ctor_set(x_111, 1, x_8); +return x_111; +} +} +case 3: +{ +lean_object* x_112; lean_object* x_113; +if (lean_is_exclusive(x_88)) { + lean_ctor_release(x_88, 0); + x_112 = x_88; +} else { + lean_dec_ref(x_88); + x_112 = lean_box(0); +} +x_113 = l_String_toNat_x3f(x_5); +if (lean_obj_tag(x_113) == 0) +{ +lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; +lean_dec(x_112); +lean_dec(x_10); +lean_dec(x_6); +x_114 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__6; +x_115 = lean_string_append(x_114, x_5); +lean_dec(x_5); +x_116 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__12; +x_117 = lean_string_append(x_115, x_116); +x_118 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_118, 0, x_117); +x_119 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_119, 0, x_118); +lean_ctor_set(x_119, 1, x_8); +return x_119; +} +else +{ +lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; +lean_dec(x_5); +x_120 = lean_ctor_get(x_113, 0); +lean_inc(x_120); +if (lean_is_exclusive(x_113)) { + lean_ctor_release(x_113, 0); + x_121 = x_113; +} else { + lean_dec_ref(x_113); + x_121 = lean_box(0); +} +if (lean_is_scalar(x_112)) { + x_122 = lean_alloc_ctor(3, 1, 0); +} else { + x_122 = x_112; +} +lean_ctor_set(x_122, 0, x_120); +x_123 = l_Lean_KVMap_insertCore(x_6, x_10, x_122); +if (lean_is_scalar(x_121)) { + x_124 = lean_alloc_ctor(1, 1, 0); +} else { + x_124 = x_121; +} +lean_ctor_set(x_124, 0, x_123); +x_125 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_125, 0, x_124); +lean_ctor_set(x_125, 1, x_8); +return x_125; +} +} +default: +{ +uint8_t x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; +lean_dec(x_88); +lean_dec(x_6); +lean_dec(x_5); +x_126 = 1; +x_127 = l_Lean_Name_toString(x_10, x_126); +x_128 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__10; +x_129 = lean_string_append(x_128, x_127); +lean_dec(x_127); +x_130 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__11; +x_131 = lean_string_append(x_129, x_130); +x_132 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_132, 0, x_131); +x_133 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_133, 0, x_132); +lean_ctor_set(x_133, 1, x_8); +return x_133; +} +} +} +} +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("weak", 4, 4); +return x_1; +} +} +static lean_object* _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__2() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_box(0); +x_2 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__1; +x_3 = l_Lean_Name_str___override(x_1, x_2); +return x_3; +} +} +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +if (lean_obj_tag(x_2) == 0) +{ +lean_object* x_5; +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; +} +else +{ +lean_object* x_6; lean_object* x_7; +x_6 = lean_ctor_get(x_2, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_6, 1); +lean_inc(x_7); +if (lean_obj_tag(x_7) == 0) +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; +x_8 = lean_ctor_get(x_2, 1); +lean_inc(x_8); +lean_dec(x_2); +x_9 = lean_ctor_get(x_6, 0); +lean_inc(x_9); +lean_dec(x_6); +x_10 = lean_ctor_get(x_7, 0); +lean_inc(x_10); +lean_dec(x_7); +x_11 = l_Lean_Name_getRoot(x_9); +x_12 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__2; +x_13 = lean_name_eq(x_11, x_12); +lean_dec(x_11); +if (x_13 == 0) +{ +lean_object* x_14; lean_object* x_15; +x_14 = lean_box(0); +x_15 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1(x_9, x_12, x_1, x_13, x_10, x_3, x_14, x_4); +if (lean_obj_tag(x_15) == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_ctor_get(x_15, 1); +lean_inc(x_17); +lean_dec(x_15); +x_18 = lean_ctor_get(x_16, 0); +lean_inc(x_18); +lean_dec(x_16); +x_2 = x_8; +x_3 = x_18; +x_4 = x_17; +goto _start; +} +else +{ +uint8_t x_20; +lean_dec(x_8); +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) +{ +return x_15; +} +else +{ +lean_object* x_21; lean_object* x_22; lean_object* x_23; +x_21 = lean_ctor_get(x_15, 0); +x_22 = lean_ctor_get(x_15, 1); +lean_inc(x_22); +lean_inc(x_21); +lean_dec(x_15); +x_23 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_23, 0, x_21); +lean_ctor_set(x_23, 1, x_22); +return x_23; +} +} +} +else +{ +lean_object* x_24; lean_object* x_25; lean_object* x_26; +lean_inc(x_9); +x_24 = l_Lean_KVMap_erase(x_3, x_9); +x_25 = lean_box(0); +x_26 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1(x_9, x_12, x_1, x_13, x_10, x_24, x_25, x_4); +if (lean_obj_tag(x_26) == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +x_27 = lean_ctor_get(x_26, 0); +lean_inc(x_27); +x_28 = lean_ctor_get(x_26, 1); +lean_inc(x_28); +lean_dec(x_26); +x_29 = lean_ctor_get(x_27, 0); +lean_inc(x_29); +lean_dec(x_27); +x_2 = x_8; +x_3 = x_29; +x_4 = x_28; +goto _start; +} +else +{ +uint8_t x_31; +lean_dec(x_8); +x_31 = !lean_is_exclusive(x_26); +if (x_31 == 0) +{ +return x_26; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; +x_32 = lean_ctor_get(x_26, 0); +x_33 = lean_ctor_get(x_26, 1); +lean_inc(x_33); +lean_inc(x_32); +lean_dec(x_26); +x_34 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_34, 0, x_32); +lean_ctor_set(x_34, 1, x_33); +return x_34; +} +} +} +} +else +{ +lean_object* x_35; +lean_dec(x_7); +lean_dec(x_6); +x_35 = lean_ctor_get(x_2, 1); +lean_inc(x_35); +lean_dec(x_2); +x_2 = x_35; +goto _start; +} +} +} +} +LEAN_EXPORT lean_object* l_Lean_Elab_reparseOptions(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; +x_3 = l_Lean_getOptionDecls(x_2); +x_4 = lean_ctor_get(x_3, 0); +lean_inc(x_4); +x_5 = lean_ctor_get(x_3, 1); +lean_inc(x_5); +lean_dec(x_3); +lean_inc(x_1); +x_6 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1(x_4, x_1, x_1, x_5); +lean_dec(x_4); +if (lean_obj_tag(x_6) == 0) +{ +uint8_t x_7; +x_7 = !lean_is_exclusive(x_6); +if (x_7 == 0) +{ +return x_6; +} +else +{ +lean_object* x_8; lean_object* x_9; lean_object* x_10; +x_8 = lean_ctor_get(x_6, 0); +x_9 = lean_ctor_get(x_6, 1); +lean_inc(x_9); +lean_inc(x_8); +lean_dec(x_6); +x_10 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_10, 0, x_8); +lean_ctor_set(x_10, 1, x_9); +return x_10; +} +} +else +{ +uint8_t x_11; +x_11 = !lean_is_exclusive(x_6); +if (x_11 == 0) +{ +return x_6; +} +else +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; +x_12 = lean_ctor_get(x_6, 0); +x_13 = lean_ctor_get(x_6, 1); +lean_inc(x_13); +lean_inc(x_12); +lean_dec(x_6); +x_14 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_14, 0, x_12); +lean_ctor_set(x_14, 1, x_13); +return x_14; +} +} +} +} +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) { +_start: +{ +uint8_t x_9; lean_object* x_10; +x_9 = lean_unbox(x_4); +lean_dec(x_4); +x_10 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1(x_1, x_2, x_3, x_9, x_5, x_6, x_7, x_8); +lean_dec(x_7); +lean_dec(x_3); +return x_10; +} +} +LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: +{ +lean_object* x_5; +x_5 = l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; +} +} LEAN_EXPORT lean_object* l_Lean_Elab_runFrontend___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { @@ -3728,7 +4555,7 @@ x_26 = l_Lean_Elab_processHeader(x_23, x_2, x_25, x_18, x_5, x_17, x_22); lean_dec(x_23); if (lean_obj_tag(x_26) == 0) { -lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; double x_36; double x_37; +lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; x_27 = lean_ctor_get(x_26, 0); lean_inc(x_27); x_28 = lean_ctor_get(x_26, 1); @@ -3739,190 +4566,228 @@ lean_inc(x_29); x_30 = lean_ctor_get(x_27, 1); lean_inc(x_30); lean_dec(x_27); +x_31 = l_Lean_Elab_reparseOptions(x_2, x_28); +if (lean_obj_tag(x_31) == 0) +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; double x_39; double x_40; +x_32 = lean_ctor_get(x_31, 0); +lean_inc(x_32); +x_33 = lean_ctor_get(x_31, 1); +lean_inc(x_33); +lean_dec(x_31); lean_inc(x_4); -x_31 = lean_environment_set_main_module(x_29, x_4); -lean_inc(x_2); +x_34 = lean_environment_set_main_module(x_29, x_4); +lean_inc(x_32); lean_inc(x_30); -lean_inc(x_31); -x_32 = l_Lean_Elab_Command_mkState(x_31, x_30, x_2); -x_33 = lean_io_mono_nanos_now(x_28); -x_34 = lean_ctor_get(x_33, 0); lean_inc(x_34); -x_35 = lean_ctor_get(x_33, 1); -lean_inc(x_35); -lean_dec(x_33); -x_36 = l_Float_ofScientific(x_34, x_12, x_13); -lean_dec(x_34); -x_37 = lean_float_div(x_36, x_15); +x_35 = l_Lean_Elab_Command_mkState(x_34, x_30, x_32); +x_36 = lean_io_mono_nanos_now(x_33); +x_37 = lean_ctor_get(x_36, 0); +lean_inc(x_37); +x_38 = lean_ctor_get(x_36, 1); +lean_inc(x_38); +lean_dec(x_36); +x_39 = l_Float_ofScientific(x_37, x_12, x_13); +lean_dec(x_37); +x_40 = lean_float_div(x_39, x_15); if (lean_obj_tag(x_6) == 0) { -lean_object* x_38; lean_object* x_39; -lean_dec(x_31); +lean_object* x_41; lean_object* x_42; +lean_dec(x_34); lean_dec(x_30); -x_38 = lean_box(0); -x_39 = l_Lean_Elab_runFrontend___lambda__3(x_18, x_24, x_2, x_7, x_16, x_37, x_4, x_6, x_32, x_38, x_35); -return x_39; +x_41 = lean_box(0); +x_42 = l_Lean_Elab_runFrontend___lambda__3(x_18, x_24, x_32, x_7, x_16, x_40, x_4, x_6, x_35, x_41, x_38); +return x_42; } else { -uint8_t x_40; -x_40 = !lean_is_exclusive(x_32); -if (x_40 == 0) +uint8_t x_43; +x_43 = !lean_is_exclusive(x_35); +if (x_43 == 0) { -lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; uint8_t x_48; -x_41 = lean_ctor_get(x_32, 6); -x_42 = lean_ctor_get(x_32, 4); -lean_dec(x_42); -x_43 = lean_ctor_get(x_32, 3); -lean_dec(x_43); -x_44 = lean_ctor_get(x_32, 1); -lean_dec(x_44); -x_45 = lean_ctor_get(x_32, 0); +lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; uint8_t x_51; +x_44 = lean_ctor_get(x_35, 6); +x_45 = lean_ctor_get(x_35, 4); lean_dec(x_45); -x_46 = l_Lean_Elab_runFrontend___closed__3; -x_47 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_2, x_46); -x_48 = !lean_is_exclusive(x_41); -if (x_48 == 0) +x_46 = lean_ctor_get(x_35, 3); +lean_dec(x_46); +x_47 = lean_ctor_get(x_35, 1); +lean_dec(x_47); +x_48 = lean_ctor_get(x_35, 0); +lean_dec(x_48); +x_49 = l_Lean_Elab_runFrontend___closed__3; +x_50 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_32, x_49); +x_51 = !lean_is_exclusive(x_44); +if (x_51 == 0) { -lean_object* x_49; lean_object* x_50; lean_object* x_51; -lean_ctor_set_uint8(x_41, sizeof(void*)*2, x_17); -x_49 = l_Lean_Elab_runFrontend___closed__2; -lean_ctor_set(x_32, 4, x_47); -lean_ctor_set(x_32, 3, x_49); -lean_ctor_set(x_32, 1, x_30); -lean_ctor_set(x_32, 0, x_31); -x_50 = lean_box(0); -x_51 = l_Lean_Elab_runFrontend___lambda__3(x_18, x_24, x_2, x_7, x_16, x_37, x_4, x_6, x_32, x_50, x_35); +lean_object* x_52; lean_object* x_53; lean_object* x_54; +lean_ctor_set_uint8(x_44, sizeof(void*)*2, x_17); +x_52 = l_Lean_Elab_runFrontend___closed__2; +lean_ctor_set(x_35, 4, x_50); +lean_ctor_set(x_35, 3, x_52); +lean_ctor_set(x_35, 1, x_30); +lean_ctor_set(x_35, 0, x_34); +x_53 = lean_box(0); +x_54 = l_Lean_Elab_runFrontend___lambda__3(x_18, x_24, x_32, x_7, x_16, x_40, x_4, x_6, x_35, x_53, x_38); lean_dec(x_6); -return x_51; +return x_54; } else { -lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; -x_52 = lean_ctor_get(x_41, 0); -x_53 = lean_ctor_get(x_41, 1); -lean_inc(x_53); -lean_inc(x_52); -lean_dec(x_41); -x_54 = lean_alloc_ctor(0, 2, 1); -lean_ctor_set(x_54, 0, x_52); -lean_ctor_set(x_54, 1, x_53); -lean_ctor_set_uint8(x_54, sizeof(void*)*2, x_17); -x_55 = l_Lean_Elab_runFrontend___closed__2; -lean_ctor_set(x_32, 6, x_54); -lean_ctor_set(x_32, 4, x_47); -lean_ctor_set(x_32, 3, x_55); -lean_ctor_set(x_32, 1, x_30); -lean_ctor_set(x_32, 0, x_31); -x_56 = lean_box(0); -x_57 = l_Lean_Elab_runFrontend___lambda__3(x_18, x_24, x_2, x_7, x_16, x_37, x_4, x_6, x_32, x_56, x_35); +lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_55 = lean_ctor_get(x_44, 0); +x_56 = lean_ctor_get(x_44, 1); +lean_inc(x_56); +lean_inc(x_55); +lean_dec(x_44); +x_57 = lean_alloc_ctor(0, 2, 1); +lean_ctor_set(x_57, 0, x_55); +lean_ctor_set(x_57, 1, x_56); +lean_ctor_set_uint8(x_57, sizeof(void*)*2, x_17); +x_58 = l_Lean_Elab_runFrontend___closed__2; +lean_ctor_set(x_35, 6, x_57); +lean_ctor_set(x_35, 4, x_50); +lean_ctor_set(x_35, 3, x_58); +lean_ctor_set(x_35, 1, x_30); +lean_ctor_set(x_35, 0, x_34); +x_59 = lean_box(0); +x_60 = l_Lean_Elab_runFrontend___lambda__3(x_18, x_24, x_32, x_7, x_16, x_40, x_4, x_6, x_35, x_59, x_38); lean_dec(x_6); -return x_57; +return x_60; } } else { -lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; -x_58 = lean_ctor_get(x_32, 2); -x_59 = lean_ctor_get(x_32, 5); -x_60 = lean_ctor_get(x_32, 6); -x_61 = lean_ctor_get(x_32, 7); -lean_inc(x_61); -lean_inc(x_60); -lean_inc(x_59); -lean_inc(x_58); -lean_dec(x_32); -x_62 = l_Lean_Elab_runFrontend___closed__3; -x_63 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_2, x_62); -x_64 = lean_ctor_get(x_60, 0); +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; +x_61 = lean_ctor_get(x_35, 2); +x_62 = lean_ctor_get(x_35, 5); +x_63 = lean_ctor_get(x_35, 6); +x_64 = lean_ctor_get(x_35, 7); lean_inc(x_64); -x_65 = lean_ctor_get(x_60, 1); -lean_inc(x_65); -if (lean_is_exclusive(x_60)) { - lean_ctor_release(x_60, 0); - lean_ctor_release(x_60, 1); - x_66 = x_60; +lean_inc(x_63); +lean_inc(x_62); +lean_inc(x_61); +lean_dec(x_35); +x_65 = l_Lean_Elab_runFrontend___closed__3; +x_66 = l_Lean_Option_get___at_Lean_profiler_threshold_getSecs___spec__1(x_32, x_65); +x_67 = lean_ctor_get(x_63, 0); +lean_inc(x_67); +x_68 = lean_ctor_get(x_63, 1); +lean_inc(x_68); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_69 = x_63; } else { - lean_dec_ref(x_60); - x_66 = lean_box(0); + lean_dec_ref(x_63); + x_69 = lean_box(0); } -if (lean_is_scalar(x_66)) { - x_67 = lean_alloc_ctor(0, 2, 1); +if (lean_is_scalar(x_69)) { + x_70 = lean_alloc_ctor(0, 2, 1); } else { - x_67 = x_66; + x_70 = x_69; } -lean_ctor_set(x_67, 0, x_64); -lean_ctor_set(x_67, 1, x_65); -lean_ctor_set_uint8(x_67, sizeof(void*)*2, x_17); -x_68 = l_Lean_Elab_runFrontend___closed__2; -x_69 = lean_alloc_ctor(0, 8, 0); -lean_ctor_set(x_69, 0, x_31); -lean_ctor_set(x_69, 1, x_30); -lean_ctor_set(x_69, 2, x_58); -lean_ctor_set(x_69, 3, x_68); -lean_ctor_set(x_69, 4, x_63); -lean_ctor_set(x_69, 5, x_59); -lean_ctor_set(x_69, 6, x_67); -lean_ctor_set(x_69, 7, x_61); -x_70 = lean_box(0); -x_71 = l_Lean_Elab_runFrontend___lambda__3(x_18, x_24, x_2, x_7, x_16, x_37, x_4, x_6, x_69, x_70, x_35); +lean_ctor_set(x_70, 0, x_67); +lean_ctor_set(x_70, 1, x_68); +lean_ctor_set_uint8(x_70, sizeof(void*)*2, x_17); +x_71 = l_Lean_Elab_runFrontend___closed__2; +x_72 = lean_alloc_ctor(0, 8, 0); +lean_ctor_set(x_72, 0, x_34); +lean_ctor_set(x_72, 1, x_30); +lean_ctor_set(x_72, 2, x_61); +lean_ctor_set(x_72, 3, x_71); +lean_ctor_set(x_72, 4, x_66); +lean_ctor_set(x_72, 5, x_62); +lean_ctor_set(x_72, 6, x_70); +lean_ctor_set(x_72, 7, x_64); +x_73 = lean_box(0); +x_74 = l_Lean_Elab_runFrontend___lambda__3(x_18, x_24, x_32, x_7, x_16, x_40, x_4, x_6, x_72, x_73, x_38); lean_dec(x_6); -return x_71; +return x_74; } } } else { -uint8_t x_72; +uint8_t x_75; +lean_dec(x_30); +lean_dec(x_29); +lean_dec(x_24); +lean_dec(x_18); +lean_dec(x_6); +lean_dec(x_4); +x_75 = !lean_is_exclusive(x_31); +if (x_75 == 0) +{ +return x_31; +} +else +{ +lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_76 = lean_ctor_get(x_31, 0); +x_77 = lean_ctor_get(x_31, 1); +lean_inc(x_77); +lean_inc(x_76); +lean_dec(x_31); +x_78 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_78, 0, x_76); +lean_ctor_set(x_78, 1, x_77); +return x_78; +} +} +} +else +{ +uint8_t x_79; lean_dec(x_24); lean_dec(x_18); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_72 = !lean_is_exclusive(x_26); -if (x_72 == 0) +x_79 = !lean_is_exclusive(x_26); +if (x_79 == 0) { return x_26; } else { -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_26, 0); -x_74 = lean_ctor_get(x_26, 1); -lean_inc(x_74); -lean_inc(x_73); +lean_object* x_80; lean_object* x_81; lean_object* x_82; +x_80 = lean_ctor_get(x_26, 0); +x_81 = lean_ctor_get(x_26, 1); +lean_inc(x_81); +lean_inc(x_80); lean_dec(x_26); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; +x_82 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_82, 0, x_80); +lean_ctor_set(x_82, 1, x_81); +return x_82; } } } else { -uint8_t x_76; +uint8_t x_83; lean_dec(x_18); lean_dec(x_6); lean_dec(x_4); lean_dec(x_2); -x_76 = !lean_is_exclusive(x_19); -if (x_76 == 0) +x_83 = !lean_is_exclusive(x_19); +if (x_83 == 0) { return x_19; } else { -lean_object* x_77; lean_object* x_78; lean_object* x_79; -x_77 = lean_ctor_get(x_19, 0); -x_78 = lean_ctor_get(x_19, 1); -lean_inc(x_78); -lean_inc(x_77); +lean_object* x_84; lean_object* x_85; lean_object* x_86; +x_84 = lean_ctor_get(x_19, 0); +x_85 = lean_ctor_get(x_19, 1); +lean_inc(x_85); +lean_inc(x_84); lean_dec(x_19); -x_79 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_79, 0, x_77); -lean_ctor_set(x_79, 1, x_78); -return x_79; +x_86 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_86, 0, x_84); +lean_ctor_set(x_86, 1, x_85); +return x_86; } } } @@ -4024,6 +4889,34 @@ l_Lean_Elab_process___closed__1 = _init_l_Lean_Elab_process___closed__1(); lean_mark_persistent(l_Lean_Elab_process___closed__1); l_Lean_Elab_process___closed__2 = _init_l_Lean_Elab_process___closed__2(); lean_mark_persistent(l_Lean_Elab_process___closed__2); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__1 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__1); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__2 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__2(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__2); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__3 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__3(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__3); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__4 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__4(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__4); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__5 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__5(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__5); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__6 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__6(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__6); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__7 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__7(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__7); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__8 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__8(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__8); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__9 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__9(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__9); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__10 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__10(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__10); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__11 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__11(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__11); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__12 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__12(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___lambda__1___closed__12); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__1 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__1(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__1); +l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__2 = _init_l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__2(); +lean_mark_persistent(l_List_forIn_loop___at_Lean_Elab_reparseOptions___spec__1___closed__2); l_Lean_Elab_runFrontend___lambda__2___closed__1 = _init_l_Lean_Elab_runFrontend___lambda__2___closed__1(); lean_mark_persistent(l_Lean_Elab_runFrontend___lambda__2___closed__1); l_Lean_Elab_runFrontend___lambda__2___closed__2 = _init_l_Lean_Elab_runFrontend___lambda__2___closed__2(); diff --git a/stage0/stdlib/Lean/Elab/Import.c b/stage0/stdlib/Lean/Elab/Import.c index 2c7c97f5ee..ff8f6f6d59 100644 --- a/stage0/stdlib/Lean/Elab/Import.c +++ b/stage0/stdlib/Lean/Elab/Import.c @@ -42,7 +42,7 @@ lean_object* l_Array_append___rarg(lean_object*, lean_object*); static lean_object* l_Lean_Elab_processHeader___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_headerToImports___spec__1(size_t, size_t, lean_object*); static lean_object* l_Lean_Elab_parseImports___closed__1; -lean_object* l_Lean_findOLean(lean_object*, uint8_t, lean_object*); +lean_object* l_Lean_findOLean(lean_object*, lean_object*); static lean_object* l_Lean_Elab_headerToImports___closed__6; LEAN_EXPORT lean_object* l_Lean_Elab_parseImports(lean_object*, lean_object*, lean_object*); uint8_t l_Lean_Syntax_isNone(lean_object*); @@ -894,80 +894,79 @@ return x_7; } else { -lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; +lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_dec(x_4); x_8 = lean_array_uget(x_1, x_3); x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); lean_dec(x_8); -x_10 = 0; -x_11 = l_Lean_findOLean(x_9, x_10, x_5); -if (lean_obj_tag(x_11) == 0) +x_10 = l_Lean_findOLean(x_9, x_5); +if (lean_obj_tag(x_10) == 0) { -lean_object* x_12; lean_object* x_13; lean_object* x_14; -x_12 = lean_ctor_get(x_11, 0); +lean_object* x_11; lean_object* x_12; lean_object* x_13; +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_ctor_get(x_10, 1); lean_inc(x_12); -x_13 = lean_ctor_get(x_11, 1); -lean_inc(x_13); -lean_dec(x_11); -x_14 = l_IO_println___at_Lean_Elab_printImports___spec__1(x_12, x_13); -if (lean_obj_tag(x_14) == 0) +lean_dec(x_10); +x_13 = l_IO_println___at_Lean_Elab_printImports___spec__1(x_11, x_12); +if (lean_obj_tag(x_13) == 0) { -lean_object* x_15; size_t x_16; size_t x_17; lean_object* x_18; -x_15 = lean_ctor_get(x_14, 1); -lean_inc(x_15); -lean_dec(x_14); -x_16 = 1; -x_17 = lean_usize_add(x_3, x_16); -x_18 = lean_box(0); -x_3 = x_17; -x_4 = x_18; -x_5 = x_15; +lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; +x_14 = lean_ctor_get(x_13, 1); +lean_inc(x_14); +lean_dec(x_13); +x_15 = 1; +x_16 = lean_usize_add(x_3, x_15); +x_17 = lean_box(0); +x_3 = x_16; +x_4 = x_17; +x_5 = x_14; goto _start; } else { -uint8_t x_20; -x_20 = !lean_is_exclusive(x_14); -if (x_20 == 0) +uint8_t x_19; +x_19 = !lean_is_exclusive(x_13); +if (x_19 == 0) { -return x_14; +return x_13; } else { -lean_object* x_21; lean_object* x_22; lean_object* x_23; -x_21 = lean_ctor_get(x_14, 0); -x_22 = lean_ctor_get(x_14, 1); -lean_inc(x_22); +lean_object* x_20; lean_object* x_21; lean_object* x_22; +x_20 = lean_ctor_get(x_13, 0); +x_21 = lean_ctor_get(x_13, 1); lean_inc(x_21); -lean_dec(x_14); -x_23 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_23, 0, x_21); -lean_ctor_set(x_23, 1, x_22); -return x_23; +lean_inc(x_20); +lean_dec(x_13); +x_22 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_22, 0, x_20); +lean_ctor_set(x_22, 1, x_21); +return x_22; } } } else { -uint8_t x_24; -x_24 = !lean_is_exclusive(x_11); -if (x_24 == 0) +uint8_t x_23; +x_23 = !lean_is_exclusive(x_10); +if (x_23 == 0) { -return x_11; +return x_10; } else { -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_11, 0); -x_26 = lean_ctor_get(x_11, 1); -lean_inc(x_26); +lean_object* x_24; lean_object* x_25; lean_object* x_26; +x_24 = lean_ctor_get(x_10, 0); +x_25 = lean_ctor_get(x_10, 1); lean_inc(x_25); -lean_dec(x_11); -x_27 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_27, 0, x_25); -lean_ctor_set(x_27, 1, x_26); -return x_27; +lean_inc(x_24); +lean_dec(x_10); +x_26 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_26, 0, x_24); +lean_ctor_set(x_26, 1, x_25); +return x_26; } } } diff --git a/stage0/stdlib/Lean/Environment.c b/stage0/stdlib/Lean/Environment.c index 0575544247..ba50bc500b 100644 --- a/stage0/stdlib/Lean/Environment.c +++ b/stage0/stdlib/Lean/Environment.c @@ -43,17 +43,20 @@ LEAN_EXPORT lean_object* l_Lean_mkModuleData(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_find_x3f_x27___at_Lean_Environment_find_x3f___spec__1___boxed(lean_object*, lean_object*); lean_object* l_Lean_Name_quickLt___boxed(lean_object*, lean_object*); lean_object* lean_mk_empty_array_with_capacity(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_Environment_evalConst___boxed(lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_shift_right(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_ImportStateM_run___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_3302_; +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_modifyState___rarg___lambda__1(lean_object*, lean_object*); lean_object* lean_add_decl(lean_object*, size_t, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6572____closed__1; LEAN_EXPORT uint8_t l_Lean_AssocList_contains___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__7(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerPersistentEnvExtensionUnsafe(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__2; lean_object* lean_uint32_to_nat(uint32_t); +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Environment_0__Lean_equivInfo(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_importModules___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4___closed__1; @@ -80,13 +83,14 @@ static lean_object* l_List_toString___at_Lean_Environment_displayStats___spec__1 LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_mkTagDeclarationExtension___spec__1___boxed(lean_object*, lean_object*, lean_object*); uint8_t lean_usize_dec_le(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_EnvironmentHeader_regions___default; -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__3; LEAN_EXPORT lean_object* l_Lean_MapDeclarationExtension_insert(lean_object*); lean_object* l_Lean_ConstantInfo_levelParams(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__8; static lean_object* l_Lean_instInhabitedEnvExtensionInterface___closed__3; LEAN_EXPORT lean_object* l_Lean_Environment_allImportedModuleNames___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_moveEntries___at_Lean_finalizeImport___spec__3(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__4(lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443_(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___rarg___lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_setImportedEntries(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -96,6 +100,7 @@ LEAN_EXPORT lean_object* l_Lean_AssocList_contains___at___private_Lean_Environme LEAN_EXPORT uint8_t l_Lean_EnvironmentHeader_quotInit___default; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__6___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__4___lambda__1___boxed(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__2(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_mkEmptyEnvironment___spec__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___rarg___lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_2607_; @@ -113,6 +118,7 @@ lean_object* lean_array_push(lean_object*, lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); lean_object* l_Array_qpartition___rarg(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_mkHashSetImp___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_getModuleEntries(lean_object*, lean_object*, lean_object*); size_t lean_usize_mul(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___rarg___lambda__3(lean_object*); @@ -142,7 +148,6 @@ LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_modifyState___rarg__ static lean_object* l_Lean_Kernel_resetDiag___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_modifyState(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_getState(lean_object*, lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_importModules___lambda__2___closed__1; @@ -155,13 +160,12 @@ static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Kernel_Diagnostics_recordUnfold___spec__5(lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__3(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_get_num_attributes(lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvironmentHeader_moduleNames___default; static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_84____closed__11; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_mkInitialExtStates(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__3(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_HashMapImp_find_x3f___at_Lean_Environment_find_x3f___spec__5___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6572_(lean_object*); LEAN_EXPORT lean_object* lean_environment_find(lean_object*, lean_object*); lean_object* l_Lean_RBNode_insert___at_Lean_NameSet_insert___spec__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__3(lean_object*, size_t, size_t, lean_object*, lean_object*); @@ -178,6 +182,7 @@ LEAN_EXPORT lean_object* l_Lean_getNumBuiltinAttributes___boxed(lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_84____closed__21; static lean_object* l_List_toString___at_Lean_Environment_displayStats___spec__1___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlMAux___at_Lean_mkModuleData___spec__3___rarg(lean_object*, lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__2; LEAN_EXPORT lean_object* lean_kernel_get_diag(lean_object*); LEAN_EXPORT lean_object* l_Lean_ImportStateM_run(lean_object*); LEAN_EXPORT lean_object* l_Lean_importModules___lambda__1(lean_object*, lean_object*, uint32_t, uint8_t, lean_object*, lean_object*); @@ -196,15 +201,17 @@ LEAN_EXPORT lean_object* l_Lean_Environment_addExtraName(lean_object*, lean_obje LEAN_EXPORT lean_object* l_Lean_Environment_isNamespace___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkTagDeclarationExtension___lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Environment_find_x3f___spec__3___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_MapDeclarationExtension_contains___rarg(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__3; LEAN_EXPORT lean_object* l_Lean_EnvExtensionEntrySpec; LEAN_EXPORT lean_object* l_Lean_updateEnvAttributes___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_importModules___closed__1; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_mkModuleData___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* l_System_FilePath_pathExists(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___lambda__1(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__5(lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__5; LEAN_EXPORT lean_object* l_Lean_HashMapImp_contains___at_Lean_Environment_addExtraName___spec__2___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_getNamespaceSet(lean_object*); LEAN_EXPORT lean_object* l_Lean_finalizeImport___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -231,20 +238,18 @@ lean_object* l_Lean_initializing(lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_84____closed__22; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__6___closed__4; LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6476_(lean_object*); static lean_object* l_Lean_TagDeclarationExtension_tag___closed__1; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__4(lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__1; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__6___lambda__1___closed__3; lean_object* l_IO_println___at_Lean_instEval___spec__1(lean_object*, lean_object*); static lean_object* l_Lean_instInhabitedEnvExtensionInterface___closed__6; LEAN_EXPORT lean_object* l_Lean_EnvExtension_getState___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtensionDescr_toArrayFn___default(lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347_(lean_object*); LEAN_EXPORT lean_object* l_Lean_registerEnvExtension(lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_numBuckets___at_Lean_Environment_displayStats___spec__3___boxed(lean_object*); static lean_object* l_Array_qsort_sort___at_Lean_mkMapDeclarationExtension___spec__1___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_mkEmptyEnvironment___spec__1___boxed(lean_object*); -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_mkMapDeclarationExtension___spec__1___rarg(lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Environment___hyg_2607____closed__8; LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_modifyState___rarg(lean_object*, lean_object*, lean_object*); @@ -254,7 +259,6 @@ LEAN_EXPORT lean_object* l_Std_Range_forIn_x27_loop___at_Lean_finalizeImport___s LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_getState___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_TagDeclarationExtension_isTagged(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_contains___at_Lean_mkExtNameMap___spec__3___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ImportState_moduleNames___default; uint8_t l_Lean_HashSetImp_contains___at_Lean_NameHashSet_contains___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Kernel_Diagnostics_isEnabled___boxed(lean_object*); @@ -293,7 +297,6 @@ LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_freeReg lean_object* lean_nat_to_int(lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_throwUnexpectedType___rarg(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1; -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__1___boxed(lean_object*, lean_object*); lean_object* lean_nat_div(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkEmptyEnvironment___boxed(lean_object*, lean_object*); static lean_object* l_Lean_mkMapDeclarationExtension___rarg___closed__2; @@ -316,7 +319,6 @@ static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_ LEAN_EXPORT lean_object* l_Lean_instModuleIdxToString; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_finalizeImport___spec__7(lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__1___lambda__1___boxed(lean_object*, lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__6; static lean_object* l_Lean_mkEmptyEnvironment___closed__1; static lean_object* l_Array_forInUnsafe_loop___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__4___closed__1; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_addAux(lean_object*, lean_object*); @@ -326,6 +328,7 @@ LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at_Lean_finalizeImport___spec LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_getTrustLevel___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_importModules___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_ImportState_regions___default; +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState(lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Environment___hyg_2607____closed__10; @@ -336,7 +339,6 @@ LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_setState___rarg___bo LEAN_EXPORT lean_object* l_Lean_EnvExtension_modifyState___rarg___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_84____closed__8; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_Kernel_Diagnostics_recordUnfold___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2(lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt___closed__1; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__1(lean_object*); static lean_object* l___auto____x40_Lean_Environment___hyg_2607____closed__3; @@ -372,6 +374,7 @@ lean_object* lean_list_to_array(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withImportModules___rarg(lean_object*, lean_object*, uint32_t, lean_object*, lean_object*); lean_object* l_EStateM_pure___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtensionState(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__1(lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_84____closed__24; LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_MapDeclarationExtension_contains___spec__1(lean_object*); static lean_object* l_Lean_throwAlreadyImported___rarg___closed__7; @@ -388,13 +391,11 @@ static lean_object* l_Lean_TagDeclarationExtension_tag___closed__3; static lean_object* l_Lean_instToStringImport___closed__1; LEAN_EXPORT lean_object* l_Lean_HashMap_insert___at_Lean_mkExtNameMap___spec__2(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_getState___rarg___closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__5; LEAN_EXPORT lean_object* l_Lean_mkDefinitionValInferrringUnsafe(lean_object*); LEAN_EXPORT uint32_t lean_environment_trust_level(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentEnvExtension_getModuleEntries___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_instInhabitedExt(lean_object*); LEAN_EXPORT lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___lambda__4(lean_object*); -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2___boxed(lean_object*); uint8_t lean_name_eq(lean_object*, lean_object*); lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_84____boxed(lean_object*, lean_object*); @@ -423,8 +424,10 @@ LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_Environment_isName LEAN_EXPORT lean_object* l_Lean_ConstantInfo_instantiateValueLevelParams_x21___boxed(lean_object*, lean_object*); static lean_object* l___auto____x40_Lean_Environment___hyg_2607____closed__27; LEAN_EXPORT lean_object* l_panic___at_Lean_MapDeclarationExtension_insert___spec__1(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_instToStringImport___closed__2; LEAN_EXPORT uint8_t l___private_Lean_Environment_0__Lean_Environment_isNamespaceName(lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__5(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Environment_getModuleIdx_x3f___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_mkMapDeclarationExtension___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Expr_instantiateLevelParams(lean_object*, lean_object*, lean_object*); @@ -434,6 +437,7 @@ static lean_object* l_Lean_TagDeclarationExtension_tag___closed__2; LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_withImportModules(lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedImport; +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_EnvExtensionInterfaceUnsafe_mkInitialExtStates___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_ensureExtensionsArraySize(lean_object*, lean_object*); static lean_object* l_Lean_mkEmptyEnvironment___closed__2; @@ -463,8 +467,8 @@ LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at___private_Lean_Environ LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_TagDeclarationExtension_isTagged___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_registerPersistentEnvExtensionUnsafe___rarg___lambda__2(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModules___spec__1(lean_object*, size_t, size_t, lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__4; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_Environment_find_x3f___spec__3(lean_object*, size_t, lean_object*); -LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__4(lean_object*); LEAN_EXPORT lean_object* l_Lean_throwAlreadyImported___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_mkEmptyEnvironment___spec__2(lean_object*); static lean_object* l_Lean_instInhabitedEnvExtensionInterface___closed__1; @@ -515,12 +519,11 @@ static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_modifyState___rarg___clos LEAN_EXPORT lean_object* l_Lean_mkMapDeclarationExtension___rarg___lambda__2(lean_object*); LEAN_EXPORT lean_object* lean_environment_mark_quot_init(lean_object*); lean_object* lean_string_length(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__2(lean_object*, size_t, size_t, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_84____closed__17; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__6; static lean_object* l___auto____x40_Lean_Environment___hyg_2607____closed__14; static lean_object* l_Lean_instReprImport___closed__1; -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6476____closed__1; +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___rarg___lambda__1(lean_object*, lean_object*, lean_object*); uint8_t l_List_beq___at___private_Lean_Declaration_0__Lean_beqConstantVal____x40_Lean_Declaration___hyg_433____spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___auto____x40_Lean_Environment___hyg_3458_; @@ -532,7 +535,6 @@ LEAN_EXPORT lean_object* l_Lean_instReprImport; static lean_object* l___auto____x40_Lean_Environment___hyg_2607____closed__6; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_finalizePersistentExtensions_loop(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__5(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_MapDeclarationExtension_find_x3f___spec__1(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_nat_dec_lt(lean_object*, lean_object*); @@ -559,7 +561,7 @@ LEAN_EXPORT lean_object* l_Lean_HashMapImp_find_x3f___at_Lean_Environment_getMod LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_setState___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___lambda__4___boxed(lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAux___at_Lean_Environment_addExtraName___spec__4(lean_object*, size_t, lean_object*); -lean_object* l_Lean_findOLean(lean_object*, uint8_t, lean_object*); +lean_object* l_Lean_findOLean(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_mkEmptyEntries(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Import_runtimeOnly___default; LEAN_EXPORT lean_object* l_Lean_Environment_isConstructor___boxed(lean_object*, lean_object*); @@ -581,7 +583,7 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_finalizeImport___spe LEAN_EXPORT lean_object* l_panic___at_Lean_EnvExtensionInterfaceUnsafe_setState___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instInhabitedPersistentEnvExtension___lambda__2___boxed(lean_object*, lean_object*); extern lean_object* l_Id_instMonad; -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_find_x3f_x27___at_Lean_Environment_find_x3f___spec__1(lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MapDeclarationExtension_contains___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -638,6 +640,7 @@ lean_object* l_List_reverse___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at___private_Lean_Environment_0__Lean_setImportedEntries___spec__3___boxed(lean_object*, lean_object*); static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__1; LEAN_EXPORT lean_object* l_Lean_Environment_imports(lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2(lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_foldlM___at_Lean_mkModuleData___spec__6___boxed(lean_object*, lean_object*, lean_object*); size_t lean_usize_sub(size_t, size_t); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -679,9 +682,9 @@ lean_object* lean_array_uget(lean_object*, size_t); static lean_object* l_Lean_MapDeclarationExtension_find_x3f___rarg___closed__1; static lean_object* l___auto____x40_Lean_Environment___hyg_2607____closed__9; size_t lean_array_size(lean_object*); -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_Environment_displayStats___closed__5; lean_object* l_Array_foldlMUnsafe_fold___rarg(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__1; LEAN_EXPORT lean_object* l_Lean_CompactedRegion_isMemoryMapped___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Kernel_resetDiag(lean_object*); LEAN_EXPORT lean_object* l_Lean_SMap_insert___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__1(lean_object*, lean_object*, lean_object*); @@ -699,7 +702,9 @@ size_t lean_usize_shift_left(size_t, size_t); lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_redLength___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at_Lean_Environment_find_x3f___spec__6(lean_object*, lean_object*); +static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__6; LEAN_EXPORT lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___elambda__3___rarg(lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t lean_environment_quot_init(lean_object*); static lean_object* l_Lean_throwAlreadyImported___rarg___closed__4; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_finalizeImport___spec__9(lean_object*, size_t, size_t, lean_object*); @@ -720,7 +725,8 @@ LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___ static lean_object* l_Lean_registerSimplePersistentEnvExtension___rarg___closed__1; lean_object* lean_array_get_size(lean_object*); LEAN_EXPORT lean_object* l_Array_binSearchAux___at_Lean_MapDeclarationExtension_contains___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_84____closed__19; LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_mkExtNameMap___spec__1___boxed(lean_object*); static lean_object* l_Lean_Environment_displayStats___closed__2; @@ -747,6 +753,7 @@ LEAN_EXPORT lean_object* l_Lean_SimplePersistentEnvExtension_setState(lean_objec lean_object* l_EStateM_bind___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Kernel_enableDiag___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkTagDeclarationExtension(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__3(lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvironmentHeader_moduleData___default; LEAN_EXPORT lean_object* l___private_Lean_Environment_0__Lean_equivInfo___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_import_modules(lean_object*, lean_object*, uint32_t, uint8_t, lean_object*); @@ -778,10 +785,10 @@ LEAN_EXPORT lean_object* lean_environment_free_regions(lean_object*, lean_object lean_object* lean_array_get(lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); LEAN_EXPORT lean_object* l_List_foldl___at_Lean_Environment_displayStats___spec__2(lean_object*, lean_object*); +static lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__3; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_contains___at_Lean_Environment_addExtraName___spec__3___boxed(lean_object*, lean_object*); static lean_object* l_List_foldl___at_Lean_Environment_displayStats___spec__2___closed__1; static lean_object* l_Lean_instInhabitedPersistentEnvExtension___closed__4; -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__2; static lean_object* l___auto____x40_Lean_Environment___hyg_2607____closed__17; LEAN_EXPORT uint8_t l_Lean_PersistentHashMap_containsAtAux___at_Lean_Environment_addExtraName___spec__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_EnvExtension_setState(lean_object*); @@ -797,7 +804,6 @@ lean_object* l_List_length___rarg(lean_object*); static lean_object* l___private_Lean_Environment_0__Lean_reprImport____x40_Lean_Environment___hyg_84____closed__14; static lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Environment_displayStats___spec__6___lambda__1___closed__1; lean_object* l___private_Lean_Data_HashMap_0__Lean_numBucketsForCapacity(lean_object*); -static lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__4; LEAN_EXPORT lean_object* l_Array_qsort_sort___at_Lean_mkTagDeclarationExtension___spec__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_PersistentHashMap_insertAux___at___private_Lean_Environment_0__Lean_Environment_addAux___spec__3___closed__3; static lean_object* l_Lean_EnvExtensionInterfaceUnsafe_imp___closed__3; @@ -11509,7 +11515,195 @@ lean_ctor_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = lean_read_module_data(x_1, x_5); +if (lean_obj_tag(x_6) == 0) +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; +x_7 = lean_ctor_get(x_6, 0); +lean_inc(x_7); +x_8 = lean_ctor_get(x_6, 1); +lean_inc(x_8); +lean_dec(x_6); +x_9 = lean_ctor_get(x_7, 0); +lean_inc(x_9); +x_10 = lean_ctor_get(x_7, 1); +lean_inc(x_10); +lean_dec(x_7); +x_11 = lean_ctor_get(x_9, 0); +lean_inc(x_11); +x_12 = l_Lean_importModulesCore(x_11, x_4, x_8); +lean_dec(x_11); +if (lean_obj_tag(x_12) == 0) +{ +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_12, 1); +lean_inc(x_13); +lean_dec(x_12); +x_14 = lean_st_ref_take(x_4, x_13); +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); +lean_inc(x_16); +lean_dec(x_14); +x_17 = !lean_is_exclusive(x_15); +if (x_17 == 0) +{ +lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; uint8_t x_25; +x_18 = lean_ctor_get(x_15, 1); +x_19 = lean_ctor_get(x_15, 2); +x_20 = lean_ctor_get(x_15, 3); +x_21 = lean_array_push(x_18, x_2); +x_22 = lean_array_push(x_19, x_9); +x_23 = lean_array_push(x_20, x_10); +lean_ctor_set(x_15, 3, x_23); +lean_ctor_set(x_15, 2, x_22); +lean_ctor_set(x_15, 1, x_21); +x_24 = lean_st_ref_set(x_4, x_15, x_16); +x_25 = !lean_is_exclusive(x_24); +if (x_25 == 0) +{ +lean_object* x_26; lean_object* x_27; +x_26 = lean_ctor_get(x_24, 0); +lean_dec(x_26); +x_27 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1; +lean_ctor_set(x_24, 0, x_27); +return x_24; +} +else +{ +lean_object* x_28; lean_object* x_29; lean_object* x_30; +x_28 = lean_ctor_get(x_24, 1); +lean_inc(x_28); +lean_dec(x_24); +x_29 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1; +x_30 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_30, 0, x_29); +lean_ctor_set(x_30, 1, x_28); +return x_30; +} +} +else +{ +lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_31 = lean_ctor_get(x_15, 0); +x_32 = lean_ctor_get(x_15, 1); +x_33 = lean_ctor_get(x_15, 2); +x_34 = lean_ctor_get(x_15, 3); +lean_inc(x_34); +lean_inc(x_33); +lean_inc(x_32); +lean_inc(x_31); +lean_dec(x_15); +x_35 = lean_array_push(x_32, x_2); +x_36 = lean_array_push(x_33, x_9); +x_37 = lean_array_push(x_34, x_10); +x_38 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_38, 0, x_31); +lean_ctor_set(x_38, 1, x_35); +lean_ctor_set(x_38, 2, x_36); +lean_ctor_set(x_38, 3, x_37); +x_39 = lean_st_ref_set(x_4, x_38, x_16); +x_40 = lean_ctor_get(x_39, 1); +lean_inc(x_40); +if (lean_is_exclusive(x_39)) { + lean_ctor_release(x_39, 0); + lean_ctor_release(x_39, 1); + x_41 = x_39; +} else { + lean_dec_ref(x_39); + x_41 = lean_box(0); +} +x_42 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1; +if (lean_is_scalar(x_41)) { + x_43 = lean_alloc_ctor(0, 2, 0); +} else { + x_43 = x_41; +} +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_40); +return x_43; +} +} +else +{ +uint8_t x_44; +lean_dec(x_10); +lean_dec(x_9); +lean_dec(x_2); +x_44 = !lean_is_exclusive(x_12); +if (x_44 == 0) +{ +return x_12; +} +else +{ +lean_object* x_45; lean_object* x_46; lean_object* x_47; +x_45 = lean_ctor_get(x_12, 0); +x_46 = lean_ctor_get(x_12, 1); +lean_inc(x_46); +lean_inc(x_45); +lean_dec(x_12); +x_47 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_47, 0, x_45); +lean_ctor_set(x_47, 1, x_46); +return x_47; +} +} +} +else +{ +uint8_t x_48; +lean_dec(x_2); +x_48 = !lean_is_exclusive(x_6); +if (x_48 == 0) +{ +return x_6; +} +else +{ +lean_object* x_49; lean_object* x_50; lean_object* x_51; +x_49 = lean_ctor_get(x_6, 0); +x_50 = lean_ctor_get(x_6, 1); +lean_inc(x_50); +lean_inc(x_49); +lean_dec(x_6); +x_51 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_51, 0, x_49); +lean_ctor_set(x_51, 1, x_50); +return x_51; +} +} +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__1() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("object file '", 13, 13); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__2() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked("' of module ", 12, 12); +return x_1; +} +} +static lean_object* _init_l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__3() { +_start: +{ +lean_object* x_1; +x_1 = lean_mk_string_unchecked(" does not exist", 15, 15); +return x_1; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2(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; uint8_t x_8; @@ -11522,7 +11716,7 @@ lean_dec(x_5); x_8 = !lean_is_exclusive(x_6); if (x_8 == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; +lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; x_9 = lean_ctor_get(x_6, 0); x_10 = lean_ctor_get(x_1, 0); lean_inc(x_10); @@ -11534,398 +11728,221 @@ x_12 = lean_st_ref_set(x_3, x_6, x_7); x_13 = lean_ctor_get(x_12, 1); lean_inc(x_13); lean_dec(x_12); -x_14 = 1; lean_inc(x_10); -x_15 = l_Lean_findOLean(x_10, x_14, x_13); -if (lean_obj_tag(x_15) == 0) +x_14 = l_Lean_findOLean(x_10, x_13); +if (lean_obj_tag(x_14) == 0) { -lean_object* x_16; lean_object* x_17; lean_object* x_18; -x_16 = lean_ctor_get(x_15, 0); +lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; +x_15 = lean_ctor_get(x_14, 0); +lean_inc(x_15); +x_16 = lean_ctor_get(x_14, 1); lean_inc(x_16); -x_17 = lean_ctor_get(x_15, 1); -lean_inc(x_17); -lean_dec(x_15); -x_18 = lean_read_module_data(x_16, x_17); -lean_dec(x_16); -if (lean_obj_tag(x_18) == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; -x_19 = lean_ctor_get(x_18, 0); -lean_inc(x_19); -x_20 = lean_ctor_get(x_18, 1); -lean_inc(x_20); +lean_dec(x_14); +x_17 = l_System_FilePath_pathExists(x_15, x_16); +x_18 = lean_ctor_get(x_17, 0); +lean_inc(x_18); +x_19 = lean_unbox(x_18); lean_dec(x_18); -x_21 = lean_ctor_get(x_19, 0); -lean_inc(x_21); -x_22 = lean_ctor_get(x_19, 1); -lean_inc(x_22); -lean_dec(x_19); -x_23 = lean_ctor_get(x_21, 0); -lean_inc(x_23); -x_24 = l_Lean_importModulesCore(x_23, x_3, x_20); -lean_dec(x_23); -if (lean_obj_tag(x_24) == 0) +if (x_19 == 0) { -lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; -x_25 = lean_ctor_get(x_24, 1); -lean_inc(x_25); -lean_dec(x_24); -x_26 = lean_st_ref_take(x_3, x_25); -x_27 = lean_ctor_get(x_26, 0); -lean_inc(x_27); -x_28 = lean_ctor_get(x_26, 1); -lean_inc(x_28); -lean_dec(x_26); -x_29 = !lean_is_exclusive(x_27); -if (x_29 == 0) +uint8_t x_20; +x_20 = !lean_is_exclusive(x_17); +if (x_20 == 0) { -lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; -x_30 = lean_ctor_get(x_27, 1); -x_31 = lean_ctor_get(x_27, 2); -x_32 = lean_ctor_get(x_27, 3); -x_33 = lean_array_push(x_30, x_10); -x_34 = lean_array_push(x_31, x_21); -x_35 = lean_array_push(x_32, x_22); -lean_ctor_set(x_27, 3, x_35); -lean_ctor_set(x_27, 2, x_34); -lean_ctor_set(x_27, 1, x_33); -x_36 = lean_st_ref_set(x_3, x_27, x_28); -x_37 = !lean_is_exclusive(x_36); -if (x_37 == 0) -{ -lean_object* x_38; lean_object* x_39; -x_38 = lean_ctor_get(x_36, 0); -lean_dec(x_38); -x_39 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1; -lean_ctor_set(x_36, 0, x_39); -return x_36; -} -else -{ -lean_object* x_40; lean_object* x_41; lean_object* x_42; -x_40 = lean_ctor_get(x_36, 1); -lean_inc(x_40); -lean_dec(x_36); -x_41 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1; -x_42 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_42, 0, x_41); -lean_ctor_set(x_42, 1, x_40); -return x_42; -} -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; -x_43 = lean_ctor_get(x_27, 0); -x_44 = lean_ctor_get(x_27, 1); -x_45 = lean_ctor_get(x_27, 2); -x_46 = lean_ctor_get(x_27, 3); -lean_inc(x_46); -lean_inc(x_45); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_27); -x_47 = lean_array_push(x_44, x_10); -x_48 = lean_array_push(x_45, x_21); -x_49 = lean_array_push(x_46, x_22); -x_50 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_50, 0, x_43); -lean_ctor_set(x_50, 1, x_47); -lean_ctor_set(x_50, 2, x_48); -lean_ctor_set(x_50, 3, x_49); -x_51 = lean_st_ref_set(x_3, x_50, x_28); -x_52 = lean_ctor_get(x_51, 1); -lean_inc(x_52); -if (lean_is_exclusive(x_51)) { - lean_ctor_release(x_51, 0); - lean_ctor_release(x_51, 1); - x_53 = x_51; -} else { - lean_dec_ref(x_51); - x_53 = lean_box(0); -} -x_54 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1; -if (lean_is_scalar(x_53)) { - x_55 = lean_alloc_ctor(0, 2, 0); -} else { - x_55 = x_53; -} -lean_ctor_set(x_55, 0, x_54); -lean_ctor_set(x_55, 1, x_52); -return x_55; -} -} -else -{ -uint8_t x_56; -lean_dec(x_22); +lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_21 = lean_ctor_get(x_17, 0); lean_dec(x_21); -lean_dec(x_10); -x_56 = !lean_is_exclusive(x_24); -if (x_56 == 0) -{ -return x_24; -} -else -{ -lean_object* x_57; lean_object* x_58; lean_object* x_59; -x_57 = lean_ctor_get(x_24, 0); -x_58 = lean_ctor_get(x_24, 1); -lean_inc(x_58); -lean_inc(x_57); -lean_dec(x_24); -x_59 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_59, 0, x_57); -lean_ctor_set(x_59, 1, x_58); -return x_59; -} -} -} -else -{ -uint8_t x_60; -lean_dec(x_10); -x_60 = !lean_is_exclusive(x_18); -if (x_60 == 0) -{ -return x_18; -} -else -{ -lean_object* x_61; lean_object* x_62; lean_object* x_63; -x_61 = lean_ctor_get(x_18, 0); -x_62 = lean_ctor_get(x_18, 1); -lean_inc(x_62); -lean_inc(x_61); -lean_dec(x_18); -x_63 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_63, 0, x_61); -lean_ctor_set(x_63, 1, x_62); -return x_63; -} -} -} -else -{ -uint8_t x_64; -lean_dec(x_10); -x_64 = !lean_is_exclusive(x_15); -if (x_64 == 0) -{ -return x_15; -} -else -{ -lean_object* x_65; lean_object* x_66; lean_object* x_67; -x_65 = lean_ctor_get(x_15, 0); -x_66 = lean_ctor_get(x_15, 1); -lean_inc(x_66); -lean_inc(x_65); +x_22 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__1; +x_23 = lean_string_append(x_22, x_15); lean_dec(x_15); -x_67 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_67, 0, x_65); -lean_ctor_set(x_67, 1, x_66); -return x_67; +x_24 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__2; +x_25 = lean_string_append(x_23, x_24); +x_26 = 1; +x_27 = l_Lean_Name_toString(x_10, x_26); +x_28 = lean_string_append(x_25, x_27); +lean_dec(x_27); +x_29 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__3; +x_30 = lean_string_append(x_28, x_29); +x_31 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set_tag(x_17, 1); +lean_ctor_set(x_17, 0, x_31); +return x_17; +} +else +{ +lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; +x_32 = lean_ctor_get(x_17, 1); +lean_inc(x_32); +lean_dec(x_17); +x_33 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__1; +x_34 = lean_string_append(x_33, x_15); +lean_dec(x_15); +x_35 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__2; +x_36 = lean_string_append(x_34, x_35); +x_37 = 1; +x_38 = l_Lean_Name_toString(x_10, x_37); +x_39 = lean_string_append(x_36, x_38); +lean_dec(x_38); +x_40 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__3; +x_41 = lean_string_append(x_39, x_40); +x_42 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_42, 0, x_41); +x_43 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_43, 0, x_42); +lean_ctor_set(x_43, 1, x_32); +return x_43; +} +} +else +{ +lean_object* x_44; lean_object* x_45; lean_object* x_46; +x_44 = lean_ctor_get(x_17, 1); +lean_inc(x_44); +lean_dec(x_17); +x_45 = lean_box(0); +x_46 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(x_15, x_10, x_45, x_3, x_44); +lean_dec(x_15); +return x_46; +} +} +else +{ +uint8_t x_47; +lean_dec(x_10); +x_47 = !lean_is_exclusive(x_14); +if (x_47 == 0) +{ +return x_14; +} +else +{ +lean_object* x_48; lean_object* x_49; lean_object* x_50; +x_48 = lean_ctor_get(x_14, 0); +x_49 = lean_ctor_get(x_14, 1); +lean_inc(x_49); +lean_inc(x_48); +lean_dec(x_14); +x_50 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_50, 0, x_48); +lean_ctor_set(x_50, 1, x_49); +return x_50; } } } else { -lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; lean_object* x_78; -x_68 = lean_ctor_get(x_6, 0); -x_69 = lean_ctor_get(x_6, 1); -x_70 = lean_ctor_get(x_6, 2); -x_71 = lean_ctor_get(x_6, 3); -lean_inc(x_71); -lean_inc(x_70); -lean_inc(x_69); -lean_inc(x_68); +lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; +x_51 = lean_ctor_get(x_6, 0); +x_52 = lean_ctor_get(x_6, 1); +x_53 = lean_ctor_get(x_6, 2); +x_54 = lean_ctor_get(x_6, 3); +lean_inc(x_54); +lean_inc(x_53); +lean_inc(x_52); +lean_inc(x_51); lean_dec(x_6); -x_72 = lean_ctor_get(x_1, 0); -lean_inc(x_72); +x_55 = lean_ctor_get(x_1, 0); +lean_inc(x_55); lean_dec(x_1); -lean_inc(x_72); -x_73 = l_Lean_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_68, x_72); -x_74 = lean_alloc_ctor(0, 4, 0); -lean_ctor_set(x_74, 0, x_73); -lean_ctor_set(x_74, 1, x_69); -lean_ctor_set(x_74, 2, x_70); -lean_ctor_set(x_74, 3, x_71); -x_75 = lean_st_ref_set(x_3, x_74, x_7); -x_76 = lean_ctor_get(x_75, 1); -lean_inc(x_76); -lean_dec(x_75); -x_77 = 1; -lean_inc(x_72); -x_78 = l_Lean_findOLean(x_72, x_77, x_76); -if (lean_obj_tag(x_78) == 0) +lean_inc(x_55); +x_56 = l_Lean_HashSetImp_insert___at_Lean_NameHashSet_insert___spec__1(x_51, x_55); +x_57 = lean_alloc_ctor(0, 4, 0); +lean_ctor_set(x_57, 0, x_56); +lean_ctor_set(x_57, 1, x_52); +lean_ctor_set(x_57, 2, x_53); +lean_ctor_set(x_57, 3, x_54); +x_58 = lean_st_ref_set(x_3, x_57, x_7); +x_59 = lean_ctor_get(x_58, 1); +lean_inc(x_59); +lean_dec(x_58); +lean_inc(x_55); +x_60 = l_Lean_findOLean(x_55, x_59); +if (lean_obj_tag(x_60) == 0) +{ +lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; uint8_t x_65; +x_61 = lean_ctor_get(x_60, 0); +lean_inc(x_61); +x_62 = lean_ctor_get(x_60, 1); +lean_inc(x_62); +lean_dec(x_60); +x_63 = l_System_FilePath_pathExists(x_61, x_62); +x_64 = lean_ctor_get(x_63, 0); +lean_inc(x_64); +x_65 = lean_unbox(x_64); +lean_dec(x_64); +if (x_65 == 0) +{ +lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; +x_66 = lean_ctor_get(x_63, 1); +lean_inc(x_66); +if (lean_is_exclusive(x_63)) { + lean_ctor_release(x_63, 0); + lean_ctor_release(x_63, 1); + x_67 = x_63; +} else { + lean_dec_ref(x_63); + x_67 = lean_box(0); +} +x_68 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__1; +x_69 = lean_string_append(x_68, x_61); +lean_dec(x_61); +x_70 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__2; +x_71 = lean_string_append(x_69, x_70); +x_72 = 1; +x_73 = l_Lean_Name_toString(x_55, x_72); +x_74 = lean_string_append(x_71, x_73); +lean_dec(x_73); +x_75 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__3; +x_76 = lean_string_append(x_74, x_75); +x_77 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_77, 0, x_76); +if (lean_is_scalar(x_67)) { + x_78 = lean_alloc_ctor(1, 2, 0); +} else { + x_78 = x_67; + lean_ctor_set_tag(x_78, 1); +} +lean_ctor_set(x_78, 0, x_77); +lean_ctor_set(x_78, 1, x_66); +return x_78; +} +else { lean_object* x_79; lean_object* x_80; lean_object* x_81; -x_79 = lean_ctor_get(x_78, 0); +x_79 = lean_ctor_get(x_63, 1); lean_inc(x_79); -x_80 = lean_ctor_get(x_78, 1); -lean_inc(x_80); -lean_dec(x_78); -x_81 = lean_read_module_data(x_79, x_80); -lean_dec(x_79); -if (lean_obj_tag(x_81) == 0) +lean_dec(x_63); +x_80 = lean_box(0); +x_81 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(x_61, x_55, x_80, x_3, x_79); +lean_dec(x_61); +return x_81; +} +} +else { -lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; -x_82 = lean_ctor_get(x_81, 0); +lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; +lean_dec(x_55); +x_82 = lean_ctor_get(x_60, 0); lean_inc(x_82); -x_83 = lean_ctor_get(x_81, 1); +x_83 = lean_ctor_get(x_60, 1); lean_inc(x_83); -lean_dec(x_81); -x_84 = lean_ctor_get(x_82, 0); -lean_inc(x_84); -x_85 = lean_ctor_get(x_82, 1); -lean_inc(x_85); -lean_dec(x_82); -x_86 = lean_ctor_get(x_84, 0); -lean_inc(x_86); -x_87 = l_Lean_importModulesCore(x_86, x_3, x_83); -lean_dec(x_86); -if (lean_obj_tag(x_87) == 0) -{ -lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; -x_88 = lean_ctor_get(x_87, 1); -lean_inc(x_88); -lean_dec(x_87); -x_89 = lean_st_ref_take(x_3, x_88); -x_90 = lean_ctor_get(x_89, 0); -lean_inc(x_90); -x_91 = lean_ctor_get(x_89, 1); -lean_inc(x_91); -lean_dec(x_89); -x_92 = lean_ctor_get(x_90, 0); -lean_inc(x_92); -x_93 = lean_ctor_get(x_90, 1); -lean_inc(x_93); -x_94 = lean_ctor_get(x_90, 2); -lean_inc(x_94); -x_95 = lean_ctor_get(x_90, 3); -lean_inc(x_95); -if (lean_is_exclusive(x_90)) { - lean_ctor_release(x_90, 0); - lean_ctor_release(x_90, 1); - lean_ctor_release(x_90, 2); - lean_ctor_release(x_90, 3); - x_96 = x_90; +if (lean_is_exclusive(x_60)) { + lean_ctor_release(x_60, 0); + lean_ctor_release(x_60, 1); + x_84 = x_60; } else { - lean_dec_ref(x_90); - x_96 = lean_box(0); + lean_dec_ref(x_60); + x_84 = lean_box(0); } -x_97 = lean_array_push(x_93, x_72); -x_98 = lean_array_push(x_94, x_84); -x_99 = lean_array_push(x_95, x_85); -if (lean_is_scalar(x_96)) { - x_100 = lean_alloc_ctor(0, 4, 0); +if (lean_is_scalar(x_84)) { + x_85 = lean_alloc_ctor(1, 2, 0); } else { - x_100 = x_96; + x_85 = x_84; } -lean_ctor_set(x_100, 0, x_92); -lean_ctor_set(x_100, 1, x_97); -lean_ctor_set(x_100, 2, x_98); -lean_ctor_set(x_100, 3, x_99); -x_101 = lean_st_ref_set(x_3, x_100, x_91); -x_102 = lean_ctor_get(x_101, 1); -lean_inc(x_102); -if (lean_is_exclusive(x_101)) { - lean_ctor_release(x_101, 0); - lean_ctor_release(x_101, 1); - x_103 = x_101; -} else { - lean_dec_ref(x_101); - x_103 = lean_box(0); -} -x_104 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1; -if (lean_is_scalar(x_103)) { - x_105 = lean_alloc_ctor(0, 2, 0); -} else { - x_105 = x_103; -} -lean_ctor_set(x_105, 0, x_104); -lean_ctor_set(x_105, 1, x_102); -return x_105; -} -else -{ -lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; -lean_dec(x_85); -lean_dec(x_84); -lean_dec(x_72); -x_106 = lean_ctor_get(x_87, 0); -lean_inc(x_106); -x_107 = lean_ctor_get(x_87, 1); -lean_inc(x_107); -if (lean_is_exclusive(x_87)) { - lean_ctor_release(x_87, 0); - lean_ctor_release(x_87, 1); - x_108 = x_87; -} else { - lean_dec_ref(x_87); - x_108 = lean_box(0); -} -if (lean_is_scalar(x_108)) { - x_109 = lean_alloc_ctor(1, 2, 0); -} else { - x_109 = x_108; -} -lean_ctor_set(x_109, 0, x_106); -lean_ctor_set(x_109, 1, x_107); -return x_109; -} -} -else -{ -lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -lean_dec(x_72); -x_110 = lean_ctor_get(x_81, 0); -lean_inc(x_110); -x_111 = lean_ctor_get(x_81, 1); -lean_inc(x_111); -if (lean_is_exclusive(x_81)) { - lean_ctor_release(x_81, 0); - lean_ctor_release(x_81, 1); - x_112 = x_81; -} else { - lean_dec_ref(x_81); - x_112 = lean_box(0); -} -if (lean_is_scalar(x_112)) { - x_113 = lean_alloc_ctor(1, 2, 0); -} else { - x_113 = x_112; -} -lean_ctor_set(x_113, 0, x_110); -lean_ctor_set(x_113, 1, x_111); -return x_113; -} -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; -lean_dec(x_72); -x_114 = lean_ctor_get(x_78, 0); -lean_inc(x_114); -x_115 = lean_ctor_get(x_78, 1); -lean_inc(x_115); -if (lean_is_exclusive(x_78)) { - lean_ctor_release(x_78, 0); - lean_ctor_release(x_78, 1); - x_116 = x_78; -} else { - lean_dec_ref(x_78); - x_116 = lean_box(0); -} -if (lean_is_scalar(x_116)) { - x_117 = lean_alloc_ctor(1, 2, 0); -} else { - x_117 = x_116; -} -lean_ctor_set(x_117, 0, x_114); -lean_ctor_set(x_117, 1, x_115); -return x_117; +lean_ctor_set(x_85, 0, x_82); +lean_ctor_set(x_85, 1, x_83); +return x_85; } } } @@ -11970,7 +11987,7 @@ if (x_16 == 0) { lean_object* x_17; lean_object* x_18; x_17 = lean_box(0); -x_18 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(x_9, x_17, x_5, x_13); +x_18 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2(x_9, x_17, x_5, x_13); if (lean_obj_tag(x_18) == 0) { lean_object* x_19; @@ -12133,11 +12150,22 @@ return x_15; } } } -LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { +_start: +{ +lean_object* x_6; +x_6 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(x_1, x_2, x_3, x_4, x_5); +lean_dec(x_4); +lean_dec(x_3); +lean_dec(x_1); +return x_6; +} +} +LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { lean_object* x_5; -x_5 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1(x_1, x_2, x_3, x_4); +x_5 = l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2(x_1, x_2, x_3, x_4); lean_dec(x_3); lean_dec(x_2); return x_5; @@ -14459,7 +14487,7 @@ x_7 = l_Lean_withImportModules___rarg(x_1, x_2, x_6, x_4, x_5); return x_7; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__2(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -14482,7 +14510,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__3(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -14520,7 +14548,7 @@ size_t x_15; size_t x_16; lean_object* x_17; x_15 = 0; x_16 = lean_usize_of_nat(x_7); lean_dec(x_7); -x_17 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__2(x_6, x_15, x_16, x_4); +x_17 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__2(x_6, x_15, x_16, x_4); lean_dec(x_6); x_2 = x_11; x_4 = x_17; @@ -14534,7 +14562,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -14561,13 +14589,13 @@ size_t x_7; size_t x_8; lean_object* x_9; x_7 = 0; x_8 = lean_usize_of_nat(x_3); lean_dec(x_3); -x_9 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__3(x_2, x_7, x_8, x_1); +x_9 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__3(x_2, x_7, x_8, x_1); return x_9; } } } } -LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__4(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__4(lean_object* x_1) { _start: { uint8_t x_2; @@ -14605,7 +14633,7 @@ return x_8; } } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__5(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__5(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) { _start: { uint8_t x_5; @@ -14631,7 +14659,7 @@ return x_4; } } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__1(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__1(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; lean_object* x_4; @@ -14640,7 +14668,7 @@ x_4 = l_Lean_SMap_insert___at_Lean_NameSSet_insert___spec__1(x_1, x_2, x_3); return x_4; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2___closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2___closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -14649,7 +14677,7 @@ x_2 = l_Lean_mkHashMapImp___rarg(x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; @@ -14660,15 +14688,15 @@ if (x_4 == 0) { lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_dec(x_2); -x_5 = l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2___closed__1; -x_6 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__1(x_5, x_1); +x_5 = l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2___closed__1; +x_6 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__1(x_5, x_1); x_7 = 1; x_8 = l_Lean_mkEmptyEnvironment___lambda__1___closed__2; x_9 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_9, 0, x_6); lean_ctor_set(x_9, 1, x_8); lean_ctor_set_uint8(x_9, sizeof(void*)*2, x_7); -x_10 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__4(x_9); +x_10 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__4(x_9); return x_10; } else @@ -14679,15 +14707,15 @@ if (x_11 == 0) { lean_object* x_12; lean_object* x_13; uint8_t x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_dec(x_2); -x_12 = l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2___closed__1; -x_13 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__1(x_12, x_1); +x_12 = l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2___closed__1; +x_13 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__1(x_12, x_1); x_14 = 1; x_15 = l_Lean_mkEmptyEnvironment___lambda__1___closed__2; x_16 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_16, 0, x_13); lean_ctor_set(x_16, 1, x_15); lean_ctor_set_uint8(x_16, sizeof(void*)*2, x_14); -x_17 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__4(x_16); +x_17 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__4(x_16); return x_17; } else @@ -14696,23 +14724,23 @@ size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_2 x_18 = 0; x_19 = lean_usize_of_nat(x_2); lean_dec(x_2); -x_20 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__5(x_1, x_18, x_19, x_3); +x_20 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__5(x_1, x_18, x_19, x_3); x_21 = l_Lean_mkHashMapImp___rarg(x_20); lean_dec(x_20); -x_22 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__1(x_21, x_1); +x_22 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__1(x_21, x_1); x_23 = 1; x_24 = l_Lean_mkEmptyEnvironment___lambda__1___closed__2; x_25 = lean_alloc_ctor(0, 2, 1); lean_ctor_set(x_25, 0, x_22); lean_ctor_set(x_25, 1, x_24); lean_ctor_set_uint8(x_25, sizeof(void*)*2, x_23); -x_26 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__4(x_25); +x_26 = l_Lean_SMap_switch___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__4(x_25); return x_26; } } } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__1() { _start: { lean_object* x_1; @@ -14720,17 +14748,17 @@ x_1 = lean_mk_string_unchecked("namespacesExt", 13, 13); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__2() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__2() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = l___auto____x40_Lean_Environment___hyg_2607____closed__1; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__1; x_3 = l_Lean_Name_mkStr2(x_1, x_2); return x_3; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__3() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__3() { _start: { lean_object* x_1; @@ -14739,30 +14767,30 @@ lean_closure_set(x_1, 0, lean_box(0)); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__4() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__4() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__1), 2, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__1), 2, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__5() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__5() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2___boxed), 1, 0); +x_1 = lean_alloc_closure((void*)(l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2___boxed), 1, 0); return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__6() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__6() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_1 = l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__2; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__4; -x_3 = l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__5; -x_4 = l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__3; +x_1 = l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__2; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__4; +x_3 = l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__5; +x_4 = l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__3; x_5 = lean_alloc_ctor(0, 4, 0); lean_ctor_set(x_5, 0, x_1); lean_ctor_set(x_5, 1, x_2); @@ -14771,16 +14799,16 @@ lean_ctor_set(x_5, 3, x_4); return x_5; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__6; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__6; x_3 = l_Lean_registerSimplePersistentEnvExtension___rarg(x_2, x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____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; lean_object* x_7; @@ -14788,12 +14816,12 @@ x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__2(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__2(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____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; lean_object* x_7; @@ -14801,21 +14829,21 @@ x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__3(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__3(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__1___boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__1___boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__1(x_1, x_2); +x_3 = l_Lean_mkStateFromImportedEntries___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__1(x_1, x_2); lean_dec(x_2); return x_3; } } -LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__5___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; lean_object* x_7; @@ -14823,16 +14851,16 @@ x_5 = lean_unbox_usize(x_2); lean_dec(x_2); x_6 = lean_unbox_usize(x_3); lean_dec(x_3); -x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6347____spec__5(x_1, x_5, x_6, x_4); +x_7 = l_Array_foldlMUnsafe_fold___at_Lean_initFn____x40_Lean_Environment___hyg_6443____spec__5(x_1, x_5, x_6, x_4); lean_dec(x_1); return x_7; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2___boxed(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2___boxed(lean_object* x_1) { _start: { lean_object* x_2; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2(x_1); +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2(x_1); lean_dec(x_1); return x_2; } @@ -14873,7 +14901,7 @@ x_1 = l_Lean_Kernel_instInhabitedDiagnostics___closed__1; return x_1; } } -static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6476____closed__1() { +static lean_object* _init_l_Lean_initFn____x40_Lean_Environment___hyg_6572____closed__1() { _start: { lean_object* x_1; lean_object* x_2; @@ -14883,11 +14911,11 @@ lean_closure_set(x_2, 0, x_1); return x_2; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6476_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Environment___hyg_6572_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; -x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6476____closed__1; +x_2 = l_Lean_initFn____x40_Lean_Environment___hyg_6572____closed__1; x_3 = l_Lean_EnvExtensionInterfaceUnsafe_registerExt___rarg(x_2, x_1); return x_3; } @@ -17945,6 +17973,12 @@ l_Lean_throwAlreadyImported___rarg___closed__7 = _init_l_Lean_throwAlreadyImport lean_mark_persistent(l_Lean_throwAlreadyImported___rarg___closed__7); l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1(); lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__1___closed__1); +l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__1(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__1); +l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__2 = _init_l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__2(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__2); +l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__3 = _init_l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__3(); +lean_mark_persistent(l_Array_forInUnsafe_loop___at_Lean_importModulesCore___spec__1___lambda__2___closed__3); l_Lean_finalizeImport___lambda__2___closed__1 = _init_l_Lean_finalizeImport___lambda__2___closed__1(); lean_mark_persistent(l_Lean_finalizeImport___lambda__2___closed__1); l_Array_forInUnsafe_loop___at_Lean_importModules___spec__1___closed__1 = _init_l_Array_forInUnsafe_loop___at_Lean_importModules___spec__1___closed__1(); @@ -17957,21 +17991,21 @@ l_Lean_importModules___closed__1 = _init_l_Lean_importModules___closed__1(); lean_mark_persistent(l_Lean_importModules___closed__1); l_Lean_importModules___boxed__const__1 = _init_l_Lean_importModules___boxed__const__1(); lean_mark_persistent(l_Lean_importModules___boxed__const__1); -l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2___closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2___closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6347____lambda__2___closed__1); -l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__1); -l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__2 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__2(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__2); -l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__3 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__3(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__3); -l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__4 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__4(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__4); -l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__5 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__5(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__5); -l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__6 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__6(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6347____closed__6); -if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_6347_(lean_io_mk_world()); +l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2___closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2___closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6443____lambda__2___closed__1); +l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__1); +l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__2 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__2(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__2); +l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__3 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__3(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__3); +l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__4 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__4(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__4); +l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__5 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__5(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__5); +l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__6 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__6(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6443____closed__6); +if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_6443_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_namespacesExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_namespacesExt); @@ -17983,9 +18017,9 @@ l_Lean_Kernel_instInhabitedDiagnostics___closed__1 = _init_l_Lean_Kernel_instInh lean_mark_persistent(l_Lean_Kernel_instInhabitedDiagnostics___closed__1); l_Lean_Kernel_instInhabitedDiagnostics = _init_l_Lean_Kernel_instInhabitedDiagnostics(); lean_mark_persistent(l_Lean_Kernel_instInhabitedDiagnostics); -l_Lean_initFn____x40_Lean_Environment___hyg_6476____closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6476____closed__1(); -lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6476____closed__1); -if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_6476_(lean_io_mk_world()); +l_Lean_initFn____x40_Lean_Environment___hyg_6572____closed__1 = _init_l_Lean_initFn____x40_Lean_Environment___hyg_6572____closed__1(); +lean_mark_persistent(l_Lean_initFn____x40_Lean_Environment___hyg_6572____closed__1); +if (builtin) {res = l_Lean_initFn____x40_Lean_Environment___hyg_6572_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_diagExt = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_diagExt); diff --git a/stage0/stdlib/Lean/Meta/AppBuilder.c b/stage0/stdlib/Lean/Meta/AppBuilder.c index 9a6233a4bb..4f0791a273 100644 --- a/stage0/stdlib/Lean/Meta/AppBuilder.c +++ b/stage0/stdlib/Lean/Meta/AppBuilder.c @@ -7218,7 +7218,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppMFinal___spec__4___closed__1; x_2 = l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppMFinal___spec__4___closed__2; -x_3 = lean_unsigned_to_nat(412u); +x_3 = lean_unsigned_to_nat(426u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_AppBuilder_0__Lean_Meta_mkAppMFinal___spec__4___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Meta/LevelDefEq.c b/stage0/stdlib/Lean/Meta/LevelDefEq.c index 11585e5630..a6eb81fda4 100644 --- a/stage0/stdlib/Lean/Meta/LevelDefEq.c +++ b/stage0/stdlib/Lean/Meta/LevelDefEq.c @@ -2583,7 +2583,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__1; x_2 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__2; -x_3 = lean_unsigned_to_nat(412u); +x_3 = lean_unsigned_to_nat(426u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_isLevelMVarAssignable___at_Lean_Meta_isLevelDefEqAuxImpl___spec__2___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Solver.c b/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Solver.c index 5de66a8271..93587bdc61 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Solver.c +++ b/stage0/stdlib/Lean/Meta/Tactic/LinearArith/Solver.c @@ -13,31 +13,33 @@ #ifdef __cplusplus extern "C" { #endif -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4070_(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Assignment_get_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_Linear_Cnstr_getBound___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instDecidableEqCnstrKind___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprAssumptionId____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_2702____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166_(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__3; static lean_object* l_Lean_Meta_Linear_instReprVar___closed__1; uint8_t l___private_Lean_Data_Rat_0__Lean_beqRat____x40_Lean_Data_Rat___hyg_36_(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3809_(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__10; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_State_assignment___default; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__24; lean_object* lean_mk_empty_array_with_capacity(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3594____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instReprCnstr; static lean_object* l_Lean_Meta_Linear_pickAssignment_x3f___closed__2; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_resolve(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_size___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_add_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); extern lean_object* l_Int_instInhabited; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instReprAssumptionId; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__17; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__4; static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2___closed__8; LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Linear_getBestBound_x3f___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Linear_instDecidableEqJustification(lean_object*, lean_object*); static lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Linear_Poly_eval_x3f___spec__1___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__1; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__8; static lean_object* l_Lean_Meta_Linear_instInhabitedJustification___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_State_currVar___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instBEqCnstrKind; @@ -49,24 +51,25 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Linear_State_currVar(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Assignment_size___boxed(lean_object*); uint8_t lean_nat_dec_le(lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__2; LEAN_EXPORT uint8_t l_Lean_Meta_Linear_Cnstr_isStrict(lean_object*); lean_object* l_Array_toSubarray___rarg(lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instDecidableEqPoly___boxed(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__14; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__6; uint8_t lean_usize_dec_eq(size_t, size_t); extern uint8_t l_instInhabitedBool; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_CnstrKind_noConfusion___rarg(uint8_t, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3209____boxed(lean_object*, lean_object*); lean_object* lean_array_fget(lean_object*, lean_object*); lean_object* lean_array_fset(lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Linear_instInhabitedCnstrKind; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Cnstr_isUnsat___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_420____closed__1; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__10; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__15; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613_(uint8_t, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3595____boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_pickAssignment_x3f___closed__3; LEAN_EXPORT uint8_t l_Lean_Meta_Linear_CnstrKind_ofNat(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__9; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_CnstrKind_noConfusion(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_combine(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____boxed(lean_object*, lean_object*); @@ -78,75 +81,77 @@ LEAN_EXPORT lean_object* l_panic___at_Lean_Meta_Linear_Cnstr_isUnsat___spec__1(l static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__2; LEAN_EXPORT uint8_t l_Lean_Meta_Linear_instDecidableEqCnstrKind(uint8_t, uint8_t); static lean_object* l_Lean_Meta_Linear_instOrdVar___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__24; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__19; static lean_object* l_Lean_Meta_Linear_Assignment_val___default___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instBEqCnstr; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__20; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_getBestBound_x3f(lean_object*, lean_object*, uint8_t, uint8_t); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3809____boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__21; +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3209_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instInhabitedJustification; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__15; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__7; lean_object* l_Lean_Rat_add(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__11; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__19; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_CnstrKind_noConfusion___rarg___lambda__1___boxed(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__2; static lean_object* l_Lean_Meta_Linear_instInhabitedState___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__6; static lean_object* l_Lean_Meta_Linear_instBEqCnstrKind___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__6; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__19; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__4; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_pickAssignment_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_State_getNumVars___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_AssumptionId_id___default; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__10; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176_(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_CnstrKind_noConfusion___rarg___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_getMaxVarCoeff(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__21; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__4; LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_420_(lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__2; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Cnstr_isUnsat(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_2794____boxed(lean_object*, lean_object*); static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2___closed__3; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__13; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__4; static lean_object* l_Lean_Meta_Linear_Poly_eval_x3f___closed__2; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__14; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Cnstr_getBound___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__10; lean_object* lean_nat_to_int(lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_Meta_Linear_getBestBound_x3f___spec__1(lean_object*, uint8_t, uint8_t, lean_object*, size_t, size_t, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__23; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_420____boxed(lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_2794_(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_combine___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_Lean_Rat_inv(lean_object*); LEAN_EXPORT uint8_t l_Lean_Meta_Linear_instDecidableLtVar(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_Poly_getMaxVarCoeff___closed__1; -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3594_(uint8_t, uint8_t); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instOrdVar; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382_(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__1; static lean_object* l_Lean_Meta_Linear_instInhabitedCnstr___closed__1; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__12; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__6; lean_object* l_outOfBounds___rarg(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_pickAssignment_x3f(lean_object*, uint8_t, lean_object*, uint8_t); static lean_object* l_Lean_Meta_Linear_instReprCnstrKind___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__8; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4070____boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__1; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__5; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__12; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__17; -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337_(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__22; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3810____boxed(lean_object*, lean_object*); lean_object* lean_array_to_list(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_instReprAssumptionId___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instDecidableEqCnstr___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__2; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__9; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__20; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_State_getBestUpperBound_x3f___boxed(lean_object*); static lean_object* l_Lean_Meta_Linear_instReprJustification___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_scale(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612_(uint8_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_solve(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Subarray_forInUnsafe_loop___at_Lean_Meta_Linear_Cnstr_getBound___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2___closed__2; @@ -155,8 +160,7 @@ lean_object* l_Int_repr(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instReprJustification; LEAN_EXPORT lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instInhabitedAssumptionId; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__4; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__5; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__2; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_CnstrKind_noConfusion___rarg___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instDecidableEqJustification___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instInhabitedVar; @@ -170,40 +174,35 @@ static lean_object* l_Lean_Meta_Linear_Cnstr_isUnsat___closed__4; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__7; LEAN_EXPORT uint8_t l_Lean_Meta_Linear_instDecidableEqPoly(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_State_getBestUpperBound_x3f(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__18; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__20; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instInhabitedAssignment; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Assignment_size(lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__9; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_eval_x3f(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instReprPoly; static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2___closed__5; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__18; LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqAssumptionId____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_2612_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_combine_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3595_(uint8_t, uint8_t); static lean_object* l_Lean_Meta_Linear_Cnstr_isUnsat___closed__3; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__11; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__6; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_get___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__7; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_76____boxed(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__13; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__3; +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4071_(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_ordVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_25____boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_getMaxVarCoeff___boxed(lean_object*); static lean_object* l_Lean_Meta_Linear_Cnstr_isUnsat___closed__1; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__1; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_420____closed__2; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__8; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_State_getNumVars(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instReprCnstrKind; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Assignment_shrink___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_combine_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__22; LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_ordVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_25_(lean_object*, lean_object*); -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3208_(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__8; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__9; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__8; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__16; LEAN_EXPORT lean_object* l_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__1(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_scale___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__4; @@ -216,27 +215,23 @@ lean_object* lean_string_length(lean_object*); lean_object* l_Int_instDecidableEq___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__11; LEAN_EXPORT uint8_t l_Lean_Meta_Linear_instDecidableEqAssumptionId(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__7; static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2___closed__10; uint8_t lean_nat_dec_eq(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_instBEqCnstr___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_State_getBestLowerBound_x3f(lean_object*); static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2___closed__9; uint8_t lean_nat_dec_lt(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____boxed(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__3; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__11; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Cnstr_getBound(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__3; lean_object* l_instDecidableEqProd___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instLTVar; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_State_getBestLowerBound_x3f___boxed(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Cnstr_isStrict___boxed(lean_object*); lean_object* l_Array_shrink___rarg(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__3; LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprAssumptionId____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_2702_(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_instReprCnstr___closed__1; uint8_t l_Lean_Rat_lt(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__2; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_pickAssignment_x3f___closed__1; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instInhabitedCnstr; lean_object* l_Std_Format_joinSep___at_Prod_repr___spec__1(lean_object*, lean_object*); @@ -250,21 +245,24 @@ uint8_t lean_int_dec_lt(lean_object*, lean_object*); uint8_t l_Array_instDecidableEq___rarg(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instDecidableEqAssumptionId___boxed(lean_object*, lean_object*); lean_object* lean_nat_sub(lean_object*, lean_object*); +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3810_(lean_object*, lean_object*); static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2___closed__1; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__12; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Meta_Linear_Poly_scale___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_420____closed__3; static lean_object* l_Lean_Meta_Linear_Cnstr_isUnsat___closed__2; -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__7; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4071____boxed(lean_object*, lean_object*); static lean_object* l_Lean_Meta_Linear_resolve___closed__1; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__18; lean_object* l_Lean_Rat_floor(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_size(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__11; static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2___closed__7; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_add(lean_object*, lean_object*); lean_object* l_Array_back___rarg(lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); lean_object* l_Lean_Rat_ceil(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__23; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_resolve___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instInhabitedPoly; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__3; @@ -272,20 +270,20 @@ LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__9; size_t lean_usize_add(size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____boxed(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__6; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__1; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Meta_Linear_Poly_eval_x3f___spec__1(lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__16; lean_object* lean_array_uget(lean_object*, size_t); size_t lean_array_size(lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Assignment_get_x3f___boxed(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__5; lean_object* lean_int_add(lean_object*, lean_object*); static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__11; +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338_(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4; uint8_t lean_int_dec_eq(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____boxed(lean_object*, lean_object*); uint8_t l_Lean_Rat_isInt(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__6; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__14; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_eval_x3f___lambda__1(lean_object*, lean_object*); lean_object* l_Lean_Rat_sub(lean_object*, lean_object*); @@ -295,12 +293,11 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instDecidableLtVar___boxed(lean_obje LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_eval_x3f___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_CnstrKind_ofNat___boxed(lean_object*); lean_object* lean_int_neg(lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3208____boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__5; uint8_t lean_nat_dec_le(lean_object*, lean_object*); uint8_t lean_usize_dec_lt(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_add_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_nat_add(lean_object*, lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Assignment_val___default; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instReprVar; static lean_object* l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2___closed__6; @@ -314,14 +311,17 @@ LEAN_EXPORT lean_object* l_Lean_Meta_Linear_instDecidableEqVar___boxed(lean_obje static lean_object* l_Lean_Meta_Linear_Poly_eval_x3f___closed__1; lean_object* lean_array_uset(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_Meta_Linear_Poly_getMaxVar___boxed(lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__13; lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__10; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__10; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__7; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__3; LEAN_EXPORT lean_object* l_Lean_Meta_Linear_CnstrKind_toCtorIdx(uint8_t); -static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__12; LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__3(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____boxed(lean_object*, lean_object*); +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__2; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__13; static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____closed__17; +static lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__8; static lean_object* _init_l_Lean_Meta_Linear_instInhabitedVar() { _start: { @@ -2914,7 +2914,7 @@ x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3208_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3209_(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -2940,7 +2940,7 @@ return x_12; else { uint8_t x_13; -x_13 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3208_(x_4, x_8); +x_13 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3209_(x_4, x_8); if (x_13 == 0) { uint8_t x_14; @@ -2992,11 +2992,11 @@ return x_22; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3208____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3209____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3208_(x_1, x_2); +x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3209_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -3007,7 +3007,7 @@ static lean_object* _init_l_Lean_Meta_Linear_instBEqJustification___closed__1() _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3208____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3209____boxed), 2, 0); return x_1; } } @@ -3019,7 +3019,7 @@ x_1 = l_Lean_Meta_Linear_instBEqJustification___closed__1; return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__1() { _start: { lean_object* x_1; @@ -3027,21 +3027,21 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Linear.Justification.combine", 38, 38) return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__1; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__2; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__2; x_2 = lean_box(1); x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3049,7 +3049,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4() { _start: { lean_object* x_1; lean_object* x_2; @@ -3058,7 +3058,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -3067,7 +3067,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__6() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__6() { _start: { lean_object* x_1; @@ -3075,21 +3075,21 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Linear.Justification.assumption", 41, return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__7() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__6; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__8() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__8() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__7; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__7; x_2 = lean_box(1); x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -3097,7 +3097,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338_(lean_object* x_1, lean_object* x_2) { _start: { if (lean_obj_tag(x_1) == 0) @@ -3116,20 +3116,20 @@ x_7 = lean_unsigned_to_nat(1024u); x_8 = lean_nat_dec_le(x_7, x_2); x_9 = l_Prod_repr___at___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprPoly____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_382____spec__2___closed__1; x_10 = lean_int_dec_lt(x_3, x_9); -x_11 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337_(x_4, x_7); +x_11 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338_(x_4, x_7); x_12 = lean_int_dec_lt(x_5, x_9); -x_13 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337_(x_6, x_7); +x_13 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338_(x_6, x_7); if (x_8 == 0) { lean_object* x_48; -x_48 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4; +x_48 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4; x_14 = x_48; goto block_47; } else { lean_object* x_49; -x_49 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5; +x_49 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5; x_14 = x_49; goto block_47; } @@ -3160,7 +3160,7 @@ goto block_41; block_41: { 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_16 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__3; +x_16 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__3; x_17 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_17, 0, x_16); lean_ctor_set(x_17, 1, x_15); @@ -3239,14 +3239,14 @@ lean_dec(x_1); x_51 = lean_unsigned_to_nat(1024u); x_52 = lean_nat_dec_le(x_51, x_2); x_53 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprAssumptionId____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_2702_(x_50, x_51); -x_54 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__8; +x_54 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__8; x_55 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_55, 0, x_54); lean_ctor_set(x_55, 1, x_53); if (x_52 == 0) { lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; -x_56 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4; +x_56 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4; x_57 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_57, 0, x_56); lean_ctor_set(x_57, 1, x_55); @@ -3260,7 +3260,7 @@ return x_60; else { lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; -x_61 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5; +x_61 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5; x_62 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_62, 0, x_61); lean_ctor_set(x_62, 1, x_55); @@ -3274,11 +3274,11 @@ return x_65; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337_(x_1, x_2); +x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338_(x_1, x_2); lean_dec(x_2); return x_3; } @@ -3287,7 +3287,7 @@ static lean_object* _init_l_Lean_Meta_Linear_instReprJustification___closed__1() _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____boxed), 2, 0); return x_1; } } @@ -3478,7 +3478,7 @@ x_6 = lean_box(x_5); return x_6; } } -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3594_(uint8_t x_1, uint8_t x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3595_(uint8_t x_1, uint8_t x_2) { _start: { lean_object* x_3; lean_object* x_4; uint8_t x_5; @@ -3490,7 +3490,7 @@ lean_dec(x_3); return x_5; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3594____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3595____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; @@ -3498,7 +3498,7 @@ x_3 = lean_unbox(x_1); lean_dec(x_1); x_4 = lean_unbox(x_2); lean_dec(x_2); -x_5 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3594_(x_3, x_4); +x_5 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3595_(x_3, x_4); x_6 = lean_box(x_5); return x_6; } @@ -3507,7 +3507,7 @@ static lean_object* _init_l_Lean_Meta_Linear_instBEqCnstrKind___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3594____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3595____boxed), 2, 0); return x_1; } } @@ -3519,7 +3519,7 @@ x_1 = l_Lean_Meta_Linear_instBEqCnstrKind___closed__1; return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__1() { _start: { lean_object* x_1; @@ -3527,33 +3527,33 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Linear.CnstrKind.eq", 29, 29); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__1; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4; -x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__2; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4; +x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__4() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__3; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__3; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -3561,23 +3561,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__5() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__5() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5; -x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__2; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5; +x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__6() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__6() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__5; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__5; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -3585,7 +3585,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__7() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__7() { _start: { lean_object* x_1; @@ -3593,33 +3593,33 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Linear.CnstrKind.div", 30, 30); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__8() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__8() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__7; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__7; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__9() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__9() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4; -x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__8; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4; +x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__8; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__10() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__10() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__9; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__9; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -3627,23 +3627,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__11() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__11() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5; -x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__8; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5; +x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__8; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__12() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__12() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__11; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__11; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -3651,7 +3651,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__13() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__13() { _start: { lean_object* x_1; @@ -3659,33 +3659,33 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Linear.CnstrKind.lt", 29, 29); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__14() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__14() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__13; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__13; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__15() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__15() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4; -x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__14; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4; +x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__14; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__16() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__16() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__15; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__15; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -3693,23 +3693,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__17() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__17() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5; -x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__14; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5; +x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__14; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__18() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__18() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__17; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__17; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -3717,7 +3717,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__19() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__19() { _start: { lean_object* x_1; @@ -3725,33 +3725,33 @@ x_1 = lean_mk_string_unchecked("Lean.Meta.Linear.CnstrKind.le", 29, 29); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__20() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__20() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__19; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__19; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__21() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__21() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4; -x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__20; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4; +x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__20; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__22() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__22() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__21; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__21; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -3759,23 +3759,23 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__23() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__23() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5; -x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__20; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5; +x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__20; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__24() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__24() { _start: { lean_object* x_1; uint8_t x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__23; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__23; x_2 = 0; x_3 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_3, 0, x_1); @@ -3783,7 +3783,7 @@ lean_ctor_set_uint8(x_3, sizeof(void*)*1, x_2); return x_3; } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612_(uint8_t x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613_(uint8_t x_1, lean_object* x_2) { _start: { switch (x_1) { @@ -3795,14 +3795,14 @@ 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__4; +x_5 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__4; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__6; +x_7 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__6; x_8 = l_Repr_addAppParen(x_7, x_2); return x_8; } @@ -3815,14 +3815,14 @@ 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__10; +x_11 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__10; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__12; +x_13 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__12; x_14 = l_Repr_addAppParen(x_13, x_2); return x_14; } @@ -3835,14 +3835,14 @@ x_16 = lean_nat_dec_le(x_15, x_2); if (x_16 == 0) { lean_object* x_17; lean_object* x_18; -x_17 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__16; +x_17 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__16; x_18 = l_Repr_addAppParen(x_17, x_2); return x_18; } else { lean_object* x_19; lean_object* x_20; -x_19 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__18; +x_19 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__18; x_20 = l_Repr_addAppParen(x_19, x_2); return x_20; } @@ -3855,14 +3855,14 @@ x_22 = lean_nat_dec_le(x_21, x_2); if (x_22 == 0) { lean_object* x_23; lean_object* x_24; -x_23 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__22; +x_23 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__22; x_24 = l_Repr_addAppParen(x_23, x_2); return x_24; } else { lean_object* x_25; lean_object* x_26; -x_25 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__24; +x_25 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__24; x_26 = l_Repr_addAppParen(x_25, x_2); return x_26; } @@ -3870,13 +3870,13 @@ return x_26; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612_(x_3, x_2); +x_4 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613_(x_3, x_2); lean_dec(x_2); return x_4; } @@ -3885,7 +3885,7 @@ static lean_object* _init_l_Lean_Meta_Linear_instReprCnstrKind___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____boxed), 2, 0); return x_1; } } @@ -3921,7 +3921,7 @@ x_1 = l_Lean_Meta_Linear_instInhabitedCnstr___closed__1; return x_1; } } -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3809_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3810_(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; @@ -3970,11 +3970,11 @@ return x_17; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3809____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3810____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3809_(x_1, x_2); +x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3810_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -3985,7 +3985,7 @@ LEAN_EXPORT uint8_t l_Lean_Meta_Linear_instDecidableEqCnstr(lean_object* x_1, le _start: { uint8_t x_3; -x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3809_(x_1, x_2); +x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_decEqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3810_(x_1, x_2); return x_3; } } @@ -4000,7 +4000,7 @@ x_4 = lean_box(x_3); return x_4; } } -LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4070_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT uint8_t l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4071_(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; @@ -4012,7 +4012,7 @@ x_7 = lean_ctor_get_uint8(x_2, sizeof(void*)*3); x_8 = lean_ctor_get(x_2, 0); x_9 = lean_ctor_get(x_2, 1); x_10 = lean_ctor_get(x_2, 2); -x_11 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3594_(x_3, x_7); +x_11 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3595_(x_3, x_7); if (x_11 == 0) { uint8_t x_12; @@ -4042,18 +4042,18 @@ return x_16; else { uint8_t x_17; -x_17 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3208_(x_6, x_10); +x_17 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3209_(x_6, x_10); return x_17; } } } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4070____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4071____boxed(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; -x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4070_(x_1, x_2); +x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4071_(x_1, x_2); lean_dec(x_2); lean_dec(x_1); x_4 = lean_box(x_3); @@ -4064,7 +4064,7 @@ static lean_object* _init_l_Lean_Meta_Linear_instBEqCnstr___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4070____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_beqCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4071____boxed), 2, 0); return x_1; } } @@ -4076,7 +4076,7 @@ x_1 = l_Lean_Meta_Linear_instBEqCnstr___closed__1; return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__1() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__1() { _start: { lean_object* x_1; @@ -4084,33 +4084,33 @@ x_1 = lean_mk_string_unchecked("kind", 4, 4); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__2() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__2() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__1; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__3() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; x_1 = lean_box(0); -x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__2; +x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__4() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__4() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__3; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__3; x_2 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprVar____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_166____closed__5; x_3 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -4118,7 +4118,7 @@ lean_ctor_set(x_3, 1, x_2); return x_3; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__5() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__5() { _start: { lean_object* x_1; lean_object* x_2; @@ -4127,7 +4127,7 @@ x_2 = lean_nat_to_int(x_1); return x_2; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__6() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__6() { _start: { lean_object* x_1; @@ -4135,17 +4135,17 @@ x_1 = lean_mk_string_unchecked("lhs", 3, 3); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__7() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__7() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__6; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__8() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__8() { _start: { lean_object* x_1; @@ -4153,17 +4153,17 @@ x_1 = lean_mk_string_unchecked("rhs", 3, 3); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__9() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__9() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__8; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__10() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__10() { _start: { lean_object* x_1; @@ -4171,24 +4171,24 @@ x_1 = lean_mk_string_unchecked("jst", 3, 3); return x_1; } } -static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__11() { +static lean_object* _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__11() { _start: { lean_object* x_1; lean_object* x_2; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__10; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__10; 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_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176_(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177_(lean_object* x_1, lean_object* x_2) { _start: { uint8_t x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; x_3 = lean_ctor_get_uint8(x_1, sizeof(void*)*3); x_4 = lean_unsigned_to_nat(0u); -x_5 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612_(x_3, x_4); -x_6 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__5; +x_5 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613_(x_3, x_4); +x_6 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__5; x_7 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_7, 0, x_6); lean_ctor_set(x_7, 1, x_5); @@ -4196,7 +4196,7 @@ x_8 = 0; x_9 = lean_alloc_ctor(6, 1, 1); lean_ctor_set(x_9, 0, x_7); lean_ctor_set_uint8(x_9, sizeof(void*)*1, x_8); -x_10 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__4; +x_10 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__4; x_11 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_11, 0, x_10); lean_ctor_set(x_11, 1, x_9); @@ -4208,7 +4208,7 @@ x_14 = lean_box(1); x_15 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_15, 0, x_13); lean_ctor_set(x_15, 1, x_14); -x_16 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__7; +x_16 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__7; x_17 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_17, 0, x_15); lean_ctor_set(x_17, 1, x_16); @@ -4235,7 +4235,7 @@ lean_ctor_set(x_26, 1, x_12); x_27 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_27, 0, x_26); lean_ctor_set(x_27, 1, x_14); -x_28 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__9; +x_28 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__9; x_29 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_29, 0, x_27); lean_ctor_set(x_29, 1, x_28); @@ -4249,7 +4249,7 @@ x_33 = lean_int_dec_lt(x_31, x_32); x_34 = lean_ctor_get(x_1, 2); lean_inc(x_34); lean_dec(x_1); -x_35 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337_(x_34, x_4); +x_35 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338_(x_34, x_4); x_36 = lean_alloc_ctor(4, 2, 0); lean_ctor_set(x_36, 0, x_22); lean_ctor_set(x_36, 1, x_35); @@ -4278,7 +4278,7 @@ lean_ctor_set(x_43, 1, x_12); x_44 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_44, 0, x_43); lean_ctor_set(x_44, 1, x_14); -x_45 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__11; +x_45 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__11; x_46 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_46, 0, x_44); lean_ctor_set(x_46, 1, x_45); @@ -4328,7 +4328,7 @@ lean_ctor_set(x_62, 1, x_12); x_63 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_63, 0, x_62); lean_ctor_set(x_63, 1, x_14); -x_64 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__11; +x_64 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__11; x_65 = lean_alloc_ctor(5, 2, 0); lean_ctor_set(x_65, 0, x_63); lean_ctor_set(x_65, 1, x_64); @@ -4357,11 +4357,11 @@ return x_74; } } } -LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____boxed(lean_object* x_1, lean_object* x_2) { +LEAN_EXPORT lean_object* l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____boxed(lean_object* x_1, lean_object* x_2) { _start: { lean_object* x_3; -x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176_(x_1, x_2); +x_3 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177_(x_1, x_2); lean_dec(x_2); return x_3; } @@ -4370,7 +4370,7 @@ static lean_object* _init_l_Lean_Meta_Linear_instReprCnstr___closed__1() { _start: { lean_object* x_1; -x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____boxed), 2, 0); +x_1 = lean_alloc_closure((void*)(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____boxed), 2, 0); return x_1; } } @@ -5320,7 +5320,7 @@ static lean_object* _init_l_Lean_Meta_Linear_pickAssignment_x3f___closed__1() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4; x_2 = lean_unsigned_to_nat(1u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -5341,7 +5341,7 @@ static lean_object* _init_l_Lean_Meta_Linear_pickAssignment_x3f___closed__3() { _start: { lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5; +x_1 = l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5; x_2 = lean_unsigned_to_nat(1u); x_3 = lean_alloc_ctor(0, 2, 0); lean_ctor_set(x_3, 0, x_1); @@ -6654,22 +6654,22 @@ l_Lean_Meta_Linear_instBEqJustification___closed__1 = _init_l_Lean_Meta_Linear_i lean_mark_persistent(l_Lean_Meta_Linear_instBEqJustification___closed__1); l_Lean_Meta_Linear_instBEqJustification = _init_l_Lean_Meta_Linear_instBEqJustification(); lean_mark_persistent(l_Lean_Meta_Linear_instBEqJustification); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__1 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__1); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__2 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__2); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__3 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__3); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__4); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__5); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__6 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__6); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__7 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__7); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__8 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3337____closed__8); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__1 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__1); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__2 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__2); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__3 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__3); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__4); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__5); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__6 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__6); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__7 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__7); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__8 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprJustification____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3338____closed__8); l_Lean_Meta_Linear_instReprJustification___closed__1 = _init_l_Lean_Meta_Linear_instReprJustification___closed__1(); lean_mark_persistent(l_Lean_Meta_Linear_instReprJustification___closed__1); l_Lean_Meta_Linear_instReprJustification = _init_l_Lean_Meta_Linear_instReprJustification(); @@ -6681,54 +6681,54 @@ l_Lean_Meta_Linear_instBEqCnstrKind___closed__1 = _init_l_Lean_Meta_Linear_instB lean_mark_persistent(l_Lean_Meta_Linear_instBEqCnstrKind___closed__1); l_Lean_Meta_Linear_instBEqCnstrKind = _init_l_Lean_Meta_Linear_instBEqCnstrKind(); lean_mark_persistent(l_Lean_Meta_Linear_instBEqCnstrKind); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__1 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__1); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__2 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__2); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__3 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__3); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__4 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__4); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__5 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__5); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__6 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__6); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__7 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__7); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__8 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__8); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__9 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__9(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__9); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__10 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__10(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__10); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__11 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__11(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__11); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__12 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__12(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__12); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__13 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__13(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__13); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__14 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__14(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__14); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__15 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__15(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__15); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__16 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__16(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__16); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__17 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__17(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__17); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__18 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__18(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__18); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__19 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__19(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__19); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__20 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__20(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__20); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__21 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__21(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__21); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__22 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__22(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__22); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__23 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__23(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__23); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__24 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__24(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3612____closed__24); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__1 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__1); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__2 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__2); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__3 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__3); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__4 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__4); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__5 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__5); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__6 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__6); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__7 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__7); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__8 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__8); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__9 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__9(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__9); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__10 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__10(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__10); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__11 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__11(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__11); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__12 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__12(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__12); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__13 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__13(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__13); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__14 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__14(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__14); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__15 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__15(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__15); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__16 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__16(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__16); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__17 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__17(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__17); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__18 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__18(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__18); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__19 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__19(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__19); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__20 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__20(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__20); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__21 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__21(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__21); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__22 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__22(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__22); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__23 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__23(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__23); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__24 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__24(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstrKind____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_3613____closed__24); l_Lean_Meta_Linear_instReprCnstrKind___closed__1 = _init_l_Lean_Meta_Linear_instReprCnstrKind___closed__1(); lean_mark_persistent(l_Lean_Meta_Linear_instReprCnstrKind___closed__1); l_Lean_Meta_Linear_instReprCnstrKind = _init_l_Lean_Meta_Linear_instReprCnstrKind(); @@ -6741,28 +6741,28 @@ l_Lean_Meta_Linear_instBEqCnstr___closed__1 = _init_l_Lean_Meta_Linear_instBEqCn lean_mark_persistent(l_Lean_Meta_Linear_instBEqCnstr___closed__1); l_Lean_Meta_Linear_instBEqCnstr = _init_l_Lean_Meta_Linear_instBEqCnstr(); lean_mark_persistent(l_Lean_Meta_Linear_instBEqCnstr); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__1 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__1(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__1); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__2 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__2(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__2); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__3 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__3(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__3); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__4 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__4(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__4); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__5 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__5(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__5); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__6 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__6(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__6); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__7 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__7(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__7); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__8 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__8(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__8); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__9 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__9(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__9); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__10 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__10(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__10); -l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__11 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__11(); -lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4176____closed__11); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__1 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__1(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__1); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__2 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__2(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__2); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__3 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__3(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__3); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__4 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__4(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__4); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__5 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__5(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__5); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__6 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__6(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__6); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__7 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__7(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__7); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__8 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__8(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__8); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__9 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__9(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__9); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__10 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__10(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__10); +l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__11 = _init_l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__11(); +lean_mark_persistent(l___private_Lean_Meta_Tactic_LinearArith_Solver_0__Lean_Meta_Linear_reprCnstr____x40_Lean_Meta_Tactic_LinearArith_Solver___hyg_4177____closed__11); l_Lean_Meta_Linear_instReprCnstr___closed__1 = _init_l_Lean_Meta_Linear_instReprCnstr___closed__1(); lean_mark_persistent(l_Lean_Meta_Linear_instReprCnstr___closed__1); l_Lean_Meta_Linear_instReprCnstr = _init_l_Lean_Meta_Linear_instReprCnstr(); diff --git a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c index 4e50c450ae..4cd3bcd113 100644 --- a/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c +++ b/stage0/stdlib/Lean/Meta/Tactic/Simp/Rewrite.c @@ -9305,7 +9305,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__1; x_2 = l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__2; -x_3 = lean_unsigned_to_nat(412u); +x_3 = lean_unsigned_to_nat(426u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_isLevelMVarAssignable___at___private_Lean_Meta_Tactic_Simp_Rewrite_0__Lean_Meta_Simp_tryTheoremCore_go___spec__5___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); diff --git a/stage0/stdlib/Lean/MetavarContext.c b/stage0/stdlib/Lean/MetavarContext.c index f97162a2a9..e50fcd6373 100644 --- a/stage0/stdlib/Lean/MetavarContext.c +++ b/stage0/stdlib/Lean/MetavarContext.c @@ -44,7 +44,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore__ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__11___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__34___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_isLevelMVarAssignable___rarg___lambda__1(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_MetavarContext_instInhabited; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__28___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_find_x3f___at_Lean_MetavarContext_getDecl___spec__1(lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimMVar___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -675,6 +674,7 @@ static lean_object* l_Lean_MetavarContext_MkBinding_instMonadHashMapCacheAdapter LEAN_EXPORT lean_object* l_Lean_instantiateMVars___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__7(lean_object*, lean_object*); lean_object* l_Array_feraseIdx___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_addExprMVarDeclExp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); +LEAN_EXPORT lean_object* lean_assign_lmvar(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at_Lean_instantiateLCtxMVars___spec__3___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at_Lean_exprDependsOn_x27___spec__14(lean_object*, lean_object*); lean_object* lean_nat_to_int(lean_object*); @@ -785,6 +785,7 @@ LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_co LEAN_EXPORT lean_object* l_panic___at_Lean_isLevelMVarAssignable___spec__4___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_indexOfAux___at_Lean_MetavarContext_setMVarUserName___spec__3___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__16___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +lean_object* lean_instantiate_level_mvars(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_getLevelMVarAssignment_x3f___spec__2___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_assignLevelMVar___at_Lean_MetavarContext_LevelMVarToParam_visitLevel___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_assign___at_Lean_instantiateMVarsCore___spec__4(lean_object*); @@ -1044,6 +1045,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars__ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateMVarsCore___spec__16(lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__89(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_reprMetavarKind____x40_Lean_MetavarContext___hyg_123____boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* lean_assign_mvar(lean_object*, lean_object*, lean_object*); lean_object* lean_expr_lower_loose_bvars(lean_object*, lean_object*, lean_object*); static lean_object* l_Array_mapMUnsafe_map___at_Lean_MetavarContext_MkBinding_instToStringException___spec__1___closed__1; LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAtCollisionNodeAux___at_Lean_MVarId_assign___spec__4(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1268,6 +1270,7 @@ LEAN_EXPORT lean_object* l_List_anyM___at_Lean_hasAssignableMVar___spec__1___rar LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__41___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__95___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__38___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* lean_get_lmvar_assignment(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__24(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at___private_Lean_MetavarContext_0__Lean_MetavarContext_MkBinding_elimApp___spec__15___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_localDeclDependsOn_x27___spec__7___boxed(lean_object*, lean_object*, lean_object*); @@ -1282,6 +1285,7 @@ LEAN_EXPORT lean_object* l_Lean_MVarId_setFVarBinderInfo___rarg___lambda__1(lean LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___at_Lean_localDeclDependsOn_x27___spec__60___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* lean_mk_metavar_ctx(lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__27___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); +static lean_object* l_Lean_instInhabitedMetavarContext___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__43___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_findLevelDepth_x3f___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_getExprAssignmentDomain___boxed(lean_object*); @@ -1343,6 +1347,7 @@ LEAN_EXPORT lean_object* l_Lean_Expr_withAppAux___at_Lean_instantiateExprMVars__ LEAN_EXPORT lean_object* l_List_mapM_loop___at_Lean_instantiateMVarsCore___spec__9___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_findExprDependsOn___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux___at_Lean_MVarId_assign___spec__2(lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instInhabitedMetavarContext; LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__55___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MetavarContext_levelAssignDepth___default; static lean_object* l_Lean_instInhabitedMetavarDecl___closed__8; @@ -1522,6 +1527,7 @@ static lean_object* l_Lean_MetavarContext_LevelMVarToParam_instMonadMCtxM___clos LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitApp___at_Lean_localDeclDependsOn_x27___spec__9(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__29___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_List_reverse___rarg(lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateExprMVarsImp___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__26(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn_x27___spec__24___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_instantiateMVarDeclMVars___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -1688,11 +1694,13 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars__ LEAN_EXPORT lean_object* l___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visit___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__75___boxed(lean_object*, lean_object*, lean_object*); lean_object* lean_array_get_size(lean_object*); lean_object* l_Lean_LocalDecl_toExpr(lean_object*); +lean_object* lean_instantiate_expr_mvars(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_localDeclDependsOn___spec__30(lean_object*, lean_object*, size_t, size_t); static lean_object* l_Lean_MetavarContext_getExprAssignmentDomain___closed__1; LEAN_EXPORT lean_object* l_Lean_MVarId_modifyDecl(lean_object*); LEAN_EXPORT lean_object* l_Lean_assignLevelMVar___rarg___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__42___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); +LEAN_EXPORT lean_object* lean_get_mvar_assignment(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_MVarId_modifyLCtx(lean_object*); LEAN_EXPORT lean_object* l_ReaderT_bind___at_Lean_MetavarContext_LevelMVarToParam_instMonadMCtxM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__96___boxed(lean_object*, lean_object*, lean_object*, lean_object*); @@ -1722,6 +1730,7 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars__ uint8_t l___private_Lean_Expr_0__Lean_beqBinderInfo____x40_Lean_Expr___hyg_404_(uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAux___at_Lean_MetavarContext_findUserName_x3f___spec__2(lean_object*, size_t, lean_object*); LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at_Lean_localDeclDependsOn___spec__36___boxed(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVarsImp___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__21___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at___private_Lean_MetavarContext_0__Lean_DependsOn_dep_visitMain___spec__1(lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at_Lean_exprDependsOn_x27___spec__5(lean_object*); @@ -1730,6 +1739,7 @@ LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insert___at_Lean_MetavarContex LEAN_EXPORT lean_object* l_Lean_MetavarContext_lDepth___default; lean_object* lean_nat_add(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__36___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* lean_get_delayed_mvar_assignment(lean_object*, lean_object*); lean_object* l_Lean_PersistentHashMap_getCollisionNodeSize___rarg(lean_object*); LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__106___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_isLevelMVarAssignable___spec__4(lean_object*); @@ -1807,7 +1817,6 @@ LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars__ LEAN_EXPORT lean_object* l_Lean_MetavarContext_MkBinding_instMonadMCtxM___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__38___rarg(lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*, lean_object*); LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at_Lean_MetavarContext_MkBinding_collectForwardDeps___spec__78(lean_object*, lean_object*); -static lean_object* l_Lean_MetavarContext_instInhabited___closed__1; LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_instantiateExprMVars___spec__30___rarg___lambda__1(size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___at_Lean_instantiateExprMVars___spec__9___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_MetavarContext_MkBinding_instToStringException___closed__4; @@ -2640,6 +2649,33 @@ x_1 = l_Lean_instInhabitedMetavarDecl___closed__2; return x_1; } } +static lean_object* _init_l_Lean_instInhabitedMetavarContext___closed__1() { +_start: +{ +lean_object* x_1; lean_object* x_2; lean_object* x_3; +x_1 = lean_unsigned_to_nat(0u); +x_2 = l_Lean_instInhabitedMetavarDecl___closed__2; +x_3 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_3, 0, x_1); +lean_ctor_set(x_3, 1, x_1); +lean_ctor_set(x_3, 2, x_1); +lean_ctor_set(x_3, 3, x_2); +lean_ctor_set(x_3, 4, x_2); +lean_ctor_set(x_3, 5, x_2); +lean_ctor_set(x_3, 6, x_2); +lean_ctor_set(x_3, 7, x_2); +lean_ctor_set(x_3, 8, x_2); +return x_3; +} +} +static lean_object* _init_l_Lean_instInhabitedMetavarContext() { +_start: +{ +lean_object* x_1; +x_1 = l_Lean_instInhabitedMetavarContext___closed__1; +return x_1; +} +} LEAN_EXPORT lean_object* l_StateT_get___at_Lean_instMonadMCtxStateMMetavarContext___spec__1(lean_object* x_1) { _start: { @@ -3070,6 +3106,18 @@ lean_dec(x_2); return x_4; } } +LEAN_EXPORT lean_object* lean_get_lmvar_assignment(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 6); +lean_inc(x_3); +lean_dec(x_1); +x_4 = l_Lean_PersistentHashMap_find_x3f___at_Lean_getLevelMVarAssignment_x3f___spec__1(x_3, x_2); +lean_dec(x_2); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_findAtAux___at_Lean_MetavarContext_getExprAssignmentCore_x3f___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { _start: { @@ -3315,6 +3363,18 @@ lean_dec(x_2); return x_3; } } +LEAN_EXPORT lean_object* lean_get_mvar_assignment(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 7); +lean_inc(x_3); +lean_dec(x_1); +x_4 = l_Lean_PersistentHashMap_find_x3f___at_Lean_MetavarContext_getExprAssignmentCore_x3f___spec__1(x_3, x_2); +lean_dec(x_2); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_getExprMVarAssignment_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -3608,6 +3668,18 @@ lean_dec(x_2); return x_3; } } +LEAN_EXPORT lean_object* lean_get_delayed_mvar_assignment(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; lean_object* x_4; +x_3 = lean_ctor_get(x_1, 8); +lean_inc(x_3); +lean_dec(x_1); +x_4 = l_Lean_PersistentHashMap_find_x3f___at_Lean_MetavarContext_getDelayedMVarAssignmentCore_x3f___spec__1(x_3, x_2); +lean_dec(x_2); +return x_4; +} +} LEAN_EXPORT lean_object* l_Lean_getDelayedMVarAssignment_x3f___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) { _start: { @@ -4621,7 +4693,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_isLevelMVarAssignable___rarg___lambda__1___closed__1; x_2 = l_Lean_isLevelMVarAssignable___rarg___lambda__1___closed__2; -x_3 = lean_unsigned_to_nat(412u); +x_3 = lean_unsigned_to_nat(426u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_isLevelMVarAssignable___rarg___lambda__1___closed__3; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -4956,7 +5028,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_isLevelMVarAssignable___rarg___lambda__1___closed__1; x_2 = l_Lean_MetavarContext_getDecl___closed__1; -x_3 = lean_unsigned_to_nat(417u); +x_3 = lean_unsigned_to_nat(431u); x_4 = lean_unsigned_to_nat(17u); x_5 = l_Lean_MetavarContext_getDecl___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -7129,6 +7201,56 @@ x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_assignLevelMVar___spec__2(x_1 return x_8; } } +LEAN_EXPORT lean_object* lean_assign_lmvar(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_1, 6); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_assignLevelMVar___spec__1(x_5, x_2, x_3); +lean_ctor_set(x_1, 6, x_6); +return x_1; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_7 = lean_ctor_get(x_1, 0); +x_8 = lean_ctor_get(x_1, 1); +x_9 = lean_ctor_get(x_1, 2); +x_10 = lean_ctor_get(x_1, 3); +x_11 = lean_ctor_get(x_1, 4); +x_12 = lean_ctor_get(x_1, 5); +x_13 = lean_ctor_get(x_1, 6); +x_14 = lean_ctor_get(x_1, 7); +x_15 = lean_ctor_get(x_1, 8); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_dec(x_1); +x_16 = l_Lean_PersistentHashMap_insert___at_Lean_assignLevelMVar___spec__1(x_13, x_2, x_3); +x_17 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_17, 0, x_7); +lean_ctor_set(x_17, 1, x_8); +lean_ctor_set(x_17, 2, x_9); +lean_ctor_set(x_17, 3, x_10); +lean_ctor_set(x_17, 4, x_11); +lean_ctor_set(x_17, 5, x_12); +lean_ctor_set(x_17, 6, x_16); +lean_ctor_set(x_17, 7, x_14); +lean_ctor_set(x_17, 8, x_15); +return x_17; +} +} +} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_MVarId_assign___spec__3(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -7727,6 +7849,56 @@ x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_MVarId_assign___spec__2(x_1, return x_8; } } +LEAN_EXPORT lean_object* lean_assign_mvar(lean_object* x_1, lean_object* x_2, lean_object* x_3) { +_start: +{ +uint8_t x_4; +x_4 = !lean_is_exclusive(x_1); +if (x_4 == 0) +{ +lean_object* x_5; lean_object* x_6; +x_5 = lean_ctor_get(x_1, 7); +x_6 = l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_5, x_2, x_3); +lean_ctor_set(x_1, 7, x_6); +return x_1; +} +else +{ +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; +x_7 = lean_ctor_get(x_1, 0); +x_8 = lean_ctor_get(x_1, 1); +x_9 = lean_ctor_get(x_1, 2); +x_10 = lean_ctor_get(x_1, 3); +x_11 = lean_ctor_get(x_1, 4); +x_12 = lean_ctor_get(x_1, 5); +x_13 = lean_ctor_get(x_1, 6); +x_14 = lean_ctor_get(x_1, 7); +x_15 = lean_ctor_get(x_1, 8); +lean_inc(x_15); +lean_inc(x_14); +lean_inc(x_13); +lean_inc(x_12); +lean_inc(x_11); +lean_inc(x_10); +lean_inc(x_9); +lean_inc(x_8); +lean_inc(x_7); +lean_dec(x_1); +x_16 = l_Lean_PersistentHashMap_insert___at_Lean_MVarId_assign___spec__1(x_14, x_2, x_3); +x_17 = lean_alloc_ctor(0, 9, 0); +lean_ctor_set(x_17, 0, x_7); +lean_ctor_set(x_17, 1, x_8); +lean_ctor_set(x_17, 2, x_9); +lean_ctor_set(x_17, 3, x_10); +lean_ctor_set(x_17, 4, x_11); +lean_ctor_set(x_17, 5, x_12); +lean_ctor_set(x_17, 6, x_13); +lean_ctor_set(x_17, 7, x_16); +lean_ctor_set(x_17, 8, x_15); +return x_17; +} +} +} LEAN_EXPORT lean_object* l_Lean_PersistentHashMap_insertAux_traverse___at_Lean_assignDelayedMVar___spec__3(size_t x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) { _start: { @@ -8332,6 +8504,14 @@ x_8 = l_Lean_PersistentHashMap_insertAux___at_Lean_assignDelayedMVar___spec__2(x return x_8; } } +LEAN_EXPORT lean_object* l_Lean_instantiateLevelMVarsImp___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_instantiate_level_mvars(x_1, x_2); +return x_3; +} +} static lean_object* _init_l_Lean_instantiateLevelMVars___rarg___lambda__1___closed__1() { _start: { @@ -8863,6 +9043,14 @@ lean_dec(x_3); return x_4; } } +LEAN_EXPORT lean_object* l_Lean_instantiateExprMVarsImp___boxed(lean_object* x_1, lean_object* x_2) { +_start: +{ +lean_object* x_3; +x_3 = lean_instantiate_expr_mvars(x_1, x_2); +return x_3; +} +} LEAN_EXPORT lean_object* l_Lean_AssocList_find_x3f___at_Lean_instantiateExprMVars___spec__2(lean_object* x_1, lean_object* x_2) { _start: { @@ -48935,39 +49123,12 @@ x_2 = lean_alloc_closure((void*)(l_Lean_localDeclDependsOnPred___rarg), 5, 0); return x_2; } } -static lean_object* _init_l_Lean_MetavarContext_instInhabited___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; -x_1 = lean_unsigned_to_nat(0u); -x_2 = l_Lean_instInhabitedMetavarDecl___closed__2; -x_3 = lean_alloc_ctor(0, 9, 0); -lean_ctor_set(x_3, 0, x_1); -lean_ctor_set(x_3, 1, x_1); -lean_ctor_set(x_3, 2, x_1); -lean_ctor_set(x_3, 3, x_2); -lean_ctor_set(x_3, 4, x_2); -lean_ctor_set(x_3, 5, x_2); -lean_ctor_set(x_3, 6, x_2); -lean_ctor_set(x_3, 7, x_2); -lean_ctor_set(x_3, 8, x_2); -return x_3; -} -} -static lean_object* _init_l_Lean_MetavarContext_instInhabited() { -_start: -{ -lean_object* x_1; -x_1 = l_Lean_MetavarContext_instInhabited___closed__1; -return x_1; -} -} LEAN_EXPORT lean_object* lean_mk_metavar_ctx(lean_object* x_1) { _start: { lean_object* x_2; lean_dec(x_1); -x_2 = l_Lean_MetavarContext_instInhabited___closed__1; +x_2 = l_Lean_instInhabitedMetavarContext___closed__1; return x_2; } } @@ -51738,7 +51899,7 @@ _start: lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; x_1 = l_Lean_isLevelMVarAssignable___rarg___lambda__1___closed__1; x_2 = l_Lean_MetavarContext_getLevelDepth___closed__1; -x_3 = lean_unsigned_to_nat(920u); +x_3 = lean_unsigned_to_nat(946u); x_4 = lean_unsigned_to_nat(14u); x_5 = l_Lean_MetavarContext_getDecl___closed__2; x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); @@ -78469,6 +78630,10 @@ l_Lean_MetavarContext_eAssignment___default = _init_l_Lean_MetavarContext_eAssig lean_mark_persistent(l_Lean_MetavarContext_eAssignment___default); l_Lean_MetavarContext_dAssignment___default = _init_l_Lean_MetavarContext_dAssignment___default(); lean_mark_persistent(l_Lean_MetavarContext_dAssignment___default); +l_Lean_instInhabitedMetavarContext___closed__1 = _init_l_Lean_instInhabitedMetavarContext___closed__1(); +lean_mark_persistent(l_Lean_instInhabitedMetavarContext___closed__1); +l_Lean_instInhabitedMetavarContext = _init_l_Lean_instInhabitedMetavarContext(); +lean_mark_persistent(l_Lean_instInhabitedMetavarContext); l_Lean_instMonadMCtxStateMMetavarContext___closed__1 = _init_l_Lean_instMonadMCtxStateMMetavarContext___closed__1(); lean_mark_persistent(l_Lean_instMonadMCtxStateMMetavarContext___closed__1); l_Lean_instMonadMCtxStateMMetavarContext___closed__2 = _init_l_Lean_instMonadMCtxStateMMetavarContext___closed__2(); @@ -78583,10 +78748,6 @@ l_Lean_DependsOn_instMonadMCtxM = _init_l_Lean_DependsOn_instMonadMCtxM(); lean_mark_persistent(l_Lean_DependsOn_instMonadMCtxM); l_Lean_findExprDependsOn___rarg___lambda__3___closed__1 = _init_l_Lean_findExprDependsOn___rarg___lambda__3___closed__1(); lean_mark_persistent(l_Lean_findExprDependsOn___rarg___lambda__3___closed__1); -l_Lean_MetavarContext_instInhabited___closed__1 = _init_l_Lean_MetavarContext_instInhabited___closed__1(); -lean_mark_persistent(l_Lean_MetavarContext_instInhabited___closed__1); -l_Lean_MetavarContext_instInhabited = _init_l_Lean_MetavarContext_instInhabited(); -lean_mark_persistent(l_Lean_MetavarContext_instInhabited); l_Lean_MetavarContext_getLevelDepth___closed__1 = _init_l_Lean_MetavarContext_getLevelDepth___closed__1(); lean_mark_persistent(l_Lean_MetavarContext_getLevelDepth___closed__1); l_Lean_MetavarContext_getLevelDepth___closed__2 = _init_l_Lean_MetavarContext_getLevelDepth___closed__2(); diff --git a/stage0/stdlib/Lean/Server/References.c b/stage0/stdlib/Lean/Server/References.c index a413989e63..bbf15bebfe 100644 --- a/stage0/stdlib/Lean/Server/References.c +++ b/stage0/stdlib/Lean/Server/References.c @@ -181,7 +181,7 @@ static lean_object* l_Array_mapMUnsafe_map___at_Lean_Server_RefInfo_toLspRefInfo LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM_x27___at_Lean_Server_findReferences___spec__1___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_mkHashMap___at_Lean_Server_References_allRefs___spec__7___boxed(lean_object*); lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*); -lean_object* l_Lean_Server_findModuleRefs(lean_object*, lean_object*, uint8_t, uint8_t); +LEAN_EXPORT lean_object* l_Lean_Server_findModuleRefs(lean_object*, lean_object*, uint8_t, uint8_t); LEAN_EXPORT lean_object* l_Lean_Elab_InfoTree_visitM___at_Lean_Server_combineIdents_buildIdMap___spec__5(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_AssocList_foldlM___at_Lean_Server_ModuleRefs_toLspModuleRefs___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_Server_findReferences___spec__6___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -11776,7 +11776,7 @@ x_4 = lean_apply_2(x_1, x_2, x_3); return x_4; } } -lean_object* l_Lean_Server_findModuleRefs(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4) { +LEAN_EXPORT lean_object* l_Lean_Server_findModuleRefs(lean_object* x_1, lean_object* x_2, uint8_t x_3, uint8_t x_4) { _start: { lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; diff --git a/stage0/stdlib/Lean/Util/Path.c b/stage0/stdlib/Lean/Util/Path.c index aaae09a0e0..2b7ae1c952 100644 --- a/stage0/stdlib/Lean/Util/Path.c +++ b/stage0/stdlib/Lean/Util/Path.c @@ -14,7 +14,6 @@ extern "C" { #endif LEAN_EXPORT lean_object* l_List_foldl___at_Lean_moduleNameOfFileName___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_SearchPath_findRoot___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_findSysroot___lambda__1(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); uint8_t l_String_endsWith(lean_object*, lean_object*); @@ -28,19 +27,16 @@ lean_object* l_System_FilePath_walkDir(lean_object*, lean_object*, lean_object*) lean_object* l_System_FilePath_join(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_panic___at_Lean_modToFilePath_go___spec__1(lean_object*); lean_object* l_System_FilePath_normalize(lean_object*); -static lean_object* l_Lean_moduleExists_go___closed__3; LEAN_EXPORT lean_object* l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_159____at_Lean_forEachModuleInDir___spec__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_searchModuleNameOfFileName___lambda__1(lean_object*, lean_object*, lean_object*); -lean_object* l_EStateM_instInhabited___rarg(lean_object*, lean_object*); lean_object* l_Lean_Name_toString(lean_object*, uint8_t); -LEAN_EXPORT lean_object* l_Lean_SearchPath_findRoot(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_array_push(lean_object*, lean_object*); static lean_object* l_Lean_moduleNameOfFileName___lambda__2___closed__3; lean_object* l_System_SearchPath_parse(lean_object*); uint8_t lean_usize_dec_eq(size_t, size_t); LEAN_EXPORT lean_object* l_Lean_moduleNameOfFileName___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_extension(lean_object*); +LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findWithExt___spec__1(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_modToFilePath_go___closed__3; static lean_object* l_Lean_findSysroot___lambda__1___closed__2; static lean_object* l_Lean_SearchPath_findAllWithExt___closed__1; @@ -53,7 +49,6 @@ static lean_object* l_Lean_findOLean___closed__4; LEAN_EXPORT lean_object* l_Lean_moduleNameOfFileName___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_FS_DirEntry_path(lean_object*); LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir___rarg___lambda__1___boxed(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_findOLean___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_foldlMUnsafe_fold___at_Lean_SearchPath_findAllWithExt___spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*); LEAN_EXPORT lean_object* lean_module_name_of_file(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_modToFilePath_go___boxed(lean_object*, lean_object*); @@ -65,37 +60,31 @@ lean_object* lean_string_push(lean_object*, uint32_t); static lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__2___closed__1; static lean_object* l_Lean_findSysroot___closed__1; static lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___closed__1; -static lean_object* l_Lean_findOLean___closed__9; static lean_object* l_Lean_findOLean___closed__6; static lean_object* l_List_forIn_loop___at_Lean_SearchPath_findAllWithExt___spec__2___closed__1; static lean_object* l_Lean_findOLean___closed__1; lean_object* l_List_appendTR___rarg(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_initSearchPath(lean_object*, lean_object*, lean_object*); size_t lean_usize_of_nat(lean_object*); -uint8_t l_String_isEmpty(lean_object*); lean_object* l_List_map___at_System_SearchPath_toString___spec__1(lean_object*); static lean_object* l_Lean_findOLean___closed__3; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_SearchPath_findAllWithExt___spec__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_findSysroot(lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findWithExt___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SearchPath_findModuleWithExt___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir___rarg___lambda__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_System_FilePath_isDir(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getLibDir___lambda__1___boxed(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_moduleExists_go___spec__1(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir___rarg(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getLibDir___lambda__1(lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_findSysroot___lambda__1___closed__4; -LEAN_EXPORT lean_object* l_Lean_moduleExists_go(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_findOLean___closed__7; static lean_object* l_Lean_modToFilePath_go___closed__1; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2(lean_object*); lean_object* lean_st_ref_get(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_SearchPath_findAllWithExt___spec__2___lambda__1(lean_object*, lean_object*); lean_object* lean_st_mk_ref(lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_159____at_Lean_forEachModuleInDir___spec__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l_IO_appDir(lean_object*); lean_object* l_Lean_Name_append(lean_object*, lean_object*); lean_object* l_System_FilePath_components(lean_object*); @@ -105,14 +94,11 @@ LEAN_EXPORT lean_object* l_Lean_SearchPath_findModuleWithExt___boxed(lean_object static lean_object* l_Lean_getBuildDir___closed__2; lean_object* l_System_FilePath_addExtension(lean_object*, lean_object*); static lean_object* l_Lean_modToFilePath_go___closed__2; -extern lean_object* l_IO_instInhabitedError; lean_object* l_Lean_Name_str___override(lean_object*, lean_object*); static lean_object* l_Lean_initSearchPath___closed__1; -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Util_Path___hyg_1117_(lean_object*); static lean_object* l_Lean_getLibDir___closed__3; -LEAN_EXPORT lean_object* l_Lean_moduleExists___boxed(lean_object*, lean_object*, lean_object*, lean_object*); lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_moduleExists_go___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Util_Path___hyg_744_(lean_object*); LEAN_EXPORT lean_object* l_Lean_addSearchPathFromEnv(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SearchPath_findModuleWithExt(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_searchModuleNameOfFileName___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); @@ -127,9 +113,7 @@ static lean_object* l_Lean_getBuildDir___closed__4; static lean_object* l_Lean_findSysroot___lambda__1___closed__1; LEAN_EXPORT lean_object* lean_get_prefix(lean_object*); LEAN_EXPORT lean_object* l_Lean_SearchPath_findWithExt(lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_moduleExists_go___closed__2; LEAN_EXPORT lean_object* l_Lean_searchModuleNameOfFileName(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SearchPath_findWithExt___boxed(lean_object*, lean_object*, lean_object*, lean_object*); uint8_t lean_internal_is_stage0(lean_object*); lean_object* lean_string_length(lean_object*); @@ -138,15 +122,11 @@ uint8_t lean_nat_dec_lt(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__4(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_searchPathRef; static lean_object* l_Lean_findOLean___closed__5; -LEAN_EXPORT lean_object* l_Lean_moduleExists_go___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_SearchPath_findModuleWithExt___lambda__1(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_moduleExists_go___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__1(lean_object*, lean_object*); -static lean_object* l_Lean_findOLean___closed__8; -LEAN_EXPORT lean_object* l_Lean_findOLean(lean_object*, uint8_t, lean_object*); +LEAN_EXPORT lean_object* l_Lean_findOLean(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_findSysroot___lambda__1___boxed(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); -static lean_object* l_Lean_moduleExists_go___closed__1; extern lean_object* l_System_instInhabitedFilePath; static lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___closed__3; uint8_t l_String_isPrefixOf(lean_object*, lean_object*); @@ -154,18 +134,13 @@ static lean_object* l_Lean_searchModuleNameOfFileName___closed__1; static lean_object* l_Lean_addSearchPathFromEnv___closed__1; lean_object* lean_io_realpath(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_getBuiltinSearchPath(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_panic___at_Lean_moduleExists_go___spec__2(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_modToFilePath_go(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); lean_object* lean_panic_fn(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_moduleExists(lean_object*, lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*); static lean_object* l_Lean_findOLean___closed__2; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__3___boxed(lean_object*, lean_object*); lean_object* l_String_intercalate(lean_object*, lean_object*); -lean_object* lean_io_read_dir(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__2(lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Lean_moduleExists_go___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*); size_t lean_usize_add(size_t, size_t); lean_object* lean_io_current_dir(lean_object*); static uint8_t l_Lean_getLibDir___closed__2; @@ -174,7 +149,6 @@ size_t lean_array_size(lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*); lean_object* lean_st_ref_set(lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_modToFilePath(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___spec__2(lean_object*, lean_object*, size_t, size_t); lean_object* lean_string_append(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, uint8_t); LEAN_EXPORT lean_object* l_Lean_forEachModuleInDir(lean_object*); @@ -187,17 +161,14 @@ uint8_t lean_usize_dec_lt(size_t, size_t); static lean_object* l_Lean_getLibDir___lambda__1___closed__1; LEAN_EXPORT lean_object* l_List_forIn_loop___at_Lean_SearchPath_findAllWithExt___spec__2___lambda__1___boxed(lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_moduleNameOfFileName___lambda__3(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___spec__1(lean_object*, lean_object*, size_t, size_t); LEAN_EXPORT lean_object* lean_get_libdir(lean_object*, lean_object*); static lean_object* l_Lean_SearchPath_findModuleWithExt___closed__1; lean_object* l_IO_Process_run(lean_object*, lean_object*); static lean_object* l_Lean_findSysroot___lambda__1___closed__3; LEAN_EXPORT lean_object* l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__1___boxed(lean_object*, lean_object*); lean_object* l_String_drop(lean_object*, lean_object*); -static lean_object* l_panic___at_Lean_moduleExists_go___spec__2___closed__1; static lean_object* l_Lean_modToFilePath_go___closed__4; LEAN_EXPORT lean_object* l_Lean_SearchPath_findAllWithExt(lean_object*, lean_object*, lean_object*); -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___spec__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*); LEAN_EXPORT lean_object* l_Lean_realPathNormalized(lean_object*, lean_object*); LEAN_EXPORT uint8_t l___private_Init_Data_Option_Basic_0__Option_beqOption____x40_Init_Data_Option_Basic___hyg_159____at_Lean_forEachModuleInDir___spec__1(lean_object* x_1, lean_object* x_2) { _start: @@ -809,712 +780,7 @@ lean_dec(x_1); return x_4; } } -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_moduleExists_go___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; lean_object* x_7; uint8_t x_8; -x_6 = lean_array_uget(x_2, x_3); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_string_dec_eq(x_7, x_1); -lean_dec(x_7); -if (x_8 == 0) -{ -size_t x_9; size_t x_10; -x_9 = 1; -x_10 = lean_usize_add(x_3, x_9); -x_3 = x_10; -goto _start; -} -else -{ -uint8_t x_12; -x_12 = 1; -return x_12; -} -} -else -{ -uint8_t x_13; -x_13 = 0; -return x_13; -} -} -} -static lean_object* _init_l_panic___at_Lean_moduleExists_go___spec__2___closed__1() { -_start: -{ -lean_object* x_1; lean_object* x_2; -x_1 = l_IO_instInhabitedError; -x_2 = lean_alloc_closure((void*)(l_EStateM_instInhabited___rarg), 2, 1); -lean_closure_set(x_2, 0, x_1); -return x_2; -} -} -LEAN_EXPORT lean_object* l_panic___at_Lean_moduleExists_go___spec__2(lean_object* x_1, lean_object* x_2) { -_start: -{ -lean_object* x_3; lean_object* x_4; lean_object* x_5; -x_3 = l_panic___at_Lean_moduleExists_go___spec__2___closed__1; -x_4 = lean_panic_fn(x_3, x_1); -x_5 = lean_apply_1(x_4, x_2); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_moduleExists_go___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; -x_6 = l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___closed__3; -x_7 = l_Lean_modToFilePath(x_1, x_2, x_6); -x_8 = lean_io_read_dir(x_7, x_5); -lean_dec(x_7); -if (lean_obj_tag(x_8) == 0) -{ -uint8_t x_9; -x_9 = !lean_is_exclusive(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; -x_10 = lean_ctor_get(x_8, 0); -x_11 = lean_array_get_size(x_10); -x_12 = lean_unsigned_to_nat(0u); -x_13 = lean_nat_dec_lt(x_12, x_11); -if (x_13 == 0) -{ -uint8_t x_14; lean_object* x_15; -lean_dec(x_11); -lean_dec(x_10); -x_14 = 0; -x_15 = lean_box(x_14); -lean_ctor_set(x_8, 0, x_15); -return x_8; -} -else -{ -size_t x_16; size_t x_17; uint8_t x_18; lean_object* x_19; -x_16 = 0; -x_17 = lean_usize_of_nat(x_11); -lean_dec(x_11); -x_18 = l_Array_anyMUnsafe_any___at_Lean_moduleExists_go___spec__1(x_3, x_10, x_16, x_17); -lean_dec(x_10); -x_19 = lean_box(x_18); -lean_ctor_set(x_8, 0, x_19); -return x_8; -} -} -else -{ -lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; -x_20 = lean_ctor_get(x_8, 0); -x_21 = lean_ctor_get(x_8, 1); -lean_inc(x_21); -lean_inc(x_20); -lean_dec(x_8); -x_22 = lean_array_get_size(x_20); -x_23 = lean_unsigned_to_nat(0u); -x_24 = lean_nat_dec_lt(x_23, x_22); -if (x_24 == 0) -{ -uint8_t x_25; lean_object* x_26; lean_object* x_27; -lean_dec(x_22); -lean_dec(x_20); -x_25 = 0; -x_26 = lean_box(x_25); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_26); -lean_ctor_set(x_27, 1, x_21); -return x_27; -} -else -{ -size_t x_28; size_t x_29; uint8_t x_30; lean_object* x_31; lean_object* x_32; -x_28 = 0; -x_29 = lean_usize_of_nat(x_22); -lean_dec(x_22); -x_30 = l_Array_anyMUnsafe_any___at_Lean_moduleExists_go___spec__1(x_3, x_20, x_28, x_29); -lean_dec(x_20); -x_31 = lean_box(x_30); -x_32 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set(x_32, 1, x_21); -return x_32; -} -} -} -else -{ -uint8_t x_33; -x_33 = !lean_is_exclusive(x_8); -if (x_33 == 0) -{ -return x_8; -} -else -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; -x_34 = lean_ctor_get(x_8, 0); -x_35 = lean_ctor_get(x_8, 1); -lean_inc(x_35); -lean_inc(x_34); -lean_dec(x_8); -x_36 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_36, 0, x_34); -lean_ctor_set(x_36, 1, x_35); -return x_36; -} -} -} -} -static lean_object* _init_l_Lean_moduleExists_go___closed__1() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(".", 1, 1); -return x_1; -} -} -static lean_object* _init_l_Lean_moduleExists_go___closed__2() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("Lean.moduleExists.go", 20, 20); -return x_1; -} -} -static lean_object* _init_l_Lean_moduleExists_go___closed__3() { -_start: -{ -lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; -x_1 = l_Lean_modToFilePath_go___closed__1; -x_2 = l_Lean_moduleExists_go___closed__2; -x_3 = lean_unsigned_to_nat(58u); -x_4 = lean_unsigned_to_nat(15u); -x_5 = l_Lean_modToFilePath_go___closed__3; -x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_moduleExists_go(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -switch (lean_obj_tag(x_3)) { -case 0: -{ -lean_object* x_5; uint8_t x_6; -x_5 = l_System_FilePath_pathExists(x_1, x_4); -x_6 = !lean_is_exclusive(x_5); -if (x_6 == 0) -{ -return x_5; -} -else -{ -lean_object* x_7; lean_object* x_8; lean_object* x_9; -x_7 = lean_ctor_get(x_5, 0); -x_8 = lean_ctor_get(x_5, 1); -lean_inc(x_8); -lean_inc(x_7); -lean_dec(x_5); -x_9 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_9, 0, x_7); -lean_ctor_set(x_9, 1, x_8); -return x_9; -} -} -case 1: -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_33; -x_10 = lean_ctor_get(x_3, 0); -lean_inc(x_10); -x_11 = lean_ctor_get(x_3, 1); -lean_inc(x_11); -lean_dec(x_3); -x_33 = l_String_isEmpty(x_2); -if (x_33 == 0) -{ -lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; -x_34 = l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___closed__3; -x_35 = lean_string_append(x_34, x_11); -lean_dec(x_11); -x_36 = l_Lean_moduleExists_go___closed__1; -x_37 = lean_string_append(x_35, x_36); -x_38 = lean_string_append(x_37, x_2); -x_39 = lean_string_append(x_38, x_34); -x_12 = x_39; -goto block_32; -} -else -{ -x_12 = x_11; -goto block_32; -} -block_32: -{ -lean_object* x_13; lean_object* x_14; -x_13 = l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___closed__3; -lean_inc(x_10); -x_14 = l_Lean_moduleExists_go(x_1, x_13, x_10, x_4); -if (lean_obj_tag(x_14) == 0) -{ -lean_object* x_15; uint8_t x_16; -x_15 = lean_ctor_get(x_14, 0); -lean_inc(x_15); -x_16 = lean_unbox(x_15); -lean_dec(x_15); -if (x_16 == 0) -{ -uint8_t x_17; -lean_dec(x_12); -lean_dec(x_10); -x_17 = !lean_is_exclusive(x_14); -if (x_17 == 0) -{ -lean_object* x_18; uint8_t x_19; lean_object* x_20; -x_18 = lean_ctor_get(x_14, 0); -lean_dec(x_18); -x_19 = 0; -x_20 = lean_box(x_19); -lean_ctor_set(x_14, 0, x_20); -return x_14; -} -else -{ -lean_object* x_21; uint8_t x_22; lean_object* x_23; lean_object* x_24; -x_21 = lean_ctor_get(x_14, 1); -lean_inc(x_21); -lean_dec(x_14); -x_22 = 0; -x_23 = lean_box(x_22); -x_24 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_24, 0, x_23); -lean_ctor_set(x_24, 1, x_21); -return x_24; -} -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_14, 1); -lean_inc(x_25); -lean_dec(x_14); -x_26 = lean_box(0); -x_27 = l_Lean_moduleExists_go___lambda__1(x_1, x_10, x_12, x_26, x_25); -lean_dec(x_12); -return x_27; -} -} -else -{ -uint8_t x_28; -lean_dec(x_12); -lean_dec(x_10); -x_28 = !lean_is_exclusive(x_14); -if (x_28 == 0) -{ -return x_14; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_14, 0); -x_30 = lean_ctor_get(x_14, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_14); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -} -default: -{ -lean_object* x_40; lean_object* x_41; -lean_dec(x_3); -x_40 = l_Lean_moduleExists_go___closed__3; -x_41 = l_panic___at_Lean_moduleExists_go___spec__2(x_40, x_4); -return x_41; -} -} -} -} -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_moduleExists_go___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_Lean_moduleExists_go___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_Lean_moduleExists_go___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_Lean_moduleExists_go___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -lean_dec(x_1); -return x_6; -} -} -LEAN_EXPORT lean_object* l_Lean_moduleExists_go___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_moduleExists_go(x_1, x_2, x_3, x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_moduleExists(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_moduleExists_go(x_1, x_2, x_3, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_moduleExists___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_moduleExists(x_1, x_2, x_3, x_4); -lean_dec(x_2); -lean_dec(x_1); -return x_5; -} -} -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___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; lean_object* x_7; uint8_t x_8; -x_6 = lean_array_uget(x_2, x_3); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_string_dec_eq(x_7, x_1); -lean_dec(x_7); -if (x_8 == 0) -{ -size_t x_9; size_t x_10; -x_9 = 1; -x_10 = lean_usize_add(x_3, x_9); -x_3 = x_10; -goto _start; -} -else -{ -uint8_t x_12; -x_12 = 1; -return x_12; -} -} -else -{ -uint8_t x_13; -x_13 = 0; -return x_13; -} -} -} -LEAN_EXPORT uint8_t l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___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; lean_object* x_7; uint8_t x_8; -x_6 = lean_array_uget(x_2, x_3); -x_7 = lean_ctor_get(x_6, 1); -lean_inc(x_7); -lean_dec(x_6); -x_8 = lean_string_dec_eq(x_7, x_1); -lean_dec(x_7); -if (x_8 == 0) -{ -size_t x_9; size_t x_10; -x_9 = 1; -x_10 = lean_usize_add(x_3, x_9); -x_3 = x_10; -goto _start; -} -else -{ -uint8_t x_12; -x_12 = 1; -return x_12; -} -} -else -{ -uint8_t x_13; -x_13 = 0; -return x_13; -} -} -} -LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; -lean_inc(x_2); -lean_inc(x_1); -x_6 = l_System_FilePath_join(x_1, x_2); -x_7 = l_System_FilePath_isDir(x_6, x_5); -lean_dec(x_6); -x_8 = lean_ctor_get(x_7, 0); -lean_inc(x_8); -x_9 = lean_unbox(x_8); -lean_dec(x_8); -if (x_9 == 0) -{ -lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; -x_10 = lean_ctor_get(x_7, 1); -lean_inc(x_10); -lean_dec(x_7); -x_11 = l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___closed__3; -x_12 = lean_string_append(x_11, x_2); -lean_dec(x_2); -x_13 = l_Lean_moduleExists_go___closed__1; -x_14 = lean_string_append(x_12, x_13); -x_15 = lean_string_append(x_14, x_3); -x_16 = lean_string_append(x_15, x_11); -x_17 = lean_io_read_dir(x_1, x_10); -lean_dec(x_1); -if (lean_obj_tag(x_17) == 0) -{ -uint8_t x_18; -x_18 = !lean_is_exclusive(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; -x_19 = lean_ctor_get(x_17, 0); -x_20 = lean_array_get_size(x_19); -x_21 = lean_unsigned_to_nat(0u); -x_22 = lean_nat_dec_lt(x_21, x_20); -if (x_22 == 0) -{ -uint8_t x_23; lean_object* x_24; -lean_dec(x_20); -lean_dec(x_19); -lean_dec(x_16); -x_23 = 0; -x_24 = lean_box(x_23); -lean_ctor_set(x_17, 0, x_24); -return x_17; -} -else -{ -size_t x_25; size_t x_26; uint8_t x_27; lean_object* x_28; -x_25 = 0; -x_26 = lean_usize_of_nat(x_20); -lean_dec(x_20); -x_27 = l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___spec__1(x_16, x_19, x_25, x_26); -lean_dec(x_19); -lean_dec(x_16); -x_28 = lean_box(x_27); -lean_ctor_set(x_17, 0, x_28); -return x_17; -} -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; -x_29 = lean_ctor_get(x_17, 0); -x_30 = lean_ctor_get(x_17, 1); -lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_17); -x_31 = lean_array_get_size(x_29); -x_32 = lean_unsigned_to_nat(0u); -x_33 = lean_nat_dec_lt(x_32, x_31); -if (x_33 == 0) -{ -uint8_t x_34; lean_object* x_35; lean_object* x_36; -lean_dec(x_31); -lean_dec(x_29); -lean_dec(x_16); -x_34 = 0; -x_35 = lean_box(x_34); -x_36 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_36, 0, x_35); -lean_ctor_set(x_36, 1, x_30); -return x_36; -} -else -{ -size_t x_37; size_t x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; -x_37 = 0; -x_38 = lean_usize_of_nat(x_31); -lean_dec(x_31); -x_39 = l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___spec__1(x_16, x_29, x_37, x_38); -lean_dec(x_29); -lean_dec(x_16); -x_40 = lean_box(x_39); -x_41 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_41, 0, x_40); -lean_ctor_set(x_41, 1, x_30); -return x_41; -} -} -} -else -{ -uint8_t x_42; -lean_dec(x_16); -x_42 = !lean_is_exclusive(x_17); -if (x_42 == 0) -{ -return x_17; -} -else -{ -lean_object* x_43; lean_object* x_44; lean_object* x_45; -x_43 = lean_ctor_get(x_17, 0); -x_44 = lean_ctor_get(x_17, 1); -lean_inc(x_44); -lean_inc(x_43); -lean_dec(x_17); -x_45 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_45, 0, x_43); -lean_ctor_set(x_45, 1, x_44); -return x_45; -} -} -} -else -{ -lean_object* x_46; lean_object* x_47; -x_46 = lean_ctor_get(x_7, 1); -lean_inc(x_46); -lean_dec(x_7); -x_47 = lean_io_read_dir(x_1, x_46); -lean_dec(x_1); -if (lean_obj_tag(x_47) == 0) -{ -uint8_t x_48; -x_48 = !lean_is_exclusive(x_47); -if (x_48 == 0) -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; uint8_t x_52; -x_49 = lean_ctor_get(x_47, 0); -x_50 = lean_array_get_size(x_49); -x_51 = lean_unsigned_to_nat(0u); -x_52 = lean_nat_dec_lt(x_51, x_50); -if (x_52 == 0) -{ -uint8_t x_53; lean_object* x_54; -lean_dec(x_50); -lean_dec(x_49); -lean_dec(x_2); -x_53 = 0; -x_54 = lean_box(x_53); -lean_ctor_set(x_47, 0, x_54); -return x_47; -} -else -{ -size_t x_55; size_t x_56; uint8_t x_57; lean_object* x_58; -x_55 = 0; -x_56 = lean_usize_of_nat(x_50); -lean_dec(x_50); -x_57 = l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___spec__2(x_2, x_49, x_55, x_56); -lean_dec(x_49); -lean_dec(x_2); -x_58 = lean_box(x_57); -lean_ctor_set(x_47, 0, x_58); -return x_47; -} -} -else -{ -lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; -x_59 = lean_ctor_get(x_47, 0); -x_60 = lean_ctor_get(x_47, 1); -lean_inc(x_60); -lean_inc(x_59); -lean_dec(x_47); -x_61 = lean_array_get_size(x_59); -x_62 = lean_unsigned_to_nat(0u); -x_63 = lean_nat_dec_lt(x_62, x_61); -if (x_63 == 0) -{ -uint8_t x_64; lean_object* x_65; lean_object* x_66; -lean_dec(x_61); -lean_dec(x_59); -lean_dec(x_2); -x_64 = 0; -x_65 = lean_box(x_64); -x_66 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_66, 0, x_65); -lean_ctor_set(x_66, 1, x_60); -return x_66; -} -else -{ -size_t x_67; size_t x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; -x_67 = 0; -x_68 = lean_usize_of_nat(x_61); -lean_dec(x_61); -x_69 = l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___spec__2(x_2, x_59, x_67, x_68); -lean_dec(x_59); -lean_dec(x_2); -x_70 = lean_box(x_69); -x_71 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_71, 0, x_70); -lean_ctor_set(x_71, 1, x_60); -return x_71; -} -} -} -else -{ -uint8_t x_72; -lean_dec(x_2); -x_72 = !lean_is_exclusive(x_47); -if (x_72 == 0) -{ -return x_47; -} -else -{ -lean_object* x_73; lean_object* x_74; lean_object* x_75; -x_73 = lean_ctor_get(x_47, 0); -x_74 = lean_ctor_get(x_47, 1); -lean_inc(x_74); -lean_inc(x_73); -lean_dec(x_47); -x_75 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_75, 0, x_73); -lean_ctor_set(x_75, 1, x_74); -return x_75; -} -} -} -} -} -LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findWithExt___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { if (lean_obj_tag(x_3) == 0) @@ -1529,193 +795,117 @@ return x_6; } else { -lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; +lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; x_7 = lean_ctor_get(x_3, 0); lean_inc(x_7); x_8 = lean_ctor_get(x_3, 1); lean_inc(x_8); lean_dec(x_3); -x_9 = l_System_FilePath_isDir(x_7, x_4); -x_10 = lean_ctor_get(x_9, 0); -lean_inc(x_10); -x_11 = lean_unbox(x_10); -lean_dec(x_10); -if (x_11 == 0) -{ -lean_object* x_12; -lean_dec(x_7); -x_12 = lean_ctor_get(x_9, 1); -lean_inc(x_12); -lean_dec(x_9); -x_3 = x_8; -x_4 = x_12; -goto _start; -} -else -{ -lean_object* x_14; lean_object* x_15; lean_object* x_16; -x_14 = lean_ctor_get(x_9, 1); -lean_inc(x_14); -lean_dec(x_9); -x_15 = lean_box(0); lean_inc(x_2); lean_inc(x_7); -x_16 = l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3___lambda__1(x_7, x_2, x_1, x_15, x_14); -if (lean_obj_tag(x_16) == 0) +x_9 = l_System_FilePath_join(x_7, x_2); +x_10 = l_System_FilePath_isDir(x_9, x_4); +x_11 = lean_ctor_get(x_10, 0); +lean_inc(x_11); +x_12 = lean_unbox(x_11); +lean_dec(x_11); +if (x_12 == 0) { -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; -lean_dec(x_7); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); +lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; +x_13 = lean_ctor_get(x_10, 1); +lean_inc(x_13); +lean_dec(x_10); +x_14 = l_System_FilePath_addExtension(x_9, x_1); +x_15 = l_System_FilePath_pathExists(x_14, x_13); +lean_dec(x_14); +x_16 = lean_ctor_get(x_15, 0); +lean_inc(x_16); +x_17 = lean_unbox(x_16); lean_dec(x_16); +if (x_17 == 0) +{ +lean_object* x_18; +lean_dec(x_7); +x_18 = lean_ctor_get(x_15, 1); +lean_inc(x_18); +lean_dec(x_15); x_3 = x_8; -x_4 = x_19; +x_4 = x_18; goto _start; } else { -uint8_t x_21; +uint8_t x_20; lean_dec(x_8); lean_dec(x_2); -x_21 = !lean_is_exclusive(x_16); -if (x_21 == 0) +x_20 = !lean_is_exclusive(x_15); +if (x_20 == 0) { -lean_object* x_22; lean_object* x_23; -x_22 = lean_ctor_get(x_16, 0); -lean_dec(x_22); -x_23 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_23, 0, x_7); -lean_ctor_set(x_16, 0, x_23); -return x_16; +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_15, 0); +lean_dec(x_21); +x_22 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_22, 0, x_7); +lean_ctor_set(x_15, 0, x_22); +return x_15; } else { -lean_object* x_24; lean_object* x_25; lean_object* x_26; -x_24 = lean_ctor_get(x_16, 1); -lean_inc(x_24); -lean_dec(x_16); -x_25 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_25, 0, x_7); -x_26 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_26, 0, x_25); -lean_ctor_set(x_26, 1, x_24); -return x_26; +lean_object* x_23; lean_object* x_24; lean_object* x_25; +x_23 = lean_ctor_get(x_15, 1); +lean_inc(x_23); +lean_dec(x_15); +x_24 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_24, 0, x_7); +x_25 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_25, 0, x_24); +lean_ctor_set(x_25, 1, x_23); +return x_25; } } } else { -uint8_t x_27; +uint8_t x_26; +lean_dec(x_9); lean_dec(x_8); -lean_dec(x_7); lean_dec(x_2); -x_27 = !lean_is_exclusive(x_16); -if (x_27 == 0) +x_26 = !lean_is_exclusive(x_10); +if (x_26 == 0) { -return x_16; +lean_object* x_27; lean_object* x_28; +x_27 = lean_ctor_get(x_10, 0); +lean_dec(x_27); +x_28 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_28, 0, x_7); +lean_ctor_set(x_10, 0, x_28); +return x_10; } else { -lean_object* x_28; lean_object* x_29; lean_object* x_30; -x_28 = lean_ctor_get(x_16, 0); -x_29 = lean_ctor_get(x_16, 1); +lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_29 = lean_ctor_get(x_10, 1); lean_inc(x_29); -lean_inc(x_28); -lean_dec(x_16); -x_30 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_30, 0, x_28); -lean_ctor_set(x_30, 1, x_29); -return x_30; +lean_dec(x_10); +x_30 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_30, 0, x_7); +x_31 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set(x_31, 1, x_29); +return x_31; } } } } } -} -LEAN_EXPORT lean_object* l_Lean_SearchPath_findRoot(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3(x_2, x_3, x_1, x_4); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Array_anyMUnsafe_any___at_Lean_SearchPath_findRoot___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_Lean_SearchPath_findRoot___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_Lean_SearchPath_findRoot___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_Lean_SearchPath_findRoot___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_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) { -_start: -{ -lean_object* x_6; -x_6 = l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3___lambda__1(x_1, x_2, x_3, x_4, x_5); -lean_dec(x_4); -lean_dec(x_3); -return x_6; -} -} -LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3(x_1, x_2, x_3, x_4); -lean_dec(x_1); -return x_5; -} -} -LEAN_EXPORT lean_object* l_Lean_SearchPath_findRoot___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { -_start: -{ -lean_object* x_5; -x_5 = l_Lean_SearchPath_findRoot(x_1, x_2, x_3, x_4); -lean_dec(x_2); -return x_5; -} -} LEAN_EXPORT lean_object* l_Lean_SearchPath_findWithExt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; +lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; x_5 = l_Lean_Name_getRoot(x_3); x_6 = 0; x_7 = l_Lean_Name_toString(x_5, x_6); -x_8 = l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3(x_2, x_7, x_1, x_4); -if (lean_obj_tag(x_8) == 0) -{ -lean_object* x_9; +x_8 = l_List_findM_x3f___at_Lean_SearchPath_findWithExt___spec__1(x_2, x_7, x_1, x_4); x_9 = lean_ctor_get(x_8, 0); lean_inc(x_9); if (lean_obj_tag(x_9) == 0) @@ -1808,29 +998,14 @@ return x_29; } } } -else -{ -uint8_t x_30; -lean_dec(x_3); -x_30 = !lean_is_exclusive(x_8); -if (x_30 == 0) -{ -return x_8; } -else +LEAN_EXPORT lean_object* l_List_findM_x3f___at_Lean_SearchPath_findWithExt___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { +_start: { -lean_object* x_31; lean_object* x_32; lean_object* x_33; -x_31 = lean_ctor_get(x_8, 0); -x_32 = lean_ctor_get(x_8, 1); -lean_inc(x_32); -lean_inc(x_31); -lean_dec(x_8); -x_33 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_33, 0, x_31); -lean_ctor_set(x_33, 1, x_32); -return x_33; -} -} +lean_object* x_5; +x_5 = l_List_findM_x3f___at_Lean_SearchPath_findWithExt___spec__1(x_1, x_2, x_3, x_4); +lean_dec(x_1); +return x_5; } } LEAN_EXPORT lean_object* l_Lean_SearchPath_findWithExt___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { @@ -1864,220 +1039,118 @@ return x_1; LEAN_EXPORT lean_object* l_Lean_SearchPath_findModuleWithExt(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) { _start: { -lean_object* x_5; uint8_t x_6; lean_object* x_7; lean_object* x_8; -x_5 = l_Lean_Name_getRoot(x_3); -x_6 = 0; -x_7 = l_Lean_Name_toString(x_5, x_6); -x_8 = l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3(x_2, x_7, x_1, x_4); -if (lean_obj_tag(x_8) == 0) +lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; +x_5 = l_Lean_SearchPath_findWithExt(x_1, x_2, x_3, x_4); +x_6 = lean_ctor_get(x_5, 0); +lean_inc(x_6); +x_7 = lean_ctor_get(x_5, 1); +lean_inc(x_7); +lean_dec(x_5); +x_8 = l_Lean_SearchPath_findModuleWithExt___closed__1; +if (lean_obj_tag(x_6) == 0) { -lean_object* x_9; lean_object* x_10; lean_object* x_11; -x_9 = lean_ctor_get(x_8, 0); -lean_inc(x_9); -x_10 = lean_ctor_get(x_8, 1); -lean_inc(x_10); -lean_dec(x_8); -x_11 = l_Lean_SearchPath_findModuleWithExt___closed__1; -if (lean_obj_tag(x_9) == 0) +lean_object* x_9; lean_object* x_10; +x_9 = lean_box(0); +x_10 = lean_apply_2(x_8, x_9, x_7); +return x_10; +} +else { -lean_object* x_12; lean_object* x_13; -lean_dec(x_3); -x_12 = lean_box(0); -x_13 = lean_apply_2(x_11, x_12, x_10); +uint8_t x_11; +x_11 = !lean_is_exclusive(x_6); +if (x_11 == 0) +{ +lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; +x_12 = lean_ctor_get(x_6, 0); +x_13 = l_System_FilePath_pathExists(x_12, x_7); +x_14 = lean_ctor_get(x_13, 0); +lean_inc(x_14); +x_15 = lean_unbox(x_14); +lean_dec(x_14); +if (x_15 == 0) +{ +lean_object* x_16; lean_object* x_17; lean_object* x_18; +lean_free_object(x_6); +lean_dec(x_12); +x_16 = lean_ctor_get(x_13, 1); +lean_inc(x_16); +lean_dec(x_13); +x_17 = lean_box(0); +x_18 = lean_apply_2(x_8, x_17, x_16); +return x_18; +} +else +{ +uint8_t x_19; +x_19 = !lean_is_exclusive(x_13); +if (x_19 == 0) +{ +lean_object* x_20; +x_20 = lean_ctor_get(x_13, 0); +lean_dec(x_20); +lean_ctor_set(x_13, 0, x_6); return x_13; } else { -uint8_t x_14; -x_14 = !lean_is_exclusive(x_9); -if (x_14 == 0) -{ -lean_object* x_15; lean_object* x_16; -x_15 = lean_ctor_get(x_9, 0); -lean_inc(x_3); -x_16 = l_Lean_moduleExists_go(x_15, x_2, x_3, x_10); -if (lean_obj_tag(x_16) == 0) -{ -lean_object* x_17; uint8_t x_18; -x_17 = lean_ctor_get(x_16, 0); -lean_inc(x_17); -x_18 = lean_unbox(x_17); -lean_dec(x_17); -if (x_18 == 0) -{ -lean_object* x_19; lean_object* x_20; lean_object* x_21; -lean_free_object(x_9); -lean_dec(x_15); -lean_dec(x_3); -x_19 = lean_ctor_get(x_16, 1); -lean_inc(x_19); -lean_dec(x_16); -x_20 = lean_box(0); -x_21 = lean_apply_2(x_11, x_20, x_19); -return x_21; +lean_object* x_21; lean_object* x_22; +x_21 = lean_ctor_get(x_13, 1); +lean_inc(x_21); +lean_dec(x_13); +x_22 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_22, 0, x_6); +lean_ctor_set(x_22, 1, x_21); +return x_22; +} +} } else { -uint8_t x_22; -x_22 = !lean_is_exclusive(x_16); -if (x_22 == 0) -{ -lean_object* x_23; lean_object* x_24; -x_23 = lean_ctor_get(x_16, 0); -lean_dec(x_23); -x_24 = l_Lean_modToFilePath(x_15, x_3, x_2); -lean_dec(x_15); -lean_ctor_set(x_9, 0, x_24); -lean_ctor_set(x_16, 0, x_9); -return x_16; -} -else -{ -lean_object* x_25; lean_object* x_26; lean_object* x_27; -x_25 = lean_ctor_get(x_16, 1); +lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; +x_23 = lean_ctor_get(x_6, 0); +lean_inc(x_23); +lean_dec(x_6); +x_24 = l_System_FilePath_pathExists(x_23, x_7); +x_25 = lean_ctor_get(x_24, 0); lean_inc(x_25); -lean_dec(x_16); -x_26 = l_Lean_modToFilePath(x_15, x_3, x_2); -lean_dec(x_15); -lean_ctor_set(x_9, 0, x_26); -x_27 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_27, 0, x_9); -lean_ctor_set(x_27, 1, x_25); -return x_27; -} -} +x_26 = lean_unbox(x_25); +lean_dec(x_25); +if (x_26 == 0) +{ +lean_object* x_27; lean_object* x_28; lean_object* x_29; +lean_dec(x_23); +x_27 = lean_ctor_get(x_24, 1); +lean_inc(x_27); +lean_dec(x_24); +x_28 = lean_box(0); +x_29 = lean_apply_2(x_8, x_28, x_27); +return x_29; } else { -uint8_t x_28; -lean_free_object(x_9); -lean_dec(x_15); -lean_dec(x_3); -x_28 = !lean_is_exclusive(x_16); -if (x_28 == 0) -{ -return x_16; -} -else -{ -lean_object* x_29; lean_object* x_30; lean_object* x_31; -x_29 = lean_ctor_get(x_16, 0); -x_30 = lean_ctor_get(x_16, 1); +lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; +x_30 = lean_ctor_get(x_24, 1); lean_inc(x_30); -lean_inc(x_29); -lean_dec(x_16); -x_31 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_31, 0, x_29); -lean_ctor_set(x_31, 1, x_30); -return x_31; -} -} -} -else -{ -lean_object* x_32; lean_object* x_33; -x_32 = lean_ctor_get(x_9, 0); -lean_inc(x_32); -lean_dec(x_9); -lean_inc(x_3); -x_33 = l_Lean_moduleExists_go(x_32, x_2, x_3, x_10); -if (lean_obj_tag(x_33) == 0) -{ -lean_object* x_34; uint8_t x_35; -x_34 = lean_ctor_get(x_33, 0); -lean_inc(x_34); -x_35 = lean_unbox(x_34); -lean_dec(x_34); -if (x_35 == 0) -{ -lean_object* x_36; lean_object* x_37; lean_object* x_38; -lean_dec(x_32); -lean_dec(x_3); -x_36 = lean_ctor_get(x_33, 1); -lean_inc(x_36); -lean_dec(x_33); -x_37 = lean_box(0); -x_38 = lean_apply_2(x_11, x_37, x_36); -return x_38; -} -else -{ -lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; -x_39 = lean_ctor_get(x_33, 1); -lean_inc(x_39); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_40 = x_33; +if (lean_is_exclusive(x_24)) { + lean_ctor_release(x_24, 0); + lean_ctor_release(x_24, 1); + x_31 = x_24; } else { - lean_dec_ref(x_33); - x_40 = lean_box(0); + lean_dec_ref(x_24); + x_31 = lean_box(0); } -x_41 = l_Lean_modToFilePath(x_32, x_3, x_2); -lean_dec(x_32); -x_42 = lean_alloc_ctor(1, 1, 0); -lean_ctor_set(x_42, 0, x_41); -if (lean_is_scalar(x_40)) { - x_43 = lean_alloc_ctor(0, 2, 0); +x_32 = lean_alloc_ctor(1, 1, 0); +lean_ctor_set(x_32, 0, x_23); +if (lean_is_scalar(x_31)) { + x_33 = lean_alloc_ctor(0, 2, 0); } else { - x_43 = x_40; + x_33 = x_31; } -lean_ctor_set(x_43, 0, x_42); -lean_ctor_set(x_43, 1, x_39); -return x_43; +lean_ctor_set(x_33, 0, x_32); +lean_ctor_set(x_33, 1, x_30); +return x_33; } } -else -{ -lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; -lean_dec(x_32); -lean_dec(x_3); -x_44 = lean_ctor_get(x_33, 0); -lean_inc(x_44); -x_45 = lean_ctor_get(x_33, 1); -lean_inc(x_45); -if (lean_is_exclusive(x_33)) { - lean_ctor_release(x_33, 0); - lean_ctor_release(x_33, 1); - x_46 = x_33; -} else { - lean_dec_ref(x_33); - x_46 = lean_box(0); -} -if (lean_is_scalar(x_46)) { - x_47 = lean_alloc_ctor(1, 2, 0); -} else { - x_47 = x_46; -} -lean_ctor_set(x_47, 0, x_44); -lean_ctor_set(x_47, 1, x_45); -return x_47; -} -} -} -} -else -{ -uint8_t x_48; -lean_dec(x_3); -x_48 = !lean_is_exclusive(x_8); -if (x_48 == 0) -{ -return x_8; -} -else -{ -lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_49 = lean_ctor_get(x_8, 0); -x_50 = lean_ctor_get(x_8, 1); -lean_inc(x_50); -lean_inc(x_49); -lean_dec(x_8); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_49); -lean_ctor_set(x_51, 1, x_50); -return x_51; -} } } } @@ -2374,7 +1447,7 @@ lean_dec(x_1); return x_3; } } -LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Util_Path___hyg_1117_(lean_object* x_1) { +LEAN_EXPORT lean_object* l_Lean_initFn____x40_Lean_Util_Path___hyg_744_(lean_object* x_1) { _start: { lean_object* x_2; lean_object* x_3; uint8_t x_4; @@ -2918,445 +1991,128 @@ x_1 = lean_mk_string_unchecked("\n", 1, 1); return x_1; } } -static lean_object* _init_l_Lean_findOLean___closed__7() { +LEAN_EXPORT lean_object* l_Lean_findOLean(lean_object* x_1, lean_object* x_2) { _start: { -lean_object* x_1; -x_1 = lean_mk_string_unchecked("object file '", 13, 13); -return x_1; -} -} -static lean_object* _init_l_Lean_findOLean___closed__8() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked("' of module ", 12, 12); -return x_1; -} -} -static lean_object* _init_l_Lean_findOLean___closed__9() { -_start: -{ -lean_object* x_1; -x_1 = lean_mk_string_unchecked(" does not exist", 15, 15); -return x_1; -} -} -LEAN_EXPORT lean_object* l_Lean_findOLean(lean_object* x_1, uint8_t x_2, lean_object* x_3) { -_start: -{ -lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; -x_4 = l_Lean_initSearchPath___closed__1; -x_5 = lean_st_ref_get(x_4, x_3); -x_6 = lean_ctor_get(x_5, 0); +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 = l_Lean_initSearchPath___closed__1; +x_4 = lean_st_ref_get(x_3, x_2); +x_5 = lean_ctor_get(x_4, 0); +lean_inc(x_5); +x_6 = lean_ctor_get(x_4, 1); lean_inc(x_6); -x_7 = lean_ctor_get(x_5, 1); -lean_inc(x_7); +lean_dec(x_4); +x_7 = l_Lean_findOLean___closed__1; +lean_inc(x_1); +lean_inc(x_5); +x_8 = l_Lean_SearchPath_findWithExt(x_5, x_7, x_1, x_6); +x_9 = lean_ctor_get(x_8, 0); +lean_inc(x_9); +if (lean_obj_tag(x_9) == 0) +{ +uint8_t x_10; +x_10 = !lean_is_exclusive(x_8); +if (x_10 == 0) +{ +lean_object* x_11; lean_object* x_12; uint8_t 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; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; +x_11 = lean_ctor_get(x_8, 0); +lean_dec(x_11); +x_12 = l_Lean_Name_getRoot(x_1); +lean_dec(x_1); +x_13 = 0; +x_14 = l_Lean_Name_toString(x_12, x_13); +x_15 = l_Lean_findOLean___closed__2; +x_16 = lean_string_append(x_15, x_14); +x_17 = l_Lean_findOLean___closed__3; +x_18 = lean_string_append(x_16, x_17); +x_19 = lean_string_append(x_18, x_14); +x_20 = l_Lean_findOLean___closed__4; +x_21 = lean_string_append(x_19, x_20); +x_22 = lean_string_append(x_21, x_14); +lean_dec(x_14); +x_23 = l_Lean_findOLean___closed__5; +x_24 = lean_string_append(x_22, x_23); +x_25 = l_List_map___at_System_SearchPath_toString___spec__1(x_5); +x_26 = l_Lean_findOLean___closed__6; +x_27 = l_String_intercalate(x_26, x_25); +x_28 = lean_string_append(x_24, x_27); +lean_dec(x_27); +x_29 = l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___closed__3; +x_30 = lean_string_append(x_28, x_29); +x_31 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_31, 0, x_30); +lean_ctor_set_tag(x_8, 1); +lean_ctor_set(x_8, 0, x_31); +return x_8; +} +else +{ +lean_object* x_32; lean_object* x_33; uint8_t x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; +x_32 = lean_ctor_get(x_8, 1); +lean_inc(x_32); +lean_dec(x_8); +x_33 = l_Lean_Name_getRoot(x_1); +lean_dec(x_1); +x_34 = 0; +x_35 = l_Lean_Name_toString(x_33, x_34); +x_36 = l_Lean_findOLean___closed__2; +x_37 = lean_string_append(x_36, x_35); +x_38 = l_Lean_findOLean___closed__3; +x_39 = lean_string_append(x_37, x_38); +x_40 = lean_string_append(x_39, x_35); +x_41 = l_Lean_findOLean___closed__4; +x_42 = lean_string_append(x_40, x_41); +x_43 = lean_string_append(x_42, x_35); +lean_dec(x_35); +x_44 = l_Lean_findOLean___closed__5; +x_45 = lean_string_append(x_43, x_44); +x_46 = l_List_map___at_System_SearchPath_toString___spec__1(x_5); +x_47 = l_Lean_findOLean___closed__6; +x_48 = l_String_intercalate(x_47, x_46); +x_49 = lean_string_append(x_45, x_48); +lean_dec(x_48); +x_50 = l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___closed__3; +x_51 = lean_string_append(x_49, x_50); +x_52 = lean_alloc_ctor(18, 1, 0); +lean_ctor_set(x_52, 0, x_51); +x_53 = lean_alloc_ctor(1, 2, 0); +lean_ctor_set(x_53, 0, x_52); +lean_ctor_set(x_53, 1, x_32); +return x_53; +} +} +else +{ +uint8_t x_54; lean_dec(x_5); -x_8 = l_Lean_Name_getRoot(x_1); -x_9 = 0; -x_10 = l_Lean_Name_toString(x_8, x_9); -x_11 = l_Lean_findOLean___closed__1; -lean_inc(x_6); -lean_inc(x_10); -x_12 = l_List_findM_x3f___at_Lean_SearchPath_findRoot___spec__3(x_11, x_10, x_6, x_7); -if (lean_obj_tag(x_12) == 0) -{ -lean_object* x_13; -x_13 = lean_ctor_get(x_12, 0); -lean_inc(x_13); -if (lean_obj_tag(x_13) == 0) -{ -uint8_t x_14; lean_dec(x_1); -x_14 = !lean_is_exclusive(x_12); -if (x_14 == 0) +x_54 = !lean_is_exclusive(x_8); +if (x_54 == 0) { -lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; -x_15 = lean_ctor_get(x_12, 0); -lean_dec(x_15); -x_16 = l_Lean_findOLean___closed__2; -x_17 = lean_string_append(x_16, x_10); -x_18 = l_Lean_findOLean___closed__3; -x_19 = lean_string_append(x_17, x_18); -x_20 = lean_string_append(x_19, x_10); -x_21 = l_Lean_findOLean___closed__4; -x_22 = lean_string_append(x_20, x_21); -x_23 = lean_string_append(x_22, x_10); -lean_dec(x_10); -x_24 = l_Lean_findOLean___closed__5; -x_25 = lean_string_append(x_23, x_24); -x_26 = l_List_map___at_System_SearchPath_toString___spec__1(x_6); -x_27 = l_Lean_findOLean___closed__6; -x_28 = l_String_intercalate(x_27, x_26); -x_29 = lean_string_append(x_25, x_28); -lean_dec(x_28); -x_30 = l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___closed__3; -x_31 = lean_string_append(x_29, x_30); -x_32 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_32, 0, x_31); -lean_ctor_set_tag(x_12, 1); -lean_ctor_set(x_12, 0, x_32); -return x_12; -} -else -{ -lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; -x_33 = lean_ctor_get(x_12, 1); -lean_inc(x_33); -lean_dec(x_12); -x_34 = l_Lean_findOLean___closed__2; -x_35 = lean_string_append(x_34, x_10); -x_36 = l_Lean_findOLean___closed__3; -x_37 = lean_string_append(x_35, x_36); -x_38 = lean_string_append(x_37, x_10); -x_39 = l_Lean_findOLean___closed__4; -x_40 = lean_string_append(x_38, x_39); -x_41 = lean_string_append(x_40, x_10); -lean_dec(x_10); -x_42 = l_Lean_findOLean___closed__5; -x_43 = lean_string_append(x_41, x_42); -x_44 = l_List_map___at_System_SearchPath_toString___spec__1(x_6); -x_45 = l_Lean_findOLean___closed__6; -x_46 = l_String_intercalate(x_45, x_44); -x_47 = lean_string_append(x_43, x_46); -lean_dec(x_46); -x_48 = l_Array_forInUnsafe_loop___at_Lean_forEachModuleInDir___spec__2___rarg___lambda__5___closed__3; -x_49 = lean_string_append(x_47, x_48); -x_50 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_50, 0, x_49); -x_51 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_51, 0, x_50); -lean_ctor_set(x_51, 1, x_33); -return x_51; -} -} -else -{ -lean_object* x_52; uint8_t x_53; -lean_dec(x_10); -lean_dec(x_6); -x_52 = lean_ctor_get(x_12, 1); -lean_inc(x_52); -lean_dec(x_12); -x_53 = !lean_is_exclusive(x_13); -if (x_53 == 0) -{ -lean_object* x_54; lean_object* x_55; lean_object* x_56; -x_54 = lean_ctor_get(x_13, 0); -lean_inc(x_1); -x_55 = l_Lean_modToFilePath(x_54, x_1, x_11); -lean_inc(x_1); -x_56 = l_Lean_moduleExists_go(x_54, x_11, x_1, x_52); -lean_dec(x_54); -if (lean_obj_tag(x_56) == 0) -{ -if (x_2 == 0) -{ -uint8_t x_57; -lean_free_object(x_13); -lean_dec(x_1); -x_57 = !lean_is_exclusive(x_56); -if (x_57 == 0) -{ -lean_object* x_58; -x_58 = lean_ctor_get(x_56, 0); -lean_dec(x_58); -lean_ctor_set(x_56, 0, x_55); -return x_56; -} -else -{ -lean_object* x_59; lean_object* x_60; -x_59 = lean_ctor_get(x_56, 1); -lean_inc(x_59); -lean_dec(x_56); -x_60 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_60, 0, x_55); -lean_ctor_set(x_60, 1, x_59); -return x_60; -} -} -else -{ -lean_object* x_61; uint8_t x_62; -x_61 = lean_ctor_get(x_56, 0); -lean_inc(x_61); -x_62 = lean_unbox(x_61); -lean_dec(x_61); -if (x_62 == 0) -{ -uint8_t x_63; -x_63 = !lean_is_exclusive(x_56); -if (x_63 == 0) -{ -lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; -x_64 = lean_ctor_get(x_56, 0); -lean_dec(x_64); -x_65 = l_Lean_findOLean___closed__7; -x_66 = lean_string_append(x_65, x_55); +lean_object* x_55; lean_object* x_56; +x_55 = lean_ctor_get(x_8, 0); lean_dec(x_55); -x_67 = l_Lean_findOLean___closed__8; -x_68 = lean_string_append(x_66, x_67); -x_69 = 1; -x_70 = l_Lean_Name_toString(x_1, x_69); -x_71 = lean_string_append(x_68, x_70); -lean_dec(x_70); -x_72 = l_Lean_findOLean___closed__9; -x_73 = lean_string_append(x_71, x_72); -lean_ctor_set_tag(x_13, 18); -lean_ctor_set(x_13, 0, x_73); -lean_ctor_set_tag(x_56, 1); -lean_ctor_set(x_56, 0, x_13); -return x_56; +x_56 = lean_ctor_get(x_9, 0); +lean_inc(x_56); +lean_dec(x_9); +lean_ctor_set(x_8, 0, x_56); +return x_8; } else { -lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; uint8_t x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; -x_74 = lean_ctor_get(x_56, 1); -lean_inc(x_74); -lean_dec(x_56); -x_75 = l_Lean_findOLean___closed__7; -x_76 = lean_string_append(x_75, x_55); -lean_dec(x_55); -x_77 = l_Lean_findOLean___closed__8; -x_78 = lean_string_append(x_76, x_77); -x_79 = 1; -x_80 = l_Lean_Name_toString(x_1, x_79); -x_81 = lean_string_append(x_78, x_80); -lean_dec(x_80); -x_82 = l_Lean_findOLean___closed__9; -x_83 = lean_string_append(x_81, x_82); -lean_ctor_set_tag(x_13, 18); -lean_ctor_set(x_13, 0, x_83); -x_84 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_84, 0, x_13); -lean_ctor_set(x_84, 1, x_74); -return x_84; +lean_object* x_57; lean_object* x_58; lean_object* x_59; +x_57 = lean_ctor_get(x_8, 1); +lean_inc(x_57); +lean_dec(x_8); +x_58 = lean_ctor_get(x_9, 0); +lean_inc(x_58); +lean_dec(x_9); +x_59 = lean_alloc_ctor(0, 2, 0); +lean_ctor_set(x_59, 0, x_58); +lean_ctor_set(x_59, 1, x_57); +return x_59; } } -else -{ -uint8_t x_85; -lean_free_object(x_13); -lean_dec(x_1); -x_85 = !lean_is_exclusive(x_56); -if (x_85 == 0) -{ -lean_object* x_86; -x_86 = lean_ctor_get(x_56, 0); -lean_dec(x_86); -lean_ctor_set(x_56, 0, x_55); -return x_56; -} -else -{ -lean_object* x_87; lean_object* x_88; -x_87 = lean_ctor_get(x_56, 1); -lean_inc(x_87); -lean_dec(x_56); -x_88 = lean_alloc_ctor(0, 2, 0); -lean_ctor_set(x_88, 0, x_55); -lean_ctor_set(x_88, 1, x_87); -return x_88; -} -} -} -} -else -{ -uint8_t x_89; -lean_dec(x_55); -lean_free_object(x_13); -lean_dec(x_1); -x_89 = !lean_is_exclusive(x_56); -if (x_89 == 0) -{ -return x_56; -} -else -{ -lean_object* x_90; lean_object* x_91; lean_object* x_92; -x_90 = lean_ctor_get(x_56, 0); -x_91 = lean_ctor_get(x_56, 1); -lean_inc(x_91); -lean_inc(x_90); -lean_dec(x_56); -x_92 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_92, 0, x_90); -lean_ctor_set(x_92, 1, x_91); -return x_92; -} -} -} -else -{ -lean_object* x_93; lean_object* x_94; lean_object* x_95; -x_93 = lean_ctor_get(x_13, 0); -lean_inc(x_93); -lean_dec(x_13); -lean_inc(x_1); -x_94 = l_Lean_modToFilePath(x_93, x_1, x_11); -lean_inc(x_1); -x_95 = l_Lean_moduleExists_go(x_93, x_11, x_1, x_52); -lean_dec(x_93); -if (lean_obj_tag(x_95) == 0) -{ -if (x_2 == 0) -{ -lean_object* x_96; lean_object* x_97; lean_object* x_98; -lean_dec(x_1); -x_96 = lean_ctor_get(x_95, 1); -lean_inc(x_96); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_97 = x_95; -} else { - lean_dec_ref(x_95); - x_97 = lean_box(0); -} -if (lean_is_scalar(x_97)) { - x_98 = lean_alloc_ctor(0, 2, 0); -} else { - x_98 = x_97; -} -lean_ctor_set(x_98, 0, x_94); -lean_ctor_set(x_98, 1, x_96); -return x_98; -} -else -{ -lean_object* x_99; uint8_t x_100; -x_99 = lean_ctor_get(x_95, 0); -lean_inc(x_99); -x_100 = lean_unbox(x_99); -lean_dec(x_99); -if (x_100 == 0) -{ -lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; -x_101 = lean_ctor_get(x_95, 1); -lean_inc(x_101); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_102 = x_95; -} else { - lean_dec_ref(x_95); - x_102 = lean_box(0); -} -x_103 = l_Lean_findOLean___closed__7; -x_104 = lean_string_append(x_103, x_94); -lean_dec(x_94); -x_105 = l_Lean_findOLean___closed__8; -x_106 = lean_string_append(x_104, x_105); -x_107 = 1; -x_108 = l_Lean_Name_toString(x_1, x_107); -x_109 = lean_string_append(x_106, x_108); -lean_dec(x_108); -x_110 = l_Lean_findOLean___closed__9; -x_111 = lean_string_append(x_109, x_110); -x_112 = lean_alloc_ctor(18, 1, 0); -lean_ctor_set(x_112, 0, x_111); -if (lean_is_scalar(x_102)) { - x_113 = lean_alloc_ctor(1, 2, 0); -} else { - x_113 = x_102; - lean_ctor_set_tag(x_113, 1); -} -lean_ctor_set(x_113, 0, x_112); -lean_ctor_set(x_113, 1, x_101); -return x_113; -} -else -{ -lean_object* x_114; lean_object* x_115; lean_object* x_116; -lean_dec(x_1); -x_114 = lean_ctor_get(x_95, 1); -lean_inc(x_114); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_115 = x_95; -} else { - lean_dec_ref(x_95); - x_115 = lean_box(0); -} -if (lean_is_scalar(x_115)) { - x_116 = lean_alloc_ctor(0, 2, 0); -} else { - x_116 = x_115; -} -lean_ctor_set(x_116, 0, x_94); -lean_ctor_set(x_116, 1, x_114); -return x_116; -} -} -} -else -{ -lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; -lean_dec(x_94); -lean_dec(x_1); -x_117 = lean_ctor_get(x_95, 0); -lean_inc(x_117); -x_118 = lean_ctor_get(x_95, 1); -lean_inc(x_118); -if (lean_is_exclusive(x_95)) { - lean_ctor_release(x_95, 0); - lean_ctor_release(x_95, 1); - x_119 = x_95; -} else { - lean_dec_ref(x_95); - x_119 = lean_box(0); -} -if (lean_is_scalar(x_119)) { - x_120 = lean_alloc_ctor(1, 2, 0); -} else { - x_120 = x_119; -} -lean_ctor_set(x_120, 0, x_117); -lean_ctor_set(x_120, 1, x_118); -return x_120; -} -} -} -} -else -{ -uint8_t x_121; -lean_dec(x_10); -lean_dec(x_6); -lean_dec(x_1); -x_121 = !lean_is_exclusive(x_12); -if (x_121 == 0) -{ -return x_12; -} -else -{ -lean_object* x_122; lean_object* x_123; lean_object* x_124; -x_122 = lean_ctor_get(x_12, 0); -x_123 = lean_ctor_get(x_12, 1); -lean_inc(x_123); -lean_inc(x_122); -lean_dec(x_12); -x_124 = lean_alloc_ctor(1, 2, 0); -lean_ctor_set(x_124, 0, x_122); -lean_ctor_set(x_124, 1, x_123); -return x_124; -} -} -} -} -LEAN_EXPORT lean_object* l_Lean_findOLean___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) { -_start: -{ -uint8_t x_4; lean_object* x_5; -x_4 = lean_unbox(x_2); -lean_dec(x_2); -x_5 = l_Lean_findOLean(x_1, x_4, x_3); -return x_5; } } LEAN_EXPORT lean_object* l_List_foldl___at_Lean_moduleNameOfFileName___spec__1(lean_object* x_1, lean_object* x_2) { @@ -4100,21 +2856,13 @@ l_Lean_modToFilePath_go___closed__3 = _init_l_Lean_modToFilePath_go___closed__3( lean_mark_persistent(l_Lean_modToFilePath_go___closed__3); l_Lean_modToFilePath_go___closed__4 = _init_l_Lean_modToFilePath_go___closed__4(); lean_mark_persistent(l_Lean_modToFilePath_go___closed__4); -l_panic___at_Lean_moduleExists_go___spec__2___closed__1 = _init_l_panic___at_Lean_moduleExists_go___spec__2___closed__1(); -lean_mark_persistent(l_panic___at_Lean_moduleExists_go___spec__2___closed__1); -l_Lean_moduleExists_go___closed__1 = _init_l_Lean_moduleExists_go___closed__1(); -lean_mark_persistent(l_Lean_moduleExists_go___closed__1); -l_Lean_moduleExists_go___closed__2 = _init_l_Lean_moduleExists_go___closed__2(); -lean_mark_persistent(l_Lean_moduleExists_go___closed__2); -l_Lean_moduleExists_go___closed__3 = _init_l_Lean_moduleExists_go___closed__3(); -lean_mark_persistent(l_Lean_moduleExists_go___closed__3); l_Lean_SearchPath_findModuleWithExt___closed__1 = _init_l_Lean_SearchPath_findModuleWithExt___closed__1(); lean_mark_persistent(l_Lean_SearchPath_findModuleWithExt___closed__1); l_List_forIn_loop___at_Lean_SearchPath_findAllWithExt___spec__2___closed__1 = _init_l_List_forIn_loop___at_Lean_SearchPath_findAllWithExt___spec__2___closed__1(); lean_mark_persistent(l_List_forIn_loop___at_Lean_SearchPath_findAllWithExt___spec__2___closed__1); l_Lean_SearchPath_findAllWithExt___closed__1 = _init_l_Lean_SearchPath_findAllWithExt___closed__1(); lean_mark_persistent(l_Lean_SearchPath_findAllWithExt___closed__1); -if (builtin) {res = l_Lean_initFn____x40_Lean_Util_Path___hyg_1117_(lean_io_mk_world()); +if (builtin) {res = l_Lean_initFn____x40_Lean_Util_Path___hyg_744_(lean_io_mk_world()); if (lean_io_result_is_error(res)) return res; l_Lean_searchPathRef = lean_io_result_get_value(res); lean_mark_persistent(l_Lean_searchPathRef); @@ -4152,12 +2900,6 @@ l_Lean_findOLean___closed__5 = _init_l_Lean_findOLean___closed__5(); lean_mark_persistent(l_Lean_findOLean___closed__5); l_Lean_findOLean___closed__6 = _init_l_Lean_findOLean___closed__6(); lean_mark_persistent(l_Lean_findOLean___closed__6); -l_Lean_findOLean___closed__7 = _init_l_Lean_findOLean___closed__7(); -lean_mark_persistent(l_Lean_findOLean___closed__7); -l_Lean_findOLean___closed__8 = _init_l_Lean_findOLean___closed__8(); -lean_mark_persistent(l_Lean_findOLean___closed__8); -l_Lean_findOLean___closed__9 = _init_l_Lean_findOLean___closed__9(); -lean_mark_persistent(l_Lean_findOLean___closed__9); l_Lean_moduleNameOfFileName___lambda__2___closed__1 = _init_l_Lean_moduleNameOfFileName___lambda__2___closed__1(); lean_mark_persistent(l_Lean_moduleNameOfFileName___lambda__2___closed__1); l_Lean_moduleNameOfFileName___lambda__2___closed__2 = _init_l_Lean_moduleNameOfFileName___lambda__2___closed__2();