#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 EXIT_SUCCESS;
int /*<<< orphan*/ fget(char *, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ system(char *);
int ideviceinstaller() {
  char apps[120];
  char choice[80];
  char appid[80];
  char path[120];
  char buildCommand[1024];
  system("clear");
  printf("1) List apps\n");
  printf("2) Install archive\n");
  printf("3) Uninstall APPID\n");
  printf("4) Upgrade archive\n");
  printf("5) List archive\n");
  printf("6) Archive APPID\n");
  printf("7) Restore APPID\n");
  printf("8) Remove APPID\n");
  fget(choice, 80);
  if (strcmp(choice, "list") == 0 || strcmp(choice, "1") == 0) {
    printf("1) Mobile apps\n");
    printf("2) System apps\n");
    printf("3) All apps\n");
    fget(apps, 120);
    if (strcmp(apps, "mobile") == 0 || strcmp(apps, "1") == 0) {
      system("ideviceinstaller -l -o list_user");
    }
    if (strcmp(apps, "system") == 0 || strcmp(apps, "2") == 0) {
      system("ideviceinstaller -l -o list_system");
    }
    if (strcmp(apps, "all") == 0 || strcmp(apps, "3") == 0) {
      system("ideviceinstaller -l -o list_all");
    }
  }
  if (strcmp(choice, "install") == 0 || strcmp(choice, "2") == 0) {
    printf("Enter the directory from the archive : ");
    fget(path, 120);
    sprintf(buildCommand, "ideviceinstaller -i %s", path);
    system(buildCommand);
  }
  if (strcmp(choice, "uninstall") == 0 || strcmp(choice, "3") == 0) {
    printf("Enter APPID to uninstall : ");
    fget(appid, 80);
    sprintf(buildCommand, "ideviceinstaller -U %s", appid);
    system(buildCommand);
  }
  if (strcmp(choice, "upgrade") == 0 || strcmp(choice, "4") == 0) {
    printf("Enter archive to upgrade : ");
    fget(appid, 80);
    sprintf(buildCommand, "ideviceinstaller -g %s", appid);
    system(buildCommand);
  }
  if (strcmp(choice, "list archive") == 0 || strcmp(choice, "5") == 0) {
    system("ideviceinstaller -L");
  }
  if (strcmp(choice, "archive") == 0 || strcmp(choice, "6") == 0) {
    printf("This command will uninstall the package after making an archive, "
           "enter the APPID : ");
    fget(appid, 80);
    sprintf(buildCommand, "ideviceinstaller -a uninstall %s", appid);
    system(buildCommand);
  }
  if (strcmp(choice, "restore") == 0 || strcmp(choice, "7") == 0) {
    printf("Restore archived app specified by APPID, enter APPID : ");
    fget(appid, 80);
    sprintf(buildCommand, "ideviceinstaller -r %s", appid);
    system(buildCommand);
  }
  if (strcmp(choice, "remove") == 0 || strcmp(choice, "8") == 0) {
    printf("Remove app archive specified by APPID, enter the APPID : ");
    fget(appid, 80);
    sprintf(buildCommand, "ideviceinstaller -R %s", appid);
    system(buildCommand);
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<ideviceinstaller>:
push   %rbp
mov    %rsp,%rbp
sub    $0x5a0,%rsp
lea    0xe9e(%rip),%rdi
call   1030 <system@plt>
lea    0xe98(%rip),%rdi
call   1040 <printf@plt>
lea    0xe9a(%rip),%rdi
call   1040 <printf@plt>
lea    0xea2(%rip),%rdi
call   1040 <printf@plt>
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb2(%rip),%rdi
call   1040 <printf@plt>
lea    0xeb7(%rip),%rdi
call   1040 <printf@plt>
lea    0xebd(%rip),%rdi
call   1040 <printf@plt>
lea    0xec3(%rip),%rdi
call   1040 <printf@plt>
lea    -0xd0(%rbp),%rdi
mov    $0x50,%esi
call   1050 <fget@plt>
lea    -0xd0(%rbp),%rdi
lea    0xeb0(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1212 <ideviceinstaller+0xc2>
lea    -0xd0(%rbp),%rdi
lea    0xe98(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1309 <ideviceinstaller+0x1b9>
lea    0xe84(%rip),%rdi
call   1040 <printf@plt>
lea    0xe88(%rip),%rdi
call   1040 <printf@plt>
lea    0xe8c(%rip),%rdi
call   1040 <printf@plt>
lea    -0x80(%rbp),%rdi
mov    $0x78,%esi
call   1050 <fget@plt>
lea    -0x80(%rbp),%rdi
lea    0xe7b(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1278 <ideviceinstaller+0x128>
lea    -0x80(%rbp),%rdi
lea    0xe32(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1284 <ideviceinstaller+0x134>
lea    0xe52(%rip),%rdi
call   1030 <system@plt>
lea    -0x80(%rbp),%rdi
lea    0xe81(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     12b8 <ideviceinstaller+0x168>
lea    -0x80(%rbp),%rdi
lea    0xe49(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12c4 <ideviceinstaller+0x174>
lea    0xe35(%rip),%rdi
call   1030 <system@plt>
lea    -0x80(%rbp),%rdi
lea    0xe66(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     12f8 <ideviceinstaller+0x1a8>
lea    -0x80(%rbp),%rdi
lea    0xe2e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1304 <ideviceinstaller+0x1b4>
lea    0xe1a(%rip),%rdi
call   1030 <system@plt>
jmp    1309 <ideviceinstaller+0x1b9>
lea    -0xd0(%rbp),%rdi
lea    0xe63(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1343 <ideviceinstaller+0x1f3>
lea    -0xd0(%rbp),%rdi
lea    0xdbe(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1386 <ideviceinstaller+0x236>
lea    0xdef(%rip),%rdi
call   1040 <printf@plt>
lea    -0x1a0(%rbp),%rdi
mov    $0x78,%esi
call   1050 <fget@plt>
lea    -0x5a0(%rbp),%rdi
lea    -0x1a0(%rbp),%rdx
lea    0xdec(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x5a0(%rbp),%rdi
call   1030 <system@plt>
lea    -0xd0(%rbp),%rdi
lea    0xde4(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13c0 <ideviceinstaller+0x270>
lea    -0xd0(%rbp),%rdi
lea    0xd66(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1403 <ideviceinstaller+0x2b3>
lea    0xdbb(%rip),%rdi
call   1040 <printf@plt>
lea    -0x120(%rbp),%rdi
mov    $0x50,%esi
call   1050 <fget@plt>
lea    -0x5a0(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xdac(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x5a0(%rbp),%rdi
call   1030 <system@plt>
lea    -0xd0(%rbp),%rdi
lea    0xda4(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     143d <ideviceinstaller+0x2ed>
lea    -0xd0(%rbp),%rdi
lea    0xd8f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1480 <ideviceinstaller+0x330>
lea    0xd7b(%rip),%rdi
call   1040 <printf@plt>
lea    -0x120(%rbp),%rdi
mov    $0x50,%esi
call   1050 <fget@plt>
lea    -0x5a0(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xd6c(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x5a0(%rbp),%rdi
call   1030 <system@plt>
lea    -0xd0(%rbp),%rdi
lea    0xd64(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     14ba <ideviceinstaller+0x36a>
lea    -0xd0(%rbp),%rdi
lea    0xd54(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    14c6 <ideviceinstaller+0x376>
lea    0xd40(%rip),%rdi
call   1030 <system@plt>
lea    -0xd0(%rbp),%rdi
lea    0xd23(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1500 <ideviceinstaller+0x3b0>
lea    -0xd0(%rbp),%rdi
lea    0xd24(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1543 <ideviceinstaller+0x3f3>
lea    0xd10(%rip),%rdi
call   1040 <printf@plt>
lea    -0x120(%rbp),%rdi
mov    $0x50,%esi
call   1050 <fget@plt>
lea    -0x5a0(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xd39(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x5a0(%rbp),%rdi
call   1030 <system@plt>
lea    -0xd0(%rbp),%rdi
lea    0xd3b(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     157d <ideviceinstaller+0x42d>
lea    -0xd0(%rbp),%rdi
lea    0xd26(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    15c0 <ideviceinstaller+0x470>
lea    0xd12(%rip),%rdi
call   1040 <printf@plt>
lea    -0x120(%rbp),%rdi
mov    $0x50,%esi
call   1050 <fget@plt>
lea    -0x5a0(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xd1f(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x5a0(%rbp),%rdi
call   1030 <system@plt>
lea    -0xd0(%rbp),%rdi
lea    0xd17(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     15fa <ideviceinstaller+0x4aa>
lea    -0xd0(%rbp),%rdi
lea    0xd01(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    163d <ideviceinstaller+0x4ed>
lea    0xced(%rip),%rdi
call   1040 <printf@plt>
lea    -0x120(%rbp),%rdi
mov    $0x50,%esi
call   1050 <fget@plt>
lea    -0x5a0(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xcfc(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x5a0(%rbp),%rdi
call   1030 <system@plt>
mov    0x299c(%rip),%rax
mov    (%rax),%eax
add    $0x5a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ideviceinstaller>:
push   %r14
push   %rbx
sub    $0x5a8,%rsp
lea    0xe8f(%rip),%rdi
call   1040 <system@plt>
lea    0x1105(%rip),%rdi
call   1030 <puts@plt>
lea    0x1106(%rip),%rdi
call   1030 <puts@plt>
lea    0x110d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1114(%rip),%rdi
call   1030 <puts@plt>
lea    0x111b(%rip),%rdi
call   1030 <puts@plt>
lea    0x111f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1124(%rip),%rdi
call   1030 <puts@plt>
lea    0x1129(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x50,%esi
call   1060 <fget@plt>
lea    0xe19(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1212 <ideviceinstaller+0xb2>
lea    0xe0a(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1300 <ideviceinstaller+0x1a0>
lea    0x10f1(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f4(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f7(%rip),%rdi
call   1030 <puts@plt>
lea    0xa0(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x78,%esi
call   1060 <fget@plt>
lea    0xdbb(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1278 <ideviceinstaller+0x118>
lea    0xda5(%rip),%rsi
lea    0xa0(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1284 <ideviceinstaller+0x124>
lea    0xd95(%rip),%rdi
call   1040 <system@plt>
lea    0xdc8(%rip),%rsi
lea    0xa0(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12b6 <ideviceinstaller+0x156>
lea    0xd91(%rip),%rsi
lea    0xa0(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    12c2 <ideviceinstaller+0x162>
lea    0xd7a(%rip),%rdi
call   1040 <system@plt>
lea    0xdaf(%rip),%rsi
lea    0xa0(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12f4 <ideviceinstaller+0x194>
lea    0xd78(%rip),%rsi
lea    0xa0(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1300 <ideviceinstaller+0x1a0>
lea    0xd61(%rip),%rdi
call   1040 <system@plt>
lea    0xdb6(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1328 <ideviceinstaller+0x1c8>
lea    0xd1a(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    136b <ideviceinstaller+0x20b>
lea    0xd4d(%rip),%rdi
call   1050 <printf@plt>
lea    0x120(%rsp),%r14
mov    %r14,%rdi
mov    $0x78,%esi
call   1060 <fget@plt>
lea    0xd54(%rip),%rsi
lea    0x1a0(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
lea    0xd49(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1393 <ideviceinstaller+0x233>
lea    0xcd4(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    13d3 <ideviceinstaller+0x273>
lea    0xd2b(%rip),%rdi
call   1050 <printf@plt>
lea    0x50(%rsp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
call   1060 <fget@plt>
lea    0xd29(%rip),%rsi
lea    0x1a0(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
lea    0xd1e(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     13fb <ideviceinstaller+0x29b>
lea    0xd12(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    143b <ideviceinstaller+0x2db>
lea    0xd00(%rip),%rdi
call   1050 <printf@plt>
lea    0x50(%rsp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
call   1060 <fget@plt>
lea    0xcfe(%rip),%rsi
lea    0x1a0(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
lea    0xcf3(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1463 <ideviceinstaller+0x303>
lea    0xcec(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    146f <ideviceinstaller+0x30f>
lea    0xcda(%rip),%rdi
call   1040 <system@plt>
lea    0xe4a(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1497 <ideviceinstaller+0x337>
lea    0xcce(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    14d7 <ideviceinstaller+0x377>
lea    0xcbc(%rip),%rdi
call   1050 <printf@plt>
lea    0x50(%rsp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
call   1060 <fget@plt>
lea    0xcf2(%rip),%rsi
lea    0x1a0(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
lea    0xcf1(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     14ff <ideviceinstaller+0x39f>
lea    0xce5(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    153f <ideviceinstaller+0x3df>
lea    0xcd3(%rip),%rdi
call   1050 <printf@plt>
lea    0x50(%rsp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
call   1060 <fget@plt>
lea    0xced(%rip),%rsi
lea    0x1a0(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
lea    0xce2(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1567 <ideviceinstaller+0x407>
lea    0xcd5(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    15a7 <ideviceinstaller+0x447>
lea    0xcc3(%rip),%rdi
call   1050 <printf@plt>
lea    0x50(%rsp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
call   1060 <fget@plt>
lea    0xcdf(%rip),%rsi
lea    0x1a0(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
mov    0x2a32(%rip),%rax
mov    (%rax),%eax
add    $0x5a8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [14 x i8] c"1) List apps\0A\00"
@.str.2 = [20 x i8] c"2) Install archive\0A\00"
@.str.3 = [20 x i8] c"3) Uninstall APPID\0A\00"
@.str.4 = [20 x i8] c"4) Upgrade archive\0A\00"
@.str.5 = [17 x i8] c"5) List archive\0A\00"
@.str.6 = [18 x i8] c"6) Archive APPID\0A\00"
@.str.7 = [18 x i8] c"7) Restore APPID\0A\00"
@.str.8 = [17 x i8] c"8) Remove APPID\0A\00"
@.str.9 = [5 x i8] c"list\00"
@.str.10 = [2 x i8] c"1\00"
@.str.11 = [16 x i8] c"1) Mobile apps\0A\00"
@.str.12 = [16 x i8] c"2) System apps\0A\00"
@.str.13 = [13 x i8] c"3) All apps\0A\00"
@.str.14 = [7 x i8] c"mobile\00"
@.str.15 = [33 x i8] c"ideviceinstaller -l -o list_user\00"
@.str.16 = [7 x i8] c"system\00"
@.str.17 = [2 x i8] c"2\00"
@.str.18 = [35 x i8] c"ideviceinstaller -l -o list_system\00"
@.str.19 = [4 x i8] c"all\00"
@.str.20 = [2 x i8] c"3\00"
@.str.21 = [32 x i8] c"ideviceinstaller -l -o list_all\00"
@.str.22 = [8 x i8] c"install\00"
@.str.23 = [40 x i8] c"Enter the directory from the archive : \00"
@.str.24 = [23 x i8] c"ideviceinstaller -i %s\00"
@.str.25 = [10 x i8] c"uninstall\00"
@.str.26 = [28 x i8] c"Enter APPID to uninstall : \00"
@.str.27 = [23 x i8] c"ideviceinstaller -U %s\00"
@.str.28 = [8 x i8] c"upgrade\00"
@.str.29 = [2 x i8] c"4\00"
@.str.30 = [28 x i8] c"Enter archive to upgrade : \00"
@.str.31 = [23 x i8] c"ideviceinstaller -g %s\00"
@.str.32 = [13 x i8] c"list archive\00"
@.str.33 = [2 x i8] c"5\00"
@.str.34 = [20 x i8] c"ideviceinstaller -L\00"
@.str.35 = [8 x i8] c"archive\00"
@.str.36 = [2 x i8] c"6\00"
@.str.37 = [84 x i8] c"This command will uninstall the package after making an archive, enter the APPID : \00"
@.str.38 = [33 x i8] c"ideviceinstaller -a uninstall %s\00"
@.str.39 = [8 x i8] c"restore\00"
@.str.40 = [2 x i8] c"7\00"
@.str.41 = [56 x i8] c"Restore archived app specified by APPID, enter APPID : \00"
@.str.42 = [23 x i8] c"ideviceinstaller -r %s\00"
@.str.43 = [7 x i8] c"remove\00"
@.str.44 = [2 x i8] c"8\00"
@.str.45 = [58 x i8] c"Remove app archive specified by APPID, enter the APPID : \00"
@.str.46 = [23 x i8] c"ideviceinstaller -R %s\00"
@EXIT_SUCCESS = global i32 0
define i32 @ideviceinstaller() {
%1 = alloca [120 x i8]
%2 = alloca [80 x i8]
%3 = alloca [80 x i8]
%4 = alloca [120 x i8]
%5 = alloca [1024 x i8]
%6 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%15 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%16 = call i32 @fget(i8* %15, i32 80)
%17 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%18 = call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %24, label %20
20: ; preds = %0
%21 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %60
24: ; preds = %20, %0
%25 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0))
%28 = getelementptr inbounds [120 x i8], [120 x i8]* %1, i64 0, i64 0
%29 = call i32 @fget(i8* %28, i32 120)
%30 = getelementptr inbounds [120 x i8], [120 x i8]* %1, i64 0, i64 0
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %37, label %33
33: ; preds = %24
%34 = getelementptr inbounds [120 x i8], [120 x i8]* %1, i64 0, i64 0
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %33, %24
%38 = call i32 @system(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0))
br label %39
39: ; preds = %37, %33
%40 = getelementptr inbounds [120 x i8], [120 x i8]* %1, i64 0, i64 0
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %47, label %43
43: ; preds = %39
%44 = getelementptr inbounds [120 x i8], [120 x i8]* %1, i64 0, i64 0
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43, %39
%48 = call i32 @system(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.18, i64 0, i64 0))
br label %49
49: ; preds = %47, %43
%50 = getelementptr inbounds [120 x i8], [120 x i8]* %1, i64 0, i64 0
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %57, label %53
53: ; preds = %49
%54 = getelementptr inbounds [120 x i8], [120 x i8]* %1, i64 0, i64 0
%55 = call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %53, %49
%58 = call i32 @system(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.21, i64 0, i64 0))
br label %59
59: ; preds = %57, %53
br label %60
60: ; preds = %59, %20
%61 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %68, label %64
64: ; preds = %60
%65 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%66 = call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %77
68: ; preds = %64, %60
%69 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.23, i64 0, i64 0))
%70 = getelementptr inbounds [120 x i8], [120 x i8]* %4, i64 0, i64 0
%71 = call i32 @fget(i8* %70, i32 120)
%72 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%73 = getelementptr inbounds [120 x i8], [120 x i8]* %4, i64 0, i64 0
%74 = call i32 @sprintf(i8* %72, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0), i8* %73)
%75 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%76 = call i32 @system(i8* %75)
br label %77
77: ; preds = %68, %64
%78 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%79 = call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %85, label %81
81: ; preds = %77
%82 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%83 = call i64 @strcmp(i8* %82, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %94
85: ; preds = %81, %77
%86 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.26, i64 0, i64 0))
%87 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%88 = call i32 @fget(i8* %87, i32 80)
%89 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%90 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%91 = call i32 @sprintf(i8* %89, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.27, i64 0, i64 0), i8* %90)
%92 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%93 = call i32 @system(i8* %92)
br label %94
94: ; preds = %85, %81
%95 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %102, label %98
98: ; preds = %94
%99 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %111
102: ; preds = %98, %94
%103 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.30, i64 0, i64 0))
%104 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%105 = call i32 @fget(i8* %104, i32 80)
%106 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%107 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%108 = call i32 @sprintf(i8* %106, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.31, i64 0, i64 0), i8* %107)
%109 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%110 = call i32 @system(i8* %109)
br label %111
111: ; preds = %102, %98
%112 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%113 = call i64 @strcmp(i8* %112, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.32, i64 0, i64 0))
%114 = icmp eq i64 %113, 0
br i1 %114, label %119, label %115
115: ; preds = %111
%116 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%117 = call i64 @strcmp(i8* %116, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.33, i64 0, i64 0))
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %115, %111
%120 = call i32 @system(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.34, i64 0, i64 0))
br label %121
121: ; preds = %119, %115
%122 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%123 = call i64 @strcmp(i8* %122, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.35, i64 0, i64 0))
%124 = icmp eq i64 %123, 0
br i1 %124, label %129, label %125
125: ; preds = %121
%126 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%127 = call i64 @strcmp(i8* %126, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.36, i64 0, i64 0))
%128 = icmp eq i64 %127, 0
br i1 %128, label %129, label %138
129: ; preds = %125, %121
%130 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.37, i64 0, i64 0))
%131 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%132 = call i32 @fget(i8* %131, i32 80)
%133 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%134 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%135 = call i32 @sprintf(i8* %133, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.38, i64 0, i64 0), i8* %134)
%136 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%137 = call i32 @system(i8* %136)
br label %138
138: ; preds = %129, %125
%139 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%140 = call i64 @strcmp(i8* %139, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.39, i64 0, i64 0))
%141 = icmp eq i64 %140, 0
br i1 %141, label %146, label %142
142: ; preds = %138
%143 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%144 = call i64 @strcmp(i8* %143, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.40, i64 0, i64 0))
%145 = icmp eq i64 %144, 0
br i1 %145, label %146, label %155
146: ; preds = %142, %138
%147 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.41, i64 0, i64 0))
%148 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%149 = call i32 @fget(i8* %148, i32 80)
%150 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%151 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%152 = call i32 @sprintf(i8* %150, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.42, i64 0, i64 0), i8* %151)
%153 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%154 = call i32 @system(i8* %153)
br label %155
155: ; preds = %146, %142
%156 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%157 = call i64 @strcmp(i8* %156, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.43, i64 0, i64 0))
%158 = icmp eq i64 %157, 0
br i1 %158, label %163, label %159
159: ; preds = %155
%160 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%161 = call i64 @strcmp(i8* %160, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.44, i64 0, i64 0))
%162 = icmp eq i64 %161, 0
br i1 %162, label %163, label %172
163: ; preds = %159, %155
%164 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.45, i64 0, i64 0))
%165 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%166 = call i32 @fget(i8* %165, i32 80)
%167 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%168 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%169 = call i32 @sprintf(i8* %167, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.46, i64 0, i64 0), i8* %168)
%170 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%171 = call i32 @system(i8* %170)
br label %172
172: ; preds = %163, %159
%173 = load i32, i32* @EXIT_SUCCESS
ret i32 %173
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.9 = [5 x i8] c"list\00"
@.str.10 = [2 x i8] c"1\00"
@.str.14 = [7 x i8] c"mobile\00"
@.str.15 = [33 x i8] c"ideviceinstaller -l -o list_user\00"
@.str.16 = [7 x i8] c"system\00"
@.str.17 = [2 x i8] c"2\00"
@.str.18 = [35 x i8] c"ideviceinstaller -l -o list_system\00"
@.str.19 = [4 x i8] c"all\00"
@.str.20 = [2 x i8] c"3\00"
@.str.21 = [32 x i8] c"ideviceinstaller -l -o list_all\00"
@.str.22 = [8 x i8] c"install\00"
@.str.23 = [40 x i8] c"Enter the directory from the archive : \00"
@.str.24 = [23 x i8] c"ideviceinstaller -i %s\00"
@.str.25 = [10 x i8] c"uninstall\00"
@.str.26 = [28 x i8] c"Enter APPID to uninstall : \00"
@.str.27 = [23 x i8] c"ideviceinstaller -U %s\00"
@.str.28 = [8 x i8] c"upgrade\00"
@.str.29 = [2 x i8] c"4\00"
@.str.30 = [28 x i8] c"Enter archive to upgrade : \00"
@.str.31 = [23 x i8] c"ideviceinstaller -g %s\00"
@.str.32 = [13 x i8] c"list archive\00"
@.str.33 = [2 x i8] c"5\00"
@.str.34 = [20 x i8] c"ideviceinstaller -L\00"
@.str.35 = [8 x i8] c"archive\00"
@.str.36 = [2 x i8] c"6\00"
@.str.37 = [84 x i8] c"This command will uninstall the package after making an archive, enter the APPID : \00"
@.str.38 = [33 x i8] c"ideviceinstaller -a uninstall %s\00"
@.str.39 = [8 x i8] c"restore\00"
@.str.40 = [2 x i8] c"7\00"
@.str.41 = [56 x i8] c"Restore archived app specified by APPID, enter APPID : \00"
@.str.42 = [23 x i8] c"ideviceinstaller -r %s\00"
@.str.43 = [7 x i8] c"remove\00"
@.str.44 = [2 x i8] c"8\00"
@.str.45 = [58 x i8] c"Remove app archive specified by APPID, enter the APPID : \00"
@.str.46 = [23 x i8] c"ideviceinstaller -R %s\00"
@EXIT_SUCCESS = global i32 0
@str = [13 x i8] c"1) List apps\00"
@str.47 = [19 x i8] c"2) Install archive\00"
@str.48 = [19 x i8] c"3) Uninstall APPID\00"
@str.49 = [19 x i8] c"4) Upgrade archive\00"
@str.50 = [16 x i8] c"5) List archive\00"
@str.51 = [17 x i8] c"6) Archive APPID\00"
@str.52 = [17 x i8] c"7) Restore APPID\00"
@str.53 = [16 x i8] c"8) Remove APPID\00"
@str.54 = [15 x i8] c"1) Mobile apps\00"
@str.55 = [15 x i8] c"2) System apps\00"
@str.56 = [12 x i8] c"3) All apps\00"
define i32 @ideviceinstaller() {
%1 = alloca [120 x i8]
%2 = alloca [80 x i8]
%3 = alloca [80 x i8]
%4 = alloca [120 x i8]
%5 = alloca [1024 x i8]
%6 = getelementptr inbounds [120 x i8], [120 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%8 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [120 x i8], [120 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%11 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.47, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.48, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.49, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.50, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.51, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.52, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.53, i64 0, i64 0))
%20 = call i32 @fget(i8* %7, i32 80)
%21 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %0
%24 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %54
26: ; preds = %23, %0
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.54, i64 0, i64 0))
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.55, i64 0, i64 0))
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.56, i64 0, i64 0))
%30 = call i32 @fget(i8* %6, i32 120)
%31 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %26
%34 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33, %26
%37 = call i32 @system(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0))
br label %38
38: ; preds = %36, %33
%39 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %38
%42 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41, %38
%45 = call i32 @system(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.18, i64 0, i64 0))
br label %46
46: ; preds = %44, %41
%47 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %52, label %49
49: ; preds = %46
%50 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %54
52: ; preds = %49, %46
%53 = call i32 @system(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.21, i64 0, i64 0))
br label %54
54: ; preds = %49, %52, %23
%55 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %60, label %57
57: ; preds = %54
%58 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %65
60: ; preds = %57, %54
%61 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.23, i64 0, i64 0))
%62 = call i32 @fget(i8* %9, i32 120)
%63 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0), i8* %9)
%64 = call i32 @system(i8* %10)
br label %65
65: ; preds = %60, %57
%66 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %71, label %68
68: ; preds = %65
%69 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %76
71: ; preds = %68, %65
%72 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.26, i64 0, i64 0))
%73 = call i32 @fget(i8* %8, i32 80)
%74 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.27, i64 0, i64 0), i8* %8)
%75 = call i32 @system(i8* %10)
br label %76
76: ; preds = %71, %68
%77 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %82, label %79
79: ; preds = %76
%80 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.29, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %87
82: ; preds = %79, %76
%83 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.30, i64 0, i64 0))
%84 = call i32 @fget(i8* %8, i32 80)
%85 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.31, i64 0, i64 0), i8* %8)
%86 = call i32 @system(i8* %10)
br label %87
87: ; preds = %82, %79
%88 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.32, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %93, label %90
90: ; preds = %87
%91 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.33, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %90, %87
%94 = call i32 @system(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.34, i64 0, i64 0))
br label %95
95: ; preds = %93, %90
%96 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.35, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %101, label %98
98: ; preds = %95
%99 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.36, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %106
101: ; preds = %98, %95
%102 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @.str.37, i64 0, i64 0))
%103 = call i32 @fget(i8* %8, i32 80)
%104 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.38, i64 0, i64 0), i8* %8)
%105 = call i32 @system(i8* %10)
br label %106
106: ; preds = %101, %98
%107 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.39, i64 0, i64 0))
%108 = icmp eq i64 %107, 0
br i1 %108, label %112, label %109
109: ; preds = %106
%110 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.40, i64 0, i64 0))
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %117
112: ; preds = %109, %106
%113 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.41, i64 0, i64 0))
%114 = call i32 @fget(i8* %8, i32 80)
%115 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.42, i64 0, i64 0), i8* %8)
%116 = call i32 @system(i8* %10)
br label %117
117: ; preds = %112, %109
%118 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.43, i64 0, i64 0))
%119 = icmp eq i64 %118, 0
br i1 %119, label %123, label %120
120: ; preds = %117
%121 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.44, i64 0, i64 0))
%122 = icmp eq i64 %121, 0
br i1 %122, label %123, label %128
123: ; preds = %120, %117
%124 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.45, i64 0, i64 0))
%125 = call i32 @fget(i8* %8, i32 80)
%126 = call i32 @sprintf(i8* %10, i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.46, i64 0, i64 0), i8* %8)
%127 = call i32 @system(i8* %10)
br label %128
128: ; preds = %123, %120
%129 = load i32, i32* @EXIT_SUCCESS
ret i32 %129
}