#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*/ fget(char *, int);
int fgetn();
int /*<<< orphan*/ idevice_id();
int /*<<< orphan*/ ideviceactivation();
int /*<<< orphan*/ idevicebackup();
int /*<<< orphan*/ idevicecrashreport();
int /*<<< orphan*/ idevicedate();
int /*<<< orphan*/ idevicedebug();
int /*<<< orphan*/ idevicedebugserverproxy();
int /*<<< orphan*/ idevicediagnostics();
int /*<<< orphan*/ ideviceenterrecovery();
int /*<<< orphan*/ ideviceimagemounter();
int /*<<< orphan*/ ideviceinfo();
int /*<<< orphan*/ ideviceinstaller();
int /*<<< orphan*/ idevicename();
int /*<<< orphan*/ idevicenotificationproxy();
int /*<<< orphan*/ idevicepair();
int /*<<< orphan*/ ideviceprovision();
int /*<<< orphan*/ idevicerestore();
int /*<<< orphan*/ idevicescreenshot();
int /*<<< orphan*/ idevicesyslog();
int /*<<< orphan*/ irecovery();
int /*<<< orphan*/ printf(char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ system(char *);
int main(int argc, char const *argv[]) {
  int choice;
  char option[10];
  while (1) {
    system("clear");
    printf("Choose command\n");
    printf(" 1) ideviceactivation\n");
    printf(" 2) idevicebackup\n");
    printf(" 3) idevicecrashreport\n");
    printf(" 4) idevicedate\n");
    printf(" 5) idevicedebug\n");
    printf(" 6) idevicedebugserverproxy\n");
    printf(" 7) idevicediagnostics\n");
    printf(" 8) ideviceenterrecovery\n");
    printf(" 9) idevice_id \n");
    printf("10) ideviceimagemounter\n");
    printf("11) ideviceinfo\n");
    printf("12) ideviceinstaller\n");
    printf("13) idevicename\n");
    printf("14) idevicenotificationproxy\n");
    printf("15) idevicepair\n");
    printf("16) ideviceprovision\n");
    printf("17) idevicerestore\n");
    printf("18) idevicescreenshot\n");
    printf("19) idevicesyslog\n");
    printf("20) iRecovery\n");
    printf("Command : ");
    choice = fgetn();
    switch (choice) {
    case 1:
      ideviceactivation();
      break;
    case 2:
      idevicebackup();
      break;
    case 3:
      idevicecrashreport();
      break;
    case 4:
      idevicedate();
      break;
    case 5:
      idevicedebug();
      break;
    case 6:
      idevicedebugserverproxy();
      break;
    case 7:
      idevicediagnostics();
      break;
    case 8:
      ideviceenterrecovery();
      break;
    case 9:
      idevice_id();
      break;
    case 10:
      ideviceimagemounter();
      break;
    case 11:
      ideviceinfo();
      break;
    case 12:
      ideviceinstaller();
      break;
    case 13:
      idevicename();
      break;
    case 14:
      idevicenotificationproxy();
      break;
    case 15:
      idevicepair();
      break;
    case 16:
      ideviceprovision();
      break;
    case 17:
      idevicerestore();
      break;
    case 18:
      idevicescreenshot();
      break;
    case 19:
      idevicesyslog();
      break;
    case 20:
      irecovery();
      break;
    default:
      printf("\nBad option :(\n");
      break;
    }
    printf("\nContinue ?\n1) YES\n2) NO\n");
    fget(option, 10);
    if (strcmp(option, "YES") == 0 || strcmp(option, "yes") == 0 ||
        strcmp(option, "1") == 0) {
    } else if (strcmp(option, "NO") == 0 || strcmp(option, "no") == 0 ||
               strcmp(option, "2") == 0) {
      return 0;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xda3(%rip),%rdi
call   1070 <system@plt>
lea    0xd9d(%rip),%rdi
call   1080 <printf@plt>
lea    0xda1(%rip),%rdi
call   1080 <printf@plt>
lea    0xdac(%rip),%rdi
call   1080 <printf@plt>
lea    0xdb3(%rip),%rdi
call   1080 <printf@plt>
lea    0xdbf(%rip),%rdi
call   1080 <printf@plt>
lea    0xdc4(%rip),%rdi
call   1080 <printf@plt>
lea    0xdca(%rip),%rdi
call   1080 <printf@plt>
lea    0xddb(%rip),%rdi
call   1080 <printf@plt>
lea    0xde7(%rip),%rdi
call   1080 <printf@plt>
lea    0xdf5(%rip),%rdi
call   1080 <printf@plt>
lea    0xdfa(%rip),%rdi
call   1080 <printf@plt>
lea    0xe07(%rip),%rdi
call   1080 <printf@plt>
lea    0xe0c(%rip),%rdi
call   1080 <printf@plt>
lea    0xe16(%rip),%rdi
call   1080 <printf@plt>
lea    0xe1b(%rip),%rdi
call   1080 <printf@plt>
lea    0xe2d(%rip),%rdi
call   1080 <printf@plt>
lea    0xe32(%rip),%rdi
call   1080 <printf@plt>
lea    0xe3c(%rip),%rdi
call   1080 <printf@plt>
lea    0xe44(%rip),%rdi
call   1080 <printf@plt>
lea    0xe4f(%rip),%rdi
call   1080 <printf@plt>
lea    0xe56(%rip),%rdi
call   1080 <printf@plt>
lea    0xe59(%rip),%rdi
call   1080 <printf@plt>
xor    %eax,%eax
call   1120 <fgetn@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x13,%eax
ja     14dd <main+0x24d>
mov    -0x28(%rbp),%rax
lea    0xc1c(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   10d0 <ideviceactivation@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   11a0 <idevicebackup@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1090 <idevicecrashreport@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   11b0 <idevicedate@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1030 <idevicedebug@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1190 <idevicedebugserverproxy@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1170 <idevicediagnostics@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1040 <ideviceenterrecovery@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   10c0 <idevice_id@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   10b0 <ideviceimagemounter@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1060 <ideviceinfo@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   10a0 <ideviceinstaller@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1150 <idevicename@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1110 <idevicenotificationproxy@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   10e0 <idevicepair@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1050 <ideviceprovision@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1160 <idevicerestore@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1180 <idevicescreenshot@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1130 <idevicesyslog@plt>
jmp    14e9 <main+0x259>
mov    $0x0,%al
call   1140 <irecovery@plt>
jmp    14e9 <main+0x259>
lea    0xd35(%rip),%rdi
call   1080 <printf@plt>
lea    0xd39(%rip),%rdi
call   1080 <printf@plt>
lea    -0x1e(%rbp),%rdi
mov    $0xa,%esi
call   10f0 <fget@plt>
lea    -0x1e(%rbp),%rdi
lea    0xd35(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
je     1551 <main+0x2c1>
lea    -0x1e(%rbp),%rdi
lea    0xd1f(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
je     1551 <main+0x2c1>
lea    -0x1e(%rbp),%rdi
lea    0xd09(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    1556 <main+0x2c6>
jmp    15b1 <main+0x321>
lea    -0x1e(%rbp),%rdi
lea    0xcec(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
je     15a4 <main+0x314>
lea    -0x1e(%rbp),%rdi
lea    0xcd5(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
je     15a4 <main+0x314>
lea    -0x1e(%rbp),%rdi
lea    0xcbe(%rip),%rsi
call   1100 <strcmp@plt>
cmp    $0x0,%rax
jne    15ac <main+0x31c>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret
jmp    15b1 <main+0x321>
jmp    12a6 <main+0x16>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xf50(%rip),%r13
lea    0xd9a(%rip),%rbx
lea    0xf50(%rip),%rbp
lea    0xe(%rsp),%r14
lea    0xd92(%rip),%r15
lea    0xd2a(%rip),%r12
cs nopw 0x0(%rax,%rax,1)
lea    0xd69(%rip),%rdi
call   1080 <system@plt>
lea    0xd7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xd80(%rip),%rdi
call   1030 <puts@plt>
lea    0xd8a(%rip),%rdi
call   1030 <puts@plt>
lea    0xd90(%rip),%rdi
call   1030 <puts@plt>
lea    0xd9b(%rip),%rdi
call   1030 <puts@plt>
lea    0xd9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xda4(%rip),%rdi
call   1030 <puts@plt>
lea    0xdb4(%rip),%rdi
call   1030 <puts@plt>
lea    0xdbf(%rip),%rdi
call   1030 <puts@plt>
lea    0xdcc(%rip),%rdi
call   1030 <puts@plt>
lea    0xdd0(%rip),%rdi
call   1030 <puts@plt>
lea    0xddc(%rip),%rdi
call   1030 <puts@plt>
lea    0xde0(%rip),%rdi
call   1030 <puts@plt>
lea    0xde9(%rip),%rdi
call   1030 <puts@plt>
lea    0xded(%rip),%rdi
call   1030 <puts@plt>
lea    0xdfe(%rip),%rdi
call   1030 <puts@plt>
lea    0xe02(%rip),%rdi
call   1030 <puts@plt>
lea    0xe0b(%rip),%rdi
call   1030 <puts@plt>
lea    0xe12(%rip),%rdi
call   1030 <puts@plt>
lea    0xe1c(%rip),%rdi
call   1030 <puts@plt>
mov    %r13,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1090 <printf@plt>
xor    %eax,%eax
call   1130 <fgetn@plt>
add    $0xffffffff,%eax
cmp    $0x13,%eax
ja     1410 <main+0x170>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
xor    %eax,%eax
call   10e0 <ideviceactivation@plt>
jmp    14e0 <main+0x240>
lea    0xe15(%rip),%rdi
call   1030 <puts@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   11b0 <idevicebackup@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   10a0 <idevicecrashreport@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   11c0 <idevicedate@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1040 <idevicedebug@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   11a0 <idevicedebugserverproxy@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1180 <idevicediagnostics@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1050 <ideviceenterrecovery@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   10d0 <idevice_id@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   10c0 <ideviceimagemounter@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1070 <ideviceinfo@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   10b0 <ideviceinstaller@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1160 <idevicename@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1120 <idevicenotificationproxy@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   10f0 <idevicepair@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1060 <ideviceprovision@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1170 <idevicerestore@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1190 <idevicescreenshot@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1140 <idevicesyslog@plt>
jmp    14e0 <main+0x240>
xor    %eax,%eax
call   1150 <irecovery@plt>
nopl   0x0(%rax)
mov    %rbp,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    $0xa,%esi
call   1100 <fget@plt>
mov    %r14,%rdi
mov    %r15,%rsi
call   1110 <strcmp@plt>
test   %rax,%rax
je     12e0 <main+0x40>
mov    %r14,%rdi
lea    0xb52(%rip),%rsi
call   1110 <strcmp@plt>
test   %rax,%rax
je     12e0 <main+0x40>
mov    %r14,%rdi
lea    0xb3e(%rip),%rsi
call   1110 <strcmp@plt>
test   %rax,%rax
je     12e0 <main+0x40>
mov    %r14,%rdi
lea    0xce6(%rip),%rsi
call   1110 <strcmp@plt>
test   %rax,%rax
je     1579 <main+0x2d9>
mov    %r14,%rdi
lea    0xb14(%rip),%rsi
call   1110 <strcmp@plt>
test   %rax,%rax
je     1579 <main+0x2d9>
mov    %r14,%rdi
lea    0xb03(%rip),%rsi
call   1110 <strcmp@plt>
test   %rax,%rax
jne    12e0 <main+0x40>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [16 x i8] c"Choose command\0A\00"
@.str.2 = [23 x i8] c" 1) ideviceactivation\0A\00"
@.str.3 = [19 x i8] c" 2) idevicebackup\0A\00"
@.str.4 = [24 x i8] c" 3) idevicecrashreport\0A\00"
@.str.5 = [17 x i8] c" 4) idevicedate\0A\00"
@.str.6 = [18 x i8] c" 5) idevicedebug\0A\00"
@.str.7 = [29 x i8] c" 6) idevicedebugserverproxy\0A\00"
@.str.8 = [24 x i8] c" 7) idevicediagnostics\0A\00"
@.str.9 = [26 x i8] c" 8) ideviceenterrecovery\0A\00"
@.str.10 = [17 x i8] c" 9) idevice_id \0A\00"
@.str.11 = [25 x i8] c"10) ideviceimagemounter\0A\00"
@.str.12 = [17 x i8] c"11) ideviceinfo\0A\00"
@.str.13 = [22 x i8] c"12) ideviceinstaller\0A\00"
@.str.14 = [17 x i8] c"13) idevicename\0A\00"
@.str.15 = [30 x i8] c"14) idevicenotificationproxy\0A\00"
@.str.16 = [17 x i8] c"15) idevicepair\0A\00"
@.str.17 = [22 x i8] c"16) ideviceprovision\0A\00"
@.str.18 = [20 x i8] c"17) idevicerestore\0A\00"
@.str.19 = [23 x i8] c"18) idevicescreenshot\0A\00"
@.str.20 = [19 x i8] c"19) idevicesyslog\0A\00"
@.str.21 = [15 x i8] c"20) iRecovery\0A\00"
@.str.22 = [11 x i8] c"Command : \00"
@.str.23 = [16 x i8] c"\0ABad option :(\0A\00"
@.str.24 = [26 x i8] c"\0AContinue ?\0A1) YES\0A2) NO\0A\00"
@.str.25 = [4 x i8] c"YES\00"
@.str.26 = [4 x i8] c"yes\00"
@.str.27 = [2 x i8] c"1\00"
@.str.28 = [3 x i8] c"NO\00"
@.str.29 = [3 x i8] c"no\00"
@.str.30 = [2 x i8] c"2\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [10 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %8
8: ; preds = %2, %106
%9 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.20, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i64 0, i64 0))
%32 = call i32 (...) @fgetn()
store i32 %32, i32* %6
%33 = load i32, i32* %6
switch i32 %33, label %74 [
i32 1, label %34
i32 2, label %36
i32 3, label %38
i32 4, label %40
i32 5, label %42
i32 6, label %44
i32 7, label %46
i32 8, label %48
i32 9, label %50
i32 10, label %52
i32 11, label %54
i32 12, label %56
i32 13, label %58
i32 14, label %60
i32 15, label %62
i32 16, label %64
i32 17, label %66
i32 18, label %68
i32 19, label %70
i32 20, label %72
]
34: ; preds = %8
%35 = call i32 (...) @ideviceactivation()
br label %76
36: ; preds = %8
%37 = call i32 (...) @idevicebackup()
br label %76
38: ; preds = %8
%39 = call i32 (...) @idevicecrashreport()
br label %76
40: ; preds = %8
%41 = call i32 (...) @idevicedate()
br label %76
42: ; preds = %8
%43 = call i32 (...) @idevicedebug()
br label %76
44: ; preds = %8
%45 = call i32 (...) @idevicedebugserverproxy()
br label %76
46: ; preds = %8
%47 = call i32 (...) @idevicediagnostics()
br label %76
48: ; preds = %8
%49 = call i32 (...) @ideviceenterrecovery()
br label %76
50: ; preds = %8
%51 = call i32 (...) @idevice_id()
br label %76
52: ; preds = %8
%53 = call i32 (...) @ideviceimagemounter()
br label %76
54: ; preds = %8
%55 = call i32 (...) @ideviceinfo()
br label %76
56: ; preds = %8
%57 = call i32 (...) @ideviceinstaller()
br label %76
58: ; preds = %8
%59 = call i32 (...) @idevicename()
br label %76
60: ; preds = %8
%61 = call i32 (...) @idevicenotificationproxy()
br label %76
62: ; preds = %8
%63 = call i32 (...) @idevicepair()
br label %76
64: ; preds = %8
%65 = call i32 (...) @ideviceprovision()
br label %76
66: ; preds = %8
%67 = call i32 (...) @idevicerestore()
br label %76
68: ; preds = %8
%69 = call i32 (...) @idevicescreenshot()
br label %76
70: ; preds = %8
%71 = call i32 (...) @idevicesyslog()
br label %76
72: ; preds = %8
%73 = call i32 (...) @irecovery()
br label %76
74: ; preds = %8
%75 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0))
br label %76
76: ; preds = %74, %72, %70, %68, %66, %64, %62, %60, %58, %56, %54, %52, %50, %48, %46, %44, %42, %40, %38, %36, %34
%77 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.24, i64 0, i64 0))
%78 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%79 = call i32 @fget(i8* %78, i32 10)
%80 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%81 = call i64 @strcmp(i8* %80, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %91, label %83
83: ; preds = %76
%84 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %91, label %87
87: ; preds = %83
%88 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %87, %83, %76
br label %106
92: ; preds = %87
%93 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%94 = call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %104, label %96
96: ; preds = %92
%97 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%98 = call i64 @strcmp(i8* %97, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.29, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %104, label %100
100: ; preds = %96
%101 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%102 = call i64 @strcmp(i8* %101, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i64 0, i64 0))
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %105
104: ; preds = %100, %96, %92
ret i32 0
105: ; preds = %100
br label %106
106: ; preds = %105, %91
br label %8
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.22 = [11 x i8] c"Command : \00"
@.str.25 = [4 x i8] c"YES\00"
@.str.26 = [4 x i8] c"yes\00"
@.str.27 = [2 x i8] c"1\00"
@.str.28 = [3 x i8] c"NO\00"
@.str.29 = [3 x i8] c"no\00"
@.str.30 = [2 x i8] c"2\00"
@str = [15 x i8] c"Choose command\00"
@str.31 = [22 x i8] c" 1) ideviceactivation\00"
@str.32 = [18 x i8] c" 2) idevicebackup\00"
@str.33 = [23 x i8] c" 3) idevicecrashreport\00"
@str.34 = [16 x i8] c" 4) idevicedate\00"
@str.35 = [17 x i8] c" 5) idevicedebug\00"
@str.36 = [28 x i8] c" 6) idevicedebugserverproxy\00"
@str.37 = [23 x i8] c" 7) idevicediagnostics\00"
@str.38 = [25 x i8] c" 8) ideviceenterrecovery\00"
@str.39 = [16 x i8] c" 9) idevice_id \00"
@str.40 = [24 x i8] c"10) ideviceimagemounter\00"
@str.41 = [16 x i8] c"11) ideviceinfo\00"
@str.42 = [21 x i8] c"12) ideviceinstaller\00"
@str.43 = [16 x i8] c"13) idevicename\00"
@str.44 = [29 x i8] c"14) idevicenotificationproxy\00"
@str.45 = [16 x i8] c"15) idevicepair\00"
@str.46 = [21 x i8] c"16) ideviceprovision\00"
@str.47 = [19 x i8] c"17) idevicerestore\00"
@str.48 = [22 x i8] c"18) idevicescreenshot\00"
@str.49 = [18 x i8] c"19) idevicesyslog\00"
@str.50 = [14 x i8] c"20) iRecovery\00"
@str.51 = [25 x i8] c"\0AContinue ?\0A1) YES\0A2) NO\00"
@str.52 = [15 x i8] c"\0ABad option :(\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [10 x i8]
%4 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
br label %5
5: ; preds = %92, %2
%6 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.31, i64 0, i64 0))
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.32, i64 0, i64 0))
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.33, i64 0, i64 0))
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.34, i64 0, i64 0))
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.35, i64 0, i64 0))
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.36, i64 0, i64 0))
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.37, i64 0, i64 0))
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.38, i64 0, i64 0))
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.39, i64 0, i64 0))
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.40, i64 0, i64 0))
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.41, i64 0, i64 0))
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.42, i64 0, i64 0))
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.43, i64 0, i64 0))
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.44, i64 0, i64 0))
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.45, i64 0, i64 0))
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.46, i64 0, i64 0))
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.47, i64 0, i64 0))
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.48, i64 0, i64 0))
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.49, i64 0, i64 0))
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.50, i64 0, i64 0))
%28 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i64 0, i64 0))
%29 = call i32 (...) @fgetn()
switch i32 %29, label %70 [
i32 1, label %30
i32 2, label %32
i32 3, label %34
i32 4, label %36
i32 5, label %38
i32 6, label %40
i32 7, label %42
i32 8, label %44
i32 9, label %46
i32 10, label %48
i32 11, label %50
i32 12, label %52
i32 13, label %54
i32 14, label %56
i32 15, label %58
i32 16, label %60
i32 17, label %62
i32 18, label %64
i32 19, label %66
i32 20, label %68
]
30: ; preds = %5
%31 = call i32 (...) @ideviceactivation()
br label %72
32: ; preds = %5
%33 = call i32 (...) @idevicebackup()
br label %72
34: ; preds = %5
%35 = call i32 (...) @idevicecrashreport()
br label %72
36: ; preds = %5
%37 = call i32 (...) @idevicedate()
br label %72
38: ; preds = %5
%39 = call i32 (...) @idevicedebug()
br label %72
40: ; preds = %5
%41 = call i32 (...) @idevicedebugserverproxy()
br label %72
42: ; preds = %5
%43 = call i32 (...) @idevicediagnostics()
br label %72
44: ; preds = %5
%45 = call i32 (...) @ideviceenterrecovery()
br label %72
46: ; preds = %5
%47 = call i32 (...) @idevice_id()
br label %72
48: ; preds = %5
%49 = call i32 (...) @ideviceimagemounter()
br label %72
50: ; preds = %5
%51 = call i32 (...) @ideviceinfo()
br label %72
52: ; preds = %5
%53 = call i32 (...) @ideviceinstaller()
br label %72
54: ; preds = %5
%55 = call i32 (...) @idevicename()
br label %72
56: ; preds = %5
%57 = call i32 (...) @idevicenotificationproxy()
br label %72
58: ; preds = %5
%59 = call i32 (...) @idevicepair()
br label %72
60: ; preds = %5
%61 = call i32 (...) @ideviceprovision()
br label %72
62: ; preds = %5
%63 = call i32 (...) @idevicerestore()
br label %72
64: ; preds = %5
%65 = call i32 (...) @idevicescreenshot()
br label %72
66: ; preds = %5
%67 = call i32 (...) @idevicesyslog()
br label %72
68: ; preds = %5
%69 = call i32 (...) @irecovery()
br label %72
70: ; preds = %5
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.52, i64 0, i64 0))
br label %72
72: ; preds = %70, %68, %66, %64, %62, %60, %58, %56, %54, %52, %50, %48, %46, %44, %42, %40, %38, %36, %34, %32, %30
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.51, i64 0, i64 0))
%74 = call i32 @fget(i8* %4, i32 10)
%75 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %92, label %77
77: ; preds = %72
%78 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %92, label %80
80: ; preds = %77
%81 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %92, label %83
83: ; preds = %80
%84 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %93, label %86
86: ; preds = %83
%87 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.29, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
br i1 %88, label %93, label %89
89: ; preds = %86
%90 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.30, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %93, label %92
92: ; preds = %89, %72, %77, %80
br label %5
93: ; preds = %89, %86, %83
ret i32 0
}