#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int _POSIX_PATH_MAX;
int atoi(char *);
int /*<<< orphan*/ errno;
int fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
char *strerror(int /*<<< orphan*/);
int unlink(char *);
int main(int argc, char *argv[]) {
  char filename[_POSIX_PATH_MAX];
  int success, max, i;
  FILE *file;
  if (argc != 2) {
    fprintf(stderr, "Use: %s <number-of-files>\n", argv[0]);
    fprintf(stdout, "FAILURE\n");
    return -1;
  }
  max = atoi(argv[1]);
  for (i = 0; i < max; i++) {
    sprintf(filename, "temp.%d", i);
    file = fopen(filename, "w+");
    if (!file) {
      fprintf(stderr, "Couldn't open %s: %s\n", filename, strerror(errno));
      fprintf(stdout, "FAILURE\n");
      return -1;
    }
    success = fprintf(file, "This is file %d\n", i);
    if (success < 0) {
      fprintf(stderr, "Couldn't print to %s: %s\n", filename, strerror(errno));
      fprintf(stdout, "FAILURE\n");
      return -1;
    }
    success = fclose(file);
    if (success != 0) {
      fprintf(stderr, "Couldn't close %s: %s\n", filename, strerror(errno));
      fprintf(stdout, "FAILURE\n");
      return -1;
    }
    success = unlink(filename);
    if (success == -1) {
      fprintf(stderr, "Couldn't unlink %s: %s\n", filename, strerror(errno));
      fprintf(stdout, "FAILURE\n");
      return -1;
    }
  }
  fprintf(stdout, "SUCCESS\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e6b(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x18(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x20(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1204 <main+0x94>
mov    0x2e15(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe2d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2de7(%rip),%rax
mov    (%rax),%edi
lea    0xe31(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x3c(%rbp)
jmp    1451 <main+0x2e1>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    142c <main+0x2bc>
mov    -0x48(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xdef(%rip),%rsi
call   1080 <sprintf@plt>
mov    -0x48(%rbp),%rdi
lea    0xde7(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    12b5 <main+0x145>
mov    0x2d78(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    0x2d64(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x4c(%rbp),%edi
mov    -0x48(%rbp),%rdx
mov    %rax,%rcx
lea    0xdab(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
lea    0xd80(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x3c(%rbp)
jmp    1451 <main+0x2e1>
mov    -0x38(%rbp),%rax
mov    %eax,%edi
mov    -0x2c(%rbp),%edx
lea    0xd80(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jge    1335 <main+0x1c5>
mov    0x2cf8(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x50(%rbp)
mov    0x2ce4(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x50(%rbp),%edi
mov    -0x48(%rbp),%rdx
mov    %rax,%rcx
lea    0xd52(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2cb6(%rip),%rax
mov    (%rax),%edi
lea    0xd00(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x3c(%rbp)
jmp    1451 <main+0x2e1>
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     13a7 <main+0x237>
mov    0x2c86(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x54(%rbp)
mov    0x2c72(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x54(%rbp),%edi
mov    -0x48(%rbp),%rdx
mov    %rax,%rcx
lea    0xcfa(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2c44(%rip),%rax
mov    (%rax),%edi
lea    0xc8e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x3c(%rbp)
jmp    1451 <main+0x2e1>
mov    -0x48(%rbp),%rdi
call   1030 <unlink@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0xffffffff,-0x24(%rbp)
jne    1419 <main+0x2a9>
mov    0x2c14(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x58(%rbp)
mov    0x2c00(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x58(%rbp),%edi
mov    -0x48(%rbp),%rdx
mov    %rax,%rcx
lea    0xc9f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2bd2(%rip),%rax
mov    (%rax),%edi
lea    0xc1c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
movl   $0x1,-0x3c(%rbp)
jmp    1451 <main+0x2e1>
jmp    141e <main+0x2ae>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    121b <main+0xab>
mov    0x2b95(%rip),%rax
mov    (%rax),%edi
lea    0xc63(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    0x2e73(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
cmp    $0x2,%edi
jne    124d <main+0xdd>
mov    0x8(%rsi),%rdi
call   1070 <atoi@plt>
test   %eax,%eax
jle    122f <main+0xbf>
mov    %eax,%r14d
lea    0xe70(%rip),%r12
xor    %r13d,%r13d
nop
mov    %rbx,%rdi
lea    0xe5a(%rip),%rsi
mov    %r13d,%edx
call   1080 <sprintf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     126c <main+0xfc>
mov    %rax,%r15
mov    %r15d,%edi
lea    0xe52(%rip),%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
test   %eax,%eax
js     128d <main+0x11d>
mov    %r15,%rdi
call   1040 <fclose@plt>
test   %eax,%eax
jne    12ae <main+0x13e>
mov    %rbx,%rdi
call   1030 <unlink@plt>
cmp    $0xffffffff,%eax
je     12cf <main+0x15f>
add    $0x1,%r13d
cmp    %r13d,%r14d
jne    11c0 <main+0x50>
mov    0x2d92(%rip),%rax
mov    (%rax),%edi
lea    0xe60(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    131a <main+0x1aa>
mov    0x2d84(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xda0(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    12fe <main+0x18e>
mov    0x2d65(%rip),%rax
mov    (%rax),%r14d
mov    0x2d53(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xda4(%rip),%rsi
jmp    12ee <main+0x17e>
mov    0x2d44(%rip),%rax
mov    (%rax),%r14d
mov    0x2d32(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xdaa(%rip),%rsi
jmp    12ee <main+0x17e>
mov    0x2d23(%rip),%rax
mov    (%rax),%r14d
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xda3(%rip),%rsi
jmp    12ee <main+0x17e>
mov    0x2d02(%rip),%rax
mov    (%rax),%r14d
mov    0x2cf0(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xd99(%rip),%rsi
mov    %r14d,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x2cc3(%rip),%rax
mov    (%rax),%edi
lea    0xd0d(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@_POSIX_PATH_MAX = global i32 0
@stderr = global i32 0
@.str = [27 x i8] c"Use: %s <number-of-files>\0A\00"
@stdout = global i32 0
@.str.1 = [9 x i8] c"FAILURE\0A\00"
@.str.2 = [8 x i8] c"temp.%d\00"
@.str.3 = [3 x i8] c"w+\00"
@.str.4 = [22 x i8] c"Couldn't open %s: %s\0A\00"
@errno = global i32 0
@.str.5 = [17 x i8] c"This is file %d\0A\00"
@.str.6 = [26 x i8] c"Couldn't print to %s: %s\0A\00"
@.str.7 = [23 x i8] c"Couldn't close %s: %s\0A\00"
@.str.8 = [24 x i8] c"Couldn't unlink %s: %s\0A\00"
@.str.9 = [9 x i8] c"SUCCESS\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32*
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* @_POSIX_PATH_MAX
%14 = zext i32 %13 to i64
%15 = call i8* @llvm.stacksave()
store i8* %15, i8** %6
%16 = alloca i8, i64 %14
store i64 %14, i64* %7
%17 = load i32, i32* %4
%18 = icmp ne i32 %17, 2
br i1 %18, label %19, label %27
19: ; preds = %2
%20 = load i32, i32* @stderr
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 0
%23 = load i8*, i8** %22
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %23)
%25 = load i32, i32* @stdout
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
store i32 1, i32* %12
br label %93
27: ; preds = %2
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = call i32 @atoi(i8* %30)
store i32 %31, i32* %9
store i32 0, i32* %10
br label %32
32: ; preds = %87, %27
%33 = load i32, i32* %10
%34 = load i32, i32* %9
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %90
36: ; preds = %32
%37 = load i32, i32* %10
%38 = call i32 @sprintf(i8* %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %37)
%39 = call i32* @fopen(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %39, i32** %11
%40 = load i32*, i32** %11
%41 = icmp ne i32* %40, null
br i1 %41, label %49, label %42
42: ; preds = %36
%43 = load i32, i32* @stderr
%44 = load i32, i32* @errno
%45 = call i8* @strerror(i32 %44)
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* %16, i8* %45)
%47 = load i32, i32* @stdout
%48 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
store i32 1, i32* %12
br label %93
49: ; preds = %36
%50 = load i32*, i32** %11
%51 = ptrtoint i32* %50 to i32
%52 = load i32, i32* %10
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %52)
store i32 %53, i32* %8
%54 = load i32, i32* %8
%55 = icmp slt i32 %54, 0
br i1 %55, label %56, label %63
56: ; preds = %49
%57 = load i32, i32* @stderr
%58 = load i32, i32* @errno
%59 = call i8* @strerror(i32 %58)
%60 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %16, i8* %59)
%61 = load i32, i32* @stdout
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
store i32 1, i32* %12
br label %93
63: ; preds = %49
%64 = load i32*, i32** %11
%65 = call i32 @fclose(i32* %64)
store i32 %65, i32* %8
%66 = load i32, i32* %8
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %75
68: ; preds = %63
%69 = load i32, i32* @stderr
%70 = load i32, i32* @errno
%71 = call i8* @strerror(i32 %70)
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8* %16, i8* %71)
%73 = load i32, i32* @stdout
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
store i32 1, i32* %12
br label %93
75: ; preds = %63
%76 = call i32 @unlink(i8* %16)
store i32 %76, i32* %8
%77 = load i32, i32* %8
%78 = icmp eq i32 %77, -1
br i1 %78, label %79, label %86
79: ; preds = %75
%80 = load i32, i32* @stderr
%81 = load i32, i32* @errno
%82 = call i8* @strerror(i32 %81)
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %80, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i8* %16, i8* %82)
%84 = load i32, i32* @stdout
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %3
store i32 1, i32* %12
br label %93
86: ; preds = %75
br label %87
87: ; preds = %86
%88 = load i32, i32* %10
%89 = add nsw i32 %88, 1
store i32 %89, i32* %10
br label %32
90: ; preds = %32
%91 = load i32, i32* @stdout
%92 = call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %3
store i32 1, i32* %12
br label %93
93: ; preds = %90, %79, %68, %56, %42, %19
%94 = load i8*, i8** %6
%95 = load i32, i32* %3
ret i32 %95
}

LLVM IR (-O2):
@_POSIX_PATH_MAX = global i32 0
@stderr = global i32 0
@.str = [27 x i8] c"Use: %s <number-of-files>\0A\00"
@stdout = global i32 0
@.str.1 = [9 x i8] c"FAILURE\0A\00"
@.str.2 = [8 x i8] c"temp.%d\00"
@.str.3 = [3 x i8] c"w+\00"
@.str.4 = [22 x i8] c"Couldn't open %s: %s\0A\00"
@errno = global i32 0
@.str.5 = [17 x i8] c"This is file %d\0A\00"
@.str.6 = [26 x i8] c"Couldn't print to %s: %s\0A\00"
@.str.7 = [23 x i8] c"Couldn't close %s: %s\0A\00"
@.str.8 = [24 x i8] c"Couldn't unlink %s: %s\0A\00"
@.str.9 = [9 x i8] c"SUCCESS\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = load i32, i32* @_POSIX_PATH_MAX
%4 = zext i32 %3 to i64
%5 = alloca i8, i64 %4
%6 = icmp eq i32 %0, 2
br i1 %6, label %13, label %7
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = load i8*, i8** %1
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = load i32, i32* @stdout
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %68
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = tail call i32 @atoi(i8* %15)
%17 = icmp sgt i32 %16, 0
br i1 %17, label %20, label %65
18: ; preds = %54
%19 = icmp eq i32 %57, %16
br i1 %19, label %65, label %20
20: ; preds = %13, %18
%21 = phi i32 [ %57, %18 ], [ 0, %13 ]
%22 = call i32 @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32 %21)
%23 = call i32* @fopen(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %32
25: ; preds = %20
%26 = load i32, i32* @stderr
%27 = load i32, i32* @errno
%28 = tail call i8* @strerror(i32 %27)
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* %5, i8* %28)
%30 = load i32, i32* @stdout
%31 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %68
32: ; preds = %20
%33 = ptrtoint i32* %23 to i64
%34 = trunc i64 %33 to i32
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %21)
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %44
37: ; preds = %32
%38 = load i32, i32* @stderr
%39 = load i32, i32* @errno
%40 = tail call i8* @strerror(i32 %39)
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %5, i8* %40)
%42 = load i32, i32* @stdout
%43 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %68
44: ; preds = %32
%45 = tail call i32 @fclose(i32* %23)
%46 = icmp eq i32 %45, 0
br i1 %46, label %54, label %47
47: ; preds = %44
%48 = load i32, i32* @stderr
%49 = load i32, i32* @errno
%50 = tail call i8* @strerror(i32 %49)
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i8* %5, i8* %50)
%52 = load i32, i32* @stdout
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %68
54: ; preds = %44
%55 = call i32 @unlink(i8* %5)
%56 = icmp eq i32 %55, -1
%57 = add nuw nsw i32 %21, 1
br i1 %56, label %58, label %18
58: ; preds = %54
%59 = load i32, i32* @stderr
%60 = load i32, i32* @errno
%61 = tail call i8* @strerror(i32 %60)
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0), i8* %5, i8* %61)
%63 = load i32, i32* @stdout
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %63, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %68
65: ; preds = %18, %13
%66 = load i32, i32* @stdout
%67 = tail call i32 (i32, i8*, ...) @fprintf(i32 %66, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
br label %68
68: ; preds = %65, %58, %47, %37, %25, %7
%69 = phi i32 [ -1, %7 ], [ -1, %37 ], [ -1, %47 ], [ -1, %58 ], [ -1, %25 ], [ 0, %65 ]
ret i32 %69
}