#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*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int atoi(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ feof(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
scalar_t__ ftell(int /*<<< orphan*/ *);
char *getfilename(char *);
int /*<<< orphan*/ pathunix(char *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, int);
int /*<<< orphan*/ *stdout;
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ truncfilename(char *);
int main(int argc, char **argv) {
  FILE *f = NULL;
  FILE *e = stdout;
  char filename[256];
  char varname[256];
  char name[256];
  char align[32];
  int writeable = 0;
  int corec = 0;
  int n;
  if (argc <= 1) {
    printf("usage: %s [-a <num>] [-w] [-corec] [-n <name>] <infile.bin> "
           "[<outfile.c>]\n",
           argv[0]);
    return 1;
  }
  align[0] = 0;
  varname[0] = 0;
  for (n = 1; n < argc; ++n) {
    if (argv[n][0] == '-') {
      if (argv[n][1] == 'c')
        corec = 1;
      else if (argv[n][1] == 'w')
        writeable = 1;
      else if (argv[n][1] == 'a')
        sprintf(align, "__attribute__((aligned(%d)))", atoi(argv[++n]));
      else if (argv[n][1] == 'n')
        strcpy(varname, argv[++n]);
    } else {
      if (!f) {
        strcpy(name, argv[n]);
        f = fopen(argv[n], "rb");
        if (!f)
          return 1;
      } else {
        e = fopen(argv[n], "w+");
      }
    }
  }
  pathunix(name);
  strcpy(filename, getfilename(name));
  truncfilename(name);
  if (!varname[0])
    strcpy(varname, name);
  fprintf(f, "/* DO NOT EDIT, FILE GENERATED BY CORERC */\n\n");
  if (corec) {
    fprintf(e, "#include \"resource/resource.h\"\n\n");
    fprintf(e, "static %s uint8_t Data[] %s = {", writeable ? "" : "const",
            align);
  } else {
    fseek(f, 0, SEEK_END);
    fprintf(e, "%s int %s_size = %d;\n", writeable ? "" : "const", varname,
            (int)ftell(f));
    fseek(f, 0, SEEK_SET);
    fprintf(e, "%s char %s[] %s = {", writeable ? "" : "const", varname, align);
  }
  for (n = 0;; ++n) {
    int ch = fgetc(f);
    if (feof(f))
      break;
    if (n)
      fprintf(e, ",");
    if ((n % 32) == 0)
      fprintf(e, "\n");
    fprintf(e, "0x%02X", (unsigned char)ch);
  }
  fprintf(e, "};\n\n");
  if (corec) {
    fprintf(e,
            "META_START(Resource_%s_Class,0)\n"
            "META_PARAM(STRING,NODE_NAME,T(\"%s\"))\n"
            "META_PARAM(CUSTOM,RESOURCEDATA_SIZE,sizeof(Data))\n"
            "META_PARAM(CUSTOM,RESOURCEDATA_PTR,Data)\n"
            "META_END(RESOURCEDATA_ID)\n",
            name, filename);
  }
  fclose(f);
  if (e != stdout)
    fclose(e);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x380,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    0x2dc8(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x344(%rbp)
movl   $0x0,-0x348(%rbp)
cmpl   $0x1,-0x8(%rbp)
jg     124c <main+0x6c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xdc5(%rip),%rdi
call   1060 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    16e7 <main+0x507>
movb   $0x0,-0x340(%rbp)
movb   $0x0,-0x220(%rbp)
movl   $0x1,-0x34c(%rbp)
mov    -0x34c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    143b <main+0x25b>
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    139d <main+0x1bd>
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
cmp    $0x63,%eax
jne    12b9 <main+0xd9>
movl   $0x1,-0x348(%rbp)
jmp    1398 <main+0x1b8>
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
cmp    $0x77,%eax
jne    12e4 <main+0x104>
movl   $0x1,-0x344(%rbp)
jmp    1393 <main+0x1b3>
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
cmp    $0x61,%eax
jne    1347 <main+0x167>
lea    -0x340(%rbp),%rax
mov    %rax,-0x358(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x34c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x34c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   10f0 <atoi@plt>
mov    -0x358(%rbp),%rdi
mov    %eax,%edx
lea    0xd0e(%rip),%rsi
call   1100 <sprintf@plt>
jmp    138e <main+0x1ae>
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
cmp    $0x6e,%eax
jne    1389 <main+0x1a9>
lea    -0x220(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    -0x34c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x34c(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
call   1030 <strcpy@plt>
jmp    138e <main+0x1ae>
jmp    1393 <main+0x1b3>
jmp    1398 <main+0x1b8>
jmp    1422 <main+0x242>
cmpq   $0x0,-0x18(%rbp)
jne    13fe <main+0x21e>
lea    -0x320(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc8f(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    13f9 <main+0x219>
movl   $0x1,-0x4(%rbp)
jmp    16e7 <main+0x507>
jmp    141d <main+0x23d>
mov    -0x10(%rbp),%rax
movslq -0x34c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xc57(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x20(%rbp)
jmp    1422 <main+0x242>
jmp    1427 <main+0x247>
mov    -0x34c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34c(%rbp)
jmp    1264 <main+0x84>
lea    -0x320(%rbp),%rdi
call   10c0 <pathunix@plt>
lea    -0x120(%rbp),%rax
mov    %rax,-0x360(%rbp)
lea    -0x320(%rbp),%rdi
call   1040 <getfilename@plt>
mov    -0x360(%rbp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
lea    -0x320(%rbp),%rdi
call   1080 <truncfilename@plt>
cmpb   $0x0,-0x220(%rbp)
jne    149c <main+0x2bc>
lea    -0x220(%rbp),%rdi
lea    -0x320(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rdi
lea    0xbc7(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
cmpl   $0x0,-0x348(%rbp)
je     1506 <main+0x326>
mov    -0x20(%rbp),%rdi
lea    0xbd6(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x344(%rbp),%ecx
lea    0xbff(%rip),%rdx
lea    0xbd7(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    -0x340(%rbp),%rcx
lea    0xbc3(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
jmp    15d3 <main+0x3f3>
mov    -0x18(%rbp),%rdi
mov    0x2ad7(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x378(%rbp)
mov    -0x344(%rbp),%edx
lea    0xbab(%rip),%rax
lea    0xb83(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x370(%rbp)
lea    -0x220(%rbp),%rax
mov    %rax,-0x368(%rbp)
mov    -0x18(%rbp),%rdi
call   10a0 <ftell@plt>
mov    -0x378(%rbp),%rdi
mov    -0x370(%rbp),%rdx
mov    -0x368(%rbp),%rcx
mov    %eax,%r8d
lea    0xb66(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    0x2a49(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   10d0 <fseek@plt>
mov    -0x20(%rbp),%rdi
mov    -0x344(%rbp),%ecx
lea    0xb34(%rip),%rdx
lea    0xb0c(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    -0x220(%rbp),%rcx
lea    -0x340(%rbp),%r8
lea    0xb2d(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movl   $0x0,-0x34c(%rbp)
mov    -0x18(%rbp),%rdi
call   1070 <fgetc@plt>
mov    %eax,-0x350(%rbp)
mov    -0x18(%rbp),%rdi
call   10b0 <feof@plt>
cmp    $0x0,%rax
je     1604 <main+0x424>
jmp    167b <main+0x49b>
cmpl   $0x0,-0x34c(%rbp)
je     1623 <main+0x443>
mov    -0x20(%rbp),%rdi
lea    0xaf1(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x34c(%rbp),%eax
mov    $0x20,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    164c <main+0x46c>
mov    -0x20(%rbp),%rdi
lea    0xa76(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x350(%rbp),%eax
movzbl %al,%edx
lea    0xaaf(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x34c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34c(%rbp)
jmp    15dd <main+0x3fd>
mov    -0x20(%rbp),%rdi
lea    0xa90(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
cmpl   $0x0,-0x348(%rbp)
je     16ba <main+0x4da>
mov    -0x20(%rbp),%rdi
lea    -0x320(%rbp),%rdx
lea    -0x120(%rbp),%rcx
lea    0xa68(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x20(%rbp),%rax
mov    0x2902(%rip),%rcx
cmp    (%rcx),%rax
je     16e0 <main+0x500>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x380,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x348,%rsp
mov    %rsi,%rbx
cmp    $0x1,%edi
jg     1232 <main+0x32>
mov    (%rbx),%rsi
lea    0xe39(%rip),%rdi
call   1060 <printf@plt>
mov    $0x1,%ebx
jmp    1534 <main+0x334>
mov    %edi,%ebp
mov    0x2d95(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x18(%rsp)
movb   $0x0,0x20(%rsp)
movb   $0x0,0x40(%rsp)
xor    %r12d,%r12d
mov    $0x1,%r14d
movl   $0x0,0xc(%rsp)
xor    %eax,%eax
mov    %rax,0x10(%rsp)
jmp    129c <main+0x9c>
nopw   0x0(%rax,%rax,1)
cmpq   $0x0,0x10(%rsp)
je     12f1 <main+0xf1>
mov    %rsi,%rdi
lea    0xe45(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,0x18(%rsp)
mov    %r13d,%r12d
add    $0x1,%r14d
cmp    %ebp,%r14d
jge    134c <main+0x14c>
mov    %r12d,%r13d
movslq %r14d,%r15
mov    (%rbx,%r15,8),%rsi
cmpb   $0x2d,(%rsi)
jne    1270 <main+0x70>
movzbl 0x1(%rsi),%eax
add    $0x9f,%al
cmp    $0x16,%al
ja     128c <main+0x8c>
mov    $0x1,%r12d
movzbl %al,%eax
lea    0xd3b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1(%r15),%r14d
mov    0x8(%rbx,%r15,8),%rdi
call   1100 <atoi@plt>
lea    0x20(%rsp),%rdi
lea    0xdbf(%rip),%rsi
mov    %eax,%edx
call   1110 <sprintf@plt>
jmp    128c <main+0x8c>
lea    0x140(%rsp),%rdi
call   1030 <strcpy@plt>
mov    (%rbx,%r15,8),%rdi
lea    0xdbb(%rip),%rsi
call   10f0 <fopen@plt>
mov    %r13d,%r12d
mov    %rax,%rcx
mov    %rax,0x10(%rsp)
test   %rax,%rax
jne    128f <main+0x8f>
jmp    1228 <main+0x28>
lea    0x1(%r15),%r14d
mov    0x8(%rbx,%r15,8),%rsi
lea    0x40(%rsp),%rdi
call   1030 <strcpy@plt>
jmp    128c <main+0x8c>
movl   $0x1,0xc(%rsp)
jmp    128c <main+0x8c>
lea    0x140(%rsp),%rbx
mov    %rbx,%rdi
call   10d0 <pathunix@plt>
mov    %rbx,%rdi
call   1040 <getfilename@plt>
lea    0x240(%rsp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
call   1090 <truncfilename@plt>
cmpb   $0x0,0x40(%rsp)
jne    1395 <main+0x195>
lea    0x40(%rsp),%rdi
lea    0x140(%rsp),%rsi
call   1030 <strcpy@plt>
lea    0xd2e(%rip),%rdi
mov    $0x2d,%esi
mov    $0x1,%edx
mov    0x10(%rsp),%r13
mov    %r13,%rcx
call   1120 <fwrite@plt>
test   %r12d,%r12d
mov    0x18(%rsp),%r15
je     1408 <main+0x208>
lea    0xd34(%rip),%rdi
mov    $0x20,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1120 <fwrite@plt>
cmpl   $0x0,0xc(%rsp)
lea    0xd57(%rip),%rax
lea    0xd2f(%rip),%rdx
cmove  %rax,%rdx
lea    0xd25(%rip),%rsi
lea    0x20(%rsp),%rcx
mov    %r15,%rdi
xor    %eax,%eax
call   10a0 <fprintf@plt>
jmp    1488 <main+0x288>
mov    0x2bd9(%rip),%rax
mov    (%rax),%edx
mov    %r13,%rdi
xor    %esi,%esi
call   10e0 <fseek@plt>
cmpl   $0x0,0xc(%rsp)
lea    0xd12(%rip),%rax
lea    0xcea(%rip),%rbx
cmove  %rax,%rbx
mov    %r13,%rdi
call   10b0 <ftell@plt>
lea    0xcfe(%rip),%rsi
lea    0x40(%rsp),%rbp
mov    %r15,%rdi
mov    %rbx,%rdx
mov    %rbp,%rcx
mov    %eax,%r8d
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    0x2b78(%rip),%rax
mov    (%rax),%edx
mov    %r13,%rdi
xor    %esi,%esi
call   10e0 <fseek@plt>
lea    0xce2(%rip),%rsi
lea    0x20(%rsp),%r8
mov    %r15,%rdi
mov    %rbx,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %r13,%rdi
call   1070 <fgetc@plt>
mov    %eax,%ebx
mov    %r13,%rdi
call   10c0 <feof@plt>
test   %rax,%rax
jne    14d7 <main+0x2d7>
mov    $0xa,%edi
mov    %r15,%rsi
call   1080 <fputc@plt>
movzbl %bl,%edx
lea    0xcb3(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %r13,%rdi
call   1070 <fgetc@plt>
mov    %eax,%ebp
mov    %r13,%rdi
call   10c0 <feof@plt>
test   %rax,%rax
je     1548 <main+0x348>
lea    0xc92(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   1120 <fwrite@plt>
test   %r12d,%r12d
je     1516 <main+0x316>
lea    0xc79(%rip),%rsi
lea    0x140(%rsp),%rdx
lea    0x240(%rsp),%rcx
mov    %r15,%rdi
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %r13,%rdi
call   1050 <fclose@plt>
xor    %ebx,%ebx
mov    0x2aa9(%rip),%rax
cmp    (%rax),%r15
je     1534 <main+0x334>
mov    %r15,%rdi
call   1050 <fclose@plt>
mov    %ebx,%eax
add    $0x348,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%ebx
lea    0xc15(%rip),%r14
jmp    158f <main+0x38f>
cs nopw 0x0(%rax,%rax,1)
movzbl %bpl,%edx
mov    %r15,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
add    $0x1,%ebx
mov    %r13,%rdi
call   1070 <fgetc@plt>
mov    %eax,%ebp
mov    %r13,%rdi
call   10c0 <feof@plt>
test   %rax,%rax
jne    14d7 <main+0x2d7>
mov    $0x2c,%edi
mov    %r15,%rsi
call   1080 <fputc@plt>
test   $0x1f,%bl
jne    1560 <main+0x360>
mov    $0xa,%edi
mov    %r15,%rsi
call   1080 <fputc@plt>
jmp    1560 <main+0x360>

LLVM IR (-O0):
@stdout = global i32* null
@.str = [75 x i8] c"usage: %s [-a <num>] [-w] [-corec] [-n <name>] <infile.bin> [<outfile.c>]\0A\00"
@.str.1 = [29 x i8] c"__attribute__((aligned(%d)))\00"
@.str.2 = [3 x i8] c"rb\00"
@.str.3 = [3 x i8] c"w+\00"
@.str.4 = [46 x i8] c"/* DO NOT EDIT, FILE GENERATED BY CORERC */\0A\0A\00"
@.str.5 = [33 x i8] c"#include \22resource/resource.h\22\0A\0A\00"
@.str.6 = [32 x i8] c"static %s uint8_t Data[] %s = {\00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [6 x i8] c"const\00"
@SEEK_END = global i32 0
@.str.9 = [22 x i8] c"%s int %s_size = %d;\0A\00"
@SEEK_SET = global i32 0
@.str.10 = [20 x i8] c"%s char %s[] %s = {\00"
@.str.11 = [2 x i8] c",\00"
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [7 x i8] c"0x%02X\00"
@.str.14 = [5 x i8] c"};\0A\0A\00"
@.str.15 = [187 x i8] c"META_START(Resource_%s_Class,0)\0AMETA_PARAM(STRING,NODE_NAME,T(\22%s\22))\0AMETA_PARAM(CUSTOM,RESOURCEDATA_SIZE,sizeof(Data))\0AMETA_PARAM(CUSTOM,RESOURCEDATA_PTR,Data)\0AMETA_END(RESOURCEDATA_ID)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca [256 x i8]
%9 = alloca [256 x i8]
%10 = alloca [256 x i8]
%11 = alloca [32 x i8]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32* null, i32** %6
%16 = load i32*, i32** @stdout
store i32* %16, i32** %7
store i32 0, i32* %12
store i32 0, i32* %13
%17 = load i32, i32* %4
%18 = icmp sle i32 %17, 1
br i1 %18, label %19, label %24
19: ; preds = %2
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str, i64 0, i64 0), i8* %22)
store i32 1, i32* %3
br label %245
24: ; preds = %2
%25 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
store i8 0, i8* %25
%26 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
store i8 0, i8* %26
store i32 1, i32* %14
br label %27
27: ; preds = %136, %24
%28 = load i32, i32* %14
%29 = load i32, i32* %4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %139
31: ; preds = %27
%32 = load i8**, i8*** %5
%33 = load i32, i32* %14
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %32, i64 %34
%36 = load i8*, i8** %35
%37 = getelementptr inbounds i8, i8* %36, i64 0
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp eq i32 %39, 45
br i1 %40, label %41, label %106
41: ; preds = %31
%42 = load i8**, i8*** %5
%43 = load i32, i32* %14
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i8*, i8** %42, i64 %44
%46 = load i8*, i8** %45
%47 = getelementptr inbounds i8, i8* %46, i64 1
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 99
br i1 %50, label %51, label %52
51: ; preds = %41
store i32 1, i32* %13
br label %105
52: ; preds = %41
%53 = load i8**, i8*** %5
%54 = load i32, i32* %14
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8*, i8** %53, i64 %55
%57 = load i8*, i8** %56
%58 = getelementptr inbounds i8, i8* %57, i64 1
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 119
br i1 %61, label %62, label %63
62: ; preds = %52
store i32 1, i32* %12
br label %104
63: ; preds = %52
%64 = load i8**, i8*** %5
%65 = load i32, i32* %14
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8*, i8** %64, i64 %66
%68 = load i8*, i8** %67
%69 = getelementptr inbounds i8, i8* %68, i64 1
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 97
br i1 %72, label %73, label %83
73: ; preds = %63
%74 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%75 = load i8**, i8*** %5
%76 = load i32, i32* %14
%77 = add nsw i32 %76, 1
store i32 %77, i32* %14
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8*, i8** %75, i64 %78
%80 = load i8*, i8** %79
%81 = call i32 @atoi(i8* %80)
%82 = call i32 @sprintf(i8* %74, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %81)
br label %103
83: ; preds = %63
%84 = load i8**, i8*** %5
%85 = load i32, i32* %14
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i8*, i8** %84, i64 %86
%88 = load i8*, i8** %87
%89 = getelementptr inbounds i8, i8* %88, i64 1
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 110
br i1 %92, label %93, label %102
93: ; preds = %83
%94 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%95 = load i8**, i8*** %5
%96 = load i32, i32* %14
%97 = add nsw i32 %96, 1
store i32 %97, i32* %14
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8*, i8** %95, i64 %98
%100 = load i8*, i8** %99
%101 = call i32 @strcpy(i8* %94, i8* %100)
br label %102
102: ; preds = %93, %83
br label %103
103: ; preds = %102, %73
br label %104
104: ; preds = %103, %62
br label %105
105: ; preds = %104, %51
br label %135
106: ; preds = %31
%107 = load i32*, i32** %6
%108 = icmp ne i32* %107, null
br i1 %108, label %127, label %109
109: ; preds = %106
%110 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%111 = load i8**, i8*** %5
%112 = load i32, i32* %14
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8*, i8** %111, i64 %113
%115 = load i8*, i8** %114
%116 = call i32 @strcpy(i8* %110, i8* %115)
%117 = load i8**, i8*** %5
%118 = load i32, i32* %14
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8*, i8** %117, i64 %119
%121 = load i8*, i8** %120
%122 = call i32* @fopen(i8* %121, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %122, i32** %6
%123 = load i32*, i32** %6
%124 = icmp ne i32* %123, null
br i1 %124, label %126, label %125
125: ; preds = %109
store i32 1, i32* %3
br label %245
126: ; preds = %109
br label %134
127: ; preds = %106
%128 = load i8**, i8*** %5
%129 = load i32, i32* %14
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8*, i8** %128, i64 %130
%132 = load i8*, i8** %131
%133 = call i32* @fopen(i8* %132, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %133, i32** %7
br label %134
134: ; preds = %127, %126
br label %135
135: ; preds = %134, %105
br label %136
136: ; preds = %135
%137 = load i32, i32* %14
%138 = add nsw i32 %137, 1
store i32 %138, i32* %14
br label %27
139: ; preds = %27
%140 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%141 = call i32 @pathunix(i8* %140)
%142 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%143 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%144 = call i8* @getfilename(i8* %143)
%145 = call i32 @strcpy(i8* %142, i8* %144)
%146 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%147 = call i32 @truncfilename(i8* %146)
%148 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%149 = load i8, i8* %148
%150 = icmp ne i8 %149, 0
br i1 %150, label %155, label %151
151: ; preds = %139
%152 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%153 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%154 = call i32 @strcpy(i8* %152, i8* %153)
br label %155
155: ; preds = %151, %139
%156 = load i32*, i32** %6
%157 = call i32 (i32*, i8*, ...) @fprintf(i32* %156, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0))
%158 = load i32, i32* %13
%159 = icmp ne i32 %158, 0
br i1 %159, label %160, label %170
160: ; preds = %155
%161 = load i32*, i32** %7
%162 = call i32 (i32*, i8*, ...) @fprintf(i32* %161, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0))
%163 = load i32*, i32** %7
%164 = load i32, i32* %12
%165 = icmp ne i32 %164, 0
%166 = zext i1 %165 to i64
%167 = select i1 %165, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0)
%168 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%169 = call i32 (i32*, i8*, ...) @fprintf(i32* %163, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* %167, i8* %168)
br label %195
170: ; preds = %155
%171 = load i32*, i32** %6
%172 = load i32, i32* @SEEK_END
%173 = call i32 @fseek(i32* %171, i32 0, i32 %172)
%174 = load i32*, i32** %7
%175 = load i32, i32* %12
%176 = icmp ne i32 %175, 0
%177 = zext i1 %176 to i64
%178 = select i1 %176, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0)
%179 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%180 = load i32*, i32** %6
%181 = call i64 @ftell(i32* %180)
%182 = trunc i64 %181 to i32
%183 = call i32 (i32*, i8*, ...) @fprintf(i32* %174, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8* %178, i8* %179, i32 %182)
%184 = load i32*, i32** %6
%185 = load i32, i32* @SEEK_SET
%186 = call i32 @fseek(i32* %184, i32 0, i32 %185)
%187 = load i32*, i32** %7
%188 = load i32, i32* %12
%189 = icmp ne i32 %188, 0
%190 = zext i1 %189 to i64
%191 = select i1 %189, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0)
%192 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%193 = getelementptr inbounds [32 x i8], [32 x i8]* %11, i64 0, i64 0
%194 = call i32 (i32*, i8*, ...) @fprintf(i32* %187, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %191, i8* %192, i8* %193)
br label %195
195: ; preds = %170, %160
store i32 0, i32* %14
br label %196
196: ; preds = %222, %195
%197 = load i32*, i32** %6
%198 = call i32 @fgetc(i32* %197)
store i32 %198, i32* %15
%199 = load i32*, i32** %6
%200 = call i64 @feof(i32* %199)
%201 = icmp ne i64 %200, 0
br i1 %201, label %202, label %203
202: ; preds = %196
br label %225
203: ; preds = %196
%204 = load i32, i32* %14
%205 = icmp ne i32 %204, 0
br i1 %205, label %206, label %209
206: ; preds = %203
%207 = load i32*, i32** %7
%208 = call i32 (i32*, i8*, ...) @fprintf(i32* %207, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %209
209: ; preds = %206, %203
%210 = load i32, i32* %14
%211 = srem i32 %210, 32
%212 = icmp eq i32 %211, 0
br i1 %212, label %213, label %216
213: ; preds = %209
%214 = load i32*, i32** %7
%215 = call i32 (i32*, i8*, ...) @fprintf(i32* %214, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %216
216: ; preds = %213, %209
%217 = load i32*, i32** %7
%218 = load i32, i32* %15
%219 = trunc i32 %218 to i8
%220 = zext i8 %219 to i32
%221 = call i32 (i32*, i8*, ...) @fprintf(i32* %217, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i32 %220)
br label %222
222: ; preds = %216
%223 = load i32, i32* %14
%224 = add nsw i32 %223, 1
store i32 %224, i32* %14
br label %196
225: ; preds = %202
%226 = load i32*, i32** %7
%227 = call i32 (i32*, i8*, ...) @fprintf(i32* %226, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%228 = load i32, i32* %13
%229 = icmp ne i32 %228, 0
br i1 %229, label %230, label %235
230: ; preds = %225
%231 = load i32*, i32** %7
%232 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%233 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%234 = call i32 (i32*, i8*, ...) @fprintf(i32* %231, i8* getelementptr inbounds ([187 x i8], [187 x i8]* @.str.15, i64 0, i64 0), i8* %232, i8* %233)
br label %235
235: ; preds = %230, %225
%236 = load i32*, i32** %6
%237 = call i32 @fclose(i32* %236)
%238 = load i32*, i32** %7
%239 = load i32*, i32** @stdout
%240 = icmp ne i32* %238, %239
br i1 %240, label %241, label %244
241: ; preds = %235
%242 = load i32*, i32** %7
%243 = call i32 @fclose(i32* %242)
br label %244
244: ; preds = %241, %235
store i32 0, i32* %3
br label %245
245: ; preds = %244, %125, %19
%246 = load i32, i32* %3
ret i32 %246
}

LLVM IR (-O2):
@stdout = global i32* null
@.str = [75 x i8] c"usage: %s [-a <num>] [-w] [-corec] [-n <name>] <infile.bin> [<outfile.c>]\0A\00"
@.str.1 = [29 x i8] c"__attribute__((aligned(%d)))\00"
@.str.2 = [3 x i8] c"rb\00"
@.str.3 = [3 x i8] c"w+\00"
@.str.4 = [46 x i8] c"/* DO NOT EDIT, FILE GENERATED BY CORERC */\0A\0A\00"
@.str.5 = [33 x i8] c"#include \22resource/resource.h\22\0A\0A\00"
@.str.6 = [32 x i8] c"static %s uint8_t Data[] %s = {\00"
@.str.7 = [1 x i8] zeroinitializer
@.str.8 = [6 x i8] c"const\00"
@SEEK_END = global i32 0
@.str.9 = [22 x i8] c"%s int %s_size = %d;\0A\00"
@SEEK_SET = global i32 0
@.str.10 = [20 x i8] c"%s char %s[] %s = {\00"
@.str.13 = [7 x i8] c"0x%02X\00"
@.str.14 = [5 x i8] c"};\0A\0A\00"
@.str.15 = [187 x i8] c"META_START(Resource_%s_Class,0)\0AMETA_PARAM(STRING,NODE_NAME,T(\22%s\22))\0AMETA_PARAM(CUSTOM,RESOURCEDATA_SIZE,sizeof(Data))\0AMETA_PARAM(CUSTOM,RESOURCEDATA_PTR,Data)\0AMETA_END(RESOURCEDATA_ID)\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [256 x i8]
%4 = alloca [256 x i8]
%5 = alloca [256 x i8]
%6 = alloca [32 x i8]
%7 = load i32*, i32** @stdout
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%11 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%12 = icmp slt i32 %0, 2
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = load i8*, i8** %1
%15 = tail call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str, i64 0, i64 0), i8* %14)
br label %127
16: ; preds = %2
store i8 0, i8* %11
store i8 0, i8* %9
br label %17
17: ; preds = %16, %55
%18 = phi i32 [ %61, %55 ], [ 1, %16 ]
%19 = phi i32 [ %59, %55 ], [ 0, %16 ]
%20 = phi i32 [ %58, %55 ], [ 0, %16 ]
%21 = phi i32* [ %57, %55 ], [ %7, %16 ]
%22 = phi i32* [ %56, %55 ], [ null, %16 ]
%23 = sext i32 %18 to i64
%24 = getelementptr inbounds i8*, i8** %1, i64 %23
%25 = load i8*, i8** %24
%26 = load i8, i8* %25
%27 = icmp eq i8 %26, 45
br i1 %27, label %28, label %45
28: ; preds = %17
%29 = getelementptr inbounds i8, i8* %25, i64 1
%30 = load i8, i8* %29
switch i8 %30, label %54 [
i8 99, label %55
i8 119, label %31
i8 97, label %32
i8 110, label %39
]
31: ; preds = %28
br label %55
32: ; preds = %28
%33 = add nsw i32 %18, 1
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8*, i8** %1, i64 %34
%36 = load i8*, i8** %35
%37 = call i32 @atoi(i8* %36)
%38 = call i32 @sprintf(i8* %11, i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %37)
br label %55
39: ; preds = %28
%40 = add nsw i32 %18, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8*, i8** %1, i64 %41
%43 = load i8*, i8** %42
%44 = call i32 @strcpy(i8* %9, i8* %43)
br label %55
45: ; preds = %17
%46 = icmp eq i32* %22, null
br i1 %46, label %47, label %52
47: ; preds = %45
%48 = call i32 @strcpy(i8* %10, i8* %25)
%49 = load i8*, i8** %24
%50 = call i32* @fopen(i8* %49, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%51 = icmp eq i32* %50, null
br i1 %51, label %127, label %55
52: ; preds = %45
%53 = call i32* @fopen(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %55
54: ; preds = %28
br label %55
55: ; preds = %28, %54, %31, %39, %32, %47, %52
%56 = phi i32* [ %22, %31 ], [ %22, %32 ], [ %22, %39 ], [ %22, %52 ], [ %50, %47 ], [ %22, %28 ], [ %22, %54 ]
%57 = phi i32* [ %21, %31 ], [ %21, %32 ], [ %21, %39 ], [ %53, %52 ], [ %21, %47 ], [ %21, %28 ], [ %21, %54 ]
%58 = phi i32 [ 1, %31 ], [ %20, %32 ], [ %20, %39 ], [ %20, %52 ], [ %20, %47 ], [ %20, %28 ], [ %20, %54 ]
%59 = phi i32 [ %19, %31 ], [ %19, %32 ], [ %19, %39 ], [ %19, %52 ], [ %19, %47 ], [ 1, %28 ], [ %19, %54 ]
%60 = phi i32 [ %18, %31 ], [ %33, %32 ], [ %40, %39 ], [ %18, %52 ], [ %18, %47 ], [ %18, %28 ], [ %18, %54 ]
%61 = add nsw i32 %60, 1
%62 = icmp slt i32 %61, %0
br i1 %62, label %17, label %63
63: ; preds = %55
%64 = call i32 @pathunix(i8* %10)
%65 = call i8* @getfilename(i8* %10)
%66 = call i32 @strcpy(i8* %8, i8* %65)
%67 = call i32 @truncfilename(i8* %10)
%68 = load i8, i8* %9
%69 = icmp eq i8 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %63
%71 = call i32 @strcpy(i8* %9, i8* %10)
br label %72
72: ; preds = %70, %63
%73 = call i64 @fwrite(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0), i64 45, i64 1, i32* %56)
%74 = icmp eq i32 %59, 0
br i1 %74, label %80, label %75
75: ; preds = %72
%76 = call i64 @fwrite(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i64 32, i64 1, i32* %57)
%77 = icmp eq i32 %58, 0
%78 = select i1 %77, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0)
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* %78, i8* %11)
br label %91
80: ; preds = %72
%81 = load i32, i32* @SEEK_END
%82 = call i32 @fseek(i32* %56, i32 0, i32 %81)
%83 = icmp eq i32 %58, 0
%84 = select i1 %83, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.7, i64 0, i64 0)
%85 = call i64 @ftell(i32* %56)
%86 = trunc i64 %85 to i32
%87 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8* %84, i8* %9, i32 %86)
%88 = load i32, i32* @SEEK_SET
%89 = call i32 @fseek(i32* %56, i32 0, i32 %88)
%90 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %84, i8* %9, i8* %11)
br label %91
91: ; preds = %80, %75
%92 = call i32 @fgetc(i32* %56)
%93 = call i64 @feof(i32* %56)
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %117
95: ; preds = %91
%96 = call i32 @fputc(i32 10, i32* %57)
%97 = and i32 %92, 255
%98 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i32 %97)
%99 = call i32 @fgetc(i32* %56)
%100 = call i64 @feof(i32* %56)
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %117
102: ; preds = %95, %110
%103 = phi i32 [ %114, %110 ], [ %99, %95 ]
%104 = phi i32 [ %113, %110 ], [ 1, %95 ]
%105 = call i32 @fputc(i32 44, i32* %57)
%106 = and i32 %104, 31
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %110
108: ; preds = %102
%109 = call i32 @fputc(i32 10, i32* %57)
br label %110
110: ; preds = %102, %108
%111 = and i32 %103, 255
%112 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0), i32 %111)
%113 = add nuw nsw i32 %104, 1
%114 = call i32 @fgetc(i32* %56)
%115 = call i64 @feof(i32* %56)
%116 = icmp eq i64 %115, 0
br i1 %116, label %102, label %117
117: ; preds = %110, %95, %91
%118 = call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i64 4, i64 1, i32* %57)
br i1 %74, label %121, label %119
119: ; preds = %117
%120 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([187 x i8], [187 x i8]* @.str.15, i64 0, i64 0), i8* %10, i8* %8)
br label %121
121: ; preds = %119, %117
%122 = call i32 @fclose(i32* %56)
%123 = load i32*, i32** @stdout
%124 = icmp eq i32* %57, %123
br i1 %124, label %127, label %125
125: ; preds = %121
%126 = call i32 @fclose(i32* %57)
br label %127
127: ; preds = %47, %121, %125, %13
%128 = phi i32 [ 1, %13 ], [ 0, %125 ], [ 0, %121 ], [ 1, %47 ]
ret i32 %128
}