#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 EOF;
int /*<<< orphan*/ fatal(char *, ...);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(unsigned char *);
int getc_unlocked(int /*<<< orphan*/ *);
scalar_t__ isalnum(int);
scalar_t__ isalpha(int);
scalar_t__ malloc(size_t);
scalar_t__ realloc(unsigned char *, size_t);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcmp(unsigned char *, char *);
unsigned char *extract_class_name(const char *path) {
  FILE *fin = 0;
  int c;
  size_t u = 0, a = 16;
  unsigned char *b = 0;
  int after_class = 0;
  if (!(b = (unsigned char *)malloc(a)))
    fatal("out of memory");
  if (!(fin = fopen(path, "r")))
    fatal("cannot open input file `%s'", path);
  c = getc_unlocked(fin);
  while (c != EOF) {
    if (c == '/') {
      if ((c = getc_unlocked(fin)) == EOF)
        break;
      if (c == '/') {
        c = getc_unlocked(fin);
        while (c != EOF && c != '\n')
          c = getc_unlocked(fin);
        if (c != EOF)
          c = getc_unlocked(fin);
      } else if (c == '*') {
        c = getc_unlocked(fin);
        while (c != EOF) {
          if (c == '*') {
            if ((c = getc_unlocked(fin)) == EOF)
              break;
            if (c == '/')
              break;
          } else {
            c = getc_unlocked(fin);
          }
        }
        if (c != EOF)
          c = getc_unlocked(fin);
      }
    } else if (c == '\"') {
      if (after_class)
        goto invalid_class_name;
      c = getc_unlocked(fin);
      while (c != EOF) {
        if (c == '\"')
          break;
        if (c == '\\') {
          if ((c = getc_unlocked(fin)) == EOF)
            break;
        }
        c = getc_unlocked(fin);
      }
      if (c != EOF)
        c = getc_unlocked(fin);
    } else if (c == '\'') {
      if (after_class)
        goto invalid_class_name;
      c = getc_unlocked(fin);
      while (c != EOF) {
        if (c == '\'')
          break;
        if (c == '\\') {
          if ((c = getc_unlocked(fin)) == EOF)
            break;
        }
        c = getc_unlocked(fin);
      }
      if (c != EOF)
        c = getc_unlocked(fin);
    } else if (isalpha(c) || c == '_') {
      u = 0;
      while (isalnum(c) || c == '_') {
        if (u + 1 >= a) {
          a *= 2;
          if (!(b = (unsigned char *)realloc(b, a)))
            fatal("out of memory");
        }
        b[u++] = c;
        c = getc_unlocked(fin);
      }
      b[u] = 0;
      if (after_class)
        goto good_class_name;
      if (!strcmp(b, "class"))
        after_class = 1;
    } else if (c <= ' ') {
      c = getc_unlocked(fin);
    } else {
      if (after_class)
        goto invalid_class_name;
      c = getc_unlocked(fin);
    }
  }
  fclose(fin);
  fin = 0;
  goto invalid_class_name;
good_class_name:
  if (fin)
    fclose(fin);
  return b;
invalid_class_name:
  fprintf(stderr, "invalid class name\n");
  if (fin)
    fclose(fin);
  if (b)
    free(b);
  return 0;
}


x86 assembly (clang, -O0):
<extract_class_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x10,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x30(%rbp),%rdi
call   1090 <malloc@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jne    1208 <extract_class_name+0x58>
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   10d0 <fatal@plt>
mov    -0x10(%rbp),%rdi
lea    0xdfb(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1238 <extract_class_name+0x88>
mov    -0x10(%rbp),%rsi
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   10d0 <fatal@plt>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2d9a(%rip),%rcx
cmp    (%rcx),%eax
je     1650 <extract_class_name+0x4a0>
cmpl   $0x2f,-0x1c(%rbp)
jne    139f <extract_class_name+0x1ef>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2d75(%rip),%rcx
cmp    (%rcx),%eax
jne    1280 <extract_class_name+0xd0>
jmp    1650 <extract_class_name+0x4a0>
cmpl   $0x2f,-0x1c(%rbp)
jne    12fb <extract_class_name+0x14b>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%ecx
xor    %eax,%eax
mov    0x2d46(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x3d(%rbp)
je     12b7 <extract_class_name+0x107>
cmpl   $0xa,-0x1c(%rbp)
setne  %al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
test   $0x1,%al
jne    12c7 <extract_class_name+0x117>
jmp    12d8 <extract_class_name+0x128>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    1296 <extract_class_name+0xe6>
mov    -0x1c(%rbp),%eax
mov    0x2d06(%rip),%rcx
cmp    (%rcx),%eax
je     12f6 <extract_class_name+0x146>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    139a <extract_class_name+0x1ea>
cmpl   $0x2a,-0x1c(%rbp)
jne    1395 <extract_class_name+0x1e5>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2ccd(%rip),%rcx
cmp    (%rcx),%eax
je     1372 <extract_class_name+0x1c2>
cmpl   $0x2a,-0x1c(%rbp)
jne    1361 <extract_class_name+0x1b1>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2ca8(%rip),%rcx
cmp    (%rcx),%eax
jne    134d <extract_class_name+0x19d>
jmp    1372 <extract_class_name+0x1c2>
cmpl   $0x2f,-0x1c(%rbp)
jne    135c <extract_class_name+0x1ac>
jmp    1372 <extract_class_name+0x1c2>
jmp    136d <extract_class_name+0x1bd>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    1311 <extract_class_name+0x161>
mov    -0x1c(%rbp),%eax
mov    0x2c6c(%rip),%rcx
cmp    (%rcx),%eax
je     1390 <extract_class_name+0x1e0>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    1395 <extract_class_name+0x1e5>
jmp    139a <extract_class_name+0x1ea>
jmp    164b <extract_class_name+0x49b>
cmpl   $0x22,-0x1c(%rbp)
jne    1448 <extract_class_name+0x298>
cmpl   $0x0,-0x3c(%rbp)
je     13b8 <extract_class_name+0x208>
jmp    1687 <extract_class_name+0x4d7>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2c1a(%rip),%rcx
cmp    (%rcx),%eax
je     1425 <extract_class_name+0x275>
cmpl   $0x22,-0x1c(%rbp)
jne    13e5 <extract_class_name+0x235>
jmp    1425 <extract_class_name+0x275>
cmpl   $0x5c,-0x1c(%rbp)
jne    1414 <extract_class_name+0x264>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2be6(%rip),%rcx
cmp    (%rcx),%eax
jne    140f <extract_class_name+0x25f>
jmp    1425 <extract_class_name+0x275>
jmp    1414 <extract_class_name+0x264>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    13c4 <extract_class_name+0x214>
mov    -0x1c(%rbp),%eax
mov    0x2bb9(%rip),%rcx
cmp    (%rcx),%eax
je     1443 <extract_class_name+0x293>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    1646 <extract_class_name+0x496>
cmpl   $0x27,-0x1c(%rbp)
jne    14f1 <extract_class_name+0x341>
cmpl   $0x0,-0x3c(%rbp)
je     1461 <extract_class_name+0x2b1>
jmp    1687 <extract_class_name+0x4d7>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2b71(%rip),%rcx
cmp    (%rcx),%eax
je     14ce <extract_class_name+0x31e>
cmpl   $0x27,-0x1c(%rbp)
jne    148e <extract_class_name+0x2de>
jmp    14ce <extract_class_name+0x31e>
cmpl   $0x5c,-0x1c(%rbp)
jne    14bd <extract_class_name+0x30d>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2b3d(%rip),%rcx
cmp    (%rcx),%eax
jne    14b8 <extract_class_name+0x308>
jmp    14ce <extract_class_name+0x31e>
jmp    14bd <extract_class_name+0x30d>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    146d <extract_class_name+0x2bd>
mov    -0x1c(%rbp),%eax
mov    0x2b10(%rip),%rcx
cmp    (%rcx),%eax
je     14ec <extract_class_name+0x33c>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    1641 <extract_class_name+0x491>
mov    -0x1c(%rbp),%edi
call   10b0 <isalpha@plt>
cmp    $0x0,%rax
jne    150d <extract_class_name+0x35d>
cmpl   $0x5f,-0x1c(%rbp)
jne    1601 <extract_class_name+0x451>
movq   $0x0,-0x28(%rbp)
mov    -0x1c(%rbp),%edi
call   1060 <isalnum@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x3e(%rbp)
jne    1539 <extract_class_name+0x389>
cmpl   $0x5f,-0x1c(%rbp)
sete   %al
mov    %al,-0x3e(%rbp)
mov    -0x3e(%rbp),%al
test   $0x1,%al
jne    1549 <extract_class_name+0x399>
jmp    15c1 <extract_class_name+0x411>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
cmp    -0x30(%rbp),%rax
jb     1595 <extract_class_name+0x3e5>
mov    -0x30(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   10a0 <realloc@plt>
mov    %rax,-0x38(%rbp)
cmp    $0x0,%rax
jne    1590 <extract_class_name+0x3e0>
lea    0xa77(%rip),%rdi
mov    $0x0,%al
call   10d0 <fatal@plt>
jmp    1595 <extract_class_name+0x3e5>
mov    -0x1c(%rbp),%eax
mov    %al,%dl
mov    -0x38(%rbp),%rax
mov    -0x28(%rbp),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,-0x28(%rbp)
mov    %dl,(%rax,%rcx,1)
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    1515 <extract_class_name+0x365>
mov    -0x38(%rbp),%rax
mov    -0x28(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
cmpl   $0x0,-0x3c(%rbp)
je     15dc <extract_class_name+0x42c>
jmp    1666 <extract_class_name+0x4b6>
mov    -0x38(%rbp),%rdi
lea    0xa45(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%eax
jne    15fc <extract_class_name+0x44c>
movl   $0x1,-0x3c(%rbp)
jmp    163c <extract_class_name+0x48c>
cmpl   $0x20,-0x1c(%rbp)
jg     161c <extract_class_name+0x46c>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    1637 <extract_class_name+0x487>
cmpl   $0x0,-0x3c(%rbp)
je     162b <extract_class_name+0x47b>
jmp    1687 <extract_class_name+0x4d7>
mov    -0x18(%rbp),%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,-0x1c(%rbp)
jmp    163c <extract_class_name+0x48c>
jmp    1641 <extract_class_name+0x491>
jmp    1646 <extract_class_name+0x496>
jmp    164b <extract_class_name+0x49b>
jmp    1244 <extract_class_name+0x94>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
movq   $0x0,-0x18(%rbp)
jmp    1687 <extract_class_name+0x4d7>
cmpq   $0x0,-0x18(%rbp)
je     167a <extract_class_name+0x4ca>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x38(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    16cc <extract_class_name+0x51c>
mov    0x294a(%rip),%rax
mov    (%rax),%edi
lea    0x99b(%rip),%rsi
call   1080 <fprintf@plt>
cmpq   $0x0,-0x18(%rbp)
je     16b0 <extract_class_name+0x500>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
cmpq   $0x0,-0x38(%rbp)
je     16c4 <extract_class_name+0x514>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<extract_class_name>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%rbp
mov    $0x10,%edi
call   1090 <malloc@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
jne    11e3 <extract_class_name+0x33>
lea    0xe24(%rip),%rdi
xor    %eax,%eax
call   10d0 <fatal@plt>
lea    0xe24(%rip),%rsi
mov    %rbp,%rdi
call   10c0 <fopen@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    120b <extract_class_name+0x5b>
lea    0xe0f(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   10d0 <fatal@plt>
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
mov    0x2dce(%rip),%r13
cmp    0x0(%r13),%eax
jne    1260 <extract_class_name+0xb0>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    0x2da9(%rip),%rax
mov    (%rax),%edi
lea    0xdfa(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x8(%rsp),%rdi
test   %rdi,%rdi
je     124c <extract_class_name+0x9c>
call   1030 <free@plt>
xor    %edi,%edi
mov    %rdi,%rax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %eax,%ebp
mov    $0x10,%r14d
xor    %r12d,%r12d
jmp    1280 <extract_class_name+0xd0>
nopl   (%rax)
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,%ebp
cmp    0x0(%r13),%ebp
je     1220 <extract_class_name+0x70>
cmp    $0x22,%ebp
je     12f0 <extract_class_name+0x140>
cmp    $0x27,%ebp
je     1330 <extract_class_name+0x180>
cmp    $0x2f,%ebp
jne    1380 <extract_class_name+0x1d0>
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
cmp    0x0(%r13),%eax
je     1220 <extract_class_name+0x70>
mov    %eax,%ebp
cmp    $0x2a,%eax
je     13d3 <extract_class_name+0x223>
cmp    $0x2f,%ebp
jne    127a <extract_class_name+0xca>
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,%ebp
mov    0x0(%r13),%ecx
cmp    %ecx,%eax
setne  %al
cmp    $0xa,%ebp
je     12dc <extract_class_name+0x12c>
cmp    %ecx,%ebp
jne    12c0 <extract_class_name+0x110>
test   %al,%al
jne    1270 <extract_class_name+0xc0>
jmp    127a <extract_class_name+0xca>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
test   %r12d,%r12d
jne    14d5 <extract_class_name+0x325>
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
mov    0x0(%r13),%ebp
cmp    $0x22,%eax
je     1370 <extract_class_name+0x1c0>
cmp    %ebp,%eax
je     1370 <extract_class_name+0x1c0>
cmp    $0x5c,%eax
jne    1300 <extract_class_name+0x150>
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
cmp    0x0(%r13),%eax
jne    1300 <extract_class_name+0x150>
jmp    13ab <extract_class_name+0x1fb>
nopl   (%rax)
test   %r12d,%r12d
jne    14d5 <extract_class_name+0x325>
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
mov    0x0(%r13),%ebp
cmp    $0x27,%eax
je     1370 <extract_class_name+0x1c0>
cmp    %ebp,%eax
je     1370 <extract_class_name+0x1c0>
cmp    $0x5c,%eax
jne    1340 <extract_class_name+0x190>
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
cmp    0x0(%r13),%eax
jne    1340 <extract_class_name+0x190>
jmp    13ab <extract_class_name+0x1fb>
nopw   0x0(%rax,%rax,1)
xor    %r12d,%r12d
cmp    %ebp,%eax
je     127a <extract_class_name+0xca>
jmp    1270 <extract_class_name+0xc0>
mov    %ebp,%edi
call   10b0 <isalpha@plt>
cmp    $0x5f,%ebp
je     13b5 <extract_class_name+0x205>
test   %rax,%rax
jne    13b5 <extract_class_name+0x205>
cmp    $0x20,%ebp
jle    1270 <extract_class_name+0xc0>
test   %r12d,%r12d
jne    14d5 <extract_class_name+0x325>
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,%ebp
xor    %r12d,%r12d
jmp    127a <extract_class_name+0xca>
mov    %r12d,0x14(%rsp)
mov    %ebp,%edi
call   1060 <isalnum@plt>
cmp    $0x5f,%ebp
je     141f <extract_class_name+0x26f>
test   %rax,%rax
jne    141f <extract_class_name+0x26f>
xor    %r15d,%r15d
jmp    14aa <extract_class_name+0x2fa>
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,%ebp
cmp    0x0(%r13),%eax
jne    13f6 <extract_class_name+0x246>
jmp    127a <extract_class_name+0xca>
nopl   0x0(%rax,%rax,1)
mov    %eax,%ebp
cmp    %ecx,%eax
je     1418 <extract_class_name+0x268>
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
mov    0x0(%r13),%ecx
cmp    $0x2a,%ebp
jne    13f0 <extract_class_name+0x240>
cmp    $0x2f,%eax
je     1410 <extract_class_name+0x260>
cmp    %ecx,%eax
jne    13f0 <extract_class_name+0x240>
cmp    %ecx,%eax
jne    1270 <extract_class_name+0xc0>
mov    %ecx,%ebp
jmp    127a <extract_class_name+0xca>
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x1(%r12),%r15
cmp    %r14,%r15
jae    1450 <extract_class_name+0x2a0>
mov    0x8(%rsp),%rax
jmp    1480 <extract_class_name+0x2d0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rsi
add    %r14,%rsi
mov    0x8(%rsp),%rdi
mov    %rsi,%r14
call   10a0 <realloc@plt>
test   %rax,%rax
jne    1480 <extract_class_name+0x2d0>
lea    0xb91(%rip),%rdi
xor    %eax,%eax
call   10d0 <fatal@plt>
xor    %eax,%eax
nopl   0x0(%rax,%rax,1)
mov    %rax,0x8(%rsp)
mov    %bpl,(%rax,%r12,1)
mov    %rbx,%rdi
call   1040 <getc_unlocked@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1060 <isalnum@plt>
mov    %r15,%r12
cmp    $0x5f,%ebp
je     1430 <extract_class_name+0x280>
mov    %r15,%r12
test   %rax,%rax
jne    1430 <extract_class_name+0x280>
mov    0x8(%rsp),%rdi
movb   $0x0,(%rdi,%r15,1)
cmpl   $0x0,0x14(%rsp)
jne    1500 <extract_class_name+0x350>
lea    0xb6a(%rip),%rsi
call   1070 <strcmp@plt>
xor    %r12d,%r12d
test   %eax,%eax
sete   %r12b
jmp    127a <extract_class_name+0xca>
mov    0x2afc(%rip),%rax
mov    (%rax),%edi
lea    0xb4d(%rip),%rsi
call   1080 <fprintf@plt>
test   %rbx,%rbx
je     123d <extract_class_name+0x8d>
mov    %rbx,%rdi
call   1050 <fclose@plt>
jmp    123d <extract_class_name+0x8d>
test   %rbx,%rbx
je     124e <extract_class_name+0x9e>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    0x8(%rsp),%rdi
jmp    124e <extract_class_name+0x9e>

LLVM IR (-O0):
@.str = [14 x i8] c"out of memory\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [28 x i8] c"cannot open input file `%s'\00"
@EOF = global i32 0
@.str.3 = [6 x i8] c"class\00"
@stderr = global i32 0
@.str.4 = [20 x i8] c"invalid class name\0A\00"
define i8* @extract_class_name(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i64
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i32
store i8* %0, i8** %3
store i32* null, i32** %4
store i64 0, i64* %6
store i64 16, i64* %7
store i8* null, i8** %8
store i32 0, i32* %9
%10 = load i64, i64* %7
%11 = call i64 @malloc(i64 %10)
%12 = inttoptr i64 %11 to i8*
store i8* %12, i8** %8
%13 = icmp ne i8* %12, null
br i1 %13, label %16, label %14
14: ; preds = %1
%15 = call i32 (i8*, ...) @fatal(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %16
16: ; preds = %14, %1
%17 = load i8*, i8** %3
%18 = call i32* @fopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %18, i32** %4
%19 = icmp ne i32* %18, null
br i1 %19, label %23, label %20
20: ; preds = %16
%21 = load i8*, i8** %3
%22 = call i32 (i8*, ...) @fatal(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i8* %21)
br label %23
23: ; preds = %20, %16
%24 = load i32*, i32** %4
%25 = call i32 @getc_unlocked(i32* %24)
store i32 %25, i32* %5
br label %26
26: ; preds = %253, %23
%27 = load i32, i32* %5
%28 = load i32, i32* @EOF
%29 = icmp ne i32 %27, %28
br i1 %29, label %30, label %254
30: ; preds = %26
%31 = load i32, i32* %5
%32 = icmp eq i32 %31, 47
br i1 %32, label %33, label %103
33: ; preds = %30
%34 = load i32*, i32** %4
%35 = call i32 @getc_unlocked(i32* %34)
store i32 %35, i32* %5
%36 = load i32, i32* @EOF
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %39
38: ; preds = %33
br label %254
39: ; preds = %33
%40 = load i32, i32* %5
%41 = icmp eq i32 %40, 47
br i1 %41, label %42, label %65
42: ; preds = %39
%43 = load i32*, i32** %4
%44 = call i32 @getc_unlocked(i32* %43)
store i32 %44, i32* %5
br label %45
45: ; preds = %54, %42
%46 = load i32, i32* %5
%47 = load i32, i32* @EOF
%48 = icmp ne i32 %46, %47
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = load i32, i32* %5
%51 = icmp ne i32 %50, 10
br label %52
52: ; preds = %49, %45
%53 = phi i1 [ false, %45 ], [ %51, %49 ]
br i1 %53, label %54, label %57
54: ; preds = %52
%55 = load i32*, i32** %4
%56 = call i32 @getc_unlocked(i32* %55)
store i32 %56, i32* %5
br label %45
57: ; preds = %52
%58 = load i32, i32* %5
%59 = load i32, i32* @EOF
%60 = icmp ne i32 %58, %59
br i1 %60, label %61, label %64
61: ; preds = %57
%62 = load i32*, i32** %4
%63 = call i32 @getc_unlocked(i32* %62)
store i32 %63, i32* %5
br label %64
64: ; preds = %61, %57
br label %102
65: ; preds = %39
%66 = load i32, i32* %5
%67 = icmp eq i32 %66, 42
br i1 %67, label %68, label %101
68: ; preds = %65
%69 = load i32*, i32** %4
%70 = call i32 @getc_unlocked(i32* %69)
store i32 %70, i32* %5
br label %71
71: ; preds = %92, %68
%72 = load i32, i32* %5
%73 = load i32, i32* @EOF
%74 = icmp ne i32 %72, %73
br i1 %74, label %75, label %93
75: ; preds = %71
%76 = load i32, i32* %5
%77 = icmp eq i32 %76, 42
br i1 %77, label %78, label %89
78: ; preds = %75
%79 = load i32*, i32** %4
%80 = call i32 @getc_unlocked(i32* %79)
store i32 %80, i32* %5
%81 = load i32, i32* @EOF
%82 = icmp eq i32 %80, %81
br i1 %82, label %83, label %84
83: ; preds = %78
br label %93
84: ; preds = %78
%85 = load i32, i32* %5
%86 = icmp eq i32 %85, 47
br i1 %86, label %87, label %88
87: ; preds = %84
br label %93
88: ; preds = %84
br label %92
89: ; preds = %75
%90 = load i32*, i32** %4
%91 = call i32 @getc_unlocked(i32* %90)
store i32 %91, i32* %5
br label %92
92: ; preds = %89, %88
br label %71
93: ; preds = %87, %83, %71
%94 = load i32, i32* %5
%95 = load i32, i32* @EOF
%96 = icmp ne i32 %94, %95
br i1 %96, label %97, label %100
97: ; preds = %93
%98 = load i32*, i32** %4
%99 = call i32 @getc_unlocked(i32* %98)
store i32 %99, i32* %5
br label %100
100: ; preds = %97, %93
br label %101
101: ; preds = %100, %65
br label %102
102: ; preds = %101, %64
br label %253
103: ; preds = %30
%104 = load i32, i32* %5
%105 = icmp eq i32 %104, 34
br i1 %105, label %106, label %142
106: ; preds = %103
%107 = load i32, i32* %9
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %110
109: ; preds = %106
br label %265
110: ; preds = %106
%111 = load i32*, i32** %4
%112 = call i32 @getc_unlocked(i32* %111)
store i32 %112, i32* %5
br label %113
113: ; preds = %131, %110
%114 = load i32, i32* %5
%115 = load i32, i32* @EOF
%116 = icmp ne i32 %114, %115
br i1 %116, label %117, label %134
117: ; preds = %113
%118 = load i32, i32* %5
%119 = icmp eq i32 %118, 34
br i1 %119, label %120, label %121
120: ; preds = %117
br label %134
121: ; preds = %117
%122 = load i32, i32* %5
%123 = icmp eq i32 %122, 92
br i1 %123, label %124, label %131
124: ; preds = %121
%125 = load i32*, i32** %4
%126 = call i32 @getc_unlocked(i32* %125)
store i32 %126, i32* %5
%127 = load i32, i32* @EOF
%128 = icmp eq i32 %126, %127
br i1 %128, label %129, label %130
129: ; preds = %124
br label %134
130: ; preds = %124
br label %131
131: ; preds = %130, %121
%132 = load i32*, i32** %4
%133 = call i32 @getc_unlocked(i32* %132)
store i32 %133, i32* %5
br label %113
134: ; preds = %129, %120, %113
%135 = load i32, i32* %5
%136 = load i32, i32* @EOF
%137 = icmp ne i32 %135, %136
br i1 %137, label %138, label %141
138: ; preds = %134
%139 = load i32*, i32** %4
%140 = call i32 @getc_unlocked(i32* %139)
store i32 %140, i32* %5
br label %141
141: ; preds = %138, %134
br label %252
142: ; preds = %103
%143 = load i32, i32* %5
%144 = icmp eq i32 %143, 39
br i1 %144, label %145, label %181
145: ; preds = %142
%146 = load i32, i32* %9
%147 = icmp ne i32 %146, 0
br i1 %147, label %148, label %149
148: ; preds = %145
br label %265
149: ; preds = %145
%150 = load i32*, i32** %4
%151 = call i32 @getc_unlocked(i32* %150)
store i32 %151, i32* %5
br label %152
152: ; preds = %170, %149
%153 = load i32, i32* %5
%154 = load i32, i32* @EOF
%155 = icmp ne i32 %153, %154
br i1 %155, label %156, label %173
156: ; preds = %152
%157 = load i32, i32* %5
%158 = icmp eq i32 %157, 39
br i1 %158, label %159, label %160
159: ; preds = %156
br label %173
160: ; preds = %156
%161 = load i32, i32* %5
%162 = icmp eq i32 %161, 92
br i1 %162, label %163, label %170
163: ; preds = %160
%164 = load i32*, i32** %4
%165 = call i32 @getc_unlocked(i32* %164)
store i32 %165, i32* %5
%166 = load i32, i32* @EOF
%167 = icmp eq i32 %165, %166
br i1 %167, label %168, label %169
168: ; preds = %163
br label %173
169: ; preds = %163
br label %170
170: ; preds = %169, %160
%171 = load i32*, i32** %4
%172 = call i32 @getc_unlocked(i32* %171)
store i32 %172, i32* %5
br label %152
173: ; preds = %168, %159, %152
%174 = load i32, i32* %5
%175 = load i32, i32* @EOF
%176 = icmp ne i32 %174, %175
br i1 %176, label %177, label %180
177: ; preds = %173
%178 = load i32*, i32** %4
%179 = call i32 @getc_unlocked(i32* %178)
store i32 %179, i32* %5
br label %180
180: ; preds = %177, %173
br label %251
181: ; preds = %142
%182 = load i32, i32* %5
%183 = call i64 @isalpha(i32 %182)
%184 = icmp ne i64 %183, 0
br i1 %184, label %188, label %185
185: ; preds = %181
%186 = load i32, i32* %5
%187 = icmp eq i32 %186, 95
br i1 %187, label %188, label %236
188: ; preds = %185, %181
store i64 0, i64* %6
br label %189
189: ; preds = %214, %188
%190 = load i32, i32* %5
%191 = call i64 @isalnum(i32 %190)
%192 = icmp ne i64 %191, 0
br i1 %192, label %196, label %193
193: ; preds = %189
%194 = load i32, i32* %5
%195 = icmp eq i32 %194, 95
br label %196
196: ; preds = %193, %189
%197 = phi i1 [ true, %189 ], [ %195, %193 ]
br i1 %197, label %198, label %223
198: ; preds = %196
%199 = load i64, i64* %6
%200 = add i64 %199, 1
%201 = load i64, i64* %7
%202 = icmp uge i64 %200, %201
br i1 %202, label %203, label %214
203: ; preds = %198
%204 = load i64, i64* %7
%205 = mul i64 %204, 2
store i64 %205, i64* %7
%206 = load i8*, i8** %8
%207 = load i64, i64* %7
%208 = call i64 @realloc(i8* %206, i64 %207)
%209 = inttoptr i64 %208 to i8*
store i8* %209, i8** %8
%210 = icmp ne i8* %209, null
br i1 %210, label %213, label %211
211: ; preds = %203
%212 = call i32 (i8*, ...) @fatal(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %213
213: ; preds = %211, %203
br label %214
214: ; preds = %213, %198
%215 = load i32, i32* %5
%216 = trunc i32 %215 to i8
%217 = load i8*, i8** %8
%218 = load i64, i64* %6
%219 = add i64 %218, 1
store i64 %219, i64* %6
%220 = getelementptr inbounds i8, i8* %217, i64 %218
store i8 %216, i8* %220
%221 = load i32*, i32** %4
%222 = call i32 @getc_unlocked(i32* %221)
store i32 %222, i32* %5
br label %189
223: ; preds = %196
%224 = load i8*, i8** %8
%225 = load i64, i64* %6
%226 = getelementptr inbounds i8, i8* %224, i64 %225
store i8 0, i8* %226
%227 = load i32, i32* %9
%228 = icmp ne i32 %227, 0
br i1 %228, label %229, label %230
229: ; preds = %223
br label %257
230: ; preds = %223
%231 = load i8*, i8** %8
%232 = call i32 @strcmp(i8* %231, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%233 = icmp ne i32 %232, 0
br i1 %233, label %235, label %234
234: ; preds = %230
store i32 1, i32* %9
br label %235
235: ; preds = %234, %230
br label %250
236: ; preds = %185
%237 = load i32, i32* %5
%238 = icmp sle i32 %237, 32
br i1 %238, label %239, label %242
239: ; preds = %236
%240 = load i32*, i32** %4
%241 = call i32 @getc_unlocked(i32* %240)
store i32 %241, i32* %5
br label %249
242: ; preds = %236
%243 = load i32, i32* %9
%244 = icmp ne i32 %243, 0
br i1 %244, label %245, label %246
245: ; preds = %242
br label %265
246: ; preds = %242
%247 = load i32*, i32** %4
%248 = call i32 @getc_unlocked(i32* %247)
store i32 %248, i32* %5
br label %249
249: ; preds = %246, %239
br label %250
250: ; preds = %249, %235
br label %251
251: ; preds = %250, %180
br label %252
252: ; preds = %251, %141
br label %253
253: ; preds = %252, %102
br label %26
254: ; preds = %38, %26
%255 = load i32*, i32** %4
%256 = call i32 @fclose(i32* %255)
store i32* null, i32** %4
br label %265
257: ; preds = %229
%258 = load i32*, i32** %4
%259 = icmp ne i32* %258, null
br i1 %259, label %260, label %263
260: ; preds = %257
%261 = load i32*, i32** %4
%262 = call i32 @fclose(i32* %261)
br label %263
263: ; preds = %260, %257
%264 = load i8*, i8** %8
store i8* %264, i8** %2
br label %280
265: ; preds = %254, %245, %148, %109
%266 = load i32, i32* @stderr
%267 = call i32 @fprintf(i32 %266, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%268 = load i32*, i32** %4
%269 = icmp ne i32* %268, null
br i1 %269, label %270, label %273
270: ; preds = %265
%271 = load i32*, i32** %4
%272 = call i32 @fclose(i32* %271)
br label %273
273: ; preds = %270, %265
%274 = load i8*, i8** %8
%275 = icmp ne i8* %274, null
br i1 %275, label %276, label %279
276: ; preds = %273
%277 = load i8*, i8** %8
%278 = call i32 @free(i8* %277)
br label %279
279: ; preds = %276, %273
store i8* null, i8** %2
br label %280
280: ; preds = %279, %263
%281 = load i8*, i8** %2
ret i8* %281
}

LLVM IR (-O2):
@.str = [14 x i8] c"out of memory\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [28 x i8] c"cannot open input file `%s'\00"
@EOF = global i32 0
@.str.3 = [6 x i8] c"class\00"
@stderr = global i32 0
@.str.4 = [20 x i8] c"invalid class name\0A\00"
define i8* @extract_class_name(i8* %0) {
%2 = tail call i64 @malloc(i64 16)
%3 = inttoptr i64 %2 to i8*
%4 = icmp eq i64 %2, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 (i8*, ...) @fatal(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %1
%8 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = tail call i32 (i8*, ...) @fatal(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i8* %0)
br label %12
12: ; preds = %10, %7
%13 = tail call i32 @getc_unlocked(i32* %8)
%14 = load i32, i32* @EOF
%15 = icmp eq i32 %13, %14
br i1 %15, label %175, label %16
16: ; preds = %12, %168
%17 = phi i32 [ %172, %168 ], [ 0, %12 ]
%18 = phi i8* [ %171, %168 ], [ %3, %12 ]
%19 = phi i64 [ %170, %168 ], [ 16, %12 ]
%20 = phi i32 [ %169, %168 ], [ %13, %12 ]
switch i32 %20, label %116 [
i32 47, label %21
i32 34, label %62
i32 39, label %89
]
21: ; preds = %16
%22 = tail call i32 @getc_unlocked(i32* %8)
%23 = load i32, i32* @EOF
%24 = icmp eq i32 %22, %23
br i1 %24, label %175, label %25
25: ; preds = %21
switch i32 %22, label %168 [
i32 47, label %26
i32 42, label %43
]
26: ; preds = %25
%27 = tail call i32 @getc_unlocked(i32* %8)
%28 = load i32, i32* @EOF
%29 = icmp ne i32 %27, %28
%30 = icmp ne i32 %27, 10
%31 = and i1 %30, %29
br i1 %31, label %32, label %38
32: ; preds = %26, %32
%33 = tail call i32 @getc_unlocked(i32* %8)
%34 = load i32, i32* @EOF
%35 = icmp ne i32 %33, %34
%36 = icmp ne i32 %33, 10
%37 = and i1 %36, %35
br i1 %37, label %32, label %38
38: ; preds = %32, %26
%39 = phi i32 [ %27, %26 ], [ %33, %32 ]
%40 = phi i1 [ %29, %26 ], [ %35, %32 ]
br i1 %40, label %41, label %168
41: ; preds = %38
%42 = tail call i32 @getc_unlocked(i32* %8)
br label %168
43: ; preds = %25
%44 = tail call i32 @getc_unlocked(i32* %8)
%45 = load i32, i32* @EOF
%46 = icmp eq i32 %44, %45
br i1 %46, label %168, label %47
47: ; preds = %43, %56
%48 = phi i32 [ %50, %56 ], [ %44, %43 ]
%49 = icmp eq i32 %48, 42
%50 = tail call i32 @getc_unlocked(i32* %8)
%51 = load i32, i32* @EOF
br i1 %49, label %52, label %56
52: ; preds = %47
%53 = icmp eq i32 %50, %51
%54 = icmp eq i32 %50, 47
%55 = or i1 %54, %53
br i1 %55, label %58, label %56
56: ; preds = %47, %52
%57 = icmp eq i32 %50, %51
br i1 %57, label %168, label %47
58: ; preds = %52
%59 = icmp eq i32 %50, %51
br i1 %59, label %168, label %60
60: ; preds = %58
%61 = tail call i32 @getc_unlocked(i32* %8)
br label %168
62: ; preds = %16
%63 = icmp eq i32 %17, 0
br i1 %63, label %64, label %183
64: ; preds = %62
%65 = tail call i32 @getc_unlocked(i32* %8)
%66 = load i32, i32* @EOF
%67 = icmp eq i32 %65, %66
%68 = icmp eq i32 %65, 34
%69 = or i1 %68, %67
br i1 %69, label %83, label %70
70: ; preds = %64, %77
%71 = phi i32 [ %78, %77 ], [ %65, %64 ]
%72 = icmp eq i32 %71, 92
br i1 %72, label %73, label %77
73: ; preds = %70
%74 = tail call i32 @getc_unlocked(i32* %8)
%75 = load i32, i32* @EOF
%76 = icmp eq i32 %74, %75
br i1 %76, label %168, label %77
77: ; preds = %73, %70
%78 = tail call i32 @getc_unlocked(i32* %8)
%79 = load i32, i32* @EOF
%80 = icmp eq i32 %78, %79
%81 = icmp eq i32 %78, 34
%82 = or i1 %81, %80
br i1 %82, label %83, label %70
83: ; preds = %77, %64
%84 = phi i32 [ %66, %64 ], [ %79, %77 ]
%85 = phi i32 [ %65, %64 ], [ %78, %77 ]
%86 = icmp eq i32 %85, %84
br i1 %86, label %168, label %87
87: ; preds = %83
%88 = tail call i32 @getc_unlocked(i32* %8)
br label %168
89: ; preds = %16
%90 = icmp eq i32 %17, 0
br i1 %90, label %91, label %183
91: ; preds = %89
%92 = tail call i32 @getc_unlocked(i32* %8)
%93 = load i32, i32* @EOF
%94 = icmp eq i32 %92, %93
%95 = icmp eq i32 %92, 39
%96 = or i1 %95, %94
br i1 %96, label %110, label %97
97: ; preds = %91, %104
%98 = phi i32 [ %105, %104 ], [ %92, %91 ]
%99 = icmp eq i32 %98, 92
br i1 %99, label %100, label %104
100: ; preds = %97
%101 = tail call i32 @getc_unlocked(i32* %8)
%102 = load i32, i32* @EOF
%103 = icmp eq i32 %101, %102
br i1 %103, label %168, label %104
104: ; preds = %100, %97
%105 = tail call i32 @getc_unlocked(i32* %8)
%106 = load i32, i32* @EOF
%107 = icmp eq i32 %105, %106
%108 = icmp eq i32 %105, 39
%109 = or i1 %108, %107
br i1 %109, label %110, label %97
110: ; preds = %104, %91
%111 = phi i32 [ %93, %91 ], [ %106, %104 ]
%112 = phi i32 [ %92, %91 ], [ %105, %104 ]
%113 = icmp eq i32 %112, %111
br i1 %113, label %168, label %114
114: ; preds = %110
%115 = tail call i32 @getc_unlocked(i32* %8)
br label %168
116: ; preds = %16
%117 = tail call i64 @isalpha(i32 %20)
%118 = icmp ne i64 %117, 0
%119 = icmp eq i32 %20, 95
%120 = or i1 %119, %118
br i1 %120, label %121, label %160
121: ; preds = %116
%122 = tail call i64 @isalnum(i32 %20)
%123 = icmp ne i64 %122, 0
%124 = or i1 %119, %123
br i1 %124, label %125, label %149
125: ; preds = %121, %139
%126 = phi i8* [ %141, %139 ], [ %18, %121 ]
%127 = phi i64 [ %140, %139 ], [ %19, %121 ]
%128 = phi i64 [ %130, %139 ], [ 0, %121 ]
%129 = phi i32 [ %144, %139 ], [ %20, %121 ]
%130 = add i64 %128, 1
%131 = icmp ult i64 %130, %127
br i1 %131, label %139, label %132
132: ; preds = %125
%133 = shl i64 %127, 1
%134 = tail call i64 @realloc(i8* %126, i64 %133)
%135 = inttoptr i64 %134 to i8*
%136 = icmp eq i64 %134, 0
br i1 %136, label %137, label %139
137: ; preds = %132
%138 = tail call i32 (i8*, ...) @fatal(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %139
139: ; preds = %132, %137, %125
%140 = phi i64 [ %133, %132 ], [ %133, %137 ], [ %127, %125 ]
%141 = phi i8* [ %135, %132 ], [ null, %137 ], [ %126, %125 ]
%142 = trunc i32 %129 to i8
%143 = getelementptr inbounds i8, i8* %141, i64 %128
store i8 %142, i8* %143
%144 = tail call i32 @getc_unlocked(i32* %8)
%145 = tail call i64 @isalnum(i32 %144)
%146 = icmp ne i64 %145, 0
%147 = icmp eq i32 %144, 95
%148 = or i1 %147, %146
br i1 %148, label %125, label %149
149: ; preds = %139, %121
%150 = phi i32 [ %20, %121 ], [ %144, %139 ]
%151 = phi i64 [ 0, %121 ], [ %130, %139 ]
%152 = phi i64 [ %19, %121 ], [ %140, %139 ]
%153 = phi i8* [ %18, %121 ], [ %141, %139 ]
%154 = getelementptr inbounds i8, i8* %153, i64 %151
store i8 0, i8* %154
%155 = icmp eq i32 %17, 0
br i1 %155, label %156, label %180
156: ; preds = %149
%157 = tail call i32 @strcmp(i8* dereferenceable(1) %153, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%158 = icmp eq i32 %157, 0
%159 = zext i1 %158 to i32
br label %168
160: ; preds = %116
%161 = icmp slt i32 %20, 33
br i1 %161, label %162, label %164
162: ; preds = %160
%163 = tail call i32 @getc_unlocked(i32* %8)
br label %168
164: ; preds = %160
%165 = icmp eq i32 %17, 0
br i1 %165, label %166, label %183
166: ; preds = %164
%167 = tail call i32 @getc_unlocked(i32* %8)
br label %168
168: ; preds = %100, %73, %56, %43, %156, %25, %87, %83, %166, %162, %110, %114, %41, %38, %58, %60
%169 = phi i32 [ %42, %41 ], [ %39, %38 ], [ %61, %60 ], [ %51, %58 ], [ %88, %87 ], [ %84, %83 ], [ %115, %114 ], [ %111, %110 ], [ %163, %162 ], [ %167, %166 ], [ %22, %25 ], [ %150, %156 ], [ %44, %43 ], [ %51, %56 ], [ %74, %73 ], [ %101, %100 ]
%170 = phi i64 [ %19, %41 ], [ %19, %38 ], [ %19, %60 ], [ %19, %58 ], [ %19, %87 ], [ %19, %83 ], [ %19, %114 ], [ %19, %110 ], [ %19, %162 ], [ %19, %166 ], [ %19, %25 ], [ %152, %156 ], [ %19, %43 ], [ %19, %56 ], [ %19, %73 ], [ %19, %100 ]
%171 = phi i8* [ %18, %41 ], [ %18, %38 ], [ %18, %60 ], [ %18, %58 ], [ %18, %87 ], [ %18, %83 ], [ %18, %114 ], [ %18, %110 ], [ %18, %162 ], [ %18, %166 ], [ %18, %25 ], [ %153, %156 ], [ %18, %43 ], [ %18, %56 ], [ %18, %73 ], [ %18, %100 ]
%172 = phi i32 [ %17, %41 ], [ %17, %38 ], [ %17, %60 ], [ %17, %58 ], [ 0, %87 ], [ 0, %83 ], [ 0, %114 ], [ 0, %110 ], [ %17, %162 ], [ 0, %166 ], [ %17, %25 ], [ %159, %156 ], [ %17, %43 ], [ %17, %56 ], [ 0, %73 ], [ 0, %100 ]
%173 = load i32, i32* @EOF
%174 = icmp eq i32 %169, %173
br i1 %174, label %175, label %16
175: ; preds = %21, %168, %12
%176 = phi i8* [ %3, %12 ], [ %171, %168 ], [ %18, %21 ]
%177 = tail call i32 @fclose(i32* %8)
%178 = load i32, i32* @stderr
%179 = tail call i32 @fprintf(i32 %178, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
br label %188
180: ; preds = %149
br i1 %9, label %193, label %181
181: ; preds = %180
%182 = tail call i32 @fclose(i32* %8)
br label %193
183: ; preds = %164, %89, %62
%184 = load i32, i32* @stderr
%185 = tail call i32 @fprintf(i32 %184, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
br i1 %9, label %188, label %186
186: ; preds = %183
%187 = tail call i32 @fclose(i32* %8)
br label %188
188: ; preds = %175, %186, %183
%189 = phi i8* [ %176, %175 ], [ %18, %186 ], [ %18, %183 ]
%190 = icmp eq i8* %189, null
br i1 %190, label %193, label %191
191: ; preds = %188
%192 = tail call i32 @free(i8* %189)
br label %193
193: ; preds = %188, %191, %180, %181
%194 = phi i8* [ %153, %181 ], [ %153, %180 ], [ null, %191 ], [ null, %188 ]
ret i8* %194
}