#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 */
typedef struct TYPE_4__ TYPE_1__;

/* Type definitions */
struct TYPE_4__ {
  int gl_pathc;
  char **gl_pathv;
  scalar_t__ gl_offs;
};
typedef TYPE_1__ glob_t;

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ GLOB_DOOFFS;
int WEXITSTATUS(int);
int /*<<< orphan*/ check_llstat();
int /*<<< orphan*/ exit(int);
scalar_t__ ferror(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ glob(char *, int /*<<< orphan*/, int /*<<< orphan*/ *, TYPE_1__ *);
int /*<<< orphan*/ globfree(TYPE_1__ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ scanf(char *, int *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ strcpy(char *, char *);
int system(char *);
char *get_path_stats(int with_llstat, char *stats_path) {
  glob_t stats_glob_buffer;
  int choice;
  char error = 0;
  int i;
  stats_glob_buffer.gl_offs = 0;
  if (glob("/proc/fs/lustre/llite/*", GLOB_DOOFFS, NULL, &stats_glob_buffer) !=
      0) {
    fprintf(stderr, "Error: Couldn't find /proc entry for "
                    "lustre\n");
    exit(1);
  }
  if (stats_glob_buffer.gl_pathc > 1 && with_llstat) {
    check_llstat();
    printf("Multiple lustre clients found, continuing... \n");
    do {
      if (error) {
        int ret;
        if ((ret = system("clear")) != 0) {
          ret = WEXITSTATUS(ret);
          printf("error excuting clear command: %d\n", ret);
          exit(ret);
        }
        fprintf(stderr, "Error: Please give correct "
                        "choice.\n");
      }
      printf("\t\tMenu.\n");
      for (i = 0; i < stats_glob_buffer.gl_pathc; i++)
        printf("\t\t%d. %s\n", i + 1, stats_glob_buffer.gl_pathv[i]);
      printf("\nEnter the lustre client number you want to "
             "use:");
      if (scanf(" %d", &choice) == EOF && ferror(stdin)) {
        perror("reading from stdin");
        exit(-1);
      }
      error++;
    } while (choice > stats_glob_buffer.gl_pathc || choice < 1);
    strcpy(stats_path, stats_glob_buffer.gl_pathv[choice - 1]);
  } else {
    strcpy(stats_path, stats_glob_buffer.gl_pathv[0]);
  }
  globfree(&stats_glob_buffer);
  return stats_path;
}


x86 assembly (clang, -O0):
<get_path_stats>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x0,-0x2d(%rbp)
movq   $0x0,-0x18(%rbp)
mov    0x2de6(%rip),%rax
mov    (%rax),%esi
lea    0xe15(%rip),%rdi
xor    %eax,%eax
mov    %eax,%edx
lea    -0x28(%rbp),%rcx
call   10d0 <glob@plt>
cmp    $0x0,%rax
je     1221 <get_path_stats+0x61>
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
lea    0xe06(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
cmpl   $0x1,-0x28(%rbp)
jle    139d <get_path_stats+0x1dd>
cmpl   $0x0,-0x4(%rbp)
je     139d <get_path_stats+0x1dd>
mov    $0x0,%al
call   1080 <check_llstat@plt>
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
cmpb   $0x0,-0x2d(%rbp)
je     12a5 <get_path_stats+0xe5>
lea    0xe19(%rip),%rdi
call   1060 <system@plt>
mov    %eax,-0x38(%rbp)
cmp    $0x0,%eax
je     1290 <get_path_stats+0xd0>
mov    -0x38(%rbp),%edi
call   10b0 <WEXITSTATUS@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%esi
lea    0xdf9(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x38(%rbp),%edi
call   10e0 <exit@plt>
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
lea    0xdfc(%rip),%rsi
call   1090 <fprintf@plt>
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    12f4 <get_path_stats+0x134>
mov    -0x34(%rbp),%esi
add    $0x1,%esi
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12ba <get_path_stats+0xfa>
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xdfb(%rip),%rdi
lea    -0x2c(%rbp),%rsi
call   10a0 <scanf@plt>
mov    0x2cc7(%rip),%rcx
cmp    (%rcx),%rax
jne    1350 <get_path_stats+0x190>
mov    0x2cbf(%rip),%rax
mov    (%rax),%edi
call   1050 <ferror@plt>
cmp    $0x0,%rax
je     1350 <get_path_stats+0x190>
lea    0xdc7(%rip),%rdi
call   10c0 <perror@plt>
mov    $0xffffffff,%edi
call   10e0 <exit@plt>
mov    -0x2d(%rbp),%al
add    $0x1,%al
mov    %al,-0x2d(%rbp)
mov    -0x2c(%rbp),%ecx
mov    $0x1,%al
cmp    -0x28(%rbp),%ecx
mov    %al,-0x39(%rbp)
jg     1373 <get_path_stats+0x1b3>
cmpl   $0x1,-0x2c(%rbp)
setl   %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
test   $0x1,%al
jne    124a <get_path_stats+0x8a>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
call   1040 <strcpy@plt>
jmp    13ad <get_path_stats+0x1ed>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
call   1040 <strcpy@plt>
lea    -0x28(%rbp),%rdi
call   1030 <globfree@plt>
mov    -0x10(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_path_stats>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbp
mov    %edi,%ebx
movq   $0x0,0x18(%rsp)
mov    0x2dd5(%rip),%rax
mov    (%rax),%esi
lea    0xe04(%rip),%rdi
lea    0x8(%rsp),%rcx
xor    %edx,%edx
call   10e0 <glob@plt>
test   %rax,%rax
jne    1394 <get_path_stats+0x1c4>
test   %ebx,%ebx
je     1332 <get_path_stats+0x162>
cmpl   $0x2,0x8(%rsp)
jl     1332 <get_path_stats+0x162>
mov    %rbp,0x20(%rsp)
xor    %eax,%eax
call   1090 <check_llstat@plt>
lea    0xeac(%rip),%rdi
call   1050 <puts@plt>
lea    0xe4e(%rip),%rbx
lea    0xe82(%rip),%r13
lea    0x4(%rsp),%rbp
mov    0x2d8a(%rip),%r15
xor    %r12d,%r12d
nopl   0x0(%rax)
test   %r12b,%r12b
je     128e <get_path_stats+0xbe>
lea    0xdd9(%rip),%rdi
call   1070 <system@plt>
test   %eax,%eax
jne    135e <get_path_stats+0x18e>
mov    0x2d50(%rip),%rax
mov    (%rax),%edi
lea    0xde4(%rip),%rsi
call   10a0 <fprintf@plt>
lea    0xe7c(%rip),%rdi
call   1050 <puts@plt>
cmpl   $0x0,0x8(%rsp)
jle    12d4 <get_path_stats+0x104>
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x10(%rsp),%rax
mov    (%rax,%r14,8),%rdx
add    $0x1,%r14
mov    %rbx,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1080 <printf@plt>
movslq 0x8(%rsp),%rax
cmp    %rax,%r14
jl     12b0 <get_path_stats+0xe0>
lea    0xdc0(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
call   10b0 <scanf@plt>
cmp    (%r15),%rax
jne    1305 <get_path_stats+0x135>
mov    0x2cef(%rip),%rax
mov    (%rax),%edi
call   1060 <ferror@plt>
test   %rax,%rax
jne    137e <get_path_stats+0x1ae>
add    $0x1,%r12b
mov    0x4(%rsp),%eax
test   %eax,%eax
jle    1260 <get_path_stats+0x90>
cmp    0x8(%rsp),%eax
jg     1260 <get_path_stats+0x90>
add    $0xffffffff,%eax
shl    $0x3,%rax
add    0x10(%rsp),%rax
mov    0x20(%rsp),%rbp
jmp    1337 <get_path_stats+0x167>
mov    0x10(%rsp),%rax
mov    (%rax),%rsi
mov    %rbp,%rdi
call   1040 <strcpy@plt>
lea    0x8(%rsp),%rdi
call   1030 <globfree@plt>
mov    %rbp,%rax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %eax,%edi
call   10c0 <WEXITSTATUS@plt>
mov    %eax,%ebx
lea    0xcdd(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %ebx,%edi
call   10f0 <exit@plt>
lea    0xd4b(%rip),%rdi
call   10d0 <perror@plt>
mov    $0xffffffff,%edi
call   10f0 <exit@plt>
mov    0x2c35(%rip),%rax
mov    (%rax),%edi
lea    0xc74(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
%struct.TYPE_4__ = type { i32, i8**, i64 }
@.str = [24 x i8] c"/proc/fs/lustre/llite/*\00"
@GLOB_DOOFFS = global i32 0
@stderr = global i32 0
@.str.1 = [45 x i8] c"Error: Couldn't find /proc entry for lustre\0A\00"
@.str.2 = [47 x i8] c"Multiple lustre clients found, continuing... \0A\00"
@.str.3 = [6 x i8] c"clear\00"
@.str.4 = [34 x i8] c"error excuting clear command: %d\0A\00"
@.str.5 = [36 x i8] c"Error: Please give correct choice.\0A\00"
@.str.6 = [9 x i8] c"\09\09Menu.\0A\00"
@.str.7 = [10 x i8] c"\09\09%d. %s\0A\00"
@.str.8 = [49 x i8] c"\0AEnter the lustre client number you want to use:\00"
@.str.9 = [4 x i8] c" %d\00"
@EOF = global i64 0
@stdin = global i32 0
@.str.10 = [19 x i8] c"reading from stdin\00"
define i8* @get_path_stats(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca %struct.TYPE_4__
%6 = alloca i32
%7 = alloca i8
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %3
store i8* %1, i8** %4
store i8 0, i8* %7
%10 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %5, i32 0, i32 2
store i64 0, i64* %10
%11 = load i32, i32* @GLOB_DOOFFS
%12 = call i64 @glob(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %11, i32* null, %struct.TYPE_4__* %5)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 @exit(i32 1)
unreachable
18: ; preds = %2
%19 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %5, i32 0, i32 0
%20 = load i32, i32* %19
%21 = icmp sgt i32 %20, 1
br i1 %21, label %22, label %99
22: ; preds = %18
%23 = load i32, i32* %3
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %99
25: ; preds = %22
%26 = call i32 (...) @check_llstat()
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
br label %28
28: ; preds = %87, %25
%29 = load i8, i8* %7
%30 = icmp ne i8 %29, 0
br i1 %30, label %31, label %44
31: ; preds = %28
%32 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
store i32 %32, i32* %9
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %41
34: ; preds = %31
%35 = load i32, i32* %9
%36 = call i32 @WEXITSTATUS(i32 %35)
store i32 %36, i32* %9
%37 = load i32, i32* %9
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 %37)
%39 = load i32, i32* %9
%40 = call i32 @exit(i32 %39)
unreachable
41: ; preds = %31
%42 = load i32, i32* @stderr
%43 = call i32 @fprintf(i32 %42, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
br label %44
44: ; preds = %41, %28
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %8
br label %46
46: ; preds = %61, %44
%47 = load i32, i32* %8
%48 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %5, i32 0, i32 0
%49 = load i32, i32* %48
%50 = icmp slt i32 %47, %49
br i1 %50, label %51, label %64
51: ; preds = %46
%52 = load i32, i32* %8
%53 = add nsw i32 %52, 1
%54 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %5, i32 0, i32 1
%55 = load i8**, i8*** %54
%56 = load i32, i32* %8
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8*, i8** %55, i64 %57
%59 = load i8*, i8** %58
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %53, i8* %59)
br label %61
61: ; preds = %51
%62 = load i32, i32* %8
%63 = add nsw i32 %62, 1
store i32 %63, i32* %8
br label %46
64: ; preds = %46
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0))
%66 = call i64 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32* %6)
%67 = load i64, i64* @EOF
%68 = icmp eq i64 %66, %67
br i1 %68, label %69, label %76
69: ; preds = %64
%70 = load i32, i32* @stdin
%71 = call i64 @ferror(i32 %70)
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %76
73: ; preds = %69
%74 = call i32 @perror(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%75 = call i32 @exit(i32 -1)
unreachable
76: ; preds = %69, %64
%77 = load i8, i8* %7
%78 = add i8 %77, 1
store i8 %78, i8* %7
br label %79
79: ; preds = %76
%80 = load i32, i32* %6
%81 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %5, i32 0, i32 0
%82 = load i32, i32* %81
%83 = icmp sgt i32 %80, %82
br i1 %83, label %87, label %84
84: ; preds = %79
%85 = load i32, i32* %6
%86 = icmp slt i32 %85, 1
br label %87
87: ; preds = %84, %79
%88 = phi i1 [ true, %79 ], [ %86, %84 ]
br i1 %88, label %28, label %89
89: ; preds = %87
%90 = load i8*, i8** %4
%91 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %5, i32 0, i32 1
%92 = load i8**, i8*** %91
%93 = load i32, i32* %6
%94 = sub nsw i32 %93, 1
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i8*, i8** %92, i64 %95
%97 = load i8*, i8** %96
%98 = call i32 @strcpy(i8* %90, i8* %97)
br label %106
99: ; preds = %22, %18
%100 = load i8*, i8** %4
%101 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %5, i32 0, i32 1
%102 = load i8**, i8*** %101
%103 = getelementptr inbounds i8*, i8** %102, i64 0
%104 = load i8*, i8** %103
%105 = call i32 @strcpy(i8* %100, i8* %104)
br label %106
106: ; preds = %99, %89
%107 = call i32 @globfree(%struct.TYPE_4__* %5)
%108 = load i8*, i8** %4
ret i8* %108
}

LLVM IR (-O2):
%struct.TYPE_4__ = type { i32, i8**, i64 }
@.str = [24 x i8] c"/proc/fs/lustre/llite/*\00"
@GLOB_DOOFFS = global i32 0
@stderr = global i32 0
@.str.1 = [45 x i8] c"Error: Couldn't find /proc entry for lustre\0A\00"
@.str.3 = [6 x i8] c"clear\00"
@.str.4 = [34 x i8] c"error excuting clear command: %d\0A\00"
@.str.5 = [36 x i8] c"Error: Please give correct choice.\0A\00"
@.str.7 = [10 x i8] c"\09\09%d. %s\0A\00"
@.str.8 = [49 x i8] c"\0AEnter the lustre client number you want to use:\00"
@.str.9 = [4 x i8] c" %d\00"
@EOF = global i64 0
@stdin = global i32 0
@.str.10 = [19 x i8] c"reading from stdin\00"
@str = [46 x i8] c"Multiple lustre clients found, continuing... \00"
@str.11 = [8 x i8] c"\09\09Menu.\00"
define i8* @get_path_stats(i32 %0, i8* returned %1) {
%3 = alloca %struct.TYPE_4__
%4 = alloca i32
%5 = bitcast %struct.TYPE_4__* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %3, i64 0, i32 2
store i64 0, i64* %7
%8 = load i32, i32* @GLOB_DOOFFS
%9 = call i64 @glob(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %8, i32* null, %struct.TYPE_4__* %3)
%10 = icmp eq i64 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
15: ; preds = %2
%16 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %3, i64 0, i32 0
%17 = load i32, i32* %16
%18 = icmp sgt i32 %17, 1
%19 = icmp ne i32 %0, 0
%20 = and i1 %19, %18
br i1 %20, label %21, label %77
21: ; preds = %15
%22 = call i32 (...) @check_llstat()
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
%24 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %3, i64 0, i32 1
br label %25
25: ; preds = %65, %21
%26 = phi i8 [ 0, %21 ], [ %66, %65 ]
%27 = icmp eq i8 %26, 0
br i1 %27, label %38, label %28
28: ; preds = %25
%29 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %35, label %31
31: ; preds = %28
%32 = call i32 @WEXITSTATUS(i32 %29)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 %32)
%34 = call i32 @exit(i32 %32)
unreachable
35: ; preds = %28
%36 = load i32, i32* @stderr
%37 = call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
br label %38
38: ; preds = %35, %25
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.11, i64 0, i64 0))
%40 = load i32, i32* %16
%41 = icmp sgt i32 %40, 0
br i1 %41, label %42, label %53
42: ; preds = %38, %42
%43 = phi i64 [ %44, %42 ], [ 0, %38 ]
%44 = add nuw nsw i64 %43, 1
%45 = load i8**, i8*** %24
%46 = getelementptr inbounds i8*, i8** %45, i64 %43
%47 = load i8*, i8** %46
%48 = trunc i64 %44 to i32
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %48, i8* %47)
%50 = load i32, i32* %16
%51 = sext i32 %50 to i64
%52 = icmp slt i64 %44, %51
br i1 %52, label %42, label %53
53: ; preds = %42, %38
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0))
%55 = call i64 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32* %4)
%56 = load i64, i64* @EOF
%57 = icmp eq i64 %55, %56
br i1 %57, label %58, label %65
58: ; preds = %53
%59 = load i32, i32* @stdin
%60 = call i64 @ferror(i32 %59)
%61 = icmp eq i64 %60, 0
br i1 %61, label %65, label %62
62: ; preds = %58
%63 = call i32 @perror(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%64 = call i32 @exit(i32 -1)
unreachable
65: ; preds = %58, %53
%66 = add i8 %26, 1
%67 = load i32, i32* %4
%68 = load i32, i32* %16
%69 = icmp sgt i32 %67, %68
%70 = icmp slt i32 %67, 1
%71 = or i1 %70, %69
br i1 %71, label %25, label %72
72: ; preds = %65
%73 = load i8**, i8*** %24
%74 = add nsw i32 %67, -1
%75 = zext i32 %74 to i64
%76 = getelementptr inbounds i8*, i8** %73, i64 %75
br label %80
77: ; preds = %15
%78 = getelementptr inbounds %struct.TYPE_4__, %struct.TYPE_4__* %3, i64 0, i32 1
%79 = load i8**, i8*** %78
br label %80
80: ; preds = %77, %72
%81 = phi i8** [ %79, %77 ], [ %76, %72 ]
%82 = load i8*, i8** %81
%83 = call i32 @strcpy(i8* %1, i8* %82)
%84 = call i32 @globfree(%struct.TYPE_4__* %3)
ret i8* %1
}