// Lean compiler output
// Module: Lake.Util.Cli
// Imports: Init
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOption(lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOption(lean_object*);
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_consArg___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg(lean_object*, lean_object*, lean_object*);
uint32_t lean_string_utf8_get(lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace(lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOption___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_multiShortOption(lean_object*);
LEAN_EXPORT lean_object* l_Lake_processOptions___rarg___lambda__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_multiShortOption___rarg___lambda__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArgs___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgD(lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArgs(lean_object*);
LEAN_EXPORT lean_object* l_Lake_collectArgs___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_takeArg_x3f___rarg___lambda__1___closed__1;
LEAN_EXPORT lean_object* l_Lake_multiShortOption___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_multiShortOption___rarg___lambda__1___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___rarg___lambda__1(lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOption___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_ArgsT_run_x27___rarg___closed__1;
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOption(lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f___rarg___lambda__1(lean_object*);
lean_object* lean_string_utf8_next(lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_collectArgs___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_collectArgs___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_to_list(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___rarg___lambda__1___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_processOptions___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithSpace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgs___rarg___lambda__1(lean_object*);
static lean_object* l_Lake_processOptions___rarg___closed__1;
static lean_object* l_Lake_takeArg_x3f___rarg___closed__1;
lean_object* l_String_posOfAux(lean_object*, uint32_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_consArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgs(lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgD___rarg___lambda__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgsT_run(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArgs___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_option(lean_object*);
static lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1___closed__1;
LEAN_EXPORT lean_object* l_Lake_setArgs(lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgList_mk(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrEq(lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_consArg___rarg___lambda__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___rarg___lambda__1(lean_object*, uint32_t, lean_object*);
lean_object* lean_string_length(lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
uint8_t lean_uint32_dec_eq(uint32_t, uint32_t);
LEAN_EXPORT lean_object* l_Lake_longOption___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lake_takeArgs___rarg___closed__1;
lean_object* lean_nat_sub(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_option___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithArg(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOption___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___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_Lake_shortOptionWithEq(lean_object*);
LEAN_EXPORT lean_object* l_Lake_setArgs___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrEq___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processOptions(lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgList_mk___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lake_getArgs___rarg(lean_object*);
lean_object* l_String_trimLeft(lean_object*);
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithSpace(lean_object*);
LEAN_EXPORT lean_object* l_Lake_collectArgs___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_collectArgs(lean_object*);
lean_object* l_String_drop(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Lake_shortOptionWithArg___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lake_ArgList_mk(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgList_mk___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ArgList_mk(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_apply_1(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lake_ArgsT_run___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___rarg___lambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
return x_2;
}
}
static lean_object* _init_l_Lake_ArgsT_run_x27___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_ArgsT_run_x27___rarg___lambda__1___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_1(x_3, x_2);
x_6 = l_Lake_ArgsT_run_x27___rarg___closed__1;
x_7 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_6, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lake_ArgsT_run_x27___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_ArgsT_run_x27___rarg___lambda__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_ArgsT_run_x27___rarg___lambda__1(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_getArgs___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_getArgs(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_getArgs___rarg___boxed), 1, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_getArgs___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lake_getArgs___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_setArgs___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
lean_dec(x_1);
x_4 = lean_apply_1(x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_setArgs(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_setArgs___rarg), 2, 0);
return x_2;
}
}
static lean_object* _init_l_Lake_takeArg_x3f___rarg___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f___rarg___lambda__1(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Lake_takeArg_x3f___rarg___lambda__1___closed__1;
return x_2;
}
else
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_1);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_1, 0);
x_5 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set_tag(x_1, 0);
lean_ctor_set(x_1, 0, x_5);
return x_1;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_6 = lean_ctor_get(x_1, 0);
x_7 = lean_ctor_get(x_1, 1);
lean_inc(x_7);
lean_inc(x_6);
lean_dec(x_1);
x_8 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_8, 0, x_6);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_7);
return x_9;
}
}
}
}
static lean_object* _init_l_Lake_takeArg_x3f___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_takeArg_x3f___rarg___lambda__1), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 2);
lean_inc(x_2);
lean_dec(x_1);
x_3 = l_Lake_takeArg_x3f___rarg___closed__1;
x_4 = lean_apply_2(x_2, lean_box(0), x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArg_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_takeArg_x3f___rarg), 1, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgD___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_box(0);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_3);
return x_4;
}
else
{
uint8_t x_5; 
lean_dec(x_1);
x_5 = !lean_is_exclusive(x_2);
if (x_5 == 0)
{
lean_ctor_set_tag(x_2, 0);
return x_2;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_7);
lean_inc(x_6);
lean_dec(x_2);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_alloc_closure((void*)(l_Lake_takeArgD___rarg___lambda__1), 2, 1);
lean_closure_set(x_3, 0, x_2);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_2(x_4, lean_box(0), x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgD(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_takeArgD___rarg), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgs___rarg___lambda__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lake_takeArgs___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lake_takeArgs___rarg___lambda__1), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgs___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 2);
lean_inc(x_2);
lean_dec(x_1);
x_3 = l_Lake_takeArgs___rarg___closed__1;
x_4 = lean_apply_2(x_2, lean_box(0), x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_takeArgs(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_takeArgs___rarg), 1, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_consArg___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
x_4 = lean_box(0);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_consArg___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_3, 0, x_2);
x_4 = lean_ctor_get(x_1, 2);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_2(x_4, lean_box(0), x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_consArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_consArg___rarg), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint32_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_unsigned_to_nat(1u);
x_5 = lean_string_utf8_get(x_1, x_4);
x_6 = lean_box_uint32(x_5);
x_7 = lean_apply_1(x_2, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_unsigned_to_nat(3u);
lean_inc(x_5);
x_8 = l_String_drop(x_5, x_7);
x_9 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_9, 0, x_8);
x_10 = lean_ctor_get(x_2, 2);
lean_inc(x_10);
lean_dec(x_2);
x_11 = lean_apply_2(x_10, lean_box(0), x_9);
x_12 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___rarg___lambda__1___boxed), 3, 2);
lean_closure_set(x_12, 0, x_5);
lean_closure_set(x_12, 1, x_4);
x_13 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_11, x_12);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithEq___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lake_shortOptionWithEq___rarg___lambda__1(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithSpace___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_unsigned_to_nat(2u);
lean_inc(x_5);
x_8 = l_String_drop(x_5, x_7);
x_9 = l_String_trimLeft(x_8);
lean_dec(x_8);
x_10 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_10, 0, x_9);
x_11 = lean_ctor_get(x_2, 2);
lean_inc(x_11);
lean_dec(x_2);
x_12 = lean_apply_2(x_11, lean_box(0), x_10);
x_13 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___rarg___lambda__1___boxed), 3, 2);
lean_closure_set(x_13, 0, x_5);
lean_closure_set(x_13, 1, x_4);
x_14 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_12, x_13);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithSpace(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_shortOptionWithSpace___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithArg___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_unsigned_to_nat(2u);
lean_inc(x_5);
x_8 = l_String_drop(x_5, x_7);
x_9 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_9, 0, x_8);
x_10 = lean_ctor_get(x_2, 2);
lean_inc(x_10);
lean_dec(x_2);
x_11 = lean_apply_2(x_10, lean_box(0), x_9);
x_12 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___rarg___lambda__1___boxed), 3, 2);
lean_closure_set(x_12, 0, x_5);
lean_closure_set(x_12, 1, x_4);
x_13 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_11, x_12);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOptionWithArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_shortOptionWithArg___rarg), 5, 0);
return x_2;
}
}
static lean_object* _init_l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
lean_dec(x_1);
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
lean_dec(x_3);
x_5 = l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1___closed__1;
x_6 = lean_apply_2(x_4, lean_box(0), x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
lean_dec(x_9);
x_11 = lean_ctor_get(x_1, 0);
lean_inc(x_11);
lean_dec(x_1);
x_12 = lean_ctor_get(x_11, 1);
lean_inc(x_12);
lean_dec(x_11);
x_13 = lean_apply_2(x_12, lean_box(0), x_10);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_9, 0);
lean_inc(x_14);
lean_dec(x_9);
x_15 = lean_nat_add(x_2, x_3);
x_16 = l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg(x_1, x_4, x_5, x_6, x_7, x_15, x_8, x_3, x_14);
return x_16;
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
uint8_t x_10; 
x_10 = lean_nat_dec_le(x_7, x_6);
if (x_10 == 0)
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_nat_dec_eq(x_5, x_11);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; uint32_t 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_dec(x_9);
x_13 = lean_unsigned_to_nat(1u);
x_14 = lean_nat_sub(x_5, x_13);
x_15 = lean_ctor_get(x_1, 1);
lean_inc(x_15);
x_16 = lean_string_utf8_get(x_3, x_6);
x_17 = lean_box_uint32(x_16);
lean_inc(x_2);
x_18 = lean_apply_1(x_2, x_17);
lean_inc(x_1);
x_19 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1___boxed), 2, 1);
lean_closure_set(x_19, 0, x_1);
lean_inc(x_4);
x_20 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_18, x_19);
x_21 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__2___boxed), 9, 8);
lean_closure_set(x_21, 0, x_1);
lean_closure_set(x_21, 1, x_6);
lean_closure_set(x_21, 2, x_8);
lean_closure_set(x_21, 3, x_2);
lean_closure_set(x_21, 4, x_3);
lean_closure_set(x_21, 5, x_4);
lean_closure_set(x_21, 6, x_14);
lean_closure_set(x_21, 7, x_7);
x_22 = lean_apply_4(x_15, lean_box(0), lean_box(0), x_20, x_21);
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_23 = lean_ctor_get(x_1, 0);
lean_inc(x_23);
lean_dec(x_1);
x_24 = lean_ctor_get(x_23, 1);
lean_inc(x_24);
lean_dec(x_23);
x_25 = lean_apply_2(x_24, lean_box(0), x_9);
return x_25;
}
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_26 = lean_ctor_get(x_1, 0);
lean_inc(x_26);
lean_dec(x_1);
x_27 = lean_ctor_get(x_26, 1);
lean_inc(x_27);
lean_dec(x_26);
x_28 = lean_apply_2(x_27, lean_box(0), x_9);
return x_28;
}
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___boxed), 9, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_multiShortOption___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
lean_dec(x_1);
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
lean_dec(x_3);
x_5 = lean_box(0);
x_6 = lean_apply_2(x_4, lean_box(0), x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_multiShortOption___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
x_5 = lean_string_length(x_3);
x_6 = lean_unsigned_to_nat(1u);
x_7 = lean_box(0);
lean_inc(x_5);
lean_inc(x_4);
lean_inc(x_1);
x_8 = l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_5, x_6, x_7);
lean_dec(x_5);
x_9 = lean_alloc_closure((void*)(l_Lake_multiShortOption___rarg___lambda__1___boxed), 2, 1);
lean_closure_set(x_9, 0, x_1);
x_10 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_8, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lake_multiShortOption(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_multiShortOption___rarg), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_7);
lean_dec(x_2);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_5);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lake_multiShortOption___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lake_multiShortOption___rarg___lambda__1(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_string_utf8_extract(x_1, x_5, x_2);
x_7 = lean_apply_1(x_3, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint32_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_6 = 32;
x_7 = lean_string_utf8_byte_size(x_5);
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_String_posOfAux(x_5, x_6, x_7, x_8);
x_10 = lean_nat_dec_eq(x_9, x_7);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_11 = lean_ctor_get(x_1, 1);
lean_inc(x_11);
lean_dec(x_1);
x_12 = lean_string_utf8_next(x_5, x_9);
x_13 = lean_string_utf8_extract(x_5, x_12, x_7);
lean_dec(x_7);
lean_dec(x_12);
x_14 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_14, 0, x_13);
x_15 = lean_ctor_get(x_2, 2);
lean_inc(x_15);
lean_dec(x_2);
x_16 = lean_apply_2(x_15, lean_box(0), x_14);
x_17 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___rarg___lambda__1___boxed), 4, 3);
lean_closure_set(x_17, 0, x_5);
lean_closure_set(x_17, 1, x_9);
lean_closure_set(x_17, 2, x_4);
x_18 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_16, x_17);
return x_18;
}
else
{
lean_object* x_19; 
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_2);
lean_dec(x_1);
x_19 = lean_apply_1(x_4, x_5);
return x_19;
}
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrSpace___rarg___lambda__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_Lake_longOptionOrSpace___rarg___lambda__1(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrEq___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint32_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_6 = 61;
x_7 = lean_string_utf8_byte_size(x_5);
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_String_posOfAux(x_5, x_6, x_7, x_8);
x_10 = lean_nat_dec_eq(x_9, x_7);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_11 = lean_ctor_get(x_1, 1);
lean_inc(x_11);
lean_dec(x_1);
x_12 = lean_string_utf8_next(x_5, x_9);
x_13 = lean_string_utf8_extract(x_5, x_12, x_7);
lean_dec(x_7);
lean_dec(x_12);
x_14 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_14, 0, x_13);
x_15 = lean_ctor_get(x_2, 2);
lean_inc(x_15);
lean_dec(x_2);
x_16 = lean_apply_2(x_15, lean_box(0), x_14);
x_17 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___rarg___lambda__1___boxed), 4, 3);
lean_closure_set(x_17, 0, x_5);
lean_closure_set(x_17, 1, x_9);
lean_closure_set(x_17, 2, x_4);
x_18 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_16, x_17);
return x_18;
}
else
{
lean_object* x_19; 
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_2);
lean_dec(x_1);
x_19 = lean_apply_1(x_4, x_5);
return x_19;
}
}
}
LEAN_EXPORT lean_object* l_Lake_longOptionOrEq(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_longOptionOrEq___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_longOption___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; uint32_t x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_7 = lean_unsigned_to_nat(0u);
x_8 = lean_string_utf8_extract(x_1, x_7, x_2);
x_9 = 32;
x_10 = lean_string_utf8_byte_size(x_8);
x_11 = l_String_posOfAux(x_8, x_9, x_10, x_7);
x_12 = lean_nat_dec_eq(x_11, x_10);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_13 = lean_string_utf8_next(x_8, x_11);
x_14 = lean_string_utf8_extract(x_8, x_13, x_10);
lean_dec(x_10);
lean_dec(x_13);
x_15 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_15, 0, x_14);
x_16 = lean_apply_2(x_3, lean_box(0), x_15);
x_17 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___rarg___lambda__1___boxed), 4, 3);
lean_closure_set(x_17, 0, x_8);
lean_closure_set(x_17, 1, x_11);
lean_closure_set(x_17, 2, x_4);
x_18 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_16, x_17);
return x_18;
}
else
{
lean_object* x_19; 
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_5);
lean_dec(x_3);
x_19 = lean_apply_1(x_4, x_8);
return x_19;
}
}
}
LEAN_EXPORT lean_object* l_Lake_longOption___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint32_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_6 = 61;
x_7 = lean_string_utf8_byte_size(x_5);
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_String_posOfAux(x_5, x_6, x_7, x_8);
x_10 = lean_nat_dec_eq(x_9, x_7);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_11 = lean_ctor_get(x_1, 1);
lean_inc(x_11);
lean_dec(x_1);
x_12 = lean_string_utf8_next(x_5, x_9);
x_13 = lean_string_utf8_extract(x_5, x_12, x_7);
lean_dec(x_7);
lean_dec(x_12);
x_14 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_14, 0, x_13);
x_15 = lean_ctor_get(x_2, 2);
lean_inc(x_15);
lean_dec(x_2);
lean_inc(x_15);
x_16 = lean_apply_2(x_15, lean_box(0), x_14);
lean_inc(x_11);
x_17 = lean_alloc_closure((void*)(l_Lake_longOption___rarg___lambda__1___boxed), 6, 5);
lean_closure_set(x_17, 0, x_5);
lean_closure_set(x_17, 1, x_9);
lean_closure_set(x_17, 2, x_15);
lean_closure_set(x_17, 3, x_4);
lean_closure_set(x_17, 4, x_11);
x_18 = lean_apply_4(x_11, lean_box(0), lean_box(0), x_16, x_17);
return x_18;
}
else
{
uint32_t x_19; lean_object* x_20; uint8_t x_21; 
lean_dec(x_9);
x_19 = 32;
x_20 = l_String_posOfAux(x_5, x_19, x_7, x_8);
x_21 = lean_nat_dec_eq(x_20, x_7);
if (x_21 == 0)
{
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; 
x_22 = lean_ctor_get(x_1, 1);
lean_inc(x_22);
lean_dec(x_1);
x_23 = lean_string_utf8_next(x_5, x_20);
x_24 = lean_string_utf8_extract(x_5, x_23, x_7);
lean_dec(x_7);
lean_dec(x_23);
x_25 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_25, 0, x_24);
x_26 = lean_ctor_get(x_2, 2);
lean_inc(x_26);
lean_dec(x_2);
x_27 = lean_apply_2(x_26, lean_box(0), x_25);
x_28 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___rarg___lambda__1___boxed), 4, 3);
lean_closure_set(x_28, 0, x_5);
lean_closure_set(x_28, 1, x_20);
lean_closure_set(x_28, 2, x_4);
x_29 = lean_apply_4(x_22, lean_box(0), lean_box(0), x_27, x_28);
return x_29;
}
else
{
lean_object* x_30; 
lean_dec(x_20);
lean_dec(x_7);
lean_dec(x_2);
lean_dec(x_1);
x_30 = lean_apply_1(x_4, x_5);
return x_30;
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_longOption(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_longOption___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_longOption___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lake_longOption___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_6);
lean_dec(x_2);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_shortOption___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_string_length(x_6);
x_8 = lean_unsigned_to_nat(2u);
x_9 = lean_nat_dec_eq(x_7, x_8);
lean_dec(x_7);
if (x_9 == 0)
{
uint32_t x_10; uint32_t x_11; uint8_t x_12; 
x_10 = lean_string_utf8_get(x_6, x_8);
x_11 = 61;
x_12 = lean_uint32_dec_eq(x_10, x_11);
if (x_12 == 0)
{
uint32_t x_13; uint8_t x_14; 
x_13 = 32;
x_14 = lean_uint32_dec_eq(x_10, x_13);
if (x_14 == 0)
{
lean_object* x_15; 
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_15 = lean_apply_1(x_5, x_6);
return x_15;
}
else
{
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_dec(x_5);
x_16 = lean_ctor_get(x_1, 1);
lean_inc(x_16);
lean_dec(x_1);
lean_inc(x_6);
x_17 = l_String_drop(x_6, x_8);
x_18 = l_String_trimLeft(x_17);
lean_dec(x_17);
x_19 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_19, 0, x_18);
x_20 = lean_ctor_get(x_2, 2);
lean_inc(x_20);
lean_dec(x_2);
x_21 = lean_apply_2(x_20, lean_box(0), x_19);
x_22 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___rarg___lambda__1___boxed), 3, 2);
lean_closure_set(x_22, 0, x_6);
lean_closure_set(x_22, 1, x_4);
x_23 = lean_apply_4(x_16, lean_box(0), lean_box(0), x_21, x_22);
return x_23;
}
}
else
{
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_dec(x_5);
x_24 = lean_ctor_get(x_1, 1);
lean_inc(x_24);
lean_dec(x_1);
x_25 = lean_unsigned_to_nat(3u);
lean_inc(x_6);
x_26 = l_String_drop(x_6, x_25);
x_27 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_27, 0, x_26);
x_28 = lean_ctor_get(x_2, 2);
lean_inc(x_28);
lean_dec(x_2);
x_29 = lean_apply_2(x_28, lean_box(0), x_27);
x_30 = lean_alloc_closure((void*)(l_Lake_shortOptionWithEq___rarg___lambda__1___boxed), 3, 2);
lean_closure_set(x_30, 0, x_6);
lean_closure_set(x_30, 1, x_4);
x_31 = lean_apply_4(x_24, lean_box(0), lean_box(0), x_29, x_30);
return x_31;
}
}
else
{
lean_object* x_32; uint32_t x_33; lean_object* x_34; lean_object* x_35; 
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_32 = lean_unsigned_to_nat(1u);
x_33 = lean_string_utf8_get(x_6, x_32);
lean_dec(x_6);
x_34 = lean_box_uint32(x_33);
x_35 = lean_apply_1(x_4, x_34);
return x_35;
}
}
}
LEAN_EXPORT lean_object* l_Lake_shortOption(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_shortOption___rarg), 6, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_option___rarg___lambda__1(lean_object* x_1, uint32_t x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_box_uint32(x_2);
x_5 = lean_apply_1(x_1, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_option___rarg(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; uint32_t x_7; uint32_t x_8; uint8_t x_9; 
x_6 = lean_unsigned_to_nat(1u);
x_7 = lean_string_utf8_get(x_5, x_6);
x_8 = 45;
x_9 = lean_uint32_dec_eq(x_7, x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_10 = lean_ctor_get(x_4, 1);
lean_inc(x_10);
x_11 = lean_ctor_get(x_4, 2);
lean_inc(x_11);
lean_dec(x_4);
x_12 = lean_string_length(x_5);
x_13 = lean_unsigned_to_nat(2u);
x_14 = lean_nat_dec_eq(x_12, x_13);
lean_dec(x_12);
if (x_14 == 0)
{
uint32_t x_15; uint32_t x_16; uint8_t x_17; 
x_15 = lean_string_utf8_get(x_5, x_13);
x_16 = 61;
x_17 = lean_uint32_dec_eq(x_15, x_16);
if (x_17 == 0)
{
uint32_t x_18; uint8_t x_19; 
x_18 = 32;
x_19 = lean_uint32_dec_eq(x_15, x_18);
if (x_19 == 0)
{
lean_object* x_20; 
lean_dec(x_10);
lean_dec(x_2);
lean_dec(x_1);
x_20 = lean_apply_1(x_11, x_5);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_dec(x_11);
x_21 = lean_ctor_get(x_1, 1);
lean_inc(x_21);
lean_dec(x_1);
x_22 = l_String_drop(x_5, x_13);
x_23 = l_String_trimLeft(x_22);
lean_dec(x_22);
x_24 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_24, 0, x_23);
x_25 = lean_ctor_get(x_2, 2);
lean_inc(x_25);
lean_dec(x_2);
x_26 = lean_apply_2(x_25, lean_box(0), x_24);
x_27 = lean_box_uint32(x_7);
x_28 = lean_alloc_closure((void*)(l_Lake_option___rarg___lambda__1___boxed), 3, 2);
lean_closure_set(x_28, 0, x_10);
lean_closure_set(x_28, 1, x_27);
x_29 = lean_apply_4(x_21, lean_box(0), lean_box(0), x_26, x_28);
return x_29;
}
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
lean_dec(x_11);
x_30 = lean_ctor_get(x_1, 1);
lean_inc(x_30);
lean_dec(x_1);
x_31 = lean_unsigned_to_nat(3u);
x_32 = l_String_drop(x_5, x_31);
x_33 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_33, 0, x_32);
x_34 = lean_ctor_get(x_2, 2);
lean_inc(x_34);
lean_dec(x_2);
x_35 = lean_apply_2(x_34, lean_box(0), x_33);
x_36 = lean_box_uint32(x_7);
x_37 = lean_alloc_closure((void*)(l_Lake_option___rarg___lambda__1___boxed), 3, 2);
lean_closure_set(x_37, 0, x_10);
lean_closure_set(x_37, 1, x_36);
x_38 = lean_apply_4(x_30, lean_box(0), lean_box(0), x_35, x_37);
return x_38;
}
}
else
{
lean_object* x_39; lean_object* x_40; 
lean_dec(x_11);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_39 = lean_box_uint32(x_7);
x_40 = lean_apply_1(x_10, x_39);
return x_40;
}
}
else
{
lean_object* x_41; uint32_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
x_41 = lean_ctor_get(x_4, 0);
lean_inc(x_41);
lean_dec(x_4);
x_42 = 61;
x_43 = lean_string_utf8_byte_size(x_5);
x_44 = lean_unsigned_to_nat(0u);
x_45 = l_String_posOfAux(x_5, x_42, x_43, x_44);
x_46 = lean_nat_dec_eq(x_45, x_43);
if (x_46 == 0)
{
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; 
x_47 = lean_ctor_get(x_1, 1);
lean_inc(x_47);
lean_dec(x_1);
x_48 = lean_string_utf8_next(x_5, x_45);
x_49 = lean_string_utf8_extract(x_5, x_48, x_43);
lean_dec(x_43);
lean_dec(x_48);
x_50 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_50, 0, x_49);
x_51 = lean_ctor_get(x_2, 2);
lean_inc(x_51);
lean_dec(x_2);
lean_inc(x_51);
x_52 = lean_apply_2(x_51, lean_box(0), x_50);
lean_inc(x_47);
x_53 = lean_alloc_closure((void*)(l_Lake_longOption___rarg___lambda__1___boxed), 6, 5);
lean_closure_set(x_53, 0, x_5);
lean_closure_set(x_53, 1, x_45);
lean_closure_set(x_53, 2, x_51);
lean_closure_set(x_53, 3, x_41);
lean_closure_set(x_53, 4, x_47);
x_54 = lean_apply_4(x_47, lean_box(0), lean_box(0), x_52, x_53);
return x_54;
}
else
{
uint32_t x_55; lean_object* x_56; uint8_t x_57; 
lean_dec(x_45);
x_55 = 32;
x_56 = l_String_posOfAux(x_5, x_55, x_43, x_44);
x_57 = lean_nat_dec_eq(x_56, x_43);
if (x_57 == 0)
{
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; 
x_58 = lean_ctor_get(x_1, 1);
lean_inc(x_58);
lean_dec(x_1);
x_59 = lean_string_utf8_next(x_5, x_56);
x_60 = lean_string_utf8_extract(x_5, x_59, x_43);
lean_dec(x_43);
lean_dec(x_59);
x_61 = lean_alloc_closure((void*)(l_Lake_consArg___rarg___lambda__1), 2, 1);
lean_closure_set(x_61, 0, x_60);
x_62 = lean_ctor_get(x_2, 2);
lean_inc(x_62);
lean_dec(x_2);
x_63 = lean_apply_2(x_62, lean_box(0), x_61);
x_64 = lean_alloc_closure((void*)(l_Lake_longOptionOrSpace___rarg___lambda__1___boxed), 4, 3);
lean_closure_set(x_64, 0, x_5);
lean_closure_set(x_64, 1, x_56);
lean_closure_set(x_64, 2, x_41);
x_65 = lean_apply_4(x_58, lean_box(0), lean_box(0), x_63, x_64);
return x_65;
}
else
{
lean_object* x_66; 
lean_dec(x_56);
lean_dec(x_43);
lean_dec(x_2);
lean_dec(x_1);
x_66 = lean_apply_1(x_41, x_5);
return x_66;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_option(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_option___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_option___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint32_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_5 = l_Lake_option___rarg___lambda__1(x_1, x_4, x_3);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_apply_1(x_1, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
lean_dec(x_6);
x_8 = lean_box(0);
x_9 = lean_apply_2(x_7, lean_box(0), x_8);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_10 = lean_ctor_get(x_5, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_5, 1);
lean_inc(x_11);
lean_dec(x_5);
x_12 = lean_string_length(x_10);
x_13 = lean_unsigned_to_nat(1u);
x_14 = lean_nat_dec_lt(x_13, x_12);
lean_dec(x_12);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_15 = lean_ctor_get(x_1, 0);
lean_inc(x_15);
lean_dec(x_1);
x_16 = lean_ctor_get(x_15, 1);
lean_inc(x_16);
lean_dec(x_15);
x_17 = lean_box(0);
x_18 = lean_apply_2(x_16, lean_box(0), x_17);
return x_18;
}
else
{
lean_object* x_19; uint32_t x_20; uint32_t x_21; uint8_t x_22; 
x_19 = lean_unsigned_to_nat(0u);
x_20 = lean_string_utf8_get(x_10, x_19);
x_21 = 45;
x_22 = lean_uint32_dec_eq(x_20, x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_23 = lean_ctor_get(x_1, 0);
lean_inc(x_23);
lean_dec(x_1);
x_24 = lean_ctor_get(x_23, 1);
lean_inc(x_24);
lean_dec(x_23);
x_25 = lean_box(0);
x_26 = lean_apply_2(x_24, lean_box(0), x_25);
return x_26;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
lean_dec(x_1);
x_27 = lean_ctor_get(x_2, 1);
lean_inc(x_27);
lean_dec(x_2);
x_28 = lean_apply_1(x_27, x_11);
x_29 = lean_alloc_closure((void*)(l_Lake_processLeadingOption___rarg___lambda__1___boxed), 3, 2);
lean_closure_set(x_29, 0, x_3);
lean_closure_set(x_29, 1, x_10);
x_30 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_28, x_29);
return x_30;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 0);
lean_inc(x_5);
lean_inc(x_4);
x_6 = lean_alloc_closure((void*)(l_Lake_processLeadingOption___rarg___lambda__2), 5, 4);
lean_closure_set(x_6, 0, x_1);
lean_closure_set(x_6, 1, x_2);
lean_closure_set(x_6, 2, x_3);
lean_closure_set(x_6, 3, x_4);
x_7 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOption(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_processLeadingOption___rarg), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOption___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lake_processLeadingOption___rarg___lambda__1(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lake_processLeadingOptions___rarg(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_inc(x_1);
x_7 = lean_apply_1(x_1, x_2);
x_8 = lean_alloc_closure((void*)(l_Lake_processLeadingOptions___rarg___lambda__1___boxed), 4, 3);
lean_closure_set(x_8, 0, x_3);
lean_closure_set(x_8, 1, x_4);
lean_closure_set(x_8, 2, x_1);
x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_ctor_get(x_6, 1);
lean_inc(x_7);
lean_dec(x_6);
x_8 = lean_box(0);
x_9 = lean_apply_2(x_7, lean_box(0), x_8);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_10 = lean_ctor_get(x_5, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_5, 1);
lean_inc(x_11);
lean_dec(x_5);
x_12 = lean_string_length(x_10);
x_13 = lean_unsigned_to_nat(1u);
x_14 = lean_nat_dec_lt(x_13, x_12);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
lean_dec(x_10);
x_15 = lean_unsigned_to_nat(0u);
x_16 = lean_nat_dec_eq(x_12, x_15);
lean_dec(x_12);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
lean_dec(x_11);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_17 = lean_ctor_get(x_1, 0);
lean_inc(x_17);
lean_dec(x_1);
x_18 = lean_ctor_get(x_17, 1);
lean_inc(x_18);
lean_dec(x_17);
x_19 = lean_box(0);
x_20 = lean_apply_2(x_18, lean_box(0), x_19);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_21 = lean_ctor_get(x_2, 1);
lean_inc(x_21);
x_22 = lean_apply_1(x_21, x_11);
x_23 = lean_alloc_closure((void*)(l_Lake_processLeadingOptions___rarg___lambda__1___boxed), 4, 3);
lean_closure_set(x_23, 0, x_1);
lean_closure_set(x_23, 1, x_2);
lean_closure_set(x_23, 2, x_3);
x_24 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_22, x_23);
return x_24;
}
}
else
{
lean_object* x_25; uint32_t x_26; uint32_t x_27; uint8_t x_28; 
x_25 = lean_unsigned_to_nat(0u);
x_26 = lean_string_utf8_get(x_10, x_25);
x_27 = 45;
x_28 = lean_uint32_dec_eq(x_26, x_27);
if (x_28 == 0)
{
uint8_t x_29; 
lean_dec(x_10);
x_29 = lean_nat_dec_eq(x_12, x_25);
lean_dec(x_12);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; 
lean_dec(x_11);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_30 = lean_ctor_get(x_1, 0);
lean_inc(x_30);
lean_dec(x_1);
x_31 = lean_ctor_get(x_30, 1);
lean_inc(x_31);
lean_dec(x_30);
x_32 = lean_box(0);
x_33 = lean_apply_2(x_31, lean_box(0), x_32);
return x_33;
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_34 = lean_ctor_get(x_2, 1);
lean_inc(x_34);
x_35 = lean_apply_1(x_34, x_11);
x_36 = lean_alloc_closure((void*)(l_Lake_processLeadingOptions___rarg___lambda__1___boxed), 4, 3);
lean_closure_set(x_36, 0, x_1);
lean_closure_set(x_36, 1, x_2);
lean_closure_set(x_36, 2, x_3);
x_37 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_35, x_36);
return x_37;
}
}
else
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; 
lean_dec(x_12);
x_38 = lean_ctor_get(x_2, 1);
lean_inc(x_38);
x_39 = lean_apply_1(x_38, x_11);
lean_inc(x_4);
x_40 = lean_alloc_closure((void*)(l_Lake_processLeadingOptions___rarg___lambda__2___boxed), 6, 5);
lean_closure_set(x_40, 0, x_3);
lean_closure_set(x_40, 1, x_10);
lean_closure_set(x_40, 2, x_1);
lean_closure_set(x_40, 3, x_2);
lean_closure_set(x_40, 4, x_4);
x_41 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_39, x_40);
return x_41;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 0);
lean_inc(x_5);
lean_inc(x_4);
x_6 = lean_alloc_closure((void*)(l_Lake_processLeadingOptions___rarg___lambda__3), 5, 4);
lean_closure_set(x_6, 0, x_1);
lean_closure_set(x_6, 1, x_2);
lean_closure_set(x_6, 2, x_3);
lean_closure_set(x_6, 3, x_4);
x_7 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_processLeadingOptions___rarg), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg___lambda__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_Lake_processLeadingOptions___rarg___lambda__1(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lake_processLeadingOptions___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lake_processLeadingOptions___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lake_collectArgs___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lake_collectArgs___rarg(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_collectArgs___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_ctor_get(x_7, 1);
lean_inc(x_8);
lean_dec(x_7);
x_9 = lean_apply_2(x_8, lean_box(0), x_2);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = lean_ctor_get(x_6, 0);
lean_inc(x_10);
lean_dec(x_6);
x_11 = lean_string_length(x_10);
x_12 = lean_unsigned_to_nat(1u);
x_13 = lean_nat_dec_lt(x_12, x_11);
if (x_13 == 0)
{
lean_object* x_14; uint8_t x_15; 
lean_dec(x_5);
x_14 = lean_unsigned_to_nat(0u);
x_15 = lean_nat_dec_eq(x_11, x_14);
lean_dec(x_11);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; 
x_16 = lean_array_push(x_2, x_10);
x_17 = l_Lake_collectArgs___rarg(x_1, x_3, x_4, x_16);
return x_17;
}
else
{
lean_object* x_18; 
lean_dec(x_10);
x_18 = l_Lake_collectArgs___rarg(x_1, x_3, x_4, x_2);
return x_18;
}
}
else
{
lean_object* x_19; uint32_t x_20; uint32_t x_21; uint8_t x_22; 
x_19 = lean_unsigned_to_nat(0u);
x_20 = lean_string_utf8_get(x_10, x_19);
x_21 = 45;
x_22 = lean_uint32_dec_eq(x_20, x_21);
if (x_22 == 0)
{
uint8_t x_23; 
lean_dec(x_5);
x_23 = lean_nat_dec_eq(x_11, x_19);
lean_dec(x_11);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; 
x_24 = lean_array_push(x_2, x_10);
x_25 = l_Lake_collectArgs___rarg(x_1, x_3, x_4, x_24);
return x_25;
}
else
{
lean_object* x_26; 
lean_dec(x_10);
x_26 = l_Lake_collectArgs___rarg(x_1, x_3, x_4, x_2);
return x_26;
}
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_dec(x_11);
lean_inc(x_4);
x_27 = lean_apply_1(x_4, x_10);
x_28 = lean_alloc_closure((void*)(l_Lake_collectArgs___rarg___lambda__1___boxed), 5, 4);
lean_closure_set(x_28, 0, x_1);
lean_closure_set(x_28, 1, x_3);
lean_closure_set(x_28, 2, x_4);
lean_closure_set(x_28, 3, x_2);
x_29 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_27, x_28);
return x_29;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lake_collectArgs___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_2, 2);
lean_inc(x_6);
x_7 = l_Lake_takeArg_x3f___rarg___closed__1;
x_8 = lean_apply_2(x_6, lean_box(0), x_7);
lean_inc(x_5);
x_9 = lean_alloc_closure((void*)(l_Lake_collectArgs___rarg___lambda__2), 6, 5);
lean_closure_set(x_9, 0, x_1);
lean_closure_set(x_9, 1, x_4);
lean_closure_set(x_9, 2, x_2);
lean_closure_set(x_9, 3, x_3);
lean_closure_set(x_9, 4, x_5);
x_10 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_8, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lake_collectArgs(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_collectArgs___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_collectArgs___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lake_collectArgs___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lake_processOptions___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_array_to_list(lean_box(0), x_2);
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_apply_1(x_4, x_3);
return x_5;
}
}
static lean_object* _init_l_Lake_processOptions___rarg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lake_processOptions___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
x_5 = l_Lake_processOptions___rarg___closed__1;
lean_inc(x_2);
x_6 = l_Lake_collectArgs___rarg(x_1, x_2, x_3, x_5);
x_7 = lean_alloc_closure((void*)(l_Lake_processOptions___rarg___lambda__1), 2, 1);
lean_closure_set(x_7, 0, x_2);
x_8 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_6, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lake_processOptions(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lake_processOptions___rarg), 3, 0);
return x_2;
}
}
lean_object* initialize_Init(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lake_Util_Cli(uint8_t builtin, lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lake_ArgsT_run_x27___rarg___closed__1 = _init_l_Lake_ArgsT_run_x27___rarg___closed__1();
lean_mark_persistent(l_Lake_ArgsT_run_x27___rarg___closed__1);
l_Lake_takeArg_x3f___rarg___lambda__1___closed__1 = _init_l_Lake_takeArg_x3f___rarg___lambda__1___closed__1();
lean_mark_persistent(l_Lake_takeArg_x3f___rarg___lambda__1___closed__1);
l_Lake_takeArg_x3f___rarg___closed__1 = _init_l_Lake_takeArg_x3f___rarg___closed__1();
lean_mark_persistent(l_Lake_takeArg_x3f___rarg___closed__1);
l_Lake_takeArgs___rarg___closed__1 = _init_l_Lake_takeArgs___rarg___closed__1();
lean_mark_persistent(l_Lake_takeArgs___rarg___closed__1);
l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1___closed__1 = _init_l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1___closed__1();
lean_mark_persistent(l_Std_Range_forIn_loop___at_Lake_multiShortOption___spec__1___rarg___lambda__1___closed__1);
l_Lake_processOptions___rarg___closed__1 = _init_l_Lake_processOptions___rarg___closed__1();
lean_mark_persistent(l_Lake_processOptions___rarg___closed__1);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
