#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 /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ system(char *);
int idevicebackup() {
  char choice[20];
  float version;
  char rep[20];
  char path[120];
  char buildCommand[1024];
  system("clear");
  printf("1) Backup\n");
  printf("2) Restore backup\n");
  fget(choice, 20);
  if (strcmp(choice, "backup") == 0 || strcmp(choice, "1") == 0) {
    printf("Is your iOS version less than iOS 4 ?\n1) YES\n2) NO\n");
    fget(rep, 20);
    if (strcmp(rep, "yes") == 0 || strcmp(rep, "YES") == 0 ||
        strcmp(rep, "1") == 0) {
      printf("Enter the directory to copy the backup : ");
      fget(path, 120);
      sprintf(buildCommand, "idevicebackup backup %s", path);
      system(buildCommand);
    } else {
      printf("Enter the directory to copy the backup : ");
      fget(path, 120);
      sprintf(buildCommand, "idevicebackup2 backup %s", path);
      system(buildCommand);
    }
  }
  if (strcmp(choice, "restore") == 0 || strcmp(choice, "2") == 0) {
    printf("Is your iOS version less than iOS 4 ?\n1) YES\n2) NO\n");
    fget(rep, 20);
    if (strcmp(rep, "yes") == 0 || strcmp(rep, "YES") == 0 ||
        strcmp(rep, "1") == 0) {
      printf("Enter the directory to the backup : ");
      fget(path, 120);
      sprintf(buildCommand, "idevicebackup restore %s", path);
      system(buildCommand);
    } else {
      printf("Enter the directory to the backup : ");
      fget(path, 120);
      sprintf(buildCommand, "idevicebackup2 restore %s", path);
      system(buildCommand);
    }
  }
}


x86 assembly (clang, -O0):
<idevicebackup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4c0,%rsp
lea    0xe9e(%rip),%rdi
call   1030 <system@plt>
lea    0xe98(%rip),%rdi
call   1040 <printf@plt>
lea    0xe97(%rip),%rdi
call   1040 <printf@plt>
lea    -0x20(%rbp),%rdi
mov    $0x14,%esi
call   1050 <fget@plt>
lea    -0x20(%rbp),%rdi
lea    0xe8c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     11c1 <idevicebackup+0x71>
lea    -0x20(%rbp),%rdi
lea    0xe79(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12b9 <idevicebackup+0x169>
lea    0xe65(%rip),%rdi
call   1040 <printf@plt>
lea    -0x40(%rbp),%rdi
mov    $0x14,%esi
call   1050 <fget@plt>
lea    -0x40(%rbp),%rdi
lea    0xe7b(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1229 <idevicebackup+0xd9>
lea    -0x40(%rbp),%rdi
lea    0xe65(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1229 <idevicebackup+0xd9>
lea    -0x40(%rbp),%rdi
lea    0xe11(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1271 <idevicebackup+0x121>
lea    0xe39(%rip),%rdi
call   1040 <printf@plt>
lea    -0xc0(%rbp),%rdi
mov    $0x78,%esi
call   1050 <fget@plt>
lea    -0x4c0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xe38(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x4c0(%rbp),%rdi
call   1030 <system@plt>
jmp    12b4 <idevicebackup+0x164>
lea    0xdf1(%rip),%rdi
call   1040 <printf@plt>
lea    -0xc0(%rbp),%rdi
mov    $0x78,%esi
call   1050 <fget@plt>
lea    -0x4c0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xe08(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x4c0(%rbp),%rdi
call   1030 <system@plt>
jmp    12b9 <idevicebackup+0x169>
lea    -0x20(%rbp),%rdi
lea    0xe00(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     12ed <idevicebackup+0x19d>
lea    -0x20(%rbp),%rdi
lea    0xdee(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13e5 <idevicebackup+0x295>
lea    0xd39(%rip),%rdi
call   1040 <printf@plt>
lea    -0x40(%rbp),%rdi
mov    $0x14,%esi
call   1050 <fget@plt>
lea    -0x40(%rbp),%rdi
lea    0xd4f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1355 <idevicebackup+0x205>
lea    -0x40(%rbp),%rdi
lea    0xd39(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1355 <idevicebackup+0x205>
lea    -0x40(%rbp),%rdi
lea    0xce5(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    139d <idevicebackup+0x24d>
lea    0xd72(%rip),%rdi
call   1040 <printf@plt>
lea    -0xc0(%rbp),%rdi
mov    $0x78,%esi
call   1050 <fget@plt>
lea    -0x4c0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xd6c(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x4c0(%rbp),%rdi
call   1030 <system@plt>
jmp    13e0 <idevicebackup+0x290>
lea    0xd2a(%rip),%rdi
call   1040 <printf@plt>
lea    -0xc0(%rbp),%rdi
mov    $0x78,%esi
call   1050 <fget@plt>
lea    -0x4c0(%rbp),%rdi
lea    -0xc0(%rbp),%rdx
lea    0xd3d(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x4c0(%rbp),%rdi
call   1030 <system@plt>
jmp    13e5 <idevicebackup+0x295>
mov    -0x4(%rbp),%eax
add    $0x4c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<idevicebackup>:
push   %r15
push   %r14
push   %rbx
sub    $0x4c0,%rsp
lea    0xe8d(%rip),%rdi
call   1040 <system@plt>
lea    0xf4e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf4c(%rip),%rdi
call   1030 <puts@plt>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x14,%esi
call   1060 <fget@plt>
lea    0xf39(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     11d0 <idevicebackup+0x70>
lea    0xe49(%rip),%rsi
lea    0x20(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    127b <idevicebackup+0x11b>
lea    0xf12(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x14,%esi
call   1060 <fget@plt>
lea    0xe15(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
lea    0xe38(%rip),%rbx
test   %rax,%rax
je     123f <idevicebackup+0xdf>
lea    0xdfe(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     123f <idevicebackup+0xdf>
lea    0xde4(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
lea    0xe06(%rip),%rax
lea    0xe17(%rip),%rbx
cmove  %rax,%rbx
lea    0xdca(%rip),%rdi
call   1050 <printf@plt>
lea    0x40(%rsp),%r14
mov    %r14,%rdi
mov    $0x78,%esi
call   1060 <fget@plt>
lea    0xc0(%rsp),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %r15,%rdi
call   1040 <system@plt>
lea    0xde9(%rip),%rsi
lea    0x20(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12ab <idevicebackup+0x14b>
lea    0xddb(%rip),%rsi
lea    0x20(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1356 <idevicebackup+0x1f6>
lea    0xe37(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x14,%esi
call   1060 <fget@plt>
lea    0xd3a(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
lea    0xdbd(%rip),%rbx
test   %rax,%rax
je     131a <idevicebackup+0x1ba>
lea    0xd23(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     131a <idevicebackup+0x1ba>
lea    0xd09(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
lea    0xd8b(%rip),%rax
lea    0xd9d(%rip),%rbx
cmove  %rax,%rbx
lea    0xd54(%rip),%rdi
call   1050 <printf@plt>
lea    0x40(%rsp),%r14
mov    %r14,%rdi
mov    $0x78,%esi
call   1060 <fget@plt>
lea    0xc0(%rsp),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %r15,%rdi
call   1040 <system@plt>
add    $0x4c0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [11 x i8] c"1) Backup\0A\00"
@.str.2 = [19 x i8] c"2) Restore backup\0A\00"
@.str.3 = [7 x i8] c"backup\00"
@.str.4 = [2 x i8] c"1\00"
@.str.5 = [52 x i8] c"Is your iOS version less than iOS 4 ?\0A1) YES\0A2) NO\0A\00"
@.str.6 = [4 x i8] c"yes\00"
@.str.7 = [4 x i8] c"YES\00"
@.str.8 = [42 x i8] c"Enter the directory to copy the backup : \00"
@.str.9 = [24 x i8] c"idevicebackup backup %s\00"
@.str.10 = [25 x i8] c"idevicebackup2 backup %s\00"
@.str.11 = [8 x i8] c"restore\00"
@.str.12 = [2 x i8] c"2\00"
@.str.13 = [37 x i8] c"Enter the directory to the backup : \00"
@.str.14 = [25 x i8] c"idevicebackup restore %s\00"
@.str.15 = [26 x i8] c"idevicebackup2 restore %s\00"
define i32 @idevicebackup() {
%1 = alloca i32
%2 = alloca [20 x i8]
%3 = alloca float
%4 = alloca [20 x i8]
%5 = alloca [120 x i8]
%6 = alloca [1024 x i8]
%7 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%10 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%11 = call i32 @fget(i8* %10, i32 20)
%12 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%13 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %0
%16 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%17 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %53
19: ; preds = %15, %0
%20 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
%21 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%22 = call i32 @fget(i8* %21, i32 20)
%23 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %34, label %26
26: ; preds = %19
%27 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%28 = call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %34, label %30
30: ; preds = %26
%31 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%32 = call i64 @strcmp(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %43
34: ; preds = %30, %26, %19
%35 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%36 = getelementptr inbounds [120 x i8], [120 x i8]* %5, i64 0, i64 0
%37 = call i32 @fget(i8* %36, i32 120)
%38 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%39 = getelementptr inbounds [120 x i8], [120 x i8]* %5, i64 0, i64 0
%40 = call i32 @sprintf(i8* %38, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* %39)
%41 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%42 = call i32 @system(i8* %41)
br label %52
43: ; preds = %30
%44 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%45 = getelementptr inbounds [120 x i8], [120 x i8]* %5, i64 0, i64 0
%46 = call i32 @fget(i8* %45, i32 120)
%47 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%48 = getelementptr inbounds [120 x i8], [120 x i8]* %5, i64 0, i64 0
%49 = call i32 @sprintf(i8* %47, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i8* %48)
%50 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%51 = call i32 @system(i8* %50)
br label %52
52: ; preds = %43, %34
br label %53
53: ; preds = %52, %15
%54 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%55 = call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %61, label %57
57: ; preds = %53
%58 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%59 = call i64 @strcmp(i8* %58, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %95
61: ; preds = %57, %53
%62 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.5, i64 0, i64 0))
%63 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%64 = call i32 @fget(i8* %63, i32 20)
%65 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%66 = call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %76, label %68
68: ; preds = %61
%69 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%70 = call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %76, label %72
72: ; preds = %68
%73 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%74 = call i64 @strcmp(i8* %73, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %85
76: ; preds = %72, %68, %61
%77 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0))
%78 = getelementptr inbounds [120 x i8], [120 x i8]* %5, i64 0, i64 0
%79 = call i32 @fget(i8* %78, i32 120)
%80 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%81 = getelementptr inbounds [120 x i8], [120 x i8]* %5, i64 0, i64 0
%82 = call i32 @sprintf(i8* %80, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i8* %81)
%83 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%84 = call i32 @system(i8* %83)
br label %94
85: ; preds = %72
%86 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0))
%87 = getelementptr inbounds [120 x i8], [120 x i8]* %5, i64 0, i64 0
%88 = call i32 @fget(i8* %87, i32 120)
%89 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%90 = getelementptr inbounds [120 x i8], [120 x i8]* %5, i64 0, i64 0
%91 = call i32 @sprintf(i8* %89, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i8* %90)
%92 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%93 = call i32 @system(i8* %92)
br label %94
94: ; preds = %85, %76
br label %95
95: ; preds = %94, %57
%96 = load i32, i32* %1
ret i32 %96
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.3 = [7 x i8] c"backup\00"
@.str.4 = [2 x i8] c"1\00"
@.str.6 = [4 x i8] c"yes\00"
@.str.7 = [4 x i8] c"YES\00"
@.str.8 = [42 x i8] c"Enter the directory to copy the backup : \00"
@.str.9 = [24 x i8] c"idevicebackup backup %s\00"
@.str.10 = [25 x i8] c"idevicebackup2 backup %s\00"
@.str.11 = [8 x i8] c"restore\00"
@.str.12 = [2 x i8] c"2\00"
@.str.13 = [37 x i8] c"Enter the directory to the backup : \00"
@.str.14 = [25 x i8] c"idevicebackup restore %s\00"
@.str.15 = [26 x i8] c"idevicebackup2 restore %s\00"
@str = [10 x i8] c"1) Backup\00"
@str.16 = [18 x i8] c"2) Restore backup\00"
@str.18 = [51 x i8] c"Is your iOS version less than iOS 4 ?\0A1) YES\0A2) NO\00"
define i32 @idevicebackup() {
%1 = alloca [20 x i8]
%2 = alloca [20 x i8]
%3 = alloca [120 x i8]
%4 = alloca [1024 x i8]
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [120 x i8], [120 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%9 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.16, i64 0, i64 0))
%12 = call i32 @fget(i8* %5, i32 20)
%13 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %0
%16 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %36
18: ; preds = %15, %0
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.18, i64 0, i64 0))
%20 = call i32 @fget(i8* %6, i32 20)
%21 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %30, label %23
23: ; preds = %18
%24 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %23
%27 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
%29 = select i1 %28, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0)
br label %30
30: ; preds = %26, %18, %23
%31 = phi i8* [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), %23 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), %18 ], [ %29, %26 ]
%32 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0))
%33 = call i32 @fget(i8* %7, i32 120)
%34 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) %31, i8* %7)
%35 = call i32 @system(i8* %8)
br label %36
36: ; preds = %30, %15
%37 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %42, label %39
39: ; preds = %36
%40 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %60
42: ; preds = %39, %36
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.18, i64 0, i64 0))
%44 = call i32 @fget(i8* %6, i32 20)
%45 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %54, label %47
47: ; preds = %42
%48 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %54, label %50
50: ; preds = %47
%51 = call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
%53 = select i1 %52, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0)
br label %54
54: ; preds = %50, %42, %47
%55 = phi i8* [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), %47 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), %42 ], [ %53, %50 ]
%56 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0))
%57 = call i32 @fget(i8* %7, i32 120)
%58 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) %55, i8* %7)
%59 = call i32 @system(i8* %8)
br label %60
60: ; preds = %54, %39
ret i32 undef
}