#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 EVP_MAX_KEY_LENGTH;
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ RAND_bytes(unsigned char *, int);
int S_IRUSR;
int S_IWUSR;
int /*<<< orphan*/ errno;
scalar_t__ fchmod(int /*<<< orphan*/, int);
scalar_t__ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fileno(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
char *strerror(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  if (argc != 2) {
    fprintf(stderr, "Usage: %s filename\n", argv[0]);
    return EXIT_FAILURE;
  }
  FILE *file = fopen(argv[1], "w");
  if (!file) {
    fprintf(stderr, "Error: fopen: %s: %s\n", argv[1], strerror(errno));
    return EXIT_FAILURE;
  }
  if (fchmod(fileno(file), S_IRUSR | S_IWUSR)) {
    fprintf(stderr, "Error: fchmod: %s: %s\n", argv[1], strerror(errno));
    return EXIT_FAILURE;
  }
  unsigned char key[EVP_MAX_KEY_LENGTH];
  RAND_bytes(key, sizeof key);
  fprintf(file, "const unsigned char key[] = {");
  for (int i = 0; i < sizeof key; ++i)
    fprintf(file, "%s0x%02x", i ? ", " : "", key[i]);
  fprintf(file, "};\n");
  fprintf(file, "const unsigned key_len = sizeof key;\n");
  if (fclose(file))
    fprintf(stderr, "Warning: fclose: %s: %s\n", argv[1], strerror(errno));
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11bf <main+0x4f>
mov    0x2e39(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe59(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2e0b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13e1 <main+0x271>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe46(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1231 <main+0xc1>
mov    0x2de7(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    0x2dc7(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x3c(%rbp),%edi
mov    -0x38(%rbp),%rdx
mov    %rax,%rcx
lea    0xdfd(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2d99(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13e1 <main+0x271>
mov    -0x18(%rbp),%rdi
call   1060 <fileno@plt>
mov    %eax,%edi
mov    0x2d75(%rip),%rax
mov    (%rax),%esi
mov    0x2d94(%rip),%rax
or     (%rax),%esi
call   1070 <fchmod@plt>
cmp    $0x0,%rax
je     12ac <main+0x13c>
mov    0x2d6c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x48(%rbp)
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x4c(%rbp),%edi
mov    -0x48(%rbp),%rdx
mov    %rax,%rcx
lea    0xd98(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2d1e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13e1 <main+0x271>
mov    0x2d35(%rip),%rax
mov    (%rax),%eax
mov    %rax,-0x60(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x58(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x28(%rbp)
mov    %eax,%esi
call   1040 <RAND_bytes@plt>
mov    -0x18(%rbp),%rax
mov    %eax,%edi
lea    0xd53(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x60(%rbp),%rcx
movslq -0x2c(%rbp),%rax
cmp    %rcx,%rax
jae    1355 <main+0x1e5>
mov    -0x58(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    %ecx,%edi
mov    -0x2c(%rbp),%esi
lea    0xd73(%rip),%rdx
lea    0xd40(%rip),%rcx
cmp    $0x0,%esi
cmovne %rcx,%rdx
movslq -0x2c(%rbp),%rcx
movzbl (%rax,%rcx,1),%ecx
lea    0xd21(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12fe <main+0x18e>
mov    -0x18(%rbp),%rax
mov    %eax,%edi
lea    0xd0b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rax
mov    %eax,%edi
lea    0xcfb(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
cmp    $0x0,%rax
je     13ce <main+0x25e>
mov    0x2c39(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x68(%rbp)
mov    0x2c19(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x6c(%rbp),%edi
mov    -0x68(%rbp),%rdx
mov    %rax,%rcx
lea    0xcd0(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2bdb(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x20(%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
sub    $0x18,%rsp
mov    %rsi,%rbx
cmp    $0x2,%edi
jne    11f0 <main+0x80>
mov    0x8(%rbx),%rdi
lea    0xe80(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     120c <main+0x9c>
mov    %rax,%r15
mov    %rax,%rdi
call   1060 <fileno@plt>
mov    0x2e08(%rip),%rcx
mov    0x2e29(%rip),%rdx
mov    (%rdx),%esi
or     (%rcx),%esi
mov    %eax,%edi
call   1070 <fchmod@plt>
test   %rax,%rax
je     1257 <main+0xe7>
mov    0x2dfe(%rip),%rax
mov    (%rax),%r15d
mov    0x8(%rbx),%r14
mov    0x2de8(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xe3e(%rip),%rsi
jmp    122f <main+0xbf>
mov    0x2dd9(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xdfd(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    123f <main+0xcf>
mov    0x2dbd(%rip),%rax
mov    (%rax),%r15d
mov    0x8(%rbx),%r14
mov    0x2da7(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xde7(%rip),%rsi
mov    %r15d,%edi
mov    %r14,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x2d7a(%rip),%rax
mov    (%rax),%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rbx,-0x30(%rbp)
mov    %rsp,-0x38(%rbp)
mov    0x2d82(%rip),%rax
mov    (%rax),%r12d
mov    %rsp,%rbx
lea    0xf(%r12),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    %rbx,%rdi
mov    %r12d,%esi
call   1040 <RAND_bytes@plt>
lea    0xdb6(%rip),%rsi
mov    %r15d,%edi
xor    %eax,%eax
call   1050 <fprintf@plt>
test   %r12,%r12
je     12e0 <main+0x170>
lea    0xdbe(%rip),%r13
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
test   %r14,%r14
lea    0xdb0(%rip),%rdx
lea    0xdd5(%rip),%rax
cmove  %rax,%rdx
movzbl (%rbx,%r14,1),%ecx
mov    %r15d,%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
add    $0x1,%r14
cmp    %r14,%r12
jne    12b0 <main+0x140>
lea    0xd86(%rip),%rsi
mov    %r15d,%edi
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xd79(%rip),%rsi
mov    %r15d,%edi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r15,%rdi
call   1030 <fclose@plt>
test   %rax,%rax
je     1344 <main+0x1d4>
mov    0x2cba(%rip),%rax
mov    (%rax),%ebx
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%r14
mov    0x2ca1(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xd62(%rip),%rsi
mov    %ebx,%edi
mov    %r14,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x2c65(%rip),%rax
mov    (%rax),%eax
mov    -0x38(%rbp),%rsp
jmp    1248 <main+0xd8>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [20 x i8] c"Usage: %s filename\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [22 x i8] c"Error: fopen: %s: %s\0A\00"
@errno = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@.str.3 = [23 x i8] c"Error: fchmod: %s: %s\0A\00"
@EVP_MAX_KEY_LENGTH = global i32 0
@.str.4 = [30 x i8] c"const unsigned char key[] = {\00"
@.str.5 = [9 x i8] c"%s0x%02x\00"
@.str.6 = [3 x i8] c", \00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [4 x i8] c"};\0A\00"
@.str.9 = [38 x i8] c"const unsigned key_len = sizeof key;\0A\00"
@.str.10 = [25 x i8] c"Warning: fclose: %s: %s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %19
12: ; preds = %2
%13 = load i32, i32* @stderr
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 0
%16 = load i8*, i8** %15
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %16)
%18 = load i32, i32* @EXIT_FAILURE
store i32 %18, i32* %3
br label %103
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %6
%24 = load i32*, i32** %6
%25 = icmp ne i32* %24, null
br i1 %25, label %35, label %26
26: ; preds = %19
%27 = load i32, i32* @stderr
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 1
%30 = load i8*, i8** %29
%31 = load i32, i32* @errno
%32 = call i8* @strerror(i32 %31)
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %30, i8* %32)
%34 = load i32, i32* @EXIT_FAILURE
store i32 %34, i32* %3
br label %103
35: ; preds = %19
%36 = load i32*, i32** %6
%37 = call i32 @fileno(i32* %36)
%38 = load i32, i32* @S_IRUSR
%39 = load i32, i32* @S_IWUSR
%40 = or i32 %38, %39
%41 = call i64 @fchmod(i32 %37, i32 %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %52
43: ; preds = %35
%44 = load i32, i32* @stderr
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 1
%47 = load i8*, i8** %46
%48 = load i32, i32* @errno
%49 = call i8* @strerror(i32 %48)
%50 = call i32 (i32, i8*, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %47, i8* %49)
%51 = load i32, i32* @EXIT_FAILURE
store i32 %51, i32* %3
br label %103
52: ; preds = %35
%53 = load i32, i32* @EVP_MAX_KEY_LENGTH
%54 = zext i32 %53 to i64
%55 = call i8* @llvm.stacksave()
store i8* %55, i8** %7
%56 = alloca i8, i64 %54
store i64 %54, i64* %8
%57 = trunc i64 %54 to i32
%58 = call i32 @RAND_bytes(i8* %56, i32 %57)
%59 = load i32*, i32** %6
%60 = ptrtoint i32* %59 to i32
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %9
br label %62
62: ; preds = %79, %52
%63 = load i32, i32* %9
%64 = sext i32 %63 to i64
%65 = icmp ult i64 %64, %54
br i1 %65, label %66, label %82
66: ; preds = %62
%67 = load i32*, i32** %6
%68 = ptrtoint i32* %67 to i32
%69 = load i32, i32* %9
%70 = icmp ne i32 %69, 0
%71 = zext i1 %70 to i64
%72 = select i1 %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0)
%73 = load i32, i32* %9
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, i8* %56, i64 %74
%76 = load i8, i8* %75
%77 = zext i8 %76 to i32
%78 = call i32 (i32, i8*, ...) @fprintf(i32 %68, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %72, i32 %77)
br label %79
79: ; preds = %66
%80 = load i32, i32* %9
%81 = add nsw i32 %80, 1
store i32 %81, i32* %9
br label %62
82: ; preds = %62
%83 = load i32*, i32** %6
%84 = ptrtoint i32* %83 to i32
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%86 = load i32*, i32** %6
%87 = ptrtoint i32* %86 to i32
%88 = call i32 (i32, i8*, ...) @fprintf(i32 %87, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
%89 = load i32*, i32** %6
%90 = call i64 @fclose(i32* %89)
%91 = icmp ne i64 %90, 0
br i1 %91, label %92, label %100
92: ; preds = %82
%93 = load i32, i32* @stderr
%94 = load i8**, i8*** %5
%95 = getelementptr inbounds i8*, i8** %94, i64 1
%96 = load i8*, i8** %95
%97 = load i32, i32* @errno
%98 = call i8* @strerror(i32 %97)
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %93, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i8* %96, i8* %98)
br label %100
100: ; preds = %92, %82
%101 = load i32, i32* @EXIT_SUCCESS
store i32 %101, i32* %3
%102 = load i8*, i8** %7
br label %103
103: ; preds = %100, %43, %26, %12
%104 = load i32, i32* %3
ret i32 %104
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [20 x i8] c"Usage: %s filename\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [22 x i8] c"Error: fopen: %s: %s\0A\00"
@errno = global i32 0
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
@.str.3 = [23 x i8] c"Error: fchmod: %s: %s\0A\00"
@EVP_MAX_KEY_LENGTH = global i32 0
@.str.4 = [30 x i8] c"const unsigned char key[] = {\00"
@.str.5 = [9 x i8] c"%s0x%02x\00"
@.str.6 = [3 x i8] c", \00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [4 x i8] c"};\0A\00"
@.str.9 = [38 x i8] c"const unsigned key_len = sizeof key;\0A\00"
@.str.10 = [25 x i8] c"Warning: fclose: %s: %s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %9, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @EXIT_FAILURE
br label %68
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i32* @fopen(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %21
14: ; preds = %9
%15 = load i32, i32* @stderr
%16 = load i8*, i8** %10
%17 = load i32, i32* @errno
%18 = tail call i8* @strerror(i32 %17)
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* %16, i8* %18)
%20 = load i32, i32* @EXIT_FAILURE
br label %68
21: ; preds = %9
%22 = tail call i32 @fileno(i32* %12)
%23 = load i32, i32* @S_IRUSR
%24 = load i32, i32* @S_IWUSR
%25 = or i32 %24, %23
%26 = tail call i64 @fchmod(i32 %22, i32 %25)
%27 = icmp eq i64 %26, 0
br i1 %27, label %35, label %28
28: ; preds = %21
%29 = load i32, i32* @stderr
%30 = load i8*, i8** %10
%31 = load i32, i32* @errno
%32 = tail call i8* @strerror(i32 %31)
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %30, i8* %32)
%34 = load i32, i32* @EXIT_FAILURE
br label %68
35: ; preds = %21
%36 = load i32, i32* @EVP_MAX_KEY_LENGTH
%37 = zext i32 %36 to i64
%38 = tail call i8* @llvm.stacksave()
%39 = alloca i8, i64 %37
%40 = call i32 @RAND_bytes(i8* %39, i32 %36)
%41 = ptrtoint i32* %12 to i64
%42 = trunc i64 %41 to i32
%43 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%44 = icmp eq i32 %36, 0
br i1 %44, label %45, label %50
45: ; preds = %50, %35
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
%48 = call i64 @fclose(i32* %12)
%49 = icmp eq i64 %48, 0
br i1 %49, label %66, label %60
50: ; preds = %35, %50
%51 = phi i64 [ %58, %50 ], [ 0, %35 ]
%52 = icmp eq i64 %51, 0
%53 = select i1 %52, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0)
%54 = getelementptr inbounds i8, i8* %39, i64 %51
%55 = load i8, i8* %54
%56 = zext i8 %55 to i32
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %53, i32 %56)
%58 = add nuw nsw i64 %51, 1
%59 = icmp eq i64 %58, %37
br i1 %59, label %45, label %50
60: ; preds = %45
%61 = load i32, i32* @stderr
%62 = load i8*, i8** %10
%63 = load i32, i32* @errno
%64 = call i8* @strerror(i32 %63)
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i8* %62, i8* %64)
br label %66
66: ; preds = %60, %45
%67 = load i32, i32* @EXIT_SUCCESS
br label %68
68: ; preds = %14, %28, %66, %4
%69 = phi i32 [ %8, %4 ], [ %34, %28 ], [ %67, %66 ], [ %20, %14 ]
ret i32 %69
}