#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 */
struct dirent {
  int /*<<< orphan*/ d_name;
};
typedef int /*<<< orphan*/ DIR;

/* Variables and functions */
int /*<<< orphan*/ closedir(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ *opendir(char *);
int /*<<< orphan*/ perror(char *);
struct dirent *readdir(int /*<<< orphan*/ *);
int /*<<< orphan*/ sprintf(char *, char *, int);
int sscanf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int dump_get_num(char *dumpdir, int mode) {
  DIR *dir = NULL;
  struct dirent *dir_ent;
  int dump_found = 0;
  int rc = 0;
  dir = opendir(dumpdir);
  if (!dir) {
    {
      fprintf(stderr, "ERROR: ");
      fprintf(stderr, "Cannot evalute dump number\n");
      perror("");
    };
    rc = -2;
    goto out;
  }
  while ((dir_ent = readdir(dir))) {
    int num;
    if (sscanf(dir_ent->d_name, "dump.%ui", &num) == 1) {
      char suffix1[1024] = {0};
      char suffix2[1024] = {0};
      sscanf(dir_ent->d_name, "dump.%s", suffix1);
      sprintf(suffix2, "%i", num);
      if (strcmp(suffix1, suffix2) != 0) {
        continue;
      }
      if (num < 0) {
        continue;
      }
      if (!dump_found) {
        dump_found = 1;
        rc = num;
      } else if (mode == 1) {
        rc = ((num) > (rc) ? (num) : (rc));
      } else if (mode == 0) {
        rc = ((num) < (rc) ? (num) : (rc));
      } else {
        {
          fprintf(stderr, "ERROR: ");
          fprintf(stderr, "BUG in %s:%d (unknown mode: %d)\n",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/afaerber/s390-tools/refs/"
                  "heads/master/zfcpdump/ramdisk/zfcp_dumper.c",
                  958, mode);
        };
        rc = -3;
        goto out;
      }
    }
  }
  if (!dump_found)
    rc = -1;
out:
  if (dir)
    closedir(dir);
  return rc;
}


x86 assembly (clang, -O0):
<dump_get_num>:
push   %rbp
mov    %rsp,%rbp
sub    $0x840,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movq   $0x0,-0x18(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <opendir@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1216 <dump_get_num+0x86>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
lea    0xe20(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2df2(%rip),%rax
mov    (%rax),%edi
lea    0xe11(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
lea    0xe53(%rip),%rdi
call   10a0 <perror@plt>
movl   $0xfffffffe,-0x28(%rbp)
jmp    13e1 <dump_get_num+0x251>
jmp    121b <dump_get_num+0x8b>
mov    -0x18(%rbp),%rdi
call   1080 <readdir@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     13cb <dump_get_num+0x23b>
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
lea    0xde5(%rip),%rsi
lea    -0x2c(%rbp),%rdx
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x1,%eax
jne    13c6 <dump_get_num+0x236>
lea    -0x430(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1040 <memset@plt>
lea    -0x830(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1040 <memset@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%edi
lea    -0x430(%rbp),%rdx
lea    0xda0(%rip),%rsi
mov    $0x0,%al
call   1090 <sscanf@plt>
lea    -0x830(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xd90(%rip),%rsi
call   10b0 <sprintf@plt>
lea    -0x430(%rbp),%rdi
lea    -0x830(%rbp),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     12cc <dump_get_num+0x13c>
jmp    121b <dump_get_num+0x8b>
cmpl   $0x0,-0x2c(%rbp)
jge    12db <dump_get_num+0x14b>
jmp    121b <dump_get_num+0x8b>
cmpl   $0x0,-0x24(%rbp)
jne    12f7 <dump_get_num+0x167>
movl   $0x1,-0x24(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    13c1 <dump_get_num+0x231>
cmpl   $0x1,-0xc(%rbp)
jne    1332 <dump_get_num+0x1a2>
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jle    131b <dump_get_num+0x18b>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x834(%rbp)
jmp    1324 <dump_get_num+0x194>
mov    -0x28(%rbp),%eax
mov    %eax,-0x834(%rbp)
mov    -0x834(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    13bc <dump_get_num+0x22c>
cmpl   $0x0,-0xc(%rbp)
jne    136d <dump_get_num+0x1dd>
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    1356 <dump_get_num+0x1c6>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x838(%rbp)
jmp    135f <dump_get_num+0x1cf>
mov    -0x28(%rbp),%eax
mov    %eax,-0x838(%rbp)
mov    -0x838(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    13b7 <dump_get_num+0x227>
mov    0x2c6c(%rip),%rax
mov    (%rax),%edi
lea    0xc83(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2c55(%rip),%rax
mov    (%rax),%edi
mov    -0xc(%rbp),%r8d
lea    0xca0(%rip),%rsi
lea    0xcba(%rip),%rdx
mov    $0x3be,%ecx
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0xfffffffd,-0x28(%rbp)
jmp    13e1 <dump_get_num+0x251>
jmp    13bc <dump_get_num+0x22c>
jmp    13c1 <dump_get_num+0x231>
jmp    13c6 <dump_get_num+0x236>
jmp    121b <dump_get_num+0x8b>
cmpl   $0x0,-0x24(%rbp)
jne    13dc <dump_get_num+0x24c>
movl   $0xffffffff,-0x28(%rbp)
jmp    13e1 <dump_get_num+0x251>
cmpq   $0x0,-0x18(%rbp)
je     13f5 <dump_get_num+0x265>
mov    -0x18(%rbp),%rdi
call   1050 <closedir@plt>
mov    -0x28(%rbp),%eax
add    $0x840,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_get_num>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x818,%rsp
mov    %esi,%ebp
call   1030 <opendir@plt>
test   %rax,%rax
je     12f9 <dump_get_num+0x169>
mov    %rax,%rbx
mov    %rax,%rdi
call   1080 <readdir@plt>
test   %rax,%rax
je     12d8 <dump_get_num+0x148>
mov    %rax,%r13
mov    %ebp,0x8(%rsp)
lea    0xe51(%rip),%r15
lea    0xc(%rsp),%r12
lea    0x410(%rsp),%rbp
lea    0x10(%rsp),%r14
movl   $0x0,(%rsp)
movl   $0x0,0x4(%rsp)
jmp    1224 <dump_get_num+0x94>
movl   $0x1,0x4(%rsp)
mov    %eax,(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1080 <readdir@plt>
mov    %rax,%r13
test   %rax,%rax
je     12ce <dump_get_num+0x13e>
mov    0x0(%r13),%edi
mov    %r15,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1090 <sscanf@plt>
cmp    $0x1,%eax
jne    1210 <dump_get_num+0x80>
mov    $0x400,%edx
mov    %rbp,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
mov    $0x400,%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1040 <memset@plt>
mov    0x0(%r13),%edi
lea    0xdca(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1090 <sscanf@plt>
mov    0xc(%rsp),%edx
mov    %r14,%rdi
lea    0xdba(%rip),%rsi
call   10b0 <sprintf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    1210 <dump_get_num+0x80>
mov    0xc(%rsp),%eax
test   %eax,%eax
js     1210 <dump_get_num+0x80>
cmpl   $0x0,0x4(%rsp)
je     11f6 <dump_get_num+0x66>
mov    0x8(%rsp),%ecx
test   %ecx,%ecx
je     12c1 <dump_get_num+0x131>
cmp    $0x1,%ecx
jne    1333 <dump_get_num+0x1a3>
mov    (%rsp),%ecx
cmp    %ecx,%eax
cmovle %ecx,%eax
jmp    11fe <dump_get_num+0x6e>
mov    (%rsp),%ecx
cmp    %ecx,%eax
cmovge %ecx,%eax
jmp    11fe <dump_get_num+0x6e>
cmpl   $0x0,0x4(%rsp)
mov    (%rsp),%ebp
jne    12dd <dump_get_num+0x14d>
mov    $0xffffffff,%ebp
mov    %rbx,%rdi
call   1050 <closedir@plt>
mov    %ebp,%eax
add    $0x818,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2ce0(%rip),%rbx
mov    (%rbx),%edi
lea    0xcf7(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    (%rbx),%edi
lea    0xcef(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
lea    0xd31(%rip),%rdi
call   10a0 <perror@plt>
mov    $0xfffffffe,%ebp
jmp    12e5 <dump_get_num+0x155>
mov    0x2ca6(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xcbc(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xce3(%rip),%rsi
lea    0xcfd(%rip),%rdx
mov    $0x3be,%ecx
mov    0x8(%rsp),%r8d
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0xfffffffd,%ebp
jmp    12dd <dump_get_num+0x14d>

LLVM IR (-O0):
%struct.dirent = type { i32 }
@stderr = global i32 0
@.str = [8 x i8] c"ERROR: \00"
@.str.1 = [28 x i8] c"Cannot evalute dump number\0A\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [9 x i8] c"dump.%ui\00"
@.str.4 = [8 x i8] c"dump.%s\00"
@.str.5 = [3 x i8] c"%i\00"
@.str.6 = [33 x i8] c"BUG in %s:%d (unknown mode: %d)\0A\00"
@.str.7 = [159 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/afaerber/s390-tools/refs/heads/master/zfcpdump/ramdisk/zfcp_dumper.c\00"
define i32 @dump_get_num(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32*
%6 = alloca %struct.dirent*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca [1024 x i8]
%11 = alloca [1024 x i8]
store i8* %0, i8** %3
store i32 %1, i32* %4
store i32* null, i32** %5
store i32 0, i32* %7
store i32 0, i32* %8
%12 = load i8*, i8** %3
%13 = call i32* @opendir(i8* %12)
store i32* %13, i32** %5
%14 = load i32*, i32** %5
%15 = icmp ne i32* %14, null
br i1 %15, label %22, label %16
16: ; preds = %2
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 @perror(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
store i32 -2, i32* %8
br label %99
22: ; preds = %2
br label %23
23: ; preds = %93, %52, %48, %22
%24 = load i32*, i32** %5
%25 = call %struct.dirent* @readdir(i32* %24)
store %struct.dirent* %25, %struct.dirent** %6
%26 = icmp ne %struct.dirent* %25, null
br i1 %26, label %27, label %94
27: ; preds = %23
%28 = load %struct.dirent*, %struct.dirent** %6
%29 = getelementptr inbounds %struct.dirent, %struct.dirent* %28, i32 0, i32 0
%30 = load i32, i32* %29
%31 = call i32 (i32, i8*, ...) @sscanf(i32 %30, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32* %9)
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %93
33: ; preds = %27
%34 = bitcast [1024 x i8]* %10 to i8*
%35 = bitcast [1024 x i8]* %11 to i8*
%36 = load %struct.dirent*, %struct.dirent** %6
%37 = getelementptr inbounds %struct.dirent, %struct.dirent* %36, i32 0, i32 0
%38 = load i32, i32* %37
%39 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%40 = call i32 (i32, i8*, ...) @sscanf(i32 %38, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %39)
%41 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%42 = load i32, i32* %9
%43 = call i32 @sprintf(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %42)
%44 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%45 = getelementptr inbounds [1024 x i8], [1024 x i8]* %11, i64 0, i64 0
%46 = call i64 @strcmp(i8* %44, i8* %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %33
br label %23
49: ; preds = %33
%50 = load i32, i32* %9
%51 = icmp slt i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %49
br label %23
53: ; preds = %49
%54 = load i32, i32* %7
%55 = icmp ne i32 %54, 0
br i1 %55, label %58, label %56
56: ; preds = %53
store i32 1, i32* %7
%57 = load i32, i32* %9
store i32 %57, i32* %8
br label %92
58: ; preds = %53
%59 = load i32, i32* %4
%60 = icmp eq i32 %59, 1
br i1 %60, label %61, label %71
61: ; preds = %58
%62 = load i32, i32* %9
%63 = load i32, i32* %8
%64 = icmp sgt i32 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = load i32, i32* %9
br label %69
67: ; preds = %61
%68 = load i32, i32* %8
br label %69
69: ; preds = %67, %65
%70 = phi i32 [ %66, %65 ], [ %68, %67 ]
store i32 %70, i32* %8
br label %91
71: ; preds = %58
%72 = load i32, i32* %4
%73 = icmp eq i32 %72, 0
br i1 %73, label %74, label %84
74: ; preds = %71
%75 = load i32, i32* %9
%76 = load i32, i32* %8
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = load i32, i32* %9
br label %82
80: ; preds = %74
%81 = load i32, i32* %8
br label %82
82: ; preds = %80, %78
%83 = phi i32 [ %79, %78 ], [ %81, %80 ]
store i32 %83, i32* %8
br label %90
84: ; preds = %71
%85 = load i32, i32* @stderr
%86 = call i32 (i32, i8*, ...) @fprintf(i32 %85, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%87 = load i32, i32* @stderr
%88 = load i32, i32* %4
%89 = call i32 (i32, i8*, ...) @fprintf(i32 %87, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.7, i64 0, i64 0), i32 958, i32 %88)
store i32 -3, i32* %8
br label %99
90: ; preds = %82
br label %91
91: ; preds = %90, %69
br label %92
92: ; preds = %91, %56
br label %93
93: ; preds = %92, %27
br label %23
94: ; preds = %23
%95 = load i32, i32* %7
%96 = icmp ne i32 %95, 0
br i1 %96, label %98, label %97
97: ; preds = %94
store i32 -1, i32* %8
br label %98
98: ; preds = %97, %94
br label %99
99: ; preds = %98, %84, %16
%100 = load i32*, i32** %5
%101 = icmp ne i32* %100, null
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load i32*, i32** %5
%104 = call i32 @closedir(i32* %103)
br label %105
105: ; preds = %102, %99
%106 = load i32, i32* %8
ret i32 %106
}

LLVM IR (-O2):
%struct.dirent = type { i32 }
@stderr = global i32 0
@.str = [8 x i8] c"ERROR: \00"
@.str.1 = [28 x i8] c"Cannot evalute dump number\0A\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [9 x i8] c"dump.%ui\00"
@.str.4 = [8 x i8] c"dump.%s\00"
@.str.5 = [3 x i8] c"%i\00"
@.str.6 = [33 x i8] c"BUG in %s:%d (unknown mode: %d)\0A\00"
@.str.7 = [159 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/afaerber/s390-tools/refs/heads/master/zfcpdump/ramdisk/zfcp_dumper.c\00"
define i32 @dump_get_num(i8* nocapture %0, i32 %1) {
%3 = alloca i32
%4 = alloca [1024 x i8]
%5 = alloca [1024 x i8]
%6 = tail call i32* @opendir(i8* %0)
%7 = icmp eq i32* %6, null
br i1 %7, label %15, label %8
8: ; preds = %2
%9 = call %struct.dirent* @readdir(i32* %6)
%10 = icmp eq %struct.dirent* %9, null
br i1 %10, label %62, label %11
11: ; preds = %8
%12 = bitcast i32* %3 to i8*
%13 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
br label %21
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%20 = tail call i32 @perror(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
br label %71
21: ; preds = %11, %55
%22 = phi %struct.dirent* [ %9, %11 ], [ %58, %55 ]
%23 = phi i32 [ 0, %11 ], [ %56, %55 ]
%24 = phi i32 [ 0, %11 ], [ %57, %55 ]
%25 = getelementptr inbounds %struct.dirent, %struct.dirent* %22, i64 0, i32 0
%26 = load i32, i32* %25
%27 = call i32 (i32, i8*, ...) @sscanf(i32 %26, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %51
29: ; preds = %21
%30 = load i32, i32* %25
%31 = call i32 (i32, i8*, ...) @sscanf(i32 %30, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %13)
%32 = load i32, i32* %3
%33 = call i32 @sprintf(i8* %14, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 %32)
%34 = call i64 @strcmp(i8* %13, i8* %14)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %54
36: ; preds = %29
%37 = load i32, i32* %3
%38 = icmp slt i32 %37, 0
br i1 %38, label %54, label %39
39: ; preds = %36
%40 = icmp eq i32 %24, 0
br i1 %40, label %48, label %41
41: ; preds = %39
switch i32 %1, label %63 [
i32 1, label %42
i32 0, label %45
]
42: ; preds = %41
%43 = icmp sgt i32 %37, %23
%44 = select i1 %43, i32 %37, i32 %23
br label %48
45: ; preds = %41
%46 = icmp slt i32 %37, %23
%47 = select i1 %46, i32 %37, i32 %23
br label %48
48: ; preds = %39, %42, %45
%49 = phi i32 [ 1, %39 ], [ %24, %45 ], [ %24, %42 ]
%50 = phi i32 [ %37, %39 ], [ %47, %45 ], [ %44, %42 ]
br label %51
51: ; preds = %21, %48
%52 = phi i32 [ %49, %48 ], [ %24, %21 ]
%53 = phi i32 [ %50, %48 ], [ %23, %21 ]
br label %55
54: ; preds = %29, %36
br label %55
55: ; preds = %54, %51
%56 = phi i32 [ %53, %51 ], [ %23, %54 ]
%57 = phi i32 [ %52, %51 ], [ %24, %54 ]
%58 = call %struct.dirent* @readdir(i32* %6)
%59 = icmp eq %struct.dirent* %58, null
br i1 %59, label %60, label %21
60: ; preds = %55
%61 = icmp eq i32 %57, 0
br i1 %61, label %62, label %68
62: ; preds = %8, %60
br label %68
63: ; preds = %41
%64 = load i32, i32* @stderr
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%66 = load i32, i32* @stderr
%67 = call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([159 x i8], [159 x i8]* @.str.7, i64 0, i64 0), i32 958, i32 %1)
br label %68
68: ; preds = %63, %60, %62
%69 = phi i32 [ -3, %63 ], [ -1, %62 ], [ %56, %60 ]
%70 = call i32 @closedir(i32* %6)
br label %71
71: ; preds = %15, %68
%72 = phi i32 [ %69, %68 ], [ -2, %15 ]
ret i32 %72
}