#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*/ add_bold(char);
int /*<<< orphan*/ cbreak();
int getch();
int /*<<< orphan*/ menu();
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ printw(char *, ...);
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ search_file(int);
int /*<<< orphan*/ setup_screen();
int tolower(int);
search_menu() {
  int ch, lch, type;
  setup_screen();
  move(4, 5);
  printw("Search by :");
  move(6, 8);
  add_bold('A');
  printw("uthor");
  move(7, 8);
  add_bold('P');
  printw("%s", "rinciple author only");
  move(8, 8);
  add_bold('L');
  printw("%s", "inked authors");
  move(9, 8);
  add_bold('T');
  printw("%s", "itle");
  move(10, 8);
  add_bold('J');
  printw("%s", "ournal or conference title");
  move(11, 8);
  add_bold('U');
  printw("%s", "niversity or institution (for thesis)");
  move(12, 8);
  add_bold('O');
  printw("%s", "rganisation (for proceedings etc)");
  move(13, 8);
  add_bold('Y');
  printw("%s", "ear");
  move(14, 8);
  add_bold('E');
  printw("%s", "verything (keyword for all fields)");
  move(15, 8);
  add_bold('Q');
  printw("%s", "uit and return to main menu");
  move(17, 8);
  printw("What now? ");
  refresh();
  cbreak();
  ch = getch();
  lch = tolower(ch);
  switch (lch) {
  case 'a':
    search_file(1);
    break;
  case 'p':
    search_file(2);
    break;
  case 'l':
    search_file(3);
    break;
  case 't':
    search_file(4);
    break;
  case 'j':
    search_file(5);
    break;
  case 'u':
    search_file(6);
    break;
  case 'y':
    search_file(7);
    break;
  case 'e':
    search_file(8);
    break;
  case 'o':
    search_file(9);
    break;
  case 'q':
    return (0);
    break;
  default:
    menu();
    break;
  }
}


x86 assembly (clang, -O0):
<search_menu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
xor    %eax,%eax
mov    %al,-0x19(%rbp)
call   1050 <setup_screen@plt>
mov    $0x4,%edi
mov    $0x5,%esi
call   10c0 <move@plt>
mov    -0x19(%rbp),%al
lea    0xe99(%rip),%rdi
call   1060 <printw@plt>
mov    $0x6,%edi
mov    $0x8,%esi
mov    %esi,-0x20(%rbp)
call   10c0 <move@plt>
mov    $0x41,%edi
call   10a0 <add_bold@plt>
mov    -0x19(%rbp),%al
lea    0xe7a(%rip),%rdi
call   1060 <printw@plt>
mov    -0x20(%rbp),%esi
mov    $0x7,%edi
call   10c0 <move@plt>
mov    $0x50,%edi
call   10a0 <add_bold@plt>
mov    -0x19(%rbp),%al
lea    0xe5a(%rip),%rdi
mov    %rdi,-0x28(%rbp)
lea    0xe52(%rip),%rsi
call   1060 <printw@plt>
mov    -0x20(%rbp),%esi
mov    %esi,%edi
call   10c0 <move@plt>
mov    $0x4c,%edi
call   10a0 <add_bold@plt>
mov    -0x28(%rbp),%rdi
mov    -0x19(%rbp),%al
lea    0xe40(%rip),%rsi
call   1060 <printw@plt>
mov    -0x20(%rbp),%esi
mov    $0x9,%edi
call   10c0 <move@plt>
mov    $0x54,%edi
call   10a0 <add_bold@plt>
mov    -0x28(%rbp),%rdi
mov    -0x19(%rbp),%al
lea    0xe3a(%rip),%rsi
call   1060 <printw@plt>
mov    -0x20(%rbp),%esi
mov    $0xa,%edi
call   10c0 <move@plt>
mov    $0x4a,%edi
call   10a0 <add_bold@plt>
mov    -0x28(%rbp),%rdi
mov    -0x19(%rbp),%al
lea    0xdfa(%rip),%rsi
call   1060 <printw@plt>
mov    -0x20(%rbp),%esi
mov    $0xb,%edi
call   10c0 <move@plt>
mov    $0x55,%edi
call   10a0 <add_bold@plt>
mov    -0x28(%rbp),%rdi
mov    -0x19(%rbp),%al
lea    0xdeb(%rip),%rsi
call   1060 <printw@plt>
mov    -0x20(%rbp),%esi
mov    $0xc,%edi
call   10c0 <move@plt>
mov    $0x4f,%edi
call   10a0 <add_bold@plt>
mov    -0x28(%rbp),%rdi
mov    -0x19(%rbp),%al
lea    0xde7(%rip),%rsi
call   1060 <printw@plt>
mov    -0x20(%rbp),%esi
mov    $0xd,%edi
call   10c0 <move@plt>
mov    $0x59,%edi
call   10a0 <add_bold@plt>
mov    -0x28(%rbp),%rdi
mov    -0x19(%rbp),%al
lea    0xddf(%rip),%rsi
call   1060 <printw@plt>
mov    -0x20(%rbp),%esi
mov    $0xe,%edi
call   10c0 <move@plt>
mov    $0x45,%edi
call   10a0 <add_bold@plt>
mov    -0x28(%rbp),%rdi
mov    -0x19(%rbp),%al
lea    0xdb9(%rip),%rsi
call   1060 <printw@plt>
mov    -0x20(%rbp),%esi
mov    $0xf,%edi
call   10c0 <move@plt>
mov    $0x51,%edi
call   10a0 <add_bold@plt>
mov    -0x28(%rbp),%rdi
mov    -0x19(%rbp),%al
lea    0xdb2(%rip),%rsi
call   1060 <printw@plt>
mov    -0x20(%rbp),%esi
mov    $0x11,%edi
call   10c0 <move@plt>
mov    -0x19(%rbp),%al
lea    0xdb2(%rip),%rdi
call   1060 <printw@plt>
mov    -0x19(%rbp),%al
call   1080 <refresh@plt>
mov    -0x19(%rbp),%al
call   1030 <cbreak@plt>
mov    -0x19(%rbp),%al
call   1090 <getch@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1070 <tolower@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x18,%eax
ja     1477 <search_menu+0x2d7>
mov    -0x18(%rbp),%rax
lea    0xc25(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x1,%edi
call   10b0 <search_file@plt>
jmp    147e <search_menu+0x2de>
mov    $0x2,%edi
call   10b0 <search_file@plt>
jmp    147e <search_menu+0x2de>
mov    $0x3,%edi
call   10b0 <search_file@plt>
jmp    147e <search_menu+0x2de>
mov    $0x4,%edi
call   10b0 <search_file@plt>
jmp    147e <search_menu+0x2de>
mov    $0x5,%edi
call   10b0 <search_file@plt>
jmp    147e <search_menu+0x2de>
mov    $0x6,%edi
call   10b0 <search_file@plt>
jmp    147e <search_menu+0x2de>
mov    $0x7,%edi
call   10b0 <search_file@plt>
jmp    147e <search_menu+0x2de>
mov    $0x8,%edi
call   10b0 <search_file@plt>
jmp    147e <search_menu+0x2de>
mov    $0x9,%edi
call   10b0 <search_file@plt>
jmp    147e <search_menu+0x2de>
movl   $0x0,-0x4(%rbp)
jmp    147e <search_menu+0x2de>
mov    $0x0,%al
call   1040 <menu@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<search_menu>:
push   %rbx
xor    %eax,%eax
call   1050 <setup_screen@plt>
mov    $0x4,%edi
mov    $0x5,%esi
call   10c0 <move@plt>
lea    0xea6(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x6,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
mov    $0x41,%edi
call   10a0 <add_bold@plt>
lea    0xe8b(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x7,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
mov    $0x50,%edi
call   10a0 <add_bold@plt>
lea    0xe6a(%rip),%rbx
lea    0xe66(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x8,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
mov    $0x4c,%edi
call   10a0 <add_bold@plt>
lea    0xe51(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x9,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
mov    $0x54,%edi
call   10a0 <add_bold@plt>
lea    0xe4b(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0xa,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
mov    $0x4a,%edi
call   10a0 <add_bold@plt>
lea    0xe0b(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0xb,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
mov    $0x55,%edi
call   10a0 <add_bold@plt>
lea    0xdfc(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0xc,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
mov    $0x4f,%edi
call   10a0 <add_bold@plt>
lea    0xdf8(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0xd,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
mov    $0x59,%edi
call   10a0 <add_bold@plt>
lea    0xdf0(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0xe,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
mov    $0x45,%edi
call   10a0 <add_bold@plt>
lea    0xdca(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0xf,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
mov    $0x51,%edi
call   10a0 <add_bold@plt>
lea    0xdc3(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printw@plt>
mov    $0x11,%edi
mov    $0x8,%esi
call   10c0 <move@plt>
lea    0xdbf(%rip),%rdi
xor    %eax,%eax
call   1060 <printw@plt>
xor    %eax,%eax
call   1080 <refresh@plt>
xor    %eax,%eax
call   1030 <cbreak@plt>
xor    %eax,%eax
call   1090 <getch@plt>
mov    %eax,%edi
call   1070 <tolower@plt>
add    $0xffffff9f,%eax
cmp    $0x18,%eax
ja     13c5 <search_menu+0x225>
lea    0xc4b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x1,%edi
jmp    1404 <search_menu+0x264>
xor    %eax,%eax
call   1040 <menu@plt>
jmp    1409 <search_menu+0x269>
mov    $0x8,%edi
jmp    1404 <search_menu+0x264>
mov    $0x5,%edi
jmp    1404 <search_menu+0x264>
mov    $0x3,%edi
jmp    1404 <search_menu+0x264>
mov    $0x9,%edi
jmp    1404 <search_menu+0x264>
mov    $0x2,%edi
jmp    1404 <search_menu+0x264>
mov    $0x4,%edi
jmp    1404 <search_menu+0x264>
mov    $0x6,%edi
jmp    1404 <search_menu+0x264>
mov    $0x7,%edi
call   10b0 <search_file@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"Search by :\00"
@.str.1 = [6 x i8] c"uthor\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [21 x i8] c"rinciple author only\00"
@.str.4 = [14 x i8] c"inked authors\00"
@.str.5 = [5 x i8] c"itle\00"
@.str.6 = [27 x i8] c"ournal or conference title\00"
@.str.7 = [38 x i8] c"niversity or institution (for thesis)\00"
@.str.8 = [34 x i8] c"rganisation (for proceedings etc)\00"
@.str.9 = [4 x i8] c"ear\00"
@.str.10 = [35 x i8] c"verything (keyword for all fields)\00"
@.str.11 = [28 x i8] c"uit and return to main menu\00"
@.str.12 = [11 x i8] c"What now? \00"
define i32 @search_menu() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = call i32 (...) @setup_screen()
%6 = call i32 @move(i32 4, i32 5)
%7 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @move(i32 6, i32 8)
%9 = call i32 @add_bold(i8 signext 65)
%10 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @move(i32 7, i32 8)
%12 = call i32 @add_bold(i8 signext 80)
%13 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 @move(i32 8, i32 8)
%15 = call i32 @add_bold(i8 signext 76)
%16 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 @move(i32 9, i32 8)
%18 = call i32 @add_bold(i8 signext 84)
%19 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32 @move(i32 10, i32 8)
%21 = call i32 @add_bold(i8 signext 74)
%22 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%23 = call i32 @move(i32 11, i32 8)
%24 = call i32 @add_bold(i8 signext 85)
%25 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%26 = call i32 @move(i32 12, i32 8)
%27 = call i32 @add_bold(i8 signext 79)
%28 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%29 = call i32 @move(i32 13, i32 8)
%30 = call i32 @add_bold(i8 signext 89)
%31 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%32 = call i32 @move(i32 14, i32 8)
%33 = call i32 @add_bold(i8 signext 69)
%34 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%35 = call i32 @move(i32 15, i32 8)
%36 = call i32 @add_bold(i8 signext 81)
%37 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%38 = call i32 @move(i32 17, i32 8)
%39 = call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
%40 = call i32 (...) @refresh()
%41 = call i32 (...) @cbreak()
%42 = call i32 (...) @getch()
store i32 %42, i32* %2
%43 = load i32, i32* %2
%44 = call i32 @tolower(i32 %43)
store i32 %44, i32* %3
%45 = load i32, i32* %3
switch i32 %45, label %65 [
i32 97, label %46
i32 112, label %48
i32 108, label %50
i32 116, label %52
i32 106, label %54
i32 117, label %56
i32 121, label %58
i32 101, label %60
i32 111, label %62
i32 113, label %64
]
46: ; preds = %0
%47 = call i32 @search_file(i32 1)
br label %67
48: ; preds = %0
%49 = call i32 @search_file(i32 2)
br label %67
50: ; preds = %0
%51 = call i32 @search_file(i32 3)
br label %67
52: ; preds = %0
%53 = call i32 @search_file(i32 4)
br label %67
54: ; preds = %0
%55 = call i32 @search_file(i32 5)
br label %67
56: ; preds = %0
%57 = call i32 @search_file(i32 6)
br label %67
58: ; preds = %0
%59 = call i32 @search_file(i32 7)
br label %67
60: ; preds = %0
%61 = call i32 @search_file(i32 8)
br label %67
62: ; preds = %0
%63 = call i32 @search_file(i32 9)
br label %67
64: ; preds = %0
store i32 0, i32* %1
br label %67
65: ; preds = %0
%66 = call i32 (...) @menu()
br label %67
67: ; preds = %64, %65, %62, %60, %58, %56, %54, %52, %50, %48, %46
%68 = load i32, i32* %1
ret i32 %68
}

LLVM IR (-O2):
@.str = [12 x i8] c"Search by :\00"
@.str.1 = [6 x i8] c"uthor\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [21 x i8] c"rinciple author only\00"
@.str.4 = [14 x i8] c"inked authors\00"
@.str.5 = [5 x i8] c"itle\00"
@.str.6 = [27 x i8] c"ournal or conference title\00"
@.str.7 = [38 x i8] c"niversity or institution (for thesis)\00"
@.str.8 = [34 x i8] c"rganisation (for proceedings etc)\00"
@.str.9 = [4 x i8] c"ear\00"
@.str.10 = [35 x i8] c"verything (keyword for all fields)\00"
@.str.11 = [28 x i8] c"uit and return to main menu\00"
@.str.12 = [11 x i8] c"What now? \00"
define i32 @search_menu() {
%1 = tail call i32 (...) @setup_screen()
%2 = tail call i32 @move(i32 4, i32 5)
%3 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @move(i32 6, i32 8)
%5 = tail call i32 @add_bold(i8 signext 65)
%6 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @move(i32 7, i32 8)
%8 = tail call i32 @add_bold(i8 signext 80)
%9 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%10 = tail call i32 @move(i32 8, i32 8)
%11 = tail call i32 @add_bold(i8 signext 76)
%12 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i32 @move(i32 9, i32 8)
%14 = tail call i32 @add_bold(i8 signext 84)
%15 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%16 = tail call i32 @move(i32 10, i32 8)
%17 = tail call i32 @add_bold(i8 signext 74)
%18 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%19 = tail call i32 @move(i32 11, i32 8)
%20 = tail call i32 @add_bold(i8 signext 85)
%21 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%22 = tail call i32 @move(i32 12, i32 8)
%23 = tail call i32 @add_bold(i8 signext 79)
%24 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%25 = tail call i32 @move(i32 13, i32 8)
%26 = tail call i32 @add_bold(i8 signext 89)
%27 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%28 = tail call i32 @move(i32 14, i32 8)
%29 = tail call i32 @add_bold(i8 signext 69)
%30 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%31 = tail call i32 @move(i32 15, i32 8)
%32 = tail call i32 @add_bold(i8 signext 81)
%33 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%34 = tail call i32 @move(i32 17, i32 8)
%35 = tail call i32 (i8*, ...) @printw(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
%36 = tail call i32 (...) @refresh()
%37 = tail call i32 (...) @cbreak()
%38 = tail call i32 (...) @getch()
%39 = tail call i32 @tolower(i32 %38)
switch i32 %39, label %58 [
i32 97, label %40
i32 112, label %42
i32 108, label %44
i32 116, label %46
i32 106, label %48
i32 117, label %50
i32 121, label %52
i32 101, label %54
i32 111, label %56
i32 113, label %60
]
40: ; preds = %0
%41 = tail call i32 @search_file(i32 1)
br label %60
42: ; preds = %0
%43 = tail call i32 @search_file(i32 2)
br label %60
44: ; preds = %0
%45 = tail call i32 @search_file(i32 3)
br label %60
46: ; preds = %0
%47 = tail call i32 @search_file(i32 4)
br label %60
48: ; preds = %0
%49 = tail call i32 @search_file(i32 5)
br label %60
50: ; preds = %0
%51 = tail call i32 @search_file(i32 6)
br label %60
52: ; preds = %0
%53 = tail call i32 @search_file(i32 7)
br label %60
54: ; preds = %0
%55 = tail call i32 @search_file(i32 8)
br label %60
56: ; preds = %0
%57 = tail call i32 @search_file(i32 9)
br label %60
58: ; preds = %0
%59 = tail call i32 (...) @menu()
br label %60
60: ; preds = %40, %42, %44, %46, %48, %50, %52, %54, %56, %58, %0
ret i32 0
}