diff --git a/src/stage0/CMakeLists.txt b/src/stage0/CMakeLists.txt index 8846d58e77..988d617961 100644 --- a/src/stage0/CMakeLists.txt +++ b/src/stage0/CMakeLists.txt @@ -1 +1 @@ -add_library (stage0 OBJECT ./init/coe.cpp ./init/control/alternative.cpp ./init/control/applicative.cpp ./init/control/combinators.cpp ./init/control/conditional.cpp ./init/control/default.cpp ./init/control/estate.cpp ./init/control/except.cpp ./init/control/functor.cpp ./init/control/id.cpp ./init/control/lift.cpp ./init/control/monad.cpp ./init/control/monadfail.cpp ./init/control/option.cpp ./init/control/reader.cpp ./init/control/state.cpp ./init/core.cpp ./init/data/array/basic.cpp ./init/data/array/binsearch.cpp ./init/data/array/default.cpp ./init/data/array/qsort.cpp ./init/data/assoclist.cpp ./init/data/basic.cpp ./init/data/binomialheap/basic.cpp ./init/data/binomialheap/default.cpp ./init/data/bytearray/basic.cpp ./init/data/bytearray/default.cpp ./init/data/char/basic.cpp ./init/data/char/default.cpp ./init/data/default.cpp ./init/data/dlist.cpp ./init/data/fin/basic.cpp ./init/data/fin/default.cpp ./init/data/hashable.cpp ./init/data/hashmap/basic.cpp ./init/data/hashmap/default.cpp ./init/data/int/basic.cpp ./init/data/int/default.cpp ./init/data/list/basic.cpp ./init/data/list/default.cpp ./init/data/list/instances.cpp ./init/data/nat/basic.cpp ./init/data/nat/bitwise.cpp ./init/data/nat/default.cpp ./init/data/nat/div.cpp ./init/data/option/basic.cpp ./init/data/option/instances.cpp ./init/data/ordering/basic.cpp ./init/data/ordering/default.cpp ./init/data/persistentarray/basic.cpp ./init/data/persistentarray/default.cpp ./init/data/persistenthashmap/basic.cpp ./init/data/persistenthashmap/default.cpp ./init/data/random.cpp ./init/data/rbmap/basic.cpp ./init/data/rbmap/default.cpp ./init/data/rbtree/basic.cpp ./init/data/rbtree/default.cpp ./init/data/repr.cpp ./init/data/string/basic.cpp ./init/data/string/default.cpp ./init/data/tostring.cpp ./init/data/uint.cpp ./init/default.cpp ./init/fix.cpp ./init/lean/attributes.cpp ./init/lean/class.cpp ./init/lean/compiler/closedtermcache.cpp ./init/lean/compiler/constfolding.cpp ./init/lean/compiler/default.cpp ./init/lean/compiler/exportattr.cpp ./init/lean/compiler/externattr.cpp ./init/lean/compiler/implementedbyattr.cpp ./init/lean/compiler/initattr.cpp ./init/lean/compiler/inlineattrs.cpp ./init/lean/compiler/ir/basic.cpp ./init/lean/compiler/ir/borrow.cpp ./init/lean/compiler/ir/boxing.cpp ./init/lean/compiler/ir/checker.cpp ./init/lean/compiler/ir/compilerm.cpp ./init/lean/compiler/ir/default.cpp ./init/lean/compiler/ir/elimdead.cpp ./init/lean/compiler/ir/emitcpp.cpp ./init/lean/compiler/ir/emitutil.cpp ./init/lean/compiler/ir/expandresetreuse.cpp ./init/lean/compiler/ir/format.cpp ./init/lean/compiler/ir/freevars.cpp ./init/lean/compiler/ir/livevars.cpp ./init/lean/compiler/ir/normids.cpp ./init/lean/compiler/ir/pushproj.cpp ./init/lean/compiler/ir/rc.cpp ./init/lean/compiler/ir/resetreuse.cpp ./init/lean/compiler/ir/simpcase.cpp ./init/lean/compiler/namemangling.cpp ./init/lean/compiler/specialize.cpp ./init/lean/compiler/util.cpp ./init/lean/declaration.cpp ./init/lean/default.cpp ./init/lean/elaborator/alias.cpp ./init/lean/elaborator/basic.cpp ./init/lean/elaborator/command.cpp ./init/lean/elaborator/default.cpp ./init/lean/elaborator/elabstrategyattrs.cpp ./init/lean/environment.cpp ./init/lean/eqncompiler/default.cpp ./init/lean/eqncompiler/matchpattern.cpp ./init/lean/expr.cpp ./init/lean/format.cpp ./init/lean/kvmap.cpp ./init/lean/level.cpp ./init/lean/message.cpp ./init/lean/modifiers.cpp ./init/lean/name.cpp ./init/lean/namegenerator.cpp ./init/lean/options.cpp ./init/lean/parser/command.cpp ./init/lean/parser/default.cpp ./init/lean/parser/identifier.cpp ./init/lean/parser/level.cpp ./init/lean/parser/module.cpp ./init/lean/parser/parser.cpp ./init/lean/parser/term.cpp ./init/lean/parser/trie.cpp ./init/lean/path.cpp ./init/lean/position.cpp ./init/lean/projfns.cpp ./init/lean/reducibilityattrs.cpp ./init/lean/runtime.cpp ./init/lean/scopes.cpp ./init/lean/smap.cpp ./init/lean/syntax.cpp ./init/lean/toexpr.cpp ./init/lean/trace.cpp ./init/lean/util.cpp ./init/system/default.cpp ./init/system/filepath.cpp ./init/system/io.cpp ./init/system/platform.cpp ./init/util.cpp ./init/wf.cpp) +add_library (stage0 OBJECT ./init/coe.cpp ./init/control/alternative.cpp ./init/control/applicative.cpp ./init/control/combinators.cpp ./init/control/conditional.cpp ./init/control/default.cpp ./init/control/estate.cpp ./init/control/except.cpp ./init/control/functor.cpp ./init/control/id.cpp ./init/control/lift.cpp ./init/control/monad.cpp ./init/control/monadfail.cpp ./init/control/option.cpp ./init/control/reader.cpp ./init/control/state.cpp ./init/core.cpp ./init/data/array/basic.cpp ./init/data/array/binsearch.cpp ./init/data/array/default.cpp ./init/data/array/qsort.cpp ./init/data/assoclist.cpp ./init/data/basic.cpp ./init/data/binomialheap/basic.cpp ./init/data/binomialheap/default.cpp ./init/data/bytearray/basic.cpp ./init/data/bytearray/default.cpp ./init/data/char/basic.cpp ./init/data/char/default.cpp ./init/data/default.cpp ./init/data/dlist.cpp ./init/data/fin/basic.cpp ./init/data/fin/default.cpp ./init/data/hashable.cpp ./init/data/hashmap/basic.cpp ./init/data/hashmap/default.cpp ./init/data/int/basic.cpp ./init/data/int/default.cpp ./init/data/list/basic.cpp ./init/data/list/default.cpp ./init/data/list/instances.cpp ./init/data/nat/basic.cpp ./init/data/nat/bitwise.cpp ./init/data/nat/default.cpp ./init/data/nat/div.cpp ./init/data/option/basic.cpp ./init/data/option/instances.cpp ./init/data/ordering/basic.cpp ./init/data/ordering/default.cpp ./init/data/persistentarray/basic.cpp ./init/data/persistentarray/default.cpp ./init/data/persistenthashmap/basic.cpp ./init/data/persistenthashmap/default.cpp ./init/data/random.cpp ./init/data/rbmap/basic.cpp ./init/data/rbmap/default.cpp ./init/data/rbtree/basic.cpp ./init/data/rbtree/default.cpp ./init/data/repr.cpp ./init/data/string/basic.cpp ./init/data/string/default.cpp ./init/data/tostring.cpp ./init/data/uint.cpp ./init/default.cpp ./init/fix.cpp ./init/lean/attributes.cpp ./init/lean/class.cpp ./init/lean/compiler/closedtermcache.cpp ./init/lean/compiler/constfolding.cpp ./init/lean/compiler/default.cpp ./init/lean/compiler/exportattr.cpp ./init/lean/compiler/externattr.cpp ./init/lean/compiler/implementedbyattr.cpp ./init/lean/compiler/initattr.cpp ./init/lean/compiler/inlineattrs.cpp ./init/lean/compiler/ir/basic.cpp ./init/lean/compiler/ir/borrow.cpp ./init/lean/compiler/ir/boxing.cpp ./init/lean/compiler/ir/checker.cpp ./init/lean/compiler/ir/compilerm.cpp ./init/lean/compiler/ir/default.cpp ./init/lean/compiler/ir/elimdead.cpp ./init/lean/compiler/ir/emitcpp.cpp ./init/lean/compiler/ir/emitutil.cpp ./init/lean/compiler/ir/expandresetreuse.cpp ./init/lean/compiler/ir/format.cpp ./init/lean/compiler/ir/freevars.cpp ./init/lean/compiler/ir/livevars.cpp ./init/lean/compiler/ir/normids.cpp ./init/lean/compiler/ir/pushproj.cpp ./init/lean/compiler/ir/rc.cpp ./init/lean/compiler/ir/resetreuse.cpp ./init/lean/compiler/ir/simpcase.cpp ./init/lean/compiler/namemangling.cpp ./init/lean/compiler/specialize.cpp ./init/lean/compiler/util.cpp ./init/lean/declaration.cpp ./init/lean/default.cpp ./init/lean/elaborator/alias.cpp ./init/lean/elaborator/basic.cpp ./init/lean/elaborator/command.cpp ./init/lean/elaborator/default.cpp ./init/lean/elaborator/elabstrategyattrs.cpp ./init/lean/environment.cpp ./init/lean/eqncompiler/default.cpp ./init/lean/eqncompiler/matchpattern.cpp ./init/lean/expr.cpp ./init/lean/format.cpp ./init/lean/kvmap.cpp ./init/lean/level.cpp ./init/lean/localcontext.cpp ./init/lean/message.cpp ./init/lean/modifiers.cpp ./init/lean/name.cpp ./init/lean/namegenerator.cpp ./init/lean/options.cpp ./init/lean/parser/command.cpp ./init/lean/parser/default.cpp ./init/lean/parser/identifier.cpp ./init/lean/parser/level.cpp ./init/lean/parser/module.cpp ./init/lean/parser/parser.cpp ./init/lean/parser/term.cpp ./init/lean/parser/trie.cpp ./init/lean/path.cpp ./init/lean/position.cpp ./init/lean/projfns.cpp ./init/lean/reducibilityattrs.cpp ./init/lean/runtime.cpp ./init/lean/scopes.cpp ./init/lean/smap.cpp ./init/lean/syntax.cpp ./init/lean/toexpr.cpp ./init/lean/trace.cpp ./init/lean/util.cpp ./init/system/default.cpp ./init/system/filepath.cpp ./init/system/io.cpp ./init/system/platform.cpp ./init/util.cpp ./init/wf.cpp) diff --git a/src/stage0/init/data/binomial.cpp b/src/stage0/init/data/binomial.cpp deleted file mode 100644 index cd622cd2f1..0000000000 --- a/src/stage0/init/data/binomial.cpp +++ /dev/null @@ -1,1292 +0,0 @@ -// Lean compiler output -// Module: init.data.binomial -// Imports: init.data.array.default -#include "runtime/object.h" -#include "runtime/apply.h" -typedef lean::object obj; typedef lean::usize usize; -typedef lean::uint8 uint8; typedef lean::uint16 uint16; -typedef lean::uint32 uint32; typedef lean::uint64 uint64; -#if defined(__clang__) -#pragma clang diagnostic ignored "-Wunused-parameter" -#pragma clang diagnostic ignored "-Wunused-label" -#elif defined(__GNUC__) && !defined(__CLANG__) -#pragma GCC diagnostic ignored "-Wunused-parameter" -#pragma GCC diagnostic ignored "-Wunused-label" -#pragma GCC diagnostic ignored "-Wunused-but-set-variable" -#endif -obj* l_List_foldl___main___at_BinomialHeap_head___main___spec__1(obj*); -obj* l_BinomialHeap_singleton___rarg(obj*); -obj* l_List_foldl___main___at_BinomialHeap_headOpt___spec__1(obj*); -obj* l_BinomialHeap_mergeNodes___main(obj*); -obj* l_BinomialHeap_headOpt(obj*); -obj* l_BinomialHeap_hRank___main(obj*); -obj* l_BinomialHeap_head___main(obj*); -obj* l_BinomialHeap_head___rarg___boxed(obj*, obj*, obj*); -obj* l_BinomialHeap_isEmpty___main___rarg___boxed(obj*); -obj* l_BinomialHeap_combine(obj*); -obj* l_BinomialHeap_merge(obj*); -uint8 l_BinomialHeap_isEmpty___rarg(obj*); -obj* l_BinomialHeap_merge___main(obj*); -obj* l_BinomialHeap_head___main___rarg(obj*, obj*, obj*); -obj* l_BinomialHeap_hRank___main___rarg(obj*); -obj* l_BinomialHeap_hRank(obj*); -obj* l_BinomialHeap_mergeNodes___rarg(obj*, obj*, obj*); -obj* l_BinomialHeap_head___rarg(obj*, obj*, obj*); -obj* l_BinomialHeap_insert(obj*); -namespace lean { -uint8 nat_dec_lt(obj*, obj*); -} -obj* l_List_append___rarg(obj*, obj*); -obj* l_List_foldl___main___at_BinomialHeap_head___spec__1___rarg(obj*, obj*, obj*); -namespace lean { -obj* nat_add(obj*, obj*); -} -obj* l_BinomialHeap_singleton(obj*); -namespace lean { -uint8 nat_dec_eq(obj*, obj*); -} -obj* l_BinomialHeap_mergeNodes(obj*); -obj* l_BinomialHeap_merge___rarg(obj*, obj*, obj*); -obj* l_BinomialHeap_combine___rarg(obj*, obj*, obj*); -obj* l_BinomialHeap_insert___rarg(obj*, obj*, obj*); -obj* l_List_foldl___main___at_BinomialHeap_headOpt___spec__1___rarg(obj*, obj*, obj*); -obj* l_BinomialHeap_isEmpty(obj*); -obj* l_BinomialHeap_headOpt___main(obj*); -obj* l_BinomialHeap_merge___main___rarg(obj*, obj*, obj*); -obj* l_List_foldl___main___at_BinomialHeap_headOpt___main___spec__1___rarg(obj*, obj*, obj*); -obj* l_BinomialHeap_headOpt___rarg(obj*, obj*); -obj* l_BinomialHeap_mergeNodes___main___rarg(obj*, obj*, obj*); -obj* l_BinomialHeap_hRank___rarg(obj*); -obj* l_List_foldl___main___at_BinomialHeap_headOpt___main___spec__1(obj*); -obj* l_BinomialHeap_isEmpty___main(obj*); -obj* l_BinomialHeap_isEmpty___rarg___boxed(obj*); -uint8 l_BinomialHeap_isEmpty___main___rarg(obj*); -obj* l_BinomialHeap_head(obj*); -obj* l_BinomialHeap_Inhabited(obj*); -obj* l_BinomialHeap_headOpt___main___rarg(obj*, obj*); -obj* l_List_foldl___main___at_BinomialHeap_head___main___spec__1___rarg(obj*, obj*, obj*); -obj* l_BinomialHeap_hRank___main___rarg___boxed(obj*); -obj* l_BinomialHeap_head___main___rarg___boxed(obj*, obj*, obj*); -obj* l_BinomialHeap_hRank___rarg___boxed(obj*); -obj* l_List_foldl___main___at_BinomialHeap_head___spec__1(obj*); -obj* l_BinomialHeap_Inhabited(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::box(0); -return x_2; -} -} -obj* l_BinomialHeap_hRank___main___rarg(obj* x_1) { -_start: -{ -if (lean::obj_tag(x_1) == 0) -{ -obj* x_2; -x_2 = lean::mk_nat_obj(0u); -return x_2; -} -else -{ -obj* x_3; obj* x_4; -x_3 = lean::cnstr_get(x_1, 0); -x_4 = lean::cnstr_get(x_3, 1); -lean::inc(x_4); -return x_4; -} -} -} -obj* l_BinomialHeap_hRank___main(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_hRank___main___rarg___boxed), 1, 0); -return x_2; -} -} -obj* l_BinomialHeap_hRank___main___rarg___boxed(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = l_BinomialHeap_hRank___main___rarg(x_1); -lean::dec(x_1); -return x_2; -} -} -obj* l_BinomialHeap_hRank___rarg(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = l_BinomialHeap_hRank___main___rarg(x_1); -return x_2; -} -} -obj* l_BinomialHeap_hRank(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_hRank___rarg___boxed), 1, 0); -return x_2; -} -} -obj* l_BinomialHeap_hRank___rarg___boxed(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = l_BinomialHeap_hRank___rarg(x_1); -lean::dec(x_1); -return x_2; -} -} -uint8 l_BinomialHeap_isEmpty___main___rarg(obj* x_1) { -_start: -{ -if (lean::obj_tag(x_1) == 0) -{ -uint8 x_2; -x_2 = 1; -return x_2; -} -else -{ -uint8 x_3; -x_3 = 0; -return x_3; -} -} -} -obj* l_BinomialHeap_isEmpty___main(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_isEmpty___main___rarg___boxed), 1, 0); -return x_2; -} -} -obj* l_BinomialHeap_isEmpty___main___rarg___boxed(obj* x_1) { -_start: -{ -uint8 x_2; obj* x_3; -x_2 = l_BinomialHeap_isEmpty___main___rarg(x_1); -lean::dec(x_1); -x_3 = lean::box(x_2); -return x_3; -} -} -uint8 l_BinomialHeap_isEmpty___rarg(obj* x_1) { -_start: -{ -uint8 x_2; -x_2 = l_BinomialHeap_isEmpty___main___rarg(x_1); -return x_2; -} -} -obj* l_BinomialHeap_isEmpty(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_isEmpty___rarg___boxed), 1, 0); -return x_2; -} -} -obj* l_BinomialHeap_isEmpty___rarg___boxed(obj* x_1) { -_start: -{ -uint8 x_2; obj* x_3; -x_2 = l_BinomialHeap_isEmpty___rarg(x_1); -lean::dec(x_1); -x_3 = lean::box(x_2); -return x_3; -} -} -obj* l_BinomialHeap_singleton___rarg(obj* x_1) { -_start: -{ -obj* x_2; obj* x_3; obj* x_4; obj* x_5; obj* x_6; -x_2 = lean::box(0); -x_3 = lean::mk_nat_obj(1u); -x_4 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_4, 0, x_1); -lean::cnstr_set(x_4, 1, x_3); -lean::cnstr_set(x_4, 2, x_2); -x_5 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_5, 0, x_4); -lean::cnstr_set(x_5, 1, x_2); -x_6 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_6, 0, x_5); -return x_6; -} -} -obj* l_BinomialHeap_singleton(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_singleton___rarg), 1, 0); -return x_2; -} -} -obj* l_BinomialHeap_combine___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; uint8 x_11; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_5 = lean::cnstr_get(x_2, 1); -lean::inc(x_5); -x_6 = lean::cnstr_get(x_2, 2); -lean::inc(x_6); -x_7 = lean::cnstr_get(x_3, 0); -lean::inc(x_7); -x_8 = lean::cnstr_get(x_3, 1); -lean::inc(x_8); -x_9 = lean::cnstr_get(x_3, 2); -lean::inc(x_9); -lean::inc(x_7); -lean::inc(x_4); -x_10 = lean::apply_2(x_1, x_4, x_7); -x_11 = lean::unbox(x_10); -lean::dec(x_10); -if (x_11 == 0) -{ -uint8 x_12; -lean::dec(x_9); -lean::dec(x_8); -lean::dec(x_7); -x_12 = !lean::is_exclusive(x_2); -if (x_12 == 0) -{ -obj* x_13; obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; -x_13 = lean::cnstr_get(x_2, 2); -lean::dec(x_13); -x_14 = lean::cnstr_get(x_2, 1); -lean::dec(x_14); -x_15 = lean::cnstr_get(x_2, 0); -lean::dec(x_15); -x_16 = lean::mk_nat_obj(1u); -x_17 = lean::nat_add(x_5, x_16); -lean::dec(x_5); -x_18 = lean::box(0); -x_19 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_19, 0, x_3); -lean::cnstr_set(x_19, 1, x_18); -x_20 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_20, 0, x_19); -x_21 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_21, 0, x_20); -lean::cnstr_set(x_21, 1, x_18); -x_22 = l_List_append___rarg(x_6, x_21); -lean::cnstr_set(x_2, 2, x_22); -lean::cnstr_set(x_2, 1, x_17); -return x_2; -} -else -{ -obj* x_23; obj* x_24; obj* x_25; obj* x_26; obj* x_27; obj* x_28; obj* x_29; obj* x_30; -lean::dec(x_2); -x_23 = lean::mk_nat_obj(1u); -x_24 = lean::nat_add(x_5, x_23); -lean::dec(x_5); -x_25 = lean::box(0); -x_26 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_26, 0, x_3); -lean::cnstr_set(x_26, 1, x_25); -x_27 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_27, 0, x_26); -x_28 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_28, 0, x_27); -lean::cnstr_set(x_28, 1, x_25); -x_29 = l_List_append___rarg(x_6, x_28); -x_30 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_30, 0, x_4); -lean::cnstr_set(x_30, 1, x_24); -lean::cnstr_set(x_30, 2, x_29); -return x_30; -} -} -else -{ -uint8 x_31; -lean::dec(x_6); -lean::dec(x_5); -lean::dec(x_4); -x_31 = !lean::is_exclusive(x_3); -if (x_31 == 0) -{ -obj* x_32; obj* x_33; obj* x_34; obj* x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; -x_32 = lean::cnstr_get(x_3, 2); -lean::dec(x_32); -x_33 = lean::cnstr_get(x_3, 1); -lean::dec(x_33); -x_34 = lean::cnstr_get(x_3, 0); -lean::dec(x_34); -x_35 = lean::mk_nat_obj(1u); -x_36 = lean::nat_add(x_8, x_35); -lean::dec(x_8); -x_37 = lean::box(0); -x_38 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_38, 0, x_2); -lean::cnstr_set(x_38, 1, x_37); -x_39 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_39, 0, x_38); -x_40 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_40, 0, x_39); -lean::cnstr_set(x_40, 1, x_37); -x_41 = l_List_append___rarg(x_9, x_40); -lean::cnstr_set(x_3, 2, x_41); -lean::cnstr_set(x_3, 1, x_36); -return x_3; -} -else -{ -obj* x_42; obj* x_43; obj* x_44; obj* x_45; obj* x_46; obj* x_47; obj* x_48; obj* x_49; -lean::dec(x_3); -x_42 = lean::mk_nat_obj(1u); -x_43 = lean::nat_add(x_8, x_42); -lean::dec(x_8); -x_44 = lean::box(0); -x_45 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_45, 0, x_2); -lean::cnstr_set(x_45, 1, x_44); -x_46 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_46, 0, x_45); -x_47 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_47, 0, x_46); -lean::cnstr_set(x_47, 1, x_44); -x_48 = l_List_append___rarg(x_9, x_47); -x_49 = lean::alloc_cnstr(0, 3, 0); -lean::cnstr_set(x_49, 0, x_7); -lean::cnstr_set(x_49, 1, x_43); -lean::cnstr_set(x_49, 2, x_48); -return x_49; -} -} -} -} -obj* l_BinomialHeap_combine(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_combine___rarg), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_mergeNodes___main___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -if (lean::obj_tag(x_2) == 0) -{ -lean::dec(x_1); -return x_3; -} -else -{ -if (lean::obj_tag(x_3) == 0) -{ -lean::dec(x_1); -return x_2; -} -else -{ -obj* x_4; obj* x_5; obj* x_6; obj* x_7; obj* x_8; obj* x_9; uint8 x_10; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -x_5 = lean::cnstr_get(x_2, 1); -lean::inc(x_5); -x_6 = lean::cnstr_get(x_3, 0); -lean::inc(x_6); -x_7 = lean::cnstr_get(x_3, 1); -lean::inc(x_7); -x_8 = lean::cnstr_get(x_4, 1); -lean::inc(x_8); -x_9 = lean::cnstr_get(x_6, 1); -lean::inc(x_9); -x_10 = lean::nat_dec_lt(x_8, x_9); -if (x_10 == 0) -{ -uint8 x_11; -x_11 = !lean::is_exclusive(x_3); -if (x_11 == 0) -{ -obj* x_12; obj* x_13; uint8 x_14; -x_12 = lean::cnstr_get(x_3, 1); -lean::dec(x_12); -x_13 = lean::cnstr_get(x_3, 0); -lean::dec(x_13); -x_14 = lean::nat_dec_lt(x_9, x_8); -lean::dec(x_8); -lean::dec(x_9); -if (x_14 == 0) -{ -obj* x_15; obj* x_16; obj* x_17; uint8 x_18; -lean::dec(x_2); -lean::inc(x_1); -x_15 = l_BinomialHeap_combine___rarg(x_1, x_4, x_6); -x_16 = lean::cnstr_get(x_15, 1); -lean::inc(x_16); -x_17 = l_BinomialHeap_hRank___main___rarg(x_5); -x_18 = lean::nat_dec_eq(x_16, x_17); -lean::dec(x_17); -if (x_18 == 0) -{ -obj* x_19; uint8 x_20; -x_19 = l_BinomialHeap_hRank___main___rarg(x_7); -x_20 = lean::nat_dec_eq(x_16, x_19); -lean::dec(x_19); -lean::dec(x_16); -if (x_20 == 0) -{ -obj* x_21; -x_21 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_5, x_7); -lean::cnstr_set(x_3, 1, x_21); -lean::cnstr_set(x_3, 0, x_15); -return x_3; -} -else -{ -lean::cnstr_set(x_3, 1, x_5); -lean::cnstr_set(x_3, 0, x_15); -x_2 = x_3; -x_3 = x_7; -goto _start; -} -} -else -{ -obj* x_23; uint8 x_24; -x_23 = l_BinomialHeap_hRank___main___rarg(x_7); -x_24 = lean::nat_dec_eq(x_16, x_23); -lean::dec(x_23); -lean::dec(x_16); -if (x_24 == 0) -{ -lean::cnstr_set(x_3, 0, x_15); -x_2 = x_5; -goto _start; -} -else -{ -obj* x_26; -x_26 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_5, x_7); -lean::cnstr_set(x_3, 1, x_26); -lean::cnstr_set(x_3, 0, x_15); -return x_3; -} -} -} -else -{ -obj* x_27; -lean::dec(x_5); -lean::dec(x_4); -x_27 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_7, x_2); -lean::cnstr_set(x_3, 1, x_27); -return x_3; -} -} -else -{ -uint8 x_28; -lean::dec(x_3); -x_28 = lean::nat_dec_lt(x_9, x_8); -lean::dec(x_8); -lean::dec(x_9); -if (x_28 == 0) -{ -obj* x_29; obj* x_30; obj* x_31; uint8 x_32; -lean::dec(x_2); -lean::inc(x_1); -x_29 = l_BinomialHeap_combine___rarg(x_1, x_4, x_6); -x_30 = lean::cnstr_get(x_29, 1); -lean::inc(x_30); -x_31 = l_BinomialHeap_hRank___main___rarg(x_5); -x_32 = lean::nat_dec_eq(x_30, x_31); -lean::dec(x_31); -if (x_32 == 0) -{ -obj* x_33; uint8 x_34; -x_33 = l_BinomialHeap_hRank___main___rarg(x_7); -x_34 = lean::nat_dec_eq(x_30, x_33); -lean::dec(x_33); -lean::dec(x_30); -if (x_34 == 0) -{ -obj* x_35; obj* x_36; -x_35 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_5, x_7); -x_36 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_36, 0, x_29); -lean::cnstr_set(x_36, 1, x_35); -return x_36; -} -else -{ -obj* x_37; -x_37 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_37, 0, x_29); -lean::cnstr_set(x_37, 1, x_5); -x_2 = x_37; -x_3 = x_7; -goto _start; -} -} -else -{ -obj* x_39; uint8 x_40; -x_39 = l_BinomialHeap_hRank___main___rarg(x_7); -x_40 = lean::nat_dec_eq(x_30, x_39); -lean::dec(x_39); -lean::dec(x_30); -if (x_40 == 0) -{ -obj* x_41; -x_41 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_41, 0, x_29); -lean::cnstr_set(x_41, 1, x_7); -x_2 = x_5; -x_3 = x_41; -goto _start; -} -else -{ -obj* x_43; obj* x_44; -x_43 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_5, x_7); -x_44 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_44, 0, x_29); -lean::cnstr_set(x_44, 1, x_43); -return x_44; -} -} -} -else -{ -obj* x_45; obj* x_46; -lean::dec(x_5); -lean::dec(x_4); -x_45 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_7, x_2); -x_46 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_46, 0, x_6); -lean::cnstr_set(x_46, 1, x_45); -return x_46; -} -} -} -else -{ -obj* x_47; uint8 x_48; -lean::dec(x_9); -lean::dec(x_8); -lean::dec(x_7); -lean::dec(x_6); -lean::dec(x_2); -lean::inc(x_3); -x_47 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_5, x_3); -x_48 = !lean::is_exclusive(x_3); -if (x_48 == 0) -{ -obj* x_49; obj* x_50; -x_49 = lean::cnstr_get(x_3, 1); -lean::dec(x_49); -x_50 = lean::cnstr_get(x_3, 0); -lean::dec(x_50); -lean::cnstr_set(x_3, 1, x_47); -lean::cnstr_set(x_3, 0, x_4); -return x_3; -} -else -{ -obj* x_51; -lean::dec(x_3); -x_51 = lean::alloc_cnstr(1, 2, 0); -lean::cnstr_set(x_51, 0, x_4); -lean::cnstr_set(x_51, 1, x_47); -return x_51; -} -} -} -} -} -} -obj* l_BinomialHeap_mergeNodes___main(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_mergeNodes___main___rarg), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_mergeNodes___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; -x_4 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_2, x_3); -return x_4; -} -} -obj* l_BinomialHeap_mergeNodes(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_mergeNodes___rarg), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_merge___main___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -if (lean::obj_tag(x_2) == 0) -{ -lean::dec(x_1); -return x_3; -} -else -{ -if (lean::obj_tag(x_3) == 0) -{ -lean::dec(x_1); -return x_2; -} -else -{ -obj* x_4; uint8 x_5; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -lean::dec(x_2); -x_5 = !lean::is_exclusive(x_3); -if (x_5 == 0) -{ -obj* x_6; obj* x_7; -x_6 = lean::cnstr_get(x_3, 0); -x_7 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_4, x_6); -lean::cnstr_set(x_3, 0, x_7); -return x_3; -} -else -{ -obj* x_8; obj* x_9; obj* x_10; -x_8 = lean::cnstr_get(x_3, 0); -lean::inc(x_8); -lean::dec(x_3); -x_9 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_4, x_8); -x_10 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_10, 0, x_9); -return x_10; -} -} -} -} -} -obj* l_BinomialHeap_merge___main(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_merge___main___rarg), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_merge___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -if (lean::obj_tag(x_2) == 0) -{ -lean::dec(x_1); -return x_3; -} -else -{ -if (lean::obj_tag(x_3) == 0) -{ -lean::dec(x_1); -return x_2; -} -else -{ -obj* x_4; uint8 x_5; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -lean::dec(x_2); -x_5 = !lean::is_exclusive(x_3); -if (x_5 == 0) -{ -obj* x_6; obj* x_7; -x_6 = lean::cnstr_get(x_3, 0); -x_7 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_4, x_6); -lean::cnstr_set(x_3, 0, x_7); -return x_3; -} -else -{ -obj* x_8; obj* x_9; obj* x_10; -x_8 = lean::cnstr_get(x_3, 0); -lean::inc(x_8); -lean::dec(x_3); -x_9 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_4, x_8); -x_10 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_10, 0, x_9); -return x_10; -} -} -} -} -} -obj* l_BinomialHeap_merge(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_merge___rarg), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_insert___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; -x_4 = l_BinomialHeap_singleton___rarg(x_2); -if (lean::obj_tag(x_4) == 0) -{ -lean::dec(x_1); -return x_3; -} -else -{ -if (lean::obj_tag(x_3) == 0) -{ -lean::dec(x_1); -return x_4; -} -else -{ -obj* x_5; uint8 x_6; -x_5 = lean::cnstr_get(x_4, 0); -lean::inc(x_5); -lean::dec(x_4); -x_6 = !lean::is_exclusive(x_3); -if (x_6 == 0) -{ -obj* x_7; obj* x_8; -x_7 = lean::cnstr_get(x_3, 0); -x_8 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_5, x_7); -lean::cnstr_set(x_3, 0, x_8); -return x_3; -} -else -{ -obj* x_9; obj* x_10; obj* x_11; -x_9 = lean::cnstr_get(x_3, 0); -lean::inc(x_9); -lean::dec(x_3); -x_10 = l_BinomialHeap_mergeNodes___main___rarg(x_1, x_5, x_9); -x_11 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_11, 0, x_10); -return x_11; -} -} -} -} -} -obj* l_BinomialHeap_insert(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_insert___rarg), 3, 0); -return x_2; -} -} -obj* l_List_foldl___main___at_BinomialHeap_headOpt___main___spec__1___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -if (lean::obj_tag(x_3) == 0) -{ -lean::dec(x_1); -return x_2; -} -else -{ -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_5; obj* x_6; obj* x_7; -x_4 = lean::cnstr_get(x_3, 0); -lean::inc(x_4); -x_5 = lean::cnstr_get(x_3, 1); -lean::inc(x_5); -lean::dec(x_3); -x_6 = lean::cnstr_get(x_4, 0); -lean::inc(x_6); -lean::dec(x_4); -x_7 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_7, 0, x_6); -x_2 = x_7; -x_3 = x_5; -goto _start; -} -else -{ -obj* x_9; obj* x_10; uint8 x_11; -x_9 = lean::cnstr_get(x_3, 0); -lean::inc(x_9); -x_10 = lean::cnstr_get(x_3, 1); -lean::inc(x_10); -lean::dec(x_3); -x_11 = !lean::is_exclusive(x_2); -if (x_11 == 0) -{ -obj* x_12; obj* x_13; obj* x_14; uint8 x_15; -x_12 = lean::cnstr_get(x_2, 0); -x_13 = lean::cnstr_get(x_9, 0); -lean::inc(x_13); -lean::dec(x_9); -lean::inc(x_1); -lean::inc(x_13); -lean::inc(x_12); -x_14 = lean::apply_2(x_1, x_12, x_13); -x_15 = lean::unbox(x_14); -lean::dec(x_14); -if (x_15 == 0) -{ -lean::dec(x_12); -lean::cnstr_set(x_2, 0, x_13); -x_3 = x_10; -goto _start; -} -else -{ -lean::dec(x_13); -x_3 = x_10; -goto _start; -} -} -else -{ -obj* x_18; obj* x_19; obj* x_20; uint8 x_21; -x_18 = lean::cnstr_get(x_2, 0); -lean::inc(x_18); -lean::dec(x_2); -x_19 = lean::cnstr_get(x_9, 0); -lean::inc(x_19); -lean::dec(x_9); -lean::inc(x_1); -lean::inc(x_19); -lean::inc(x_18); -x_20 = lean::apply_2(x_1, x_18, x_19); -x_21 = lean::unbox(x_20); -lean::dec(x_20); -if (x_21 == 0) -{ -obj* x_22; -lean::dec(x_18); -x_22 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_22, 0, x_19); -x_2 = x_22; -x_3 = x_10; -goto _start; -} -else -{ -obj* x_24; -lean::dec(x_19); -x_24 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_24, 0, x_18); -x_2 = x_24; -x_3 = x_10; -goto _start; -} -} -} -} -} -} -obj* l_List_foldl___main___at_BinomialHeap_headOpt___main___spec__1(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_List_foldl___main___at_BinomialHeap_headOpt___main___spec__1___rarg), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_headOpt___main___rarg(obj* x_1, obj* x_2) { -_start: -{ -if (lean::obj_tag(x_2) == 0) -{ -obj* x_3; -lean::dec(x_1); -x_3 = lean::box(0); -return x_3; -} -else -{ -obj* x_4; obj* x_5; obj* x_6; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -lean::dec(x_2); -x_5 = lean::box(0); -x_6 = l_List_foldl___main___at_BinomialHeap_headOpt___main___spec__1___rarg(x_1, x_5, x_4); -return x_6; -} -} -} -obj* l_BinomialHeap_headOpt___main(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_headOpt___main___rarg), 2, 0); -return x_2; -} -} -obj* l_List_foldl___main___at_BinomialHeap_headOpt___spec__1___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -if (lean::obj_tag(x_3) == 0) -{ -lean::dec(x_1); -return x_2; -} -else -{ -if (lean::obj_tag(x_2) == 0) -{ -obj* x_4; obj* x_5; obj* x_6; obj* x_7; -x_4 = lean::cnstr_get(x_3, 0); -lean::inc(x_4); -x_5 = lean::cnstr_get(x_3, 1); -lean::inc(x_5); -lean::dec(x_3); -x_6 = lean::cnstr_get(x_4, 0); -lean::inc(x_6); -lean::dec(x_4); -x_7 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_7, 0, x_6); -x_2 = x_7; -x_3 = x_5; -goto _start; -} -else -{ -obj* x_9; obj* x_10; uint8 x_11; -x_9 = lean::cnstr_get(x_3, 0); -lean::inc(x_9); -x_10 = lean::cnstr_get(x_3, 1); -lean::inc(x_10); -lean::dec(x_3); -x_11 = !lean::is_exclusive(x_2); -if (x_11 == 0) -{ -obj* x_12; obj* x_13; obj* x_14; uint8 x_15; -x_12 = lean::cnstr_get(x_2, 0); -x_13 = lean::cnstr_get(x_9, 0); -lean::inc(x_13); -lean::dec(x_9); -lean::inc(x_1); -lean::inc(x_13); -lean::inc(x_12); -x_14 = lean::apply_2(x_1, x_12, x_13); -x_15 = lean::unbox(x_14); -lean::dec(x_14); -if (x_15 == 0) -{ -lean::dec(x_12); -lean::cnstr_set(x_2, 0, x_13); -x_3 = x_10; -goto _start; -} -else -{ -lean::dec(x_13); -x_3 = x_10; -goto _start; -} -} -else -{ -obj* x_18; obj* x_19; obj* x_20; uint8 x_21; -x_18 = lean::cnstr_get(x_2, 0); -lean::inc(x_18); -lean::dec(x_2); -x_19 = lean::cnstr_get(x_9, 0); -lean::inc(x_19); -lean::dec(x_9); -lean::inc(x_1); -lean::inc(x_19); -lean::inc(x_18); -x_20 = lean::apply_2(x_1, x_18, x_19); -x_21 = lean::unbox(x_20); -lean::dec(x_20); -if (x_21 == 0) -{ -obj* x_22; -lean::dec(x_18); -x_22 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_22, 0, x_19); -x_2 = x_22; -x_3 = x_10; -goto _start; -} -else -{ -obj* x_24; -lean::dec(x_19); -x_24 = lean::alloc_cnstr(1, 1, 0); -lean::cnstr_set(x_24, 0, x_18); -x_2 = x_24; -x_3 = x_10; -goto _start; -} -} -} -} -} -} -obj* l_List_foldl___main___at_BinomialHeap_headOpt___spec__1(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_List_foldl___main___at_BinomialHeap_headOpt___spec__1___rarg), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_headOpt___rarg(obj* x_1, obj* x_2) { -_start: -{ -if (lean::obj_tag(x_2) == 0) -{ -obj* x_3; -lean::dec(x_1); -x_3 = lean::box(0); -return x_3; -} -else -{ -obj* x_4; obj* x_5; obj* x_6; -x_4 = lean::cnstr_get(x_2, 0); -lean::inc(x_4); -lean::dec(x_2); -x_5 = lean::box(0); -x_6 = l_List_foldl___main___at_BinomialHeap_headOpt___spec__1___rarg(x_1, x_5, x_4); -return x_6; -} -} -} -obj* l_BinomialHeap_headOpt(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_headOpt___rarg), 2, 0); -return x_2; -} -} -obj* l_List_foldl___main___at_BinomialHeap_head___main___spec__1___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -if (lean::obj_tag(x_3) == 0) -{ -lean::dec(x_1); -return x_2; -} -else -{ -obj* x_4; obj* x_5; obj* x_6; obj* x_7; uint8 x_8; -x_4 = lean::cnstr_get(x_3, 0); -lean::inc(x_4); -x_5 = lean::cnstr_get(x_3, 1); -lean::inc(x_5); -lean::dec(x_3); -x_6 = lean::cnstr_get(x_4, 0); -lean::inc(x_6); -lean::dec(x_4); -lean::inc(x_1); -lean::inc(x_6); -lean::inc(x_2); -x_7 = lean::apply_2(x_1, x_2, x_6); -x_8 = lean::unbox(x_7); -lean::dec(x_7); -if (x_8 == 0) -{ -lean::dec(x_2); -x_2 = x_6; -x_3 = x_5; -goto _start; -} -else -{ -lean::dec(x_6); -x_3 = x_5; -goto _start; -} -} -} -} -obj* l_List_foldl___main___at_BinomialHeap_head___main___spec__1(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_List_foldl___main___at_BinomialHeap_head___main___spec__1___rarg), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_head___main___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -if (lean::obj_tag(x_3) == 0) -{ -lean::dec(x_2); -lean::inc(x_1); -return x_1; -} -else -{ -obj* x_4; -x_4 = lean::cnstr_get(x_3, 0); -lean::inc(x_4); -lean::dec(x_3); -if (lean::obj_tag(x_4) == 0) -{ -lean::dec(x_2); -lean::inc(x_1); -return x_1; -} -else -{ -obj* x_5; obj* x_6; obj* x_7; obj* x_8; -x_5 = lean::cnstr_get(x_4, 0); -lean::inc(x_5); -x_6 = lean::cnstr_get(x_4, 1); -lean::inc(x_6); -lean::dec(x_4); -x_7 = lean::cnstr_get(x_5, 0); -lean::inc(x_7); -lean::dec(x_5); -x_8 = l_List_foldl___main___at_BinomialHeap_head___main___spec__1___rarg(x_2, x_7, x_6); -return x_8; -} -} -} -} -obj* l_BinomialHeap_head___main(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_head___main___rarg___boxed), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_head___main___rarg___boxed(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; -x_4 = l_BinomialHeap_head___main___rarg(x_1, x_2, x_3); -lean::dec(x_1); -return x_4; -} -} -obj* l_List_foldl___main___at_BinomialHeap_head___spec__1___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -if (lean::obj_tag(x_3) == 0) -{ -lean::dec(x_1); -return x_2; -} -else -{ -obj* x_4; obj* x_5; obj* x_6; obj* x_7; uint8 x_8; -x_4 = lean::cnstr_get(x_3, 0); -lean::inc(x_4); -x_5 = lean::cnstr_get(x_3, 1); -lean::inc(x_5); -lean::dec(x_3); -x_6 = lean::cnstr_get(x_4, 0); -lean::inc(x_6); -lean::dec(x_4); -lean::inc(x_1); -lean::inc(x_6); -lean::inc(x_2); -x_7 = lean::apply_2(x_1, x_2, x_6); -x_8 = lean::unbox(x_7); -lean::dec(x_7); -if (x_8 == 0) -{ -lean::dec(x_2); -x_2 = x_6; -x_3 = x_5; -goto _start; -} -else -{ -lean::dec(x_6); -x_3 = x_5; -goto _start; -} -} -} -} -obj* l_List_foldl___main___at_BinomialHeap_head___spec__1(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_List_foldl___main___at_BinomialHeap_head___spec__1___rarg), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_head___rarg(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -if (lean::obj_tag(x_3) == 0) -{ -lean::dec(x_2); -lean::inc(x_1); -return x_1; -} -else -{ -obj* x_4; -x_4 = lean::cnstr_get(x_3, 0); -lean::inc(x_4); -lean::dec(x_3); -if (lean::obj_tag(x_4) == 0) -{ -lean::dec(x_2); -lean::inc(x_1); -return x_1; -} -else -{ -obj* x_5; obj* x_6; obj* x_7; obj* x_8; -x_5 = lean::cnstr_get(x_4, 0); -lean::inc(x_5); -x_6 = lean::cnstr_get(x_4, 1); -lean::inc(x_6); -lean::dec(x_4); -x_7 = lean::cnstr_get(x_5, 0); -lean::inc(x_7); -lean::dec(x_5); -x_8 = l_List_foldl___main___at_BinomialHeap_head___spec__1___rarg(x_2, x_7, x_6); -return x_8; -} -} -} -} -obj* l_BinomialHeap_head(obj* x_1) { -_start: -{ -obj* x_2; -x_2 = lean::alloc_closure(reinterpret_cast(l_BinomialHeap_head___rarg___boxed), 3, 0); -return x_2; -} -} -obj* l_BinomialHeap_head___rarg___boxed(obj* x_1, obj* x_2, obj* x_3) { -_start: -{ -obj* x_4; -x_4 = l_BinomialHeap_head___rarg(x_1, x_2, x_3); -lean::dec(x_1); -return x_4; -} -} -obj* initialize_init_data_array_default(obj*); -static bool _G_initialized = false; -obj* initialize_init_data_binomial(obj* w) { -if (_G_initialized) return w; -_G_initialized = true; -if (io_result_is_error(w)) return w; -w = initialize_init_data_array_default(w); -if (io_result_is_error(w)) return w; -return w; -} diff --git a/src/stage0/init/data/persistentarray/basic.cpp b/src/stage0/init/data/persistentarray/basic.cpp index db08d4c174..21a26de471 100644 --- a/src/stage0/init/data/persistentarray/basic.cpp +++ b/src/stage0/init/data/persistentarray/basic.cpp @@ -14,6 +14,7 @@ typedef lean::uint32 uint32; typedef lean::uint64 uint64; #pragma GCC diagnostic ignored "-Wunused-label" #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif +obj* l_PersistentArray_empty___closed__2; obj* l_Array_ummapAux___main___at_PersistentArray_map___spec__4___rarg(obj*, obj*, obj*); obj* l_PersistentArray_mmapAux___main___rarg___closed__1; obj* l_List_toString___main___at_PersistentArray_Stats_toString___spec__1(obj*); @@ -62,6 +63,7 @@ obj* l_List_reverse___rarg(obj*); obj* l_List_toPersistentArrayAux(obj*); obj* l_Array_miterateAux___main___at_PersistentArray_mfoldlAux___main___spec__1___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*); obj* l_PersistentArray_getAux(obj*); +obj* l_PersistentArray_isEmpty___rarg___boxed(obj*); usize l_USize_sub(usize, usize); obj* l_PersistentArray_mmapAux___boxed(obj*, obj*); obj* l_PersistentArray_mmap___rarg___lambda__2(obj*, obj*, obj*, obj*, usize, obj*, obj*, obj*); @@ -76,7 +78,6 @@ obj* l_PersistentArray_push(obj*); obj* l_PersistentArray_mkNewTail___rarg(obj*); obj* l_PersistentArray_modifyAux___main___rarg(obj*, obj*, obj*, usize, usize); obj* l_PersistentArray_get___rarg(obj*, obj*, obj*); -obj* l_PersistentArray_Inhabited___closed__2; obj* l_Array_miterateAux___main___at_PersistentArray_mfoldlAux___main___spec__1___rarg(obj*, obj*, obj*, obj*, obj*, obj*, obj*); obj* l_Array_miterateAux___main___at_PersistentArray_toList___spec__3___rarg(obj*, obj*, obj*, obj*); obj* l_Array_miterateAux___main___at_PersistentArray_foldl___spec__3(obj*, obj*); @@ -107,15 +108,16 @@ extern obj* l_List_repr___main___rarg___closed__3; obj* l_Array_miterateAux___main___at_PersistentArray_mfoldlAux___main___spec__1(obj*, obj*); obj* l_PersistentArray_tooBig___closed__1; uint8 l_USize_decEq(usize, usize); +obj* l_PersistentArray_empty___closed__3; obj* l_PersistentArray_toList___rarg(obj*); obj* l_Array_ummapAux___main___at_PersistentArray_mmapAux___main___spec__1___rarg(obj*, obj*, obj*, obj*, obj*); +obj* l_PersistentArray_empty___closed__1; obj* l_PersistentArray_mmapAux___main___at_PersistentArray_map___spec__2(obj*, obj*); obj* l_PersistentArray_Stats_toString(obj*); namespace lean { obj* string_append(obj*, obj*); } obj* l_PersistentArray_push___rarg(obj*, obj*); -obj* l_PersistentArray_Inhabited___closed__1; obj* l_Array_ummapAux___main___at_PersistentArray_mmapAux___main___spec__2___rarg___lambda__1___boxed(obj*, obj*, obj*, obj*, obj*, obj*); obj* l_PersistentArray_foldl(obj*, obj*); extern obj* l_List_reprAux___main___rarg___closed__1; @@ -128,9 +130,11 @@ uint8 nat_dec_lt(obj*, obj*); obj* l_PersistentArray_collectStats___rarg___boxed(obj*, obj*, obj*); obj* l_Array_miterateAux___main___at_PersistentArray_toList___spec__4___rarg___boxed(obj*, obj*, obj*, obj*); obj* l_PersistentArray_mfoldlAux___main___at_PersistentArray_foldl___spec__2___rarg___boxed(obj*, obj*, obj*); +obj* l_PersistentArray_isEmpty(obj*); obj* l_Array_miterateAux___main___at_PersistentArray_mfoldl___spec__1(obj*, obj*); obj* l_PersistentArray_mmapAux___main___rarg(obj*, obj*, obj*, obj*); obj* l_PersistentArray_mfoldl___at_PersistentArray_foldl___spec__1___rarg(obj*, obj*, obj*); +obj* l_PersistentArray_empty(obj*); obj* l_PersistentArray_mmapAux___main___at_PersistentArray_map___spec__2___rarg(obj*, obj*); obj* l_PersistentArray_foldl___rarg(obj*, obj*, obj*); obj* l_PersistentArray_set(obj*); @@ -144,6 +148,9 @@ obj* nat_add(obj*, obj*); } obj* l_PersistentArray_setAux___rarg___boxed(obj*, obj*, obj*, obj*); obj* l_PersistentArray_HasToString; +namespace lean { +uint8 nat_dec_eq(obj*, obj*); +} obj* l_PersistentArray_mfoldlAux___main___at_PersistentArray_toList___spec__2___rarg(obj*, obj*); obj* l_PersistentArray_mfoldl___at_PersistentArray_foldl___spec__1___rarg___boxed(obj*, obj*, obj*); obj* l_PersistentArray_collectStats___main(obj*); @@ -193,7 +200,6 @@ obj* l_Array_miterateAux___main___at_PersistentArray_toList___spec__5(obj*); obj* l_PersistentArray_mmap___rarg___lambda__1(obj*, obj*, obj*, usize, obj*, obj*); obj* l_Array_size(obj*, obj*); obj* l_Array_fset(obj*, obj*, obj*, obj*); -obj* l_PersistentArray_Inhabited___closed__3; obj* l_Array_get(obj*, obj*, obj*, obj*); obj* l_PersistentArray_HasToString___closed__1; obj* l_Array_miterateAux___main___at_PersistentArray_mfoldlAux___main___spec__2___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*); @@ -249,6 +255,7 @@ obj* l_PersistentArray_mmap___boxed(obj*, obj*); obj* l_PersistentArray_mkNewPath(obj*); obj* l_PersistentArray_modifyAux___rarg___boxed(obj*, obj*, obj*, obj*, obj*); obj* l_PersistentArray_Stats_toString___boxed(obj*); +uint8 l_PersistentArray_isEmpty___rarg(obj*); extern obj* l_String_splitAux___main___closed__1; obj* l_Array_miterateAux___main___at_PersistentArray_mfoldl___spec__1___rarg___boxed(obj*, obj*, obj*, obj*, obj*, obj*, obj*); obj* _init_l_PersistentArrayNode_inhabited___closed__1() { @@ -285,7 +292,7 @@ x_1 = 32; return x_1; } } -obj* _init_l_PersistentArray_Inhabited___closed__1() { +obj* _init_l_PersistentArray_empty___closed__1() { _start: { obj* x_1; obj* x_2; @@ -294,23 +301,23 @@ x_2 = lean::mk_empty_array(x_1); return x_2; } } -obj* _init_l_PersistentArray_Inhabited___closed__2() { +obj* _init_l_PersistentArray_empty___closed__2() { _start: { obj* x_1; obj* x_2; -x_1 = l_PersistentArray_Inhabited___closed__1; +x_1 = l_PersistentArray_empty___closed__1; x_2 = lean::alloc_cnstr(0, 1, 0); lean::cnstr_set(x_2, 0, x_1); return x_2; } } -obj* _init_l_PersistentArray_Inhabited___closed__3() { +obj* _init_l_PersistentArray_empty___closed__3() { _start: { usize x_1; obj* x_2; obj* x_3; obj* x_4; obj* x_5; x_1 = 5; -x_2 = l_PersistentArray_Inhabited___closed__2; -x_3 = l_PersistentArray_Inhabited___closed__1; +x_2 = l_PersistentArray_empty___closed__2; +x_3 = l_PersistentArray_empty___closed__1; x_4 = lean::mk_nat_obj(0u); x_5 = lean::alloc_cnstr(0, 4, sizeof(size_t)*1); lean::cnstr_set(x_5, 0, x_2); @@ -321,11 +328,47 @@ lean::cnstr_set_scalar(x_5, sizeof(void*)*4, x_1); return x_5; } } +obj* l_PersistentArray_empty(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_PersistentArray_empty___closed__3; +return x_2; +} +} +uint8 l_PersistentArray_isEmpty___rarg(obj* x_1) { +_start: +{ +obj* x_2; obj* x_3; uint8 x_4; +x_2 = lean::cnstr_get(x_1, 2); +x_3 = lean::mk_nat_obj(0u); +x_4 = lean::nat_dec_eq(x_2, x_3); +return x_4; +} +} +obj* l_PersistentArray_isEmpty(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = lean::alloc_closure(reinterpret_cast(l_PersistentArray_isEmpty___rarg___boxed), 1, 0); +return x_2; +} +} +obj* l_PersistentArray_isEmpty___rarg___boxed(obj* x_1) { +_start: +{ +uint8 x_2; obj* x_3; +x_2 = l_PersistentArray_isEmpty___rarg(x_1); +lean::dec(x_1); +x_3 = lean::box(x_2); +return x_3; +} +} obj* l_PersistentArray_Inhabited(obj* x_1) { _start: { obj* x_2; -x_2 = l_PersistentArray_Inhabited___closed__3; +x_2 = l_PersistentArray_empty___closed__3; return x_2; } } @@ -333,7 +376,7 @@ obj* l_PersistentArray_mkEmptyArray(obj* x_1) { _start: { obj* x_2; -x_2 = l_PersistentArray_Inhabited___closed__1; +x_2 = l_PersistentArray_empty___closed__1; return x_2; } } @@ -1146,7 +1189,7 @@ usize x_5; usize x_6; obj* x_7; obj* x_8; obj* x_9; obj* x_10; x_5 = 5; x_6 = x_1 - x_5; x_7 = l_PersistentArray_mkNewPath___main___rarg(x_6, x_2); -x_8 = l_PersistentArray_Inhabited___closed__1; +x_8 = l_PersistentArray_empty___closed__1; x_9 = lean::array_push(x_8, x_7); x_10 = lean::alloc_cnstr(0, 1, 0); lean::cnstr_set(x_10, 0, x_9); @@ -1402,7 +1445,7 @@ lean::dec(x_12); if (x_13 == 0) { obj* x_14; obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; -x_14 = l_PersistentArray_Inhabited___closed__1; +x_14 = l_PersistentArray_empty___closed__1; x_15 = lean::array_push(x_14, x_3); x_16 = l_PersistentArray_mkNewPath___main___rarg(x_6, x_4); x_17 = lean::array_push(x_15, x_16); @@ -1424,7 +1467,7 @@ x_21 = lean::nat_sub(x_5, x_20); x_22 = lean::usize_of_nat(x_21); lean::dec(x_21); x_23 = l_PersistentArray_insertNewLeaf___main___rarg(x_3, x_22, x_6, x_4); -x_24 = l_PersistentArray_Inhabited___closed__1; +x_24 = l_PersistentArray_empty___closed__1; lean::inc(x_5); lean::cnstr_set(x_1, 3, x_5); lean::cnstr_set(x_1, 1, x_24); @@ -1453,7 +1496,7 @@ lean::dec(x_33); if (x_34 == 0) { obj* x_35; obj* x_36; obj* x_37; obj* x_38; obj* x_39; obj* x_40; obj* x_41; -x_35 = l_PersistentArray_Inhabited___closed__1; +x_35 = l_PersistentArray_empty___closed__1; x_36 = lean::array_push(x_35, x_25); x_37 = l_PersistentArray_mkNewPath___main___rarg(x_28, x_26); x_38 = lean::array_push(x_36, x_37); @@ -1477,7 +1520,7 @@ x_43 = lean::nat_sub(x_27, x_42); x_44 = lean::usize_of_nat(x_43); lean::dec(x_43); x_45 = l_PersistentArray_insertNewLeaf___main___rarg(x_25, x_44, x_28, x_26); -x_46 = l_PersistentArray_Inhabited___closed__1; +x_46 = l_PersistentArray_empty___closed__1; lean::inc(x_27); x_47 = lean::alloc_cnstr(0, 4, sizeof(size_t)*1); lean::cnstr_set(x_47, 0, x_45); @@ -3571,7 +3614,7 @@ obj* l_List_toPersistentArray___rarg(obj* x_1) { _start: { obj* x_2; obj* x_3; -x_2 = l_PersistentArray_Inhabited___closed__3; +x_2 = l_PersistentArray_empty___closed__3; x_3 = l_List_toPersistentArrayAux___main___rarg(x_1, x_2); return x_3; } @@ -3596,12 +3639,12 @@ l_PersistentArrayNode_inhabited___closed__1 = _init_l_PersistentArrayNode_inhabi lean::mark_persistent(l_PersistentArrayNode_inhabited___closed__1); l_PersistentArray_initShift = _init_l_PersistentArray_initShift(); l_PersistentArray_branching = _init_l_PersistentArray_branching(); -l_PersistentArray_Inhabited___closed__1 = _init_l_PersistentArray_Inhabited___closed__1(); -lean::mark_persistent(l_PersistentArray_Inhabited___closed__1); -l_PersistentArray_Inhabited___closed__2 = _init_l_PersistentArray_Inhabited___closed__2(); -lean::mark_persistent(l_PersistentArray_Inhabited___closed__2); -l_PersistentArray_Inhabited___closed__3 = _init_l_PersistentArray_Inhabited___closed__3(); -lean::mark_persistent(l_PersistentArray_Inhabited___closed__3); +l_PersistentArray_empty___closed__1 = _init_l_PersistentArray_empty___closed__1(); +lean::mark_persistent(l_PersistentArray_empty___closed__1); +l_PersistentArray_empty___closed__2 = _init_l_PersistentArray_empty___closed__2(); +lean::mark_persistent(l_PersistentArray_empty___closed__2); +l_PersistentArray_empty___closed__3 = _init_l_PersistentArray_empty___closed__3(); +lean::mark_persistent(l_PersistentArray_empty___closed__3); l_PersistentArray_getAux___main___rarg___closed__1 = _init_l_PersistentArray_getAux___main___rarg___closed__1(); lean::mark_persistent(l_PersistentArray_getAux___main___rarg___closed__1); l_PersistentArray_tooBig___closed__1 = _init_l_PersistentArray_tooBig___closed__1(); diff --git a/src/stage0/init/data/persistenthashmap/basic.cpp b/src/stage0/init/data/persistenthashmap/basic.cpp index 5b68aa8ac1..c8c7c61ff3 100644 --- a/src/stage0/init/data/persistenthashmap/basic.cpp +++ b/src/stage0/init/data/persistenthashmap/basic.cpp @@ -44,6 +44,7 @@ obj* l_Array_miterateAux___main___at_PersistentHashMap_foldl___spec__3(obj*, obj obj* l_PersistentHashMap_mfoldlAux___main___at_PersistentHashMap_foldl___spec__2(obj*, obj*, obj*); obj* l_PersistentHashMap_mfoldl___rarg(obj*, obj*, obj*, obj*, obj*); obj* l_PersistentHashMap_eraseAux___rarg(obj*, obj*, usize, obj*); +obj* l_PersistentHashMap_isEmpty(obj*, obj*); obj* l_Array_miterateAux___main___at_PersistentHashMap_toList___spec__4___rarg(obj*, obj*, obj*, obj*, obj*); obj* l_Array_miterateAux___main___at_PersistentHashMap_toList___spec__3___rarg(obj*, obj*, obj*, obj*); obj* l_PersistentHashMap_findAtAux___main(obj*, obj*); @@ -125,6 +126,7 @@ namespace lean { uint8 nat_dec_eq(obj*, obj*); } obj* l_Array_miterateAux___main___at_PersistentHashMap_toList___spec__3___rarg___boxed(obj*, obj*, obj*, obj*); +obj* l_PersistentHashMap_isEmpty___rarg___boxed(obj*); obj* l_PersistentHashMap_insertAux___main___rarg(obj*, obj*, obj*, usize, usize, obj*, obj*); obj* l_Array_push(obj*, obj*, obj*); obj* l_Array_indexOfAux___main___rarg(obj*, obj*, obj*, obj*); @@ -202,6 +204,7 @@ obj* l_PersistentHashMap_findAux___main___rarg___boxed(obj*, obj*, obj*, obj*); obj* l_PersistentHashMap_mkCollisionNode(obj*, obj*); obj* l_PersistentHashMap_insertAux(obj*, obj*); obj* l_PersistentHashMap_isUnaryNode___main___rarg___boxed(obj*); +uint8 l_PersistentHashMap_isEmpty___rarg(obj*); obj* l_PersistentHashMap_findAux(obj*, obj*); obj* l_PersistentHashMap_mfoldl___boxed(obj*, obj*, obj*); obj* l_PersistentHashMap_collectStats___rarg___boxed(obj*, obj*, obj*); @@ -326,6 +329,34 @@ x_3 = l_PersistentHashMap_empty___closed__3; return x_3; } } +uint8 l_PersistentHashMap_isEmpty___rarg(obj* x_1) { +_start: +{ +obj* x_2; obj* x_3; uint8 x_4; +x_2 = lean::cnstr_get(x_1, 1); +x_3 = lean::mk_nat_obj(0u); +x_4 = lean::nat_dec_eq(x_2, x_3); +return x_4; +} +} +obj* l_PersistentHashMap_isEmpty(obj* x_1, obj* x_2) { +_start: +{ +obj* x_3; +x_3 = lean::alloc_closure(reinterpret_cast(l_PersistentHashMap_isEmpty___rarg___boxed), 1, 0); +return x_3; +} +} +obj* l_PersistentHashMap_isEmpty___rarg___boxed(obj* x_1) { +_start: +{ +uint8 x_2; obj* x_3; +x_2 = l_PersistentHashMap_isEmpty___rarg(x_1); +lean::dec(x_1); +x_3 = lean::box(x_2); +return x_3; +} +} obj* l_PersistentHashMap_Inhabited(obj* x_1, obj* x_2) { _start: { diff --git a/src/stage0/init/lean/localcontext.cpp b/src/stage0/init/lean/localcontext.cpp new file mode 100644 index 0000000000..105adc5dc9 --- /dev/null +++ b/src/stage0/init/lean/localcontext.cpp @@ -0,0 +1,1349 @@ +// Lean compiler output +// Module: init.lean.localcontext +// Imports: init.data.persistentarray.basic init.data.persistenthashmap.basic init.lean.expr +#include "runtime/object.h" +#include "runtime/apply.h" +typedef lean::object obj; typedef lean::usize usize; +typedef lean::uint8 uint8; typedef lean::uint16 uint16; +typedef lean::uint32 uint32; typedef lean::uint64 uint64; +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wunused-parameter" +#pragma clang diagnostic ignored "-Wunused-label" +#elif defined(__GNUC__) && !defined(__CLANG__) +#pragma GCC diagnostic ignored "-Wunused-parameter" +#pragma GCC diagnostic ignored "-Wunused-label" +#pragma GCC diagnostic ignored "-Wunused-but-set-variable" +#endif +obj* l_Lean_LocalDecl_index___main(obj*); +obj* l_Lean_LocalDecl_userName___main___boxed(obj*); +obj* l_Lean_LocalContext_Inhabited___closed__3; +extern "C" uint8 lean_name_dec_eq(obj*, obj*); +usize l_USize_mul(usize, usize); +obj* l_Lean_LocalDecl_Inhabited; +obj* l_PersistentHashMap_findAtAux___main___at_Lean_LocalContext_find___spec__3(obj*, obj*, obj*, obj*, obj*); +obj* l_Lean_LocalContext_mkLetDecl(obj*, obj*, obj*, obj*, obj*); +obj* l_Lean_LocalDecl_binderInfo___boxed(obj*); +usize l_USize_shift__right(usize, usize); +obj* l_Lean_LocalDecl_name___boxed(obj*); +obj* l_Lean_LocalDecl_type___main(obj*); +uint8 l_Lean_LocalDecl_isLet___main(obj*); +obj* l_Lean_LocalContext_Inhabited___closed__1; +obj* l_PersistentHashMap_insert___main___at_Lean_LocalContext_mkLocalDecl___spec__1(obj*, obj*, obj*); +obj* l_Lean_LocalDecl_userName___main(obj*); +obj* l_Lean_LocalDecl_valueOpt___boxed(obj*); +usize l_USize_sub(usize, usize); +obj* l_Lean_LocalContext_find___boxed(obj*, obj*); +obj* l_Lean_LocalDecl_name___main(obj*); +obj* l_Lean_LocalContext_mkLocalDecl(obj*, obj*, obj*, obj*, uint8); +obj* l_Lean_LocalContext_mkLocalDecl___boxed(obj*, obj*, obj*, obj*, obj*); +obj* l_PersistentHashMap_mkCollisionNode___rarg(obj*, obj*, obj*, obj*); +obj* l_Lean_LocalContext_Inhabited; +extern "C" usize lean_name_hash_usize(obj*); +obj* l_Lean_LocalDecl_userName(obj*); +obj* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_LocalContext_mkLocalDecl___spec__3(obj*, obj*, obj*, obj*); +uint8 l_Lean_LocalDecl_isLet(obj*); +obj* l_PersistentArray_push___rarg(obj*, obj*); +obj* l_PersistentHashMap_find___main___at_Lean_LocalContext_find___spec__1___boxed(obj*, obj*); +obj* l_Lean_LocalDecl_index___main___boxed(obj*); +usize l_USize_add(usize, usize); +obj* l_Lean_LocalDecl_binderInfo___main___boxed(obj*); +uint8 l_Lean_LocalDecl_binderInfo___main(obj*); +obj* l_Lean_LocalDecl_valueOpt___main___boxed(obj*); +namespace lean { +uint8 nat_dec_lt(obj*, obj*); +} +obj* l_Lean_LocalDecl_isLet___main___boxed(obj*); +obj* l_PersistentArray_empty(obj*); +obj* l_PersistentHashMap_find___main___at_Lean_LocalContext_find___spec__1(obj*, obj*); +obj* l_Array_fget(obj*, obj*, obj*); +uint8 l_Lean_LocalDecl_binderInfo(obj*); +namespace lean { +obj* nat_add(obj*, obj*); +} +obj* l_PersistentHashMap_findAux___main___at_Lean_LocalContext_find___spec__2(obj*, usize, obj*); +obj* l_Lean_LocalContext_Inhabited___closed__2; +obj* l_Lean_LocalDecl_type___boxed(obj*); +obj* l_Lean_LocalDecl_value(obj*); +obj* l_Array_push(obj*, obj*, obj*); +obj* l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2___boxed(obj*, obj*, obj*, obj*, obj*); +obj* l_Lean_LocalDecl_value___main___boxed(obj*); +extern usize l_PersistentHashMap_insertAux___main___rarg___closed__2; +obj* l_Lean_LocalDecl_Inhabited___closed__1; +obj* l_Lean_LocalDecl_type(obj*); +obj* l_Lean_LocalDecl_valueOpt___main(obj*); +obj* l_PersistentHashMap_findAtAux___main___at_Lean_LocalContext_find___spec__3___boxed(obj*, obj*, obj*, obj*, obj*); +obj* l_Lean_LocalDecl_type___main___boxed(obj*); +extern obj* l_PersistentHashMap_insertAux___main___rarg___closed__3; +obj* l_Array_size(obj*, obj*); +obj* l_Lean_LocalDecl_valueOpt(obj*); +obj* l_Lean_LocalDecl_value___boxed(obj*); +obj* l_Array_fset(obj*, obj*, obj*, obj*); +obj* l_Array_get(obj*, obj*, obj*, obj*); +uint8 l_Lean_LocalContext_isEmpty(obj*); +obj* l_Lean_LocalContext_find(obj*, obj*); +obj* l_Array_miterateAux___main___at_Lean_LocalContext_mkLocalDecl___spec__4___boxed(obj*, obj*, obj*, obj*, obj*, obj*); +obj* l_Array_miterateAux___main___at_Lean_LocalContext_mkLocalDecl___spec__4(usize, obj*, obj*, obj*, obj*, obj*); +obj* l_PersistentHashMap_getCollisionNodeSize___main___rarg(obj*); +obj* l_PersistentHashMap_empty(obj*, obj*); +obj* l_Lean_LocalContext_isEmpty___boxed(obj*); +obj* l_Lean_LocalDecl_index(obj*); +uint8 l_USize_decLe(usize, usize); +obj* l_Lean_LocalDecl_index___boxed(obj*); +obj* l_Lean_LocalDecl_isLet___boxed(obj*); +obj* l_Lean_LocalDecl_value___main(obj*); +obj* l_Lean_LocalDecl_userName___boxed(obj*); +usize l_USize_land(usize, usize); +namespace lean { +obj* usize_to_nat(usize); +} +obj* l_PersistentHashMap_findAux___main___at_Lean_LocalContext_find___spec__2___boxed(obj*, obj*, obj*); +obj* l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(obj*, usize, usize, obj*, obj*); +uint8 l_PersistentHashMap_isEmpty___rarg(obj*); +extern obj* l_Lean_exprIsInhabited___closed__1; +obj* l_Lean_LocalDecl_name___main___boxed(obj*); +obj* l_Lean_LocalDecl_name(obj*); +obj* _init_l_Lean_LocalDecl_Inhabited___closed__1() { +_start: +{ +obj* x_1; obj* x_2; obj* x_3; obj* x_4; +x_1 = lean::mk_nat_obj(0u); +x_2 = lean::box(0); +x_3 = l_Lean_exprIsInhabited___closed__1; +x_4 = lean::alloc_cnstr(1, 5, 0); +lean::cnstr_set(x_4, 0, x_1); +lean::cnstr_set(x_4, 1, x_2); +lean::cnstr_set(x_4, 2, x_2); +lean::cnstr_set(x_4, 3, x_3); +lean::cnstr_set(x_4, 4, x_3); +return x_4; +} +} +obj* _init_l_Lean_LocalDecl_Inhabited() { +_start: +{ +obj* x_1; +x_1 = l_Lean_LocalDecl_Inhabited___closed__1; +return x_1; +} +} +uint8 l_Lean_LocalDecl_isLet___main(obj* x_1) { +_start: +{ +if (lean::obj_tag(x_1) == 0) +{ +uint8 x_2; +x_2 = 0; +return x_2; +} +else +{ +uint8 x_3; +x_3 = 1; +return x_3; +} +} +} +obj* l_Lean_LocalDecl_isLet___main___boxed(obj* x_1) { +_start: +{ +uint8 x_2; obj* x_3; +x_2 = l_Lean_LocalDecl_isLet___main(x_1); +lean::dec(x_1); +x_3 = lean::box(x_2); +return x_3; +} +} +uint8 l_Lean_LocalDecl_isLet(obj* x_1) { +_start: +{ +uint8 x_2; +x_2 = l_Lean_LocalDecl_isLet___main(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_isLet___boxed(obj* x_1) { +_start: +{ +uint8 x_2; obj* x_3; +x_2 = l_Lean_LocalDecl_isLet(x_1); +lean::dec(x_1); +x_3 = lean::box(x_2); +return x_3; +} +} +obj* l_Lean_LocalDecl_index___main(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = lean::cnstr_get(x_1, 0); +lean::inc(x_2); +return x_2; +} +} +obj* l_Lean_LocalDecl_index___main___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_index___main(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_index(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_index___main(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_index___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_index(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_name___main(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = lean::cnstr_get(x_1, 1); +lean::inc(x_2); +return x_2; +} +} +obj* l_Lean_LocalDecl_name___main___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_name___main(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_name(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_name___main(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_name___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_name(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_userName___main(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = lean::cnstr_get(x_1, 2); +lean::inc(x_2); +return x_2; +} +} +obj* l_Lean_LocalDecl_userName___main___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_userName___main(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_userName(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_userName___main(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_userName___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_userName(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_type___main(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = lean::cnstr_get(x_1, 3); +lean::inc(x_2); +return x_2; +} +} +obj* l_Lean_LocalDecl_type___main___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_type___main(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_type(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_type___main(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_type___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_type(x_1); +lean::dec(x_1); +return x_2; +} +} +uint8 l_Lean_LocalDecl_binderInfo___main(obj* x_1) { +_start: +{ +if (lean::obj_tag(x_1) == 0) +{ +uint8 x_2; +x_2 = lean::cnstr_get_scalar(x_1, sizeof(void*)*4); +return x_2; +} +else +{ +uint8 x_3; +x_3 = 0; +return x_3; +} +} +} +obj* l_Lean_LocalDecl_binderInfo___main___boxed(obj* x_1) { +_start: +{ +uint8 x_2; obj* x_3; +x_2 = l_Lean_LocalDecl_binderInfo___main(x_1); +lean::dec(x_1); +x_3 = lean::box(x_2); +return x_3; +} +} +uint8 l_Lean_LocalDecl_binderInfo(obj* x_1) { +_start: +{ +uint8 x_2; +x_2 = l_Lean_LocalDecl_binderInfo___main(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_binderInfo___boxed(obj* x_1) { +_start: +{ +uint8 x_2; obj* x_3; +x_2 = l_Lean_LocalDecl_binderInfo(x_1); +lean::dec(x_1); +x_3 = lean::box(x_2); +return x_3; +} +} +obj* l_Lean_LocalDecl_valueOpt___main(obj* x_1) { +_start: +{ +if (lean::obj_tag(x_1) == 0) +{ +obj* x_2; +x_2 = lean::box(0); +return x_2; +} +else +{ +obj* x_3; obj* x_4; +x_3 = lean::cnstr_get(x_1, 4); +lean::inc(x_3); +x_4 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_4, 0, x_3); +return x_4; +} +} +} +obj* l_Lean_LocalDecl_valueOpt___main___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_valueOpt___main(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_valueOpt(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_valueOpt___main(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_valueOpt___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_valueOpt(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_value___main(obj* x_1) { +_start: +{ +if (lean::obj_tag(x_1) == 0) +{ +obj* x_2; +x_2 = l_Lean_exprIsInhabited___closed__1; +return x_2; +} +else +{ +obj* x_3; +x_3 = lean::cnstr_get(x_1, 4); +lean::inc(x_3); +return x_3; +} +} +} +obj* l_Lean_LocalDecl_value___main___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_value___main(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_value(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_value___main(x_1); +return x_2; +} +} +obj* l_Lean_LocalDecl_value___boxed(obj* x_1) { +_start: +{ +obj* x_2; +x_2 = l_Lean_LocalDecl_value(x_1); +lean::dec(x_1); +return x_2; +} +} +obj* _init_l_Lean_LocalContext_Inhabited___closed__1() { +_start: +{ +obj* x_1; +x_1 = l_PersistentHashMap_empty(lean::box(0), lean::box(0)); +return x_1; +} +} +obj* _init_l_Lean_LocalContext_Inhabited___closed__2() { +_start: +{ +obj* x_1; +x_1 = l_PersistentArray_empty(lean::box(0)); +return x_1; +} +} +obj* _init_l_Lean_LocalContext_Inhabited___closed__3() { +_start: +{ +obj* x_1; obj* x_2; obj* x_3; +x_1 = l_Lean_LocalContext_Inhabited___closed__1; +x_2 = l_Lean_LocalContext_Inhabited___closed__2; +x_3 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_3, 0, x_1); +lean::cnstr_set(x_3, 1, x_2); +return x_3; +} +} +obj* _init_l_Lean_LocalContext_Inhabited() { +_start: +{ +obj* x_1; +x_1 = l_Lean_LocalContext_Inhabited___closed__3; +return x_1; +} +} +uint8 l_Lean_LocalContext_isEmpty(obj* x_1) { +_start: +{ +obj* x_2; uint8 x_3; +x_2 = lean::cnstr_get(x_1, 0); +x_3 = l_PersistentHashMap_isEmpty___rarg(x_2); +return x_3; +} +} +obj* l_Lean_LocalContext_isEmpty___boxed(obj* x_1) { +_start: +{ +uint8 x_2; obj* x_3; +x_2 = l_Lean_LocalContext_isEmpty(x_1); +lean::dec(x_1); +x_3 = lean::box(x_2); +return x_3; +} +} +obj* l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_LocalContext_mkLocalDecl___spec__3(obj* x_1, obj* x_2, obj* x_3, obj* x_4) { +_start: +{ +obj* x_5; obj* x_6; obj* x_7; uint8 x_8; +x_5 = lean::cnstr_get(x_1, 0); +lean::inc(x_5); +x_6 = lean::cnstr_get(x_1, 1); +lean::inc(x_6); +x_7 = lean::array_get_size(x_5); +x_8 = lean::nat_dec_lt(x_2, x_7); +lean::dec(x_7); +if (x_8 == 0) +{ +uint8 x_9; +lean::dec(x_2); +x_9 = !lean::is_exclusive(x_1); +if (x_9 == 0) +{ +obj* x_10; obj* x_11; obj* x_12; obj* x_13; +x_10 = lean::cnstr_get(x_1, 1); +lean::dec(x_10); +x_11 = lean::cnstr_get(x_1, 0); +lean::dec(x_11); +x_12 = lean::array_push(x_5, x_3); +x_13 = lean::array_push(x_6, x_4); +lean::cnstr_set(x_1, 1, x_13); +lean::cnstr_set(x_1, 0, x_12); +return x_1; +} +else +{ +obj* x_14; obj* x_15; obj* x_16; +lean::dec(x_1); +x_14 = lean::array_push(x_5, x_3); +x_15 = lean::array_push(x_6, x_4); +x_16 = lean::alloc_cnstr(1, 2, 0); +lean::cnstr_set(x_16, 0, x_14); +lean::cnstr_set(x_16, 1, x_15); +return x_16; +} +} +else +{ +obj* x_17; uint8 x_18; +x_17 = lean::array_fget(x_5, x_2); +x_18 = lean_name_dec_eq(x_3, x_17); +lean::dec(x_17); +if (x_18 == 0) +{ +obj* x_19; obj* x_20; +lean::dec(x_6); +lean::dec(x_5); +x_19 = lean::mk_nat_obj(1u); +x_20 = lean::nat_add(x_2, x_19); +lean::dec(x_2); +x_2 = x_20; +goto _start; +} +else +{ +uint8 x_22; +x_22 = !lean::is_exclusive(x_1); +if (x_22 == 0) +{ +obj* x_23; obj* x_24; obj* x_25; obj* x_26; +x_23 = lean::cnstr_get(x_1, 1); +lean::dec(x_23); +x_24 = lean::cnstr_get(x_1, 0); +lean::dec(x_24); +x_25 = lean::array_fset(x_5, x_2, x_3); +x_26 = lean::array_fset(x_6, x_2, x_4); +lean::dec(x_2); +lean::cnstr_set(x_1, 1, x_26); +lean::cnstr_set(x_1, 0, x_25); +return x_1; +} +else +{ +obj* x_27; obj* x_28; obj* x_29; +lean::dec(x_1); +x_27 = lean::array_fset(x_5, x_2, x_3); +x_28 = lean::array_fset(x_6, x_2, x_4); +lean::dec(x_2); +x_29 = lean::alloc_cnstr(1, 2, 0); +lean::cnstr_set(x_29, 0, x_27); +lean::cnstr_set(x_29, 1, x_28); +return x_29; +} +} +} +} +} +obj* l_Array_miterateAux___main___at_Lean_LocalContext_mkLocalDecl___spec__4(usize x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5, obj* x_6) { +_start: +{ +obj* x_7; uint8 x_8; +x_7 = lean::array_get_size(x_4); +x_8 = lean::nat_dec_lt(x_5, x_7); +lean::dec(x_7); +if (x_8 == 0) +{ +lean::dec(x_5); +return x_6; +} +else +{ +obj* x_9; usize x_10; usize x_11; usize x_12; usize x_13; usize x_14; usize x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; +x_9 = lean::array_fget(x_4, x_5); +x_10 = 1; +x_11 = x_1 - x_10; +x_12 = 5; +x_13 = x_12 * x_11; +x_14 = lean_name_hash_usize(x_9); +x_15 = x_14 >> x_13; +x_16 = lean::array_fget(x_3, x_5); +x_17 = l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(x_6, x_15, x_1, x_9, x_16); +x_18 = lean::mk_nat_obj(1u); +x_19 = lean::nat_add(x_5, x_18); +lean::dec(x_5); +x_5 = x_19; +x_6 = x_17; +goto _start; +} +} +} +obj* l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(obj* x_1, usize x_2, usize x_3, obj* x_4, obj* x_5) { +_start: +{ +if (lean::obj_tag(x_1) == 0) +{ +uint8 x_6; +x_6 = !lean::is_exclusive(x_1); +if (x_6 == 0) +{ +obj* x_7; usize x_8; usize x_9; usize x_10; usize x_11; obj* x_12; obj* x_13; uint8 x_14; +x_7 = lean::cnstr_get(x_1, 0); +x_8 = 1; +x_9 = 5; +x_10 = l_PersistentHashMap_insertAux___main___rarg___closed__2; +x_11 = x_2 & x_10; +x_12 = lean::usize_to_nat(x_11); +x_13 = lean::array_get_size(x_7); +x_14 = lean::nat_dec_lt(x_12, x_13); +lean::dec(x_13); +if (x_14 == 0) +{ +lean::dec(x_12); +lean::dec(x_5); +lean::dec(x_4); +return x_1; +} +else +{ +obj* x_15; obj* x_16; obj* x_17; +x_15 = lean::array_fget(x_7, x_12); +x_16 = lean::box(2); +x_17 = lean::array_fset(x_7, x_12, x_16); +switch (lean::obj_tag(x_15)) { +case 0: +{ +uint8 x_18; +x_18 = !lean::is_exclusive(x_15); +if (x_18 == 0) +{ +obj* x_19; obj* x_20; uint8 x_21; +x_19 = lean::cnstr_get(x_15, 0); +x_20 = lean::cnstr_get(x_15, 1); +x_21 = lean_name_dec_eq(x_4, x_19); +if (x_21 == 0) +{ +obj* x_22; obj* x_23; obj* x_24; +lean::free_heap_obj(x_15); +x_22 = l_PersistentHashMap_mkCollisionNode___rarg(x_19, x_20, x_4, x_5); +x_23 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_23, 0, x_22); +x_24 = lean::array_fset(x_17, x_12, x_23); +lean::dec(x_12); +lean::cnstr_set(x_1, 0, x_24); +return x_1; +} +else +{ +obj* x_25; +lean::dec(x_20); +lean::dec(x_19); +lean::cnstr_set(x_15, 1, x_5); +lean::cnstr_set(x_15, 0, x_4); +x_25 = lean::array_fset(x_17, x_12, x_15); +lean::dec(x_12); +lean::cnstr_set(x_1, 0, x_25); +return x_1; +} +} +else +{ +obj* x_26; obj* x_27; uint8 x_28; +x_26 = lean::cnstr_get(x_15, 0); +x_27 = lean::cnstr_get(x_15, 1); +lean::inc(x_27); +lean::inc(x_26); +lean::dec(x_15); +x_28 = lean_name_dec_eq(x_4, x_26); +if (x_28 == 0) +{ +obj* x_29; obj* x_30; obj* x_31; +x_29 = l_PersistentHashMap_mkCollisionNode___rarg(x_26, x_27, x_4, x_5); +x_30 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_30, 0, x_29); +x_31 = lean::array_fset(x_17, x_12, x_30); +lean::dec(x_12); +lean::cnstr_set(x_1, 0, x_31); +return x_1; +} +else +{ +obj* x_32; obj* x_33; +lean::dec(x_27); +lean::dec(x_26); +x_32 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_32, 0, x_4); +lean::cnstr_set(x_32, 1, x_5); +x_33 = lean::array_fset(x_17, x_12, x_32); +lean::dec(x_12); +lean::cnstr_set(x_1, 0, x_33); +return x_1; +} +} +} +case 1: +{ +uint8 x_34; +x_34 = !lean::is_exclusive(x_15); +if (x_34 == 0) +{ +obj* x_35; usize x_36; usize x_37; obj* x_38; obj* x_39; +x_35 = lean::cnstr_get(x_15, 0); +x_36 = x_2 >> x_9; +x_37 = x_3 + x_8; +x_38 = l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(x_35, x_36, x_37, x_4, x_5); +lean::cnstr_set(x_15, 0, x_38); +x_39 = lean::array_fset(x_17, x_12, x_15); +lean::dec(x_12); +lean::cnstr_set(x_1, 0, x_39); +return x_1; +} +else +{ +obj* x_40; usize x_41; usize x_42; obj* x_43; obj* x_44; obj* x_45; +x_40 = lean::cnstr_get(x_15, 0); +lean::inc(x_40); +lean::dec(x_15); +x_41 = x_2 >> x_9; +x_42 = x_3 + x_8; +x_43 = l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(x_40, x_41, x_42, x_4, x_5); +x_44 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_44, 0, x_43); +x_45 = lean::array_fset(x_17, x_12, x_44); +lean::dec(x_12); +lean::cnstr_set(x_1, 0, x_45); +return x_1; +} +} +default: +{ +obj* x_46; obj* x_47; +x_46 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_46, 0, x_4); +lean::cnstr_set(x_46, 1, x_5); +x_47 = lean::array_fset(x_17, x_12, x_46); +lean::dec(x_12); +lean::cnstr_set(x_1, 0, x_47); +return x_1; +} +} +} +} +else +{ +obj* x_48; usize x_49; usize x_50; usize x_51; usize x_52; obj* x_53; obj* x_54; uint8 x_55; +x_48 = lean::cnstr_get(x_1, 0); +lean::inc(x_48); +lean::dec(x_1); +x_49 = 1; +x_50 = 5; +x_51 = l_PersistentHashMap_insertAux___main___rarg___closed__2; +x_52 = x_2 & x_51; +x_53 = lean::usize_to_nat(x_52); +x_54 = lean::array_get_size(x_48); +x_55 = lean::nat_dec_lt(x_53, x_54); +lean::dec(x_54); +if (x_55 == 0) +{ +obj* x_56; +lean::dec(x_53); +lean::dec(x_5); +lean::dec(x_4); +x_56 = lean::alloc_cnstr(0, 1, 0); +lean::cnstr_set(x_56, 0, x_48); +return x_56; +} +else +{ +obj* x_57; obj* x_58; obj* x_59; +x_57 = lean::array_fget(x_48, x_53); +x_58 = lean::box(2); +x_59 = lean::array_fset(x_48, x_53, x_58); +switch (lean::obj_tag(x_57)) { +case 0: +{ +obj* x_60; obj* x_61; obj* x_62; uint8 x_63; +x_60 = lean::cnstr_get(x_57, 0); +lean::inc(x_60); +x_61 = lean::cnstr_get(x_57, 1); +lean::inc(x_61); +if (lean::is_exclusive(x_57)) { + lean::cnstr_release(x_57, 0); + lean::cnstr_release(x_57, 1); + x_62 = x_57; +} else { + lean::dec_ref(x_57); + x_62 = lean::box(0); +} +x_63 = lean_name_dec_eq(x_4, x_60); +if (x_63 == 0) +{ +obj* x_64; obj* x_65; obj* x_66; obj* x_67; +lean::dec(x_62); +x_64 = l_PersistentHashMap_mkCollisionNode___rarg(x_60, x_61, x_4, x_5); +x_65 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_65, 0, x_64); +x_66 = lean::array_fset(x_59, x_53, x_65); +lean::dec(x_53); +x_67 = lean::alloc_cnstr(0, 1, 0); +lean::cnstr_set(x_67, 0, x_66); +return x_67; +} +else +{ +obj* x_68; obj* x_69; obj* x_70; +lean::dec(x_61); +lean::dec(x_60); +if (lean::is_scalar(x_62)) { + x_68 = lean::alloc_cnstr(0, 2, 0); +} else { + x_68 = x_62; +} +lean::cnstr_set(x_68, 0, x_4); +lean::cnstr_set(x_68, 1, x_5); +x_69 = lean::array_fset(x_59, x_53, x_68); +lean::dec(x_53); +x_70 = lean::alloc_cnstr(0, 1, 0); +lean::cnstr_set(x_70, 0, x_69); +return x_70; +} +} +case 1: +{ +obj* x_71; obj* x_72; usize x_73; usize x_74; obj* x_75; obj* x_76; obj* x_77; obj* x_78; +x_71 = lean::cnstr_get(x_57, 0); +lean::inc(x_71); +if (lean::is_exclusive(x_57)) { + lean::cnstr_release(x_57, 0); + x_72 = x_57; +} else { + lean::dec_ref(x_57); + x_72 = lean::box(0); +} +x_73 = x_2 >> x_50; +x_74 = x_3 + x_49; +x_75 = l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(x_71, x_73, x_74, x_4, x_5); +if (lean::is_scalar(x_72)) { + x_76 = lean::alloc_cnstr(1, 1, 0); +} else { + x_76 = x_72; +} +lean::cnstr_set(x_76, 0, x_75); +x_77 = lean::array_fset(x_59, x_53, x_76); +lean::dec(x_53); +x_78 = lean::alloc_cnstr(0, 1, 0); +lean::cnstr_set(x_78, 0, x_77); +return x_78; +} +default: +{ +obj* x_79; obj* x_80; obj* x_81; +x_79 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_79, 0, x_4); +lean::cnstr_set(x_79, 1, x_5); +x_80 = lean::array_fset(x_59, x_53, x_79); +lean::dec(x_53); +x_81 = lean::alloc_cnstr(0, 1, 0); +lean::cnstr_set(x_81, 0, x_80); +return x_81; +} +} +} +} +} +else +{ +obj* x_82; obj* x_83; usize x_84; uint8 x_85; +x_82 = lean::mk_nat_obj(0u); +x_83 = l_PersistentHashMap_insertAtCollisionNodeAux___main___at_Lean_LocalContext_mkLocalDecl___spec__3(x_1, x_82, x_4, x_5); +x_84 = 7; +x_85 = x_84 <= x_3; +if (x_85 == 0) +{ +obj* x_86; obj* x_87; uint8 x_88; +x_86 = l_PersistentHashMap_getCollisionNodeSize___main___rarg(x_83); +x_87 = lean::mk_nat_obj(4u); +x_88 = lean::nat_dec_lt(x_86, x_87); +lean::dec(x_86); +if (x_88 == 0) +{ +obj* x_89; obj* x_90; obj* x_91; obj* x_92; +x_89 = lean::cnstr_get(x_83, 0); +lean::inc(x_89); +x_90 = lean::cnstr_get(x_83, 1); +lean::inc(x_90); +lean::dec(x_83); +x_91 = l_PersistentHashMap_insertAux___main___rarg___closed__3; +x_92 = l_Array_miterateAux___main___at_Lean_LocalContext_mkLocalDecl___spec__4(x_3, x_89, x_90, x_89, x_82, x_91); +lean::dec(x_90); +lean::dec(x_89); +return x_92; +} +else +{ +return x_83; +} +} +else +{ +return x_83; +} +} +} +} +obj* l_PersistentHashMap_insert___main___at_Lean_LocalContext_mkLocalDecl___spec__1(obj* x_1, obj* x_2, obj* x_3) { +_start: +{ +uint8 x_4; +x_4 = !lean::is_exclusive(x_1); +if (x_4 == 0) +{ +obj* x_5; obj* x_6; usize x_7; usize x_8; obj* x_9; obj* x_10; obj* x_11; +x_5 = lean::cnstr_get(x_1, 0); +x_6 = lean::cnstr_get(x_1, 1); +x_7 = lean_name_hash_usize(x_2); +x_8 = 1; +x_9 = l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(x_5, x_7, x_8, x_2, x_3); +x_10 = lean::mk_nat_obj(1u); +x_11 = lean::nat_add(x_6, x_10); +lean::dec(x_6); +lean::cnstr_set(x_1, 1, x_11); +lean::cnstr_set(x_1, 0, x_9); +return x_1; +} +else +{ +obj* x_12; obj* x_13; usize x_14; usize x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; +x_12 = lean::cnstr_get(x_1, 0); +x_13 = lean::cnstr_get(x_1, 1); +lean::inc(x_13); +lean::inc(x_12); +lean::dec(x_1); +x_14 = lean_name_hash_usize(x_2); +x_15 = 1; +x_16 = l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(x_12, x_14, x_15, x_2, x_3); +x_17 = lean::mk_nat_obj(1u); +x_18 = lean::nat_add(x_13, x_17); +lean::dec(x_13); +x_19 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_19, 0, x_16); +lean::cnstr_set(x_19, 1, x_18); +return x_19; +} +} +} +obj* l_Lean_LocalContext_mkLocalDecl(obj* x_1, obj* x_2, obj* x_3, obj* x_4, uint8 x_5) { +_start: +{ +uint8 x_6; +x_6 = !lean::is_exclusive(x_1); +if (x_6 == 0) +{ +obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; +x_7 = lean::cnstr_get(x_1, 0); +x_8 = lean::cnstr_get(x_1, 1); +x_9 = lean::cnstr_get(x_8, 2); +lean::inc(x_9); +lean::inc(x_2); +x_10 = lean::alloc_cnstr(0, 4, 1); +lean::cnstr_set(x_10, 0, x_9); +lean::cnstr_set(x_10, 1, x_2); +lean::cnstr_set(x_10, 2, x_3); +lean::cnstr_set(x_10, 3, x_4); +lean::cnstr_set_scalar(x_10, sizeof(void*)*4, x_5); +lean::inc(x_10); +x_11 = l_PersistentHashMap_insert___main___at_Lean_LocalContext_mkLocalDecl___spec__1(x_7, x_2, x_10); +lean::inc(x_10); +x_12 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_12, 0, x_10); +x_13 = l_PersistentArray_push___rarg(x_8, x_12); +lean::cnstr_set(x_1, 1, x_13); +lean::cnstr_set(x_1, 0, x_11); +x_14 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_14, 0, x_10); +lean::cnstr_set(x_14, 1, x_1); +return x_14; +} +else +{ +obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; +x_15 = lean::cnstr_get(x_1, 0); +x_16 = lean::cnstr_get(x_1, 1); +lean::inc(x_16); +lean::inc(x_15); +lean::dec(x_1); +x_17 = lean::cnstr_get(x_16, 2); +lean::inc(x_17); +lean::inc(x_2); +x_18 = lean::alloc_cnstr(0, 4, 1); +lean::cnstr_set(x_18, 0, x_17); +lean::cnstr_set(x_18, 1, x_2); +lean::cnstr_set(x_18, 2, x_3); +lean::cnstr_set(x_18, 3, x_4); +lean::cnstr_set_scalar(x_18, sizeof(void*)*4, x_5); +lean::inc(x_18); +x_19 = l_PersistentHashMap_insert___main___at_Lean_LocalContext_mkLocalDecl___spec__1(x_15, x_2, x_18); +lean::inc(x_18); +x_20 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_20, 0, x_18); +x_21 = l_PersistentArray_push___rarg(x_16, x_20); +x_22 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_22, 0, x_19); +lean::cnstr_set(x_22, 1, x_21); +x_23 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_23, 0, x_18); +lean::cnstr_set(x_23, 1, x_22); +return x_23; +} +} +} +obj* l_Array_miterateAux___main___at_Lean_LocalContext_mkLocalDecl___spec__4___boxed(obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5, obj* x_6) { +_start: +{ +usize x_7; obj* x_8; +x_7 = lean::unbox_size_t(x_1); +lean::dec(x_1); +x_8 = l_Array_miterateAux___main___at_Lean_LocalContext_mkLocalDecl___spec__4(x_7, x_2, x_3, x_4, x_5, x_6); +lean::dec(x_4); +lean::dec(x_3); +lean::dec(x_2); +return x_8; +} +} +obj* l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2___boxed(obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) { +_start: +{ +usize x_6; usize x_7; obj* x_8; +x_6 = lean::unbox_size_t(x_2); +lean::dec(x_2); +x_7 = lean::unbox_size_t(x_3); +lean::dec(x_3); +x_8 = l_PersistentHashMap_insertAux___main___at_Lean_LocalContext_mkLocalDecl___spec__2(x_1, x_6, x_7, x_4, x_5); +return x_8; +} +} +obj* l_Lean_LocalContext_mkLocalDecl___boxed(obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) { +_start: +{ +uint8 x_6; obj* x_7; +x_6 = lean::unbox(x_5); +lean::dec(x_5); +x_7 = l_Lean_LocalContext_mkLocalDecl(x_1, x_2, x_3, x_4, x_6); +return x_7; +} +} +obj* l_Lean_LocalContext_mkLetDecl(obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) { +_start: +{ +uint8 x_6; +x_6 = !lean::is_exclusive(x_1); +if (x_6 == 0) +{ +obj* x_7; obj* x_8; obj* x_9; obj* x_10; obj* x_11; obj* x_12; obj* x_13; obj* x_14; +x_7 = lean::cnstr_get(x_1, 0); +x_8 = lean::cnstr_get(x_1, 1); +x_9 = lean::cnstr_get(x_8, 2); +lean::inc(x_9); +lean::inc(x_2); +x_10 = lean::alloc_cnstr(1, 5, 0); +lean::cnstr_set(x_10, 0, x_9); +lean::cnstr_set(x_10, 1, x_2); +lean::cnstr_set(x_10, 2, x_3); +lean::cnstr_set(x_10, 3, x_4); +lean::cnstr_set(x_10, 4, x_5); +lean::inc(x_10); +x_11 = l_PersistentHashMap_insert___main___at_Lean_LocalContext_mkLocalDecl___spec__1(x_7, x_2, x_10); +lean::inc(x_10); +x_12 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_12, 0, x_10); +x_13 = l_PersistentArray_push___rarg(x_8, x_12); +lean::cnstr_set(x_1, 1, x_13); +lean::cnstr_set(x_1, 0, x_11); +x_14 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_14, 0, x_10); +lean::cnstr_set(x_14, 1, x_1); +return x_14; +} +else +{ +obj* x_15; obj* x_16; obj* x_17; obj* x_18; obj* x_19; obj* x_20; obj* x_21; obj* x_22; obj* x_23; +x_15 = lean::cnstr_get(x_1, 0); +x_16 = lean::cnstr_get(x_1, 1); +lean::inc(x_16); +lean::inc(x_15); +lean::dec(x_1); +x_17 = lean::cnstr_get(x_16, 2); +lean::inc(x_17); +lean::inc(x_2); +x_18 = lean::alloc_cnstr(1, 5, 0); +lean::cnstr_set(x_18, 0, x_17); +lean::cnstr_set(x_18, 1, x_2); +lean::cnstr_set(x_18, 2, x_3); +lean::cnstr_set(x_18, 3, x_4); +lean::cnstr_set(x_18, 4, x_5); +lean::inc(x_18); +x_19 = l_PersistentHashMap_insert___main___at_Lean_LocalContext_mkLocalDecl___spec__1(x_15, x_2, x_18); +lean::inc(x_18); +x_20 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_20, 0, x_18); +x_21 = l_PersistentArray_push___rarg(x_16, x_20); +x_22 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_22, 0, x_19); +lean::cnstr_set(x_22, 1, x_21); +x_23 = lean::alloc_cnstr(0, 2, 0); +lean::cnstr_set(x_23, 0, x_18); +lean::cnstr_set(x_23, 1, x_22); +return x_23; +} +} +} +obj* l_PersistentHashMap_findAtAux___main___at_Lean_LocalContext_find___spec__3(obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) { +_start: +{ +obj* x_6; uint8 x_7; +x_6 = lean::array_get_size(x_1); +x_7 = lean::nat_dec_lt(x_4, x_6); +lean::dec(x_6); +if (x_7 == 0) +{ +obj* x_8; +lean::dec(x_4); +x_8 = lean::box(0); +return x_8; +} +else +{ +obj* x_9; uint8 x_10; +x_9 = lean::array_fget(x_1, x_4); +x_10 = lean_name_dec_eq(x_5, x_9); +lean::dec(x_9); +if (x_10 == 0) +{ +obj* x_11; obj* x_12; +x_11 = lean::mk_nat_obj(1u); +x_12 = lean::nat_add(x_4, x_11); +lean::dec(x_4); +x_3 = lean::box(0); +x_4 = x_12; +goto _start; +} +else +{ +obj* x_14; obj* x_15; +x_14 = lean::array_fget(x_2, x_4); +lean::dec(x_4); +x_15 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_15, 0, x_14); +return x_15; +} +} +} +} +obj* l_PersistentHashMap_findAux___main___at_Lean_LocalContext_find___spec__2(obj* x_1, usize x_2, obj* x_3) { +_start: +{ +if (lean::obj_tag(x_1) == 0) +{ +obj* x_4; usize x_5; usize x_6; usize x_7; obj* x_8; obj* x_9; obj* x_10; +x_4 = lean::cnstr_get(x_1, 0); +x_5 = 5; +x_6 = l_PersistentHashMap_insertAux___main___rarg___closed__2; +x_7 = x_2 & x_6; +x_8 = lean::usize_to_nat(x_7); +x_9 = lean::box(2); +x_10 = lean::array_get(x_9, x_4, x_8); +lean::dec(x_8); +switch (lean::obj_tag(x_10)) { +case 0: +{ +obj* x_11; obj* x_12; uint8 x_13; +x_11 = lean::cnstr_get(x_10, 0); +lean::inc(x_11); +x_12 = lean::cnstr_get(x_10, 1); +lean::inc(x_12); +lean::dec(x_10); +x_13 = lean_name_dec_eq(x_3, x_11); +lean::dec(x_11); +if (x_13 == 0) +{ +obj* x_14; +lean::dec(x_12); +x_14 = lean::box(0); +return x_14; +} +else +{ +obj* x_15; +x_15 = lean::alloc_cnstr(1, 1, 0); +lean::cnstr_set(x_15, 0, x_12); +return x_15; +} +} +case 1: +{ +obj* x_16; usize x_17; obj* x_18; +x_16 = lean::cnstr_get(x_10, 0); +lean::inc(x_16); +lean::dec(x_10); +x_17 = x_2 >> x_5; +x_18 = l_PersistentHashMap_findAux___main___at_Lean_LocalContext_find___spec__2(x_16, x_17, x_3); +lean::dec(x_16); +return x_18; +} +default: +{ +obj* x_19; +x_19 = lean::box(0); +return x_19; +} +} +} +else +{ +obj* x_20; obj* x_21; obj* x_22; obj* x_23; +x_20 = lean::cnstr_get(x_1, 0); +x_21 = lean::cnstr_get(x_1, 1); +x_22 = lean::mk_nat_obj(0u); +x_23 = l_PersistentHashMap_findAtAux___main___at_Lean_LocalContext_find___spec__3(x_20, x_21, lean::box(0), x_22, x_3); +return x_23; +} +} +} +obj* l_PersistentHashMap_find___main___at_Lean_LocalContext_find___spec__1(obj* x_1, obj* x_2) { +_start: +{ +obj* x_3; usize x_4; obj* x_5; +x_3 = lean::cnstr_get(x_1, 0); +x_4 = lean_name_hash_usize(x_2); +x_5 = l_PersistentHashMap_findAux___main___at_Lean_LocalContext_find___spec__2(x_3, x_4, x_2); +return x_5; +} +} +obj* l_Lean_LocalContext_find(obj* x_1, obj* x_2) { +_start: +{ +obj* x_3; obj* x_4; +x_3 = lean::cnstr_get(x_1, 0); +x_4 = l_PersistentHashMap_find___main___at_Lean_LocalContext_find___spec__1(x_3, x_2); +return x_4; +} +} +obj* l_PersistentHashMap_findAtAux___main___at_Lean_LocalContext_find___spec__3___boxed(obj* x_1, obj* x_2, obj* x_3, obj* x_4, obj* x_5) { +_start: +{ +obj* x_6; +x_6 = l_PersistentHashMap_findAtAux___main___at_Lean_LocalContext_find___spec__3(x_1, x_2, x_3, x_4, x_5); +lean::dec(x_5); +lean::dec(x_2); +lean::dec(x_1); +return x_6; +} +} +obj* l_PersistentHashMap_findAux___main___at_Lean_LocalContext_find___spec__2___boxed(obj* x_1, obj* x_2, obj* x_3) { +_start: +{ +usize x_4; obj* x_5; +x_4 = lean::unbox_size_t(x_2); +lean::dec(x_2); +x_5 = l_PersistentHashMap_findAux___main___at_Lean_LocalContext_find___spec__2(x_1, x_4, x_3); +lean::dec(x_3); +lean::dec(x_1); +return x_5; +} +} +obj* l_PersistentHashMap_find___main___at_Lean_LocalContext_find___spec__1___boxed(obj* x_1, obj* x_2) { +_start: +{ +obj* x_3; +x_3 = l_PersistentHashMap_find___main___at_Lean_LocalContext_find___spec__1(x_1, x_2); +lean::dec(x_2); +lean::dec(x_1); +return x_3; +} +} +obj* l_Lean_LocalContext_find___boxed(obj* x_1, obj* x_2) { +_start: +{ +obj* x_3; +x_3 = l_Lean_LocalContext_find(x_1, x_2); +lean::dec(x_2); +lean::dec(x_1); +return x_3; +} +} +obj* initialize_init_data_persistentarray_basic(obj*); +obj* initialize_init_data_persistenthashmap_basic(obj*); +obj* initialize_init_lean_expr(obj*); +static bool _G_initialized = false; +obj* initialize_init_lean_localcontext(obj* w) { +if (_G_initialized) return w; +_G_initialized = true; +if (io_result_is_error(w)) return w; +w = initialize_init_data_persistentarray_basic(w); +if (io_result_is_error(w)) return w; +w = initialize_init_data_persistenthashmap_basic(w); +if (io_result_is_error(w)) return w; +w = initialize_init_lean_expr(w); +if (io_result_is_error(w)) return w; +l_Lean_LocalDecl_Inhabited___closed__1 = _init_l_Lean_LocalDecl_Inhabited___closed__1(); +lean::mark_persistent(l_Lean_LocalDecl_Inhabited___closed__1); +l_Lean_LocalDecl_Inhabited = _init_l_Lean_LocalDecl_Inhabited(); +lean::mark_persistent(l_Lean_LocalDecl_Inhabited); +l_Lean_LocalContext_Inhabited___closed__1 = _init_l_Lean_LocalContext_Inhabited___closed__1(); +lean::mark_persistent(l_Lean_LocalContext_Inhabited___closed__1); +l_Lean_LocalContext_Inhabited___closed__2 = _init_l_Lean_LocalContext_Inhabited___closed__2(); +lean::mark_persistent(l_Lean_LocalContext_Inhabited___closed__2); +l_Lean_LocalContext_Inhabited___closed__3 = _init_l_Lean_LocalContext_Inhabited___closed__3(); +lean::mark_persistent(l_Lean_LocalContext_Inhabited___closed__3); +l_Lean_LocalContext_Inhabited = _init_l_Lean_LocalContext_Inhabited(); +lean::mark_persistent(l_Lean_LocalContext_Inhabited); +return w; +}