#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ abort();
char *realloc(char *, size_t);
size_t strlen(char const *const);
int /*<<< orphan*/ strncasecmp(char const *, char *, int);
char *lily_html_to_lily(const char *const string) {
  static char *output = NULL;
  int o = 0;
  size_t l, i = 0;
  l = strlen(string);
  output = realloc(output, (l * 3) + 1);
  if (output == NULL)
    abort();
  while (i < l) {
    switch (string[i]) {
    case '&':
      if (!strncasecmp(&string[i], "&amp;", 5)) {
        output[o++] = '&';
        i += 5;
      } else if (!strncasecmp(&string[i], "&gt;", 4)) {
        output[o++] = '>';
        i += 4;
      } else if (!strncasecmp(&string[i], "&lt;", 4)) {
        output[o++] = '<';
        i += 4;
      } else if (!strncasecmp(&string[i], "&nbsp;", 6)) {
        output[o++] = ' ';
        i += 6;
      } else
        output[o++] = string[i++];
      break;
    case '<':
      if (!strncasecmp(&string[i], "<b>", 3)) {
        output[o++] = '*';
        i += 3;
      } else if (!strncasecmp(&string[i], "</b>", 4)) {
        output[o++] = '*';
        i += 4;
      } else if (!strncasecmp(&string[i], "<i>", 3)) {
        output[o++] = '/';
        i += 3;
      } else if (!strncasecmp(&string[i], "</i>", 4)) {
        output[o++] = '/';
        i += 4;
      } else if (!strncasecmp(&string[i], "<u>", 3)) {
        output[o++] = '_';
        i += 3;
      } else if (!strncasecmp(&string[i], "</u>", 4)) {
        output[o++] = '_';
        i += 4;
      } else if (!strncasecmp(&string[i], "<br>", 4)) {
        output[o++] = ' ';
        output[o++] = '/';
        output[o++] = ' ';
        i += 4;
      } else
        output[o++] = string[i++];
      break;
    case '\r':
    case '\n':
      output[o++] = ' ';
      output[o++] = '/';
      output[o++] = ' ';
      i++;
      break;
    case '\020':
      output[o++] = '?';
      i++;
      break;
    default:
      output[o++] = string[i++];
      break;
    }
  }
  output[o] = '\0';
  return (output);
}


x86 assembly (clang, -O0):
<lily_html_to_lily>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x18(%rbp)
mov    0x2ed9(%rip),%rdi
imul   $0x3,-0x18(%rbp),%rsi
add    $0x1,%rsi
call   1060 <realloc@plt>
mov    %rax,0x2ec4(%rip)
cmpq   $0x0,0x2ebc(%rip)
jne    1199 <lily_html_to_lily+0x59>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    119e <lily_html_to_lily+0x5e>
mov    -0x20(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    16cf <lily_html_to_lily+0x58f>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    %eax,-0x24(%rbp)
sub    $0xa,%eax
je     1616 <lily_html_to_lily+0x4d6>
jmp    11c9 <lily_html_to_lily+0x89>
mov    -0x24(%rbp),%eax
sub    $0xd,%eax
je     1616 <lily_html_to_lily+0x4d6>
jmp    11da <lily_html_to_lily+0x9a>
mov    -0x24(%rbp),%eax
sub    $0x10,%eax
je     1672 <lily_html_to_lily+0x532>
jmp    11eb <lily_html_to_lily+0xab>
mov    -0x24(%rbp),%eax
sub    $0x26,%eax
je     120d <lily_html_to_lily+0xcd>
jmp    11fc <lily_html_to_lily+0xbc>
mov    -0x24(%rbp),%eax
sub    $0x3c,%eax
je     137f <lily_html_to_lily+0x23f>
jmp    169c <lily_html_to_lily+0x55c>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xde4(%rip),%rsi
mov    $0x5,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1259 <lily_html_to_lily+0x119>
mov    0x2e12(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x26,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x20(%rbp)
jmp    137a <lily_html_to_lily+0x23a>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xd9e(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    12a5 <lily_html_to_lily+0x165>
mov    0x2dc6(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x3e,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    1375 <lily_html_to_lily+0x235>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xd57(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    12f1 <lily_html_to_lily+0x1b1>
mov    0x2d7a(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x3c,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    1370 <lily_html_to_lily+0x230>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xd10(%rip),%rsi
mov    $0x6,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    133d <lily_html_to_lily+0x1fd>
mov    0x2d2e(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0x20(%rbp)
jmp    136b <lily_html_to_lily+0x22b>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    (%rax,%rcx,1),%dl
mov    0x2cee(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0xc(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
jmp    1370 <lily_html_to_lily+0x230>
jmp    1375 <lily_html_to_lily+0x235>
jmp    137a <lily_html_to_lily+0x23a>
jmp    16ca <lily_html_to_lily+0x58a>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xc89(%rip),%rsi
mov    $0x3,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    13cb <lily_html_to_lily+0x28b>
mov    0x2ca0(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x2a,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x20(%rbp)
jmp    1611 <lily_html_to_lily+0x4d1>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xc41(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1417 <lily_html_to_lily+0x2d7>
mov    0x2c54(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x2a,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    160c <lily_html_to_lily+0x4cc>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xbfa(%rip),%rsi
mov    $0x3,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1463 <lily_html_to_lily+0x323>
mov    0x2c08(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x2f,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x20(%rbp)
jmp    1607 <lily_html_to_lily+0x4c7>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xbb2(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    14af <lily_html_to_lily+0x36f>
mov    0x2bbc(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x2f,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    1602 <lily_html_to_lily+0x4c2>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xb6b(%rip),%rsi
mov    $0x3,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    14fb <lily_html_to_lily+0x3bb>
mov    0x2b70(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x5f,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x20(%rbp)
jmp    15fd <lily_html_to_lily+0x4bd>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xb23(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1547 <lily_html_to_lily+0x407>
mov    0x2b24(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x5f,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    15f8 <lily_html_to_lily+0x4b8>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xadc(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
jne    15c5 <lily_html_to_lily+0x485>
mov    0x2ad8(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x20,(%rax,%rcx,1)
mov    0x2abf(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x2f,(%rax,%rcx,1)
mov    0x2aa6(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    15f3 <lily_html_to_lily+0x4b3>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    (%rax,%rcx,1),%dl
mov    0x2a66(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0xc(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
jmp    15f8 <lily_html_to_lily+0x4b8>
jmp    15fd <lily_html_to_lily+0x4bd>
jmp    1602 <lily_html_to_lily+0x4c2>
jmp    1607 <lily_html_to_lily+0x4c7>
jmp    160c <lily_html_to_lily+0x4cc>
jmp    1611 <lily_html_to_lily+0x4d1>
jmp    16ca <lily_html_to_lily+0x58a>
mov    0x2a2b(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x20,(%rax,%rcx,1)
mov    0x2a12(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x2f,(%rax,%rcx,1)
mov    0x29f9(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    16ca <lily_html_to_lily+0x58a>
mov    0x29cf(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x3f,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    16ca <lily_html_to_lily+0x58a>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    (%rax,%rcx,1),%dl
mov    0x298f(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0xc(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
jmp    119e <lily_html_to_lily+0x5e>
mov    0x2972(%rip),%rax
movslq -0xc(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    0x2963(%rip),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lily_html_to_lily>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1040 <strlen@plt>
mov    %rax,%rbp
mov    0x2eeb(%rip),%rdi
lea    (%rax,%rax,2),%rsi
add    $0x1,%rsi
call   1060 <realloc@plt>
mov    %rax,0x2ed7(%rip)
test   %rax,%rax
je     1404 <lily_html_to_lily+0x2c4>
mov    %rax,%r14
xor    %r12d,%r12d
test   %rbp,%rbp
je     13ed <lily_html_to_lily+0x2ad>
mov    %rbp,%rdx
lea    0xe6d(%rip),%rsi
xor    %ebp,%ebp
mov    %rdx,(%rsp)
jmp    11bd <lily_html_to_lily+0x7d>
add    $0x1,%rbp
movslq %r12d,%rax
mov    %r15b,(%r14,%rax,1)
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r12d
cmp    %rdx,%rbp
jae    13ea <lily_html_to_lily+0x2aa>
lea    (%rbx,%rbp,1),%r13
movzbl (%rbx,%rbp,1),%r15d
movsbl %r15b,%eax
lea    -0xa(%rax),%ecx
cmp    $0x1c,%ecx
ja     1200 <lily_html_to_lily+0xc0>
movslq (%rsi,%rcx,4),%rax
add    %rsi,%rax
jmp    *%rax
movslq %r12d,%r12
movw   $0x2f20,(%r14,%r12,1)
movb   $0x20,0x2(%r14,%r12,1)
add    $0x2,%r12
add    $0x1,%rbp
jmp    11b0 <lily_html_to_lily+0x70>
cs nopw 0x0(%rax,%rax,1)
nop
cmp    $0x3c,%eax
jne    119b <lily_html_to_lily+0x5b>
mov    %r13,%rdi
lea    0xe7c(%rip),%rsi
mov    $0x3,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
je     136e <lily_html_to_lily+0x22e>
mov    %r13,%rdi
lea    0xe64(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
je     1386 <lily_html_to_lily+0x246>
mov    %r13,%rdi
lea    0xe4d(%rip),%rsi
mov    $0x3,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
je     139a <lily_html_to_lily+0x25a>
mov    %r13,%rdi
lea    0xe35(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
je     13b6 <lily_html_to_lily+0x276>
mov    %r13,%rdi
lea    0xe1e(%rip),%rsi
mov    $0x3,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
je     13c0 <lily_html_to_lily+0x280>
mov    %r13,%rdi
lea    0xe06(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
je     13ce <lily_html_to_lily+0x28e>
mov    %r13,%rdi
lea    0xdef(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
jne    1353 <lily_html_to_lily+0x213>
movslq %r12d,%r12
movw   $0x2f20,(%r14,%r12,1)
movb   $0x20,0x2(%r14,%r12,1)
add    $0x2,%r12
jmp    13d6 <lily_html_to_lily+0x296>
movslq %r12d,%rax
movb   $0x3f,(%r14,%rax,1)
add    $0x1,%rbp
jmp    11b0 <lily_html_to_lily+0x70>
mov    %r13,%rdi
lea    0xd77(%rip),%rsi
mov    $0x5,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
je     1360 <lily_html_to_lily+0x220>
mov    %r13,%rdi
lea    0xd65(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
je     137c <lily_html_to_lily+0x23c>
mov    %r13,%rdi
lea    0xd52(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
je     1390 <lily_html_to_lily+0x250>
mov    %r13,%rdi
lea    0xd3f(%rip),%rsi
mov    $0x6,%edx
call   1050 <strncasecmp@plt>
test   %eax,%eax
je     13a8 <lily_html_to_lily+0x268>
add    $0x1,%rbp
movslq %r12d,%rax
mov    %r15b,(%r14,%rax,1)
jmp    13da <lily_html_to_lily+0x29a>
movslq %r12d,%rax
movb   $0x26,(%r14,%rax,1)
add    $0x5,%rbp
jmp    13da <lily_html_to_lily+0x29a>
movslq %r12d,%rax
movb   $0x2a,(%r14,%rax,1)
add    $0x3,%rbp
jmp    13da <lily_html_to_lily+0x29a>
movslq %r12d,%rax
movb   $0x3e,(%r14,%rax,1)
jmp    13d6 <lily_html_to_lily+0x296>
movslq %r12d,%rax
movb   $0x2a,(%r14,%rax,1)
jmp    13d6 <lily_html_to_lily+0x296>
movslq %r12d,%rax
movb   $0x3c,(%r14,%rax,1)
jmp    13d6 <lily_html_to_lily+0x296>
movslq %r12d,%rax
movb   $0x2f,(%r14,%rax,1)
add    $0x3,%rbp
jmp    13da <lily_html_to_lily+0x29a>
movslq %r12d,%rax
movb   $0x20,(%r14,%rax,1)
add    $0x6,%rbp
jmp    13da <lily_html_to_lily+0x29a>
movslq %r12d,%rax
movb   $0x2f,(%r14,%rax,1)
jmp    13d6 <lily_html_to_lily+0x296>
movslq %r12d,%rax
movb   $0x5f,(%r14,%rax,1)
add    $0x3,%rbp
jmp    13da <lily_html_to_lily+0x29a>
movslq %r12d,%rax
movb   $0x5f,(%r14,%rax,1)
add    $0x4,%rbp
mov    (%rsp),%rdx
lea    0xc1b(%rip),%rsi
jmp    11b0 <lily_html_to_lily+0x70>
movslq %r12d,%r12
movb   $0x0,(%r14,%r12,1)
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1030 <abort@plt>

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

LLVM IR (-O2):
@lily_html_to_lily.output = internal unnamed_addr global i8* null
@.str = [6 x i8] c"&amp;\00"
@.str.1 = [5 x i8] c"&gt;\00"
@.str.2 = [5 x i8] c"&lt;\00"
@.str.3 = [7 x i8] c"&nbsp;\00"
@.str.4 = [4 x i8] c"<b>\00"
@.str.5 = [5 x i8] c"</b>\00"
@.str.6 = [4 x i8] c"<i>\00"
@.str.7 = [5 x i8] c"</i>\00"
@.str.8 = [4 x i8] c"<u>\00"
@.str.9 = [5 x i8] c"</u>\00"
@.str.10 = [5 x i8] c"<br>\00"
define i8* @lily_html_to_lily(i8* nocapture %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = load i8*, i8** @lily_html_to_lily.output
%4 = mul i64 %2, 3
%5 = add i64 %4, 1
%6 = tail call i8* @realloc(i8* %3, i64 %5)
store i8* %6, i8** @lily_html_to_lily.output
%7 = icmp eq i8* %6, null
br i1 %7, label %10, label %8
8: ; preds = %1
%9 = icmp eq i64 %2, 0
br i1 %9, label %134, label %12
10: ; preds = %1
%11 = tail call i32 (...) @abort()
unreachable
12: ; preds = %8, %127
%13 = phi i64 [ %129, %127 ], [ 0, %8 ]
%14 = phi i32 [ %130, %127 ], [ 0, %8 ]
%15 = getelementptr inbounds i8, i8* %0, i64 %13
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
switch i32 %17, label %123 [
i32 38, label %18
i32 60, label %50
i32 13, label %109
i32 10, label %109
i32 16, label %119
]
18: ; preds = %12
%19 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 5)
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %25
21: ; preds = %18
%22 = sext i32 %14 to i64
%23 = getelementptr inbounds i8, i8* %6, i64 %22
store i8 38, i8* %23
%24 = add i64 %13, 5
br label %127
25: ; preds = %18
%26 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 4)
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %25
%29 = sext i32 %14 to i64
%30 = getelementptr inbounds i8, i8* %6, i64 %29
store i8 62, i8* %30
%31 = add i64 %13, 4
br label %127
32: ; preds = %25
%33 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 4)
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %32
%36 = sext i32 %14 to i64
%37 = getelementptr inbounds i8, i8* %6, i64 %36
store i8 60, i8* %37
%38 = add i64 %13, 4
br label %127
39: ; preds = %32
%40 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i32 6)
%41 = icmp eq i32 %40, 0
br i1 %41, label %42, label %46
42: ; preds = %39
%43 = sext i32 %14 to i64
%44 = getelementptr inbounds i8, i8* %6, i64 %43
store i8 32, i8* %44
%45 = add i64 %13, 6
br label %127
46: ; preds = %39
%47 = add nuw i64 %13, 1
%48 = sext i32 %14 to i64
%49 = getelementptr inbounds i8, i8* %6, i64 %48
store i8 %16, i8* %49
br label %127
50: ; preds = %12
%51 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 3)
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %50
%54 = sext i32 %14 to i64
%55 = getelementptr inbounds i8, i8* %6, i64 %54
store i8 42, i8* %55
%56 = add i64 %13, 3
br label %127
57: ; preds = %50
%58 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 4)
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %57
%61 = sext i32 %14 to i64
%62 = getelementptr inbounds i8, i8* %6, i64 %61
store i8 42, i8* %62
%63 = add i64 %13, 4
br label %127
64: ; preds = %57
%65 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3)
%66 = icmp eq i32 %65, 0
br i1 %66, label %67, label %71
67: ; preds = %64
%68 = sext i32 %14 to i64
%69 = getelementptr inbounds i8, i8* %6, i64 %68
store i8 47, i8* %69
%70 = add i64 %13, 3
br label %127
71: ; preds = %64
%72 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 4)
%73 = icmp eq i32 %72, 0
br i1 %73, label %74, label %78
74: ; preds = %71
%75 = sext i32 %14 to i64
%76 = getelementptr inbounds i8, i8* %6, i64 %75
store i8 47, i8* %76
%77 = add i64 %13, 4
br label %127
78: ; preds = %71
%79 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32 3)
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %85
81: ; preds = %78
%82 = sext i32 %14 to i64
%83 = getelementptr inbounds i8, i8* %6, i64 %82
store i8 95, i8* %83
%84 = add i64 %13, 3
br label %127
85: ; preds = %78
%86 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 4)
%87 = icmp eq i32 %86, 0
br i1 %87, label %88, label %92
88: ; preds = %85
%89 = sext i32 %14 to i64
%90 = getelementptr inbounds i8, i8* %6, i64 %89
store i8 95, i8* %90
%91 = add i64 %13, 4
br label %127
92: ; preds = %85
%93 = tail call i32 @strncasecmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 4)
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %105
95: ; preds = %92
%96 = add nsw i32 %14, 1
%97 = sext i32 %14 to i64
%98 = getelementptr inbounds i8, i8* %6, i64 %97
store i8 32, i8* %98
%99 = add nsw i32 %14, 2
%100 = sext i32 %96 to i64
%101 = getelementptr inbounds i8, i8* %6, i64 %100
store i8 47, i8* %101
%102 = sext i32 %99 to i64
%103 = getelementptr inbounds i8, i8* %6, i64 %102
store i8 32, i8* %103
%104 = add i64 %13, 4
br label %127
105: ; preds = %92
%106 = add nuw i64 %13, 1
%107 = sext i32 %14 to i64
%108 = getelementptr inbounds i8, i8* %6, i64 %107
store i8 %16, i8* %108
br label %127
109: ; preds = %12, %12
%110 = add nsw i32 %14, 1
%111 = sext i32 %14 to i64
%112 = getelementptr inbounds i8, i8* %6, i64 %111
store i8 32, i8* %112
%113 = add nsw i32 %14, 2
%114 = sext i32 %110 to i64
%115 = getelementptr inbounds i8, i8* %6, i64 %114
store i8 47, i8* %115
%116 = sext i32 %113 to i64
%117 = getelementptr inbounds i8, i8* %6, i64 %116
store i8 32, i8* %117
%118 = add nuw i64 %13, 1
br label %127
119: ; preds = %12
%120 = sext i32 %14 to i64
%121 = getelementptr inbounds i8, i8* %6, i64 %120
store i8 63, i8* %121
%122 = add nuw i64 %13, 1
br label %127
123: ; preds = %12
%124 = add nuw i64 %13, 1
%125 = sext i32 %14 to i64
%126 = getelementptr inbounds i8, i8* %6, i64 %125
store i8 %16, i8* %126
br label %127
127: ; preds = %53, %67, %81, %95, %105, %88, %74, %60, %21, %35, %46, %42, %28, %123, %119, %109
%128 = phi i32 [ %14, %123 ], [ %14, %119 ], [ %113, %109 ], [ %14, %105 ], [ %99, %95 ], [ %14, %88 ], [ %14, %81 ], [ %14, %74 ], [ %14, %67 ], [ %14, %60 ], [ %14, %53 ], [ %14, %46 ], [ %14, %42 ], [ %14, %35 ], [ %14, %28 ], [ %14, %21 ]
%129 = phi i64 [ %124, %123 ], [ %122, %119 ], [ %118, %109 ], [ %106, %105 ], [ %104, %95 ], [ %91, %88 ], [ %84, %81 ], [ %77, %74 ], [ %70, %67 ], [ %63, %60 ], [ %56, %53 ], [ %47, %46 ], [ %45, %42 ], [ %38, %35 ], [ %31, %28 ], [ %24, %21 ]
%130 = add nsw i32 %128, 1
%131 = icmp ult i64 %129, %2
br i1 %131, label %12, label %132
132: ; preds = %127
%133 = sext i32 %130 to i64
br label %134
134: ; preds = %132, %8
%135 = phi i64 [ 0, %8 ], [ %133, %132 ]
%136 = getelementptr inbounds i8, i8* %6, i64 %135
store i8 0, i8* %136
ret i8* %6
}