#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 */

/* Variables and functions */
int /*<<< orphan*/ Dump(char *, char *, char *, char *);
int /*<<< orphan*/ Usage(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int main(int argc, char **argv) {
  int i;
  char *datafork = NULL, *resfork = NULL;
  char *create = NULL, *type = NULL;
  for (i = 1; i < argc; ++i) {
    if (*argv[i] == '-') {
      char *pt = argv[i] + 1;
      if (*pt == '-')
        ++pt;
      if (strcmp(pt, "usage") == 0 || strcmp(pt, "help") == 0)
        Usage(argv[0]);
      else if (strcmp(pt, "version") == 0) {
        printf("tobin v1.0\n");
        exit(0);
      } else if (strcmp(pt, "create") == 0 || strcmp(pt, "creator") == 0 ||
                 strcmp(pt, "creater") == 0 || strcmp(pt, "c") == 0) {
        if (i + 1 >= argc) {
          fprintf(stderr, "%s must be followed by a filename\n", argv[i]);
          exit(1);
        }
        if (strlen(argv[i + 1]) != 4) {
          fprintf(
              stderr,
              "the argument of %s must be four characters, but %s is not.\n",
              argv[i], argv[i + 1]);
          exit(0);
        } else
          create = argv[++i];
      } else if (strcmp(pt, "type") == 0 || strcmp(pt, "t") == 0) {
        if (i + 1 >= argc) {
          fprintf(stderr, "%s must be followed by a filename\n", argv[i]);
          exit(1);
        }
        if (strlen(argv[i + 1]) != 4) {
          fprintf(
              stderr,
              "the argument of %s must be four characters, but %s is not.\n",
              argv[i], argv[i + 1]);
          exit(0);
        } else
          type = argv[++i];
      } else if (strcmp(pt, "res") == 0 || strcmp(pt, "rsrc") == 0 ||
                 strcmp(pt, "resource") == 0 || strcmp(pt, "r") == 0) {
        if (i + 1 >= argc) {
          fprintf(stderr, "%s must be followed by a filename\n", argv[i]);
          exit(1);
        }
        if (resfork != NULL) {
          Dump(datafork, resfork, create, type);
          datafork = NULL;
          resfork = argv[++i];
        } else if (datafork != NULL) {
          Dump(datafork, argv[++i], create, type);
          datafork = NULL;
        } else
          resfork = argv[++i];
      } else {
        fprintf(stderr, "Unrecognized argument %s\n", argv[i]);
        Usage(argv[0]);
      }
    } else {
      if (datafork != NULL) {
        Dump(datafork, resfork, create, type);
        datafork = argv[i];
        resfork = NULL;
      } else if (resfork != NULL) {
        Dump(argv[i], resfork, create, type);
        resfork = NULL;
      } else
        datafork = argv[i];
    }
  }
  if (datafork != NULL || resfork != NULL)
    Dump(datafork, resfork, create, type);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    16a4 <main+0x534>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1605 <main+0x495>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    1201 <main+0x91>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
lea    0xdf4(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     1235 <main+0xc5>
mov    -0x40(%rbp),%rdi
lea    0xde0(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1246 <main+0xd6>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1060 <Usage@plt>
jmp    1600 <main+0x490>
mov    -0x40(%rbp),%rdi
lea    0xdba(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1273 <main+0x103>
lea    0xdac(%rip),%rdi
call   1050 <printf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x40(%rbp),%rdi
lea    0xda1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     12db <main+0x16b>
mov    -0x40(%rbp),%rdi
lea    0xd8e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     12db <main+0x16b>
mov    -0x40(%rbp),%rdi
lea    0xd7c(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     12db <main+0x16b>
mov    -0x40(%rbp),%rdi
lea    0xdd7(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    138e <main+0x21e>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
cmp    -0x8(%rbp),%eax
jl     1317 <main+0x1a7>
mov    0x2cef(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xd30(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <strlen@plt>
cmp    $0x4,%eax
je     1371 <main+0x201>
mov    0x2ca3(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rcx
lea    0xcf6(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x30(%rbp)
jmp    15f6 <main+0x486>
mov    -0x40(%rbp),%rdi
lea    0xcfc(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     13c2 <main+0x252>
mov    -0x40(%rbp),%rdi
lea    0xce7(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1475 <main+0x305>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
cmp    -0x8(%rbp),%eax
jl     13fe <main+0x28e>
mov    0x2c08(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xc49(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <strlen@plt>
cmp    $0x4,%eax
je     1458 <main+0x2e8>
mov    0x2bbc(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rcx
lea    0xc0f(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x38(%rbp)
jmp    15f1 <main+0x481>
mov    -0x40(%rbp),%rdi
lea    0xc1c(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     14dd <main+0x36d>
mov    -0x40(%rbp),%rdi
lea    0xc06(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     14dd <main+0x36d>
mov    -0x40(%rbp),%rdi
lea    0xbf1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     14dd <main+0x36d>
mov    -0x40(%rbp),%rdi
lea    0xb66(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    15bd <main+0x44d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
cmp    -0x8(%rbp),%eax
jl     1519 <main+0x3a9>
mov    0x2aed(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xb2e(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
cmpq   $0x0,-0x28(%rbp)
je     155e <main+0x3ee>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
call   1030 <Dump@plt>
movq   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x28(%rbp)
jmp    15b8 <main+0x448>
cmpq   $0x0,-0x20(%rbp)
je     159b <main+0x42b>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
call   1030 <Dump@plt>
movq   $0x0,-0x20(%rbp)
jmp    15b3 <main+0x443>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x28(%rbp)
jmp    15b8 <main+0x448>
jmp    15ec <main+0x47c>
mov    0x2a1c(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xad5(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1060 <Usage@plt>
jmp    15f1 <main+0x481>
jmp    15f6 <main+0x486>
jmp    15fb <main+0x48b>
jmp    1600 <main+0x490>
jmp    1691 <main+0x521>
cmpq   $0x0,-0x20(%rbp)
je     1642 <main+0x4d2>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
call   1030 <Dump@plt>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
jmp    168c <main+0x51c>
cmpq   $0x0,-0x28(%rbp)
je     1677 <main+0x507>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
call   1030 <Dump@plt>
movq   $0x0,-0x28(%rbp)
jmp    1687 <main+0x517>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x20(%rbp)
jmp    168c <main+0x51c>
jmp    1691 <main+0x521>
jmp    1696 <main+0x526>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11ad <main+0x3d>
cmpq   $0x0,-0x20(%rbp)
jne    16ba <main+0x54a>
cmpq   $0x0,-0x28(%rbp)
je     16cf <main+0x55f>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%rcx
call   1030 <Dump@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
cmp    $0x2,%edi
jl     1453 <main+0x2e3>
mov    %rsi,%r15
mov    %edi,%ebx
mov    $0x1,%r13d
lea    0xe67(%rip),%rbp
xor    %eax,%eax
mov    %rax,0x8(%rsp)
xor    %eax,%eax
mov    %rax,0x10(%rsp)
xor    %esi,%esi
xor    %ecx,%ecx
jmp    11de <main+0x6e>
nopl   (%rax)
test   %rcx,%rcx
je     136a <main+0x1fa>
mov    %rcx,%rdi
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%rcx
call   1030 <Dump@plt>
mov    (%r15,%r14,8),%rcx
xor    %esi,%esi
add    $0x1,%r13d
cmp    %ebx,%r13d
jge    1465 <main+0x2f5>
movslq %r13d,%r14
mov    (%r15,%r14,8),%rdi
cmpb   $0x2d,(%rdi)
jne    11b0 <main+0x40>
mov    %rcx,0x18(%rsp)
mov    %rsi,0x20(%rsp)
lea    0x1(%rdi),%r12
lea    0x2(%rdi),%rax
cmpb   $0x2d,0x1(%rdi)
cmove  %rax,%r12
mov    %r12,%rdi
mov    %rbp,%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1360 <main+0x1f0>
mov    %r12,%rdi
lea    0xde4(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1360 <main+0x1f0>
mov    %r12,%rdi
lea    0xdd1(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1490 <main+0x320>
mov    %r12,%rdi
lea    0xdc1(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     137b <main+0x20b>
mov    %r12,%rdi
lea    0xdb0(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     137b <main+0x20b>
mov    %r12,%rdi
lea    0xda0(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     137b <main+0x20b>
mov    %r12,%rdi
lea    0xdfd(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     137b <main+0x20b>
mov    %r12,%rdi
lea    0xdd7(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     13bf <main+0x24f>
mov    %r12,%rdi
lea    0xdc4(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     13bf <main+0x24f>
mov    %r12,%rdi
lea    0xdae(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     13f1 <main+0x281>
mov    %r12,%rdi
lea    0xd9a(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     13f1 <main+0x281>
mov    %r12,%rdi
lea    0xd87(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     13f1 <main+0x281>
mov    %r12,%rdi
lea    0xcfe(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     13f1 <main+0x281>
mov    0x2ca1(%rip),%rax
mov    (%rax),%edi
mov    (%r15,%r14,8),%rdx
lea    0xd56(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%r15),%rdi
call   1060 <Usage@plt>
jmp    13b0 <main+0x240>
test   %rsi,%rsi
jne    143d <main+0x2cd>
mov    %rdi,%rcx
jmp    11cf <main+0x5f>
add    $0x1,%r13d
cmp    %ebx,%r13d
jge    14c9 <main+0x359>
mov    %rbp,%r12
mov    %ebx,%ebp
movslq %r13d,%rbx
mov    (%r15,%rbx,8),%rdi
call   1050 <strlen@plt>
cmp    $0x4,%eax
jne    14a3 <main+0x333>
mov    (%r15,%rbx,8),%rax
mov    %rax,0x10(%rsp)
mov    %ebp,%ebx
mov    %r12,%rbp
mov    0x20(%rsp),%rsi
mov    0x18(%rsp),%rcx
jmp    11d1 <main+0x61>
add    $0x1,%r13d
cmp    %ebx,%r13d
jge    14c9 <main+0x359>
mov    %rbp,%r12
mov    %ebx,%ebp
movslq %r13d,%rbx
mov    (%r15,%rbx,8),%rdi
call   1050 <strlen@plt>
cmp    $0x4,%eax
jne    14a3 <main+0x333>
mov    (%r15,%rbx,8),%rax
mov    %rax,0x8(%rsp)
jmp    13ab <main+0x23b>
add    $0x1,%r13d
cmp    %ebx,%r13d
jge    14c9 <main+0x359>
mov    0x20(%rsp),%rsi
test   %rsi,%rsi
mov    0x18(%rsp),%rdi
je     142a <main+0x2ba>
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%rcx
call   1030 <Dump@plt>
movslq %r13d,%rax
mov    (%r15,%rax,8),%rsi
xor    %ecx,%ecx
jmp    11d1 <main+0x61>
movslq %r13d,%rax
mov    (%r15,%rax,8),%rsi
test   %rdi,%rdi
jne    143d <main+0x2cd>
xor    %ecx,%ecx
jmp    11d1 <main+0x61>
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%rcx
call   1030 <Dump@plt>
xor    %ecx,%ecx
jmp    11cf <main+0x5f>
xor    %ecx,%ecx
xor    %esi,%esi
xor    %eax,%eax
mov    %rax,0x10(%rsp)
xor    %eax,%eax
mov    %rax,0x8(%rsp)
mov    %rcx,%rax
or     %rsi,%rax
je     147f <main+0x30f>
mov    %rcx,%rdi
mov    0x10(%rsp),%rdx
mov    0x8(%rsp),%rcx
call   1030 <Dump@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc25(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    0x2b36(%rip),%rax
mov    (%rax),%edi
mov    (%r15,%r14,8),%rdx
mov    (%r15,%rbx,8),%rcx
lea    0xb92(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    0x2b10(%rip),%rax
mov    (%rax),%edi
mov    (%r15,%r14,8),%rdx
lea    0xb4d(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"usage\00"
@.str.1 = [5 x i8] c"help\00"
@.str.2 = [8 x i8] c"version\00"
@.str.3 = [12 x i8] c"tobin v1.0\0A\00"
@.str.4 = [7 x i8] c"create\00"
@.str.5 = [8 x i8] c"creator\00"
@.str.6 = [8 x i8] c"creater\00"
@.str.7 = [2 x i8] c"c\00"
@stderr = global i32 0
@.str.8 = [35 x i8] c"%s must be followed by a filename\0A\00"
@.str.9 = [60 x i8] c"the argument of %s must be four characters, but %s is not.\0A\00"
@.str.10 = [5 x i8] c"type\00"
@.str.11 = [2 x i8] c"t\00"
@.str.12 = [4 x i8] c"res\00"
@.str.13 = [5 x i8] c"rsrc\00"
@.str.14 = [9 x i8] c"resource\00"
@.str.15 = [2 x i8] c"r\00"
@.str.16 = [26 x i8] c"Unrecognized argument %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %7
store i8* null, i8** %8
store i8* null, i8** %9
store i8* null, i8** %10
store i32 1, i32* %6
br label %12
12: ; preds = %296, %2
%13 = load i32, i32* %6
%14 = load i32, i32* %4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %299
16: ; preds = %12
%17 = load i8**, i8*** %5
%18 = load i32, i32* %6
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8*, i8** %17, i64 %19
%21 = load i8*, i8** %20
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 45
br i1 %24, label %25, label %260
25: ; preds = %16
%26 = load i8**, i8*** %5
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8*, i8** %26, i64 %28
%30 = load i8*, i8** %29
%31 = getelementptr inbounds i8, i8* %30, i64 1
store i8* %31, i8** %11
%32 = load i8*, i8** %11
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 45
br i1 %35, label %36, label %39
36: ; preds = %25
%37 = load i8*, i8** %11
%38 = getelementptr inbounds i8, i8* %37, i32 1
store i8* %38, i8** %11
br label %39
39: ; preds = %36, %25
%40 = load i8*, i8** %11
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %47, label %43
43: ; preds = %39
%44 = load i8*, i8** %11
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %43, %39
%48 = load i8**, i8*** %5
%49 = getelementptr inbounds i8*, i8** %48, i64 0
%50 = load i8*, i8** %49
%51 = call i32 @Usage(i8* %50)
br label %259
52: ; preds = %43
%53 = load i8*, i8** %11
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%58 = call i32 @exit(i32 0)
unreachable
59: ; preds = %52
%60 = load i8*, i8** %11
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %75, label %63
63: ; preds = %59
%64 = load i8*, i8** %11
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %75, label %67
67: ; preds = %63
%68 = load i8*, i8** %11
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %75, label %71
71: ; preds = %67
%72 = load i8*, i8** %11
%73 = call i64 @strcmp(i8* %72, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %121
75: ; preds = %71, %67, %63, %59
%76 = load i32, i32* %6
%77 = add nsw i32 %76, 1
%78 = load i32, i32* %4
%79 = icmp sge i32 %77, %78
br i1 %79, label %80, label %89
80: ; preds = %75
%81 = load i32, i32* @stderr
%82 = load i8**, i8*** %5
%83 = load i32, i32* %6
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8*, i8** %82, i64 %84
%86 = load i8*, i8** %85
%87 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i8* %86)
%88 = call i32 @exit(i32 1)
unreachable
89: ; preds = %75
%90 = load i8**, i8*** %5
%91 = load i32, i32* %6
%92 = add nsw i32 %91, 1
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8*, i8** %90, i64 %93
%95 = load i8*, i8** %94
%96 = call i32 @strlen(i8* %95)
%97 = icmp ne i32 %96, 4
br i1 %97, label %98, label %113
98: ; preds = %89
%99 = load i32, i32* @stderr
%100 = load i8**, i8*** %5
%101 = load i32, i32* %6
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8*, i8** %100, i64 %102
%104 = load i8*, i8** %103
%105 = load i8**, i8*** %5
%106 = load i32, i32* %6
%107 = add nsw i32 %106, 1
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8*, i8** %105, i64 %108
%110 = load i8*, i8** %109
%111 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %99, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0), i8* %104, i8* %110)
%112 = call i32 @exit(i32 0)
unreachable
113: ; preds = %89
%114 = load i8**, i8*** %5
%115 = load i32, i32* %6
%116 = add nsw i32 %115, 1
store i32 %116, i32* %6
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8*, i8** %114, i64 %117
%119 = load i8*, i8** %118
store i8* %119, i8** %9
br label %120
120: ; preds = %113
br label %257
121: ; preds = %71
%122 = load i8*, i8** %11
%123 = call i64 @strcmp(i8* %122, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%124 = icmp eq i64 %123, 0
br i1 %124, label %129, label %125
125: ; preds = %121
%126 = load i8*, i8** %11
%127 = call i64 @strcmp(i8* %126, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%128 = icmp eq i64 %127, 0
br i1 %128, label %129, label %175
129: ; preds = %125, %121
%130 = load i32, i32* %6
%131 = add nsw i32 %130, 1
%132 = load i32, i32* %4
%133 = icmp sge i32 %131, %132
br i1 %133, label %134, label %143
134: ; preds = %129
%135 = load i32, i32* @stderr
%136 = load i8**, i8*** %5
%137 = load i32, i32* %6
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds i8*, i8** %136, i64 %138
%140 = load i8*, i8** %139
%141 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %135, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i8* %140)
%142 = call i32 @exit(i32 1)
unreachable
143: ; preds = %129
%144 = load i8**, i8*** %5
%145 = load i32, i32* %6
%146 = add nsw i32 %145, 1
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds i8*, i8** %144, i64 %147
%149 = load i8*, i8** %148
%150 = call i32 @strlen(i8* %149)
%151 = icmp ne i32 %150, 4
br i1 %151, label %152, label %167
152: ; preds = %143
%153 = load i32, i32* @stderr
%154 = load i8**, i8*** %5
%155 = load i32, i32* %6
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i8*, i8** %154, i64 %156
%158 = load i8*, i8** %157
%159 = load i8**, i8*** %5
%160 = load i32, i32* %6
%161 = add nsw i32 %160, 1
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds i8*, i8** %159, i64 %162
%164 = load i8*, i8** %163
%165 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %153, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0), i8* %158, i8* %164)
%166 = call i32 @exit(i32 0)
unreachable
167: ; preds = %143
%168 = load i8**, i8*** %5
%169 = load i32, i32* %6
%170 = add nsw i32 %169, 1
store i32 %170, i32* %6
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds i8*, i8** %168, i64 %171
%173 = load i8*, i8** %172
store i8* %173, i8** %10
br label %174
174: ; preds = %167
br label %256
175: ; preds = %125
%176 = load i8*, i8** %11
%177 = call i64 @strcmp(i8* %176, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%178 = icmp eq i64 %177, 0
br i1 %178, label %191, label %179
179: ; preds = %175
%180 = load i8*, i8** %11
%181 = call i64 @strcmp(i8* %180, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%182 = icmp eq i64 %181, 0
br i1 %182, label %191, label %183
183: ; preds = %179
%184 = load i8*, i8** %11
%185 = call i64 @strcmp(i8* %184, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%186 = icmp eq i64 %185, 0
br i1 %186, label %191, label %187
187: ; preds = %183
%188 = load i8*, i8** %11
%189 = call i64 @strcmp(i8* %188, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%190 = icmp eq i64 %189, 0
br i1 %190, label %191, label %243
191: ; preds = %187, %183, %179, %175
%192 = load i32, i32* %6
%193 = add nsw i32 %192, 1
%194 = load i32, i32* %4
%195 = icmp sge i32 %193, %194
br i1 %195, label %196, label %205
196: ; preds = %191
%197 = load i32, i32* @stderr
%198 = load i8**, i8*** %5
%199 = load i32, i32* %6
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds i8*, i8** %198, i64 %200
%202 = load i8*, i8** %201
%203 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %197, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i8* %202)
%204 = call i32 @exit(i32 1)
unreachable
205: ; preds = %191
%206 = load i8*, i8** %8
%207 = icmp ne i8* %206, null
br i1 %207, label %208, label %220
208: ; preds = %205
%209 = load i8*, i8** %7
%210 = load i8*, i8** %8
%211 = load i8*, i8** %9
%212 = load i8*, i8** %10
%213 = call i32 @Dump(i8* %209, i8* %210, i8* %211, i8* %212)
store i8* null, i8** %7
%214 = load i8**, i8*** %5
%215 = load i32, i32* %6
%216 = add nsw i32 %215, 1
store i32 %216, i32* %6
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds i8*, i8** %214, i64 %217
%219 = load i8*, i8** %218
store i8* %219, i8** %8
br label %242
220: ; preds = %205
%221 = load i8*, i8** %7
%222 = icmp ne i8* %221, null
br i1 %222, label %223, label %234
223: ; preds = %220
%224 = load i8*, i8** %7
%225 = load i8**, i8*** %5
%226 = load i32, i32* %6
%227 = add nsw i32 %226, 1
store i32 %227, i32* %6
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds i8*, i8** %225, i64 %228
%230 = load i8*, i8** %229
%231 = load i8*, i8** %9
%232 = load i8*, i8** %10
%233 = call i32 @Dump(i8* %224, i8* %230, i8* %231, i8* %232)
store i8* null, i8** %7
br label %241
234: ; preds = %220
%235 = load i8**, i8*** %5
%236 = load i32, i32* %6
%237 = add nsw i32 %236, 1
store i32 %237, i32* %6
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds i8*, i8** %235, i64 %238
%240 = load i8*, i8** %239
store i8* %240, i8** %8
br label %241
241: ; preds = %234, %223
br label %242
242: ; preds = %241, %208
br label %255
243: ; preds = %187
%244 = load i32, i32* @stderr
%245 = load i8**, i8*** %5
%246 = load i32, i32* %6
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds i8*, i8** %245, i64 %247
%249 = load i8*, i8** %248
%250 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %244, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i8* %249)
%251 = load i8**, i8*** %5
%252 = getelementptr inbounds i8*, i8** %251, i64 0
%253 = load i8*, i8** %252
%254 = call i32 @Usage(i8* %253)
br label %255
255: ; preds = %243, %242
br label %256
256: ; preds = %255, %174
br label %257
257: ; preds = %256, %120
br label %258
258: ; preds = %257
br label %259
259: ; preds = %258, %47
br label %295
260: ; preds = %16
%261 = load i8*, i8** %7
%262 = icmp ne i8* %261, null
br i1 %262, label %263, label %274
263: ; preds = %260
%264 = load i8*, i8** %7
%265 = load i8*, i8** %8
%266 = load i8*, i8** %9
%267 = load i8*, i8** %10
%268 = call i32 @Dump(i8* %264, i8* %265, i8* %266, i8* %267)
%269 = load i8**, i8*** %5
%270 = load i32, i32* %6
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds i8*, i8** %269, i64 %271
%273 = load i8*, i8** %272
store i8* %273, i8** %7
store i8* null, i8** %8
br label %294
274: ; preds = %260
%275 = load i8*, i8** %8
%276 = icmp ne i8* %275, null
br i1 %276, label %277, label %287
277: ; preds = %274
%278 = load i8**, i8*** %5
%279 = load i32, i32* %6
%280 = sext i32 %279 to i64
%281 = getelementptr inbounds i8*, i8** %278, i64 %280
%282 = load i8*, i8** %281
%283 = load i8*, i8** %8
%284 = load i8*, i8** %9
%285 = load i8*, i8** %10
%286 = call i32 @Dump(i8* %282, i8* %283, i8* %284, i8* %285)
store i8* null, i8** %8
br label %293
287: ; preds = %274
%288 = load i8**, i8*** %5
%289 = load i32, i32* %6
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds i8*, i8** %288, i64 %290
%292 = load i8*, i8** %291
store i8* %292, i8** %7
br label %293
293: ; preds = %287, %277
br label %294
294: ; preds = %293, %263
br label %295
295: ; preds = %294, %259
br label %296
296: ; preds = %295
%297 = load i32, i32* %6
%298 = add nsw i32 %297, 1
store i32 %298, i32* %6
br label %12
299: ; preds = %12
%300 = load i8*, i8** %7
%301 = icmp ne i8* %300, null
br i1 %301, label %305, label %302
302: ; preds = %299
%303 = load i8*, i8** %8
%304 = icmp ne i8* %303, null
br i1 %304, label %305, label %311
305: ; preds = %302, %299
%306 = load i8*, i8** %7
%307 = load i8*, i8** %8
%308 = load i8*, i8** %9
%309 = load i8*, i8** %10
%310 = call i32 @Dump(i8* %306, i8* %307, i8* %308, i8* %309)
br label %311
311: ; preds = %305, %302
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"usage\00"
@.str.1 = [5 x i8] c"help\00"
@.str.2 = [8 x i8] c"version\00"
@.str.4 = [7 x i8] c"create\00"
@.str.5 = [8 x i8] c"creator\00"
@.str.6 = [8 x i8] c"creater\00"
@.str.7 = [2 x i8] c"c\00"
@stderr = global i32 0
@.str.8 = [35 x i8] c"%s must be followed by a filename\0A\00"
@.str.9 = [60 x i8] c"the argument of %s must be four characters, but %s is not.\0A\00"
@.str.10 = [5 x i8] c"type\00"
@.str.11 = [2 x i8] c"t\00"
@.str.12 = [4 x i8] c"res\00"
@.str.13 = [5 x i8] c"rsrc\00"
@.str.14 = [9 x i8] c"resource\00"
@.str.15 = [2 x i8] c"r\00"
@.str.16 = [26 x i8] c"Unrecognized argument %s\0A\00"
@str = [11 x i8] c"tobin v1.0\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %154
4: ; preds = %2, %146
%5 = phi i8* [ %151, %146 ], [ null, %2 ]
%6 = phi i8* [ %150, %146 ], [ null, %2 ]
%7 = phi i8* [ %149, %146 ], [ null, %2 ]
%8 = phi i8* [ %148, %146 ], [ null, %2 ]
%9 = phi i32 [ %152, %146 ], [ 1, %2 ]
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8*, i8** %1, i64 %10
%12 = load i8*, i8** %11
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 45
br i1 %14, label %15, label %137
15: ; preds = %4
%16 = getelementptr inbounds i8, i8* %12, i64 1
%17 = load i8, i8* %16
%18 = icmp eq i8 %17, 45
%19 = getelementptr inbounds i8, i8* %12, i64 2
%20 = select i1 %18, i8* %19, i8* %16
%21 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %15
%24 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %23, %15
%27 = load i8*, i8** %1
%28 = tail call i32 @Usage(i8* %27)
br label %146
29: ; preds = %23
%30 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %29
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%34 = tail call i32 @exit(i32 0)
unreachable
35: ; preds = %29
%36 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %47, label %38
38: ; preds = %35
%39 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %47, label %41
41: ; preds = %38
%42 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %69
47: ; preds = %44, %41, %38, %35
%48 = add nsw i32 %9, 1
%49 = icmp slt i32 %48, %0
br i1 %49, label %55, label %50
50: ; preds = %47
%51 = load i32, i32* @stderr
%52 = load i8*, i8** %11
%53 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i8* %52)
%54 = tail call i32 @exit(i32 1)
unreachable
55: ; preds = %47
%56 = sext i32 %48 to i64
%57 = getelementptr inbounds i8*, i8** %1, i64 %56
%58 = load i8*, i8** %57
%59 = tail call i32 @strlen(i8* %58)
%60 = icmp eq i32 %59, 4
br i1 %60, label %67, label %61
61: ; preds = %55
%62 = load i32, i32* @stderr
%63 = load i8*, i8** %11
%64 = load i8*, i8** %57
%65 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0), i8* %63, i8* %64)
%66 = tail call i32 @exit(i32 0)
unreachable
67: ; preds = %55
%68 = load i8*, i8** %57
br label %146
69: ; preds = %44
%70 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %75, label %72
72: ; preds = %69
%73 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %97
75: ; preds = %72, %69
%76 = add nsw i32 %9, 1
%77 = icmp slt i32 %76, %0
br i1 %77, label %83, label %78
78: ; preds = %75
%79 = load i32, i32* @stderr
%80 = load i8*, i8** %11
%81 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %79, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i8* %80)
%82 = tail call i32 @exit(i32 1)
unreachable
83: ; preds = %75
%84 = sext i32 %76 to i64
%85 = getelementptr inbounds i8*, i8** %1, i64 %84
%86 = load i8*, i8** %85
%87 = tail call i32 @strlen(i8* %86)
%88 = icmp eq i32 %87, 4
br i1 %88, label %95, label %89
89: ; preds = %83
%90 = load i32, i32* @stderr
%91 = load i8*, i8** %11
%92 = load i8*, i8** %85
%93 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0), i8* %91, i8* %92)
%94 = tail call i32 @exit(i32 0)
unreachable
95: ; preds = %83
%96 = load i8*, i8** %85
br label %146
97: ; preds = %72
%98 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %109, label %100
100: ; preds = %97
%101 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%102 = icmp eq i64 %101, 0
br i1 %102, label %109, label %103
103: ; preds = %100
%104 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0))
%105 = icmp eq i64 %104, 0
br i1 %105, label %109, label %106
106: ; preds = %103
%107 = tail call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %131
109: ; preds = %106, %103, %100, %97
%110 = add nsw i32 %9, 1
%111 = icmp slt i32 %110, %0
br i1 %111, label %117, label %112
112: ; preds = %109
%113 = load i32, i32* @stderr
%114 = load i8*, i8** %11
%115 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %113, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i8* %114)
%116 = tail call i32 @exit(i32 1)
unreachable
117: ; preds = %109
%118 = icmp eq i8* %7, null
br i1 %118, label %124, label %119
119: ; preds = %117
%120 = tail call i32 @Dump(i8* %8, i8* %7, i8* %6, i8* %5)
%121 = sext i32 %110 to i64
%122 = getelementptr inbounds i8*, i8** %1, i64 %121
%123 = load i8*, i8** %122
br label %146
124: ; preds = %117
%125 = icmp eq i8* %8, null
%126 = sext i32 %110 to i64
%127 = getelementptr inbounds i8*, i8** %1, i64 %126
%128 = load i8*, i8** %127
br i1 %125, label %146, label %129
129: ; preds = %124
%130 = tail call i32 @Dump(i8* %8, i8* %128, i8* %6, i8* %5)
br label %146
131: ; preds = %106
%132 = load i32, i32* @stderr
%133 = load i8*, i8** %11
%134 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %132, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i8* %133)
%135 = load i8*, i8** %1
%136 = tail call i32 @Usage(i8* %135)
br label %146
137: ; preds = %4
%138 = icmp eq i8* %8, null
br i1 %138, label %142, label %139
139: ; preds = %137
%140 = tail call i32 @Dump(i8* %8, i8* %7, i8* %6, i8* %5)
%141 = load i8*, i8** %11
br label %146
142: ; preds = %137
%143 = icmp eq i8* %7, null
br i1 %143, label %146, label %144
144: ; preds = %142
%145 = tail call i32 @Dump(i8* %12, i8* %7, i8* %6, i8* %5)
br label %146
146: ; preds = %124, %142, %26, %67, %131, %129, %119, %95, %144, %139
%147 = phi i32 [ %9, %139 ], [ %9, %144 ], [ %9, %26 ], [ %48, %67 ], [ %76, %95 ], [ %110, %119 ], [ %110, %129 ], [ %9, %131 ], [ %9, %142 ], [ %110, %124 ]
%148 = phi i8* [ %141, %139 ], [ null, %144 ], [ %8, %26 ], [ %8, %67 ], [ %8, %95 ], [ null, %119 ], [ null, %129 ], [ %8, %131 ], [ %12, %142 ], [ null, %124 ]
%149 = phi i8* [ null, %139 ], [ null, %144 ], [ %7, %26 ], [ %7, %67 ], [ %7, %95 ], [ %123, %119 ], [ null, %129 ], [ %7, %131 ], [ null, %142 ], [ %128, %124 ]
%150 = phi i8* [ %6, %139 ], [ %6, %144 ], [ %6, %26 ], [ %68, %67 ], [ %6, %95 ], [ %6, %119 ], [ %6, %129 ], [ %6, %131 ], [ %6, %142 ], [ %6, %124 ]
%151 = phi i8* [ %5, %139 ], [ %5, %144 ], [ %5, %26 ], [ %5, %67 ], [ %96, %95 ], [ %5, %119 ], [ %5, %129 ], [ %5, %131 ], [ %5, %142 ], [ %5, %124 ]
%152 = add nsw i32 %147, 1
%153 = icmp slt i32 %152, %0
br i1 %153, label %4, label %154
154: ; preds = %146, %2
%155 = phi i8* [ null, %2 ], [ %148, %146 ]
%156 = phi i8* [ null, %2 ], [ %149, %146 ]
%157 = phi i8* [ null, %2 ], [ %150, %146 ]
%158 = phi i8* [ null, %2 ], [ %151, %146 ]
%159 = icmp ne i8* %155, null
%160 = icmp ne i8* %156, null
%161 = select i1 %159, i1 true, i1 %160
br i1 %161, label %162, label %164
162: ; preds = %154
%163 = tail call i32 @Dump(i8* %155, i8* %156, i8* %157, i8* %158)
br label %164
164: ; preds = %154, %162
ret i32 0
}