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

/* Variables and functions */
int /*<<< orphan*/ error(char *, ...);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int getchar();
scalar_t__ isalnum(int);
scalar_t__ isalpha(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ stdout;
scalar_t__ strchr(char *, char);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int ac, char **av) {
  int in_comm1 = 0;
  int in_comm2 = 0;
  int in_str1 = 0;
  int in_str2 = 0;
  int in_id = 0;
  int ch0, ch1, ch2;
  int wr, rd;
  char buf[128];
  int slen;
  int lev = 0;
  char this[128];
  int lin = 1;
  char *p;
  int a;
  this[0] = 0;
  rd = 3;
  wr = 0;
  while (1) {
    while (wr-- > 0) {
      putchar(ch0);
      {
        if (ch0 == '\n')
          lin++;
        ch0 = ch1;
        ch1 = ch2;
        ch2 = getchar();
      };
    }
    while (rd-- > 0) {
      {
        if (ch0 == '\n')
          lin++;
        ch0 = ch1;
        ch1 = ch2;
        ch2 = getchar();
      };
    }
    if (ch0 < 0)
      break;
    if (in_comm1) {
      if (ch0 == '*' && ch1 == '/') {
        wr = 2;
        in_comm1 = 0;
        continue;
      }
      wr = 1;
      continue;
    }
    if (in_comm2) {
      if (ch0 == '/' && ch1 == '*')
        ch1 = '+';
      if (ch0 == '*' && ch1 == '/')
        ch0 = '+';
      if (ch0 == '\n') {
        putchar(' ');
        putchar('*');
        putchar('/');
        wr = 1;
        in_comm2 = 0;
        continue;
      }
      wr = 1;
      continue;
    }
    if (in_str1) {
      if (ch0 == '\\') {
        wr = 2;
        continue;
      }
      if (ch0 == '"') {
        wr = 1;
        in_str1 = 0;
        continue;
      }
      wr = 1;
      continue;
    }
    if (in_str2) {
      if (ch0 == '\'') {
        rd = 1;
        in_str2 = 0;
        buf[slen] = 0;
        if (slen <= 1 || strchr(buf, '\\')) {
          putchar('\'');
          fputs(buf, stdout);
          putchar('\'');
          continue;
        }
        for (a = 0, p = buf; *p; p++)
          a = (a << 8) | (*p & 255);
        printf("0x%08X", a);
        continue;
      }
      if (slen + 3 > sizeof(buf))
        error("Bad '' string, too long, at line %d: '%s...", lin, buf);
      if (ch0 == '\\') {
        buf[slen++] = ch0;
        buf[slen++] = ch1;
        rd = 2;
        continue;
      }
      buf[slen++] = ch0;
      rd = 1;
      continue;
    }
    if (in_id) {
      if (isalnum(ch0) || ch0 == '_' || ch0 == '$') {
        if (slen + 2 == sizeof(buf))
          error("Identifier too long, line %d: %s", lin, buf);
        buf[slen++] = ch0;
        buf[slen] = 0;
        rd = 1;
        continue;
      }
      in_id = 0;
      if (buf[0] == '$') {
        if (!this[0])
          error("'this' value ($) used without being set, line %d: %s", lin,
                buf);
        fputs(this, stdout);
        if (slen > 1)
          fputs("->", stdout);
        fputs(buf + 1, stdout);
      } else if (buf[slen - 1] == '$') {
        if (lev != 1)
          error("Not valid to set 'this' ($) value above or below first (){} "
                "nesting level, line %d",
                lin);
        if (this[0])
          error("Not valid to redefine 'this' ($) value without a '}' first, "
                "line %d",
                lin);
        buf[--slen] = 0;
        strcpy(this, buf);
        fputs(buf, stdout);
      } else {
        fputs(buf, stdout);
      }
    }
    if (ch0 == '/' && ch1 == '*') {
      wr = 2;
      in_comm1 = 1;
      continue;
    }
    if (ch0 == '/' && ch1 == '/') {
      putchar('/');
      putchar('*');
      rd = 2;
      in_comm2 = 1;
      continue;
    }
    if (ch0 == '"') {
      wr = 1;
      in_str1 = 1;
      continue;
    }
    if (ch0 == '\'') {
      rd = 1;
      slen = 0;
      in_str2 = 1;
      continue;
    }
    if (isalpha(ch0) || ch0 == '_' || ch0 == '$') {
      buf[0] = ch0;
      buf[1] = 0;
      slen = 1;
      rd = 1;
      in_id = 1;
      continue;
    }
    switch (ch0) {
    case '(':
      lev++;
      break;
    case ')':
      lev--;
      break;
    case '{':
      lev++;
      break;
    case '}':
      lev--;
      if (lev == 0)
        this[0] = 0;
      break;
    }
    wr = 1;
    continue;
  }
  if (in_comm1)
    error("Unterminated /* */ comment at end of file");
  if (in_comm2) {
    printf(" */");
  }
  if (in_str1)
    error("Unterminated \"\" string at end of file");
  if (in_str2)
    error("Unterminated '' string at end of file");
  if (lev > 0)
    error("Unclosed (){} parentheses/braces at end of file");
  if (lev < 0)
    error("Too many closed (){} parentheses/braces at end of file");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x170,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0xc8(%rbp)
movl   $0x1,-0x154(%rbp)
movb   $0x0,-0x150(%rbp)
movl   $0x3,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
jmp    11fa <main+0x6a>
mov    -0x34(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x34(%rbp)
cmp    $0x0,%eax
jle    124d <main+0xbd>
mov    -0x28(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
cmpl   $0xa,-0x28(%rbp)
jne    1232 <main+0xa2>
mov    -0x154(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x154(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    $0x0,%al
call   1090 <getchar@plt>
mov    %eax,-0x30(%rbp)
jmp    11fa <main+0x6a>
jmp    1252 <main+0xc2>
mov    -0x38(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x38(%rbp)
cmp    $0x0,%eax
jle    129a <main+0x10a>
cmpl   $0xa,-0x28(%rbp)
jne    127f <main+0xef>
mov    -0x154(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x154(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    $0x0,%al
call   1090 <getchar@plt>
mov    %eax,-0x30(%rbp)
jmp    1252 <main+0xc2>
cmpl   $0x0,-0x28(%rbp)
jge    12a9 <main+0x119>
jmp    1916 <main+0x786>
cmpl   $0x0,-0x14(%rbp)
je     12e6 <main+0x156>
cmpl   $0x2a,-0x28(%rbp)
jne    12da <main+0x14a>
cmpl   $0x2f,-0x2c(%rbp)
jne    12da <main+0x14a>
movl   $0x2,-0x34(%rbp)
movl   $0x0,-0x14(%rbp)
jmp    11f5 <main+0x65>
movl   $0x1,-0x34(%rbp)
jmp    11f5 <main+0x65>
cmpl   $0x0,-0x18(%rbp)
je     136d <main+0x1dd>
cmpl   $0x2f,-0x28(%rbp)
jne    130b <main+0x17b>
cmpl   $0x2a,-0x2c(%rbp)
jne    130b <main+0x17b>
movl   $0x2b,-0x2c(%rbp)
cmpl   $0x2a,-0x28(%rbp)
jne    1326 <main+0x196>
cmpl   $0x2f,-0x2c(%rbp)
jne    1326 <main+0x196>
movl   $0x2b,-0x28(%rbp)
cmpl   $0xa,-0x28(%rbp)
jne    1361 <main+0x1d1>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2f,%edi
call   1030 <putchar@plt>
movl   $0x1,-0x34(%rbp)
movl   $0x0,-0x18(%rbp)
jmp    11f5 <main+0x65>
movl   $0x1,-0x34(%rbp)
jmp    11f5 <main+0x65>
cmpl   $0x0,-0x1c(%rbp)
je     13b6 <main+0x226>
cmpl   $0x5c,-0x28(%rbp)
jne    138d <main+0x1fd>
movl   $0x2,-0x34(%rbp)
jmp    11f5 <main+0x65>
cmpl   $0x22,-0x28(%rbp)
jne    13aa <main+0x21a>
movl   $0x1,-0x34(%rbp)
movl   $0x0,-0x1c(%rbp)
jmp    11f5 <main+0x65>
movl   $0x1,-0x34(%rbp)
jmp    11f5 <main+0x65>
cmpl   $0x0,-0x20(%rbp)
je     1567 <main+0x3d7>
cmpl   $0x27,-0x28(%rbp)
jne    14b6 <main+0x326>
movl   $0x1,-0x38(%rbp)
movl   $0x0,-0x20(%rbp)
movslq -0xc4(%rbp),%rax
movb   $0x0,-0xc0(%rbp,%rax,1)
cmpl   $0x1,-0xc4(%rbp)
jle    140f <main+0x27f>
lea    -0xc0(%rbp),%rdi
mov    $0x5c,%esi
call   1050 <strchr@plt>
cmp    $0x0,%rax
je     143d <main+0x2ad>
mov    $0x27,%edi
call   1030 <putchar@plt>
lea    -0xc0(%rbp),%rdi
mov    0x2bb9(%rip),%rax
mov    (%rax),%esi
call   1080 <fputs@plt>
mov    $0x27,%edi
call   1030 <putchar@plt>
jmp    11f5 <main+0x65>
movl   $0x0,-0x164(%rbp)
lea    -0xc0(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    -0x160(%rbp),%rax
cmpb   $0x0,(%rax)
je     149d <main+0x30d>
mov    -0x164(%rbp),%eax
shl    $0x8,%eax
mov    -0x160(%rbp),%rcx
movsbl (%rcx),%ecx
and    $0xff,%ecx
or     %ecx,%eax
mov    %eax,-0x164(%rbp)
mov    -0x160(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x160(%rbp)
jmp    1455 <main+0x2c5>
mov    -0x164(%rbp),%esi
lea    0xb56(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    11f5 <main+0x65>
mov    -0xc4(%rbp),%eax
add    $0x3,%eax
cltq
cmp    $0x80,%rax
jbe    14e8 <main+0x358>
mov    -0x154(%rbp),%esi
lea    -0xc0(%rbp),%rdx
lea    0xb26(%rip),%rdi
mov    $0x0,%al
call   10b0 <error@plt>
cmpl   $0x5c,-0x28(%rbp)
jne    153c <main+0x3ac>
mov    -0x28(%rbp),%eax
mov    %al,%cl
mov    -0xc4(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0xc4(%rbp)
cltq
mov    %cl,-0xc0(%rbp,%rax,1)
mov    -0x2c(%rbp),%eax
mov    %al,%cl
mov    -0xc4(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0xc4(%rbp)
cltq
mov    %cl,-0xc0(%rbp,%rax,1)
movl   $0x2,-0x38(%rbp)
jmp    11f5 <main+0x65>
mov    -0x28(%rbp),%eax
mov    %al,%cl
mov    -0xc4(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0xc4(%rbp)
cltq
mov    %cl,-0xc0(%rbp,%rax,1)
movl   $0x1,-0x38(%rbp)
jmp    11f5 <main+0x65>
cmpl   $0x0,-0x24(%rbp)
je     175a <main+0x5ca>
mov    -0x28(%rbp),%edi
call   1070 <isalnum@plt>
cmp    $0x0,%rax
jne    1597 <main+0x407>
cmpl   $0x5f,-0x28(%rbp)
je     1597 <main+0x407>
cmpl   $0x24,-0x28(%rbp)
jne    1603 <main+0x473>
mov    -0xc4(%rbp),%eax
add    $0x2,%eax
cltq
cmp    $0x80,%rax
jne    15c9 <main+0x439>
mov    -0x154(%rbp),%esi
lea    -0xc0(%rbp),%rdx
lea    0xa71(%rip),%rdi
mov    $0x0,%al
call   10b0 <error@plt>
mov    -0x28(%rbp),%eax
mov    %al,%cl
mov    -0xc4(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0xc4(%rbp)
cltq
mov    %cl,-0xc0(%rbp,%rax,1)
movslq -0xc4(%rbp),%rax
movb   $0x0,-0xc0(%rbp,%rax,1)
movl   $0x1,-0x38(%rbp)
jmp    11f5 <main+0x65>
movl   $0x0,-0x24(%rbp)
movsbl -0xc0(%rbp),%eax
cmp    $0x24,%eax
jne    1697 <main+0x507>
cmpb   $0x0,-0x150(%rbp)
jne    1642 <main+0x4b2>
mov    -0x154(%rbp),%esi
lea    -0xc0(%rbp),%rdx
lea    0xa19(%rip),%rdi
mov    $0x0,%al
call   10b0 <error@plt>
lea    -0x150(%rbp),%rdi
mov    0x2990(%rip),%rax
mov    (%rax),%esi
call   1080 <fputs@plt>
cmpl   $0x1,-0xc4(%rbp)
jle    1679 <main+0x4e9>
mov    0x2975(%rip),%rax
mov    (%rax),%esi
lea    0xa15(%rip),%rdi
call   1080 <fputs@plt>
lea    -0xc0(%rbp),%rdi
add    $0x1,%rdi
mov    0x2955(%rip),%rax
mov    (%rax),%esi
call   1080 <fputs@plt>
jmp    1755 <main+0x5c5>
mov    -0xc4(%rbp),%eax
sub    $0x1,%eax
cltq
movsbl -0xc0(%rbp,%rax,1),%eax
ff
cmp    $0x24,%eax
jne    173b <main+0x5ab>
cmpl   $0x1,-0xc8(%rbp)
je     16d4 <main+0x544>
mov    -0x154(%rbp),%esi
lea    0x9bf(%rip),%rdi
mov    $0x0,%al
call   10b0 <error@plt>
cmpb   $0x0,-0x150(%rbp)
je     16f5 <main+0x565>
mov    -0x154(%rbp),%esi
lea    0x9f1(%rip),%rdi
mov    $0x0,%al
call   10b0 <error@plt>
mov    -0xc4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc4(%rbp)
cltq
movb   $0x0,-0xc0(%rbp,%rax,1)
lea    -0x150(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0xc0(%rbp),%rdi
mov    0x28b1(%rip),%rax
mov    (%rax),%esi
call   1080 <fputs@plt>
jmp    1750 <main+0x5c0>
lea    -0xc0(%rbp),%rdi
mov    0x2897(%rip),%rax
mov    (%rax),%esi
call   1080 <fputs@plt>
jmp    1755 <main+0x5c5>
jmp    175a <main+0x5ca>
cmpl   $0x2f,-0x28(%rbp)
jne    1781 <main+0x5f1>
cmpl   $0x2a,-0x2c(%rbp)
jne    1781 <main+0x5f1>
movl   $0x2,-0x34(%rbp)
movl   $0x1,-0x14(%rbp)
jmp    11f5 <main+0x65>
cmpl   $0x2f,-0x28(%rbp)
jne    17bc <main+0x62c>
cmpl   $0x2f,-0x2c(%rbp)
jne    17bc <main+0x62c>
mov    $0x2f,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
movl   $0x2,-0x38(%rbp)
movl   $0x1,-0x18(%rbp)
jmp    11f5 <main+0x65>
cmpl   $0x22,-0x28(%rbp)
jne    17d9 <main+0x649>
movl   $0x1,-0x34(%rbp)
movl   $0x1,-0x1c(%rbp)
jmp    11f5 <main+0x65>
cmpl   $0x27,-0x28(%rbp)
jne    1800 <main+0x670>
movl   $0x1,-0x38(%rbp)
movl   $0x0,-0xc4(%rbp)
movl   $0x1,-0x20(%rbp)
jmp    11f5 <main+0x65>
mov    -0x28(%rbp),%edi
call   10a0 <isalpha@plt>
cmp    $0x0,%rax
jne    1826 <main+0x696>
cmpl   $0x5f,-0x28(%rbp)
je     1826 <main+0x696>
cmpl   $0x24,-0x28(%rbp)
jne    1853 <main+0x6c3>
mov    -0x28(%rbp),%eax
mov    %al,-0xc0(%rbp)
movb   $0x0,-0xbf(%rbp)
movl   $0x1,-0xc4(%rbp)
movl   $0x1,-0x38(%rbp)
movl   $0x1,-0x24(%rbp)
jmp    11f5 <main+0x65>
mov    -0x28(%rbp),%eax
mov    %eax,-0x168(%rbp)
sub    $0x28,%eax
je     18a6 <main+0x716>
jmp    186a <main+0x6da>
mov    -0x168(%rbp),%eax
sub    $0x29,%eax
je     18ba <main+0x72a>
jmp    187e <main+0x6ee>
mov    -0x168(%rbp),%eax
sub    $0x7b,%eax
je     18ce <main+0x73e>
jmp    1892 <main+0x702>
mov    -0x168(%rbp),%eax
sub    $0x7d,%eax
je     18e2 <main+0x752>
jmp    190a <main+0x77a>
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    190a <main+0x77a>
mov    -0xc8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc8(%rbp)
jmp    190a <main+0x77a>
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    190a <main+0x77a>
mov    -0xc8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc8(%rbp)
cmpl   $0x0,-0xc8(%rbp)
jne    1905 <main+0x775>
movb   $0x0,-0x150(%rbp)
jmp    190a <main+0x77a>
movl   $0x1,-0x34(%rbp)
jmp    11f5 <main+0x65>
cmpl   $0x0,-0x14(%rbp)
je     192e <main+0x79e>
lea    0x7fc(%rip),%rdi
mov    $0x0,%al
call   10b0 <error@plt>
cmpl   $0x0,-0x18(%rbp)
je     1946 <main+0x7b6>
lea    0x80e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0x0,-0x1c(%rbp)
je     195e <main+0x7ce>
lea    0x7fa(%rip),%rdi
mov    $0x0,%al
call   10b0 <error@plt>
cmpl   $0x0,-0x20(%rbp)
je     1976 <main+0x7e6>
lea    0x808(%rip),%rdi
mov    $0x0,%al
call   10b0 <error@plt>
cmpl   $0x0,-0xc8(%rbp)
jle    1991 <main+0x801>
lea    0x813(%rip),%rdi
mov    $0x0,%al
call   10b0 <error@plt>
cmpl   $0x0,-0xc8(%rbp)
jge    19ac <main+0x81c>
lea    0x828(%rip),%rdi
mov    $0x0,%al
call   10b0 <error@plt>
xor    %eax,%eax
add    $0x170,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
movb   $0x0,0xb0(%rsp)
mov    $0x1,%r13d
movl   $0x3,0x18(%rsp)
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x14(%rsp)
movl   $0x0,0x10(%rsp)
xor    %r15d,%r15d
mov    %rax,0x20(%rsp)
movl   $0x0,0x1c(%rsp)
jmp    1221 <main+0x91>
nop
mov    %ebp,%eax
xor    $0x2a,%eax
mov    %r12d,%ecx
xor    $0x2f,%ecx
xor    %r15d,%r15d
or     %eax,%ecx
mov    $0x2a,%eax
cmove  %eax,%ebp
sete   %r15b
mov    $0x2f,%eax
cmove  %eax,%r12d
mov    %r15d,0x4(%rsp)
add    $0x1,%r15d
mov    %ebp,%r14d
test   %r15d,%r15d
jle    1270 <main+0xe0>
cs nopw 0x0(%rax,%rax,1)
mov    %r14d,%ebp
mov    %r12d,%r14d
mov    %esi,%r12d
movsbl %bpl,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
cmp    $0xa,%ebp
sete   %al
add    %eax,%r13d
xor    %eax,%eax
call   1090 <getchar@plt>
mov    %eax,%esi
add    $0xffffffff,%r15d
jne    1230 <main+0xa0>
mov    $0xffffffff,%r15d
jmp    1274 <main+0xe4>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0xffffffff,%r15d
mov    0x18(%rsp),%ebx
test   %ebx,%ebx
jle    12b0 <main+0x120>
mov    %r14d,%ebp
nop
xor    %eax,%eax
cmp    $0xa,%ebp
mov    %r12d,%ebp
mov    %esi,%r12d
sete   %al
add    %eax,%r13d
xor    %eax,%eax
call   1090 <getchar@plt>
mov    %eax,%esi
add    $0xffffffff,%ebx
jne    1280 <main+0xf0>
mov    $0xffffffff,%ebx
test   %ebp,%ebp
jns    12be <main+0x12e>
jmp    19fd <main+0x86d>
nopl   (%rax)
add    $0xffffffff,%ebx
mov    %r14d,%ebp
test   %ebp,%ebp
js     19fd <main+0x86d>
testb  $0x1,0x4(%rsp)
mov    %ebx,0x18(%rsp)
je     11f0 <main+0x60>
cmpl   $0x0,0x8(%rsp)
je     135c <main+0x1cc>
mov    %ebp,%eax
xor    $0x2f,%eax
mov    %r12d,%ecx
xor    $0x2a,%ecx
or     %eax,%ecx
mov    $0x2b,%edx
cmove  %edx,%r12d
mov    %ebp,%eax
xor    $0x2a,%eax
mov    %r12d,%ecx
xor    $0x2f,%ecx
or     %eax,%ecx
cmove  %edx,%ebp
mov    $0x1,%r15d
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x1,0x8(%rsp)
mov    %ebp,%r14d
cmp    $0xa,%ebp
jne    1221 <main+0x91>
mov    %r12d,%ebx
mov    $0x20,%edi
mov    %esi,%ebp
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2f,%edi
call   1030 <putchar@plt>
mov    %ebp,%esi
mov    $0xa,%r14d
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
jmp    1221 <main+0x91>
cmpl   $0x0,0xc(%rsp)
je     13c1 <main+0x231>
mov    $0x2,%r15d
movl   $0x1,0xc(%rsp)
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
mov    %ebp,%r14d
cmp    $0x5c,%ebp
je     1221 <main+0x91>
mov    %r12d,%eax
cmp    $0x22,%ebp
jne    145b <main+0x2cb>
mov    $0x1,%r15d
mov    $0x22,%r14d
mov    $0x1,%cl
mov    %ecx,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
mov    %eax,%r12d
jmp    1221 <main+0x91>
cmpl   $0x0,0x14(%rsp)
je     1482 <main+0x2f2>
cmp    $0x27,%ebp
jne    1510 <main+0x380>
mov    %esi,%ebx
mov    0x20(%rsp),%rcx
movslq %ecx,%rax
movb   $0x0,0x30(%rsp,%rax,1)
cmp    $0x2,%ecx
jl     1401 <main+0x271>
lea    0x30(%rsp),%rdi
mov    $0x5c,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     16f3 <main+0x563>
mov    $0x27,%r14d
mov    $0x27,%edi
call   1030 <putchar@plt>
mov    0x2bc8(%rip),%rax
mov    (%rax),%esi
lea    0x30(%rsp),%rdi
call   1080 <fputs@plt>
mov    $0x27,%edi
call   1030 <putchar@plt>
movl   $0x1,0x18(%rsp)
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x14(%rsp)
mov    %ebx,%esi
jmp    1221 <main+0x91>
movl   $0x1,0xc(%rsp)
mov    $0x1,%cl
mov    %ecx,0x4(%rsp)
movl   $0x0,0x8(%rsp)
mov    %ebp,%r14d
mov    %eax,%r12d
mov    $0x1,%r15d
jmp    1221 <main+0x91>
cmpl   $0x0,0x10(%rsp)
je     15c4 <main+0x434>
mov    %esi,0x2c(%rsp)
mov    %ebp,%edi
call   1070 <isalnum@plt>
test   %rax,%rax
je     167a <main+0x4ea>
cmpl   $0x7e,0x20(%rsp)
jne    14be <main+0x32e>
lea    0xb84(%rip),%rdi
mov    %r13d,%esi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   10b0 <error@plt>
movslq 0x20(%rsp),%rax
lea    0x1(%rax),%rcx
mov    %rcx,0x20(%rsp)
mov    %bpl,0x30(%rsp,%rax,1)
movb   $0x0,0x31(%rsp,%rax,1)
movl   $0x1,0x10(%rsp)
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x14(%rsp)
mov    %ebp,%r14d
movl   $0x1,0x18(%rsp)
mov    0x2c(%rsp),%esi
jmp    1221 <main+0x91>
mov    0x20(%rsp),%rax
add    $0xffffff82,%eax
cmp    $0xffffff7e,%eax
ja     1539 <main+0x3a9>
lea    0xae1(%rip),%rdi
mov    %esi,%ebx
mov    %r13d,%esi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   10b0 <error@plt>
mov    %ebx,%esi
mov    0x20(%rsp),%rcx
movslq %ecx,%rax
cmp    $0x5c,%ebp
jne    1589 <main+0x3f9>
movb   $0x5c,0x30(%rsp,%rax,1)
add    $0x2,%ecx
mov    %rcx,0x20(%rsp)
mov    %r12b,0x31(%rsp,%rax,1)
movl   $0x2,0x18(%rsp)
mov    $0x5c,%r14d
movl   $0x1,0x14(%rsp)
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
jmp    1221 <main+0x91>
add    $0x1,%ecx
mov    %rcx,0x20(%rsp)
mov    %bpl,0x30(%rsp,%rax,1)
movl   $0x1,0x14(%rsp)
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
mov    %ebp,%r14d
movl   $0x1,0x18(%rsp)
jmp    1221 <main+0x91>
mov    %r15d,0x28(%rsp)
movl   $0x0,0x14(%rsp)
cmp    $0x2f,%ebp
mov    %r12d,%eax
jne    1614 <main+0x484>
mov    $0x2,%r15d
mov    $0x2a,%r12d
mov    $0x2f,%r14d
movl   $0x0,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
cmp    $0x2a,%eax
je     1221 <main+0x91>
cmp    $0x2f,%ebp
jne    174a <main+0x5ba>
cmp    $0x2f,%eax
jne    174a <main+0x5ba>
mov    $0x2f,%r14d
mov    $0x2f,%edi
mov    %esi,%ebx
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    %ebx,%esi
movl   $0x2,0x18(%rsp)
movl   $0x1,0x8(%rsp)
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
mov    $0x2f,%r12d
mov    0x28(%rsp),%r15d
jmp    1221 <main+0x91>
cmp    $0x5f,%ebp
je     14a1 <main+0x311>
cmp    $0x24,%ebp
je     14a1 <main+0x311>
cmpb   $0x24,0x30(%rsp)
mov    %r15d,0x28(%rsp)
jne    17ce <main+0x63e>
cmpb   $0x0,0xb0(%rsp)
mov    0x2935(%rip),%r14
jne    16c3 <main+0x533>
lea    0x9a0(%rip),%rdi
mov    %r13d,%esi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   10b0 <error@plt>
mov    (%r14),%esi
lea    0xb0(%rsp),%rdi
call   1080 <fputs@plt>
cmpl   $0x2,0x20(%rsp)
jl     16e9 <main+0x559>
mov    (%r14),%esi
lea    0x9a5(%rip),%rdi
call   1080 <fputs@plt>
lea    0x31(%rsp),%rdi
jmp    183a <main+0x6aa>
mov    0x30(%rsp),%al
movl   $0x0,0x8(%rsp)
mov    $0x0,%esi
test   %al,%al
je     1723 <main+0x593>
xor    %esi,%esi
lea    0x31(%rsp),%rcx
nop
shl    $0x8,%esi
movzbl %al,%eax
or     %eax,%esi
movzbl (%rcx),%eax
add    $0x1,%rcx
test   %al,%al
jne    1710 <main+0x580>
lea    0x8d6(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movl   $0x1,0x18(%rsp)
mov    $0x27,%r14d
mov    $0x1,%al
mov    %eax,0x4(%rsp)
jmp    1444 <main+0x2b4>
mov    $0x1,%r15d
mov    $0x1,%cl
mov    %ecx,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x1,0xc(%rsp)
movl   $0x0,0x10(%rsp)
mov    %ebp,%r14d
mov    %eax,%r12d
cmp    $0x22,%ebp
je     1221 <main+0x91>
mov    %eax,%r12d
cmp    $0x27,%ebp
jne    1851 <main+0x6c1>
mov    $0x27,%r14d
movl   $0x1,0x14(%rsp)
movl   $0x0,0x8(%rsp)
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
mov    0x28(%rsp),%r15d
movl   $0x1,0x18(%rsp)
xor    %eax,%eax
mov    %rax,0x20(%rsp)
jmp    1221 <main+0x91>
movslq 0x20(%rsp),%r14
cmpb   $0x24,0x2f(%rsp,%r14,1)
lea    0x30(%rsp),%rdi
jne    183a <main+0x6aa>
cmpl   $0x1,0x1c(%rsp)
je     17f8 <main+0x668>
lea    0x89e(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   10b0 <error@plt>
add    $0xffffffffffffffff,%r14
cmpb   $0x0,0xb0(%rsp)
je     1817 <main+0x687>
lea    0x8d2(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   10b0 <error@plt>
movb   $0x0,0x30(%rsp,%r14,1)
lea    0xb0(%rsp),%rdi
lea    0x30(%rsp),%r15
mov    %r15,%rsi
call   1040 <strcpy@plt>
mov    %r15,%rdi
mov    %r14,0x20(%rsp)
mov    0x279f(%rip),%rax
mov    (%rax),%esi
call   1080 <fputs@plt>
mov    0x2c(%rsp),%esi
jmp    15c9 <main+0x439>
mov    %ebp,%edi
mov    %esi,%ebx
call   10a0 <isalpha@plt>
mov    %ebx,%esi
test   %rax,%rax
mov    %r12d,%eax
je     18ae <main+0x71e>
mov    %bpl,0x30(%rsp)
movb   $0x0,0x31(%rsp)
movl   $0x1,0x10(%rsp)
mov    $0x1,%cl
mov    %ecx,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
mov    %ebp,%r14d
mov    %eax,%r12d
mov    0x28(%rsp),%r15d
movl   $0x1,0x18(%rsp)
mov    $0x1,%eax
mov    %rax,0x20(%rsp)
jmp    1221 <main+0x91>
cmp    $0x5e,%ebp
jg     191f <main+0x78f>
cmp    $0x24,%ebp
mov    %r12d,%eax
je     1864 <main+0x6d4>
cmp    $0x28,%ebp
je     195b <main+0x7cb>
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
mov    %ebp,%r14d
cmp    $0x29,%ebp
jne    1221 <main+0x91>
mov    %r12d,%eax
addl   $0xffffffff,0x1c(%rsp)
mov    $0x29,%r14d
mov    $0x1,%cl
mov    %ecx,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
jmp    1221 <main+0x91>
cmp    $0x7d,%ebp
je     1968 <main+0x7d8>
cmp    $0x7b,%ebp
je     1999 <main+0x809>
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
mov    %ebp,%r14d
mov    %r12d,%eax
cmp    $0x5f,%ebp
je     1864 <main+0x6d4>
jmp    1221 <main+0x91>
addl   $0x1,0x1c(%rsp)
mov    $0x28,%r14d
jmp    19a4 <main+0x814>
mov    $0x7d,%r14d
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
addl   $0xffffffff,0x1c(%rsp)
jne    1221 <main+0x91>
jmp    19c7 <main+0x837>
addl   $0x1,0x1c(%rsp)
mov    $0x7b,%r14d
mov    $0x1,%al
mov    %eax,0x4(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x10(%rsp)
jmp    1221 <main+0x91>
mov    %r12d,%eax
movb   $0x0,0xb0(%rsp)
movl   $0x0,0x8(%rsp)
mov    $0x1,%cl
mov    %ecx,0x4(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x14(%rsp)
movl   $0x0,0x10(%rsp)
jmp    11e5 <main+0x55>
testb  $0x1,0x4(%rsp)
jne    1a12 <main+0x882>
lea    0x718(%rip),%rdi
xor    %eax,%eax
call   10b0 <error@plt>
cmpl   $0x0,0x8(%rsp)
je     1a27 <main+0x897>
lea    0x72d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmpl   $0x0,0xc(%rsp)
je     1a3c <main+0x8ac>
lea    0x71c(%rip),%rdi
xor    %eax,%eax
call   10b0 <error@plt>
cmpl   $0x0,0x14(%rsp)
je     1a51 <main+0x8c1>
lea    0x72d(%rip),%rdi
xor    %eax,%eax
call   10b0 <error@plt>
cmpl   $0x0,0x1c(%rsp)
jle    1a68 <main+0x8d8>
lea    0x73e(%rip),%rdi
xor    %eax,%eax
call   10b0 <error@plt>
jmp    1a6a <main+0x8da>
js     1a7e <main+0x8ee>
xor    %eax,%eax
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x748(%rip),%rdi
jmp    1a5f <main+0x8cf>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [7 x i8] c"0x%08X\00"
@.str.1 = [44 x i8] c"Bad '' string, too long, at line %d: '%s...\00"
@.str.2 = [33 x i8] c"Identifier too long, line %d: %s\00"
@.str.3 = [53 x i8] c"'this' value ($) used without being set, line %d: %s\00"
@.str.4 = [3 x i8] c"->\00"
@.str.5 = [83 x i8] c"Not valid to set 'this' ($) value above or below first (){} nesting level, line %d\00"
@.str.6 = [68 x i8] c"Not valid to redefine 'this' ($) value without a '}' first, line %d\00"
@.str.7 = [42 x i8] c"Unterminated /* */ comment at end of file\00"
@.str.8 = [4 x i8] c" */\00"
@.str.9 = [38 x i8] c"Unterminated \22\22 string at end of file\00"
@.str.10 = [38 x i8] c"Unterminated '' string at end of file\00"
@.str.11 = [48 x i8] c"Unclosed (){} parentheses/braces at end of file\00"
@.str.12 = [55 x i8] c"Too many closed (){} parentheses/braces at end of file\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca [128 x i8]
%17 = alloca i32
%18 = alloca i32
%19 = alloca [128 x i8]
%20 = alloca i32
%21 = alloca i8*
%22 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
store i32 0, i32* %18
store i32 1, i32* %20
%23 = getelementptr inbounds [128 x i8], [128 x i8]* %19, i64 0, i64 0
store i8 0, i8* %23
store i32 3, i32* %15
store i32 0, i32* %14
br label %24
24: ; preds = %2, %70, %71, %92, %96, %103, %107, %108, %125, %148, %163, %176, %205, %286, %293, %299, %303, %314, %338
br label %25
25: ; preds = %38, %24
%26 = load i32, i32* %14
%27 = add nsw i32 %26, -1
store i32 %27, i32* %14
%28 = icmp sgt i32 %26, 0
br i1 %28, label %29, label %42
29: ; preds = %25
%30 = load i32, i32* %11
%31 = trunc i32 %30 to i8
%32 = call i32 @putchar(i8 signext %31)
%33 = load i32, i32* %11
%34 = icmp eq i32 %33, 10
br i1 %34, label %35, label %38
35: ; preds = %29
%36 = load i32, i32* %20
%37 = add nsw i32 %36, 1
store i32 %37, i32* %20
br label %38
38: ; preds = %35, %29
%39 = load i32, i32* %12
store i32 %39, i32* %11
%40 = load i32, i32* %13
store i32 %40, i32* %12
%41 = call i32 (...) @getchar()
store i32 %41, i32* %13
br label %25
42: ; preds = %25
br label %43
43: ; preds = %53, %42
%44 = load i32, i32* %15
%45 = add nsw i32 %44, -1
store i32 %45, i32* %15
%46 = icmp sgt i32 %44, 0
br i1 %46, label %47, label %57
47: ; preds = %43
%48 = load i32, i32* %11
%49 = icmp eq i32 %48, 10
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load i32, i32* %20
%52 = add nsw i32 %51, 1
store i32 %52, i32* %20
br label %53
53: ; preds = %50, %47
%54 = load i32, i32* %12
store i32 %54, i32* %11
%55 = load i32, i32* %13
store i32 %55, i32* %12
%56 = call i32 (...) @getchar()
store i32 %56, i32* %13
br label %43
57: ; preds = %43
%58 = load i32, i32* %11
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %57
br label %339
61: ; preds = %57
%62 = load i32, i32* %6
%63 = icmp ne i32 %62, 0
br i1 %63, label %64, label %72
64: ; preds = %61
%65 = load i32, i32* %11
%66 = icmp eq i32 %65, 42
br i1 %66, label %67, label %71
67: ; preds = %64
%68 = load i32, i32* %12
%69 = icmp eq i32 %68, 47
br i1 %69, label %70, label %71
70: ; preds = %67
store i32 2, i32* %14
store i32 0, i32* %6
br label %24
71: ; preds = %67, %64
store i32 1, i32* %14
br label %24
72: ; preds = %61
%73 = load i32, i32* %7
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %97
75: ; preds = %72
%76 = load i32, i32* %11
%77 = icmp eq i32 %76, 47
br i1 %77, label %78, label %82
78: ; preds = %75
%79 = load i32, i32* %12
%80 = icmp eq i32 %79, 42
br i1 %80, label %81, label %82
81: ; preds = %78
store i32 43, i32* %12
br label %82
82: ; preds = %81, %78, %75
%83 = load i32, i32* %11
%84 = icmp eq i32 %83, 42
br i1 %84, label %85, label %89
85: ; preds = %82
%86 = load i32, i32* %12
%87 = icmp eq i32 %86, 47
br i1 %87, label %88, label %89
88: ; preds = %85
store i32 43, i32* %11
br label %89
89: ; preds = %88, %85, %82
%90 = load i32, i32* %11
%91 = icmp eq i32 %90, 10
br i1 %91, label %92, label %96
92: ; preds = %89
%93 = call i32 @putchar(i8 signext 32)
%94 = call i32 @putchar(i8 signext 42)
%95 = call i32 @putchar(i8 signext 47)
store i32 1, i32* %14
store i32 0, i32* %7
br label %24
96: ; preds = %89
store i32 1, i32* %14
br label %24
97: ; preds = %72
%98 = load i32, i32* %8
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %109
100: ; preds = %97
%101 = load i32, i32* %11
%102 = icmp eq i32 %101, 92
br i1 %102, label %103, label %104
103: ; preds = %100
store i32 2, i32* %14
br label %24
104: ; preds = %100
%105 = load i32, i32* %11
%106 = icmp eq i32 %105, 34
br i1 %106, label %107, label %108
107: ; preds = %104
store i32 1, i32* %14
store i32 0, i32* %8
br label %24
108: ; preds = %104
store i32 1, i32* %14
br label %24
109: ; preds = %97
%110 = load i32, i32* %9
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %183
112: ; preds = %109
%113 = load i32, i32* %11
%114 = icmp eq i32 %113, 39
br i1 %114, label %115, label %151
115: ; preds = %112
store i32 1, i32* %15
store i32 0, i32* %9
%116 = load i32, i32* %17
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %117
store i8 0, i8* %118
%119 = load i32, i32* %17
%120 = icmp sle i32 %119, 1
br i1 %120, label %125, label %121
121: ; preds = %115
%122 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%123 = call i64 @strchr(i8* %122, i8 signext 92)
%124 = icmp ne i64 %123, 0
br i1 %124, label %125, label %131
125: ; preds = %121, %115
%126 = call i32 @putchar(i8 signext 39)
%127 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%128 = load i32, i32* @stdout
%129 = call i32 @fputs(i8* %127, i32 %128)
%130 = call i32 @putchar(i8 signext 39)
br label %24
131: ; preds = %121
store i32 0, i32* %22
%132 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
store i8* %132, i8** %21
br label %133
133: ; preds = %145, %131
%134 = load i8*, i8** %21
%135 = load i8, i8* %134
%136 = icmp ne i8 %135, 0
br i1 %136, label %137, label %148
137: ; preds = %133
%138 = load i32, i32* %22
%139 = shl i32 %138, 8
%140 = load i8*, i8** %21
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = and i32 %142, 255
%144 = or i32 %139, %143
store i32 %144, i32* %22
br label %145
145: ; preds = %137
%146 = load i8*, i8** %21
%147 = getelementptr inbounds i8, i8* %146, i32 1
store i8* %147, i8** %21
br label %133
148: ; preds = %133
%149 = load i32, i32* %22
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %149)
br label %24
151: ; preds = %112
%152 = load i32, i32* %17
%153 = add nsw i32 %152, 3
%154 = sext i32 %153 to i64
%155 = icmp ugt i64 %154, 128
br i1 %155, label %156, label %160
156: ; preds = %151
%157 = load i32, i32* %20
%158 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%159 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), i32 %157, i8* %158)
br label %160
160: ; preds = %156, %151
%161 = load i32, i32* %11
%162 = icmp eq i32 %161, 92
br i1 %162, label %163, label %176
163: ; preds = %160
%164 = load i32, i32* %11
%165 = trunc i32 %164 to i8
%166 = load i32, i32* %17
%167 = add nsw i32 %166, 1
store i32 %167, i32* %17
%168 = sext i32 %166 to i64
%169 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %168
store i8 %165, i8* %169
%170 = load i32, i32* %12
%171 = trunc i32 %170 to i8
%172 = load i32, i32* %17
%173 = add nsw i32 %172, 1
store i32 %173, i32* %17
%174 = sext i32 %172 to i64
%175 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %174
store i8 %171, i8* %175
store i32 2, i32* %15
br label %24
176: ; preds = %160
%177 = load i32, i32* %11
%178 = trunc i32 %177 to i8
%179 = load i32, i32* %17
%180 = add nsw i32 %179, 1
store i32 %180, i32* %17
%181 = sext i32 %179 to i64
%182 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %181
store i8 %178, i8* %182
store i32 1, i32* %15
br label %24
183: ; preds = %109
%184 = load i32, i32* %10
%185 = icmp ne i32 %184, 0
br i1 %185, label %186, label %280
186: ; preds = %183
%187 = load i32, i32* %11
%188 = call i64 @isalnum(i32 %187)
%189 = icmp ne i64 %188, 0
br i1 %189, label %196, label %190
190: ; preds = %186
%191 = load i32, i32* %11
%192 = icmp eq i32 %191, 95
br i1 %192, label %196, label %193
193: ; preds = %190
%194 = load i32, i32* %11
%195 = icmp eq i32 %194, 36
br i1 %195, label %196, label %215
196: ; preds = %193, %190, %186
%197 = load i32, i32* %17
%198 = add nsw i32 %197, 2
%199 = sext i32 %198 to i64
%200 = icmp eq i64 %199, 128
br i1 %200, label %201, label %205
201: ; preds = %196
%202 = load i32, i32* %20
%203 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%204 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %202, i8* %203)
br label %205
205: ; preds = %201, %196
%206 = load i32, i32* %11
%207 = trunc i32 %206 to i8
%208 = load i32, i32* %17
%209 = add nsw i32 %208, 1
store i32 %209, i32* %17
%210 = sext i32 %208 to i64
%211 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %210
store i8 %207, i8* %211
%212 = load i32, i32* %17
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %213
store i8 0, i8* %214
store i32 1, i32* %15
br label %24
215: ; preds = %193
store i32 0, i32* %10
%216 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%217 = load i8, i8* %216
%218 = sext i8 %217 to i32
%219 = icmp eq i32 %218, 36
br i1 %219, label %220, label %242
220: ; preds = %215
%221 = getelementptr inbounds [128 x i8], [128 x i8]* %19, i64 0, i64 0
%222 = load i8, i8* %221
%223 = icmp ne i8 %222, 0
br i1 %223, label %228, label %224
224: ; preds = %220
%225 = load i32, i32* %20
%226 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%227 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i32 %225, i8* %226)
br label %228
228: ; preds = %224, %220
%229 = getelementptr inbounds [128 x i8], [128 x i8]* %19, i64 0, i64 0
%230 = load i32, i32* @stdout
%231 = call i32 @fputs(i8* %229, i32 %230)
%232 = load i32, i32* %17
%233 = icmp sgt i32 %232, 1
br i1 %233, label %234, label %237
234: ; preds = %228
%235 = load i32, i32* @stdout
%236 = call i32 @fputs(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %235)
br label %237
237: ; preds = %234, %228
%238 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%239 = getelementptr inbounds i8, i8* %238, i64 1
%240 = load i32, i32* @stdout
%241 = call i32 @fputs(i8* %239, i32 %240)
br label %279
242: ; preds = %215
%243 = load i32, i32* %17
%244 = sub nsw i32 %243, 1
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %245
%247 = load i8, i8* %246
%248 = sext i8 %247 to i32
%249 = icmp eq i32 %248, 36
br i1 %249, label %250, label %274
250: ; preds = %242
%251 = load i32, i32* %18
%252 = icmp ne i32 %251, 1
br i1 %252, label %253, label %256
253: ; preds = %250
%254 = load i32, i32* %20
%255 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.5, i64 0, i64 0), i32 %254)
br label %256
256: ; preds = %253, %250
%257 = getelementptr inbounds [128 x i8], [128 x i8]* %19, i64 0, i64 0
%258 = load i8, i8* %257
%259 = icmp ne i8 %258, 0
br i1 %259, label %260, label %263
260: ; preds = %256
%261 = load i32, i32* %20
%262 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0), i32 %261)
br label %263
263: ; preds = %260, %256
%264 = load i32, i32* %17
%265 = add nsw i32 %264, -1
store i32 %265, i32* %17
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 %266
store i8 0, i8* %267
%268 = getelementptr inbounds [128 x i8], [128 x i8]* %19, i64 0, i64 0
%269 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%270 = call i32 @strcpy(i8* %268, i8* %269)
%271 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%272 = load i32, i32* @stdout
%273 = call i32 @fputs(i8* %271, i32 %272)
br label %278
274: ; preds = %242
%275 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
%276 = load i32, i32* @stdout
%277 = call i32 @fputs(i8* %275, i32 %276)
br label %278
278: ; preds = %274, %263
br label %279
279: ; preds = %278, %237
br label %280
280: ; preds = %279, %183
%281 = load i32, i32* %11
%282 = icmp eq i32 %281, 47
br i1 %282, label %283, label %287
283: ; preds = %280
%284 = load i32, i32* %12
%285 = icmp eq i32 %284, 42
br i1 %285, label %286, label %287
286: ; preds = %283
store i32 2, i32* %14
store i32 1, i32* %6
br label %24
287: ; preds = %283, %280
%288 = load i32, i32* %11
%289 = icmp eq i32 %288, 47
br i1 %289, label %290, label %296
290: ; preds = %287
%291 = load i32, i32* %12
%292 = icmp eq i32 %291, 47
br i1 %292, label %293, label %296
293: ; preds = %290
%294 = call i32 @putchar(i8 signext 47)
%295 = call i32 @putchar(i8 signext 42)
store i32 2, i32* %15
store i32 1, i32* %7
br label %24
296: ; preds = %290, %287
%297 = load i32, i32* %11
%298 = icmp eq i32 %297, 34
br i1 %298, label %299, label %300
299: ; preds = %296
store i32 1, i32* %14
store i32 1, i32* %8
br label %24
300: ; preds = %296
%301 = load i32, i32* %11
%302 = icmp eq i32 %301, 39
br i1 %302, label %303, label %304
303: ; preds = %300
store i32 1, i32* %15
store i32 0, i32* %17
store i32 1, i32* %9
br label %24
304: ; preds = %300
%305 = load i32, i32* %11
%306 = call i64 @isalpha(i32 %305)
%307 = icmp ne i64 %306, 0
br i1 %307, label %314, label %308
308: ; preds = %304
%309 = load i32, i32* %11
%310 = icmp eq i32 %309, 95
br i1 %310, label %314, label %311
311: ; preds = %308
%312 = load i32, i32* %11
%313 = icmp eq i32 %312, 36
br i1 %313, label %314, label %319
314: ; preds = %311, %308, %304
%315 = load i32, i32* %11
%316 = trunc i32 %315 to i8
%317 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 0
store i8 %316, i8* %317
%318 = getelementptr inbounds [128 x i8], [128 x i8]* %16, i64 0, i64 1
store i8 0, i8* %318
store i32 1, i32* %17
store i32 1, i32* %15
store i32 1, i32* %10
br label %24
319: ; preds = %311
%320 = load i32, i32* %11
switch i32 %320, label %338 [
i32 40, label %321
i32 41, label %324
i32 123, label %327
i32 125, label %330
]
321: ; preds = %319
%322 = load i32, i32* %18
%323 = add nsw i32 %322, 1
store i32 %323, i32* %18
br label %338
324: ; preds = %319
%325 = load i32, i32* %18
%326 = add nsw i32 %325, -1
store i32 %326, i32* %18
br label %338
327: ; preds = %319
%328 = load i32, i32* %18
%329 = add nsw i32 %328, 1
store i32 %329, i32* %18
br label %338
330: ; preds = %319
%331 = load i32, i32* %18
%332 = add nsw i32 %331, -1
store i32 %332, i32* %18
%333 = load i32, i32* %18
%334 = icmp eq i32 %333, 0
br i1 %334, label %335, label %337
335: ; preds = %330
%336 = getelementptr inbounds [128 x i8], [128 x i8]* %19, i64 0, i64 0
store i8 0, i8* %336
br label %337
337: ; preds = %335, %330
br label %338
338: ; preds = %319, %337, %327, %324, %321
store i32 1, i32* %14
br label %24
339: ; preds = %60
%340 = load i32, i32* %6
%341 = icmp ne i32 %340, 0
br i1 %341, label %342, label %344
342: ; preds = %339
%343 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
br label %344
344: ; preds = %342, %339
%345 = load i32, i32* %7
%346 = icmp ne i32 %345, 0
br i1 %346, label %347, label %349
347: ; preds = %344
%348 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %349
349: ; preds = %347, %344
%350 = load i32, i32* %8
%351 = icmp ne i32 %350, 0
br i1 %351, label %352, label %354
352: ; preds = %349
%353 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
br label %354
354: ; preds = %352, %349
%355 = load i32, i32* %9
%356 = icmp ne i32 %355, 0
br i1 %356, label %357, label %359
357: ; preds = %354
%358 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0))
br label %359
359: ; preds = %357, %354
%360 = load i32, i32* %18
%361 = icmp sgt i32 %360, 0
br i1 %361, label %362, label %364
362: ; preds = %359
%363 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
br label %364
364: ; preds = %362, %359
%365 = load i32, i32* %18
%366 = icmp slt i32 %365, 0
br i1 %366, label %367, label %369
367: ; preds = %364
%368 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0))
br label %369
369: ; preds = %367, %364
ret i32 0
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [7 x i8] c"0x%08X\00"
@.str.1 = [44 x i8] c"Bad '' string, too long, at line %d: '%s...\00"
@.str.2 = [33 x i8] c"Identifier too long, line %d: %s\00"
@.str.3 = [53 x i8] c"'this' value ($) used without being set, line %d: %s\00"
@.str.4 = [3 x i8] c"->\00"
@.str.5 = [83 x i8] c"Not valid to set 'this' ($) value above or below first (){} nesting level, line %d\00"
@.str.6 = [68 x i8] c"Not valid to redefine 'this' ($) value without a '}' first, line %d\00"
@.str.7 = [42 x i8] c"Unterminated /* */ comment at end of file\00"
@.str.8 = [4 x i8] c" */\00"
@.str.9 = [38 x i8] c"Unterminated \22\22 string at end of file\00"
@.str.10 = [38 x i8] c"Unterminated '' string at end of file\00"
@.str.11 = [48 x i8] c"Unclosed (){} parentheses/braces at end of file\00"
@.str.12 = [55 x i8] c"Too many closed (){} parentheses/braces at end of file\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [128 x i8]
%4 = alloca [128 x i8]
%5 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
store i8 0, i8* %6
%7 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 1
br label %8
8: ; preds = %223, %2
%9 = phi i1 [ true, %2 ], [ %224, %223 ]
%10 = phi i32 [ 0, %2 ], [ %225, %223 ]
%11 = phi i32 [ 0, %2 ], [ %226, %223 ]
%12 = phi i32 [ 0, %2 ], [ %227, %223 ]
%13 = phi i32 [ 0, %2 ], [ %228, %223 ]
%14 = phi i32 [ undef, %2 ], [ %229, %223 ]
%15 = phi i32 [ undef, %2 ], [ %230, %223 ]
%16 = phi i32 [ undef, %2 ], [ %61, %223 ]
%17 = phi i32 [ 0, %2 ], [ %231, %223 ]
%18 = phi i32 [ 3, %2 ], [ %232, %223 ]
%19 = phi i32 [ undef, %2 ], [ %233, %223 ]
%20 = phi i32 [ 0, %2 ], [ %234, %223 ]
%21 = phi i32 [ 1, %2 ], [ %62, %223 ]
%22 = add nsw i32 %17, -1
%23 = icmp sgt i32 %17, 0
br i1 %23, label %32, label %24
24: ; preds = %32, %8
%25 = phi i32 [ %14, %8 ], [ %36, %32 ]
%26 = phi i32 [ %15, %8 ], [ %35, %32 ]
%27 = phi i32 [ %16, %8 ], [ %43, %32 ]
%28 = phi i32 [ %21, %8 ], [ %42, %32 ]
%29 = phi i32 [ %22, %8 ], [ -1, %32 ]
%30 = add nsw i32 %18, -1
%31 = icmp sgt i32 %18, 0
br i1 %31, label %46, label %58
32: ; preds = %8, %32
%33 = phi i32 [ %44, %32 ], [ %22, %8 ]
%34 = phi i32 [ %42, %32 ], [ %21, %8 ]
%35 = phi i32 [ %43, %32 ], [ %16, %8 ]
%36 = phi i32 [ %35, %32 ], [ %15, %8 ]
%37 = phi i32 [ %36, %32 ], [ %14, %8 ]
%38 = trunc i32 %37 to i8
%39 = call i32 @putchar(i8 signext %38)
%40 = icmp eq i32 %37, 10
%41 = zext i1 %40 to i32
%42 = add nsw i32 %34, %41
%43 = call i32 (...) @getchar()
%44 = add nsw i32 %33, -1
%45 = icmp eq i32 %33, 0
br i1 %45, label %24, label %32
46: ; preds = %24, %46
%47 = phi i32 [ %56, %46 ], [ %30, %24 ]
%48 = phi i32 [ %54, %46 ], [ %28, %24 ]
%49 = phi i32 [ %55, %46 ], [ %27, %24 ]
%50 = phi i32 [ %49, %46 ], [ %26, %24 ]
%51 = phi i32 [ %50, %46 ], [ %25, %24 ]
%52 = icmp eq i32 %51, 10
%53 = zext i1 %52 to i32
%54 = add nsw i32 %48, %53
%55 = call i32 (...) @getchar()
%56 = add nsw i32 %47, -1
%57 = icmp eq i32 %47, 0
br i1 %57, label %58, label %46
58: ; preds = %46, %24
%59 = phi i32 [ %25, %24 ], [ %50, %46 ]
%60 = phi i32 [ %26, %24 ], [ %49, %46 ]
%61 = phi i32 [ %27, %24 ], [ %55, %46 ]
%62 = phi i32 [ %28, %24 ], [ %54, %46 ]
%63 = phi i32 [ %30, %24 ], [ -1, %46 ]
%64 = icmp slt i32 %59, 0
br i1 %64, label %243, label %65
65: ; preds = %58
br i1 %9, label %73, label %66
66: ; preds = %65
%67 = icmp eq i32 %59, 42
%68 = icmp eq i32 %60, 47
%69 = select i1 %67, i1 %68, i1 false
%70 = select i1 %69, i32 42, i32 %59
%71 = select i1 %69, i32 47, i32 %60
%72 = select i1 %69, i32 2, i32 1
br label %223
73: ; preds = %65
%74 = icmp eq i32 %10, 0
br i1 %74, label %89, label %75
75: ; preds = %73
%76 = icmp eq i32 %59, 47
%77 = icmp eq i32 %60, 42
%78 = select i1 %76, i1 %77, i1 false
%79 = select i1 %78, i32 43, i32 %60
%80 = icmp eq i32 %59, 42
%81 = icmp eq i32 %79, 47
%82 = select i1 %80, i1 %81, i1 false
%83 = select i1 %82, i32 43, i32 %59
%84 = icmp eq i32 %83, 10
br i1 %84, label %85, label %223
85: ; preds = %75
%86 = call i32 @putchar(i8 signext 32)
%87 = call i32 @putchar(i8 signext 42)
%88 = call i32 @putchar(i8 signext 47)
br label %223
89: ; preds = %73
%90 = icmp eq i32 %11, 0
br i1 %90, label %94, label %91
91: ; preds = %89
switch i32 %59, label %93 [
i32 92, label %223
i32 34, label %92
]
92: ; preds = %91
br label %223
93: ; preds = %91
br label %223
94: ; preds = %89
%95 = icmp eq i32 %12, 0
br i1 %95, label %146, label %96
96: ; preds = %94
%97 = icmp eq i32 %59, 39
br i1 %97, label %98, label %126
98: ; preds = %96
%99 = sext i32 %19 to i64
%100 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %99
store i8 0, i8* %100
%101 = icmp slt i32 %19, 2
br i1 %101, label %108, label %102
102: ; preds = %98
%103 = call i64 @strchr(i8* %5, i8 signext 92)
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = load i8, i8* %5
%107 = icmp eq i8 %106, 0
br i1 %107, label %123, label %113
108: ; preds = %102, %98
%109 = call i32 @putchar(i8 signext 39)
%110 = load i32, i32* @stdout
%111 = call i32 @fputs(i8* %5, i32 %110)
%112 = call i32 @putchar(i8 signext 39)
br label %223
113: ; preds = %105, %113
%114 = phi i8 [ %121, %113 ], [ %106, %105 ]
%115 = phi i32 [ %119, %113 ], [ 0, %105 ]
%116 = phi i8* [ %120, %113 ], [ %5, %105 ]
%117 = shl i32 %115, 8
%118 = zext i8 %114 to i32
%119 = or i32 %117, %118
%120 = getelementptr inbounds i8, i8* %116, i64 1
%121 = load i8, i8* %120
%122 = icmp eq i8 %121, 0
br i1 %122, label %123, label %113
123: ; preds = %113, %105
%124 = phi i32 [ 0, %105 ], [ %119, %113 ]
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %124)
br label %223
126: ; preds = %96
%127 = add i32 %19, -126
%128 = icmp ult i32 %127, -129
br i1 %128, label %129, label %131
129: ; preds = %126
%130 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), i32 %62, i8* %5)
br label %131
131: ; preds = %129, %126
%132 = icmp eq i32 %59, 92
br i1 %132, label %133, label %141
133: ; preds = %131
%134 = add nsw i32 %19, 1
%135 = sext i32 %19 to i64
%136 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %135
store i8 92, i8* %136
%137 = trunc i32 %60 to i8
%138 = add nsw i32 %19, 2
%139 = sext i32 %134 to i64
%140 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %139
store i8 %137, i8* %140
br label %223
141: ; preds = %131
%142 = trunc i32 %59 to i8
%143 = add nsw i32 %19, 1
%144 = sext i32 %19 to i64
%145 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %144
store i8 %142, i8* %145
br label %223
146: ; preds = %94
%147 = icmp eq i32 %13, 0
br i1 %147, label %201, label %148
148: ; preds = %146
%149 = call i64 @isalnum(i32 %59)
%150 = freeze i64 %149
%151 = icmp eq i64 %150, 0
br i1 %151, label %152, label %153
152: ; preds = %148
switch i32 %59, label %164 [
i32 95, label %153
i32 36, label %153
]
153: ; preds = %152, %152, %148
%154 = icmp eq i32 %19, 126
br i1 %154, label %155, label %157
155: ; preds = %153
%156 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 %62, i8* %5)
br label %157
157: ; preds = %155, %153
%158 = trunc i32 %59 to i8
%159 = add nsw i32 %19, 1
%160 = sext i32 %19 to i64
%161 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %160
store i8 %158, i8* %161
%162 = sext i32 %159 to i64
%163 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %162
store i8 0, i8* %163
br label %223
164: ; preds = %152
%165 = load i8, i8* %5
%166 = icmp eq i8 %165, 36
br i1 %166, label %167, label %179
167: ; preds = %164
%168 = load i8, i8* %6
%169 = icmp eq i8 %168, 0
br i1 %169, label %170, label %172
170: ; preds = %167
%171 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i32 %62, i8* %5)
br label %172
172: ; preds = %170, %167
%173 = load i32, i32* @stdout
%174 = call i32 @fputs(i8* %6, i32 %173)
%175 = icmp sgt i32 %19, 1
br i1 %175, label %176, label %196
176: ; preds = %172
%177 = load i32, i32* @stdout
%178 = call i32 @fputs(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %177)
br label %196
179: ; preds = %164
%180 = add nsw i32 %19, -1
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %181
%183 = load i8, i8* %182
%184 = icmp eq i8 %183, 36
br i1 %184, label %185, label %196
185: ; preds = %179
%186 = icmp eq i32 %20, 1
br i1 %186, label %189, label %187
187: ; preds = %185
%188 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.5, i64 0, i64 0), i32 %62)
br label %189
189: ; preds = %187, %185
%190 = load i8, i8* %6
%191 = icmp eq i8 %190, 0
br i1 %191, label %194, label %192
192: ; preds = %189
%193 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0), i32 %62)
br label %194
194: ; preds = %192, %189
store i8 0, i8* %182
%195 = call i32 @strcpy(i8* %6, i8* %5)
br label %196
196: ; preds = %179, %172, %176, %194
%197 = phi i8* [ %5, %194 ], [ %7, %176 ], [ %7, %172 ], [ %5, %179 ]
%198 = phi i32 [ %180, %194 ], [ %19, %176 ], [ %19, %172 ], [ %19, %179 ]
%199 = load i32, i32* @stdout
%200 = call i32 @fputs(i8* %197, i32 %199)
br label %201
201: ; preds = %196, %146
%202 = phi i32 [ %19, %146 ], [ %198, %196 ]
%203 = icmp eq i32 %59, 47
%204 = icmp eq i32 %60, 42
%205 = select i1 %203, i1 %204, i1 false
br i1 %205, label %223, label %206
206: ; preds = %201
%207 = icmp eq i32 %60, 47
%208 = select i1 %203, i1 %207, i1 false
br i1 %208, label %209, label %212
209: ; preds = %206
%210 = call i32 @putchar(i8 signext 47)
%211 = call i32 @putchar(i8 signext 42)
br label %223
212: ; preds = %206
switch i32 %59, label %214 [
i32 34, label %223
i32 39, label %213
]
213: ; preds = %212
br label %223
214: ; preds = %212
%215 = call i64 @isalpha(i32 %59)
%216 = freeze i64 %215
%217 = icmp eq i64 %216, 0
br i1 %217, label %218, label %219
218: ; preds = %214
switch i32 %59, label %223 [
i32 95, label %219
i32 36, label %219
i32 40, label %221
i32 41, label %235
i32 123, label %237
i32 125, label %239
]
219: ; preds = %218, %218, %214
%220 = trunc i32 %59 to i8
store i8 %220, i8* %5
store i8 0, i8* %7
br label %223
221: ; preds = %218
%222 = add nsw i32 %20, 1
br label %223
223: ; preds = %221, %235, %237, %242, %239, %218, %85, %92, %93, %108, %123, %133, %141, %157, %209, %213, %219, %66, %75, %91, %201, %212
%224 = phi i1 [ true, %219 ], [ true, %213 ], [ true, %209 ], [ true, %157 ], [ true, %141 ], [ true, %133 ], [ true, %123 ], [ true, %108 ], [ true, %93 ], [ true, %92 ], [ true, %85 ], [ %69, %66 ], [ true, %75 ], [ true, %91 ], [ false, %201 ], [ true, %212 ], [ true, %218 ], [ true, %239 ], [ true, %242 ], [ true, %237 ], [ true, %235 ], [ true, %221 ]
%225 = phi i32 [ 0, %219 ], [ 0, %213 ], [ 1, %209 ], [ 0, %157 ], [ 0, %141 ], [ 0, %133 ], [ 0, %123 ], [ 0, %108 ], [ 0, %93 ], [ 0, %92 ], [ 0, %85 ], [ %10, %66 ], [ 1, %75 ], [ 0, %91 ], [ 0, %201 ], [ 0, %212 ], [ 0, %218 ], [ 0, %239 ], [ 0, %242 ], [ 0, %237 ], [ 0, %235 ], [ 0, %221 ]
%226 = phi i32 [ 0, %219 ], [ 0, %213 ], [ 0, %209 ], [ 0, %157 ], [ 0, %141 ], [ 0, %133 ], [ 0, %123 ], [ 0, %108 ], [ 1, %93 ], [ 0, %92 ], [ %11, %85 ], [ %11, %66 ], [ %11, %75 ], [ 1, %91 ], [ 0, %201 ], [ 1, %212 ], [ 0, %218 ], [ 0, %239 ], [ 0, %242 ], [ 0, %237 ], [ 0, %235 ], [ 0, %221 ]
%227 = phi i32 [ 0, %219 ], [ 1, %213 ], [ 0, %209 ], [ 0, %157 ], [ 1, %141 ], [ 1, %133 ], [ 0, %123 ], [ 0, %108 ], [ %12, %93 ], [ %12, %92 ], [ %12, %85 ], [ %12, %66 ], [ %12, %75 ], [ %12, %91 ], [ 0, %201 ], [ 0, %212 ], [ 0, %218 ], [ 0, %239 ], [ 0, %242 ], [ 0, %237 ], [ 0, %235 ], [ 0, %221 ]
%228 = phi i32 [ 1, %219 ], [ 0, %213 ], [ 0, %209 ], [ 1, %157 ], [ %13, %141 ], [ %13, %133 ], [ %13, %123 ], [ %13, %108 ], [ %13, %93 ], [ %13, %92 ], [ %13, %85 ], [ %13, %66 ], [ %13, %75 ], [ %13, %91 ], [ 0, %201 ], [ 0, %212 ], [ 0, %218 ], [ 0, %239 ], [ 0, %242 ], [ 0, %237 ], [ 0, %235 ], [ 0, %221 ]
%229 = phi i32 [ %59, %219 ], [ 39, %213 ], [ 47, %209 ], [ %59, %157 ], [ %59, %141 ], [ 92, %133 ], [ 39, %123 ], [ 39, %108 ], [ %59, %93 ], [ 34, %92 ], [ 10, %85 ], [ %70, %66 ], [ %83, %75 ], [ %59, %91 ], [ 47, %201 ], [ %59, %212 ], [ %59, %218 ], [ 125, %239 ], [ 125, %242 ], [ 123, %237 ], [ 41, %235 ], [ 40, %221 ]
%230 = phi i32 [ %60, %219 ], [ %60, %213 ], [ 47, %209 ], [ %60, %157 ], [ %60, %141 ], [ %60, %133 ], [ %60, %123 ], [ %60, %108 ], [ %60, %93 ], [ %60, %92 ], [ %79, %85 ], [ %71, %66 ], [ %79, %75 ], [ %60, %91 ], [ 42, %201 ], [ %60, %212 ], [ %60, %218 ], [ %60, %239 ], [ %60, %242 ], [ %60, %237 ], [ %60, %235 ], [ %60, %221 ]
%231 = phi i32 [ %29, %219 ], [ %29, %213 ], [ %29, %209 ], [ %29, %157 ], [ %29, %141 ], [ %29, %133 ], [ %29, %123 ], [ %29, %108 ], [ 1, %93 ], [ 1, %92 ], [ 1, %85 ], [ %72, %66 ], [ 1, %75 ], [ 2, %91 ], [ 2, %201 ], [ 1, %212 ], [ 1, %218 ], [ 1, %239 ], [ 1, %242 ], [ 1, %237 ], [ 1, %235 ], [ 1, %221 ]
%232 = phi i32 [ 1, %219 ], [ 1, %213 ], [ 2, %209 ], [ 1, %157 ], [ 1, %141 ], [ 2, %133 ], [ 1, %123 ], [ 1, %108 ], [ %63, %93 ], [ %63, %92 ], [ %63, %85 ], [ %63, %66 ], [ %63, %75 ], [ %63, %91 ], [ %63, %201 ], [ %63, %212 ], [ %63, %218 ], [ %63, %239 ], [ %63, %242 ], [ %63, %237 ], [ %63, %235 ], [ %63, %221 ]
%233 = phi i32 [ 1, %219 ], [ 0, %213 ], [ %202, %209 ], [ %159, %157 ], [ %143, %141 ], [ %138, %133 ], [ %19, %123 ], [ %19, %108 ], [ %19, %93 ], [ %19, %92 ], [ %19, %85 ], [ %19, %66 ], [ %19, %75 ], [ %19, %91 ], [ %202, %201 ], [ %202, %212 ], [ %202, %218 ], [ %202, %239 ], [ %202, %242 ], [ %202, %237 ], [ %202, %235 ], [ %202, %221 ]
%234 = phi i32 [ %20, %219 ], [ %20, %213 ], [ %20, %209 ], [ %20, %157 ], [ %20, %141 ], [ %20, %133 ], [ %20, %123 ], [ %20, %108 ], [ %20, %93 ], [ %20, %92 ], [ %20, %85 ], [ %20, %66 ], [ %20, %75 ], [ %20, %91 ], [ %20, %201 ], [ %20, %212 ], [ %20, %218 ], [ %240, %239 ], [ 0, %242 ], [ %238, %237 ], [ %236, %235 ], [ %222, %221 ]
br label %8
235: ; preds = %218
%236 = add nsw i32 %20, -1
br label %223
237: ; preds = %218
%238 = add nsw i32 %20, 1
br label %223
239: ; preds = %218
%240 = add nsw i32 %20, -1
%241 = icmp eq i32 %240, 0
br i1 %241, label %242, label %223
242: ; preds = %239
store i8 0, i8* %6
br label %223
243: ; preds = %58
br i1 %9, label %246, label %244
244: ; preds = %243
%245 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
br label %246
246: ; preds = %244, %243
%247 = icmp eq i32 %10, 0
br i1 %247, label %250, label %248
248: ; preds = %246
%249 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %250
250: ; preds = %248, %246
%251 = icmp eq i32 %11, 0
br i1 %251, label %254, label %252
252: ; preds = %250
%253 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0))
br label %254
254: ; preds = %252, %250
%255 = icmp eq i32 %12, 0
br i1 %255, label %258, label %256
256: ; preds = %254
%257 = call i32 (i8*, ...) @error(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0))
br label %258
258: ; preds = %256, %254
%259 = icmp sgt i32 %20, 0
br i1 %259, label %262, label %260
260: ; preds = %258
%261 = icmp slt i32 %20, 0
br i1 %261, label %262, label %265
262: ; preds = %260, %258
%263 = phi i8* [ getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), %258 ], [ getelementptr inbounds ([55 x i8], [55 x i8]* @.str.12, i64 0, i64 0), %260 ]
%264 = call i32 (i8*, ...) @error(i8* %263)
br label %265
265: ; preds = %262, %260
ret i32 0
}