#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int getchar();
int getopt(int, char **, char *);
int /*<<< orphan*/ menu_end();
int /*<<< orphan*/ menu_execute(int);
int /*<<< orphan*/ menu_free_all();
char *menu_get_config_path();
int menu_get_count();
int /*<<< orphan*/ menu_init();
int menu_load();
int /*<<< orphan*/ menu_set_config(int /*<<< orphan*/);
int /*<<< orphan*/ menu_set_title(int /*<<< orphan*/);
int /*<<< orphan*/ menu_show(char *, int, int);
int /*<<< orphan*/ optarg;
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int main(int argc, char *argv[]) {
  int c, lo = 1, fo = 1;
  while ((c = getopt(argc, argv, "t:c:")) != -1) {
    switch (c) {
    case 't':
      menu_set_title(optarg);
      break;
    case 'c':
      menu_set_config(optarg);
      break;
    }
  }
  switch (menu_load()) {
  case 1:
    fprintf(stderr, "Please set HOME environment variable.\n");
    return 1;
    break;
  case 2:
    fprintf(stderr, "Could not open config file: %s\n", menu_get_config_path());
    return 2;
    break;
  case 3:
    fprintf(stderr, "Memory allocation error. Could not open config file: %s\n",
            menu_get_config_path());
    return 3;
    break;
  case 4:
    fprintf(stderr, "Invalid line format detected in config file: %s.\n",
            menu_get_config_path());
    return 4;
    break;
  }
  menu_init();
  menu_show("0.2.1", lo, fo);
  while ((c = getchar()) != 10) {
    if (c == 27 && getchar() == 91) {
      c = getchar();
    }
    switch (c) {
    case 65:
    case 107:
      if (lo > 1)
        --lo;
      break;
    case 66:
    case 106:
      if (lo < menu_get_count())
        ++lo;
      break;
    case 67:
    case 108:
      fo = 2;
      break;
    case 68:
    case 104:
      fo = 1;
      break;
    }
    menu_show("0.2.1", lo, fo);
  }
  menu_end();
  fflush(stdout);
  if (fo == 1)
    menu_execute(lo);
  menu_free_all();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0x1,-0x1c(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xeae(%rip),%rdx
call   10d0 <getopt@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
je     126e <main+0x8e>
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
sub    $0x63,%eax
je     125b <main+0x7b>
jmp    1237 <main+0x57>
mov    -0x20(%rbp),%eax
sub    $0x74,%eax
jne    1269 <main+0x89>
jmp    1248 <main+0x68>
mov    0x2da9(%rip),%rax
mov    (%rax),%edi
call   1100 <menu_set_title@plt>
jmp    1269 <main+0x89>
mov    0x2d96(%rip),%rax
mov    (%rax),%edi
call   1060 <menu_set_config@plt>
jmp    1204 <main+0x24>
xor    %eax,%eax
call   1040 <menu_load@plt>
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x3,%eax
ja     1357 <main+0x177>
mov    -0x28(%rbp),%rax
lea    0xd6e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
lea    0xe1a(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    146f <main+0x28f>
mov    0x2d13(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x2c(%rbp)
mov    $0x0,%al
call   1070 <menu_get_config_path@plt>
mov    -0x2c(%rbp),%edi
mov    %rax,%rdx
lea    0xe27(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x2,-0x4(%rbp)
jmp    146f <main+0x28f>
mov    0x2ce0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x30(%rbp)
mov    $0x0,%al
call   1070 <menu_get_config_path@plt>
mov    -0x30(%rbp),%edi
mov    %rax,%rdx
lea    0xddb(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x3,-0x4(%rbp)
jmp    146f <main+0x28f>
mov    0x2cad(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    $0x0,%al
call   1070 <menu_get_config_path@plt>
mov    -0x34(%rbp),%edi
mov    %rax,%rdx
lea    0xde1(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x4,-0x4(%rbp)
jmp    146f <main+0x28f>
mov    $0x0,%al
call   1030 <menu_init@plt>
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%edx
lea    0xdec(%rip),%rdi
call   10e0 <menu_show@plt>
mov    $0x0,%al
call   1080 <getchar@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xa,%eax
je     143a <main+0x25a>
cmpl   $0x1b,-0x14(%rbp)
jne    13a7 <main+0x1c7>
mov    $0x0,%al
call   1080 <getchar@plt>
cmp    $0x5b,%eax
jne    13a7 <main+0x1c7>
mov    $0x0,%al
call   1080 <getchar@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffbf,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x2b,%eax
ja     1423 <main+0x243>
mov    -0x40(%rbp),%rax
lea    0xc49(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cmpl   $0x1,-0x18(%rbp)
jle    13e3 <main+0x203>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    1423 <main+0x243>
mov    -0x18(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    $0x0,%al
call   10c0 <menu_get_count@plt>
mov    %eax,%ecx
mov    -0x44(%rbp),%eax
cmp    %ecx,%eax
jge    140b <main+0x22b>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1423 <main+0x243>
movl   $0x2,-0x1c(%rbp)
jmp    1423 <main+0x243>
movl   $0x1,-0x1c(%rbp)
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%edx
lea    0xd27(%rip),%rdi
call   10e0 <menu_show@plt>
jmp    1370 <main+0x190>
mov    $0x0,%al
call   10a0 <menu_end@plt>
mov    0x2b88(%rip),%rax
mov    (%rax),%edi
call   10b0 <fflush@plt>
cmpl   $0x1,-0x1c(%rbp)
jne    1461 <main+0x281>
mov    -0x18(%rbp),%edi
call   1050 <menu_execute@plt>
mov    $0x0,%al
call   10f0 <menu_free_all@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xecd(%rip),%r14
mov    0x2dfe(%rip),%r15
jmp    1208 <main+0x28>
nopl   0x0(%rax)
mov    (%r15),%edi
call   1100 <menu_set_title@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   10d0 <getopt@plt>
cmp    $0x63,%eax
je     1230 <main+0x50>
cmp    $0x74,%eax
je     1200 <main+0x20>
cmp    $0xffffffff,%eax
jne    1208 <main+0x28>
jmp    123a <main+0x5a>
cs nopw 0x0(%rax,%rax,1)
mov    (%r15),%edi
call   1060 <menu_set_config@plt>
jmp    1208 <main+0x28>
xor    %eax,%eax
call   1040 <menu_load@plt>
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     1309 <main+0x129>
lea    0xdac(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2d74(%rip),%rax
mov    (%rax),%edi
lea    0xe58(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x1,%r14d
jmp    13e4 <main+0x204>
mov    0x2d52(%rip),%rax
mov    (%rax),%ebx
xor    %eax,%eax
call   1070 <menu_get_config_path@plt>
lea    0xe6f(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x2,%r14d
jmp    13e4 <main+0x204>
mov    0x2d24(%rip),%rax
mov    (%rax),%ebx
xor    %eax,%eax
call   1070 <menu_get_config_path@plt>
lea    0xe28(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x3,%r14d
jmp    13e4 <main+0x204>
mov    0x2cf6(%rip),%rax
mov    (%rax),%ebx
xor    %eax,%eax
call   1070 <menu_get_config_path@plt>
lea    0xe33(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0x4,%r14d
jmp    13e4 <main+0x204>
xor    %eax,%eax
call   1030 <menu_init@plt>
lea    0xe40(%rip),%r14
mov    $0x1,%ebx
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   10e0 <menu_show@plt>
lea    0xcdb(%rip),%r15
mov    $0x1,%ebp
jmp    135c <main+0x17c>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebx,%esi
mov    %ebp,%edx
call   10e0 <menu_show@plt>
xor    %eax,%eax
call   1080 <getchar@plt>
cmp    $0x1b,%eax
je     1370 <main+0x190>
cmp    $0xa,%eax
jne    1383 <main+0x1a3>
jmp    13b9 <main+0x1d9>
nop
xor    %eax,%eax
call   1080 <getchar@plt>
cmp    $0x5b,%eax
jne    1350 <main+0x170>
xor    %eax,%eax
call   1080 <getchar@plt>
add    $0xffffffbf,%eax
cmp    $0x2b,%eax
ja     1350 <main+0x170>
movslq (%r15,%rax,4),%rax
add    %r15,%rax
jmp    *%rax
xor    %eax,%eax
cmp    $0x2,%ebx
setge  %al
sub    %eax,%ebx
jmp    1350 <main+0x170>
xor    %eax,%eax
call   10c0 <menu_get_count@plt>
xor    %ecx,%ecx
cmp    %eax,%ebx
setl   %cl
add    %ecx,%ebx
jmp    1350 <main+0x170>
mov    $0x2,%ebp
jmp    1350 <main+0x170>
xor    %r14d,%r14d
xor    %eax,%eax
call   10a0 <menu_end@plt>
mov    0x2c06(%rip),%rax
mov    (%rax),%edi
call   10b0 <fflush@plt>
cmp    $0x1,%ebp
jne    13dd <main+0x1fd>
mov    %ebx,%edi
call   1050 <menu_execute@plt>
xor    %eax,%eax
call   10f0 <menu_free_all@plt>
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"t:c:\00"
@optarg = global i32 0
@stderr = global i32 0
@.str.1 = [39 x i8] c"Please set HOME environment variable.\0A\00"
@.str.2 = [32 x i8] c"Could not open config file: %s\0A\00"
@.str.3 = [57 x i8] c"Memory allocation error. Could not open config file: %s\0A\00"
@.str.4 = [50 x i8] c"Invalid line format detected in config file: %s.\0A\00"
@.str.5 = [6 x i8] c"0.2.1\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %7
store i32 1, i32* %8
br label %9
9: ; preds = %22, %2
%10 = load i32, i32* %4
%11 = load i8**, i8*** %5
%12 = call i32 @getopt(i32 %10, i8** %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
store i32 %12, i32* %6
%13 = icmp ne i32 %12, -1
br i1 %13, label %14, label %23
14: ; preds = %9
%15 = load i32, i32* %6
switch i32 %15, label %22 [
i32 116, label %16
i32 99, label %19
]
16: ; preds = %14
%17 = load i32, i32* @optarg
%18 = call i32 @menu_set_title(i32 %17)
br label %22
19: ; preds = %14
%20 = load i32, i32* @optarg
%21 = call i32 @menu_set_config(i32 %20)
br label %22
22: ; preds = %14, %19, %16
br label %9
23: ; preds = %9
%24 = call i32 (...) @menu_load()
switch i32 %24, label %40 [
i32 1, label %25
i32 2, label %28
i32 3, label %32
i32 4, label %36
]
25: ; preds = %23
%26 = load i32, i32* @stderr
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %90
28: ; preds = %23
%29 = load i32, i32* @stderr
%30 = call i8* (...) @menu_get_config_path()
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %30)
store i32 2, i32* %3
br label %90
32: ; preds = %23
%33 = load i32, i32* @stderr
%34 = call i8* (...) @menu_get_config_path()
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0), i8* %34)
store i32 3, i32* %3
br label %90
36: ; preds = %23
%37 = load i32, i32* @stderr
%38 = call i8* (...) @menu_get_config_path()
%39 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), i8* %38)
store i32 4, i32* %3
br label %90
40: ; preds = %23
%41 = call i32 (...) @menu_init()
%42 = load i32, i32* %7
%43 = load i32, i32* %8
%44 = call i32 @menu_show(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %42, i32 %43)
br label %45
45: ; preds = %75, %40
%46 = call i32 (...) @getchar()
store i32 %46, i32* %6
%47 = icmp ne i32 %46, 10
br i1 %47, label %48, label %79
48: ; preds = %45
%49 = load i32, i32* %6
%50 = icmp eq i32 %49, 27
br i1 %50, label %51, label %56
51: ; preds = %48
%52 = call i32 (...) @getchar()
%53 = icmp eq i32 %52, 91
br i1 %53, label %54, label %56
54: ; preds = %51
%55 = call i32 (...) @getchar()
store i32 %55, i32* %6
br label %56
56: ; preds = %54, %51, %48
%57 = load i32, i32* %6
switch i32 %57, label %75 [
i32 65, label %58
i32 107, label %58
i32 66, label %65
i32 106, label %65
i32 67, label %73
i32 108, label %73
i32 68, label %74
i32 104, label %74
]
58: ; preds = %56, %56
%59 = load i32, i32* %7
%60 = icmp sgt i32 %59, 1
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = load i32, i32* %7
%63 = add nsw i32 %62, -1
store i32 %63, i32* %7
br label %64
64: ; preds = %61, %58
br label %75
65: ; preds = %56, %56
%66 = load i32, i32* %7
%67 = call i32 (...) @menu_get_count()
%68 = icmp slt i32 %66, %67
br i1 %68, label %69, label %72
69: ; preds = %65
%70 = load i32, i32* %7
%71 = add nsw i32 %70, 1
store i32 %71, i32* %7
br label %72
72: ; preds = %69, %65
br label %75
73: ; preds = %56, %56
store i32 2, i32* %8
br label %75
74: ; preds = %56, %56
store i32 1, i32* %8
br label %75
75: ; preds = %56, %74, %73, %72, %64
%76 = load i32, i32* %7
%77 = load i32, i32* %8
%78 = call i32 @menu_show(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %76, i32 %77)
br label %45
79: ; preds = %45
%80 = call i32 (...) @menu_end()
%81 = load i32, i32* @stdout
%82 = call i32 @fflush(i32 %81)
%83 = load i32, i32* %8
%84 = icmp eq i32 %83, 1
br i1 %84, label %85, label %88
85: ; preds = %79
%86 = load i32, i32* %7
%87 = call i32 @menu_execute(i32 %86)
br label %88
88: ; preds = %85, %79
%89 = call i32 (...) @menu_free_all()
store i32 0, i32* %3
br label %90
90: ; preds = %88, %36, %32, %28, %25
%91 = load i32, i32* %3
ret i32 %91
}

LLVM IR (-O2):
@.str = [5 x i8] c"t:c:\00"
@optarg = global i32 0
@stderr = global i32 0
@.str.1 = [39 x i8] c"Please set HOME environment variable.\0A\00"
@.str.2 = [32 x i8] c"Could not open config file: %s\0A\00"
@.str.3 = [57 x i8] c"Memory allocation error. Could not open config file: %s\0A\00"
@.str.4 = [50 x i8] c"Invalid line format detected in config file: %s.\0A\00"
@.str.5 = [6 x i8] c"0.2.1\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
br label %3
3: ; preds = %5, %2
%4 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
switch i32 %4, label %5 [
i32 -1, label %12
i32 116, label %6
i32 99, label %9
]
5: ; preds = %3, %9, %6
br label %3
6: ; preds = %3
%7 = load i32, i32* @optarg
%8 = tail call i32 @menu_set_title(i32 %7)
br label %5
9: ; preds = %3
%10 = load i32, i32* @optarg
%11 = tail call i32 @menu_set_config(i32 %10)
br label %5
12: ; preds = %3
%13 = tail call i32 (...) @menu_load()
switch i32 %13, label %29 [
i32 1, label %14
i32 2, label %17
i32 3, label %21
i32 4, label %25
]
14: ; preds = %12
%15 = load i32, i32* @stderr
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
br label %67
17: ; preds = %12
%18 = load i32, i32* @stderr
%19 = tail call i8* (...) @menu_get_config_path()
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %19)
br label %67
21: ; preds = %12
%22 = load i32, i32* @stderr
%23 = tail call i8* (...) @menu_get_config_path()
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0), i8* %23)
br label %67
25: ; preds = %12
%26 = load i32, i32* @stderr
%27 = tail call i8* (...) @menu_get_config_path()
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), i8* %27)
br label %67
29: ; preds = %12
%30 = tail call i32 (...) @menu_init()
%31 = tail call i32 @menu_show(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 1, i32 1)
br label %32
32: ; preds = %54, %29
%33 = phi i32 [ 1, %29 ], [ %55, %54 ]
%34 = phi i32 [ 1, %29 ], [ %56, %54 ]
%35 = tail call i32 (...) @getchar()
switch i32 %35, label %41 [
i32 10, label %58
i32 27, label %36
]
36: ; preds = %32
%37 = tail call i32 (...) @getchar()
%38 = icmp eq i32 %37, 91
br i1 %38, label %39, label %54
39: ; preds = %36
%40 = tail call i32 (...) @getchar()
br label %41
41: ; preds = %32, %39
%42 = phi i32 [ %40, %39 ], [ %35, %32 ]
switch i32 %42, label %54 [
i32 65, label %43
i32 107, label %43
i32 66, label %47
i32 106, label %47
i32 67, label %52
i32 108, label %52
i32 68, label %53
i32 104, label %53
]
43: ; preds = %41, %41
%44 = icmp sgt i32 %33, 1
%45 = sext i1 %44 to i32
%46 = add nsw i32 %33, %45
br label %54
47: ; preds = %41, %41
%48 = tail call i32 (...) @menu_get_count()
%49 = icmp slt i32 %33, %48
%50 = zext i1 %49 to i32
%51 = add nsw i32 %33, %50
br label %54
52: ; preds = %41, %41
br label %54
53: ; preds = %41, %41
br label %54
54: ; preds = %36, %47, %43, %41, %53, %52
%55 = phi i32 [ %33, %41 ], [ %33, %53 ], [ %33, %52 ], [ %46, %43 ], [ %51, %47 ], [ %33, %36 ]
%56 = phi i32 [ %34, %41 ], [ 1, %53 ], [ 2, %52 ], [ %34, %43 ], [ %34, %47 ], [ %34, %36 ]
%57 = tail call i32 @menu_show(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %55, i32 %56)
br label %32
58: ; preds = %32
%59 = tail call i32 (...) @menu_end()
%60 = load i32, i32* @stdout
%61 = tail call i32 @fflush(i32 %60)
%62 = icmp eq i32 %34, 1
br i1 %62, label %63, label %65
63: ; preds = %58
%64 = tail call i32 @menu_execute(i32 %33)
br label %65
65: ; preds = %63, %58
%66 = tail call i32 (...) @menu_free_all()
br label %67
67: ; preds = %65, %25, %21, %17, %14
%68 = phi i32 [ 0, %65 ], [ 4, %25 ], [ 3, %21 ], [ 2, %17 ], [ 1, %14 ]
ret i32 %68
}