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

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ *openFile(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *, char *);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ *stdout;
char *strchr(char *, char);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ usage();
int main(int argc, char *argv[]) {
  char *versionFile = "VERSION";
  char *releaseDateFile = "RELEASE-DATE";
  char *alphaFile = "dist/tiff.alpha";
  char version[128];
  char rawReleaseDate[128];
  char tiffLibVersion[128];
  char alpha[128];
  FILE *fd;
  char *cp;
  argc--, argv++;
  while (argc > 0 && argv[0][0] == '-') {
    if (strcmp(argv[0], "-v") == 0) {
      if (argc < 1)
        usage();
      argc--, argv++;
      versionFile = argv[0];
    } else if (strcmp(argv[0], "-a") == 0) {
      if (argc < 1)
        usage();
      argc--, argv++;
      alphaFile = argv[0];
    } else if (strcmp(argv[0], "-r") == 0) {
      if (argc < 1)
        usage();
      argc--, argv++;
      releaseDateFile = argv[0];
    } else
      usage();
    argc--, argv++;
  }
  fd = openFile(versionFile);
  if (fgets(version, sizeof(version) - 1, fd) == NULL) {
    fprintf(stderr, "mkversion: No version information in %s.\n", versionFile);
    exit(-1);
  }
  cp = strchr(version, '\n');
  if (cp)
    *cp = '\0';
  fclose(fd);
  fd = openFile(alphaFile);
  if (fgets(alpha, sizeof(alpha) - 1, fd) == NULL) {
    fprintf(stderr, "mkversion: No alpha information in %s.\n", alphaFile);
    exit(-1);
  }
  fclose(fd);
  cp = strchr(alpha, ' ');
  if (cp)
    cp = strchr(cp + 1, ' ');
  if (cp) {
    char *tp;
    for (tp = strchr(version, '\0'), cp++; (*tp = *cp) != 0; tp++, cp++)
      ;
    if (tp[-1] == '\n')
      tp[-1] = '\0';
  } else {
    fprintf(stderr, "mkversion: Malformed alpha information in %s.\n",
            alphaFile);
    exit(-1);
  }
  fd = openFile(releaseDateFile);
  if (fgets(rawReleaseDate, sizeof(version) - 1, fd) == NULL) {
    fprintf(stderr, "mkversion: No release date information in %s.\n",
            releaseDateFile);
    exit(-1);
  }
  fclose(fd);
  sprintf(tiffLibVersion, "#define TIFFLIB_VERSION %4.4s%2.2s%2.2s",
          rawReleaseDate + 6, rawReleaseDate + 0, rawReleaseDate + 3);
  if (argc > 0) {
    fd = fopen(argv[0], "w");
    if (fd == NULL) {
      fprintf(stderr, "mkversion: %s: Could not open for writing.\n", argv[0]);
      exit(-1);
    }
  } else
    fd = stdout;
  fprintf(fd, "#define TIFFLIB_VERSION_STR \"LIBTIFF, Version %s\\n", version);
  fprintf(fd, "Copyright (c) 1988-1996 Sam Leffler\\n");
  fprintf(fd, "Copyright (c) 1991-1996 Silicon Graphics, Inc.\"\n");
  fprintf(fd, "/*\n"
              " * This define can be used in code that requires\n"
              " * compilation-related definitions specific to a\n"
              " * version or versions of the library.  Runtime\n"
              " * version checking should be done based on the\n"
              " * string returned by TIFFGetVersion.\n"
              " */\n");
  fprintf(fd, "%s\n", tiffLibVersion);
  if (fd != stdout)
    fclose(fd);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x250,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe40(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xe3d(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xe3f(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x249(%rbp)
jle    1217 <main+0x77>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
sete   %al
mov    %al,-0x249(%rbp)
mov    -0x249(%rbp),%al
test   $0x1,%al
jne    122a <main+0x8a>
jmp    134e <main+0x1ae>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xded(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    127d <main+0xdd>
cmpl   $0x1,-0x8(%rbp)
jge    1258 <main+0xb8>
mov    $0x0,%al
call   1090 <usage@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
jmp    1334 <main+0x194>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd9d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12d0 <main+0x130>
cmpl   $0x1,-0x8(%rbp)
jge    12ab <main+0x10b>
mov    $0x0,%al
call   1090 <usage@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
jmp    132f <main+0x18f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd4d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1323 <main+0x183>
cmpl   $0x1,-0x8(%rbp)
jge    12fe <main+0x15e>
mov    $0x0,%al
call   1090 <usage@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
jmp    132a <main+0x18a>
mov    $0x0,%al
call   1090 <usage@plt>
jmp    132f <main+0x18f>
jmp    1334 <main+0x194>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
jmp    11ef <main+0x4f>
mov    -0x18(%rbp),%rdi
call   1040 <openFile@plt>
mov    %rax,-0x238(%rbp)
lea    -0xb0(%rbp),%rdi
mov    -0x238(%rbp),%rdx
mov    $0x7f,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
jne    13a6 <main+0x206>
mov    0x2c59(%rip),%rax
mov    (%rax),%rdi
mov    -0x18(%rbp),%rdx
lea    0xc99(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
lea    -0xb0(%rbp),%rdi
mov    $0xa,%esi
call   1050 <strchr@plt>
mov    %rax,-0x240(%rbp)
cmpq   $0x0,-0x240(%rbp)
je     13d6 <main+0x236>
mov    -0x240(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x238(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1040 <openFile@plt>
mov    %rax,-0x238(%rbp)
lea    -0x230(%rbp),%rdi
mov    -0x238(%rbp),%rdx
mov    $0x7f,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
jne    143a <main+0x29a>
mov    0x2bc5(%rip),%rax
mov    (%rax),%rdi
mov    -0x28(%rbp),%rdx
lea    0xc2f(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    -0x238(%rbp),%rdi
call   1030 <fclose@plt>
lea    -0x230(%rbp),%rdi
mov    $0x20,%esi
call   1050 <strchr@plt>
mov    %rax,-0x240(%rbp)
cmpq   $0x0,-0x240(%rbp)
je     1488 <main+0x2e8>
mov    -0x240(%rbp),%rdi
add    $0x1,%rdi
mov    $0x20,%esi
call   1050 <strchr@plt>
mov    %rax,-0x240(%rbp)
cmpq   $0x0,-0x240(%rbp)
je     152d <main+0x38d>
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
call   1050 <strchr@plt>
mov    %rax,-0x248(%rbp)
mov    -0x240(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x240(%rbp)
mov    -0x240(%rbp),%rax
mov    (%rax),%al
mov    -0x248(%rbp),%rcx
mov    %al,(%rcx)
movsbl %al,%eax
cmp    $0x0,%eax
je     1509 <main+0x369>
jmp    14e0 <main+0x340>
mov    -0x248(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x248(%rbp)
mov    -0x240(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x240(%rbp)
jmp    14bd <main+0x31d>
mov    -0x248(%rbp),%rax
movsbl -0x1(%rax),%eax
cmp    $0xa,%eax
jne    1528 <main+0x388>
mov    -0x248(%rbp),%rax
movb   $0x0,-0x1(%rax)
jmp    1553 <main+0x3b3>
mov    0x2aac(%rip),%rax
mov    (%rax),%rdi
mov    -0x28(%rbp),%rdx
lea    0xb3e(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    -0x20(%rbp),%rdi
call   1040 <openFile@plt>
mov    %rax,-0x238(%rbp)
lea    -0x130(%rbp),%rdi
mov    -0x238(%rbp),%rdx
mov    $0x7f,%esi
call   1060 <fgets@plt>
cmp    $0x0,%rax
jne    15ab <main+0x40b>
mov    0x2a54(%rip),%rax
mov    (%rax),%rdi
mov    -0x20(%rbp),%rdx
lea    0xb15(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
mov    -0x238(%rbp),%rdi
call   1030 <fclose@plt>
lea    -0x1b0(%rbp),%rdi
lea    -0x130(%rbp),%rdx
add    $0x6,%rdx
lea    -0x130(%rbp),%rcx
lea    -0x130(%rbp),%r8
add    $0x3,%r8
lea    0xafc(%rip),%rsi
call   10b0 <sprintf@plt>
cmpl   $0x0,-0x8(%rbp)
jle    1647 <main+0x4a7>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb07(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x238(%rbp)
cmpq   $0x0,-0x238(%rbp)
jne    1642 <main+0x4a2>
mov    0x29c0(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xad7(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0xffffffff,%edi
call   10c0 <exit@plt>
jmp    1658 <main+0x4b8>
mov    0x298a(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x238(%rbp)
mov    -0x238(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
lea    0xac7(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x238(%rbp),%rdi
lea    0xae5(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x238(%rbp),%rdi
lea    0xaf6(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x238(%rbp),%rdi
lea    0xb12(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x238(%rbp),%rdi
lea    -0x1b0(%rbp),%rdx
lea    0xbe6(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x238(%rbp),%rax
mov    0x28fb(%rip),%rcx
cmp    (%rcx),%rax
je     16f2 <main+0x552>
mov    -0x238(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x250,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x218,%rsp
lea    0x8(%rsi),%r15
cmp    $0x2,%edi
jl     129e <main+0xde>
mov    %rsi,%r14
mov    %edi,%ebp
lea    0xe16(%rip),%r12
lea    0xe17(%rip),%rax
mov    %rax,(%rsp)
lea    0xe19(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xe1d(%rip),%rbx
jmp    122e <main+0x6e>
nopw   0x0(%rax,%rax,1)
add    $0xfffffffe,%ebp
mov    0x10(%r14),%r12
add    $0x10,%r14
mov    %r14,%r15
mov    %r15,%r14
add    $0x8,%r15
cmp    $0x1,%ebp
jle    12b8 <main+0xf8>
mov    0x8(%r14),%rdi
movzbl (%rdi),%r13d
cmp    $0x2d,%r13b
jne    12b8 <main+0xf8>
mov    %rbx,%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1210 <main+0x50>
mov    (%r15),%rdi
lea    0xdd5(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1280 <main+0xc0>
mov    (%r15),%rdi
lea    0xdc4(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     128e <main+0xce>
add    $0xffffffff,%ebp
xor    %eax,%eax
call   10a0 <usage@plt>
jmp    121e <main+0x5e>
nopl   (%rax)
add    $0xfffffffe,%ebp
mov    0x10(%r14),%rax
mov    %rax,0x8(%rsp)
jmp    1217 <main+0x57>
add    $0xfffffffe,%ebp
mov    0x10(%r14),%rax
mov    %rax,(%rsp)
jmp    1217 <main+0x57>
lea    0xd70(%rip),%rbx
lea    0xd5c(%rip),%r13
lea    0xd4d(%rip),%r12
xor    %r14d,%r14d
jmp    12c9 <main+0x109>
cmp    $0x2d,%r13b
setne  %r14b
mov    (%rsp),%r13
mov    0x8(%rsp),%rbx
mov    %r12,%rdi
call   1040 <openFile@plt>
mov    %rax,%rbp
lea    0x90(%rsp),%rdi
mov    $0x7f,%esi
mov    %rax,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     1507 <main+0x347>
lea    0x90(%rsp),%r12
mov    %r12,%rdi
mov    $0xa,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     130f <main+0x14f>
movb   $0x0,(%rax)
mov    %rbp,%rdi
call   1030 <fclose@plt>
mov    %rbx,%rdi
call   1040 <openFile@plt>
mov    %rax,%rbp
lea    0x110(%rsp),%rdi
mov    $0x7f,%esi
mov    %rax,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     151d <main+0x35d>
mov    %rbp,%rdi
call   1030 <fclose@plt>
lea    0x110(%rsp),%rdi
mov    $0x20,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     14f4 <main+0x334>
add    $0x1,%rax
mov    %rax,%rdi
mov    $0x20,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     14f4 <main+0x334>
mov    %rax,%rbp
mov    %r12,%rdi
call   1050 <strlen@plt>
lea    (%rax,%r12,1),%rcx
add    $0xfffffffffffffffe,%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzbl 0x1(%rbp,%rdx,1),%ebx
mov    %bl,0x2(%rcx,%rdx,1)
add    $0x1,%rdx
test   %bl,%bl
jne    13a0 <main+0x1e0>
add    %r12,%rax
cmpb   $0xa,-0x2(%rdx,%rax,1)
jne    13bf <main+0x1ff>
movb   $0x0,(%rcx,%rdx,1)
mov    %r13,%rdi
call   1040 <openFile@plt>
mov    %rax,%rbx
lea    0x10(%rsp),%rdi
mov    $0x7f,%esi
mov    %rax,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     1533 <main+0x373>
mov    %rbx,%rdi
call   1030 <fclose@plt>
lea    0x16(%rsp),%rdx
lea    0x13(%rsp),%r8
lea    0xce0(%rip),%rsi
lea    0x190(%rsp),%rdi
lea    0x10(%rsp),%rcx
call   10c0 <sprintf@plt>
test   %r14b,%r14b
je     1445 <main+0x285>
mov    (%r15),%rdi
lea    0xce7(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    144f <main+0x28f>
mov    0x2bad(%rip),%rax
mov    (%rax),%rdi
mov    (%r15),%rdx
lea    0xcc8(%rip),%rsi
jmp    1547 <main+0x387>
mov    0x2b8c(%rip),%rax
mov    (%rax),%rbx
lea    0xcde(%rip),%rsi
lea    0x90(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xcf8(%rip),%rdi
mov    $0x25,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
lea    0xd05(%rip),%rdi
mov    $0x30,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
lea    0xd1d(%rip),%rdi
mov    $0xef,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10e0 <fwrite@plt>
lea    0xdf4(%rip),%rsi
lea    0x190(%rsp),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    0x2b05(%rip),%rax
cmp    (%rax),%rbx
je     14e0 <main+0x320>
mov    %rbx,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x218,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2ae5(%rip),%rax
mov    (%rax),%rdi
lea    0xb7b(%rip),%rsi
jmp    152e <main+0x36e>
mov    0x2ad2(%rip),%rax
mov    (%rax),%rdi
lea    0xb16(%rip),%rsi
mov    %r12,%rdx
jmp    1547 <main+0x387>
mov    0x2abc(%rip),%rax
mov    (%rax),%rdi
lea    0xb2a(%rip),%rsi
mov    %rbx,%rdx
jmp    1547 <main+0x387>
mov    0x2aa6(%rip),%rax
mov    (%rax),%rdi
lea    0xb6b(%rip),%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"VERSION\00"
@.str.1 = [13 x i8] c"RELEASE-DATE\00"
@.str.2 = [16 x i8] c"dist/tiff.alpha\00"
@.str.3 = [3 x i8] c"-v\00"
@.str.4 = [3 x i8] c"-a\00"
@.str.5 = [3 x i8] c"-r\00"
@stderr = global i32* null
@.str.6 = [42 x i8] c"mkversion: No version information in %s.\0A\00"
@.str.7 = [40 x i8] c"mkversion: No alpha information in %s.\0A\00"
@.str.8 = [47 x i8] c"mkversion: Malformed alpha information in %s.\0A\00"
@.str.9 = [47 x i8] c"mkversion: No release date information in %s.\0A\00"
@.str.10 = [40 x i8] c"#define TIFFLIB_VERSION %4.4s%2.2s%2.2s\00"
@.str.11 = [2 x i8] c"w\00"
@.str.12 = [44 x i8] c"mkversion: %s: Could not open for writing.\0A\00"
@stdout = global i32* null
@.str.13 = [51 x i8] c"#define TIFFLIB_VERSION_STR \22LIBTIFF, Version %s\\n\00"
@.str.14 = [38 x i8] c"Copyright (c) 1988-1996 Sam Leffler\\n\00"
@.str.15 = [49 x i8] c"Copyright (c) 1991-1996 Silicon Graphics, Inc.\22\0A\00"
@.str.16 = [240 x i8] c"/*\0A * This define can be used in code that requires\0A * compilation-related definitions specific to a\0A * version or versions of the library. Runtime\0A * version checking should be done based on the\0A * string returned by TIFFGetVersion.\0A */\0A\00"
@.str.17 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca [128 x i8]
%10 = alloca [128 x i8]
%11 = alloca [128 x i8]
%12 = alloca [128 x i8]
%13 = alloca i32*
%14 = alloca i8*
%15 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8** %7
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8** %8
%16 = load i32, i32* %4
%17 = add nsw i32 %16, -1
store i32 %17, i32* %4
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i32 1
store i8** %19, i8*** %5
br label %20
20: ; preds = %94, %2
%21 = load i32, i32* %4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %31
23: ; preds = %20
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 0
%26 = load i8*, i8** %25
%27 = getelementptr inbounds i8, i8* %26, i64 0
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 45
br label %31
31: ; preds = %23, %20
%32 = phi i1 [ false, %20 ], [ %30, %23 ]
br i1 %32, label %33, label %99
33: ; preds = %31
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 0
%36 = load i8*, i8** %35
%37 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %52
39: ; preds = %33
%40 = load i32, i32* %4
%41 = icmp slt i32 %40, 1
br i1 %41, label %42, label %44
42: ; preds = %39
%43 = call i32 (...) @usage()
br label %44
44: ; preds = %42, %39
%45 = load i32, i32* %4
%46 = add nsw i32 %45, -1
store i32 %46, i32* %4
%47 = load i8**, i8*** %5
%48 = getelementptr inbounds i8*, i8** %47, i32 1
store i8** %48, i8*** %5
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 0
%51 = load i8*, i8** %50
store i8* %51, i8** %6
br label %94
52: ; preds = %33
%53 = load i8**, i8*** %5
%54 = getelementptr inbounds i8*, i8** %53, i64 0
%55 = load i8*, i8** %54
%56 = call i64 @strcmp(i8* %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %71
58: ; preds = %52
%59 = load i32, i32* %4
%60 = icmp slt i32 %59, 1
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = call i32 (...) @usage()
br label %63
63: ; preds = %61, %58
%64 = load i32, i32* %4
%65 = add nsw i32 %64, -1
store i32 %65, i32* %4
%66 = load i8**, i8*** %5
%67 = getelementptr inbounds i8*, i8** %66, i32 1
store i8** %67, i8*** %5
%68 = load i8**, i8*** %5
%69 = getelementptr inbounds i8*, i8** %68, i64 0
%70 = load i8*, i8** %69
store i8* %70, i8** %8
br label %93
71: ; preds = %52
%72 = load i8**, i8*** %5
%73 = getelementptr inbounds i8*, i8** %72, i64 0
%74 = load i8*, i8** %73
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %90
77: ; preds = %71
%78 = load i32, i32* %4
%79 = icmp slt i32 %78, 1
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 (...) @usage()
br label %82
82: ; preds = %80, %77
%83 = load i32, i32* %4
%84 = add nsw i32 %83, -1
store i32 %84, i32* %4
%85 = load i8**, i8*** %5
%86 = getelementptr inbounds i8*, i8** %85, i32 1
store i8** %86, i8*** %5
%87 = load i8**, i8*** %5
%88 = getelementptr inbounds i8*, i8** %87, i64 0
%89 = load i8*, i8** %88
store i8* %89, i8** %7
br label %92
90: ; preds = %71
%91 = call i32 (...) @usage()
br label %92
92: ; preds = %90, %82
br label %93
93: ; preds = %92, %63
br label %94
94: ; preds = %93, %44
%95 = load i32, i32* %4
%96 = add nsw i32 %95, -1
store i32 %96, i32* %4
%97 = load i8**, i8*** %5
%98 = getelementptr inbounds i8*, i8** %97, i32 1
store i8** %98, i8*** %5
br label %20
99: ; preds = %31
%100 = load i8*, i8** %6
%101 = call i32* @openFile(i8* %100)
store i32* %101, i32** %13
%102 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%103 = load i32*, i32** %13
%104 = call i32* @fgets(i8* %102, i32 127, i32* %103)
%105 = icmp eq i32* %104, null
br i1 %105, label %106, label %111
106: ; preds = %99
%107 = load i32*, i32** @stderr
%108 = load i8*, i8** %6
%109 = call i32 (i32*, i8*, ...) @fprintf(i32* %107, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %108)
%110 = call i32 @exit(i32 -1)
unreachable
111: ; preds = %99
%112 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%113 = call i8* @strchr(i8* %112, i8 signext 10)
store i8* %113, i8** %14
%114 = load i8*, i8** %14
%115 = icmp ne i8* %114, null
br i1 %115, label %116, label %118
116: ; preds = %111
%117 = load i8*, i8** %14
store i8 0, i8* %117
br label %118
118: ; preds = %116, %111
%119 = load i32*, i32** %13
%120 = call i32 @fclose(i32* %119)
%121 = load i8*, i8** %8
%122 = call i32* @openFile(i8* %121)
store i32* %122, i32** %13
%123 = getelementptr inbounds [128 x i8], [128 x i8]* %12, i64 0, i64 0
%124 = load i32*, i32** %13
%125 = call i32* @fgets(i8* %123, i32 127, i32* %124)
%126 = icmp eq i32* %125, null
br i1 %126, label %127, label %132
127: ; preds = %118
%128 = load i32*, i32** @stderr
%129 = load i8*, i8** %8
%130 = call i32 (i32*, i8*, ...) @fprintf(i32* %128, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* %129)
%131 = call i32 @exit(i32 -1)
unreachable
132: ; preds = %118
%133 = load i32*, i32** %13
%134 = call i32 @fclose(i32* %133)
%135 = getelementptr inbounds [128 x i8], [128 x i8]* %12, i64 0, i64 0
%136 = call i8* @strchr(i8* %135, i8 signext 32)
store i8* %136, i8** %14
%137 = load i8*, i8** %14
%138 = icmp ne i8* %137, null
br i1 %138, label %139, label %143
139: ; preds = %132
%140 = load i8*, i8** %14
%141 = getelementptr inbounds i8, i8* %140, i64 1
%142 = call i8* @strchr(i8* %141, i8 signext 32)
store i8* %142, i8** %14
br label %143
143: ; preds = %139, %132
%144 = load i8*, i8** %14
%145 = icmp ne i8* %144, null
br i1 %145, label %146, label %173
146: ; preds = %143
%147 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%148 = call i8* @strchr(i8* %147, i8 signext 0)
store i8* %148, i8** %15
%149 = load i8*, i8** %14
%150 = getelementptr inbounds i8, i8* %149, i32 1
store i8* %150, i8** %14
br label %151
151: ; preds = %158, %146
%152 = load i8*, i8** %14
%153 = load i8, i8* %152
%154 = load i8*, i8** %15
store i8 %153, i8* %154
%155 = sext i8 %153 to i32
%156 = icmp ne i32 %155, 0
br i1 %156, label %157, label %163
157: ; preds = %151
br label %158
158: ; preds = %157
%159 = load i8*, i8** %15
%160 = getelementptr inbounds i8, i8* %159, i32 1
store i8* %160, i8** %15
%161 = load i8*, i8** %14
%162 = getelementptr inbounds i8, i8* %161, i32 1
store i8* %162, i8** %14
br label %151
163: ; preds = %151
%164 = load i8*, i8** %15
%165 = getelementptr inbounds i8, i8* %164, i64 -1
%166 = load i8, i8* %165
%167 = sext i8 %166 to i32
%168 = icmp eq i32 %167, 10
br i1 %168, label %169, label %172
169: ; preds = %163
%170 = load i8*, i8** %15
%171 = getelementptr inbounds i8, i8* %170, i64 -1
store i8 0, i8* %171
br label %172
172: ; preds = %169, %163
br label %178
173: ; preds = %143
%174 = load i32*, i32** @stderr
%175 = load i8*, i8** %8
%176 = call i32 (i32*, i8*, ...) @fprintf(i32* %174, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0), i8* %175)
%177 = call i32 @exit(i32 -1)
unreachable
178: ; preds = %172
%179 = load i8*, i8** %7
%180 = call i32* @openFile(i8* %179)
store i32* %180, i32** %13
%181 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%182 = load i32*, i32** %13
%183 = call i32* @fgets(i8* %181, i32 127, i32* %182)
%184 = icmp eq i32* %183, null
br i1 %184, label %185, label %190
185: ; preds = %178
%186 = load i32*, i32** @stderr
%187 = load i8*, i8** %7
%188 = call i32 (i32*, i8*, ...) @fprintf(i32* %186, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), i8* %187)
%189 = call i32 @exit(i32 -1)
unreachable
190: ; preds = %178
%191 = load i32*, i32** %13
%192 = call i32 @fclose(i32* %191)
%193 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%194 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%195 = getelementptr inbounds i8, i8* %194, i64 6
%196 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%197 = getelementptr inbounds i8, i8* %196, i64 0
%198 = getelementptr inbounds [128 x i8], [128 x i8]* %10, i64 0, i64 0
%199 = getelementptr inbounds i8, i8* %198, i64 3
%200 = call i32 @sprintf(i8* %193, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0), i8* %195, i8* %197, i8* %199)
%201 = load i32, i32* %4
%202 = icmp sgt i32 %201, 0
br i1 %202, label %203, label %218
203: ; preds = %190
%204 = load i8**, i8*** %5
%205 = getelementptr inbounds i8*, i8** %204, i64 0
%206 = load i8*, i8** %205
%207 = call i32* @fopen(i8* %206, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
store i32* %207, i32** %13
%208 = load i32*, i32** %13
%209 = icmp eq i32* %208, null
br i1 %209, label %210, label %217
210: ; preds = %203
%211 = load i32*, i32** @stderr
%212 = load i8**, i8*** %5
%213 = getelementptr inbounds i8*, i8** %212, i64 0
%214 = load i8*, i8** %213
%215 = call i32 (i32*, i8*, ...) @fprintf(i32* %211, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.12, i64 0, i64 0), i8* %214)
%216 = call i32 @exit(i32 -1)
unreachable
217: ; preds = %203
br label %220
218: ; preds = %190
%219 = load i32*, i32** @stdout
store i32* %219, i32** %13
br label %220
220: ; preds = %218, %217
%221 = load i32*, i32** %13
%222 = getelementptr inbounds [128 x i8], [128 x i8]* %9, i64 0, i64 0
%223 = call i32 (i32*, i8*, ...) @fprintf(i32* %221, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.13, i64 0, i64 0), i8* %222)
%224 = load i32*, i32** %13
%225 = call i32 (i32*, i8*, ...) @fprintf(i32* %224, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0))
%226 = load i32*, i32** %13
%227 = call i32 (i32*, i8*, ...) @fprintf(i32* %226, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.15, i64 0, i64 0))
%228 = load i32*, i32** %13
%229 = call i32 (i32*, i8*, ...) @fprintf(i32* %228, i8* getelementptr inbounds ([240 x i8], [240 x i8]* @.str.16, i64 0, i64 0))
%230 = load i32*, i32** %13
%231 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%232 = call i32 (i32*, i8*, ...) @fprintf(i32* %230, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* %231)
%233 = load i32*, i32** %13
%234 = load i32*, i32** @stdout
%235 = icmp ne i32* %233, %234
br i1 %235, label %236, label %239
236: ; preds = %220
%237 = load i32*, i32** %13
%238 = call i32 @fclose(i32* %237)
br label %239
239: ; preds = %236, %220
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"VERSION\00"
@.str.1 = [13 x i8] c"RELEASE-DATE\00"
@.str.2 = [16 x i8] c"dist/tiff.alpha\00"
@.str.3 = [3 x i8] c"-v\00"
@.str.4 = [3 x i8] c"-a\00"
@.str.5 = [3 x i8] c"-r\00"
@stderr = global i32* null
@.str.6 = [42 x i8] c"mkversion: No version information in %s.\0A\00"
@.str.7 = [40 x i8] c"mkversion: No alpha information in %s.\0A\00"
@.str.8 = [47 x i8] c"mkversion: Malformed alpha information in %s.\0A\00"
@.str.9 = [47 x i8] c"mkversion: No release date information in %s.\0A\00"
@.str.10 = [40 x i8] c"#define TIFFLIB_VERSION %4.4s%2.2s%2.2s\00"
@.str.11 = [2 x i8] c"w\00"
@.str.12 = [44 x i8] c"mkversion: %s: Could not open for writing.\0A\00"
@stdout = global i32* null
@.str.13 = [51 x i8] c"#define TIFFLIB_VERSION_STR \22LIBTIFF, Version %s\\n\00"
@.str.14 = [38 x i8] c"Copyright (c) 1988-1996 Sam Leffler\\n\00"
@.str.15 = [49 x i8] c"Copyright (c) 1991-1996 Silicon Graphics, Inc.\22\0A\00"
@.str.16 = [240 x i8] c"/*\0A * This define can be used in code that requires\0A * compilation-related definitions specific to a\0A * version or versions of the library. Runtime\0A * version checking should be done based on the\0A * string returned by TIFFGetVersion.\0A */\0A\00"
@.str.17 = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [128 x i8]
%4 = alloca [128 x i8]
%5 = alloca [128 x i8]
%6 = alloca [128 x i8]
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%8 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%9 = getelementptr inbounds [128 x i8], [128 x i8]* %5, i64 0, i64 0
%10 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = icmp sgt i32 %0, 1
br i1 %12, label %13, label %63
13: ; preds = %2, %49
%14 = phi i8** [ %55, %49 ], [ %11, %2 ]
%15 = phi i8* [ %54, %49 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), %2 ]
%16 = phi i8* [ %53, %49 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), %2 ]
%17 = phi i8* [ %52, %49 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %2 ]
%18 = phi i8** [ %51, %49 ], [ %1, %2 ]
%19 = phi i32 [ %50, %49 ], [ %0, %2 ]
%20 = add nsw i32 %19, -1
%21 = load i8*, i8** %14
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 45
br i1 %23, label %24, label %57
24: ; preds = %13
%25 = tail call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = add nsw i32 %19, -2
%29 = getelementptr inbounds i8*, i8** %18, i64 2
%30 = load i8*, i8** %29
br label %49
31: ; preds = %24
%32 = load i8*, i8** %14
%33 = tail call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %31
%36 = add nsw i32 %19, -2
%37 = getelementptr inbounds i8*, i8** %18, i64 2
%38 = load i8*, i8** %37
br label %49
39: ; preds = %31
%40 = load i8*, i8** %14
%41 = tail call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = add nsw i32 %19, -2
%45 = getelementptr inbounds i8*, i8** %18, i64 2
%46 = load i8*, i8** %45
br label %49
47: ; preds = %39
%48 = tail call i32 (...) @usage()
br label %49
49: ; preds = %35, %47, %43, %27
%50 = phi i32 [ %28, %27 ], [ %36, %35 ], [ %44, %43 ], [ %20, %47 ]
%51 = phi i8** [ %29, %27 ], [ %37, %35 ], [ %45, %43 ], [ %14, %47 ]
%52 = phi i8* [ %30, %27 ], [ %17, %35 ], [ %17, %43 ], [ %17, %47 ]
%53 = phi i8* [ %16, %27 ], [ %16, %35 ], [ %46, %43 ], [ %16, %47 ]
%54 = phi i8* [ %15, %27 ], [ %38, %35 ], [ %15, %43 ], [ %15, %47 ]
%55 = getelementptr inbounds i8*, i8** %51, i64 1
%56 = icmp sgt i32 %50, 1
br i1 %56, label %13, label %57
57: ; preds = %49, %13
%58 = phi i8* [ %17, %13 ], [ %52, %49 ]
%59 = phi i8* [ %16, %13 ], [ %53, %49 ]
%60 = phi i8* [ %15, %13 ], [ %54, %49 ]
%61 = phi i8** [ %14, %13 ], [ %55, %49 ]
%62 = xor i1 %23, true
br label %63
63: ; preds = %57, %2
%64 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %2 ], [ %58, %57 ]
%65 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), %2 ], [ %59, %57 ]
%66 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), %2 ], [ %60, %57 ]
%67 = phi i8** [ %11, %2 ], [ %61, %57 ]
%68 = phi i1 [ false, %2 ], [ %62, %57 ]
%69 = tail call i32* @openFile(i8* %64)
%70 = call i32* @fgets(i8* %7, i32 127, i32* %69)
%71 = icmp eq i32* %70, null
br i1 %71, label %72, label %76
72: ; preds = %63
%73 = load i32*, i32** @stderr
%74 = call i32 (i32*, i8*, ...) @fprintf(i32* %73, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i8* %64)
%75 = call i32 @exit(i32 -1)
unreachable
76: ; preds = %63
%77 = call i8* @strchr(i8* %7, i8 signext 10)
%78 = icmp eq i8* %77, null
br i1 %78, label %80, label %79
79: ; preds = %76
store i8 0, i8* %77
br label %80
80: ; preds = %79, %76
%81 = call i32 @fclose(i32* %69)
%82 = call i32* @openFile(i8* %66)
%83 = call i32* @fgets(i8* %10, i32 127, i32* %82)
%84 = icmp eq i32* %83, null
br i1 %84, label %85, label %89
85: ; preds = %80
%86 = load i32*, i32** @stderr
%87 = call i32 (i32*, i8*, ...) @fprintf(i32* %86, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i8* %66)
%88 = call i32 @exit(i32 -1)
unreachable
89: ; preds = %80
%90 = call i32 @fclose(i32* %82)
%91 = call i8* @strchr(i8* %10, i8 signext 32)
%92 = icmp eq i8* %91, null
br i1 %92, label %116, label %93
93: ; preds = %89
%94 = getelementptr inbounds i8, i8* %91, i64 1
%95 = call i8* @strchr(i8* %94, i8 signext 32)
%96 = icmp eq i8* %95, null
br i1 %96, label %116, label %97
97: ; preds = %93
%98 = call i64 @strlen(i8* %7)
%99 = getelementptr [128 x i8], [128 x i8]* %3, i64 0, i64 %98
br label %100
100: ; preds = %100, %97
%101 = phi i8* [ %95, %97 ], [ %103, %100 ]
%102 = phi i8* [ %99, %97 ], [ %106, %100 ]
%103 = getelementptr inbounds i8, i8* %101, i64 1
%104 = load i8, i8* %103
store i8 %104, i8* %102
%105 = icmp eq i8 %104, 0
%106 = getelementptr inbounds i8, i8* %102, i64 1
br i1 %105, label %107, label %100
107: ; preds = %100
%108 = getelementptr inbounds i8, i8* %102, i64 -1
%109 = load i8, i8* %108
%110 = icmp eq i8 %109, 10
br i1 %110, label %111, label %112
111: ; preds = %107
store i8 0, i8* %108
br label %112
112: ; preds = %111, %107
%113 = call i32* @openFile(i8* %65)
%114 = call i32* @fgets(i8* %8, i32 127, i32* %113)
%115 = icmp eq i32* %114, null
br i1 %115, label %120, label %124
116: ; preds = %89, %93
%117 = load i32*, i32** @stderr
%118 = call i32 (i32*, i8*, ...) @fprintf(i32* %117, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.8, i64 0, i64 0), i8* %66)
%119 = call i32 @exit(i32 -1)
unreachable
120: ; preds = %112
%121 = load i32*, i32** @stderr
%122 = call i32 (i32*, i8*, ...) @fprintf(i32* %121, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), i8* %65)
%123 = call i32 @exit(i32 -1)
unreachable
124: ; preds = %112
%125 = call i32 @fclose(i32* %113)
%126 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 6
%127 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 3
%128 = call i32 @sprintf(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.10, i64 0, i64 0), i8* %126, i8* %8, i8* %127)
br i1 %68, label %129, label %138
129: ; preds = %124
%130 = load i8*, i8** %67
%131 = call i32* @fopen(i8* %130, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%132 = icmp eq i32* %131, null
br i1 %132, label %133, label %140
133: ; preds = %129
%134 = load i32*, i32** @stderr
%135 = load i8*, i8** %67
%136 = call i32 (i32*, i8*, ...) @fprintf(i32* %134, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.12, i64 0, i64 0), i8* %135)
%137 = call i32 @exit(i32 -1)
unreachable
138: ; preds = %124
%139 = load i32*, i32** @stdout
br label %140
140: ; preds = %129, %138
%141 = phi i32* [ %131, %129 ], [ %139, %138 ]
%142 = call i32 (i32*, i8*, ...) @fprintf(i32* %141, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.13, i64 0, i64 0), i8* %7)
%143 = call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i64 37, i64 1, i32* %141)
%144 = call i64 @fwrite(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.15, i64 0, i64 0), i64 48, i64 1, i32* %141)
%145 = call i64 @fwrite(i8* getelementptr inbounds ([240 x i8], [240 x i8]* @.str.16, i64 0, i64 0), i64 239, i64 1, i32* %141)
%146 = call i32 (i32*, i8*, ...) @fprintf(i32* %141, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8* %9)
%147 = load i32*, i32** @stdout
%148 = icmp eq i32* %141, %147
br i1 %148, label %151, label %149
149: ; preds = %140
%150 = call i32 @fclose(i32* %141)
br label %151
151: ; preds = %149, %140
ret i32 0
}