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

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ rewind(int /*<<< orphan*/ *);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
int /*<<< orphan*/ sscanf(char *, char *, ...);
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ strncpy(char *, char *, int);
int strnlen(char *, int);
char *strstr(char *, char *);
long strtol(char *, int /*<<< orphan*/ *, int);
main() {
  FILE *fp = NULL;
  char buf[200];
  char *p;
  char desc[200], data[200], value[200];
  int type, other;
  int dq;
  printf("; Mixed by STABBER, decoder of debug information\n");
  while (fgets(buf, sizeof(buf), stdin) != NULL) {
    if ((p = strstr(buf, "\t.stab")) != NULL ||
        (p = strstr(buf, " .stab")) != NULL) {
      char *p1;
      char last = ' ';
      int i, j;
      p++;
      p1 = &p[6];
      dq = 0;
      for (i = 6; i < 200 && p[i] != '\r' && p[i] != '\n'; i++) {
        switch (p[i]) {
        case '"':
          *p1 = ' ';
          dq = dq == 0 ? 1 : 0;
          p1 += last != ' ' ? 1 : 0;
          last = ' ';
          break;
        case ' ':
          if (dq != 0) {
            *p1 = '+';
            p1 += 1;
            break;
          }
          *p1 = ' ';
          p1 += last != ' ' ? 1 : 0;
          last = ' ';
          break;
        case ',':
          if (dq != 0) {
            *p1 = '|';
            p1 += 1;
            break;
          }
          *p1 = ' ';
          p1 += last != ' ' ? 1 : 0;
          last = ' ';
          break;
        default:
          *p1++ = p[i];
          last = p[i];
          break;
        }
      }
      *p1 = '\0';
      if (p[5] == 's') {
        char types[200];
        sscanf(&p[6], "%s %d %d %s %s", data, &type, &other, desc, value);
        switch (type) {
        case 0x20:
          strncpy(types, "N_GSYM", sizeof(types));
          printf("; %s Global symbol called %s\n", types, data);
          break;
        case 0x24:
          strncpy(types, "N_FUN", sizeof(types));
          printf("; %s function called %s\n", types, data);
          break;
        case 0x26:
          strncpy(types, "N_STSYM", sizeof(types));
          printf(
              "; %s Data section file-scope static initialized variable %s\n",
              types, data);
          break;
        case 0x28:
          strncpy(types, "N_LCSYM", sizeof(types));
          printf(
              "; %s BSS section file-scope static un-initialized variable %s\n",
              types, data);
          break;
        case 0x3c:
          strncpy(types, "N_OPT", sizeof(types));
          printf("; %s The STAB information was generated because the source "
                 "was %s\n",
                 types, data);
          break;
        case 0x40:
          strncpy(types, "N_RSYM", sizeof(types));
          printf("; %s Register variable %s\n", types, data);
          break;
        case 0x64:
          strncpy(types, "N_SO", sizeof(types));
          printf("; %s source file %s\n", types, data);
          fp = fopen(data, "r");
          break;
        case 0xa0:
          strncpy(types, "N_PSYM", sizeof(types));
          printf("; %s stack parameter %s at stack offset %s\n", types, data,
                 value);
          break;
        case 0x80: {
          char name[200], exp[200], *p2;
          strncpy(types, "N_LSYM", sizeof(types));
          p1 = data;
          while (*p1) {
            *p1 = (*p1 == ':' ? ' ' : *p1);
            p1++;
          }
          sscanf(data, "%s %s", name, exp);
          printf("; Local symbol %s: %s\n", name, exp);
        } break;
        case 0x82:
          strncpy(types, "N_BINCL", sizeof(types));
          printf("; %s beginning of include file: %s\n", types, data);
          break;
        case 0x84:
          strncpy(types, "N_SOL", sizeof(types));
          printf("; %s beginning of include file: %s\n", types, data);
          break;
        default:
          snprintf(types, sizeof(types), "0x%x", type);
          printf("; Unknown S record type %d |%s| %s %d |%s| |%s|\n", type,
                 data, types, other, desc, value);
        }
      } else if (p[5] == 'n') {
        int line;
        char types[200];
        sscanf(&p[6], "%d %d %d %s", &type, &other, &line, value);
        switch (type) {
        case 0xa2:
          strncpy(types, "N_EINCL", sizeof(types));
          printf("; %s End of include file: \n", types);
          break;
        case 0x44:
          strncpy(types, "N_SLINE", sizeof(types));
          if (fp != NULL) {
            char lbf[200];
            rewind(fp);
            while (line-- > 0) {
              fgets(lbf, sizeof(buf), fp);
            }
            printf("; %s", lbf);
          }
          break;
        default:
          snprintf(types, sizeof(types), "0x%x", type);
          printf("; Unknown N record type %s %d %s %s\n", types, other, desc,
                 value);
        }
      } else if (p[5] == 'd') {
        char types[200];
        sscanf(&p[6], "%d %d %s %s", &type, &other, desc, value);
        switch (type) {
        case 0x44:
          strncpy(types, "N_SLINE", sizeof(types));
          if (fp != NULL) {
            char lbf[200];
            signed long line = strtol(desc, NULL, 10);
            rewind(fp);
            while (line-- > 0) {
              fgets(lbf, sizeof(buf), fp);
            }
            printf("; %s", lbf);
          }
          break;
        default:
          snprintf(types, sizeof(types), "0x%x", type);
          printf("; Unknown D record type %s %d |%s|\n", types, other, desc);
        }
      } else
        printf("; ?: Unknown record type: %s\n", p);
    } else if ((strnlen(buf, sizeof(buf)) > 1) && (buf[0] != '\f'))
      printf("%s", buf);
  }
  if (fp != NULL)
    fclose(fp);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x960,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0xe0(%rbp),%rdi
mov    0x2e02(%rip),%rax
mov    (%rax),%rdx
mov    $0xc8,%esi
call   1090 <fgets@plt>
cmp    $0x0,%rax
je     1cb5 <main+0xb05>
lea    -0xe0(%rbp),%rdi
lea    0xe27(%rip),%rsi
call   10d0 <strstr@plt>
mov    %rax,-0xe8(%rbp)
cmp    $0x0,%rax
jne    1245 <main+0x95>
lea    -0xe0(%rbp),%rdi
lea    0xe0a(%rip),%rsi
call   10d0 <strstr@plt>
mov    %rax,-0xe8(%rbp)
cmp    $0x0,%rax
je     1c6c <main+0xabc>
movb   $0x20,-0x369(%rbp)
mov    -0xe8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe8(%rbp)
mov    -0xe8(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0x368(%rbp)
movl   $0x0,-0x35c(%rbp)
movl   $0x6,-0x370(%rbp)
xor    %eax,%eax
cmpl   $0xc8,-0x370(%rbp)
mov    %al,-0x939(%rbp)
jge    12dd <main+0x12d>
mov    -0xe8(%rbp),%rax
movslq -0x370(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
xor    %eax,%eax
cmp    $0xd,%ecx
mov    %al,-0x939(%rbp)
je     12dd <main+0x12d>
mov    -0xe8(%rbp),%rax
movslq -0x370(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0x939(%rbp)
mov    -0x939(%rbp),%al
test   $0x1,%al
jne    12f0 <main+0x140>
jmp    14c5 <main+0x315>
mov    -0xe8(%rbp),%rax
movslq -0x370(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    %eax,-0x940(%rbp)
sub    $0x20,%eax
je     1395 <main+0x1e5>
jmp    1316 <main+0x166>
mov    -0x940(%rbp),%eax
sub    $0x22,%eax
je     133e <main+0x18e>
jmp    132a <main+0x17a>
mov    -0x940(%rbp),%eax
sub    $0x2c,%eax
je     1401 <main+0x251>
jmp    146d <main+0x2bd>
mov    -0x368(%rbp),%rax
movb   $0x20,(%rax)
mov    -0x35c(%rbp),%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmove  %ecx,%eax
mov    %eax,-0x35c(%rbp)
movsbl -0x369(%rbp),%edx
xor    %ecx,%ecx
mov    $0x1,%eax
cmp    $0x20,%edx
cmovne %eax,%ecx
mov    -0x368(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x368(%rbp)
movb   $0x20,-0x369(%rbp)
jmp    14ac <main+0x2fc>
cmpl   $0x0,-0x35c(%rbp)
je     13c3 <main+0x213>
mov    -0x368(%rbp),%rax
movb   $0x2b,(%rax)
mov    -0x368(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x368(%rbp)
jmp    14ac <main+0x2fc>
mov    -0x368(%rbp),%rax
movb   $0x20,(%rax)
movsbl -0x369(%rbp),%edx
xor    %ecx,%ecx
mov    $0x1,%eax
cmp    $0x20,%edx
cmovne %eax,%ecx
mov    -0x368(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x368(%rbp)
movb   $0x20,-0x369(%rbp)
jmp    14ac <main+0x2fc>
cmpl   $0x0,-0x35c(%rbp)
je     142f <main+0x27f>
mov    -0x368(%rbp),%rax
movb   $0x7c,(%rax)
mov    -0x368(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x368(%rbp)
jmp    14ac <main+0x2fc>
mov    -0x368(%rbp),%rax
movb   $0x20,(%rax)
movsbl -0x369(%rbp),%edx
xor    %ecx,%ecx
mov    $0x1,%eax
cmp    $0x20,%edx
cmovne %eax,%ecx
mov    -0x368(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x368(%rbp)
movb   $0x20,-0x369(%rbp)
jmp    14ac <main+0x2fc>
mov    -0xe8(%rbp),%rax
movslq -0x370(%rbp),%rcx
mov    (%rax,%rcx,1),%cl
mov    -0x368(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x368(%rbp)
mov    %cl,(%rax)
mov    -0xe8(%rbp),%rax
movslq -0x370(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x369(%rbp)
jmp    14b1 <main+0x301>
mov    -0x370(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x370(%rbp)
jmp    1284 <main+0xd4>
mov    -0x368(%rbp),%rax
movb   $0x0,(%rax)
mov    -0xe8(%rbp),%rax
movsbl 0x5(%rax),%eax
cmp    $0x73,%eax
jne    199a <main+0x7ea>
mov    -0xe8(%rbp),%rdi
add    $0x6,%rdi
mov    %rsp,%rax
lea    -0x350(%rbp),%rcx
mov    %rcx,(%rax)
lea    0xb3e(%rip),%rsi
xor    %eax,%eax
lea    -0x280(%rbp),%rdx
lea    -0x354(%rbp),%rcx
lea    -0x358(%rbp),%r8
lea    -0x1b0(%rbp),%r9
call   10b0 <sscanf@plt>
mov    -0x354(%rbp),%eax
mov    %eax,-0x944(%rbp)
sub    $0x20,%eax
je     160f <main+0x45f>
jmp    153f <main+0x38f>
mov    -0x944(%rbp),%eax
sub    $0x24,%eax
je     1648 <main+0x498>
jmp    1553 <main+0x3a3>
mov    -0x944(%rbp),%eax
sub    $0x26,%eax
je     1681 <main+0x4d1>
jmp    1567 <main+0x3b7>
mov    -0x944(%rbp),%eax
sub    $0x28,%eax
je     16ba <main+0x50a>
jmp    157b <main+0x3cb>
mov    -0x944(%rbp),%eax
sub    $0x3c,%eax
je     16f3 <main+0x543>
jmp    158f <main+0x3df>
mov    -0x944(%rbp),%eax
sub    $0x40,%eax
je     172c <main+0x57c>
jmp    15a3 <main+0x3f3>
mov    -0x944(%rbp),%eax
sub    $0x64,%eax
je     1765 <main+0x5b5>
jmp    15b7 <main+0x407>
mov    -0x944(%rbp),%eax
sub    $0x80,%eax
je     17f5 <main+0x645>
jmp    15cd <main+0x41d>
mov    -0x944(%rbp),%eax
sub    $0x82,%eax
je     18ca <main+0x71a>
jmp    15e3 <main+0x433>
mov    -0x944(%rbp),%eax
sub    $0x84,%eax
je     1903 <main+0x753>
jmp    15f9 <main+0x449>
mov    -0x944(%rbp),%eax
sub    $0xa0,%eax
je     17b5 <main+0x605>
jmp    193c <main+0x78c>
lea    -0x440(%rbp),%rdi
lea    0xa32(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x440(%rbp),%rsi
lea    -0x280(%rbp),%rdx
lea    0xa1a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
lea    0xa1e(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x440(%rbp),%rsi
lea    -0x280(%rbp),%rdx
lea    0xa05(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
lea    0xa04(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x440(%rbp),%rsi
lea    -0x280(%rbp),%rdx
lea    0x9ed(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
lea    0xa10(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x440(%rbp),%rsi
lea    -0x280(%rbp),%rdx
lea    0x9f9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
lea    0xa1e(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x440(%rbp),%rsi
lea    -0x280(%rbp),%rdx
lea    0xa05(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
lea    0xa2e(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x440(%rbp),%rsi
lea    -0x280(%rbp),%rdx
lea    0xa16(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
lea    0xa17(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x440(%rbp),%rsi
lea    -0x280(%rbp),%rdx
lea    0x9fd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x280(%rbp),%rdi
lea    0x9fd(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
lea    0x9e3(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x440(%rbp),%rsi
lea    -0x280(%rbp),%rdx
lea    -0x350(%rbp),%rcx
lea    0x9c4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
lea    0x9d6(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x280(%rbp),%rax
mov    %rax,-0x368(%rbp)
mov    -0x368(%rbp),%rax
cmpb   $0x0,(%rax)
je     1886 <main+0x6d6>
mov    -0x368(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3a,%eax
jne    184e <main+0x69e>
mov    $0x20,%eax
mov    %eax,-0x948(%rbp)
jmp    185e <main+0x6ae>
mov    -0x368(%rbp),%rax
movsbl (%rax),%eax
mov    %eax,-0x948(%rbp)
mov    -0x948(%rbp),%eax
mov    %al,%cl
mov    -0x368(%rbp),%rax
mov    %cl,(%rax)
mov    -0x368(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x368(%rbp)
jmp    181b <main+0x66b>
lea    -0x280(%rbp),%rdi
lea    -0x510(%rbp),%rdx
lea    -0x5e0(%rbp),%rcx
lea    0x7a7(%rip),%rsi
mov    $0x0,%al
call   10b0 <sscanf@plt>
lea    -0x510(%rbp),%rsi
lea    -0x5e0(%rbp),%rdx
lea    0x922(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
lea    0x91f(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x440(%rbp),%rsi
lea    -0x280(%rbp),%rdx
lea    0x908(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
lea    0x912(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x440(%rbp),%rsi
lea    -0x280(%rbp),%rdx
lea    0x8cf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1995 <main+0x7e5>
lea    -0x440(%rbp),%rdi
mov    -0x354(%rbp),%ecx
mov    $0xc8,%esi
lea    0x8d4(%rip),%rdx
call   1070 <snprintf@plt>
mov    -0x354(%rbp),%esi
lea    -0x280(%rbp),%rdx
lea    -0x440(%rbp),%rcx
mov    -0x358(%rbp),%r8d
lea    -0x1b0(%rbp),%r9
lea    -0x350(%rbp),%rax
lea    0x8a4(%rip),%rdi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1c67 <main+0xab7>
mov    -0xe8(%rbp),%rax
movsbl 0x5(%rax),%eax
cmp    $0x6e,%eax
jne    1b0b <main+0x95b>
mov    -0xe8(%rbp),%rdi
add    $0x6,%rdi
lea    0x89f(%rip),%rsi
xor    %eax,%eax
lea    -0x354(%rbp),%rdx
lea    -0x358(%rbp),%rcx
lea    -0x5ec(%rbp),%r8
lea    -0x350(%rbp),%r9
call   10b0 <sscanf@plt>
mov    -0x354(%rbp),%eax
mov    %eax,-0x94c(%rbp)
sub    $0x44,%eax
je     1a45 <main+0x895>
jmp    19fd <main+0x84d>
mov    -0x94c(%rbp),%eax
sub    $0xa2,%eax
jne    1abf <main+0x90f>
jmp    1a13 <main+0x863>
lea    -0x6c0(%rbp),%rdi
lea    0x84a(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    -0x6c0(%rbp),%rsi
lea    0x83a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1b06 <main+0x956>
lea    -0x6c0(%rbp),%rdi
lea    0x83c(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
cmpq   $0x0,-0x10(%rbp)
je     1aba <main+0x90a>
mov    -0x10(%rbp),%rdi
call   1060 <rewind@plt>
mov    -0x5ec(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x5ec(%rbp)
cmp    $0x0,%eax
jle    1aa5 <main+0x8f5>
lea    -0x790(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0xc8,%esi
call   1090 <fgets@plt>
jmp    1a71 <main+0x8c1>
lea    -0x790(%rbp),%rsi
lea    0x7e4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1b06 <main+0x956>
lea    -0x6c0(%rbp),%rdi
mov    -0x354(%rbp),%ecx
mov    $0xc8,%esi
lea    0x751(%rip),%rdx
call   1070 <snprintf@plt>
lea    -0x6c0(%rbp),%rsi
mov    -0x358(%rbp),%edx
lea    -0x1b0(%rbp),%rcx
lea    -0x350(%rbp),%r8
lea    0x79d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1c62 <main+0xab2>
mov    -0xe8(%rbp),%rax
movsbl 0x5(%rax),%eax
cmp    $0x64,%eax
jne    1c48 <main+0xa98>
mov    -0xe8(%rbp),%rdi
add    $0x6,%rdi
lea    0x512(%rip),%rsi
xor    %eax,%eax
lea    -0x354(%rbp),%rdx
lea    -0x358(%rbp),%rcx
lea    -0x1b0(%rbp),%r8
lea    -0x350(%rbp),%r9
call   10b0 <sscanf@plt>
mov    -0x354(%rbp),%eax
sub    $0x44,%eax
jne    1c03 <main+0xa53>
jmp    1b68 <main+0x9b8>
lea    -0x860(%rbp),%rdi
lea    0x719(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
cmpq   $0x0,-0x10(%rbp)
je     1bfe <main+0xa4e>
lea    -0x1b0(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   10a0 <strtol@plt>
mov    %rax,-0x938(%rbp)
mov    -0x10(%rbp),%rdi
call   1060 <rewind@plt>
mov    -0x938(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x938(%rbp)
cmp    $0x0,%rax
jle    1be9 <main+0xa39>
lea    -0x930(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    $0xc8,%esi
call   1090 <fgets@plt>
jmp    1bb0 <main+0xa00>
lea    -0x930(%rbp),%rsi
lea    0x6a0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1c43 <main+0xa93>
lea    -0x860(%rbp),%rdi
mov    -0x354(%rbp),%ecx
mov    $0xc8,%esi
lea    0x60d(%rip),%rdx
call   1070 <snprintf@plt>
lea    -0x860(%rbp),%rsi
mov    -0x358(%rbp),%edx
lea    -0x1b0(%rbp),%rcx
lea    0x685(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1c5d <main+0xaad>
mov    -0xe8(%rbp),%rsi
lea    0x68f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1c62 <main+0xab2>
jmp    1c67 <main+0xab7>
jmp    1cb0 <main+0xb00>
lea    -0xe0(%rbp),%rdi
mov    $0xc8,%esi
call   1080 <strnlen@plt>
cmp    $0x1,%eax
jle    1cab <main+0xafb>
movsbl -0xe0(%rbp),%eax
cmp    $0xc,%eax
je     1cab <main+0xafb>
lea    -0xe0(%rbp),%rsi
lea    0x5f5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1cb0 <main+0xb00>
jmp    11d8 <main+0x28>
cmpq   $0x0,-0x10(%rbp)
je     1cc9 <main+0xb19>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x960,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x5b8,%rsp
lea    0x1291(%rip),%rdi
call   1040 <puts@plt>
mov    0x2e04(%rip),%r15
mov    (%r15),%rdx
lea    0x420(%rsp),%rdi
mov    $0xc8,%esi
call   10a0 <fgets@plt>
test   %rax,%rax
je     1891 <main+0x6d1>
lea    0x420(%rsp),%r14
lea    0x4f0(%rsp),%r12
xor    %r13d,%r13d
jmp    1247 <main+0x87>
nopw   0x0(%rax,%rax,1)
lea    0x1224(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%r15),%rdx
mov    %r14,%rdi
mov    $0xc8,%esi
call   10a0 <fgets@plt>
test   %rax,%rax
je     1884 <main+0x6c4>
mov    %r14,%rdi
lea    0xf47(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
jne    1273 <main+0xb3>
mov    %r14,%rdi
lea    0xf3a(%rip),%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
je     1509 <main+0x349>
lea    0x1(%rax),%rsi
lea    0x7(%rax),%rdi
xor    %r9d,%r9d
mov    $0x20,%r8b
mov    $0x7,%edx
mov    %rdi,%rcx
lea    0x350(%rsp),%r10
jmp    12bc <main+0xfc>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %bl,(%rcx)
add    $0x1,%rcx
movzbl (%rax,%rdx,1),%r8d
add    $0x1,%rdx
cmp    $0xc9,%rdx
je     1340 <main+0x180>
movsbl (%rax,%rdx,1),%ebx
cmp    $0xa,%ebx
je     1340 <main+0x180>
cmp    $0xd,%bl
je     1340 <main+0x180>
cmp    $0x20,%ebx
je     1300 <main+0x140>
cmp    $0x2c,%ebx
je     1310 <main+0x150>
cmp    $0x22,%ebx
jne    12a0 <main+0xe0>
movb   $0x20,(%rcx)
xor    %ebp,%ebp
test   %r9d,%r9d
sete   %bpl
xor    %ebx,%ebx
cmp    $0x20,%r8b
setne  %bl
add    %rbx,%rcx
mov    $0x20,%r8b
mov    %ebp,%r9d
jmp    12ab <main+0xeb>
nopl   0x0(%rax)
test   %r9d,%r9d
je     1324 <main+0x164>
movb   $0x2b,(%rcx)
jmp    1318 <main+0x158>
nopw   0x0(%rax,%rax,1)
test   %r9d,%r9d
je     1324 <main+0x164>
movb   $0x7c,(%rcx)
add    $0x1,%rcx
mov    $0x1,%r9d
jmp    12ab <main+0xeb>
movb   $0x20,(%rcx)
xor    %ebp,%ebp
cmp    $0x20,%r8b
setne  %bpl
add    %rbp,%rcx
mov    $0x20,%r8b
xor    %r9d,%r9d
jmp    12ab <main+0xeb>
nop
movb   $0x0,(%rcx)
mov    0x6(%rax),%al
cmp    $0x64,%al
je     13e0 <main+0x220>
cmp    $0x6e,%al
je     14a0 <main+0x2e0>
cmp    $0x73,%al
jne    1220 <main+0x60>
lea    0x280(%rsp),%rax
mov    %rax,(%rsp)
lea    0xe35(%rip),%rsi
lea    0xe0(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0xc(%rsp),%r8
mov    %r10,%r9
xor    %eax,%eax
call   10c0 <sscanf@plt>
mov    0x8(%rsp),%ecx
lea    -0x20(%rcx),%eax
cmp    $0x44,%eax
ja     1572 <main+0x3b2>
lea    0xc5c(%rip),%rdx
movslq (%rdx,%rax,4),%rax
add    %rdx,%rax
jmp    *%rax
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
lea    0xdf9(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xdef(%rip),%rdi
jmp    17fb <main+0x63b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xdc2(%rip),%rsi
lea    0x8(%rsp),%rdx
lea    0xc(%rsp),%rcx
mov    %r10,%r8
lea    0x280(%rsp),%r9
xor    %eax,%eax
mov    %r10,%rbx
call   10c0 <sscanf@plt>
mov    0x8(%rsp),%ecx
cmp    $0x44,%ecx
jne    153c <main+0x37c>
lea    0x10(%rsp),%rdi
lea    0xfd6(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
test   %r13,%r13
je     122e <main+0x6e>
mov    %r15,%rbx
lea    0x350(%rsp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   10b0 <strtol@plt>
mov    %rax,%r15
mov    %r13,%rdi
call   1070 <rewind@plt>
test   %r15,%r15
jle    147a <main+0x2ba>
add    $0x1,%r15
nopl   (%rax)
mov    %r12,%rdi
mov    $0xc8,%esi
mov    %r13,%rdx
call   10a0 <fgets@plt>
add    $0xffffffffffffffff,%r15
cmp    $0x1,%r15
ja     1460 <main+0x2a0>
lea    0xf7c(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%r15
jmp    122e <main+0x6e>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0xf1e(%rip),%rsi
lea    0x8(%rsp),%rdx
lea    0xc(%rsp),%rcx
lea    0x1b0(%rsp),%r8
lea    0x280(%rsp),%r9
xor    %eax,%eax
call   10c0 <sscanf@plt>
mov    0x8(%rsp),%ecx
cmp    $0x44,%ecx
je     15cc <main+0x40c>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
cmp    $0xa2,%ecx
jne    1627 <main+0x467>
lea    0xee1(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xed8(%rip),%rdi
mov    %rbx,%rsi
jmp    1227 <main+0x67>
mov    %r14,%rdi
mov    $0xc8,%esi
call   1090 <strnlen@plt>
cmp    $0x2,%eax
jl     122e <main+0x6e>
cmpb   $0xc,0x420(%rsp)
0c
je     122e <main+0x6e>
lea    0xecb(%rip),%rdi
mov    %r14,%rsi
jmp    1227 <main+0x67>
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
mov    $0xc8,%esi
lea    0xe3f(%rip),%rdx
call   1080 <snprintf@plt>
mov    0xc(%rsp),%edx
lea    0xec7(%rip),%rdi
mov    %rbp,%rsi
mov    %rbx,%rcx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    122e <main+0x6e>
lea    -0x80(%rcx),%eax
cmp    $0x20,%eax
ja     1776 <main+0x5b6>
lea    0xb8f(%rip),%rdx
movslq (%rdx,%rax,4),%rax
add    %rdx,%rax
jmp    *%rax
lea    0x10(%rsp),%rdi
lea    0xda5(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xe0(%rsp),%rax
jmp    15b6 <main+0x3f6>
xchg   %ax,%ax
mov    %dl,(%rax)
add    $0x1,%rax
movzbl (%rax),%ecx
mov    $0x20,%dl
cmp    $0x3a,%cl
je     15b0 <main+0x3f0>
test   %cl,%cl
je     1851 <main+0x691>
mov    %ecx,%edx
jmp    15b0 <main+0x3f0>
lea    0x10(%rsp),%rdi
lea    0xe1d(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
test   %r13,%r13
je     122e <main+0x6e>
mov    %r13,%rdi
call   1070 <rewind@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x1b0(%rsp),%eax
lea    -0x1(%rax),%ecx
mov    %ecx,0x1b0(%rsp)
test   %eax,%eax
jle    1662 <main+0x4a2>
mov    %r12,%rdi
mov    $0xc8,%esi
mov    %r13,%rdx
call   10a0 <fgets@plt>
jmp    1600 <main+0x440>
mov    $0xc8,%esi
lea    0xd5c(%rip),%rdx
call   1080 <snprintf@plt>
mov    0xc(%rsp),%edx
lea    0xdbf(%rip),%rdi
mov    %rbx,%rsi
lea    0x350(%rsp),%rcx
lea    0x280(%rsp),%r8
xor    %eax,%eax
call   1060 <printf@plt>
jmp    122e <main+0x6e>
lea    0xd94(%rip),%rdi
mov    %r12,%rsi
jmp    1227 <main+0x67>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
lea    0xb5a(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xb4f(%rip),%rdi
jmp    17fb <main+0x63b>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
lea    0xb54(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xb4b(%rip),%rdi
jmp    17fb <main+0x63b>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
lea    0xb74(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xb6b(%rip),%rdi
jmp    17fb <main+0x63b>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
lea    0xb96(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xb8b(%rip),%rdi
jmp    17fb <main+0x63b>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
lea    0xbba(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xbb0(%rip),%rdi
jmp    17fb <main+0x63b>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
lea    0xbb7(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xbab(%rip),%rdi
mov    %rbx,%rsi
lea    0xe0(%rsp),%rbx
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
lea    0xba1(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,%r13
jmp    122e <main+0x6e>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xc8,%esi
lea    0xc05(%rip),%rdx
call   1080 <snprintf@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%r8d
lea    0x280(%rsp),%rax
mov    %rax,(%rsp)
lea    0xbe9(%rip),%rdi
lea    0xe0(%rsp),%rdx
mov    %rbx,%rcx
lea    0x350(%rsp),%r9
xor    %eax,%eax
call   1060 <printf@plt>
jmp    122e <main+0x6e>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
lea    0xb84(%rip),%rsi
jmp    17ea <main+0x62a>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
lea    0xb9f(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xb6a(%rip),%rdi
mov    %rbx,%rsi
lea    0xe0(%rsp),%rdx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    122e <main+0x6e>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
lea    0xaeb(%rip),%rsi
mov    $0xc8,%edx
call   1030 <strncpy@plt>
lea    0xae1(%rip),%rdi
mov    %rbx,%rsi
lea    0xe0(%rsp),%rdx
lea    0x280(%rsp),%rcx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    122e <main+0x6e>
lea    0xe0(%rsp),%rdi
lea    0x94f(%rip),%rsi
mov    %r12,%rdx
lea    0x1b0(%rsp),%rbx
mov    %rbx,%rcx
xor    %eax,%eax
call   10c0 <sscanf@plt>
lea    0xaca(%rip),%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
jmp    1806 <main+0x646>
test   %r13,%r13
je     1891 <main+0x6d1>
mov    %r13,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x5b8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [50 x i8] c"; Mixed by STABBER, decoder of debug information\0A\00"
@stdin = global i32* null
@.str.1 = [7 x i8] c"\09.stab\00"
@.str.2 = [7 x i8] c" .stab\00"
@.str.3 = [15 x i8] c"%s %d %d %s %s\00"
@.str.4 = [7 x i8] c"N_GSYM\00"
@.str.5 = [30 x i8] c"; %s Global symbol called %s\0A\00"
@.str.6 = [6 x i8] c"N_FUN\00"
@.str.7 = [25 x i8] c"; %s function called %s\0A\00"
@.str.8 = [8 x i8] c"N_STSYM\00"
@.str.9 = [61 x i8] c"; %s Data section file-scope static initialized variable %s\0A\00"
@.str.10 = [8 x i8] c"N_LCSYM\00"
@.str.11 = [63 x i8] c"; %s BSS section file-scope static un-initialized variable %s\0A\00"
@.str.12 = [6 x i8] c"N_OPT\00"
@.str.13 = [67 x i8] c"; %s The STAB information was generated because the source was %s\0A\00"
@.str.14 = [7 x i8] c"N_RSYM\00"
@.str.15 = [27 x i8] c"; %s Register variable %s\0A\00"
@.str.16 = [5 x i8] c"N_SO\00"
@.str.17 = [21 x i8] c"; %s source file %s\0A\00"
@.str.18 = [2 x i8] c"r\00"
@.str.19 = [7 x i8] c"N_PSYM\00"
@.str.20 = [44 x i8] c"; %s stack parameter %s at stack offset %s\0A\00"
@.str.21 = [7 x i8] c"N_LSYM\00"
@.str.22 = [6 x i8] c"%s %s\00"
@.str.23 = [23 x i8] c"; Local symbol %s: %s\0A\00"
@.str.24 = [8 x i8] c"N_BINCL\00"
@.str.25 = [36 x i8] c"; %s beginning of include file: %s\0A\00"
@.str.26 = [6 x i8] c"N_SOL\00"
@.str.27 = [5 x i8] c"0x%x\00"
@.str.28 = [49 x i8] c"; Unknown S record type %d |%s| %s %d |%s| |%s|\0A\00"
@.str.29 = [12 x i8] c"%d %d %d %s\00"
@.str.30 = [8 x i8] c"N_EINCL\00"
@.str.31 = [28 x i8] c"; %s End of include file: \0A\00"
@.str.32 = [8 x i8] c"N_SLINE\00"
@.str.33 = [5 x i8] c"; %s\00"
@.str.34 = [37 x i8] c"; Unknown N record type %s %d %s %s\0A\00"
@.str.35 = [12 x i8] c"%d %d %s %s\00"
@.str.36 = [36 x i8] c"; Unknown D record type %s %d |%s|\0A\00"
@.str.37 = [30 x i8] c"; ?: Unknown record type: %s\0A\00"
@.str.38 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca [200 x i8]
%4 = alloca i8*
%5 = alloca [200 x i8]
%6 = alloca [200 x i8]
%7 = alloca [200 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8
%13 = alloca i32
%14 = alloca i32
%15 = alloca [200 x i8]
%16 = alloca [200 x i8]
%17 = alloca [200 x i8]
%18 = alloca i8*
%19 = alloca i32
%20 = alloca [200 x i8]
%21 = alloca [200 x i8]
%22 = alloca [200 x i8]
%23 = alloca [200 x i8]
%24 = alloca i64
store i32 0, i32* %1
store i32* null, i32** %2
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
br label %26
26: ; preds = %369, %0
%27 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%28 = load i32*, i32** @stdin
%29 = call i32* @fgets(i8* %27, i32 200, i32* %28)
%30 = icmp ne i32* %29, null
br i1 %30, label %31, label %370
31: ; preds = %26
%32 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%33 = call i8* @strstr(i8* %32, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
store i8* %33, i8** %4
%34 = icmp ne i8* %33, null
br i1 %34, label %39, label %35
35: ; preds = %31
%36 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%37 = call i8* @strstr(i8* %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
store i8* %37, i8** %4
%38 = icmp ne i8* %37, null
br i1 %38, label %39, label %356
39: ; preds = %35, %31
store i8 32, i8* %12
%40 = load i8*, i8** %4
%41 = getelementptr inbounds i8, i8* %40, i32 1
store i8* %41, i8** %4
%42 = load i8*, i8** %4
%43 = getelementptr inbounds i8, i8* %42, i64 6
store i8* %43, i8** %11
store i32 0, i32* %10
store i32 6, i32* %13
br label %44
44: ; preds = %134, %39
%45 = load i32, i32* %13
%46 = icmp slt i32 %45, 200
br i1 %46, label %47, label %63
47: ; preds = %44
%48 = load i8*, i8** %4
%49 = load i32, i32* %13
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, i8* %48, i64 %50
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %53, 13
br i1 %54, label %55, label %63
55: ; preds = %47
%56 = load i8*, i8** %4
%57 = load i32, i32* %13
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, i8* %56, i64 %58
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = icmp ne i32 %61, 10
br label %63
63: ; preds = %55, %47, %44
%64 = phi i1 [ false, %47 ], [ false, %44 ], [ %62, %55 ]
br i1 %64, label %65, label %137
65: ; preds = %63
%66 = load i8*, i8** %4
%67 = load i32, i32* %13
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, i8* %66, i64 %68
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
switch i32 %71, label %120 [
i32 34, label %72
i32 32, label %86
i32 44, label %103
]
72: ; preds = %65
%73 = load i8*, i8** %11
store i8 32, i8* %73
%74 = load i32, i32* %10
%75 = icmp eq i32 %74, 0
%76 = zext i1 %75 to i64
%77 = select i1 %75, i32 1, i32 0
store i32 %77, i32* %10
%78 = load i8, i8* %12
%79 = sext i8 %78 to i32
%80 = icmp ne i32 %79, 32
%81 = zext i1 %80 to i64
%82 = select i1 %80, i32 1, i32 0
%83 = load i8*, i8** %11
%84 = sext i32 %82 to i64
%85 = getelementptr inbounds i8, i8* %83, i64 %84
store i8* %85, i8** %11
store i8 32, i8* %12
br label %133
86: ; preds = %65
%87 = load i32, i32* %10
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %93
89: ; preds = %86
%90 = load i8*, i8** %11
store i8 43, i8* %90
%91 = load i8*, i8** %11
%92 = getelementptr inbounds i8, i8* %91, i64 1
store i8* %92, i8** %11
br label %133
93: ; preds = %86
%94 = load i8*, i8** %11
store i8 32, i8* %94
%95 = load i8, i8* %12
%96 = sext i8 %95 to i32
%97 = icmp ne i32 %96, 32
%98 = zext i1 %97 to i64
%99 = select i1 %97, i32 1, i32 0
%100 = load i8*, i8** %11
%101 = sext i32 %99 to i64
%102 = getelementptr inbounds i8, i8* %100, i64 %101
store i8* %102, i8** %11
store i8 32, i8* %12
br label %133
103: ; preds = %65
%104 = load i32, i32* %10
%105 = icmp ne i32 %104, 0
br i1 %105, label %106, label %110
106: ; preds = %103
%107 = load i8*, i8** %11
store i8 124, i8* %107
%108 = load i8*, i8** %11
%109 = getelementptr inbounds i8, i8* %108, i64 1
store i8* %109, i8** %11
br label %133
110: ; preds = %103
%111 = load i8*, i8** %11
store i8 32, i8* %111
%112 = load i8, i8* %12
%113 = sext i8 %112 to i32
%114 = icmp ne i32 %113, 32
%115 = zext i1 %114 to i64
%116 = select i1 %114, i32 1, i32 0
%117 = load i8*, i8** %11
%118 = sext i32 %116 to i64
%119 = getelementptr inbounds i8, i8* %117, i64 %118
store i8* %119, i8** %11
store i8 32, i8* %12
br label %133
120: ; preds = %65
%121 = load i8*, i8** %4
%122 = load i32, i32* %13
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, i8* %121, i64 %123
%125 = load i8, i8* %124
%126 = load i8*, i8** %11
%127 = getelementptr inbounds i8, i8* %126, i32 1
store i8* %127, i8** %11
store i8 %125, i8* %126
%128 = load i8*, i8** %4
%129 = load i32, i32* %13
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8, i8* %128, i64 %130
%132 = load i8, i8* %131
store i8 %132, i8* %12
br label %133
133: ; preds = %120, %110, %106, %93, %89, %72
br label %134
134: ; preds = %133
%135 = load i32, i32* %13
%136 = add nsw i32 %135, 1
store i32 %136, i32* %13
br label %44
137: ; preds = %63
%138 = load i8*, i8** %11
store i8 0, i8* %138
%139 = load i8*, i8** %4
%140 = getelementptr inbounds i8, i8* %139, i64 5
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 115
br i1 %143, label %144, label %259
144: ; preds = %137
%145 = load i8*, i8** %4
%146 = getelementptr inbounds i8, i8* %145, i64 6
%147 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%148 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%149 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%150 = call i32 (i8*, i8*, ...) @sscanf(i8* %146, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %147, i32* %8, i32* %9, i8* %148, i8* %149)
%151 = load i32, i32* %8
switch i32 %151, label %247 [
i32 32, label %152
i32 36, label %158
i32 38, label %164
i32 40, label %170
i32 60, label %176
i32 64, label %182
i32 100, label %188
i32 160, label %196
i32 128, label %203
i32 130, label %235
i32 132, label %241
]
152: ; preds = %144
%153 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%154 = call i32 @strncpy(i8* %153, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 200)
%155 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%156 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %155, i8* %156)
br label %258
158: ; preds = %144
%159 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%160 = call i32 @strncpy(i8* %159, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 200)
%161 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%162 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %161, i8* %162)
br label %258
164: ; preds = %144
%165 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%166 = call i32 @strncpy(i8* %165, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 200)
%167 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%168 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0), i8* %167, i8* %168)
br label %258
170: ; preds = %144
%171 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%172 = call i32 @strncpy(i8* %171, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 200)
%173 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%174 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%175 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0), i8* %173, i8* %174)
br label %258
176: ; preds = %144
%177 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%178 = call i32 @strncpy(i8* %177, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 200)
%179 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%180 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%181 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.13, i64 0, i64 0), i8* %179, i8* %180)
br label %258
182: ; preds = %144
%183 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%184 = call i32 @strncpy(i8* %183, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i32 200)
%185 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%186 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%187 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0), i8* %185, i8* %186)
br label %258
188: ; preds = %144
%189 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%190 = call i32 @strncpy(i8* %189, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 200)
%191 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%192 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%193 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8* %191, i8* %192)
%194 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%195 = call i32* @fopen(i8* %194, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
store i32* %195, i32** %2
br label %258
196: ; preds = %144
%197 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%198 = call i32 @strncpy(i8* %197, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i32 200)
%199 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%200 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%201 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.20, i64 0, i64 0), i8* %199, i8* %200, i8* %201)
br label %258
203: ; preds = %144
%204 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%205 = call i32 @strncpy(i8* %204, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 200)
%206 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
store i8* %206, i8** %11
br label %207
207: ; preds = %221, %203
%208 = load i8*, i8** %11
%209 = load i8, i8* %208
%210 = icmp ne i8 %209, 0
br i1 %210, label %211, label %227
211: ; preds = %207
%212 = load i8*, i8** %11
%213 = load i8, i8* %212
%214 = sext i8 %213 to i32
%215 = icmp eq i32 %214, 58
br i1 %215, label %216, label %217
216: ; preds = %211
br label %221
217: ; preds = %211
%218 = load i8*, i8** %11
%219 = load i8, i8* %218
%220 = sext i8 %219 to i32
br label %221
221: ; preds = %217, %216
%222 = phi i32 [ 32, %216 ], [ %220, %217 ]
%223 = trunc i32 %222 to i8
%224 = load i8*, i8** %11
store i8 %223, i8* %224
%225 = load i8*, i8** %11
%226 = getelementptr inbounds i8, i8* %225, i32 1
store i8* %226, i8** %11
br label %207
227: ; preds = %207
%228 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%229 = getelementptr inbounds [200 x i8], [200 x i8]* %16, i64 0, i64 0
%230 = getelementptr inbounds [200 x i8], [200 x i8]* %17, i64 0, i64 0
%231 = call i32 (i8*, i8*, ...) @sscanf(i8* %228, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i8* %229, i8* %230)
%232 = getelementptr inbounds [200 x i8], [200 x i8]* %16, i64 0, i64 0
%233 = getelementptr inbounds [200 x i8], [200 x i8]* %17, i64 0, i64 0
%234 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), i8* %232, i8* %233)
br label %258
235: ; preds = %144
%236 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%237 = call i32 @strncpy(i8* %236, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0), i32 200)
%238 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%239 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%240 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.25, i64 0, i64 0), i8* %238, i8* %239)
br label %258
241: ; preds = %144
%242 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%243 = call i32 @strncpy(i8* %242, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i32 200)
%244 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%245 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%246 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.25, i64 0, i64 0), i8* %244, i8* %245)
br label %258
247: ; preds = %144
%248 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%249 = load i32, i32* %8
%250 = call i32 @snprintf(i8* %248, i32 200, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i32 %249)
%251 = load i32, i32* %8
%252 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%253 = getelementptr inbounds [200 x i8], [200 x i8]* %15, i64 0, i64 0
%254 = load i32, i32* %9
%255 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%256 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%257 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.28, i64 0, i64 0), i32 %251, i8* %252, i8* %253, i32 %254, i8* %255, i8* %256)
br label %258
258: ; preds = %247, %241, %235, %227, %196, %188, %182, %176, %170, %164, %158, %152
br label %355
259: ; preds = %137
%260 = load i8*, i8** %4
%261 = getelementptr inbounds i8, i8* %260, i64 5
%262 = load i8, i8* %261
%263 = sext i8 %262 to i32
%264 = icmp eq i32 %263, 110
br i1 %264, label %265, label %306
265: ; preds = %259
%266 = load i8*, i8** %4
%267 = getelementptr inbounds i8, i8* %266, i64 6
%268 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%269 = call i32 (i8*, i8*, ...) @sscanf(i8* %267, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.29, i64 0, i64 0), i32* %8, i32* %9, i32* %19, i8* %268)
%270 = load i32, i32* %8
switch i32 %270, label %296 [
i32 162, label %271
i32 68, label %276
]
271: ; preds = %265
%272 = getelementptr inbounds [200 x i8], [200 x i8]* %20, i64 0, i64 0
%273 = call i32 @strncpy(i8* %272, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0), i32 200)
%274 = getelementptr inbounds [200 x i8], [200 x i8]* %20, i64 0, i64 0
%275 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.31, i64 0, i64 0), i8* %274)
br label %305
276: ; preds = %265
%277 = getelementptr inbounds [200 x i8], [200 x i8]* %20, i64 0, i64 0
%278 = call i32 @strncpy(i8* %277, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.32, i64 0, i64 0), i32 200)
%279 = load i32*, i32** %2
%280 = icmp ne i32* %279, null
br i1 %280, label %281, label %295
281: ; preds = %276
%282 = load i32*, i32** %2
%283 = call i32 @rewind(i32* %282)
br label %284
284: ; preds = %288, %281
%285 = load i32, i32* %19
%286 = add nsw i32 %285, -1
store i32 %286, i32* %19
%287 = icmp sgt i32 %285, 0
br i1 %287, label %288, label %292
288: ; preds = %284
%289 = getelementptr inbounds [200 x i8], [200 x i8]* %21, i64 0, i64 0
%290 = load i32*, i32** %2
%291 = call i32* @fgets(i8* %289, i32 200, i32* %290)
br label %284
292: ; preds = %284
%293 = getelementptr inbounds [200 x i8], [200 x i8]* %21, i64 0, i64 0
%294 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0), i8* %293)
br label %295
295: ; preds = %292, %276
br label %305
296: ; preds = %265
%297 = getelementptr inbounds [200 x i8], [200 x i8]* %20, i64 0, i64 0
%298 = load i32, i32* %8
%299 = call i32 @snprintf(i8* %297, i32 200, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i32 %298)
%300 = getelementptr inbounds [200 x i8], [200 x i8]* %20, i64 0, i64 0
%301 = load i32, i32* %9
%302 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%303 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%304 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.34, i64 0, i64 0), i8* %300, i32 %301, i8* %302, i8* %303)
br label %305
305: ; preds = %296, %295, %271
br label %354
306: ; preds = %259
%307 = load i8*, i8** %4
%308 = getelementptr inbounds i8, i8* %307, i64 5
%309 = load i8, i8* %308
%310 = sext i8 %309 to i32
%311 = icmp eq i32 %310, 100
br i1 %311, label %312, label %350
312: ; preds = %306
%313 = load i8*, i8** %4
%314 = getelementptr inbounds i8, i8* %313, i64 6
%315 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%316 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%317 = call i32 (i8*, i8*, ...) @sscanf(i8* %314, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.35, i64 0, i64 0), i32* %8, i32* %9, i8* %315, i8* %316)
%318 = load i32, i32* %8
switch i32 %318, label %341 [
i32 68, label %319
]
319: ; preds = %312
%320 = getelementptr inbounds [200 x i8], [200 x i8]* %22, i64 0, i64 0
%321 = call i32 @strncpy(i8* %320, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.32, i64 0, i64 0), i32 200)
%322 = load i32*, i32** %2
%323 = icmp ne i32* %322, null
br i1 %323, label %324, label %340
324: ; preds = %319
%325 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%326 = call i64 @strtol(i8* %325, i32* null, i32 10)
store i64 %326, i64* %24
%327 = load i32*, i32** %2
%328 = call i32 @rewind(i32* %327)
br label %329
329: ; preds = %333, %324
%330 = load i64, i64* %24
%331 = add nsw i64 %330, -1
store i64 %331, i64* %24
%332 = icmp sgt i64 %330, 0
br i1 %332, label %333, label %337
333: ; preds = %329
%334 = getelementptr inbounds [200 x i8], [200 x i8]* %23, i64 0, i64 0
%335 = load i32*, i32** %2
%336 = call i32* @fgets(i8* %334, i32 200, i32* %335)
br label %329
337: ; preds = %329
%338 = getelementptr inbounds [200 x i8], [200 x i8]* %23, i64 0, i64 0
%339 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0), i8* %338)
br label %340
340: ; preds = %337, %319
br label %349
341: ; preds = %312
%342 = getelementptr inbounds [200 x i8], [200 x i8]* %22, i64 0, i64 0
%343 = load i32, i32* %8
%344 = call i32 @snprintf(i8* %342, i32 200, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i32 %343)
%345 = getelementptr inbounds [200 x i8], [200 x i8]* %22, i64 0, i64 0
%346 = load i32, i32* %9
%347 = getelementptr inbounds [200 x i8], [200 x i8]* %5, i64 0, i64 0
%348 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.36, i64 0, i64 0), i8* %345, i32 %346, i8* %347)
br label %349
349: ; preds = %341, %340
br label %353
350: ; preds = %306
%351 = load i8*, i8** %4
%352 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.37, i64 0, i64 0), i8* %351)
br label %353
353: ; preds = %350, %349
br label %354
354: ; preds = %353, %305
br label %355
355: ; preds = %354, %258
br label %369
356: ; preds = %35
%357 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%358 = call i32 @strnlen(i8* %357, i32 200)
%359 = icmp sgt i32 %358, 1
br i1 %359, label %360, label %368
360: ; preds = %356
%361 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%362 = load i8, i8* %361
%363 = sext i8 %362 to i32
%364 = icmp ne i32 %363, 12
br i1 %364, label %365, label %368
365: ; preds = %360
%366 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%367 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.38, i64 0, i64 0), i8* %366)
br label %368
368: ; preds = %365, %360, %356
br label %369
369: ; preds = %368, %355
br label %26
370: ; preds = %26
%371 = load i32*, i32** %2
%372 = icmp ne i32* %371, null
br i1 %372, label %373, label %376
373: ; preds = %370
%374 = load i32*, i32** %2
%375 = call i32 @fclose(i32* %374)
br label %376
376: ; preds = %373, %370
%377 = load i32, i32* %1
ret i32 %377
}

LLVM IR (-O2):
@stdin = global i32* null
@.str.1 = [7 x i8] c"\09.stab\00"
@.str.2 = [7 x i8] c" .stab\00"
@.str.3 = [15 x i8] c"%s %d %d %s %s\00"
@.str.4 = [7 x i8] c"N_GSYM\00"
@.str.5 = [30 x i8] c"; %s Global symbol called %s\0A\00"
@.str.6 = [6 x i8] c"N_FUN\00"
@.str.7 = [25 x i8] c"; %s function called %s\0A\00"
@.str.8 = [8 x i8] c"N_STSYM\00"
@.str.9 = [61 x i8] c"; %s Data section file-scope static initialized variable %s\0A\00"
@.str.10 = [8 x i8] c"N_LCSYM\00"
@.str.11 = [63 x i8] c"; %s BSS section file-scope static un-initialized variable %s\0A\00"
@.str.12 = [6 x i8] c"N_OPT\00"
@.str.13 = [67 x i8] c"; %s The STAB information was generated because the source was %s\0A\00"
@.str.14 = [7 x i8] c"N_RSYM\00"
@.str.15 = [27 x i8] c"; %s Register variable %s\0A\00"
@.str.16 = [5 x i8] c"N_SO\00"
@.str.17 = [21 x i8] c"; %s source file %s\0A\00"
@.str.18 = [2 x i8] c"r\00"
@.str.19 = [7 x i8] c"N_PSYM\00"
@.str.20 = [44 x i8] c"; %s stack parameter %s at stack offset %s\0A\00"
@.str.21 = [7 x i8] c"N_LSYM\00"
@.str.22 = [6 x i8] c"%s %s\00"
@.str.23 = [23 x i8] c"; Local symbol %s: %s\0A\00"
@.str.24 = [8 x i8] c"N_BINCL\00"
@.str.25 = [36 x i8] c"; %s beginning of include file: %s\0A\00"
@.str.26 = [6 x i8] c"N_SOL\00"
@.str.27 = [5 x i8] c"0x%x\00"
@.str.28 = [49 x i8] c"; Unknown S record type %d |%s| %s %d |%s| |%s|\0A\00"
@.str.29 = [12 x i8] c"%d %d %d %s\00"
@.str.30 = [8 x i8] c"N_EINCL\00"
@.str.31 = [28 x i8] c"; %s End of include file: \0A\00"
@.str.32 = [8 x i8] c"N_SLINE\00"
@.str.33 = [5 x i8] c"; %s\00"
@.str.34 = [37 x i8] c"; Unknown N record type %s %d %s %s\0A\00"
@.str.35 = [12 x i8] c"%d %d %s %s\00"
@.str.36 = [36 x i8] c"; Unknown D record type %s %d |%s|\0A\00"
@.str.37 = [30 x i8] c"; ?: Unknown record type: %s\0A\00"
@.str.38 = [3 x i8] c"%s\00"
@str = [49 x i8] c"; Mixed by STABBER, decoder of debug information\00"
define i32 @main() {
%1 = alloca [200 x i8]
%2 = alloca [200 x i8]
%3 = alloca [200 x i8]
%4 = alloca [200 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = alloca [200 x i8]
%8 = alloca [200 x i8]
%9 = alloca [200 x i8]
%10 = alloca i32
%11 = alloca [200 x i8]
%12 = alloca [200 x i8]
%13 = alloca [200 x i8]
%14 = alloca [200 x i8]
%15 = getelementptr inbounds [200 x i8], [200 x i8]* %1, i64 0, i64 0
%16 = getelementptr inbounds [200 x i8], [200 x i8]* %2, i64 0, i64 0
%17 = getelementptr inbounds [200 x i8], [200 x i8]* %3, i64 0, i64 0
%18 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%19 = bitcast i32* %5 to i8*
%20 = bitcast i32* %6 to i8*
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str, i64 0, i64 0))
%22 = load i32*, i32** @stdin
%23 = call i32* @fgets(i8* %15, i32 200, i32* %22)
%24 = icmp eq i32* %23, null
br i1 %24, label %210, label %25
25: ; preds = %0
%26 = getelementptr inbounds [200 x i8], [200 x i8]* %13, i64 0, i64 0
%27 = getelementptr inbounds [200 x i8], [200 x i8]* %14, i64 0, i64 0
%28 = bitcast i32* %10 to i8*
%29 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%30 = getelementptr inbounds [200 x i8], [200 x i8]* %12, i64 0, i64 0
%31 = getelementptr inbounds [200 x i8], [200 x i8]* %7, i64 0, i64 0
%32 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%33 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
br label %34
34: ; preds = %25, %201
%35 = phi i32* [ null, %25 ], [ %202, %201 ]
%36 = call i8* @strstr(i8* %15, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%37 = icmp eq i8* %36, null
br i1 %37, label %38, label %41
38: ; preds = %34
%39 = call i8* @strstr(i8* %15, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%40 = icmp eq i8* %39, null
br i1 %40, label %193, label %41
41: ; preds = %38, %34
%42 = phi i8* [ %36, %34 ], [ %39, %38 ]
%43 = getelementptr inbounds i8, i8* %42, i64 1
%44 = getelementptr inbounds i8, i8* %42, i64 7
br label %45
45: ; preds = %41, %79
%46 = phi i64 [ 6, %41 ], [ %83, %79 ]
%47 = phi i8 [ 32, %41 ], [ %82, %79 ]
%48 = phi i8* [ %44, %41 ], [ %81, %79 ]
%49 = phi i32 [ 0, %41 ], [ %80, %79 ]
%50 = getelementptr inbounds i8, i8* %43, i64 %46
%51 = load i8, i8* %50
switch i8 %51, label %52 [
i8 13, label %85
i8 10, label %85
]
52: ; preds = %45
%53 = sext i8 %51 to i32
switch i32 %53, label %76 [
i32 34, label %54
i32 32, label %60
i32 44, label %68
]
54: ; preds = %52
store i8 32, i8* %48
%55 = icmp eq i32 %49, 0
%56 = zext i1 %55 to i32
%57 = icmp ne i8 %47, 32
%58 = zext i1 %57 to i64
%59 = getelementptr inbounds i8, i8* %48, i64 %58
br label %79
60: ; preds = %52
%61 = icmp eq i32 %49, 0
br i1 %61, label %64, label %62
62: ; preds = %60
store i8 43, i8* %48
%63 = getelementptr inbounds i8, i8* %48, i64 1
br label %79
64: ; preds = %60
store i8 32, i8* %48
%65 = icmp ne i8 %47, 32
%66 = zext i1 %65 to i64
%67 = getelementptr inbounds i8, i8* %48, i64 %66
br label %79
68: ; preds = %52
%69 = icmp eq i32 %49, 0
br i1 %69, label %72, label %70
70: ; preds = %68
store i8 124, i8* %48
%71 = getelementptr inbounds i8, i8* %48, i64 1
br label %79
72: ; preds = %68
store i8 32, i8* %48
%73 = icmp ne i8 %47, 32
%74 = zext i1 %73 to i64
%75 = getelementptr inbounds i8, i8* %48, i64 %74
br label %79
76: ; preds = %52
%77 = getelementptr inbounds i8, i8* %48, i64 1
store i8 %51, i8* %48
%78 = load i8, i8* %50
br label %79
79: ; preds = %54, %62, %64, %70, %72, %76
%80 = phi i32 [ %49, %76 ], [ 1, %70 ], [ 0, %72 ], [ 1, %62 ], [ 0, %64 ], [ %56, %54 ]
%81 = phi i8* [ %77, %76 ], [ %71, %70 ], [ %75, %72 ], [ %63, %62 ], [ %67, %64 ], [ %59, %54 ]
%82 = phi i8 [ %78, %76 ], [ %47, %70 ], [ 32, %72 ], [ %47, %62 ], [ 32, %64 ], [ 32, %54 ]
%83 = add nuw nsw i64 %46, 1
%84 = icmp eq i64 %83, 200
br i1 %84, label %85, label %45
85: ; preds = %45, %45, %79
%86 = phi i8* [ %48, %45 ], [ %48, %45 ], [ %81, %79 ]
store i8 0, i8* %86
%87 = getelementptr inbounds i8, i8* %42, i64 6
%88 = load i8, i8* %87
switch i8 %88, label %191 [
i8 115, label %89
i8 110, label %142
i8 100, label %168
]
89: ; preds = %85
%90 = call i32 (i8*, i8*, ...) @sscanf(i8* %44, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i8* %17, i32* %5, i32* %6, i8* %16, i8* %18)
%91 = load i32, i32* %5
switch i32 %91, label %135 [
i32 32, label %92
i32 36, label %95
i32 38, label %98
i32 40, label %101
i32 60, label %104
i32 64, label %107
i32 100, label %110
i32 160, label %114
i32 128, label %117
i32 130, label %129
i32 132, label %132
]
92: ; preds = %89
%93 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 200)
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %31, i8* %17)
br label %140
95: ; preds = %89
%96 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 200)
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i8* %31, i8* %17)
br label %140
98: ; preds = %89
%99 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 200)
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0), i8* %31, i8* %17)
br label %140
101: ; preds = %89
%102 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 200)
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0), i8* %31, i8* %17)
br label %140
104: ; preds = %89
%105 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i32 200)
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.13, i64 0, i64 0), i8* %31, i8* %17)
br label %140
107: ; preds = %89
%108 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i32 200)
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.15, i64 0, i64 0), i8* %31, i8* %17)
br label %140
110: ; preds = %89
%111 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 200)
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), i8* %31, i8* %17)
%113 = call i32* @fopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
br label %140
114: ; preds = %89
%115 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i32 200)
%116 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.20, i64 0, i64 0), i8* %31, i8* %17, i8* %18)
br label %140
117: ; preds = %89
%118 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 200)
br label %119
119: ; preds = %123, %117
%120 = phi i8* [ %17, %117 ], [ %125, %123 ]
%121 = load i8, i8* %120
switch i8 %121, label %122 [
i8 0, label %126
i8 58, label %123
]
122: ; preds = %119
br label %123
123: ; preds = %119, %122
%124 = phi i8 [ %121, %122 ], [ 32, %119 ]
store i8 %124, i8* %120
%125 = getelementptr inbounds i8, i8* %120, i64 1
br label %119
126: ; preds = %119
%127 = call i32 (i8*, i8*, ...) @sscanf(i8* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i8* %32, i8* %33)
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.23, i64 0, i64 0), i8* %32, i8* %33)
br label %140
129: ; preds = %89
%130 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.24, i64 0, i64 0), i32 200)
%131 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.25, i64 0, i64 0), i8* %31, i8* %17)
br label %140
132: ; preds = %89
%133 = call i32 @strncpy(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.26, i64 0, i64 0), i32 200)
%134 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.25, i64 0, i64 0), i8* %31, i8* %17)
br label %140
135: ; preds = %89
%136 = call i32 @snprintf(i8* %31, i32 200, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i32 %91)
%137 = load i32, i32* %5
%138 = load i32, i32* %6
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.28, i64 0, i64 0), i32 %137, i8* %17, i8* %31, i32 %138, i8* %16, i8* %18)
br label %140
140: ; preds = %135, %132, %129, %126, %114, %110, %107, %104, %101, %98, %95, %92
%141 = phi i32* [ %35, %135 ], [ %35, %132 ], [ %35, %129 ], [ %35, %126 ], [ %35, %114 ], [ %113, %110 ], [ %35, %107 ], [ %35, %104 ], [ %35, %101 ], [ %35, %98 ], [ %35, %95 ], [ %35, %92 ]
br label %201
142: ; preds = %85
%143 = call i32 (i8*, i8*, ...) @sscanf(i8* %44, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.29, i64 0, i64 0), i32* %5, i32* %6, i32* %10, i8* %18)
%144 = load i32, i32* %5
switch i32 %144, label %163 [
i32 162, label %145
i32 68, label %148
]
145: ; preds = %142
%146 = call i32 @strncpy(i8* %29, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.30, i64 0, i64 0), i32 200)
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.31, i64 0, i64 0), i8* %29)
br label %167
148: ; preds = %142
%149 = call i32 @strncpy(i8* %29, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.32, i64 0, i64 0), i32 200)
%150 = icmp eq i32* %35, null
br i1 %150, label %167, label %151
151: ; preds = %148
%152 = call i32 @rewind(i32* %35)
%153 = load i32, i32* %10
%154 = add nsw i32 %153, -1
store i32 %154, i32* %10
%155 = icmp sgt i32 %153, 0
br i1 %155, label %156, label %161
156: ; preds = %151, %156
%157 = call i32* @fgets(i8* %30, i32 200, i32* %35)
%158 = load i32, i32* %10
%159 = add nsw i32 %158, -1
store i32 %159, i32* %10
%160 = icmp sgt i32 %158, 0
br i1 %160, label %156, label %161
161: ; preds = %156, %151
%162 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0), i8* %30)
br label %167
163: ; preds = %142
%164 = call i32 @snprintf(i8* %29, i32 200, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i32 %144)
%165 = load i32, i32* %6
%166 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.34, i64 0, i64 0), i8* %29, i32 %165, i8* %16, i8* %18)
br label %167
167: ; preds = %148, %161, %163, %145
br label %201
168: ; preds = %85
%169 = call i32 (i8*, i8*, ...) @sscanf(i8* %44, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.35, i64 0, i64 0), i32* %5, i32* %6, i8* %16, i8* %18)
%170 = load i32, i32* %5
%171 = icmp eq i32 %170, 68
br i1 %171, label %172, label %186
172: ; preds = %168
%173 = call i32 @strncpy(i8* %26, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.32, i64 0, i64 0), i32 200)
%174 = icmp eq i32* %35, null
br i1 %174, label %190, label %175
175: ; preds = %172
%176 = call i64 @strtol(i8* nocapture %16, i32* null, i32 10)
%177 = call i32 @rewind(i32* %35)
%178 = icmp sgt i64 %176, 0
br i1 %178, label %179, label %184
179: ; preds = %175, %179
%180 = phi i64 [ %181, %179 ], [ %176, %175 ]
%181 = add nsw i64 %180, -1
%182 = call i32* @fgets(i8* %27, i32 200, i32* %35)
%183 = icmp ugt i64 %180, 1
br i1 %183, label %179, label %184
184: ; preds = %179, %175
%185 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.33, i64 0, i64 0), i8* %27)
br label %190
186: ; preds = %168
%187 = call i32 @snprintf(i8* %26, i32 200, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i32 %170)
%188 = load i32, i32* %6
%189 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.36, i64 0, i64 0), i8* %26, i32 %188, i8* %16)
br label %190
190: ; preds = %172, %184, %186
br label %201
191: ; preds = %85
%192 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.37, i64 0, i64 0), i8* %43)
br label %201
193: ; preds = %38
%194 = call i32 @strnlen(i8* %15, i32 200)
%195 = icmp sgt i32 %194, 1
%196 = load i8, i8* %15
%197 = icmp ne i8 %196, 12
%198 = select i1 %195, i1 %197, i1 false
br i1 %198, label %199, label %201
199: ; preds = %193
%200 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.38, i64 0, i64 0), i8* %15)
br label %201
201: ; preds = %140, %190, %191, %167, %193, %199
%202 = phi i32* [ %35, %199 ], [ %35, %193 ], [ %141, %140 ], [ %35, %167 ], [ %35, %190 ], [ %35, %191 ]
%203 = load i32*, i32** @stdin
%204 = call i32* @fgets(i8* %15, i32 200, i32* %203)
%205 = icmp eq i32* %204, null
br i1 %205, label %206, label %34
206: ; preds = %201
%207 = icmp eq i32* %202, null
br i1 %207, label %210, label %208
208: ; preds = %206
%209 = call i32 @fclose(i32* %202)
br label %210
210: ; preds = %0, %208, %206
ret i32 0
}