#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 irecovery() {
  char choice[80];
  char path[1024];
  char buildCommand[1024];
  system("clear");
  printf("1) Send file to device \n");
  printf("2) Send limera1n USB exploit payload\n");
  printf("3) Exit Recovery mode (Doesn't work on Windows)\n");
  printf("4) Execute recovery script\n");
  printf("5) Start an interactive shell\n");
  fget(choice, 80);
  if (strcmp(choice, "send file") == 0 || strcmp(choice, "1") == 0) {
    printf("Enter the directory to the file : ");
    fget(path, 1024);
    sprintf(buildCommand, "sudo irecovery -f %s", path);
    system(buildCommand);
  }
  if (strcmp(choice, "send payload") == 0 || strcmp(choice, "2") == 0) {
    printf("Entrer the directory to the file : ");
    fget(path, 1024);
    sprintf(buildCommand, "sudo irecovery -k %s", path);
    system(buildCommand);
  }
  if (strcmp(choice, "reboot") == 0 || strcmp(choice, "3") == 0) {
    printf("The device will exit recovery loop...\n");
    system("sudo irecovery -n");
  }
  if (strcmp(choice, "execute") == 0 || strcmp(choice, "4") == 0) {
    printf("Enter the directory to the file : ");
    fget(path, 1024);
    sprintf(buildCommand, "sudo irecovery -e %s", path);
    system(buildCommand);
  }
  if (strcmp(choice, "shell") == 0 || strcmp(choice, "5") == 0) {
    system("sudo irecovery -s");
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<irecovery>:
push   %rbp
mov    %rsp,%rbp
sub    $0x850,%rsp
lea    0xe9e(%rip),%rdi
call   1030 <system@plt>
lea    0xe98(%rip),%rdi
call   1040 <printf@plt>
lea    0xea5(%rip),%rdi
call   1040 <printf@plt>
lea    0xebf(%rip),%rdi
call   1040 <printf@plt>
lea    0xee4(%rip),%rdi
call   1040 <printf@plt>
lea    0xef4(%rip),%rdi
call   1040 <printf@plt>
lea    -0x50(%rbp),%rdi
mov    $0x50,%esi
call   1050 <fget@plt>
lea    -0x50(%rbp),%rdi
lea    0xef5(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     11e5 <irecovery+0x95>
lea    -0x50(%rbp),%rdi
lea    0xee5(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1228 <irecovery+0xd8>
lea    0xed1(%rip),%rdi
call   1040 <printf@plt>
lea    -0x450(%rbp),%rdi
mov    $0x400,%esi
call   1050 <fget@plt>
lea    -0x850(%rbp),%rdi
lea    -0x450(%rbp),%rdx
lea    0xec9(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x850(%rbp),%rdi
call   1030 <system@plt>
lea    -0x50(%rbp),%rdi
lea    0xec2(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     125c <irecovery+0x10c>
lea    -0x50(%rbp),%rdi
lea    0xeb5(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    129f <irecovery+0x14f>
lea    0xea1(%rip),%rdi
call   1040 <printf@plt>
lea    -0x450(%rbp),%rdi
mov    $0x400,%esi
call   1050 <fget@plt>
lea    -0x850(%rbp),%rdi
lea    -0x450(%rbp),%rdx
lea    0xe9a(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x850(%rbp),%rdi
call   1030 <system@plt>
lea    -0x50(%rbp),%rdi
lea    0xe93(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     12d3 <irecovery+0x183>
lea    -0x50(%rbp),%rdi
lea    0xe80(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12eb <irecovery+0x19b>
lea    0xe6c(%rip),%rdi
call   1040 <printf@plt>
lea    0xe87(%rip),%rdi
call   1030 <system@plt>
lea    -0x50(%rbp),%rdi
lea    0xe89(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     131f <irecovery+0x1cf>
lea    -0x50(%rbp),%rdi
lea    0xe77(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1362 <irecovery+0x212>
lea    0xd97(%rip),%rdi
call   1040 <printf@plt>
lea    -0x450(%rbp),%rdi
mov    $0x400,%esi
call   1050 <fget@plt>
lea    -0x850(%rbp),%rdi
lea    -0x450(%rbp),%rdx
lea    0xe38(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x850(%rbp),%rdi
call   1030 <system@plt>
lea    -0x50(%rbp),%rdi
lea    0xe31(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     1396 <irecovery+0x246>
lea    -0x50(%rbp),%rdi
lea    0xe1d(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13a2 <irecovery+0x252>
lea    0xe09(%rip),%rdi
call   1030 <system@plt>
mov    0x2c37(%rip),%rax
mov    (%rax),%eax
add    $0x850,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<irecovery>:
push   %r14
push   %rbx
sub    $0x858,%rsp
lea    0xe8f(%rip),%rdi
call   1040 <system@plt>
lea    0xf63(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf88(%rip),%rdi
call   1030 <puts@plt>
lea    0xfac(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbb(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x50,%esi
call   1060 <fget@plt>
lea    0xe3d(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     11ea <irecovery+0x8a>
lea    0xe33(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    122a <irecovery+0xca>
lea    0xe21(%rip),%rdi
call   1050 <printf@plt>
lea    0x450(%rsp),%r14
mov    %r14,%rdi
mov    $0x400,%esi
call   1060 <fget@plt>
lea    0xe23(%rip),%rsi
lea    0x50(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
lea    0xe19(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1252 <irecovery+0xf2>
lea    0xe12(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1292 <irecovery+0x132>
lea    0xe00(%rip),%rdi
call   1050 <printf@plt>
lea    0x450(%rsp),%r14
mov    %r14,%rdi
mov    $0x400,%esi
call   1060 <fget@plt>
lea    0xe03(%rip),%rsi
lea    0x50(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
lea    0xdf9(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12ba <irecovery+0x15a>
lea    0xdec(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    12d2 <irecovery+0x172>
lea    0xec5(%rip),%rdi
call   1030 <puts@plt>
lea    0xdce(%rip),%rdi
call   1040 <system@plt>
lea    0xdd4(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     12fa <irecovery+0x19a>
lea    0xdc8(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    133a <irecovery+0x1da>
lea    0xd11(%rip),%rdi
call   1050 <printf@plt>
lea    0x450(%rsp),%r14
mov    %r14,%rdi
mov    $0x400,%esi
call   1060 <fget@plt>
lea    0xd95(%rip),%rsi
lea    0x50(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
call   1080 <sprintf@plt>
mov    %rbx,%rdi
call   1040 <system@plt>
lea    0xe3f(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1362 <irecovery+0x202>
lea    0xd77(%rip),%rsi
mov    %rsp,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    136e <irecovery+0x20e>
lea    0xd65(%rip),%rdi
call   1040 <system@plt>
mov    0x2c6b(%rip),%rax
mov    (%rax),%eax
add    $0x858,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
@.str.1 = [25 x i8] c"1) Send file to device \0A\00"
@.str.2 = [38 x i8] c"2) Send limera1n USB exploit payload\0A\00"
@.str.3 = [49 x i8] c"3) Exit Recovery mode (Doesn't work on Windows)\0A\00"
@.str.4 = [28 x i8] c"4) Execute recovery script\0A\00"
@.str.5 = [31 x i8] c"5) Start an interactive shell\0A\00"
@.str.6 = [10 x i8] c"send file\00"
@.str.7 = [2 x i8] c"1\00"
@.str.8 = [35 x i8] c"Enter the directory to the file : \00"
@.str.9 = [21 x i8] c"sudo irecovery -f %s\00"
@.str.10 = [13 x i8] c"send payload\00"
@.str.11 = [2 x i8] c"2\00"
@.str.12 = [36 x i8] c"Entrer the directory to the file : \00"
@.str.13 = [21 x i8] c"sudo irecovery -k %s\00"
@.str.14 = [7 x i8] c"reboot\00"
@.str.15 = [2 x i8] c"3\00"
@.str.16 = [39 x i8] c"The device will exit recovery loop...\0A\00"
@.str.17 = [18 x i8] c"sudo irecovery -n\00"
@.str.18 = [8 x i8] c"execute\00"
@.str.19 = [2 x i8] c"4\00"
@.str.20 = [21 x i8] c"sudo irecovery -e %s\00"
@.str.21 = [6 x i8] c"shell\00"
@.str.22 = [2 x i8] c"5\00"
@.str.23 = [18 x i8] c"sudo irecovery -s\00"
@EXIT_SUCCESS = global i32 0
define i32 @irecovery() {
%1 = alloca [80 x i8]
%2 = alloca [1024 x i8]
%3 = alloca [1024 x i8]
%4 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%10 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%11 = call i32 @fget(i8* %10, i32 80)
%12 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%13 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %0
%16 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%17 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %28
19: ; preds = %15, %0
%20 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
%21 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%22 = call i32 @fget(i8* %21, i32 1024)
%23 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%24 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%25 = call i32 @sprintf(i8* %23, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i8* %24)
%26 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%27 = call i32 @system(i8* %26)
br label %28
28: ; preds = %19, %15
%29 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %36, label %32
32: ; preds = %28
%33 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %45
36: ; preds = %32, %28
%37 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%38 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%39 = call i32 @fget(i8* %38, i32 1024)
%40 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%41 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%42 = call i32 @sprintf(i8* %40, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* %41)
%43 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%44 = call i32 @system(i8* %43)
br label %45
45: ; preds = %36, %32
%46 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %53, label %49
49: ; preds = %45
%50 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %49, %45
%54 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.16, i64 0, i64 0))
%55 = call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0))
br label %56
56: ; preds = %53, %49
%57 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %64, label %60
60: ; preds = %56
%61 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %73
64: ; preds = %60, %56
%65 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
%66 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%67 = call i32 @fget(i8* %66, i32 1024)
%68 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%69 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%70 = call i32 @sprintf(i8* %68, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i8* %69)
%71 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%72 = call i32 @system(i8* %71)
br label %73
73: ; preds = %64, %60
%74 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %81, label %77
77: ; preds = %73
%78 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%79 = call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %77, %73
%82 = call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0))
br label %83
83: ; preds = %81, %77
%84 = load i32, i32* @EXIT_SUCCESS
ret i32 %84
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
@.str.6 = [10 x i8] c"send file\00"
@.str.7 = [2 x i8] c"1\00"
@.str.8 = [35 x i8] c"Enter the directory to the file : \00"
@.str.9 = [21 x i8] c"sudo irecovery -f %s\00"
@.str.10 = [13 x i8] c"send payload\00"
@.str.11 = [2 x i8] c"2\00"
@.str.12 = [36 x i8] c"Entrer the directory to the file : \00"
@.str.13 = [21 x i8] c"sudo irecovery -k %s\00"
@.str.14 = [7 x i8] c"reboot\00"
@.str.15 = [2 x i8] c"3\00"
@.str.17 = [18 x i8] c"sudo irecovery -n\00"
@.str.18 = [8 x i8] c"execute\00"
@.str.19 = [2 x i8] c"4\00"
@.str.20 = [21 x i8] c"sudo irecovery -e %s\00"
@.str.21 = [6 x i8] c"shell\00"
@.str.22 = [2 x i8] c"5\00"
@.str.23 = [18 x i8] c"sudo irecovery -s\00"
@EXIT_SUCCESS = global i32 0
@str = [24 x i8] c"1) Send file to device \00"
@str.24 = [37 x i8] c"2) Send limera1n USB exploit payload\00"
@str.25 = [48 x i8] c"3) Exit Recovery mode (Doesn't work on Windows)\00"
@str.26 = [27 x i8] c"4) Execute recovery script\00"
@str.27 = [30 x i8] c"5) Start an interactive shell\00"
@str.28 = [38 x i8] c"The device will exit recovery loop...\00"
define i32 @irecovery() {
%1 = alloca [80 x i8]
%2 = alloca [1024 x i8]
%3 = alloca [1024 x i8]
%4 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%7 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.27, i64 0, i64 0))
%13 = call i32 @fget(i8* %4, i32 80)
%14 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %0
%17 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %16, %0
%20 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
%21 = call i32 @fget(i8* %5, i32 1024)
%22 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i8* %5)
%23 = call i32 @system(i8* %6)
br label %24
24: ; preds = %19, %16
%25 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %35
30: ; preds = %27, %24
%31 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0))
%32 = call i32 @fget(i8* %5, i32 1024)
%33 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* %5)
%34 = call i32 @system(i8* %6)
br label %35
35: ; preds = %30, %27
%36 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %41, label %38
38: ; preds = %35
%39 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %38, %35
%42 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.28, i64 0, i64 0))
%43 = call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.17, i64 0, i64 0))
br label %44
44: ; preds = %41, %38
%45 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %50, label %47
47: ; preds = %44
%48 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %47, %44
%51 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
%52 = call i32 @fget(i8* %5, i32 1024)
%53 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i8* %5)
%54 = call i32 @system(i8* %6)
br label %55
55: ; preds = %50, %47
%56 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.21, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %61, label %58
58: ; preds = %55
%59 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %58, %55
%62 = call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0))
br label %63
63: ; preds = %61, %58
%64 = load i32, i32* @EXIT_SUCCESS
ret i32 %64
}