#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 /*<<< orphan*/ about();
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ processfile(char *, int, int *, int *, int *, int *, int *,
                               int *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdout;
int main(int argc, char *argv[]) {
  char *outname = NULL;
  FILE *fp;
  int index;
  int process_self = 0;
  int max_build, accum_build;
  int max_year, max_month, max_day;
  int ismodified;
  int write_simple = 0;
  int write_java = 0;
  char *java_package = NULL;
  if (argc <= 1)
    about();
  max_build = 0;
  accum_build = 0;
  max_year = max_month = max_day = 0;
  ismodified = 0;
  for (index = 1; index < argc; index++) {
    if (argv[index][0] == '-') {
      switch (argv[index][1]) {
      case 'o':
        outname = &argv[index][2];
        continue;
      case 'i':
        process_self = 1;
        continue;
      case 'j':
        write_java = 1;
        java_package = &argv[index][2];
        continue;
      case 'm':
        write_simple = 1;
        continue;
      default:
        fprintf(stderr, "Invalid option '%s'\n", argv[index]);
        about();
      }
    }
    processfile(argv[index], 0, &max_build, &accum_build, &max_year, &max_month,
                &max_day, &ismodified);
  }
  if (outname == NULL)
    outname = write_java ? "SvnRevision.java" : "svnrev.h";
  if (process_self && *outname != '\0')
    processfile(outname, 1, &max_build, &accum_build, &max_year, &max_month,
                &max_day, NULL);
  if (accum_build > max_build)
    max_build = accum_build;
  if (*outname == '\0') {
    fp = stdout;
  } else if ((fp = fopen(outname, "w")) == NULL) {
    fprintf(stderr, "Failed to create output file '%s'\n", outname);
    return 2;
  }
  if (*outname != '\0') {
    fprintf(fp,
            "/* This file was generated by the \"svnrev\" utility\n"
            " * (http://www.compuphase.com/svnrev.htm).\n"
            " * You should not modify it manually, as it may be re-generated.\n"
            " *\n");
    if (ismodified)
      fprintf(fp, " * $Revision: %dM$\n", max_build);
    else
      fprintf(fp, " * $Revision: %d$\n", max_build);
    fprintf(fp,
            " * $Date: %04d-%02d-%02d$\n"
            " */\n\n",
            max_year, max_month, max_day);
  }
  if (write_java) {
    if (java_package == NULL || *java_package == '\0')
      java_package = "com.compuphase";
    fprintf(fp, "package %s;\n\n", java_package);
    fprintf(fp, "public interface SvnRevision\n");
    fprintf(fp, "{\n");
    fprintf(fp, "    public final static int SVN_REV = %d;\n", max_build);
    if (ismodified)
      fprintf(fp, "    public final static String SVN_REVSTR = \"%dM\";\n",
              max_build);
    else
      fprintf(fp, "    public final static String SVN_REVSTR = \"%d\";\n",
              max_build);
    fprintf(
        fp,
        "    public final static String SVN_REVDATE = \"%04d-%02d-%02d\";\n",
        max_year, max_month, max_day);
    fprintf(fp, "    public final static long SVN_REVSTAMP = %04d%02d%02dL;\n",
            max_year, max_month, max_day);
    fprintf(fp, "    public final static int SVN_MODIFIED = %d;\n", ismodified);
    fprintf(fp, "}\n\n");
  } else if (write_simple) {
    if (ismodified)
      fprintf(fp, "%dM\n", max_build);
    else
      fprintf(fp, "%d\n", max_build);
  } else {
    fprintf(fp, "#ifndef SVNREH_H\n");
    fprintf(fp, "#define SVNREV_H\n\n");
    fprintf(fp, "#define SVN_REV\t\t%d\n", max_build);
    if (ismodified)
      fprintf(fp, "#define SVN_REVSTR\t\"%dM\"\n", max_build);
    else
      fprintf(fp, "#define SVN_REVSTR\t\"%d\"\n", max_build);
    fprintf(fp, "#define SVN_REVDATE\t\"%04d-%02d-%02d\"\n", max_year,
            max_month, max_day);
    fprintf(fp, "#define SVN_REVSTAMP\t%04d%02d%02dL\n", max_year, max_month,
            max_day);
    fprintf(fp, "#define SVN_MODIFIED\t%d\n", ismodified);
    fprintf(fp, "\n#endif /* SVNREV_H */\n");
  }
  if (*outname != '\0')
    fclose(fp);
  return 0;
}


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)
movq   $0x0,-0x18(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movq   $0x0,-0x50(%rbp)
cmpl   $0x1,-0x8(%rbp)
jg     119c <main+0x4c>
mov    $0x0,%al
call   1060 <about@plt>
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12ea <main+0x19a>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    12a8 <main+0x158>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
add    $0xffffff97,%eax
mov    %eax,%ecx
mov    %rcx,-0x58(%rbp)
sub    $0x6,%eax
ja     1278 <main+0x128>
mov    -0x58(%rbp),%rax
lea    0xde2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
add    $0x2,%rax
mov    %rax,-0x18(%rbp)
jmp    12dc <main+0x18c>
movl   $0x1,-0x28(%rbp)
jmp    12dc <main+0x18c>
movl   $0x1,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
add    $0x2,%rax
mov    %rax,-0x50(%rbp)
jmp    12dc <main+0x18c>
movl   $0x1,-0x44(%rbp)
jmp    12dc <main+0x18c>
mov    0x2d61(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xd87(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x0,%al
call   1060 <about@plt>
jmp    12a8 <main+0x158>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
xor    %esi,%esi
lea    -0x2c(%rbp),%rdx
lea    -0x30(%rbp),%rcx
lea    -0x34(%rbp),%r8
lea    -0x38(%rbp),%r9
lea    -0x3c(%rbp),%r10
lea    -0x40(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <processfile@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11cd <main+0x7d>
cmpq   $0x0,-0x18(%rbp)
jne    1311 <main+0x1c1>
mov    -0x48(%rbp),%edx
lea    0xd43(%rip),%rax
lea    0xd2b(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x18(%rbp)
cmpl   $0x0,-0x28(%rbp)
je     135d <main+0x20d>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     135d <main+0x20d>
mov    -0x18(%rbp),%rdi
mov    $0x1,%esi
lea    -0x2c(%rbp),%rdx
lea    -0x30(%rbp),%rcx
lea    -0x34(%rbp),%r8
lea    -0x38(%rbp),%r9
lea    -0x3c(%rbp),%rax
xor    %r10d,%r10d
mov    %rax,(%rsp)
movq   $0x0,0x8(%rsp)
call   1030 <processfile@plt>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jle    136f <main+0x21f>
mov    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1392 <main+0x242>
mov    0x2c52(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
jmp    13dd <main+0x28d>
mov    -0x18(%rbp),%rdi
lea    0xcae(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    13d8 <main+0x288>
mov    0x2c29(%rip),%rax
movslq (%rax),%rdi
mov    -0x18(%rbp),%rdx
lea    0xc88(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x2,-0x4(%rbp)
jmp    16ae <main+0x55e>
jmp    13dd <main+0x28d>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1454 <main+0x304>
mov    -0x20(%rbp),%rdi
lea    0xc78(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
cmpl   $0x0,-0x40(%rbp)
je     1423 <main+0x2d3>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xcfc(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1438 <main+0x2e8>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xcf6(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x34(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x3c(%rbp),%r8d
lea    0xced(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
cmpl   $0x0,-0x48(%rbp)
je     1570 <main+0x420>
cmpq   $0x0,-0x50(%rbp)
je     1479 <main+0x329>
mov    -0x50(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1484 <main+0x334>
lea    0xcda(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x50(%rbp),%rdx
lea    0xcd6(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xcd2(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xcde(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xccc(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
cmpl   $0x0,-0x40(%rbp)
je     14f7 <main+0x3a7>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xcd8(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    150c <main+0x3bc>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xcf2(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x34(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x3c(%rbp),%r8d
lea    0xd09(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x34(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x3c(%rbp),%r8d
lea    0xd2d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x40(%rbp),%edx
lea    0xd54(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xd72(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    168e <main+0x53e>
cmpl   $0x0,-0x44(%rbp)
je     15b8 <main+0x468>
cmpl   $0x0,-0x40(%rbp)
je     159e <main+0x44e>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xd48(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    15b3 <main+0x463>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xd69(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1689 <main+0x539>
mov    -0x20(%rbp),%rdi
lea    0xd1c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xd1c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xd1a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
cmpl   $0x0,-0x40(%rbp)
je     1615 <main+0x4c5>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xd10(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    162a <main+0x4da>
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%edx
lea    0xd10(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x34(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x3c(%rbp),%r8d
lea    0xd0d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x34(%rbp),%edx
mov    -0x38(%rbp),%ecx
mov    -0x3c(%rbp),%r8d
lea    0xd17(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x40(%rbp),%edx
lea    0xd26(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xd2d(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    168e <main+0x53e>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     16a7 <main+0x557>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
cmp    $0x1,%edi
jg     117f <main+0x1f>
xor    %eax,%eax
call   1060 <about@plt>
movl   $0x0,0x8(%rsp)
movl   $0x0,0x20(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x14(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0xc(%rsp)
cmp    $0x2,%ebp
jl     12a7 <main+0x147>
mov    %ebp,%r15d
mov    $0x1,%r12d
lea    0xe38(%rip),%r13
lea    0x14(%rsp),%r14
xor    %eax,%eax
mov    %rax,0x28(%rsp)
movl   $0x0,0x24(%rsp)
movl   $0x0,0x1c(%rsp)
xor    %eax,%eax
xor    %ecx,%ecx
mov    %rcx,0x30(%rsp)
jmp    1257 <main+0xf7>
mov    0x2dea(%rip),%rax
movslq (%rax),%rdi
lea    0xe1c(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
xor    %eax,%eax
call   1060 <about@plt>
mov    (%rbx,%r12,8),%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rdx,%rdi
xor    %esi,%esi
lea    0x8(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x18(%rsp),%r8
mov    %r14,%r9
lea    0xc(%rsp),%rax
push   %rax
lea    0x18(%rsp),%rax
push   %rax
call   1030 <processfile@plt>
add    $0x10,%rsp
mov    %ebp,%eax
add    $0x1,%r12
cmp    %r12,%r15
je     12b8 <main+0x158>
mov    %eax,%ebp
mov    (%rbx,%r12,8),%rdx
cmpb   $0x2d,(%rdx)
jne    1220 <main+0xc0>
movsbl 0x1(%rdx),%ecx
add    $0xffffff97,%ecx
cmp    $0x6,%ecx
ja     11ef <main+0x8f>
mov    $0x1,%eax
movslq 0x0(%r13,%rcx,4),%rcx
add    %r13,%rcx
jmp    *%rcx
add    $0x2,%rdx
movl   $0x1,0x24(%rsp)
mov    %ebp,%eax
mov    %rdx,0x28(%rsp)
jmp    124e <main+0xee>
movl   $0x1,0x1c(%rsp)
jmp    124c <main+0xec>
add    $0x2,%rdx
mov    %rdx,0x30(%rsp)
jmp    124c <main+0xec>
xor    %ebp,%ebp
mov    $0x1,%r15b
lea    0xd8f(%rip),%r14
xor    %r12d,%r12d
jmp    1320 <main+0x1c0>
cmpl   $0x0,0x24(%rsp)
sete   %r15b
lea    0xd7a(%rip),%rcx
lea    0xd62(%rip),%r14
cmove  %rcx,%r14
mov    0x30(%rsp),%rcx
test   %rcx,%rcx
cmovne %rcx,%r14
test   %eax,%eax
je     1316 <main+0x1b6>
cmpb   $0x0,(%r14)
je     1316 <main+0x1b6>
lea    0x8(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x14(%rsp),%r9
mov    %r14,%rdi
mov    $0x1,%esi
push   $0x0
lea    0x18(%rsp),%rax
push   %rax
call   1030 <processfile@plt>
add    $0x10,%rsp
mov    0x28(%rsp),%rbp
mov    0x1c(%rsp),%r12d
mov    0x20(%rsp),%eax
cmp    0x8(%rsp),%eax
jle    132e <main+0x1ce>
mov    %eax,0x8(%rsp)
cmpb   $0x0,(%r14)
je     13de <main+0x27e>
lea    0xd0c(%rip),%rsi
mov    %r14,%rdi
call   1070 <fopen@plt>
test   %rax,%rax
je     14e1 <main+0x381>
mov    %rax,%rbx
cmpb   $0x0,(%r14)
je     13b5 <main+0x255>
lea    0xd10(%rip),%rdi
mov    $0xa2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1080 <fwrite@plt>
cmpl   $0x0,0xc(%rsp)
mov    0x8(%rsp),%edx
lea    0xda5(%rip),%rax
lea    0xd8a(%rip),%rsi
cmove  %rax,%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x18(%rsp),%edx
mov    0x14(%rsp),%ecx
mov    0x10(%rsp),%r8d
lea    0xd8f(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
test   %r15b,%r15b
je     13ed <main+0x28d>
test   %r12d,%r12d
je     1506 <main+0x3a6>
cmpl   $0x0,0xc(%rsp)
mov    0x8(%rsp),%edx
je     15de <main+0x47e>
lea    0xf01(%rip),%rsi
jmp    15e5 <main+0x485>
mov    0x2bf3(%rip),%rax
mov    (%rax),%rbx
test   %r15b,%r15b
jne    13ba <main+0x25a>
test   %rbp,%rbp
je     13f8 <main+0x298>
cmpb   $0x0,0x0(%rbp)
jne    13ff <main+0x29f>
lea    0xd5b(%rip),%rbp
lea    0xd63(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xd5d(%rip),%rdi
mov    $0x1d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1080 <fwrite@plt>
lea    0xd62(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    0x8(%rsp),%edx
lea    0xd48(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
cmpl   $0x0,0xc(%rsp)
mov    0x8(%rsp),%edx
lea    0xd8d(%rip),%rax
lea    0xd52(%rip),%rsi
cmove  %rax,%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x18(%rsp),%edx
mov    0x14(%rsp),%ecx
mov    0x10(%rsp),%r8d
lea    0xd97(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x18(%rsp),%edx
mov    0x14(%rsp),%ecx
mov    0x10(%rsp),%r8d
lea    0xdb9(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0xc(%rsp),%edx
lea    0xde0(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xdff(%rip),%rdi
mov    $0x3,%esi
jmp    15cf <main+0x46f>
mov    0x2af8(%rip),%rax
movslq (%rax),%rdi
lea    0xb5b(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x2,%ebp
jmp    15ff <main+0x49f>
lea    0xdd2(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1080 <fwrite@plt>
lea    0xdcb(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1080 <fwrite@plt>
mov    0x8(%rsp),%edx
lea    0xdc1(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
cmpl   $0x0,0xc(%rsp)
mov    0x8(%rsp),%edx
lea    0xdd6(%rip),%rax
lea    0xdb5(%rip),%rsi
cmove  %rax,%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x18(%rsp),%edx
mov    0x14(%rsp),%ecx
mov    0x10(%rsp),%r8d
lea    0xdc6(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0x18(%rsp),%edx
mov    0x14(%rsp),%ecx
mov    0x10(%rsp),%r8d
lea    0xdce(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    0xc(%rsp),%edx
lea    0xddd(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0xde5(%rip),%rdi
mov    $0x17,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1080 <fwrite@plt>
jmp    15ef <main+0x48f>
lea    0xd30(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <fprintf@plt>
xor    %ebp,%ebp
cmpb   $0x0,(%r14)
je     15ff <main+0x49f>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    %ebp,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [21 x i8] c"Invalid option '%s'\0A\00"
@.str.1 = [17 x i8] c"SvnRevision.java\00"
@.str.2 = [9 x i8] c"svnrev.h\00"
@stdout = global i32* null
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [35 x i8] c"Failed to create output file '%s'\0A\00"
@.str.5 = [163 x i8] c"/* This file was generated by the \22svnrev\22 utility\0A * (http://www.compuphase.com/svnrev.htm).\0A * You should not modify it manually, as it may be re-generated.\0A *\0A\00"
@.str.6 = [20 x i8] c" * $Revision: %dM$\0A\00"
@.str.7 = [19 x i8] c" * $Revision: %d$\0A\00"
@.str.8 = [32 x i8] c" * $Date: %04d-%02d-%02d$\0A */\0A\0A\00"
@.str.9 = [15 x i8] c"com.compuphase\00"
@.str.10 = [14 x i8] c"package %s;\0A\0A\00"
@.str.11 = [30 x i8] c"public interface SvnRevision\0A\00"
@.str.12 = [3 x i8] c"{\0A\00"
@.str.13 = [43 x i8] c" public final static int SVN_REV = %d;\0A\00"
@.str.14 = [52 x i8] c" public final static String SVN_REVSTR = \22%dM\22;\0A\00"
@.str.15 = [51 x i8] c" public final static String SVN_REVSTR = \22%d\22;\0A\00"
@.str.16 = [64 x i8] c" public final static String SVN_REVDATE = \22%04d-%02d-%02d\22;\0A\00"
@.str.17 = [60 x i8] c" public final static long SVN_REVSTAMP = %04d%02d%02dL;\0A\00"
@.str.18 = [48 x i8] c" public final static int SVN_MODIFIED = %d;\0A\00"
@.str.19 = [4 x i8] c"}\0A\0A\00"
@.str.20 = [5 x i8] c"%dM\0A\00"
@.str.21 = [4 x i8] c"%d\0A\00"
@.str.22 = [18 x i8] c"#ifndef SVNREH_H\0A\00"
@.str.23 = [19 x i8] c"#define SVNREV_H\0A\0A\00"
@.str.24 = [21 x i8] c"#define SVN_REV\09\09%d\0A\00"
@.str.25 = [26 x i8] c"#define SVN_REVSTR\09\22%dM\22\0A\00"
@.str.26 = [25 x i8] c"#define SVN_REVSTR\09\22%d\22\0A\00"
@.str.27 = [38 x i8] c"#define SVN_REVDATE\09\22%04d-%02d-%02d\22\0A\00"
@.str.28 = [36 x i8] c"#define SVN_REVSTAMP\09%04d%02d%02dL\0A\00"
@.str.29 = [25 x i8] c"#define SVN_MODIFIED\09%d\0A\00"
@.str.30 = [24 x i8] c"\0A#endif /* SVNREV_H */\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
store i32 0, i32* %9
store i32 0, i32* %16
store i32 0, i32* %17
store i8* null, i8** %18
%19 = load i32, i32* %4
%20 = icmp sle i32 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %2
%22 = call i32 (...) @about()
br label %23
23: ; preds = %21, %2
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %14
store i32 0, i32* %13
store i32 0, i32* %12
store i32 0, i32* %15
store i32 1, i32* %8
br label %24
24: ; preds = %82, %23
%25 = load i32, i32* %8
%26 = load i32, i32* %4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %85
28: ; preds = %24
%29 = load i8**, i8*** %5
%30 = load i32, i32* %8
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8*, i8** %29, i64 %31
%33 = load i8*, i8** %32
%34 = getelementptr inbounds i8, i8* %33, i64 0
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 45
br i1 %37, label %38, label %75
38: ; preds = %28
%39 = load i8**, i8*** %5
%40 = load i32, i32* %8
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8*, i8** %39, i64 %41
%43 = load i8*, i8** %42
%44 = getelementptr inbounds i8, i8* %43, i64 1
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
switch i32 %46, label %63 [
i32 111, label %47
i32 105, label %54
i32 106, label %55
i32 109, label %62
]
47: ; preds = %38
%48 = load i8**, i8*** %5
%49 = load i32, i32* %8
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8*, i8** %48, i64 %50
%52 = load i8*, i8** %51
%53 = getelementptr inbounds i8, i8* %52, i64 2
store i8* %53, i8** %6
br label %82
54: ; preds = %38
store i32 1, i32* %9
br label %82
55: ; preds = %38
store i32 1, i32* %17
%56 = load i8**, i8*** %5
%57 = load i32, i32* %8
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8*, i8** %56, i64 %58
%60 = load i8*, i8** %59
%61 = getelementptr inbounds i8, i8* %60, i64 2
store i8* %61, i8** %18
br label %82
62: ; preds = %38
store i32 1, i32* %16
br label %82
63: ; preds = %38
%64 = load i32, i32* @stderr
%65 = sext i32 %64 to i64
%66 = inttoptr i64 %65 to i32*
%67 = load i8**, i8*** %5
%68 = load i32, i32* %8
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8*, i8** %67, i64 %69
%71 = load i8*, i8** %70
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %71)
%73 = call i32 (...) @about()
br label %74
74: ; preds = %63
br label %75
75: ; preds = %74, %28
%76 = load i8**, i8*** %5
%77 = load i32, i32* %8
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8*, i8** %76, i64 %78
%80 = load i8*, i8** %79
%81 = call i32 @processfile(i8* %80, i32 0, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14, i32* %15)
br label %82
82: ; preds = %75, %62, %55, %54, %47
%83 = load i32, i32* %8
%84 = add nsw i32 %83, 1
store i32 %84, i32* %8
br label %24
85: ; preds = %24
%86 = load i8*, i8** %6
%87 = icmp eq i8* %86, null
br i1 %87, label %88, label %93
88: ; preds = %85
%89 = load i32, i32* %17
%90 = icmp ne i32 %89, 0
%91 = zext i1 %90 to i64
%92 = select i1 %90, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0)
store i8* %92, i8** %6
br label %93
93: ; preds = %88, %85
%94 = load i32, i32* %9
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %104
96: ; preds = %93
%97 = load i8*, i8** %6
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp ne i32 %99, 0
br i1 %100, label %101, label %104
101: ; preds = %96
%102 = load i8*, i8** %6
%103 = call i32 @processfile(i8* %102, i32 1, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14, i32* null)
br label %104
104: ; preds = %101, %96, %93
%105 = load i32, i32* %11
%106 = load i32, i32* %10
%107 = icmp sgt i32 %105, %106
br i1 %107, label %108, label %110
108: ; preds = %104
%109 = load i32, i32* %11
store i32 %109, i32* %10
br label %110
110: ; preds = %108, %104
%111 = load i8*, i8** %6
%112 = load i8, i8* %111
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 0
br i1 %114, label %115, label %117
115: ; preds = %110
%116 = load i32*, i32** @stdout
store i32* %116, i32** %7
br label %128
117: ; preds = %110
%118 = load i8*, i8** %6
%119 = call i32* @fopen(i8* %118, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %119, i32** %7
%120 = icmp eq i32* %119, null
br i1 %120, label %121, label %127
121: ; preds = %117
%122 = load i32, i32* @stderr
%123 = sext i32 %122 to i64
%124 = inttoptr i64 %123 to i32*
%125 = load i8*, i8** %6
%126 = call i32 (i32*, i8*, ...) @fprintf(i32* %124, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i8* %125)
store i32 2, i32* %3
br label %260
127: ; preds = %117
br label %128
128: ; preds = %127, %115
%129 = load i8*, i8** %6
%130 = load i8, i8* %129
%131 = sext i8 %130 to i32
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %152
133: ; preds = %128
%134 = load i32*, i32** %7
%135 = call i32 (i32*, i8*, ...) @fprintf(i32* %134, i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0))
%136 = load i32, i32* %15
%137 = icmp ne i32 %136, 0
br i1 %137, label %138, label %142
138: ; preds = %133
%139 = load i32*, i32** %7
%140 = load i32, i32* %10
%141 = call i32 (i32*, i8*, ...) @fprintf(i32* %139, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %140)
br label %146
142: ; preds = %133
%143 = load i32*, i32** %7
%144 = load i32, i32* %10
%145 = call i32 (i32*, i8*, ...) @fprintf(i32* %143, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %144)
br label %146
146: ; preds = %142, %138
%147 = load i32*, i32** %7
%148 = load i32, i32* %12
%149 = load i32, i32* %13
%150 = load i32, i32* %14
%151 = call i32 (i32*, i8*, ...) @fprintf(i32* %147, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0), i32 %148, i32 %149, i32 %150)
br label %152
152: ; preds = %146, %128
%153 = load i32, i32* %17
%154 = icmp ne i32 %153, 0
br i1 %154, label %155, label %201
155: ; preds = %152
%156 = load i8*, i8** %18
%157 = icmp eq i8* %156, null
br i1 %157, label %163, label %158
158: ; preds = %155
%159 = load i8*, i8** %18
%160 = load i8, i8* %159
%161 = sext i8 %160 to i32
%162 = icmp eq i32 %161, 0
br i1 %162, label %163, label %164
163: ; preds = %158, %155
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8** %18
br label %164
164: ; preds = %163, %158
%165 = load i32*, i32** %7
%166 = load i8*, i8** %18
%167 = call i32 (i32*, i8*, ...) @fprintf(i32* %165, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8* %166)
%168 = load i32*, i32** %7
%169 = call i32 (i32*, i8*, ...) @fprintf(i32* %168, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%170 = load i32*, i32** %7
%171 = call i32 (i32*, i8*, ...) @fprintf(i32* %170, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%172 = load i32*, i32** %7
%173 = load i32, i32* %10
%174 = call i32 (i32*, i8*, ...) @fprintf(i32* %172, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.13, i64 0, i64 0), i32 %173)
%175 = load i32, i32* %15
%176 = icmp ne i32 %175, 0
br i1 %176, label %177, label %181
177: ; preds = %164
%178 = load i32*, i32** %7
%179 = load i32, i32* %10
%180 = call i32 (i32*, i8*, ...) @fprintf(i32* %178, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.14, i64 0, i64 0), i32 %179)
br label %185
181: ; preds = %164
%182 = load i32*, i32** %7
%183 = load i32, i32* %10
%184 = call i32 (i32*, i8*, ...) @fprintf(i32* %182, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.15, i64 0, i64 0), i32 %183)
br label %185
185: ; preds = %181, %177
%186 = load i32*, i32** %7
%187 = load i32, i32* %12
%188 = load i32, i32* %13
%189 = load i32, i32* %14
%190 = call i32 (i32*, i8*, ...) @fprintf(i32* %186, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.16, i64 0, i64 0), i32 %187, i32 %188, i32 %189)
%191 = load i32*, i32** %7
%192 = load i32, i32* %12
%193 = load i32, i32* %13
%194 = load i32, i32* %14
%195 = call i32 (i32*, i8*, ...) @fprintf(i32* %191, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.17, i64 0, i64 0), i32 %192, i32 %193, i32 %194)
%196 = load i32*, i32** %7
%197 = load i32, i32* %15
%198 = call i32 (i32*, i8*, ...) @fprintf(i32* %196, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0), i32 %197)
%199 = load i32*, i32** %7
%200 = call i32 (i32*, i8*, ...) @fprintf(i32* %199, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
br label %251
201: ; preds = %152
%202 = load i32, i32* %16
%203 = icmp ne i32 %202, 0
br i1 %203, label %204, label %216
204: ; preds = %201
%205 = load i32, i32* %15
%206 = icmp ne i32 %205, 0
br i1 %206, label %207, label %211
207: ; preds = %204
%208 = load i32*, i32** %7
%209 = load i32, i32* %10
%210 = call i32 (i32*, i8*, ...) @fprintf(i32* %208, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 %209)
br label %215
211: ; preds = %204
%212 = load i32*, i32** %7
%213 = load i32, i32* %10
%214 = call i32 (i32*, i8*, ...) @fprintf(i32* %212, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i32 %213)
br label %215
215: ; preds = %211, %207
br label %250
216: ; preds = %201
%217 = load i32*, i32** %7
%218 = call i32 (i32*, i8*, ...) @fprintf(i32* %217, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0))
%219 = load i32*, i32** %7
%220 = call i32 (i32*, i8*, ...) @fprintf(i32* %219, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0))
%221 = load i32*, i32** %7
%222 = load i32, i32* %10
%223 = call i32 (i32*, i8*, ...) @fprintf(i32* %221, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.24, i64 0, i64 0), i32 %222)
%224 = load i32, i32* %15
%225 = icmp ne i32 %224, 0
br i1 %225, label %226, label %230
226: ; preds = %216
%227 = load i32*, i32** %7
%228 = load i32, i32* %10
%229 = call i32 (i32*, i8*, ...) @fprintf(i32* %227, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.25, i64 0, i64 0), i32 %228)
br label %234
230: ; preds = %216
%231 = load i32*, i32** %7
%232 = load i32, i32* %10
%233 = call i32 (i32*, i8*, ...) @fprintf(i32* %231, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.26, i64 0, i64 0), i32 %232)
br label %234
234: ; preds = %230, %226
%235 = load i32*, i32** %7
%236 = load i32, i32* %12
%237 = load i32, i32* %13
%238 = load i32, i32* %14
%239 = call i32 (i32*, i8*, ...) @fprintf(i32* %235, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.27, i64 0, i64 0), i32 %236, i32 %237, i32 %238)
%240 = load i32*, i32** %7
%241 = load i32, i32* %12
%242 = load i32, i32* %13
%243 = load i32, i32* %14
%244 = call i32 (i32*, i8*, ...) @fprintf(i32* %240, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.28, i64 0, i64 0), i32 %241, i32 %242, i32 %243)
%245 = load i32*, i32** %7
%246 = load i32, i32* %15
%247 = call i32 (i32*, i8*, ...) @fprintf(i32* %245, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.29, i64 0, i64 0), i32 %246)
%248 = load i32*, i32** %7
%249 = call i32 (i32*, i8*, ...) @fprintf(i32* %248, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.30, i64 0, i64 0))
br label %250
250: ; preds = %234, %215
br label %251
251: ; preds = %250, %185
%252 = load i8*, i8** %6
%253 = load i8, i8* %252
%254 = sext i8 %253 to i32
%255 = icmp ne i32 %254, 0
br i1 %255, label %256, label %259
256: ; preds = %251
%257 = load i32*, i32** %7
%258 = call i32 @fclose(i32* %257)
br label %259
259: ; preds = %256, %251
store i32 0, i32* %3
br label %260
260: ; preds = %259, %121
%261 = load i32, i32* %3
ret i32 %261
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [21 x i8] c"Invalid option '%s'\0A\00"
@.str.1 = [17 x i8] c"SvnRevision.java\00"
@.str.2 = [9 x i8] c"svnrev.h\00"
@stdout = global i32* null
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [35 x i8] c"Failed to create output file '%s'\0A\00"
@.str.5 = [163 x i8] c"/* This file was generated by the \22svnrev\22 utility\0A * (http://www.compuphase.com/svnrev.htm).\0A * You should not modify it manually, as it may be re-generated.\0A *\0A\00"
@.str.6 = [20 x i8] c" * $Revision: %dM$\0A\00"
@.str.7 = [19 x i8] c" * $Revision: %d$\0A\00"
@.str.8 = [32 x i8] c" * $Date: %04d-%02d-%02d$\0A */\0A\0A\00"
@.str.9 = [15 x i8] c"com.compuphase\00"
@.str.10 = [14 x i8] c"package %s;\0A\0A\00"
@.str.11 = [30 x i8] c"public interface SvnRevision\0A\00"
@.str.12 = [3 x i8] c"{\0A\00"
@.str.13 = [43 x i8] c" public final static int SVN_REV = %d;\0A\00"
@.str.14 = [52 x i8] c" public final static String SVN_REVSTR = \22%dM\22;\0A\00"
@.str.15 = [51 x i8] c" public final static String SVN_REVSTR = \22%d\22;\0A\00"
@.str.16 = [64 x i8] c" public final static String SVN_REVDATE = \22%04d-%02d-%02d\22;\0A\00"
@.str.17 = [60 x i8] c" public final static long SVN_REVSTAMP = %04d%02d%02dL;\0A\00"
@.str.18 = [48 x i8] c" public final static int SVN_MODIFIED = %d;\0A\00"
@.str.19 = [4 x i8] c"}\0A\0A\00"
@.str.20 = [5 x i8] c"%dM\0A\00"
@.str.21 = [4 x i8] c"%d\0A\00"
@.str.22 = [18 x i8] c"#ifndef SVNREH_H\0A\00"
@.str.23 = [19 x i8] c"#define SVNREV_H\0A\0A\00"
@.str.24 = [21 x i8] c"#define SVN_REV\09\09%d\0A\00"
@.str.25 = [26 x i8] c"#define SVN_REVSTR\09\22%dM\22\0A\00"
@.str.26 = [25 x i8] c"#define SVN_REVSTR\09\22%d\22\0A\00"
@.str.27 = [38 x i8] c"#define SVN_REVDATE\09\22%04d-%02d-%02d\22\0A\00"
@.str.28 = [36 x i8] c"#define SVN_REVSTAMP\09%04d%02d%02dL\0A\00"
@.str.29 = [25 x i8] c"#define SVN_MODIFIED\09%d\0A\00"
@.str.30 = [24 x i8] c"\0A#endif /* SVNREV_H */\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = bitcast i32* %7 to i8*
%14 = bitcast i32* %8 to i8*
%15 = icmp slt i32 %0, 2
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = tail call i32 (...) @about()
br label %18
18: ; preds = %16, %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %7
store i32 0, i32* %6
store i32 0, i32* %5
store i32 0, i32* %8
%19 = icmp sgt i32 %0, 1
br i1 %19, label %20, label %71
20: ; preds = %18
%21 = zext i32 %0 to i64
br label %22
22: ; preds = %20, %52
%23 = phi i64 [ 1, %20 ], [ %58, %52 ]
%24 = phi i8* [ null, %20 ], [ %57, %52 ]
%25 = phi i32 [ 0, %20 ], [ %56, %52 ]
%26 = phi i32 [ 0, %20 ], [ %55, %52 ]
%27 = phi i32 [ 0, %20 ], [ %54, %52 ]
%28 = phi i8* [ null, %20 ], [ %53, %52 ]
%29 = getelementptr inbounds i8*, i8** %1, i64 %23
%30 = load i8*, i8** %29
%31 = load i8, i8* %30
%32 = icmp eq i8 %31, 45
br i1 %32, label %33, label %49
33: ; preds = %22
%34 = getelementptr inbounds i8, i8* %30, i64 1
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
switch i32 %36, label %42 [
i32 111, label %37
i32 105, label %52
i32 106, label %39
i32 109, label %41
]
37: ; preds = %33
%38 = getelementptr inbounds i8, i8* %30, i64 2
br label %52
39: ; preds = %33
%40 = getelementptr inbounds i8, i8* %30, i64 2
br label %52
41: ; preds = %33
br label %52
42: ; preds = %33
%43 = load i32, i32* @stderr
%44 = sext i32 %43 to i64
%45 = inttoptr i64 %44 to i32*
%46 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %30)
%47 = call i32 (...) @about()
%48 = load i8*, i8** %29
br label %49
49: ; preds = %42, %22
%50 = phi i8* [ %48, %42 ], [ %30, %22 ]
%51 = call i32 @processfile(i8* %50, i32 0, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8)
br label %52
52: ; preds = %33, %49, %41, %39, %37
%53 = phi i8* [ %28, %49 ], [ %28, %41 ], [ %28, %39 ], [ %38, %37 ], [ %28, %33 ]
%54 = phi i32 [ %27, %49 ], [ %27, %41 ], [ %27, %39 ], [ %27, %37 ], [ 1, %33 ]
%55 = phi i32 [ %26, %49 ], [ 1, %41 ], [ %26, %39 ], [ %26, %37 ], [ %26, %33 ]
%56 = phi i32 [ %25, %49 ], [ %25, %41 ], [ 1, %39 ], [ %25, %37 ], [ %25, %33 ]
%57 = phi i8* [ %24, %49 ], [ %24, %41 ], [ %40, %39 ], [ %24, %37 ], [ %24, %33 ]
%58 = add nuw nsw i64 %23, 1
%59 = icmp eq i64 %58, %21
br i1 %59, label %60, label %22
60: ; preds = %52
%61 = icmp eq i8* %53, null
%62 = icmp eq i32 %56, 0
%63 = select i1 %62, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0)
%64 = select i1 %61, i8* %63, i8* %53
%65 = icmp eq i32 %54, 0
br i1 %65, label %71, label %66
66: ; preds = %60
%67 = load i8, i8* %64
%68 = icmp eq i8 %67, 0
br i1 %68, label %71, label %69
69: ; preds = %66
%70 = call i32 @processfile(i8* %64, i32 1, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* null)
br label %71
71: ; preds = %18, %69, %66, %60
%72 = phi i8* [ %64, %69 ], [ %64, %66 ], [ %64, %60 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), %18 ]
%73 = phi i1 [ %62, %69 ], [ %62, %66 ], [ %62, %60 ], [ true, %18 ]
%74 = phi i8* [ %57, %69 ], [ %57, %66 ], [ %57, %60 ], [ null, %18 ]
%75 = phi i32 [ %55, %69 ], [ %55, %66 ], [ %55, %60 ], [ 0, %18 ]
%76 = load i32, i32* %4
%77 = load i32, i32* %3
%78 = icmp sgt i32 %76, %77
br i1 %78, label %79, label %80
79: ; preds = %71
store i32 %76, i32* %3
br label %80
80: ; preds = %79, %71
%81 = load i8, i8* %72
%82 = icmp eq i8 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = load i32*, i32** @stdout
br label %107
85: ; preds = %80
%86 = call i32* @fopen(i8* %72, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%87 = icmp eq i32* %86, null
br i1 %87, label %88, label %93
88: ; preds = %85
%89 = load i32, i32* @stderr
%90 = sext i32 %89 to i64
%91 = inttoptr i64 %90 to i32*
%92 = call i32 (i32*, i8*, ...) @fprintf(i32* %91, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i8* %72)
br label %174
93: ; preds = %85
%94 = load i8, i8* %72
%95 = icmp eq i8 %94, 0
br i1 %95, label %107, label %96
96: ; preds = %93
%97 = call i64 @fwrite(i8* getelementptr inbounds ([163 x i8], [163 x i8]* @.str.5, i64 0, i64 0), i64 162, i64 1, i32* %86)
%98 = load i32, i32* %8
%99 = icmp eq i32 %98, 0
%100 = load i32, i32* %3
%101 = select i1 %99, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0)
%102 = call i32 (i32*, i8*, ...) @fprintf(i32* %86, i8* %101, i32 %100)
%103 = load i32, i32* %5
%104 = load i32, i32* %6
%105 = load i32, i32* %7
%106 = call i32 (i32*, i8*, ...) @fprintf(i32* %86, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0), i32 %103, i32 %104, i32 %105)
br label %107
107: ; preds = %83, %96, %93
%108 = phi i32* [ %84, %83 ], [ %86, %96 ], [ %86, %93 ]
br i1 %73, label %138, label %109
109: ; preds = %107
%110 = icmp eq i8* %74, null
br i1 %110, label %114, label %111
111: ; preds = %109
%112 = load i8, i8* %74
%113 = icmp eq i8 %112, 0
br i1 %113, label %114, label %115
114: ; preds = %111, %109
br label %115
115: ; preds = %114, %111
%116 = phi i8* [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), %114 ], [ %74, %111 ]
%117 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8* %116)
%118 = call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i64 29, i64 1, i32* %108)
%119 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i64 2, i64 1, i32* %108)
%120 = load i32, i32* %3
%121 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.13, i64 0, i64 0), i32 %120)
%122 = load i32, i32* %8
%123 = icmp eq i32 %122, 0
%124 = load i32, i32* %3
%125 = select i1 %123, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.14, i64 0, i64 0)
%126 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* %125, i32 %124)
%127 = load i32, i32* %5
%128 = load i32, i32* %6
%129 = load i32, i32* %7
%130 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.16, i64 0, i64 0), i32 %127, i32 %128, i32 %129)
%131 = load i32, i32* %5
%132 = load i32, i32* %6
%133 = load i32, i32* %7
%134 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.17, i64 0, i64 0), i32 %131, i32 %132, i32 %133)
%135 = load i32, i32* %8
%136 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.18, i64 0, i64 0), i32 %135)
%137 = call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0), i64 3, i64 1, i32* %108)
br label %169
138: ; preds = %107
%139 = icmp eq i32 %75, 0
br i1 %139, label %148, label %140
140: ; preds = %138
%141 = load i32, i32* %8
%142 = icmp eq i32 %141, 0
%143 = load i32, i32* %3
br i1 %142, label %146, label %144
144: ; preds = %140
%145 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 %143)
br label %169
146: ; preds = %140
%147 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0), i32 %143)
br label %169
148: ; preds = %138
%149 = call i64 @fwrite(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.22, i64 0, i64 0), i64 17, i64 1, i32* %108)
%150 = call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.23, i64 0, i64 0), i64 18, i64 1, i32* %108)
%151 = load i32, i32* %3
%152 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.24, i64 0, i64 0), i32 %151)
%153 = load i32, i32* %8
%154 = icmp eq i32 %153, 0
%155 = load i32, i32* %3
%156 = select i1 %154, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.25, i64 0, i64 0)
%157 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* %156, i32 %155)
%158 = load i32, i32* %5
%159 = load i32, i32* %6
%160 = load i32, i32* %7
%161 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.27, i64 0, i64 0), i32 %158, i32 %159, i32 %160)
%162 = load i32, i32* %5
%163 = load i32, i32* %6
%164 = load i32, i32* %7
%165 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.28, i64 0, i64 0), i32 %162, i32 %163, i32 %164)
%166 = load i32, i32* %8
%167 = call i32 (i32*, i8*, ...) @fprintf(i32* %108, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.29, i64 0, i64 0), i32 %166)
%168 = call i64 @fwrite(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.30, i64 0, i64 0), i64 23, i64 1, i32* %108)
br label %169
169: ; preds = %148, %146, %144, %115
%170 = load i8, i8* %72
%171 = icmp eq i8 %170, 0
br i1 %171, label %174, label %172
172: ; preds = %169
%173 = call i32 @fclose(i32* %108)
br label %174
174: ; preds = %169, %172, %88
%175 = phi i32 [ 2, %88 ], [ 0, %172 ], [ 0, %169 ]
ret i32 %175
}